2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for PostgreSQL 7.3devel.
5 # Report bugs to <pgsql-bugs@postgresql.org>.
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright 2002 PostgreSQL Global Development Group
14 if expr a : '\(a\)' >/dev/null 2>&1; then
21 ## --------------------- ##
22 ## M4sh Initialization. ##
23 ## --------------------- ##
25 # Be Bourne compatible
26 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
34 # Support unset when possible.
35 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
41 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
42 { $as_unset LANG || test "${LANG+set}" != set; } ||
43 { LANG=C; export LANG; }
44 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
45 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
46 { LC_ALL=C; export LC_ALL; }
47 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
48 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
49 { LC_TIME=C; export LC_TIME; }
50 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
51 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
52 { LC_CTYPE=C; export LC_CTYPE; }
53 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
54 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
55 { LANGUAGE=C; export LANGUAGE; }
56 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
57 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
58 { LC_COLLATE=C; export LC_COLLATE; }
59 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
60 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
61 { LC_NUMERIC=C; export LC_NUMERIC; }
62 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
63 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
64 { LC_MESSAGES=C; export LC_MESSAGES; }
67 # Name of the executable.
68 as_me=`(basename "$0") 2>/dev/null ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89 echo "#! /bin/sh" >conftest.sh
90 echo "exit 0" >>conftest.sh
92 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104 test "x$as_lineno_1" != "x$as_lineno_2" &&
105 test "x$as_lineno_3" = "x$as_lineno_2" || {
106 # Find who we are. Look in the path if we contain no path at all
109 *[\\/]* ) as_myself=$0 ;;
110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 test -z "$as_dir" && as_dir=.
115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
120 # We did not find ourselves, most probably we were run as `sh COMMAND'
121 # in which case we are not to be found in the path.
122 if test "x$as_myself" = x; then
125 if test ! -f "$as_myself"; then
126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127 { (exit 1); exit 1; }; }
129 case $CONFIG_SHELL in
131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 test -z "$as_dir" && as_dir=.
136 for as_base in sh bash ksh sh5; do
139 if ("$as_dir/$as_base" -c '
142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143 test "x$as_lineno_1" != "x$as_lineno_2" &&
144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
145 CONFIG_SHELL=$as_dir/$as_base
147 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
155 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
156 # uniformly replaced by the line number. The first 'sed' inserts a
157 # line-number line before each line; the second 'sed' does the real
158 # work. The second script uses 'N' to pair each line-number line
159 # with the numbered line, and appends trailing '-' during
160 # substitution so that $LINENO is not a special case at line end.
161 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
162 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
163 sed '=' <$as_myself |
168 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171 s,^['$as_cr_digits']*\n,,
173 chmod +x $as_me.lineno ||
174 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
175 { (exit 1); exit 1; }; }
177 # Don't try to exec as it changes $[0], causing all sort of problems
178 # (the dirname of $[0] is not the place where we might find the
179 # original and so on. Autoconf is especially sensible to this).
181 # Exit status is that of the last command.
186 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
187 *c*,-n*) ECHO_N= ECHO_C='
189 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
190 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
193 if expr a : '\(a\)' >/dev/null 2>&1; then
199 rm -f conf$$ conf$$.exe conf$$.file
201 if ln -s conf$$.file conf$$ 2>/dev/null; then
202 # We could just check for DJGPP; but this test a) works b) is more generic
203 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
204 if test -f conf$$.exe; then
205 # Don't use ln at all; we don't have any links
210 elif ln conf$$.file conf$$ 2>/dev/null; then
215 rm -f conf$$ conf$$.exe conf$$.file
217 as_executable_p="test -f"
219 # Sed expression to map a string onto a valid CPP name.
220 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
222 # Sed expression to map a string onto a valid variable name.
223 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
227 # We need space, tab and new line, in precisely that order.
233 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
237 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
238 # so uname gets run too.
239 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
246 ac_default_prefix=/usr/local
251 SHELL=${CONFIG_SHELL-/bin/sh}
253 # Maximum number of lines to put in a shell here document.
254 # This variable seems obsolete. It should probably be removed, and
255 # only ac_max_sed_lines should be used.
256 : ${ac_max_here_lines=38}
258 # Identity of this package.
259 PACKAGE_NAME='PostgreSQL'
260 PACKAGE_TARNAME='postgresql'
261 PACKAGE_VERSION='7.3devel'
262 PACKAGE_STRING='PostgreSQL 7.3devel'
263 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
265 ac_unique_file="src/backend/access/common/heaptuple.c"
266 ac_default_prefix=/usr/local/pgsql
267 # Factoring default headers for most tests.
268 ac_includes_default="\
271 # include <sys/types.h>
274 # include <sys/stat.h>
285 # if !STDC_HEADERS && HAVE_MEMORY_H
291 # include <strings.h>
294 # include <inttypes.h>
305 # Initialize some variables set by options.
307 ac_init_version=false
308 # The variables have the same names as the options, with
309 # dashes changed to underlines.
317 program_transform_name=s,x,x,
325 # Installation directory options.
326 # These are left unexpanded so users can "make install exec_prefix=/foo"
327 # and all the variables that are supposed to be based on exec_prefix
328 # by default will actually change.
329 # Use braces instead of parens because sh, perl, etc. also accept them.
330 bindir='${exec_prefix}/bin'
331 sbindir='${exec_prefix}/sbin'
332 libexecdir='${exec_prefix}/libexec'
333 datadir='${prefix}/share'
334 sysconfdir='${prefix}/etc'
335 sharedstatedir='${prefix}/com'
336 localstatedir='${prefix}/var'
337 libdir='${exec_prefix}/lib'
338 includedir='${prefix}/include'
339 oldincludedir='/usr/include'
340 docdir='${prefix}/doc'
341 mandir='${prefix}/man'
346 # If the previous option needs an argument, assign it.
347 if test -n "$ac_prev"; then
348 eval "$ac_prev=\$ac_option"
353 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
355 # Accept the important Cygnus configure options, so we can diagnose typos.
359 -bindir | --bindir | --bindi | --bind | --bin | --bi)
361 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
364 -build | --build | --buil | --bui | --bu)
365 ac_prev=build_alias ;;
366 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
367 build_alias=$ac_optarg ;;
369 -cache-file | --cache-file | --cache-fil | --cache-fi \
370 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
371 ac_prev=cache_file ;;
372 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
373 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
374 cache_file=$ac_optarg ;;
377 cache_file=config.cache ;;
379 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
381 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
383 datadir=$ac_optarg ;;
385 -disable-* | --disable-*)
386 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
387 # Reject names that are not valid shell variable names.
388 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
389 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
390 { (exit 1); exit 1; }; }
391 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
392 eval "enable_$ac_feature=no" ;;
394 -enable-* | --enable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
405 eval "enable_$ac_feature='$ac_optarg'" ;;
407 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
408 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
409 | --exec | --exe | --ex)
410 ac_prev=exec_prefix ;;
411 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
412 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
413 | --exec=* | --exe=* | --ex=*)
414 exec_prefix=$ac_optarg ;;
416 -gas | --gas | --ga | --g)
417 # Obsolete; use --with-gas.
420 -help | --help | --hel | --he | -h)
422 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
423 ac_init_help=recursive ;;
424 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
425 ac_init_help=short ;;
427 -host | --host | --hos | --ho)
428 ac_prev=host_alias ;;
429 -host=* | --host=* | --hos=* | --ho=*)
430 host_alias=$ac_optarg ;;
432 -includedir | --includedir | --includedi | --included | --include \
433 | --includ | --inclu | --incl | --inc)
434 ac_prev=includedir ;;
435 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
436 | --includ=* | --inclu=* | --incl=* | --inc=*)
437 includedir=$ac_optarg ;;
439 -docdir | --docdir | --infodi | --infod | --doc | --inf)
441 -docdir=* | --docdir=* | --infodi=* | --infod=* | --doc=* | --inf=*)
444 -libdir | --libdir | --libdi | --libd)
446 -libdir=* | --libdir=* | --libdi=* | --libd=*)
449 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
450 | --libexe | --libex | --libe)
451 ac_prev=libexecdir ;;
452 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
453 | --libexe=* | --libex=* | --libe=*)
454 libexecdir=$ac_optarg ;;
456 -localstatedir | --localstatedir | --localstatedi | --localstated \
457 | --localstate | --localstat | --localsta | --localst \
458 | --locals | --local | --loca | --loc | --lo)
459 ac_prev=localstatedir ;;
460 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
461 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
462 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
463 localstatedir=$ac_optarg ;;
465 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
467 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
471 # Obsolete; use --without-fp.
474 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
475 | --no-cr | --no-c | -n)
478 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
479 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
482 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
483 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
484 | --oldin | --oldi | --old | --ol | --o)
485 ac_prev=oldincludedir ;;
486 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
487 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
488 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
489 oldincludedir=$ac_optarg ;;
491 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
493 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
496 -program-prefix | --program-prefix | --program-prefi | --program-pref \
497 | --program-pre | --program-pr | --program-p)
498 ac_prev=program_prefix ;;
499 -program-prefix=* | --program-prefix=* | --program-prefi=* \
500 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
501 program_prefix=$ac_optarg ;;
503 -program-suffix | --program-suffix | --program-suffi | --program-suff \
504 | --program-suf | --program-su | --program-s)
505 ac_prev=program_suffix ;;
506 -program-suffix=* | --program-suffix=* | --program-suffi=* \
507 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
508 program_suffix=$ac_optarg ;;
510 -program-transform-name | --program-transform-name \
511 | --program-transform-nam | --program-transform-na \
512 | --program-transform-n | --program-transform- \
513 | --program-transform | --program-transfor \
514 | --program-transfo | --program-transf \
515 | --program-trans | --program-tran \
516 | --progr-tra | --program-tr | --program-t)
517 ac_prev=program_transform_name ;;
518 -program-transform-name=* | --program-transform-name=* \
519 | --program-transform-nam=* | --program-transform-na=* \
520 | --program-transform-n=* | --program-transform-=* \
521 | --program-transform=* | --program-transfor=* \
522 | --program-transfo=* | --program-transf=* \
523 | --program-trans=* | --program-tran=* \
524 | --progr-tra=* | --program-tr=* | --program-t=*)
525 program_transform_name=$ac_optarg ;;
527 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
528 | -silent | --silent | --silen | --sile | --sil)
531 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
533 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
535 sbindir=$ac_optarg ;;
537 -sharedstatedir | --sharedstatedir | --sharedstatedi \
538 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
539 | --sharedst | --shareds | --shared | --share | --shar \
541 ac_prev=sharedstatedir ;;
542 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
543 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
544 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
546 sharedstatedir=$ac_optarg ;;
548 -site | --site | --sit)
550 -site=* | --site=* | --sit=*)
553 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
555 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
558 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
559 | --syscon | --sysco | --sysc | --sys | --sy)
560 ac_prev=sysconfdir ;;
561 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
562 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
563 sysconfdir=$ac_optarg ;;
565 -target | --target | --targe | --targ | --tar | --ta | --t)
566 ac_prev=target_alias ;;
567 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
568 target_alias=$ac_optarg ;;
570 -v | -verbose | --verbose | --verbos | --verbo | --verb)
573 -version | --version | --versio | --versi | --vers | -V)
577 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
578 # Reject names that are not valid shell variable names.
579 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
580 { echo "$as_me: error: invalid package name: $ac_package" >&2
581 { (exit 1); exit 1; }; }
582 ac_package=`echo $ac_package| sed 's/-/_/g'`
584 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
587 eval "with_$ac_package='$ac_optarg'" ;;
589 -without-* | --without-*)
590 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package=`echo $ac_package | sed 's/-/_/g'`
596 eval "with_$ac_package=no" ;;
599 # Obsolete; use --with-x.
602 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
603 | --x-incl | --x-inc | --x-in | --x-i)
604 ac_prev=x_includes ;;
605 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
606 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
607 x_includes=$ac_optarg ;;
609 -x-libraries | --x-libraries | --x-librarie | --x-librari \
610 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
611 ac_prev=x_libraries ;;
612 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
613 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
614 x_libraries=$ac_optarg ;;
616 -*) { echo "$as_me: error: unrecognized option: $ac_option
617 Try \`$0 --help' for more information." >&2
618 { (exit 1); exit 1; }; }
622 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
623 # Reject names that are not valid shell variable names.
624 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
625 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
626 { (exit 1); exit 1; }; }
627 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
628 eval "$ac_envvar='$ac_optarg'"
632 # FIXME: should be removed in autoconf 3.0.
633 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
634 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
635 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
636 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
642 if test -n "$ac_prev"; then
643 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
644 { echo "$as_me: error: missing argument to $ac_option" >&2
645 { (exit 1); exit 1; }; }
648 # Be sure to have absolute paths.
649 for ac_var in exec_prefix prefix
651 eval ac_val=$`echo $ac_var`
653 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
654 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
655 { (exit 1); exit 1; }; };;
659 # Be sure to have absolute paths.
660 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
661 localstatedir libdir includedir oldincludedir docdir mandir
663 eval ac_val=$`echo $ac_var`
665 [\\/$]* | ?:[\\/]* ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
671 # There might be people who depend on the old broken behavior: `$host'
672 # used to hold the argument of --host etc.
673 # FIXME: To remove some day.
678 # FIXME: To remove some day.
679 if test "x$host_alias" != x; then
680 if test "x$build_alias" = x; then
681 cross_compiling=maybe
682 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
683 If a cross compiler is detected then cross compile mode will be used." >&2
684 elif test "x$build_alias" != "x$host_alias"; then
690 test -n "$host_alias" && ac_tool_prefix=$host_alias-
692 test "$silent" = yes && exec 6>/dev/null
695 # Find the source files, if location was not specified.
696 if test -z "$srcdir"; then
697 ac_srcdir_defaulted=yes
698 # Try the directory containing this script, then its parent.
699 ac_confdir=`(dirname "$0") 2>/dev/null ||
700 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
701 X"$0" : 'X\(//\)[^/]' \| \
702 X"$0" : 'X\(//\)$' \| \
703 X"$0" : 'X\(/\)' \| \
704 . : '\(.\)' 2>/dev/null ||
706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
707 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
708 /^X\(\/\/\)$/{ s//\1/; q; }
709 /^X\(\/\).*/{ s//\1/; q; }
712 if test ! -r $srcdir/$ac_unique_file; then
716 ac_srcdir_defaulted=no
718 if test ! -r $srcdir/$ac_unique_file; then
719 if test "$ac_srcdir_defaulted" = yes; then
720 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
721 { (exit 1); exit 1; }; }
723 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
724 { (exit 1); exit 1; }; }
727 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
728 ac_env_build_alias_set=${build_alias+set}
729 ac_env_build_alias_value=$build_alias
730 ac_cv_env_build_alias_set=${build_alias+set}
731 ac_cv_env_build_alias_value=$build_alias
732 ac_env_host_alias_set=${host_alias+set}
733 ac_env_host_alias_value=$host_alias
734 ac_cv_env_host_alias_set=${host_alias+set}
735 ac_cv_env_host_alias_value=$host_alias
736 ac_env_target_alias_set=${target_alias+set}
737 ac_env_target_alias_value=$target_alias
738 ac_cv_env_target_alias_set=${target_alias+set}
739 ac_cv_env_target_alias_value=$target_alias
740 ac_env_CC_set=${CC+set}
742 ac_cv_env_CC_set=${CC+set}
743 ac_cv_env_CC_value=$CC
744 ac_env_CFLAGS_set=${CFLAGS+set}
745 ac_env_CFLAGS_value=$CFLAGS
746 ac_cv_env_CFLAGS_set=${CFLAGS+set}
747 ac_cv_env_CFLAGS_value=$CFLAGS
748 ac_env_LDFLAGS_set=${LDFLAGS+set}
749 ac_env_LDFLAGS_value=$LDFLAGS
750 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
751 ac_cv_env_LDFLAGS_value=$LDFLAGS
752 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
753 ac_env_CPPFLAGS_value=$CPPFLAGS
754 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
755 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
756 ac_env_CPP_set=${CPP+set}
757 ac_env_CPP_value=$CPP
758 ac_cv_env_CPP_set=${CPP+set}
759 ac_cv_env_CPP_value=$CPP
760 ac_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
761 ac_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
762 ac_cv_env_DOCBOOKSTYLE_set=${DOCBOOKSTYLE+set}
763 ac_cv_env_DOCBOOKSTYLE_value=$DOCBOOKSTYLE
766 # Report the --help message.
768 if test "$ac_init_help" = "long"; then
769 # Omit some internal or obsolete options to make the list less imposing.
770 # This message is too long to be a string in the A/UX 3.1 sh.
772 \`configure' configures PostgreSQL 7.3devel 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.3devel:";;
838 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
839 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
840 --enable-integer-datetimes enable 64-bit integer date/time support
841 --enable-recode enable character set recode support
842 --enable-nls[=LANGUAGES] enable Native Language Support
843 --disable-shared do not build shared libraries
844 --disable-rpath do not embed shared library search path in executables
845 --enable-debug build with debugging symbols (-g)
846 --enable-depend turn on automatic dependency tracking
847 --enable-cassert enable assertion checks (for debugging)
848 --enable-odbc build the ODBC driver package
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-includes=DIRS look for additional header files in DIRS
856 --with-libraries=DIRS look for additional libraries in DIRS
857 --with-libs=DIRS alternative spelling of --with-libraries
858 --with-pgport=PORTNUM change default port number 5432
859 --with-maxbackends=N set default maximum number of connections 32
860 --with-tcl build Tcl and Tk interfaces
861 --without-tk do not build Tk interfaces if Tcl is enabled
862 --with-tclconfig=DIR tclConfig.sh and tkConfig.sh are in DIR
863 --with-tkconfig=DIR tkConfig.sh is in DIR
864 --with-perl build Perl interface and PL/Perl
865 --with-python build Python interface module
866 --with-java build JDBC interface and Java tools
867 --with-krb4[=DIR] build with Kerberos 4 support [/usr/athena]
868 --with-krb5[=DIR] build with Kerberos 5 support [/usr/athena]
869 --with-krb-srvnam=NAME name of the service principal in Kerberos postgres
870 --with-pam build with PAM support
871 --with-openssl[=DIR] build with OpenSSL support [/usr/local/ssl]
872 --without-readline do not use Readline
873 --without-zlib do not use Zlib
874 --with-unixodbc build ODBC driver for unixODBC
875 --with-iodbc build ODBC driver for iODBC
876 --with-odbcinst=DIR default directory for odbcinst.ini sysconfdir
877 --with-gnu-ld assume the C compiler uses GNU ld default=no
879 Some influential environment variables:
880 CC C compiler command
881 CFLAGS C compiler flags
882 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
883 nonstandard directory <lib dir>
884 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
885 headers in a nonstandard directory <include dir>
888 location of DocBook stylesheets
890 Use these variables to override the choices made by `configure' or to help
891 it to find libraries and programs with nonstandard names/locations.
893 Report bugs to <pgsql-bugs@postgresql.org>.
897 if test "$ac_init_help" = "recursive"; then
898 # If there are subdirs, report their specific --help.
900 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
901 test -d $ac_dir || continue
904 if test "$ac_dir" != .; then
905 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
906 # A "../" for each directory in $ac_dir_suffix.
907 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
909 ac_dir_suffix= ac_top_builddir=
913 .) # No --srcdir option. We are building in place.
915 if test -z "$ac_top_builddir"; then
918 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
920 [\\/]* | ?:[\\/]* ) # Absolute path.
921 ac_srcdir=$srcdir$ac_dir_suffix;
922 ac_top_srcdir=$srcdir ;;
924 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
925 ac_top_srcdir=$ac_top_builddir$srcdir ;;
927 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
929 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
930 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
931 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
932 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
935 # Check for guested configure; otherwise get Cygnus style configure.
936 if test -f $ac_srcdir/configure.gnu; then
938 $SHELL $ac_srcdir/configure.gnu --help=recursive
939 elif test -f $ac_srcdir/configure; then
941 $SHELL $ac_srcdir/configure --help=recursive
942 elif test -f $ac_srcdir/configure.ac ||
943 test -f $ac_srcdir/configure.in; then
947 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
953 test -n "$ac_init_help" && exit 0
954 if $ac_init_version; then
956 PostgreSQL configure 7.3devel
957 generated by GNU Autoconf 2.53
959 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
960 Free Software Foundation, Inc.
961 This configure script is free software; the Free Software Foundation
962 gives unlimited permission to copy, distribute and modify it.
964 Copyright 2002 PostgreSQL Global Development Group
970 This file contains any messages produced by compilers while
971 running configure, to aid debugging if configure makes a mistake.
973 It was created by PostgreSQL $as_me 7.3devel, which was
974 generated by GNU Autoconf 2.53. Invocation command line was
985 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
986 uname -m = `(uname -m) 2>/dev/null || echo unknown`
987 uname -r = `(uname -r) 2>/dev/null || echo unknown`
988 uname -s = `(uname -s) 2>/dev/null || echo unknown`
989 uname -v = `(uname -v) 2>/dev/null || echo unknown`
991 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
992 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
994 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
995 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
996 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
997 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
998 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
999 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1000 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1008 test -z "$as_dir" && as_dir=.
1009 echo "PATH: $as_dir"
1024 # Keep a trace of the command line.
1025 # Strip out --no-create and --no-recursion so they do not pile up.
1026 # Also quote any args containing shell meta-characters.
1032 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1033 | --no-cr | --no-c | -n ) continue ;;
1034 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1035 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1037 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1038 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1040 case " $ac_configure_args " in
1041 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1042 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1045 # Get rid of the leading space.
1048 # When interrupted or exit'd, cleanup temporary files, and complete
1049 # config.log. We remove comments because anyway the quotes in there
1050 # would cause problems or look ugly.
1051 # WARNING: Be sure not to use single quotes in there, as some shells,
1052 # such as our DU 5.0 friend, will then `close' the trap.
1053 trap 'exit_status=$?
1054 # Save into config.log some information that might help in debugging.
1058 ## ---------------- ##
1059 ## Cache variables. ##
1060 ## ---------------- ##
1063 # The following way of writing the cache mishandles newlines in values,
1066 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1069 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1070 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1074 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1079 if test -s confdefs.h; then
1086 sed "/^$/d" confdefs.h
1089 test "$ac_signal" != 0 &&
1090 echo "$as_me: caught signal $ac_signal"
1091 echo "$as_me: exit $exit_status"
1093 rm -f core core.* *.core &&
1094 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1097 for ac_signal in 1 2 13 15; do
1098 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1102 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1103 rm -rf conftest* confdefs.h
1104 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1107 # Predefined preprocessor variables.
1109 cat >>confdefs.h <<_ACEOF
1110 #define PACKAGE_NAME "$PACKAGE_NAME"
1114 cat >>confdefs.h <<_ACEOF
1115 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1119 cat >>confdefs.h <<_ACEOF
1120 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1124 cat >>confdefs.h <<_ACEOF
1125 #define PACKAGE_STRING "$PACKAGE_STRING"
1129 cat >>confdefs.h <<_ACEOF
1130 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1134 # Let the site file select an alternate cache file if it wants to.
1135 # Prefer explicitly selected file to automatically selected ones.
1136 if test -z "$CONFIG_SITE"; then
1137 if test "x$prefix" != xNONE; then
1138 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1140 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1143 for ac_site_file in $CONFIG_SITE; do
1144 if test -r "$ac_site_file"; then
1145 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1146 echo "$as_me: loading site script $ac_site_file" >&6;}
1147 sed 's/^/| /' "$ac_site_file" >&5
1152 if test -r "$cache_file"; then
1153 # Some versions of bash will fail to source /dev/null (special
1154 # files actually), so we avoid doing that.
1155 if test -f "$cache_file"; then
1156 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1157 echo "$as_me: loading cache $cache_file" >&6;}
1159 [\\/]* | ?:[\\/]* ) . $cache_file;;
1160 *) . ./$cache_file;;
1164 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1165 echo "$as_me: creating cache $cache_file" >&6;}
1169 # Check that the precious variables saved in the cache have kept the same
1171 ac_cache_corrupted=false
1172 for ac_var in `(set) 2>&1 |
1173 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1174 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1175 eval ac_new_set=\$ac_env_${ac_var}_set
1176 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1177 eval ac_new_val="\$ac_env_${ac_var}_value"
1178 case $ac_old_set,$ac_new_set in
1180 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1181 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1182 ac_cache_corrupted=: ;;
1184 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1185 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1186 ac_cache_corrupted=: ;;
1189 if test "x$ac_old_val" != "x$ac_new_val"; then
1190 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1191 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1192 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1193 echo "$as_me: former value: $ac_old_val" >&2;}
1194 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1195 echo "$as_me: current value: $ac_new_val" >&2;}
1196 ac_cache_corrupted=:
1199 # Pass precious variables to config.status.
1200 if test "$ac_new_set" = set; then
1202 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1203 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1204 *) ac_arg=$ac_var=$ac_new_val ;;
1206 case " $ac_configure_args " in
1207 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1208 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1212 if $ac_cache_corrupted; then
1213 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1214 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1215 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1216 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1217 { (exit 1); exit 1; }; }
1221 ac_cpp='$CPP $CPPFLAGS'
1222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1259 for ac_dir in config $srcdir/config; do
1260 if test -f $ac_dir/install-sh; then
1262 ac_install_sh="$ac_aux_dir/install-sh -c"
1264 elif test -f $ac_dir/install.sh; then
1266 ac_install_sh="$ac_aux_dir/install.sh -c"
1268 elif test -f $ac_dir/shtool; then
1270 ac_install_sh="$ac_aux_dir/shtool install -c"
1274 if test -z "$ac_aux_dir"; then
1275 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1276 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1277 { (exit 1); exit 1; }; }
1279 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1280 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1281 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1284 configure_args=$ac_configure_args
1288 cat >>confdefs.h <<_ACEOF
1289 #define PG_VERSION "$PACKAGE_VERSION"
1293 # Make sure we can run config.sub.
1294 $ac_config_sub sun4 >/dev/null 2>&1 ||
1295 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1296 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1297 { (exit 1); exit 1; }; }
1299 echo "$as_me:$LINENO: checking build system type" >&5
1300 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1301 if test "${ac_cv_build+set}" = set; then
1302 echo $ECHO_N "(cached) $ECHO_C" >&6
1304 ac_cv_build_alias=$build_alias
1305 test -z "$ac_cv_build_alias" &&
1306 ac_cv_build_alias=`$ac_config_guess`
1307 test -z "$ac_cv_build_alias" &&
1308 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1309 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1310 { (exit 1); exit 1; }; }
1311 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1312 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1313 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1314 { (exit 1); exit 1; }; }
1317 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1318 echo "${ECHO_T}$ac_cv_build" >&6
1320 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1321 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1322 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1325 echo "$as_me:$LINENO: checking host system type" >&5
1326 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1327 if test "${ac_cv_host+set}" = set; then
1328 echo $ECHO_N "(cached) $ECHO_C" >&6
1330 ac_cv_host_alias=$host_alias
1331 test -z "$ac_cv_host_alias" &&
1332 ac_cv_host_alias=$ac_cv_build_alias
1333 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1334 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1335 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1336 { (exit 1); exit 1; }; }
1339 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1340 echo "${ECHO_T}$ac_cv_host" >&6
1342 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1343 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1344 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1349 echo "$as_me:$LINENO: checking which template to use" >&5
1350 echo $ECHO_N "checking which template to use... $ECHO_C" >&6
1355 # Check whether --with-template or --without-template was given.
1356 if test "${with_template+set}" = set; then
1357 withval="$with_template"
1361 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1362 echo "$as_me: error: argument required for --with-template option" >&2;}
1363 { (exit 1); exit 1; }; }
1366 { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
1367 echo "$as_me: error: argument required for --with-template option" >&2;}
1368 { (exit 1); exit 1; }; }
1373 list) echo; ls "$srcdir/src/template"; exit;;
1374 *) if test -f "$srcdir/src/template/$with_template" ; then
1377 { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
1378 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
1379 { (exit 1); exit 1; }; }
1388 # --with-template not given
1391 aix*) template=aix ;;
1392 beos*) template=beos ;;
1393 bsdi*) template=bsdi ;;
1394 cygwin*) template=win ;;
1395 darwin*) template=darwin ;;
1396 dgux*) template=dgux ;;
1397 freebsd*) template=freebsd ;;
1398 hpux*) template=hpux ;;
1399 irix*) template=irix5 ;;
1400 linux*) template=linux ;;
1401 netbsd*) template=netbsd ;;
1402 nextstep*) template=nextstep ;;
1403 openbsd*) template=openbsd ;;
1404 osf*) template=osf ;;
1405 qnx*) template=qnx4 ;;
1406 sco*) template=sco ;;
1407 solaris*) template=solaris ;;
1408 sunos*) template=sunos4 ;;
1410 case $host_vendor in
1411 univel) template=univel ;;
1413 sysv4*) template=svr4 ;;
1414 sysv5*) template=unixware ;;
1415 ultrix*) template=ultrix4 ;;
1418 if test x"$template" = x"" ; then
1419 { { echo "$as_me:$LINENO: error:
1420 *******************************************************************
1421 PostgreSQL has apparently not been ported to your platform yet.
1422 To try a manual configuration, look into the src/template directory
1423 for a similar platform and use the '--with-template=' option.
1425 Please also contact <pgsql-ports@postgresql.org> to see about
1426 rectifying this. Include the above 'checking host system type...'
1428 *******************************************************************
1430 echo "$as_me: error:
1431 *******************************************************************
1432 PostgreSQL has apparently not been ported to your platform yet.
1433 To try a manual configuration, look into the src/template directory
1434 for a similar platform and use the '--with-template=' option.
1436 Please also contact <pgsql-ports@postgresql.org> to see about
1437 rectifying this. Include the above 'checking host system type...'
1439 *******************************************************************
1441 { (exit 1); exit 1; }; }
1448 echo "$as_me:$LINENO: result: $template" >&5
1449 echo "${ECHO_T}$template" >&6
1454 # Pick right test-and-set (TAS) code. Most platforms have inline
1455 # assembler code in src/include/storage/s_lock.h, so we just use
1456 # a dummy file here.
1458 *-*-hpux*) need_tas=yes; tas_file=hpux.s ;;
1459 sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;;
1460 i?86-*-solaris*) need_tas=yes; tas_file=solaris_i386.s ;;
1461 *) need_tas=no; tas_file=dummy.s ;;
1463 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
1466 if test "$need_tas" = yes ; then
1474 ## Command line options
1479 # Add non-standard directories to the include path
1484 # Check whether --with-includes or --without-includes was given.
1485 if test "${with_includes+set}" = set; then
1486 withval="$with_includes"
1490 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1491 echo "$as_me: error: argument required for --with-includes option" >&2;}
1492 { (exit 1); exit 1; }; }
1495 { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
1496 echo "$as_me: error: argument required for --with-includes option" >&2;}
1497 { (exit 1); exit 1; }; }
1509 # Add non-standard directories to the library search path
1514 # Check whether --with-libraries or --without-libraries was given.
1515 if test "${with_libraries+set}" = set; then
1516 withval="$with_libraries"
1520 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1521 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1522 { (exit 1); exit 1; }; }
1525 { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
1526 echo "$as_me: error: argument required for --with-libraries option" >&2;}
1527 { (exit 1); exit 1; }; }
1530 LIBRARY_DIRS=$withval
1540 # Check whether --with-libs or --without-libs was given.
1541 if test "${with_libs+set}" = set; then
1542 withval="$with_libs"
1546 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1547 echo "$as_me: error: argument required for --with-libs option" >&2;}
1548 { (exit 1); exit 1; }; }
1551 { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
1552 echo "$as_me: error: argument required for --with-libs option" >&2;}
1553 { (exit 1); exit 1; }; }
1556 LIBRARY_DIRS=$withval
1565 # 64-bit integer date/time storage (--enable-integer-datetimes)
1567 echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
1568 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6
1571 # Check whether --enable-integer-datetimes or --disable-integer-datetimes was given.
1572 if test "${enable_integer_datetimes+set}" = set; then
1573 enableval="$enable_integer_datetimes"
1578 cat >>confdefs.h <<\_ACEOF
1579 #define USE_INTEGER_DATETIMES 1
1587 { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
1588 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
1589 { (exit 1); exit 1; }; }
1594 enable_integer_datetimes=no
1598 echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
1599 echo "${ECHO_T}$enable_integer_datetimes" >&6
1602 # Character set recode (--enable-recode)
1604 echo "$as_me:$LINENO: checking whether to build with recode support" >&5
1605 echo $ECHO_N "checking whether to build with recode support... $ECHO_C" >&6
1608 # Check whether --enable-recode or --disable-recode was given.
1609 if test "${enable_recode+set}" = set; then
1610 enableval="$enable_recode"
1615 cat >>confdefs.h <<\_ACEOF
1616 #define CYR_RECODE 1
1624 { { echo "$as_me:$LINENO: error: no argument expected for --enable-recode option" >&5
1625 echo "$as_me: error: no argument expected for --enable-recode option" >&2;}
1626 { (exit 1); exit 1; }; }
1635 echo "$as_me:$LINENO: result: $enable_recode" >&5
1636 echo "${ECHO_T}$enable_recode" >&6
1644 cat >>confdefs.h <<\_ACEOF
1653 echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
1654 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6
1657 # Check whether --enable-nls or --disable-nls was given.
1658 if test "${enable_nls+set}" = set; then
1659 enableval="$enable_nls"
1670 WANTED_LANGUAGES=$enableval
1679 if test "$enable_nls" = yes; then
1681 cat >>confdefs.h <<\_ACEOF
1682 #define ENABLE_NLS 1
1687 echo "$as_me:$LINENO: result: $enable_nls" >&5
1688 echo "${ECHO_T}$enable_nls" >&6
1693 # Default port number (--with-pgport), default 5432
1695 echo "$as_me:$LINENO: checking for default port number" >&5
1696 echo $ECHO_N "checking for default port number... $ECHO_C" >&6
1700 # Check whether --with-pgport or --without-pgport was given.
1701 if test "${with_pgport+set}" = set; then
1702 withval="$with_pgport"
1706 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1707 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1708 { (exit 1); exit 1; }; }
1711 { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
1712 echo "$as_me: error: argument required for --with-pgport option" >&2;}
1713 { (exit 1); exit 1; }; }
1716 default_port=$withval
1724 echo "$as_me:$LINENO: result: $default_port" >&5
1725 echo "${ECHO_T}$default_port" >&6
1726 # Need both of these because some places want an integer and some a string
1728 cat >>confdefs.h <<_ACEOF
1729 #define DEF_PGPORT ${default_port}
1733 cat >>confdefs.h <<_ACEOF
1734 #define DEF_PGPORT_STR "${default_port}"
1740 # Maximum number of allowed connections (--with-maxbackends), default 32
1742 echo "$as_me:$LINENO: checking for default soft limit on number of connections" >&5
1743 echo $ECHO_N "checking for default soft limit on number of connections... $ECHO_C" >&6
1747 # Check whether --with-maxbackends or --without-maxbackends was given.
1748 if test "${with_maxbackends+set}" = set; then
1749 withval="$with_maxbackends"
1753 { { echo "$as_me:$LINENO: error: argument required for --with-maxbackends option" >&5
1754 echo "$as_me: error: argument required for --with-maxbackends option" >&2;}
1755 { (exit 1); exit 1; }; }
1758 { { echo "$as_me:$LINENO: error: argument required for --with-maxbackends option" >&5
1759 echo "$as_me: error: argument required for --with-maxbackends option" >&2;}
1760 { (exit 1); exit 1; }; }
1771 echo "$as_me:$LINENO: result: $with_maxbackends" >&5
1772 echo "${ECHO_T}$with_maxbackends" >&6
1774 cat >>confdefs.h <<_ACEOF
1775 #define DEF_MAXBACKENDS $with_maxbackends
1781 # Option to disable shared libraries
1785 # Check whether --enable-shared or --disable-shared was given.
1786 if test "${enable_shared+set}" = set; then
1787 enableval="$enable_shared"
1797 { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
1798 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
1799 { (exit 1); exit 1; }; }
1811 # '-rpath'-like feature can be disabled
1815 # Check whether --enable-rpath or --disable-rpath was given.
1816 if test "${enable_rpath+set}" = set; then
1817 enableval="$enable_rpath"
1827 { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
1828 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
1829 { (exit 1); exit 1; }; }
1842 # --enable-debug adds -g to compiler flags
1846 # Check whether --enable-debug or --disable-debug was given.
1847 if test "${enable_debug+set}" = set; then
1848 enableval="$enable_debug"
1858 { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
1859 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
1860 { (exit 1); exit 1; }; }
1875 # For historical reasons you can also use --with-CC to specify the C compiler
1876 # to use, although the standard way to do this is to set the CC environment
1881 # Check whether --with-CC or --without-CC was given.
1882 if test "${with_CC+set}" = set; then
1887 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1888 echo "$as_me: error: argument required for --with-CC option" >&2;}
1889 { (exit 1); exit 1; }; }
1892 { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
1893 echo "$as_me: error: argument required for --with-CC option" >&2;}
1894 { (exit 1); exit 1; }; }
1905 aix) pgac_cc_list="gcc xlc";;
1906 irix) pgac_cc_list="cc";; # no gcc
1907 *) pgac_cc_list="gcc cc";;
1911 ac_cpp='$CPP $CPPFLAGS'
1912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1915 if test -n "$ac_tool_prefix"; then
1916 for ac_prog in $pgac_cc_list
1918 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1919 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1920 echo "$as_me:$LINENO: checking for $ac_word" >&5
1921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1922 if test "${ac_cv_prog_CC+set}" = set; then
1923 echo $ECHO_N "(cached) $ECHO_C" >&6
1925 if test -n "$CC"; then
1926 ac_cv_prog_CC="$CC" # Let the user override the test.
1928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1932 test -z "$as_dir" && as_dir=.
1933 for ac_exec_ext in '' $ac_executable_extensions; do
1934 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1935 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1945 if test -n "$CC"; then
1946 echo "$as_me:$LINENO: result: $CC" >&5
1947 echo "${ECHO_T}$CC" >&6
1949 echo "$as_me:$LINENO: result: no" >&5
1950 echo "${ECHO_T}no" >&6
1953 test -n "$CC" && break
1956 if test -z "$CC"; then
1958 for ac_prog in $pgac_cc_list
1960 # Extract the first word of "$ac_prog", so it can be a program name with args.
1961 set dummy $ac_prog; ac_word=$2
1962 echo "$as_me:$LINENO: checking for $ac_word" >&5
1963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1964 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1965 echo $ECHO_N "(cached) $ECHO_C" >&6
1967 if test -n "$ac_ct_CC"; then
1968 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1974 test -z "$as_dir" && as_dir=.
1975 for ac_exec_ext in '' $ac_executable_extensions; do
1976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1977 ac_cv_prog_ac_ct_CC="$ac_prog"
1978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1986 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1987 if test -n "$ac_ct_CC"; then
1988 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1989 echo "${ECHO_T}$ac_ct_CC" >&6
1991 echo "$as_me:$LINENO: result: no" >&5
1992 echo "${ECHO_T}no" >&6
1995 test -n "$ac_ct_CC" && break
2002 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2003 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2004 { (exit 1); exit 1; }; }
2006 # Provide some information about the compiler.
2007 echo "$as_me:$LINENO:" \
2008 "checking for C compiler version" >&5
2009 ac_compiler=`set X $ac_compile; echo $2`
2010 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2011 (eval $ac_compiler --version </dev/null >&5) 2>&5
2013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2014 (exit $ac_status); }
2015 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2016 (eval $ac_compiler -v </dev/null >&5) 2>&5
2018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2019 (exit $ac_status); }
2020 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2021 (eval $ac_compiler -V </dev/null >&5) 2>&5
2023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024 (exit $ac_status); }
2026 cat >conftest.$ac_ext <<_ACEOF
2027 #line $LINENO "configure"
2028 #include "confdefs.h"
2030 #ifdef F77_DUMMY_MAIN
2034 int F77_DUMMY_MAIN() { return 1; }
2044 ac_clean_files_save=$ac_clean_files
2045 ac_clean_files="$ac_clean_files a.out a.exe"
2046 # Try to create an executable without -o first, disregard a.out.
2047 # It will help us diagnose broken compilers, and finding out an intuition
2049 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2050 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2051 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2052 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2053 (eval $ac_link_default) 2>&5
2055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056 (exit $ac_status); }; then
2057 # Find the output, starting from the most likely. This scheme is
2058 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2061 # Be careful to initialize this variable, since it used to be cached.
2062 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2064 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2065 ls a.out conftest 2>/dev/null;
2066 ls a.* conftest.* 2>/dev/null`; do
2068 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2069 a.out ) # We found the default executable, but exeext='' is most
2072 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2073 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2080 echo "$as_me: failed program was:" >&5
2081 cat conftest.$ac_ext >&5
2082 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2083 echo "$as_me: error: C compiler cannot create executables" >&2;}
2084 { (exit 77); exit 77; }; }
2087 ac_exeext=$ac_cv_exeext
2088 echo "$as_me:$LINENO: result: $ac_file" >&5
2089 echo "${ECHO_T}$ac_file" >&6
2091 # Check the compiler produces executables we can run. If not, either
2092 # the compiler is broken, or we cross compile.
2093 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2094 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2095 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2096 # If not cross compiling, check that we can run a simple program.
2097 if test "$cross_compiling" != yes; then
2098 if { ac_try='./$ac_file'
2099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103 (exit $ac_status); }; }; then
2106 if test "$cross_compiling" = maybe; then
2109 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2110 If you meant to cross compile, use \`--host'." >&5
2111 echo "$as_me: error: cannot run C compiled programs.
2112 If you meant to cross compile, use \`--host'." >&2;}
2113 { (exit 1); exit 1; }; }
2117 echo "$as_me:$LINENO: result: yes" >&5
2118 echo "${ECHO_T}yes" >&6
2120 rm -f a.out a.exe conftest$ac_cv_exeext
2121 ac_clean_files=$ac_clean_files_save
2122 # Check the compiler produces executables we can run. If not, either
2123 # the compiler is broken, or we cross compile.
2124 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2125 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2126 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2127 echo "${ECHO_T}$cross_compiling" >&6
2129 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2130 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2132 (eval $ac_link) 2>&5
2134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135 (exit $ac_status); }; then
2136 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2137 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2138 # work properly (i.e., refer to `conftest.exe'), while it won't with
2140 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2142 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2143 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2150 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2151 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2152 { (exit 1); exit 1; }; }
2155 rm -f conftest$ac_cv_exeext
2156 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2157 echo "${ECHO_T}$ac_cv_exeext" >&6
2159 rm -f conftest.$ac_ext
2160 EXEEXT=$ac_cv_exeext
2162 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2163 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2164 if test "${ac_cv_objext+set}" = set; then
2165 echo $ECHO_N "(cached) $ECHO_C" >&6
2167 cat >conftest.$ac_ext <<_ACEOF
2168 #line $LINENO "configure"
2169 #include "confdefs.h"
2171 #ifdef F77_DUMMY_MAIN
2175 int F77_DUMMY_MAIN() { return 1; }
2185 rm -f conftest.o conftest.obj
2186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2187 (eval $ac_compile) 2>&5
2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190 (exit $ac_status); }; then
2191 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2193 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2194 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2199 echo "$as_me: failed program was:" >&5
2200 cat conftest.$ac_ext >&5
2201 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2202 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2203 { (exit 1); exit 1; }; }
2206 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2208 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2209 echo "${ECHO_T}$ac_cv_objext" >&6
2210 OBJEXT=$ac_cv_objext
2212 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2213 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2214 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2215 echo $ECHO_N "(cached) $ECHO_C" >&6
2217 cat >conftest.$ac_ext <<_ACEOF
2218 #line $LINENO "configure"
2219 #include "confdefs.h"
2221 #ifdef F77_DUMMY_MAIN
2225 int F77_DUMMY_MAIN() { return 1; }
2238 rm -f conftest.$ac_objext
2239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2240 (eval $ac_compile) 2>&5
2242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243 (exit $ac_status); } &&
2244 { ac_try='test -s conftest.$ac_objext'
2245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249 (exit $ac_status); }; }; then
2252 echo "$as_me: failed program was:" >&5
2253 cat conftest.$ac_ext >&5
2256 rm -f conftest.$ac_objext conftest.$ac_ext
2257 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2260 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2261 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2262 GCC=`test $ac_compiler_gnu = yes && echo yes`
2263 ac_test_CFLAGS=${CFLAGS+set}
2264 ac_save_CFLAGS=$CFLAGS
2266 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2267 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2268 if test "${ac_cv_prog_cc_g+set}" = set; then
2269 echo $ECHO_N "(cached) $ECHO_C" >&6
2271 cat >conftest.$ac_ext <<_ACEOF
2272 #line $LINENO "configure"
2273 #include "confdefs.h"
2275 #ifdef F77_DUMMY_MAIN
2279 int F77_DUMMY_MAIN() { return 1; }
2289 rm -f conftest.$ac_objext
2290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2291 (eval $ac_compile) 2>&5
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); } &&
2295 { ac_try='test -s conftest.$ac_objext'
2296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300 (exit $ac_status); }; }; then
2303 echo "$as_me: failed program was:" >&5
2304 cat conftest.$ac_ext >&5
2307 rm -f conftest.$ac_objext conftest.$ac_ext
2309 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2310 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2311 if test "$ac_test_CFLAGS" = set; then
2312 CFLAGS=$ac_save_CFLAGS
2313 elif test $ac_cv_prog_cc_g = yes; then
2314 if test "$GCC" = yes; then
2320 if test "$GCC" = yes; then
2326 # Some people use a C++ compiler to compile C. Since we use `exit',
2327 # in C++ we need to declare it. In case someone uses the same compiler
2328 # for both compiling C and C++ we need to have the C++ compiler decide
2329 # the declaration of exit, since it's the most demanding environment.
2330 cat >conftest.$ac_ext <<_ACEOF
2335 rm -f conftest.$ac_objext
2336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2337 (eval $ac_compile) 2>&5
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); } &&
2341 { ac_try='test -s conftest.$ac_objext'
2342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); }; }; then
2347 for ac_declaration in \
2349 '#include <stdlib.h>' \
2350 'extern "C" void std::exit (int) throw (); using std::exit;' \
2351 'extern "C" void std::exit (int); using std::exit;' \
2352 'extern "C" void exit (int) throw ();' \
2353 'extern "C" void exit (int);' \
2356 cat >conftest.$ac_ext <<_ACEOF
2357 #line $LINENO "configure"
2358 #include "confdefs.h"
2361 #ifdef F77_DUMMY_MAIN
2365 int F77_DUMMY_MAIN() { return 1; }
2375 rm -f conftest.$ac_objext
2376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2377 (eval $ac_compile) 2>&5
2379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380 (exit $ac_status); } &&
2381 { ac_try='test -s conftest.$ac_objext'
2382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); }; }; then
2389 echo "$as_me: failed program was:" >&5
2390 cat conftest.$ac_ext >&5
2393 rm -f conftest.$ac_objext conftest.$ac_ext
2394 cat >conftest.$ac_ext <<_ACEOF
2395 #line $LINENO "configure"
2396 #include "confdefs.h"
2398 #ifdef F77_DUMMY_MAIN
2402 int F77_DUMMY_MAIN() { return 1; }
2412 rm -f conftest.$ac_objext
2413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2414 (eval $ac_compile) 2>&5
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); } &&
2418 { ac_try='test -s conftest.$ac_objext'
2419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); }; }; then
2426 echo "$as_me: failed program was:" >&5
2427 cat conftest.$ac_ext >&5
2429 rm -f conftest.$ac_objext conftest.$ac_ext
2432 if test -n "$ac_declaration"; then
2433 echo '#ifdef __cplusplus' >>confdefs.h
2434 echo $ac_declaration >>confdefs.h
2435 echo '#endif' >>confdefs.h
2439 echo "$as_me: failed program was:" >&5
2440 cat conftest.$ac_ext >&5
2442 rm -f conftest.$ac_objext conftest.$ac_ext
2444 ac_cpp='$CPP $CPPFLAGS'
2445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2450 . "$srcdir/src/template/$template" || exit
2452 if test "$ac_env_CFLAGS_set" = set; then
2453 CFLAGS=$ac_env_CFLAGS_value
2455 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
2458 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
2459 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
2460 # Check if the compiler still works with the template settings
2461 echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
2462 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6
2464 cat >conftest.$ac_ext <<_ACEOF
2465 #line $LINENO "configure"
2466 #include "confdefs.h"
2468 #ifdef F77_DUMMY_MAIN
2472 int F77_DUMMY_MAIN() { return 1; }
2482 rm -f conftest.$ac_objext conftest$ac_exeext
2483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2484 (eval $ac_link) 2>&5
2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487 (exit $ac_status); } &&
2488 { ac_try='test -s conftest$ac_exeext'
2489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); }; }; then
2494 echo "$as_me:$LINENO: result: yes" >&5
2495 echo "${ECHO_T}yes" >&6
2497 echo "$as_me: failed program was:" >&5
2498 cat conftest.$ac_ext >&5
2499 echo "$as_me:$LINENO: result: no" >&5
2500 echo "${ECHO_T}no" >&6
2501 { { echo "$as_me:$LINENO: error: cannot proceed" >&5
2502 echo "$as_me: error: cannot proceed" >&2;}
2503 { (exit 1); exit 1; }; }
2505 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2507 ac_cpp='$CPP $CPPFLAGS'
2508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2511 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2512 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2513 # On Suns, sometimes $CPP names a directory.
2514 if test -n "$CPP" && test -d "$CPP"; then
2517 if test -z "$CPP"; then
2518 if test "${ac_cv_prog_CPP+set}" = set; then
2519 echo $ECHO_N "(cached) $ECHO_C" >&6
2521 # Double quotes because CPP needs to be expanded
2522 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2525 for ac_c_preproc_warn_flag in '' yes
2527 # Use a header file that comes with gcc, so configuring glibc
2528 # with a fresh cross-compiler works.
2529 # On the NeXT, cc -E runs the code through the compiler's parser,
2530 # not just through cpp. "Syntax error" is here to catch this case.
2531 cat >conftest.$ac_ext <<_ACEOF
2532 #line $LINENO "configure"
2533 #include "confdefs.h"
2537 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2538 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2540 egrep -v '^ *\+' conftest.er1 >conftest.err
2542 cat conftest.err >&5
2543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544 (exit $ac_status); } >/dev/null; then
2545 if test -s conftest.err; then
2546 ac_cpp_err=$ac_c_preproc_warn_flag
2553 if test -z "$ac_cpp_err"; then
2556 echo "$as_me: failed program was:" >&5
2557 cat conftest.$ac_ext >&5
2558 # Broken: fails on valid input.
2561 rm -f conftest.err conftest.$ac_ext
2563 # OK, works on sane cases. Now check whether non-existent headers
2564 # can be detected and how.
2565 cat >conftest.$ac_ext <<_ACEOF
2566 #line $LINENO "configure"
2567 #include "confdefs.h"
2568 #include <ac_nonexistent.h>
2570 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2571 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2573 egrep -v '^ *\+' conftest.er1 >conftest.err
2575 cat conftest.err >&5
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); } >/dev/null; then
2578 if test -s conftest.err; then
2579 ac_cpp_err=$ac_c_preproc_warn_flag
2586 if test -z "$ac_cpp_err"; then
2587 # Broken: success on invalid input.
2590 echo "$as_me: failed program was:" >&5
2591 cat conftest.$ac_ext >&5
2592 # Passes both tests.
2596 rm -f conftest.err conftest.$ac_ext
2599 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2600 rm -f conftest.err conftest.$ac_ext
2601 if $ac_preproc_ok; then
2613 echo "$as_me:$LINENO: result: $CPP" >&5
2614 echo "${ECHO_T}$CPP" >&6
2616 for ac_c_preproc_warn_flag in '' yes
2618 # Use a header file that comes with gcc, so configuring glibc
2619 # with a fresh cross-compiler works.
2620 # On the NeXT, cc -E runs the code through the compiler's parser,
2621 # not just through cpp. "Syntax error" is here to catch this case.
2622 cat >conftest.$ac_ext <<_ACEOF
2623 #line $LINENO "configure"
2624 #include "confdefs.h"
2628 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2629 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2631 egrep -v '^ *\+' conftest.er1 >conftest.err
2633 cat conftest.err >&5
2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635 (exit $ac_status); } >/dev/null; then
2636 if test -s conftest.err; then
2637 ac_cpp_err=$ac_c_preproc_warn_flag
2644 if test -z "$ac_cpp_err"; then
2647 echo "$as_me: failed program was:" >&5
2648 cat conftest.$ac_ext >&5
2649 # Broken: fails on valid input.
2652 rm -f conftest.err conftest.$ac_ext
2654 # OK, works on sane cases. Now check whether non-existent headers
2655 # can be detected and how.
2656 cat >conftest.$ac_ext <<_ACEOF
2657 #line $LINENO "configure"
2658 #include "confdefs.h"
2659 #include <ac_nonexistent.h>
2661 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2662 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2664 egrep -v '^ *\+' conftest.er1 >conftest.err
2666 cat conftest.err >&5
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); } >/dev/null; then
2669 if test -s conftest.err; then
2670 ac_cpp_err=$ac_c_preproc_warn_flag
2677 if test -z "$ac_cpp_err"; then
2678 # Broken: success on invalid input.
2681 echo "$as_me: failed program was:" >&5
2682 cat conftest.$ac_ext >&5
2683 # Passes both tests.
2687 rm -f conftest.err conftest.$ac_ext
2690 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2691 rm -f conftest.err conftest.$ac_ext
2692 if $ac_preproc_ok; then
2695 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2696 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2697 { (exit 1); exit 1; }; }
2701 ac_cpp='$CPP $CPPFLAGS'
2702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2708 # Create compiler version string
2709 if test x"$GCC" = x"yes" ; then
2710 cc_string="GCC `${CC} --version | sed q`"
2715 cat >>confdefs.h <<_ACEOF
2716 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
2722 # Automatic dependency tracking
2726 # Check whether --enable-depend or --disable-depend was given.
2727 if test "${enable_depend+set}" = set; then
2728 enableval="$enable_depend"
2738 { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
2739 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
2740 { (exit 1); exit 1; }; }
2753 # Enable assert checks
2757 # Check whether --enable-cassert or --disable-cassert was given.
2758 if test "${enable_cassert+set}" = set; then
2759 enableval="$enable_cassert"
2764 cat >>confdefs.h <<\_ACEOF
2765 #define USE_ASSERT_CHECKING 1
2773 { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
2774 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
2775 { (exit 1); exit 1; }; }
2787 # Include directories
2791 # SRCH_INC comes from the template file
2792 for dir in $with_includes $SRCH_INC; do
2793 if test -d "$dir"; then
2794 INCLUDES="$INCLUDES -I$dir"
2796 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2797 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2805 # Library directories
2809 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
2810 for dir in $LIBRARY_DIRS $SRCH_LIB; do
2811 if test -d "$dir"; then
2812 LIBDIRS="$LIBDIRS -L$dir"
2814 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2815 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2824 echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
2825 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
2829 # Check whether --with-tcl or --without-tcl was given.
2830 if test "${with_tcl+set}" = set; then
2841 { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
2842 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
2843 { (exit 1); exit 1; }; }
2852 echo "$as_me:$LINENO: result: $with_tcl" >&5
2853 echo "${ECHO_T}$with_tcl" >&6
2856 # If Tcl is enabled (above) then Tk is also, unless the user disables it using --without-tk
2857 echo "$as_me:$LINENO: checking whether to build with Tk" >&5
2858 echo $ECHO_N "checking whether to build with Tk... $ECHO_C" >&6
2859 if test "$with_tcl" = yes; then
2863 # Check whether --with-tk or --without-tk was given.
2864 if test "${with_tk+set}" = set; then
2875 { { echo "$as_me:$LINENO: error: no argument expected for --with-tk option" >&5
2876 echo "$as_me: error: no argument expected for --with-tk option" >&2;}
2877 { (exit 1); exit 1; }; }
2889 echo "$as_me:$LINENO: result: $with_tk" >&5
2890 echo "${ECHO_T}$with_tk" >&6
2894 # We see if the path to the Tcl/Tk configuration scripts is specified.
2895 # This will override the use of tclsh to find the paths to search.
2900 # Check whether --with-tclconfig or --without-tclconfig was given.
2901 if test "${with_tclconfig+set}" = set; then
2902 withval="$with_tclconfig"
2906 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2907 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2908 { (exit 1); exit 1; }; }
2911 { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
2912 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
2913 { (exit 1); exit 1; }; }
2923 # We see if the path to the Tk configuration scripts is specified.
2924 # This will override the use of tclsh to find the paths to search.
2929 # Check whether --with-tkconfig or --without-tkconfig was given.
2930 if test "${with_tkconfig+set}" = set; then
2931 withval="$with_tkconfig"
2935 { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2936 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2937 { (exit 1); exit 1; }; }
2940 { { echo "$as_me:$LINENO: error: argument required for --with-tkconfig option" >&5
2941 echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
2942 { (exit 1); exit 1; }; }
2953 # Optionally build Perl modules (Pg.pm and PL/Perl)
2955 echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
2956 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6
2960 # Check whether --with-perl or --without-perl was given.
2961 if test "${with_perl+set}" = set; then
2962 withval="$with_perl"
2972 { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
2973 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
2974 { (exit 1); exit 1; }; }
2983 echo "$as_me:$LINENO: result: $with_perl" >&5
2984 echo "${ECHO_T}$with_perl" >&6
2988 # Optionally build Python interface module
2990 echo "$as_me:$LINENO: checking whether to build Python modules" >&5
2991 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6
2995 # Check whether --with-python or --without-python was given.
2996 if test "${with_python+set}" = set; then
2997 withval="$with_python"
3007 { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
3008 echo "$as_me: error: no argument expected for --with-python option" >&2;}
3009 { (exit 1); exit 1; }; }
3018 echo "$as_me:$LINENO: result: $with_python" >&5
3019 echo "${ECHO_T}$with_python" >&6
3023 # Optionally build the Java/JDBC tools
3025 echo "$as_me:$LINENO: checking whether to build Java/JDBC tools" >&5
3026 echo $ECHO_N "checking whether to build Java/JDBC tools... $ECHO_C" >&6
3030 # Check whether --with-java or --without-java was given.
3031 if test "${with_java+set}" = set; then
3032 withval="$with_java"
3036 echo "$as_me:$LINENO: result: yes" >&5
3037 echo "${ECHO_T}yes" >&6
3039 for ac_prog in jakarta-ant ant ant.sh ant.bat
3041 # Extract the first word of "$ac_prog", so it can be a program name with args.
3042 set dummy $ac_prog; ac_word=$2
3043 echo "$as_me:$LINENO: checking for $ac_word" >&5
3044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3045 if test "${ac_cv_path_ANT+set}" = set; then
3046 echo $ECHO_N "(cached) $ECHO_C" >&6
3050 ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
3053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057 test -z "$as_dir" && as_dir=.
3058 for ac_exec_ext in '' $ac_executable_extensions; do
3059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3060 ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
3061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3072 if test -n "$ANT"; then
3073 echo "$as_me:$LINENO: result: $ANT" >&5
3074 echo "${ECHO_T}$ANT" >&6
3076 echo "$as_me:$LINENO: result: no" >&5
3077 echo "${ECHO_T}no" >&6
3080 test -n "$ANT" && break
3084 echo "$as_me:$LINENO: checking whether $ANT works" >&5
3085 echo $ECHO_N "checking whether $ANT works... $ECHO_C" >&6
3086 if test "${pgac_cv_prog_ant_works+set}" = set; then
3087 echo $ECHO_N "(cached) $ECHO_C" >&6
3090 cat > conftest.java << EOF
3091 public class conftest {
3092 int testmethod(int a, int b) {
3098 cat > conftest.xml << EOF
3099 <project name="conftest" default="conftest">
3100 <target name="conftest">
3101 <javac srcdir="." includes="conftest.java">
3107 pgac_cmd='$ANT -buildfile conftest.xml 1>&2'
3108 { (eval echo "$as_me:$LINENO: \"$pgac_cmd\"") >&5
3109 (eval $pgac_cmd) 2>&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); }
3114 if test $? = 0 && test -f ./conftest.class ; then
3115 pgac_cv_prog_ant_works=yes
3117 echo "configure: failed java program was:" >&5
3118 cat conftest.java >&5
3119 echo "configure: failed build file was:" >&5
3120 cat conftest.xml >&5
3121 pgac_cv_prog_ant_works=no
3124 rm -f conftest* core core.* *.core
3127 echo "$as_me:$LINENO: result: $pgac_cv_prog_ant_works" >&5
3128 echo "${ECHO_T}$pgac_cv_prog_ant_works" >&6
3130 if test "$pgac_cv_prog_ant_works" != yes; then
3131 { { echo "$as_me:$LINENO: error: ant does not work" >&5
3132 echo "$as_me: error: ant does not work" >&2;}
3133 { (exit 1); exit 1; }; }
3137 if test -z "$ANT"; then
3138 { { echo "$as_me:$LINENO: error: Ant is required to build Java components" >&5
3139 echo "$as_me: error: Ant is required to build Java components" >&2;}
3140 { (exit 1); exit 1; }; }
3144 echo "$as_me:$LINENO: result: no" >&5
3145 echo "${ECHO_T}no" >&6
3148 { { echo "$as_me:$LINENO: error: no argument expected for --with-java option" >&5
3149 echo "$as_me: error: no argument expected for --with-java option" >&2;}
3150 { (exit 1); exit 1; }; }
3156 echo "$as_me:$LINENO: result: no" >&5
3157 echo "${ECHO_T}no" >&6
3166 echo "$as_me:$LINENO: checking whether to build with Kerberos 4 support" >&5
3167 echo $ECHO_N "checking whether to build with Kerberos 4 support... $ECHO_C" >&6
3171 # Check whether --with-krb4 or --without-krb4 was given.
3172 if test "${with_krb4+set}" = set; then
3173 withval="$with_krb4"
3177 krb4_prefix=/usr/athena
3184 krb4_prefix=$withval
3193 if test "$with_krb4" = yes; then
3195 echo "$as_me:$LINENO: result: yes" >&5
3196 echo "${ECHO_T}yes" >&6
3198 cat >>confdefs.h <<\_ACEOF
3203 if test -d "$krb4_prefix/include"; then
3204 INCLUDES="$INCLUDES -I$krb4_prefix/include"
3206 if test -d "$krb4_prefix/lib"; then
3207 LIBDIRS="$LIBDIRS -L$krb4_prefix/lib"
3210 krb_srvtab="/etc/srvtab"
3213 echo "$as_me:$LINENO: result: no" >&5
3214 echo "${ECHO_T}no" >&6
3224 echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
3225 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6
3229 # Check whether --with-krb5 or --without-krb5 was given.
3230 if test "${with_krb5+set}" = set; then
3231 withval="$with_krb5"
3235 krb5_prefix=/usr/athena
3242 krb5_prefix=$withval
3251 if test "$with_krb5" = yes; then
3253 echo "$as_me:$LINENO: result: yes" >&5
3254 echo "${ECHO_T}yes" >&6
3256 cat >>confdefs.h <<\_ACEOF
3261 if test -d "$krb5_prefix/include"; then
3262 INCLUDES="$INCLUDES -I$krb5_prefix/include"
3264 if test -d "$krb5_prefix/lib"; then
3265 LIBDIRS="$LIBDIRS -L$krb5_prefix/lib"
3268 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
3271 echo "$as_me:$LINENO: result: no" >&5
3272 echo "${ECHO_T}no" >&6
3279 # Using both Kerberos 4 and Kerberos 5 at the same time isn't going to work.
3280 if test "$with_krb4" = yes && test "$with_krb5" = yes ; then
3281 { { echo "$as_me:$LINENO: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&5
3282 echo "$as_me: error: Kerberos 4 and Kerberos 5 support cannot be combined" >&2;}
3283 { (exit 1); exit 1; }; }
3290 # Kerberos configuration parameters
3295 # Check whether --with-krb-srvnam or --without-krb-srvnam was given.
3296 if test "${with_krb_srvnam+set}" = set; then
3297 withval="$with_krb_srvnam"
3301 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3302 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3303 { (exit 1); exit 1; }; }
3306 { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
3307 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
3308 { (exit 1); exit 1; }; }
3316 with_krb_srvnam="postgres"
3320 cat >>confdefs.h <<_ACEOF
3321 #define PG_KRB_SRVNAM "$with_krb_srvnam"
3329 echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
3330 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6
3334 # Check whether --with-pam or --without-pam was given.
3335 if test "${with_pam+set}" = set; then
3341 cat >>confdefs.h <<\_ACEOF
3350 { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
3351 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
3352 { (exit 1); exit 1; }; }
3361 echo "$as_me:$LINENO: result: $with_pam" >&5
3362 echo "${ECHO_T}$with_pam" >&6
3372 # Check whether --with-openssl or --without-openssl was given.
3373 if test "${with_openssl+set}" = set; then
3374 withval="$with_openssl"
3378 openssl_prefix=/usr/local/ssl
3385 openssl_prefix=$withval
3394 if test "$with_openssl" = yes; then
3396 echo "$as_me:$LINENO: result: building with OpenSSL support" >&5
3397 echo "${ECHO_T}building with OpenSSL support" >&6
3399 cat >>confdefs.h <<\_ACEOF
3404 if test -d "${openssl_prefix}/include" ; then
3405 INCLUDES="$INCLUDES -I${openssl_prefix}/include"
3407 if test -d "${openssl_prefix}/lib" ; then
3408 LIBDIRS="$LIBDIRS -L${openssl_prefix}/lib"
3423 # Check whether --with-readline or --without-readline was given.
3424 if test "${with_readline+set}" = set; then
3425 withval="$with_readline"
3435 { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
3436 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
3437 { (exit 1); exit 1; }; }
3453 # Check whether --with-zlib or --without-zlib was given.
3454 if test "${with_zlib+set}" = set; then
3455 withval="$with_zlib"
3465 { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
3466 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
3467 { (exit 1); exit 1; }; }
3480 # Optionally enable the building of the ODBC driver
3484 if test "${with_odbc+set}" = set && test "${enable_odbc+set}" != set; then
3485 enable_odbc=$with_odbc
3488 echo "$as_me:$LINENO: checking whether to build the ODBC driver" >&5
3489 echo $ECHO_N "checking whether to build the ODBC driver... $ECHO_C" >&6
3492 # Check whether --enable-odbc or --disable-odbc was given.
3493 if test "${enable_odbc+set}" = set; then
3494 enableval="$enable_odbc"
3504 { { echo "$as_me:$LINENO: error: no argument expected for --enable-odbc option" >&5
3505 echo "$as_me: error: no argument expected for --enable-odbc option" >&2;}
3506 { (exit 1); exit 1; }; }
3518 # Check whether --with-unixodbc or --without-unixodbc was given.
3519 if test "${with_unixodbc+set}" = set; then
3520 withval="$with_unixodbc"
3530 { { echo "$as_me:$LINENO: error: no argument expected for --with-unixodbc option" >&5
3531 echo "$as_me: error: no argument expected for --with-unixodbc option" >&2;}
3532 { (exit 1); exit 1; }; }
3544 # Check whether --with-iodbc or --without-iodbc was given.
3545 if test "${with_iodbc+set}" = set; then
3546 withval="$with_iodbc"
3556 { { echo "$as_me:$LINENO: error: no argument expected for --with-iodbc option" >&5
3557 echo "$as_me: error: no argument expected for --with-iodbc option" >&2;}
3558 { (exit 1); exit 1; }; }
3567 if test "$with_unixodbc" = yes && test "$with_iodbc" = yes; then
3568 { { echo "$as_me:$LINENO: error: ODBC driver cannot be built for both unixODBC and iODBC" >&5
3569 echo "$as_me: error: ODBC driver cannot be built for both unixODBC and iODBC" >&2;}
3570 { (exit 1); exit 1; }; }
3572 if test "$with_unixodbc" = yes || test "$with_iodbc" = yes; then
3575 case $enable_odbc:$with_unixodbc:$with_iodbc in
3576 yes:no:no) echo "$as_me:$LINENO: result: yes (stand-alone)" >&5
3577 echo "${ECHO_T}yes (stand-alone)" >&6;;
3578 yes:yes:no) echo "$as_me:$LINENO: result: yes (unixODBC)" >&5
3579 echo "${ECHO_T}yes (unixODBC)" >&6
3581 cat >>confdefs.h <<\_ACEOF
3582 #define WITH_UNIXODBC 1
3586 yes:no:yes) echo "$as_me:$LINENO: result: yes (iODBC)" >&5
3587 echo "${ECHO_T}yes (iODBC)" >&6
3589 cat >>confdefs.h <<\_ACEOF
3590 #define WITH_IODBC 1
3594 no:*) echo "$as_me:$LINENO: result: no" >&5
3595 echo "${ECHO_T}no" >&6;;
3602 # Allow for overriding the default location of the odbcinst.ini
3603 # file which is normally ${sysconfdir} (i.e., ${prefix}/etc).
3607 # Check whether --with-odbcinst or --without-odbcinst was given.
3608 if test "${with_odbcinst+set}" = set; then
3609 withval="$with_odbcinst"
3613 { { echo "$as_me:$LINENO: error: argument required for --with-odbcinst option" >&5
3614 echo "$as_me: error: argument required for --with-odbcinst option" >&2;}
3615 { (exit 1); exit 1; }; }
3618 { { echo "$as_me:$LINENO: error: argument required for --with-odbcinst option" >&5
3619 echo "$as_me: error: argument required for --with-odbcinst option" >&2;}
3620 { (exit 1); exit 1; }; }
3623 odbcinst_ini_dir=$withval
3628 odbcinst_ini_dir="\${sysconfdir}"
3635 # Assume system is ELF if it predefines __ELF__ as 1,
3636 # otherwise believe host_os based default.
3638 freebsd1*|freebsd2*) elf=no;;
3639 freebsd3*|freebsd4*) elf=yes;;
3643 cat >conftest.$ac_ext <<_ACEOF
3644 #line $LINENO "configure"
3645 #include "confdefs.h"
3651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3652 egrep "yes" >/dev/null 2>&1; then
3655 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
4254 if test -z "$YACC"; then
4255 { echo "$as_me:$LINENO: WARNING:
4256 *** Without Bison you will not be able to build PostgreSQL from CVS or
4257 *** change any of the parser definition files. You can obtain Bison from
4258 *** a GNU mirror site. (If you are using the official distribution of
4259 *** PostgreSQL then you do not need to worry about this because the Bison
4260 *** output is pre-generated.) To use a different yacc program (possible,
4261 *** but not recommended), set the environment variable YACC before running
4262 *** 'configure'." >&5
4263 echo "$as_me: WARNING:
4264 *** Without Bison you will not be able to build PostgreSQL from CVS or
4265 *** change any of the parser definition files. You can obtain Bison from
4266 *** a GNU mirror site. (If you are using the official distribution of
4267 *** PostgreSQL then you do not need to worry about this because the Bison
4268 *** output is pre-generated.) To use a different yacc program (possible,
4269 *** but not recommended), set the environment variable YACC before running
4270 *** 'configure'." >&2;}
4274 if test "$with_tk" = yes; then
4275 # Extract the first word of "wish", so it can be a program name with args.
4276 set dummy wish; ac_word=$2
4277 echo "$as_me:$LINENO: checking for $ac_word" >&5
4278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4279 if test "${ac_cv_path_WISH+set}" = set; then
4280 echo $ECHO_N "(cached) $ECHO_C" >&6
4284 ac_cv_path_WISH="$WISH" # Let the user override the test with a path.
4287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4291 test -z "$as_dir" && as_dir=.
4292 for ac_exec_ext in '' $ac_executable_extensions; do
4293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4294 ac_cv_path_WISH="$as_dir/$ac_word$ac_exec_ext"
4295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4304 WISH=$ac_cv_path_WISH
4306 if test -n "$WISH"; then
4307 echo "$as_me:$LINENO: result: $WISH" >&5
4308 echo "${ECHO_T}$WISH" >&6
4310 echo "$as_me:$LINENO: result: no" >&5
4311 echo "${ECHO_T}no" >&6
4314 test -z "$WISH" && { { echo "$as_me:$LINENO: error: 'wish' is required for Tk support" >&5
4315 echo "$as_me: error: 'wish' is required for Tk support" >&2;}
4316 { (exit 1); exit 1; }; }
4319 # Extract the first word of "perl", so it can be a program name with args.
4320 set dummy perl; ac_word=$2
4321 echo "$as_me:$LINENO: checking for $ac_word" >&5
4322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4323 if test "${ac_cv_path_PERL+set}" = set; then
4324 echo $ECHO_N "(cached) $ECHO_C" >&6
4328 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335 test -z "$as_dir" && as_dir=.
4336 for ac_exec_ext in '' $ac_executable_extensions; do
4337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4338 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4348 PERL=$ac_cv_path_PERL
4350 if test -n "$PERL"; then
4351 echo "$as_me:$LINENO: result: $PERL" >&5
4352 echo "${ECHO_T}$PERL" >&6
4354 echo "$as_me:$LINENO: result: no" >&5
4355 echo "${ECHO_T}no" >&6
4358 if test "$with_perl" = yes; then
4360 echo "$as_me:$LINENO: checking for Perl installsitearch" >&5
4361 echo $ECHO_N "checking for Perl installsitearch... $ECHO_C" >&6
4362 perl_installsitearch=`$PERL -MConfig -e 'print $Config{installsitearch}'`
4363 echo "$as_me:$LINENO: result: $perl_installsitearch" >&5
4364 echo "${ECHO_T}$perl_installsitearch" >&6
4365 echo "$as_me:$LINENO: checking for Perl installman3dir" >&5
4366 echo $ECHO_N "checking for Perl installman3dir... $ECHO_C" >&6
4367 perl_installman3dir=`$PERL -MConfig -e 'print $Config{installman3dir}'`
4368 echo "$as_me:$LINENO: result: $perl_installman3dir" >&5
4369 echo "${ECHO_T}$perl_installman3dir" >&6
4370 echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
4371 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6
4372 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
4373 echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
4374 echo "${ECHO_T}$perl_archlibexp" >&6
4375 echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
4376 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6
4377 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
4378 echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
4379 echo "${ECHO_T}$perl_privlibexp" >&6
4380 echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
4381 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6
4382 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
4383 echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
4384 echo "${ECHO_T}$perl_useshrplib" >&6
4385 echo "$as_me:$LINENO: checking for Perl man3ext" >&5
4386 echo $ECHO_N "checking for Perl man3ext... $ECHO_C" >&6
4387 perl_man3ext=`$PERL -MConfig -e 'print $Config{man3ext}'`
4388 echo "$as_me:$LINENO: result: $perl_man3ext" >&5
4389 echo "${ECHO_T}$perl_man3ext" >&6
4391 echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
4392 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6
4393 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
4394 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
4395 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
4396 echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
4397 echo "${ECHO_T}$perl_embed_ldflags" >&6
4400 if test "$with_python" = yes; then
4401 # Extract the first word of "python", so it can be a program name with args.
4402 set dummy python; ac_word=$2
4403 echo "$as_me:$LINENO: checking for $ac_word" >&5
4404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4405 if test "${ac_cv_path_PYTHON+set}" = set; then
4406 echo $ECHO_N "(cached) $ECHO_C" >&6
4410 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4417 test -z "$as_dir" && as_dir=.
4418 for ac_exec_ext in '' $ac_executable_extensions; do
4419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4420 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4430 PYTHON=$ac_cv_path_PYTHON
4432 if test -n "$PYTHON"; then
4433 echo "$as_me:$LINENO: result: $PYTHON" >&5
4434 echo "${ECHO_T}$PYTHON" >&6
4436 echo "$as_me:$LINENO: result: no" >&5
4437 echo "${ECHO_T}no" >&6
4440 if test x"$PYTHON" = x""; then
4441 { { echo "$as_me:$LINENO: error: Python not found" >&5
4442 echo "$as_me: error: Python not found" >&2;}
4443 { (exit 1); exit 1; }; }
4447 echo "$as_me:$LINENO: checking Python installation directories" >&5
4448 echo $ECHO_N "checking Python installation directories... $ECHO_C" >&6
4449 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
4450 python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
4451 python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
4452 python_configdir="${python_execprefix}/lib/python${python_version}/config"
4453 python_moduledir="${python_prefix}/lib/python${python_version}/site-packages"
4454 python_moduleexecdir="${python_execprefix}/lib/python${python_version}/site-packages"
4455 python_includespec="-I${python_prefix}/include/python${python_version}"
4456 if test "$python_prefix" != "$python_execprefix"; then
4457 python_includespec="-I${python_execprefix}/include/python${python_version} $python_includespec"
4460 # This should be enough of a message.
4461 if test "$python_prefix" != "$python_execprefix"; then
4462 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&5
4463 echo "${ECHO_T}$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}" >&6
4465 echo "$as_me:$LINENO: result: $python_prefix/lib/python${python_version}" >&5
4466 echo "${ECHO_T}$python_prefix/lib/python${python_version}" >&6
4473 echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
4474 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6
4476 _python_libs=`grep '^LIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4477 _python_libc=`grep '^LIBC=' $python_configdir/Makefile | sed 's/^.*=//'`
4478 _python_libm=`grep '^LIBM=' $python_configdir/Makefile | sed 's/^.*=//'`
4479 _python_liblocalmod=`grep '^LOCALMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4480 _python_libbasemod=`grep '^BASEMODLIBS=' $python_configdir/Makefile | sed 's/^.*=//'`
4482 pgac_tab=" " # tab character
4483 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"`
4485 echo "$as_me:$LINENO: result: ${python_libspec}" >&5
4486 echo "${ECHO_T}${python_libspec}" >&6
4496 if test "$PORTNAME" != "aix" -a "$PORTNAME" != "alpha"
4499 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
4500 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
4501 if test "${ac_cv_lib_bsd_main+set}" = set; then
4502 echo $ECHO_N "(cached) $ECHO_C" >&6
4504 ac_check_lib_save_LIBS=$LIBS
4506 cat >conftest.$ac_ext <<_ACEOF
4507 #line $LINENO "configure"
4508 #include "confdefs.h"
4511 #ifdef F77_DUMMY_MAIN
4515 int F77_DUMMY_MAIN() { return 1; }
4525 rm -f conftest.$ac_objext conftest$ac_exeext
4526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4527 (eval $ac_link) 2>&5
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); } &&
4531 { ac_try='test -s conftest$ac_exeext'
4532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); }; }; then
4537 ac_cv_lib_bsd_main=yes
4539 echo "$as_me: failed program was:" >&5
4540 cat conftest.$ac_ext >&5
4541 ac_cv_lib_bsd_main=no
4543 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4544 LIBS=$ac_check_lib_save_LIBS
4546 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
4547 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
4548 if test $ac_cv_lib_bsd_main = yes; then
4549 cat >>confdefs.h <<_ACEOF
4550 #define HAVE_LIBBSD 1
4559 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
4560 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
4561 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
4562 echo $ECHO_N "(cached) $ECHO_C" >&6
4564 ac_check_lib_save_LIBS=$LIBS
4566 cat >conftest.$ac_ext <<_ACEOF
4567 #line $LINENO "configure"
4568 #include "confdefs.h"
4570 /* Override any gcc2 internal prototype to avoid an error. */
4574 /* We use char because int might match the return type of a gcc2
4575 builtin and then its argument prototype would still apply. */
4576 char setproctitle ();
4577 #ifdef F77_DUMMY_MAIN
4581 int F77_DUMMY_MAIN() { return 1; }
4591 rm -f conftest.$ac_objext conftest$ac_exeext
4592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4593 (eval $ac_link) 2>&5
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); } &&
4597 { ac_try='test -s conftest$ac_exeext'
4598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); }; }; then
4603 ac_cv_lib_util_setproctitle=yes
4605 echo "$as_me: failed program was:" >&5
4606 cat conftest.$ac_ext >&5
4607 ac_cv_lib_util_setproctitle=no
4609 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4610 LIBS=$ac_check_lib_save_LIBS
4612 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
4613 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
4614 if test $ac_cv_lib_util_setproctitle = yes; then
4615 cat >>confdefs.h <<_ACEOF
4616 #define HAVE_LIBUTIL 1
4624 echo "$as_me:$LINENO: checking for main in -lm" >&5
4625 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4626 if test "${ac_cv_lib_m_main+set}" = set; then
4627 echo $ECHO_N "(cached) $ECHO_C" >&6
4629 ac_check_lib_save_LIBS=$LIBS
4631 cat >conftest.$ac_ext <<_ACEOF
4632 #line $LINENO "configure"
4633 #include "confdefs.h"
4636 #ifdef F77_DUMMY_MAIN
4640 int F77_DUMMY_MAIN() { return 1; }
4650 rm -f conftest.$ac_objext conftest$ac_exeext
4651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4652 (eval $ac_link) 2>&5
4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); } &&
4656 { ac_try='test -s conftest$ac_exeext'
4657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); }; }; then
4662 ac_cv_lib_m_main=yes
4664 echo "$as_me: failed program was:" >&5
4665 cat conftest.$ac_ext >&5
4668 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4669 LIBS=$ac_check_lib_save_LIBS
4671 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4672 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4673 if test $ac_cv_lib_m_main = yes; then
4674 cat >>confdefs.h <<_ACEOF
4683 echo "$as_me:$LINENO: checking for main in -ldl" >&5
4684 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
4685 if test "${ac_cv_lib_dl_main+set}" = set; then
4686 echo $ECHO_N "(cached) $ECHO_C" >&6
4688 ac_check_lib_save_LIBS=$LIBS
4690 cat >conftest.$ac_ext <<_ACEOF
4691 #line $LINENO "configure"
4692 #include "confdefs.h"
4695 #ifdef F77_DUMMY_MAIN
4699 int F77_DUMMY_MAIN() { return 1; }
4709 rm -f conftest.$ac_objext conftest$ac_exeext
4710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4711 (eval $ac_link) 2>&5
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); } &&
4715 { ac_try='test -s conftest$ac_exeext'
4716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); }; }; then
4721 ac_cv_lib_dl_main=yes
4723 echo "$as_me: failed program was:" >&5
4724 cat conftest.$ac_ext >&5
4725 ac_cv_lib_dl_main=no
4727 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4728 LIBS=$ac_check_lib_save_LIBS
4730 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
4731 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
4732 if test $ac_cv_lib_dl_main = yes; then
4733 cat >>confdefs.h <<_ACEOF
4734 #define HAVE_LIBDL 1
4742 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
4743 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
4744 if test "${ac_cv_lib_nsl_main+set}" = set; then
4745 echo $ECHO_N "(cached) $ECHO_C" >&6
4747 ac_check_lib_save_LIBS=$LIBS
4749 cat >conftest.$ac_ext <<_ACEOF
4750 #line $LINENO "configure"
4751 #include "confdefs.h"
4754 #ifdef F77_DUMMY_MAIN
4758 int F77_DUMMY_MAIN() { return 1; }
4768 rm -f conftest.$ac_objext conftest$ac_exeext
4769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4770 (eval $ac_link) 2>&5
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); } &&
4774 { ac_try='test -s conftest$ac_exeext'
4775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); }; }; then
4780 ac_cv_lib_nsl_main=yes
4782 echo "$as_me: failed program was:" >&5
4783 cat conftest.$ac_ext >&5
4784 ac_cv_lib_nsl_main=no
4786 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4787 LIBS=$ac_check_lib_save_LIBS
4789 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
4790 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
4791 if test $ac_cv_lib_nsl_main = yes; then
4792 cat >>confdefs.h <<_ACEOF
4793 #define HAVE_LIBNSL 1
4801 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
4802 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
4803 if test "${ac_cv_lib_socket_main+set}" = set; then
4804 echo $ECHO_N "(cached) $ECHO_C" >&6
4806 ac_check_lib_save_LIBS=$LIBS
4807 LIBS="-lsocket $LIBS"
4808 cat >conftest.$ac_ext <<_ACEOF
4809 #line $LINENO "configure"
4810 #include "confdefs.h"
4813 #ifdef F77_DUMMY_MAIN
4817 int F77_DUMMY_MAIN() { return 1; }
4827 rm -f conftest.$ac_objext conftest$ac_exeext
4828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4829 (eval $ac_link) 2>&5
4831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832 (exit $ac_status); } &&
4833 { ac_try='test -s conftest$ac_exeext'
4834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); }; }; then
4839 ac_cv_lib_socket_main=yes
4841 echo "$as_me: failed program was:" >&5
4842 cat conftest.$ac_ext >&5
4843 ac_cv_lib_socket_main=no
4845 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4846 LIBS=$ac_check_lib_save_LIBS
4848 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
4849 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
4850 if test $ac_cv_lib_socket_main = yes; then
4851 cat >>confdefs.h <<_ACEOF
4852 #define HAVE_LIBSOCKET 1
4855 LIBS="-lsocket $LIBS"
4860 echo "$as_me:$LINENO: checking for main in -lipc" >&5
4861 echo $ECHO_N "checking for main in -lipc... $ECHO_C" >&6
4862 if test "${ac_cv_lib_ipc_main+set}" = set; then
4863 echo $ECHO_N "(cached) $ECHO_C" >&6
4865 ac_check_lib_save_LIBS=$LIBS
4867 cat >conftest.$ac_ext <<_ACEOF
4868 #line $LINENO "configure"
4869 #include "confdefs.h"
4872 #ifdef F77_DUMMY_MAIN
4876 int F77_DUMMY_MAIN() { return 1; }
4886 rm -f conftest.$ac_objext conftest$ac_exeext
4887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4888 (eval $ac_link) 2>&5
4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); } &&
4892 { ac_try='test -s conftest$ac_exeext'
4893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); }; }; then
4898 ac_cv_lib_ipc_main=yes
4900 echo "$as_me: failed program was:" >&5
4901 cat conftest.$ac_ext >&5
4902 ac_cv_lib_ipc_main=no
4904 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4905 LIBS=$ac_check_lib_save_LIBS
4907 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_main" >&5
4908 echo "${ECHO_T}$ac_cv_lib_ipc_main" >&6
4909 if test $ac_cv_lib_ipc_main = yes; then
4910 cat >>confdefs.h <<_ACEOF
4911 #define HAVE_LIBIPC 1
4919 echo "$as_me:$LINENO: checking for main in -lIPC" >&5
4920 echo $ECHO_N "checking for main in -lIPC... $ECHO_C" >&6
4921 if test "${ac_cv_lib_IPC_main+set}" = set; then
4922 echo $ECHO_N "(cached) $ECHO_C" >&6
4924 ac_check_lib_save_LIBS=$LIBS
4926 cat >conftest.$ac_ext <<_ACEOF
4927 #line $LINENO "configure"
4928 #include "confdefs.h"
4931 #ifdef F77_DUMMY_MAIN
4935 int F77_DUMMY_MAIN() { return 1; }
4945 rm -f conftest.$ac_objext conftest$ac_exeext
4946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4947 (eval $ac_link) 2>&5
4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); } &&
4951 { ac_try='test -s conftest$ac_exeext'
4952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); }; }; then
4957 ac_cv_lib_IPC_main=yes
4959 echo "$as_me: failed program was:" >&5
4960 cat conftest.$ac_ext >&5
4961 ac_cv_lib_IPC_main=no
4963 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4964 LIBS=$ac_check_lib_save_LIBS
4966 echo "$as_me:$LINENO: result: $ac_cv_lib_IPC_main" >&5
4967 echo "${ECHO_T}$ac_cv_lib_IPC_main" >&6
4968 if test $ac_cv_lib_IPC_main = yes; then
4969 cat >>confdefs.h <<_ACEOF
4970 #define HAVE_LIBIPC 1
4978 echo "$as_me:$LINENO: checking for main in -llc" >&5
4979 echo $ECHO_N "checking for main in -llc... $ECHO_C" >&6
4980 if test "${ac_cv_lib_lc_main+set}" = set; then
4981 echo $ECHO_N "(cached) $ECHO_C" >&6
4983 ac_check_lib_save_LIBS=$LIBS
4985 cat >conftest.$ac_ext <<_ACEOF
4986 #line $LINENO "configure"
4987 #include "confdefs.h"
4990 #ifdef F77_DUMMY_MAIN
4994 int F77_DUMMY_MAIN() { return 1; }
5004 rm -f conftest.$ac_objext conftest$ac_exeext
5005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5006 (eval $ac_link) 2>&5
5008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009 (exit $ac_status); } &&
5010 { ac_try='test -s conftest$ac_exeext'
5011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); }; }; then
5016 ac_cv_lib_lc_main=yes
5018 echo "$as_me: failed program was:" >&5
5019 cat conftest.$ac_ext >&5
5020 ac_cv_lib_lc_main=no
5022 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5023 LIBS=$ac_check_lib_save_LIBS
5025 echo "$as_me:$LINENO: result: $ac_cv_lib_lc_main" >&5
5026 echo "${ECHO_T}$ac_cv_lib_lc_main" >&6
5027 if test $ac_cv_lib_lc_main = yes; then
5028 cat >>confdefs.h <<_ACEOF
5029 #define HAVE_LIBLC 1
5037 echo "$as_me:$LINENO: checking for main in -ldld" >&5
5038 echo $ECHO_N "checking for main in -ldld... $ECHO_C" >&6
5039 if test "${ac_cv_lib_dld_main+set}" = set; then
5040 echo $ECHO_N "(cached) $ECHO_C" >&6
5042 ac_check_lib_save_LIBS=$LIBS
5044 cat >conftest.$ac_ext <<_ACEOF
5045 #line $LINENO "configure"
5046 #include "confdefs.h"
5049 #ifdef F77_DUMMY_MAIN
5053 int F77_DUMMY_MAIN() { return 1; }
5063 rm -f conftest.$ac_objext conftest$ac_exeext
5064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5065 (eval $ac_link) 2>&5
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); } &&
5069 { ac_try='test -s conftest$ac_exeext'
5070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); }; }; then
5075 ac_cv_lib_dld_main=yes
5077 echo "$as_me: failed program was:" >&5
5078 cat conftest.$ac_ext >&5
5079 ac_cv_lib_dld_main=no
5081 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5082 LIBS=$ac_check_lib_save_LIBS
5084 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_main" >&5
5085 echo "${ECHO_T}$ac_cv_lib_dld_main" >&6
5086 if test $ac_cv_lib_dld_main = yes; then
5087 cat >>confdefs.h <<_ACEOF
5088 #define HAVE_LIBDLD 1
5096 echo "$as_me:$LINENO: checking for main in -lld" >&5
5097 echo $ECHO_N "checking for main in -lld... $ECHO_C" >&6
5098 if test "${ac_cv_lib_ld_main+set}" = set; then
5099 echo $ECHO_N "(cached) $ECHO_C" >&6
5101 ac_check_lib_save_LIBS=$LIBS
5103 cat >conftest.$ac_ext <<_ACEOF
5104 #line $LINENO "configure"
5105 #include "confdefs.h"
5108 #ifdef F77_DUMMY_MAIN
5112 int F77_DUMMY_MAIN() { return 1; }
5122 rm -f conftest.$ac_objext conftest$ac_exeext
5123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5124 (eval $ac_link) 2>&5
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); } &&
5128 { ac_try='test -s conftest$ac_exeext'
5129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133 (exit $ac_status); }; }; then
5134 ac_cv_lib_ld_main=yes
5136 echo "$as_me: failed program was:" >&5
5137 cat conftest.$ac_ext >&5
5138 ac_cv_lib_ld_main=no
5140 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5141 LIBS=$ac_check_lib_save_LIBS
5143 echo "$as_me:$LINENO: result: $ac_cv_lib_ld_main" >&5
5144 echo "${ECHO_T}$ac_cv_lib_ld_main" >&6
5145 if test $ac_cv_lib_ld_main = yes; then
5146 cat >>confdefs.h <<_ACEOF
5147 #define HAVE_LIBLD 1
5155 echo "$as_me:$LINENO: checking for main in -lcompat" >&5
5156 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
5157 if test "${ac_cv_lib_compat_main+set}" = set; then
5158 echo $ECHO_N "(cached) $ECHO_C" >&6
5160 ac_check_lib_save_LIBS=$LIBS
5161 LIBS="-lcompat $LIBS"
5162 cat >conftest.$ac_ext <<_ACEOF
5163 #line $LINENO "configure"
5164 #include "confdefs.h"
5167 #ifdef F77_DUMMY_MAIN
5171 int F77_DUMMY_MAIN() { return 1; }
5181 rm -f conftest.$ac_objext conftest$ac_exeext
5182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5183 (eval $ac_link) 2>&5
5185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186 (exit $ac_status); } &&
5187 { ac_try='test -s conftest$ac_exeext'
5188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); }; }; then
5193 ac_cv_lib_compat_main=yes
5195 echo "$as_me: failed program was:" >&5
5196 cat conftest.$ac_ext >&5
5197 ac_cv_lib_compat_main=no
5199 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5200 LIBS=$ac_check_lib_save_LIBS
5202 echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
5203 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
5204 if test $ac_cv_lib_compat_main = yes; then
5205 cat >>confdefs.h <<_ACEOF
5206 #define HAVE_LIBCOMPAT 1
5209 LIBS="-lcompat $LIBS"
5214 echo "$as_me:$LINENO: checking for main in -lBSD" >&5
5215 echo $ECHO_N "checking for main in -lBSD... $ECHO_C" >&6
5216 if test "${ac_cv_lib_BSD_main+set}" = set; then
5217 echo $ECHO_N "(cached) $ECHO_C" >&6
5219 ac_check_lib_save_LIBS=$LIBS
5221 cat >conftest.$ac_ext <<_ACEOF
5222 #line $LINENO "configure"
5223 #include "confdefs.h"
5226 #ifdef F77_DUMMY_MAIN
5230 int F77_DUMMY_MAIN() { return 1; }
5240 rm -f conftest.$ac_objext conftest$ac_exeext
5241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5242 (eval $ac_link) 2>&5
5244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245 (exit $ac_status); } &&
5246 { ac_try='test -s conftest$ac_exeext'
5247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5251 (exit $ac_status); }; }; then
5252 ac_cv_lib_BSD_main=yes
5254 echo "$as_me: failed program was:" >&5
5255 cat conftest.$ac_ext >&5
5256 ac_cv_lib_BSD_main=no
5258 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5259 LIBS=$ac_check_lib_save_LIBS
5261 echo "$as_me:$LINENO: result: $ac_cv_lib_BSD_main" >&5
5262 echo "${ECHO_T}$ac_cv_lib_BSD_main" >&6
5263 if test $ac_cv_lib_BSD_main = yes; then
5264 cat >>confdefs.h <<_ACEOF
5265 #define HAVE_LIBBSD 1
5273 echo "$as_me:$LINENO: checking for main in -lgen" >&5
5274 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
5275 if test "${ac_cv_lib_gen_main+set}" = set; then
5276 echo $ECHO_N "(cached) $ECHO_C" >&6
5278 ac_check_lib_save_LIBS=$LIBS
5280 cat >conftest.$ac_ext <<_ACEOF
5281 #line $LINENO "configure"
5282 #include "confdefs.h"
5285 #ifdef F77_DUMMY_MAIN
5289 int F77_DUMMY_MAIN() { return 1; }
5299 rm -f conftest.$ac_objext conftest$ac_exeext
5300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5301 (eval $ac_link) 2>&5
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); } &&
5305 { ac_try='test -s conftest$ac_exeext'
5306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310 (exit $ac_status); }; }; then
5311 ac_cv_lib_gen_main=yes
5313 echo "$as_me: failed program was:" >&5
5314 cat conftest.$ac_ext >&5
5315 ac_cv_lib_gen_main=no
5317 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5318 LIBS=$ac_check_lib_save_LIBS
5320 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
5321 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
5322 if test $ac_cv_lib_gen_main = yes; then
5323 cat >>confdefs.h <<_ACEOF
5324 #define HAVE_LIBGEN 1
5332 echo "$as_me:$LINENO: checking for main in -lPW" >&5
5333 echo $ECHO_N "checking for main in -lPW... $ECHO_C" >&6
5334 if test "${ac_cv_lib_PW_main+set}" = set; then
5335 echo $ECHO_N "(cached) $ECHO_C" >&6
5337 ac_check_lib_save_LIBS=$LIBS
5339 cat >conftest.$ac_ext <<_ACEOF
5340 #line $LINENO "configure"
5341 #include "confdefs.h"
5344 #ifdef F77_DUMMY_MAIN
5348 int F77_DUMMY_MAIN() { return 1; }
5358 rm -f conftest.$ac_objext conftest$ac_exeext
5359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5360 (eval $ac_link) 2>&5
5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); } &&
5364 { ac_try='test -s conftest$ac_exeext'
5365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); }; }; then
5370 ac_cv_lib_PW_main=yes
5372 echo "$as_me: failed program was:" >&5
5373 cat conftest.$ac_ext >&5
5374 ac_cv_lib_PW_main=no
5376 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5377 LIBS=$ac_check_lib_save_LIBS
5379 echo "$as_me:$LINENO: result: $ac_cv_lib_PW_main" >&5
5380 echo "${ECHO_T}$ac_cv_lib_PW_main" >&6
5381 if test $ac_cv_lib_PW_main = yes; then
5382 cat >>confdefs.h <<_ACEOF
5383 #define HAVE_LIBPW 1
5391 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5392 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5393 if test "${ac_cv_lib_resolv_main+set}" = set; then
5394 echo $ECHO_N "(cached) $ECHO_C" >&6
5396 ac_check_lib_save_LIBS=$LIBS
5397 LIBS="-lresolv $LIBS"
5398 cat >conftest.$ac_ext <<_ACEOF
5399 #line $LINENO "configure"
5400 #include "confdefs.h"
5403 #ifdef F77_DUMMY_MAIN
5407 int F77_DUMMY_MAIN() { return 1; }
5417 rm -f conftest.$ac_objext conftest$ac_exeext
5418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5419 (eval $ac_link) 2>&5
5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); } &&
5423 { ac_try='test -s conftest$ac_exeext'
5424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); }; }; then
5429 ac_cv_lib_resolv_main=yes
5431 echo "$as_me: failed program was:" >&5
5432 cat conftest.$ac_ext >&5
5433 ac_cv_lib_resolv_main=no
5435 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5436 LIBS=$ac_check_lib_save_LIBS
5438 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
5439 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
5440 if test $ac_cv_lib_resolv_main = yes; then
5441 cat >>confdefs.h <<_ACEOF
5442 #define HAVE_LIBRESOLV 1
5445 LIBS="-lresolv $LIBS"
5449 echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
5450 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6
5451 if test "${ac_cv_search_getopt_long+set}" = set; then
5452 echo $ECHO_N "(cached) $ECHO_C" >&6
5454 ac_func_search_save_LIBS=$LIBS
5455 ac_cv_search_getopt_long=no
5456 cat >conftest.$ac_ext <<_ACEOF
5457 #line $LINENO "configure"
5458 #include "confdefs.h"
5460 /* Override any gcc2 internal prototype to avoid an error. */
5464 /* We use char because int might match the return type of a gcc2
5465 builtin and then its argument prototype would still apply. */
5466 char getopt_long ();
5467 #ifdef F77_DUMMY_MAIN
5471 int F77_DUMMY_MAIN() { return 1; }
5481 rm -f conftest.$ac_objext conftest$ac_exeext
5482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5483 (eval $ac_link) 2>&5
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); } &&
5487 { ac_try='test -s conftest$ac_exeext'
5488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); }; }; then
5493 ac_cv_search_getopt_long="none required"
5495 echo "$as_me: failed program was:" >&5
5496 cat conftest.$ac_ext >&5
5498 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5499 if test "$ac_cv_search_getopt_long" = no; then
5500 for ac_lib in getopt; do
5501 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5502 cat >conftest.$ac_ext <<_ACEOF
5503 #line $LINENO "configure"
5504 #include "confdefs.h"
5506 /* Override any gcc2 internal prototype to avoid an error. */
5510 /* We use char because int might match the return type of a gcc2
5511 builtin and then its argument prototype would still apply. */
5512 char getopt_long ();
5513 #ifdef F77_DUMMY_MAIN
5517 int F77_DUMMY_MAIN() { return 1; }
5527 rm -f conftest.$ac_objext conftest$ac_exeext
5528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5529 (eval $ac_link) 2>&5
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); } &&
5533 { ac_try='test -s conftest$ac_exeext'
5534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); }; }; then
5539 ac_cv_search_getopt_long="-l$ac_lib"
5542 echo "$as_me: failed program was:" >&5
5543 cat conftest.$ac_ext >&5
5545 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5548 LIBS=$ac_func_search_save_LIBS
5550 echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
5551 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6
5552 if test "$ac_cv_search_getopt_long" != no; then
5553 test "$ac_cv_search_getopt_long" = "none required" || LIBS="$ac_cv_search_getopt_long $LIBS"
5559 echo "$as_me:$LINENO: checking for main in -lunix" >&5
5560 echo $ECHO_N "checking for main in -lunix... $ECHO_C" >&6
5561 if test "${ac_cv_lib_unix_main+set}" = set; then
5562 echo $ECHO_N "(cached) $ECHO_C" >&6
5564 ac_check_lib_save_LIBS=$LIBS
5566 cat >conftest.$ac_ext <<_ACEOF
5567 #line $LINENO "configure"
5568 #include "confdefs.h"
5571 #ifdef F77_DUMMY_MAIN
5575 int F77_DUMMY_MAIN() { return 1; }
5585 rm -f conftest.$ac_objext conftest$ac_exeext
5586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5587 (eval $ac_link) 2>&5
5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); } &&
5591 { ac_try='test -s conftest$ac_exeext'
5592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); }; }; then
5597 ac_cv_lib_unix_main=yes
5599 echo "$as_me: failed program was:" >&5
5600 cat conftest.$ac_ext >&5
5601 ac_cv_lib_unix_main=no
5603 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5604 LIBS=$ac_check_lib_save_LIBS
5606 echo "$as_me:$LINENO: result: $ac_cv_lib_unix_main" >&5
5607 echo "${ECHO_T}$ac_cv_lib_unix_main" >&6
5608 if test $ac_cv_lib_unix_main = yes; then
5609 cat >>confdefs.h <<_ACEOF
5610 #define HAVE_LIBUNIX 1
5617 echo "$as_me:$LINENO: checking for library containing crypt" >&5
5618 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
5619 if test "${ac_cv_search_crypt+set}" = set; then
5620 echo $ECHO_N "(cached) $ECHO_C" >&6
5622 ac_func_search_save_LIBS=$LIBS
5623 ac_cv_search_crypt=no
5624 cat >conftest.$ac_ext <<_ACEOF
5625 #line $LINENO "configure"
5626 #include "confdefs.h"
5628 /* Override any gcc2 internal prototype to avoid an error. */
5632 /* We use char because int might match the return type of a gcc2
5633 builtin and then its argument prototype would still apply. */
5635 #ifdef F77_DUMMY_MAIN
5639 int F77_DUMMY_MAIN() { return 1; }
5649 rm -f conftest.$ac_objext conftest$ac_exeext
5650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5651 (eval $ac_link) 2>&5
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); } &&
5655 { ac_try='test -s conftest$ac_exeext'
5656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660 (exit $ac_status); }; }; then
5661 ac_cv_search_crypt="none required"
5663 echo "$as_me: failed program was:" >&5
5664 cat conftest.$ac_ext >&5
5666 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5667 if test "$ac_cv_search_crypt" = no; then
5668 for ac_lib in crypt; do
5669 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5670 cat >conftest.$ac_ext <<_ACEOF
5671 #line $LINENO "configure"
5672 #include "confdefs.h"
5674 /* Override any gcc2 internal prototype to avoid an error. */
5678 /* We use char because int might match the return type of a gcc2
5679 builtin and then its argument prototype would still apply. */
5681 #ifdef F77_DUMMY_MAIN
5685 int F77_DUMMY_MAIN() { return 1; }
5695 rm -f conftest.$ac_objext conftest$ac_exeext
5696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5697 (eval $ac_link) 2>&5
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); } &&
5701 { ac_try='test -s conftest$ac_exeext'
5702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); }; }; then
5707 ac_cv_search_crypt="-l$ac_lib"
5710 echo "$as_me: failed program was:" >&5
5711 cat conftest.$ac_ext >&5
5713 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5716 LIBS=$ac_func_search_save_LIBS
5718 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
5719 echo "${ECHO_T}$ac_cv_search_crypt" >&6
5720 if test "$ac_cv_search_crypt" != no; then
5721 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
5727 echo "$as_me:$LINENO: checking for __inet_ntoa in -lbind" >&5
5728 echo $ECHO_N "checking for __inet_ntoa in -lbind... $ECHO_C" >&6
5729 if test "${ac_cv_lib_bind___inet_ntoa+set}" = set; then
5730 echo $ECHO_N "(cached) $ECHO_C" >&6
5732 ac_check_lib_save_LIBS=$LIBS
5734 cat >conftest.$ac_ext <<_ACEOF
5735 #line $LINENO "configure"
5736 #include "confdefs.h"
5738 /* Override any gcc2 internal prototype to avoid an error. */
5742 /* We use char because int might match the return type of a gcc2
5743 builtin and then its argument prototype would still apply. */
5744 char __inet_ntoa ();
5745 #ifdef F77_DUMMY_MAIN
5749 int F77_DUMMY_MAIN() { return 1; }
5759 rm -f conftest.$ac_objext conftest$ac_exeext
5760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5761 (eval $ac_link) 2>&5
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); } &&
5765 { ac_try='test -s conftest$ac_exeext'
5766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); }; }; then
5771 ac_cv_lib_bind___inet_ntoa=yes
5773 echo "$as_me: failed program was:" >&5
5774 cat conftest.$ac_ext >&5
5775 ac_cv_lib_bind___inet_ntoa=no
5777 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5778 LIBS=$ac_check_lib_save_LIBS
5780 echo "$as_me:$LINENO: result: $ac_cv_lib_bind___inet_ntoa" >&5
5781 echo "${ECHO_T}$ac_cv_lib_bind___inet_ntoa" >&6
5782 if test $ac_cv_lib_bind___inet_ntoa = yes; then
5783 cat >>confdefs.h <<_ACEOF
5784 #define HAVE_LIBBIND 1
5792 echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
5793 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6
5794 if test "${ac_cv_search_fdatasync+set}" = set; then
5795 echo $ECHO_N "(cached) $ECHO_C" >&6
5797 ac_func_search_save_LIBS=$LIBS
5798 ac_cv_search_fdatasync=no
5799 cat >conftest.$ac_ext <<_ACEOF
5800 #line $LINENO "configure"
5801 #include "confdefs.h"
5803 /* Override any gcc2 internal prototype to avoid an error. */
5807 /* We use char because int might match the return type of a gcc2
5808 builtin and then its argument prototype would still apply. */
5810 #ifdef F77_DUMMY_MAIN
5814 int F77_DUMMY_MAIN() { return 1; }
5824 rm -f conftest.$ac_objext conftest$ac_exeext
5825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5826 (eval $ac_link) 2>&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); } &&
5830 { ac_try='test -s conftest$ac_exeext'
5831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); }; }; then
5836 ac_cv_search_fdatasync="none required"
5838 echo "$as_me: failed program was:" >&5
5839 cat conftest.$ac_ext >&5
5841 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5842 if test "$ac_cv_search_fdatasync" = no; then
5843 for ac_lib in rt posix4; do
5844 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5845 cat >conftest.$ac_ext <<_ACEOF
5846 #line $LINENO "configure"
5847 #include "confdefs.h"
5849 /* Override any gcc2 internal prototype to avoid an error. */
5853 /* We use char because int might match the return type of a gcc2
5854 builtin and then its argument prototype would still apply. */
5856 #ifdef F77_DUMMY_MAIN
5860 int F77_DUMMY_MAIN() { return 1; }
5870 rm -f conftest.$ac_objext conftest$ac_exeext
5871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5872 (eval $ac_link) 2>&5
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); } &&
5876 { ac_try='test -s conftest$ac_exeext'
5877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); }; }; then
5882 ac_cv_search_fdatasync="-l$ac_lib"
5885 echo "$as_me: failed program was:" >&5
5886 cat conftest.$ac_ext >&5
5888 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5891 LIBS=$ac_func_search_save_LIBS
5893 echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
5894 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6
5895 if test "$ac_cv_search_fdatasync" != no; then
5896 test "$ac_cv_search_fdatasync" = "none required" || LIBS="$ac_cv_search_fdatasync $LIBS"
5901 if test "$with_readline" = yes; then
5903 echo "$as_me:$LINENO: checking for readline" >&5
5904 echo $ECHO_N "checking for readline... $ECHO_C" >&6
5906 if test "${pgac_cv_check_readline+set}" = set; then
5907 echo $ECHO_N "(cached) $ECHO_C" >&6
5909 pgac_cv_check_readline=no
5910 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
5911 for pgac_rllib in -lreadline -ledit ; do
5912 pgac_save_LIBS=$LIBS
5913 LIBS="${pgac_rllib}${pgac_lib} $LIBS"
5914 cat >conftest.$ac_ext <<_ACEOF
5915 #line $LINENO "configure"
5916 #include "confdefs.h"
5918 /* Override any gcc2 internal prototype to avoid an error. */
5922 /* We use char because int might match the return type of a gcc2
5923 builtin and then its argument prototype would still apply. */
5925 #ifdef F77_DUMMY_MAIN
5929 int F77_DUMMY_MAIN() { return 1; }
5939 rm -f conftest.$ac_objext conftest$ac_exeext
5940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5941 (eval $ac_link) 2>&5
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); } &&
5945 { ac_try='test -s conftest$ac_exeext'
5946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); }; }; then
5952 # NetBSD and OpenBSD have a broken linker that does not
5953 # recognize dependent libraries
5954 case $host_os in netbsd* | openbsd* )
5957 *) pgac_lib=" -lcurses" ;;
5961 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
5965 echo "$as_me: failed program was:" >&5
5966 cat conftest.$ac_ext >&5
5968 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5969 LIBS=$pgac_save_LIBS
5972 LIBS=$pgac_save_LIBS
5976 if test "$pgac_cv_check_readline" != no ; then
5978 cat >>confdefs.h <<\_ACEOF
5979 #define HAVE_LIBREADLINE 1
5982 LIBS="$pgac_cv_check_readline $LIBS"
5983 echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
5984 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6
5986 echo "$as_me:$LINENO: result: no" >&5
5987 echo "${ECHO_T}no" >&6
5989 if test x"$pgac_cv_check_readline" = x"no"; then
5990 { { echo "$as_me:$LINENO: error: readline library not found
5991 Use --without-readline to disable readline support." >&5
5992 echo "$as_me: error: readline library not found
5993 Use --without-readline to disable readline support." >&2;}
5994 { (exit 1); exit 1; }; }
5998 if test "$with_zlib" = yes; then
6000 echo "$as_me:$LINENO: checking for inflate in -lz" >&5
6001 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6
6002 if test "${ac_cv_lib_z_inflate+set}" = set; then
6003 echo $ECHO_N "(cached) $ECHO_C" >&6
6005 ac_check_lib_save_LIBS=$LIBS
6007 cat >conftest.$ac_ext <<_ACEOF
6008 #line $LINENO "configure"
6009 #include "confdefs.h"
6011 /* Override any gcc2 internal prototype to avoid an error. */
6015 /* We use char because int might match the return type of a gcc2
6016 builtin and then its argument prototype would still apply. */
6018 #ifdef F77_DUMMY_MAIN
6022 int F77_DUMMY_MAIN() { return 1; }
6032 rm -f conftest.$ac_objext conftest$ac_exeext
6033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6034 (eval $ac_link) 2>&5
6036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037 (exit $ac_status); } &&
6038 { ac_try='test -s conftest$ac_exeext'
6039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); }; }; then
6044 ac_cv_lib_z_inflate=yes
6046 echo "$as_me: failed program was:" >&5
6047 cat conftest.$ac_ext >&5
6048 ac_cv_lib_z_inflate=no
6050 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6051 LIBS=$ac_check_lib_save_LIBS
6053 echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
6054 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6
6055 if test $ac_cv_lib_z_inflate = yes; then
6056 cat >>confdefs.h <<_ACEOF
6063 { { echo "$as_me:$LINENO: error: zlib library not found
6064 Use --without-zlib to disable zlib support." >&5
6065 echo "$as_me: error: zlib library not found
6066 Use --without-zlib to disable zlib support." >&2;}
6067 { (exit 1); exit 1; }; }
6072 if test "$with_krb4" = yes ; then
6074 echo "$as_me:$LINENO: checking for des_encrypt in -ldes" >&5
6075 echo $ECHO_N "checking for des_encrypt in -ldes... $ECHO_C" >&6
6076 if test "${ac_cv_lib_des_des_encrypt+set}" = set; then
6077 echo $ECHO_N "(cached) $ECHO_C" >&6
6079 ac_check_lib_save_LIBS=$LIBS
6081 cat >conftest.$ac_ext <<_ACEOF
6082 #line $LINENO "configure"
6083 #include "confdefs.h"
6085 /* Override any gcc2 internal prototype to avoid an error. */
6089 /* We use char because int might match the return type of a gcc2
6090 builtin and then its argument prototype would still apply. */
6091 char des_encrypt ();
6092 #ifdef F77_DUMMY_MAIN
6096 int F77_DUMMY_MAIN() { return 1; }
6106 rm -f conftest.$ac_objext conftest$ac_exeext
6107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6108 (eval $ac_link) 2>&5
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); } &&
6112 { ac_try='test -s conftest$ac_exeext'
6113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); }; }; then
6118 ac_cv_lib_des_des_encrypt=yes
6120 echo "$as_me: failed program was:" >&5
6121 cat conftest.$ac_ext >&5
6122 ac_cv_lib_des_des_encrypt=no
6124 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6125 LIBS=$ac_check_lib_save_LIBS
6127 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_encrypt" >&5
6128 echo "${ECHO_T}$ac_cv_lib_des_des_encrypt" >&6
6129 if test $ac_cv_lib_des_des_encrypt = yes; then
6130 cat >>confdefs.h <<_ACEOF
6131 #define HAVE_LIBDES 1
6137 { { echo "$as_me:$LINENO: error: library 'des' is required for Kerberos 4" >&5
6138 echo "$as_me: error: library 'des' is required for Kerberos 4" >&2;}
6139 { (exit 1); exit 1; }; }
6143 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5
6144 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6
6145 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then
6146 echo $ECHO_N "(cached) $ECHO_C" >&6
6148 ac_check_lib_save_LIBS=$LIBS
6150 cat >conftest.$ac_ext <<_ACEOF
6151 #line $LINENO "configure"
6152 #include "confdefs.h"
6154 /* Override any gcc2 internal prototype to avoid an error. */
6158 /* We use char because int might match the return type of a gcc2
6159 builtin and then its argument prototype would still apply. */
6160 char krb_sendauth ();
6161 #ifdef F77_DUMMY_MAIN
6165 int F77_DUMMY_MAIN() { return 1; }
6175 rm -f conftest.$ac_objext conftest$ac_exeext
6176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6177 (eval $ac_link) 2>&5
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); } &&
6181 { ac_try='test -s conftest$ac_exeext'
6182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); }; }; then
6187 ac_cv_lib_krb_krb_sendauth=yes
6189 echo "$as_me: failed program was:" >&5
6190 cat conftest.$ac_ext >&5
6191 ac_cv_lib_krb_krb_sendauth=no
6193 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6194 LIBS=$ac_check_lib_save_LIBS
6196 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5
6197 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6
6198 if test $ac_cv_lib_krb_krb_sendauth = yes; then
6199 cat >>confdefs.h <<_ACEOF
6200 #define HAVE_LIBKRB 1
6206 { { echo "$as_me:$LINENO: error: library 'krb' is required for Kerberos 4" >&5
6207 echo "$as_me: error: library 'krb' is required for Kerberos 4" >&2;}
6208 { (exit 1); exit 1; }; }
6213 if test "$with_krb5" = yes ; then
6214 echo "$as_me:$LINENO: checking for library containing com_err" >&5
6215 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
6216 if test "${ac_cv_search_com_err+set}" = set; then
6217 echo $ECHO_N "(cached) $ECHO_C" >&6
6219 ac_func_search_save_LIBS=$LIBS
6220 ac_cv_search_com_err=no
6221 cat >conftest.$ac_ext <<_ACEOF
6222 #line $LINENO "configure"
6223 #include "confdefs.h"
6225 /* Override any gcc2 internal prototype to avoid an error. */
6229 /* We use char because int might match the return type of a gcc2
6230 builtin and then its argument prototype would still apply. */
6232 #ifdef F77_DUMMY_MAIN
6236 int F77_DUMMY_MAIN() { return 1; }
6246 rm -f conftest.$ac_objext conftest$ac_exeext
6247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6248 (eval $ac_link) 2>&5
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); } &&
6252 { ac_try='test -s conftest$ac_exeext'
6253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); }; }; then
6258 ac_cv_search_com_err="none required"
6260 echo "$as_me: failed program was:" >&5
6261 cat conftest.$ac_ext >&5
6263 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6264 if test "$ac_cv_search_com_err" = no; then
6265 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' com_err; do
6266 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6267 cat >conftest.$ac_ext <<_ACEOF
6268 #line $LINENO "configure"
6269 #include "confdefs.h"
6271 /* Override any gcc2 internal prototype to avoid an error. */
6275 /* We use char because int might match the return type of a gcc2
6276 builtin and then its argument prototype would still apply. */
6278 #ifdef F77_DUMMY_MAIN
6282 int F77_DUMMY_MAIN() { return 1; }
6292 rm -f conftest.$ac_objext conftest$ac_exeext
6293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6294 (eval $ac_link) 2>&5
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); } &&
6298 { ac_try='test -s conftest$ac_exeext'
6299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303 (exit $ac_status); }; }; then
6304 ac_cv_search_com_err="-l$ac_lib"
6307 echo "$as_me: failed program was:" >&5
6308 cat conftest.$ac_ext >&5
6310 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6313 LIBS=$ac_func_search_save_LIBS
6315 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
6316 echo "${ECHO_T}$ac_cv_search_com_err" >&6
6317 if test "$ac_cv_search_com_err" != no; then
6318 test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
6321 { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
6322 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
6323 { (exit 1); exit 1; }; }
6326 echo "$as_me:$LINENO: checking for library containing krb5_encrypt" >&5
6327 echo $ECHO_N "checking for library containing krb5_encrypt... $ECHO_C" >&6
6328 if test "${ac_cv_search_krb5_encrypt+set}" = set; then
6329 echo $ECHO_N "(cached) $ECHO_C" >&6
6331 ac_func_search_save_LIBS=$LIBS
6332 ac_cv_search_krb5_encrypt=no
6333 cat >conftest.$ac_ext <<_ACEOF
6334 #line $LINENO "configure"
6335 #include "confdefs.h"
6337 /* Override any gcc2 internal prototype to avoid an error. */
6341 /* We use char because int might match the return type of a gcc2
6342 builtin and then its argument prototype would still apply. */
6343 char krb5_encrypt ();
6344 #ifdef F77_DUMMY_MAIN
6348 int F77_DUMMY_MAIN() { return 1; }
6358 rm -f conftest.$ac_objext conftest$ac_exeext
6359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6360 (eval $ac_link) 2>&5
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); } &&
6364 { ac_try='test -s conftest$ac_exeext'
6365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); }; }; then
6370 ac_cv_search_krb5_encrypt="none required"
6372 echo "$as_me: failed program was:" >&5
6373 cat conftest.$ac_ext >&5
6375 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6376 if test "$ac_cv_search_krb5_encrypt" = no; then
6377 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken' crypto k5crypto; do
6378 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6379 cat >conftest.$ac_ext <<_ACEOF
6380 #line $LINENO "configure"
6381 #include "confdefs.h"
6383 /* Override any gcc2 internal prototype to avoid an error. */
6387 /* We use char because int might match the return type of a gcc2
6388 builtin and then its argument prototype would still apply. */
6389 char krb5_encrypt ();
6390 #ifdef F77_DUMMY_MAIN
6394 int F77_DUMMY_MAIN() { return 1; }
6404 rm -f conftest.$ac_objext conftest$ac_exeext
6405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6406 (eval $ac_link) 2>&5
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); } &&
6410 { ac_try='test -s conftest$ac_exeext'
6411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); }; }; then
6416 ac_cv_search_krb5_encrypt="-l$ac_lib"
6419 echo "$as_me: failed program was:" >&5
6420 cat conftest.$ac_ext >&5
6422 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6425 LIBS=$ac_func_search_save_LIBS
6427 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_encrypt" >&5
6428 echo "${ECHO_T}$ac_cv_search_krb5_encrypt" >&6
6429 if test "$ac_cv_search_krb5_encrypt" != no; then
6430 test "$ac_cv_search_krb5_encrypt" = "none required" || LIBS="$ac_cv_search_krb5_encrypt $LIBS"
6433 { { echo "$as_me:$LINENO: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&5
6434 echo "$as_me: error: could not find function 'krb5_encrypt' required for Kerberos 5" >&2;}
6435 { (exit 1); exit 1; }; }
6438 echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
6439 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6
6440 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
6441 echo $ECHO_N "(cached) $ECHO_C" >&6
6443 ac_func_search_save_LIBS=$LIBS
6444 ac_cv_search_krb5_sendauth=no
6445 cat >conftest.$ac_ext <<_ACEOF
6446 #line $LINENO "configure"
6447 #include "confdefs.h"
6449 /* Override any gcc2 internal prototype to avoid an error. */
6453 /* We use char because int might match the return type of a gcc2
6454 builtin and then its argument prototype would still apply. */
6455 char krb5_sendauth ();
6456 #ifdef F77_DUMMY_MAIN
6460 int F77_DUMMY_MAIN() { return 1; }
6470 rm -f conftest.$ac_objext conftest$ac_exeext
6471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6472 (eval $ac_link) 2>&5
6474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475 (exit $ac_status); } &&
6476 { ac_try='test -s conftest$ac_exeext'
6477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); }; }; then
6482 ac_cv_search_krb5_sendauth="none required"
6484 echo "$as_me: failed program was:" >&5
6485 cat conftest.$ac_ext >&5
6487 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6488 if test "$ac_cv_search_krb5_sendauth" = no; then
6489 for ac_lib in krb5 'krb5 -ldes -lasn1 -lroken'; do
6490 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6491 cat >conftest.$ac_ext <<_ACEOF
6492 #line $LINENO "configure"
6493 #include "confdefs.h"
6495 /* Override any gcc2 internal prototype to avoid an error. */
6499 /* We use char because int might match the return type of a gcc2
6500 builtin and then its argument prototype would still apply. */
6501 char krb5_sendauth ();
6502 #ifdef F77_DUMMY_MAIN
6506 int F77_DUMMY_MAIN() { return 1; }
6516 rm -f conftest.$ac_objext conftest$ac_exeext
6517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6518 (eval $ac_link) 2>&5
6520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521 (exit $ac_status); } &&
6522 { ac_try='test -s conftest$ac_exeext'
6523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527 (exit $ac_status); }; }; then
6528 ac_cv_search_krb5_sendauth="-l$ac_lib"
6531 echo "$as_me: failed program was:" >&5
6532 cat conftest.$ac_ext >&5
6534 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6537 LIBS=$ac_func_search_save_LIBS
6539 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
6540 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6
6541 if test "$ac_cv_search_krb5_sendauth" != no; then
6542 test "$ac_cv_search_krb5_sendauth" = "none required" || LIBS="$ac_cv_search_krb5_sendauth $LIBS"
6545 { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
6546 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
6547 { (exit 1); exit 1; }; }
6552 if test "$with_openssl" = yes ; then
6554 echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
6555 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6
6556 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
6557 echo $ECHO_N "(cached) $ECHO_C" >&6
6559 ac_check_lib_save_LIBS=$LIBS
6560 LIBS="-lcrypto $LIBS"
6561 cat >conftest.$ac_ext <<_ACEOF
6562 #line $LINENO "configure"
6563 #include "confdefs.h"
6565 /* Override any gcc2 internal prototype to avoid an error. */
6569 /* We use char because int might match the return type of a gcc2
6570 builtin and then its argument prototype would still apply. */
6571 char CRYPTO_new_ex_data ();
6572 #ifdef F77_DUMMY_MAIN
6576 int F77_DUMMY_MAIN() { return 1; }
6581 CRYPTO_new_ex_data ();
6586 rm -f conftest.$ac_objext conftest$ac_exeext
6587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6588 (eval $ac_link) 2>&5
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); } &&
6592 { ac_try='test -s conftest$ac_exeext'
6593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); }; }; then
6598 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
6600 echo "$as_me: failed program was:" >&5
6601 cat conftest.$ac_ext >&5
6602 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
6604 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6605 LIBS=$ac_check_lib_save_LIBS
6607 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
6608 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6
6609 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
6610 cat >>confdefs.h <<_ACEOF
6611 #define HAVE_LIBCRYPTO 1
6614 LIBS="-lcrypto $LIBS"
6617 { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
6618 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
6619 { (exit 1); exit 1; }; }
6623 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
6624 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
6625 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
6626 echo $ECHO_N "(cached) $ECHO_C" >&6
6628 ac_check_lib_save_LIBS=$LIBS
6630 cat >conftest.$ac_ext <<_ACEOF
6631 #line $LINENO "configure"
6632 #include "confdefs.h"
6634 /* Override any gcc2 internal prototype to avoid an error. */
6638 /* We use char because int might match the return type of a gcc2
6639 builtin and then its argument prototype would still apply. */
6640 char SSL_library_init ();
6641 #ifdef F77_DUMMY_MAIN
6645 int F77_DUMMY_MAIN() { return 1; }
6650 SSL_library_init ();
6655 rm -f conftest.$ac_objext conftest$ac_exeext
6656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6657 (eval $ac_link) 2>&5
6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); } &&
6661 { ac_try='test -s conftest$ac_exeext'
6662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); }; }; then
6667 ac_cv_lib_ssl_SSL_library_init=yes
6669 echo "$as_me: failed program was:" >&5
6670 cat conftest.$ac_ext >&5
6671 ac_cv_lib_ssl_SSL_library_init=no
6673 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6674 LIBS=$ac_check_lib_save_LIBS
6676 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
6677 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
6678 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
6679 cat >>confdefs.h <<_ACEOF
6680 #define HAVE_LIBSSL 1
6686 { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
6687 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
6688 { (exit 1); exit 1; }; }
6693 if test "$with_pam" = yes ; then
6695 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
6696 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
6697 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
6698 echo $ECHO_N "(cached) $ECHO_C" >&6
6700 ac_check_lib_save_LIBS=$LIBS
6702 cat >conftest.$ac_ext <<_ACEOF
6703 #line $LINENO "configure"
6704 #include "confdefs.h"
6706 /* Override any gcc2 internal prototype to avoid an error. */
6710 /* We use char because int might match the return type of a gcc2
6711 builtin and then its argument prototype would still apply. */
6713 #ifdef F77_DUMMY_MAIN
6717 int F77_DUMMY_MAIN() { return 1; }
6727 rm -f conftest.$ac_objext conftest$ac_exeext
6728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6729 (eval $ac_link) 2>&5
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); } &&
6733 { ac_try='test -s conftest$ac_exeext'
6734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738 (exit $ac_status); }; }; then
6739 ac_cv_lib_pam_pam_start=yes
6741 echo "$as_me: failed program was:" >&5
6742 cat conftest.$ac_ext >&5
6743 ac_cv_lib_pam_pam_start=no
6745 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6746 LIBS=$ac_check_lib_save_LIBS
6748 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
6749 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
6750 if test $ac_cv_lib_pam_pam_start = yes; then
6751 cat >>confdefs.h <<_ACEOF
6752 #define HAVE_LIBPAM 1
6758 { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
6759 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
6760 { (exit 1); exit 1; }; }
6770 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6771 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6772 if test "${ac_cv_header_stdc+set}" = set; then
6773 echo $ECHO_N "(cached) $ECHO_C" >&6
6775 cat >conftest.$ac_ext <<_ACEOF
6776 #line $LINENO "configure"
6777 #include "confdefs.h"
6784 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6785 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6787 egrep -v '^ *\+' conftest.er1 >conftest.err
6789 cat conftest.err >&5
6790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791 (exit $ac_status); } >/dev/null; then
6792 if test -s conftest.err; then
6793 ac_cpp_err=$ac_c_preproc_warn_flag
6800 if test -z "$ac_cpp_err"; then
6801 ac_cv_header_stdc=yes
6803 echo "$as_me: failed program was:" >&5
6804 cat conftest.$ac_ext >&5
6805 ac_cv_header_stdc=no
6807 rm -f conftest.err conftest.$ac_ext
6809 if test $ac_cv_header_stdc = yes; then
6810 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6811 cat >conftest.$ac_ext <<_ACEOF
6812 #line $LINENO "configure"
6813 #include "confdefs.h"
6817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6818 egrep "memchr" >/dev/null 2>&1; then
6821 ac_cv_header_stdc=no
6827 if test $ac_cv_header_stdc = yes; then
6828 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6829 cat >conftest.$ac_ext <<_ACEOF
6830 #line $LINENO "configure"
6831 #include "confdefs.h"
6835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6836 egrep "free" >/dev/null 2>&1; then
6839 ac_cv_header_stdc=no
6845 if test $ac_cv_header_stdc = yes; then
6846 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6847 if test "$cross_compiling" = yes; then
6850 cat >conftest.$ac_ext <<_ACEOF
6851 #line $LINENO "configure"
6852 #include "confdefs.h"
6854 #if ((' ' & 0x0FF) == 0x020)
6855 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6856 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6858 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6859 || ('j' <= (c) && (c) <= 'r') \
6860 || ('s' <= (c) && (c) <= 'z'))
6861 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6864 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6869 for (i = 0; i < 256; i++)
6870 if (XOR (islower (i), ISLOWER (i))
6871 || toupper (i) != TOUPPER (i))
6876 rm -f conftest$ac_exeext
6877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6878 (eval $ac_link) 2>&5
6880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); }; }; then
6889 echo "$as_me: program exited with status $ac_status" >&5
6890 echo "$as_me: failed program was:" >&5
6891 cat conftest.$ac_ext >&5
6893 ac_cv_header_stdc=no
6895 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6899 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6900 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6901 if test $ac_cv_header_stdc = yes; then
6903 cat >>confdefs.h <<\_ACEOF
6904 #define STDC_HEADERS 1
6909 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6919 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6920 inttypes.h stdint.h unistd.h
6922 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6923 echo "$as_me:$LINENO: checking for $ac_header" >&5
6924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6925 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6926 echo $ECHO_N "(cached) $ECHO_C" >&6
6928 cat >conftest.$ac_ext <<_ACEOF
6929 #line $LINENO "configure"
6930 #include "confdefs.h"
6931 $ac_includes_default
6933 #include <$ac_header>
6935 rm -f conftest.$ac_objext
6936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6937 (eval $ac_compile) 2>&5
6939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 (exit $ac_status); } &&
6941 { ac_try='test -s conftest.$ac_objext'
6942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); }; }; then
6947 eval "$as_ac_Header=yes"
6949 echo "$as_me: failed program was:" >&5
6950 cat conftest.$ac_ext >&5
6951 eval "$as_ac_Header=no"
6953 rm -f conftest.$ac_objext conftest.$ac_ext
6955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6956 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6957 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6958 cat >>confdefs.h <<_ACEOF
6959 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6985 for ac_header in crypt.h dld.h endian.h fp_class.h getopt.h ieeefp.h pwd.h sys/ipc.h sys/pstat.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/un.h termios.h kernel/OS.h kernel/image.h SupportDefs.h
6987 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6989 echo "$as_me:$LINENO: checking for $ac_header" >&5
6990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6992 echo $ECHO_N "(cached) $ECHO_C" >&6
6994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6995 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6997 # Is the header compilable?
6998 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6999 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7000 cat >conftest.$ac_ext <<_ACEOF
7001 #line $LINENO "configure"
7002 #include "confdefs.h"
7003 $ac_includes_default
7004 #include <$ac_header>
7006 rm -f conftest.$ac_objext
7007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7008 (eval $ac_compile) 2>&5
7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 (exit $ac_status); } &&
7012 { ac_try='test -s conftest.$ac_objext'
7013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017 (exit $ac_status); }; }; then
7018 ac_header_compiler=yes
7020 echo "$as_me: failed program was:" >&5
7021 cat conftest.$ac_ext >&5
7022 ac_header_compiler=no
7024 rm -f conftest.$ac_objext conftest.$ac_ext
7025 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7026 echo "${ECHO_T}$ac_header_compiler" >&6
7028 # Is the header present?
7029 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7030 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7031 cat >conftest.$ac_ext <<_ACEOF
7032 #line $LINENO "configure"
7033 #include "confdefs.h"
7034 #include <$ac_header>
7036 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7037 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7039 egrep -v '^ *\+' conftest.er1 >conftest.err
7041 cat conftest.err >&5
7042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043 (exit $ac_status); } >/dev/null; then
7044 if test -s conftest.err; then
7045 ac_cpp_err=$ac_c_preproc_warn_flag
7052 if test -z "$ac_cpp_err"; then
7053 ac_header_preproc=yes
7055 echo "$as_me: failed program was:" >&5
7056 cat conftest.$ac_ext >&5
7057 ac_header_preproc=no
7059 rm -f conftest.err conftest.$ac_ext
7060 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7061 echo "${ECHO_T}$ac_header_preproc" >&6
7063 # So? What about this header?
7064 case $ac_header_compiler:$ac_header_preproc in
7066 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7067 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7069 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7071 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7072 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7073 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7074 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7076 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7078 echo "$as_me:$LINENO: checking for $ac_header" >&5
7079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7081 echo $ECHO_N "(cached) $ECHO_C" >&6
7083 eval "$as_ac_Header=$ac_header_preproc"
7085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7086 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7089 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7090 cat >>confdefs.h <<_ACEOF
7091 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7099 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
7100 # netinet/in.h is included first.
7102 for ac_header in netinet/in.h
7104 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7106 echo "$as_me:$LINENO: checking for $ac_header" >&5
7107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7109 echo $ECHO_N "(cached) $ECHO_C" >&6
7111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7112 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7114 # Is the header compilable?
7115 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7116 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7117 cat >conftest.$ac_ext <<_ACEOF
7118 #line $LINENO "configure"
7119 #include "confdefs.h"
7120 $ac_includes_default
7121 #include <$ac_header>
7123 rm -f conftest.$ac_objext
7124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7125 (eval $ac_compile) 2>&5
7127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128 (exit $ac_status); } &&
7129 { ac_try='test -s conftest.$ac_objext'
7130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134 (exit $ac_status); }; }; then
7135 ac_header_compiler=yes
7137 echo "$as_me: failed program was:" >&5
7138 cat conftest.$ac_ext >&5
7139 ac_header_compiler=no
7141 rm -f conftest.$ac_objext conftest.$ac_ext
7142 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7143 echo "${ECHO_T}$ac_header_compiler" >&6
7145 # Is the header present?
7146 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7147 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7148 cat >conftest.$ac_ext <<_ACEOF
7149 #line $LINENO "configure"
7150 #include "confdefs.h"
7151 #include <$ac_header>
7153 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7154 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7156 egrep -v '^ *\+' conftest.er1 >conftest.err
7158 cat conftest.err >&5
7159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160 (exit $ac_status); } >/dev/null; then
7161 if test -s conftest.err; then
7162 ac_cpp_err=$ac_c_preproc_warn_flag
7169 if test -z "$ac_cpp_err"; then
7170 ac_header_preproc=yes
7172 echo "$as_me: failed program was:" >&5
7173 cat conftest.$ac_ext >&5
7174 ac_header_preproc=no
7176 rm -f conftest.err conftest.$ac_ext
7177 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7178 echo "${ECHO_T}$ac_header_preproc" >&6
7180 # So? What about this header?
7181 case $ac_header_compiler:$ac_header_preproc in
7183 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7184 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7186 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7188 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7189 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7190 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7191 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7193 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7195 echo "$as_me:$LINENO: checking for $ac_header" >&5
7196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7198 echo $ECHO_N "(cached) $ECHO_C" >&6
7200 eval "$as_ac_Header=$ac_header_preproc"
7202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7203 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7206 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7207 cat >>confdefs.h <<_ACEOF
7208 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7216 for ac_header in netinet/tcp.h
7218 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7219 echo "$as_me:$LINENO: checking for $ac_header" >&5
7220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7222 echo $ECHO_N "(cached) $ECHO_C" >&6
7224 cat >conftest.$ac_ext <<_ACEOF
7225 #line $LINENO "configure"
7226 #include "confdefs.h"
7227 $ac_includes_default
7228 #ifdef HAVE_NETINET_IN_H
7229 #include <netinet/in.h>
7233 #include <$ac_header>
7235 rm -f conftest.$ac_objext
7236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7237 (eval $ac_compile) 2>&5
7239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240 (exit $ac_status); } &&
7241 { ac_try='test -s conftest.$ac_objext'
7242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246 (exit $ac_status); }; }; then
7247 eval "$as_ac_Header=yes"
7249 echo "$as_me: failed program was:" >&5
7250 cat conftest.$ac_ext >&5
7251 eval "$as_ac_Header=no"
7253 rm -f conftest.$ac_objext conftest.$ac_ext
7255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7256 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7257 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7258 cat >>confdefs.h <<_ACEOF
7259 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7267 if test "$with_readline" = yes; then
7269 for ac_header in readline/readline.h
7271 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7272 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7273 echo "$as_me:$LINENO: checking for $ac_header" >&5
7274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7275 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7276 echo $ECHO_N "(cached) $ECHO_C" >&6
7278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7279 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7281 # Is the header compilable?
7282 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7283 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7284 cat >conftest.$ac_ext <<_ACEOF
7285 #line $LINENO "configure"
7286 #include "confdefs.h"
7287 $ac_includes_default
7288 #include <$ac_header>
7290 rm -f conftest.$ac_objext
7291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7292 (eval $ac_compile) 2>&5
7294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295 (exit $ac_status); } &&
7296 { ac_try='test -s conftest.$ac_objext'
7297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); }; }; then
7302 ac_header_compiler=yes
7304 echo "$as_me: failed program was:" >&5
7305 cat conftest.$ac_ext >&5
7306 ac_header_compiler=no
7308 rm -f conftest.$ac_objext conftest.$ac_ext
7309 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7310 echo "${ECHO_T}$ac_header_compiler" >&6
7312 # Is the header present?
7313 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7314 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7315 cat >conftest.$ac_ext <<_ACEOF
7316 #line $LINENO "configure"
7317 #include "confdefs.h"
7318 #include <$ac_header>
7320 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7321 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7323 egrep -v '^ *\+' conftest.er1 >conftest.err
7325 cat conftest.err >&5
7326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327 (exit $ac_status); } >/dev/null; then
7328 if test -s conftest.err; then
7329 ac_cpp_err=$ac_c_preproc_warn_flag
7336 if test -z "$ac_cpp_err"; then
7337 ac_header_preproc=yes
7339 echo "$as_me: failed program was:" >&5
7340 cat conftest.$ac_ext >&5
7341 ac_header_preproc=no
7343 rm -f conftest.err conftest.$ac_ext
7344 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7345 echo "${ECHO_T}$ac_header_preproc" >&6
7347 # So? What about this header?
7348 case $ac_header_compiler:$ac_header_preproc in
7350 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7351 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7353 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7355 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7356 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7357 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7358 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7360 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7362 echo "$as_me:$LINENO: checking for $ac_header" >&5
7363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7365 echo $ECHO_N "(cached) $ECHO_C" >&6
7367 eval "$as_ac_Header=$ac_header_preproc"
7369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7370 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7373 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7374 cat >>confdefs.h <<_ACEOF
7375 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7380 for ac_header in readline.h
7382 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7384 echo "$as_me:$LINENO: checking for $ac_header" >&5
7385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7387 echo $ECHO_N "(cached) $ECHO_C" >&6
7389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7390 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7392 # Is the header compilable?
7393 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7394 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7395 cat >conftest.$ac_ext <<_ACEOF
7396 #line $LINENO "configure"
7397 #include "confdefs.h"
7398 $ac_includes_default
7399 #include <$ac_header>
7401 rm -f conftest.$ac_objext
7402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7403 (eval $ac_compile) 2>&5
7405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406 (exit $ac_status); } &&
7407 { ac_try='test -s conftest.$ac_objext'
7408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412 (exit $ac_status); }; }; then
7413 ac_header_compiler=yes
7415 echo "$as_me: failed program was:" >&5
7416 cat conftest.$ac_ext >&5
7417 ac_header_compiler=no
7419 rm -f conftest.$ac_objext conftest.$ac_ext
7420 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7421 echo "${ECHO_T}$ac_header_compiler" >&6
7423 # Is the header present?
7424 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7425 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7426 cat >conftest.$ac_ext <<_ACEOF
7427 #line $LINENO "configure"
7428 #include "confdefs.h"
7429 #include <$ac_header>
7431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7432 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7434 egrep -v '^ *\+' conftest.er1 >conftest.err
7436 cat conftest.err >&5
7437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438 (exit $ac_status); } >/dev/null; then
7439 if test -s conftest.err; then
7440 ac_cpp_err=$ac_c_preproc_warn_flag
7447 if test -z "$ac_cpp_err"; then
7448 ac_header_preproc=yes
7450 echo "$as_me: failed program was:" >&5
7451 cat conftest.$ac_ext >&5
7452 ac_header_preproc=no
7454 rm -f conftest.err conftest.$ac_ext
7455 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7456 echo "${ECHO_T}$ac_header_preproc" >&6
7458 # So? What about this header?
7459 case $ac_header_compiler:$ac_header_preproc in
7461 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7462 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7466 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7467 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7468 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7469 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7471 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7473 echo "$as_me:$LINENO: checking for $ac_header" >&5
7474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7476 echo $ECHO_N "(cached) $ECHO_C" >&6
7478 eval "$as_ac_Header=$ac_header_preproc"
7480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7485 cat >>confdefs.h <<_ACEOF
7486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7490 { { echo "$as_me:$LINENO: error: readline header not found
7491 Use --without-readline to disable readline support." >&5
7492 echo "$as_me: error: readline header not found
7493 Use --without-readline to disable readline support." >&2;}
7494 { (exit 1); exit 1; }; }
7504 for ac_header in readline/history.h
7506 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7507 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7508 echo "$as_me:$LINENO: checking for $ac_header" >&5
7509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7510 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7511 echo $ECHO_N "(cached) $ECHO_C" >&6
7513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7514 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7516 # Is the header compilable?
7517 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7518 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7519 cat >conftest.$ac_ext <<_ACEOF
7520 #line $LINENO "configure"
7521 #include "confdefs.h"
7522 $ac_includes_default
7523 #include <$ac_header>
7525 rm -f conftest.$ac_objext
7526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7527 (eval $ac_compile) 2>&5
7529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7530 (exit $ac_status); } &&
7531 { ac_try='test -s conftest.$ac_objext'
7532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 (exit $ac_status); }; }; then
7537 ac_header_compiler=yes
7539 echo "$as_me: failed program was:" >&5
7540 cat conftest.$ac_ext >&5
7541 ac_header_compiler=no
7543 rm -f conftest.$ac_objext conftest.$ac_ext
7544 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7545 echo "${ECHO_T}$ac_header_compiler" >&6
7547 # Is the header present?
7548 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7549 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7550 cat >conftest.$ac_ext <<_ACEOF
7551 #line $LINENO "configure"
7552 #include "confdefs.h"
7553 #include <$ac_header>
7555 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7556 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7558 egrep -v '^ *\+' conftest.er1 >conftest.err
7560 cat conftest.err >&5
7561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562 (exit $ac_status); } >/dev/null; then
7563 if test -s conftest.err; then
7564 ac_cpp_err=$ac_c_preproc_warn_flag
7571 if test -z "$ac_cpp_err"; then
7572 ac_header_preproc=yes
7574 echo "$as_me: failed program was:" >&5
7575 cat conftest.$ac_ext >&5
7576 ac_header_preproc=no
7578 rm -f conftest.err conftest.$ac_ext
7579 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7580 echo "${ECHO_T}$ac_header_preproc" >&6
7582 # So? What about this header?
7583 case $ac_header_compiler:$ac_header_preproc in
7585 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7586 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7588 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7590 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7591 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7592 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7593 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7595 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7597 echo "$as_me:$LINENO: checking for $ac_header" >&5
7598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7599 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7600 echo $ECHO_N "(cached) $ECHO_C" >&6
7602 eval "$as_ac_Header=$ac_header_preproc"
7604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7605 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7608 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7609 cat >>confdefs.h <<_ACEOF
7610 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7615 for ac_header in history.h
7617 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7618 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7619 echo "$as_me:$LINENO: checking for $ac_header" >&5
7620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7622 echo $ECHO_N "(cached) $ECHO_C" >&6
7624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7625 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7627 # Is the header compilable?
7628 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7629 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7630 cat >conftest.$ac_ext <<_ACEOF
7631 #line $LINENO "configure"
7632 #include "confdefs.h"
7633 $ac_includes_default
7634 #include <$ac_header>
7636 rm -f conftest.$ac_objext
7637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7638 (eval $ac_compile) 2>&5
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); } &&
7642 { ac_try='test -s conftest.$ac_objext'
7643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647 (exit $ac_status); }; }; then
7648 ac_header_compiler=yes
7650 echo "$as_me: failed program was:" >&5
7651 cat conftest.$ac_ext >&5
7652 ac_header_compiler=no
7654 rm -f conftest.$ac_objext conftest.$ac_ext
7655 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7656 echo "${ECHO_T}$ac_header_compiler" >&6
7658 # Is the header present?
7659 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7660 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7661 cat >conftest.$ac_ext <<_ACEOF
7662 #line $LINENO "configure"
7663 #include "confdefs.h"
7664 #include <$ac_header>
7666 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7667 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7669 egrep -v '^ *\+' conftest.er1 >conftest.err
7671 cat conftest.err >&5
7672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673 (exit $ac_status); } >/dev/null; then
7674 if test -s conftest.err; then
7675 ac_cpp_err=$ac_c_preproc_warn_flag
7682 if test -z "$ac_cpp_err"; then
7683 ac_header_preproc=yes
7685 echo "$as_me: failed program was:" >&5
7686 cat conftest.$ac_ext >&5
7687 ac_header_preproc=no
7689 rm -f conftest.err conftest.$ac_ext
7690 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7691 echo "${ECHO_T}$ac_header_preproc" >&6
7693 # So? What about this header?
7694 case $ac_header_compiler:$ac_header_preproc in
7696 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7697 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7698 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7699 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7701 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7702 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7703 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7704 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7708 echo "$as_me:$LINENO: checking for $ac_header" >&5
7709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7711 echo $ECHO_N "(cached) $ECHO_C" >&6
7713 eval "$as_ac_Header=$ac_header_preproc"
7715 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7716 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7719 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7720 cat >>confdefs.h <<_ACEOF
7721 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7725 { { echo "$as_me:$LINENO: error: history header not found
7726 Use --without-readline to disable readline support." >&5
7727 echo "$as_me: error: history header not found
7728 Use --without-readline to disable readline support." >&2;}
7729 { (exit 1); exit 1; }; }
7740 if test "$with_zlib" = yes; then
7741 if test "${ac_cv_header_zlib_h+set}" = set; then
7742 echo "$as_me:$LINENO: checking for zlib.h" >&5
7743 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
7744 if test "${ac_cv_header_zlib_h+set}" = set; then
7745 echo $ECHO_N "(cached) $ECHO_C" >&6
7747 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
7748 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
7750 # Is the header compilable?
7751 echo "$as_me:$LINENO: checking zlib.h usability" >&5
7752 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
7753 cat >conftest.$ac_ext <<_ACEOF
7754 #line $LINENO "configure"
7755 #include "confdefs.h"
7756 $ac_includes_default
7759 rm -f conftest.$ac_objext
7760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7761 (eval $ac_compile) 2>&5
7763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764 (exit $ac_status); } &&
7765 { ac_try='test -s conftest.$ac_objext'
7766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); }; }; then
7771 ac_header_compiler=yes
7773 echo "$as_me: failed program was:" >&5
7774 cat conftest.$ac_ext >&5
7775 ac_header_compiler=no
7777 rm -f conftest.$ac_objext conftest.$ac_ext
7778 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7779 echo "${ECHO_T}$ac_header_compiler" >&6
7781 # Is the header present?
7782 echo "$as_me:$LINENO: checking zlib.h presence" >&5
7783 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
7784 cat >conftest.$ac_ext <<_ACEOF
7785 #line $LINENO "configure"
7786 #include "confdefs.h"
7789 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7790 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7792 egrep -v '^ *\+' conftest.er1 >conftest.err
7794 cat conftest.err >&5
7795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796 (exit $ac_status); } >/dev/null; then
7797 if test -s conftest.err; then
7798 ac_cpp_err=$ac_c_preproc_warn_flag
7805 if test -z "$ac_cpp_err"; then
7806 ac_header_preproc=yes
7808 echo "$as_me: failed program was:" >&5
7809 cat conftest.$ac_ext >&5
7810 ac_header_preproc=no
7812 rm -f conftest.err conftest.$ac_ext
7813 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7814 echo "${ECHO_T}$ac_header_preproc" >&6
7816 # So? What about this header?
7817 case $ac_header_compiler:$ac_header_preproc in
7819 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
7820 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7821 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
7822 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
7824 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
7825 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
7826 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
7827 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
7828 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
7829 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};;
7831 echo "$as_me:$LINENO: checking for zlib.h" >&5
7832 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
7833 if test "${ac_cv_header_zlib_h+set}" = set; then
7834 echo $ECHO_N "(cached) $ECHO_C" >&6
7836 ac_cv_header_zlib_h=$ac_header_preproc
7838 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
7839 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
7842 if test $ac_cv_header_zlib_h = yes; then
7845 { { echo "$as_me:$LINENO: error: zlib header not found
7846 Use --without-zlib to disable zlib support." >&5
7847 echo "$as_me: error: zlib header not found
7848 Use --without-zlib to disable zlib support." >&2;}
7849 { (exit 1); exit 1; }; }
7855 if test "$with_krb4" = yes ; then
7856 if test "${ac_cv_header_krb_h+set}" = set; then
7857 echo "$as_me:$LINENO: checking for krb.h" >&5
7858 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
7859 if test "${ac_cv_header_krb_h+set}" = set; then
7860 echo $ECHO_N "(cached) $ECHO_C" >&6
7862 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
7863 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
7865 # Is the header compilable?
7866 echo "$as_me:$LINENO: checking krb.h usability" >&5
7867 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
7868 cat >conftest.$ac_ext <<_ACEOF
7869 #line $LINENO "configure"
7870 #include "confdefs.h"
7871 $ac_includes_default
7874 rm -f conftest.$ac_objext
7875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7876 (eval $ac_compile) 2>&5
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); } &&
7880 { ac_try='test -s conftest.$ac_objext'
7881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); }; }; then
7886 ac_header_compiler=yes
7888 echo "$as_me: failed program was:" >&5
7889 cat conftest.$ac_ext >&5
7890 ac_header_compiler=no
7892 rm -f conftest.$ac_objext conftest.$ac_ext
7893 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7894 echo "${ECHO_T}$ac_header_compiler" >&6
7896 # Is the header present?
7897 echo "$as_me:$LINENO: checking krb.h presence" >&5
7898 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
7899 cat >conftest.$ac_ext <<_ACEOF
7900 #line $LINENO "configure"
7901 #include "confdefs.h"
7904 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7905 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7907 egrep -v '^ *\+' conftest.er1 >conftest.err
7909 cat conftest.err >&5
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); } >/dev/null; then
7912 if test -s conftest.err; then
7913 ac_cpp_err=$ac_c_preproc_warn_flag
7920 if test -z "$ac_cpp_err"; then
7921 ac_header_preproc=yes
7923 echo "$as_me: failed program was:" >&5
7924 cat conftest.$ac_ext >&5
7925 ac_header_preproc=no
7927 rm -f conftest.err conftest.$ac_ext
7928 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7929 echo "${ECHO_T}$ac_header_preproc" >&6
7931 # So? What about this header?
7932 case $ac_header_compiler:$ac_header_preproc in
7934 { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
7935 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7936 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
7937 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
7939 { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
7940 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
7941 { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
7942 echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
7943 { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
7944 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;};;
7946 echo "$as_me:$LINENO: checking for krb.h" >&5
7947 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
7948 if test "${ac_cv_header_krb_h+set}" = set; then
7949 echo $ECHO_N "(cached) $ECHO_C" >&6
7951 ac_cv_header_krb_h=$ac_header_preproc
7953 echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
7954 echo "${ECHO_T}$ac_cv_header_krb_h" >&6
7957 if test $ac_cv_header_krb_h = yes; then
7960 { { echo "$as_me:$LINENO: error: header file <krb.h> is required for Kerberos 4" >&5
7961 echo "$as_me: error: header file <krb.h> is required for Kerberos 4" >&2;}
7962 { (exit 1); exit 1; }; }
7968 if test "$with_krb5" = yes ; then
7969 if test "${ac_cv_header_krb5_h+set}" = set; then
7970 echo "$as_me:$LINENO: checking for krb5.h" >&5
7971 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
7972 if test "${ac_cv_header_krb5_h+set}" = set; then
7973 echo $ECHO_N "(cached) $ECHO_C" >&6
7975 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
7976 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
7978 # Is the header compilable?
7979 echo "$as_me:$LINENO: checking krb5.h usability" >&5
7980 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6
7981 cat >conftest.$ac_ext <<_ACEOF
7982 #line $LINENO "configure"
7983 #include "confdefs.h"
7984 $ac_includes_default
7987 rm -f conftest.$ac_objext
7988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7989 (eval $ac_compile) 2>&5
7991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992 (exit $ac_status); } &&
7993 { ac_try='test -s conftest.$ac_objext'
7994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998 (exit $ac_status); }; }; then
7999 ac_header_compiler=yes
8001 echo "$as_me: failed program was:" >&5
8002 cat conftest.$ac_ext >&5
8003 ac_header_compiler=no
8005 rm -f conftest.$ac_objext conftest.$ac_ext
8006 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8007 echo "${ECHO_T}$ac_header_compiler" >&6
8009 # Is the header present?
8010 echo "$as_me:$LINENO: checking krb5.h presence" >&5
8011 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6
8012 cat >conftest.$ac_ext <<_ACEOF
8013 #line $LINENO "configure"
8014 #include "confdefs.h"
8017 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8018 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8020 egrep -v '^ *\+' conftest.er1 >conftest.err
8022 cat conftest.err >&5
8023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024 (exit $ac_status); } >/dev/null; then
8025 if test -s conftest.err; then
8026 ac_cpp_err=$ac_c_preproc_warn_flag
8033 if test -z "$ac_cpp_err"; then
8034 ac_header_preproc=yes
8036 echo "$as_me: failed program was:" >&5
8037 cat conftest.$ac_ext >&5
8038 ac_header_preproc=no
8040 rm -f conftest.err conftest.$ac_ext
8041 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8042 echo "${ECHO_T}$ac_header_preproc" >&6
8044 # So? What about this header?
8045 case $ac_header_compiler:$ac_header_preproc in
8047 { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
8048 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8049 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8050 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8052 { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
8053 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
8054 { echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
8055 echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
8056 { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
8057 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;};;
8059 echo "$as_me:$LINENO: checking for krb5.h" >&5
8060 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6
8061 if test "${ac_cv_header_krb5_h+set}" = set; then
8062 echo $ECHO_N "(cached) $ECHO_C" >&6
8064 ac_cv_header_krb5_h=$ac_header_preproc
8066 echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
8067 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6
8070 if test $ac_cv_header_krb5_h = yes; then
8073 { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
8074 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
8075 { (exit 1); exit 1; }; }
8079 if test "${ac_cv_header_com_err_h+set}" = set; then
8080 echo "$as_me:$LINENO: checking for com_err.h" >&5
8081 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8082 if test "${ac_cv_header_com_err_h+set}" = set; then
8083 echo $ECHO_N "(cached) $ECHO_C" >&6
8085 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8086 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8088 # Is the header compilable?
8089 echo "$as_me:$LINENO: checking com_err.h usability" >&5
8090 echo $ECHO_N "checking com_err.h usability... $ECHO_C" >&6
8091 cat >conftest.$ac_ext <<_ACEOF
8092 #line $LINENO "configure"
8093 #include "confdefs.h"
8094 $ac_includes_default
8095 #include <com_err.h>
8097 rm -f conftest.$ac_objext
8098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8099 (eval $ac_compile) 2>&5
8101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102 (exit $ac_status); } &&
8103 { ac_try='test -s conftest.$ac_objext'
8104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108 (exit $ac_status); }; }; then
8109 ac_header_compiler=yes
8111 echo "$as_me: failed program was:" >&5
8112 cat conftest.$ac_ext >&5
8113 ac_header_compiler=no
8115 rm -f conftest.$ac_objext conftest.$ac_ext
8116 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8117 echo "${ECHO_T}$ac_header_compiler" >&6
8119 # Is the header present?
8120 echo "$as_me:$LINENO: checking com_err.h presence" >&5
8121 echo $ECHO_N "checking com_err.h presence... $ECHO_C" >&6
8122 cat >conftest.$ac_ext <<_ACEOF
8123 #line $LINENO "configure"
8124 #include "confdefs.h"
8125 #include <com_err.h>
8127 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8128 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8130 egrep -v '^ *\+' conftest.er1 >conftest.err
8132 cat conftest.err >&5
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); } >/dev/null; then
8135 if test -s conftest.err; then
8136 ac_cpp_err=$ac_c_preproc_warn_flag
8143 if test -z "$ac_cpp_err"; then
8144 ac_header_preproc=yes
8146 echo "$as_me: failed program was:" >&5
8147 cat conftest.$ac_ext >&5
8148 ac_header_preproc=no
8150 rm -f conftest.err conftest.$ac_ext
8151 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8152 echo "${ECHO_T}$ac_header_preproc" >&6
8154 # So? What about this header?
8155 case $ac_header_compiler:$ac_header_preproc in
8157 { echo "$as_me:$LINENO: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8158 echo "$as_me: WARNING: com_err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8159 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8160 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8162 { echo "$as_me:$LINENO: WARNING: com_err.h: present but cannot be compiled" >&5
8163 echo "$as_me: WARNING: com_err.h: present but cannot be compiled" >&2;}
8164 { echo "$as_me:$LINENO: WARNING: com_err.h: check for missing prerequisite headers?" >&5
8165 echo "$as_me: WARNING: com_err.h: check for missing prerequisite headers?" >&2;}
8166 { echo "$as_me:$LINENO: WARNING: com_err.h: proceeding with the preprocessor's result" >&5
8167 echo "$as_me: WARNING: com_err.h: proceeding with the preprocessor's result" >&2;};;
8169 echo "$as_me:$LINENO: checking for com_err.h" >&5
8170 echo $ECHO_N "checking for com_err.h... $ECHO_C" >&6
8171 if test "${ac_cv_header_com_err_h+set}" = set; then
8172 echo $ECHO_N "(cached) $ECHO_C" >&6
8174 ac_cv_header_com_err_h=$ac_header_preproc
8176 echo "$as_me:$LINENO: result: $ac_cv_header_com_err_h" >&5
8177 echo "${ECHO_T}$ac_cv_header_com_err_h" >&6
8180 if test $ac_cv_header_com_err_h = yes; then
8183 { { echo "$as_me:$LINENO: error: header file <com_err.h> is required for Kerberos 5" >&5
8184 echo "$as_me: error: header file <com_err.h> is required for Kerberos 5" >&2;}
8185 { (exit 1); exit 1; }; }
8191 if test "$with_openssl" = yes ; then
8192 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8193 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8194 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8195 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8196 echo $ECHO_N "(cached) $ECHO_C" >&6
8198 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8199 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8201 # Is the header compilable?
8202 echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
8203 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6
8204 cat >conftest.$ac_ext <<_ACEOF
8205 #line $LINENO "configure"
8206 #include "confdefs.h"
8207 $ac_includes_default
8208 #include <openssl/ssl.h>
8210 rm -f conftest.$ac_objext
8211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8212 (eval $ac_compile) 2>&5
8214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215 (exit $ac_status); } &&
8216 { ac_try='test -s conftest.$ac_objext'
8217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221 (exit $ac_status); }; }; then
8222 ac_header_compiler=yes
8224 echo "$as_me: failed program was:" >&5
8225 cat conftest.$ac_ext >&5
8226 ac_header_compiler=no
8228 rm -f conftest.$ac_objext conftest.$ac_ext
8229 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8230 echo "${ECHO_T}$ac_header_compiler" >&6
8232 # Is the header present?
8233 echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
8234 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6
8235 cat >conftest.$ac_ext <<_ACEOF
8236 #line $LINENO "configure"
8237 #include "confdefs.h"
8238 #include <openssl/ssl.h>
8240 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8241 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8243 egrep -v '^ *\+' conftest.er1 >conftest.err
8245 cat conftest.err >&5
8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 (exit $ac_status); } >/dev/null; then
8248 if test -s conftest.err; then
8249 ac_cpp_err=$ac_c_preproc_warn_flag
8256 if test -z "$ac_cpp_err"; then
8257 ac_header_preproc=yes
8259 echo "$as_me: failed program was:" >&5
8260 cat conftest.$ac_ext >&5
8261 ac_header_preproc=no
8263 rm -f conftest.err conftest.$ac_ext
8264 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8265 echo "${ECHO_T}$ac_header_preproc" >&6
8267 # So? What about this header?
8268 case $ac_header_compiler:$ac_header_preproc in
8270 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8271 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8272 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8273 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8275 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
8276 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
8277 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
8278 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
8279 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
8280 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;};;
8282 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
8283 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
8284 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
8285 echo $ECHO_N "(cached) $ECHO_C" >&6
8287 ac_cv_header_openssl_ssl_h=$ac_header_preproc
8289 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
8290 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6
8293 if test $ac_cv_header_openssl_ssl_h = yes; then
8296 { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
8297 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
8298 { (exit 1); exit 1; }; }
8302 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8303 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8304 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8305 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8306 echo $ECHO_N "(cached) $ECHO_C" >&6
8308 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8309 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8311 # Is the header compilable?
8312 echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
8313 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6
8314 cat >conftest.$ac_ext <<_ACEOF
8315 #line $LINENO "configure"
8316 #include "confdefs.h"
8317 $ac_includes_default
8318 #include <openssl/err.h>
8320 rm -f conftest.$ac_objext
8321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8322 (eval $ac_compile) 2>&5
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); } &&
8326 { ac_try='test -s conftest.$ac_objext'
8327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); }; }; then
8332 ac_header_compiler=yes
8334 echo "$as_me: failed program was:" >&5
8335 cat conftest.$ac_ext >&5
8336 ac_header_compiler=no
8338 rm -f conftest.$ac_objext conftest.$ac_ext
8339 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8340 echo "${ECHO_T}$ac_header_compiler" >&6
8342 # Is the header present?
8343 echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
8344 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6
8345 cat >conftest.$ac_ext <<_ACEOF
8346 #line $LINENO "configure"
8347 #include "confdefs.h"
8348 #include <openssl/err.h>
8350 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8351 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8353 egrep -v '^ *\+' conftest.er1 >conftest.err
8355 cat conftest.err >&5
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); } >/dev/null; then
8358 if test -s conftest.err; then
8359 ac_cpp_err=$ac_c_preproc_warn_flag
8366 if test -z "$ac_cpp_err"; then
8367 ac_header_preproc=yes
8369 echo "$as_me: failed program was:" >&5
8370 cat conftest.$ac_ext >&5
8371 ac_header_preproc=no
8373 rm -f conftest.err conftest.$ac_ext
8374 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8375 echo "${ECHO_T}$ac_header_preproc" >&6
8377 # So? What about this header?
8378 case $ac_header_compiler:$ac_header_preproc in
8380 { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
8381 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8382 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8383 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8385 { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
8386 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
8387 { echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
8388 echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
8389 { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
8390 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;};;
8392 echo "$as_me:$LINENO: checking for openssl/err.h" >&5
8393 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6
8394 if test "${ac_cv_header_openssl_err_h+set}" = set; then
8395 echo $ECHO_N "(cached) $ECHO_C" >&6
8397 ac_cv_header_openssl_err_h=$ac_header_preproc
8399 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
8400 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6
8403 if test $ac_cv_header_openssl_err_h = yes; then
8406 { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
8407 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
8408 { (exit 1); exit 1; }; }
8414 if test "$with_pam" = yes ; then
8415 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8416 echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
8417 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
8418 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8419 echo $ECHO_N "(cached) $ECHO_C" >&6
8421 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
8422 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
8424 # Is the header compilable?
8425 echo "$as_me:$LINENO: checking security/pam_appl.h usability" >&5
8426 echo $ECHO_N "checking security/pam_appl.h usability... $ECHO_C" >&6
8427 cat >conftest.$ac_ext <<_ACEOF
8428 #line $LINENO "configure"
8429 #include "confdefs.h"
8430 $ac_includes_default
8431 #include <security/pam_appl.h>
8433 rm -f conftest.$ac_objext
8434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8435 (eval $ac_compile) 2>&5
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438 (exit $ac_status); } &&
8439 { ac_try='test -s conftest.$ac_objext'
8440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); }; }; then
8445 ac_header_compiler=yes
8447 echo "$as_me: failed program was:" >&5
8448 cat conftest.$ac_ext >&5
8449 ac_header_compiler=no
8451 rm -f conftest.$ac_objext conftest.$ac_ext
8452 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8453 echo "${ECHO_T}$ac_header_compiler" >&6
8455 # Is the header present?
8456 echo "$as_me:$LINENO: checking security/pam_appl.h presence" >&5
8457 echo $ECHO_N "checking security/pam_appl.h presence... $ECHO_C" >&6
8458 cat >conftest.$ac_ext <<_ACEOF
8459 #line $LINENO "configure"
8460 #include "confdefs.h"
8461 #include <security/pam_appl.h>
8463 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8464 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8466 egrep -v '^ *\+' conftest.er1 >conftest.err
8468 cat conftest.err >&5
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); } >/dev/null; then
8471 if test -s conftest.err; then
8472 ac_cpp_err=$ac_c_preproc_warn_flag
8479 if test -z "$ac_cpp_err"; then
8480 ac_header_preproc=yes
8482 echo "$as_me: failed program was:" >&5
8483 cat conftest.$ac_ext >&5
8484 ac_header_preproc=no
8486 rm -f conftest.err conftest.$ac_ext
8487 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8488 echo "${ECHO_T}$ac_header_preproc" >&6
8490 # So? What about this header?
8491 case $ac_header_compiler:$ac_header_preproc in
8493 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8494 echo "$as_me: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8495 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
8496 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
8498 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: present but cannot be compiled" >&5
8499 echo "$as_me: WARNING: security/pam_appl.h: present but cannot be compiled" >&2;}
8500 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&5
8501 echo "$as_me: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&2;}
8502 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
8503 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;};;
8505 echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
8506 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
8507 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8508 echo $ECHO_N "(cached) $ECHO_C" >&6
8510 ac_cv_header_security_pam_appl_h=$ac_header_preproc
8512 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
8513 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
8516 if test $ac_cv_header_security_pam_appl_h = yes; then
8519 { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> is required for PAM" >&5
8520 echo "$as_me: error: header file <security/pam_appl.h> is required for PAM" >&2;}
8521 { (exit 1); exit 1; }; }
8529 ## Types, structures, compiler characteristics
8533 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8534 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8535 if test "${ac_cv_c_const+set}" = set; then
8536 echo $ECHO_N "(cached) $ECHO_C" >&6
8538 cat >conftest.$ac_ext <<_ACEOF
8539 #line $LINENO "configure"
8540 #include "confdefs.h"
8542 #ifdef F77_DUMMY_MAIN
8546 int F77_DUMMY_MAIN() { return 1; }
8551 /* FIXME: Include the comments suggested by Paul. */
8553 /* Ultrix mips cc rejects this. */
8554 typedef int charset[2];
8556 /* SunOS 4.1.1 cc rejects this. */
8557 char const *const *ccp;
8559 /* NEC SVR4.0.2 mips cc rejects this. */
8560 struct point {int x, y;};
8561 static struct point const zero = {0,0};
8562 /* AIX XL C 1.02.0.0 rejects this.
8563 It does not let you subtract one const X* pointer from another in
8564 an arm of an if-expression whose if-part is not a constant
8566 const char *g = "string";
8567 ccp = &g + (g ? g-g : 0);
8568 /* HPUX 7.0 cc rejects these. */
8571 ccp = (char const *const *) p;
8572 { /* SCO 3.2v4 cc rejects this. */
8574 char const *s = 0 ? (char *) 0 : (char const *) 0;
8578 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8580 const int *foo = &x[0];
8583 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8584 typedef const int *iptr;
8588 { /* AIX XL C 1.02.0.0 rejects this saying
8589 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8590 struct s { int j; const int *ap[3]; };
8591 struct s *b; b->j = 5;
8593 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8602 rm -f conftest.$ac_objext
8603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8604 (eval $ac_compile) 2>&5
8606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607 (exit $ac_status); } &&
8608 { ac_try='test -s conftest.$ac_objext'
8609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613 (exit $ac_status); }; }; then
8616 echo "$as_me: failed program was:" >&5
8617 cat conftest.$ac_ext >&5
8620 rm -f conftest.$ac_objext conftest.$ac_ext
8622 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8623 echo "${ECHO_T}$ac_cv_c_const" >&6
8624 if test $ac_cv_c_const = no; then
8626 cat >>confdefs.h <<\_ACEOF
8632 echo "$as_me:$LINENO: checking for inline" >&5
8633 echo $ECHO_N "checking for inline... $ECHO_C" >&6
8634 if test "${ac_cv_c_inline+set}" = set; then
8635 echo $ECHO_N "(cached) $ECHO_C" >&6
8638 for ac_kw in inline __inline__ __inline; do
8639 cat >conftest.$ac_ext <<_ACEOF
8640 #line $LINENO "configure"
8641 #include "confdefs.h"
8643 static $ac_kw int static_foo () {return 0; }
8644 $ac_kw int foo () {return 0; }
8648 rm -f conftest.$ac_objext
8649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8650 (eval $ac_compile) 2>&5
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); } &&
8654 { ac_try='test -s conftest.$ac_objext'
8655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 (exit $ac_status); }; }; then
8660 ac_cv_c_inline=$ac_kw; break
8662 echo "$as_me: failed program was:" >&5
8663 cat conftest.$ac_ext >&5
8665 rm -f conftest.$ac_objext conftest.$ac_ext
8669 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8670 echo "${ECHO_T}$ac_cv_c_inline" >&6
8671 case $ac_cv_c_inline in
8674 cat >>confdefs.h <<\_ACEOF
8678 *) cat >>confdefs.h <<_ACEOF
8679 #define inline $ac_cv_c_inline
8684 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
8685 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
8686 if test "${ac_cv_c_stringize+set}" = set; then
8687 echo $ECHO_N "(cached) $ECHO_C" >&6
8689 cat >conftest.$ac_ext <<_ACEOF
8690 #line $LINENO "configure"
8691 #include "confdefs.h"
8694 char *s = x(teststring);
8696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8697 egrep "#teststring" >/dev/null 2>&1; then
8698 ac_cv_c_stringize=no
8700 ac_cv_c_stringize=yes
8705 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
8706 echo "${ECHO_T}$ac_cv_c_stringize" >&6
8707 if test $ac_cv_c_stringize = yes; then
8709 cat >>confdefs.h <<\_ACEOF
8710 #define HAVE_STRINGIZE 1
8715 echo "$as_me:$LINENO: checking for signed types" >&5
8716 echo $ECHO_N "checking for signed types... $ECHO_C" >&6
8717 if test "${pgac_cv_c_signed+set}" = set; then
8718 echo $ECHO_N "(cached) $ECHO_C" >&6
8720 cat >conftest.$ac_ext <<_ACEOF
8721 #line $LINENO "configure"
8722 #include "confdefs.h"
8724 #ifdef F77_DUMMY_MAIN
8728 int F77_DUMMY_MAIN() { return 1; }
8733 signed char c; signed short s; signed int i;
8738 rm -f conftest.$ac_objext
8739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8740 (eval $ac_compile) 2>&5
8742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743 (exit $ac_status); } &&
8744 { ac_try='test -s conftest.$ac_objext'
8745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749 (exit $ac_status); }; }; then
8750 pgac_cv_c_signed=yes
8752 echo "$as_me: failed program was:" >&5
8753 cat conftest.$ac_ext >&5
8756 rm -f conftest.$ac_objext conftest.$ac_ext
8758 echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
8759 echo "${ECHO_T}$pgac_cv_c_signed" >&6
8760 if test x"$pgac_cv_c_signed" = xno ; then
8762 cat >>confdefs.h <<\_ACEOF
8767 echo "$as_me:$LINENO: checking for working volatile" >&5
8768 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
8769 if test "${ac_cv_c_volatile+set}" = set; then
8770 echo $ECHO_N "(cached) $ECHO_C" >&6
8772 cat >conftest.$ac_ext <<_ACEOF
8773 #line $LINENO "configure"
8774 #include "confdefs.h"
8776 #ifdef F77_DUMMY_MAIN
8780 int F77_DUMMY_MAIN() { return 1; }
8792 rm -f conftest.$ac_objext
8793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8794 (eval $ac_compile) 2>&5
8796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797 (exit $ac_status); } &&
8798 { ac_try='test -s conftest.$ac_objext'
8799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803 (exit $ac_status); }; }; then
8804 ac_cv_c_volatile=yes
8806 echo "$as_me: failed program was:" >&5
8807 cat conftest.$ac_ext >&5
8810 rm -f conftest.$ac_objext conftest.$ac_ext
8812 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8813 echo "${ECHO_T}$ac_cv_c_volatile" >&6
8814 if test $ac_cv_c_volatile = no; then
8816 cat >>confdefs.h <<\_ACEOF
8822 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8823 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
8824 if test "${ac_cv_struct_tm+set}" = set; then
8825 echo $ECHO_N "(cached) $ECHO_C" >&6
8827 cat >conftest.$ac_ext <<_ACEOF
8828 #line $LINENO "configure"
8829 #include "confdefs.h"
8830 #include <sys/types.h>
8833 #ifdef F77_DUMMY_MAIN
8837 int F77_DUMMY_MAIN() { return 1; }
8842 struct tm *tp; tp->tm_sec;
8847 rm -f conftest.$ac_objext
8848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8849 (eval $ac_compile) 2>&5
8851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852 (exit $ac_status); } &&
8853 { ac_try='test -s conftest.$ac_objext'
8854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); }; }; then
8859 ac_cv_struct_tm=time.h
8861 echo "$as_me: failed program was:" >&5
8862 cat conftest.$ac_ext >&5
8863 ac_cv_struct_tm=sys/time.h
8865 rm -f conftest.$ac_objext conftest.$ac_ext
8867 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8868 echo "${ECHO_T}$ac_cv_struct_tm" >&6
8869 if test $ac_cv_struct_tm = sys/time.h; then
8871 cat >>confdefs.h <<\_ACEOF
8872 #define TM_IN_SYS_TIME 1
8877 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8878 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
8879 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8880 echo $ECHO_N "(cached) $ECHO_C" >&6
8882 cat >conftest.$ac_ext <<_ACEOF
8883 #line $LINENO "configure"
8884 #include "confdefs.h"
8885 #include <sys/types.h>
8886 #include <$ac_cv_struct_tm>
8889 #ifdef F77_DUMMY_MAIN
8893 int F77_DUMMY_MAIN() { return 1; }
8898 static struct tm ac_aggr;
8899 if (ac_aggr.tm_zone)
8905 rm -f conftest.$ac_objext
8906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8907 (eval $ac_compile) 2>&5
8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); } &&
8911 { ac_try='test -s conftest.$ac_objext'
8912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916 (exit $ac_status); }; }; then
8917 ac_cv_member_struct_tm_tm_zone=yes
8919 echo "$as_me: failed program was:" >&5
8920 cat conftest.$ac_ext >&5
8921 ac_cv_member_struct_tm_tm_zone=no
8923 rm -f conftest.$ac_objext conftest.$ac_ext
8925 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8926 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
8927 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8929 cat >>confdefs.h <<_ACEOF
8930 #define HAVE_STRUCT_TM_TM_ZONE 1
8936 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8938 cat >>confdefs.h <<\_ACEOF
8939 #define HAVE_TM_ZONE 1
8943 echo "$as_me:$LINENO: checking for tzname" >&5
8944 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
8945 if test "${ac_cv_var_tzname+set}" = set; then
8946 echo $ECHO_N "(cached) $ECHO_C" >&6
8948 cat >conftest.$ac_ext <<_ACEOF
8949 #line $LINENO "configure"
8950 #include "confdefs.h"
8952 #ifndef tzname /* For SGI. */
8953 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
8956 #ifdef F77_DUMMY_MAIN
8960 int F77_DUMMY_MAIN() { return 1; }
8970 rm -f conftest.$ac_objext conftest$ac_exeext
8971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8972 (eval $ac_link) 2>&5
8974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 (exit $ac_status); } &&
8976 { ac_try='test -s conftest$ac_exeext'
8977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); }; }; then
8982 ac_cv_var_tzname=yes
8984 echo "$as_me: failed program was:" >&5
8985 cat conftest.$ac_ext >&5
8988 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8990 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8991 echo "${ECHO_T}$ac_cv_var_tzname" >&6
8992 if test $ac_cv_var_tzname = yes; then
8994 cat >>confdefs.h <<\_ACEOF
8995 #define HAVE_TZNAME 1
9001 echo "$as_me:$LINENO: checking for union semun" >&5
9002 echo $ECHO_N "checking for union semun... $ECHO_C" >&6
9003 if test "${ac_cv_type_union_semun+set}" = set; then
9004 echo $ECHO_N "(cached) $ECHO_C" >&6
9006 cat >conftest.$ac_ext <<_ACEOF
9007 #line $LINENO "configure"
9008 #include "confdefs.h"
9009 #include <sys/types.h>
9010 #include <sys/ipc.h>
9011 #include <sys/sem.h>
9013 #ifdef F77_DUMMY_MAIN
9017 int F77_DUMMY_MAIN() { return 1; }
9022 if ((union semun *) 0)
9024 if (sizeof (union semun))
9030 rm -f conftest.$ac_objext
9031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9032 (eval $ac_compile) 2>&5
9034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035 (exit $ac_status); } &&
9036 { ac_try='test -s conftest.$ac_objext'
9037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041 (exit $ac_status); }; }; then
9042 ac_cv_type_union_semun=yes
9044 echo "$as_me: failed program was:" >&5
9045 cat conftest.$ac_ext >&5
9046 ac_cv_type_union_semun=no
9048 rm -f conftest.$ac_objext conftest.$ac_ext
9050 echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
9051 echo "${ECHO_T}$ac_cv_type_union_semun" >&6
9052 if test $ac_cv_type_union_semun = yes; then
9054 cat >>confdefs.h <<_ACEOF
9055 #define HAVE_UNION_SEMUN 1
9061 echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
9062 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6
9063 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
9064 echo $ECHO_N "(cached) $ECHO_C" >&6
9066 cat >conftest.$ac_ext <<_ACEOF
9067 #line $LINENO "configure"
9068 #include "confdefs.h"
9069 #include <sys/types.h>
9070 #ifdef HAVE_SYS_UN_H
9075 #ifdef F77_DUMMY_MAIN
9079 int F77_DUMMY_MAIN() { return 1; }
9084 if ((struct sockaddr_un *) 0)
9086 if (sizeof (struct sockaddr_un))
9092 rm -f conftest.$ac_objext
9093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9094 (eval $ac_compile) 2>&5
9096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097 (exit $ac_status); } &&
9098 { ac_try='test -s conftest.$ac_objext'
9099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103 (exit $ac_status); }; }; then
9104 ac_cv_type_struct_sockaddr_un=yes
9106 echo "$as_me: failed program was:" >&5
9107 cat conftest.$ac_ext >&5
9108 ac_cv_type_struct_sockaddr_un=no
9110 rm -f conftest.$ac_objext conftest.$ac_ext
9112 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
9113 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6
9114 if test $ac_cv_type_struct_sockaddr_un = yes; then
9116 cat >>confdefs.h <<_ACEOF
9117 #define HAVE_STRUCT_SOCKADDR_UN 1
9124 echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
9125 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6
9126 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
9127 echo $ECHO_N "(cached) $ECHO_C" >&6
9129 cat >conftest.$ac_ext <<_ACEOF
9130 #line $LINENO "configure"
9131 #include "confdefs.h"
9132 #include <sys/param.h>
9133 #include <sys/socket.h>
9134 #include <sys/ucred.h>
9136 #ifdef F77_DUMMY_MAIN
9140 int F77_DUMMY_MAIN() { return 1; }
9145 if ((struct cmsgcred *) 0)
9147 if (sizeof (struct cmsgcred))
9153 rm -f conftest.$ac_objext
9154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9155 (eval $ac_compile) 2>&5
9157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158 (exit $ac_status); } &&
9159 { ac_try='test -s conftest.$ac_objext'
9160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164 (exit $ac_status); }; }; then
9165 ac_cv_type_struct_cmsgcred=yes
9167 echo "$as_me: failed program was:" >&5
9168 cat conftest.$ac_ext >&5
9169 ac_cv_type_struct_cmsgcred=no
9171 rm -f conftest.$ac_objext conftest.$ac_ext
9173 echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
9174 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6
9175 if test $ac_cv_type_struct_cmsgcred = yes; then
9177 cat >>confdefs.h <<_ACEOF
9178 #define HAVE_STRUCT_CMSGCRED 1
9183 echo "$as_me:$LINENO: checking for struct fcred" >&5
9184 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6
9185 if test "${ac_cv_type_struct_fcred+set}" = set; then
9186 echo $ECHO_N "(cached) $ECHO_C" >&6
9188 cat >conftest.$ac_ext <<_ACEOF
9189 #line $LINENO "configure"
9190 #include "confdefs.h"
9191 #include <sys/param.h>
9192 #include <sys/socket.h>
9193 #include <sys/ucred.h>
9195 #ifdef F77_DUMMY_MAIN
9199 int F77_DUMMY_MAIN() { return 1; }
9204 if ((struct fcred *) 0)
9206 if (sizeof (struct fcred))
9212 rm -f conftest.$ac_objext
9213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9214 (eval $ac_compile) 2>&5
9216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217 (exit $ac_status); } &&
9218 { ac_try='test -s conftest.$ac_objext'
9219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223 (exit $ac_status); }; }; then
9224 ac_cv_type_struct_fcred=yes
9226 echo "$as_me: failed program was:" >&5
9227 cat conftest.$ac_ext >&5
9228 ac_cv_type_struct_fcred=no
9230 rm -f conftest.$ac_objext conftest.$ac_ext
9232 echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
9233 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6
9234 if test $ac_cv_type_struct_fcred = yes; then
9236 cat >>confdefs.h <<_ACEOF
9237 #define HAVE_STRUCT_FCRED 1
9242 echo "$as_me:$LINENO: checking for struct sockcred" >&5
9243 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6
9244 if test "${ac_cv_type_struct_sockcred+set}" = set; then
9245 echo $ECHO_N "(cached) $ECHO_C" >&6
9247 cat >conftest.$ac_ext <<_ACEOF
9248 #line $LINENO "configure"
9249 #include "confdefs.h"
9250 #include <sys/param.h>
9251 #include <sys/socket.h>
9252 #include <sys/ucred.h>
9254 #ifdef F77_DUMMY_MAIN
9258 int F77_DUMMY_MAIN() { return 1; }
9263 if ((struct sockcred *) 0)
9265 if (sizeof (struct sockcred))
9271 rm -f conftest.$ac_objext
9272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9273 (eval $ac_compile) 2>&5
9275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276 (exit $ac_status); } &&
9277 { ac_try='test -s conftest.$ac_objext'
9278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282 (exit $ac_status); }; }; then
9283 ac_cv_type_struct_sockcred=yes
9285 echo "$as_me: failed program was:" >&5
9286 cat conftest.$ac_ext >&5
9287 ac_cv_type_struct_sockcred=no
9289 rm -f conftest.$ac_objext conftest.$ac_ext
9291 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
9292 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6
9293 if test $ac_cv_type_struct_sockcred = yes; then
9295 cat >>confdefs.h <<_ACEOF
9296 #define HAVE_STRUCT_SOCKCRED 1
9303 if test "$with_zlib" = yes; then
9304 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
9305 # did not). While we could work around the lack of z_streamp, it
9306 # seems unwise to encourage people to use such old zlib versions...
9307 echo "$as_me:$LINENO: checking for z_streamp" >&5
9308 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6
9309 if test "${ac_cv_type_z_streamp+set}" = set; then
9310 echo $ECHO_N "(cached) $ECHO_C" >&6
9312 cat >conftest.$ac_ext <<_ACEOF
9313 #line $LINENO "configure"
9314 #include "confdefs.h"
9317 #ifdef F77_DUMMY_MAIN
9321 int F77_DUMMY_MAIN() { return 1; }
9326 if ((z_streamp *) 0)
9328 if (sizeof (z_streamp))
9334 rm -f conftest.$ac_objext
9335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9336 (eval $ac_compile) 2>&5
9338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339 (exit $ac_status); } &&
9340 { ac_try='test -s conftest.$ac_objext'
9341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345 (exit $ac_status); }; }; then
9346 ac_cv_type_z_streamp=yes
9348 echo "$as_me: failed program was:" >&5
9349 cat conftest.$ac_ext >&5
9350 ac_cv_type_z_streamp=no
9352 rm -f conftest.$ac_objext conftest.$ac_ext
9354 echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
9355 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6
9356 if test $ac_cv_type_z_streamp = yes; then
9359 { { echo "$as_me:$LINENO: error: zlib version is too old
9360 Use --without-zlib to disable zlib support." >&5
9361 echo "$as_me: error: zlib version is too old
9362 Use --without-zlib to disable zlib support." >&2;}
9363 { (exit 1); exit 1; }; }
9368 if test "$with_krb5" = yes; then
9369 # Check for differences between MIT and Heimdal (KTH) releases
9370 echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
9371 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6
9372 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
9373 echo $ECHO_N "(cached) $ECHO_C" >&6
9375 cat >conftest.$ac_ext <<_ACEOF
9376 #line $LINENO "configure"
9377 #include "confdefs.h"
9380 #ifdef F77_DUMMY_MAIN
9384 int F77_DUMMY_MAIN() { return 1; }
9389 static krb5_ticket ac_aggr;
9390 if (ac_aggr.enc_part2)
9396 rm -f conftest.$ac_objext
9397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9398 (eval $ac_compile) 2>&5
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); } &&
9402 { ac_try='test -s conftest.$ac_objext'
9403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 (exit $ac_status); }; }; then
9408 ac_cv_member_krb5_ticket_enc_part2=yes
9410 echo "$as_me: failed program was:" >&5
9411 cat conftest.$ac_ext >&5
9412 ac_cv_member_krb5_ticket_enc_part2=no
9414 rm -f conftest.$ac_objext conftest.$ac_ext
9416 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
9417 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6
9418 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
9420 cat >>confdefs.h <<_ACEOF
9421 #define HAVE_KRB5_TICKET_ENC_PART2 1
9426 echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
9427 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6
9428 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
9429 echo $ECHO_N "(cached) $ECHO_C" >&6
9431 cat >conftest.$ac_ext <<_ACEOF
9432 #line $LINENO "configure"
9433 #include "confdefs.h"
9436 #ifdef F77_DUMMY_MAIN
9440 int F77_DUMMY_MAIN() { return 1; }
9445 static krb5_ticket ac_aggr;
9452 rm -f conftest.$ac_objext
9453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9454 (eval $ac_compile) 2>&5
9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 (exit $ac_status); } &&
9458 { ac_try='test -s conftest.$ac_objext'
9459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463 (exit $ac_status); }; }; then
9464 ac_cv_member_krb5_ticket_client=yes
9466 echo "$as_me: failed program was:" >&5
9467 cat conftest.$ac_ext >&5
9468 ac_cv_member_krb5_ticket_client=no
9470 rm -f conftest.$ac_objext conftest.$ac_ext
9472 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
9473 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6
9474 if test $ac_cv_member_krb5_ticket_client = yes; then
9476 cat >>confdefs.h <<_ACEOF
9477 #define HAVE_KRB5_TICKET_CLIENT 1
9482 { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
9483 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
9484 { (exit 1); exit 1; }; }
9489 echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
9490 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6
9491 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
9492 echo $ECHO_N "(cached) $ECHO_C" >&6
9494 cat >conftest.$ac_ext <<_ACEOF
9495 #line $LINENO "configure"
9496 #include "confdefs.h"
9499 #ifdef F77_DUMMY_MAIN
9503 int F77_DUMMY_MAIN() { return 1; }
9508 static krb5_error ac_aggr;
9509 if (ac_aggr.text.data)
9515 rm -f conftest.$ac_objext
9516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9517 (eval $ac_compile) 2>&5
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); } &&
9521 { ac_try='test -s conftest.$ac_objext'
9522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526 (exit $ac_status); }; }; then
9527 ac_cv_member_krb5_error_text_data=yes
9529 echo "$as_me: failed program was:" >&5
9530 cat conftest.$ac_ext >&5
9531 ac_cv_member_krb5_error_text_data=no
9533 rm -f conftest.$ac_objext conftest.$ac_ext
9535 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
9536 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6
9537 if test $ac_cv_member_krb5_error_text_data = yes; then
9539 cat >>confdefs.h <<_ACEOF
9540 #define HAVE_KRB5_ERROR_TEXT_DATA 1
9545 echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
9546 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6
9547 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
9548 echo $ECHO_N "(cached) $ECHO_C" >&6
9550 cat >conftest.$ac_ext <<_ACEOF
9551 #line $LINENO "configure"
9552 #include "confdefs.h"
9555 #ifdef F77_DUMMY_MAIN
9559 int F77_DUMMY_MAIN() { return 1; }
9564 static krb5_error ac_aggr;
9571 rm -f conftest.$ac_objext
9572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9573 (eval $ac_compile) 2>&5
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); } &&
9577 { ac_try='test -s conftest.$ac_objext'
9578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582 (exit $ac_status); }; }; then
9583 ac_cv_member_krb5_error_e_data=yes
9585 echo "$as_me: failed program was:" >&5
9586 cat conftest.$ac_ext >&5
9587 ac_cv_member_krb5_error_e_data=no
9589 rm -f conftest.$ac_objext conftest.$ac_ext
9591 echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
9592 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6
9593 if test $ac_cv_member_krb5_error_e_data = yes; then
9596 { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
9597 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
9598 { (exit 1); exit 1; }; }
9607 ## Functions, global variables
9610 echo "$as_me:$LINENO: checking for int timezone" >&5
9611 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
9612 if test "${pgac_cv_var_int_timezone+set}" = set; then
9613 echo $ECHO_N "(cached) $ECHO_C" >&6
9615 cat >conftest.$ac_ext <<_ACEOF
9616 #line $LINENO "configure"
9617 #include "confdefs.h"
9620 #ifdef F77_DUMMY_MAIN
9624 int F77_DUMMY_MAIN() { return 1; }
9629 res = timezone / 60;
9634 rm -f conftest.$ac_objext conftest$ac_exeext
9635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9636 (eval $ac_link) 2>&5
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); } &&
9640 { ac_try='test -s conftest$ac_exeext'
9641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 (exit $ac_status); }; }; then
9646 pgac_cv_var_int_timezone=yes
9648 echo "$as_me: failed program was:" >&5
9649 cat conftest.$ac_ext >&5
9650 pgac_cv_var_int_timezone=no
9652 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9654 echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
9655 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
9656 if test x"$pgac_cv_var_int_timezone" = xyes ; then
9658 cat >>confdefs.h <<\_ACEOF
9659 #define HAVE_INT_TIMEZONE
9663 echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
9664 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6
9665 if test "${ac_cv_func_accept_arg1+set}" = set; then
9666 echo $ECHO_N "(cached) $ECHO_C" >&6
9668 if test "${ac_cv_func_accept_arg2+set}" = set; then
9669 echo $ECHO_N "(cached) $ECHO_C" >&6
9671 if test "${ac_cv_func_accept_arg3+set}" = set; then
9672 echo $ECHO_N "(cached) $ECHO_C" >&6
9674 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
9675 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
9676 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
9677 cat >conftest.$ac_ext <<_ACEOF
9678 #line $LINENO "configure"
9679 #include "confdefs.h"
9680 #ifdef HAVE_SYS_TYPES_H
9681 #include <sys/types.h>
9683 #ifdef HAVE_SYS_SOCKET_H
9684 #include <sys/socket.h>
9686 extern int accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
9687 #ifdef F77_DUMMY_MAIN
9691 int F77_DUMMY_MAIN() { return 1; }
9701 rm -f conftest.$ac_objext
9702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9703 (eval $ac_compile) 2>&5
9705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706 (exit $ac_status); } &&
9707 { ac_try='test -s conftest.$ac_objext'
9708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712 (exit $ac_status); }; }; then
9713 ac_not_found=no; break 3
9715 echo "$as_me: failed program was:" >&5
9716 cat conftest.$ac_ext >&5
9719 rm -f conftest.$ac_objext conftest.$ac_ext
9723 if test "$ac_not_found" = yes; then
9724 { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
9725 echo "$as_me: error: could not determine argument types" >&2;}
9726 { (exit 1); exit 1; }; }
9728 if test "$ac_cv_func_accept_arg3" = "void"; then
9729 ac_cv_func_accept_arg3=int
9737 echo "$as_me:$LINENO: result: $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
9738 echo "${ECHO_T}$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6
9740 cat >>confdefs.h <<_ACEOF
9741 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
9745 cat >>confdefs.h <<_ACEOF
9746 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
9750 cat >>confdefs.h <<_ACEOF
9751 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
9755 echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
9756 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6
9757 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
9758 echo $ECHO_N "(cached) $ECHO_C" >&6
9760 cat >conftest.$ac_ext <<_ACEOF
9761 #line $LINENO "configure"
9762 #include "confdefs.h"
9763 #include <sys/time.h>
9764 #ifdef F77_DUMMY_MAIN
9768 int F77_DUMMY_MAIN() { return 1; }
9774 struct timezone *tzp;
9775 gettimeofday(tp,tzp);
9780 rm -f conftest.$ac_objext
9781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9782 (eval $ac_compile) 2>&5
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); } &&
9786 { ac_try='test -s conftest.$ac_objext'
9787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); }; }; then
9792 pgac_cv_func_gettimeofday_1arg=no
9794 echo "$as_me: failed program was:" >&5
9795 cat conftest.$ac_ext >&5
9796 pgac_cv_func_gettimeofday_1arg=yes
9798 rm -f conftest.$ac_objext conftest.$ac_ext
9800 echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
9801 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6
9802 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
9804 cat >>confdefs.h <<\_ACEOF
9805 #define GETTIMEOFDAY_1ARG
9810 # SunOS doesn't handle negative byte comparisons properly with +/- return
9811 echo "$as_me:$LINENO: checking for working memcmp" >&5
9812 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
9813 if test "${ac_cv_func_memcmp_working+set}" = set; then
9814 echo $ECHO_N "(cached) $ECHO_C" >&6
9816 if test "$cross_compiling" = yes; then
9817 ac_cv_func_memcmp_working=no
9819 cat >conftest.$ac_ext <<_ACEOF
9820 #line $LINENO "configure"
9821 #include "confdefs.h"
9823 #ifdef F77_DUMMY_MAIN
9827 int F77_DUMMY_MAIN() { return 1; }
9833 /* Some versions of memcmp are not 8-bit clean. */
9834 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
9835 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9838 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9839 or more and with at least one buffer not starting on a 4-byte boundary.
9840 William Lewis provided this test program. */
9845 for (i = 0; i < 4; i++)
9849 strcpy (a, "--------01111111");
9850 strcpy (b, "--------10000000");
9851 if (memcmp (a, b, 16) >= 0)
9861 rm -f conftest$ac_exeext
9862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9863 (eval $ac_link) 2>&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); }; }; then
9872 ac_cv_func_memcmp_working=yes
9874 echo "$as_me: program exited with status $ac_status" >&5
9875 echo "$as_me: failed program was:" >&5
9876 cat conftest.$ac_ext >&5
9878 ac_cv_func_memcmp_working=no
9880 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9883 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9884 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
9885 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
9900 for ac_func in cbrt fcvt getopt_long memmove pstat setproctitle setsid sigprocmask sysconf waitpid dlopen fdatasync
9902 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9903 echo "$as_me:$LINENO: checking for $ac_func" >&5
9904 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9905 if eval "test \"\${$as_ac_var+set}\" = set"; then
9906 echo $ECHO_N "(cached) $ECHO_C" >&6
9908 cat >conftest.$ac_ext <<_ACEOF
9909 #line $LINENO "configure"
9910 #include "confdefs.h"
9911 /* System header to define __stub macros and hopefully few prototypes,
9912 which can conflict with char $ac_func (); below. */
9914 /* Override any gcc2 internal prototype to avoid an error. */
9918 /* We use char because int might match the return type of a gcc2
9919 builtin and then its argument prototype would still apply. */
9923 #ifdef F77_DUMMY_MAIN
9927 int F77_DUMMY_MAIN() { return 1; }
9932 /* The GNU C library defines this for functions which it implements
9933 to always fail with ENOSYS. Some functions are actually named
9934 something starting with __ and the normal name is an alias. */
9935 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9945 rm -f conftest.$ac_objext conftest$ac_exeext
9946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9947 (eval $ac_link) 2>&5
9949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950 (exit $ac_status); } &&
9951 { ac_try='test -s conftest$ac_exeext'
9952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956 (exit $ac_status); }; }; then
9957 eval "$as_ac_var=yes"
9959 echo "$as_me: failed program was:" >&5
9960 cat conftest.$ac_ext >&5
9961 eval "$as_ac_var=no"
9963 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9966 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9967 if test `eval echo '${'$as_ac_var'}'` = yes; then
9968 cat >>confdefs.h <<_ACEOF
9969 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9976 echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
9977 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6
9978 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
9979 echo $ECHO_N "(cached) $ECHO_C" >&6
9981 cat >conftest.$ac_ext <<_ACEOF
9982 #line $LINENO "configure"
9983 #include "confdefs.h"
9986 #ifdef F77_DUMMY_MAIN
9990 int F77_DUMMY_MAIN() { return 1; }
9996 char *p = (char *) fdatasync;
10003 rm -f conftest.$ac_objext
10004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10005 (eval $ac_compile) 2>&5
10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008 (exit $ac_status); } &&
10009 { ac_try='test -s conftest.$ac_objext'
10010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10011 (eval $ac_try) 2>&5
10013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014 (exit $ac_status); }; }; then
10015 ac_cv_have_decl_fdatasync=yes
10017 echo "$as_me: failed program was:" >&5
10018 cat conftest.$ac_ext >&5
10019 ac_cv_have_decl_fdatasync=no
10021 rm -f conftest.$ac_objext conftest.$ac_ext
10023 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
10024 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6
10025 if test $ac_cv_have_decl_fdatasync = yes; then
10027 cat >>confdefs.h <<_ACEOF
10028 #define HAVE_DECL_FDATASYNC 1
10033 cat >>confdefs.h <<_ACEOF
10034 #define HAVE_DECL_FDATASYNC 0
10042 echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
10043 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6
10044 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
10045 echo $ECHO_N "(cached) $ECHO_C" >&6
10047 cat >conftest.$ac_ext <<_ACEOF
10048 #line $LINENO "configure"
10049 #include "confdefs.h"
10050 #include <machine/vmparam.h>
10051 #include <sys/exec.h>
10053 #ifdef F77_DUMMY_MAIN
10054 # ifdef __cplusplus
10057 int F77_DUMMY_MAIN() { return 1; }
10062 PS_STRINGS->ps_nargvstr = 1;
10063 PS_STRINGS->ps_argvstr = "foo";
10068 rm -f conftest.$ac_objext conftest$ac_exeext
10069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10070 (eval $ac_link) 2>&5
10072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073 (exit $ac_status); } &&
10074 { ac_try='test -s conftest$ac_exeext'
10075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10076 (eval $ac_try) 2>&5
10078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079 (exit $ac_status); }; }; then
10080 pgac_cv_var_PS_STRINGS=yes
10082 echo "$as_me: failed program was:" >&5
10083 cat conftest.$ac_ext >&5
10084 pgac_cv_var_PS_STRINGS=no
10086 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10088 echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
10089 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6
10090 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
10092 cat >>confdefs.h <<\_ACEOF
10093 #define HAVE_PS_STRINGS
10099 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
10100 # is missing. Yes, there are machines that have only one. We may
10101 # also decide to use snprintf.c if snprintf() is present but does not
10102 # have working "long long int" support -- see below.
10104 pgac_need_repl_snprintf=no
10106 for ac_func in snprintf
10108 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10109 echo "$as_me:$LINENO: checking for $ac_func" >&5
10110 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10111 if eval "test \"\${$as_ac_var+set}\" = set"; then
10112 echo $ECHO_N "(cached) $ECHO_C" >&6
10114 cat >conftest.$ac_ext <<_ACEOF
10115 #line $LINENO "configure"
10116 #include "confdefs.h"
10117 /* System header to define __stub macros and hopefully few prototypes,
10118 which can conflict with char $ac_func (); below. */
10119 #include <assert.h>
10120 /* Override any gcc2 internal prototype to avoid an error. */
10124 /* We use char because int might match the return type of a gcc2
10125 builtin and then its argument prototype would still apply. */
10129 #ifdef F77_DUMMY_MAIN
10130 # ifdef __cplusplus
10133 int F77_DUMMY_MAIN() { return 1; }
10138 /* The GNU C library defines this for functions which it implements
10139 to always fail with ENOSYS. Some functions are actually named
10140 something starting with __ and the normal name is an alias. */
10141 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10151 rm -f conftest.$ac_objext conftest$ac_exeext
10152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10153 (eval $ac_link) 2>&5
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); } &&
10157 { ac_try='test -s conftest$ac_exeext'
10158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10159 (eval $ac_try) 2>&5
10161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 (exit $ac_status); }; }; then
10163 eval "$as_ac_var=yes"
10165 echo "$as_me: failed program was:" >&5
10166 cat conftest.$ac_ext >&5
10167 eval "$as_ac_var=no"
10169 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10172 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10173 if test `eval echo '${'$as_ac_var'}'` = yes; then
10174 cat >>confdefs.h <<_ACEOF
10175 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10179 pgac_need_repl_snprintf=yes
10184 for ac_func in vsnprintf
10186 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10187 echo "$as_me:$LINENO: checking for $ac_func" >&5
10188 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10189 if eval "test \"\${$as_ac_var+set}\" = set"; then
10190 echo $ECHO_N "(cached) $ECHO_C" >&6
10192 cat >conftest.$ac_ext <<_ACEOF
10193 #line $LINENO "configure"
10194 #include "confdefs.h"
10195 /* System header to define __stub macros and hopefully few prototypes,
10196 which can conflict with char $ac_func (); below. */
10197 #include <assert.h>
10198 /* Override any gcc2 internal prototype to avoid an error. */
10202 /* We use char because int might match the return type of a gcc2
10203 builtin and then its argument prototype would still apply. */
10207 #ifdef F77_DUMMY_MAIN
10208 # ifdef __cplusplus
10211 int F77_DUMMY_MAIN() { return 1; }
10216 /* The GNU C library defines this for functions which it implements
10217 to always fail with ENOSYS. Some functions are actually named
10218 something starting with __ and the normal name is an alias. */
10219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10229 rm -f conftest.$ac_objext conftest$ac_exeext
10230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10231 (eval $ac_link) 2>&5
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); } &&
10235 { ac_try='test -s conftest$ac_exeext'
10236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10237 (eval $ac_try) 2>&5
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); }; }; then
10241 eval "$as_ac_var=yes"
10243 echo "$as_me: failed program was:" >&5
10244 cat conftest.$ac_ext >&5
10245 eval "$as_ac_var=no"
10247 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10250 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10251 if test `eval echo '${'$as_ac_var'}'` = yes; then
10252 cat >>confdefs.h <<_ACEOF
10253 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10257 pgac_need_repl_snprintf=yes
10263 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
10264 # include/c.h will provide declarations. Note this is a separate test
10265 # from whether the functions exist in the C library --- there are
10266 # systems that have the functions but don't bother to declare them :-(
10268 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
10269 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
10270 if test "${ac_cv_have_decl_snprintf+set}" = set; then
10271 echo $ECHO_N "(cached) $ECHO_C" >&6
10273 cat >conftest.$ac_ext <<_ACEOF
10274 #line $LINENO "configure"
10275 #include "confdefs.h"
10276 $ac_includes_default
10277 #ifdef F77_DUMMY_MAIN
10278 # ifdef __cplusplus
10281 int F77_DUMMY_MAIN() { return 1; }
10287 char *p = (char *) snprintf;
10294 rm -f conftest.$ac_objext
10295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10296 (eval $ac_compile) 2>&5
10298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299 (exit $ac_status); } &&
10300 { ac_try='test -s conftest.$ac_objext'
10301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10302 (eval $ac_try) 2>&5
10304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305 (exit $ac_status); }; }; then
10306 ac_cv_have_decl_snprintf=yes
10308 echo "$as_me: failed program was:" >&5
10309 cat conftest.$ac_ext >&5
10310 ac_cv_have_decl_snprintf=no
10312 rm -f conftest.$ac_objext conftest.$ac_ext
10314 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
10315 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
10316 if test $ac_cv_have_decl_snprintf = yes; then
10318 cat >>confdefs.h <<_ACEOF
10319 #define HAVE_DECL_SNPRINTF 1
10324 cat >>confdefs.h <<_ACEOF
10325 #define HAVE_DECL_SNPRINTF 0
10330 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
10331 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
10332 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
10333 echo $ECHO_N "(cached) $ECHO_C" >&6
10335 cat >conftest.$ac_ext <<_ACEOF
10336 #line $LINENO "configure"
10337 #include "confdefs.h"
10338 $ac_includes_default
10339 #ifdef F77_DUMMY_MAIN
10340 # ifdef __cplusplus
10343 int F77_DUMMY_MAIN() { return 1; }
10349 char *p = (char *) vsnprintf;
10356 rm -f conftest.$ac_objext
10357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10358 (eval $ac_compile) 2>&5
10360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361 (exit $ac_status); } &&
10362 { ac_try='test -s conftest.$ac_objext'
10363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10364 (eval $ac_try) 2>&5
10366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367 (exit $ac_status); }; }; then
10368 ac_cv_have_decl_vsnprintf=yes
10370 echo "$as_me: failed program was:" >&5
10371 cat conftest.$ac_ext >&5
10372 ac_cv_have_decl_vsnprintf=no
10374 rm -f conftest.$ac_objext conftest.$ac_ext
10376 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
10377 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
10378 if test $ac_cv_have_decl_vsnprintf = yes; then
10380 cat >>confdefs.h <<_ACEOF
10381 #define HAVE_DECL_VSNPRINTF 1
10386 cat >>confdefs.h <<_ACEOF
10387 #define HAVE_DECL_VSNPRINTF 0
10396 # do this one the hard way in case isinf() is a macro
10397 echo "$as_me:$LINENO: checking for isinf" >&5
10398 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
10399 if test "${ac_cv_func_isinf+set}" = set; then
10400 echo $ECHO_N "(cached) $ECHO_C" >&6
10402 cat >conftest.$ac_ext <<_ACEOF
10403 #line $LINENO "configure"
10404 #include "confdefs.h"
10407 #ifdef F77_DUMMY_MAIN
10408 # ifdef __cplusplus
10411 int F77_DUMMY_MAIN() { return 1; }
10416 double x = 0.0; int res = isinf(x);
10421 rm -f conftest.$ac_objext conftest$ac_exeext
10422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10423 (eval $ac_link) 2>&5
10425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426 (exit $ac_status); } &&
10427 { ac_try='test -s conftest$ac_exeext'
10428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10429 (eval $ac_try) 2>&5
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); }; }; then
10433 ac_cv_func_isinf=yes
10435 echo "$as_me: failed program was:" >&5
10436 cat conftest.$ac_ext >&5
10437 ac_cv_func_isinf=no
10439 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10441 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
10442 echo "${ECHO_T}$ac_cv_func_isinf" >&6
10444 if test $ac_cv_func_isinf = yes ; then
10446 cat >>confdefs.h <<\_ACEOF
10447 #define HAVE_ISINF 1
10451 LIBOBJS="$LIBOBJS isinf.$ac_objext"
10452 # Look for a way to implement a substitute for isinf()
10457 for ac_func in fpclass fp_class fp_class_d class
10459 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10460 echo "$as_me:$LINENO: checking for $ac_func" >&5
10461 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10462 if eval "test \"\${$as_ac_var+set}\" = set"; then
10463 echo $ECHO_N "(cached) $ECHO_C" >&6
10465 cat >conftest.$ac_ext <<_ACEOF
10466 #line $LINENO "configure"
10467 #include "confdefs.h"
10468 /* System header to define __stub macros and hopefully few prototypes,
10469 which can conflict with char $ac_func (); below. */
10470 #include <assert.h>
10471 /* Override any gcc2 internal prototype to avoid an error. */
10475 /* We use char because int might match the return type of a gcc2
10476 builtin and then its argument prototype would still apply. */
10480 #ifdef F77_DUMMY_MAIN
10481 # ifdef __cplusplus
10484 int F77_DUMMY_MAIN() { return 1; }
10489 /* The GNU C library defines this for functions which it implements
10490 to always fail with ENOSYS. Some functions are actually named
10491 something starting with __ and the normal name is an alias. */
10492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10502 rm -f conftest.$ac_objext conftest$ac_exeext
10503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10504 (eval $ac_link) 2>&5
10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); } &&
10508 { ac_try='test -s conftest$ac_exeext'
10509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10510 (eval $ac_try) 2>&5
10512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513 (exit $ac_status); }; }; then
10514 eval "$as_ac_var=yes"
10516 echo "$as_me: failed program was:" >&5
10517 cat conftest.$ac_ext >&5
10518 eval "$as_ac_var=no"
10520 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10523 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10524 if test `eval echo '${'$as_ac_var'}'` = yes; then
10525 cat >>confdefs.h <<_ACEOF
10526 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10544 for ac_func in gethostname getrusage inet_aton random srandom strcasecmp strdup strerror strtol strtoul
10546 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10547 echo "$as_me:$LINENO: checking for $ac_func" >&5
10548 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10549 if eval "test \"\${$as_ac_var+set}\" = set"; then
10550 echo $ECHO_N "(cached) $ECHO_C" >&6
10552 cat >conftest.$ac_ext <<_ACEOF
10553 #line $LINENO "configure"
10554 #include "confdefs.h"
10555 /* System header to define __stub macros and hopefully few prototypes,
10556 which can conflict with char $ac_func (); below. */
10557 #include <assert.h>
10558 /* Override any gcc2 internal prototype to avoid an error. */
10562 /* We use char because int might match the return type of a gcc2
10563 builtin and then its argument prototype would still apply. */
10567 #ifdef F77_DUMMY_MAIN
10568 # ifdef __cplusplus
10571 int F77_DUMMY_MAIN() { return 1; }
10576 /* The GNU C library defines this for functions which it implements
10577 to always fail with ENOSYS. Some functions are actually named
10578 something starting with __ and the normal name is an alias. */
10579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10589 rm -f conftest.$ac_objext conftest$ac_exeext
10590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10591 (eval $ac_link) 2>&5
10593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594 (exit $ac_status); } &&
10595 { ac_try='test -s conftest$ac_exeext'
10596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10597 (eval $ac_try) 2>&5
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); }; }; then
10601 eval "$as_ac_var=yes"
10603 echo "$as_me: failed program was:" >&5
10604 cat conftest.$ac_ext >&5
10605 eval "$as_ac_var=no"
10607 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10610 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10611 if test `eval echo '${'$as_ac_var'}'` = yes; then
10612 cat >>confdefs.h <<_ACEOF
10613 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10617 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
10623 # Solaris has a very slow qsort in certain cases.
10625 solaris*) LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
10628 # On HPUX 9, rint() is not in regular libm.a but in /lib/pa1.1/libm.a;
10629 # this hackery with HPUXMATHLIB allows us to cope.
10633 if [ -r /lib/pa1.1/libm.a ] ; then
10634 HPUXMATHLIB="-L /lib/pa1.1 -lm"
10640 for ac_func in rint
10642 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10643 echo "$as_me:$LINENO: checking for $ac_func" >&5
10644 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10645 if eval "test \"\${$as_ac_var+set}\" = set"; then
10646 echo $ECHO_N "(cached) $ECHO_C" >&6
10648 cat >conftest.$ac_ext <<_ACEOF
10649 #line $LINENO "configure"
10650 #include "confdefs.h"
10651 /* System header to define __stub macros and hopefully few prototypes,
10652 which can conflict with char $ac_func (); below. */
10653 #include <assert.h>
10654 /* Override any gcc2 internal prototype to avoid an error. */
10658 /* We use char because int might match the return type of a gcc2
10659 builtin and then its argument prototype would still apply. */
10663 #ifdef F77_DUMMY_MAIN
10664 # ifdef __cplusplus
10667 int F77_DUMMY_MAIN() { return 1; }
10672 /* The GNU C library defines this for functions which it implements
10673 to always fail with ENOSYS. Some functions are actually named
10674 something starting with __ and the normal name is an alias. */
10675 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10685 rm -f conftest.$ac_objext conftest$ac_exeext
10686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10687 (eval $ac_link) 2>&5
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); } &&
10691 { ac_try='test -s conftest$ac_exeext'
10692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10693 (eval $ac_try) 2>&5
10695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696 (exit $ac_status); }; }; then
10697 eval "$as_ac_var=yes"
10699 echo "$as_me: failed program was:" >&5
10700 cat conftest.$ac_ext >&5
10701 eval "$as_ac_var=no"
10703 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10706 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10707 if test `eval echo '${'$as_ac_var'}'` = yes; then
10708 cat >>confdefs.h <<_ACEOF
10709 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10713 echo "$as_me:$LINENO: checking for rint in -lm" >&5
10714 echo $ECHO_N "checking for rint in -lm... $ECHO_C" >&6
10715 if test "${ac_cv_lib_m_rint+set}" = set; then
10716 echo $ECHO_N "(cached) $ECHO_C" >&6
10718 ac_check_lib_save_LIBS=$LIBS
10719 LIBS="-lm $HPUXMATHLIB $LIBS"
10720 cat >conftest.$ac_ext <<_ACEOF
10721 #line $LINENO "configure"
10722 #include "confdefs.h"
10724 /* Override any gcc2 internal prototype to avoid an error. */
10728 /* We use char because int might match the return type of a gcc2
10729 builtin and then its argument prototype would still apply. */
10731 #ifdef F77_DUMMY_MAIN
10732 # ifdef __cplusplus
10735 int F77_DUMMY_MAIN() { return 1; }
10745 rm -f conftest.$ac_objext conftest$ac_exeext
10746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10747 (eval $ac_link) 2>&5
10749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750 (exit $ac_status); } &&
10751 { ac_try='test -s conftest$ac_exeext'
10752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10753 (eval $ac_try) 2>&5
10755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); }; }; then
10757 ac_cv_lib_m_rint=yes
10759 echo "$as_me: failed program was:" >&5
10760 cat conftest.$ac_ext >&5
10761 ac_cv_lib_m_rint=no
10763 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10764 LIBS=$ac_check_lib_save_LIBS
10766 echo "$as_me:$LINENO: result: $ac_cv_lib_m_rint" >&5
10767 echo "${ECHO_T}$ac_cv_lib_m_rint" >&6
10768 if test $ac_cv_lib_m_rint = yes; then
10769 cat >>confdefs.h <<\_ACEOF
10770 #define HAVE_RINT 1
10780 if test "$with_readline" = yes; then
10781 echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
10782 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6
10783 cat >conftest.$ac_ext <<_ACEOF
10784 #line $LINENO "configure"
10785 #include "confdefs.h"
10787 #ifdef HAVE_READLINE_READLINE_H
10788 # include <readline/readline.h>
10789 #elif defined(HAVE_READLINE_H)
10790 # include <readline.h>
10793 #ifdef F77_DUMMY_MAIN
10794 # ifdef __cplusplus
10797 int F77_DUMMY_MAIN() { return 1; }
10802 rl_completion_append_character = 'x';
10807 rm -f conftest.$ac_objext conftest$ac_exeext
10808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10809 (eval $ac_link) 2>&5
10811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812 (exit $ac_status); } &&
10813 { ac_try='test -s conftest$ac_exeext'
10814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10815 (eval $ac_try) 2>&5
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); }; }; then
10819 echo "$as_me:$LINENO: result: yes" >&5
10820 echo "${ECHO_T}yes" >&6
10822 cat >>confdefs.h <<\_ACEOF
10823 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
10827 echo "$as_me: failed program was:" >&5
10828 cat conftest.$ac_ext >&5
10829 echo "$as_me:$LINENO: result: no" >&5
10830 echo "${ECHO_T}no" >&6
10832 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10835 for ac_func in rl_completion_matches rl_filename_completion_function
10837 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10838 echo "$as_me:$LINENO: checking for $ac_func" >&5
10839 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10840 if eval "test \"\${$as_ac_var+set}\" = set"; then
10841 echo $ECHO_N "(cached) $ECHO_C" >&6
10843 cat >conftest.$ac_ext <<_ACEOF
10844 #line $LINENO "configure"
10845 #include "confdefs.h"
10846 /* System header to define __stub macros and hopefully few prototypes,
10847 which can conflict with char $ac_func (); below. */
10848 #include <assert.h>
10849 /* Override any gcc2 internal prototype to avoid an error. */
10853 /* We use char because int might match the return type of a gcc2
10854 builtin and then its argument prototype would still apply. */
10858 #ifdef F77_DUMMY_MAIN
10859 # ifdef __cplusplus
10862 int F77_DUMMY_MAIN() { return 1; }
10867 /* The GNU C library defines this for functions which it implements
10868 to always fail with ENOSYS. Some functions are actually named
10869 something starting with __ and the normal name is an alias. */
10870 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10880 rm -f conftest.$ac_objext conftest$ac_exeext
10881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10882 (eval $ac_link) 2>&5
10884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 (exit $ac_status); } &&
10886 { ac_try='test -s conftest$ac_exeext'
10887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10888 (eval $ac_try) 2>&5
10890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891 (exit $ac_status); }; }; then
10892 eval "$as_ac_var=yes"
10894 echo "$as_me: failed program was:" >&5
10895 cat conftest.$ac_ext >&5
10896 eval "$as_ac_var=no"
10898 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10900 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10901 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10902 if test `eval echo '${'$as_ac_var'}'` = yes; then
10903 cat >>confdefs.h <<_ACEOF
10904 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10913 echo "$as_me:$LINENO: checking for finite" >&5
10914 echo $ECHO_N "checking for finite... $ECHO_C" >&6
10915 cat >conftest.$ac_ext <<_ACEOF
10916 #line $LINENO "configure"
10917 #include "confdefs.h"
10919 #ifdef F77_DUMMY_MAIN
10920 # ifdef __cplusplus
10923 int F77_DUMMY_MAIN() { return 1; }
10928 int dummy=finite(1.0);
10933 rm -f conftest.$ac_objext conftest$ac_exeext
10934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10935 (eval $ac_link) 2>&5
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); } &&
10939 { ac_try='test -s conftest$ac_exeext'
10940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10941 (eval $ac_try) 2>&5
10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944 (exit $ac_status); }; }; then
10946 cat >>confdefs.h <<\_ACEOF
10947 #define HAVE_FINITE 1
10950 echo "$as_me:$LINENO: result: yes" >&5
10951 echo "${ECHO_T}yes" >&6
10953 echo "$as_me: failed program was:" >&5
10954 cat conftest.$ac_ext >&5
10955 echo "$as_me:$LINENO: result: no" >&5
10956 echo "${ECHO_T}no" >&6
10958 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10960 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
10961 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
10962 cat >conftest.$ac_ext <<_ACEOF
10963 #line $LINENO "configure"
10964 #include "confdefs.h"
10965 #include <setjmp.h>
10966 #ifdef F77_DUMMY_MAIN
10967 # ifdef __cplusplus
10970 int F77_DUMMY_MAIN() { return 1; }
10975 sigjmp_buf x; sigsetjmp(x, 1);
10980 rm -f conftest.$ac_objext conftest$ac_exeext
10981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10982 (eval $ac_link) 2>&5
10984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985 (exit $ac_status); } &&
10986 { ac_try='test -s conftest$ac_exeext'
10987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10988 (eval $ac_try) 2>&5
10990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991 (exit $ac_status); }; }; then
10993 cat >>confdefs.h <<\_ACEOF
10994 #define HAVE_SIGSETJMP 1
10997 echo "$as_me:$LINENO: result: yes" >&5
10998 echo "${ECHO_T}yes" >&6
11000 echo "$as_me: failed program was:" >&5
11001 cat conftest.$ac_ext >&5
11002 echo "$as_me:$LINENO: result: no" >&5
11003 echo "${ECHO_T}no" >&6
11005 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11007 echo "$as_me:$LINENO: checking for syslog" >&5
11008 echo $ECHO_N "checking for syslog... $ECHO_C" >&6
11009 if test "${ac_cv_func_syslog+set}" = set; then
11010 echo $ECHO_N "(cached) $ECHO_C" >&6
11012 cat >conftest.$ac_ext <<_ACEOF
11013 #line $LINENO "configure"
11014 #include "confdefs.h"
11015 /* System header to define __stub macros and hopefully few prototypes,
11016 which can conflict with char syslog (); below. */
11017 #include <assert.h>
11018 /* Override any gcc2 internal prototype to avoid an error. */
11022 /* We use char because int might match the return type of a gcc2
11023 builtin and then its argument prototype would still apply. */
11027 #ifdef F77_DUMMY_MAIN
11028 # ifdef __cplusplus
11031 int F77_DUMMY_MAIN() { return 1; }
11036 /* The GNU C library defines this for functions which it implements
11037 to always fail with ENOSYS. Some functions are actually named
11038 something starting with __ and the normal name is an alias. */
11039 #if defined (__stub_syslog) || defined (__stub___syslog)
11049 rm -f conftest.$ac_objext conftest$ac_exeext
11050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11051 (eval $ac_link) 2>&5
11053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 (exit $ac_status); } &&
11055 { ac_try='test -s conftest$ac_exeext'
11056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11057 (eval $ac_try) 2>&5
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); }; }; then
11061 ac_cv_func_syslog=yes
11063 echo "$as_me: failed program was:" >&5
11064 cat conftest.$ac_ext >&5
11065 ac_cv_func_syslog=no
11067 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11069 echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
11070 echo "${ECHO_T}$ac_cv_func_syslog" >&6
11071 if test $ac_cv_func_syslog = yes; then
11072 if test "${ac_cv_header_syslog_h+set}" = set; then
11073 echo "$as_me:$LINENO: checking for syslog.h" >&5
11074 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
11075 if test "${ac_cv_header_syslog_h+set}" = set; then
11076 echo $ECHO_N "(cached) $ECHO_C" >&6
11078 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
11079 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
11081 # Is the header compilable?
11082 echo "$as_me:$LINENO: checking syslog.h usability" >&5
11083 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6
11084 cat >conftest.$ac_ext <<_ACEOF
11085 #line $LINENO "configure"
11086 #include "confdefs.h"
11087 $ac_includes_default
11088 #include <syslog.h>
11090 rm -f conftest.$ac_objext
11091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11092 (eval $ac_compile) 2>&5
11094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095 (exit $ac_status); } &&
11096 { ac_try='test -s conftest.$ac_objext'
11097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11098 (eval $ac_try) 2>&5
11100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101 (exit $ac_status); }; }; then
11102 ac_header_compiler=yes
11104 echo "$as_me: failed program was:" >&5
11105 cat conftest.$ac_ext >&5
11106 ac_header_compiler=no
11108 rm -f conftest.$ac_objext conftest.$ac_ext
11109 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11110 echo "${ECHO_T}$ac_header_compiler" >&6
11112 # Is the header present?
11113 echo "$as_me:$LINENO: checking syslog.h presence" >&5
11114 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6
11115 cat >conftest.$ac_ext <<_ACEOF
11116 #line $LINENO "configure"
11117 #include "confdefs.h"
11118 #include <syslog.h>
11120 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11121 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11123 egrep -v '^ *\+' conftest.er1 >conftest.err
11125 cat conftest.err >&5
11126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127 (exit $ac_status); } >/dev/null; then
11128 if test -s conftest.err; then
11129 ac_cpp_err=$ac_c_preproc_warn_flag
11136 if test -z "$ac_cpp_err"; then
11137 ac_header_preproc=yes
11139 echo "$as_me: failed program was:" >&5
11140 cat conftest.$ac_ext >&5
11141 ac_header_preproc=no
11143 rm -f conftest.err conftest.$ac_ext
11144 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11145 echo "${ECHO_T}$ac_header_preproc" >&6
11147 # So? What about this header?
11148 case $ac_header_compiler:$ac_header_preproc in
11150 { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
11151 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11152 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
11153 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
11155 { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
11156 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
11157 { echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
11158 echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
11159 { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
11160 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;};;
11162 echo "$as_me:$LINENO: checking for syslog.h" >&5
11163 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6
11164 if test "${ac_cv_header_syslog_h+set}" = set; then
11165 echo $ECHO_N "(cached) $ECHO_C" >&6
11167 ac_cv_header_syslog_h=$ac_header_preproc
11169 echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
11170 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6
11173 if test $ac_cv_header_syslog_h = yes; then
11174 cat >>confdefs.h <<\_ACEOF
11175 #define HAVE_SYSLOG 1
11184 echo "$as_me:$LINENO: checking for optreset" >&5
11185 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
11186 if test "${pgac_cv_var_int_optreset+set}" = set; then
11187 echo $ECHO_N "(cached) $ECHO_C" >&6
11189 cat >conftest.$ac_ext <<_ACEOF
11190 #line $LINENO "configure"
11191 #include "confdefs.h"
11192 #include <unistd.h>
11193 #ifdef F77_DUMMY_MAIN
11194 # ifdef __cplusplus
11197 int F77_DUMMY_MAIN() { return 1; }
11202 extern int optreset; optreset = 1;
11207 rm -f conftest.$ac_objext conftest$ac_exeext
11208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11209 (eval $ac_link) 2>&5
11211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212 (exit $ac_status); } &&
11213 { ac_try='test -s conftest$ac_exeext'
11214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11215 (eval $ac_try) 2>&5
11217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218 (exit $ac_status); }; }; then
11219 pgac_cv_var_int_optreset=yes
11221 echo "$as_me: failed program was:" >&5
11222 cat conftest.$ac_ext >&5
11223 pgac_cv_var_int_optreset=no
11225 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11227 echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
11228 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6
11229 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
11231 cat >>confdefs.h <<\_ACEOF
11232 #define HAVE_INT_OPTRESET 1
11239 for ac_func in strtoll strtoq
11241 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11242 echo "$as_me:$LINENO: checking for $ac_func" >&5
11243 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11244 if eval "test \"\${$as_ac_var+set}\" = set"; then
11245 echo $ECHO_N "(cached) $ECHO_C" >&6
11247 cat >conftest.$ac_ext <<_ACEOF
11248 #line $LINENO "configure"
11249 #include "confdefs.h"
11250 /* System header to define __stub macros and hopefully few prototypes,
11251 which can conflict with char $ac_func (); below. */
11252 #include <assert.h>
11253 /* Override any gcc2 internal prototype to avoid an error. */
11257 /* We use char because int might match the return type of a gcc2
11258 builtin and then its argument prototype would still apply. */
11262 #ifdef F77_DUMMY_MAIN
11263 # ifdef __cplusplus
11266 int F77_DUMMY_MAIN() { return 1; }
11271 /* The GNU C library defines this for functions which it implements
11272 to always fail with ENOSYS. Some functions are actually named
11273 something starting with __ and the normal name is an alias. */
11274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11284 rm -f conftest.$ac_objext conftest$ac_exeext
11285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11286 (eval $ac_link) 2>&5
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); } &&
11290 { ac_try='test -s conftest$ac_exeext'
11291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11292 (eval $ac_try) 2>&5
11294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295 (exit $ac_status); }; }; then
11296 eval "$as_ac_var=yes"
11298 echo "$as_me: failed program was:" >&5
11299 cat conftest.$ac_ext >&5
11300 eval "$as_ac_var=no"
11302 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11305 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11306 if test `eval echo '${'$as_ac_var'}'` = yes; then
11307 cat >>confdefs.h <<_ACEOF
11308 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11316 for ac_func in strtoull strtouq
11318 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11319 echo "$as_me:$LINENO: checking for $ac_func" >&5
11320 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11321 if eval "test \"\${$as_ac_var+set}\" = set"; then
11322 echo $ECHO_N "(cached) $ECHO_C" >&6
11324 cat >conftest.$ac_ext <<_ACEOF
11325 #line $LINENO "configure"
11326 #include "confdefs.h"
11327 /* System header to define __stub macros and hopefully few prototypes,
11328 which can conflict with char $ac_func (); below. */
11329 #include <assert.h>
11330 /* Override any gcc2 internal prototype to avoid an error. */
11334 /* We use char because int might match the return type of a gcc2
11335 builtin and then its argument prototype would still apply. */
11339 #ifdef F77_DUMMY_MAIN
11340 # ifdef __cplusplus
11343 int F77_DUMMY_MAIN() { return 1; }
11348 /* The GNU C library defines this for functions which it implements
11349 to always fail with ENOSYS. Some functions are actually named
11350 something starting with __ and the normal name is an alias. */
11351 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11361 rm -f conftest.$ac_objext conftest$ac_exeext
11362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11363 (eval $ac_link) 2>&5
11365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366 (exit $ac_status); } &&
11367 { ac_try='test -s conftest$ac_exeext'
11368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11369 (eval $ac_try) 2>&5
11371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372 (exit $ac_status); }; }; then
11373 eval "$as_ac_var=yes"
11375 echo "$as_me: failed program was:" >&5
11376 cat conftest.$ac_ext >&5
11377 eval "$as_ac_var=no"
11379 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11382 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11383 if test `eval echo '${'$as_ac_var'}'` = yes; then
11384 cat >>confdefs.h <<_ACEOF
11385 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11392 # Check for one of atexit() or on_exit()
11394 for ac_func in atexit
11396 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11397 echo "$as_me:$LINENO: checking for $ac_func" >&5
11398 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11399 if eval "test \"\${$as_ac_var+set}\" = set"; then
11400 echo $ECHO_N "(cached) $ECHO_C" >&6
11402 cat >conftest.$ac_ext <<_ACEOF
11403 #line $LINENO "configure"
11404 #include "confdefs.h"
11405 /* System header to define __stub macros and hopefully few prototypes,
11406 which can conflict with char $ac_func (); below. */
11407 #include <assert.h>
11408 /* Override any gcc2 internal prototype to avoid an error. */
11412 /* We use char because int might match the return type of a gcc2
11413 builtin and then its argument prototype would still apply. */
11417 #ifdef F77_DUMMY_MAIN
11418 # ifdef __cplusplus
11421 int F77_DUMMY_MAIN() { return 1; }
11426 /* The GNU C library defines this for functions which it implements
11427 to always fail with ENOSYS. Some functions are actually named
11428 something starting with __ and the normal name is an alias. */
11429 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11439 rm -f conftest.$ac_objext conftest$ac_exeext
11440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11441 (eval $ac_link) 2>&5
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); } &&
11445 { ac_try='test -s conftest$ac_exeext'
11446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11447 (eval $ac_try) 2>&5
11449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450 (exit $ac_status); }; }; then
11451 eval "$as_ac_var=yes"
11453 echo "$as_me: failed program was:" >&5
11454 cat conftest.$ac_ext >&5
11455 eval "$as_ac_var=no"
11457 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11460 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11461 if test `eval echo '${'$as_ac_var'}'` = yes; then
11462 cat >>confdefs.h <<_ACEOF
11463 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11468 for ac_func in on_exit
11470 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11471 echo "$as_me:$LINENO: checking for $ac_func" >&5
11472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11473 if eval "test \"\${$as_ac_var+set}\" = set"; then
11474 echo $ECHO_N "(cached) $ECHO_C" >&6
11476 cat >conftest.$ac_ext <<_ACEOF
11477 #line $LINENO "configure"
11478 #include "confdefs.h"
11479 /* System header to define __stub macros and hopefully few prototypes,
11480 which can conflict with char $ac_func (); below. */
11481 #include <assert.h>
11482 /* Override any gcc2 internal prototype to avoid an error. */
11486 /* We use char because int might match the return type of a gcc2
11487 builtin and then its argument prototype would still apply. */
11491 #ifdef F77_DUMMY_MAIN
11492 # ifdef __cplusplus
11495 int F77_DUMMY_MAIN() { return 1; }
11500 /* The GNU C library defines this for functions which it implements
11501 to always fail with ENOSYS. Some functions are actually named
11502 something starting with __ and the normal name is an alias. */
11503 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11513 rm -f conftest.$ac_objext conftest$ac_exeext
11514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11515 (eval $ac_link) 2>&5
11517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518 (exit $ac_status); } &&
11519 { ac_try='test -s conftest$ac_exeext'
11520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11521 (eval $ac_try) 2>&5
11523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524 (exit $ac_status); }; }; then
11525 eval "$as_ac_var=yes"
11527 echo "$as_me: failed program was:" >&5
11528 cat conftest.$ac_ext >&5
11529 eval "$as_ac_var=no"
11531 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11534 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11535 if test `eval echo '${'$as_ac_var'}'` = yes; then
11536 cat >>confdefs.h <<_ACEOF
11537 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11541 { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
11542 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
11543 { (exit 1); exit 1; }; }
11551 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11552 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
11553 if test "${ac_cv_sys_largefile_source+set}" = set; then
11554 echo $ECHO_N "(cached) $ECHO_C" >&6
11557 ac_cv_sys_largefile_source=no
11558 cat >conftest.$ac_ext <<_ACEOF
11559 #line $LINENO "configure"
11560 #include "confdefs.h"
11562 #ifdef F77_DUMMY_MAIN
11563 # ifdef __cplusplus
11566 int F77_DUMMY_MAIN() { return 1; }
11576 rm -f conftest.$ac_objext
11577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11578 (eval $ac_compile) 2>&5
11580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581 (exit $ac_status); } &&
11582 { ac_try='test -s conftest.$ac_objext'
11583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11584 (eval $ac_try) 2>&5
11586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587 (exit $ac_status); }; }; then
11590 echo "$as_me: failed program was:" >&5
11591 cat conftest.$ac_ext >&5
11593 rm -f conftest.$ac_objext conftest.$ac_ext
11594 cat >conftest.$ac_ext <<_ACEOF
11595 #line $LINENO "configure"
11596 #include "confdefs.h"
11597 #define _LARGEFILE_SOURCE 1
11599 #ifdef F77_DUMMY_MAIN
11600 # ifdef __cplusplus
11603 int F77_DUMMY_MAIN() { return 1; }
11613 rm -f conftest.$ac_objext
11614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11615 (eval $ac_compile) 2>&5
11617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); } &&
11619 { ac_try='test -s conftest.$ac_objext'
11620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11621 (eval $ac_try) 2>&5
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); }; }; then
11625 ac_cv_sys_largefile_source=1; break
11627 echo "$as_me: failed program was:" >&5
11628 cat conftest.$ac_ext >&5
11630 rm -f conftest.$ac_objext conftest.$ac_ext
11634 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
11635 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
11636 if test "$ac_cv_sys_largefile_source" != no; then
11638 cat >>confdefs.h <<_ACEOF
11639 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11645 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11646 # in glibc 2.1.3, but that breaks too many other things.
11647 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11648 echo "$as_me:$LINENO: checking for fseeko" >&5
11649 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
11650 if test "${ac_cv_func_fseeko+set}" = set; then
11651 echo $ECHO_N "(cached) $ECHO_C" >&6
11653 cat >conftest.$ac_ext <<_ACEOF
11654 #line $LINENO "configure"
11655 #include "confdefs.h"
11657 #ifdef F77_DUMMY_MAIN
11658 # ifdef __cplusplus
11661 int F77_DUMMY_MAIN() { return 1; }
11666 return fseeko && fseeko (stdin, 0, 0);
11671 rm -f conftest.$ac_objext conftest$ac_exeext
11672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11673 (eval $ac_link) 2>&5
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); } &&
11677 { ac_try='test -s conftest$ac_exeext'
11678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11679 (eval $ac_try) 2>&5
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); }; }; then
11683 ac_cv_func_fseeko=yes
11685 echo "$as_me: failed program was:" >&5
11686 cat conftest.$ac_ext >&5
11687 ac_cv_func_fseeko=no
11689 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11691 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
11692 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
11693 if test $ac_cv_func_fseeko = yes; then
11695 cat >>confdefs.h <<\_ACEOF
11696 #define HAVE_FSEEKO 1
11703 # This test makes sure that run tests work at all. Sometimes a shared
11704 # library is found by the linker, but the runtime linker can't find it.
11705 # This check should come after all modifications of compiler or linker
11706 # variables, and before any other run tests.
11707 echo "$as_me:$LINENO: checking test program" >&5
11708 echo $ECHO_N "checking test program... $ECHO_C" >&6
11709 if test "$cross_compiling" = yes; then
11710 echo "$as_me:$LINENO: result: cross-compiling" >&5
11711 echo "${ECHO_T}cross-compiling" >&6
11713 cat >conftest.$ac_ext <<_ACEOF
11714 #line $LINENO "configure"
11715 #include "confdefs.h"
11716 int main() { return 0; }
11718 rm -f conftest$ac_exeext
11719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11720 (eval $ac_link) 2>&5
11722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11725 (eval $ac_try) 2>&5
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); }; }; then
11729 echo "$as_me:$LINENO: result: ok" >&5
11730 echo "${ECHO_T}ok" >&6
11732 echo "$as_me: program exited with status $ac_status" >&5
11733 echo "$as_me: failed program was:" >&5
11734 cat conftest.$ac_ext >&5
11735 ( exit $ac_status )
11736 echo "$as_me:$LINENO: result: failed" >&5
11737 echo "${ECHO_T}failed" >&6
11738 { { echo "$as_me:$LINENO: error:
11739 *** Could not execute a simple test program. This may be a problem
11740 *** related to locating shared libraries. Check the file 'config.log'
11741 *** for the exact reason." >&5
11742 echo "$as_me: error:
11743 *** Could not execute a simple test program. This may be a problem
11744 *** related to locating shared libraries. Check the file 'config.log'
11745 *** for the exact reason." >&2;}
11746 { (exit 1); exit 1; }; }
11748 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11753 echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
11754 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6
11755 if test "${pgac_cv_type_long_int_64+set}" = set; then
11756 echo $ECHO_N "(cached) $ECHO_C" >&6
11758 if test "$cross_compiling" = yes; then
11759 pgac_cv_type_long_int_64=no
11760 { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
11761 echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
11763 cat >conftest.$ac_ext <<_ACEOF
11764 #line $LINENO "configure"
11765 #include "confdefs.h"
11766 typedef long int int64;
11769 * These are globals to discourage the compiler from folding all the
11770 * arithmetic tests down to compile-time constants.
11772 int64 a = 20000001;
11773 int64 b = 40000005;
11775 int does_int64_work()
11779 if (sizeof(int64) != 8)
11780 return 0; /* definitely not the right size */
11782 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
11790 exit(! does_int64_work());
11793 rm -f conftest$ac_exeext
11794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11795 (eval $ac_link) 2>&5
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11800 (eval $ac_try) 2>&5
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); }; }; then
11804 pgac_cv_type_long_int_64=yes
11806 echo "$as_me: program exited with status $ac_status" >&5
11807 echo "$as_me: failed program was:" >&5
11808 cat conftest.$ac_ext >&5
11809 ( exit $ac_status )
11810 pgac_cv_type_long_int_64=no
11812 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11815 echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
11816 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6
11818 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
11819 if test x"$pgac_cv_type_long_int_64" = xyes ; then
11821 cat >>confdefs.h <<\_ACEOF
11822 #define HAVE_LONG_INT_64
11828 if test x"$HAVE_LONG_INT_64" = x"no" ; then
11829 echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
11830 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6
11831 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
11832 echo $ECHO_N "(cached) $ECHO_C" >&6
11834 if test "$cross_compiling" = yes; then
11835 pgac_cv_type_long_long_int_64=no
11836 { echo "$as_me:$LINENO: WARNING: 64 bit arithmetic disabled when cross-compiling" >&5
11837 echo "$as_me: WARNING: 64 bit arithmetic disabled when cross-compiling" >&2;}
11839 cat >conftest.$ac_ext <<_ACEOF
11840 #line $LINENO "configure"
11841 #include "confdefs.h"
11842 typedef long long int int64;
11845 * These are globals to discourage the compiler from folding all the
11846 * arithmetic tests down to compile-time constants.
11848 int64 a = 20000001;
11849 int64 b = 40000005;
11851 int does_int64_work()
11855 if (sizeof(int64) != 8)
11856 return 0; /* definitely not the right size */
11858 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
11866 exit(! does_int64_work());
11869 rm -f conftest$ac_exeext
11870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11871 (eval $ac_link) 2>&5
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11876 (eval $ac_try) 2>&5
11878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879 (exit $ac_status); }; }; then
11880 pgac_cv_type_long_long_int_64=yes
11882 echo "$as_me: program exited with status $ac_status" >&5
11883 echo "$as_me: failed program was:" >&5
11884 cat conftest.$ac_ext >&5
11885 ( exit $ac_status )
11886 pgac_cv_type_long_long_int_64=no
11888 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11891 echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
11892 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6
11894 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
11895 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
11897 cat >>confdefs.h <<\_ACEOF
11898 #define HAVE_LONG_LONG_INT_64
11907 if [ x"$HAVE_LONG_LONG_INT_64" = xyes ] ; then
11908 cat >conftest.$ac_ext <<_ACEOF
11909 #line $LINENO "configure"
11910 #include "confdefs.h"
11912 #define INT64CONST(x) x##LL
11913 long long int foo = INT64CONST(0x1234567890123456);
11915 #ifdef F77_DUMMY_MAIN
11916 # ifdef __cplusplus
11919 int F77_DUMMY_MAIN() { return 1; }
11929 rm -f conftest.$ac_objext
11930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11931 (eval $ac_compile) 2>&5
11933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934 (exit $ac_status); } &&
11935 { ac_try='test -s conftest.$ac_objext'
11936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11937 (eval $ac_try) 2>&5
11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); }; }; then
11942 cat >>confdefs.h <<\_ACEOF
11943 #define HAVE_LL_CONSTANTS 1
11947 echo "$as_me: failed program was:" >&5
11948 cat conftest.$ac_ext >&5
11950 rm -f conftest.$ac_objext conftest.$ac_ext
11955 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
11956 if test $pgac_need_repl_snprintf = no; then
11957 echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %lld" >&5
11958 echo $ECHO_N "checking whether snprintf handles 'long long int' as %lld... $ECHO_C" >&6
11959 if test "$cross_compiling" = yes; then
11960 echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
11961 echo "${ECHO_T}cannot test (not on host machine)" >&6
11962 # Force usage of our own snprintf, since we cannot test foreign snprintf
11963 pgac_need_repl_snprintf=yes
11964 INT64_FORMAT='"%lld"'
11967 cat >conftest.$ac_ext <<_ACEOF
11968 #line $LINENO "configure"
11969 #include "confdefs.h"
11971 typedef long long int int64;
11972 #define INT64_FORMAT "%lld"
11974 int64 a = 20000001;
11975 int64 b = 40000005;
11977 int does_int64_snprintf_work()
11982 if (sizeof(int64) != 8)
11983 return 0; /* doesn't look like the right size */
11986 snprintf(buf, 100, INT64_FORMAT, c);
11987 if (strcmp(buf, "800000140000005") != 0)
11988 return 0; /* either multiply or snprintf is busted */
11992 exit(! does_int64_snprintf_work());
11995 rm -f conftest$ac_exeext
11996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11997 (eval $ac_link) 2>&5
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12002 (eval $ac_try) 2>&5
12004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005 (exit $ac_status); }; }; then
12006 echo "$as_me:$LINENO: result: yes" >&5
12007 echo "${ECHO_T}yes" >&6
12008 INT64_FORMAT='"%lld"'
12011 echo "$as_me: program exited with status $ac_status" >&5
12012 echo "$as_me: failed program was:" >&5
12013 cat conftest.$ac_ext >&5
12014 ( exit $ac_status )
12015 echo "$as_me:$LINENO: result: no" >&5
12016 echo "${ECHO_T}no" >&6
12017 echo "$as_me:$LINENO: checking whether snprintf handles 'long long int' as %qd" >&5
12018 echo $ECHO_N "checking whether snprintf handles 'long long int' as %qd... $ECHO_C" >&6
12019 if test "$cross_compiling" = yes; then
12020 echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
12021 echo "${ECHO_T}cannot test (not on host machine)" >&6
12022 # Force usage of our own snprintf, since we cannot test foreign snprintf
12023 pgac_need_repl_snprintf=yes
12024 INT64_FORMAT='"%lld"'
12027 cat >conftest.$ac_ext <<_ACEOF
12028 #line $LINENO "configure"
12029 #include "confdefs.h"
12031 typedef long long int int64;
12032 #define INT64_FORMAT "%qd"
12034 int64 a = 20000001;
12035 int64 b = 40000005;
12037 int does_int64_snprintf_work()
12042 if (sizeof(int64) != 8)
12043 return 0; /* doesn't look like the right size */
12046 snprintf(buf, 100, INT64_FORMAT, c);
12047 if (strcmp(buf, "800000140000005") != 0)
12048 return 0; /* either multiply or snprintf is busted */
12052 exit(! does_int64_snprintf_work());
12055 rm -f conftest$ac_exeext
12056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12057 (eval $ac_link) 2>&5
12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12062 (eval $ac_try) 2>&5
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); }; }; then
12066 echo "$as_me:$LINENO: result: yes" >&5
12067 echo "${ECHO_T}yes" >&6
12068 INT64_FORMAT='"%qd"'
12071 echo "$as_me: program exited with status $ac_status" >&5
12072 echo "$as_me: failed program was:" >&5
12073 cat conftest.$ac_ext >&5
12074 ( exit $ac_status )
12075 echo "$as_me:$LINENO: result: no" >&5
12076 echo "${ECHO_T}no" >&6
12077 # Force usage of our own snprintf, since system snprintf is broken
12078 pgac_need_repl_snprintf=yes
12079 INT64_FORMAT='"%lld"'
12082 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12085 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12088 # here if we previously decided we needed to use our own snprintf
12089 INT64_FORMAT='"%lld"'
12092 # Here if we are not using 'long long int' at all
12093 INT64_FORMAT='"%ld"'
12097 cat >>confdefs.h <<_ACEOF
12098 #define INT64_FORMAT $INT64_FORMAT
12102 if test $pgac_need_repl_snprintf = yes; then
12103 LIBOBJS="$LIBOBJS snprintf.$ac_objext"
12107 echo "$as_me:$LINENO: checking for unsigned long" >&5
12108 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
12109 if test "${ac_cv_type_unsigned_long+set}" = set; then
12110 echo $ECHO_N "(cached) $ECHO_C" >&6
12112 cat >conftest.$ac_ext <<_ACEOF
12113 #line $LINENO "configure"
12114 #include "confdefs.h"
12115 $ac_includes_default
12116 #ifdef F77_DUMMY_MAIN
12117 # ifdef __cplusplus
12120 int F77_DUMMY_MAIN() { return 1; }
12125 if ((unsigned long *) 0)
12127 if (sizeof (unsigned long))
12133 rm -f conftest.$ac_objext
12134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12135 (eval $ac_compile) 2>&5
12137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138 (exit $ac_status); } &&
12139 { ac_try='test -s conftest.$ac_objext'
12140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12141 (eval $ac_try) 2>&5
12143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144 (exit $ac_status); }; }; then
12145 ac_cv_type_unsigned_long=yes
12147 echo "$as_me: failed program was:" >&5
12148 cat conftest.$ac_ext >&5
12149 ac_cv_type_unsigned_long=no
12151 rm -f conftest.$ac_objext conftest.$ac_ext
12153 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
12154 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
12156 echo "$as_me:$LINENO: checking size of unsigned long" >&5
12157 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
12158 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
12159 echo $ECHO_N "(cached) $ECHO_C" >&6
12161 if test "$ac_cv_type_unsigned_long" = yes; then
12162 # The cast to unsigned long works around a bug in the HP C Compiler
12163 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12164 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12165 # This bug is HP SR number 8606223364.
12166 if test "$cross_compiling" = yes; then
12167 # Depending upon the size, compute the lo and hi bounds.
12168 cat >conftest.$ac_ext <<_ACEOF
12169 #line $LINENO "configure"
12170 #include "confdefs.h"
12171 $ac_includes_default
12172 #ifdef F77_DUMMY_MAIN
12173 # ifdef __cplusplus
12176 int F77_DUMMY_MAIN() { return 1; }
12181 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
12188 rm -f conftest.$ac_objext
12189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12190 (eval $ac_compile) 2>&5
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); } &&
12194 { ac_try='test -s conftest.$ac_objext'
12195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12196 (eval $ac_try) 2>&5
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); }; }; then
12202 cat >conftest.$ac_ext <<_ACEOF
12203 #line $LINENO "configure"
12204 #include "confdefs.h"
12205 $ac_includes_default
12206 #ifdef F77_DUMMY_MAIN
12207 # ifdef __cplusplus
12210 int F77_DUMMY_MAIN() { return 1; }
12215 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
12222 rm -f conftest.$ac_objext
12223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12224 (eval $ac_compile) 2>&5
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); } &&
12228 { ac_try='test -s conftest.$ac_objext'
12229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12230 (eval $ac_try) 2>&5
12232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233 (exit $ac_status); }; }; then
12234 ac_hi=$ac_mid; break
12236 echo "$as_me: failed program was:" >&5
12237 cat conftest.$ac_ext >&5
12238 ac_lo=`expr $ac_mid + 1`
12239 if test $ac_lo -le $ac_mid; then
12243 ac_mid=`expr 2 '*' $ac_mid + 1`
12245 rm -f conftest.$ac_objext conftest.$ac_ext
12248 echo "$as_me: failed program was:" >&5
12249 cat conftest.$ac_ext >&5
12250 cat >conftest.$ac_ext <<_ACEOF
12251 #line $LINENO "configure"
12252 #include "confdefs.h"
12253 $ac_includes_default
12254 #ifdef F77_DUMMY_MAIN
12255 # ifdef __cplusplus
12258 int F77_DUMMY_MAIN() { return 1; }
12263 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
12270 rm -f conftest.$ac_objext
12271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12272 (eval $ac_compile) 2>&5
12274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275 (exit $ac_status); } &&
12276 { ac_try='test -s conftest.$ac_objext'
12277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12278 (eval $ac_try) 2>&5
12280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281 (exit $ac_status); }; }; then
12284 cat >conftest.$ac_ext <<_ACEOF
12285 #line $LINENO "configure"
12286 #include "confdefs.h"
12287 $ac_includes_default
12288 #ifdef F77_DUMMY_MAIN
12289 # ifdef __cplusplus
12292 int F77_DUMMY_MAIN() { return 1; }
12297 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
12304 rm -f conftest.$ac_objext
12305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12306 (eval $ac_compile) 2>&5
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); } &&
12310 { ac_try='test -s conftest.$ac_objext'
12311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12312 (eval $ac_try) 2>&5
12314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315 (exit $ac_status); }; }; then
12316 ac_lo=$ac_mid; break
12318 echo "$as_me: failed program was:" >&5
12319 cat conftest.$ac_ext >&5
12320 ac_hi=`expr '(' $ac_mid ')' - 1`
12321 if test $ac_mid -le $ac_hi; then
12325 ac_mid=`expr 2 '*' $ac_mid`
12327 rm -f conftest.$ac_objext conftest.$ac_ext
12330 echo "$as_me: failed program was:" >&5
12331 cat conftest.$ac_ext >&5
12334 rm -f conftest.$ac_objext conftest.$ac_ext
12336 rm -f conftest.$ac_objext conftest.$ac_ext
12337 # Binary search between lo and hi bounds.
12338 while test "x$ac_lo" != "x$ac_hi"; do
12339 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12340 cat >conftest.$ac_ext <<_ACEOF
12341 #line $LINENO "configure"
12342 #include "confdefs.h"
12343 $ac_includes_default
12344 #ifdef F77_DUMMY_MAIN
12345 # ifdef __cplusplus
12348 int F77_DUMMY_MAIN() { return 1; }
12353 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
12360 rm -f conftest.$ac_objext
12361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12362 (eval $ac_compile) 2>&5
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); } &&
12366 { ac_try='test -s conftest.$ac_objext'
12367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12368 (eval $ac_try) 2>&5
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); }; }; then
12374 echo "$as_me: failed program was:" >&5
12375 cat conftest.$ac_ext >&5
12376 ac_lo=`expr '(' $ac_mid ')' + 1`
12378 rm -f conftest.$ac_objext conftest.$ac_ext
12381 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
12382 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
12383 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
12384 { (exit 1); exit 1; }; } ;;
12387 if test "$cross_compiling" = yes; then
12388 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
12389 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12390 { (exit 1); exit 1; }; }
12392 cat >conftest.$ac_ext <<_ACEOF
12393 #line $LINENO "configure"
12394 #include "confdefs.h"
12395 $ac_includes_default
12396 long longval () { return (long) (sizeof (unsigned long)); }
12397 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
12399 #include <stdlib.h>
12400 #ifdef F77_DUMMY_MAIN
12401 # ifdef __cplusplus
12404 int F77_DUMMY_MAIN() { return 1; }
12410 FILE *f = fopen ("conftest.val", "w");
12413 if (((long) (sizeof (unsigned long))) < 0)
12415 long i = longval ();
12416 if (i != ((long) (sizeof (unsigned long))))
12418 fprintf (f, "%ld\n", i);
12422 unsigned long i = ulongval ();
12423 if (i != ((long) (sizeof (unsigned long))))
12425 fprintf (f, "%lu\n", i);
12427 exit (ferror (f) || fclose (f) != 0);
12433 rm -f conftest$ac_exeext
12434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12435 (eval $ac_link) 2>&5
12437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12440 (eval $ac_try) 2>&5
12442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443 (exit $ac_status); }; }; then
12444 ac_cv_sizeof_unsigned_long=`cat conftest.val`
12446 echo "$as_me: program exited with status $ac_status" >&5
12447 echo "$as_me: failed program was:" >&5
12448 cat conftest.$ac_ext >&5
12449 ( exit $ac_status )
12450 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77" >&5
12451 echo "$as_me: error: cannot compute sizeof (unsigned long), 77" >&2;}
12452 { (exit 1); exit 1; }; }
12454 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12459 ac_cv_sizeof_unsigned_long=0
12462 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
12463 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
12464 cat >>confdefs.h <<_ACEOF
12465 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
12470 cat >>confdefs.h <<_ACEOF
12471 #define SIZEOF_DATUM $ac_cv_sizeof_unsigned_long
12475 # Determine memory alignment requirements for the basic C data types.
12477 echo "$as_me:$LINENO: checking for short" >&5
12478 echo $ECHO_N "checking for short... $ECHO_C" >&6
12479 if test "${ac_cv_type_short+set}" = set; then
12480 echo $ECHO_N "(cached) $ECHO_C" >&6
12482 cat >conftest.$ac_ext <<_ACEOF
12483 #line $LINENO "configure"
12484 #include "confdefs.h"
12485 $ac_includes_default
12486 #ifdef F77_DUMMY_MAIN
12487 # ifdef __cplusplus
12490 int F77_DUMMY_MAIN() { return 1; }
12497 if (sizeof (short))
12503 rm -f conftest.$ac_objext
12504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12505 (eval $ac_compile) 2>&5
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); } &&
12509 { ac_try='test -s conftest.$ac_objext'
12510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12511 (eval $ac_try) 2>&5
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); }; }; then
12515 ac_cv_type_short=yes
12517 echo "$as_me: failed program was:" >&5
12518 cat conftest.$ac_ext >&5
12519 ac_cv_type_short=no
12521 rm -f conftest.$ac_objext conftest.$ac_ext
12523 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12524 echo "${ECHO_T}$ac_cv_type_short" >&6
12526 echo "$as_me:$LINENO: checking alignment of short" >&5
12527 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
12528 if test "${pgac_cv_alignof_short+set}" = set; then
12529 echo $ECHO_N "(cached) $ECHO_C" >&6
12531 if test "$ac_cv_type_short" = yes; then
12532 if test "$cross_compiling" = yes; then
12533 # Depending upon the size, compute the lo and hi bounds.
12534 cat >conftest.$ac_ext <<_ACEOF
12535 #line $LINENO "configure"
12536 #include "confdefs.h"
12537 $ac_includes_default
12538 struct { char filler; short field; } pgac_struct;
12539 #ifdef F77_DUMMY_MAIN
12540 # ifdef __cplusplus
12543 int F77_DUMMY_MAIN() { return 1; }
12548 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
12555 rm -f conftest.$ac_objext
12556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12557 (eval $ac_compile) 2>&5
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); } &&
12561 { ac_try='test -s conftest.$ac_objext'
12562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12563 (eval $ac_try) 2>&5
12565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566 (exit $ac_status); }; }; then
12569 cat >conftest.$ac_ext <<_ACEOF
12570 #line $LINENO "configure"
12571 #include "confdefs.h"
12572 $ac_includes_default
12573 struct { char filler; short field; } pgac_struct;
12574 #ifdef F77_DUMMY_MAIN
12575 # ifdef __cplusplus
12578 int F77_DUMMY_MAIN() { return 1; }
12583 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
12590 rm -f conftest.$ac_objext
12591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12592 (eval $ac_compile) 2>&5
12594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595 (exit $ac_status); } &&
12596 { ac_try='test -s conftest.$ac_objext'
12597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12598 (eval $ac_try) 2>&5
12600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601 (exit $ac_status); }; }; then
12602 ac_hi=$ac_mid; break
12604 echo "$as_me: failed program was:" >&5
12605 cat conftest.$ac_ext >&5
12606 ac_lo=`expr $ac_mid + 1`
12607 if test $ac_lo -le $ac_mid; then
12611 ac_mid=`expr 2 '*' $ac_mid + 1`
12613 rm -f conftest.$ac_objext conftest.$ac_ext
12616 echo "$as_me: failed program was:" >&5
12617 cat conftest.$ac_ext >&5
12618 cat >conftest.$ac_ext <<_ACEOF
12619 #line $LINENO "configure"
12620 #include "confdefs.h"
12621 $ac_includes_default
12622 struct { char filler; short field; } pgac_struct;
12623 #ifdef F77_DUMMY_MAIN
12624 # ifdef __cplusplus
12627 int F77_DUMMY_MAIN() { return 1; }
12632 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
12639 rm -f conftest.$ac_objext
12640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12641 (eval $ac_compile) 2>&5
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); } &&
12645 { ac_try='test -s conftest.$ac_objext'
12646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12647 (eval $ac_try) 2>&5
12649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650 (exit $ac_status); }; }; then
12653 cat >conftest.$ac_ext <<_ACEOF
12654 #line $LINENO "configure"
12655 #include "confdefs.h"
12656 $ac_includes_default
12657 struct { char filler; short field; } pgac_struct;
12658 #ifdef F77_DUMMY_MAIN
12659 # ifdef __cplusplus
12662 int F77_DUMMY_MAIN() { return 1; }
12667 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
12674 rm -f conftest.$ac_objext
12675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12676 (eval $ac_compile) 2>&5
12678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679 (exit $ac_status); } &&
12680 { ac_try='test -s conftest.$ac_objext'
12681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12682 (eval $ac_try) 2>&5
12684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685 (exit $ac_status); }; }; then
12686 ac_lo=$ac_mid; break
12688 echo "$as_me: failed program was:" >&5
12689 cat conftest.$ac_ext >&5
12690 ac_hi=`expr '(' $ac_mid ')' - 1`
12691 if test $ac_mid -le $ac_hi; then
12695 ac_mid=`expr 2 '*' $ac_mid`
12697 rm -f conftest.$ac_objext conftest.$ac_ext
12700 echo "$as_me: failed program was:" >&5
12701 cat conftest.$ac_ext >&5
12704 rm -f conftest.$ac_objext conftest.$ac_ext
12706 rm -f conftest.$ac_objext conftest.$ac_ext
12707 # Binary search between lo and hi bounds.
12708 while test "x$ac_lo" != "x$ac_hi"; do
12709 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12710 cat >conftest.$ac_ext <<_ACEOF
12711 #line $LINENO "configure"
12712 #include "confdefs.h"
12713 $ac_includes_default
12714 struct { char filler; short field; } pgac_struct;
12715 #ifdef F77_DUMMY_MAIN
12716 # ifdef __cplusplus
12719 int F77_DUMMY_MAIN() { return 1; }
12724 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
12731 rm -f conftest.$ac_objext
12732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12733 (eval $ac_compile) 2>&5
12735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736 (exit $ac_status); } &&
12737 { ac_try='test -s conftest.$ac_objext'
12738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12739 (eval $ac_try) 2>&5
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); }; }; then
12745 echo "$as_me: failed program was:" >&5
12746 cat conftest.$ac_ext >&5
12747 ac_lo=`expr '(' $ac_mid ')' + 1`
12749 rm -f conftest.$ac_objext conftest.$ac_ext
12752 ?*) pgac_cv_alignof_short=$ac_lo;;
12753 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
12754 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
12755 { (exit 1); exit 1; }; } ;;
12758 if test "$cross_compiling" = yes; then
12759 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
12760 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12761 { (exit 1); exit 1; }; }
12763 cat >conftest.$ac_ext <<_ACEOF
12764 #line $LINENO "configure"
12765 #include "confdefs.h"
12766 $ac_includes_default
12767 struct { char filler; short field; } pgac_struct;
12768 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
12769 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
12771 #include <stdlib.h>
12772 #ifdef F77_DUMMY_MAIN
12773 # ifdef __cplusplus
12776 int F77_DUMMY_MAIN() { return 1; }
12782 FILE *f = fopen ("conftest.val", "w");
12785 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
12787 long i = longval ();
12788 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
12790 fprintf (f, "%ld\n", i);
12794 unsigned long i = ulongval ();
12795 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
12797 fprintf (f, "%lu\n", i);
12799 exit (ferror (f) || fclose (f) != 0);
12805 rm -f conftest$ac_exeext
12806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12807 (eval $ac_link) 2>&5
12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12812 (eval $ac_try) 2>&5
12814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815 (exit $ac_status); }; }; then
12816 pgac_cv_alignof_short=`cat conftest.val`
12818 echo "$as_me: program exited with status $ac_status" >&5
12819 echo "$as_me: failed program was:" >&5
12820 cat conftest.$ac_ext >&5
12821 ( exit $ac_status )
12822 { { echo "$as_me:$LINENO: error: cannot compute alignment of short, 77" >&5
12823 echo "$as_me: error: cannot compute alignment of short, 77" >&2;}
12824 { (exit 1); exit 1; }; }
12826 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12831 pgac_cv_alignof_short=0
12834 echo "$as_me:$LINENO: result: $pgac_cv_alignof_short" >&5
12835 echo "${ECHO_T}$pgac_cv_alignof_short" >&6
12836 cat >>confdefs.h <<_ACEOF
12837 #define ALIGNOF_SHORT $pgac_cv_alignof_short
12841 echo "$as_me:$LINENO: checking for int" >&5
12842 echo $ECHO_N "checking for int... $ECHO_C" >&6
12843 if test "${ac_cv_type_int+set}" = set; then
12844 echo $ECHO_N "(cached) $ECHO_C" >&6
12846 cat >conftest.$ac_ext <<_ACEOF
12847 #line $LINENO "configure"
12848 #include "confdefs.h"
12849 $ac_includes_default
12850 #ifdef F77_DUMMY_MAIN
12851 # ifdef __cplusplus
12854 int F77_DUMMY_MAIN() { return 1; }
12867 rm -f conftest.$ac_objext
12868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12869 (eval $ac_compile) 2>&5
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872 (exit $ac_status); } &&
12873 { ac_try='test -s conftest.$ac_objext'
12874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12875 (eval $ac_try) 2>&5
12877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878 (exit $ac_status); }; }; then
12881 echo "$as_me: failed program was:" >&5
12882 cat conftest.$ac_ext >&5
12885 rm -f conftest.$ac_objext conftest.$ac_ext
12887 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12888 echo "${ECHO_T}$ac_cv_type_int" >&6
12890 echo "$as_me:$LINENO: checking alignment of int" >&5
12891 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
12892 if test "${pgac_cv_alignof_int+set}" = set; then
12893 echo $ECHO_N "(cached) $ECHO_C" >&6
12895 if test "$ac_cv_type_int" = yes; then
12896 if test "$cross_compiling" = yes; then
12897 # Depending upon the size, compute the lo and hi bounds.
12898 cat >conftest.$ac_ext <<_ACEOF
12899 #line $LINENO "configure"
12900 #include "confdefs.h"
12901 $ac_includes_default
12902 struct { char filler; int field; } pgac_struct;
12903 #ifdef F77_DUMMY_MAIN
12904 # ifdef __cplusplus
12907 int F77_DUMMY_MAIN() { return 1; }
12912 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
12919 rm -f conftest.$ac_objext
12920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12921 (eval $ac_compile) 2>&5
12923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); } &&
12925 { ac_try='test -s conftest.$ac_objext'
12926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12927 (eval $ac_try) 2>&5
12929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 (exit $ac_status); }; }; then
12933 cat >conftest.$ac_ext <<_ACEOF
12934 #line $LINENO "configure"
12935 #include "confdefs.h"
12936 $ac_includes_default
12937 struct { char filler; int field; } pgac_struct;
12938 #ifdef F77_DUMMY_MAIN
12939 # ifdef __cplusplus
12942 int F77_DUMMY_MAIN() { return 1; }
12947 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
12954 rm -f conftest.$ac_objext
12955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12956 (eval $ac_compile) 2>&5
12958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959 (exit $ac_status); } &&
12960 { ac_try='test -s conftest.$ac_objext'
12961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12962 (eval $ac_try) 2>&5
12964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965 (exit $ac_status); }; }; then
12966 ac_hi=$ac_mid; break
12968 echo "$as_me: failed program was:" >&5
12969 cat conftest.$ac_ext >&5
12970 ac_lo=`expr $ac_mid + 1`
12971 if test $ac_lo -le $ac_mid; then
12975 ac_mid=`expr 2 '*' $ac_mid + 1`
12977 rm -f conftest.$ac_objext conftest.$ac_ext
12980 echo "$as_me: failed program was:" >&5
12981 cat conftest.$ac_ext >&5
12982 cat >conftest.$ac_ext <<_ACEOF
12983 #line $LINENO "configure"
12984 #include "confdefs.h"
12985 $ac_includes_default
12986 struct { char filler; int field; } pgac_struct;
12987 #ifdef F77_DUMMY_MAIN
12988 # ifdef __cplusplus
12991 int F77_DUMMY_MAIN() { return 1; }
12996 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13003 rm -f conftest.$ac_objext
13004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13005 (eval $ac_compile) 2>&5
13007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008 (exit $ac_status); } &&
13009 { ac_try='test -s conftest.$ac_objext'
13010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13011 (eval $ac_try) 2>&5
13013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014 (exit $ac_status); }; }; then
13017 cat >conftest.$ac_ext <<_ACEOF
13018 #line $LINENO "configure"
13019 #include "confdefs.h"
13020 $ac_includes_default
13021 struct { char filler; int field; } pgac_struct;
13022 #ifdef F77_DUMMY_MAIN
13023 # ifdef __cplusplus
13026 int F77_DUMMY_MAIN() { return 1; }
13031 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13038 rm -f conftest.$ac_objext
13039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13040 (eval $ac_compile) 2>&5
13042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043 (exit $ac_status); } &&
13044 { ac_try='test -s conftest.$ac_objext'
13045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13046 (eval $ac_try) 2>&5
13048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049 (exit $ac_status); }; }; then
13050 ac_lo=$ac_mid; break
13052 echo "$as_me: failed program was:" >&5
13053 cat conftest.$ac_ext >&5
13054 ac_hi=`expr '(' $ac_mid ')' - 1`
13055 if test $ac_mid -le $ac_hi; then
13059 ac_mid=`expr 2 '*' $ac_mid`
13061 rm -f conftest.$ac_objext conftest.$ac_ext
13064 echo "$as_me: failed program was:" >&5
13065 cat conftest.$ac_ext >&5
13068 rm -f conftest.$ac_objext conftest.$ac_ext
13070 rm -f conftest.$ac_objext conftest.$ac_ext
13071 # Binary search between lo and hi bounds.
13072 while test "x$ac_lo" != "x$ac_hi"; do
13073 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13074 cat >conftest.$ac_ext <<_ACEOF
13075 #line $LINENO "configure"
13076 #include "confdefs.h"
13077 $ac_includes_default
13078 struct { char filler; int field; } pgac_struct;
13079 #ifdef F77_DUMMY_MAIN
13080 # ifdef __cplusplus
13083 int F77_DUMMY_MAIN() { return 1; }
13088 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13095 rm -f conftest.$ac_objext
13096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13097 (eval $ac_compile) 2>&5
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); } &&
13101 { ac_try='test -s conftest.$ac_objext'
13102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13103 (eval $ac_try) 2>&5
13105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); }; }; then
13109 echo "$as_me: failed program was:" >&5
13110 cat conftest.$ac_ext >&5
13111 ac_lo=`expr '(' $ac_mid ')' + 1`
13113 rm -f conftest.$ac_objext conftest.$ac_ext
13116 ?*) pgac_cv_alignof_int=$ac_lo;;
13117 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
13118 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
13119 { (exit 1); exit 1; }; } ;;
13122 if test "$cross_compiling" = yes; then
13123 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13124 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13125 { (exit 1); exit 1; }; }
13127 cat >conftest.$ac_ext <<_ACEOF
13128 #line $LINENO "configure"
13129 #include "confdefs.h"
13130 $ac_includes_default
13131 struct { char filler; int field; } pgac_struct;
13132 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13133 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13135 #include <stdlib.h>
13136 #ifdef F77_DUMMY_MAIN
13137 # ifdef __cplusplus
13140 int F77_DUMMY_MAIN() { return 1; }
13146 FILE *f = fopen ("conftest.val", "w");
13149 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13151 long i = longval ();
13152 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13154 fprintf (f, "%ld\n", i);
13158 unsigned long i = ulongval ();
13159 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13161 fprintf (f, "%lu\n", i);
13163 exit (ferror (f) || fclose (f) != 0);
13169 rm -f conftest$ac_exeext
13170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13171 (eval $ac_link) 2>&5
13173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13176 (eval $ac_try) 2>&5
13178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179 (exit $ac_status); }; }; then
13180 pgac_cv_alignof_int=`cat conftest.val`
13182 echo "$as_me: program exited with status $ac_status" >&5
13183 echo "$as_me: failed program was:" >&5
13184 cat conftest.$ac_ext >&5
13185 ( exit $ac_status )
13186 { { echo "$as_me:$LINENO: error: cannot compute alignment of int, 77" >&5
13187 echo "$as_me: error: cannot compute alignment of int, 77" >&2;}
13188 { (exit 1); exit 1; }; }
13190 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13195 pgac_cv_alignof_int=0
13198 echo "$as_me:$LINENO: result: $pgac_cv_alignof_int" >&5
13199 echo "${ECHO_T}$pgac_cv_alignof_int" >&6
13200 cat >>confdefs.h <<_ACEOF
13201 #define ALIGNOF_INT $pgac_cv_alignof_int
13205 echo "$as_me:$LINENO: checking for long" >&5
13206 echo $ECHO_N "checking for long... $ECHO_C" >&6
13207 if test "${ac_cv_type_long+set}" = set; then
13208 echo $ECHO_N "(cached) $ECHO_C" >&6
13210 cat >conftest.$ac_ext <<_ACEOF
13211 #line $LINENO "configure"
13212 #include "confdefs.h"
13213 $ac_includes_default
13214 #ifdef F77_DUMMY_MAIN
13215 # ifdef __cplusplus
13218 int F77_DUMMY_MAIN() { return 1; }
13231 rm -f conftest.$ac_objext
13232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13233 (eval $ac_compile) 2>&5
13235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236 (exit $ac_status); } &&
13237 { ac_try='test -s conftest.$ac_objext'
13238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13239 (eval $ac_try) 2>&5
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); }; }; then
13243 ac_cv_type_long=yes
13245 echo "$as_me: failed program was:" >&5
13246 cat conftest.$ac_ext >&5
13249 rm -f conftest.$ac_objext conftest.$ac_ext
13251 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13252 echo "${ECHO_T}$ac_cv_type_long" >&6
13254 echo "$as_me:$LINENO: checking alignment of long" >&5
13255 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
13256 if test "${pgac_cv_alignof_long+set}" = set; then
13257 echo $ECHO_N "(cached) $ECHO_C" >&6
13259 if test "$ac_cv_type_long" = yes; then
13260 if test "$cross_compiling" = yes; then
13261 # Depending upon the size, compute the lo and hi bounds.
13262 cat >conftest.$ac_ext <<_ACEOF
13263 #line $LINENO "configure"
13264 #include "confdefs.h"
13265 $ac_includes_default
13266 struct { char filler; long field; } pgac_struct;
13267 #ifdef F77_DUMMY_MAIN
13268 # ifdef __cplusplus
13271 int F77_DUMMY_MAIN() { return 1; }
13276 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13283 rm -f conftest.$ac_objext
13284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13285 (eval $ac_compile) 2>&5
13287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); } &&
13289 { ac_try='test -s conftest.$ac_objext'
13290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13291 (eval $ac_try) 2>&5
13293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294 (exit $ac_status); }; }; then
13297 cat >conftest.$ac_ext <<_ACEOF
13298 #line $LINENO "configure"
13299 #include "confdefs.h"
13300 $ac_includes_default
13301 struct { char filler; long field; } pgac_struct;
13302 #ifdef F77_DUMMY_MAIN
13303 # ifdef __cplusplus
13306 int F77_DUMMY_MAIN() { return 1; }
13311 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13318 rm -f conftest.$ac_objext
13319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13320 (eval $ac_compile) 2>&5
13322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323 (exit $ac_status); } &&
13324 { ac_try='test -s conftest.$ac_objext'
13325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13326 (eval $ac_try) 2>&5
13328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329 (exit $ac_status); }; }; then
13330 ac_hi=$ac_mid; break
13332 echo "$as_me: failed program was:" >&5
13333 cat conftest.$ac_ext >&5
13334 ac_lo=`expr $ac_mid + 1`
13335 if test $ac_lo -le $ac_mid; then
13339 ac_mid=`expr 2 '*' $ac_mid + 1`
13341 rm -f conftest.$ac_objext conftest.$ac_ext
13344 echo "$as_me: failed program was:" >&5
13345 cat conftest.$ac_ext >&5
13346 cat >conftest.$ac_ext <<_ACEOF
13347 #line $LINENO "configure"
13348 #include "confdefs.h"
13349 $ac_includes_default
13350 struct { char filler; long field; } pgac_struct;
13351 #ifdef F77_DUMMY_MAIN
13352 # ifdef __cplusplus
13355 int F77_DUMMY_MAIN() { return 1; }
13360 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13367 rm -f conftest.$ac_objext
13368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13369 (eval $ac_compile) 2>&5
13371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372 (exit $ac_status); } &&
13373 { ac_try='test -s conftest.$ac_objext'
13374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13375 (eval $ac_try) 2>&5
13377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378 (exit $ac_status); }; }; then
13381 cat >conftest.$ac_ext <<_ACEOF
13382 #line $LINENO "configure"
13383 #include "confdefs.h"
13384 $ac_includes_default
13385 struct { char filler; long field; } pgac_struct;
13386 #ifdef F77_DUMMY_MAIN
13387 # ifdef __cplusplus
13390 int F77_DUMMY_MAIN() { return 1; }
13395 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13402 rm -f conftest.$ac_objext
13403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13404 (eval $ac_compile) 2>&5
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); } &&
13408 { ac_try='test -s conftest.$ac_objext'
13409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13410 (eval $ac_try) 2>&5
13412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413 (exit $ac_status); }; }; then
13414 ac_lo=$ac_mid; break
13416 echo "$as_me: failed program was:" >&5
13417 cat conftest.$ac_ext >&5
13418 ac_hi=`expr '(' $ac_mid ')' - 1`
13419 if test $ac_mid -le $ac_hi; then
13423 ac_mid=`expr 2 '*' $ac_mid`
13425 rm -f conftest.$ac_objext conftest.$ac_ext
13428 echo "$as_me: failed program was:" >&5
13429 cat conftest.$ac_ext >&5
13432 rm -f conftest.$ac_objext conftest.$ac_ext
13434 rm -f conftest.$ac_objext conftest.$ac_ext
13435 # Binary search between lo and hi bounds.
13436 while test "x$ac_lo" != "x$ac_hi"; do
13437 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13438 cat >conftest.$ac_ext <<_ACEOF
13439 #line $LINENO "configure"
13440 #include "confdefs.h"
13441 $ac_includes_default
13442 struct { char filler; long field; } pgac_struct;
13443 #ifdef F77_DUMMY_MAIN
13444 # ifdef __cplusplus
13447 int F77_DUMMY_MAIN() { return 1; }
13452 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13459 rm -f conftest.$ac_objext
13460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13461 (eval $ac_compile) 2>&5
13463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464 (exit $ac_status); } &&
13465 { ac_try='test -s conftest.$ac_objext'
13466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13467 (eval $ac_try) 2>&5
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); }; }; then
13473 echo "$as_me: failed program was:" >&5
13474 cat conftest.$ac_ext >&5
13475 ac_lo=`expr '(' $ac_mid ')' + 1`
13477 rm -f conftest.$ac_objext conftest.$ac_ext
13480 ?*) pgac_cv_alignof_long=$ac_lo;;
13481 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
13482 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
13483 { (exit 1); exit 1; }; } ;;
13486 if test "$cross_compiling" = yes; then
13487 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13488 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13489 { (exit 1); exit 1; }; }
13491 cat >conftest.$ac_ext <<_ACEOF
13492 #line $LINENO "configure"
13493 #include "confdefs.h"
13494 $ac_includes_default
13495 struct { char filler; long field; } pgac_struct;
13496 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13497 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13499 #include <stdlib.h>
13500 #ifdef F77_DUMMY_MAIN
13501 # ifdef __cplusplus
13504 int F77_DUMMY_MAIN() { return 1; }
13510 FILE *f = fopen ("conftest.val", "w");
13513 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13515 long i = longval ();
13516 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13518 fprintf (f, "%ld\n", i);
13522 unsigned long i = ulongval ();
13523 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13525 fprintf (f, "%lu\n", i);
13527 exit (ferror (f) || fclose (f) != 0);
13533 rm -f conftest$ac_exeext
13534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13535 (eval $ac_link) 2>&5
13537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13540 (eval $ac_try) 2>&5
13542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543 (exit $ac_status); }; }; then
13544 pgac_cv_alignof_long=`cat conftest.val`
13546 echo "$as_me: program exited with status $ac_status" >&5
13547 echo "$as_me: failed program was:" >&5
13548 cat conftest.$ac_ext >&5
13549 ( exit $ac_status )
13550 { { echo "$as_me:$LINENO: error: cannot compute alignment of long, 77" >&5
13551 echo "$as_me: error: cannot compute alignment of long, 77" >&2;}
13552 { (exit 1); exit 1; }; }
13554 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13559 pgac_cv_alignof_long=0
13562 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long" >&5
13563 echo "${ECHO_T}$pgac_cv_alignof_long" >&6
13564 cat >>confdefs.h <<_ACEOF
13565 #define ALIGNOF_LONG $pgac_cv_alignof_long
13569 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
13570 echo "$as_me:$LINENO: checking for long long int" >&5
13571 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13572 if test "${ac_cv_type_long_long_int+set}" = set; then
13573 echo $ECHO_N "(cached) $ECHO_C" >&6
13575 cat >conftest.$ac_ext <<_ACEOF
13576 #line $LINENO "configure"
13577 #include "confdefs.h"
13578 $ac_includes_default
13579 #ifdef F77_DUMMY_MAIN
13580 # ifdef __cplusplus
13583 int F77_DUMMY_MAIN() { return 1; }
13588 if ((long long int *) 0)
13590 if (sizeof (long long int))
13596 rm -f conftest.$ac_objext
13597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13598 (eval $ac_compile) 2>&5
13600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13601 (exit $ac_status); } &&
13602 { ac_try='test -s conftest.$ac_objext'
13603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13604 (eval $ac_try) 2>&5
13606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607 (exit $ac_status); }; }; then
13608 ac_cv_type_long_long_int=yes
13610 echo "$as_me: failed program was:" >&5
13611 cat conftest.$ac_ext >&5
13612 ac_cv_type_long_long_int=no
13614 rm -f conftest.$ac_objext conftest.$ac_ext
13616 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13617 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13619 echo "$as_me:$LINENO: checking alignment of long long int" >&5
13620 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6
13621 if test "${pgac_cv_alignof_long_long_int+set}" = set; then
13622 echo $ECHO_N "(cached) $ECHO_C" >&6
13624 if test "$ac_cv_type_long_long_int" = yes; then
13625 if test "$cross_compiling" = yes; then
13626 # Depending upon the size, compute the lo and hi bounds.
13627 cat >conftest.$ac_ext <<_ACEOF
13628 #line $LINENO "configure"
13629 #include "confdefs.h"
13630 $ac_includes_default
13631 struct { char filler; long long int field; } pgac_struct;
13632 #ifdef F77_DUMMY_MAIN
13633 # ifdef __cplusplus
13636 int F77_DUMMY_MAIN() { return 1; }
13641 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
13648 rm -f conftest.$ac_objext
13649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13650 (eval $ac_compile) 2>&5
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); } &&
13654 { ac_try='test -s conftest.$ac_objext'
13655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13656 (eval $ac_try) 2>&5
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); }; }; then
13662 cat >conftest.$ac_ext <<_ACEOF
13663 #line $LINENO "configure"
13664 #include "confdefs.h"
13665 $ac_includes_default
13666 struct { char filler; long long int field; } pgac_struct;
13667 #ifdef F77_DUMMY_MAIN
13668 # ifdef __cplusplus
13671 int F77_DUMMY_MAIN() { return 1; }
13676 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13683 rm -f conftest.$ac_objext
13684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13685 (eval $ac_compile) 2>&5
13687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688 (exit $ac_status); } &&
13689 { ac_try='test -s conftest.$ac_objext'
13690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13691 (eval $ac_try) 2>&5
13693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694 (exit $ac_status); }; }; then
13695 ac_hi=$ac_mid; break
13697 echo "$as_me: failed program was:" >&5
13698 cat conftest.$ac_ext >&5
13699 ac_lo=`expr $ac_mid + 1`
13700 if test $ac_lo -le $ac_mid; then
13704 ac_mid=`expr 2 '*' $ac_mid + 1`
13706 rm -f conftest.$ac_objext conftest.$ac_ext
13709 echo "$as_me: failed program was:" >&5
13710 cat conftest.$ac_ext >&5
13711 cat >conftest.$ac_ext <<_ACEOF
13712 #line $LINENO "configure"
13713 #include "confdefs.h"
13714 $ac_includes_default
13715 struct { char filler; long long int field; } pgac_struct;
13716 #ifdef F77_DUMMY_MAIN
13717 # ifdef __cplusplus
13720 int F77_DUMMY_MAIN() { return 1; }
13725 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
13732 rm -f conftest.$ac_objext
13733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13734 (eval $ac_compile) 2>&5
13736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737 (exit $ac_status); } &&
13738 { ac_try='test -s conftest.$ac_objext'
13739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13740 (eval $ac_try) 2>&5
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); }; }; then
13746 cat >conftest.$ac_ext <<_ACEOF
13747 #line $LINENO "configure"
13748 #include "confdefs.h"
13749 $ac_includes_default
13750 struct { char filler; long long int field; } pgac_struct;
13751 #ifdef F77_DUMMY_MAIN
13752 # ifdef __cplusplus
13755 int F77_DUMMY_MAIN() { return 1; }
13760 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
13767 rm -f conftest.$ac_objext
13768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13769 (eval $ac_compile) 2>&5
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); } &&
13773 { ac_try='test -s conftest.$ac_objext'
13774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13775 (eval $ac_try) 2>&5
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); }; }; then
13779 ac_lo=$ac_mid; break
13781 echo "$as_me: failed program was:" >&5
13782 cat conftest.$ac_ext >&5
13783 ac_hi=`expr '(' $ac_mid ')' - 1`
13784 if test $ac_mid -le $ac_hi; then
13788 ac_mid=`expr 2 '*' $ac_mid`
13790 rm -f conftest.$ac_objext conftest.$ac_ext
13793 echo "$as_me: failed program was:" >&5
13794 cat conftest.$ac_ext >&5
13797 rm -f conftest.$ac_objext conftest.$ac_ext
13799 rm -f conftest.$ac_objext conftest.$ac_ext
13800 # Binary search between lo and hi bounds.
13801 while test "x$ac_lo" != "x$ac_hi"; do
13802 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13803 cat >conftest.$ac_ext <<_ACEOF
13804 #line $LINENO "configure"
13805 #include "confdefs.h"
13806 $ac_includes_default
13807 struct { char filler; long long int field; } pgac_struct;
13808 #ifdef F77_DUMMY_MAIN
13809 # ifdef __cplusplus
13812 int F77_DUMMY_MAIN() { return 1; }
13817 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
13824 rm -f conftest.$ac_objext
13825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13826 (eval $ac_compile) 2>&5
13828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829 (exit $ac_status); } &&
13830 { ac_try='test -s conftest.$ac_objext'
13831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13832 (eval $ac_try) 2>&5
13834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835 (exit $ac_status); }; }; then
13838 echo "$as_me: failed program was:" >&5
13839 cat conftest.$ac_ext >&5
13840 ac_lo=`expr '(' $ac_mid ')' + 1`
13842 rm -f conftest.$ac_objext conftest.$ac_ext
13845 ?*) pgac_cv_alignof_long_long_int=$ac_lo;;
13846 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
13847 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
13848 { (exit 1); exit 1; }; } ;;
13851 if test "$cross_compiling" = yes; then
13852 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
13853 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13854 { (exit 1); exit 1; }; }
13856 cat >conftest.$ac_ext <<_ACEOF
13857 #line $LINENO "configure"
13858 #include "confdefs.h"
13859 $ac_includes_default
13860 struct { char filler; long long int field; } pgac_struct;
13861 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13862 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
13864 #include <stdlib.h>
13865 #ifdef F77_DUMMY_MAIN
13866 # ifdef __cplusplus
13869 int F77_DUMMY_MAIN() { return 1; }
13875 FILE *f = fopen ("conftest.val", "w");
13878 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
13880 long i = longval ();
13881 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13883 fprintf (f, "%ld\n", i);
13887 unsigned long i = ulongval ();
13888 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
13890 fprintf (f, "%lu\n", i);
13892 exit (ferror (f) || fclose (f) != 0);
13898 rm -f conftest$ac_exeext
13899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13900 (eval $ac_link) 2>&5
13902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13905 (eval $ac_try) 2>&5
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); }; }; then
13909 pgac_cv_alignof_long_long_int=`cat conftest.val`
13911 echo "$as_me: program exited with status $ac_status" >&5
13912 echo "$as_me: failed program was:" >&5
13913 cat conftest.$ac_ext >&5
13914 ( exit $ac_status )
13915 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int, 77" >&5
13916 echo "$as_me: error: cannot compute alignment of long long int, 77" >&2;}
13917 { (exit 1); exit 1; }; }
13919 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13924 pgac_cv_alignof_long_long_int=0
13927 echo "$as_me:$LINENO: result: $pgac_cv_alignof_long_long_int" >&5
13928 echo "${ECHO_T}$pgac_cv_alignof_long_long_int" >&6
13929 cat >>confdefs.h <<_ACEOF
13930 #define ALIGNOF_LONG_LONG_INT $pgac_cv_alignof_long_long_int
13935 echo "$as_me:$LINENO: checking for double" >&5
13936 echo $ECHO_N "checking for double... $ECHO_C" >&6
13937 if test "${ac_cv_type_double+set}" = set; then
13938 echo $ECHO_N "(cached) $ECHO_C" >&6
13940 cat >conftest.$ac_ext <<_ACEOF
13941 #line $LINENO "configure"
13942 #include "confdefs.h"
13943 $ac_includes_default
13944 #ifdef F77_DUMMY_MAIN
13945 # ifdef __cplusplus
13948 int F77_DUMMY_MAIN() { return 1; }
13955 if (sizeof (double))
13961 rm -f conftest.$ac_objext
13962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13963 (eval $ac_compile) 2>&5
13965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966 (exit $ac_status); } &&
13967 { ac_try='test -s conftest.$ac_objext'
13968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13969 (eval $ac_try) 2>&5
13971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972 (exit $ac_status); }; }; then
13973 ac_cv_type_double=yes
13975 echo "$as_me: failed program was:" >&5
13976 cat conftest.$ac_ext >&5
13977 ac_cv_type_double=no
13979 rm -f conftest.$ac_objext conftest.$ac_ext
13981 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
13982 echo "${ECHO_T}$ac_cv_type_double" >&6
13984 echo "$as_me:$LINENO: checking alignment of double" >&5
13985 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
13986 if test "${pgac_cv_alignof_double+set}" = set; then
13987 echo $ECHO_N "(cached) $ECHO_C" >&6
13989 if test "$ac_cv_type_double" = yes; then
13990 if test "$cross_compiling" = yes; then
13991 # Depending upon the size, compute the lo and hi bounds.
13992 cat >conftest.$ac_ext <<_ACEOF
13993 #line $LINENO "configure"
13994 #include "confdefs.h"
13995 $ac_includes_default
13996 struct { char filler; double field; } pgac_struct;
13997 #ifdef F77_DUMMY_MAIN
13998 # ifdef __cplusplus
14001 int F77_DUMMY_MAIN() { return 1; }
14006 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= 0)];
14013 rm -f conftest.$ac_objext
14014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14015 (eval $ac_compile) 2>&5
14017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018 (exit $ac_status); } &&
14019 { ac_try='test -s conftest.$ac_objext'
14020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14021 (eval $ac_try) 2>&5
14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); }; }; then
14027 cat >conftest.$ac_ext <<_ACEOF
14028 #line $LINENO "configure"
14029 #include "confdefs.h"
14030 $ac_includes_default
14031 struct { char filler; double field; } pgac_struct;
14032 #ifdef F77_DUMMY_MAIN
14033 # ifdef __cplusplus
14036 int F77_DUMMY_MAIN() { return 1; }
14041 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14048 rm -f conftest.$ac_objext
14049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14050 (eval $ac_compile) 2>&5
14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053 (exit $ac_status); } &&
14054 { ac_try='test -s conftest.$ac_objext'
14055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14056 (eval $ac_try) 2>&5
14058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059 (exit $ac_status); }; }; then
14060 ac_hi=$ac_mid; break
14062 echo "$as_me: failed program was:" >&5
14063 cat conftest.$ac_ext >&5
14064 ac_lo=`expr $ac_mid + 1`
14065 if test $ac_lo -le $ac_mid; then
14069 ac_mid=`expr 2 '*' $ac_mid + 1`
14071 rm -f conftest.$ac_objext conftest.$ac_ext
14074 echo "$as_me: failed program was:" >&5
14075 cat conftest.$ac_ext >&5
14076 cat >conftest.$ac_ext <<_ACEOF
14077 #line $LINENO "configure"
14078 #include "confdefs.h"
14079 $ac_includes_default
14080 struct { char filler; double field; } pgac_struct;
14081 #ifdef F77_DUMMY_MAIN
14082 # ifdef __cplusplus
14085 int F77_DUMMY_MAIN() { return 1; }
14090 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)];
14097 rm -f conftest.$ac_objext
14098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14099 (eval $ac_compile) 2>&5
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); } &&
14103 { ac_try='test -s conftest.$ac_objext'
14104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14105 (eval $ac_try) 2>&5
14107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108 (exit $ac_status); }; }; then
14111 cat >conftest.$ac_ext <<_ACEOF
14112 #line $LINENO "configure"
14113 #include "confdefs.h"
14114 $ac_includes_default
14115 struct { char filler; double field; } pgac_struct;
14116 #ifdef F77_DUMMY_MAIN
14117 # ifdef __cplusplus
14120 int F77_DUMMY_MAIN() { return 1; }
14125 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) >= $ac_mid)];
14132 rm -f conftest.$ac_objext
14133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14134 (eval $ac_compile) 2>&5
14136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); } &&
14138 { ac_try='test -s conftest.$ac_objext'
14139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14140 (eval $ac_try) 2>&5
14142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143 (exit $ac_status); }; }; then
14144 ac_lo=$ac_mid; break
14146 echo "$as_me: failed program was:" >&5
14147 cat conftest.$ac_ext >&5
14148 ac_hi=`expr '(' $ac_mid ')' - 1`
14149 if test $ac_mid -le $ac_hi; then
14153 ac_mid=`expr 2 '*' $ac_mid`
14155 rm -f conftest.$ac_objext conftest.$ac_ext
14158 echo "$as_me: failed program was:" >&5
14159 cat conftest.$ac_ext >&5
14162 rm -f conftest.$ac_objext conftest.$ac_ext
14164 rm -f conftest.$ac_objext conftest.$ac_ext
14165 # Binary search between lo and hi bounds.
14166 while test "x$ac_lo" != "x$ac_hi"; do
14167 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14168 cat >conftest.$ac_ext <<_ACEOF
14169 #line $LINENO "configure"
14170 #include "confdefs.h"
14171 $ac_includes_default
14172 struct { char filler; double field; } pgac_struct;
14173 #ifdef F77_DUMMY_MAIN
14174 # ifdef __cplusplus
14177 int F77_DUMMY_MAIN() { return 1; }
14182 static int test_array [1 - 2 * !((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) <= $ac_mid)];
14189 rm -f conftest.$ac_objext
14190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14191 (eval $ac_compile) 2>&5
14193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194 (exit $ac_status); } &&
14195 { ac_try='test -s conftest.$ac_objext'
14196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14197 (eval $ac_try) 2>&5
14199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200 (exit $ac_status); }; }; then
14203 echo "$as_me: failed program was:" >&5
14204 cat conftest.$ac_ext >&5
14205 ac_lo=`expr '(' $ac_mid ')' + 1`
14207 rm -f conftest.$ac_objext conftest.$ac_ext
14210 ?*) pgac_cv_alignof_double=$ac_lo;;
14211 '') { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
14212 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
14213 { (exit 1); exit 1; }; } ;;
14216 if test "$cross_compiling" = yes; then
14217 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
14218 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14219 { (exit 1); exit 1; }; }
14221 cat >conftest.$ac_ext <<_ACEOF
14222 #line $LINENO "configure"
14223 #include "confdefs.h"
14224 $ac_includes_default
14225 struct { char filler; double field; } pgac_struct;
14226 long longval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14227 unsigned long ulongval () { return ((char*) & pgac_struct.field) - ((char*) & pgac_struct); }
14229 #include <stdlib.h>
14230 #ifdef F77_DUMMY_MAIN
14231 # ifdef __cplusplus
14234 int F77_DUMMY_MAIN() { return 1; }
14240 FILE *f = fopen ("conftest.val", "w");
14243 if ((((char*) & pgac_struct.field) - ((char*) & pgac_struct)) < 0)
14245 long i = longval ();
14246 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14248 fprintf (f, "%ld\n", i);
14252 unsigned long i = ulongval ();
14253 if (i != (((char*) & pgac_struct.field) - ((char*) & pgac_struct)))
14255 fprintf (f, "%lu\n", i);
14257 exit (ferror (f) || fclose (f) != 0);
14263 rm -f conftest$ac_exeext
14264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14265 (eval $ac_link) 2>&5
14267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14270 (eval $ac_try) 2>&5
14272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273 (exit $ac_status); }; }; then
14274 pgac_cv_alignof_double=`cat conftest.val`
14276 echo "$as_me: program exited with status $ac_status" >&5
14277 echo "$as_me: failed program was:" >&5
14278 cat conftest.$ac_ext >&5
14279 ( exit $ac_status )
14280 { { echo "$as_me:$LINENO: error: cannot compute alignment of double, 77" >&5
14281 echo "$as_me: error: cannot compute alignment of double, 77" >&2;}
14282 { (exit 1); exit 1; }; }
14284 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14289 pgac_cv_alignof_double=0
14292 echo "$as_me:$LINENO: result: $pgac_cv_alignof_double" >&5
14293 echo "${ECHO_T}$pgac_cv_alignof_double" >&6
14294 cat >>confdefs.h <<_ACEOF
14295 #define ALIGNOF_DOUBLE $pgac_cv_alignof_double
14300 # Compute maximum alignment of any basic type.
14301 # We assume long's alignment is at least as strong as char, short, or int;
14302 # but we must check long long (if it exists) and double.
14304 MAX_ALIGNOF=$pgac_cv_alignof_long
14305 if test $MAX_ALIGNOF -lt $pgac_cv_alignof_double ; then
14306 MAX_ALIGNOF=$pgac_cv_alignof_double
14308 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $pgac_cv_alignof_long_long_int ; then
14309 MAX_ALIGNOF="$pgac_cv_alignof_long_long_int"
14312 cat >>confdefs.h <<_ACEOF
14313 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
14318 # Some platforms predefine the types int8, int16, etc. Only check
14319 # a (hopefully) representative subset.
14320 echo "$as_me:$LINENO: checking for int8" >&5
14321 echo $ECHO_N "checking for int8... $ECHO_C" >&6
14322 if test "${ac_cv_type_int8+set}" = set; then
14323 echo $ECHO_N "(cached) $ECHO_C" >&6
14325 cat >conftest.$ac_ext <<_ACEOF
14326 #line $LINENO "configure"
14327 #include "confdefs.h"
14329 #ifdef HAVE_SUPPORTDEFS_H
14330 #include <SupportDefs.h>
14333 #ifdef F77_DUMMY_MAIN
14334 # ifdef __cplusplus
14337 int F77_DUMMY_MAIN() { return 1; }
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
14362 ac_cv_type_int8=yes
14364 echo "$as_me: failed program was:" >&5
14365 cat conftest.$ac_ext >&5
14368 rm -f conftest.$ac_objext conftest.$ac_ext
14370 echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
14371 echo "${ECHO_T}$ac_cv_type_int8" >&6
14372 if test $ac_cv_type_int8 = yes; then
14374 cat >>confdefs.h <<_ACEOF
14375 #define HAVE_INT8 1
14380 echo "$as_me:$LINENO: checking for uint8" >&5
14381 echo $ECHO_N "checking for uint8... $ECHO_C" >&6
14382 if test "${ac_cv_type_uint8+set}" = set; then
14383 echo $ECHO_N "(cached) $ECHO_C" >&6
14385 cat >conftest.$ac_ext <<_ACEOF
14386 #line $LINENO "configure"
14387 #include "confdefs.h"
14389 #ifdef HAVE_SUPPORTDEFS_H
14390 #include <SupportDefs.h>
14393 #ifdef F77_DUMMY_MAIN
14394 # ifdef __cplusplus
14397 int F77_DUMMY_MAIN() { return 1; }
14404 if (sizeof (uint8))
14410 rm -f conftest.$ac_objext
14411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14412 (eval $ac_compile) 2>&5
14414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415 (exit $ac_status); } &&
14416 { ac_try='test -s conftest.$ac_objext'
14417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14418 (eval $ac_try) 2>&5
14420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421 (exit $ac_status); }; }; then
14422 ac_cv_type_uint8=yes
14424 echo "$as_me: failed program was:" >&5
14425 cat conftest.$ac_ext >&5
14426 ac_cv_type_uint8=no
14428 rm -f conftest.$ac_objext conftest.$ac_ext
14430 echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
14431 echo "${ECHO_T}$ac_cv_type_uint8" >&6
14432 if test $ac_cv_type_uint8 = yes; then
14434 cat >>confdefs.h <<_ACEOF
14435 #define HAVE_UINT8 1
14440 echo "$as_me:$LINENO: checking for int64" >&5
14441 echo $ECHO_N "checking for int64... $ECHO_C" >&6
14442 if test "${ac_cv_type_int64+set}" = set; then
14443 echo $ECHO_N "(cached) $ECHO_C" >&6
14445 cat >conftest.$ac_ext <<_ACEOF
14446 #line $LINENO "configure"
14447 #include "confdefs.h"
14449 #ifdef HAVE_SUPPORTDEFS_H
14450 #include <SupportDefs.h>
14453 #ifdef F77_DUMMY_MAIN
14454 # ifdef __cplusplus
14457 int F77_DUMMY_MAIN() { return 1; }
14464 if (sizeof (int64))
14470 rm -f conftest.$ac_objext
14471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14472 (eval $ac_compile) 2>&5
14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); } &&
14476 { ac_try='test -s conftest.$ac_objext'
14477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14478 (eval $ac_try) 2>&5
14480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481 (exit $ac_status); }; }; then
14482 ac_cv_type_int64=yes
14484 echo "$as_me: failed program was:" >&5
14485 cat conftest.$ac_ext >&5
14486 ac_cv_type_int64=no
14488 rm -f conftest.$ac_objext conftest.$ac_ext
14490 echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
14491 echo "${ECHO_T}$ac_cv_type_int64" >&6
14492 if test $ac_cv_type_int64 = yes; then
14494 cat >>confdefs.h <<_ACEOF
14495 #define HAVE_INT64 1
14500 echo "$as_me:$LINENO: checking for uint64" >&5
14501 echo $ECHO_N "checking for uint64... $ECHO_C" >&6
14502 if test "${ac_cv_type_uint64+set}" = set; then
14503 echo $ECHO_N "(cached) $ECHO_C" >&6
14505 cat >conftest.$ac_ext <<_ACEOF
14506 #line $LINENO "configure"
14507 #include "confdefs.h"
14509 #ifdef HAVE_SUPPORTDEFS_H
14510 #include <SupportDefs.h>
14513 #ifdef F77_DUMMY_MAIN
14514 # ifdef __cplusplus
14517 int F77_DUMMY_MAIN() { return 1; }
14524 if (sizeof (uint64))
14530 rm -f conftest.$ac_objext
14531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14532 (eval $ac_compile) 2>&5
14534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535 (exit $ac_status); } &&
14536 { ac_try='test -s conftest.$ac_objext'
14537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14538 (eval $ac_try) 2>&5
14540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541 (exit $ac_status); }; }; then
14542 ac_cv_type_uint64=yes
14544 echo "$as_me: failed program was:" >&5
14545 cat conftest.$ac_ext >&5
14546 ac_cv_type_uint64=no
14548 rm -f conftest.$ac_objext conftest.$ac_ext
14550 echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
14551 echo "${ECHO_T}$ac_cv_type_uint64" >&6
14552 if test $ac_cv_type_uint64 = yes; then
14554 cat >>confdefs.h <<_ACEOF
14555 #define HAVE_UINT64 1
14562 # We also check for sig_atomic_t, which *should* be defined per ANSI
14563 # C, but is missing on some old platforms.
14564 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
14565 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
14566 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
14567 echo $ECHO_N "(cached) $ECHO_C" >&6
14569 cat >conftest.$ac_ext <<_ACEOF
14570 #line $LINENO "configure"
14571 #include "confdefs.h"
14572 #include <signal.h>
14574 #ifdef F77_DUMMY_MAIN
14575 # ifdef __cplusplus
14578 int F77_DUMMY_MAIN() { return 1; }
14583 if ((sig_atomic_t *) 0)
14585 if (sizeof (sig_atomic_t))
14591 rm -f conftest.$ac_objext
14592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14593 (eval $ac_compile) 2>&5
14595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596 (exit $ac_status); } &&
14597 { ac_try='test -s conftest.$ac_objext'
14598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14599 (eval $ac_try) 2>&5
14601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602 (exit $ac_status); }; }; then
14603 ac_cv_type_sig_atomic_t=yes
14605 echo "$as_me: failed program was:" >&5
14606 cat conftest.$ac_ext >&5
14607 ac_cv_type_sig_atomic_t=no
14609 rm -f conftest.$ac_objext conftest.$ac_ext
14611 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
14612 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
14613 if test $ac_cv_type_sig_atomic_t = yes; then
14615 cat >>confdefs.h <<_ACEOF
14616 #define HAVE_SIG_ATOMIC_T 1
14624 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
14625 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
14626 if test "${pgac_cv_func_posix_signals+set}" = set; then
14627 echo $ECHO_N "(cached) $ECHO_C" >&6
14629 cat >conftest.$ac_ext <<_ACEOF
14630 #line $LINENO "configure"
14631 #include "confdefs.h"
14632 #include <signal.h>
14634 #ifdef F77_DUMMY_MAIN
14635 # ifdef __cplusplus
14638 int F77_DUMMY_MAIN() { return 1; }
14643 struct sigaction act, oact;
14644 sigemptyset(&act.sa_mask);
14645 act.sa_flags = SA_RESTART;
14646 sigaction(0, &act, &oact);
14651 rm -f conftest.$ac_objext conftest$ac_exeext
14652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14653 (eval $ac_link) 2>&5
14655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656 (exit $ac_status); } &&
14657 { ac_try='test -s conftest$ac_exeext'
14658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14659 (eval $ac_try) 2>&5
14661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662 (exit $ac_status); }; }; then
14663 pgac_cv_func_posix_signals=yes
14665 echo "$as_me: failed program was:" >&5
14666 cat conftest.$ac_ext >&5
14667 pgac_cv_func_posix_signals=no
14669 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14671 echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
14672 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6
14673 if test x"$pgac_cv_func_posix_signals" = xyes ; then
14675 cat >>confdefs.h <<\_ACEOF
14676 #define HAVE_POSIX_SIGNALS
14680 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
14682 if test $ac_cv_func_fseeko = yes; then
14683 # Check whether --enable-largefile or --disable-largefile was given.
14684 if test "${enable_largefile+set}" = set; then
14685 enableval="$enable_largefile"
14688 if test "$enable_largefile" != no; then
14690 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
14691 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
14692 if test "${ac_cv_sys_largefile_CC+set}" = set; then
14693 echo $ECHO_N "(cached) $ECHO_C" >&6
14695 ac_cv_sys_largefile_CC=no
14696 if test "$GCC" != yes; then
14699 # IRIX 6.2 and later do not support large files by default,
14700 # so use the C compiler's -n32 option if that helps.
14701 cat >conftest.$ac_ext <<_ACEOF
14702 #line $LINENO "configure"
14703 #include "confdefs.h"
14704 #include <sys/types.h>
14705 /* Check that off_t can represent 2**63 - 1 correctly.
14706 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14707 since some C++ compilers masquerading as C compilers
14708 incorrectly reject 9223372036854775807. */
14709 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14710 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14711 && LARGE_OFF_T % 2147483647 == 1)
14713 #ifdef F77_DUMMY_MAIN
14714 # ifdef __cplusplus
14717 int F77_DUMMY_MAIN() { return 1; }
14727 rm -f conftest.$ac_objext
14728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14729 (eval $ac_compile) 2>&5
14731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732 (exit $ac_status); } &&
14733 { ac_try='test -s conftest.$ac_objext'
14734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14735 (eval $ac_try) 2>&5
14737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738 (exit $ac_status); }; }; then
14741 echo "$as_me: failed program was:" >&5
14742 cat conftest.$ac_ext >&5
14744 rm -f conftest.$ac_objext
14746 rm -f conftest.$ac_objext
14747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14748 (eval $ac_compile) 2>&5
14750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751 (exit $ac_status); } &&
14752 { ac_try='test -s conftest.$ac_objext'
14753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14754 (eval $ac_try) 2>&5
14756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757 (exit $ac_status); }; }; then
14758 ac_cv_sys_largefile_CC=' -n32'; break
14760 echo "$as_me: failed program was:" >&5
14761 cat conftest.$ac_ext >&5
14763 rm -f conftest.$ac_objext
14767 rm -f conftest.$ac_ext
14770 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
14771 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
14772 if test "$ac_cv_sys_largefile_CC" != no; then
14773 CC=$CC$ac_cv_sys_largefile_CC
14776 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14777 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
14778 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
14779 echo $ECHO_N "(cached) $ECHO_C" >&6
14782 ac_cv_sys_file_offset_bits=no
14783 cat >conftest.$ac_ext <<_ACEOF
14784 #line $LINENO "configure"
14785 #include "confdefs.h"
14786 #include <sys/types.h>
14787 /* Check that off_t can represent 2**63 - 1 correctly.
14788 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14789 since some C++ compilers masquerading as C compilers
14790 incorrectly reject 9223372036854775807. */
14791 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14792 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14793 && LARGE_OFF_T % 2147483647 == 1)
14795 #ifdef F77_DUMMY_MAIN
14796 # ifdef __cplusplus
14799 int F77_DUMMY_MAIN() { return 1; }
14809 rm -f conftest.$ac_objext
14810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14811 (eval $ac_compile) 2>&5
14813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814 (exit $ac_status); } &&
14815 { ac_try='test -s conftest.$ac_objext'
14816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14817 (eval $ac_try) 2>&5
14819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820 (exit $ac_status); }; }; then
14823 echo "$as_me: failed program was:" >&5
14824 cat conftest.$ac_ext >&5
14826 rm -f conftest.$ac_objext conftest.$ac_ext
14827 cat >conftest.$ac_ext <<_ACEOF
14828 #line $LINENO "configure"
14829 #include "confdefs.h"
14830 #define _FILE_OFFSET_BITS 64
14831 #include <sys/types.h>
14832 /* Check that off_t can represent 2**63 - 1 correctly.
14833 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14834 since some C++ compilers masquerading as C compilers
14835 incorrectly reject 9223372036854775807. */
14836 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14837 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14838 && LARGE_OFF_T % 2147483647 == 1)
14840 #ifdef F77_DUMMY_MAIN
14841 # ifdef __cplusplus
14844 int F77_DUMMY_MAIN() { return 1; }
14854 rm -f conftest.$ac_objext
14855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14856 (eval $ac_compile) 2>&5
14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859 (exit $ac_status); } &&
14860 { ac_try='test -s conftest.$ac_objext'
14861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14862 (eval $ac_try) 2>&5
14864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865 (exit $ac_status); }; }; then
14866 ac_cv_sys_file_offset_bits=64; break
14868 echo "$as_me: failed program was:" >&5
14869 cat conftest.$ac_ext >&5
14871 rm -f conftest.$ac_objext conftest.$ac_ext
14875 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
14876 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
14877 if test "$ac_cv_sys_file_offset_bits" != no; then
14879 cat >>confdefs.h <<_ACEOF
14880 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14885 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
14886 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
14887 if test "${ac_cv_sys_large_files+set}" = set; then
14888 echo $ECHO_N "(cached) $ECHO_C" >&6
14891 ac_cv_sys_large_files=no
14892 cat >conftest.$ac_ext <<_ACEOF
14893 #line $LINENO "configure"
14894 #include "confdefs.h"
14895 #include <sys/types.h>
14896 /* Check that off_t can represent 2**63 - 1 correctly.
14897 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14898 since some C++ compilers masquerading as C compilers
14899 incorrectly reject 9223372036854775807. */
14900 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14901 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14902 && LARGE_OFF_T % 2147483647 == 1)
14904 #ifdef F77_DUMMY_MAIN
14905 # ifdef __cplusplus
14908 int F77_DUMMY_MAIN() { return 1; }
14918 rm -f conftest.$ac_objext
14919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14920 (eval $ac_compile) 2>&5
14922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923 (exit $ac_status); } &&
14924 { ac_try='test -s conftest.$ac_objext'
14925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14926 (eval $ac_try) 2>&5
14928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929 (exit $ac_status); }; }; then
14932 echo "$as_me: failed program was:" >&5
14933 cat conftest.$ac_ext >&5
14935 rm -f conftest.$ac_objext conftest.$ac_ext
14936 cat >conftest.$ac_ext <<_ACEOF
14937 #line $LINENO "configure"
14938 #include "confdefs.h"
14939 #define _LARGE_FILES 1
14940 #include <sys/types.h>
14941 /* Check that off_t can represent 2**63 - 1 correctly.
14942 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14943 since some C++ compilers masquerading as C compilers
14944 incorrectly reject 9223372036854775807. */
14945 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14946 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14947 && LARGE_OFF_T % 2147483647 == 1)
14949 #ifdef F77_DUMMY_MAIN
14950 # ifdef __cplusplus
14953 int F77_DUMMY_MAIN() { return 1; }
14963 rm -f conftest.$ac_objext
14964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14965 (eval $ac_compile) 2>&5
14967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968 (exit $ac_status); } &&
14969 { ac_try='test -s conftest.$ac_objext'
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 ac_cv_sys_large_files=1; break
14977 echo "$as_me: failed program was:" >&5
14978 cat conftest.$ac_ext >&5
14980 rm -f conftest.$ac_objext conftest.$ac_ext
14984 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
14985 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
14986 if test "$ac_cv_sys_large_files" != no; then
14988 cat >>confdefs.h <<_ACEOF
14989 #define _LARGE_FILES $ac_cv_sys_large_files
14999 # Select semaphore implementation type.
15000 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
15002 cat >>confdefs.h <<\_ACEOF
15003 #define USE_NAMED_POSIX_SEMAPHORES 1
15006 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
15008 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
15010 cat >>confdefs.h <<\_ACEOF
15011 #define USE_UNNAMED_POSIX_SEMAPHORES 1
15014 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
15017 cat >>confdefs.h <<\_ACEOF
15018 #define USE_SYSV_SEMAPHORES 1
15021 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
15026 # Select shared-memory implementation type.
15028 cat >>confdefs.h <<\_ACEOF
15029 #define USE_SYSV_SHARED_MEMORY 1
15032 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
15035 if test "$enable_nls" = yes ; then
15037 echo "$as_me:$LINENO: checking for library containing gettext" >&5
15038 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
15039 if test "${ac_cv_search_gettext+set}" = set; then
15040 echo $ECHO_N "(cached) $ECHO_C" >&6
15042 ac_func_search_save_LIBS=$LIBS
15043 ac_cv_search_gettext=no
15044 cat >conftest.$ac_ext <<_ACEOF
15045 #line $LINENO "configure"
15046 #include "confdefs.h"
15048 /* Override any gcc2 internal prototype to avoid an error. */
15052 /* We use char because int might match the return type of a gcc2
15053 builtin and then its argument prototype would still apply. */
15055 #ifdef F77_DUMMY_MAIN
15056 # ifdef __cplusplus
15059 int F77_DUMMY_MAIN() { return 1; }
15069 rm -f conftest.$ac_objext conftest$ac_exeext
15070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15071 (eval $ac_link) 2>&5
15073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074 (exit $ac_status); } &&
15075 { ac_try='test -s conftest$ac_exeext'
15076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15077 (eval $ac_try) 2>&5
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); }; }; then
15081 ac_cv_search_gettext="none required"
15083 echo "$as_me: failed program was:" >&5
15084 cat conftest.$ac_ext >&5
15086 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15087 if test "$ac_cv_search_gettext" = no; then
15088 for ac_lib in intl; do
15089 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15090 cat >conftest.$ac_ext <<_ACEOF
15091 #line $LINENO "configure"
15092 #include "confdefs.h"
15094 /* Override any gcc2 internal prototype to avoid an error. */
15098 /* We use char because int might match the return type of a gcc2
15099 builtin and then its argument prototype would still apply. */
15101 #ifdef F77_DUMMY_MAIN
15102 # ifdef __cplusplus
15105 int F77_DUMMY_MAIN() { return 1; }
15115 rm -f conftest.$ac_objext conftest$ac_exeext
15116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15117 (eval $ac_link) 2>&5
15119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120 (exit $ac_status); } &&
15121 { ac_try='test -s conftest$ac_exeext'
15122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15123 (eval $ac_try) 2>&5
15125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126 (exit $ac_status); }; }; then
15127 ac_cv_search_gettext="-l$ac_lib"
15130 echo "$as_me: failed program was:" >&5
15131 cat conftest.$ac_ext >&5
15133 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15136 LIBS=$ac_func_search_save_LIBS
15138 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
15139 echo "${ECHO_T}$ac_cv_search_gettext" >&6
15140 if test "$ac_cv_search_gettext" != no; then
15141 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
15144 { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
15145 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
15146 { (exit 1); exit 1; }; }
15149 if test "${ac_cv_header_libintl_h+set}" = set; then
15150 echo "$as_me:$LINENO: checking for libintl.h" >&5
15151 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15152 if test "${ac_cv_header_libintl_h+set}" = set; then
15153 echo $ECHO_N "(cached) $ECHO_C" >&6
15155 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15156 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15158 # Is the header compilable?
15159 echo "$as_me:$LINENO: checking libintl.h usability" >&5
15160 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
15161 cat >conftest.$ac_ext <<_ACEOF
15162 #line $LINENO "configure"
15163 #include "confdefs.h"
15164 $ac_includes_default
15165 #include <libintl.h>
15167 rm -f conftest.$ac_objext
15168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15169 (eval $ac_compile) 2>&5
15171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172 (exit $ac_status); } &&
15173 { ac_try='test -s conftest.$ac_objext'
15174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15175 (eval $ac_try) 2>&5
15177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178 (exit $ac_status); }; }; then
15179 ac_header_compiler=yes
15181 echo "$as_me: failed program was:" >&5
15182 cat conftest.$ac_ext >&5
15183 ac_header_compiler=no
15185 rm -f conftest.$ac_objext conftest.$ac_ext
15186 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15187 echo "${ECHO_T}$ac_header_compiler" >&6
15189 # Is the header present?
15190 echo "$as_me:$LINENO: checking libintl.h presence" >&5
15191 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
15192 cat >conftest.$ac_ext <<_ACEOF
15193 #line $LINENO "configure"
15194 #include "confdefs.h"
15195 #include <libintl.h>
15197 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15198 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15200 egrep -v '^ *\+' conftest.er1 >conftest.err
15202 cat conftest.err >&5
15203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15204 (exit $ac_status); } >/dev/null; then
15205 if test -s conftest.err; then
15206 ac_cpp_err=$ac_c_preproc_warn_flag
15213 if test -z "$ac_cpp_err"; then
15214 ac_header_preproc=yes
15216 echo "$as_me: failed program was:" >&5
15217 cat conftest.$ac_ext >&5
15218 ac_header_preproc=no
15220 rm -f conftest.err conftest.$ac_ext
15221 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15222 echo "${ECHO_T}$ac_header_preproc" >&6
15224 # So? What about this header?
15225 case $ac_header_compiler:$ac_header_preproc in
15227 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
15228 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15229 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15230 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15232 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
15233 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
15234 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
15235 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
15236 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15237 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
15239 echo "$as_me:$LINENO: checking for libintl.h" >&5
15240 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15241 if test "${ac_cv_header_libintl_h+set}" = set; then
15242 echo $ECHO_N "(cached) $ECHO_C" >&6
15244 ac_cv_header_libintl_h=$ac_header_preproc
15246 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15247 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15250 if test $ac_cv_header_libintl_h = yes; then
15253 { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
15254 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
15255 { (exit 1); exit 1; }; }
15259 for ac_prog in msgfmt
15261 # Extract the first word of "$ac_prog", so it can be a program name with args.
15262 set dummy $ac_prog; ac_word=$2
15263 echo "$as_me:$LINENO: checking for $ac_word" >&5
15264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15265 if test "${ac_cv_prog_MSGFMT+set}" = set; then
15266 echo $ECHO_N "(cached) $ECHO_C" >&6
15268 if test -n "$MSGFMT"; then
15269 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
15271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15272 for as_dir in $PATH
15275 test -z "$as_dir" && as_dir=.
15276 for ac_exec_ext in '' $ac_executable_extensions; do
15277 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15278 ac_cv_prog_MSGFMT="$ac_prog"
15279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15287 MSGFMT=$ac_cv_prog_MSGFMT
15288 if test -n "$MSGFMT"; then
15289 echo "$as_me:$LINENO: result: $MSGFMT" >&5
15290 echo "${ECHO_T}$MSGFMT" >&6
15292 echo "$as_me:$LINENO: result: no" >&5
15293 echo "${ECHO_T}no" >&6
15296 test -n "$MSGFMT" && break
15299 if test -z "$MSGFMT"; then
15300 { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
15301 echo "$as_me: error: msgfmt is required for NLS" >&2;}
15302 { (exit 1); exit 1; }; }
15304 for ac_prog in msgmerge
15306 # Extract the first word of "$ac_prog", so it can be a program name with args.
15307 set dummy $ac_prog; ac_word=$2
15308 echo "$as_me:$LINENO: checking for $ac_word" >&5
15309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15310 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
15311 echo $ECHO_N "(cached) $ECHO_C" >&6
15313 if test -n "$MSGMERGE"; then
15314 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
15316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15317 for as_dir in $PATH
15320 test -z "$as_dir" && as_dir=.
15321 for ac_exec_ext in '' $ac_executable_extensions; do
15322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15323 ac_cv_prog_MSGMERGE="$ac_prog"
15324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15332 MSGMERGE=$ac_cv_prog_MSGMERGE
15333 if test -n "$MSGMERGE"; then
15334 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
15335 echo "${ECHO_T}$MSGMERGE" >&6
15337 echo "$as_me:$LINENO: result: no" >&5
15338 echo "${ECHO_T}no" >&6
15341 test -n "$MSGMERGE" && break
15344 for ac_prog in xgettext
15346 # Extract the first word of "$ac_prog", so it can be a program name with args.
15347 set dummy $ac_prog; ac_word=$2
15348 echo "$as_me:$LINENO: checking for $ac_word" >&5
15349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15350 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
15351 echo $ECHO_N "(cached) $ECHO_C" >&6
15353 if test -n "$XGETTEXT"; then
15354 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
15356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15357 for as_dir in $PATH
15360 test -z "$as_dir" && as_dir=.
15361 for ac_exec_ext in '' $ac_executable_extensions; do
15362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15363 ac_cv_prog_XGETTEXT="$ac_prog"
15364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15372 XGETTEXT=$ac_cv_prog_XGETTEXT
15373 if test -n "$XGETTEXT"; then
15374 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15375 echo "${ECHO_T}$XGETTEXT" >&6
15377 echo "$as_me:$LINENO: result: no" >&5
15378 echo "${ECHO_T}no" >&6
15381 test -n "$XGETTEXT" && break
15385 # Note: share/locale is always the default, independent of $datadir
15386 localedir='${prefix}/share/locale'
15387 if test x"$prefix" = x"NONE"; then
15388 exp_localedir="$ac_default_prefix/share/locale"
15390 exp_localedir="$prefix/share/locale"
15395 cat >>confdefs.h <<_ACEOF
15396 #define LOCALEDIR "$exp_localedir"
15402 # Check for Tcl configuration script tclConfig.sh
15403 if test "$with_tcl" = yes; then
15404 for ac_prog in tclsh tcl
15406 # Extract the first word of "$ac_prog", so it can be a program name with args.
15407 set dummy $ac_prog; ac_word=$2
15408 echo "$as_me:$LINENO: checking for $ac_word" >&5
15409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15410 if test "${ac_cv_path_TCLSH+set}" = set; then
15411 echo $ECHO_N "(cached) $ECHO_C" >&6
15415 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
15418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15419 for as_dir in $PATH
15422 test -z "$as_dir" && as_dir=.
15423 for ac_exec_ext in '' $ac_executable_extensions; do
15424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15425 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
15426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15435 TCLSH=$ac_cv_path_TCLSH
15437 if test -n "$TCLSH"; then
15438 echo "$as_me:$LINENO: result: $TCLSH" >&5
15439 echo "${ECHO_T}$TCLSH" >&6
15441 echo "$as_me:$LINENO: result: no" >&5
15442 echo "${ECHO_T}no" >&6
15445 test -n "$TCLSH" && break
15448 echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
15449 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6
15450 # Let user override test
15451 if test -z "$TCL_CONFIG_SH"; then
15452 pgac_test_dirs="$with_tclconfig"
15454 set X $pgac_test_dirs; shift
15455 if test $# -eq 0; then
15456 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
15457 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
15458 { (exit 1); exit 1; }; }
15459 set X `echo 'puts $auto_path' | $TCLSH`; shift
15463 if test -r "$pgac_dir/tclConfig.sh"; then
15464 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
15470 if test -z "$TCL_CONFIG_SH"; then
15471 echo "$as_me:$LINENO: result: no" >&5
15472 echo "${ECHO_T}no" >&6
15473 { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
15474 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
15475 { (exit 1); exit 1; }; }
15477 echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
15478 echo "${ECHO_T}$TCL_CONFIG_SH" >&6
15484 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
15485 eval TCL_LIBS=\"$TCL_LIBS\"
15486 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
15487 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
15491 # Check for Tk configuration script tkConfig.sh
15492 if test "$with_tk" = yes; then
15493 echo "$as_me:$LINENO: checking for tkConfig.sh" >&5
15494 echo $ECHO_N "checking for tkConfig.sh... $ECHO_C" >&6
15495 # Let user override test
15496 if test -z "$TK_CONFIG_SH"; then
15497 pgac_test_dirs="$with_tkconfig $with_tclconfig"
15499 set X $pgac_test_dirs; shift
15500 if test $# -eq 0; then
15501 test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tkConfig.sh because no Tcl shell was found" >&5
15502 echo "$as_me: error: unable to locate tkConfig.sh because no Tcl shell was found" >&2;}
15503 { (exit 1); exit 1; }; }
15504 set X `echo 'puts $auto_path' | $TCLSH`; shift
15508 if test -r "$pgac_dir/tkConfig.sh"; then
15509 TK_CONFIG_SH=$pgac_dir/tkConfig.sh
15515 if test -z "$TK_CONFIG_SH"; then
15516 echo "$as_me:$LINENO: result: no" >&5
15517 echo "${ECHO_T}no" >&6
15518 { { echo "$as_me:$LINENO: error: file 'tkConfig.sh' is required for Tk" >&5
15519 echo "$as_me: error: file 'tkConfig.sh' is required for Tk" >&2;}
15520 { (exit 1); exit 1; }; }
15522 echo "$as_me:$LINENO: result: $TK_CONFIG_SH" >&5
15523 echo "${ECHO_T}$TK_CONFIG_SH" >&6
15529 eval TK_LIBS=\"$TK_LIBS\"
15530 eval TK_LIB_SPEC=\"$TK_LIB_SPEC\"
15531 eval TK_XINCLUDES=\"$TK_XINCLUDES\"
15537 # Check for DocBook and tools
15539 for ac_prog in onsgmls nsgmls
15541 # Extract the first word of "$ac_prog", so it can be a program name with args.
15542 set dummy $ac_prog; ac_word=$2
15543 echo "$as_me:$LINENO: checking for $ac_word" >&5
15544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15545 if test "${ac_cv_prog_NSGMLS+set}" = set; then
15546 echo $ECHO_N "(cached) $ECHO_C" >&6
15548 if test -n "$NSGMLS"; then
15549 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
15551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15552 for as_dir in $PATH
15555 test -z "$as_dir" && as_dir=.
15556 for ac_exec_ext in '' $ac_executable_extensions; do
15557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15558 ac_cv_prog_NSGMLS="$ac_prog"
15559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15567 NSGMLS=$ac_cv_prog_NSGMLS
15568 if test -n "$NSGMLS"; then
15569 echo "$as_me:$LINENO: result: $NSGMLS" >&5
15570 echo "${ECHO_T}$NSGMLS" >&6
15572 echo "$as_me:$LINENO: result: no" >&5
15573 echo "${ECHO_T}no" >&6
15576 test -n "$NSGMLS" && break
15579 for ac_prog in openjade jade
15581 # Extract the first word of "$ac_prog", so it can be a program name with args.
15582 set dummy $ac_prog; ac_word=$2
15583 echo "$as_me:$LINENO: checking for $ac_word" >&5
15584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15585 if test "${ac_cv_prog_JADE+set}" = set; then
15586 echo $ECHO_N "(cached) $ECHO_C" >&6
15588 if test -n "$JADE"; then
15589 ac_cv_prog_JADE="$JADE" # Let the user override the test.
15591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15592 for as_dir in $PATH
15595 test -z "$as_dir" && as_dir=.
15596 for ac_exec_ext in '' $ac_executable_extensions; do
15597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15598 ac_cv_prog_JADE="$ac_prog"
15599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15607 JADE=$ac_cv_prog_JADE
15608 if test -n "$JADE"; then
15609 echo "$as_me:$LINENO: result: $JADE" >&5
15610 echo "${ECHO_T}$JADE" >&6
15612 echo "$as_me:$LINENO: result: no" >&5
15613 echo "${ECHO_T}no" >&6
15616 test -n "$JADE" && break
15620 echo "$as_me:$LINENO: checking for DocBook V3.1" >&5
15621 echo $ECHO_N "checking for DocBook V3.1... $ECHO_C" >&6
15622 if test "${pgac_cv_check_docbook+set}" = set; then
15623 echo $ECHO_N "(cached) $ECHO_C" >&6
15625 cat >conftest.sgml <<EOF
15626 <!doctype book PUBLIC "-//OASIS//DTD DocBook V3.1//EN">
15628 <title>test</title>
15630 <title>random</title>
15632 <title>testsect</title>
15639 ${NSGMLS-false} -s conftest.sgml 1>&5 2>&1
15640 if test $? -eq 0; then
15641 pgac_cv_check_docbook=yes
15643 pgac_cv_check_docbook=no
15645 rm -f conftest.sgml
15647 echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
15648 echo "${ECHO_T}$pgac_cv_check_docbook" >&6
15650 have_docbook=$pgac_cv_check_docbook
15653 echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
15654 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6
15655 if test "${pgac_cv_path_stylesheets+set}" = set; then
15656 echo $ECHO_N "(cached) $ECHO_C" >&6
15658 if test -n "$DOCBOOKSTYLE"; then
15659 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
15661 for pgac_prefix in /usr /usr/local /opt; do
15662 for pgac_infix in share lib; do
15663 for pgac_postfix in \
15664 sgml/stylesheets/nwalsh-modular \
15665 sgml/stylesheets/docbook \
15666 sgml/docbook/dsssl/modular \
15667 sgml/docbook/stylesheet/dsssl/modular \
15668 sgml/docbook/dsssl-stylesheets
15670 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
15671 if test -r "$pgac_candidate/html/docbook.dsl" \
15672 && test -r "$pgac_candidate/print/docbook.dsl"
15674 pgac_cv_path_stylesheets=$pgac_candidate
15683 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
15685 if test -n "$DOCBOOKSTYLE"; then
15686 echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
15687 echo "${ECHO_T}$DOCBOOKSTYLE" >&6
15689 echo "$as_me:$LINENO: result: no" >&5
15690 echo "${ECHO_T}no" >&6
15692 if test -n "$DOCBOOKSTYLE"; then
15693 for ac_prog in collateindex.pl
15695 # Extract the first word of "$ac_prog", so it can be a program name with args.
15696 set dummy $ac_prog; ac_word=$2
15697 echo "$as_me:$LINENO: checking for $ac_word" >&5
15698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15699 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
15700 echo $ECHO_N "(cached) $ECHO_C" >&6
15702 case $COLLATEINDEX in
15704 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
15707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15708 for as_dir in $DOCBOOKSTYLE/bin $PATH
15711 test -z "$as_dir" && as_dir=.
15712 for ac_exec_ext in '' $ac_executable_extensions; do
15713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15714 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
15715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15724 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
15726 if test -n "$COLLATEINDEX"; then
15727 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
15728 echo "${ECHO_T}$COLLATEINDEX" >&6
15730 echo "$as_me:$LINENO: result: no" >&5
15731 echo "${ECHO_T}no" >&6
15734 test -n "$COLLATEINDEX" && break
15738 for ac_prog in collateindex.pl
15740 # Extract the first word of "$ac_prog", so it can be a program name with args.
15741 set dummy $ac_prog; ac_word=$2
15742 echo "$as_me:$LINENO: checking for $ac_word" >&5
15743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15744 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
15745 echo $ECHO_N "(cached) $ECHO_C" >&6
15747 case $COLLATEINDEX in
15749 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
15752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15753 for as_dir in $PATH
15756 test -z "$as_dir" && as_dir=.
15757 for ac_exec_ext in '' $ac_executable_extensions; do
15758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15759 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
15760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15769 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
15771 if test -n "$COLLATEINDEX"; then
15772 echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
15773 echo "${ECHO_T}$COLLATEINDEX" >&6
15775 echo "$as_me:$LINENO: result: no" >&5
15776 echo "${ECHO_T}no" >&6
15779 test -n "$COLLATEINDEX" && break
15783 for ac_prog in sgmlspl
15785 # Extract the first word of "$ac_prog", so it can be a program name with args.
15786 set dummy $ac_prog; ac_word=$2
15787 echo "$as_me:$LINENO: checking for $ac_word" >&5
15788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15789 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
15790 echo $ECHO_N "(cached) $ECHO_C" >&6
15792 if test -n "$SGMLSPL"; then
15793 ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
15795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15796 for as_dir in $PATH
15799 test -z "$as_dir" && as_dir=.
15800 for ac_exec_ext in '' $ac_executable_extensions; do
15801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15802 ac_cv_prog_SGMLSPL="$ac_prog"
15803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15811 SGMLSPL=$ac_cv_prog_SGMLSPL
15812 if test -n "$SGMLSPL"; then
15813 echo "$as_me:$LINENO: result: $SGMLSPL" >&5
15814 echo "${ECHO_T}$SGMLSPL" >&6
15816 echo "$as_me:$LINENO: result: no" >&5
15817 echo "${ECHO_T}no" >&6
15820 test -n "$SGMLSPL" && break
15825 # prepare build tree if outside source tree
15826 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
15827 # Note 2: /bin/pwd might be better than shell's built-in at getting
15828 # a symlink-free name.
15829 if test "$no_create" != yes; then
15830 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
15835 echo $ECHO_N "preparing build tree... $ECHO_C" >&6
15836 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
15837 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
15838 || { { echo "$as_me:$LINENO: error: failed" >&5
15839 echo "$as_me: error: failed" >&2;}
15840 { (exit 1); exit 1; }; }
15841 echo "$as_me:$LINENO: result: done" >&5
15842 echo "${ECHO_T}done" >&6
15847 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
15850 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}"
15853 ac_config_headers="$ac_config_headers src/include/pg_config.h"
15856 cat >confcache <<\_ACEOF
15857 # This file is a shell script that caches the results of configure
15858 # tests run on this system so they can be shared between configure
15859 # scripts and configure runs, see configure's option --config-cache.
15860 # It is not useful on other systems. If it contains results you don't
15861 # want to keep, you may remove or edit it.
15863 # config.status only pays attention to the cache file if you give it
15864 # the --recheck option to rerun configure.
15866 # `ac_cv_env_foo' variables (set or unset) will be overriden when
15867 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15868 # following values.
15872 # The following way of writing the cache mishandles newlines in values,
15873 # but we know of no workaround that is simple, portable, and efficient.
15874 # So, don't put newlines in cache variables' values.
15875 # Ultrix sh set writes to stderr and can't be redirected directly,
15876 # and sets the high bit in the cache file unless we assign to the vars.
15879 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15881 # `set' does not quote correctly, so add quotes (double-quote
15882 # substitution turns \\\\ into \\, and sed turns \\ into \).
15885 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15888 # `set' quotes correctly as required by POSIX, so do not add quotes.
15890 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15897 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15899 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15901 if cmp -s $cache_file confcache; then :; else
15902 if test -w $cache_file; then
15903 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15904 cat confcache >$cache_file
15906 echo "not updating unwritable cache $cache_file"
15911 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15912 # Let make expand exec_prefix.
15913 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15915 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15916 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15917 # trailing colons and then remove the whole line if VPATH becomes empty
15918 # (actually we leave an empty line to preserve line numbers).
15919 if test "x$srcdir" = x.; then
15920 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15921 s/:*\$(srcdir):*/:/;
15922 s/:*\${srcdir}:*/:/;
15924 s/^\([^=]*=[ ]*\):*/\1/;
15930 DEFS=-DHAVE_CONFIG_H
15933 : ${CONFIG_STATUS=./config.status}
15934 ac_clean_files_save=$ac_clean_files
15935 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15936 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15937 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15938 cat >$CONFIG_STATUS <<_ACEOF
15940 # Generated by $as_me.
15941 # Run this file to recreate the current configuration.
15942 # Compiler output produced by configure, useful for debugging
15943 # configure, is in config.log if it exists.
15946 SHELL=\${CONFIG_SHELL-$SHELL}
15949 cat >>$CONFIG_STATUS <<\_ACEOF
15951 ## --------------------- ##
15952 ## M4sh Initialization. ##
15953 ## --------------------- ##
15955 # Be Bourne compatible
15956 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15959 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15964 # Support unset when possible.
15965 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
15971 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
15972 { $as_unset LANG || test "${LANG+set}" != set; } ||
15973 { LANG=C; export LANG; }
15974 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
15975 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
15976 { LC_ALL=C; export LC_ALL; }
15977 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
15978 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
15979 { LC_TIME=C; export LC_TIME; }
15980 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
15981 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
15982 { LC_CTYPE=C; export LC_CTYPE; }
15983 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
15984 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
15985 { LANGUAGE=C; export LANGUAGE; }
15986 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
15987 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
15988 { LC_COLLATE=C; export LC_COLLATE; }
15989 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
15990 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
15991 { LC_NUMERIC=C; export LC_NUMERIC; }
15992 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
15993 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
15994 { LC_MESSAGES=C; export LC_MESSAGES; }
15997 # Name of the executable.
15998 as_me=`(basename "$0") 2>/dev/null ||
15999 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16000 X"$0" : 'X\(//\)$' \| \
16001 X"$0" : 'X\(/\)$' \| \
16002 . : '\(.\)' 2>/dev/null ||
16004 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16005 /^X\/\(\/\/\)$/{ s//\1/; q; }
16006 /^X\/\(\/\).*/{ s//\1/; q; }
16009 # PATH needs CR, and LINENO needs CR and PATH.
16010 # Avoid depending upon Character Ranges.
16011 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16012 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16013 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16014 as_cr_digits='0123456789'
16015 as_cr_alnum=$as_cr_Letters$as_cr_digits
16017 # The user is always right.
16018 if test "${PATH_SEPARATOR+set}" != set; then
16019 echo "#! /bin/sh" >conftest.sh
16020 echo "exit 0" >>conftest.sh
16021 chmod +x conftest.sh
16022 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
16031 as_lineno_1=$LINENO
16032 as_lineno_2=$LINENO
16033 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16034 test "x$as_lineno_1" != "x$as_lineno_2" &&
16035 test "x$as_lineno_3" = "x$as_lineno_2" || {
16036 # Find who we are. Look in the path if we contain no path at all
16039 *[\\/]* ) as_myself=$0 ;;
16040 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16041 for as_dir in $PATH
16044 test -z "$as_dir" && as_dir=.
16045 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16050 # We did not find ourselves, most probably we were run as `sh COMMAND'
16051 # in which case we are not to be found in the path.
16052 if test "x$as_myself" = x; then
16055 if test ! -f "$as_myself"; then
16056 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16057 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16058 { (exit 1); exit 1; }; }
16060 case $CONFIG_SHELL in
16062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16063 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16066 test -z "$as_dir" && as_dir=.
16067 for as_base in sh bash ksh sh5; do
16070 if ("$as_dir/$as_base" -c '
16071 as_lineno_1=$LINENO
16072 as_lineno_2=$LINENO
16073 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16074 test "x$as_lineno_1" != "x$as_lineno_2" &&
16075 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16076 CONFIG_SHELL=$as_dir/$as_base
16077 export CONFIG_SHELL
16078 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16086 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16087 # uniformly replaced by the line number. The first 'sed' inserts a
16088 # line-number line before each line; the second 'sed' does the real
16089 # work. The second script uses 'N' to pair each line-number line
16090 # with the numbered line, and appends trailing '-' during
16091 # substitution so that $LINENO is not a special case at line end.
16092 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16093 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16094 sed '=' <$as_myself |
16099 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16102 s,^['$as_cr_digits']*\n,,
16103 ' >$as_me.lineno &&
16104 chmod +x $as_me.lineno ||
16105 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16106 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16107 { (exit 1); exit 1; }; }
16109 # Don't try to exec as it changes $[0], causing all sort of problems
16110 # (the dirname of $[0] is not the place where we might find the
16111 # original and so on. Autoconf is especially sensible to this).
16113 # Exit status is that of the last command.
16118 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16119 *c*,-n*) ECHO_N= ECHO_C='
16121 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16122 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16125 if expr a : '\(a\)' >/dev/null 2>&1; then
16131 rm -f conf$$ conf$$.exe conf$$.file
16133 if ln -s conf$$.file conf$$ 2>/dev/null; then
16134 # We could just check for DJGPP; but this test a) works b) is more generic
16135 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16136 if test -f conf$$.exe; then
16137 # Don't use ln at all; we don't have any links
16142 elif ln conf$$.file conf$$ 2>/dev/null; then
16147 rm -f conf$$ conf$$.exe conf$$.file
16149 as_executable_p="test -f"
16151 # Sed expression to map a string onto a valid CPP name.
16152 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16154 # Sed expression to map a string onto a valid variable name.
16155 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16159 # We need space, tab and new line, in precisely that order.
16165 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
16169 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16170 # report actual input values of CONFIG_FILES etc. instead of their
16171 # values after options handling. Logging --version etc. is OK.
16175 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16176 ## Running $as_me. ##
16181 This file was extended by PostgreSQL $as_me 7.3devel, which was
16182 generated by GNU Autoconf 2.53. Invocation command line was
16184 CONFIG_FILES = $CONFIG_FILES
16185 CONFIG_HEADERS = $CONFIG_HEADERS
16186 CONFIG_LINKS = $CONFIG_LINKS
16187 CONFIG_COMMANDS = $CONFIG_COMMANDS
16191 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16195 # Files that config.status was made for.
16196 if test -n "$ac_config_files"; then
16197 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16200 if test -n "$ac_config_headers"; then
16201 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16204 if test -n "$ac_config_links"; then
16205 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16208 if test -n "$ac_config_commands"; then
16209 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16212 cat >>$CONFIG_STATUS <<\_ACEOF
16215 \`$as_me' instantiates files from templates according to the
16216 current configuration.
16218 Usage: $0 [OPTIONS] [FILE]...
16220 -h, --help print this help, then exit
16221 -V, --version print version number, then exit
16222 -d, --debug don't remove temporary files
16223 --recheck update $as_me by reconfiguring in the same conditions
16224 --file=FILE[:TEMPLATE]
16225 instantiate the configuration file FILE
16226 --header=FILE[:TEMPLATE]
16227 instantiate the configuration header FILE
16229 Configuration files:
16232 Configuration headers:
16235 Configuration links:
16238 Report bugs to <bug-autoconf@gnu.org>."
16241 cat >>$CONFIG_STATUS <<_ACEOF
16243 PostgreSQL config.status 7.3devel
16244 configured by $0, generated by GNU Autoconf 2.53,
16245 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16247 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16248 Free Software Foundation, Inc.
16249 This config.status script is free software; the Free Software Foundation
16250 gives unlimited permission to copy, distribute and modify it."
16254 cat >>$CONFIG_STATUS <<\_ACEOF
16255 # If no file are specified by the user, then we need to provide default
16256 # value. By we need to know if files were specified by the user.
16262 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16263 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16265 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
16269 *) # This is not an option, so the user has probably given explicit
16271 ac_need_defaults=false;;
16275 # Handling of the options.
16277 cat >>$CONFIG_STATUS <<_ACEOF
16278 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16279 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
16280 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
16282 cat >>$CONFIG_STATUS <<\_ACEOF
16283 --version | --vers* | -V )
16284 echo "$ac_cs_version"; exit 0 ;;
16286 # Conflict between --help and --header
16287 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16288 Try \`$0 --help' for more information." >&5
16289 echo "$as_me: error: ambiguous option: $1
16290 Try \`$0 --help' for more information." >&2;}
16291 { (exit 1); exit 1; }; };;
16292 --help | --hel | -h )
16293 echo "$ac_cs_usage"; exit 0 ;;
16294 --debug | --d* | -d )
16296 --file | --fil | --fi | --f )
16298 CONFIG_FILES="$CONFIG_FILES $1"
16299 ac_need_defaults=false;;
16300 --header | --heade | --head | --hea )
16302 CONFIG_HEADERS="$CONFIG_HEADERS $1"
16303 ac_need_defaults=false;;
16305 # This is an error.
16306 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16307 Try \`$0 --help' for more information." >&5
16308 echo "$as_me: error: unrecognized option: $1
16309 Try \`$0 --help' for more information." >&2;}
16310 { (exit 1); exit 1; }; } ;;
16312 *) ac_config_targets="$ac_config_targets $1" ;;
16324 cat >>$CONFIG_STATUS <<\_ACEOF
16325 for ac_config_target in $ac_config_targets
16327 case "$ac_config_target" in
16328 # Handling of arguments.
16329 "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
16330 "src/Makefile.global" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
16331 "src/backend/port/tas.s" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
16332 "src/backend/port/dynloader.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
16333 "src/backend/port/pg_sema.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
16334 "src/backend/port/pg_shmem.c" ) CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
16335 "src/include/dynloader.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
16336 "src/include/pg_config_os.h" ) CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
16337 "src/Makefile.port" ) CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
16338 "src/include/pg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
16339 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16340 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16341 { (exit 1); exit 1; }; };;
16345 # If the user did not use the arguments to specify the items to instantiate,
16346 # then the envvar interface is used. Set only those that are not.
16347 # We use the long form for the default assignment because of an extremely
16348 # bizarre bug on SunOS 4.1.3.
16349 if $ac_need_defaults; then
16350 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16351 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16352 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16355 # Create a temporary directory, and hook for its removal unless debugging.
16358 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16359 trap '{ (exit 1); exit 1; }' 1 2 13 15
16362 # Create a (secure) tmp directory for tmp files.
16365 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
16366 test -n "$tmp" && test -d "$tmp"
16369 tmp=$TMPDIR/cs$$-$RANDOM
16370 (umask 077 && mkdir $tmp)
16373 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
16374 { (exit 1); exit 1; }
16379 cat >>$CONFIG_STATUS <<_ACEOF
16382 # CONFIG_FILES section.
16385 # No need to generate the scripts if there are no CONFIG_FILES.
16386 # This happens for instance when ./config.status config.h
16387 if test -n "\$CONFIG_FILES"; then
16388 # Protect against being on the right side of a sed subst in config.status.
16389 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16390 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16391 s,@SHELL@,$SHELL,;t t
16392 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16393 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16394 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16395 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16396 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16397 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16398 s,@exec_prefix@,$exec_prefix,;t t
16399 s,@prefix@,$prefix,;t t
16400 s,@program_transform_name@,$program_transform_name,;t t
16401 s,@bindir@,$bindir,;t t
16402 s,@sbindir@,$sbindir,;t t
16403 s,@libexecdir@,$libexecdir,;t t
16404 s,@datadir@,$datadir,;t t
16405 s,@sysconfdir@,$sysconfdir,;t t
16406 s,@sharedstatedir@,$sharedstatedir,;t t
16407 s,@localstatedir@,$localstatedir,;t t
16408 s,@libdir@,$libdir,;t t
16409 s,@includedir@,$includedir,;t t
16410 s,@oldincludedir@,$oldincludedir,;t t
16411 s,@infodir@,$infodir,;t t
16412 s,@mandir@,$mandir,;t t
16413 s,@build_alias@,$build_alias,;t t
16414 s,@host_alias@,$host_alias,;t t
16415 s,@target_alias@,$target_alias,;t t
16416 s,@DEFS@,$DEFS,;t t
16417 s,@ECHO_C@,$ECHO_C,;t t
16418 s,@ECHO_N@,$ECHO_N,;t t
16419 s,@ECHO_T@,$ECHO_T,;t t
16420 s,@LIBS@,$LIBS,;t t
16421 s,@docdir@,$docdir,;t t
16422 s,@configure_args@,$configure_args,;t t
16423 s,@build@,$build,;t t
16424 s,@build_cpu@,$build_cpu,;t t
16425 s,@build_vendor@,$build_vendor,;t t
16426 s,@build_os@,$build_os,;t t
16427 s,@host@,$host,;t t
16428 s,@host_cpu@,$host_cpu,;t t
16429 s,@host_vendor@,$host_vendor,;t t
16430 s,@host_os@,$host_os,;t t
16431 s,@PORTNAME@,$PORTNAME,;t t
16433 s,@MULTIBYTE@,$MULTIBYTE,;t t
16434 s,@enable_nls@,$enable_nls,;t t
16435 s,@WANTED_LANGUAGES@,$WANTED_LANGUAGES,;t t
16436 s,@default_port@,$default_port,;t t
16437 s,@enable_shared@,$enable_shared,;t t
16438 s,@enable_rpath@,$enable_rpath,;t t
16439 s,@enable_debug@,$enable_debug,;t t
16441 s,@CFLAGS@,$CFLAGS,;t t
16442 s,@LDFLAGS@,$LDFLAGS,;t t
16443 s,@CPPFLAGS@,$CPPFLAGS,;t t
16444 s,@ac_ct_CC@,$ac_ct_CC,;t t
16445 s,@EXEEXT@,$EXEEXT,;t t
16446 s,@OBJEXT@,$OBJEXT,;t t
16449 s,@autodepend@,$autodepend,;t t
16450 s,@INCLUDES@,$INCLUDES,;t t
16451 s,@with_tcl@,$with_tcl,;t t
16452 s,@with_tk@,$with_tk,;t t
16453 s,@with_perl@,$with_perl,;t t
16454 s,@with_python@,$with_python,;t t
16456 s,@with_java@,$with_java,;t t
16457 s,@with_krb4@,$with_krb4,;t t
16458 s,@with_krb5@,$with_krb5,;t t
16459 s,@krb_srvtab@,$krb_srvtab,;t t
16460 s,@with_pam@,$with_pam,;t t
16461 s,@with_openssl@,$with_openssl,;t t
16462 s,@enable_odbc@,$enable_odbc,;t t
16463 s,@with_unixodbc@,$with_unixodbc,;t t
16464 s,@with_iodbc@,$with_iodbc,;t t
16465 s,@odbcinst_ini_dir@,$odbcinst_ini_dir,;t t
16466 s,@ELF_SYS@,$ELF_SYS,;t t
16468 s,@FLEX@,$FLEX,;t t
16469 s,@FLEXFLAGS@,$FLEXFLAGS,;t t
16470 s,@LN_S@,$LN_S,;t t
16472 s,@with_gnu_ld@,$with_gnu_ld,;t t
16473 s,@ld_R_works@,$ld_R_works,;t t
16474 s,@RANLIB@,$RANLIB,;t t
16475 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16476 s,@LORDER@,$LORDER,;t t
16478 s,@STRIP@,$STRIP,;t t
16479 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16480 s,@STRIP_STATIC_LIB@,$STRIP_STATIC_LIB,;t t
16481 s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
16482 s,@YACC@,$YACC,;t t
16483 s,@YFLAGS@,$YFLAGS,;t t
16484 s,@WISH@,$WISH,;t t
16485 s,@PERL@,$PERL,;t t
16486 s,@perl_installsitearch@,$perl_installsitearch,;t t
16487 s,@perl_installman3dir@,$perl_installman3dir,;t t
16488 s,@perl_archlibexp@,$perl_archlibexp,;t t
16489 s,@perl_privlibexp@,$perl_privlibexp,;t t
16490 s,@perl_useshrplib@,$perl_useshrplib,;t t
16491 s,@perl_man3ext@,$perl_man3ext,;t t
16492 s,@perl_embed_ldflags@,$perl_embed_ldflags,;t t
16493 s,@PYTHON@,$PYTHON,;t t
16494 s,@python_version@,$python_version,;t t
16495 s,@python_prefix@,$python_prefix,;t t
16496 s,@python_execprefix@,$python_execprefix,;t t
16497 s,@python_configdir@,$python_configdir,;t t
16498 s,@python_moduledir@,$python_moduledir,;t t
16499 s,@python_moduleexecdir@,$python_moduleexecdir,;t t
16500 s,@python_includespec@,$python_includespec,;t t
16501 s,@python_libspec@,$python_libspec,;t t
16502 s,@LIBOBJS@,$LIBOBJS,;t t
16503 s,@HPUXMATHLIB@,$HPUXMATHLIB,;t t
16504 s,@HAVE_POSIX_SIGNALS@,$HAVE_POSIX_SIGNALS,;t t
16505 s,@MSGFMT@,$MSGFMT,;t t
16506 s,@MSGMERGE@,$MSGMERGE,;t t
16507 s,@XGETTEXT@,$XGETTEXT,;t t
16508 s,@localedir@,$localedir,;t t
16509 s,@TCLSH@,$TCLSH,;t t
16510 s,@TCL_CONFIG_SH@,$TCL_CONFIG_SH,;t t
16511 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
16512 s,@TCL_LIBS@,$TCL_LIBS,;t t
16513 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
16514 s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t
16515 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
16516 s,@TK_CONFIG_SH@,$TK_CONFIG_SH,;t t
16517 s,@TK_LIBS@,$TK_LIBS,;t t
16518 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
16519 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
16520 s,@NSGMLS@,$NSGMLS,;t t
16521 s,@JADE@,$JADE,;t t
16522 s,@have_docbook@,$have_docbook,;t t
16523 s,@DOCBOOKSTYLE@,$DOCBOOKSTYLE,;t t
16524 s,@COLLATEINDEX@,$COLLATEINDEX,;t t
16525 s,@SGMLSPL@,$SGMLSPL,;t t
16526 s,@vpath_build@,$vpath_build,;t t
16531 cat >>$CONFIG_STATUS <<\_ACEOF
16532 # Split the substitutions into bite-sized pieces for seds with
16533 # small command number limits, like on Digital OSF/1 and HP-UX.
16534 ac_max_sed_lines=48
16535 ac_sed_frag=1 # Number of current file.
16536 ac_beg=1 # First line for current file.
16537 ac_end=$ac_max_sed_lines # Line after last line for current file.
16540 while $ac_more_lines; do
16541 if test $ac_beg -gt 1; then
16542 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16544 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16546 if test ! -s $tmp/subs.frag; then
16547 ac_more_lines=false
16549 # The purpose of the label and of the branching condition is to
16550 # speed up the sed processing (if there are no `@' at all, there
16551 # is no need to browse any of the substitutions).
16552 # These are the two extra sed commands mentioned above.
16554 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16555 if test -z "$ac_sed_cmds"; then
16556 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16558 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16560 ac_sed_frag=`expr $ac_sed_frag + 1`
16562 ac_end=`expr $ac_end + $ac_max_sed_lines`
16565 if test -z "$ac_sed_cmds"; then
16568 fi # test -n "$CONFIG_FILES"
16571 cat >>$CONFIG_STATUS <<\_ACEOF
16572 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16573 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16575 - | *:- | *:-:* ) # input from stdin
16577 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16578 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16579 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16580 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16581 * ) ac_file_in=$ac_file.in ;;
16584 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16585 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16586 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16587 X"$ac_file" : 'X\(//\)[^/]' \| \
16588 X"$ac_file" : 'X\(//\)$' \| \
16589 X"$ac_file" : 'X\(/\)' \| \
16590 . : '\(.\)' 2>/dev/null ||
16592 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16593 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16594 /^X\(\/\/\)$/{ s//\1/; q; }
16595 /^X\(\/\).*/{ s//\1/; q; }
16597 { case "$ac_dir" in
16598 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16602 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16603 case $as_mkdir_dir in
16604 # Skip DOS drivespec
16605 ?:) as_incr_dir=$as_mkdir_dir ;;
16607 as_incr_dir=$as_incr_dir/$as_mkdir_dir
16608 test -d "$as_incr_dir" ||
16609 mkdir "$as_incr_dir" ||
16610 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
16611 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
16612 { (exit 1); exit 1; }; }
16619 if test "$ac_dir" != .; then
16620 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16621 # A "../" for each directory in $ac_dir_suffix.
16622 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16624 ac_dir_suffix= ac_top_builddir=
16628 .) # No --srcdir option. We are building in place.
16630 if test -z "$ac_top_builddir"; then
16633 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16635 [\\/]* | ?:[\\/]* ) # Absolute path.
16636 ac_srcdir=$srcdir$ac_dir_suffix;
16637 ac_top_srcdir=$srcdir ;;
16638 *) # Relative path.
16639 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16640 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16642 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16644 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16645 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
16646 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16647 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16651 if test x"$ac_file" != x-; then
16652 { echo "$as_me:$LINENO: creating $ac_file" >&5
16653 echo "$as_me: creating $ac_file" >&6;}
16656 # Let's still pretend it is `configure' which instantiates (i.e., don't
16657 # use $as_me), people would be surprised to read:
16658 # /* config.h. Generated by config.status. */
16659 if test x"$ac_file" = x-; then
16662 configure_input="$ac_file. "
16664 configure_input=$configure_input"Generated from `echo $ac_file_in |
16665 sed 's,.*/,,'` by configure."
16667 # First look for the input files in the build tree, otherwise in the
16669 ac_file_inputs=`IFS=:
16670 for f in $ac_file_in; do
16672 -) echo $tmp/stdin ;;
16674 # Absolute (can't be DOS-style, as IFS=:)
16675 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16676 echo "$as_me: error: cannot find input file: $f" >&2;}
16677 { (exit 1); exit 1; }; }
16680 if test -f "$f"; then
16683 elif test -f "$srcdir/$f"; then
16688 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16689 echo "$as_me: error: cannot find input file: $f" >&2;}
16690 { (exit 1); exit 1; }; }
16693 done` || { (exit 1); exit 1; }
16695 cat >>$CONFIG_STATUS <<_ACEOF
16699 cat >>$CONFIG_STATUS <<\_ACEOF
16701 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16702 s,@configure_input@,$configure_input,;t t
16703 s,@srcdir@,$ac_srcdir,;t t
16704 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16705 s,@top_srcdir@,$ac_top_srcdir,;t t
16706 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16707 s,@builddir@,$ac_builddir,;t t
16708 s,@abs_builddir@,$ac_abs_builddir,;t t
16709 s,@top_builddir@,$ac_top_builddir,;t t
16710 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16711 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16713 if test x"$ac_file" != x-; then
16714 mv $tmp/out $ac_file
16722 cat >>$CONFIG_STATUS <<\_ACEOF
16725 # CONFIG_HEADER section.
16728 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16729 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16731 # ac_d sets the value in "#define NAME VALUE" lines.
16732 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16733 ac_dB='[ ].*$,\1#\2'
16736 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16737 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16738 ac_uB='$,\1#\2define\3'
16742 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16743 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16745 - | *:- | *:-:* ) # input from stdin
16747 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16748 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16749 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16750 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16751 * ) ac_file_in=$ac_file.in ;;
16754 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16755 echo "$as_me: creating $ac_file" >&6;}
16757 # First look for the input files in the build tree, otherwise in the
16759 ac_file_inputs=`IFS=:
16760 for f in $ac_file_in; do
16762 -) echo $tmp/stdin ;;
16764 # Absolute (can't be DOS-style, as IFS=:)
16765 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16766 echo "$as_me: error: cannot find input file: $f" >&2;}
16767 { (exit 1); exit 1; }; }
16770 if test -f "$f"; then
16773 elif test -f "$srcdir/$f"; then
16778 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16779 echo "$as_me: error: cannot find input file: $f" >&2;}
16780 { (exit 1); exit 1; }; }
16783 done` || { (exit 1); exit 1; }
16784 # Remove the trailing spaces.
16785 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16789 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16790 # `conftest.undefs', that substitutes the proper values into
16791 # config.h.in to produce config.h. The first handles `#define'
16792 # templates, and the second `#undef' templates.
16793 # And first: Protect against being on the right side of a sed subst in
16794 # config.status. Protect against being in an unquoted here document
16795 # in config.status.
16796 rm -f conftest.defines conftest.undefs
16797 # Using a here document instead of a string reduces the quoting nightmare.
16798 # Putting comments in sed scripts is not portable.
16800 # `end' is used to avoid that the second main sed command (meant for
16801 # 0-ary CPP macros) applies to n-ary macro definitions.
16802 # See the Autoconf documentation for `clear'.
16803 cat >confdef2sed.sed <<\_ACEOF
16808 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16810 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16813 # If some macros were called several times there might be several times
16814 # the same #defines, which is useless. Nevertheless, we may not want to
16815 # sort them, since we want the *last* AC-DEFINE to be honored.
16816 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16817 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16818 rm -f confdef2sed.sed
16820 # This sed command replaces #undef with comments. This is necessary, for
16821 # example, in the case of _POSIX_SOURCE, which is predefined and required
16822 # on some systems where configure will not decide to define it.
16823 cat >>conftest.undefs <<\_ACEOF
16824 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16827 # Break up conftest.defines because some shells have a limit on the size
16828 # of here documents, and old seds have small limits too (100 cmds).
16829 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16830 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16831 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16832 echo ' :' >>$CONFIG_STATUS
16833 rm -f conftest.tail
16834 while grep . conftest.defines >/dev/null
16836 # Write a limited-size here document to $tmp/defines.sed.
16837 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16838 # Speed up: don't consider the non `#define' lines.
16839 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16840 # Work around the forget-to-reset-the-flag bug.
16841 echo 't clr' >>$CONFIG_STATUS
16842 echo ': clr' >>$CONFIG_STATUS
16843 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16845 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16847 mv $tmp/out $tmp/in
16849 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16850 rm -f conftest.defines
16851 mv conftest.tail conftest.defines
16853 rm -f conftest.defines
16854 echo ' fi # egrep' >>$CONFIG_STATUS
16855 echo >>$CONFIG_STATUS
16857 # Break up conftest.undefs because some shells have a limit on the size
16858 # of here documents, and old seds have small limits too (100 cmds).
16859 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16860 rm -f conftest.tail
16861 while grep . conftest.undefs >/dev/null
16863 # Write a limited-size here document to $tmp/undefs.sed.
16864 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16865 # Speed up: don't consider the non `#undef'
16866 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16867 # Work around the forget-to-reset-the-flag bug.
16868 echo 't clr' >>$CONFIG_STATUS
16869 echo ': clr' >>$CONFIG_STATUS
16870 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16872 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16874 mv $tmp/out $tmp/in
16876 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16877 rm -f conftest.undefs
16878 mv conftest.tail conftest.undefs
16880 rm -f conftest.undefs
16882 cat >>$CONFIG_STATUS <<\_ACEOF
16883 # Let's still pretend it is `configure' which instantiates (i.e., don't
16884 # use $as_me), people would be surprised to read:
16885 # /* config.h. Generated by config.status. */
16886 if test x"$ac_file" = x-; then
16887 echo "/* Generated by configure. */" >$tmp/config.h
16889 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16891 cat $tmp/in >>$tmp/config.h
16893 if test x"$ac_file" != x-; then
16894 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
16895 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16896 echo "$as_me: $ac_file is unchanged" >&6;}
16898 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16899 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16900 X"$ac_file" : 'X\(//\)[^/]' \| \
16901 X"$ac_file" : 'X\(//\)$' \| \
16902 X"$ac_file" : 'X\(/\)' \| \
16903 . : '\(.\)' 2>/dev/null ||
16905 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16906 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16907 /^X\(\/\/\)$/{ s//\1/; q; }
16908 /^X\(\/\).*/{ s//\1/; q; }
16910 { case "$ac_dir" in
16911 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16915 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16916 case $as_mkdir_dir in
16917 # Skip DOS drivespec
16918 ?:) as_incr_dir=$as_mkdir_dir ;;
16920 as_incr_dir=$as_incr_dir/$as_mkdir_dir
16921 test -d "$as_incr_dir" ||
16922 mkdir "$as_incr_dir" ||
16923 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
16924 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
16925 { (exit 1); exit 1; }; }
16931 mv $tmp/config.h $ac_file
16935 rm -f $tmp/config.h
16937 # Run the commands associated with the file.
16939 src/include/pg_config.h )
16940 # Update timestamp for pg_config.h (see Makefile.global)
16941 echo >src/include/stamp-h
16946 cat >>$CONFIG_STATUS <<\_ACEOF
16949 # CONFIG_LINKS section.
16952 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
16953 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16954 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16956 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
16957 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
16959 if test ! -r $srcdir/$ac_source; then
16960 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
16961 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
16962 { (exit 1); exit 1; }; }
16966 # Make relative symlinks.
16967 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
16968 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16969 X"$ac_dest" : 'X\(//\)[^/]' \| \
16970 X"$ac_dest" : 'X\(//\)$' \| \
16971 X"$ac_dest" : 'X\(/\)' \| \
16972 . : '\(.\)' 2>/dev/null ||
16974 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16975 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16976 /^X\(\/\/\)$/{ s//\1/; q; }
16977 /^X\(\/\).*/{ s//\1/; q; }
16979 { case "$ac_dest_dir" in
16980 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16983 as_dummy="$ac_dest_dir"
16984 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16985 case $as_mkdir_dir in
16986 # Skip DOS drivespec
16987 ?:) as_incr_dir=$as_mkdir_dir ;;
16989 as_incr_dir=$as_incr_dir/$as_mkdir_dir
16990 test -d "$as_incr_dir" ||
16991 mkdir "$as_incr_dir" ||
16992 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
16993 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
16994 { (exit 1); exit 1; }; }
17001 if test "$ac_dest_dir" != .; then
17002 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
17003 # A "../" for each directory in $ac_dir_suffix.
17004 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17006 ac_dir_suffix= ac_top_builddir=
17010 .) # No --srcdir option. We are building in place.
17012 if test -z "$ac_top_builddir"; then
17015 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17017 [\\/]* | ?:[\\/]* ) # Absolute path.
17018 ac_srcdir=$srcdir$ac_dir_suffix;
17019 ac_top_srcdir=$srcdir ;;
17020 *) # Relative path.
17021 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17022 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17024 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
17026 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
17027 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
17028 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
17029 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
17033 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
17034 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
17037 # Make a symlink if possible; otherwise try a hard link.
17038 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17039 ln $srcdir/$ac_source $ac_dest ||
17040 { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
17041 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
17042 { (exit 1); exit 1; }; }
17046 cat >>$CONFIG_STATUS <<\_ACEOF
17048 { (exit 0); exit 0; }
17050 chmod +x $CONFIG_STATUS
17051 ac_clean_files=$ac_clean_files_save
17054 # configure is writing to config.log, and then calls config.status.
17055 # config.status does its own redirection, appending to config.log.
17056 # Unfortunately, on DOS this fails, as config.log is still kept open
17057 # by configure, so config.status won't be able to write to it; its
17058 # output is simply discarded. So we exec the FD to /dev/null,
17059 # effectively closing config.log, so it can be properly (re)opened and
17060 # appended to by config.status. When coming back to configure, we
17061 # need to make the FD available again.
17062 if test "$no_create" != yes; then
17065 $SHELL $CONFIG_STATUS || ac_cs_success=false
17067 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17068 # would make configure fail if this is the last instruction.
17069 $ac_cs_success || { (exit 1); exit 1; }