2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for PostgreSQL 7.5devel.
5 # Report bugs to <pgsql-bugs@postgresql.org>.
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright 2003 PostgreSQL Global Development Group
14 if expr a : '\(a\)' >/dev/null 2>&1; then
21 ## --------------------- ##
22 ## M4sh Initialization. ##
23 ## --------------------- ##
25 # Be Bourne compatible
26 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
34 # Support unset when possible.
35 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
41 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
42 { $as_unset LANG || test "${LANG+set}" != set; } ||
43 { LANG=C; export LANG; }
44 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
45 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
46 { LC_ALL=C; export LC_ALL; }
47 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
48 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
49 { LC_TIME=C; export LC_TIME; }
50 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
51 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
52 { LC_CTYPE=C; export LC_CTYPE; }
53 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
54 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
55 { LANGUAGE=C; export LANGUAGE; }
56 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
57 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
58 { LC_COLLATE=C; export LC_COLLATE; }
59 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
60 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
61 { LC_NUMERIC=C; export LC_NUMERIC; }
62 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
63 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
64 { LC_MESSAGES=C; export LC_MESSAGES; }
67 # Name of the executable.
68 as_me=`(basename "$0") 2>/dev/null ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89 echo "#! /bin/sh" >conftest.sh
90 echo "exit 0" >>conftest.sh
92 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104 test "x$as_lineno_1" != "x$as_lineno_2" &&
105 test "x$as_lineno_3" = "x$as_lineno_2" || {
106 # Find who we are. Look in the path if we contain no path at all
109 *[\\/]* ) as_myself=$0 ;;
110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 test -z "$as_dir" && as_dir=.
115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
120 # We did not find ourselves, most probably we were run as `sh COMMAND'
121 # in which case we are not to be found in the path.
122 if test "x$as_myself" = x; then
125 if test ! -f "$as_myself"; then
126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127 { (exit 1); exit 1; }; }
129 case $CONFIG_SHELL in
131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 test -z "$as_dir" && as_dir=.
136 for as_base in sh bash ksh sh5; do
139 if ("$as_dir/$as_base" -c '
142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143 test "x$as_lineno_1" != "x$as_lineno_2" &&
144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
145 CONFIG_SHELL=$as_dir/$as_base
147 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
155 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
156 # uniformly replaced by the line number. The first 'sed' inserts a
157 # line-number line before each line; the second 'sed' does the real
158 # work. The second script uses 'N' to pair each line-number line
159 # with the numbered line, and appends trailing '-' during
160 # substitution so that $LINENO is not a special case at line end.
161 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
162 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
163 sed '=' <$as_myself |
168 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171 s,^['$as_cr_digits']*\n,,
173 chmod +x $as_me.lineno ||
174 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
175 { (exit 1); exit 1; }; }
177 # Don't try to exec as it changes $[0], causing all sort of problems
178 # (the dirname of $[0] is not the place where we might find the
179 # original and so on. Autoconf is especially sensible to this).
181 # Exit status is that of the last command.
186 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
187 *c*,-n*) ECHO_N= ECHO_C='
189 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
190 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
193 if expr a : '\(a\)' >/dev/null 2>&1; then
199 rm -f conf$$ conf$$.exe conf$$.file
201 if ln -s conf$$.file conf$$ 2>/dev/null; then
202 # We could just check for DJGPP; but this test a) works b) is more generic
203 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
204 if test -f conf$$.exe; then
205 # Don't use ln at all; we don't have any links
210 elif ln conf$$.file conf$$ 2>/dev/null; then
215 rm -f conf$$ conf$$.exe conf$$.file
217 as_executable_p="test -f"
219 # Sed expression to map a string onto a valid CPP name.
220 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
222 # Sed expression to map a string onto a valid variable name.
223 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
227 # We need space, tab and new line, in precisely that order.
233 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
237 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
238 # so uname gets run too.
239 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
246 ac_default_prefix=/usr/local
251 SHELL=${CONFIG_SHELL-/bin/sh}
253 # Maximum number of lines to put in a shell here document.
254 # This variable seems obsolete. It should probably be removed, and
255 # only ac_max_sed_lines should be used.
256 : ${ac_max_here_lines=38}
258 # Identity of this package.
259 PACKAGE_NAME='PostgreSQL'
260 PACKAGE_TARNAME='postgresql'
261 PACKAGE_VERSION='7.5devel'
262 PACKAGE_STRING='PostgreSQL 7.5devel'
263 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
265 ac_unique_file="src/backend/access/common/heaptuple.c"
266 ac_default_prefix=/usr/local/pgsql
267 # Factoring default headers for most tests.
268 ac_includes_default="\
271 # include <sys/types.h>
274 # include <sys/stat.h>
285 # if !STDC_HEADERS && HAVE_MEMORY_H
291 # include <strings.h>
294 # include <inttypes.h>
305 # Initialize some variables set by options.
307 ac_init_version=false
308 # The variables have the same names as the options, with
309 # dashes changed to underlines.
317 program_transform_name=s,x,x,
325 # Installation directory options.
326 # These are left unexpanded so users can "make install exec_prefix=/foo"
327 # and all the variables that are supposed to be based on exec_prefix
328 # by default will actually change.
329 # Use braces instead of parens because sh, perl, etc. also accept them.
330 bindir='${exec_prefix}/bin'
331 sbindir='${exec_prefix}/sbin'
332 libexecdir='${exec_prefix}/libexec'
333 datadir='${prefix}/share'
334 sysconfdir='${prefix}/etc'
335 sharedstatedir='${prefix}/com'
336 localstatedir='${prefix}/var'
337 libdir='${exec_prefix}/lib'
338 includedir='${prefix}/include'
339 oldincludedir='/usr/include'
340 infodir='${prefix}/info'
341 mandir='${prefix}/man'
346 # If the previous option needs an argument, assign it.
347 if test -n "$ac_prev"; then
348 eval "$ac_prev=\$ac_option"
353 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
355 # Accept the important Cygnus configure options, so we can diagnose typos.
359 -bindir | --bindir | --bindi | --bind | --bin | --bi)
361 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
364 -build | --build | --buil | --bui | --bu)
365 ac_prev=build_alias ;;
366 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
367 build_alias=$ac_optarg ;;
369 -cache-file | --cache-file | --cache-fil | --cache-fi \
370 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
371 ac_prev=cache_file ;;
372 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
373 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
374 cache_file=$ac_optarg ;;
377 cache_file=config.cache ;;
379 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
381 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
383 datadir=$ac_optarg ;;
385 -disable-* | --disable-*)
386 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
387 # Reject names that are not valid shell variable names.
388 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
389 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
390 { (exit 1); exit 1; }; }
391 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
392 eval "enable_$ac_feature=no" ;;
394 -enable-* | --enable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
405 eval "enable_$ac_feature='$ac_optarg'" ;;
407 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
408 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
409 | --exec | --exe | --ex)
410 ac_prev=exec_prefix ;;
411 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
412 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
413 | --exec=* | --exe=* | --ex=*)
414 exec_prefix=$ac_optarg ;;
416 -gas | --gas | --ga | --g)
417 # Obsolete; use --with-gas.
420 -help | --help | --hel | --he | -h)
422 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
423 ac_init_help=recursive ;;
424 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
425 ac_init_help=short ;;
427 -host | --host | --hos | --ho)
428 ac_prev=host_alias ;;
429 -host=* | --host=* | --hos=* | --ho=*)
430 host_alias=$ac_optarg ;;
432 -includedir | --includedir | --includedi | --included | --include \
433 | --includ | --inclu | --incl | --inc)
434 ac_prev=includedir ;;
435 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
436 | --includ=* | --inclu=* | --incl=* | --inc=*)
437 includedir=$ac_optarg ;;
439 -infodir | --infodir | --infodi | --infod | --info | --inf)
441 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
442 infodir=$ac_optarg ;;
444 -libdir | --libdir | --libdi | --libd)
446 -libdir=* | --libdir=* | --libdi=* | --libd=*)
449 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
450 | --libexe | --libex | --libe)
451 ac_prev=libexecdir ;;
452 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
453 | --libexe=* | --libex=* | --libe=*)
454 libexecdir=$ac_optarg ;;
456 -localstatedir | --localstatedir | --localstatedi | --localstated \
457 | --localstate | --localstat | --localsta | --localst \
458 | --locals | --local | --loca | --loc | --lo)
459 ac_prev=localstatedir ;;
460 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
461 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
462 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
463 localstatedir=$ac_optarg ;;
465 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
467 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
471 # Obsolete; use --without-fp.
474 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
475 | --no-cr | --no-c | -n)
478 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
479 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
482 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
483 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
484 | --oldin | --oldi | --old | --ol | --o)
485 ac_prev=oldincludedir ;;
486 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
487 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
488 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
489 oldincludedir=$ac_optarg ;;
491 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
493 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
496 -program-prefix | --program-prefix | --program-prefi | --program-pref \
497 | --program-pre | --program-pr | --program-p)
498 ac_prev=program_prefix ;;
499 -program-prefix=* | --program-prefix=* | --program-prefi=* \
500 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
501 program_prefix=$ac_optarg ;;
503 -program-suffix | --program-suffix | --program-suffi | --program-suff \
504 | --program-suf | --program-su | --program-s)
505 ac_prev=program_suffix ;;
506 -program-suffix=* | --program-suffix=* | --program-suffi=* \
507 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
508 program_suffix=$ac_optarg ;;
510 -program-transform-name | --program-transform-name \
511 | --program-transform-nam | --program-transform-na \
512 | --program-transform-n | --program-transform- \
513 | --program-transform | --program-transfor \
514 | --program-transfo | --program-transf \
515 | --program-trans | --program-tran \
516 | --progr-tra | --program-tr | --program-t)
517 ac_prev=program_transform_name ;;
518 -program-transform-name=* | --program-transform-name=* \
519 | --program-transform-nam=* | --program-transform-na=* \
520 | --program-transform-n=* | --program-transform-=* \
521 | --program-transform=* | --program-transfor=* \
522 | --program-transfo=* | --program-transf=* \
523 | --program-trans=* | --program-tran=* \
524 | --progr-tra=* | --program-tr=* | --program-t=*)
525 program_transform_name=$ac_optarg ;;
527 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
528 | -silent | --silent | --silen | --sile | --sil)
531 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
533 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
535 sbindir=$ac_optarg ;;
537 -sharedstatedir | --sharedstatedir | --sharedstatedi \
538 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
539 | --sharedst | --shareds | --shared | --share | --shar \
541 ac_prev=sharedstatedir ;;
542 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
543 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
544 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
546 sharedstatedir=$ac_optarg ;;
548 -site | --site | --sit)
550 -site=* | --site=* | --sit=*)
553 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
555 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
558 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
559 | --syscon | --sysco | --sysc | --sys | --sy)
560 ac_prev=sysconfdir ;;
561 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
562 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
563 sysconfdir=$ac_optarg ;;
565 -target | --target | --targe | --targ | --tar | --ta | --t)
566 ac_prev=target_alias ;;
567 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
568 target_alias=$ac_optarg ;;
570 -v | -verbose | --verbose | --verbos | --verbo | --verb)
573 -version | --version | --versio | --versi | --vers | -V)
577 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
578 # Reject names that are not valid shell variable names.
579 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
580 { echo "$as_me: error: invalid package name: $ac_package" >&2
581 { (exit 1); exit 1; }; }
582 ac_package=`echo $ac_package| sed 's/-/_/g'`
584 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
587 eval "with_$ac_package='$ac_optarg'" ;;
589 -without-* | --without-*)
590 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package=`echo $ac_package | sed 's/-/_/g'`
596 eval "with_$ac_package=no" ;;
599 # Obsolete; use --with-x.
602 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
603 | --x-incl | --x-inc | --x-in | --x-i)
604 ac_prev=x_includes ;;
605 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
606 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
607 x_includes=$ac_optarg ;;
609 -x-libraries | --x-libraries | --x-librarie | --x-librari \
610 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
611 ac_prev=x_libraries ;;
612 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
613 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
614 x_libraries=$ac_optarg ;;
616 -*) { echo "$as_me: error: unrecognized option: $ac_option
617 Try \`$0 --help' for more information." >&2
618 { (exit 1); exit 1; }; }
622 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
623 # Reject names that are not valid shell variable names.
624 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
625 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
626 { (exit 1); exit 1; }; }
627 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
628 eval "$ac_envvar='$ac_optarg'"
632 # FIXME: should be removed in autoconf 3.0.
633 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
634 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
635 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
636 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
642 if test -n "$ac_prev"; then
643 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
644 { echo "$as_me: error: missing argument to $ac_option" >&2
645 { (exit 1); exit 1; }; }
648 # Be sure to have absolute paths.
649 for ac_var in exec_prefix prefix
651 eval ac_val=$`echo $ac_var`
653 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
654 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
655 { (exit 1); exit 1; }; };;
659 # Be sure to have absolute paths.
660 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
661 localstatedir libdir includedir oldincludedir infodir mandir
663 eval ac_val=$`echo $ac_var`
665 [\\/$]* | ?:[\\/]* ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
671 # There might be people who depend on the old broken behavior: `$host'
672 # used to hold the argument of --host etc.
673 # FIXME: To remove some day.
678 # FIXME: To remove some day.
679 if test "x$host_alias" != x; then
680 if test "x$build_alias" = x; then
681 cross_compiling=maybe
682 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
683 If a cross compiler is detected then cross compile mode will be used." >&2
684 elif test "x$build_alias" != "x$host_alias"; then
690 test -n "$host_alias" && ac_tool_prefix=$host_alias-
692 test "$silent" = yes && exec 6>/dev/null
695 # Find the source files, if location was not specified.
696 if test -z "$srcdir"; then
697 ac_srcdir_defaulted=yes
698 # Try the directory containing this script, then its parent.
699 ac_confdir=`(dirname "$0") 2>/dev/null ||
700 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
701 X"$0" : 'X\(//\)[^/]' \| \
702 X"$0" : 'X\(//\)$' \| \
703 X"$0" : 'X\(/\)' \| \
704 . : '\(.\)' 2>/dev/null ||
706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
707 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
708 /^X\(\/\/\)$/{ s//\1/; q; }
709 /^X\(\/\).*/{ s//\1/; q; }
712 if test ! -r $srcdir/$ac_unique_file; then
716 ac_srcdir_defaulted=no
718 if test ! -r $srcdir/$ac_unique_file; then
719 if test "$ac_srcdir_defaulted" = yes; then
720 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
721 { (exit 1); exit 1; }; }
723 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
724 { (exit 1); exit 1; }; }
727 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
728 ac_env_build_alias_set=${build_alias+set}
729 ac_env_build_alias_value=$build_alias
730 ac_cv_env_build_alias_set=${build_alias+set}
731 ac_cv_env_build_alias_value=$build_alias
732 ac_env_host_alias_set=${host_alias+set}
733 ac_env_host_alias_value=$host_alias
734 ac_cv_env_host_alias_set=${host_alias+set}
735 ac_cv_env_host_alias_value=$host_alias
736 ac_env_target_alias_set=${target_alias+set}
737 ac_env_target_alias_value=$target_alias
738 ac_cv_env_target_alias_set=${target_alias+set}
739 ac_cv_env_target_alias_value=$target_alias
740 ac_env_CC_set=${CC+set}
742 ac_cv_env_CC_set=${CC+set}
743 ac_cv_env_CC_value=$CC
744 ac_env_CFLAGS_set=${CFLAGS+set}
745 ac_env_CFLAGS_value=$CFLAGS
746 ac_cv_env_CFLAGS_set=${CFLAGS+set}
747 ac_cv_env_CFLAGS_value=$CFLAGS
748 ac_env_LDFLAGS_set=${LDFLAGS+set}
749 ac_env_LDFLAGS_value=$LDFLAGS
750 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
751 ac_cv_env_LDFLAGS_value=$LDFLAGS
752 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
753 ac_env_CPPFLAGS_value=$CPPFLAGS
754 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
755 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
756 ac_env_CPP_set=${CPP+set}
757 ac_env_CPP_value=$CPP
758 ac_cv_env_CPP_set=${CPP+set}
759 ac_cv_env_CPP_value=$CPP
760 ac_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
761 ac_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
762 ac_cv_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
763 ac_cv_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
766 # Report the --help message.
768 if test "$ac_init_help" = "long"; then
769 # Omit some internal or obsolete options to make the list less imposing.
770 # This message is too long to be a string in the A/UX 3.1 sh.
772 \`configure' configures PostgreSQL 7.5devel to adapt to many kinds of systems.
774 Usage: $0 [OPTION]... [VAR=VALUE]...
776 To assign environment variables (e.g., CC, CFLAGS...), specify them as
777 VAR=VALUE. See below for descriptions of some of the useful variables.
779 Defaults for the options are specified in brackets.
782 -h, --help display this help and exit
783 --help=short display options specific to this package
784 --help=recursive display the short help of all the included packages
785 -V, --version display version information and exit
786 -q, --quiet, --silent do not print \`checking...' messages
787 --cache-file=FILE cache test results in FILE [disabled]
788 -C, --config-cache alias for \`--cache-file=config.cache'
789 -n, --no-create do not create output files
790 --srcdir=DIR find the sources in DIR [configure dir or \`..']
795 Installation directories:
796 --prefix=PREFIX install architecture-independent files in PREFIX
798 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
801 By default, \`make install' will install all the files in
802 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
803 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
804 for instance \`--prefix=\$HOME'.
806 For better control, use the options below.
808 Fine tuning of the installation directories:
809 --bindir=DIR user executables [EPREFIX/bin]
810 --sbindir=DIR system admin executables [EPREFIX/sbin]
811 --libexecdir=DIR program executables [EPREFIX/libexec]
812 --datadir=DIR read-only architecture-independent data [PREFIX/share]
813 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
814 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
815 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
816 --libdir=DIR object code libraries [EPREFIX/lib]
817 --includedir=DIR C header files [PREFIX/include]
818 --oldincludedir=DIR C header files for non-gcc [/usr/include]
819 --infodir=DIR info documentation [PREFIX/info]
820 --mandir=DIR man documentation [PREFIX/man]
826 --build=BUILD configure for building on BUILD [guessed]
827 --host=HOST cross-compile to build programs to run on HOST [BUILD]
831 if test -n "$ac_init_help"; then
832 case $ac_init_help in
833 short | recursive ) echo "Configuration of PostgreSQL 7.5devel:";;
838 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
839 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
840 --enable-integer-datetimes enable 64-bit integer date/time support
841 --enable-nls[=LANGUAGES] enable Native Language Support
842 --disable-shared do not build shared libraries
843 --disable-rpath do not embed shared library search path in executables
844 --disable-spinlocks do not use spinlocks
845 --enable-debug build with debugging symbols (-g)
846 --enable-depend turn on automatic dependency tracking
847 --enable-cassert enable assertion checks (for debugging)
848 --enable-thread-safety make client libraries thread-safe
849 --disable-largefile omit support for large files
852 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
853 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
855 --with-docdir=DIR install the documentation in DIR [PREFIX/doc]
856 --without-docdir do not install the documentation
857 --with-includes=DIRS look for additional header files in DIRS
858 --with-libraries=DIRS look for additional libraries in DIRS
859 --with-libs=DIRS alternative spelling of --with-libraries
860 --with-pgport=PORTNUM change default port number 5432
861 --with-tcl build Tcl and Tk interfaces
862 --without-tk do not build Tk interfaces if Tcl is enabled
863 --with-tclconfig=DIR tclConfig.sh and tkConfig.sh are in DIR
864 --with-tkconfig=DIR tkConfig.sh is in DIR
865 --with-perl build Perl modules (PL/Perl)
866 --with-python build Python modules (PL/Python)
867 --with-java build JDBC interface and Java tools
868 --with-krb4 build with Kerberos 4 support
869 --with-krb5 build with Kerberos 5 support
870 --with-krb-srvnam=NAME name of the service principal in Kerberos [postgres]
871 --with-pam build with PAM support
872 --with-rendezvous build with Rendezvous support
873 --with-openssl build with OpenSSL support
874 --without-readline do not use Readline
875 --without-zlib do not use Zlib
876 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
878 Some influential environment variables:
879 CC C compiler command
880 CFLAGS C compiler flags
881 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
882 nonstandard directory <lib dir>
883 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
884 headers in a nonstandard directory <include dir>
887 location of DocBook stylesheets
889 Use these variables to override the choices made by `configure' or to help
890 it to find libraries and programs with nonstandard names/locations.
892 Report bugs to <pgsql-bugs@postgresql.org>.
896 if test "$ac_init_help" = "recursive"; then
897 # If there are subdirs, report their specific --help.
899 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
900 test -d $ac_dir || continue
903 if test "$ac_dir" != .; then
904 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
905 # A "../" for each directory in $ac_dir_suffix.
906 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
908 ac_dir_suffix= ac_top_builddir=
912 .) # No --srcdir option. We are building in place.
914 if test -z "$ac_top_builddir"; then
917 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
919 [\\/]* | ?:[\\/]* ) # Absolute path.
920 ac_srcdir=$srcdir$ac_dir_suffix;
921 ac_top_srcdir=$srcdir ;;
923 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
924 ac_top_srcdir=$ac_top_builddir$srcdir ;;
926 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
928 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
929 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
930 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
931 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
934 # Check for guested configure; otherwise get Cygnus style configure.
935 if test -f $ac_srcdir/configure.gnu; then
937 $SHELL $ac_srcdir/configure.gnu --help=recursive
938 elif test -f $ac_srcdir/configure; then
940 $SHELL $ac_srcdir/configure --help=recursive
941 elif test -f $ac_srcdir/configure.ac ||
942 test -f $ac_srcdir/configure.in; then
946 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
952 test -n "$ac_init_help" && exit 0
953 if $ac_init_version; then
955 PostgreSQL configure 7.5devel
956 generated by GNU Autoconf 2.53
958 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
959 Free Software Foundation, Inc.
960 This configure script is free software; the Free Software Foundation
961 gives unlimited permission to copy, distribute and modify it.
963 Copyright 2003 PostgreSQL Global Development Group
969 This file contains any messages produced by compilers while
970 running configure, to aid debugging if configure makes a mistake.
972 It was created by PostgreSQL $as_me 7.5devel, which was
973 generated by GNU Autoconf 2.53. Invocation command line was
984 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
985 uname -m = `(uname -m) 2>/dev/null || echo unknown`
986 uname -r = `(uname -r) 2>/dev/null || echo unknown`
987 uname -s = `(uname -s) 2>/dev/null || echo unknown`
988 uname -v = `(uname -v) 2>/dev/null || echo unknown`
990 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
991 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
993 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
994 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
995 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
996 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
997 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
998 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
999 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1007 test -z "$as_dir" && as_dir=.
1008 echo "PATH: $as_dir"
1023 # Keep a trace of the command line.
1024 # Strip out --no-create and --no-recursion so they do not pile up.
1025 # Also quote any args containing shell meta-characters.
1031 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1032 | --no-cr | --no-c | -n ) continue ;;
1033 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1034 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1036 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1037 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1039 case " $ac_configure_args " in
1040 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1041 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1044 # Get rid of the leading space.
1047 # When interrupted or exit'd, cleanup temporary files, and complete
1048 # config.log. We remove comments because anyway the quotes in there
1049 # would cause problems or look ugly.
1050 # WARNING: Be sure not to use single quotes in there, as some shells,
1051 # such as our DU 5.0 friend, will then `close' the trap.
1052 trap 'exit_status=$?
1053 # Save into config.log some information that might help in debugging.
1057 ## ---------------- ##
1058 ## Cache variables. ##
1059 ## ---------------- ##
1062 # The following way of writing the cache mishandles newlines in values,
1065 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1068 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1069 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1073 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1078 if test -s confdefs.h; then
1085 sed "/^$/d" confdefs.h
1088 test "$ac_signal" != 0 &&
1089 echo "$as_me: caught signal $ac_signal"
1090 echo "$as_me: exit $exit_status"
1092 rm -f core core.* *.core &&
1093 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1096 for ac_signal in 1 2 13 15; do
1097 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1101 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1102 rm -rf conftest* confdefs.h
1103 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1106 # Predefined preprocessor variables.
1108 cat >>confdefs.h <<_ACEOF
1109 #define PACKAGE_NAME "$PACKAGE_NAME"
1113 cat >>confdefs.h <<_ACEOF
1114 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1118 cat >>confdefs.h <<_ACEOF
1119 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1123 cat >>confdefs.h <<_ACEOF
1124 #define PACKAGE_STRING "$PACKAGE_STRING"
1128 cat >>confdefs.h <<_ACEOF
1129 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1133 # Let the site file select an alternate cache file if it wants to.
1134 # Prefer explicitly selected file to automatically selected ones.
1135 if test -z "$CONFIG_SITE"; then
1136 if test "x$prefix" != xNONE; then
1137 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1139 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1142 for ac_site_file in $CONFIG_SITE; do
1143 if test -r "$ac_site_file"; then
1144 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1145 echo "$as_me: loading site script $ac_site_file" >&6;}
1146 sed 's/^/| /' "$ac_site_file" >&5
1151 if test -r "$cache_file"; then
1152 # Some versions of bash will fail to source /dev/null (special
1153 # files actually), so we avoid doing that.
1154 if test -f "$cache_file"; then
1155 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1156 echo "$as_me: loading cache $cache_file" >&6;}
1158 [\\/]* | ?:[\\/]* ) . $cache_file;;
1159 *) . ./$cache_file;;
1163 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1164 echo "$as_me: creating cache $cache_file" >&6;}
1168 # Check that the precious variables saved in the cache have kept the same
1170 ac_cache_corrupted=false
1171 for ac_var in `(set) 2>&1 |
1172 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1173 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1174 eval ac_new_set=\$ac_env_${ac_var}_set
1175 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1176 eval ac_new_val="\$ac_env_${ac_var}_value"
1177 case $ac_old_set,$ac_new_set in
1179 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1180 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1181 ac_cache_corrupted=: ;;
1183 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1184 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1185 ac_cache_corrupted=: ;;
1188 if test "x$ac_old_val" != "x$ac_new_val"; then
1189 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1190 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1191 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1192 echo "$as_me: former value: $ac_old_val" >&2;}
1193 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1194 echo "$as_me: current value: $ac_new_val" >&2;}
1195 ac_cache_corrupted=:
1198 # Pass precious variables to config.status.
1199 if test "$ac_new_set" = set; then
1201 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1202 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1203 *) ac_arg=$ac_var=$ac_new_val ;;
1205 case " $ac_configure_args " in
1206 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1207 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1211 if $ac_cache_corrupted; then
1212 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1213 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1214 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1215 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1216 { (exit 1); exit 1; }; }
1220 ac_cpp='$CPP $CPPFLAGS'
1221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1255 for ac_dir in config $srcdir/config; do
1256 if test -f $ac_dir/install-sh; then
1258 ac_install_sh="$ac_aux_dir/install-sh -c"
1260 elif test -f $ac_dir/install.sh; then
1262 ac_install_sh="$ac_aux_dir/install.sh -c"
1264 elif test -f $ac_dir/shtool; then
1266 ac_install_sh="$ac_aux_dir/shtool install -c"
1270 if test -z "$ac_aux_dir"; then
1271 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1272 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1273 { (exit 1); exit 1; }; }
1275 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1276 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1277 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1280 configure_args=$ac_configure_args
1284 cat >>confdefs.h <<_ACEOF
1285 #define PG_VERSION "$PACKAGE_VERSION"
1289 # Make sure we can run config.sub.
1290 $ac_config_sub sun4 >/dev/null 2>&1 ||
1291 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1292 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1293 { (exit 1); exit 1; }; }
1295 echo "$as_me:$LINENO: checking build system type" >&5
1296 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1297 if test "${ac_cv_build+set}" = set; then
1298 echo $ECHO_N "(cached) $ECHO_C" >&6
1300 ac_cv_build_alias=$build_alias
1301 test -z "$ac_cv_build_alias" &&
1302 ac_cv_build_alias=`$ac_config_guess`
1303 test -z "$ac_cv_build_alias" &&
1304 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1305 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1306 { (exit 1); exit 1; }; }
1307 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1308 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1309 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1310 { (exit 1); exit 1; }; }
1313 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1314 echo "${ECHO_T}$ac_cv_build" >&6
1316 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1317 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1318 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1321 echo "$as_me:$LINENO: checking host system type" >&5
1322 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1323 if test "${ac_cv_host+set}" = set; then
1324 echo $ECHO_N "(cached) $ECHO_C" >&6
1326 ac_cv_host_alias=$host_alias
1327 test -z "$ac_cv_host_alias" &&
1328 ac_cv_host_alias=$ac_cv_build_alias
1329 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1330 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1331 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1332 { (exit 1); exit 1; }; }
1335 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1336 echo "${ECHO_T}$ac_cv_host" >&6
1338 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1339 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1340 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1345 echo "$as_me:$LINENO: checking which template to use" >&5
1346 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1351 # Check whether --with-template or --without-template was given.
1352 if test "${with_template+set}" = set; then
1353 withval="$with_template"
1357 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1358 echo "$as_me: error: argument required for --with-template option" >&2;}
1359 { (exit 1); exit 1; }; }
1362 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1363 echo "$as_me: error: argument required for --with-template option" >&2;}
1364 { (exit 1); exit 1; }; }
1369 list) echo; ls "$srcdir/src/template"; exit;;
1370 *) if test -f "$srcdir/src/template/$with_template" ; then
1373 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1374 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1375 { (exit 1); exit 1; }; }
1384 # --with-template not given
1387 aix*) template=aix ;;
1388 beos*) template=beos ;;
1389 bsdi*) template=bsdi ;;
1390 cygwin*) template=cygwin ;;
1391 darwin*) template=darwin ;;
1392 dgux*) template=dgux ;;
1393 freebsd*) template=freebsd ;;
1394 hpux*) template=hpux ;;
1395 irix*) template=irix5 ;;
1396 linux*) template=linux ;;
1397 mingw*) template=win32 ;;
1398 netbsd*) template=netbsd ;;
1399 nextstep*) template=nextstep ;;
1400 openbsd*) template=openbsd ;;
1401 osf*) template=osf ;;
1402 qnx*) template=qnx4 ;;
1403 sco*) template=sco ;;
1404 solaris*) template=solaris ;;
1405 sunos*) template=sunos4 ;;
1407 case $host_vendor in
1408 univel) template=univel ;;
1410 sysv4*) template=svr4 ;;
1411 sysv5*) template=unixware ;;
1412 ultrix*) template=ultrix4 ;;
1415 if test x"$template" = x"" ; then
1416 { { echo "$as_me:$LINENO: error:
1417 *******************************************************************
1418 PostgreSQL has apparently not been ported to your platform yet.
1419 To try a manual configuration, look into the src/template directory
1420 for a similar platform and use the '--with-template=' option.
1422 Please also contact <pgsql-ports@postgresql.org> to see about
1423 rectifying this. Include the above 'checking host system type...'
1425 *******************************************************************
1427 echo "$as_me: error:
1428 *******************************************************************
1429 PostgreSQL has apparently not been ported to your platform yet.
1430 To try a manual configuration, look into the src/template directory
1431 for a similar platform and use the '--with-template=' option.
1433 Please also contact <pgsql-ports@postgresql.org> to see about
1434 rectifying this. Include the above 'checking host system type...'
1436 *******************************************************************
1438 { (exit 1); exit 1; }; }
1445 echo "$as_me:$LINENO: result: $template" >&5
1446 echo "${ECHO_T}$template" >&6
1451 # Initialize default assumption that we do not need separate assembly code
1452 # for TAS (test-and-set). This can be overridden by the template file
1453 # when it's executed.
1460 ## Command line options
1464 # Installation directory for documentation
1469 # Check whether --with-docdir or --without-docdir was given.
1470 if test "${with_docdir+set}" = set; then
1471 withval="$with_docdir"
1475 { { echo "$as_me:$LINENO: error: option --with-docdir requires an argument" >&5
1476 echo "$as_me: error: option --with-docdir requires an argument" >&2;}
1477 { (exit 1); exit 1; }; }
1488 docdir='${prefix}/doc'
1495 # Add non-standard directories to the include path
1500 # Check whether --with-includes or --without-includes was given.
1501 if test "${with_includes+set}" = set; then
1502 withval="$with_includes"
1506 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1507 echo "$as_me: error: argument required for --with-includes option" >&2;}
1508 { (exit 1); exit 1; }; }
1511 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1512 echo "$as_me: error: argument required for --with-includes option" >&2;}
1513 { (exit 1); exit 1; }; }
1525 # Add non-standard directories to the library search path
1530 # Check whether --with-libraries or --without-libraries was given.
1531 if test "${with_libraries+set}" = set; then
1532 withval="$with_libraries"
1536 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1537 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1538 { (exit 1); exit 1; }; }
1541 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1542 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1543 { (exit 1); exit 1; }; }
1546 LIBRARY_DIRS=$withval
1556 # Check whether --with-libs or --without-libs was given.
1557 if test "${with_libs+set}" = set; then
1558 withval="$with_libs"
1562 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1563 echo "$as_me: error: argument required for --with-libs option" >&2;}
1564 { (exit 1); exit 1; }; }
1567 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1568 echo "$as_me: error: argument required for --with-libs option" >&2;}
1569 { (exit 1); exit 1; }; }
1572 LIBRARY_DIRS=$withval
1581 # 64-bit integer date/time storage (--enable-integer-datetimes)
1583 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1584 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1587 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1588 if test "${enable_integer_datetimes+set}" = set; then
1589 enableval="$enable_integer_datetimes"
1594 cat >>confdefs.h <<\_ACEOF
1595 #define USE_INTEGER_DATETIMES 1
1603 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1604 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1605 { (exit 1); exit 1; }; }
1610 enable_integer_datetimes=no
1614 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1615 echo "${ECHO_T}$enable_integer_datetimes" >&6
1621 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1622 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1625 # Check whether --enable-nls or --disable-nls was given.
1626 if test "${enable_nls+set}" = set; then
1627 enableval="$enable_nls"
1638 WANTED_LANGUAGES=$enableval
1647 if test "$enable_nls" = yes; then
1649 cat >>confdefs.h <<\_ACEOF
1650 #define ENABLE_NLS 1
1655 echo "$as_me:$LINENO: result: $enable_nls" >&5
1656 echo "${ECHO_T}$enable_nls" >&6
1661 # Default port number (--with-pgport), default 5432
1663 echo "$as_me:$LINENO: checking for default port number" >&5
1664 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1668 # Check whether --with-pgport or --without-pgport was given.
1669 if test "${with_pgport+set}" = set; then
1670 withval="$with_pgport"
1674 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1675 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1676 { (exit 1); exit 1; }; }
1679 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1680 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1681 { (exit 1); exit 1; }; }
1684 default_port=$withval
1692 echo "$as_me:$LINENO: result: $default_port" >&5
1693 echo "${ECHO_T}$default_port" >&6
1694 # Need both of these because some places want an integer and some a string
1696 cat >>confdefs.h <<_ACEOF
1697 #define DEF_PGPORT ${default_port}
1701 cat >>confdefs.h <<_ACEOF
1702 #define DEF_PGPORT_STR "${default_port}"
1708 # Option to disable shared libraries
1712 # Check whether --enable-shared or --disable-shared was given.
1713 if test "${enable_shared+set}" = set; then
1714 enableval="$enable_shared"
1724 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1725 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1726 { (exit 1); exit 1; }; }
1738 # '-rpath'-like feature can be disabled
1742 # Check whether --enable-rpath or --disable-rpath was given.
1743 if test "${enable_rpath+set}" = set; then
1744 enableval="$enable_rpath"
1754 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1755 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1756 { (exit 1); exit 1; }; }
1772 # Check whether --enable-spinlocks or --disable-spinlocks was given.
1773 if test "${enable_spinlocks+set}" = set; then
1774 enableval="$enable_spinlocks"
1784 { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
1785 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
1786 { (exit 1); exit 1; }; }
1791 enable_spinlocks=yes
1797 # --enable-debug adds -g to compiler flags
1801 # Check whether --enable-debug or --disable-debug was given.
1802 if test "${enable_debug+set}" = set; then
1803 enableval="$enable_debug"
1813 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1814 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1815 { (exit 1); exit 1; }; }
1830 # For historical reasons you can also use --with-CC to specify the C compiler
1831 # to use, although the standard way to do this is to set the CC environment
1836 # Check whether --with-CC or --without-CC was given.
1837 if test "${with_CC+set}" = set; then
1842 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1843 echo "$as_me: error: argument required for --with-CC option" >&2;}
1844 { (exit 1); exit 1; }; }
1847 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1848 echo "$as_me: error: argument required for --with-CC option" >&2;}
1849 { (exit 1); exit 1; }; }
1860 aix) pgac_cc_list="gcc xlc";;
1861 irix) pgac_cc_list="cc";; # no gcc
1862 *) pgac_cc_list="gcc cc";;
1866 ac_cpp='$CPP $CPPFLAGS'
1867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1870 if test -n "$ac_tool_prefix"; then
1871 for ac_prog in $pgac_cc_list
1873 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1874 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1875 echo "$as_me:$LINENO: checking for $ac_word" >&5
1876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1877 if test "${ac_cv_prog_CC+set}" = set; then
1878 echo $ECHO_N "(cached) $ECHO_C" >&6
1880 if test -n "$CC"; then
1881 ac_cv_prog_CC="$CC" # Let the user override the test.
1883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1887 test -z "$as_dir" && as_dir=.
1888 for ac_exec_ext in '' $ac_executable_extensions; do
1889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1890 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1900 if test -n "$CC"; then
1901 echo "$as_me:$LINENO: result: $CC" >&5
1902 echo "${ECHO_T}$CC" >&6
1904 echo "$as_me:$LINENO: result: no" >&5
1905 echo "${ECHO_T}no" >&6
1908 test -n "$CC" && break
1911 if test -z "$CC"; then
1913 for ac_prog in $pgac_cc_list
1915 # Extract the first word of "$ac_prog", so it can be a program name with args.
1916 set dummy $ac_prog; ac_word=$2
1917 echo "$as_me:$LINENO: checking for $ac_word" >&5
1918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1919 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1920 echo $ECHO_N "(cached) $ECHO_C" >&6
1922 if test -n "$ac_ct_CC"; then
1923 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1929 test -z "$as_dir" && as_dir=.
1930 for ac_exec_ext in '' $ac_executable_extensions; do
1931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1932 ac_cv_prog_ac_ct_CC="$ac_prog"
1933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1941 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1942 if test -n "$ac_ct_CC"; then
1943 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1944 echo "${ECHO_T}$ac_ct_CC" >&6
1946 echo "$as_me:$LINENO: result: no" >&5
1947 echo "${ECHO_T}no" >&6
1950 test -n "$ac_ct_CC" && break
1957 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1958 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1959 { (exit 1); exit 1; }; }
1961 # Provide some information about the compiler.
1962 echo "$as_me:$LINENO:" \
1963 "checking for C compiler version" >&5
1964 ac_compiler=`set X $ac_compile; echo $2`
1965 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1966 (eval $ac_compiler --version </dev/null >&5) 2>&5
1968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969 (exit $ac_status); }
1970 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1971 (eval $ac_compiler -v </dev/null >&5) 2>&5
1973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1974 (exit $ac_status); }
1975 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1976 (eval $ac_compiler -V </dev/null >&5) 2>&5
1978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1979 (exit $ac_status); }
1981 cat >conftest.$ac_ext <<_ACEOF
1982 #line $LINENO "configure"
1983 #include "confdefs.h"
1985 #ifdef F77_DUMMY_MAIN
1989 int F77_DUMMY_MAIN() { return 1; }
1999 ac_clean_files_save=$ac_clean_files
2000 ac_clean_files="$ac_clean_files a.out a.exe"
2001 # Try to create an executable without -o first, disregard a.out.
2002 # It will help us diagnose broken compilers, and finding out an intuition
2004 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2005 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2006 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2007 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2008 (eval $ac_link_default) 2>&5
2010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011 (exit $ac_status); }; then
2012 # Find the output, starting from the most likely. This scheme is
2013 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2016 # Be careful to initialize this variable, since it used to be cached.
2017 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2019 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2020 ls a.out conftest 2>/dev/null;
2021 ls a.* conftest.* 2>/dev/null`; do
2023 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2024 a.out ) # We found the default executable, but exeext='' is most
2027 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2028 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2035 echo "$as_me: failed program was:" >&5
2036 cat conftest.$ac_ext >&5
2037 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2038 echo "$as_me: error: C compiler cannot create executables" >&2;}
2039 { (exit 77); exit 77; }; }
2042 ac_exeext=$ac_cv_exeext
2043 echo "$as_me:$LINENO: result: $ac_file" >&5
2044 echo "${ECHO_T}$ac_file" >&6
2046 # Check the compiler produces executables we can run. If not, either
2047 # the compiler is broken, or we cross compile.
2048 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2049 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2050 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2051 # If not cross compiling, check that we can run a simple program.
2052 if test "$cross_compiling" != yes; then
2053 if { ac_try='./$ac_file'
2054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058 (exit $ac_status); }; }; then
2061 if test "$cross_compiling" = maybe; then
2064 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2065 If you meant to cross compile, use \`--host'." >&5
2066 echo "$as_me: error: cannot run C compiled programs.
2067 If you meant to cross compile, use \`--host'." >&2;}
2068 { (exit 1); exit 1; }; }
2072 echo "$as_me:$LINENO: result: yes" >&5
2073 echo "${ECHO_T}yes" >&6
2075 rm -f a.out a.exe conftest$ac_cv_exeext
2076 ac_clean_files=$ac_clean_files_save
2077 # Check the compiler produces executables we can run. If not, either
2078 # the compiler is broken, or we cross compile.
2079 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2080 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2081 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2082 echo "${ECHO_T}$cross_compiling" >&6
2084 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2085 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2087 (eval $ac_link) 2>&5
2089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090 (exit $ac_status); }; then
2091 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2092 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2093 # work properly (i.e., refer to `conftest.exe'), while it won't with
2095 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2097 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2098 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2105 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2106 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2107 { (exit 1); exit 1; }; }
2110 rm -f conftest$ac_cv_exeext
2111 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2112 echo "${ECHO_T}$ac_cv_exeext" >&6
2114 rm -f conftest.$ac_ext
2115 EXEEXT=$ac_cv_exeext
2117 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2118 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2119 if test "${ac_cv_objext+set}" = set; then
2120 echo $ECHO_N "(cached) $ECHO_C" >&6
2122 cat >conftest.$ac_ext <<_ACEOF
2123 #line $LINENO "configure"
2124 #include "confdefs.h"
2126 #ifdef F77_DUMMY_MAIN
2130 int F77_DUMMY_MAIN() { return 1; }
2140 rm -f conftest.o conftest.obj
2141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2142 (eval $ac_compile) 2>&5
2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145 (exit $ac_status); }; then
2146 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2148 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2149 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2154 echo "$as_me: failed program was:" >&5
2155 cat conftest.$ac_ext >&5
2156 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2157 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2158 { (exit 1); exit 1; }; }
2161 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2163 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2164 echo "${ECHO_T}$ac_cv_objext" >&6
2165 OBJEXT=$ac_cv_objext
2167 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2168 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2169 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2170 echo $ECHO_N "(cached) $ECHO_C" >&6
2172 cat >conftest.$ac_ext <<_ACEOF
2173 #line $LINENO "configure"
2174 #include "confdefs.h"
2176 #ifdef F77_DUMMY_MAIN
2180 int F77_DUMMY_MAIN() { return 1; }
2193 rm -f conftest.$ac_objext
2194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2195 (eval $ac_compile) 2>&5
2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); } &&
2199 { ac_try='test -s conftest.$ac_objext'
2200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204 (exit $ac_status); }; }; then
2207 echo "$as_me: failed program was:" >&5
2208 cat conftest.$ac_ext >&5
2211 rm -f conftest.$ac_objext conftest.$ac_ext
2212 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2215 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2216 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2217 GCC=`test $ac_compiler_gnu = yes && echo yes`
2218 ac_test_CFLAGS=${CFLAGS+set}
2219 ac_save_CFLAGS=$CFLAGS
2221 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2222 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2223 if test "${ac_cv_prog_cc_g+set}" = set; then
2224 echo $ECHO_N "(cached) $ECHO_C" >&6
2226 cat >conftest.$ac_ext <<_ACEOF
2227 #line $LINENO "configure"
2228 #include "confdefs.h"
2230 #ifdef F77_DUMMY_MAIN
2234 int F77_DUMMY_MAIN() { return 1; }
2244 rm -f conftest.$ac_objext
2245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2246 (eval $ac_compile) 2>&5
2248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249 (exit $ac_status); } &&
2250 { ac_try='test -s conftest.$ac_objext'
2251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); }; }; then
2258 echo "$as_me: failed program was:" >&5
2259 cat conftest.$ac_ext >&5
2262 rm -f conftest.$ac_objext conftest.$ac_ext
2264 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2265 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2266 if test "$ac_test_CFLAGS" = set; then
2267 CFLAGS=$ac_save_CFLAGS
2268 elif test $ac_cv_prog_cc_g = yes; then
2269 if test "$GCC" = yes; then
2275 if test "$GCC" = yes; then
2281 # Some people use a C++ compiler to compile C. Since we use `exit',
2282 # in C++ we need to declare it. In case someone uses the same compiler
2283 # for both compiling C and C++ we need to have the C++ compiler decide
2284 # the declaration of exit, since it's the most demanding environment.
2285 cat >conftest.$ac_ext <<_ACEOF
2290 rm -f conftest.$ac_objext
2291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2292 (eval $ac_compile) 2>&5
2294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295 (exit $ac_status); } &&
2296 { ac_try='test -s conftest.$ac_objext'
2297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301 (exit $ac_status); }; }; then
2302 for ac_declaration in \
2304 '#include <stdlib.h>' \
2305 'extern "C" void std::exit (int) throw (); using std::exit;' \
2306 'extern "C" void std::exit (int); using std::exit;' \
2307 'extern "C" void exit (int) throw ();' \
2308 'extern "C" void exit (int);' \
2311 cat >conftest.$ac_ext <<_ACEOF
2312 #line $LINENO "configure"
2313 #include "confdefs.h"
2316 #ifdef F77_DUMMY_MAIN
2320 int F77_DUMMY_MAIN() { return 1; }
2330 rm -f conftest.$ac_objext
2331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2332 (eval $ac_compile) 2>&5
2334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335 (exit $ac_status); } &&
2336 { ac_try='test -s conftest.$ac_objext'
2337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341 (exit $ac_status); }; }; then
2344 echo "$as_me: failed program was:" >&5
2345 cat conftest.$ac_ext >&5
2348 rm -f conftest.$ac_objext conftest.$ac_ext
2349 cat >conftest.$ac_ext <<_ACEOF
2350 #line $LINENO "configure"
2351 #include "confdefs.h"
2353 #ifdef F77_DUMMY_MAIN
2357 int F77_DUMMY_MAIN() { return 1; }
2367 rm -f conftest.$ac_objext
2368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2369 (eval $ac_compile) 2>&5
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); } &&
2373 { ac_try='test -s conftest.$ac_objext'
2374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); }; }; then
2381 echo "$as_me: failed program was:" >&5
2382 cat conftest.$ac_ext >&5
2384 rm -f conftest.$ac_objext conftest.$ac_ext
2387 if test -n "$ac_declaration"; then
2388 echo '#ifdef __cplusplus' >>confdefs.h
2389 echo $ac_declaration >>confdefs.h
2390 echo '#endif' >>confdefs.h
2394 echo "$as_me: failed program was:" >&5
2395 cat conftest.$ac_ext >&5
2397 rm -f conftest.$ac_objext conftest.$ac_ext
2399 ac_cpp='$CPP $CPPFLAGS'
2400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2410 . "$srcdir/src/template/$template" || exit
2412 # CFLAGS are selected so:
2413 # If the user specifies something in the environment, that is used.
2414 # else: If the template file set something, that is used.
2415 # else: If the compiler is GCC, then we use -O2.
2416 # else: If the compiler is something else, then we use -0.
2418 if test "$ac_env_CFLAGS_set" = set; then
2419 CFLAGS=$ac_env_CFLAGS_value
2420 elif test "${CFLAGS+set}" = set; then
2421 : # (keep what template set)
2422 elif test "$GCC" = yes; then
2425 # if the user selected debug mode, don't use -O
2426 if test "$enable_debug" != yes; then
2431 # Need to specify -fno-strict-aliasing too in case it's gcc 3.3 or later.
2432 echo "$as_me:$LINENO: checking how to turn off strict aliasing in $CC" >&5
2433 echo $ECHO_N "checking how to turn off strict aliasing in $CC... $ECHO_C" >&6
2434 if test "${pgac_cv_prog_cc_no_strict_aliasing+set}" = set; then
2435 echo $ECHO_N "(cached) $ECHO_C" >&6
2437 pgac_save_CFLAGS=$CFLAGS
2438 if test "$GCC" = yes; then
2439 pgac_try="-fno-strict-aliasing"
2441 # Maybe fill in later...
2445 for pgac_flag in $pgac_try; do
2446 CFLAGS="$pgac_save_CFLAGS $pgac_flag"
2447 cat >conftest.$ac_ext <<_ACEOF
2448 #line $LINENO "configure"
2449 #include "confdefs.h"
2451 #ifdef F77_DUMMY_MAIN
2455 int F77_DUMMY_MAIN() { return 1; }
2465 rm -f conftest.$ac_objext
2466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2467 (eval $ac_compile) 2>&5
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); } &&
2471 { ac_try='test -s conftest.$ac_objext'
2472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); }; }; then
2477 pgac_cv_prog_cc_no_strict_aliasing=$pgac_try
2480 echo "$as_me: failed program was:" >&5
2481 cat conftest.$ac_ext >&5
2483 rm -f conftest.$ac_objext conftest.$ac_ext
2486 CFLAGS=$pgac_save_CFLAGS
2489 echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_no_strict_aliasing" >&5
2490 echo "${ECHO_T}$pgac_cv_prog_cc_no_strict_aliasing" >&6
2492 if test "$ac_env_CFLAGS_set" != set; then
2493 CFLAGS="$CFLAGS $pgac_cv_prog_cc_no_strict_aliasing"
2496 # supply -g if --enable-debug
2497 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2501 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2502 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2504 # We already have this in Makefile.win32, but configure needs it too
2505 if test "$PORTNAME" = "win32"; then
2506 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32"
2509 # Check if the compiler still works with the template settings
2510 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2511 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2513 cat >conftest.$ac_ext <<_ACEOF
2514 #line $LINENO "configure"
2515 #include "confdefs.h"
2517 #ifdef F77_DUMMY_MAIN
2521 int F77_DUMMY_MAIN() { return 1; }
2531 rm -f conftest.$ac_objext conftest$ac_exeext
2532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2533 (eval $ac_link) 2>&5
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); } &&
2537 { ac_try='test -s conftest$ac_exeext'
2538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); }; }; then
2543 echo "$as_me:$LINENO: result: yes" >&5
2544 echo "${ECHO_T}yes" >&6
2546 echo "$as_me: failed program was:" >&5
2547 cat conftest.$ac_ext >&5
2548 echo "$as_me:$LINENO: result: no" >&5
2549 echo "${ECHO_T}no" >&6
2550 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2551 echo "$as_me: error: cannot proceed" >&2;}
2552 { (exit 1); exit 1; }; }
2554 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2556 # Defend against gcc -ffast-math
2557 if test "$GCC" = yes; then
2558 cat >conftest.$ac_ext <<_ACEOF
2559 #line $LINENO "configure"
2560 #include "confdefs.h"
2562 #ifdef F77_DUMMY_MAIN
2566 int F77_DUMMY_MAIN() { return 1; }
2571 #ifdef __FAST_MATH__
2578 rm -f conftest.$ac_objext
2579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2580 (eval $ac_compile) 2>&5
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); } &&
2584 { ac_try='test -s conftest.$ac_objext'
2585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); }; }; then
2592 echo "$as_me: failed program was:" >&5
2593 cat conftest.$ac_ext >&5
2594 { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
2595 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
2596 { (exit 1); exit 1; }; }
2598 rm -f conftest.$ac_objext conftest.$ac_ext
2602 ac_cpp='$CPP $CPPFLAGS'
2603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2606 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2607 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2608 # On Suns, sometimes $CPP names a directory.
2609 if test -n "$CPP" && test -d "$CPP"; then
2612 if test -z "$CPP"; then
2613 if test "${ac_cv_prog_CPP+set}" = set; then
2614 echo $ECHO_N "(cached) $ECHO_C" >&6
2616 # Double quotes because CPP needs to be expanded
2617 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2620 for ac_c_preproc_warn_flag in '' yes
2622 # Use a header file that comes with gcc, so configuring glibc
2623 # with a fresh cross-compiler works.
2624 # On the NeXT, cc -E runs the code through the compiler's parser,
2625 # not just through cpp. "Syntax error" is here to catch this case.
2626 cat >conftest.$ac_ext <<_ACEOF
2627 #line $LINENO "configure"
2628 #include "confdefs.h"
2632 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2633 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2635 egrep -v '^ *\+' conftest.er1 >conftest.err
2637 cat conftest.err >&5
2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639 (exit $ac_status); } >/dev/null; then
2640 if test -s conftest.err; then
2641 ac_cpp_err=$ac_c_preproc_warn_flag
2648 if test -z "$ac_cpp_err"; then
2651 echo "$as_me: failed program was:" >&5
2652 cat conftest.$ac_ext >&5
2653 # Broken: fails on valid input.
2656 rm -f conftest.err conftest.$ac_ext
2658 # OK, works on sane cases. Now check whether non-existent headers
2659 # can be detected and how.
2660 cat >conftest.$ac_ext <<_ACEOF
2661 #line $LINENO "configure"
2662 #include "confdefs.h"
2663 #include <ac_nonexistent.h>
2665 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2666 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2668 egrep -v '^ *\+' conftest.er1 >conftest.err
2670 cat conftest.err >&5
2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); } >/dev/null; then
2673 if test -s conftest.err; then
2674 ac_cpp_err=$ac_c_preproc_warn_flag
2681 if test -z "$ac_cpp_err"; then
2682 # Broken: success on invalid input.
2685 echo "$as_me: failed program was:" >&5
2686 cat conftest.$ac_ext >&5
2687 # Passes both tests.
2691 rm -f conftest.err conftest.$ac_ext
2694 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2695 rm -f conftest.err conftest.$ac_ext
2696 if $ac_preproc_ok; then
2708 echo "$as_me:$LINENO: result: $CPP" >&5
2709 echo "${ECHO_T}$CPP" >&6
2711 for ac_c_preproc_warn_flag in '' yes
2713 # Use a header file that comes with gcc, so configuring glibc
2714 # with a fresh cross-compiler works.
2715 # On the NeXT, cc -E runs the code through the compiler's parser,
2716 # not just through cpp. "Syntax error" is here to catch this case.
2717 cat >conftest.$ac_ext <<_ACEOF
2718 #line $LINENO "configure"
2719 #include "confdefs.h"
2723 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2724 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2726 egrep -v '^ *\+' conftest.er1 >conftest.err
2728 cat conftest.err >&5
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); } >/dev/null; then
2731 if test -s conftest.err; then
2732 ac_cpp_err=$ac_c_preproc_warn_flag
2739 if test -z "$ac_cpp_err"; then
2742 echo "$as_me: failed program was:" >&5
2743 cat conftest.$ac_ext >&5
2744 # Broken: fails on valid input.
2747 rm -f conftest.err conftest.$ac_ext
2749 # OK, works on sane cases. Now check whether non-existent headers
2750 # can be detected and how.
2751 cat >conftest.$ac_ext <<_ACEOF
2752 #line $LINENO "configure"
2753 #include "confdefs.h"
2754 #include <ac_nonexistent.h>
2756 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2757 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2759 egrep -v '^ *\+' conftest.er1 >conftest.err
2761 cat conftest.err >&5
2762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763 (exit $ac_status); } >/dev/null; then
2764 if test -s conftest.err; then
2765 ac_cpp_err=$ac_c_preproc_warn_flag
2772 if test -z "$ac_cpp_err"; then
2773 # Broken: success on invalid input.
2776 echo "$as_me: failed program was:" >&5
2777 cat conftest.$ac_ext >&5
2778 # Passes both tests.
2782 rm -f conftest.err conftest.$ac_ext
2785 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2786 rm -f conftest.err conftest.$ac_ext
2787 if $ac_preproc_ok; then
2790 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2791 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2792 { (exit 1); exit 1; }; }
2796 ac_cpp='$CPP $CPPFLAGS'
2797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2803 # Create compiler version string
2804 if test x"$GCC" = x"yes" ; then
2805 cc_string="GCC `${CC} --version | sed q`"
2810 cat >>confdefs.h <<_ACEOF
2811 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2817 # Set up TAS assembly code if needed; the template file has now had its
2818 # chance to request this.
2820 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
2823 if test "$need_tas" = yes ; then
2832 # Automatic dependency tracking
2836 # Check whether --enable-depend or --disable-depend was given.
2837 if test "${enable_depend+set}" = set; then
2838 enableval="$enable_depend"
2848 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2849 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2850 { (exit 1); exit 1; }; }
2863 # Enable assert checks
2867 # Check whether --enable-cassert or --disable-cassert was given.
2868 if test "${enable_cassert+set}" = set; then
2869 enableval="$enable_cassert"
2874 cat >>confdefs.h <<\_ACEOF
2875 #define USE_ASSERT_CHECKING 1
2883 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2884 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2885 { (exit 1); exit 1; }; }
2897 # Include directories
2901 # SRCH_INC comes from the template file
2902 for dir in $with_includes $SRCH_INC; do
2903 if test -d "$dir"; then
2904 INCLUDES="$INCLUDES -I$dir"
2906 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2907 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2915 # Library directories
2919 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2920 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2921 if test -d "$dir"; then
2922 LIBDIRS="$LIBDIRS -L$dir"
2924 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2925 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2931 # Enable thread-safe client libraries
2933 echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
2934 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6
2937 # Check whether --enable-thread-safety or --disable-thread-safety was given.
2938 if test "${enable_thread_safety+set}" = set; then
2939 enableval="$enable_thread_safety"
2944 cat >>confdefs.h <<\_ACEOF
2945 #define ENABLE_THREAD_SAFETY 1
2953 { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
2954 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
2955 { (exit 1); exit 1; }; }
2960 enable_thread_safety=no
2964 echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
2965 echo "${ECHO_T}$enable_thread_safety" >&6
2971 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2972 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2976 # Check whether --with-tcl or --without-tcl was given.
2977 if test "${with_tcl+set}" = set; then
2988 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
2989 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2990 { (exit 1); exit 1; }; }
2999 echo "$as_me:$LINENO: result: $with_tcl" >&5
3000 echo "${ECHO_T}$with_tcl" >&6
3003 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
3004 echo "$as_me:$LINENO: checking whether to build with Tk" >&5
3005 echo $ECHO_N "checking whether to build with Tk... $ECHO_C" >&6
3006 if test "$with_tcl" = yes; then
3010 # Check whether --with-tk or --without-tk was given.
3011 if test "${with_tk+set}" = set; then
3022 { { echo "$as_me:$LINENO: error: no argument expected for --with-tk option" >&5
3023 echo "$as_me: error: no argument expected for --with-tk option" >&2;}
3024 { (exit 1); exit 1; }; }
3036 echo "$as_me:$LINENO: result: $with_tk" >&5
3037 echo "${ECHO_T}$with_tk" >&6
3041 # We see if the path to the Tcl/Tk configuration scripts is specified.
3042 # This will override the use of tclsh to find the paths to search.
3047 # Check whether --with-tclconfig or --without-tclconfig was given.
3048 if test "${with_tclconfig+set}" = set; then
3049 withval="$with_tclconfig"
3053 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3054 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3055 { (exit 1); exit 1; }; }
3058 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
3059 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
3060 { (exit 1); exit 1; }; }
3070 # We see if the path to the Tk configuration scripts is specified.
3071 # This will override the use of tclsh to find the paths to search.
3076 # Check whether --with-tkconfig or --without-tkconfig was given.
3077 if test "${with_tkconfig+set}" = set; then
3078 withval="$with_tkconfig"
3082 { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
3083 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
3084 { (exit 1); exit 1; }; }
3087 { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
3088 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
3089 { (exit 1); exit 1; }; }
3100 # Optionally build Perl modules (PL/Perl)
3102 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
3103 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
3107 # Check whether --with-perl or --without-perl was given.
3108 if test "${with_perl+set}" = set; then
3109 withval="$with_perl"
3119 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
3120 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
3121 { (exit 1); exit 1; }; }
3130 echo "$as_me:$LINENO: result: $with_perl" >&5
3131 echo "${ECHO_T}$with_perl" >&6
3135 # Optionally build Python modules (PL/Python)
3137 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
3138 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
3142 # Check whether --with-python or --without-python was given.
3143 if test "${with_python+set}" = set; then
3144 withval="$with_python"
3154 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3155 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3156 { (exit 1); exit 1; }; }
3165 echo "$as_me:$LINENO: result: $with_python" >&5
3166 echo "${ECHO_T}$with_python" >&6
3170 # Optionally build the Java/JDBC tools
3172 echo "$as_me:$LINENO: checking whether to build Java/JDBC tools" >&5
3173 echo $ECHO_N "checking whether to build Java/JDBC tools... $ECHO_C" >&6
3177 # Check whether --with-java or --without-java was given.
3178 if test "${with_java+set}" = set; then
3179 withval="$with_java"
3183 echo "$as_me:$LINENO: result: yes" >&5
3184 echo "${ECHO_T}yes" >&6
3186 for ac_prog in jakarta-ant ant ant.sh ant.bat
3188 # Extract the first word of "$ac_prog", so it can be a program name with args.
3189 set dummy $ac_prog; ac_word=$2
3190 echo "$as_me:$LINENO: checking for $ac_word" >&5
3191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3192 if test "${ac_cv_path_ANT+set}" = set; then
3193 echo $ECHO_N "(cached) $ECHO_C" >&6
3197 ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
3200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204 test -z "$as_dir" && as_dir=.
3205 for ac_exec_ext in '' $ac_executable_extensions; do
3206 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3207 ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
3208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3219 if test -n "$ANT"; then
3220 echo "$as_me:$LINENO: result: $ANT" >&5
3221 echo "${ECHO_T}$ANT" >&6
3223 echo "$as_me:$LINENO: result: no" >&5
3224 echo "${ECHO_T}no" >&6
3227 test -n "$ANT" && break
3231 echo "$as_me:$LINENO: checking whether $ANT works" >&5
3232 echo $ECHO_N "checking whether $ANT works... $ECHO_C" >&6
3233 if test "${pgac_cv_prog_ant_works+set}" = set; then
3234 echo $ECHO_N "(cached) $ECHO_C" >&6
3237 cat > conftest.java << EOF
3238 public class conftest {
3239 int testmethod(int a, int b) {
3245 cat > conftest.xml << EOF
3246 <project name="conftest" default="conftest">
3247 <target name="conftest">
3248 <javac srcdir="." includes="conftest.java">
3254 pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
3255 { (eval echo "$as_me:$LINENO: \"$pgac_cmd\"") >&5
3256 (eval $pgac_cmd) 2>&5
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); }
3261 if test $? = 0 && test -f ./conftest.class ; then
3262 pgac_cv_prog_ant_works=yes
3264 echo "configure: failed java program was:" >&5
3265 cat conftest.java >&5
3266 echo "configure: failed build file was:" >&5
3267 cat conftest.xml >&5
3268 pgac_cv_prog_ant_works=no
3271 rm -f conftest* core core.* *.core
3274 echo "$as_me:$LINENO: result: $pgac_cv_prog_ant_works" >&5
3275 echo "${ECHO_T}$pgac_cv_prog_ant_works" >&6
3277 if test "$pgac_cv_prog_ant_works" != yes; then
3278 { { echo "$as_me:$LINENO: error: ant does not work" >&5
3279 echo "$as_me: error: ant does not work" >&2;}
3280 { (exit 1); exit 1; }; }
3284 if test -z "$ANT"; then
3285 { { echo "$as_me:$LINENO: error: Ant is required to build Java components
3286 If you have Ant already installed, see config.log for details on the failure." >&5
3287 echo "$as_me: error: Ant is required to build Java components
3288 If you have Ant already installed, see config.log for details on the failure." >&2;}
3289 { (exit 1); exit 1; }; }
3291 if "$ANT" -version | egrep -i 'ant version' | sed q | egrep -v ' 1\.[5-9]| [2-9]\.' >/dev/null ; then
3292 { { echo "$as_me:$LINENO: error: Ant version >= 1.5 is required to build Java components" >&5
3293 echo "$as_me: error: Ant version >= 1.5 is required to build Java components" >&2;}
3294 { (exit 1); exit 1; }; }
3298 echo "$as_me:$LINENO: result: no" >&5
3299 echo "${ECHO_T}no" >&6
3302 { { echo "$as_me:$LINENO: error: no argument expected for --with-java option" >&5
3303 echo "$as_me: error: no argument expected for --with-java option" >&2;}
3304 { (exit 1); exit 1; }; }
3310 echo "$as_me:$LINENO: result: no" >&5
3311 echo "${ECHO_T}no" >&6
3319 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3320 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3324 # Check whether --with-krb4 or --without-krb4 was given.
3325 if test "${with_krb4+set}" = set; then
3326 withval="$with_krb4"
3332 cat >>confdefs.h <<\_ACEOF
3336 krb_srvtab="/etc/srvtab"
3343 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb4 option" >&5
3344 echo "$as_me: error: no argument expected for --with-krb4 option" >&2;}
3345 { (exit 1); exit 1; }; }
3354 echo "$as_me:$LINENO: result: $with_krb4" >&5
3355 echo "${ECHO_T}$with_krb4" >&6
3362 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3363 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3367 # Check whether --with-krb5 or --without-krb5 was given.
3368 if test "${with_krb5+set}" = set; then
3369 withval="$with_krb5"
3375 cat >>confdefs.h <<\_ACEOF
3379 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3386 { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
3387 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
3388 { (exit 1); exit 1; }; }
3397 echo "$as_me:$LINENO: result: $with_krb5" >&5
3398 echo "${ECHO_T}$with_krb5" >&6
3402 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3403 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3404 { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3405 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3406 { (exit 1); exit 1; }; }
3413 # Kerberos configuration parameters
3418 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3419 if test "${with_krb_srvnam+set}" = set; then
3420 withval="$with_krb_srvnam"
3424 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3425 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3426 { (exit 1); exit 1; }; }
3429 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3430 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3431 { (exit 1); exit 1; }; }
3439 with_krb_srvnam="postgres"
3443 cat >>confdefs.h <<_ACEOF
3444 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3452 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3453 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3457 # Check whether --with-pam or --without-pam was given.
3458 if test "${with_pam+set}" = set; then
3464 cat >>confdefs.h <<\_ACEOF
3473 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3474 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3475 { (exit 1); exit 1; }; }
3484 echo "$as_me:$LINENO: result: $with_pam" >&5
3485 echo "${ECHO_T}$with_pam" >&6
3492 echo "$as_me:$LINENO: checking whether to build with Rendezvous support" >&5
3493 echo $ECHO_N "checking whether to build with Rendezvous support... $ECHO_C" >&6
3497 # Check whether --with-rendezvous or --without-rendezvous was given.
3498 if test "${with_rendezvous+set}" = set; then
3499 withval="$with_rendezvous"
3504 cat >>confdefs.h <<\_ACEOF
3505 #define USE_RENDEZVOUS 1
3513 { { echo "$as_me:$LINENO: error: no argument expected for --with-rendezvous option" >&5
3514 echo "$as_me: error: no argument expected for --with-rendezvous option" >&2;}
3515 { (exit 1); exit 1; }; }
3524 echo "$as_me:$LINENO: result: $with_rendezvous" >&5
3525 echo "${ECHO_T}$with_rendezvous" >&6
3532 echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
3533 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6
3537 # Check whether --with-openssl or --without-openssl was given.
3538 if test "${with_openssl+set}" = set; then
3539 withval="$with_openssl"
3544 cat >>confdefs.h <<\_ACEOF
3553 { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
3554 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
3555 { (exit 1); exit 1; }; }
3564 echo "$as_me:$LINENO: result: $with_openssl" >&5
3565 echo "${ECHO_T}$with_openssl" >&6
3575 # Check whether --with-readline or --without-readline was given.
3576 if test "${with_readline+set}" = set; then
3577 withval="$with_readline"
3587 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3588 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3589 { (exit 1); exit 1; }; }
3605 # Check whether --with-zlib or --without-zlib was given.
3606 if test "${with_zlib+set}" = set; then
3607 withval="$with_zlib"
3617 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3618 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3619 { (exit 1); exit 1; }; }
3633 # Assume system is ELF if it predefines __ELF__ as 1,
3634 # otherwise believe host_os based default.
3636 freebsd1*|freebsd2*) elf=no;;
3637 freebsd3*|freebsd4*) elf=yes;;
3641 cat >conftest.$ac_ext <<_ACEOF
3642 #line $LINENO "configure"
3643 #include "confdefs.h"
3649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3650 egrep "yes" >/dev/null 2>&1; then
3653 if test "X$elf" = "Xyes" ; then
3667 CPPFLAGS="$CPPFLAGS $INCLUDES"
3668 LDFLAGS="$LDFLAGS $LIBDIRS"
3670 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
3671 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
3672 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
3673 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
3676 for ac_prog in gawk mawk nawk awk
3678 # Extract the first word of "$ac_prog", so it can be a program name with args.
3679 set dummy $ac_prog; ac_word=$2
3680 echo "$as_me:$LINENO: checking for $ac_word" >&5
3681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3682 if test "${ac_cv_prog_AWK+set}" = set; then
3683 echo $ECHO_N "(cached) $ECHO_C" >&6
3685 if test -n "$AWK"; then
3686 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3692 test -z "$as_dir" && as_dir=.
3693 for ac_exec_ext in '' $ac_executable_extensions; do
3694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3695 ac_cv_prog_AWK="$ac_prog"
3696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3705 if test -n "$AWK"; then
3706 echo "$as_me:$LINENO: result: $AWK" >&5
3707 echo "${ECHO_T}$AWK" >&6
3709 echo "$as_me:$LINENO: result: no" >&5
3710 echo "${ECHO_T}no" >&6
3713 test -n "$AWK" && break
3716 echo "$as_me:$LINENO: checking for flex" >&5
3717 echo $ECHO_N "checking for flex... $ECHO_C" >&6
3718 if test "${pgac_cv_path_flex+set}" = set; then
3719 echo $ECHO_N "(cached) $ECHO_C" >&6
3721 # Let the user override the test
3722 if test -n "$FLEX"; then
3723 pgac_cv_path_flex=$FLEX
3727 for pgac_dir in $PATH; do
3728 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
3731 for pgac_prog in flex lex; do
3732 pgac_candidate="$pgac_dir/$pgac_prog"
3733 if test -f "$pgac_candidate" \
3734 && $pgac_candidate --version </dev/null >/dev/null 2>&1
3736 echo '%%' > conftest.l
3737 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
3738 if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
3739 pgac_broken_flex=$pgac_candidate
3743 pgac_cv_path_flex=$pgac_candidate
3751 : ${pgac_cv_path_flex=no}
3755 echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
3756 echo "${ECHO_T}$pgac_cv_path_flex" >&6
3757 if test x"$pgac_cv_path_flex" = x"no"; then
3758 if test -n "$pgac_broken_flex"; then
3759 { echo "$as_me:$LINENO: WARNING:
3760 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3761 *** should get version 2.5.4 or later." >&5
3762 echo "$as_me: WARNING:
3763 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
3764 *** should get version 2.5.4 or later." >&2;}
3767 { echo "$as_me:$LINENO: WARNING:
3768 *** Without Flex you will not be able to build PostgreSQL from CVS or
3769 *** change any of the scanner definition files. You can obtain Flex from
3770 *** a GNU mirror site. (If you are using the official distribution of
3771 *** PostgreSQL then you do not need to worry about this because the Flex
3772 *** output is pre-generated.)" >&5
3773 echo "$as_me: WARNING:
3774 *** Without Flex you will not be able to build PostgreSQL from CVS or
3775 *** change any of the scanner definition files. You can obtain Flex from
3776 *** a GNU mirror site. (If you are using the official distribution of
3777 *** PostgreSQL then you do not need to worry about this because the Flex
3778 *** output is pre-generated.)" >&2;}
3781 if test x"$pgac_cv_path_flex" = x"no"; then
3784 FLEX=$pgac_cv_path_flex
3790 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3791 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3793 if test "$LN_S" = "ln -s"; then
3794 echo "$as_me:$LINENO: result: yes" >&5
3795 echo "${ECHO_T}yes" >&6
3797 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3798 echo "${ECHO_T}no, using $LN_S" >&6
3802 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3803 if test "${with_gnu_ld+set}" = set; then
3804 withval="$with_gnu_ld"
3805 test "$withval" = no || with_gnu_ld=yes
3810 if test "$GCC" = yes; then
3811 # Check if gcc -print-prog-name=ld gives a path.
3812 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3813 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3816 # gcc leaves a trailing carriage return which upsets mingw
3817 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3819 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3822 # Accept absolute paths.
3823 [\\/]* | [A-Za-z]:[\\/]*)
3824 re_direlt='/[^/][^/]*/\.\./'
3825 # Canonicalize the path of ld
3826 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3827 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3828 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3830 test -z "$LD" && LD="$ac_prog"
3833 # If it fails, then pretend we aren't using GCC.
3837 # If it is relative, then search for the first ld in PATH.
3841 elif test "$with_gnu_ld" = yes; then
3842 echo "$as_me:$LINENO: checking for GNU ld" >&5
3843 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3845 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3846 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3848 if test "${ac_cv_path_LD+set}" = set; then
3849 echo $ECHO_N "(cached) $ECHO_C" >&6
3851 if test -z "$LD"; then
3852 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3853 for ac_dir in $PATH; do
3854 test -z "$ac_dir" && ac_dir=.
3855 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3856 ac_cv_path_LD="$ac_dir/$ac_prog"
3857 # Check to see if the program is GNU ld. I'd rather use --version,
3858 # but apparently some GNU ld's only accept -v.
3859 # Break only if it was the GNU/non-GNU ld that we prefer.
3860 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3861 test "$with_gnu_ld" != no && break
3863 test "$with_gnu_ld" != yes && break
3869 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3874 if test -n "$LD"; then
3875 echo "$as_me:$LINENO: result: $LD" >&5
3876 echo "${ECHO_T}$LD" >&6
3878 echo "$as_me:$LINENO: result: no" >&5
3879 echo "${ECHO_T}no" >&6
3881 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3882 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3883 { (exit 1); exit 1; }; }
3884 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3885 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3886 if test "${ac_cv_prog_gnu_ld+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
3889 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3890 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3891 ac_cv_prog_gnu_ld=yes
3893 ac_cv_prog_gnu_ld=no
3896 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
3897 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
3898 with_gnu_ld=$ac_cv_prog_gnu_ld
3903 case $host_os in sysv5*)
3904 echo "$as_me:$LINENO: checking whether ld -R works" >&5
3905 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6
3906 if test "${pgac_cv_prog_ld_R+set}" = set; then
3907 echo $ECHO_N "(cached) $ECHO_C" >&6
3910 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
3911 cat >conftest.$ac_ext <<_ACEOF
3912 #line $LINENO "configure"
3913 #include "confdefs.h"
3915 #ifdef F77_DUMMY_MAIN
3919 int F77_DUMMY_MAIN() { return 1; }
3929 rm -f conftest.$ac_objext conftest$ac_exeext
3930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3931 (eval $ac_link) 2>&5
3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934 (exit $ac_status); } &&
3935 { ac_try='test -s conftest$ac_exeext'
3936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); }; }; then
3941 pgac_cv_prog_ld_R=yes
3943 echo "$as_me: failed program was:" >&5
3944 cat conftest.$ac_ext >&5
3945 pgac_cv_prog_ld_R=no
3947 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3948 LDFLAGS=$pgac_save_LDFLAGS
3951 echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
3952 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6
3953 ld_R_works=$pgac_cv_prog_ld_R
3956 if test -n "$ac_tool_prefix"; then
3957 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3958 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3959 echo "$as_me:$LINENO: checking for $ac_word" >&5
3960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3961 if test "${ac_cv_prog_RANLIB+set}" = set; then
3962 echo $ECHO_N "(cached) $ECHO_C" >&6
3964 if test -n "$RANLIB"; then
3965 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971 test -z "$as_dir" && as_dir=.
3972 for ac_exec_ext in '' $ac_executable_extensions; do
3973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3974 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3983 RANLIB=$ac_cv_prog_RANLIB
3984 if test -n "$RANLIB"; then
3985 echo "$as_me:$LINENO: result: $RANLIB" >&5
3986 echo "${ECHO_T}$RANLIB" >&6
3988 echo "$as_me:$LINENO: result: no" >&5
3989 echo "${ECHO_T}no" >&6
3993 if test -z "$ac_cv_prog_RANLIB"; then
3994 ac_ct_RANLIB=$RANLIB
3995 # Extract the first word of "ranlib", so it can be a program name with args.
3996 set dummy ranlib; ac_word=$2
3997 echo "$as_me:$LINENO: checking for $ac_word" >&5
3998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3999 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4002 if test -n "$ac_ct_RANLIB"; then
4003 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009 test -z "$as_dir" && as_dir=.
4010 for ac_exec_ext in '' $ac_executable_extensions; do
4011 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4012 ac_cv_prog_ac_ct_RANLIB="ranlib"
4013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4019 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4022 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4023 if test -n "$ac_ct_RANLIB"; then
4024 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4025 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4027 echo "$as_me:$LINENO: result: no" >&5
4028 echo "${ECHO_T}no" >&6
4031 RANLIB=$ac_ct_RANLIB
4033 RANLIB="$ac_cv_prog_RANLIB"
4036 for ac_prog in lorder
4038 # Extract the first word of "$ac_prog", so it can be a program name with args.
4039 set dummy $ac_prog; ac_word=$2
4040 echo "$as_me:$LINENO: checking for $ac_word" >&5
4041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4042 if test "${ac_cv_prog_LORDER+set}" = set; then
4043 echo $ECHO_N "(cached) $ECHO_C" >&6
4045 if test -n "$LORDER"; then
4046 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
4048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4052 test -z "$as_dir" && as_dir=.
4053 for ac_exec_ext in '' $ac_executable_extensions; do
4054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4055 ac_cv_prog_LORDER="$ac_prog"
4056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4064 LORDER=$ac_cv_prog_LORDER
4065 if test -n "$LORDER"; then
4066 echo "$as_me:$LINENO: result: $LORDER" >&5
4067 echo "${ECHO_T}$LORDER" >&6
4069 echo "$as_me:$LINENO: result: no" >&5
4070 echo "${ECHO_T}no" >&6
4073 test -n "$LORDER" && break
4076 # Extract the first word of "tar", so it can be a program name with args.
4077 set dummy tar; ac_word=$2
4078 echo "$as_me:$LINENO: checking for $ac_word" >&5
4079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4080 if test "${ac_cv_path_TAR+set}" = set; then
4081 echo $ECHO_N "(cached) $ECHO_C" >&6
4085 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4092 test -z "$as_dir" && as_dir=.
4093 for ac_exec_ext in '' $ac_executable_extensions; do
4094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4095 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4107 if test -n "$TAR"; then
4108 echo "$as_me:$LINENO: result: $TAR" >&5
4109 echo "${ECHO_T}$TAR" >&6
4111 echo "$as_me:$LINENO: result: no" >&5
4112 echo "${ECHO_T}no" >&6
4116 if test -n "$ac_tool_prefix"; then
4117 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4118 set dummy ${ac_tool_prefix}strip; ac_word=$2
4119 echo "$as_me:$LINENO: checking for $ac_word" >&5
4120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4121 if test "${ac_cv_prog_STRIP+set}" = set; then
4122 echo $ECHO_N "(cached) $ECHO_C" >&6
4124 if test -n "$STRIP"; then
4125 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131 test -z "$as_dir" && as_dir=.
4132 for ac_exec_ext in '' $ac_executable_extensions; do
4133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4134 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4143 STRIP=$ac_cv_prog_STRIP
4144 if test -n "$STRIP"; then
4145 echo "$as_me:$LINENO: result: $STRIP" >&5
4146 echo "${ECHO_T}$STRIP" >&6
4148 echo "$as_me:$LINENO: result: no" >&5
4149 echo "${ECHO_T}no" >&6
4153 if test -z "$ac_cv_prog_STRIP"; then
4155 # Extract the first word of "strip", so it can be a program name with args.
4156 set dummy strip; ac_word=$2
4157 echo "$as_me:$LINENO: checking for $ac_word" >&5
4158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4159 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4160 echo $ECHO_N "(cached) $ECHO_C" >&6
4162 if test -n "$ac_ct_STRIP"; then
4163 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4169 test -z "$as_dir" && as_dir=.
4170 for ac_exec_ext in '' $ac_executable_extensions; do
4171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4172 ac_cv_prog_ac_ct_STRIP="strip"
4173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4179 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4182 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4183 if test -n "$ac_ct_STRIP"; then
4184 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4185 echo "${ECHO_T}$ac_ct_STRIP" >&6
4187 echo "$as_me:$LINENO: result: no" >&5
4188 echo "${ECHO_T}no" >&6
4193 STRIP="$ac_cv_prog_STRIP"
4197 echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
4198 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6
4199 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
4200 STRIP_STATIC_LIB="$STRIP -x"
4201 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
4202 echo "$as_me:$LINENO: result: yes" >&5
4203 echo "${ECHO_T}yes" >&6
4207 echo "$as_me:$LINENO: result: no" >&5
4208 echo "${ECHO_T}no" >&6
4214 for ac_prog in 'bison -y'
4216 # Extract the first word of "$ac_prog", so it can be a program name with args.
4217 set dummy $ac_prog; ac_word=$2
4218 echo "$as_me:$LINENO: checking for $ac_word" >&5
4219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4220 if test "${ac_cv_prog_YACC+set}" = set; then
4221 echo $ECHO_N "(cached) $ECHO_C" >&6
4223 if test -n "$YACC"; then
4224 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4230 test -z "$as_dir" && as_dir=.
4231 for ac_exec_ext in '' $ac_executable_extensions; do
4232 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4233 ac_cv_prog_YACC="$ac_prog"
4234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4242 YACC=$ac_cv_prog_YACC
4243 if test -n "$YACC"; then
4244 echo "$as_me:$LINENO: result: $YACC" >&5
4245 echo "${ECHO_T}$YACC" >&6
4247 echo "$as_me:$LINENO: result: no" >&5
4248 echo "${ECHO_T}no" >&6
4251 test -n "$YACC" && break
4255 if test "$YACC"; then
4256 if $YACC --version | sed q | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'; then
4257 { echo "$as_me:$LINENO: WARNING:
4258 *** The installed version of Bison is too old. PostgreSQL needs
4259 *** Bison version 1.875 or later." >&5
4260 echo "$as_me: WARNING:
4261 *** The installed version of Bison is too old. PostgreSQL needs
4262 *** Bison version 1.875 or later." >&2;}
4266 if test -z "$YACC"; then
4267 { echo "$as_me:$LINENO: WARNING:
4268 *** Without Bison you will not be able to build PostgreSQL from CVS or
4269 *** change any of the parser definition files. You can obtain Bison from
4270 *** a GNU mirror site. (If you are using the official distribution of
4271 *** PostgreSQL then you do not need to worry about this because the Bison
4272 *** output is pre-generated.) To use a different yacc program (possible,
4273 *** but not recommended), set the environment variable YACC before running
4274 *** 'configure'." >&5
4275 echo "$as_me: WARNING:
4276 *** Without Bison you will not be able to build PostgreSQL from CVS or
4277 *** change any of the parser definition files. You can obtain Bison from
4278 *** a GNU mirror site. (If you are using the official distribution of
4279 *** PostgreSQL then you do not need to worry about this because the Bison
4280 *** output is pre-generated.) To use a different yacc program (possible,
4281 *** but not recommended), set the environment variable YACC before running
4282 *** 'configure'." >&2;}
4286 # Extract the first word of "perl", so it can be a program name with args.
4287 set dummy perl; ac_word=$2
4288 echo "$as_me:$LINENO: checking for $ac_word" >&5
4289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4290 if test "${ac_cv_path_PERL+set}" = set; then
4291 echo $ECHO_N "(cached) $ECHO_C" >&6
4295 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4302 test -z "$as_dir" && as_dir=.
4303 for ac_exec_ext in '' $ac_executable_extensions; do
4304 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4305 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4315 PERL=$ac_cv_path_PERL
4317 if test -n "$PERL"; then
4318 echo "$as_me:$LINENO: result: $PERL" >&5
4319 echo "${ECHO_T}$PERL" >&6
4321 echo "$as_me:$LINENO: result: no" >&5
4322 echo "${ECHO_T}no" >&6
4325 if test "$with_perl" = yes; then
4327 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4328 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4329 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4330 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4331 echo "${ECHO_T}$perl_archlibexp" >&6
4332 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4333 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4334 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4335 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4336 echo "${ECHO_T}$perl_privlibexp" >&6
4337 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4338 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4339 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4340 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4341 echo "${ECHO_T}$perl_useshrplib" >&6
4343 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4344 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4345 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4346 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4347 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4348 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4349 echo "${ECHO_T}$perl_embed_ldflags" >&6
4352 if test "$with_python" = yes; then
4353 # Extract the first word of "python", so it can be a program name with args.
4354 set dummy python; ac_word=$2
4355 echo "$as_me:$LINENO: checking for $ac_word" >&5
4356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4357 if test "${ac_cv_path_PYTHON+set}" = set; then
4358 echo $ECHO_N "(cached) $ECHO_C" >&6
4362 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369 test -z "$as_dir" && as_dir=.
4370 for ac_exec_ext in '' $ac_executable_extensions; do
4371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4372 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4382 PYTHON=$ac_cv_path_PYTHON
4384 if test -n "$PYTHON"; then
4385 echo "$as_me:$LINENO: result: $PYTHON" >&5
4386 echo "${ECHO_T}$PYTHON" >&6
4388 echo "$as_me:$LINENO: result: no" >&5
4389 echo "${ECHO_T}no" >&6
4392 if test x"$PYTHON" = x""; then
4393 { { echo "$as_me:$LINENO: error: Python not found" >&5
4394 echo "$as_me: error: Python not found" >&2;}
4395 { (exit 1); exit 1; }; }
4399 echo "$as_me:$LINENO: checking Python installation directories" >&5
4400 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
4401 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4402 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
4403 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
4404 python_configdir="${python_execprefix}/lib/python${python_version}/config"
4405 python_includespec="-I${python_prefix}/include/python${python_version}"
4406 if test "$python_prefix" != "$python_execprefix"; then
4407 python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
4410 # This should be enough of a message.
4411 if test "$python_prefix" != "$python_execprefix"; then
4412 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
4413 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
4415 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
4416 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
4420 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4421 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4423 if test ! -f "$python_configdir/Makefile"; then
4424 echo "$as_me:$LINENO: result: no" >&5
4425 echo "${ECHO_T}no" >&6
4426 { { echo "$as_me:$LINENO: error: Python Makefile not found" >&5
4427 echo "$as_me: error: Python Makefile not found" >&2;}
4428 { (exit 1); exit 1; }; }
4431 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4432 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
4433 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
4434 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4435 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4437 pgac_tab=" " # tab character
4438 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"`
4440 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
4441 echo "${ECHO_T}${python_libspec}" >&6
4451 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
4454 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
4455 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
4456 if test "${ac_cv_lib_bsd_main+set}" = set; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
4459 ac_check_lib_save_LIBS=$LIBS
4461 cat >conftest.$ac_ext <<_ACEOF
4462 #line $LINENO "configure"
4463 #include "confdefs.h"
4466 #ifdef F77_DUMMY_MAIN
4470 int F77_DUMMY_MAIN() { return 1; }
4480 rm -f conftest.$ac_objext conftest$ac_exeext
4481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4482 (eval $ac_link) 2>&5
4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); } &&
4486 { ac_try='test -s conftest$ac_exeext'
4487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); }; }; then
4492 ac_cv_lib_bsd_main=yes
4494 echo "$as_me: failed program was:" >&5
4495 cat conftest.$ac_ext >&5
4496 ac_cv_lib_bsd_main=no
4498 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4499 LIBS=$ac_check_lib_save_LIBS
4501 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
4502 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
4503 if test $ac_cv_lib_bsd_main = yes; then
4504 cat >>confdefs.h <<_ACEOF
4505 #define HAVE_LIBBSD 1
4514 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
4515 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
4516 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
4517 echo $ECHO_N "(cached) $ECHO_C" >&6
4519 ac_check_lib_save_LIBS=$LIBS
4521 cat >conftest.$ac_ext <<_ACEOF
4522 #line $LINENO "configure"
4523 #include "confdefs.h"
4525 /* Override any gcc2 internal prototype to avoid an error. */
4529 /* We use char because int might match the return type of a gcc2
4530 builtin and then its argument prototype would still apply. */
4531 char setproctitle ();
4532 #ifdef F77_DUMMY_MAIN
4536 int F77_DUMMY_MAIN() { return 1; }
4546 rm -f conftest.$ac_objext conftest$ac_exeext
4547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4548 (eval $ac_link) 2>&5
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); } &&
4552 { ac_try='test -s conftest$ac_exeext'
4553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); }; }; then
4558 ac_cv_lib_util_setproctitle=yes
4560 echo "$as_me: failed program was:" >&5
4561 cat conftest.$ac_ext >&5
4562 ac_cv_lib_util_setproctitle=no
4564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4565 LIBS=$ac_check_lib_save_LIBS
4567 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
4568 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
4569 if test $ac_cv_lib_util_setproctitle = yes; then
4570 cat >>confdefs.h <<_ACEOF
4571 #define HAVE_LIBUTIL 1
4579 echo "$as_me:$LINENO: checking for main in -lm" >&5
4580 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4581 if test "${ac_cv_lib_m_main+set}" = set; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4584 ac_check_lib_save_LIBS=$LIBS
4586 cat >conftest.$ac_ext <<_ACEOF
4587 #line $LINENO "configure"
4588 #include "confdefs.h"
4591 #ifdef F77_DUMMY_MAIN
4595 int F77_DUMMY_MAIN() { return 1; }
4605 rm -f conftest.$ac_objext conftest$ac_exeext
4606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4607 (eval $ac_link) 2>&5
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); } &&
4611 { ac_try='test -s conftest$ac_exeext'
4612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); }; }; then
4617 ac_cv_lib_m_main=yes
4619 echo "$as_me: failed program was:" >&5
4620 cat conftest.$ac_ext >&5
4623 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4624 LIBS=$ac_check_lib_save_LIBS
4626 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4627 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4628 if test $ac_cv_lib_m_main = yes; then
4629 cat >>confdefs.h <<_ACEOF
4638 echo "$as_me:$LINENO: checking for main in -ldl" >&5
4639 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
4640 if test "${ac_cv_lib_dl_main+set}" = set; then
4641 echo $ECHO_N "(cached) $ECHO_C" >&6
4643 ac_check_lib_save_LIBS=$LIBS
4645 cat >conftest.$ac_ext <<_ACEOF
4646 #line $LINENO "configure"
4647 #include "confdefs.h"
4650 #ifdef F77_DUMMY_MAIN
4654 int F77_DUMMY_MAIN() { return 1; }
4664 rm -f conftest.$ac_objext conftest$ac_exeext
4665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4666 (eval $ac_link) 2>&5
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); } &&
4670 { ac_try='test -s conftest$ac_exeext'
4671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); }; }; then
4676 ac_cv_lib_dl_main=yes
4678 echo "$as_me: failed program was:" >&5
4679 cat conftest.$ac_ext >&5
4680 ac_cv_lib_dl_main=no
4682 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4683 LIBS=$ac_check_lib_save_LIBS
4685 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
4686 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
4687 if test $ac_cv_lib_dl_main = yes; then
4688 cat >>confdefs.h <<_ACEOF
4689 #define HAVE_LIBDL 1
4697 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
4698 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
4699 if test "${ac_cv_lib_nsl_main+set}" = set; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4702 ac_check_lib_save_LIBS=$LIBS
4704 cat >conftest.$ac_ext <<_ACEOF
4705 #line $LINENO "configure"
4706 #include "confdefs.h"
4709 #ifdef F77_DUMMY_MAIN
4713 int F77_DUMMY_MAIN() { return 1; }
4723 rm -f conftest.$ac_objext conftest$ac_exeext
4724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4725 (eval $ac_link) 2>&5
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); } &&
4729 { ac_try='test -s conftest$ac_exeext'
4730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); }; }; then
4735 ac_cv_lib_nsl_main=yes
4737 echo "$as_me: failed program was:" >&5
4738 cat conftest.$ac_ext >&5
4739 ac_cv_lib_nsl_main=no
4741 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4742 LIBS=$ac_check_lib_save_LIBS
4744 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
4745 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
4746 if test $ac_cv_lib_nsl_main = yes; then
4747 cat >>confdefs.h <<_ACEOF
4748 #define HAVE_LIBNSL 1
4756 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
4757 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
4758 if test "${ac_cv_lib_socket_main+set}" = set; then
4759 echo $ECHO_N "(cached) $ECHO_C" >&6
4761 ac_check_lib_save_LIBS=$LIBS
4762 LIBS="-lsocket $LIBS"
4763 cat >conftest.$ac_ext <<_ACEOF
4764 #line $LINENO "configure"
4765 #include "confdefs.h"
4768 #ifdef F77_DUMMY_MAIN
4772 int F77_DUMMY_MAIN() { return 1; }
4782 rm -f conftest.$ac_objext conftest$ac_exeext
4783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4784 (eval $ac_link) 2>&5
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); } &&
4788 { ac_try='test -s conftest$ac_exeext'
4789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); }; }; then
4794 ac_cv_lib_socket_main=yes
4796 echo "$as_me: failed program was:" >&5
4797 cat conftest.$ac_ext >&5
4798 ac_cv_lib_socket_main=no
4800 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4801 LIBS=$ac_check_lib_save_LIBS
4803 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
4804 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
4805 if test $ac_cv_lib_socket_main = yes; then
4806 cat >>confdefs.h <<_ACEOF
4807 #define HAVE_LIBSOCKET 1
4810 LIBS="-lsocket $LIBS"
4815 echo "$as_me:$LINENO: checking for main in -lipc" >&5
4816 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
4817 if test "${ac_cv_lib_ipc_main+set}" = set; then
4818 echo $ECHO_N "(cached) $ECHO_C" >&6
4820 ac_check_lib_save_LIBS=$LIBS
4822 cat >conftest.$ac_ext <<_ACEOF
4823 #line $LINENO "configure"
4824 #include "confdefs.h"
4827 #ifdef F77_DUMMY_MAIN
4831 int F77_DUMMY_MAIN() { return 1; }
4841 rm -f conftest.$ac_objext conftest$ac_exeext
4842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4843 (eval $ac_link) 2>&5
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); } &&
4847 { ac_try='test -s conftest$ac_exeext'
4848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); }; }; then
4853 ac_cv_lib_ipc_main=yes
4855 echo "$as_me: failed program was:" >&5
4856 cat conftest.$ac_ext >&5
4857 ac_cv_lib_ipc_main=no
4859 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4860 LIBS=$ac_check_lib_save_LIBS
4862 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
4863 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
4864 if test $ac_cv_lib_ipc_main = yes; then
4865 cat >>confdefs.h <<_ACEOF
4866 #define HAVE_LIBIPC 1
4874 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
4875 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
4876 if test "${ac_cv_lib_IPC_main+set}" = set; then
4877 echo $ECHO_N "(cached) $ECHO_C" >&6
4879 ac_check_lib_save_LIBS=$LIBS
4881 cat >conftest.$ac_ext <<_ACEOF
4882 #line $LINENO "configure"
4883 #include "confdefs.h"
4886 #ifdef F77_DUMMY_MAIN
4890 int F77_DUMMY_MAIN() { return 1; }
4900 rm -f conftest.$ac_objext conftest$ac_exeext
4901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4902 (eval $ac_link) 2>&5
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); } &&
4906 { ac_try='test -s conftest$ac_exeext'
4907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); }; }; then
4912 ac_cv_lib_IPC_main=yes
4914 echo "$as_me: failed program was:" >&5
4915 cat conftest.$ac_ext >&5
4916 ac_cv_lib_IPC_main=no
4918 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4919 LIBS=$ac_check_lib_save_LIBS
4921 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
4922 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
4923 if test $ac_cv_lib_IPC_main = yes; then
4924 cat >>confdefs.h <<_ACEOF
4925 #define HAVE_LIBIPC 1
4933 echo "$as_me:$LINENO: checking for main in -llc" >&5
4934 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
4935 if test "${ac_cv_lib_lc_main+set}" = set; then
4936 echo $ECHO_N "(cached) $ECHO_C" >&6
4938 ac_check_lib_save_LIBS=$LIBS
4940 cat >conftest.$ac_ext <<_ACEOF
4941 #line $LINENO "configure"
4942 #include "confdefs.h"
4945 #ifdef F77_DUMMY_MAIN
4949 int F77_DUMMY_MAIN() { return 1; }
4959 rm -f conftest.$ac_objext conftest$ac_exeext
4960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4961 (eval $ac_link) 2>&5
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); } &&
4965 { ac_try='test -s conftest$ac_exeext'
4966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); }; }; then
4971 ac_cv_lib_lc_main=yes
4973 echo "$as_me: failed program was:" >&5
4974 cat conftest.$ac_ext >&5
4975 ac_cv_lib_lc_main=no
4977 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4978 LIBS=$ac_check_lib_save_LIBS
4980 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
4981 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
4982 if test $ac_cv_lib_lc_main = yes; then
4983 cat >>confdefs.h <<_ACEOF
4984 #define HAVE_LIBLC 1
4992 echo "$as_me:$LINENO: checking for main in -ldld" >&5
4993 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
4994 if test "${ac_cv_lib_dld_main+set}" = set; then
4995 echo $ECHO_N "(cached) $ECHO_C" >&6
4997 ac_check_lib_save_LIBS=$LIBS
4999 cat >conftest.$ac_ext <<_ACEOF
5000 #line $LINENO "configure"
5001 #include "confdefs.h"
5004 #ifdef F77_DUMMY_MAIN
5008 int F77_DUMMY_MAIN() { return 1; }
5018 rm -f conftest.$ac_objext conftest$ac_exeext
5019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5020 (eval $ac_link) 2>&5
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); } &&
5024 { ac_try='test -s conftest$ac_exeext'
5025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); }; }; then
5030 ac_cv_lib_dld_main=yes
5032 echo "$as_me: failed program was:" >&5
5033 cat conftest.$ac_ext >&5
5034 ac_cv_lib_dld_main=no
5036 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5037 LIBS=$ac_check_lib_save_LIBS
5039 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
5040 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
5041 if test $ac_cv_lib_dld_main = yes; then
5042 cat >>confdefs.h <<_ACEOF
5043 #define HAVE_LIBDLD 1
5051 echo "$as_me:$LINENO: checking for main in -lld" >&5
5052 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
5053 if test "${ac_cv_lib_ld_main+set}" = set; then
5054 echo $ECHO_N "(cached) $ECHO_C" >&6
5056 ac_check_lib_save_LIBS=$LIBS
5058 cat >conftest.$ac_ext <<_ACEOF
5059 #line $LINENO "configure"
5060 #include "confdefs.h"
5063 #ifdef F77_DUMMY_MAIN
5067 int F77_DUMMY_MAIN() { return 1; }
5077 rm -f conftest.$ac_objext conftest$ac_exeext
5078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5079 (eval $ac_link) 2>&5
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); } &&
5083 { ac_try='test -s conftest$ac_exeext'
5084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 (exit $ac_status); }; }; then
5089 ac_cv_lib_ld_main=yes
5091 echo "$as_me: failed program was:" >&5
5092 cat conftest.$ac_ext >&5
5093 ac_cv_lib_ld_main=no
5095 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5096 LIBS=$ac_check_lib_save_LIBS
5098 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
5099 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
5100 if test $ac_cv_lib_ld_main = yes; then
5101 cat >>confdefs.h <<_ACEOF
5102 #define HAVE_LIBLD 1
5110 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
5111 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
5112 if test "${ac_cv_lib_compat_main+set}" = set; then
5113 echo $ECHO_N "(cached) $ECHO_C" >&6
5115 ac_check_lib_save_LIBS=$LIBS
5116 LIBS="-lcompat $LIBS"
5117 cat >conftest.$ac_ext <<_ACEOF
5118 #line $LINENO "configure"
5119 #include "confdefs.h"
5122 #ifdef F77_DUMMY_MAIN
5126 int F77_DUMMY_MAIN() { return 1; }
5136 rm -f conftest.$ac_objext conftest$ac_exeext
5137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5138 (eval $ac_link) 2>&5
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); } &&
5142 { ac_try='test -s conftest$ac_exeext'
5143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); }; }; then
5148 ac_cv_lib_compat_main=yes
5150 echo "$as_me: failed program was:" >&5
5151 cat conftest.$ac_ext >&5
5152 ac_cv_lib_compat_main=no
5154 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5155 LIBS=$ac_check_lib_save_LIBS
5157 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5158 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5159 if test $ac_cv_lib_compat_main = yes; then
5160 cat >>confdefs.h <<_ACEOF
5161 #define HAVE_LIBCOMPAT 1
5164 LIBS="-lcompat $LIBS"
5169 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5170 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5171 if test "${ac_cv_lib_BSD_main+set}" = set; then
5172 echo $ECHO_N "(cached) $ECHO_C" >&6
5174 ac_check_lib_save_LIBS=$LIBS
5176 cat >conftest.$ac_ext <<_ACEOF
5177 #line $LINENO "configure"
5178 #include "confdefs.h"
5181 #ifdef F77_DUMMY_MAIN
5185 int F77_DUMMY_MAIN() { return 1; }
5195 rm -f conftest.$ac_objext conftest$ac_exeext
5196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5197 (eval $ac_link) 2>&5
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); } &&
5201 { ac_try='test -s conftest$ac_exeext'
5202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); }; }; then
5207 ac_cv_lib_BSD_main=yes
5209 echo "$as_me: failed program was:" >&5
5210 cat conftest.$ac_ext >&5
5211 ac_cv_lib_BSD_main=no
5213 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5214 LIBS=$ac_check_lib_save_LIBS
5216 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5217 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5218 if test $ac_cv_lib_BSD_main = yes; then
5219 cat >>confdefs.h <<_ACEOF
5220 #define HAVE_LIBBSD 1
5228 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5229 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5230 if test "${ac_cv_lib_gen_main+set}" = set; then
5231 echo $ECHO_N "(cached) $ECHO_C" >&6
5233 ac_check_lib_save_LIBS=$LIBS
5235 cat >conftest.$ac_ext <<_ACEOF
5236 #line $LINENO "configure"
5237 #include "confdefs.h"
5240 #ifdef F77_DUMMY_MAIN
5244 int F77_DUMMY_MAIN() { return 1; }
5254 rm -f conftest.$ac_objext conftest$ac_exeext
5255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5256 (eval $ac_link) 2>&5
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); } &&
5260 { ac_try='test -s conftest$ac_exeext'
5261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); }; }; then
5266 ac_cv_lib_gen_main=yes
5268 echo "$as_me: failed program was:" >&5
5269 cat conftest.$ac_ext >&5
5270 ac_cv_lib_gen_main=no
5272 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5273 LIBS=$ac_check_lib_save_LIBS
5275 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5276 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5277 if test $ac_cv_lib_gen_main = yes; then
5278 cat >>confdefs.h <<_ACEOF
5279 #define HAVE_LIBGEN 1
5287 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5288 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5289 if test "${ac_cv_lib_PW_main+set}" = set; then
5290 echo $ECHO_N "(cached) $ECHO_C" >&6
5292 ac_check_lib_save_LIBS=$LIBS
5294 cat >conftest.$ac_ext <<_ACEOF
5295 #line $LINENO "configure"
5296 #include "confdefs.h"
5299 #ifdef F77_DUMMY_MAIN
5303 int F77_DUMMY_MAIN() { return 1; }
5313 rm -f conftest.$ac_objext conftest$ac_exeext
5314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5315 (eval $ac_link) 2>&5
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); } &&
5319 { ac_try='test -s conftest$ac_exeext'
5320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324 (exit $ac_status); }; }; then
5325 ac_cv_lib_PW_main=yes
5327 echo "$as_me: failed program was:" >&5
5328 cat conftest.$ac_ext >&5
5329 ac_cv_lib_PW_main=no
5331 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5332 LIBS=$ac_check_lib_save_LIBS
5334 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5335 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5336 if test $ac_cv_lib_PW_main = yes; then
5337 cat >>confdefs.h <<_ACEOF
5338 #define HAVE_LIBPW 1
5346 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5347 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5348 if test "${ac_cv_lib_resolv_main+set}" = set; then
5349 echo $ECHO_N "(cached) $ECHO_C" >&6
5351 ac_check_lib_save_LIBS=$LIBS
5352 LIBS="-lresolv $LIBS"
5353 cat >conftest.$ac_ext <<_ACEOF
5354 #line $LINENO "configure"
5355 #include "confdefs.h"
5358 #ifdef F77_DUMMY_MAIN
5362 int F77_DUMMY_MAIN() { return 1; }
5372 rm -f conftest.$ac_objext conftest$ac_exeext
5373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5374 (eval $ac_link) 2>&5
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); } &&
5378 { ac_try='test -s conftest$ac_exeext'
5379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); }; }; then
5384 ac_cv_lib_resolv_main=yes
5386 echo "$as_me: failed program was:" >&5
5387 cat conftest.$ac_ext >&5
5388 ac_cv_lib_resolv_main=no
5390 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5391 LIBS=$ac_check_lib_save_LIBS
5393 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
5394 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
5395 if test $ac_cv_lib_resolv_main = yes; then
5396 cat >>confdefs.h <<_ACEOF
5397 #define HAVE_LIBRESOLV 1
5400 LIBS="-lresolv $LIBS"
5404 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5405 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5406 if test "${ac_cv_search_getopt_long+set}" = set; then
5407 echo $ECHO_N "(cached) $ECHO_C" >&6
5409 ac_func_search_save_LIBS=$LIBS
5410 ac_cv_search_getopt_long=no
5411 cat >conftest.$ac_ext <<_ACEOF
5412 #line $LINENO "configure"
5413 #include "confdefs.h"
5415 /* Override any gcc2 internal prototype to avoid an error. */
5419 /* We use char because int might match the return type of a gcc2
5420 builtin and then its argument prototype would still apply. */
5421 char getopt_long ();
5422 #ifdef F77_DUMMY_MAIN
5426 int F77_DUMMY_MAIN() { return 1; }
5436 rm -f conftest.$ac_objext conftest$ac_exeext
5437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5438 (eval $ac_link) 2>&5
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); } &&
5442 { ac_try='test -s conftest$ac_exeext'
5443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); }; }; then
5448 ac_cv_search_getopt_long="none required"
5450 echo "$as_me: failed program was:" >&5
5451 cat conftest.$ac_ext >&5
5453 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5454 if test "$ac_cv_search_getopt_long" = no; then
5455 for ac_lib in getopt gnugetopt; do
5456 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5457 cat >conftest.$ac_ext <<_ACEOF
5458 #line $LINENO "configure"
5459 #include "confdefs.h"
5461 /* Override any gcc2 internal prototype to avoid an error. */
5465 /* We use char because int might match the return type of a gcc2
5466 builtin and then its argument prototype would still apply. */
5467 char getopt_long ();
5468 #ifdef F77_DUMMY_MAIN
5472 int F77_DUMMY_MAIN() { return 1; }
5482 rm -f conftest.$ac_objext conftest$ac_exeext
5483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5484 (eval $ac_link) 2>&5
5486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487 (exit $ac_status); } &&
5488 { ac_try='test -s conftest$ac_exeext'
5489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493 (exit $ac_status); }; }; then
5494 ac_cv_search_getopt_long="-l$ac_lib"
5497 echo "$as_me: failed program was:" >&5
5498 cat conftest.$ac_ext >&5
5500 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5503 LIBS=$ac_func_search_save_LIBS
5505 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5506 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5507 if test "$ac_cv_search_getopt_long" != no; then
5508 test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5514 echo "$as_me:$LINENO: checking for main in -lunix" >&5
5515 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
5516 if test "${ac_cv_lib_unix_main+set}" = set; then
5517 echo $ECHO_N "(cached) $ECHO_C" >&6
5519 ac_check_lib_save_LIBS=$LIBS
5521 cat >conftest.$ac_ext <<_ACEOF
5522 #line $LINENO "configure"
5523 #include "confdefs.h"
5526 #ifdef F77_DUMMY_MAIN
5530 int F77_DUMMY_MAIN() { return 1; }
5540 rm -f conftest.$ac_objext conftest$ac_exeext
5541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5542 (eval $ac_link) 2>&5
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); } &&
5546 { ac_try='test -s conftest$ac_exeext'
5547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); }; }; then
5552 ac_cv_lib_unix_main=yes
5554 echo "$as_me: failed program was:" >&5
5555 cat conftest.$ac_ext >&5
5556 ac_cv_lib_unix_main=no
5558 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5559 LIBS=$ac_check_lib_save_LIBS
5561 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
5562 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
5563 if test $ac_cv_lib_unix_main = yes; then
5564 cat >>confdefs.h <<_ACEOF
5565 #define HAVE_LIBUNIX 1
5572 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5573 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5574 if test "${ac_cv_search_crypt+set}" = set; then
5575 echo $ECHO_N "(cached) $ECHO_C" >&6
5577 ac_func_search_save_LIBS=$LIBS
5578 ac_cv_search_crypt=no
5579 cat >conftest.$ac_ext <<_ACEOF
5580 #line $LINENO "configure"
5581 #include "confdefs.h"
5583 /* Override any gcc2 internal prototype to avoid an error. */
5587 /* We use char because int might match the return type of a gcc2
5588 builtin and then its argument prototype would still apply. */
5590 #ifdef F77_DUMMY_MAIN
5594 int F77_DUMMY_MAIN() { return 1; }
5604 rm -f conftest.$ac_objext conftest$ac_exeext
5605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5606 (eval $ac_link) 2>&5
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); } &&
5610 { ac_try='test -s conftest$ac_exeext'
5611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); }; }; then
5616 ac_cv_search_crypt="none required"
5618 echo "$as_me: failed program was:" >&5
5619 cat conftest.$ac_ext >&5
5621 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5622 if test "$ac_cv_search_crypt" = no; then
5623 for ac_lib in crypt; do
5624 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5625 cat >conftest.$ac_ext <<_ACEOF
5626 #line $LINENO "configure"
5627 #include "confdefs.h"
5629 /* Override any gcc2 internal prototype to avoid an error. */
5633 /* We use char because int might match the return type of a gcc2
5634 builtin and then its argument prototype would still apply. */
5636 #ifdef F77_DUMMY_MAIN
5640 int F77_DUMMY_MAIN() { return 1; }
5650 rm -f conftest.$ac_objext conftest$ac_exeext
5651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5652 (eval $ac_link) 2>&5
5654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655 (exit $ac_status); } &&
5656 { ac_try='test -s conftest$ac_exeext'
5657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); }; }; then
5662 ac_cv_search_crypt="-l$ac_lib"
5665 echo "$as_me: failed program was:" >&5
5666 cat conftest.$ac_ext >&5
5668 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5671 LIBS=$ac_func_search_save_LIBS
5673 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
5674 echo "${ECHO_T}$ac_cv_search_crypt" >&6
5675 if test "$ac_cv_search_crypt" != no; then
5676 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
5681 if test "$PORTNAME" = "beos"
5684 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
5685 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
5686 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
5687 echo $ECHO_N "(cached) $ECHO_C" >&6
5689 ac_check_lib_save_LIBS=$LIBS
5691 cat >conftest.$ac_ext <<_ACEOF
5692 #line $LINENO "configure"
5693 #include "confdefs.h"
5695 /* Override any gcc2 internal prototype to avoid an error. */
5699 /* We use char because int might match the return type of a gcc2
5700 builtin and then its argument prototype would still apply. */
5701 char __inet_ntoa ();
5702 #ifdef F77_DUMMY_MAIN
5706 int F77_DUMMY_MAIN() { return 1; }
5716 rm -f conftest.$ac_objext conftest$ac_exeext
5717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5718 (eval $ac_link) 2>&5
5720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721 (exit $ac_status); } &&
5722 { ac_try='test -s conftest$ac_exeext'
5723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727 (exit $ac_status); }; }; then
5728 ac_cv_lib_bind___inet_ntoa=yes
5730 echo "$as_me: failed program was:" >&5
5731 cat conftest.$ac_ext >&5
5732 ac_cv_lib_bind___inet_ntoa=no
5734 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5735 LIBS=$ac_check_lib_save_LIBS
5737 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
5738 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
5739 if test $ac_cv_lib_bind___inet_ntoa = yes; then
5740 cat >>confdefs.h <<_ACEOF
5741 #define HAVE_LIBBIND 1
5750 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
5751 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
5752 if test "${ac_cv_search_fdatasync+set}" = set; then
5753 echo $ECHO_N "(cached) $ECHO_C" >&6
5755 ac_func_search_save_LIBS=$LIBS
5756 ac_cv_search_fdatasync=no
5757 cat >conftest.$ac_ext <<_ACEOF
5758 #line $LINENO "configure"
5759 #include "confdefs.h"
5761 /* Override any gcc2 internal prototype to avoid an error. */
5765 /* We use char because int might match the return type of a gcc2
5766 builtin and then its argument prototype would still apply. */
5768 #ifdef F77_DUMMY_MAIN
5772 int F77_DUMMY_MAIN() { return 1; }
5782 rm -f conftest.$ac_objext conftest$ac_exeext
5783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5784 (eval $ac_link) 2>&5
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); } &&
5788 { ac_try='test -s conftest$ac_exeext'
5789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); }; }; then
5794 ac_cv_search_fdatasync="none required"
5796 echo "$as_me: failed program was:" >&5
5797 cat conftest.$ac_ext >&5
5799 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5800 if test "$ac_cv_search_fdatasync" = no; then
5801 for ac_lib in rt posix4; do
5802 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5803 cat >conftest.$ac_ext <<_ACEOF
5804 #line $LINENO "configure"
5805 #include "confdefs.h"
5807 /* Override any gcc2 internal prototype to avoid an error. */
5811 /* We use char because int might match the return type of a gcc2
5812 builtin and then its argument prototype would still apply. */
5814 #ifdef F77_DUMMY_MAIN
5818 int F77_DUMMY_MAIN() { return 1; }
5828 rm -f conftest.$ac_objext conftest$ac_exeext
5829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5830 (eval $ac_link) 2>&5
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); } &&
5834 { ac_try='test -s conftest$ac_exeext'
5835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); }; }; then
5840 ac_cv_search_fdatasync="-l$ac_lib"
5843 echo "$as_me: failed program was:" >&5
5844 cat conftest.$ac_ext >&5
5846 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5849 LIBS=$ac_func_search_save_LIBS
5851 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
5852 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
5853 if test "$ac_cv_search_fdatasync" != no; then
5854 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
5860 echo "$as_me:$LINENO: checking for shmget in -lcygipc" >&5
5861 echo $ECHO_N "checking for shmget in -lcygipc... $ECHO_C" >&6
5862 if test "${ac_cv_lib_cygipc_shmget+set}" = set; then
5863 echo $ECHO_N "(cached) $ECHO_C" >&6
5865 ac_check_lib_save_LIBS=$LIBS
5866 LIBS="-lcygipc $LIBS"
5867 cat >conftest.$ac_ext <<_ACEOF
5868 #line $LINENO "configure"
5869 #include "confdefs.h"
5871 /* Override any gcc2 internal prototype to avoid an error. */
5875 /* We use char because int might match the return type of a gcc2
5876 builtin and then its argument prototype would still apply. */
5878 #ifdef F77_DUMMY_MAIN
5882 int F77_DUMMY_MAIN() { return 1; }
5892 rm -f conftest.$ac_objext conftest$ac_exeext
5893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5894 (eval $ac_link) 2>&5
5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897 (exit $ac_status); } &&
5898 { ac_try='test -s conftest$ac_exeext'
5899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); }; }; then
5904 ac_cv_lib_cygipc_shmget=yes
5906 echo "$as_me: failed program was:" >&5
5907 cat conftest.$ac_ext >&5
5908 ac_cv_lib_cygipc_shmget=no
5910 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5911 LIBS=$ac_check_lib_save_LIBS
5913 echo "$as_me:$LINENO: result: $ac_cv_lib_cygipc_shmget" >&5
5914 echo "${ECHO_T}$ac_cv_lib_cygipc_shmget" >&6
5915 if test $ac_cv_lib_cygipc_shmget = yes; then
5916 cat >>confdefs.h <<_ACEOF
5917 #define HAVE_LIBCYGIPC 1
5920 LIBS="-lcygipc $LIBS"
5925 if test "$PORTNAME" = "win32"
5928 echo "$as_me:$LINENO: checking for main in -lwsock32" >&5
5929 echo $ECHO_N "checking for main in -lwsock32... $ECHO_C" >&6
5930 if test "${ac_cv_lib_wsock32_main+set}" = set; then
5931 echo $ECHO_N "(cached) $ECHO_C" >&6
5933 ac_check_lib_save_LIBS=$LIBS
5934 LIBS="-lwsock32 $LIBS"
5935 cat >conftest.$ac_ext <<_ACEOF
5936 #line $LINENO "configure"
5937 #include "confdefs.h"
5940 #ifdef F77_DUMMY_MAIN
5944 int F77_DUMMY_MAIN() { return 1; }
5954 rm -f conftest.$ac_objext conftest$ac_exeext
5955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5956 (eval $ac_link) 2>&5
5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); } &&
5960 { ac_try='test -s conftest$ac_exeext'
5961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); }; }; then
5966 ac_cv_lib_wsock32_main=yes
5968 echo "$as_me: failed program was:" >&5
5969 cat conftest.$ac_ext >&5
5970 ac_cv_lib_wsock32_main=no
5972 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5973 LIBS=$ac_check_lib_save_LIBS
5975 echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_main" >&5
5976 echo "${ECHO_T}$ac_cv_lib_wsock32_main" >&6
5977 if test $ac_cv_lib_wsock32_main = yes; then
5978 cat >>confdefs.h <<_ACEOF
5979 #define HAVE_LIBWSOCK32 1
5982 LIBS="-lwsock32 $LIBS"
5988 if test "$with_readline" = yes; then
5990 echo "$as_me:$LINENO: checking for readline" >&5
5991 echo $ECHO_N "checking for readline... $ECHO_C" >&6
5993 if test "${pgac_cv_check_readline+set}" = set; then
5994 echo $ECHO_N "(cached) $ECHO_C" >&6
5996 pgac_cv_check_readline=no
5997 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
5998 for pgac_rllib in -lreadline -ledit ; do
5999 pgac_save_LIBS=$LIBS
6000 LIBS="${pgac_rllib}${pgac_lib} $LIBS"
6001 cat >conftest.$ac_ext <<_ACEOF
6002 #line $LINENO "configure"
6003 #include "confdefs.h"
6005 /* Override any gcc2 internal prototype to avoid an error. */
6009 /* We use char because int might match the return type of a gcc2
6010 builtin and then its argument prototype would still apply. */
6012 #ifdef F77_DUMMY_MAIN
6016 int F77_DUMMY_MAIN() { return 1; }
6026 rm -f conftest.$ac_objext conftest$ac_exeext
6027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6028 (eval $ac_link) 2>&5
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); } &&
6032 { ac_try='test -s conftest$ac_exeext'
6033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037 (exit $ac_status); }; }; then
6039 # NetBSD and OpenBSD have a broken linker that does not
6040 # recognize dependent libraries
6041 case $host_os in netbsd* | openbsd* )
6044 *) pgac_lib=" -lcurses" ;;
6048 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
6052 echo "$as_me: failed program was:" >&5
6053 cat conftest.$ac_ext >&5
6055 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6056 LIBS=$pgac_save_LIBS
6059 LIBS=$pgac_save_LIBS
6063 if test "$pgac_cv_check_readline" != no ; then
6065 cat >>confdefs.h <<\_ACEOF
6066 #define HAVE_LIBREADLINE 1
6069 LIBS="$pgac_cv_check_readline $LIBS"
6070 echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
6071 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
6073 echo "$as_me:$LINENO: result: no" >&5
6074 echo "${ECHO_T}no" >&6
6076 if test x"$pgac_cv_check_readline" = x"no"; then
6077 { { echo "$as_me:$LINENO: error: readline library not found
6078 If you have readline already installed, see config.log for details on the
6079 failure. It is possible the compiler isn't looking in the proper directory.
6080 Use --without-readline to disable readline support." >&5
6081 echo "$as_me: error: readline library not found
6082 If you have readline already installed, see config.log for details on the
6083 failure. It is possible the compiler isn't looking in the proper directory.
6084 Use --without-readline to disable readline support." >&2;}
6085 { (exit 1); exit 1; }; }
6089 if test "$with_zlib" = yes; then
6091 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6092 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6093 if test "${ac_cv_lib_z_inflate+set}" = set; then
6094 echo $ECHO_N "(cached) $ECHO_C" >&6
6096 ac_check_lib_save_LIBS=$LIBS
6098 cat >conftest.$ac_ext <<_ACEOF
6099 #line $LINENO "configure"
6100 #include "confdefs.h"
6102 /* Override any gcc2 internal prototype to avoid an error. */
6106 /* We use char because int might match the return type of a gcc2
6107 builtin and then its argument prototype would still apply. */
6109 #ifdef F77_DUMMY_MAIN
6113 int F77_DUMMY_MAIN() { return 1; }
6123 rm -f conftest.$ac_objext conftest$ac_exeext
6124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6125 (eval $ac_link) 2>&5
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); } &&
6129 { ac_try='test -s conftest$ac_exeext'
6130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); }; }; then
6135 ac_cv_lib_z_inflate=yes
6137 echo "$as_me: failed program was:" >&5
6138 cat conftest.$ac_ext >&5
6139 ac_cv_lib_z_inflate=no
6141 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6142 LIBS=$ac_check_lib_save_LIBS
6144 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6145 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6146 if test $ac_cv_lib_z_inflate = yes; then
6147 cat >>confdefs.h <<_ACEOF
6154 { { echo "$as_me:$LINENO: error: zlib library not found
6155 If you have zlib already installed, see config.log for details on the
6156 failure. It is possible the compiler isn't looking in the proper directory.
6157 Use --without-zlib to disable zlib support." >&5
6158 echo "$as_me: error: zlib library not found
6159 If you have zlib already installed, see config.log for details on the
6160 failure. It is possible the compiler isn't looking in the proper directory.
6161 Use --without-zlib to disable zlib support." >&2;}
6162 { (exit 1); exit 1; }; }
6167 if test "$enable_spinlocks" = yes; then
6169 cat >>confdefs.h <<\_ACEOF
6170 #define HAVE_SPINLOCKS 1
6174 { echo "$as_me:$LINENO: WARNING:
6175 *** Not using spinlocks will cause poor performance." >&5
6176 echo "$as_me: WARNING:
6177 *** Not using spinlocks will cause poor performance." >&2;}
6180 if test "$with_krb4" = yes ; then
6182 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
6183 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
6184 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
6185 echo $ECHO_N "(cached) $ECHO_C" >&6
6187 ac_check_lib_save_LIBS=$LIBS
6189 cat >conftest.$ac_ext <<_ACEOF
6190 #line $LINENO "configure"
6191 #include "confdefs.h"
6193 /* Override any gcc2 internal prototype to avoid an error. */
6197 /* We use char because int might match the return type of a gcc2
6198 builtin and then its argument prototype would still apply. */
6199 char des_encrypt ();
6200 #ifdef F77_DUMMY_MAIN
6204 int F77_DUMMY_MAIN() { return 1; }
6214 rm -f conftest.$ac_objext conftest$ac_exeext
6215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6216 (eval $ac_link) 2>&5
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); } &&
6220 { ac_try='test -s conftest$ac_exeext'
6221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); }; }; then
6226 ac_cv_lib_des_des_encrypt=yes
6228 echo "$as_me: failed program was:" >&5
6229 cat conftest.$ac_ext >&5
6230 ac_cv_lib_des_des_encrypt=no
6232 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6233 LIBS=$ac_check_lib_save_LIBS
6235 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6236 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6237 if test $ac_cv_lib_des_des_encrypt = yes; then
6238 cat >>confdefs.h <<_ACEOF
6239 #define HAVE_LIBDES 1
6245 { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6246 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6247 { (exit 1); exit 1; }; }
6251 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6252 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6253 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6254 echo $ECHO_N "(cached) $ECHO_C" >&6
6256 ac_check_lib_save_LIBS=$LIBS
6258 cat >conftest.$ac_ext <<_ACEOF
6259 #line $LINENO "configure"
6260 #include "confdefs.h"
6262 /* Override any gcc2 internal prototype to avoid an error. */
6266 /* We use char because int might match the return type of a gcc2
6267 builtin and then its argument prototype would still apply. */
6268 char krb_sendauth ();
6269 #ifdef F77_DUMMY_MAIN
6273 int F77_DUMMY_MAIN() { return 1; }
6283 rm -f conftest.$ac_objext conftest$ac_exeext
6284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6285 (eval $ac_link) 2>&5
6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); } &&
6289 { ac_try='test -s conftest$ac_exeext'
6290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); }; }; then
6295 ac_cv_lib_krb_krb_sendauth=yes
6297 echo "$as_me: failed program was:" >&5
6298 cat conftest.$ac_ext >&5
6299 ac_cv_lib_krb_krb_sendauth=no
6301 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6302 LIBS=$ac_check_lib_save_LIBS
6304 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6305 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6306 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6307 cat >>confdefs.h <<_ACEOF
6308 #define HAVE_LIBKRB 1
6314 { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6315 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6316 { (exit 1); exit 1; }; }
6320 for ac_func in gethostname
6322 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6323 echo "$as_me:$LINENO: checking for $ac_func" >&5
6324 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6325 if eval "test \"\${$as_ac_var+set}\" = set"; then
6326 echo $ECHO_N "(cached) $ECHO_C" >&6
6328 cat >conftest.$ac_ext <<_ACEOF
6329 #line $LINENO "configure"
6330 #include "confdefs.h"
6331 /* System header to define __stub macros and hopefully few prototypes,
6332 which can conflict with char $ac_func (); below. */
6334 /* Override any gcc2 internal prototype to avoid an error. */
6338 /* We use char because int might match the return type of a gcc2
6339 builtin and then its argument prototype would still apply. */
6343 #ifdef F77_DUMMY_MAIN
6347 int F77_DUMMY_MAIN() { return 1; }
6352 /* The GNU C library defines this for functions which it implements
6353 to always fail with ENOSYS. Some functions are actually named
6354 something starting with __ and the normal name is an alias. */
6355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6365 rm -f conftest.$ac_objext conftest$ac_exeext
6366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6367 (eval $ac_link) 2>&5
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); } &&
6371 { ac_try='test -s conftest$ac_exeext'
6372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376 (exit $ac_status); }; }; then
6377 eval "$as_ac_var=yes"
6379 echo "$as_me: failed program was:" >&5
6380 cat conftest.$ac_ext >&5
6381 eval "$as_ac_var=no"
6383 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6386 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6387 if test `eval echo '${'$as_ac_var'}'` = yes; then
6388 cat >>confdefs.h <<_ACEOF
6389 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6393 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6400 if test "$with_krb5" = yes ; then
6401 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6402 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6403 if test "${ac_cv_search_com_err+set}" = set; then
6404 echo $ECHO_N "(cached) $ECHO_C" >&6
6406 ac_func_search_save_LIBS=$LIBS
6407 ac_cv_search_com_err=no
6408 cat >conftest.$ac_ext <<_ACEOF
6409 #line $LINENO "configure"
6410 #include "confdefs.h"
6412 /* Override any gcc2 internal prototype to avoid an error. */
6416 /* We use char because int might match the return type of a gcc2
6417 builtin and then its argument prototype would still apply. */
6419 #ifdef F77_DUMMY_MAIN
6423 int F77_DUMMY_MAIN() { return 1; }
6433 rm -f conftest.$ac_objext conftest$ac_exeext
6434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6435 (eval $ac_link) 2>&5
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); } &&
6439 { ac_try='test -s conftest$ac_exeext'
6440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444 (exit $ac_status); }; }; then
6445 ac_cv_search_com_err="none required"
6447 echo "$as_me: failed program was:" >&5
6448 cat conftest.$ac_ext >&5
6450 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6451 if test "$ac_cv_search_com_err" = no; then
6452 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6453 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6454 cat >conftest.$ac_ext <<_ACEOF
6455 #line $LINENO "configure"
6456 #include "confdefs.h"
6458 /* Override any gcc2 internal prototype to avoid an error. */
6462 /* We use char because int might match the return type of a gcc2
6463 builtin and then its argument prototype would still apply. */
6465 #ifdef F77_DUMMY_MAIN
6469 int F77_DUMMY_MAIN() { return 1; }
6479 rm -f conftest.$ac_objext conftest$ac_exeext
6480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6481 (eval $ac_link) 2>&5
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); } &&
6485 { ac_try='test -s conftest$ac_exeext'
6486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); }; }; then
6491 ac_cv_search_com_err="-l$ac_lib"
6494 echo "$as_me: failed program was:" >&5
6495 cat conftest.$ac_ext >&5
6497 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6500 LIBS=$ac_func_search_save_LIBS
6502 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6503 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6504 if test "$ac_cv_search_com_err" != no; then
6505 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6508 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6509 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6510 { (exit 1); exit 1; }; }
6513 echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6514 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6515 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6516 echo $ECHO_N "(cached) $ECHO_C" >&6
6518 ac_func_search_save_LIBS=$LIBS
6519 ac_cv_search_krb5_encrypt=no
6520 cat >conftest.$ac_ext <<_ACEOF
6521 #line $LINENO "configure"
6522 #include "confdefs.h"
6524 /* Override any gcc2 internal prototype to avoid an error. */
6528 /* We use char because int might match the return type of a gcc2
6529 builtin and then its argument prototype would still apply. */
6530 char krb5_encrypt ();
6531 #ifdef F77_DUMMY_MAIN
6535 int F77_DUMMY_MAIN() { return 1; }
6545 rm -f conftest.$ac_objext conftest$ac_exeext
6546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6547 (eval $ac_link) 2>&5
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); } &&
6551 { ac_try='test -s conftest$ac_exeext'
6552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); }; }; then
6557 ac_cv_search_krb5_encrypt="none required"
6559 echo "$as_me: failed program was:" >&5
6560 cat conftest.$ac_ext >&5
6562 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6563 if test "$ac_cv_search_krb5_encrypt" = no; then
6564 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6565 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6566 cat >conftest.$ac_ext <<_ACEOF
6567 #line $LINENO "configure"
6568 #include "confdefs.h"
6570 /* Override any gcc2 internal prototype to avoid an error. */
6574 /* We use char because int might match the return type of a gcc2
6575 builtin and then its argument prototype would still apply. */
6576 char krb5_encrypt ();
6577 #ifdef F77_DUMMY_MAIN
6581 int F77_DUMMY_MAIN() { return 1; }
6591 rm -f conftest.$ac_objext conftest$ac_exeext
6592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6593 (eval $ac_link) 2>&5
6595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596 (exit $ac_status); } &&
6597 { ac_try='test -s conftest$ac_exeext'
6598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); }; }; then
6603 ac_cv_search_krb5_encrypt="-l$ac_lib"
6606 echo "$as_me: failed program was:" >&5
6607 cat conftest.$ac_ext >&5
6609 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6612 LIBS=$ac_func_search_save_LIBS
6614 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6615 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6616 if test "$ac_cv_search_krb5_encrypt" != no; then
6617 test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6620 { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6621 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6622 { (exit 1); exit 1; }; }
6625 echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6626 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6627 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6628 echo $ECHO_N "(cached) $ECHO_C" >&6
6630 ac_func_search_save_LIBS=$LIBS
6631 ac_cv_search_krb5_sendauth=no
6632 cat >conftest.$ac_ext <<_ACEOF
6633 #line $LINENO "configure"
6634 #include "confdefs.h"
6636 /* Override any gcc2 internal prototype to avoid an error. */
6640 /* We use char because int might match the return type of a gcc2
6641 builtin and then its argument prototype would still apply. */
6642 char krb5_sendauth ();
6643 #ifdef F77_DUMMY_MAIN
6647 int F77_DUMMY_MAIN() { return 1; }
6657 rm -f conftest.$ac_objext conftest$ac_exeext
6658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6659 (eval $ac_link) 2>&5
6661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662 (exit $ac_status); } &&
6663 { ac_try='test -s conftest$ac_exeext'
6664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 (exit $ac_status); }; }; then
6669 ac_cv_search_krb5_sendauth="none required"
6671 echo "$as_me: failed program was:" >&5
6672 cat conftest.$ac_ext >&5
6674 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6675 if test "$ac_cv_search_krb5_sendauth" = no; then
6676 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6677 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6678 cat >conftest.$ac_ext <<_ACEOF
6679 #line $LINENO "configure"
6680 #include "confdefs.h"
6682 /* Override any gcc2 internal prototype to avoid an error. */
6686 /* We use char because int might match the return type of a gcc2
6687 builtin and then its argument prototype would still apply. */
6688 char krb5_sendauth ();
6689 #ifdef F77_DUMMY_MAIN
6693 int F77_DUMMY_MAIN() { return 1; }
6703 rm -f conftest.$ac_objext conftest$ac_exeext
6704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6705 (eval $ac_link) 2>&5
6707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708 (exit $ac_status); } &&
6709 { ac_try='test -s conftest$ac_exeext'
6710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); }; }; then
6715 ac_cv_search_krb5_sendauth="-l$ac_lib"
6718 echo "$as_me: failed program was:" >&5
6719 cat conftest.$ac_ext >&5
6721 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6724 LIBS=$ac_func_search_save_LIBS
6726 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6727 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6728 if test "$ac_cv_search_krb5_sendauth" != no; then
6729 test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6732 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6733 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6734 { (exit 1); exit 1; }; }
6739 if test "$with_openssl" = yes ; then
6741 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6742 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6743 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6744 echo $ECHO_N "(cached) $ECHO_C" >&6
6746 ac_check_lib_save_LIBS=$LIBS
6747 LIBS="-lcrypto $LIBS"
6748 cat >conftest.$ac_ext <<_ACEOF
6749 #line $LINENO "configure"
6750 #include "confdefs.h"
6752 /* Override any gcc2 internal prototype to avoid an error. */
6756 /* We use char because int might match the return type of a gcc2
6757 builtin and then its argument prototype would still apply. */
6758 char CRYPTO_new_ex_data ();
6759 #ifdef F77_DUMMY_MAIN
6763 int F77_DUMMY_MAIN() { return 1; }
6768 CRYPTO_new_ex_data ();
6773 rm -f conftest.$ac_objext conftest$ac_exeext
6774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6775 (eval $ac_link) 2>&5
6777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778 (exit $ac_status); } &&
6779 { ac_try='test -s conftest$ac_exeext'
6780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784 (exit $ac_status); }; }; then
6785 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
6787 echo "$as_me: failed program was:" >&5
6788 cat conftest.$ac_ext >&5
6789 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6791 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6792 LIBS=$ac_check_lib_save_LIBS
6794 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6795 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6796 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6797 cat >>confdefs.h <<_ACEOF
6798 #define HAVE_LIBCRYPTO 1
6801 LIBS="-lcrypto $LIBS"
6804 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
6805 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
6806 { (exit 1); exit 1; }; }
6810 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
6811 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
6812 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
6813 echo $ECHO_N "(cached) $ECHO_C" >&6
6815 ac_check_lib_save_LIBS=$LIBS
6817 cat >conftest.$ac_ext <<_ACEOF
6818 #line $LINENO "configure"
6819 #include "confdefs.h"
6821 /* Override any gcc2 internal prototype to avoid an error. */
6825 /* We use char because int might match the return type of a gcc2
6826 builtin and then its argument prototype would still apply. */
6827 char SSL_library_init ();
6828 #ifdef F77_DUMMY_MAIN
6832 int F77_DUMMY_MAIN() { return 1; }
6837 SSL_library_init ();
6842 rm -f conftest.$ac_objext conftest$ac_exeext
6843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6844 (eval $ac_link) 2>&5
6846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847 (exit $ac_status); } &&
6848 { ac_try='test -s conftest$ac_exeext'
6849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853 (exit $ac_status); }; }; then
6854 ac_cv_lib_ssl_SSL_library_init=yes
6856 echo "$as_me: failed program was:" >&5
6857 cat conftest.$ac_ext >&5
6858 ac_cv_lib_ssl_SSL_library_init=no
6860 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6861 LIBS=$ac_check_lib_save_LIBS
6863 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6864 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
6865 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
6866 cat >>confdefs.h <<_ACEOF
6867 #define HAVE_LIBSSL 1
6873 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
6874 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
6875 { (exit 1); exit 1; }; }
6880 if test "$with_pam" = yes ; then
6882 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
6883 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
6884 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
6885 echo $ECHO_N "(cached) $ECHO_C" >&6
6887 ac_check_lib_save_LIBS=$LIBS
6889 cat >conftest.$ac_ext <<_ACEOF
6890 #line $LINENO "configure"
6891 #include "confdefs.h"
6893 /* Override any gcc2 internal prototype to avoid an error. */
6897 /* We use char because int might match the return type of a gcc2
6898 builtin and then its argument prototype would still apply. */
6900 #ifdef F77_DUMMY_MAIN
6904 int F77_DUMMY_MAIN() { return 1; }
6914 rm -f conftest.$ac_objext conftest$ac_exeext
6915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6916 (eval $ac_link) 2>&5
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); } &&
6920 { ac_try='test -s conftest$ac_exeext'
6921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925 (exit $ac_status); }; }; then
6926 ac_cv_lib_pam_pam_start=yes
6928 echo "$as_me: failed program was:" >&5
6929 cat conftest.$ac_ext >&5
6930 ac_cv_lib_pam_pam_start=no
6932 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6933 LIBS=$ac_check_lib_save_LIBS
6935 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
6936 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
6937 if test $ac_cv_lib_pam_pam_start = yes; then
6938 cat >>confdefs.h <<_ACEOF
6939 #define HAVE_LIBPAM 1
6945 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
6946 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
6947 { (exit 1); exit 1; }; }
6957 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6958 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6959 if test "${ac_cv_header_stdc+set}" = set; then
6960 echo $ECHO_N "(cached) $ECHO_C" >&6
6962 cat >conftest.$ac_ext <<_ACEOF
6963 #line $LINENO "configure"
6964 #include "confdefs.h"
6971 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6972 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6974 egrep -v '^ *\+' conftest.er1 >conftest.err
6976 cat conftest.err >&5
6977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978 (exit $ac_status); } >/dev/null; then
6979 if test -s conftest.err; then
6980 ac_cpp_err=$ac_c_preproc_warn_flag
6987 if test -z "$ac_cpp_err"; then
6988 ac_cv_header_stdc=yes
6990 echo "$as_me: failed program was:" >&5
6991 cat conftest.$ac_ext >&5
6992 ac_cv_header_stdc=no
6994 rm -f conftest.err conftest.$ac_ext
6996 if test $ac_cv_header_stdc = yes; then
6997 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6998 cat >conftest.$ac_ext <<_ACEOF
6999 #line $LINENO "configure"
7000 #include "confdefs.h"
7004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7005 egrep "memchr" >/dev/null 2>&1; then
7008 ac_cv_header_stdc=no
7014 if test $ac_cv_header_stdc = yes; then
7015 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7016 cat >conftest.$ac_ext <<_ACEOF
7017 #line $LINENO "configure"
7018 #include "confdefs.h"
7022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7023 egrep "free" >/dev/null 2>&1; then
7026 ac_cv_header_stdc=no
7032 if test $ac_cv_header_stdc = yes; then
7033 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7034 if test "$cross_compiling" = yes; then
7037 cat >conftest.$ac_ext <<_ACEOF
7038 #line $LINENO "configure"
7039 #include "confdefs.h"
7041 #if ((' ' & 0x0FF) == 0x020)
7042 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7043 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7045 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7046 || ('j' <= (c) && (c) <= 'r') \
7047 || ('s' <= (c) && (c) <= 'z'))
7048 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7051 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7056 for (i = 0; i < 256; i++)
7057 if (XOR (islower (i), ISLOWER (i))
7058 || toupper (i) != TOUPPER (i))
7063 rm -f conftest$ac_exeext
7064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7065 (eval $ac_link) 2>&5
7067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); }; }; then
7076 echo "$as_me: program exited with status $ac_status" >&5
7077 echo "$as_me: failed program was:" >&5
7078 cat conftest.$ac_ext >&5
7080 ac_cv_header_stdc=no
7082 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7086 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7087 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7088 if test $ac_cv_header_stdc = yes; then
7090 cat >>confdefs.h <<\_ACEOF
7091 #define STDC_HEADERS 1
7096 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7106 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7107 inttypes.h stdint.h unistd.h
7109 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7110 echo "$as_me:$LINENO: checking for $ac_header" >&5
7111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7112 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7113 echo $ECHO_N "(cached) $ECHO_C" >&6
7115 cat >conftest.$ac_ext <<_ACEOF
7116 #line $LINENO "configure"
7117 #include "confdefs.h"
7118 $ac_includes_default
7120 #include <$ac_header>
7122 rm -f conftest.$ac_objext
7123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7124 (eval $ac_compile) 2>&5
7126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); } &&
7128 { ac_try='test -s conftest.$ac_objext'
7129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); }; }; then
7134 eval "$as_ac_Header=yes"
7136 echo "$as_me: failed program was:" >&5
7137 cat conftest.$ac_ext >&5
7138 eval "$as_ac_Header=no"
7140 rm -f conftest.$ac_objext conftest.$ac_ext
7142 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7143 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7144 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7145 cat >>confdefs.h <<_ACEOF
7146 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7175 for ac_header in crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h poll.h pwd.h sys/ipc.h sys/poll.h sys/pstat.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/un.h termios.h utime.h kernel/OS.h kernel/image.h SupportDefs.h
7177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7179 echo "$as_me:$LINENO: checking for $ac_header" >&5
7180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7182 echo $ECHO_N "(cached) $ECHO_C" >&6
7184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7187 # Is the header compilable?
7188 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7189 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7190 cat >conftest.$ac_ext <<_ACEOF
7191 #line $LINENO "configure"
7192 #include "confdefs.h"
7193 $ac_includes_default
7194 #include <$ac_header>
7196 rm -f conftest.$ac_objext
7197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7198 (eval $ac_compile) 2>&5
7200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201 (exit $ac_status); } &&
7202 { ac_try='test -s conftest.$ac_objext'
7203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207 (exit $ac_status); }; }; then
7208 ac_header_compiler=yes
7210 echo "$as_me: failed program was:" >&5
7211 cat conftest.$ac_ext >&5
7212 ac_header_compiler=no
7214 rm -f conftest.$ac_objext conftest.$ac_ext
7215 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7216 echo "${ECHO_T}$ac_header_compiler" >&6
7218 # Is the header present?
7219 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7220 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7221 cat >conftest.$ac_ext <<_ACEOF
7222 #line $LINENO "configure"
7223 #include "confdefs.h"
7224 #include <$ac_header>
7226 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7227 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7229 egrep -v '^ *\+' conftest.er1 >conftest.err
7231 cat conftest.err >&5
7232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233 (exit $ac_status); } >/dev/null; then
7234 if test -s conftest.err; then
7235 ac_cpp_err=$ac_c_preproc_warn_flag
7242 if test -z "$ac_cpp_err"; then
7243 ac_header_preproc=yes
7245 echo "$as_me: failed program was:" >&5
7246 cat conftest.$ac_ext >&5
7247 ac_header_preproc=no
7249 rm -f conftest.err conftest.$ac_ext
7250 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7251 echo "${ECHO_T}$ac_header_preproc" >&6
7253 # So? What about this header?
7254 case $ac_header_compiler:$ac_header_preproc in
7256 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7257 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7259 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7261 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7262 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7263 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7264 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7266 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7268 echo "$as_me:$LINENO: checking for $ac_header" >&5
7269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7271 echo $ECHO_N "(cached) $ECHO_C" >&6
7273 eval "$as_ac_Header=$ac_header_preproc"
7275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7276 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7280 cat >>confdefs.h <<_ACEOF
7281 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7289 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7290 # netinet/in.h is included first.
7292 for ac_header in netinet/in.h
7294 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7296 echo "$as_me:$LINENO: checking for $ac_header" >&5
7297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7299 echo $ECHO_N "(cached) $ECHO_C" >&6
7301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7302 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7304 # Is the header compilable?
7305 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7306 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7307 cat >conftest.$ac_ext <<_ACEOF
7308 #line $LINENO "configure"
7309 #include "confdefs.h"
7310 $ac_includes_default
7311 #include <$ac_header>
7313 rm -f conftest.$ac_objext
7314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7315 (eval $ac_compile) 2>&5
7317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7318 (exit $ac_status); } &&
7319 { ac_try='test -s conftest.$ac_objext'
7320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324 (exit $ac_status); }; }; then
7325 ac_header_compiler=yes
7327 echo "$as_me: failed program was:" >&5
7328 cat conftest.$ac_ext >&5
7329 ac_header_compiler=no
7331 rm -f conftest.$ac_objext conftest.$ac_ext
7332 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7333 echo "${ECHO_T}$ac_header_compiler" >&6
7335 # Is the header present?
7336 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7337 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7338 cat >conftest.$ac_ext <<_ACEOF
7339 #line $LINENO "configure"
7340 #include "confdefs.h"
7341 #include <$ac_header>
7343 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7344 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7346 egrep -v '^ *\+' conftest.er1 >conftest.err
7348 cat conftest.err >&5
7349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350 (exit $ac_status); } >/dev/null; then
7351 if test -s conftest.err; then
7352 ac_cpp_err=$ac_c_preproc_warn_flag
7359 if test -z "$ac_cpp_err"; then
7360 ac_header_preproc=yes
7362 echo "$as_me: failed program was:" >&5
7363 cat conftest.$ac_ext >&5
7364 ac_header_preproc=no
7366 rm -f conftest.err conftest.$ac_ext
7367 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7368 echo "${ECHO_T}$ac_header_preproc" >&6
7370 # So? What about this header?
7371 case $ac_header_compiler:$ac_header_preproc in
7373 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7374 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7376 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7378 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7379 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7380 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7381 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7383 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7385 echo "$as_me:$LINENO: checking for $ac_header" >&5
7386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7388 echo $ECHO_N "(cached) $ECHO_C" >&6
7390 eval "$as_ac_Header=$ac_header_preproc"
7392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7393 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7396 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7397 cat >>confdefs.h <<_ACEOF
7398 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7406 for ac_header in netinet/tcp.h
7408 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7409 echo "$as_me:$LINENO: checking for $ac_header" >&5
7410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7412 echo $ECHO_N "(cached) $ECHO_C" >&6
7414 cat >conftest.$ac_ext <<_ACEOF
7415 #line $LINENO "configure"
7416 #include "confdefs.h"
7417 $ac_includes_default
7418 #ifdef HAVE_NETINET_IN_H
7419 #include <netinet/in.h>
7423 #include <$ac_header>
7425 rm -f conftest.$ac_objext
7426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7427 (eval $ac_compile) 2>&5
7429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430 (exit $ac_status); } &&
7431 { ac_try='test -s conftest.$ac_objext'
7432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436 (exit $ac_status); }; }; then
7437 eval "$as_ac_Header=yes"
7439 echo "$as_me: failed program was:" >&5
7440 cat conftest.$ac_ext >&5
7441 eval "$as_ac_Header=no"
7443 rm -f conftest.$ac_objext conftest.$ac_ext
7445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7446 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7447 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7448 cat >>confdefs.h <<_ACEOF
7449 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7457 if test "$with_readline" = yes; then
7459 for ac_header in readline/readline.h
7461 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7463 echo "$as_me:$LINENO: checking for $ac_header" >&5
7464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7466 echo $ECHO_N "(cached) $ECHO_C" >&6
7468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7471 # Is the header compilable?
7472 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7473 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7474 cat >conftest.$ac_ext <<_ACEOF
7475 #line $LINENO "configure"
7476 #include "confdefs.h"
7477 $ac_includes_default
7478 #include <$ac_header>
7480 rm -f conftest.$ac_objext
7481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7482 (eval $ac_compile) 2>&5
7484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485 (exit $ac_status); } &&
7486 { ac_try='test -s conftest.$ac_objext'
7487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491 (exit $ac_status); }; }; then
7492 ac_header_compiler=yes
7494 echo "$as_me: failed program was:" >&5
7495 cat conftest.$ac_ext >&5
7496 ac_header_compiler=no
7498 rm -f conftest.$ac_objext conftest.$ac_ext
7499 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7500 echo "${ECHO_T}$ac_header_compiler" >&6
7502 # Is the header present?
7503 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7504 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7505 cat >conftest.$ac_ext <<_ACEOF
7506 #line $LINENO "configure"
7507 #include "confdefs.h"
7508 #include <$ac_header>
7510 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7511 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7513 egrep -v '^ *\+' conftest.er1 >conftest.err
7515 cat conftest.err >&5
7516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517 (exit $ac_status); } >/dev/null; then
7518 if test -s conftest.err; then
7519 ac_cpp_err=$ac_c_preproc_warn_flag
7526 if test -z "$ac_cpp_err"; then
7527 ac_header_preproc=yes
7529 echo "$as_me: failed program was:" >&5
7530 cat conftest.$ac_ext >&5
7531 ac_header_preproc=no
7533 rm -f conftest.err conftest.$ac_ext
7534 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7535 echo "${ECHO_T}$ac_header_preproc" >&6
7537 # So? What about this header?
7538 case $ac_header_compiler:$ac_header_preproc in
7540 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7541 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7543 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7545 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7546 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7547 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7548 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7550 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7552 echo "$as_me:$LINENO: checking for $ac_header" >&5
7553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7554 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7555 echo $ECHO_N "(cached) $ECHO_C" >&6
7557 eval "$as_ac_Header=$ac_header_preproc"
7559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7560 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7563 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7564 cat >>confdefs.h <<_ACEOF
7565 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7570 for ac_header in editline/readline.h
7572 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7573 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7574 echo "$as_me:$LINENO: checking for $ac_header" >&5
7575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7576 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7577 echo $ECHO_N "(cached) $ECHO_C" >&6
7579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7580 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7582 # Is the header compilable?
7583 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7584 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7585 cat >conftest.$ac_ext <<_ACEOF
7586 #line $LINENO "configure"
7587 #include "confdefs.h"
7588 $ac_includes_default
7589 #include <$ac_header>
7591 rm -f conftest.$ac_objext
7592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7593 (eval $ac_compile) 2>&5
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); } &&
7597 { ac_try='test -s conftest.$ac_objext'
7598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); }; }; then
7603 ac_header_compiler=yes
7605 echo "$as_me: failed program was:" >&5
7606 cat conftest.$ac_ext >&5
7607 ac_header_compiler=no
7609 rm -f conftest.$ac_objext conftest.$ac_ext
7610 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7611 echo "${ECHO_T}$ac_header_compiler" >&6
7613 # Is the header present?
7614 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7615 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7616 cat >conftest.$ac_ext <<_ACEOF
7617 #line $LINENO "configure"
7618 #include "confdefs.h"
7619 #include <$ac_header>
7621 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7622 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7624 egrep -v '^ *\+' conftest.er1 >conftest.err
7626 cat conftest.err >&5
7627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); } >/dev/null; then
7629 if test -s conftest.err; then
7630 ac_cpp_err=$ac_c_preproc_warn_flag
7637 if test -z "$ac_cpp_err"; then
7638 ac_header_preproc=yes
7640 echo "$as_me: failed program was:" >&5
7641 cat conftest.$ac_ext >&5
7642 ac_header_preproc=no
7644 rm -f conftest.err conftest.$ac_ext
7645 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7646 echo "${ECHO_T}$ac_header_preproc" >&6
7648 # So? What about this header?
7649 case $ac_header_compiler:$ac_header_preproc in
7651 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7652 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7654 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7656 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7657 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7658 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7659 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7661 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7663 echo "$as_me:$LINENO: checking for $ac_header" >&5
7664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7666 echo $ECHO_N "(cached) $ECHO_C" >&6
7668 eval "$as_ac_Header=$ac_header_preproc"
7670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7671 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7674 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7675 cat >>confdefs.h <<_ACEOF
7676 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7681 for ac_header in readline.h
7683 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7685 echo "$as_me:$LINENO: checking for $ac_header" >&5
7686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7688 echo $ECHO_N "(cached) $ECHO_C" >&6
7690 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7691 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7693 # Is the header compilable?
7694 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7695 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7696 cat >conftest.$ac_ext <<_ACEOF
7697 #line $LINENO "configure"
7698 #include "confdefs.h"
7699 $ac_includes_default
7700 #include <$ac_header>
7702 rm -f conftest.$ac_objext
7703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7704 (eval $ac_compile) 2>&5
7706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707 (exit $ac_status); } &&
7708 { ac_try='test -s conftest.$ac_objext'
7709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); }; }; then
7714 ac_header_compiler=yes
7716 echo "$as_me: failed program was:" >&5
7717 cat conftest.$ac_ext >&5
7718 ac_header_compiler=no
7720 rm -f conftest.$ac_objext conftest.$ac_ext
7721 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7722 echo "${ECHO_T}$ac_header_compiler" >&6
7724 # Is the header present?
7725 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7726 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7727 cat >conftest.$ac_ext <<_ACEOF
7728 #line $LINENO "configure"
7729 #include "confdefs.h"
7730 #include <$ac_header>
7732 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7733 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7735 egrep -v '^ *\+' conftest.er1 >conftest.err
7737 cat conftest.err >&5
7738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739 (exit $ac_status); } >/dev/null; then
7740 if test -s conftest.err; then
7741 ac_cpp_err=$ac_c_preproc_warn_flag
7748 if test -z "$ac_cpp_err"; then
7749 ac_header_preproc=yes
7751 echo "$as_me: failed program was:" >&5
7752 cat conftest.$ac_ext >&5
7753 ac_header_preproc=no
7755 rm -f conftest.err conftest.$ac_ext
7756 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7757 echo "${ECHO_T}$ac_header_preproc" >&6
7759 # So? What about this header?
7760 case $ac_header_compiler:$ac_header_preproc in
7762 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7763 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7765 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7767 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7768 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7769 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7770 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7772 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7774 echo "$as_me:$LINENO: checking for $ac_header" >&5
7775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7777 echo $ECHO_N "(cached) $ECHO_C" >&6
7779 eval "$as_ac_Header=$ac_header_preproc"
7781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7786 cat >>confdefs.h <<_ACEOF
7787 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7791 { { echo "$as_me:$LINENO: error: readline header not found
7792 If you have readline already installed, see config.log for details on the
7793 failure. It is possible the compiler isn't looking in the proper directory.
7794 Use --without-readline to disable readline support." >&5
7795 echo "$as_me: error: readline header not found
7796 If you have readline already installed, see config.log for details on the
7797 failure. It is possible the compiler isn't looking in the proper directory.
7798 Use --without-readline to disable readline support." >&2;}
7799 { (exit 1); exit 1; }; }
7813 for ac_header in readline/history.h
7815 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7817 echo "$as_me:$LINENO: checking for $ac_header" >&5
7818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7819 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7820 echo $ECHO_N "(cached) $ECHO_C" >&6
7822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7823 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7825 # Is the header compilable?
7826 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7827 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7828 cat >conftest.$ac_ext <<_ACEOF
7829 #line $LINENO "configure"
7830 #include "confdefs.h"
7831 $ac_includes_default
7832 #include <$ac_header>
7834 rm -f conftest.$ac_objext
7835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7836 (eval $ac_compile) 2>&5
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); } &&
7840 { ac_try='test -s conftest.$ac_objext'
7841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); }; }; then
7846 ac_header_compiler=yes
7848 echo "$as_me: failed program was:" >&5
7849 cat conftest.$ac_ext >&5
7850 ac_header_compiler=no
7852 rm -f conftest.$ac_objext conftest.$ac_ext
7853 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7854 echo "${ECHO_T}$ac_header_compiler" >&6
7856 # Is the header present?
7857 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7858 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7859 cat >conftest.$ac_ext <<_ACEOF
7860 #line $LINENO "configure"
7861 #include "confdefs.h"
7862 #include <$ac_header>
7864 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7865 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7867 egrep -v '^ *\+' conftest.er1 >conftest.err
7869 cat conftest.err >&5
7870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871 (exit $ac_status); } >/dev/null; then
7872 if test -s conftest.err; then
7873 ac_cpp_err=$ac_c_preproc_warn_flag
7880 if test -z "$ac_cpp_err"; then
7881 ac_header_preproc=yes
7883 echo "$as_me: failed program was:" >&5
7884 cat conftest.$ac_ext >&5
7885 ac_header_preproc=no
7887 rm -f conftest.err conftest.$ac_ext
7888 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7889 echo "${ECHO_T}$ac_header_preproc" >&6
7891 # So? What about this header?
7892 case $ac_header_compiler:$ac_header_preproc in
7894 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7895 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7897 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7899 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7900 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7901 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7902 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7904 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7906 echo "$as_me:$LINENO: checking for $ac_header" >&5
7907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7909 echo $ECHO_N "(cached) $ECHO_C" >&6
7911 eval "$as_ac_Header=$ac_header_preproc"
7913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7914 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7917 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7918 cat >>confdefs.h <<_ACEOF
7919 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7924 for ac_header in editline/history.h
7926 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7928 echo "$as_me:$LINENO: checking for $ac_header" >&5
7929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7931 echo $ECHO_N "(cached) $ECHO_C" >&6
7933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7934 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7936 # Is the header compilable?
7937 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7938 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7939 cat >conftest.$ac_ext <<_ACEOF
7940 #line $LINENO "configure"
7941 #include "confdefs.h"
7942 $ac_includes_default
7943 #include <$ac_header>
7945 rm -f conftest.$ac_objext
7946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7947 (eval $ac_compile) 2>&5
7949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950 (exit $ac_status); } &&
7951 { ac_try='test -s conftest.$ac_objext'
7952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); }; }; then
7957 ac_header_compiler=yes
7959 echo "$as_me: failed program was:" >&5
7960 cat conftest.$ac_ext >&5
7961 ac_header_compiler=no
7963 rm -f conftest.$ac_objext conftest.$ac_ext
7964 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7965 echo "${ECHO_T}$ac_header_compiler" >&6
7967 # Is the header present?
7968 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7969 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7970 cat >conftest.$ac_ext <<_ACEOF
7971 #line $LINENO "configure"
7972 #include "confdefs.h"
7973 #include <$ac_header>
7975 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7976 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7978 egrep -v '^ *\+' conftest.er1 >conftest.err
7980 cat conftest.err >&5
7981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982 (exit $ac_status); } >/dev/null; then
7983 if test -s conftest.err; then
7984 ac_cpp_err=$ac_c_preproc_warn_flag
7991 if test -z "$ac_cpp_err"; then
7992 ac_header_preproc=yes
7994 echo "$as_me: failed program was:" >&5
7995 cat conftest.$ac_ext >&5
7996 ac_header_preproc=no
7998 rm -f conftest.err conftest.$ac_ext
7999 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8000 echo "${ECHO_T}$ac_header_preproc" >&6
8002 # So? What about this header?
8003 case $ac_header_compiler:$ac_header_preproc in
8005 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8006 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8008 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8010 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8011 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8012 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8013 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8015 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8017 echo "$as_me:$LINENO: checking for $ac_header" >&5
8018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8020 echo $ECHO_N "(cached) $ECHO_C" >&6
8022 eval "$as_ac_Header=$ac_header_preproc"
8024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8025 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8028 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8029 cat >>confdefs.h <<_ACEOF
8030 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8035 for ac_header in history.h
8037 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8038 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8039 echo "$as_me:$LINENO: checking for $ac_header" >&5
8040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8042 echo $ECHO_N "(cached) $ECHO_C" >&6
8044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8045 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8047 # Is the header compilable?
8048 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8049 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8050 cat >conftest.$ac_ext <<_ACEOF
8051 #line $LINENO "configure"
8052 #include "confdefs.h"
8053 $ac_includes_default
8054 #include <$ac_header>
8056 rm -f conftest.$ac_objext
8057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8058 (eval $ac_compile) 2>&5
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); } &&
8062 { ac_try='test -s conftest.$ac_objext'
8063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); }; }; then
8068 ac_header_compiler=yes
8070 echo "$as_me: failed program was:" >&5
8071 cat conftest.$ac_ext >&5
8072 ac_header_compiler=no
8074 rm -f conftest.$ac_objext conftest.$ac_ext
8075 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8076 echo "${ECHO_T}$ac_header_compiler" >&6
8078 # Is the header present?
8079 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8080 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8081 cat >conftest.$ac_ext <<_ACEOF
8082 #line $LINENO "configure"
8083 #include "confdefs.h"
8084 #include <$ac_header>
8086 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8087 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8089 egrep -v '^ *\+' conftest.er1 >conftest.err
8091 cat conftest.err >&5
8092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); } >/dev/null; then
8094 if test -s conftest.err; then
8095 ac_cpp_err=$ac_c_preproc_warn_flag
8102 if test -z "$ac_cpp_err"; then
8103 ac_header_preproc=yes
8105 echo "$as_me: failed program was:" >&5
8106 cat conftest.$ac_ext >&5
8107 ac_header_preproc=no
8109 rm -f conftest.err conftest.$ac_ext
8110 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8111 echo "${ECHO_T}$ac_header_preproc" >&6
8113 # So? What about this header?
8114 case $ac_header_compiler:$ac_header_preproc in
8116 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8117 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8119 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8121 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8122 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8123 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8124 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8126 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8128 echo "$as_me:$LINENO: checking for $ac_header" >&5
8129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8131 echo $ECHO_N "(cached) $ECHO_C" >&6
8133 eval "$as_ac_Header=$ac_header_preproc"
8135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8136 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8140 cat >>confdefs.h <<_ACEOF
8141 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8145 { { echo "$as_me:$LINENO: error: history header not found
8146 If you have readline already installed, see config.log for details on the
8147 failure. It is possible the compiler isn't looking in the proper directory.
8148 Use --without-readline to disable readline support." >&5
8149 echo "$as_me: error: history header not found
8150 If you have readline already installed, see config.log for details on the
8151 failure. It is possible the compiler isn't looking in the proper directory.
8152 Use --without-readline to disable readline support." >&2;}
8153 { (exit 1); exit 1; }; }
8168 if test "$with_zlib" = yes; then
8169 if test "${ac_cv_header_zlib_h+set}" = set; then
8170 echo "$as_me:$LINENO: checking for zlib.h" >&5
8171 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8172 if test "${ac_cv_header_zlib_h+set}" = set; then
8173 echo $ECHO_N "(cached) $ECHO_C" >&6
8175 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8176 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8178 # Is the header compilable?
8179 echo "$as_me:$LINENO: checking zlib.h usability" >&5
8180 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
8181 cat >conftest.$ac_ext <<_ACEOF
8182 #line $LINENO "configure"
8183 #include "confdefs.h"
8184 $ac_includes_default
8187 rm -f conftest.$ac_objext
8188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8189 (eval $ac_compile) 2>&5
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); } &&
8193 { ac_try='test -s conftest.$ac_objext'
8194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); }; }; then
8199 ac_header_compiler=yes
8201 echo "$as_me: failed program was:" >&5
8202 cat conftest.$ac_ext >&5
8203 ac_header_compiler=no
8205 rm -f conftest.$ac_objext conftest.$ac_ext
8206 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8207 echo "${ECHO_T}$ac_header_compiler" >&6
8209 # Is the header present?
8210 echo "$as_me:$LINENO: checking zlib.h presence" >&5
8211 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
8212 cat >conftest.$ac_ext <<_ACEOF
8213 #line $LINENO "configure"
8214 #include "confdefs.h"
8217 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8218 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8220 egrep -v '^ *\+' conftest.er1 >conftest.err
8222 cat conftest.err >&5
8223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224 (exit $ac_status); } >/dev/null; then
8225 if test -s conftest.err; then
8226 ac_cpp_err=$ac_c_preproc_warn_flag
8233 if test -z "$ac_cpp_err"; then
8234 ac_header_preproc=yes
8236 echo "$as_me: failed program was:" >&5
8237 cat conftest.$ac_ext >&5
8238 ac_header_preproc=no
8240 rm -f conftest.err conftest.$ac_ext
8241 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8242 echo "${ECHO_T}$ac_header_preproc" >&6
8244 # So? What about this header?
8245 case $ac_header_compiler:$ac_header_preproc in
8247 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8248 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8249 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8250 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8252 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8253 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8254 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8255 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8256 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8257 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
8259 echo "$as_me:$LINENO: checking for zlib.h" >&5
8260 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
8261 if test "${ac_cv_header_zlib_h+set}" = set; then
8262 echo $ECHO_N "(cached) $ECHO_C" >&6
8264 ac_cv_header_zlib_h=$ac_header_preproc
8266 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8267 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
8270 if test $ac_cv_header_zlib_h = yes; then
8273 { { echo "$as_me:$LINENO: error: zlib header not found
8274 If you have zlib already installed, see config.log for details on the
8275 failure. It is possible the compiler isn't looking in the proper directory.
8276 Use --without-zlib to disable zlib support." >&5
8277 echo "$as_me: error: zlib header not found
8278 If you have zlib already installed, see config.log for details on the
8279 failure. It is possible the compiler isn't looking in the proper directory.
8280 Use --without-zlib to disable zlib support." >&2;}
8281 { (exit 1); exit 1; }; }
8287 if test "$with_krb4" = yes ; then
8288 if test "${ac_cv_header_krb_h+set}" = set; then
8289 echo "$as_me:$LINENO: checking for krb.h" >&5
8290 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8291 if test "${ac_cv_header_krb_h+set}" = set; then
8292 echo $ECHO_N "(cached) $ECHO_C" >&6
8294 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8295 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8297 # Is the header compilable?
8298 echo "$as_me:$LINENO: checking krb.h usability" >&5
8299 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
8300 cat >conftest.$ac_ext <<_ACEOF
8301 #line $LINENO "configure"
8302 #include "confdefs.h"
8303 $ac_includes_default
8306 rm -f conftest.$ac_objext
8307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8308 (eval $ac_compile) 2>&5
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); } &&
8312 { ac_try='test -s conftest.$ac_objext'
8313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); }; }; then
8318 ac_header_compiler=yes
8320 echo "$as_me: failed program was:" >&5
8321 cat conftest.$ac_ext >&5
8322 ac_header_compiler=no
8324 rm -f conftest.$ac_objext conftest.$ac_ext
8325 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8326 echo "${ECHO_T}$ac_header_compiler" >&6
8328 # Is the header present?
8329 echo "$as_me:$LINENO: checking krb.h presence" >&5
8330 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
8331 cat >conftest.$ac_ext <<_ACEOF
8332 #line $LINENO "configure"
8333 #include "confdefs.h"
8336 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8337 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8339 egrep -v '^ *\+' conftest.er1 >conftest.err
8341 cat conftest.err >&5
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); } >/dev/null; then
8344 if test -s conftest.err; then
8345 ac_cpp_err=$ac_c_preproc_warn_flag
8352 if test -z "$ac_cpp_err"; then
8353 ac_header_preproc=yes
8355 echo "$as_me: failed program was:" >&5
8356 cat conftest.$ac_ext >&5
8357 ac_header_preproc=no
8359 rm -f conftest.err conftest.$ac_ext
8360 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8361 echo "${ECHO_T}$ac_header_preproc" >&6
8363 # So? What about this header?
8364 case $ac_header_compiler:$ac_header_preproc in
8366 { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
8367 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8368 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8369 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8371 { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
8372 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
8373 { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
8374 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
8375 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
8376 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
8378 echo "$as_me:$LINENO: checking for krb.h" >&5
8379 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
8380 if test "${ac_cv_header_krb_h+set}" = set; then
8381 echo $ECHO_N "(cached) $ECHO_C" >&6
8383 ac_cv_header_krb_h=$ac_header_preproc
8385 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
8386 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
8389 if test $ac_cv_header_krb_h = yes; then
8392 { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
8393 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
8394 { (exit 1); exit 1; }; }
8400 if test "$with_krb5" = yes ; then
8401 if test "${ac_cv_header_krb5_h+set}" = set; then
8402 echo "$as_me:$LINENO: checking for krb5.h" >&5
8403 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8404 if test "${ac_cv_header_krb5_h+set}" = set; then
8405 echo $ECHO_N "(cached) $ECHO_C" >&6
8407 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8408 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8410 # Is the header compilable?
8411 echo "$as_me:$LINENO: checking krb5.h usability" >&5
8412 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
8413 cat >conftest.$ac_ext <<_ACEOF
8414 #line $LINENO "configure"
8415 #include "confdefs.h"
8416 $ac_includes_default
8419 rm -f conftest.$ac_objext
8420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8421 (eval $ac_compile) 2>&5
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 (exit $ac_status); } &&
8425 { ac_try='test -s conftest.$ac_objext'
8426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); }; }; then
8431 ac_header_compiler=yes
8433 echo "$as_me: failed program was:" >&5
8434 cat conftest.$ac_ext >&5
8435 ac_header_compiler=no
8437 rm -f conftest.$ac_objext conftest.$ac_ext
8438 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8439 echo "${ECHO_T}$ac_header_compiler" >&6
8441 # Is the header present?
8442 echo "$as_me:$LINENO: checking krb5.h presence" >&5
8443 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
8444 cat >conftest.$ac_ext <<_ACEOF
8445 #line $LINENO "configure"
8446 #include "confdefs.h"
8449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8450 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8452 egrep -v '^ *\+' conftest.er1 >conftest.err
8454 cat conftest.err >&5
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); } >/dev/null; then
8457 if test -s conftest.err; then
8458 ac_cpp_err=$ac_c_preproc_warn_flag
8465 if test -z "$ac_cpp_err"; then
8466 ac_header_preproc=yes
8468 echo "$as_me: failed program was:" >&5
8469 cat conftest.$ac_ext >&5
8470 ac_header_preproc=no
8472 rm -f conftest.err conftest.$ac_ext
8473 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8474 echo "${ECHO_T}$ac_header_preproc" >&6
8476 # So? What about this header?
8477 case $ac_header_compiler:$ac_header_preproc in
8479 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8480 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8481 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8482 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8484 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8485 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8486 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8487 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8488 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8489 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8491 echo "$as_me:$LINENO: checking for krb5.h" >&5
8492 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8493 if test "${ac_cv_header_krb5_h+set}" = set; then
8494 echo $ECHO_N "(cached) $ECHO_C" >&6
8496 ac_cv_header_krb5_h=$ac_header_preproc
8498 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8499 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8502 if test $ac_cv_header_krb5_h = yes; then
8505 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8506 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8507 { (exit 1); exit 1; }; }
8511 if test "${ac_cv_header_com_err_h+set}" = set; then
8512 echo "$as_me:$LINENO: checking for com_err.h" >&5
8513 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8514 if test "${ac_cv_header_com_err_h+set}" = set; then
8515 echo $ECHO_N "(cached) $ECHO_C" >&6
8517 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8518 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8520 # Is the header compilable?
8521 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8522 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8523 cat >conftest.$ac_ext <<_ACEOF
8524 #line $LINENO "configure"
8525 #include "confdefs.h"
8526 $ac_includes_default
8527 #include <com_err.h>
8529 rm -f conftest.$ac_objext
8530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8531 (eval $ac_compile) 2>&5
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); } &&
8535 { ac_try='test -s conftest.$ac_objext'
8536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); }; }; then
8541 ac_header_compiler=yes
8543 echo "$as_me: failed program was:" >&5
8544 cat conftest.$ac_ext >&5
8545 ac_header_compiler=no
8547 rm -f conftest.$ac_objext conftest.$ac_ext
8548 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8549 echo "${ECHO_T}$ac_header_compiler" >&6
8551 # Is the header present?
8552 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8553 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8554 cat >conftest.$ac_ext <<_ACEOF
8555 #line $LINENO "configure"
8556 #include "confdefs.h"
8557 #include <com_err.h>
8559 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8560 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8562 egrep -v '^ *\+' conftest.er1 >conftest.err
8564 cat conftest.err >&5
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); } >/dev/null; then
8567 if test -s conftest.err; then
8568 ac_cpp_err=$ac_c_preproc_warn_flag
8575 if test -z "$ac_cpp_err"; then
8576 ac_header_preproc=yes
8578 echo "$as_me: failed program was:" >&5
8579 cat conftest.$ac_ext >&5
8580 ac_header_preproc=no
8582 rm -f conftest.err conftest.$ac_ext
8583 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8584 echo "${ECHO_T}$ac_header_preproc" >&6
8586 # So? What about this header?
8587 case $ac_header_compiler:$ac_header_preproc in
8589 { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8590 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8591 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8592 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8594 { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8595 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8596 { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8597 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8598 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8599 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8601 echo "$as_me:$LINENO: checking for com_err.h" >&5
8602 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8603 if test "${ac_cv_header_com_err_h+set}" = set; then
8604 echo $ECHO_N "(cached) $ECHO_C" >&6
8606 ac_cv_header_com_err_h=$ac_header_preproc
8608 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8609 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8612 if test $ac_cv_header_com_err_h = yes; then
8615 { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8616 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8617 { (exit 1); exit 1; }; }
8623 if test "$with_openssl" = yes ; then
8624 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8625 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8626 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8627 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8628 echo $ECHO_N "(cached) $ECHO_C" >&6
8630 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8631 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8633 # Is the header compilable?
8634 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8635 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8636 cat >conftest.$ac_ext <<_ACEOF
8637 #line $LINENO "configure"
8638 #include "confdefs.h"
8639 $ac_includes_default
8640 #include <openssl/ssl.h>
8642 rm -f conftest.$ac_objext
8643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8644 (eval $ac_compile) 2>&5
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); } &&
8648 { ac_try='test -s conftest.$ac_objext'
8649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); }; }; then
8654 ac_header_compiler=yes
8656 echo "$as_me: failed program was:" >&5
8657 cat conftest.$ac_ext >&5
8658 ac_header_compiler=no
8660 rm -f conftest.$ac_objext conftest.$ac_ext
8661 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8662 echo "${ECHO_T}$ac_header_compiler" >&6
8664 # Is the header present?
8665 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8666 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8667 cat >conftest.$ac_ext <<_ACEOF
8668 #line $LINENO "configure"
8669 #include "confdefs.h"
8670 #include <openssl/ssl.h>
8672 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8673 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8675 egrep -v '^ *\+' conftest.er1 >conftest.err
8677 cat conftest.err >&5
8678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679 (exit $ac_status); } >/dev/null; then
8680 if test -s conftest.err; then
8681 ac_cpp_err=$ac_c_preproc_warn_flag
8688 if test -z "$ac_cpp_err"; then
8689 ac_header_preproc=yes
8691 echo "$as_me: failed program was:" >&5
8692 cat conftest.$ac_ext >&5
8693 ac_header_preproc=no
8695 rm -f conftest.err conftest.$ac_ext
8696 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8697 echo "${ECHO_T}$ac_header_preproc" >&6
8699 # So? What about this header?
8700 case $ac_header_compiler:$ac_header_preproc in
8702 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8703 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8704 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8705 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8707 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8708 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8709 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8710 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8711 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8712 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8714 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8715 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8716 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8717 echo $ECHO_N "(cached) $ECHO_C" >&6
8719 ac_cv_header_openssl_ssl_h=$ac_header_preproc
8721 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8722 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8725 if test $ac_cv_header_openssl_ssl_h = yes; then
8728 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8729 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8730 { (exit 1); exit 1; }; }
8734 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8735 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8736 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8737 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8738 echo $ECHO_N "(cached) $ECHO_C" >&6
8740 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8741 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8743 # Is the header compilable?
8744 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8745 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8746 cat >conftest.$ac_ext <<_ACEOF
8747 #line $LINENO "configure"
8748 #include "confdefs.h"
8749 $ac_includes_default
8750 #include <openssl/err.h>
8752 rm -f conftest.$ac_objext
8753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8754 (eval $ac_compile) 2>&5
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 (exit $ac_status); } &&
8758 { ac_try='test -s conftest.$ac_objext'
8759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); }; }; then
8764 ac_header_compiler=yes
8766 echo "$as_me: failed program was:" >&5
8767 cat conftest.$ac_ext >&5
8768 ac_header_compiler=no
8770 rm -f conftest.$ac_objext conftest.$ac_ext
8771 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8772 echo "${ECHO_T}$ac_header_compiler" >&6
8774 # Is the header present?
8775 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8776 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8777 cat >conftest.$ac_ext <<_ACEOF
8778 #line $LINENO "configure"
8779 #include "confdefs.h"
8780 #include <openssl/err.h>
8782 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8783 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8785 egrep -v '^ *\+' conftest.er1 >conftest.err
8787 cat conftest.err >&5
8788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789 (exit $ac_status); } >/dev/null; then
8790 if test -s conftest.err; then
8791 ac_cpp_err=$ac_c_preproc_warn_flag
8798 if test -z "$ac_cpp_err"; then
8799 ac_header_preproc=yes
8801 echo "$as_me: failed program was:" >&5
8802 cat conftest.$ac_ext >&5
8803 ac_header_preproc=no
8805 rm -f conftest.err conftest.$ac_ext
8806 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8807 echo "${ECHO_T}$ac_header_preproc" >&6
8809 # So? What about this header?
8810 case $ac_header_compiler:$ac_header_preproc in
8812 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8813 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8814 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8815 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8817 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8818 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8819 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8820 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8821 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8822 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8824 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8825 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8826 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8827 echo $ECHO_N "(cached) $ECHO_C" >&6
8829 ac_cv_header_openssl_err_h=$ac_header_preproc
8831 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8832 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8835 if test $ac_cv_header_openssl_err_h = yes; then
8838 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8839 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8840 { (exit 1); exit 1; }; }
8846 if test "$with_pam" = yes ; then
8848 for ac_header in security/pam_appl.h
8850 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8852 echo "$as_me:$LINENO: checking for $ac_header" >&5
8853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8855 echo $ECHO_N "(cached) $ECHO_C" >&6
8857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8858 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8860 # Is the header compilable?
8861 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8862 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8863 cat >conftest.$ac_ext <<_ACEOF
8864 #line $LINENO "configure"
8865 #include "confdefs.h"
8866 $ac_includes_default
8867 #include <$ac_header>
8869 rm -f conftest.$ac_objext
8870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8871 (eval $ac_compile) 2>&5
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); } &&
8875 { ac_try='test -s conftest.$ac_objext'
8876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880 (exit $ac_status); }; }; then
8881 ac_header_compiler=yes
8883 echo "$as_me: failed program was:" >&5
8884 cat conftest.$ac_ext >&5
8885 ac_header_compiler=no
8887 rm -f conftest.$ac_objext conftest.$ac_ext
8888 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8889 echo "${ECHO_T}$ac_header_compiler" >&6
8891 # Is the header present?
8892 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8893 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8894 cat >conftest.$ac_ext <<_ACEOF
8895 #line $LINENO "configure"
8896 #include "confdefs.h"
8897 #include <$ac_header>
8899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8900 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8902 egrep -v '^ *\+' conftest.er1 >conftest.err
8904 cat conftest.err >&5
8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906 (exit $ac_status); } >/dev/null; then
8907 if test -s conftest.err; then
8908 ac_cpp_err=$ac_c_preproc_warn_flag
8915 if test -z "$ac_cpp_err"; then
8916 ac_header_preproc=yes
8918 echo "$as_me: failed program was:" >&5
8919 cat conftest.$ac_ext >&5
8920 ac_header_preproc=no
8922 rm -f conftest.err conftest.$ac_ext
8923 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8924 echo "${ECHO_T}$ac_header_preproc" >&6
8926 # So? What about this header?
8927 case $ac_header_compiler:$ac_header_preproc in
8929 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8930 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8931 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8932 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8934 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8935 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8936 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8937 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8939 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8941 echo "$as_me:$LINENO: checking for $ac_header" >&5
8942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8944 echo $ECHO_N "(cached) $ECHO_C" >&6
8946 eval "$as_ac_Header=$ac_header_preproc"
8948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8949 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8953 cat >>confdefs.h <<_ACEOF
8954 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8959 for ac_header in pam/pam_appl.h
8961 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8963 echo "$as_me:$LINENO: checking for $ac_header" >&5
8964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8966 echo $ECHO_N "(cached) $ECHO_C" >&6
8968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8971 # Is the header compilable?
8972 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8973 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8974 cat >conftest.$ac_ext <<_ACEOF
8975 #line $LINENO "configure"
8976 #include "confdefs.h"
8977 $ac_includes_default
8978 #include <$ac_header>
8980 rm -f conftest.$ac_objext
8981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8982 (eval $ac_compile) 2>&5
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); } &&
8986 { ac_try='test -s conftest.$ac_objext'
8987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991 (exit $ac_status); }; }; then
8992 ac_header_compiler=yes
8994 echo "$as_me: failed program was:" >&5
8995 cat conftest.$ac_ext >&5
8996 ac_header_compiler=no
8998 rm -f conftest.$ac_objext conftest.$ac_ext
8999 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9000 echo "${ECHO_T}$ac_header_compiler" >&6
9002 # Is the header present?
9003 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9004 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9005 cat >conftest.$ac_ext <<_ACEOF
9006 #line $LINENO "configure"
9007 #include "confdefs.h"
9008 #include <$ac_header>
9010 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9011 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9013 egrep -v '^ *\+' conftest.er1 >conftest.err
9015 cat conftest.err >&5
9016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017 (exit $ac_status); } >/dev/null; then
9018 if test -s conftest.err; then
9019 ac_cpp_err=$ac_c_preproc_warn_flag
9026 if test -z "$ac_cpp_err"; then
9027 ac_header_preproc=yes
9029 echo "$as_me: failed program was:" >&5
9030 cat conftest.$ac_ext >&5
9031 ac_header_preproc=no
9033 rm -f conftest.err conftest.$ac_ext
9034 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9035 echo "${ECHO_T}$ac_header_preproc" >&6
9037 # So? What about this header?
9038 case $ac_header_compiler:$ac_header_preproc in
9040 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9041 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9043 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9045 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9046 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9047 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9048 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9050 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9052 echo "$as_me:$LINENO: checking for $ac_header" >&5
9053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9055 echo $ECHO_N "(cached) $ECHO_C" >&6
9057 eval "$as_ac_Header=$ac_header_preproc"
9059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9064 cat >>confdefs.h <<_ACEOF
9065 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9069 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
9070 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
9071 { (exit 1); exit 1; }; }
9082 if test "$with_rendezvous" = yes ; then
9083 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9084 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
9085 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
9086 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9087 echo $ECHO_N "(cached) $ECHO_C" >&6
9089 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
9090 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
9092 # Is the header compilable?
9093 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
9094 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6
9095 cat >conftest.$ac_ext <<_ACEOF
9096 #line $LINENO "configure"
9097 #include "confdefs.h"
9098 $ac_includes_default
9099 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
9101 rm -f conftest.$ac_objext
9102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9103 (eval $ac_compile) 2>&5
9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106 (exit $ac_status); } &&
9107 { ac_try='test -s conftest.$ac_objext'
9108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); }; }; then
9113 ac_header_compiler=yes
9115 echo "$as_me: failed program was:" >&5
9116 cat conftest.$ac_ext >&5
9117 ac_header_compiler=no
9119 rm -f conftest.$ac_objext conftest.$ac_ext
9120 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9121 echo "${ECHO_T}$ac_header_compiler" >&6
9123 # Is the header present?
9124 echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
9125 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6
9126 cat >conftest.$ac_ext <<_ACEOF
9127 #line $LINENO "configure"
9128 #include "confdefs.h"
9129 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
9131 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9132 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9134 egrep -v '^ *\+' conftest.er1 >conftest.err
9136 cat conftest.err >&5
9137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138 (exit $ac_status); } >/dev/null; then
9139 if test -s conftest.err; then
9140 ac_cpp_err=$ac_c_preproc_warn_flag
9147 if test -z "$ac_cpp_err"; then
9148 ac_header_preproc=yes
9150 echo "$as_me: failed program was:" >&5
9151 cat conftest.$ac_ext >&5
9152 ac_header_preproc=no
9154 rm -f conftest.err conftest.$ac_ext
9155 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9156 echo "${ECHO_T}$ac_header_preproc" >&6
9158 # So? What about this header?
9159 case $ac_header_compiler:$ac_header_preproc in
9161 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
9162 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9163 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9164 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9166 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
9167 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
9168 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
9169 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
9170 { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
9171 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;};;
9173 echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
9174 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6
9175 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
9176 echo $ECHO_N "(cached) $ECHO_C" >&6
9178 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
9180 echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
9181 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6
9184 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
9187 { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&5
9188 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Rendezvous" >&2;}
9189 { (exit 1); exit 1; }; }
9197 ## Types, structures, compiler characteristics
9201 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9202 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9203 if test "${ac_cv_c_const+set}" = set; then
9204 echo $ECHO_N "(cached) $ECHO_C" >&6
9206 cat >conftest.$ac_ext <<_ACEOF
9207 #line $LINENO "configure"
9208 #include "confdefs.h"
9210 #ifdef F77_DUMMY_MAIN
9214 int F77_DUMMY_MAIN() { return 1; }
9219 /* FIXME: Include the comments suggested by Paul. */
9221 /* Ultrix mips cc rejects this. */
9222 typedef int charset[2];
9224 /* SunOS 4.1.1 cc rejects this. */
9225 char const *const *ccp;
9227 /* NEC SVR4.0.2 mips cc rejects this. */
9228 struct point {int x, y;};
9229 static struct point const zero = {0,0};
9230 /* AIX XL C 1.02.0.0 rejects this.
9231 It does not let you subtract one const X* pointer from another in
9232 an arm of an if-expression whose if-part is not a constant
9234 const char *g = "string";
9235 ccp = &g + (g ? g-g : 0);
9236 /* HPUX 7.0 cc rejects these. */
9239 ccp = (char const *const *) p;
9240 { /* SCO 3.2v4 cc rejects this. */
9242 char const *s = 0 ? (char *) 0 : (char const *) 0;
9246 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9248 const int *foo = &x[0];
9251 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9252 typedef const int *iptr;
9256 { /* AIX XL C 1.02.0.0 rejects this saying
9257 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9258 struct s { int j; const int *ap[3]; };
9259 struct s *b; b->j = 5;
9261 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9270 rm -f conftest.$ac_objext
9271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9272 (eval $ac_compile) 2>&5
9274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275 (exit $ac_status); } &&
9276 { ac_try='test -s conftest.$ac_objext'
9277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 (exit $ac_status); }; }; then
9284 echo "$as_me: failed program was:" >&5
9285 cat conftest.$ac_ext >&5
9288 rm -f conftest.$ac_objext conftest.$ac_ext
9290 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9291 echo "${ECHO_T}$ac_cv_c_const" >&6
9292 if test $ac_cv_c_const = no; then
9294 cat >>confdefs.h <<\_ACEOF
9300 echo "$as_me:$LINENO: checking for inline" >&5
9301 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9302 if test "${ac_cv_c_inline+set}" = set; then
9303 echo $ECHO_N "(cached) $ECHO_C" >&6
9306 for ac_kw in inline __inline__ __inline; do
9307 cat >conftest.$ac_ext <<_ACEOF
9308 #line $LINENO "configure"
9309 #include "confdefs.h"
9312 static $ac_kw foo_t static_foo () {return 0; }
9313 $ac_kw int foo () {return 0; }
9317 rm -f conftest.$ac_objext
9318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9319 (eval $ac_compile) 2>&5
9321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322 (exit $ac_status); } &&
9323 { ac_try='test -s conftest.$ac_objext'
9324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328 (exit $ac_status); }; }; then
9329 ac_cv_c_inline=$ac_kw; break
9331 echo "$as_me: failed program was:" >&5
9332 cat conftest.$ac_ext >&5
9334 rm -f conftest.$ac_objext conftest.$ac_ext
9338 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9339 echo "${ECHO_T}$ac_cv_c_inline" >&6
9340 case $ac_cv_c_inline in
9343 cat >>confdefs.h <<\_ACEOF
9347 *) cat >>confdefs.h <<_ACEOF
9348 #define inline $ac_cv_c_inline
9353 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
9354 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
9355 if test "${ac_cv_c_stringize+set}" = set; then
9356 echo $ECHO_N "(cached) $ECHO_C" >&6
9358 cat >conftest.$ac_ext <<_ACEOF
9359 #line $LINENO "configure"
9360 #include "confdefs.h"
9363 char *s = x(teststring);
9365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9366 egrep "#teststring" >/dev/null 2>&1; then
9367 ac_cv_c_stringize=no
9369 ac_cv_c_stringize=yes
9374 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
9375 echo "${ECHO_T}$ac_cv_c_stringize" >&6
9376 if test $ac_cv_c_stringize = yes; then
9378 cat >>confdefs.h <<\_ACEOF
9379 #define HAVE_STRINGIZE 1
9384 echo "$as_me:$LINENO: checking for signed types" >&5
9385 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
9386 if test "${pgac_cv_c_signed+set}" = set; then
9387 echo $ECHO_N "(cached) $ECHO_C" >&6
9389 cat >conftest.$ac_ext <<_ACEOF
9390 #line $LINENO "configure"
9391 #include "confdefs.h"
9393 #ifdef F77_DUMMY_MAIN
9397 int F77_DUMMY_MAIN() { return 1; }
9402 signed char c; signed short s; signed int i;
9407 rm -f conftest.$ac_objext
9408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9409 (eval $ac_compile) 2>&5
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); } &&
9413 { ac_try='test -s conftest.$ac_objext'
9414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418 (exit $ac_status); }; }; then
9419 pgac_cv_c_signed=yes
9421 echo "$as_me: failed program was:" >&5
9422 cat conftest.$ac_ext >&5
9425 rm -f conftest.$ac_objext conftest.$ac_ext
9427 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
9428 echo "${ECHO_T}$pgac_cv_c_signed" >&6
9429 if test x"$pgac_cv_c_signed" = xno ; then
9431 cat >>confdefs.h <<\_ACEOF
9436 echo "$as_me:$LINENO: checking for working volatile" >&5
9437 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
9438 if test "${ac_cv_c_volatile+set}" = set; then
9439 echo $ECHO_N "(cached) $ECHO_C" >&6
9441 cat >conftest.$ac_ext <<_ACEOF
9442 #line $LINENO "configure"
9443 #include "confdefs.h"
9445 #ifdef F77_DUMMY_MAIN
9449 int F77_DUMMY_MAIN() { return 1; }
9461 rm -f conftest.$ac_objext
9462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9463 (eval $ac_compile) 2>&5
9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466 (exit $ac_status); } &&
9467 { ac_try='test -s conftest.$ac_objext'
9468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472 (exit $ac_status); }; }; then
9473 ac_cv_c_volatile=yes
9475 echo "$as_me: failed program was:" >&5
9476 cat conftest.$ac_ext >&5
9479 rm -f conftest.$ac_objext conftest.$ac_ext
9481 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9482 echo "${ECHO_T}$ac_cv_c_volatile" >&6
9483 if test $ac_cv_c_volatile = no; then
9485 cat >>confdefs.h <<\_ACEOF
9491 echo "$as_me:$LINENO: checking for __func__" >&5
9492 echo $ECHO_N "checking for __func__... $ECHO_C" >&6
9493 if test "${pgac_cv_funcname_func_support+set}" = set; then
9494 echo $ECHO_N "(cached) $ECHO_C" >&6
9496 cat >conftest.$ac_ext <<_ACEOF
9497 #line $LINENO "configure"
9498 #include "confdefs.h"
9500 #ifdef F77_DUMMY_MAIN
9504 int F77_DUMMY_MAIN() { return 1; }
9509 printf("%s\n", __func__);
9514 rm -f conftest.$ac_objext
9515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9516 (eval $ac_compile) 2>&5
9518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519 (exit $ac_status); } &&
9520 { ac_try='test -s conftest.$ac_objext'
9521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525 (exit $ac_status); }; }; then
9526 pgac_cv_funcname_func_support=yes
9528 echo "$as_me: failed program was:" >&5
9529 cat conftest.$ac_ext >&5
9530 pgac_cv_funcname_func_support=no
9532 rm -f conftest.$ac_objext conftest.$ac_ext
9534 echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
9535 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6
9536 if test x"$pgac_cv_funcname_func_support" = xyes ; then
9538 cat >>confdefs.h <<\_ACEOF
9539 #define HAVE_FUNCNAME__FUNC 1
9543 echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
9544 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6
9545 if test "${pgac_cv_funcname_function_support+set}" = set; then
9546 echo $ECHO_N "(cached) $ECHO_C" >&6
9548 cat >conftest.$ac_ext <<_ACEOF
9549 #line $LINENO "configure"
9550 #include "confdefs.h"
9552 #ifdef F77_DUMMY_MAIN
9556 int F77_DUMMY_MAIN() { return 1; }
9561 printf("%s\n", __FUNCTION__);
9566 rm -f conftest.$ac_objext
9567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9568 (eval $ac_compile) 2>&5
9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 (exit $ac_status); } &&
9572 { ac_try='test -s conftest.$ac_objext'
9573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); }; }; then
9578 pgac_cv_funcname_function_support=yes
9580 echo "$as_me: failed program was:" >&5
9581 cat conftest.$ac_ext >&5
9582 pgac_cv_funcname_function_support=no
9584 rm -f conftest.$ac_objext conftest.$ac_ext
9586 echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
9587 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6
9588 if test x"$pgac_cv_funcname_function_support" = xyes ; then
9590 cat >>confdefs.h <<\_ACEOF
9591 #define HAVE_FUNCNAME__FUNCTION 1
9596 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9597 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9598 if test "${ac_cv_struct_tm+set}" = set; then
9599 echo $ECHO_N "(cached) $ECHO_C" >&6
9601 cat >conftest.$ac_ext <<_ACEOF
9602 #line $LINENO "configure"
9603 #include "confdefs.h"
9604 #include <sys/types.h>
9607 #ifdef F77_DUMMY_MAIN
9611 int F77_DUMMY_MAIN() { return 1; }
9616 struct tm *tp; tp->tm_sec;
9621 rm -f conftest.$ac_objext
9622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9623 (eval $ac_compile) 2>&5
9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626 (exit $ac_status); } &&
9627 { ac_try='test -s conftest.$ac_objext'
9628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); }; }; then
9633 ac_cv_struct_tm=time.h
9635 echo "$as_me: failed program was:" >&5
9636 cat conftest.$ac_ext >&5
9637 ac_cv_struct_tm=sys/time.h
9639 rm -f conftest.$ac_objext conftest.$ac_ext
9641 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9642 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9643 if test $ac_cv_struct_tm = sys/time.h; then
9645 cat >>confdefs.h <<\_ACEOF
9646 #define TM_IN_SYS_TIME 1
9651 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9652 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9653 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9654 echo $ECHO_N "(cached) $ECHO_C" >&6
9656 cat >conftest.$ac_ext <<_ACEOF
9657 #line $LINENO "configure"
9658 #include "confdefs.h"
9659 #include <sys/types.h>
9660 #include <$ac_cv_struct_tm>
9663 #ifdef F77_DUMMY_MAIN
9667 int F77_DUMMY_MAIN() { return 1; }
9672 static struct tm ac_aggr;
9673 if (ac_aggr.tm_zone)
9679 rm -f conftest.$ac_objext
9680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9681 (eval $ac_compile) 2>&5
9683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684 (exit $ac_status); } &&
9685 { ac_try='test -s conftest.$ac_objext'
9686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); }; }; then
9691 ac_cv_member_struct_tm_tm_zone=yes
9693 echo "$as_me: failed program was:" >&5
9694 cat conftest.$ac_ext >&5
9695 ac_cv_member_struct_tm_tm_zone=no
9697 rm -f conftest.$ac_objext conftest.$ac_ext
9699 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9700 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9701 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9703 cat >>confdefs.h <<_ACEOF
9704 #define HAVE_STRUCT_TM_TM_ZONE 1
9710 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9712 cat >>confdefs.h <<\_ACEOF
9713 #define HAVE_TM_ZONE 1
9717 echo "$as_me:$LINENO: checking for tzname" >&5
9718 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9719 if test "${ac_cv_var_tzname+set}" = set; then
9720 echo $ECHO_N "(cached) $ECHO_C" >&6
9722 cat >conftest.$ac_ext <<_ACEOF
9723 #line $LINENO "configure"
9724 #include "confdefs.h"
9726 #ifndef tzname /* For SGI. */
9727 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
9730 #ifdef F77_DUMMY_MAIN
9734 int F77_DUMMY_MAIN() { return 1; }
9744 rm -f conftest.$ac_objext conftest$ac_exeext
9745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9746 (eval $ac_link) 2>&5
9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749 (exit $ac_status); } &&
9750 { ac_try='test -s conftest$ac_exeext'
9751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); }; }; then
9756 ac_cv_var_tzname=yes
9758 echo "$as_me: failed program was:" >&5
9759 cat conftest.$ac_ext >&5
9762 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9764 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9765 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9766 if test $ac_cv_var_tzname = yes; then
9768 cat >>confdefs.h <<\_ACEOF
9769 #define HAVE_TZNAME 1
9774 echo "$as_me:$LINENO: checking for union semun" >&5
9775 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9776 if test "${ac_cv_type_union_semun+set}" = set; then
9777 echo $ECHO_N "(cached) $ECHO_C" >&6
9779 cat >conftest.$ac_ext <<_ACEOF
9780 #line $LINENO "configure"
9781 #include "confdefs.h"
9782 #include <sys/types.h>
9783 #include <sys/ipc.h>
9784 #include <sys/sem.h>
9786 #ifdef F77_DUMMY_MAIN
9790 int F77_DUMMY_MAIN() { return 1; }
9795 if ((union semun *) 0)
9797 if (sizeof (union semun))
9803 rm -f conftest.$ac_objext
9804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9805 (eval $ac_compile) 2>&5
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); } &&
9809 { ac_try='test -s conftest.$ac_objext'
9810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814 (exit $ac_status); }; }; then
9815 ac_cv_type_union_semun=yes
9817 echo "$as_me: failed program was:" >&5
9818 cat conftest.$ac_ext >&5
9819 ac_cv_type_union_semun=no
9821 rm -f conftest.$ac_objext conftest.$ac_ext
9823 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
9824 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
9825 if test $ac_cv_type_union_semun = yes; then
9827 cat >>confdefs.h <<_ACEOF
9828 #define HAVE_UNION_SEMUN 1
9834 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
9835 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
9836 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
9837 echo $ECHO_N "(cached) $ECHO_C" >&6
9839 cat >conftest.$ac_ext <<_ACEOF
9840 #line $LINENO "configure"
9841 #include "confdefs.h"
9842 #include <sys/types.h>
9843 #ifdef HAVE_SYS_UN_H
9848 #ifdef F77_DUMMY_MAIN
9852 int F77_DUMMY_MAIN() { return 1; }
9857 if ((struct sockaddr_un *) 0)
9859 if (sizeof (struct sockaddr_un))
9865 rm -f conftest.$ac_objext
9866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9867 (eval $ac_compile) 2>&5
9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 (exit $ac_status); } &&
9871 { ac_try='test -s conftest.$ac_objext'
9872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); }; }; then
9877 ac_cv_type_struct_sockaddr_un=yes
9879 echo "$as_me: failed program was:" >&5
9880 cat conftest.$ac_ext >&5
9881 ac_cv_type_struct_sockaddr_un=no
9883 rm -f conftest.$ac_objext conftest.$ac_ext
9885 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9886 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9887 if test $ac_cv_type_struct_sockaddr_un = yes; then
9889 cat >>confdefs.h <<_ACEOF
9890 #define HAVE_STRUCT_SOCKADDR_UN 1
9894 cat >>confdefs.h <<\_ACEOF
9895 #define HAVE_UNIX_SOCKETS 1
9900 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
9901 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
9902 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
9903 echo $ECHO_N "(cached) $ECHO_C" >&6
9905 cat >conftest.$ac_ext <<_ACEOF
9906 #line $LINENO "configure"
9907 #include "confdefs.h"
9908 #include <sys/types.h>
9909 #ifdef HAVE_SYS_SOCKET_H
9910 #include <sys/socket.h>
9914 #ifdef F77_DUMMY_MAIN
9918 int F77_DUMMY_MAIN() { return 1; }
9923 if ((struct sockaddr_storage *) 0)
9925 if (sizeof (struct sockaddr_storage))
9931 rm -f conftest.$ac_objext
9932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9933 (eval $ac_compile) 2>&5
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); } &&
9937 { ac_try='test -s conftest.$ac_objext'
9938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); }; }; then
9943 ac_cv_type_struct_sockaddr_storage=yes
9945 echo "$as_me: failed program was:" >&5
9946 cat conftest.$ac_ext >&5
9947 ac_cv_type_struct_sockaddr_storage=no
9949 rm -f conftest.$ac_objext conftest.$ac_ext
9951 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
9952 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
9953 if test $ac_cv_type_struct_sockaddr_storage = yes; then
9955 cat >>confdefs.h <<_ACEOF
9956 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
9962 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
9963 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6
9964 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
9965 echo $ECHO_N "(cached) $ECHO_C" >&6
9967 cat >conftest.$ac_ext <<_ACEOF
9968 #line $LINENO "configure"
9969 #include "confdefs.h"
9970 #include <sys/types.h>
9971 #ifdef HAVE_SYS_SOCKET_H
9972 #include <sys/socket.h>
9976 #ifdef F77_DUMMY_MAIN
9980 int F77_DUMMY_MAIN() { return 1; }
9985 static struct sockaddr_storage ac_aggr;
9986 if (ac_aggr.ss_family)
9992 rm -f conftest.$ac_objext
9993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9994 (eval $ac_compile) 2>&5
9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); } &&
9998 { ac_try='test -s conftest.$ac_objext'
9999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10000 (eval $ac_try) 2>&5
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); }; }; then
10004 ac_cv_member_struct_sockaddr_storage_ss_family=yes
10006 echo "$as_me: failed program was:" >&5
10007 cat conftest.$ac_ext >&5
10008 ac_cv_member_struct_sockaddr_storage_ss_family=no
10010 rm -f conftest.$ac_objext conftest.$ac_ext
10012 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
10013 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6
10014 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
10016 cat >>confdefs.h <<_ACEOF
10017 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
10022 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
10023 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6
10024 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
10025 echo $ECHO_N "(cached) $ECHO_C" >&6
10027 cat >conftest.$ac_ext <<_ACEOF
10028 #line $LINENO "configure"
10029 #include "confdefs.h"
10030 #include <sys/types.h>
10031 #ifdef HAVE_SYS_SOCKET_H
10032 #include <sys/socket.h>
10036 #ifdef F77_DUMMY_MAIN
10037 # ifdef __cplusplus
10040 int F77_DUMMY_MAIN() { return 1; }
10045 static struct sockaddr_storage ac_aggr;
10046 if (ac_aggr.__ss_family)
10052 rm -f conftest.$ac_objext
10053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10054 (eval $ac_compile) 2>&5
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); } &&
10058 { ac_try='test -s conftest.$ac_objext'
10059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10060 (eval $ac_try) 2>&5
10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); }; }; then
10064 ac_cv_member_struct_sockaddr_storage___ss_family=yes
10066 echo "$as_me: failed program was:" >&5
10067 cat conftest.$ac_ext >&5
10068 ac_cv_member_struct_sockaddr_storage___ss_family=no
10070 rm -f conftest.$ac_objext conftest.$ac_ext
10072 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
10073 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6
10074 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
10076 cat >>confdefs.h <<_ACEOF
10077 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
10082 echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
10083 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6
10084 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
10085 echo $ECHO_N "(cached) $ECHO_C" >&6
10087 cat >conftest.$ac_ext <<_ACEOF
10088 #line $LINENO "configure"
10089 #include "confdefs.h"
10090 #include <sys/types.h>
10091 #ifdef HAVE_SYS_SOCKET_H
10092 #include <sys/socket.h>
10096 #ifdef F77_DUMMY_MAIN
10097 # ifdef __cplusplus
10100 int F77_DUMMY_MAIN() { return 1; }
10105 static struct sockaddr_storage ac_aggr;
10106 if (ac_aggr.ss_len)
10112 rm -f conftest.$ac_objext
10113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10114 (eval $ac_compile) 2>&5
10116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117 (exit $ac_status); } &&
10118 { ac_try='test -s conftest.$ac_objext'
10119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10120 (eval $ac_try) 2>&5
10122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123 (exit $ac_status); }; }; then
10124 ac_cv_member_struct_sockaddr_storage_ss_len=yes
10126 echo "$as_me: failed program was:" >&5
10127 cat conftest.$ac_ext >&5
10128 ac_cv_member_struct_sockaddr_storage_ss_len=no
10130 rm -f conftest.$ac_objext conftest.$ac_ext
10132 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
10133 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6
10134 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
10136 cat >>confdefs.h <<_ACEOF
10137 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
10142 echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
10143 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6
10144 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
10145 echo $ECHO_N "(cached) $ECHO_C" >&6
10147 cat >conftest.$ac_ext <<_ACEOF
10148 #line $LINENO "configure"
10149 #include "confdefs.h"
10150 #include <sys/types.h>
10151 #ifdef HAVE_SYS_SOCKET_H
10152 #include <sys/socket.h>
10156 #ifdef F77_DUMMY_MAIN
10157 # ifdef __cplusplus
10160 int F77_DUMMY_MAIN() { return 1; }
10165 static struct sockaddr_storage ac_aggr;
10166 if (ac_aggr.__ss_len)
10172 rm -f conftest.$ac_objext
10173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10174 (eval $ac_compile) 2>&5
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); } &&
10178 { ac_try='test -s conftest.$ac_objext'
10179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10180 (eval $ac_try) 2>&5
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); }; }; then
10184 ac_cv_member_struct_sockaddr_storage___ss_len=yes
10186 echo "$as_me: failed program was:" >&5
10187 cat conftest.$ac_ext >&5
10188 ac_cv_member_struct_sockaddr_storage___ss_len=no
10190 rm -f conftest.$ac_objext conftest.$ac_ext
10192 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
10193 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6
10194 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
10196 cat >>confdefs.h <<_ACEOF
10197 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
10202 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
10203 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
10204 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
10205 echo $ECHO_N "(cached) $ECHO_C" >&6
10207 cat >conftest.$ac_ext <<_ACEOF
10208 #line $LINENO "configure"
10209 #include "confdefs.h"
10210 #include <sys/types.h>
10211 #ifdef HAVE_SYS_SOCKET_H
10212 #include <sys/socket.h>
10216 #ifdef F77_DUMMY_MAIN
10217 # ifdef __cplusplus
10220 int F77_DUMMY_MAIN() { return 1; }
10225 static struct sockaddr ac_aggr;
10226 if (ac_aggr.sa_len)
10232 rm -f conftest.$ac_objext
10233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10234 (eval $ac_compile) 2>&5
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); } &&
10238 { ac_try='test -s conftest.$ac_objext'
10239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10240 (eval $ac_try) 2>&5
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 (exit $ac_status); }; }; then
10244 ac_cv_member_struct_sockaddr_sa_len=yes
10246 echo "$as_me: failed program was:" >&5
10247 cat conftest.$ac_ext >&5
10248 ac_cv_member_struct_sockaddr_sa_len=no
10250 rm -f conftest.$ac_objext conftest.$ac_ext
10252 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
10253 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
10254 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
10256 cat >>confdefs.h <<_ACEOF
10257 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
10263 echo "$as_me:$LINENO: checking for struct addrinfo" >&5
10264 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
10265 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
10266 echo $ECHO_N "(cached) $ECHO_C" >&6
10268 cat >conftest.$ac_ext <<_ACEOF
10269 #line $LINENO "configure"
10270 #include "confdefs.h"
10271 #include <sys/types.h>
10272 #include <sys/socket.h>
10276 #ifdef F77_DUMMY_MAIN
10277 # ifdef __cplusplus
10280 int F77_DUMMY_MAIN() { return 1; }
10285 if ((struct addrinfo *) 0)
10287 if (sizeof (struct addrinfo))
10293 rm -f conftest.$ac_objext
10294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10295 (eval $ac_compile) 2>&5
10297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298 (exit $ac_status); } &&
10299 { ac_try='test -s conftest.$ac_objext'
10300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10301 (eval $ac_try) 2>&5
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); }; }; then
10305 ac_cv_type_struct_addrinfo=yes
10307 echo "$as_me: failed program was:" >&5
10308 cat conftest.$ac_ext >&5
10309 ac_cv_type_struct_addrinfo=no
10311 rm -f conftest.$ac_objext conftest.$ac_ext
10313 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
10314 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
10315 if test $ac_cv_type_struct_addrinfo = yes; then
10317 cat >>confdefs.h <<_ACEOF
10318 #define HAVE_STRUCT_ADDRINFO 1
10325 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
10326 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
10327 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
10328 echo $ECHO_N "(cached) $ECHO_C" >&6
10330 cat >conftest.$ac_ext <<_ACEOF
10331 #line $LINENO "configure"
10332 #include "confdefs.h"
10333 #include <sys/param.h>
10334 #include <sys/types.h>
10335 #include <sys/socket.h>
10336 #include <sys/ucred.h>
10338 #ifdef F77_DUMMY_MAIN
10339 # ifdef __cplusplus
10342 int F77_DUMMY_MAIN() { return 1; }
10347 if ((struct cmsgcred *) 0)
10349 if (sizeof (struct cmsgcred))
10355 rm -f conftest.$ac_objext
10356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10357 (eval $ac_compile) 2>&5
10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); } &&
10361 { ac_try='test -s conftest.$ac_objext'
10362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10363 (eval $ac_try) 2>&5
10365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366 (exit $ac_status); }; }; then
10367 ac_cv_type_struct_cmsgcred=yes
10369 echo "$as_me: failed program was:" >&5
10370 cat conftest.$ac_ext >&5
10371 ac_cv_type_struct_cmsgcred=no
10373 rm -f conftest.$ac_objext conftest.$ac_ext
10375 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
10376 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
10377 if test $ac_cv_type_struct_cmsgcred = yes; then
10379 cat >>confdefs.h <<_ACEOF
10380 #define HAVE_STRUCT_CMSGCRED 1
10385 echo "$as_me:$LINENO: checking for struct fcred" >&5
10386 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
10387 if test "${ac_cv_type_struct_fcred+set}" = set; then
10388 echo $ECHO_N "(cached) $ECHO_C" >&6
10390 cat >conftest.$ac_ext <<_ACEOF
10391 #line $LINENO "configure"
10392 #include "confdefs.h"
10393 #include <sys/param.h>
10394 #include <sys/types.h>
10395 #include <sys/socket.h>
10396 #include <sys/ucred.h>
10398 #ifdef F77_DUMMY_MAIN
10399 # ifdef __cplusplus
10402 int F77_DUMMY_MAIN() { return 1; }
10407 if ((struct fcred *) 0)
10409 if (sizeof (struct fcred))
10415 rm -f conftest.$ac_objext
10416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10417 (eval $ac_compile) 2>&5
10419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420 (exit $ac_status); } &&
10421 { ac_try='test -s conftest.$ac_objext'
10422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10423 (eval $ac_try) 2>&5
10425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426 (exit $ac_status); }; }; then
10427 ac_cv_type_struct_fcred=yes
10429 echo "$as_me: failed program was:" >&5
10430 cat conftest.$ac_ext >&5
10431 ac_cv_type_struct_fcred=no
10433 rm -f conftest.$ac_objext conftest.$ac_ext
10435 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
10436 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
10437 if test $ac_cv_type_struct_fcred = yes; then
10439 cat >>confdefs.h <<_ACEOF
10440 #define HAVE_STRUCT_FCRED 1
10445 echo "$as_me:$LINENO: checking for struct sockcred" >&5
10446 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
10447 if test "${ac_cv_type_struct_sockcred+set}" = set; then
10448 echo $ECHO_N "(cached) $ECHO_C" >&6
10450 cat >conftest.$ac_ext <<_ACEOF
10451 #line $LINENO "configure"
10452 #include "confdefs.h"
10453 #include <sys/param.h>
10454 #include <sys/types.h>
10455 #include <sys/socket.h>
10456 #include <sys/ucred.h>
10458 #ifdef F77_DUMMY_MAIN
10459 # ifdef __cplusplus
10462 int F77_DUMMY_MAIN() { return 1; }
10467 if ((struct sockcred *) 0)
10469 if (sizeof (struct sockcred))
10475 rm -f conftest.$ac_objext
10476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10477 (eval $ac_compile) 2>&5
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); } &&
10481 { ac_try='test -s conftest.$ac_objext'
10482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10483 (eval $ac_try) 2>&5
10485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 (exit $ac_status); }; }; then
10487 ac_cv_type_struct_sockcred=yes
10489 echo "$as_me: failed program was:" >&5
10490 cat conftest.$ac_ext >&5
10491 ac_cv_type_struct_sockcred=no
10493 rm -f conftest.$ac_objext conftest.$ac_ext
10495 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
10496 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
10497 if test $ac_cv_type_struct_sockcred = yes; then
10499 cat >>confdefs.h <<_ACEOF
10500 #define HAVE_STRUCT_SOCKCRED 1
10507 echo "$as_me:$LINENO: checking for struct option" >&5
10508 echo $ECHO_N "checking for struct option... $ECHO_C" >&6
10509 if test "${ac_cv_type_struct_option+set}" = set; then
10510 echo $ECHO_N "(cached) $ECHO_C" >&6
10512 cat >conftest.$ac_ext <<_ACEOF
10513 #line $LINENO "configure"
10514 #include "confdefs.h"
10515 #ifdef HAVE_GETOPT_H
10516 #include <getopt.h>
10519 #ifdef F77_DUMMY_MAIN
10520 # ifdef __cplusplus
10523 int F77_DUMMY_MAIN() { return 1; }
10528 if ((struct option *) 0)
10530 if (sizeof (struct option))
10536 rm -f conftest.$ac_objext
10537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10538 (eval $ac_compile) 2>&5
10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); } &&
10542 { ac_try='test -s conftest.$ac_objext'
10543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10544 (eval $ac_try) 2>&5
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); }; }; then
10548 ac_cv_type_struct_option=yes
10550 echo "$as_me: failed program was:" >&5
10551 cat conftest.$ac_ext >&5
10552 ac_cv_type_struct_option=no
10554 rm -f conftest.$ac_objext conftest.$ac_ext
10556 echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
10557 echo "${ECHO_T}$ac_cv_type_struct_option" >&6
10558 if test $ac_cv_type_struct_option = yes; then
10560 cat >>confdefs.h <<_ACEOF
10561 #define HAVE_STRUCT_OPTION 1
10568 if test "$with_zlib" = yes; then
10569 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
10570 # did not). While we could work around the lack of z_streamp, it
10571 # seems unwise to encourage people to use such old zlib versions...
10572 echo "$as_me:$LINENO: checking for z_streamp" >&5
10573 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
10574 if test "${ac_cv_type_z_streamp+set}" = set; then
10575 echo $ECHO_N "(cached) $ECHO_C" >&6
10577 cat >conftest.$ac_ext <<_ACEOF
10578 #line $LINENO "configure"
10579 #include "confdefs.h"
10582 #ifdef F77_DUMMY_MAIN
10583 # ifdef __cplusplus
10586 int F77_DUMMY_MAIN() { return 1; }
10591 if ((z_streamp *) 0)
10593 if (sizeof (z_streamp))
10599 rm -f conftest.$ac_objext
10600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10601 (eval $ac_compile) 2>&5
10603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604 (exit $ac_status); } &&
10605 { ac_try='test -s conftest.$ac_objext'
10606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10607 (eval $ac_try) 2>&5
10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610 (exit $ac_status); }; }; then
10611 ac_cv_type_z_streamp=yes
10613 echo "$as_me: failed program was:" >&5
10614 cat conftest.$ac_ext >&5
10615 ac_cv_type_z_streamp=no
10617 rm -f conftest.$ac_objext conftest.$ac_ext
10619 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
10620 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
10621 if test $ac_cv_type_z_streamp = yes; then
10624 { { echo "$as_me:$LINENO: error: zlib version is too old
10625 Use --without-zlib to disable zlib support." >&5
10626 echo "$as_me: error: zlib version is too old
10627 Use --without-zlib to disable zlib support." >&2;}
10628 { (exit 1); exit 1; }; }
10633 if test "$with_krb5" = yes; then
10634 # Check for differences between MIT and Heimdal (KTH) releases
10635 echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
10636 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
10637 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
10638 echo $ECHO_N "(cached) $ECHO_C" >&6
10640 cat >conftest.$ac_ext <<_ACEOF
10641 #line $LINENO "configure"
10642 #include "confdefs.h"
10645 #ifdef F77_DUMMY_MAIN
10646 # ifdef __cplusplus
10649 int F77_DUMMY_MAIN() { return 1; }
10654 static krb5_ticket ac_aggr;
10655 if (ac_aggr.enc_part2)
10661 rm -f conftest.$ac_objext
10662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10663 (eval $ac_compile) 2>&5
10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666 (exit $ac_status); } &&
10667 { ac_try='test -s conftest.$ac_objext'
10668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10669 (eval $ac_try) 2>&5
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); }; }; then
10673 ac_cv_member_krb5_ticket_enc_part2=yes
10675 echo "$as_me: failed program was:" >&5
10676 cat conftest.$ac_ext >&5
10677 ac_cv_member_krb5_ticket_enc_part2=no
10679 rm -f conftest.$ac_objext conftest.$ac_ext
10681 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
10682 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
10683 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
10685 cat >>confdefs.h <<_ACEOF
10686 #define HAVE_KRB5_TICKET_ENC_PART2 1
10691 echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
10692 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
10693 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
10694 echo $ECHO_N "(cached) $ECHO_C" >&6
10696 cat >conftest.$ac_ext <<_ACEOF
10697 #line $LINENO "configure"
10698 #include "confdefs.h"
10701 #ifdef F77_DUMMY_MAIN
10702 # ifdef __cplusplus
10705 int F77_DUMMY_MAIN() { return 1; }
10710 static krb5_ticket ac_aggr;
10711 if (ac_aggr.client)
10717 rm -f conftest.$ac_objext
10718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10719 (eval $ac_compile) 2>&5
10721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722 (exit $ac_status); } &&
10723 { ac_try='test -s conftest.$ac_objext'
10724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10725 (eval $ac_try) 2>&5
10727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728 (exit $ac_status); }; }; then
10729 ac_cv_member_krb5_ticket_client=yes
10731 echo "$as_me: failed program was:" >&5
10732 cat conftest.$ac_ext >&5
10733 ac_cv_member_krb5_ticket_client=no
10735 rm -f conftest.$ac_objext conftest.$ac_ext
10737 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
10738 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
10739 if test $ac_cv_member_krb5_ticket_client = yes; then
10741 cat >>confdefs.h <<_ACEOF
10742 #define HAVE_KRB5_TICKET_CLIENT 1
10747 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
10748 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
10749 { (exit 1); exit 1; }; }
10754 echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
10755 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
10756 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
10757 echo $ECHO_N "(cached) $ECHO_C" >&6
10759 cat >conftest.$ac_ext <<_ACEOF
10760 #line $LINENO "configure"
10761 #include "confdefs.h"
10764 #ifdef F77_DUMMY_MAIN
10765 # ifdef __cplusplus
10768 int F77_DUMMY_MAIN() { return 1; }
10773 static krb5_error ac_aggr;
10774 if (ac_aggr.text.data)
10780 rm -f conftest.$ac_objext
10781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10782 (eval $ac_compile) 2>&5
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); } &&
10786 { ac_try='test -s conftest.$ac_objext'
10787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10788 (eval $ac_try) 2>&5
10790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791 (exit $ac_status); }; }; then
10792 ac_cv_member_krb5_error_text_data=yes
10794 echo "$as_me: failed program was:" >&5
10795 cat conftest.$ac_ext >&5
10796 ac_cv_member_krb5_error_text_data=no
10798 rm -f conftest.$ac_objext conftest.$ac_ext
10800 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
10801 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
10802 if test $ac_cv_member_krb5_error_text_data = yes; then
10804 cat >>confdefs.h <<_ACEOF
10805 #define HAVE_KRB5_ERROR_TEXT_DATA 1
10810 echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
10811 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
10812 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
10813 echo $ECHO_N "(cached) $ECHO_C" >&6
10815 cat >conftest.$ac_ext <<_ACEOF
10816 #line $LINENO "configure"
10817 #include "confdefs.h"
10820 #ifdef F77_DUMMY_MAIN
10821 # ifdef __cplusplus
10824 int F77_DUMMY_MAIN() { return 1; }
10829 static krb5_error ac_aggr;
10830 if (ac_aggr.e_data)
10836 rm -f conftest.$ac_objext
10837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10838 (eval $ac_compile) 2>&5
10840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841 (exit $ac_status); } &&
10842 { ac_try='test -s conftest.$ac_objext'
10843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10844 (eval $ac_try) 2>&5
10846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847 (exit $ac_status); }; }; then
10848 ac_cv_member_krb5_error_e_data=yes
10850 echo "$as_me: failed program was:" >&5
10851 cat conftest.$ac_ext >&5
10852 ac_cv_member_krb5_error_e_data=no
10854 rm -f conftest.$ac_objext conftest.$ac_ext
10856 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
10857 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
10858 if test $ac_cv_member_krb5_error_e_data = yes; then
10860 cat >>confdefs.h <<_ACEOF
10861 #define HAVE_KRB5_ERROR_E_DATA 1
10866 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
10867 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
10868 { (exit 1); exit 1; }; }
10877 ## Functions, global variables
10880 echo "$as_me:$LINENO: checking for int timezone" >&5
10881 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
10882 if test "${pgac_cv_var_int_timezone+set}" = set; then
10883 echo $ECHO_N "(cached) $ECHO_C" >&6
10885 cat >conftest.$ac_ext <<_ACEOF
10886 #line $LINENO "configure"
10887 #include "confdefs.h"
10890 #ifdef F77_DUMMY_MAIN
10891 # ifdef __cplusplus
10894 int F77_DUMMY_MAIN() { return 1; }
10899 res = timezone / 60;
10904 rm -f conftest.$ac_objext conftest$ac_exeext
10905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10906 (eval $ac_link) 2>&5
10908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909 (exit $ac_status); } &&
10910 { ac_try='test -s conftest$ac_exeext'
10911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10912 (eval $ac_try) 2>&5
10914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915 (exit $ac_status); }; }; then
10916 pgac_cv_var_int_timezone=yes
10918 echo "$as_me: failed program was:" >&5
10919 cat conftest.$ac_ext >&5
10920 pgac_cv_var_int_timezone=no
10922 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10924 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
10925 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
10926 if test x"$pgac_cv_var_int_timezone" = xyes ; then
10928 cat >>confdefs.h <<\_ACEOF
10929 #define HAVE_INT_TIMEZONE
10933 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
10934 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
10935 if test "${ac_cv_func_accept_return+set}" = set; then
10936 echo $ECHO_N "(cached) $ECHO_C" >&6
10938 if test "${ac_cv_func_accept_arg1+set}" = set; then
10939 echo $ECHO_N "(cached) $ECHO_C" >&6
10941 if test "${ac_cv_func_accept_arg2+set}" = set; then
10942 echo $ECHO_N "(cached) $ECHO_C" >&6
10944 if test "${ac_cv_func_accept_arg3+set}" = set; then
10945 echo $ECHO_N "(cached) $ECHO_C" >&6
10947 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
10948 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
10949 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
10950 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
10951 cat >conftest.$ac_ext <<_ACEOF
10952 #line $LINENO "configure"
10953 #include "confdefs.h"
10954 #ifdef HAVE_SYS_TYPES_H
10955 #include <sys/types.h>
10957 #ifdef HAVE_SYS_SOCKET_H
10958 #include <sys/socket.h>
10960 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
10961 #ifdef F77_DUMMY_MAIN
10962 # ifdef __cplusplus
10965 int F77_DUMMY_MAIN() { return 1; }
10975 rm -f conftest.$ac_objext
10976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10977 (eval $ac_compile) 2>&5
10979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980 (exit $ac_status); } &&
10981 { ac_try='test -s conftest.$ac_objext'
10982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10983 (eval $ac_try) 2>&5
10985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); }; }; then
10987 ac_not_found=no; break 4
10989 echo "$as_me: failed program was:" >&5
10990 cat conftest.$ac_ext >&5
10993 rm -f conftest.$ac_objext conftest.$ac_ext
10998 if test "$ac_not_found" = yes; then
10999 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
11000 echo "$as_me: error: could not determine argument types" >&2;}
11001 { (exit 1); exit 1; }; }
11003 if test "$ac_cv_func_accept_arg3" = "void"; then
11004 ac_cv_func_accept_arg3=int
11014 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
11015 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
11017 cat >>confdefs.h <<_ACEOF
11018 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
11022 cat >>confdefs.h <<_ACEOF
11023 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
11027 cat >>confdefs.h <<_ACEOF
11028 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
11032 cat >>confdefs.h <<_ACEOF
11033 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
11037 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
11038 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
11039 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
11040 echo $ECHO_N "(cached) $ECHO_C" >&6
11042 cat >conftest.$ac_ext <<_ACEOF
11043 #line $LINENO "configure"
11044 #include "confdefs.h"
11045 #include <sys/time.h>
11046 #ifdef F77_DUMMY_MAIN
11047 # ifdef __cplusplus
11050 int F77_DUMMY_MAIN() { return 1; }
11055 struct timeval *tp;
11056 struct timezone *tzp;
11057 gettimeofday(tp,tzp);
11062 rm -f conftest.$ac_objext
11063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11064 (eval $ac_compile) 2>&5
11066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 (exit $ac_status); } &&
11068 { ac_try='test -s conftest.$ac_objext'
11069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11070 (eval $ac_try) 2>&5
11072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073 (exit $ac_status); }; }; then
11074 pgac_cv_func_gettimeofday_1arg=no
11076 echo "$as_me: failed program was:" >&5
11077 cat conftest.$ac_ext >&5
11078 pgac_cv_func_gettimeofday_1arg=yes
11080 rm -f conftest.$ac_objext conftest.$ac_ext
11082 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
11083 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
11084 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
11086 cat >>confdefs.h <<\_ACEOF
11087 #define GETTIMEOFDAY_1ARG
11094 # SunOS doesn't handle negative byte comparisons properly with +/- return
11095 echo "$as_me:$LINENO: checking for working memcmp" >&5
11096 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
11097 if test "${ac_cv_func_memcmp_working+set}" = set; then
11098 echo $ECHO_N "(cached) $ECHO_C" >&6
11100 if test "$cross_compiling" = yes; then
11101 ac_cv_func_memcmp_working=no
11103 cat >conftest.$ac_ext <<_ACEOF
11104 #line $LINENO "configure"
11105 #include "confdefs.h"
11107 #ifdef F77_DUMMY_MAIN
11108 # ifdef __cplusplus
11111 int F77_DUMMY_MAIN() { return 1; }
11117 /* Some versions of memcmp are not 8-bit clean. */
11118 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
11119 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11122 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11123 or more and with at least one buffer not starting on a 4-byte boundary.
11124 William Lewis provided this test program. */
11129 for (i = 0; i < 4; i++)
11133 strcpy (a, "--------01111111");
11134 strcpy (b, "--------10000000");
11135 if (memcmp (a, b, 16) >= 0)
11145 rm -f conftest$ac_exeext
11146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11147 (eval $ac_link) 2>&5
11149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11152 (eval $ac_try) 2>&5
11154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155 (exit $ac_status); }; }; then
11156 ac_cv_func_memcmp_working=yes
11158 echo "$as_me: program exited with status $ac_status" >&5
11159 echo "$as_me: failed program was:" >&5
11160 cat conftest.$ac_ext >&5
11161 ( exit $ac_status )
11162 ac_cv_func_memcmp_working=no
11164 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11167 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
11168 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
11169 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
11188 for ac_func in cbrt dlopen fcvt fdatasync getpeereid memmove poll pstat setproctitle setsid sigprocmask symlink sysconf utime utimes waitpid
11190 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11191 echo "$as_me:$LINENO: checking for $ac_func" >&5
11192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11193 if eval "test \"\${$as_ac_var+set}\" = set"; then
11194 echo $ECHO_N "(cached) $ECHO_C" >&6
11196 cat >conftest.$ac_ext <<_ACEOF
11197 #line $LINENO "configure"
11198 #include "confdefs.h"
11199 /* System header to define __stub macros and hopefully few prototypes,
11200 which can conflict with char $ac_func (); below. */
11201 #include <assert.h>
11202 /* Override any gcc2 internal prototype to avoid an error. */
11206 /* We use char because int might match the return type of a gcc2
11207 builtin and then its argument prototype would still apply. */
11211 #ifdef F77_DUMMY_MAIN
11212 # ifdef __cplusplus
11215 int F77_DUMMY_MAIN() { return 1; }
11220 /* The GNU C library defines this for functions which it implements
11221 to always fail with ENOSYS. Some functions are actually named
11222 something starting with __ and the normal name is an alias. */
11223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11233 rm -f conftest.$ac_objext conftest$ac_exeext
11234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11235 (eval $ac_link) 2>&5
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); } &&
11239 { ac_try='test -s conftest$ac_exeext'
11240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11241 (eval $ac_try) 2>&5
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); }; }; then
11245 eval "$as_ac_var=yes"
11247 echo "$as_me: failed program was:" >&5
11248 cat conftest.$ac_ext >&5
11249 eval "$as_ac_var=no"
11251 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11254 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11255 if test `eval echo '${'$as_ac_var'}'` = yes; then
11256 cat >>confdefs.h <<_ACEOF
11257 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11264 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
11265 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
11266 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
11267 echo $ECHO_N "(cached) $ECHO_C" >&6
11269 cat >conftest.$ac_ext <<_ACEOF
11270 #line $LINENO "configure"
11271 #include "confdefs.h"
11272 #include <unistd.h>
11274 #ifdef F77_DUMMY_MAIN
11275 # ifdef __cplusplus
11278 int F77_DUMMY_MAIN() { return 1; }
11284 char *p = (char *) fdatasync;
11291 rm -f conftest.$ac_objext
11292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11293 (eval $ac_compile) 2>&5
11295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296 (exit $ac_status); } &&
11297 { ac_try='test -s conftest.$ac_objext'
11298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11299 (eval $ac_try) 2>&5
11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302 (exit $ac_status); }; }; then
11303 ac_cv_have_decl_fdatasync=yes
11305 echo "$as_me: failed program was:" >&5
11306 cat conftest.$ac_ext >&5
11307 ac_cv_have_decl_fdatasync=no
11309 rm -f conftest.$ac_objext conftest.$ac_ext
11311 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
11312 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
11313 if test $ac_cv_have_decl_fdatasync = yes; then
11315 cat >>confdefs.h <<_ACEOF
11316 #define HAVE_DECL_FDATASYNC 1
11321 cat >>confdefs.h <<_ACEOF
11322 #define HAVE_DECL_FDATASYNC 0
11331 echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
11332 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6
11333 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
11334 echo $ECHO_N "(cached) $ECHO_C" >&6
11336 cat >conftest.$ac_ext <<_ACEOF
11337 #line $LINENO "configure"
11338 #include "confdefs.h"
11339 $ac_includes_default
11340 #include <netinet/in.h>
11342 #ifdef F77_DUMMY_MAIN
11343 # ifdef __cplusplus
11346 int F77_DUMMY_MAIN() { return 1; }
11351 if ((struct sockaddr_in6 *) 0)
11353 if (sizeof (struct sockaddr_in6))
11359 rm -f conftest.$ac_objext
11360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11361 (eval $ac_compile) 2>&5
11363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364 (exit $ac_status); } &&
11365 { ac_try='test -s conftest.$ac_objext'
11366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11367 (eval $ac_try) 2>&5
11369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370 (exit $ac_status); }; }; then
11371 ac_cv_type_struct_sockaddr_in6=yes
11373 echo "$as_me: failed program was:" >&5
11374 cat conftest.$ac_ext >&5
11375 ac_cv_type_struct_sockaddr_in6=no
11377 rm -f conftest.$ac_objext conftest.$ac_ext
11379 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
11380 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6
11381 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
11382 echo "$as_me:$LINENO: checking for inet_ntop" >&5
11383 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
11384 if test "${ac_cv_func_inet_ntop+set}" = set; then
11385 echo $ECHO_N "(cached) $ECHO_C" >&6
11387 cat >conftest.$ac_ext <<_ACEOF
11388 #line $LINENO "configure"
11389 #include "confdefs.h"
11390 /* System header to define __stub macros and hopefully few prototypes,
11391 which can conflict with char inet_ntop (); below. */
11392 #include <assert.h>
11393 /* Override any gcc2 internal prototype to avoid an error. */
11397 /* We use char because int might match the return type of a gcc2
11398 builtin and then its argument prototype would still apply. */
11402 #ifdef F77_DUMMY_MAIN
11403 # ifdef __cplusplus
11406 int F77_DUMMY_MAIN() { return 1; }
11411 /* The GNU C library defines this for functions which it implements
11412 to always fail with ENOSYS. Some functions are actually named
11413 something starting with __ and the normal name is an alias. */
11414 #if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
11424 rm -f conftest.$ac_objext conftest$ac_exeext
11425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11426 (eval $ac_link) 2>&5
11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429 (exit $ac_status); } &&
11430 { ac_try='test -s conftest$ac_exeext'
11431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11432 (eval $ac_try) 2>&5
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435 (exit $ac_status); }; }; then
11436 ac_cv_func_inet_ntop=yes
11438 echo "$as_me: failed program was:" >&5
11439 cat conftest.$ac_ext >&5
11440 ac_cv_func_inet_ntop=no
11442 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11444 echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntop" >&5
11445 echo "${ECHO_T}$ac_cv_func_inet_ntop" >&6
11446 if test $ac_cv_func_inet_ntop = yes; then
11448 cat >>confdefs.h <<\_ACEOF
11449 #define HAVE_IPV6 1
11459 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
11460 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
11461 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
11462 echo $ECHO_N "(cached) $ECHO_C" >&6
11464 cat >conftest.$ac_ext <<_ACEOF
11465 #line $LINENO "configure"
11466 #include "confdefs.h"
11467 #include <machine/vmparam.h>
11468 #include <sys/exec.h>
11470 #ifdef F77_DUMMY_MAIN
11471 # ifdef __cplusplus
11474 int F77_DUMMY_MAIN() { return 1; }
11479 PS_STRINGS->ps_nargvstr = 1;
11480 PS_STRINGS->ps_argvstr = "foo";
11485 rm -f conftest.$ac_objext conftest$ac_exeext
11486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11487 (eval $ac_link) 2>&5
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); } &&
11491 { ac_try='test -s conftest$ac_exeext'
11492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11493 (eval $ac_try) 2>&5
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); }; }; then
11497 pgac_cv_var_PS_STRINGS=yes
11499 echo "$as_me: failed program was:" >&5
11500 cat conftest.$ac_ext >&5
11501 pgac_cv_var_PS_STRINGS=no
11503 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11505 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
11506 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
11507 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
11509 cat >>confdefs.h <<\_ACEOF
11510 #define HAVE_PS_STRINGS
11516 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
11517 # is missing. Yes, there are machines that have only one. We may
11518 # also decide to use snprintf.c if snprintf() is present but does not
11519 # have working "long long int" support -- see below.
11521 pgac_need_repl_snprintf=no
11523 for ac_func in snprintf
11525 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11526 echo "$as_me:$LINENO: checking for $ac_func" >&5
11527 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11528 if eval "test \"\${$as_ac_var+set}\" = set"; then
11529 echo $ECHO_N "(cached) $ECHO_C" >&6
11531 cat >conftest.$ac_ext <<_ACEOF
11532 #line $LINENO "configure"
11533 #include "confdefs.h"
11534 /* System header to define __stub macros and hopefully few prototypes,
11535 which can conflict with char $ac_func (); below. */
11536 #include <assert.h>
11537 /* Override any gcc2 internal prototype to avoid an error. */
11541 /* We use char because int might match the return type of a gcc2
11542 builtin and then its argument prototype would still apply. */
11546 #ifdef F77_DUMMY_MAIN
11547 # ifdef __cplusplus
11550 int F77_DUMMY_MAIN() { return 1; }
11555 /* The GNU C library defines this for functions which it implements
11556 to always fail with ENOSYS. Some functions are actually named
11557 something starting with __ and the normal name is an alias. */
11558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11568 rm -f conftest.$ac_objext conftest$ac_exeext
11569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11570 (eval $ac_link) 2>&5
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); } &&
11574 { ac_try='test -s conftest$ac_exeext'
11575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11576 (eval $ac_try) 2>&5
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); }; }; then
11580 eval "$as_ac_var=yes"
11582 echo "$as_me: failed program was:" >&5
11583 cat conftest.$ac_ext >&5
11584 eval "$as_ac_var=no"
11586 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11589 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11590 if test `eval echo '${'$as_ac_var'}'` = yes; then
11591 cat >>confdefs.h <<_ACEOF
11592 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11596 pgac_need_repl_snprintf=yes
11601 for ac_func in vsnprintf
11603 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11604 echo "$as_me:$LINENO: checking for $ac_func" >&5
11605 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11606 if eval "test \"\${$as_ac_var+set}\" = set"; then
11607 echo $ECHO_N "(cached) $ECHO_C" >&6
11609 cat >conftest.$ac_ext <<_ACEOF
11610 #line $LINENO "configure"
11611 #include "confdefs.h"
11612 /* System header to define __stub macros and hopefully few prototypes,
11613 which can conflict with char $ac_func (); below. */
11614 #include <assert.h>
11615 /* Override any gcc2 internal prototype to avoid an error. */
11619 /* We use char because int might match the return type of a gcc2
11620 builtin and then its argument prototype would still apply. */
11624 #ifdef F77_DUMMY_MAIN
11625 # ifdef __cplusplus
11628 int F77_DUMMY_MAIN() { return 1; }
11633 /* The GNU C library defines this for functions which it implements
11634 to always fail with ENOSYS. Some functions are actually named
11635 something starting with __ and the normal name is an alias. */
11636 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11646 rm -f conftest.$ac_objext conftest$ac_exeext
11647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11648 (eval $ac_link) 2>&5
11650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651 (exit $ac_status); } &&
11652 { ac_try='test -s conftest$ac_exeext'
11653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11654 (eval $ac_try) 2>&5
11656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657 (exit $ac_status); }; }; then
11658 eval "$as_ac_var=yes"
11660 echo "$as_me: failed program was:" >&5
11661 cat conftest.$ac_ext >&5
11662 eval "$as_ac_var=no"
11664 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11667 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11668 if test `eval echo '${'$as_ac_var'}'` = yes; then
11669 cat >>confdefs.h <<_ACEOF
11670 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11674 pgac_need_repl_snprintf=yes
11680 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
11681 # include/c.h will provide declarations. Note this is a separate test
11682 # from whether the functions exist in the C library --- there are
11683 # systems that have the functions but don't bother to declare them :-(
11685 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
11686 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
11687 if test "${ac_cv_have_decl_snprintf+set}" = set; then
11688 echo $ECHO_N "(cached) $ECHO_C" >&6
11690 cat >conftest.$ac_ext <<_ACEOF
11691 #line $LINENO "configure"
11692 #include "confdefs.h"
11693 $ac_includes_default
11694 #ifdef F77_DUMMY_MAIN
11695 # ifdef __cplusplus
11698 int F77_DUMMY_MAIN() { return 1; }
11704 char *p = (char *) snprintf;
11711 rm -f conftest.$ac_objext
11712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11713 (eval $ac_compile) 2>&5
11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716 (exit $ac_status); } &&
11717 { ac_try='test -s conftest.$ac_objext'
11718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11719 (eval $ac_try) 2>&5
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); }; }; then
11723 ac_cv_have_decl_snprintf=yes
11725 echo "$as_me: failed program was:" >&5
11726 cat conftest.$ac_ext >&5
11727 ac_cv_have_decl_snprintf=no
11729 rm -f conftest.$ac_objext conftest.$ac_ext
11731 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
11732 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
11733 if test $ac_cv_have_decl_snprintf = yes; then
11735 cat >>confdefs.h <<_ACEOF
11736 #define HAVE_DECL_SNPRINTF 1
11741 cat >>confdefs.h <<_ACEOF
11742 #define HAVE_DECL_SNPRINTF 0
11747 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
11748 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
11749 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
11750 echo $ECHO_N "(cached) $ECHO_C" >&6
11752 cat >conftest.$ac_ext <<_ACEOF
11753 #line $LINENO "configure"
11754 #include "confdefs.h"
11755 $ac_includes_default
11756 #ifdef F77_DUMMY_MAIN
11757 # ifdef __cplusplus
11760 int F77_DUMMY_MAIN() { return 1; }
11766 char *p = (char *) vsnprintf;
11773 rm -f conftest.$ac_objext
11774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11775 (eval $ac_compile) 2>&5
11777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778 (exit $ac_status); } &&
11779 { ac_try='test -s conftest.$ac_objext'
11780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11781 (eval $ac_try) 2>&5
11783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784 (exit $ac_status); }; }; then
11785 ac_cv_have_decl_vsnprintf=yes
11787 echo "$as_me: failed program was:" >&5
11788 cat conftest.$ac_ext >&5
11789 ac_cv_have_decl_vsnprintf=no
11791 rm -f conftest.$ac_objext conftest.$ac_ext
11793 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
11794 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
11795 if test $ac_cv_have_decl_vsnprintf = yes; then
11797 cat >>confdefs.h <<_ACEOF
11798 #define HAVE_DECL_VSNPRINTF 1
11803 cat >>confdefs.h <<_ACEOF
11804 #define HAVE_DECL_VSNPRINTF 0
11813 # do this one the hard way in case isinf() is a macro
11814 echo "$as_me:$LINENO: checking for isinf" >&5
11815 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
11816 if test "${ac_cv_func_isinf+set}" = set; then
11817 echo $ECHO_N "(cached) $ECHO_C" >&6
11819 cat >conftest.$ac_ext <<_ACEOF
11820 #line $LINENO "configure"
11821 #include "confdefs.h"
11824 #ifdef F77_DUMMY_MAIN
11825 # ifdef __cplusplus
11828 int F77_DUMMY_MAIN() { return 1; }
11833 double x = 0.0; int res = isinf(x);
11838 rm -f conftest.$ac_objext conftest$ac_exeext
11839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11840 (eval $ac_link) 2>&5
11842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843 (exit $ac_status); } &&
11844 { ac_try='test -s conftest$ac_exeext'
11845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11846 (eval $ac_try) 2>&5
11848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); }; }; then
11850 ac_cv_func_isinf=yes
11852 echo "$as_me: failed program was:" >&5
11853 cat conftest.$ac_ext >&5
11854 ac_cv_func_isinf=no
11856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11858 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
11859 echo "${ECHO_T}$ac_cv_func_isinf" >&6
11861 if test $ac_cv_func_isinf = yes ; then
11863 cat >>confdefs.h <<\_ACEOF
11864 #define HAVE_ISINF 1
11868 LIBOBJS="$LIBOBJS isinf.$ac_objext"
11869 # Look for a way to implement a substitute for isinf()
11874 for ac_func in fpclass fp_class fp_class_d class
11876 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11877 echo "$as_me:$LINENO: checking for $ac_func" >&5
11878 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11879 if eval "test \"\${$as_ac_var+set}\" = set"; then
11880 echo $ECHO_N "(cached) $ECHO_C" >&6
11882 cat >conftest.$ac_ext <<_ACEOF
11883 #line $LINENO "configure"
11884 #include "confdefs.h"
11885 /* System header to define __stub macros and hopefully few prototypes,
11886 which can conflict with char $ac_func (); below. */
11887 #include <assert.h>
11888 /* Override any gcc2 internal prototype to avoid an error. */
11892 /* We use char because int might match the return type of a gcc2
11893 builtin and then its argument prototype would still apply. */
11897 #ifdef F77_DUMMY_MAIN
11898 # ifdef __cplusplus
11901 int F77_DUMMY_MAIN() { return 1; }
11906 /* The GNU C library defines this for functions which it implements
11907 to always fail with ENOSYS. Some functions are actually named
11908 something starting with __ and the normal name is an alias. */
11909 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11919 rm -f conftest.$ac_objext conftest$ac_exeext
11920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11921 (eval $ac_link) 2>&5
11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 (exit $ac_status); } &&
11925 { ac_try='test -s conftest$ac_exeext'
11926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11927 (eval $ac_try) 2>&5
11929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); }; }; then
11931 eval "$as_ac_var=yes"
11933 echo "$as_me: failed program was:" >&5
11934 cat conftest.$ac_ext >&5
11935 eval "$as_ac_var=no"
11937 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11940 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11941 if test `eval echo '${'$as_ac_var'}'` = yes; then
11942 cat >>confdefs.h <<_ACEOF
11943 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11964 for ac_func in crypt fseeko getopt getrusage inet_aton random rint srandom strcasecmp strdup strerror strtol strtoul
11966 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11967 echo "$as_me:$LINENO: checking for $ac_func" >&5
11968 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11969 if eval "test \"\${$as_ac_var+set}\" = set"; then
11970 echo $ECHO_N "(cached) $ECHO_C" >&6
11972 cat >conftest.$ac_ext <<_ACEOF
11973 #line $LINENO "configure"
11974 #include "confdefs.h"
11975 /* System header to define __stub macros and hopefully few prototypes,
11976 which can conflict with char $ac_func (); below. */
11977 #include <assert.h>
11978 /* Override any gcc2 internal prototype to avoid an error. */
11982 /* We use char because int might match the return type of a gcc2
11983 builtin and then its argument prototype would still apply. */
11987 #ifdef F77_DUMMY_MAIN
11988 # ifdef __cplusplus
11991 int F77_DUMMY_MAIN() { return 1; }
11996 /* The GNU C library defines this for functions which it implements
11997 to always fail with ENOSYS. Some functions are actually named
11998 something starting with __ and the normal name is an alias. */
11999 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12009 rm -f conftest.$ac_objext conftest$ac_exeext
12010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12011 (eval $ac_link) 2>&5
12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); } &&
12015 { ac_try='test -s conftest$ac_exeext'
12016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12017 (eval $ac_try) 2>&5
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); }; }; then
12021 eval "$as_ac_var=yes"
12023 echo "$as_me: failed program was:" >&5
12024 cat conftest.$ac_ext >&5
12025 eval "$as_ac_var=no"
12027 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12030 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12031 if test `eval echo '${'$as_ac_var'}'` = yes; then
12032 cat >>confdefs.h <<_ACEOF
12033 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12037 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
12043 # system's version of getaddrinfo(), if any, may be used only if we found
12044 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h
12045 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
12047 for ac_func in getaddrinfo
12049 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12050 echo "$as_me:$LINENO: checking for $ac_func" >&5
12051 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12052 if eval "test \"\${$as_ac_var+set}\" = set"; then
12053 echo $ECHO_N "(cached) $ECHO_C" >&6
12055 cat >conftest.$ac_ext <<_ACEOF
12056 #line $LINENO "configure"
12057 #include "confdefs.h"
12058 /* System header to define __stub macros and hopefully few prototypes,
12059 which can conflict with char $ac_func (); below. */
12060 #include <assert.h>
12061 /* Override any gcc2 internal prototype to avoid an error. */
12065 /* We use char because int might match the return type of a gcc2
12066 builtin and then its argument prototype would still apply. */
12070 #ifdef F77_DUMMY_MAIN
12071 # ifdef __cplusplus
12074 int F77_DUMMY_MAIN() { return 1; }
12079 /* The GNU C library defines this for functions which it implements
12080 to always fail with ENOSYS. Some functions are actually named
12081 something starting with __ and the normal name is an alias. */
12082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12092 rm -f conftest.$ac_objext conftest$ac_exeext
12093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12094 (eval $ac_link) 2>&5
12096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097 (exit $ac_status); } &&
12098 { ac_try='test -s conftest$ac_exeext'
12099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12100 (eval $ac_try) 2>&5
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); }; }; then
12104 eval "$as_ac_var=yes"
12106 echo "$as_me: failed program was:" >&5
12107 cat conftest.$ac_ext >&5
12108 eval "$as_ac_var=no"
12110 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12113 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12114 if test `eval echo '${'$as_ac_var'}'` = yes; then
12115 cat >>confdefs.h <<_ACEOF
12116 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12120 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
12126 LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
12129 # similarly, use system's getopt_long() only if system provides struct option.
12130 if test x"$ac_cv_type_struct_option" = xyes ; then
12132 for ac_func in getopt_long
12134 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12135 echo "$as_me:$LINENO: checking for $ac_func" >&5
12136 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12137 if eval "test \"\${$as_ac_var+set}\" = set"; then
12138 echo $ECHO_N "(cached) $ECHO_C" >&6
12140 cat >conftest.$ac_ext <<_ACEOF
12141 #line $LINENO "configure"
12142 #include "confdefs.h"
12143 /* System header to define __stub macros and hopefully few prototypes,
12144 which can conflict with char $ac_func (); below. */
12145 #include <assert.h>
12146 /* Override any gcc2 internal prototype to avoid an error. */
12150 /* We use char because int might match the return type of a gcc2
12151 builtin and then its argument prototype would still apply. */
12155 #ifdef F77_DUMMY_MAIN
12156 # ifdef __cplusplus
12159 int F77_DUMMY_MAIN() { return 1; }
12164 /* The GNU C library defines this for functions which it implements
12165 to always fail with ENOSYS. Some functions are actually named
12166 something starting with __ and the normal name is an alias. */
12167 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12177 rm -f conftest.$ac_objext conftest$ac_exeext
12178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12179 (eval $ac_link) 2>&5
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); } &&
12183 { ac_try='test -s conftest$ac_exeext'
12184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12185 (eval $ac_try) 2>&5
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); }; }; then
12189 eval "$as_ac_var=yes"
12191 echo "$as_me: failed program was:" >&5
12192 cat conftest.$ac_ext >&5
12193 eval "$as_ac_var=no"
12195 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12198 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12199 if test `eval echo '${'$as_ac_var'}'` = yes; then
12200 cat >>confdefs.h <<_ACEOF
12201 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12205 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
12211 LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
12214 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
12215 # We override the previous test that said fseeko/ftello didn't exist
12216 # OS tests are also done in include/c.h and port/fseeko.c
12217 case $host_os in bsdi*|netbsd*)
12218 ac_cv_func_fseeko=yes
12221 # Solaris has a very slow qsort in certain cases, so we replace it.
12222 case $host_os in solaris*)
12223 LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
12226 # Win32 can't to rename or unlink on an open file
12227 case $host_os in mingw*)
12228 LIBOBJS="$LIBOBJS dirmod.$ac_objext"
12229 LIBOBJS="$LIBOBJS copydir.$ac_objext"
12230 LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
12233 if test "$with_readline" = yes; then
12234 echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
12235 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
12236 cat >conftest.$ac_ext <<_ACEOF
12237 #line $LINENO "configure"
12238 #include "confdefs.h"
12240 #ifdef HAVE_READLINE_READLINE_H
12241 # include <readline/readline.h>
12242 #elif defined(HAVE_READLINE_H)
12243 # include <readline.h>
12246 #ifdef F77_DUMMY_MAIN
12247 # ifdef __cplusplus
12250 int F77_DUMMY_MAIN() { return 1; }
12255 rl_completion_append_character = 'x';
12260 rm -f conftest.$ac_objext conftest$ac_exeext
12261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12262 (eval $ac_link) 2>&5
12264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265 (exit $ac_status); } &&
12266 { ac_try='test -s conftest$ac_exeext'
12267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12268 (eval $ac_try) 2>&5
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); }; }; then
12272 echo "$as_me:$LINENO: result: yes" >&5
12273 echo "${ECHO_T}yes" >&6
12275 cat >>confdefs.h <<\_ACEOF
12276 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
12280 echo "$as_me: failed program was:" >&5
12281 cat conftest.$ac_ext >&5
12282 echo "$as_me:$LINENO: result: no" >&5
12283 echo "${ECHO_T}no" >&6
12285 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12288 for ac_func in rl_completion_matches rl_filename_completion_function
12290 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12291 echo "$as_me:$LINENO: checking for $ac_func" >&5
12292 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12293 if eval "test \"\${$as_ac_var+set}\" = set"; then
12294 echo $ECHO_N "(cached) $ECHO_C" >&6
12296 cat >conftest.$ac_ext <<_ACEOF
12297 #line $LINENO "configure"
12298 #include "confdefs.h"
12299 /* System header to define __stub macros and hopefully few prototypes,
12300 which can conflict with char $ac_func (); below. */
12301 #include <assert.h>
12302 /* Override any gcc2 internal prototype to avoid an error. */
12306 /* We use char because int might match the return type of a gcc2
12307 builtin and then its argument prototype would still apply. */
12311 #ifdef F77_DUMMY_MAIN
12312 # ifdef __cplusplus
12315 int F77_DUMMY_MAIN() { return 1; }
12320 /* The GNU C library defines this for functions which it implements
12321 to always fail with ENOSYS. Some functions are actually named
12322 something starting with __ and the normal name is an alias. */
12323 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12333 rm -f conftest.$ac_objext conftest$ac_exeext
12334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12335 (eval $ac_link) 2>&5
12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 (exit $ac_status); } &&
12339 { ac_try='test -s conftest$ac_exeext'
12340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12341 (eval $ac_try) 2>&5
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); }; }; then
12345 eval "$as_ac_var=yes"
12347 echo "$as_me: failed program was:" >&5
12348 cat conftest.$ac_ext >&5
12349 eval "$as_ac_var=no"
12351 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12354 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12355 if test `eval echo '${'$as_ac_var'}'` = yes; then
12356 cat >>confdefs.h <<_ACEOF
12357 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12364 for ac_func in replace_history_entry
12366 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12367 echo "$as_me:$LINENO: checking for $ac_func" >&5
12368 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12369 if eval "test \"\${$as_ac_var+set}\" = set"; then
12370 echo $ECHO_N "(cached) $ECHO_C" >&6
12372 cat >conftest.$ac_ext <<_ACEOF
12373 #line $LINENO "configure"
12374 #include "confdefs.h"
12375 /* System header to define __stub macros and hopefully few prototypes,
12376 which can conflict with char $ac_func (); below. */
12377 #include <assert.h>
12378 /* Override any gcc2 internal prototype to avoid an error. */
12382 /* We use char because int might match the return type of a gcc2
12383 builtin and then its argument prototype would still apply. */
12387 #ifdef F77_DUMMY_MAIN
12388 # ifdef __cplusplus
12391 int F77_DUMMY_MAIN() { return 1; }
12396 /* The GNU C library defines this for functions which it implements
12397 to always fail with ENOSYS. Some functions are actually named
12398 something starting with __ and the normal name is an alias. */
12399 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12409 rm -f conftest.$ac_objext conftest$ac_exeext
12410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12411 (eval $ac_link) 2>&5
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); } &&
12415 { ac_try='test -s conftest$ac_exeext'
12416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12417 (eval $ac_try) 2>&5
12419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420 (exit $ac_status); }; }; then
12421 eval "$as_ac_var=yes"
12423 echo "$as_me: failed program was:" >&5
12424 cat conftest.$ac_ext >&5
12425 eval "$as_ac_var=no"
12427 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12430 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12431 if test `eval echo '${'$as_ac_var'}'` = yes; then
12432 cat >>confdefs.h <<_ACEOF
12433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12442 echo "$as_me:$LINENO: checking for finite" >&5
12443 echo $ECHO_N "checking for finite... $ECHO_C" >&6
12444 cat >conftest.$ac_ext <<_ACEOF
12445 #line $LINENO "configure"
12446 #include "confdefs.h"
12448 #ifdef F77_DUMMY_MAIN
12449 # ifdef __cplusplus
12452 int F77_DUMMY_MAIN() { return 1; }
12457 int dummy=finite(1.0);
12462 rm -f conftest.$ac_objext conftest$ac_exeext
12463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12464 (eval $ac_link) 2>&5
12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467 (exit $ac_status); } &&
12468 { ac_try='test -s conftest$ac_exeext'
12469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12470 (eval $ac_try) 2>&5
12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 (exit $ac_status); }; }; then
12475 cat >>confdefs.h <<\_ACEOF
12476 #define HAVE_FINITE 1
12479 echo "$as_me:$LINENO: result: yes" >&5
12480 echo "${ECHO_T}yes" >&6
12482 echo "$as_me: failed program was:" >&5
12483 cat conftest.$ac_ext >&5
12484 echo "$as_me:$LINENO: result: no" >&5
12485 echo "${ECHO_T}no" >&6
12487 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12489 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
12490 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
12491 cat >conftest.$ac_ext <<_ACEOF
12492 #line $LINENO "configure"
12493 #include "confdefs.h"
12494 #include <setjmp.h>
12495 #ifdef F77_DUMMY_MAIN
12496 # ifdef __cplusplus
12499 int F77_DUMMY_MAIN() { return 1; }
12504 sigjmp_buf x; sigsetjmp(x, 1);
12509 rm -f conftest.$ac_objext conftest$ac_exeext
12510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12511 (eval $ac_link) 2>&5
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); } &&
12515 { ac_try='test -s conftest$ac_exeext'
12516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12517 (eval $ac_try) 2>&5
12519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520 (exit $ac_status); }; }; then
12522 cat >>confdefs.h <<\_ACEOF
12523 #define HAVE_SIGSETJMP 1
12526 echo "$as_me:$LINENO: result: yes" >&5
12527 echo "${ECHO_T}yes" >&6
12529 echo "$as_me: failed program was:" >&5
12530 cat conftest.$ac_ext >&5
12531 echo "$as_me:$LINENO: result: no" >&5
12532 echo "${ECHO_T}no" >&6
12534 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12536 echo "$as_me:$LINENO: checking for syslog" >&5
12537 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
12538 if test "${ac_cv_func_syslog+set}" = set; then
12539 echo $ECHO_N "(cached) $ECHO_C" >&6
12541 cat >conftest.$ac_ext <<_ACEOF
12542 #line $LINENO "configure"
12543 #include "confdefs.h"
12544 /* System header to define __stub macros and hopefully few prototypes,
12545 which can conflict with char syslog (); below. */
12546 #include <assert.h>
12547 /* Override any gcc2 internal prototype to avoid an error. */
12551 /* We use char because int might match the return type of a gcc2
12552 builtin and then its argument prototype would still apply. */
12556 #ifdef F77_DUMMY_MAIN
12557 # ifdef __cplusplus
12560 int F77_DUMMY_MAIN() { return 1; }
12565 /* The GNU C library defines this for functions which it implements
12566 to always fail with ENOSYS. Some functions are actually named
12567 something starting with __ and the normal name is an alias. */
12568 #if defined (__stub_syslog) || defined (__stub___syslog)
12578 rm -f conftest.$ac_objext conftest$ac_exeext
12579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12580 (eval $ac_link) 2>&5
12582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); } &&
12584 { ac_try='test -s conftest$ac_exeext'
12585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12586 (eval $ac_try) 2>&5
12588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589 (exit $ac_status); }; }; then
12590 ac_cv_func_syslog=yes
12592 echo "$as_me: failed program was:" >&5
12593 cat conftest.$ac_ext >&5
12594 ac_cv_func_syslog=no
12596 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12598 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
12599 echo "${ECHO_T}$ac_cv_func_syslog" >&6
12600 if test $ac_cv_func_syslog = yes; then
12601 if test "${ac_cv_header_syslog_h+set}" = set; then
12602 echo "$as_me:$LINENO: checking for syslog.h" >&5
12603 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12604 if test "${ac_cv_header_syslog_h+set}" = set; then
12605 echo $ECHO_N "(cached) $ECHO_C" >&6
12607 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12608 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12610 # Is the header compilable?
12611 echo "$as_me:$LINENO: checking syslog.h usability" >&5
12612 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
12613 cat >conftest.$ac_ext <<_ACEOF
12614 #line $LINENO "configure"
12615 #include "confdefs.h"
12616 $ac_includes_default
12617 #include <syslog.h>
12619 rm -f conftest.$ac_objext
12620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12621 (eval $ac_compile) 2>&5
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); } &&
12625 { ac_try='test -s conftest.$ac_objext'
12626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12627 (eval $ac_try) 2>&5
12629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630 (exit $ac_status); }; }; then
12631 ac_header_compiler=yes
12633 echo "$as_me: failed program was:" >&5
12634 cat conftest.$ac_ext >&5
12635 ac_header_compiler=no
12637 rm -f conftest.$ac_objext conftest.$ac_ext
12638 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12639 echo "${ECHO_T}$ac_header_compiler" >&6
12641 # Is the header present?
12642 echo "$as_me:$LINENO: checking syslog.h presence" >&5
12643 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
12644 cat >conftest.$ac_ext <<_ACEOF
12645 #line $LINENO "configure"
12646 #include "confdefs.h"
12647 #include <syslog.h>
12649 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12650 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12652 egrep -v '^ *\+' conftest.er1 >conftest.err
12654 cat conftest.err >&5
12655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656 (exit $ac_status); } >/dev/null; then
12657 if test -s conftest.err; then
12658 ac_cpp_err=$ac_c_preproc_warn_flag
12665 if test -z "$ac_cpp_err"; then
12666 ac_header_preproc=yes
12668 echo "$as_me: failed program was:" >&5
12669 cat conftest.$ac_ext >&5
12670 ac_header_preproc=no
12672 rm -f conftest.err conftest.$ac_ext
12673 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12674 echo "${ECHO_T}$ac_header_preproc" >&6
12676 # So? What about this header?
12677 case $ac_header_compiler:$ac_header_preproc in
12679 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
12680 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12681 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12682 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12684 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
12685 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
12686 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
12687 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
12688 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
12689 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
12691 echo "$as_me:$LINENO: checking for syslog.h" >&5
12692 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
12693 if test "${ac_cv_header_syslog_h+set}" = set; then
12694 echo $ECHO_N "(cached) $ECHO_C" >&6
12696 ac_cv_header_syslog_h=$ac_header_preproc
12698 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
12699 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
12702 if test $ac_cv_header_syslog_h = yes; then
12704 cat >>confdefs.h <<\_ACEOF
12705 #define HAVE_SYSLOG 1
12714 echo "$as_me:$LINENO: checking for optreset" >&5
12715 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
12716 if test "${pgac_cv_var_int_optreset+set}" = set; then
12717 echo $ECHO_N "(cached) $ECHO_C" >&6
12719 cat >conftest.$ac_ext <<_ACEOF
12720 #line $LINENO "configure"
12721 #include "confdefs.h"
12722 #include <unistd.h>
12723 #ifdef F77_DUMMY_MAIN
12724 # ifdef __cplusplus
12727 int F77_DUMMY_MAIN() { return 1; }
12732 extern int optreset; optreset = 1;
12737 rm -f conftest.$ac_objext conftest$ac_exeext
12738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12739 (eval $ac_link) 2>&5
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); } &&
12743 { ac_try='test -s conftest$ac_exeext'
12744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12745 (eval $ac_try) 2>&5
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); }; }; then
12749 pgac_cv_var_int_optreset=yes
12751 echo "$as_me: failed program was:" >&5
12752 cat conftest.$ac_ext >&5
12753 pgac_cv_var_int_optreset=no
12755 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12757 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
12758 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
12759 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
12761 cat >>confdefs.h <<\_ACEOF
12762 #define HAVE_INT_OPTRESET 1
12769 for ac_func in strtoll strtoq
12771 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12772 echo "$as_me:$LINENO: checking for $ac_func" >&5
12773 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12774 if eval "test \"\${$as_ac_var+set}\" = set"; then
12775 echo $ECHO_N "(cached) $ECHO_C" >&6
12777 cat >conftest.$ac_ext <<_ACEOF
12778 #line $LINENO "configure"
12779 #include "confdefs.h"
12780 /* System header to define __stub macros and hopefully few prototypes,
12781 which can conflict with char $ac_func (); below. */
12782 #include <assert.h>
12783 /* Override any gcc2 internal prototype to avoid an error. */
12787 /* We use char because int might match the return type of a gcc2
12788 builtin and then its argument prototype would still apply. */
12792 #ifdef F77_DUMMY_MAIN
12793 # ifdef __cplusplus
12796 int F77_DUMMY_MAIN() { return 1; }
12801 /* The GNU C library defines this for functions which it implements
12802 to always fail with ENOSYS. Some functions are actually named
12803 something starting with __ and the normal name is an alias. */
12804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12814 rm -f conftest.$ac_objext conftest$ac_exeext
12815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12816 (eval $ac_link) 2>&5
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); } &&
12820 { ac_try='test -s conftest$ac_exeext'
12821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12822 (eval $ac_try) 2>&5
12824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); }; }; then
12826 eval "$as_ac_var=yes"
12828 echo "$as_me: failed program was:" >&5
12829 cat conftest.$ac_ext >&5
12830 eval "$as_ac_var=no"
12832 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12835 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12836 if test `eval echo '${'$as_ac_var'}'` = yes; then
12837 cat >>confdefs.h <<_ACEOF
12838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12846 for ac_func in strtoull strtouq
12848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12849 echo "$as_me:$LINENO: checking for $ac_func" >&5
12850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12851 if eval "test \"\${$as_ac_var+set}\" = set"; then
12852 echo $ECHO_N "(cached) $ECHO_C" >&6
12854 cat >conftest.$ac_ext <<_ACEOF
12855 #line $LINENO "configure"
12856 #include "confdefs.h"
12857 /* System header to define __stub macros and hopefully few prototypes,
12858 which can conflict with char $ac_func (); below. */
12859 #include <assert.h>
12860 /* Override any gcc2 internal prototype to avoid an error. */
12864 /* We use char because int might match the return type of a gcc2
12865 builtin and then its argument prototype would still apply. */
12869 #ifdef F77_DUMMY_MAIN
12870 # ifdef __cplusplus
12873 int F77_DUMMY_MAIN() { return 1; }
12878 /* The GNU C library defines this for functions which it implements
12879 to always fail with ENOSYS. Some functions are actually named
12880 something starting with __ and the normal name is an alias. */
12881 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12891 rm -f conftest.$ac_objext conftest$ac_exeext
12892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12893 (eval $ac_link) 2>&5
12895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896 (exit $ac_status); } &&
12897 { ac_try='test -s conftest$ac_exeext'
12898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12899 (eval $ac_try) 2>&5
12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902 (exit $ac_status); }; }; then
12903 eval "$as_ac_var=yes"
12905 echo "$as_me: failed program was:" >&5
12906 cat conftest.$ac_ext >&5
12907 eval "$as_ac_var=no"
12909 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12912 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12913 if test `eval echo '${'$as_ac_var'}'` = yes; then
12914 cat >>confdefs.h <<_ACEOF
12915 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12922 # Check for one of atexit() or on_exit()
12924 for ac_func in atexit
12926 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12927 echo "$as_me:$LINENO: checking for $ac_func" >&5
12928 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12929 if eval "test \"\${$as_ac_var+set}\" = set"; then
12930 echo $ECHO_N "(cached) $ECHO_C" >&6
12932 cat >conftest.$ac_ext <<_ACEOF
12933 #line $LINENO "configure"
12934 #include "confdefs.h"
12935 /* System header to define __stub macros and hopefully few prototypes,
12936 which can conflict with char $ac_func (); below. */
12937 #include <assert.h>
12938 /* Override any gcc2 internal prototype to avoid an error. */
12942 /* We use char because int might match the return type of a gcc2
12943 builtin and then its argument prototype would still apply. */
12947 #ifdef F77_DUMMY_MAIN
12948 # ifdef __cplusplus
12951 int F77_DUMMY_MAIN() { return 1; }
12956 /* The GNU C library defines this for functions which it implements
12957 to always fail with ENOSYS. Some functions are actually named
12958 something starting with __ and the normal name is an alias. */
12959 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12969 rm -f conftest.$ac_objext conftest$ac_exeext
12970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12971 (eval $ac_link) 2>&5
12973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974 (exit $ac_status); } &&
12975 { ac_try='test -s conftest$ac_exeext'
12976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12977 (eval $ac_try) 2>&5
12979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980 (exit $ac_status); }; }; then
12981 eval "$as_ac_var=yes"
12983 echo "$as_me: failed program was:" >&5
12984 cat conftest.$ac_ext >&5
12985 eval "$as_ac_var=no"
12987 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12990 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12991 if test `eval echo '${'$as_ac_var'}'` = yes; then
12992 cat >>confdefs.h <<_ACEOF
12993 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12998 for ac_func in on_exit
13000 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13001 echo "$as_me:$LINENO: checking for $ac_func" >&5
13002 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13003 if eval "test \"\${$as_ac_var+set}\" = set"; then
13004 echo $ECHO_N "(cached) $ECHO_C" >&6
13006 cat >conftest.$ac_ext <<_ACEOF
13007 #line $LINENO "configure"
13008 #include "confdefs.h"
13009 /* System header to define __stub macros and hopefully few prototypes,
13010 which can conflict with char $ac_func (); below. */
13011 #include <assert.h>
13012 /* Override any gcc2 internal prototype to avoid an error. */
13016 /* We use char because int might match the return type of a gcc2
13017 builtin and then its argument prototype would still apply. */
13021 #ifdef F77_DUMMY_MAIN
13022 # ifdef __cplusplus
13025 int F77_DUMMY_MAIN() { return 1; }
13030 /* The GNU C library defines this for functions which it implements
13031 to always fail with ENOSYS. Some functions are actually named
13032 something starting with __ and the normal name is an alias. */
13033 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13043 rm -f conftest.$ac_objext conftest$ac_exeext
13044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13045 (eval $ac_link) 2>&5
13047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048 (exit $ac_status); } &&
13049 { ac_try='test -s conftest$ac_exeext'
13050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13051 (eval $ac_try) 2>&5
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); }; }; then
13055 eval "$as_ac_var=yes"
13057 echo "$as_me: failed program was:" >&5
13058 cat conftest.$ac_ext >&5
13059 eval "$as_ac_var=no"
13061 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13064 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13065 if test `eval echo '${'$as_ac_var'}'` = yes; then
13066 cat >>confdefs.h <<_ACEOF
13067 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13071 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
13072 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
13073 { (exit 1); exit 1; }; }
13081 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13082 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
13083 if test "${ac_cv_sys_largefile_source+set}" = set; then
13084 echo $ECHO_N "(cached) $ECHO_C" >&6
13087 ac_cv_sys_largefile_source=no
13088 cat >conftest.$ac_ext <<_ACEOF
13089 #line $LINENO "configure"
13090 #include "confdefs.h"
13092 #ifdef F77_DUMMY_MAIN
13093 # ifdef __cplusplus
13096 int F77_DUMMY_MAIN() { return 1; }
13106 rm -f conftest.$ac_objext
13107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13108 (eval $ac_compile) 2>&5
13110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111 (exit $ac_status); } &&
13112 { ac_try='test -s conftest.$ac_objext'
13113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13114 (eval $ac_try) 2>&5
13116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 (exit $ac_status); }; }; then
13120 echo "$as_me: failed program was:" >&5
13121 cat conftest.$ac_ext >&5
13123 rm -f conftest.$ac_objext conftest.$ac_ext
13124 cat >conftest.$ac_ext <<_ACEOF
13125 #line $LINENO "configure"
13126 #include "confdefs.h"
13127 #define _LARGEFILE_SOURCE 1
13129 #ifdef F77_DUMMY_MAIN
13130 # ifdef __cplusplus
13133 int F77_DUMMY_MAIN() { return 1; }
13143 rm -f conftest.$ac_objext
13144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13145 (eval $ac_compile) 2>&5
13147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148 (exit $ac_status); } &&
13149 { ac_try='test -s conftest.$ac_objext'
13150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13151 (eval $ac_try) 2>&5
13153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154 (exit $ac_status); }; }; then
13155 ac_cv_sys_largefile_source=1; break
13157 echo "$as_me: failed program was:" >&5
13158 cat conftest.$ac_ext >&5
13160 rm -f conftest.$ac_objext conftest.$ac_ext
13164 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13165 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13166 if test "$ac_cv_sys_largefile_source" != no; then
13168 cat >>confdefs.h <<_ACEOF
13169 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13175 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13176 # in glibc 2.1.3, but that breaks too many other things.
13177 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13178 echo "$as_me:$LINENO: checking for fseeko" >&5
13179 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13180 if test "${ac_cv_func_fseeko+set}" = set; then
13181 echo $ECHO_N "(cached) $ECHO_C" >&6
13183 cat >conftest.$ac_ext <<_ACEOF
13184 #line $LINENO "configure"
13185 #include "confdefs.h"
13187 #ifdef F77_DUMMY_MAIN
13188 # ifdef __cplusplus
13191 int F77_DUMMY_MAIN() { return 1; }
13196 return fseeko && fseeko (stdin, 0, 0);
13201 rm -f conftest.$ac_objext conftest$ac_exeext
13202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13203 (eval $ac_link) 2>&5
13205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); } &&
13207 { ac_try='test -s conftest$ac_exeext'
13208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13209 (eval $ac_try) 2>&5
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); }; }; then
13213 ac_cv_func_fseeko=yes
13215 echo "$as_me: failed program was:" >&5
13216 cat conftest.$ac_ext >&5
13217 ac_cv_func_fseeko=no
13219 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13221 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
13222 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13223 if test $ac_cv_func_fseeko = yes; then
13225 cat >>confdefs.h <<\_ACEOF
13226 #define HAVE_FSEEKO 1
13235 # For each platform, we need to know about any special compile and link
13236 # libraries, and whether the normal C function names are thread-safe.
13237 # See the comment at the top of src/port/thread.c for more information.
13239 if test "$enable_thread_safety" = yes; then
13240 if test "${ac_cv_header_pthread_h+set}" = set; then
13241 echo "$as_me:$LINENO: checking for pthread.h" >&5
13242 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
13243 if test "${ac_cv_header_pthread_h+set}" = set; then
13244 echo $ECHO_N "(cached) $ECHO_C" >&6
13246 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13247 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
13249 # Is the header compilable?
13250 echo "$as_me:$LINENO: checking pthread.h usability" >&5
13251 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
13252 cat >conftest.$ac_ext <<_ACEOF
13253 #line $LINENO "configure"
13254 #include "confdefs.h"
13255 $ac_includes_default
13256 #include <pthread.h>
13258 rm -f conftest.$ac_objext
13259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13260 (eval $ac_compile) 2>&5
13262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263 (exit $ac_status); } &&
13264 { ac_try='test -s conftest.$ac_objext'
13265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13266 (eval $ac_try) 2>&5
13268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269 (exit $ac_status); }; }; then
13270 ac_header_compiler=yes
13272 echo "$as_me: failed program was:" >&5
13273 cat conftest.$ac_ext >&5
13274 ac_header_compiler=no
13276 rm -f conftest.$ac_objext conftest.$ac_ext
13277 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13278 echo "${ECHO_T}$ac_header_compiler" >&6
13280 # Is the header present?
13281 echo "$as_me:$LINENO: checking pthread.h presence" >&5
13282 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
13283 cat >conftest.$ac_ext <<_ACEOF
13284 #line $LINENO "configure"
13285 #include "confdefs.h"
13286 #include <pthread.h>
13288 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13289 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13291 egrep -v '^ *\+' conftest.er1 >conftest.err
13293 cat conftest.err >&5
13294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295 (exit $ac_status); } >/dev/null; then
13296 if test -s conftest.err; then
13297 ac_cpp_err=$ac_c_preproc_warn_flag
13304 if test -z "$ac_cpp_err"; then
13305 ac_header_preproc=yes
13307 echo "$as_me: failed program was:" >&5
13308 cat conftest.$ac_ext >&5
13309 ac_header_preproc=no
13311 rm -f conftest.err conftest.$ac_ext
13312 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13313 echo "${ECHO_T}$ac_header_preproc" >&6
13315 # So? What about this header?
13316 case $ac_header_compiler:$ac_header_preproc in
13318 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
13319 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13320 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13321 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
13323 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
13324 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
13325 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
13326 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
13327 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13328 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
13330 echo "$as_me:$LINENO: checking for pthread.h" >&5
13331 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
13332 if test "${ac_cv_header_pthread_h+set}" = set; then
13333 echo $ECHO_N "(cached) $ECHO_C" >&6
13335 ac_cv_header_pthread_h=$ac_header_preproc
13337 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13338 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
13341 if test $ac_cv_header_pthread_h = yes; then
13344 { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safetys" >&5
13345 echo "$as_me: error: pthread.h not found, required for --enable-thread-safetys" >&2;}
13346 { (exit 1); exit 1; }; }
13351 if test "$THREAD_SUPPORT" != yes; then
13352 { { echo "$as_me:$LINENO: error:
13353 Cannot enable threads on your platform.
13354 Please report your platform threading info to the PostgreSQL mailing lists
13355 so it can be added to the next release. Report all compile flags, link flags,
13356 functions, or libraries required for threading support.
13357 See the comment at the top of src/port/thread.c for more information.
13359 echo "$as_me: error:
13360 Cannot enable threads on your platform.
13361 Please report your platform threading info to the PostgreSQL mailing lists
13362 so it can be added to the next release. Report all compile flags, link flags,
13363 functions, or libraries required for threading support.
13364 See the comment at the top of src/port/thread.c for more information.
13366 { (exit 1); exit 1; }; }
13369 # do not use values from template file
13379 # Check for re-entrant versions of certain functions
13381 # Include special flags if threads are enabled _and_ if required for
13382 # threading on this platform. Some platforms have *_r functions but
13383 # their natively named funcs are threadsafe, and should be used instead.
13385 # One trick here is that if we don't call AC_CHECK_FUNCS, the
13386 # functions are marked "not found", which is perfect.
13388 if test "$enable_thread_safety" = yes -a "$NEED_REENTRANT_FUNCS" = yes ; then
13391 CFLAGS="$CFLAGS $THREAD_CPPFLAGS"
13392 LIBS="$LIBS $THREAD_LIBS"
13396 for ac_func in strerror_r getpwuid_r gethostbyname_r
13398 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13399 echo "$as_me:$LINENO: checking for $ac_func" >&5
13400 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13401 if eval "test \"\${$as_ac_var+set}\" = set"; then
13402 echo $ECHO_N "(cached) $ECHO_C" >&6
13404 cat >conftest.$ac_ext <<_ACEOF
13405 #line $LINENO "configure"
13406 #include "confdefs.h"
13407 /* System header to define __stub macros and hopefully few prototypes,
13408 which can conflict with char $ac_func (); below. */
13409 #include <assert.h>
13410 /* Override any gcc2 internal prototype to avoid an error. */
13414 /* We use char because int might match the return type of a gcc2
13415 builtin and then its argument prototype would still apply. */
13419 #ifdef F77_DUMMY_MAIN
13420 # ifdef __cplusplus
13423 int F77_DUMMY_MAIN() { return 1; }
13428 /* The GNU C library defines this for functions which it implements
13429 to always fail with ENOSYS. Some functions are actually named
13430 something starting with __ and the normal name is an alias. */
13431 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13441 rm -f conftest.$ac_objext conftest$ac_exeext
13442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13443 (eval $ac_link) 2>&5
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); } &&
13447 { ac_try='test -s conftest$ac_exeext'
13448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13449 (eval $ac_try) 2>&5
13451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452 (exit $ac_status); }; }; then
13453 eval "$as_ac_var=yes"
13455 echo "$as_me: failed program was:" >&5
13456 cat conftest.$ac_ext >&5
13457 eval "$as_ac_var=no"
13459 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13462 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13463 if test `eval echo '${'$as_ac_var'}'` = yes; then
13464 cat >>confdefs.h <<_ACEOF
13465 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13476 # This test makes sure that run tests work at all. Sometimes a shared
13477 # library is found by the linker, but the runtime linker can't find it.
13478 # This check should come after all modifications of compiler or linker
13479 # variables, and before any other run tests.
13480 echo "$as_me:$LINENO: checking test program" >&5
13481 echo $ECHO_N "checking test program... $ECHO_C" >&6
13482 if test "$cross_compiling" = yes; then
13483 echo "$as_me:$LINENO: result: cross-compiling" >&5
13484 echo "${ECHO_T}cross-compiling" >&6
13486 cat >conftest.$ac_ext <<_ACEOF
13487 #line $LINENO "configure"
13488 #include "confdefs.h"
13489 int main() { return 0; }
13491 rm -f conftest$ac_exeext
13492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13493 (eval $ac_link) 2>&5
13495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13498 (eval $ac_try) 2>&5
13500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501 (exit $ac_status); }; }; then
13502 echo "$as_me:$LINENO: result: ok" >&5
13503 echo "${ECHO_T}ok" >&6
13505 echo "$as_me: program exited with status $ac_status" >&5
13506 echo "$as_me: failed program was:" >&5
13507 cat conftest.$ac_ext >&5
13508 ( exit $ac_status )
13509 echo "$as_me:$LINENO: result: failed" >&5
13510 echo "${ECHO_T}failed" >&6
13511 { { echo "$as_me:$LINENO: error:
13512 *** Could not execute a simple test program. This may be a problem
13513 *** related to locating shared libraries. Check the file 'config.log'
13514 *** for the exact reason." >&5
13515 echo "$as_me: error:
13516 *** Could not execute a simple test program. This may be a problem
13517 *** related to locating shared libraries. Check the file 'config.log'
13518 *** for the exact reason." >&2;}
13519 { (exit 1); exit 1; }; }
13521 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13526 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
13527 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
13528 if test "${pgac_cv_type_long_int_64+set}" = set; then
13529 echo $ECHO_N "(cached) $ECHO_C" >&6
13531 if test "$cross_compiling" = yes; then
13532 # If cross-compiling, check the size reported by the compiler and
13533 # trust that the arithmetic works.
13534 cat >conftest.$ac_ext <<_ACEOF
13535 #line $LINENO "configure"
13536 #include "confdefs.h"
13538 #ifdef F77_DUMMY_MAIN
13539 # ifdef __cplusplus
13542 int F77_DUMMY_MAIN() { return 1; }
13547 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
13554 rm -f conftest.$ac_objext
13555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13556 (eval $ac_compile) 2>&5
13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); } &&
13560 { ac_try='test -s conftest.$ac_objext'
13561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13562 (eval $ac_try) 2>&5
13564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565 (exit $ac_status); }; }; then
13566 pgac_cv_type_long_int_64=yes
13568 echo "$as_me: failed program was:" >&5
13569 cat conftest.$ac_ext >&5
13570 pgac_cv_type_long_int_64=no
13572 rm -f conftest.$ac_objext conftest.$ac_ext
13574 cat >conftest.$ac_ext <<_ACEOF
13575 #line $LINENO "configure"
13576 #include "confdefs.h"
13577 typedef long int int64;
13580 * These are globals to discourage the compiler from folding all the
13581 * arithmetic tests down to compile-time constants.
13583 int64 a = 20000001;
13584 int64 b = 40000005;
13586 int does_int64_work()
13590 if (sizeof(int64) != 8)
13591 return 0; /* definitely not the right size */
13593 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13601 exit(! does_int64_work());
13604 rm -f conftest$ac_exeext
13605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13606 (eval $ac_link) 2>&5
13608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13611 (eval $ac_try) 2>&5
13613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614 (exit $ac_status); }; }; then
13615 pgac_cv_type_long_int_64=yes
13617 echo "$as_me: program exited with status $ac_status" >&5
13618 echo "$as_me: failed program was:" >&5
13619 cat conftest.$ac_ext >&5
13620 ( exit $ac_status )
13621 pgac_cv_type_long_int_64=no
13623 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13626 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
13627 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
13629 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
13630 if test x"$pgac_cv_type_long_int_64" = xyes ; then
13632 cat >>confdefs.h <<\_ACEOF
13633 #define HAVE_LONG_INT_64
13639 if test x"$HAVE_LONG_INT_64" = x"no" ; then
13640 echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
13641 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
13642 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
13643 echo $ECHO_N "(cached) $ECHO_C" >&6
13645 if test "$cross_compiling" = yes; then
13646 # If cross-compiling, check the size reported by the compiler and
13647 # trust that the arithmetic works.
13648 cat >conftest.$ac_ext <<_ACEOF
13649 #line $LINENO "configure"
13650 #include "confdefs.h"
13652 #ifdef F77_DUMMY_MAIN
13653 # ifdef __cplusplus
13656 int F77_DUMMY_MAIN() { return 1; }
13661 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
13668 rm -f conftest.$ac_objext
13669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13670 (eval $ac_compile) 2>&5
13672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673 (exit $ac_status); } &&
13674 { ac_try='test -s conftest.$ac_objext'
13675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13676 (eval $ac_try) 2>&5
13678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679 (exit $ac_status); }; }; then
13680 pgac_cv_type_long_long_int_64=yes
13682 echo "$as_me: failed program was:" >&5
13683 cat conftest.$ac_ext >&5
13684 pgac_cv_type_long_long_int_64=no
13686 rm -f conftest.$ac_objext conftest.$ac_ext
13688 cat >conftest.$ac_ext <<_ACEOF
13689 #line $LINENO "configure"
13690 #include "confdefs.h"
13691 typedef long long int int64;
13694 * These are globals to discourage the compiler from folding all the
13695 * arithmetic tests down to compile-time constants.
13697 int64 a = 20000001;
13698 int64 b = 40000005;
13700 int does_int64_work()
13704 if (sizeof(int64) != 8)
13705 return 0; /* definitely not the right size */
13707 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13715 exit(! does_int64_work());
13718 rm -f conftest$ac_exeext
13719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13720 (eval $ac_link) 2>&5
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13725 (eval $ac_try) 2>&5
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); }; }; then
13729 pgac_cv_type_long_long_int_64=yes
13731 echo "$as_me: program exited with status $ac_status" >&5
13732 echo "$as_me: failed program was:" >&5
13733 cat conftest.$ac_ext >&5
13734 ( exit $ac_status )
13735 pgac_cv_type_long_long_int_64=no
13737 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13740 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
13741 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
13743 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
13744 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
13746 cat >>confdefs.h <<\_ACEOF
13747 #define HAVE_LONG_LONG_INT_64
13756 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
13757 cat >conftest.$ac_ext <<_ACEOF
13758 #line $LINENO "configure"
13759 #include "confdefs.h"
13761 #define INT64CONST(x) x##LL
13762 long long int foo = INT64CONST(0x1234567890123456);
13764 #ifdef F77_DUMMY_MAIN
13765 # ifdef __cplusplus
13768 int F77_DUMMY_MAIN() { return 1; }
13778 rm -f conftest.$ac_objext
13779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13780 (eval $ac_compile) 2>&5
13782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783 (exit $ac_status); } &&
13784 { ac_try='test -s conftest.$ac_objext'
13785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13786 (eval $ac_try) 2>&5
13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789 (exit $ac_status); }; }; then
13791 cat >>confdefs.h <<\_ACEOF
13792 #define HAVE_LL_CONSTANTS 1
13796 echo "$as_me: failed program was:" >&5
13797 cat conftest.$ac_ext >&5
13799 rm -f conftest.$ac_objext conftest.$ac_ext
13803 # If we found "long int" is 64 bits, assume snprintf handles it. If
13804 # we found we need to use "long long int", better check. We cope with
13805 # snprintfs that use either %lld, %qd, or %I64d as the format. If
13806 # neither works, fall back to our own snprintf emulation (which we
13809 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
13810 if test $pgac_need_repl_snprintf = no; then
13811 echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
13812 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6
13813 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
13814 echo $ECHO_N "(cached) $ECHO_C" >&6
13816 for pgac_format in '%lld' '%qd' '%I64d'; do
13817 if test "$cross_compiling" = yes; then
13818 pgac_cv_snprintf_long_long_int_format=cross; break
13820 cat >conftest.$ac_ext <<_ACEOF
13821 #line $LINENO "configure"
13822 #include "confdefs.h"
13824 typedef long long int int64;
13825 #define INT64_FORMAT "$pgac_format"
13827 int64 a = 20000001;
13828 int64 b = 40000005;
13830 int does_int64_snprintf_work()
13835 if (sizeof(int64) != 8)
13836 return 0; /* doesn't look like the right size */
13839 snprintf(buf, 100, INT64_FORMAT, c);
13840 if (strcmp(buf, "800000140000005") != 0)
13841 return 0; /* either multiply or snprintf is busted */
13845 exit(! does_int64_snprintf_work());
13848 rm -f conftest$ac_exeext
13849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13850 (eval $ac_link) 2>&5
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13855 (eval $ac_try) 2>&5
13857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858 (exit $ac_status); }; }; then
13859 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
13861 echo "$as_me: program exited with status $ac_status" >&5
13862 echo "$as_me: failed program was:" >&5
13863 cat conftest.$ac_ext >&5
13865 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13870 LONG_LONG_INT_FORMAT=''
13872 case $pgac_cv_snprintf_long_long_int_format in
13873 cross) echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
13874 echo "${ECHO_T}cannot test (not on host machine)" >&6;;
13875 ?*) echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
13876 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6
13877 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
13878 *) echo "$as_me:$LINENO: result: none" >&5
13879 echo "${ECHO_T}none" >&6;;
13881 if test "$LONG_LONG_INT_FORMAT" = ""; then
13882 # Force usage of our own snprintf, since system snprintf is broken
13883 pgac_need_repl_snprintf=yes
13884 LONG_LONG_INT_FORMAT='%lld'
13887 # Here if we previously decided we needed to use our own snprintf
13888 LONG_LONG_INT_FORMAT='%lld'
13890 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
13892 # Here if we are not using 'long long int' at all
13893 INT64_FORMAT='"%ld"'
13897 cat >>confdefs.h <<_ACEOF
13898 #define INT64_FORMAT $INT64_FORMAT
13902 if test $pgac_need_repl_snprintf = yes; then
13903 LIBOBJS="$LIBOBJS snprintf.$ac_objext"
13906 # Need a #define for the size of Datum (unsigned long)
13907 echo "$as_me:$LINENO: checking for unsigned long" >&5
13908 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
13909 if test "${ac_cv_type_unsigned_long+set}" = set; then
13910 echo $ECHO_N "(cached) $ECHO_C" >&6
13912 cat >conftest.$ac_ext <<_ACEOF
13913 #line $LINENO "configure"
13914 #include "confdefs.h"
13915 $ac_includes_default
13916 #ifdef F77_DUMMY_MAIN
13917 # ifdef __cplusplus
13920 int F77_DUMMY_MAIN() { return 1; }
13925 if ((unsigned long *) 0)
13927 if (sizeof (unsigned long))
13933 rm -f conftest.$ac_objext
13934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13935 (eval $ac_compile) 2>&5
13937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938 (exit $ac_status); } &&
13939 { ac_try='test -s conftest.$ac_objext'
13940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13941 (eval $ac_try) 2>&5
13943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); }; }; then
13945 ac_cv_type_unsigned_long=yes
13947 echo "$as_me: failed program was:" >&5
13948 cat conftest.$ac_ext >&5
13949 ac_cv_type_unsigned_long=no
13951 rm -f conftest.$ac_objext conftest.$ac_ext
13953 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
13954 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
13956 echo "$as_me:$LINENO: checking size of unsigned long" >&5
13957 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
13958 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
13959 echo $ECHO_N "(cached) $ECHO_C" >&6
13961 if test "$ac_cv_type_unsigned_long" = yes; then
13962 # The cast to unsigned long works around a bug in the HP C Compiler
13963 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13964 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13965 # This bug is HP SR number 8606223364.
13966 if test "$cross_compiling" = yes; then
13967 # Depending upon the size, compute the lo and hi bounds.
13968 cat >conftest.$ac_ext <<_ACEOF
13969 #line $LINENO "configure"
13970 #include "confdefs.h"
13971 $ac_includes_default
13972 #ifdef F77_DUMMY_MAIN
13973 # ifdef __cplusplus
13976 int F77_DUMMY_MAIN() { return 1; }
13981 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
13988 rm -f conftest.$ac_objext
13989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13990 (eval $ac_compile) 2>&5
13992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993 (exit $ac_status); } &&
13994 { ac_try='test -s conftest.$ac_objext'
13995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13996 (eval $ac_try) 2>&5
13998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999 (exit $ac_status); }; }; then
14002 cat >conftest.$ac_ext <<_ACEOF
14003 #line $LINENO "configure"
14004 #include "confdefs.h"
14005 $ac_includes_default
14006 #ifdef F77_DUMMY_MAIN
14007 # ifdef __cplusplus
14010 int F77_DUMMY_MAIN() { return 1; }
14015 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
14022 rm -f conftest.$ac_objext
14023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14024 (eval $ac_compile) 2>&5
14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 (exit $ac_status); } &&
14028 { ac_try='test -s conftest.$ac_objext'
14029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14030 (eval $ac_try) 2>&5
14032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033 (exit $ac_status); }; }; then
14034 ac_hi=$ac_mid; break
14036 echo "$as_me: failed program was:" >&5
14037 cat conftest.$ac_ext >&5
14038 ac_lo=`expr $ac_mid + 1`
14039 if test $ac_lo -le $ac_mid; then
14043 ac_mid=`expr 2 '*' $ac_mid + 1`
14045 rm -f conftest.$ac_objext conftest.$ac_ext
14048 echo "$as_me: failed program was:" >&5
14049 cat conftest.$ac_ext >&5
14050 cat >conftest.$ac_ext <<_ACEOF
14051 #line $LINENO "configure"
14052 #include "confdefs.h"
14053 $ac_includes_default
14054 #ifdef F77_DUMMY_MAIN
14055 # ifdef __cplusplus
14058 int F77_DUMMY_MAIN() { return 1; }
14063 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
14070 rm -f conftest.$ac_objext
14071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14072 (eval $ac_compile) 2>&5
14074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075 (exit $ac_status); } &&
14076 { ac_try='test -s conftest.$ac_objext'
14077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14078 (eval $ac_try) 2>&5
14080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081 (exit $ac_status); }; }; then
14084 cat >conftest.$ac_ext <<_ACEOF
14085 #line $LINENO "configure"
14086 #include "confdefs.h"
14087 $ac_includes_default
14088 #ifdef F77_DUMMY_MAIN
14089 # ifdef __cplusplus
14092 int F77_DUMMY_MAIN() { return 1; }
14097 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
14104 rm -f conftest.$ac_objext
14105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14106 (eval $ac_compile) 2>&5
14108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109 (exit $ac_status); } &&
14110 { ac_try='test -s conftest.$ac_objext'
14111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14112 (eval $ac_try) 2>&5
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); }; }; then
14116 ac_lo=$ac_mid; break
14118 echo "$as_me: failed program was:" >&5
14119 cat conftest.$ac_ext >&5
14120 ac_hi=`expr '(' $ac_mid ')' - 1`
14121 if test $ac_mid -le $ac_hi; then
14125 ac_mid=`expr 2 '*' $ac_mid`
14127 rm -f conftest.$ac_objext conftest.$ac_ext
14130 echo "$as_me: failed program was:" >&5
14131 cat conftest.$ac_ext >&5
14134 rm -f conftest.$ac_objext conftest.$ac_ext
14136 rm -f conftest.$ac_objext conftest.$ac_ext
14137 # Binary search between lo and hi bounds.
14138 while test "x$ac_lo" != "x$ac_hi"; do
14139 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14140 cat >conftest.$ac_ext <<_ACEOF
14141 #line $LINENO "configure"
14142 #include "confdefs.h"
14143 $ac_includes_default
14144 #ifdef F77_DUMMY_MAIN
14145 # ifdef __cplusplus
14148 int F77_DUMMY_MAIN() { return 1; }
14153 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
14160 rm -f conftest.$ac_objext
14161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14162 (eval $ac_compile) 2>&5
14164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165 (exit $ac_status); } &&
14166 { ac_try='test -s conftest.$ac_objext'
14167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14168 (eval $ac_try) 2>&5
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); }; }; then
14174 echo "$as_me: failed program was:" >&5
14175 cat conftest.$ac_ext >&5
14176 ac_lo=`expr '(' $ac_mid ')' + 1`
14178 rm -f conftest.$ac_objext conftest.$ac_ext
14181 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
14182 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
14183 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
14184 { (exit 1); exit 1; }; } ;;
14187 if test "$cross_compiling" = yes; then
14188 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14189 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14190 { (exit 1); exit 1; }; }
14192 cat >conftest.$ac_ext <<_ACEOF
14193 #line $LINENO "configure"
14194 #include "confdefs.h"
14195 $ac_includes_default
14196 long longval () { return (long) (sizeof (unsigned long)); }
14197 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
14199 #include <stdlib.h>
14200 #ifdef F77_DUMMY_MAIN
14201 # ifdef __cplusplus
14204 int F77_DUMMY_MAIN() { return 1; }
14210 FILE *f = fopen ("conftest.val", "w");
14213 if (((long) (sizeof (unsigned long))) < 0)
14215 long i = longval ();
14216 if (i != ((long) (sizeof (unsigned long))))
14218 fprintf (f, "%ld\n", i);
14222 unsigned long i = ulongval ();
14223 if (i != ((long) (sizeof (unsigned long))))
14225 fprintf (f, "%lu\n", i);
14227 exit (ferror (f) || fclose (f) != 0);
14233 rm -f conftest$ac_exeext
14234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14235 (eval $ac_link) 2>&5
14237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14240 (eval $ac_try) 2>&5
14242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243 (exit $ac_status); }; }; then
14244 ac_cv_sizeof_unsigned_long=`cat conftest.val`
14246 echo "$as_me: program exited with status $ac_status" >&5
14247 echo "$as_me: failed program was:" >&5
14248 cat conftest.$ac_ext >&5
14249 ( exit $ac_status )
14250 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
14251 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
14252 { (exit 1); exit 1; }; }
14254 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14259 ac_cv_sizeof_unsigned_long=0
14262 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
14263 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
14264 cat >>confdefs.h <<_ACEOF
14265 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
14270 # Determine memory alignment requirements for the basic C data types.
14272 echo "$as_me:$LINENO: checking for short" >&5
14273 echo $ECHO_N "checking for short... $ECHO_C" >&6
14274 if test "${ac_cv_type_short+set}" = set; then
14275 echo $ECHO_N "(cached) $ECHO_C" >&6
14277 cat >conftest.$ac_ext <<_ACEOF
14278 #line $LINENO "configure"
14279 #include "confdefs.h"
14280 $ac_includes_default
14281 #ifdef F77_DUMMY_MAIN
14282 # ifdef __cplusplus
14285 int F77_DUMMY_MAIN() { return 1; }
14292 if (sizeof (short))
14298 rm -f conftest.$ac_objext
14299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14300 (eval $ac_compile) 2>&5
14302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303 (exit $ac_status); } &&
14304 { ac_try='test -s conftest.$ac_objext'
14305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14306 (eval $ac_try) 2>&5
14308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309 (exit $ac_status); }; }; then
14310 ac_cv_type_short=yes
14312 echo "$as_me: failed program was:" >&5
14313 cat conftest.$ac_ext >&5
14314 ac_cv_type_short=no
14316 rm -f conftest.$ac_objext conftest.$ac_ext
14318 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14319 echo "${ECHO_T}$ac_cv_type_short" >&6
14321 echo "$as_me:$LINENO: checking alignment of short" >&5
14322 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
14323 if test "${pgac_cv_alignof_short+set}" = set; then
14324 echo $ECHO_N "(cached) $ECHO_C" >&6
14326 if test "$ac_cv_type_short" = yes; then
14327 if test "$cross_compiling" = yes; then
14328 # Depending upon the size, compute the lo and hi bounds.
14329 cat >conftest.$ac_ext <<_ACEOF
14330 #line $LINENO "configure"
14331 #include "confdefs.h"
14332 $ac_includes_default
14333 struct { char filler; short field; } pgac_struct;
14334 #ifdef F77_DUMMY_MAIN
14335 # ifdef __cplusplus
14338 int F77_DUMMY_MAIN() { return 1; }
14343 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14350 rm -f conftest.$ac_objext
14351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14352 (eval $ac_compile) 2>&5
14354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355 (exit $ac_status); } &&
14356 { ac_try='test -s conftest.$ac_objext'
14357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14358 (eval $ac_try) 2>&5
14360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361 (exit $ac_status); }; }; then
14364 cat >conftest.$ac_ext <<_ACEOF
14365 #line $LINENO "configure"
14366 #include "confdefs.h"
14367 $ac_includes_default
14368 struct { char filler; short field; } pgac_struct;
14369 #ifdef F77_DUMMY_MAIN
14370 # ifdef __cplusplus
14373 int F77_DUMMY_MAIN() { return 1; }
14378 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14385 rm -f conftest.$ac_objext
14386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14387 (eval $ac_compile) 2>&5
14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); } &&
14391 { ac_try='test -s conftest.$ac_objext'
14392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14393 (eval $ac_try) 2>&5
14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396 (exit $ac_status); }; }; then
14397 ac_hi=$ac_mid; break
14399 echo "$as_me: failed program was:" >&5
14400 cat conftest.$ac_ext >&5
14401 ac_lo=`expr $ac_mid + 1`
14402 if test $ac_lo -le $ac_mid; then
14406 ac_mid=`expr 2 '*' $ac_mid + 1`
14408 rm -f conftest.$ac_objext conftest.$ac_ext
14411 echo "$as_me: failed program was:" >&5
14412 cat conftest.$ac_ext >&5
14413 cat >conftest.$ac_ext <<_ACEOF
14414 #line $LINENO "configure"
14415 #include "confdefs.h"
14416 $ac_includes_default
14417 struct { char filler; short field; } pgac_struct;
14418 #ifdef F77_DUMMY_MAIN
14419 # ifdef __cplusplus
14422 int F77_DUMMY_MAIN() { return 1; }
14427 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14434 rm -f conftest.$ac_objext
14435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14436 (eval $ac_compile) 2>&5
14438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439 (exit $ac_status); } &&
14440 { ac_try='test -s conftest.$ac_objext'
14441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14442 (eval $ac_try) 2>&5
14444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445 (exit $ac_status); }; }; then
14448 cat >conftest.$ac_ext <<_ACEOF
14449 #line $LINENO "configure"
14450 #include "confdefs.h"
14451 $ac_includes_default
14452 struct { char filler; short field; } pgac_struct;
14453 #ifdef F77_DUMMY_MAIN
14454 # ifdef __cplusplus
14457 int F77_DUMMY_MAIN() { return 1; }
14462 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14469 rm -f conftest.$ac_objext
14470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14471 (eval $ac_compile) 2>&5
14473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474 (exit $ac_status); } &&
14475 { ac_try='test -s conftest.$ac_objext'
14476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14477 (eval $ac_try) 2>&5
14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 (exit $ac_status); }; }; then
14481 ac_lo=$ac_mid; break
14483 echo "$as_me: failed program was:" >&5
14484 cat conftest.$ac_ext >&5
14485 ac_hi=`expr '(' $ac_mid ')' - 1`
14486 if test $ac_mid -le $ac_hi; then
14490 ac_mid=`expr 2 '*' $ac_mid`
14492 rm -f conftest.$ac_objext conftest.$ac_ext
14495 echo "$as_me: failed program was:" >&5
14496 cat conftest.$ac_ext >&5
14499 rm -f conftest.$ac_objext conftest.$ac_ext
14501 rm -f conftest.$ac_objext conftest.$ac_ext
14502 # Binary search between lo and hi bounds.
14503 while test "x$ac_lo" != "x$ac_hi"; do
14504 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14505 cat >conftest.$ac_ext <<_ACEOF
14506 #line $LINENO "configure"
14507 #include "confdefs.h"
14508 $ac_includes_default
14509 struct { char filler; short field; } pgac_struct;
14510 #ifdef F77_DUMMY_MAIN
14511 # ifdef __cplusplus
14514 int F77_DUMMY_MAIN() { return 1; }
14519 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14526 rm -f conftest.$ac_objext
14527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14528 (eval $ac_compile) 2>&5
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); } &&
14532 { ac_try='test -s conftest.$ac_objext'
14533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14534 (eval $ac_try) 2>&5
14536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537 (exit $ac_status); }; }; then
14540 echo "$as_me: failed program was:" >&5
14541 cat conftest.$ac_ext >&5
14542 ac_lo=`expr '(' $ac_mid ')' + 1`
14544 rm -f conftest.$ac_objext conftest.$ac_ext
14547 ?*) pgac_cv_alignof_short=$ac_lo;;
14548 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
14549 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
14550 { (exit 1); exit 1; }; } ;;
14553 if test "$cross_compiling" = yes; then
14554 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14555 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14556 { (exit 1); exit 1; }; }
14558 cat >conftest.$ac_ext <<_ACEOF
14559 #line $LINENO "configure"
14560 #include "confdefs.h"
14561 $ac_includes_default
14562 struct { char filler; short field; } pgac_struct;
14563 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14564 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14566 #include <stdlib.h>
14567 #ifdef F77_DUMMY_MAIN
14568 # ifdef __cplusplus
14571 int F77_DUMMY_MAIN() { return 1; }
14577 FILE *f = fopen ("conftest.val", "w");
14580 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14582 long i = longval ();
14583 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14585 fprintf (f, "%ld\n", i);
14589 unsigned long i = ulongval ();
14590 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14592 fprintf (f, "%lu\n", i);
14594 exit (ferror (f) || fclose (f) != 0);
14600 rm -f conftest$ac_exeext
14601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14602 (eval $ac_link) 2>&5
14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14607 (eval $ac_try) 2>&5
14609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610 (exit $ac_status); }; }; then
14611 pgac_cv_alignof_short=`cat conftest.val`
14613 echo "$as_me: program exited with status $ac_status" >&5
14614 echo "$as_me: failed program was:" >&5
14615 cat conftest.$ac_ext >&5
14616 ( exit $ac_status )
14617 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
14618 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
14619 { (exit 1); exit 1; }; }
14621 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14626 pgac_cv_alignof_short=0
14629 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
14630 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
14631 cat >>confdefs.h <<_ACEOF
14632 #define ALIGNOF_SHORT $pgac_cv_alignof_short
14636 echo "$as_me:$LINENO: checking for int" >&5
14637 echo $ECHO_N "checking for int... $ECHO_C" >&6
14638 if test "${ac_cv_type_int+set}" = set; then
14639 echo $ECHO_N "(cached) $ECHO_C" >&6
14641 cat >conftest.$ac_ext <<_ACEOF
14642 #line $LINENO "configure"
14643 #include "confdefs.h"
14644 $ac_includes_default
14645 #ifdef F77_DUMMY_MAIN
14646 # ifdef __cplusplus
14649 int F77_DUMMY_MAIN() { return 1; }
14662 rm -f conftest.$ac_objext
14663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14664 (eval $ac_compile) 2>&5
14666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667 (exit $ac_status); } &&
14668 { ac_try='test -s conftest.$ac_objext'
14669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14670 (eval $ac_try) 2>&5
14672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673 (exit $ac_status); }; }; then
14676 echo "$as_me: failed program was:" >&5
14677 cat conftest.$ac_ext >&5
14680 rm -f conftest.$ac_objext conftest.$ac_ext
14682 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14683 echo "${ECHO_T}$ac_cv_type_int" >&6
14685 echo "$as_me:$LINENO: checking alignment of int" >&5
14686 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
14687 if test "${pgac_cv_alignof_int+set}" = set; then
14688 echo $ECHO_N "(cached) $ECHO_C" >&6
14690 if test "$ac_cv_type_int" = yes; then
14691 if test "$cross_compiling" = yes; then
14692 # Depending upon the size, compute the lo and hi bounds.
14693 cat >conftest.$ac_ext <<_ACEOF
14694 #line $LINENO "configure"
14695 #include "confdefs.h"
14696 $ac_includes_default
14697 struct { char filler; int field; } pgac_struct;
14698 #ifdef F77_DUMMY_MAIN
14699 # ifdef __cplusplus
14702 int F77_DUMMY_MAIN() { return 1; }
14707 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14714 rm -f conftest.$ac_objext
14715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14716 (eval $ac_compile) 2>&5
14718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719 (exit $ac_status); } &&
14720 { ac_try='test -s conftest.$ac_objext'
14721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14722 (eval $ac_try) 2>&5
14724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725 (exit $ac_status); }; }; then
14728 cat >conftest.$ac_ext <<_ACEOF
14729 #line $LINENO "configure"
14730 #include "confdefs.h"
14731 $ac_includes_default
14732 struct { char filler; int field; } pgac_struct;
14733 #ifdef F77_DUMMY_MAIN
14734 # ifdef __cplusplus
14737 int F77_DUMMY_MAIN() { return 1; }
14742 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14749 rm -f conftest.$ac_objext
14750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14751 (eval $ac_compile) 2>&5
14753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14754 (exit $ac_status); } &&
14755 { ac_try='test -s conftest.$ac_objext'
14756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14757 (eval $ac_try) 2>&5
14759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760 (exit $ac_status); }; }; then
14761 ac_hi=$ac_mid; break
14763 echo "$as_me: failed program was:" >&5
14764 cat conftest.$ac_ext >&5
14765 ac_lo=`expr $ac_mid + 1`
14766 if test $ac_lo -le $ac_mid; then
14770 ac_mid=`expr 2 '*' $ac_mid + 1`
14772 rm -f conftest.$ac_objext conftest.$ac_ext
14775 echo "$as_me: failed program was:" >&5
14776 cat conftest.$ac_ext >&5
14777 cat >conftest.$ac_ext <<_ACEOF
14778 #line $LINENO "configure"
14779 #include "confdefs.h"
14780 $ac_includes_default
14781 struct { char filler; int field; } pgac_struct;
14782 #ifdef F77_DUMMY_MAIN
14783 # ifdef __cplusplus
14786 int F77_DUMMY_MAIN() { return 1; }
14791 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14798 rm -f conftest.$ac_objext
14799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14800 (eval $ac_compile) 2>&5
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); } &&
14804 { ac_try='test -s conftest.$ac_objext'
14805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14806 (eval $ac_try) 2>&5
14808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809 (exit $ac_status); }; }; then
14812 cat >conftest.$ac_ext <<_ACEOF
14813 #line $LINENO "configure"
14814 #include "confdefs.h"
14815 $ac_includes_default
14816 struct { char filler; int field; } pgac_struct;
14817 #ifdef F77_DUMMY_MAIN
14818 # ifdef __cplusplus
14821 int F77_DUMMY_MAIN() { return 1; }
14826 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14833 rm -f conftest.$ac_objext
14834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14835 (eval $ac_compile) 2>&5
14837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838 (exit $ac_status); } &&
14839 { ac_try='test -s conftest.$ac_objext'
14840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14841 (eval $ac_try) 2>&5
14843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844 (exit $ac_status); }; }; then
14845 ac_lo=$ac_mid; break
14847 echo "$as_me: failed program was:" >&5
14848 cat conftest.$ac_ext >&5
14849 ac_hi=`expr '(' $ac_mid ')' - 1`
14850 if test $ac_mid -le $ac_hi; then
14854 ac_mid=`expr 2 '*' $ac_mid`
14856 rm -f conftest.$ac_objext conftest.$ac_ext
14859 echo "$as_me: failed program was:" >&5
14860 cat conftest.$ac_ext >&5
14863 rm -f conftest.$ac_objext conftest.$ac_ext
14865 rm -f conftest.$ac_objext conftest.$ac_ext
14866 # Binary search between lo and hi bounds.
14867 while test "x$ac_lo" != "x$ac_hi"; do
14868 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14869 cat >conftest.$ac_ext <<_ACEOF
14870 #line $LINENO "configure"
14871 #include "confdefs.h"
14872 $ac_includes_default
14873 struct { char filler; int field; } pgac_struct;
14874 #ifdef F77_DUMMY_MAIN
14875 # ifdef __cplusplus
14878 int F77_DUMMY_MAIN() { return 1; }
14883 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14890 rm -f conftest.$ac_objext
14891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14892 (eval $ac_compile) 2>&5
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); } &&
14896 { ac_try='test -s conftest.$ac_objext'
14897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14898 (eval $ac_try) 2>&5
14900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901 (exit $ac_status); }; }; then
14904 echo "$as_me: failed program was:" >&5
14905 cat conftest.$ac_ext >&5
14906 ac_lo=`expr '(' $ac_mid ')' + 1`
14908 rm -f conftest.$ac_objext conftest.$ac_ext
14911 ?*) pgac_cv_alignof_int=$ac_lo;;
14912 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14913 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14914 { (exit 1); exit 1; }; } ;;
14917 if test "$cross_compiling" = yes; then
14918 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14919 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14920 { (exit 1); exit 1; }; }
14922 cat >conftest.$ac_ext <<_ACEOF
14923 #line $LINENO "configure"
14924 #include "confdefs.h"
14925 $ac_includes_default
14926 struct { char filler; int field; } pgac_struct;
14927 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14928 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14930 #include <stdlib.h>
14931 #ifdef F77_DUMMY_MAIN
14932 # ifdef __cplusplus
14935 int F77_DUMMY_MAIN() { return 1; }
14941 FILE *f = fopen ("conftest.val", "w");
14944 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14946 long i = longval ();
14947 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14949 fprintf (f, "%ld\n", i);
14953 unsigned long i = ulongval ();
14954 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14956 fprintf (f, "%lu\n", i);
14958 exit (ferror (f) || fclose (f) != 0);
14964 rm -f conftest$ac_exeext
14965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14966 (eval $ac_link) 2>&5
14968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14969 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14971 (eval $ac_try) 2>&5
14973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974 (exit $ac_status); }; }; then
14975 pgac_cv_alignof_int=`cat conftest.val`
14977 echo "$as_me: program exited with status $ac_status" >&5
14978 echo "$as_me: failed program was:" >&5
14979 cat conftest.$ac_ext >&5
14980 ( exit $ac_status )
14981 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
14982 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
14983 { (exit 1); exit 1; }; }
14985 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14990 pgac_cv_alignof_int=0
14993 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
14994 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
14995 cat >>confdefs.h <<_ACEOF
14996 #define ALIGNOF_INT $pgac_cv_alignof_int
15000 echo "$as_me:$LINENO: checking for long" >&5
15001 echo $ECHO_N "checking for long... $ECHO_C" >&6
15002 if test "${ac_cv_type_long+set}" = set; then
15003 echo $ECHO_N "(cached) $ECHO_C" >&6
15005 cat >conftest.$ac_ext <<_ACEOF
15006 #line $LINENO "configure"
15007 #include "confdefs.h"
15008 $ac_includes_default
15009 #ifdef F77_DUMMY_MAIN
15010 # ifdef __cplusplus
15013 int F77_DUMMY_MAIN() { return 1; }
15026 rm -f conftest.$ac_objext
15027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15028 (eval $ac_compile) 2>&5
15030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031 (exit $ac_status); } &&
15032 { ac_try='test -s conftest.$ac_objext'
15033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15034 (eval $ac_try) 2>&5
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); }; }; then
15038 ac_cv_type_long=yes
15040 echo "$as_me: failed program was:" >&5
15041 cat conftest.$ac_ext >&5
15044 rm -f conftest.$ac_objext conftest.$ac_ext
15046 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15047 echo "${ECHO_T}$ac_cv_type_long" >&6
15049 echo "$as_me:$LINENO: checking alignment of long" >&5
15050 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
15051 if test "${pgac_cv_alignof_long+set}" = set; then
15052 echo $ECHO_N "(cached) $ECHO_C" >&6
15054 if test "$ac_cv_type_long" = yes; then
15055 if test "$cross_compiling" = yes; then
15056 # Depending upon the size, compute the lo and hi bounds.
15057 cat >conftest.$ac_ext <<_ACEOF
15058 #line $LINENO "configure"
15059 #include "confdefs.h"
15060 $ac_includes_default
15061 struct { char filler; long field; } pgac_struct;
15062 #ifdef F77_DUMMY_MAIN
15063 # ifdef __cplusplus
15066 int F77_DUMMY_MAIN() { return 1; }
15071 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15078 rm -f conftest.$ac_objext
15079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15080 (eval $ac_compile) 2>&5
15082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083 (exit $ac_status); } &&
15084 { ac_try='test -s conftest.$ac_objext'
15085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15086 (eval $ac_try) 2>&5
15088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089 (exit $ac_status); }; }; then
15092 cat >conftest.$ac_ext <<_ACEOF
15093 #line $LINENO "configure"
15094 #include "confdefs.h"
15095 $ac_includes_default
15096 struct { char filler; long field; } pgac_struct;
15097 #ifdef F77_DUMMY_MAIN
15098 # ifdef __cplusplus
15101 int F77_DUMMY_MAIN() { return 1; }
15106 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15113 rm -f conftest.$ac_objext
15114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15115 (eval $ac_compile) 2>&5
15117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 (exit $ac_status); } &&
15119 { ac_try='test -s conftest.$ac_objext'
15120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15121 (eval $ac_try) 2>&5
15123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124 (exit $ac_status); }; }; then
15125 ac_hi=$ac_mid; break
15127 echo "$as_me: failed program was:" >&5
15128 cat conftest.$ac_ext >&5
15129 ac_lo=`expr $ac_mid + 1`
15130 if test $ac_lo -le $ac_mid; then
15134 ac_mid=`expr 2 '*' $ac_mid + 1`
15136 rm -f conftest.$ac_objext conftest.$ac_ext
15139 echo "$as_me: failed program was:" >&5
15140 cat conftest.$ac_ext >&5
15141 cat >conftest.$ac_ext <<_ACEOF
15142 #line $LINENO "configure"
15143 #include "confdefs.h"
15144 $ac_includes_default
15145 struct { char filler; long field; } pgac_struct;
15146 #ifdef F77_DUMMY_MAIN
15147 # ifdef __cplusplus
15150 int F77_DUMMY_MAIN() { return 1; }
15155 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15162 rm -f conftest.$ac_objext
15163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15164 (eval $ac_compile) 2>&5
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); } &&
15168 { ac_try='test -s conftest.$ac_objext'
15169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15170 (eval $ac_try) 2>&5
15172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); }; }; then
15176 cat >conftest.$ac_ext <<_ACEOF
15177 #line $LINENO "configure"
15178 #include "confdefs.h"
15179 $ac_includes_default
15180 struct { char filler; long field; } pgac_struct;
15181 #ifdef F77_DUMMY_MAIN
15182 # ifdef __cplusplus
15185 int F77_DUMMY_MAIN() { return 1; }
15190 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15197 rm -f conftest.$ac_objext
15198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15199 (eval $ac_compile) 2>&5
15201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202 (exit $ac_status); } &&
15203 { ac_try='test -s conftest.$ac_objext'
15204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15205 (eval $ac_try) 2>&5
15207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208 (exit $ac_status); }; }; then
15209 ac_lo=$ac_mid; break
15211 echo "$as_me: failed program was:" >&5
15212 cat conftest.$ac_ext >&5
15213 ac_hi=`expr '(' $ac_mid ')' - 1`
15214 if test $ac_mid -le $ac_hi; then
15218 ac_mid=`expr 2 '*' $ac_mid`
15220 rm -f conftest.$ac_objext conftest.$ac_ext
15223 echo "$as_me: failed program was:" >&5
15224 cat conftest.$ac_ext >&5
15227 rm -f conftest.$ac_objext conftest.$ac_ext
15229 rm -f conftest.$ac_objext conftest.$ac_ext
15230 # Binary search between lo and hi bounds.
15231 while test "x$ac_lo" != "x$ac_hi"; do
15232 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15233 cat >conftest.$ac_ext <<_ACEOF
15234 #line $LINENO "configure"
15235 #include "confdefs.h"
15236 $ac_includes_default
15237 struct { char filler; long field; } pgac_struct;
15238 #ifdef F77_DUMMY_MAIN
15239 # ifdef __cplusplus
15242 int F77_DUMMY_MAIN() { return 1; }
15247 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15254 rm -f conftest.$ac_objext
15255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15256 (eval $ac_compile) 2>&5
15258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259 (exit $ac_status); } &&
15260 { ac_try='test -s conftest.$ac_objext'
15261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15262 (eval $ac_try) 2>&5
15264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265 (exit $ac_status); }; }; then
15268 echo "$as_me: failed program was:" >&5
15269 cat conftest.$ac_ext >&5
15270 ac_lo=`expr '(' $ac_mid ')' + 1`
15272 rm -f conftest.$ac_objext conftest.$ac_ext
15275 ?*) pgac_cv_alignof_long=$ac_lo;;
15276 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
15277 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
15278 { (exit 1); exit 1; }; } ;;
15281 if test "$cross_compiling" = yes; then
15282 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15283 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15284 { (exit 1); exit 1; }; }
15286 cat >conftest.$ac_ext <<_ACEOF
15287 #line $LINENO "configure"
15288 #include "confdefs.h"
15289 $ac_includes_default
15290 struct { char filler; long field; } pgac_struct;
15291 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15292 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15294 #include <stdlib.h>
15295 #ifdef F77_DUMMY_MAIN
15296 # ifdef __cplusplus
15299 int F77_DUMMY_MAIN() { return 1; }
15305 FILE *f = fopen ("conftest.val", "w");
15308 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15310 long i = longval ();
15311 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15313 fprintf (f, "%ld\n", i);
15317 unsigned long i = ulongval ();
15318 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15320 fprintf (f, "%lu\n", i);
15322 exit (ferror (f) || fclose (f) != 0);
15328 rm -f conftest$ac_exeext
15329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15330 (eval $ac_link) 2>&5
15332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15335 (eval $ac_try) 2>&5
15337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338 (exit $ac_status); }; }; then
15339 pgac_cv_alignof_long=`cat conftest.val`
15341 echo "$as_me: program exited with status $ac_status" >&5
15342 echo "$as_me: failed program was:" >&5
15343 cat conftest.$ac_ext >&5
15344 ( exit $ac_status )
15345 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
15346 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
15347 { (exit 1); exit 1; }; }
15349 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15354 pgac_cv_alignof_long=0
15357 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
15358 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
15359 cat >>confdefs.h <<_ACEOF
15360 #define ALIGNOF_LONG $pgac_cv_alignof_long
15364 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
15365 echo "$as_me:$LINENO: checking for long long int" >&5
15366 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
15367 if test "${ac_cv_type_long_long_int+set}" = set; then
15368 echo $ECHO_N "(cached) $ECHO_C" >&6
15370 cat >conftest.$ac_ext <<_ACEOF
15371 #line $LINENO "configure"
15372 #include "confdefs.h"
15373 $ac_includes_default
15374 #ifdef F77_DUMMY_MAIN
15375 # ifdef __cplusplus
15378 int F77_DUMMY_MAIN() { return 1; }
15383 if ((long long int *) 0)
15385 if (sizeof (long long int))
15391 rm -f conftest.$ac_objext
15392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15393 (eval $ac_compile) 2>&5
15395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396 (exit $ac_status); } &&
15397 { ac_try='test -s conftest.$ac_objext'
15398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15399 (eval $ac_try) 2>&5
15401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402 (exit $ac_status); }; }; then
15403 ac_cv_type_long_long_int=yes
15405 echo "$as_me: failed program was:" >&5
15406 cat conftest.$ac_ext >&5
15407 ac_cv_type_long_long_int=no
15409 rm -f conftest.$ac_objext conftest.$ac_ext
15411 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
15412 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
15414 echo "$as_me:$LINENO: checking alignment of long long int" >&5
15415 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
15416 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
15417 echo $ECHO_N "(cached) $ECHO_C" >&6
15419 if test "$ac_cv_type_long_long_int" = yes; then
15420 if test "$cross_compiling" = yes; then
15421 # Depending upon the size, compute the lo and hi bounds.
15422 cat >conftest.$ac_ext <<_ACEOF
15423 #line $LINENO "configure"
15424 #include "confdefs.h"
15425 $ac_includes_default
15426 struct { char filler; long long int field; } pgac_struct;
15427 #ifdef F77_DUMMY_MAIN
15428 # ifdef __cplusplus
15431 int F77_DUMMY_MAIN() { return 1; }
15436 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15443 rm -f conftest.$ac_objext
15444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15445 (eval $ac_compile) 2>&5
15447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448 (exit $ac_status); } &&
15449 { ac_try='test -s conftest.$ac_objext'
15450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15451 (eval $ac_try) 2>&5
15453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454 (exit $ac_status); }; }; then
15457 cat >conftest.$ac_ext <<_ACEOF
15458 #line $LINENO "configure"
15459 #include "confdefs.h"
15460 $ac_includes_default
15461 struct { char filler; long long int field; } pgac_struct;
15462 #ifdef F77_DUMMY_MAIN
15463 # ifdef __cplusplus
15466 int F77_DUMMY_MAIN() { return 1; }
15471 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15478 rm -f conftest.$ac_objext
15479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15480 (eval $ac_compile) 2>&5
15482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483 (exit $ac_status); } &&
15484 { ac_try='test -s conftest.$ac_objext'
15485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15486 (eval $ac_try) 2>&5
15488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489 (exit $ac_status); }; }; then
15490 ac_hi=$ac_mid; break
15492 echo "$as_me: failed program was:" >&5
15493 cat conftest.$ac_ext >&5
15494 ac_lo=`expr $ac_mid + 1`
15495 if test $ac_lo -le $ac_mid; then
15499 ac_mid=`expr 2 '*' $ac_mid + 1`
15501 rm -f conftest.$ac_objext conftest.$ac_ext
15504 echo "$as_me: failed program was:" >&5
15505 cat conftest.$ac_ext >&5
15506 cat >conftest.$ac_ext <<_ACEOF
15507 #line $LINENO "configure"
15508 #include "confdefs.h"
15509 $ac_includes_default
15510 struct { char filler; long long int field; } pgac_struct;
15511 #ifdef F77_DUMMY_MAIN
15512 # ifdef __cplusplus
15515 int F77_DUMMY_MAIN() { return 1; }
15520 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15527 rm -f conftest.$ac_objext
15528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15529 (eval $ac_compile) 2>&5
15531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532 (exit $ac_status); } &&
15533 { ac_try='test -s conftest.$ac_objext'
15534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15535 (eval $ac_try) 2>&5
15537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538 (exit $ac_status); }; }; then
15541 cat >conftest.$ac_ext <<_ACEOF
15542 #line $LINENO "configure"
15543 #include "confdefs.h"
15544 $ac_includes_default
15545 struct { char filler; long long int field; } pgac_struct;
15546 #ifdef F77_DUMMY_MAIN
15547 # ifdef __cplusplus
15550 int F77_DUMMY_MAIN() { return 1; }
15555 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15562 rm -f conftest.$ac_objext
15563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15564 (eval $ac_compile) 2>&5
15566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567 (exit $ac_status); } &&
15568 { ac_try='test -s conftest.$ac_objext'
15569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15570 (eval $ac_try) 2>&5
15572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573 (exit $ac_status); }; }; then
15574 ac_lo=$ac_mid; break
15576 echo "$as_me: failed program was:" >&5
15577 cat conftest.$ac_ext >&5
15578 ac_hi=`expr '(' $ac_mid ')' - 1`
15579 if test $ac_mid -le $ac_hi; then
15583 ac_mid=`expr 2 '*' $ac_mid`
15585 rm -f conftest.$ac_objext conftest.$ac_ext
15588 echo "$as_me: failed program was:" >&5
15589 cat conftest.$ac_ext >&5
15592 rm -f conftest.$ac_objext conftest.$ac_ext
15594 rm -f conftest.$ac_objext conftest.$ac_ext
15595 # Binary search between lo and hi bounds.
15596 while test "x$ac_lo" != "x$ac_hi"; do
15597 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15598 cat >conftest.$ac_ext <<_ACEOF
15599 #line $LINENO "configure"
15600 #include "confdefs.h"
15601 $ac_includes_default
15602 struct { char filler; long long int field; } pgac_struct;
15603 #ifdef F77_DUMMY_MAIN
15604 # ifdef __cplusplus
15607 int F77_DUMMY_MAIN() { return 1; }
15612 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15619 rm -f conftest.$ac_objext
15620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15621 (eval $ac_compile) 2>&5
15623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624 (exit $ac_status); } &&
15625 { ac_try='test -s conftest.$ac_objext'
15626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15627 (eval $ac_try) 2>&5
15629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630 (exit $ac_status); }; }; then
15633 echo "$as_me: failed program was:" >&5
15634 cat conftest.$ac_ext >&5
15635 ac_lo=`expr '(' $ac_mid ')' + 1`
15637 rm -f conftest.$ac_objext conftest.$ac_ext
15640 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
15641 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
15642 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
15643 { (exit 1); exit 1; }; } ;;
15646 if test "$cross_compiling" = yes; then
15647 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
15648 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
15649 { (exit 1); exit 1; }; }
15651 cat >conftest.$ac_ext <<_ACEOF
15652 #line $LINENO "configure"
15653 #include "confdefs.h"
15654 $ac_includes_default
15655 struct { char filler; long long int field; } pgac_struct;
15656 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15657 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
15659 #include <stdlib.h>
15660 #ifdef F77_DUMMY_MAIN
15661 # ifdef __cplusplus
15664 int F77_DUMMY_MAIN() { return 1; }
15670 FILE *f = fopen ("conftest.val", "w");
15673 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
15675 long i = longval ();
15676 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15678 fprintf (f, "%ld\n", i);
15682 unsigned long i = ulongval ();
15683 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
15685 fprintf (f, "%lu\n", i);
15687 exit (ferror (f) || fclose (f) != 0);
15693 rm -f conftest$ac_exeext
15694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15695 (eval $ac_link) 2>&5
15697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15698 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15700 (eval $ac_try) 2>&5
15702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703 (exit $ac_status); }; }; then
15704 pgac_cv_alignof_long_long_int=`cat conftest.val`
15706 echo "$as_me: program exited with status $ac_status" >&5
15707 echo "$as_me: failed program was:" >&5
15708 cat conftest.$ac_ext >&5
15709 ( exit $ac_status )
15710 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
15711 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
15712 { (exit 1); exit 1; }; }
15714 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15719 pgac_cv_alignof_long_long_int=0
15722 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
15723 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
15724 cat >>confdefs.h <<_ACEOF
15725 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
15730 echo "$as_me:$LINENO: checking for double" >&5
15731 echo $ECHO_N "checking for double... $ECHO_C" >&6
15732 if test "${ac_cv_type_double+set}" = set; then
15733 echo $ECHO_N "(cached) $ECHO_C" >&6
15735 cat >conftest.$ac_ext <<_ACEOF
15736 #line $LINENO "configure"
15737 #include "confdefs.h"
15738 $ac_includes_default
15739 #ifdef F77_DUMMY_MAIN
15740 # ifdef __cplusplus
15743 int F77_DUMMY_MAIN() { return 1; }
15750 if (sizeof (double))
15756 rm -f conftest.$ac_objext
15757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15758 (eval $ac_compile) 2>&5
15760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761 (exit $ac_status); } &&
15762 { ac_try='test -s conftest.$ac_objext'
15763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15764 (eval $ac_try) 2>&5
15766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767 (exit $ac_status); }; }; then
15768 ac_cv_type_double=yes
15770 echo "$as_me: failed program was:" >&5
15771 cat conftest.$ac_ext >&5
15772 ac_cv_type_double=no
15774 rm -f conftest.$ac_objext conftest.$ac_ext
15776 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
15777 echo "${ECHO_T}$ac_cv_type_double" >&6
15779 echo "$as_me:$LINENO: checking alignment of double" >&5
15780 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
15781 if test "${pgac_cv_alignof_double+set}" = set; then
15782 echo $ECHO_N "(cached) $ECHO_C" >&6
15784 if test "$ac_cv_type_double" = yes; then
15785 if test "$cross_compiling" = yes; then
15786 # Depending upon the size, compute the lo and hi bounds.
15787 cat >conftest.$ac_ext <<_ACEOF
15788 #line $LINENO "configure"
15789 #include "confdefs.h"
15790 $ac_includes_default
15791 struct { char filler; double field; } pgac_struct;
15792 #ifdef F77_DUMMY_MAIN
15793 # ifdef __cplusplus
15796 int F77_DUMMY_MAIN() { return 1; }
15801 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
15808 rm -f conftest.$ac_objext
15809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15810 (eval $ac_compile) 2>&5
15812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813 (exit $ac_status); } &&
15814 { ac_try='test -s conftest.$ac_objext'
15815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15816 (eval $ac_try) 2>&5
15818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15819 (exit $ac_status); }; }; then
15822 cat >conftest.$ac_ext <<_ACEOF
15823 #line $LINENO "configure"
15824 #include "confdefs.h"
15825 $ac_includes_default
15826 struct { char filler; double field; } pgac_struct;
15827 #ifdef F77_DUMMY_MAIN
15828 # ifdef __cplusplus
15831 int F77_DUMMY_MAIN() { return 1; }
15836 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15843 rm -f conftest.$ac_objext
15844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15845 (eval $ac_compile) 2>&5
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); } &&
15849 { ac_try='test -s conftest.$ac_objext'
15850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15851 (eval $ac_try) 2>&5
15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854 (exit $ac_status); }; }; then
15855 ac_hi=$ac_mid; break
15857 echo "$as_me: failed program was:" >&5
15858 cat conftest.$ac_ext >&5
15859 ac_lo=`expr $ac_mid + 1`
15860 if test $ac_lo -le $ac_mid; then
15864 ac_mid=`expr 2 '*' $ac_mid + 1`
15866 rm -f conftest.$ac_objext conftest.$ac_ext
15869 echo "$as_me: failed program was:" >&5
15870 cat conftest.$ac_ext >&5
15871 cat >conftest.$ac_ext <<_ACEOF
15872 #line $LINENO "configure"
15873 #include "confdefs.h"
15874 $ac_includes_default
15875 struct { char filler; double field; } pgac_struct;
15876 #ifdef F77_DUMMY_MAIN
15877 # ifdef __cplusplus
15880 int F77_DUMMY_MAIN() { return 1; }
15885 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
15892 rm -f conftest.$ac_objext
15893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15894 (eval $ac_compile) 2>&5
15896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15897 (exit $ac_status); } &&
15898 { ac_try='test -s conftest.$ac_objext'
15899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15900 (eval $ac_try) 2>&5
15902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903 (exit $ac_status); }; }; then
15906 cat >conftest.$ac_ext <<_ACEOF
15907 #line $LINENO "configure"
15908 #include "confdefs.h"
15909 $ac_includes_default
15910 struct { char filler; double field; } pgac_struct;
15911 #ifdef F77_DUMMY_MAIN
15912 # ifdef __cplusplus
15915 int F77_DUMMY_MAIN() { return 1; }
15920 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
15927 rm -f conftest.$ac_objext
15928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15929 (eval $ac_compile) 2>&5
15931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); } &&
15933 { ac_try='test -s conftest.$ac_objext'
15934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15935 (eval $ac_try) 2>&5
15937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938 (exit $ac_status); }; }; then
15939 ac_lo=$ac_mid; break
15941 echo "$as_me: failed program was:" >&5
15942 cat conftest.$ac_ext >&5
15943 ac_hi=`expr '(' $ac_mid ')' - 1`
15944 if test $ac_mid -le $ac_hi; then
15948 ac_mid=`expr 2 '*' $ac_mid`
15950 rm -f conftest.$ac_objext conftest.$ac_ext
15953 echo "$as_me: failed program was:" >&5
15954 cat conftest.$ac_ext >&5
15957 rm -f conftest.$ac_objext conftest.$ac_ext
15959 rm -f conftest.$ac_objext conftest.$ac_ext
15960 # Binary search between lo and hi bounds.
15961 while test "x$ac_lo" != "x$ac_hi"; do
15962 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15963 cat >conftest.$ac_ext <<_ACEOF
15964 #line $LINENO "configure"
15965 #include "confdefs.h"
15966 $ac_includes_default
15967 struct { char filler; double field; } pgac_struct;
15968 #ifdef F77_DUMMY_MAIN
15969 # ifdef __cplusplus
15972 int F77_DUMMY_MAIN() { return 1; }
15977 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
15984 rm -f conftest.$ac_objext
15985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15986 (eval $ac_compile) 2>&5
15988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989 (exit $ac_status); } &&
15990 { ac_try='test -s conftest.$ac_objext'
15991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15992 (eval $ac_try) 2>&5
15994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15995 (exit $ac_status); }; }; then
15998 echo "$as_me: failed program was:" >&5
15999 cat conftest.$ac_ext >&5
16000 ac_lo=`expr '(' $ac_mid ')' + 1`
16002 rm -f conftest.$ac_objext conftest.$ac_ext
16005 ?*) pgac_cv_alignof_double=$ac_lo;;
16006 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
16007 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
16008 { (exit 1); exit 1; }; } ;;
16011 if test "$cross_compiling" = yes; then
16012 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
16013 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
16014 { (exit 1); exit 1; }; }
16016 cat >conftest.$ac_ext <<_ACEOF
16017 #line $LINENO "configure"
16018 #include "confdefs.h"
16019 $ac_includes_default
16020 struct { char filler; double field; } pgac_struct;
16021 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16022 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
16024 #include <stdlib.h>
16025 #ifdef F77_DUMMY_MAIN
16026 # ifdef __cplusplus
16029 int F77_DUMMY_MAIN() { return 1; }
16035 FILE *f = fopen ("conftest.val", "w");
16038 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
16040 long i = longval ();
16041 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16043 fprintf (f, "%ld\n", i);
16047 unsigned long i = ulongval ();
16048 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
16050 fprintf (f, "%lu\n", i);
16052 exit (ferror (f) || fclose (f) != 0);
16058 rm -f conftest$ac_exeext
16059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16060 (eval $ac_link) 2>&5
16062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16065 (eval $ac_try) 2>&5
16067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068 (exit $ac_status); }; }; then
16069 pgac_cv_alignof_double=`cat conftest.val`
16071 echo "$as_me: program exited with status $ac_status" >&5
16072 echo "$as_me: failed program was:" >&5
16073 cat conftest.$ac_ext >&5
16074 ( exit $ac_status )
16075 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
16076 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
16077 { (exit 1); exit 1; }; }
16079 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16084 pgac_cv_alignof_double=0
16087 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
16088 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
16089 cat >>confdefs.h <<_ACEOF
16090 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
16095 # Compute maximum alignment of any basic type.
16096 # We assume long's alignment is at least as strong as char, short, or int;
16097 # but we must check long long (if it exists) and double.
16099 MAX_ALIGNOF=$pgac_cv_alignof_long
16100 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
16101 MAX_ALIGNOF=$pgac_cv_alignof_double
16103 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
16104 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
16107 cat >>confdefs.h <<_ACEOF
16108 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
16113 # Some platforms predefine the types int8, int16, etc. Only check
16114 # a (hopefully) representative subset.
16115 echo "$as_me:$LINENO: checking for int8" >&5
16116 echo $ECHO_N "checking for int8... $ECHO_C" >&6
16117 if test "${ac_cv_type_int8+set}" = set; then
16118 echo $ECHO_N "(cached) $ECHO_C" >&6
16120 cat >conftest.$ac_ext <<_ACEOF
16121 #line $LINENO "configure"
16122 #include "confdefs.h"
16124 #ifdef HAVE_SUPPORTDEFS_H
16125 #include <SupportDefs.h>
16128 #ifdef F77_DUMMY_MAIN
16129 # ifdef __cplusplus
16132 int F77_DUMMY_MAIN() { return 1; }
16145 rm -f conftest.$ac_objext
16146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16147 (eval $ac_compile) 2>&5
16149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150 (exit $ac_status); } &&
16151 { ac_try='test -s conftest.$ac_objext'
16152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16153 (eval $ac_try) 2>&5
16155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156 (exit $ac_status); }; }; then
16157 ac_cv_type_int8=yes
16159 echo "$as_me: failed program was:" >&5
16160 cat conftest.$ac_ext >&5
16163 rm -f conftest.$ac_objext conftest.$ac_ext
16165 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
16166 echo "${ECHO_T}$ac_cv_type_int8" >&6
16167 if test $ac_cv_type_int8 = yes; then
16169 cat >>confdefs.h <<_ACEOF
16170 #define HAVE_INT8 1
16175 echo "$as_me:$LINENO: checking for uint8" >&5
16176 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
16177 if test "${ac_cv_type_uint8+set}" = set; then
16178 echo $ECHO_N "(cached) $ECHO_C" >&6
16180 cat >conftest.$ac_ext <<_ACEOF
16181 #line $LINENO "configure"
16182 #include "confdefs.h"
16184 #ifdef HAVE_SUPPORTDEFS_H
16185 #include <SupportDefs.h>
16188 #ifdef F77_DUMMY_MAIN
16189 # ifdef __cplusplus
16192 int F77_DUMMY_MAIN() { return 1; }
16199 if (sizeof (uint8))
16205 rm -f conftest.$ac_objext
16206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16207 (eval $ac_compile) 2>&5
16209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); } &&
16211 { ac_try='test -s conftest.$ac_objext'
16212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16213 (eval $ac_try) 2>&5
16215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16216 (exit $ac_status); }; }; then
16217 ac_cv_type_uint8=yes
16219 echo "$as_me: failed program was:" >&5
16220 cat conftest.$ac_ext >&5
16221 ac_cv_type_uint8=no
16223 rm -f conftest.$ac_objext conftest.$ac_ext
16225 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
16226 echo "${ECHO_T}$ac_cv_type_uint8" >&6
16227 if test $ac_cv_type_uint8 = yes; then
16229 cat >>confdefs.h <<_ACEOF
16230 #define HAVE_UINT8 1
16235 echo "$as_me:$LINENO: checking for int64" >&5
16236 echo $ECHO_N "checking for int64... $ECHO_C" >&6
16237 if test "${ac_cv_type_int64+set}" = set; then
16238 echo $ECHO_N "(cached) $ECHO_C" >&6
16240 cat >conftest.$ac_ext <<_ACEOF
16241 #line $LINENO "configure"
16242 #include "confdefs.h"
16244 #ifdef HAVE_SUPPORTDEFS_H
16245 #include <SupportDefs.h>
16248 #ifdef F77_DUMMY_MAIN
16249 # ifdef __cplusplus
16252 int F77_DUMMY_MAIN() { return 1; }
16259 if (sizeof (int64))
16265 rm -f conftest.$ac_objext
16266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16267 (eval $ac_compile) 2>&5
16269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270 (exit $ac_status); } &&
16271 { ac_try='test -s conftest.$ac_objext'
16272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16273 (eval $ac_try) 2>&5
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); }; }; then
16277 ac_cv_type_int64=yes
16279 echo "$as_me: failed program was:" >&5
16280 cat conftest.$ac_ext >&5
16281 ac_cv_type_int64=no
16283 rm -f conftest.$ac_objext conftest.$ac_ext
16285 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
16286 echo "${ECHO_T}$ac_cv_type_int64" >&6
16287 if test $ac_cv_type_int64 = yes; then
16289 cat >>confdefs.h <<_ACEOF
16290 #define HAVE_INT64 1
16295 echo "$as_me:$LINENO: checking for uint64" >&5
16296 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
16297 if test "${ac_cv_type_uint64+set}" = set; then
16298 echo $ECHO_N "(cached) $ECHO_C" >&6
16300 cat >conftest.$ac_ext <<_ACEOF
16301 #line $LINENO "configure"
16302 #include "confdefs.h"
16304 #ifdef HAVE_SUPPORTDEFS_H
16305 #include <SupportDefs.h>
16308 #ifdef F77_DUMMY_MAIN
16309 # ifdef __cplusplus
16312 int F77_DUMMY_MAIN() { return 1; }
16319 if (sizeof (uint64))
16325 rm -f conftest.$ac_objext
16326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16327 (eval $ac_compile) 2>&5
16329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16330 (exit $ac_status); } &&
16331 { ac_try='test -s conftest.$ac_objext'
16332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16333 (eval $ac_try) 2>&5
16335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336 (exit $ac_status); }; }; then
16337 ac_cv_type_uint64=yes
16339 echo "$as_me: failed program was:" >&5
16340 cat conftest.$ac_ext >&5
16341 ac_cv_type_uint64=no
16343 rm -f conftest.$ac_objext conftest.$ac_ext
16345 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
16346 echo "${ECHO_T}$ac_cv_type_uint64" >&6
16347 if test $ac_cv_type_uint64 = yes; then
16349 cat >>confdefs.h <<_ACEOF
16350 #define HAVE_UINT64 1
16357 # We also check for sig_atomic_t, which *should* be defined per ANSI
16358 # C, but is missing on some old platforms.
16359 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
16360 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
16361 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
16362 echo $ECHO_N "(cached) $ECHO_C" >&6
16364 cat >conftest.$ac_ext <<_ACEOF
16365 #line $LINENO "configure"
16366 #include "confdefs.h"
16367 #include <signal.h>
16369 #ifdef F77_DUMMY_MAIN
16370 # ifdef __cplusplus
16373 int F77_DUMMY_MAIN() { return 1; }
16378 if ((sig_atomic_t *) 0)
16380 if (sizeof (sig_atomic_t))
16386 rm -f conftest.$ac_objext
16387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16388 (eval $ac_compile) 2>&5
16390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391 (exit $ac_status); } &&
16392 { ac_try='test -s conftest.$ac_objext'
16393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16394 (eval $ac_try) 2>&5
16396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397 (exit $ac_status); }; }; then
16398 ac_cv_type_sig_atomic_t=yes
16400 echo "$as_me: failed program was:" >&5
16401 cat conftest.$ac_ext >&5
16402 ac_cv_type_sig_atomic_t=no
16404 rm -f conftest.$ac_objext conftest.$ac_ext
16406 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
16407 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
16408 if test $ac_cv_type_sig_atomic_t = yes; then
16410 cat >>confdefs.h <<_ACEOF
16411 #define HAVE_SIG_ATOMIC_T 1
16419 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
16420 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
16421 if test "${pgac_cv_func_posix_signals+set}" = set; then
16422 echo $ECHO_N "(cached) $ECHO_C" >&6
16424 cat >conftest.$ac_ext <<_ACEOF
16425 #line $LINENO "configure"
16426 #include "confdefs.h"
16427 #include <signal.h>
16429 #ifdef F77_DUMMY_MAIN
16430 # ifdef __cplusplus
16433 int F77_DUMMY_MAIN() { return 1; }
16438 struct sigaction act, oact;
16439 sigemptyset(&act.sa_mask);
16440 act.sa_flags = SA_RESTART;
16441 sigaction(0, &act, &oact);
16446 rm -f conftest.$ac_objext conftest$ac_exeext
16447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16448 (eval $ac_link) 2>&5
16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451 (exit $ac_status); } &&
16452 { ac_try='test -s conftest$ac_exeext'
16453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16454 (eval $ac_try) 2>&5
16456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457 (exit $ac_status); }; }; then
16458 pgac_cv_func_posix_signals=yes
16460 echo "$as_me: failed program was:" >&5
16461 cat conftest.$ac_ext >&5
16462 pgac_cv_func_posix_signals=no
16464 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16466 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
16467 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
16468 if test x"$pgac_cv_func_posix_signals" = xyes ; then
16470 cat >>confdefs.h <<\_ACEOF
16471 #define HAVE_POSIX_SIGNALS
16475 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
16477 if test $ac_cv_func_fseeko = yes; then
16478 # Check whether --enable-largefile or --disable-largefile was given.
16479 if test "${enable_largefile+set}" = set; then
16480 enableval="$enable_largefile"
16483 if test "$enable_largefile" != no; then
16485 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
16486 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
16487 if test "${ac_cv_sys_largefile_CC+set}" = set; then
16488 echo $ECHO_N "(cached) $ECHO_C" >&6
16490 ac_cv_sys_largefile_CC=no
16491 if test "$GCC" != yes; then
16494 # IRIX 6.2 and later do not support large files by default,
16495 # so use the C compiler's -n32 option if that helps.
16496 cat >conftest.$ac_ext <<_ACEOF
16497 #line $LINENO "configure"
16498 #include "confdefs.h"
16499 #include <sys/types.h>
16500 /* Check that off_t can represent 2**63 - 1 correctly.
16501 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16502 since some C++ compilers masquerading as C compilers
16503 incorrectly reject 9223372036854775807. */
16504 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16505 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16506 && LARGE_OFF_T % 2147483647 == 1)
16508 #ifdef F77_DUMMY_MAIN
16509 # ifdef __cplusplus
16512 int F77_DUMMY_MAIN() { return 1; }
16522 rm -f conftest.$ac_objext
16523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16524 (eval $ac_compile) 2>&5
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); } &&
16528 { ac_try='test -s conftest.$ac_objext'
16529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16530 (eval $ac_try) 2>&5
16532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); }; }; then
16536 echo "$as_me: failed program was:" >&5
16537 cat conftest.$ac_ext >&5
16539 rm -f conftest.$ac_objext
16541 rm -f conftest.$ac_objext
16542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16543 (eval $ac_compile) 2>&5
16545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16546 (exit $ac_status); } &&
16547 { ac_try='test -s conftest.$ac_objext'
16548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16549 (eval $ac_try) 2>&5
16551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552 (exit $ac_status); }; }; then
16553 ac_cv_sys_largefile_CC=' -n32'; break
16555 echo "$as_me: failed program was:" >&5
16556 cat conftest.$ac_ext >&5
16558 rm -f conftest.$ac_objext
16562 rm -f conftest.$ac_ext
16565 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
16566 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
16567 if test "$ac_cv_sys_largefile_CC" != no; then
16568 CC=$CC$ac_cv_sys_largefile_CC
16571 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16572 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
16573 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16574 echo $ECHO_N "(cached) $ECHO_C" >&6
16577 ac_cv_sys_file_offset_bits=no
16578 cat >conftest.$ac_ext <<_ACEOF
16579 #line $LINENO "configure"
16580 #include "confdefs.h"
16581 #include <sys/types.h>
16582 /* Check that off_t can represent 2**63 - 1 correctly.
16583 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16584 since some C++ compilers masquerading as C compilers
16585 incorrectly reject 9223372036854775807. */
16586 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16587 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16588 && LARGE_OFF_T % 2147483647 == 1)
16590 #ifdef F77_DUMMY_MAIN
16591 # ifdef __cplusplus
16594 int F77_DUMMY_MAIN() { return 1; }
16604 rm -f conftest.$ac_objext
16605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16606 (eval $ac_compile) 2>&5
16608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 (exit $ac_status); } &&
16610 { ac_try='test -s conftest.$ac_objext'
16611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16612 (eval $ac_try) 2>&5
16614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615 (exit $ac_status); }; }; then
16618 echo "$as_me: failed program was:" >&5
16619 cat conftest.$ac_ext >&5
16621 rm -f conftest.$ac_objext conftest.$ac_ext
16622 cat >conftest.$ac_ext <<_ACEOF
16623 #line $LINENO "configure"
16624 #include "confdefs.h"
16625 #define _FILE_OFFSET_BITS 64
16626 #include <sys/types.h>
16627 /* Check that off_t can represent 2**63 - 1 correctly.
16628 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16629 since some C++ compilers masquerading as C compilers
16630 incorrectly reject 9223372036854775807. */
16631 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16632 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16633 && LARGE_OFF_T % 2147483647 == 1)
16635 #ifdef F77_DUMMY_MAIN
16636 # ifdef __cplusplus
16639 int F77_DUMMY_MAIN() { return 1; }
16649 rm -f conftest.$ac_objext
16650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16651 (eval $ac_compile) 2>&5
16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); } &&
16655 { ac_try='test -s conftest.$ac_objext'
16656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16657 (eval $ac_try) 2>&5
16659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660 (exit $ac_status); }; }; then
16661 ac_cv_sys_file_offset_bits=64; break
16663 echo "$as_me: failed program was:" >&5
16664 cat conftest.$ac_ext >&5
16666 rm -f conftest.$ac_objext conftest.$ac_ext
16670 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
16671 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
16672 if test "$ac_cv_sys_file_offset_bits" != no; then
16674 cat >>confdefs.h <<_ACEOF
16675 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
16680 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
16681 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
16682 if test "${ac_cv_sys_large_files+set}" = set; then
16683 echo $ECHO_N "(cached) $ECHO_C" >&6
16686 ac_cv_sys_large_files=no
16687 cat >conftest.$ac_ext <<_ACEOF
16688 #line $LINENO "configure"
16689 #include "confdefs.h"
16690 #include <sys/types.h>
16691 /* Check that off_t can represent 2**63 - 1 correctly.
16692 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16693 since some C++ compilers masquerading as C compilers
16694 incorrectly reject 9223372036854775807. */
16695 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16696 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16697 && LARGE_OFF_T % 2147483647 == 1)
16699 #ifdef F77_DUMMY_MAIN
16700 # ifdef __cplusplus
16703 int F77_DUMMY_MAIN() { return 1; }
16713 rm -f conftest.$ac_objext
16714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16715 (eval $ac_compile) 2>&5
16717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 (exit $ac_status); } &&
16719 { ac_try='test -s conftest.$ac_objext'
16720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16721 (eval $ac_try) 2>&5
16723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724 (exit $ac_status); }; }; then
16727 echo "$as_me: failed program was:" >&5
16728 cat conftest.$ac_ext >&5
16730 rm -f conftest.$ac_objext conftest.$ac_ext
16731 cat >conftest.$ac_ext <<_ACEOF
16732 #line $LINENO "configure"
16733 #include "confdefs.h"
16734 #define _LARGE_FILES 1
16735 #include <sys/types.h>
16736 /* Check that off_t can represent 2**63 - 1 correctly.
16737 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16738 since some C++ compilers masquerading as C compilers
16739 incorrectly reject 9223372036854775807. */
16740 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16741 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16742 && LARGE_OFF_T % 2147483647 == 1)
16744 #ifdef F77_DUMMY_MAIN
16745 # ifdef __cplusplus
16748 int F77_DUMMY_MAIN() { return 1; }
16758 rm -f conftest.$ac_objext
16759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16760 (eval $ac_compile) 2>&5
16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); } &&
16764 { ac_try='test -s conftest.$ac_objext'
16765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16766 (eval $ac_try) 2>&5
16768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769 (exit $ac_status); }; }; then
16770 ac_cv_sys_large_files=1; break
16772 echo "$as_me: failed program was:" >&5
16773 cat conftest.$ac_ext >&5
16775 rm -f conftest.$ac_objext conftest.$ac_ext
16779 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
16780 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
16781 if test "$ac_cv_sys_large_files" != no; then
16783 cat >>confdefs.h <<_ACEOF
16784 #define _LARGE_FILES $ac_cv_sys_large_files
16794 # Select semaphore implementation type.
16795 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
16797 cat >>confdefs.h <<\_ACEOF
16798 #define USE_NAMED_POSIX_SEMAPHORES 1
16801 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
16803 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
16805 cat >>confdefs.h <<\_ACEOF
16806 #define USE_UNNAMED_POSIX_SEMAPHORES 1
16809 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
16812 cat >>confdefs.h <<\_ACEOF
16813 #define USE_SYSV_SEMAPHORES 1
16816 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
16821 # Select shared-memory implementation type.
16823 cat >>confdefs.h <<\_ACEOF
16824 #define USE_SYSV_SHARED_MEMORY 1
16827 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
16830 if test "$enable_nls" = yes ; then
16832 echo "$as_me:$LINENO: checking for library containing gettext" >&5
16833 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
16834 if test "${ac_cv_search_gettext+set}" = set; then
16835 echo $ECHO_N "(cached) $ECHO_C" >&6
16837 ac_func_search_save_LIBS=$LIBS
16838 ac_cv_search_gettext=no
16839 cat >conftest.$ac_ext <<_ACEOF
16840 #line $LINENO "configure"
16841 #include "confdefs.h"
16843 /* Override any gcc2 internal prototype to avoid an error. */
16847 /* We use char because int might match the return type of a gcc2
16848 builtin and then its argument prototype would still apply. */
16850 #ifdef F77_DUMMY_MAIN
16851 # ifdef __cplusplus
16854 int F77_DUMMY_MAIN() { return 1; }
16864 rm -f conftest.$ac_objext conftest$ac_exeext
16865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16866 (eval $ac_link) 2>&5
16868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869 (exit $ac_status); } &&
16870 { ac_try='test -s conftest$ac_exeext'
16871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16872 (eval $ac_try) 2>&5
16874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); }; }; then
16876 ac_cv_search_gettext="none required"
16878 echo "$as_me: failed program was:" >&5
16879 cat conftest.$ac_ext >&5
16881 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16882 if test "$ac_cv_search_gettext" = no; then
16883 for ac_lib in intl; do
16884 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16885 cat >conftest.$ac_ext <<_ACEOF
16886 #line $LINENO "configure"
16887 #include "confdefs.h"
16889 /* Override any gcc2 internal prototype to avoid an error. */
16893 /* We use char because int might match the return type of a gcc2
16894 builtin and then its argument prototype would still apply. */
16896 #ifdef F77_DUMMY_MAIN
16897 # ifdef __cplusplus
16900 int F77_DUMMY_MAIN() { return 1; }
16910 rm -f conftest.$ac_objext conftest$ac_exeext
16911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16912 (eval $ac_link) 2>&5
16914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915 (exit $ac_status); } &&
16916 { ac_try='test -s conftest$ac_exeext'
16917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16918 (eval $ac_try) 2>&5
16920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921 (exit $ac_status); }; }; then
16922 ac_cv_search_gettext="-l$ac_lib"
16925 echo "$as_me: failed program was:" >&5
16926 cat conftest.$ac_ext >&5
16928 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16931 LIBS=$ac_func_search_save_LIBS
16933 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
16934 echo "${ECHO_T}$ac_cv_search_gettext" >&6
16935 if test "$ac_cv_search_gettext" != no; then
16936 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
16939 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
16940 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
16941 { (exit 1); exit 1; }; }
16944 if test "${ac_cv_header_libintl_h+set}" = set; then
16945 echo "$as_me:$LINENO: checking for libintl.h" >&5
16946 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
16947 if test "${ac_cv_header_libintl_h+set}" = set; then
16948 echo $ECHO_N "(cached) $ECHO_C" >&6
16950 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
16951 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
16953 # Is the header compilable?
16954 echo "$as_me:$LINENO: checking libintl.h usability" >&5
16955 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
16956 cat >conftest.$ac_ext <<_ACEOF
16957 #line $LINENO "configure"
16958 #include "confdefs.h"
16959 $ac_includes_default
16960 #include <libintl.h>
16962 rm -f conftest.$ac_objext
16963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16964 (eval $ac_compile) 2>&5
16966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967 (exit $ac_status); } &&
16968 { ac_try='test -s conftest.$ac_objext'
16969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16970 (eval $ac_try) 2>&5
16972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16973 (exit $ac_status); }; }; then
16974 ac_header_compiler=yes
16976 echo "$as_me: failed program was:" >&5
16977 cat conftest.$ac_ext >&5
16978 ac_header_compiler=no
16980 rm -f conftest.$ac_objext conftest.$ac_ext
16981 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16982 echo "${ECHO_T}$ac_header_compiler" >&6
16984 # Is the header present?
16985 echo "$as_me:$LINENO: checking libintl.h presence" >&5
16986 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
16987 cat >conftest.$ac_ext <<_ACEOF
16988 #line $LINENO "configure"
16989 #include "confdefs.h"
16990 #include <libintl.h>
16992 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16993 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16995 egrep -v '^ *\+' conftest.er1 >conftest.err
16997 cat conftest.err >&5
16998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 (exit $ac_status); } >/dev/null; then
17000 if test -s conftest.err; then
17001 ac_cpp_err=$ac_c_preproc_warn_flag
17008 if test -z "$ac_cpp_err"; then
17009 ac_header_preproc=yes
17011 echo "$as_me: failed program was:" >&5
17012 cat conftest.$ac_ext >&5
17013 ac_header_preproc=no
17015 rm -f conftest.err conftest.$ac_ext
17016 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17017 echo "${ECHO_T}$ac_header_preproc" >&6
17019 # So? What about this header?
17020 case $ac_header_compiler:$ac_header_preproc in
17022 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
17023 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17024 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
17025 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
17027 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
17028 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
17029 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
17030 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
17031 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
17032 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
17034 echo "$as_me:$LINENO: checking for libintl.h" >&5
17035 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
17036 if test "${ac_cv_header_libintl_h+set}" = set; then
17037 echo $ECHO_N "(cached) $ECHO_C" >&6
17039 ac_cv_header_libintl_h=$ac_header_preproc
17041 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
17042 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
17045 if test $ac_cv_header_libintl_h = yes; then
17048 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
17049 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
17050 { (exit 1); exit 1; }; }
17054 for ac_prog in msgfmt
17056 # Extract the first word of "$ac_prog", so it can be a program name with args.
17057 set dummy $ac_prog; ac_word=$2
17058 echo "$as_me:$LINENO: checking for $ac_word" >&5
17059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17060 if test "${ac_cv_prog_MSGFMT+set}" = set; then
17061 echo $ECHO_N "(cached) $ECHO_C" >&6
17063 if test -n "$MSGFMT"; then
17064 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
17066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17067 for as_dir in $PATH
17070 test -z "$as_dir" && as_dir=.
17071 for ac_exec_ext in '' $ac_executable_extensions; do
17072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17073 ac_cv_prog_MSGFMT="$ac_prog"
17074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17082 MSGFMT=$ac_cv_prog_MSGFMT
17083 if test -n "$MSGFMT"; then
17084 echo "$as_me:$LINENO: result: $MSGFMT" >&5
17085 echo "${ECHO_T}$MSGFMT" >&6
17087 echo "$as_me:$LINENO: result: no" >&5
17088 echo "${ECHO_T}no" >&6
17091 test -n "$MSGFMT" && break
17094 if test -z "$MSGFMT"; then
17095 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
17096 echo "$as_me: error: msgfmt is required for NLS" >&2;}
17097 { (exit 1); exit 1; }; }
17099 for ac_prog in msgmerge
17101 # Extract the first word of "$ac_prog", so it can be a program name with args.
17102 set dummy $ac_prog; ac_word=$2
17103 echo "$as_me:$LINENO: checking for $ac_word" >&5
17104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17105 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
17106 echo $ECHO_N "(cached) $ECHO_C" >&6
17108 if test -n "$MSGMERGE"; then
17109 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
17111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17112 for as_dir in $PATH
17115 test -z "$as_dir" && as_dir=.
17116 for ac_exec_ext in '' $ac_executable_extensions; do
17117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17118 ac_cv_prog_MSGMERGE="$ac_prog"
17119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17127 MSGMERGE=$ac_cv_prog_MSGMERGE
17128 if test -n "$MSGMERGE"; then
17129 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
17130 echo "${ECHO_T}$MSGMERGE" >&6
17132 echo "$as_me:$LINENO: result: no" >&5
17133 echo "${ECHO_T}no" >&6
17136 test -n "$MSGMERGE" && break
17139 for ac_prog in xgettext
17141 # Extract the first word of "$ac_prog", so it can be a program name with args.
17142 set dummy $ac_prog; ac_word=$2
17143 echo "$as_me:$LINENO: checking for $ac_word" >&5
17144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17145 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
17146 echo $ECHO_N "(cached) $ECHO_C" >&6
17148 if test -n "$XGETTEXT"; then
17149 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
17151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17152 for as_dir in $PATH
17155 test -z "$as_dir" && as_dir=.
17156 for ac_exec_ext in '' $ac_executable_extensions; do
17157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17158 ac_cv_prog_XGETTEXT="$ac_prog"
17159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17167 XGETTEXT=$ac_cv_prog_XGETTEXT
17168 if test -n "$XGETTEXT"; then
17169 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
17170 echo "${ECHO_T}$XGETTEXT" >&6
17172 echo "$as_me:$LINENO: result: no" >&5
17173 echo "${ECHO_T}no" >&6
17176 test -n "$XGETTEXT" && break
17180 # Note: share/locale is always the default, independent of $datadir
17181 localedir='${prefix}/share/locale'
17182 if test x"$prefix" = x"NONE"; then
17183 exp_localedir="$ac_default_prefix/share/locale"
17185 exp_localedir="$prefix/share/locale"
17190 cat >>confdefs.h <<_ACEOF
17191 #define LOCALEDIR "$exp_localedir"
17197 # Check for Tcl configuration script tclConfig.sh
17198 if test "$with_tcl" = yes; then
17199 for ac_prog in tclsh tcl
17201 # Extract the first word of "$ac_prog", so it can be a program name with args.
17202 set dummy $ac_prog; ac_word=$2
17203 echo "$as_me:$LINENO: checking for $ac_word" >&5
17204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17205 if test "${ac_cv_path_TCLSH+set}" = set; then
17206 echo $ECHO_N "(cached) $ECHO_C" >&6
17210 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
17213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17214 for as_dir in $PATH
17217 test -z "$as_dir" && as_dir=.
17218 for ac_exec_ext in '' $ac_executable_extensions; do
17219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17220 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
17221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17230 TCLSH=$ac_cv_path_TCLSH
17232 if test -n "$TCLSH"; then
17233 echo "$as_me:$LINENO: result: $TCLSH" >&5
17234 echo "${ECHO_T}$TCLSH" >&6
17236 echo "$as_me:$LINENO: result: no" >&5
17237 echo "${ECHO_T}no" >&6
17240 test -n "$TCLSH" && break
17243 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
17244 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
17245 # Let user override test
17246 if test -z "$TCL_CONFIG_SH"; then
17247 pgac_test_dirs="$with_tclconfig"
17249 set X $pgac_test_dirs; shift
17250 if test $# -eq 0; then
17251 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
17252 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
17253 { (exit 1); exit 1; }; }
17254 set X `echo 'puts $auto_path' | $TCLSH`; shift
17258 if test -r "$pgac_dir/tclConfig.sh"; then
17259 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
17265 if test -z "$TCL_CONFIG_SH"; then
17266 echo "$as_me:$LINENO: result: no" >&5
17267 echo "${ECHO_T}no" >&6
17268 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
17269 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
17270 { (exit 1); exit 1; }; }
17272 echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
17273 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
17279 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
17280 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
17281 eval TCL_LIBS=\"$TCL_LIBS\"
17282 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
17283 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
17287 # Check for Tk configuration script tkConfig.sh
17288 if test "$with_tk" = yes; then
17289 echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
17290 echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
17291 # Let user override test
17292 if test -z "$TK_CONFIG_SH"; then
17293 pgac_test_dirs="$with_tkconfig $with_tclconfig"
17295 set X $pgac_test_dirs; shift
17296 if test $# -eq 0; then
17297 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
17298 echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
17299 { (exit 1); exit 1; }; }
17300 set X `echo 'puts $auto_path' | $TCLSH`; shift
17304 if test -r "$pgac_dir/tkConfig.sh"; then
17305 TK_CONFIG_SH=$pgac_dir/tkConfig.sh
17311 if test -z "$TK_CONFIG_SH"; then
17312 echo "$as_me:$LINENO: result: no" >&5
17313 echo "${ECHO_T}no" >&6
17314 { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
17315 echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
17316 { (exit 1); exit 1; }; }
17318 echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
17319 echo "${ECHO_T}$TK_CONFIG_SH" >&6
17325 eval TK_LIBS=\"$TK_LIBS\"
17326 eval TK_LIB_SPEC=\"$TK_LIB_SPEC\"
17327 eval TK_XINCLUDES=\"$TK_XINCLUDES\"
17333 # Check for DocBook and tools
17335 for ac_prog in onsgmls nsgmls
17337 # Extract the first word of "$ac_prog", so it can be a program name with args.
17338 set dummy $ac_prog; ac_word=$2
17339 echo "$as_me:$LINENO: checking for $ac_word" >&5
17340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17341 if test "${ac_cv_prog_NSGMLS+set}" = set; then
17342 echo $ECHO_N "(cached) $ECHO_C" >&6
17344 if test -n "$NSGMLS"; then
17345 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
17347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17348 for as_dir in $PATH
17351 test -z "$as_dir" && as_dir=.
17352 for ac_exec_ext in '' $ac_executable_extensions; do
17353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17354 ac_cv_prog_NSGMLS="$ac_prog"
17355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17363 NSGMLS=$ac_cv_prog_NSGMLS
17364 if test -n "$NSGMLS"; then
17365 echo "$as_me:$LINENO: result: $NSGMLS" >&5
17366 echo "${ECHO_T}$NSGMLS" >&6
17368 echo "$as_me:$LINENO: result: no" >&5
17369 echo "${ECHO_T}no" >&6
17372 test -n "$NSGMLS" && break
17375 for ac_prog in openjade jade
17377 # Extract the first word of "$ac_prog", so it can be a program name with args.
17378 set dummy $ac_prog; ac_word=$2
17379 echo "$as_me:$LINENO: checking for $ac_word" >&5
17380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17381 if test "${ac_cv_prog_JADE+set}" = set; then
17382 echo $ECHO_N "(cached) $ECHO_C" >&6
17384 if test -n "$JADE"; then
17385 ac_cv_prog_JADE="$JADE" # Let the user override the test.
17387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17388 for as_dir in $PATH
17391 test -z "$as_dir" && as_dir=.
17392 for ac_exec_ext in '' $ac_executable_extensions; do
17393 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17394 ac_cv_prog_JADE="$ac_prog"
17395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17403 JADE=$ac_cv_prog_JADE
17404 if test -n "$JADE"; then
17405 echo "$as_me:$LINENO: result: $JADE" >&5
17406 echo "${ECHO_T}$JADE" >&6
17408 echo "$as_me:$LINENO: result: no" >&5
17409 echo "${ECHO_T}no" >&6
17412 test -n "$JADE" && break
17416 echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
17417 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6
17418 if test "${pgac_cv_check_docbook+set}" = set; then
17419 echo $ECHO_N "(cached) $ECHO_C" >&6
17421 cat >conftest.sgml <<EOF
17422 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
17424 <title>test</title>
17426 <title>random</title>
17428 <title>testsect</title>
17435 pgac_cv_check_docbook=no
17437 if test -n "$NSGMLS"; then
17438 $NSGMLS -s conftest.sgml 1>&5 2>&1
17439 if test $? -eq 0; then
17440 pgac_cv_check_docbook=yes
17443 rm -f conftest.sgml
17445 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
17446 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
17448 have_docbook=$pgac_cv_check_docbook
17451 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
17452 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
17453 if test "${pgac_cv_path_stylesheets+set}" = set; then
17454 echo $ECHO_N "(cached) $ECHO_C" >&6
17456 if test -n "$DOCBOOKSTYLE"; then
17457 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
17459 for pgac_prefix in /usr /usr/local /opt; do
17460 for pgac_infix in share lib; do
17461 for pgac_postfix in \
17462 sgml/stylesheets/nwalsh-modular \
17463 sgml/stylesheets/docbook \
17464 sgml/docbook-dsssl \
17465 sgml/docbook/dsssl/modular \
17466 sgml/docbook/stylesheet/dsssl/modular \
17467 sgml/docbook/dsssl-stylesheets
17469 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
17470 if test -r "$pgac_candidate/html/docbook.dsl" \
17471 && test -r "$pgac_candidate/print/docbook.dsl"
17473 pgac_cv_path_stylesheets=$pgac_candidate
17482 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
17484 if test -n "$DOCBOOKSTYLE"; then
17485 echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
17486 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
17488 echo "$as_me:$LINENO: result: no" >&5
17489 echo "${ECHO_T}no" >&6
17491 if test -n "$DOCBOOKSTYLE"; then
17492 for ac_prog in collateindex.pl
17494 # Extract the first word of "$ac_prog", so it can be a program name with args.
17495 set dummy $ac_prog; ac_word=$2
17496 echo "$as_me:$LINENO: checking for $ac_word" >&5
17497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17498 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
17499 echo $ECHO_N "(cached) $ECHO_C" >&6
17501 case $COLLATEINDEX in
17503 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
17506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17507 for as_dir in $DOCBOOKSTYLE/bin $PATH
17510 test -z "$as_dir" && as_dir=.
17511 for ac_exec_ext in '' $ac_executable_extensions; do
17512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17513 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
17514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17523 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
17525 if test -n "$COLLATEINDEX"; then
17526 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
17527 echo "${ECHO_T}$COLLATEINDEX" >&6
17529 echo "$as_me:$LINENO: result: no" >&5
17530 echo "${ECHO_T}no" >&6
17533 test -n "$COLLATEINDEX" && break
17537 for ac_prog in collateindex.pl
17539 # Extract the first word of "$ac_prog", so it can be a program name with args.
17540 set dummy $ac_prog; ac_word=$2
17541 echo "$as_me:$LINENO: checking for $ac_word" >&5
17542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17543 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
17544 echo $ECHO_N "(cached) $ECHO_C" >&6
17546 case $COLLATEINDEX in
17548 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
17551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17552 for as_dir in $PATH
17555 test -z "$as_dir" && as_dir=.
17556 for ac_exec_ext in '' $ac_executable_extensions; do
17557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17558 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
17559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17568 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
17570 if test -n "$COLLATEINDEX"; then
17571 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
17572 echo "${ECHO_T}$COLLATEINDEX" >&6
17574 echo "$as_me:$LINENO: result: no" >&5
17575 echo "${ECHO_T}no" >&6
17578 test -n "$COLLATEINDEX" && break
17582 for ac_prog in sgmlspl
17584 # Extract the first word of "$ac_prog", so it can be a program name with args.
17585 set dummy $ac_prog; ac_word=$2
17586 echo "$as_me:$LINENO: checking for $ac_word" >&5
17587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17588 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
17589 echo $ECHO_N "(cached) $ECHO_C" >&6
17591 if test -n "$SGMLSPL"; then
17592 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
17594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17595 for as_dir in $PATH
17598 test -z "$as_dir" && as_dir=.
17599 for ac_exec_ext in '' $ac_executable_extensions; do
17600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17601 ac_cv_prog_SGMLSPL="$ac_prog"
17602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17610 SGMLSPL=$ac_cv_prog_SGMLSPL
17611 if test -n "$SGMLSPL"; then
17612 echo "$as_me:$LINENO: result: $SGMLSPL" >&5
17613 echo "${ECHO_T}$SGMLSPL" >&6
17615 echo "$as_me:$LINENO: result: no" >&5
17616 echo "${ECHO_T}no" >&6
17619 test -n "$SGMLSPL" && break
17624 # prepare build tree if outside source tree
17625 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
17626 # Note 2: /bin/pwd might be better than shell's built-in at getting
17627 # a symlink-free name.
17628 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
17632 if test "$no_create" != yes; then
17633 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
17634 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
17635 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
17636 || { { echo "$as_me:$LINENO: error: failed" >&5
17637 echo "$as_me: error: failed" >&2;}
17638 { (exit 1); exit 1; }; }
17639 echo "$as_me:$LINENO: result: done" >&5
17640 echo "${ECHO_T}done" >&6
17646 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
17649 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}"
17652 ac_config_headers="$ac_config_headers src/include/pg_config.h"
17655 cat >confcache <<\_ACEOF
17656 # This file is a shell script that caches the results of configure
17657 # tests run on this system so they can be shared between configure
17658 # scripts and configure runs, see configure's option --config-cache.
17659 # It is not useful on other systems. If it contains results you don't
17660 # want to keep, you may remove or edit it.
17662 # config.status only pays attention to the cache file if you give it
17663 # the --recheck option to rerun configure.
17665 # `ac_cv_env_foo' variables (set or unset) will be overriden when
17666 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17667 # following values.
17671 # The following way of writing the cache mishandles newlines in values,
17672 # but we know of no workaround that is simple, portable, and efficient.
17673 # So, don't put newlines in cache variables' values.
17674 # Ultrix sh set writes to stderr and can't be redirected directly,
17675 # and sets the high bit in the cache file unless we assign to the vars.
17678 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17680 # `set' does not quote correctly, so add quotes (double-quote
17681 # substitution turns \\\\ into \\, and sed turns \\ into \).
17684 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17687 # `set' quotes correctly as required by POSIX, so do not add quotes.
17689 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17696 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17698 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17700 if cmp -s $cache_file confcache; then :; else
17701 if test -w $cache_file; then
17702 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17703 cat confcache >$cache_file
17705 echo "not updating unwritable cache $cache_file"
17710 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17711 # Let make expand exec_prefix.
17712 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17714 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17715 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17716 # trailing colons and then remove the whole line if VPATH becomes empty
17717 # (actually we leave an empty line to preserve line numbers).
17718 if test "x$srcdir" = x.; then
17719 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17720 s/:*\$(srcdir):*/:/;
17721 s/:*\${srcdir}:*/:/;
17723 s/^\([^=]*=[ ]*\):*/\1/;
17729 DEFS=-DHAVE_CONFIG_H
17732 : ${CONFIG_STATUS=./config.status}
17733 ac_clean_files_save=$ac_clean_files
17734 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17735 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17736 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17737 cat >$CONFIG_STATUS <<_ACEOF
17739 # Generated by $as_me.
17740 # Run this file to recreate the current configuration.
17741 # Compiler output produced by configure, useful for debugging
17742 # configure, is in config.log if it exists.
17745 SHELL=\${CONFIG_SHELL-$SHELL}
17748 cat >>$CONFIG_STATUS <<\_ACEOF
17750 ## --------------------- ##
17751 ## M4sh Initialization. ##
17752 ## --------------------- ##
17754 # Be Bourne compatible
17755 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17758 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17763 # Support unset when possible.
17764 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17770 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
17771 { $as_unset LANG || test "${LANG+set}" != set; } ||
17772 { LANG=C; export LANG; }
17773 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
17774 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
17775 { LC_ALL=C; export LC_ALL; }
17776 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
17777 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
17778 { LC_TIME=C; export LC_TIME; }
17779 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
17780 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
17781 { LC_CTYPE=C; export LC_CTYPE; }
17782 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
17783 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
17784 { LANGUAGE=C; export LANGUAGE; }
17785 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
17786 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
17787 { LC_COLLATE=C; export LC_COLLATE; }
17788 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
17789 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
17790 { LC_NUMERIC=C; export LC_NUMERIC; }
17791 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
17792 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
17793 { LC_MESSAGES=C; export LC_MESSAGES; }
17796 # Name of the executable.
17797 as_me=`(basename "$0") 2>/dev/null ||
17798 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17799 X"$0" : 'X\(//\)$' \| \
17800 X"$0" : 'X\(/\)$' \| \
17801 . : '\(.\)' 2>/dev/null ||
17803 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17804 /^X\/\(\/\/\)$/{ s//\1/; q; }
17805 /^X\/\(\/\).*/{ s//\1/; q; }
17808 # PATH needs CR, and LINENO needs CR and PATH.
17809 # Avoid depending upon Character Ranges.
17810 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17811 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17812 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17813 as_cr_digits='0123456789'
17814 as_cr_alnum=$as_cr_Letters$as_cr_digits
17816 # The user is always right.
17817 if test "${PATH_SEPARATOR+set}" != set; then
17818 echo "#! /bin/sh" >conftest.sh
17819 echo "exit 0" >>conftest.sh
17820 chmod +x conftest.sh
17821 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
17830 as_lineno_1=$LINENO
17831 as_lineno_2=$LINENO
17832 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17833 test "x$as_lineno_1" != "x$as_lineno_2" &&
17834 test "x$as_lineno_3" = "x$as_lineno_2" || {
17835 # Find who we are. Look in the path if we contain no path at all
17838 *[\\/]* ) as_myself=$0 ;;
17839 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17840 for as_dir in $PATH
17843 test -z "$as_dir" && as_dir=.
17844 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17849 # We did not find ourselves, most probably we were run as `sh COMMAND'
17850 # in which case we are not to be found in the path.
17851 if test "x$as_myself" = x; then
17854 if test ! -f "$as_myself"; then
17855 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17856 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17857 { (exit 1); exit 1; }; }
17859 case $CONFIG_SHELL in
17861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17862 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17865 test -z "$as_dir" && as_dir=.
17866 for as_base in sh bash ksh sh5; do
17869 if ("$as_dir/$as_base" -c '
17870 as_lineno_1=$LINENO
17871 as_lineno_2=$LINENO
17872 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17873 test "x$as_lineno_1" != "x$as_lineno_2" &&
17874 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17875 CONFIG_SHELL=$as_dir/$as_base
17876 export CONFIG_SHELL
17877 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17885 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17886 # uniformly replaced by the line number. The first 'sed' inserts a
17887 # line-number line before each line; the second 'sed' does the real
17888 # work. The second script uses 'N' to pair each line-number line
17889 # with the numbered line, and appends trailing '-' during
17890 # substitution so that $LINENO is not a special case at line end.
17891 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17892 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17893 sed '=' <$as_myself |
17898 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17901 s,^['$as_cr_digits']*\n,,
17902 ' >$as_me.lineno &&
17903 chmod +x $as_me.lineno ||
17904 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17905 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17906 { (exit 1); exit 1; }; }
17908 # Don't try to exec as it changes $[0], causing all sort of problems
17909 # (the dirname of $[0] is not the place where we might find the
17910 # original and so on. Autoconf is especially sensible to this).
17912 # Exit status is that of the last command.
17917 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17918 *c*,-n*) ECHO_N= ECHO_C='
17920 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17921 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17924 if expr a : '\(a\)' >/dev/null 2>&1; then
17930 rm -f conf$$ conf$$.exe conf$$.file
17932 if ln -s conf$$.file conf$$ 2>/dev/null; then
17933 # We could just check for DJGPP; but this test a) works b) is more generic
17934 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17935 if test -f conf$$.exe; then
17936 # Don't use ln at all; we don't have any links
17941 elif ln conf$$.file conf$$ 2>/dev/null; then
17946 rm -f conf$$ conf$$.exe conf$$.file
17948 as_executable_p="test -f"
17950 # Sed expression to map a string onto a valid CPP name.
17951 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17953 # Sed expression to map a string onto a valid variable name.
17954 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17958 # We need space, tab and new line, in precisely that order.
17964 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
17968 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17969 # report actual input values of CONFIG_FILES etc. instead of their
17970 # values after options handling. Logging --version etc. is OK.
17974 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17975 ## Running $as_me. ##
17980 This file was extended by PostgreSQL $as_me 7.5devel, which was
17981 generated by GNU Autoconf 2.53. Invocation command line was
17983 CONFIG_FILES = $CONFIG_FILES
17984 CONFIG_HEADERS = $CONFIG_HEADERS
17985 CONFIG_LINKS = $CONFIG_LINKS
17986 CONFIG_COMMANDS = $CONFIG_COMMANDS
17990 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17994 # Files that config.status was made for.
17995 if test -n "$ac_config_files"; then
17996 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17999 if test -n "$ac_config_headers"; then
18000 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18003 if test -n "$ac_config_links"; then
18004 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18007 if test -n "$ac_config_commands"; then
18008 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18011 cat >>$CONFIG_STATUS <<\_ACEOF
18014 \`$as_me' instantiates files from templates according to the
18015 current configuration.
18017 Usage: $0 [OPTIONS] [FILE]...
18019 -h, --help print this help, then exit
18020 -V, --version print version number, then exit
18021 -d, --debug don't remove temporary files
18022 --recheck update $as_me by reconfiguring in the same conditions
18023 --file=FILE[:TEMPLATE]
18024 instantiate the configuration file FILE
18025 --header=FILE[:TEMPLATE]
18026 instantiate the configuration header FILE
18028 Configuration files:
18031 Configuration headers:
18034 Configuration links:
18037 Report bugs to <bug-autoconf@gnu.org>."
18040 cat >>$CONFIG_STATUS <<_ACEOF
18042 PostgreSQL config.status 7.5devel
18043 configured by $0, generated by GNU Autoconf 2.53,
18044 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18046 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18047 Free Software Foundation, Inc.
18048 This config.status script is free software; the Free Software Foundation
18049 gives unlimited permission to copy, distribute and modify it."
18053 cat >>$CONFIG_STATUS <<\_ACEOF
18054 # If no file are specified by the user, then we need to provide default
18055 # value. By we need to know if files were specified by the user.
18061 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18062 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18064 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
18068 *) # This is not an option, so the user has probably given explicit
18070 ac_need_defaults=false;;
18074 # Handling of the options.
18076 cat >>$CONFIG_STATUS <<_ACEOF
18077 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18078 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
18079 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
18081 cat >>$CONFIG_STATUS <<\_ACEOF
18082 --version | --vers* | -V )
18083 echo "$ac_cs_version"; exit 0 ;;
18085 # Conflict between --help and --header
18086 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18087 Try \`$0 --help' for more information." >&5
18088 echo "$as_me: error: ambiguous option: $1
18089 Try \`$0 --help' for more information." >&2;}
18090 { (exit 1); exit 1; }; };;
18091 --help | --hel | -h )
18092 echo "$ac_cs_usage"; exit 0 ;;
18093 --debug | --d* | -d )
18095 --file | --fil | --fi | --f )
18097 CONFIG_FILES="$CONFIG_FILES $1"
18098 ac_need_defaults=false;;
18099 --header | --heade | --head | --hea )
18101 CONFIG_HEADERS="$CONFIG_HEADERS $1"
18102 ac_need_defaults=false;;
18104 # This is an error.
18105 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18106 Try \`$0 --help' for more information." >&5
18107 echo "$as_me: error: unrecognized option: $1
18108 Try \`$0 --help' for more information." >&2;}
18109 { (exit 1); exit 1; }; } ;;
18111 *) ac_config_targets="$ac_config_targets $1" ;;
18123 cat >>$CONFIG_STATUS <<\_ACEOF
18124 for ac_config_target in $ac_config_targets
18126 case "$ac_config_target" in
18127 # Handling of arguments.
18128 "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
18129 "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
18130 "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
18131 "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
18132 "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
18133 "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
18134 "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
18135 "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
18136 "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
18137 "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
18138 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18139 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18140 { (exit 1); exit 1; }; };;
18144 # If the user did not use the arguments to specify the items to instantiate,
18145 # then the envvar interface is used. Set only those that are not.
18146 # We use the long form for the default assignment because of an extremely
18147 # bizarre bug on SunOS 4.1.3.
18148 if $ac_need_defaults; then
18149 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18150 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18151 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18154 # Create a temporary directory, and hook for its removal unless debugging.
18157 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18158 trap '{ (exit 1); exit 1; }' 1 2 13 15
18161 # Create a (secure) tmp directory for tmp files.
18164 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
18165 test -n "$tmp" && test -d "$tmp"
18168 tmp=$TMPDIR/cs$$-$RANDOM
18169 (umask 077 && mkdir $tmp)
18172 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
18173 { (exit 1); exit 1; }
18178 cat >>$CONFIG_STATUS <<_ACEOF
18181 # CONFIG_FILES section.
18184 # No need to generate the scripts if there are no CONFIG_FILES.
18185 # This happens for instance when ./config.status config.h
18186 if test -n "\$CONFIG_FILES"; then
18187 # Protect against being on the right side of a sed subst in config.status.
18188 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18189 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18190 s,@SHELL@,$SHELL,;t t
18191 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18192 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18193 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18194 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18195 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18196 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18197 s,@exec_prefix@,$exec_prefix,;t t
18198 s,@prefix@,$prefix,;t t
18199 s,@program_transform_name@,$program_transform_name,;t t
18200 s,@bindir@,$bindir,;t t
18201 s,@sbindir@,$sbindir,;t t
18202 s,@libexecdir@,$libexecdir,;t t
18203 s,@datadir@,$datadir,;t t
18204 s,@sysconfdir@,$sysconfdir,;t t
18205 s,@sharedstatedir@,$sharedstatedir,;t t
18206 s,@localstatedir@,$localstatedir,;t t
18207 s,@libdir@,$libdir,;t t
18208 s,@includedir@,$includedir,;t t
18209 s,@oldincludedir@,$oldincludedir,;t t
18210 s,@infodir@,$infodir,;t t
18211 s,@mandir@,$mandir,;t t
18212 s,@build_alias@,$build_alias,;t t
18213 s,@host_alias@,$host_alias,;t t
18214 s,@target_alias@,$target_alias,;t t
18215 s,@DEFS@,$DEFS,;t t
18216 s,@ECHO_C@,$ECHO_C,;t t
18217 s,@ECHO_N@,$ECHO_N,;t t
18218 s,@ECHO_T@,$ECHO_T,;t t
18219 s,@LIBS@,$LIBS,;t t
18220 s,@configure_args@,$configure_args,;t t
18221 s,@build@,$build,;t t
18222 s,@build_cpu@,$build_cpu,;t t
18223 s,@build_vendor@,$build_vendor,;t t
18224 s,@build_os@,$build_os,;t t
18225 s,@host@,$host,;t t
18226 s,@host_cpu@,$host_cpu,;t t
18227 s,@host_vendor@,$host_vendor,;t t
18228 s,@host_os@,$host_os,;t t
18229 s,@PORTNAME@,$PORTNAME,;t t
18230 s,@docdir@,$docdir,;t t
18231 s,@enable_nls@,$enable_nls,;t t
18232 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
18233 s,@default_port@,$default_port,;t t
18234 s,@enable_shared@,$enable_shared,;t t
18235 s,@enable_rpath@,$enable_rpath,;t t
18236 s,@enable_debug@,$enable_debug,;t t
18238 s,@CFLAGS@,$CFLAGS,;t t
18239 s,@LDFLAGS@,$LDFLAGS,;t t
18240 s,@CPPFLAGS@,$CPPFLAGS,;t t
18241 s,@ac_ct_CC@,$ac_ct_CC,;t t
18242 s,@EXEEXT@,$EXEEXT,;t t
18243 s,@OBJEXT@,$OBJEXT,;t t
18247 s,@autodepend@,$autodepend,;t t
18248 s,@INCLUDES@,$INCLUDES,;t t
18249 s,@enable_thread_safety@,$enable_thread_safety,;t t
18250 s,@with_tcl@,$with_tcl,;t t
18251 s,@with_tk@,$with_tk,;t t
18252 s,@with_perl@,$with_perl,;t t
18253 s,@with_python@,$with_python,;t t
18255 s,@with_java@,$with_java,;t t
18256 s,@with_krb4@,$with_krb4,;t t
18257 s,@with_krb5@,$with_krb5,;t t
18258 s,@krb_srvtab@,$krb_srvtab,;t t
18259 s,@with_pam@,$with_pam,;t t
18260 s,@with_rendezvous@,$with_rendezvous,;t t
18261 s,@with_openssl@,$with_openssl,;t t
18262 s,@ELF_SYS@,$ELF_SYS,;t t
18264 s,@FLEX@,$FLEX,;t t
18265 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
18266 s,@LN_S@,$LN_S,;t t
18268 s,@with_gnu_ld@,$with_gnu_ld,;t t
18269 s,@ld_R_works@,$ld_R_works,;t t
18270 s,@RANLIB@,$RANLIB,;t t
18271 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18272 s,@LORDER@,$LORDER,;t t
18274 s,@STRIP@,$STRIP,;t t
18275 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
18276 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
18277 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
18278 s,@YACC@,$YACC,;t t
18279 s,@YFLAGS@,$YFLAGS,;t t
18280 s,@PERL@,$PERL,;t t
18281 s,@perl_archlibexp@,$perl_archlibexp,;t t
18282 s,@perl_privlibexp@,$perl_privlibexp,;t t
18283 s,@perl_useshrplib@,$perl_useshrplib,;t t
18284 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
18285 s,@PYTHON@,$PYTHON,;t t
18286 s,@python_prefix@,$python_prefix,;t t
18287 s,@python_execprefix@,$python_execprefix,;t t
18288 s,@python_configdir@,$python_configdir,;t t
18289 s,@python_includespec@,$python_includespec,;t t
18290 s,@python_libspec@,$python_libspec,;t t
18291 s,@LIBOBJS@,$LIBOBJS,;t t
18292 s,@HAVE_IPV6@,$HAVE_IPV6,;t t
18293 s,@THREAD_SUPPORT@,$THREAD_SUPPORT,;t t
18294 s,@THREAD_CPPFLAGS@,$THREAD_CPPFLAGS,;t t
18295 s,@THREAD_LIBS@,$THREAD_LIBS,;t t
18296 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
18297 s,@MSGFMT@,$MSGFMT,;t t
18298 s,@MSGMERGE@,$MSGMERGE,;t t
18299 s,@XGETTEXT@,$XGETTEXT,;t t
18300 s,@localedir@,$localedir,;t t
18301 s,@TCLSH@,$TCLSH,;t t
18302 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
18303 s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t
18304 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
18305 s,@TCL_LIBS@,$TCL_LIBS,;t t
18306 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
18307 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
18308 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
18309 s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
18310 s,@TK_LIBS@,$TK_LIBS,;t t
18311 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
18312 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
18313 s,@NSGMLS@,$NSGMLS,;t t
18314 s,@JADE@,$JADE,;t t
18315 s,@have_docbook@,$have_docbook,;t t
18316 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
18317 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
18318 s,@SGMLSPL@,$SGMLSPL,;t t
18319 s,@vpath_build@,$vpath_build,;t t
18324 cat >>$CONFIG_STATUS <<\_ACEOF
18325 # Split the substitutions into bite-sized pieces for seds with
18326 # small command number limits, like on Digital OSF/1 and HP-UX.
18327 ac_max_sed_lines=48
18328 ac_sed_frag=1 # Number of current file.
18329 ac_beg=1 # First line for current file.
18330 ac_end=$ac_max_sed_lines # Line after last line for current file.
18333 while $ac_more_lines; do
18334 if test $ac_beg -gt 1; then
18335 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18337 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18339 if test ! -s $tmp/subs.frag; then
18340 ac_more_lines=false
18342 # The purpose of the label and of the branching condition is to
18343 # speed up the sed processing (if there are no `@' at all, there
18344 # is no need to browse any of the substitutions).
18345 # These are the two extra sed commands mentioned above.
18347 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18348 if test -z "$ac_sed_cmds"; then
18349 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18351 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18353 ac_sed_frag=`expr $ac_sed_frag + 1`
18355 ac_end=`expr $ac_end + $ac_max_sed_lines`
18358 if test -z "$ac_sed_cmds"; then
18361 fi # test -n "$CONFIG_FILES"
18364 cat >>$CONFIG_STATUS <<\_ACEOF
18365 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18366 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18368 - | *:- | *:-:* ) # input from stdin
18370 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18371 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18372 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18373 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18374 * ) ac_file_in=$ac_file.in ;;
18377 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18378 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18379 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18380 X"$ac_file" : 'X\(//\)[^/]' \| \
18381 X"$ac_file" : 'X\(//\)$' \| \
18382 X"$ac_file" : 'X\(/\)' \| \
18383 . : '\(.\)' 2>/dev/null ||
18385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18386 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18387 /^X\(\/\/\)$/{ s//\1/; q; }
18388 /^X\(\/\).*/{ s//\1/; q; }
18390 { case "$ac_dir" in
18391 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18395 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18396 case $as_mkdir_dir in
18397 # Skip DOS drivespec
18398 ?:) as_incr_dir=$as_mkdir_dir ;;
18400 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18401 test -d "$as_incr_dir" ||
18402 mkdir "$as_incr_dir" ||
18403 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18404 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18405 { (exit 1); exit 1; }; }
18412 if test "$ac_dir" != .; then
18413 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18414 # A "../" for each directory in $ac_dir_suffix.
18415 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18417 ac_dir_suffix= ac_top_builddir=
18421 .) # No --srcdir option. We are building in place.
18423 if test -z "$ac_top_builddir"; then
18426 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18428 [\\/]* | ?:[\\/]* ) # Absolute path.
18429 ac_srcdir=$srcdir$ac_dir_suffix;
18430 ac_top_srcdir=$srcdir ;;
18431 *) # Relative path.
18432 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18433 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18435 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18437 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18438 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
18439 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18440 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18444 if test x"$ac_file" != x-; then
18445 { echo "$as_me:$LINENO: creating $ac_file" >&5
18446 echo "$as_me: creating $ac_file" >&6;}
18449 # Let's still pretend it is `configure' which instantiates (i.e., don't
18450 # use $as_me), people would be surprised to read:
18451 # /* config.h. Generated by config.status. */
18452 if test x"$ac_file" = x-; then
18455 configure_input="$ac_file. "
18457 configure_input=$configure_input"Generated from `echo $ac_file_in |
18458 sed 's,.*/,,'` by configure."
18460 # First look for the input files in the build tree, otherwise in the
18462 ac_file_inputs=`IFS=:
18463 for f in $ac_file_in; do
18465 -) echo $tmp/stdin ;;
18467 # Absolute (can't be DOS-style, as IFS=:)
18468 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18469 echo "$as_me: error: cannot find input file: $f" >&2;}
18470 { (exit 1); exit 1; }; }
18473 if test -f "$f"; then
18476 elif test -f "$srcdir/$f"; then
18481 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18482 echo "$as_me: error: cannot find input file: $f" >&2;}
18483 { (exit 1); exit 1; }; }
18486 done` || { (exit 1); exit 1; }
18488 cat >>$CONFIG_STATUS <<_ACEOF
18492 cat >>$CONFIG_STATUS <<\_ACEOF
18494 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18495 s,@configure_input@,$configure_input,;t t
18496 s,@srcdir@,$ac_srcdir,;t t
18497 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18498 s,@top_srcdir@,$ac_top_srcdir,;t t
18499 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18500 s,@builddir@,$ac_builddir,;t t
18501 s,@abs_builddir@,$ac_abs_builddir,;t t
18502 s,@top_builddir@,$ac_top_builddir,;t t
18503 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18504 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18506 if test x"$ac_file" != x-; then
18507 mv $tmp/out $ac_file
18515 cat >>$CONFIG_STATUS <<\_ACEOF
18518 # CONFIG_HEADER section.
18521 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18522 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18524 # ac_d sets the value in "#define NAME VALUE" lines.
18525 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18526 ac_dB='[ ].*$,\1#\2'
18529 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18530 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18531 ac_uB='$,\1#\2define\3'
18535 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18536 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18538 - | *:- | *:-:* ) # input from stdin
18540 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18541 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18542 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18543 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18544 * ) ac_file_in=$ac_file.in ;;
18547 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18548 echo "$as_me: creating $ac_file" >&6;}
18550 # First look for the input files in the build tree, otherwise in the
18552 ac_file_inputs=`IFS=:
18553 for f in $ac_file_in; do
18555 -) echo $tmp/stdin ;;
18557 # Absolute (can't be DOS-style, as IFS=:)
18558 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18559 echo "$as_me: error: cannot find input file: $f" >&2;}
18560 { (exit 1); exit 1; }; }
18563 if test -f "$f"; then
18566 elif test -f "$srcdir/$f"; then
18571 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18572 echo "$as_me: error: cannot find input file: $f" >&2;}
18573 { (exit 1); exit 1; }; }
18576 done` || { (exit 1); exit 1; }
18577 # Remove the trailing spaces.
18578 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18582 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18583 # `conftest.undefs', that substitutes the proper values into
18584 # config.h.in to produce config.h. The first handles `#define'
18585 # templates, and the second `#undef' templates.
18586 # And first: Protect against being on the right side of a sed subst in
18587 # config.status. Protect against being in an unquoted here document
18588 # in config.status.
18589 rm -f conftest.defines conftest.undefs
18590 # Using a here document instead of a string reduces the quoting nightmare.
18591 # Putting comments in sed scripts is not portable.
18593 # `end' is used to avoid that the second main sed command (meant for
18594 # 0-ary CPP macros) applies to n-ary macro definitions.
18595 # See the Autoconf documentation for `clear'.
18596 cat >confdef2sed.sed <<\_ACEOF
18601 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18603 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18606 # If some macros were called several times there might be several times
18607 # the same #defines, which is useless. Nevertheless, we may not want to
18608 # sort them, since we want the *last* AC-DEFINE to be honored.
18609 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18610 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18611 rm -f confdef2sed.sed
18613 # This sed command replaces #undef with comments. This is necessary, for
18614 # example, in the case of _POSIX_SOURCE, which is predefined and required
18615 # on some systems where configure will not decide to define it.
18616 cat >>conftest.undefs <<\_ACEOF
18617 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18620 # Break up conftest.defines because some shells have a limit on the size
18621 # of here documents, and old seds have small limits too (100 cmds).
18622 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18623 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18624 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18625 echo ' :' >>$CONFIG_STATUS
18626 rm -f conftest.tail
18627 while grep . conftest.defines >/dev/null
18629 # Write a limited-size here document to $tmp/defines.sed.
18630 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18631 # Speed up: don't consider the non `#define' lines.
18632 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18633 # Work around the forget-to-reset-the-flag bug.
18634 echo 't clr' >>$CONFIG_STATUS
18635 echo ': clr' >>$CONFIG_STATUS
18636 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18638 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18640 mv $tmp/out $tmp/in
18642 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18643 rm -f conftest.defines
18644 mv conftest.tail conftest.defines
18646 rm -f conftest.defines
18647 echo ' fi # egrep' >>$CONFIG_STATUS
18648 echo >>$CONFIG_STATUS
18650 # Break up conftest.undefs because some shells have a limit on the size
18651 # of here documents, and old seds have small limits too (100 cmds).
18652 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18653 rm -f conftest.tail
18654 while grep . conftest.undefs >/dev/null
18656 # Write a limited-size here document to $tmp/undefs.sed.
18657 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18658 # Speed up: don't consider the non `#undef'
18659 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18660 # Work around the forget-to-reset-the-flag bug.
18661 echo 't clr' >>$CONFIG_STATUS
18662 echo ': clr' >>$CONFIG_STATUS
18663 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18665 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18667 mv $tmp/out $tmp/in
18669 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18670 rm -f conftest.undefs
18671 mv conftest.tail conftest.undefs
18673 rm -f conftest.undefs
18675 cat >>$CONFIG_STATUS <<\_ACEOF
18676 # Let's still pretend it is `configure' which instantiates (i.e., don't
18677 # use $as_me), people would be surprised to read:
18678 # /* config.h. Generated by config.status. */
18679 if test x"$ac_file" = x-; then
18680 echo "/* Generated by configure. */" >$tmp/config.h
18682 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18684 cat $tmp/in >>$tmp/config.h
18686 if test x"$ac_file" != x-; then
18687 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
18688 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18689 echo "$as_me: $ac_file is unchanged" >&6;}
18691 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18692 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18693 X"$ac_file" : 'X\(//\)[^/]' \| \
18694 X"$ac_file" : 'X\(//\)$' \| \
18695 X"$ac_file" : 'X\(/\)' \| \
18696 . : '\(.\)' 2>/dev/null ||
18698 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18699 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18700 /^X\(\/\/\)$/{ s//\1/; q; }
18701 /^X\(\/\).*/{ s//\1/; q; }
18703 { case "$ac_dir" in
18704 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18708 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18709 case $as_mkdir_dir in
18710 # Skip DOS drivespec
18711 ?:) as_incr_dir=$as_mkdir_dir ;;
18713 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18714 test -d "$as_incr_dir" ||
18715 mkdir "$as_incr_dir" ||
18716 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18717 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18718 { (exit 1); exit 1; }; }
18724 mv $tmp/config.h $ac_file
18728 rm -f $tmp/config.h
18730 # Run the commands associated with the file.
18732 src/include/pg_config.h )
18733 # Update timestamp for pg_config.h (see Makefile.global)
18734 echo >src/include/stamp-h
18739 cat >>$CONFIG_STATUS <<\_ACEOF
18742 # CONFIG_LINKS section.
18745 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18746 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18747 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18749 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18750 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18752 if test ! -r $srcdir/$ac_source; then
18753 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18754 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18755 { (exit 1); exit 1; }; }
18759 # Make relative symlinks.
18760 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18761 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18762 X"$ac_dest" : 'X\(//\)[^/]' \| \
18763 X"$ac_dest" : 'X\(//\)$' \| \
18764 X"$ac_dest" : 'X\(/\)' \| \
18765 . : '\(.\)' 2>/dev/null ||
18767 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18768 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18769 /^X\(\/\/\)$/{ s//\1/; q; }
18770 /^X\(\/\).*/{ s//\1/; q; }
18772 { case "$ac_dest_dir" in
18773 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18776 as_dummy="$ac_dest_dir"
18777 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18778 case $as_mkdir_dir in
18779 # Skip DOS drivespec
18780 ?:) as_incr_dir=$as_mkdir_dir ;;
18782 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18783 test -d "$as_incr_dir" ||
18784 mkdir "$as_incr_dir" ||
18785 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
18786 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
18787 { (exit 1); exit 1; }; }
18794 if test "$ac_dest_dir" != .; then
18795 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18796 # A "../" for each directory in $ac_dir_suffix.
18797 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18799 ac_dir_suffix= ac_top_builddir=
18803 .) # No --srcdir option. We are building in place.
18805 if test -z "$ac_top_builddir"; then
18808 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18810 [\\/]* | ?:[\\/]* ) # Absolute path.
18811 ac_srcdir=$srcdir$ac_dir_suffix;
18812 ac_top_srcdir=$srcdir ;;
18813 *) # Relative path.
18814 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18815 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18817 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
18819 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
18820 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
18821 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
18822 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
18826 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18827 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18830 # Make a symlink if possible; otherwise try a hard link.
18831 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18832 ln $srcdir/$ac_source $ac_dest ||
18833 { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
18834 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
18835 { (exit 1); exit 1; }; }
18839 cat >>$CONFIG_STATUS <<\_ACEOF
18841 { (exit 0); exit 0; }
18843 chmod +x $CONFIG_STATUS
18844 ac_clean_files=$ac_clean_files_save
18847 # configure is writing to config.log, and then calls config.status.
18848 # config.status does its own redirection, appending to config.log.
18849 # Unfortunately, on DOS this fails, as config.log is still kept open
18850 # by configure, so config.status won't be able to write to it; its
18851 # output is simply discarded. So we exec the FD to /dev/null,
18852 # effectively closing config.log, so it can be properly (re)opened and
18853 # appended to by config.status. When coming back to configure, we
18854 # need to make the FD available again.
18855 if test "$no_create" != yes; then
18858 $SHELL $CONFIG_STATUS || ac_cs_success=false
18860 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18861 # would make configure fail if this is the last instruction.
18862 $ac_cs_success || { (exit 1); exit 1; }