2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for PostgreSQL 9.4devel.
5 # Report bugs to <pgsql-bugs@postgresql.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
14 # Copyright (c) 1996-2014, PostgreSQL Global Development Group
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 # Use a proper internal environment variable to ensure we don't fall
140 # into an infinite loop, continuously re-executing ourselves.
141 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
142 _as_can_reexec=no; export _as_can_reexec;
143 # We cannot yet assume a decent shell, so we have to provide a
144 # neutralization value for shells without unset; and this also
145 # works around shells that cannot unset nonexistent variables.
146 # Preserve -v and -x to the replacement shell.
149 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
151 *v*x* | *x*v* ) as_opts=-vx ;;
156 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
157 # Admittedly, this is quite paranoid, since all the known shells bail
158 # out after a failed `exec'.
159 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
162 # We don't want this to propagate to other subprocesses.
163 { _as_can_reexec=; unset _as_can_reexec;}
164 if test "x$CONFIG_SHELL" = x; then
165 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
168 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
169 # is contrary to our usage. Disable this feature.
170 alias -g '\${1+\"\$@\"}'='\"\$@\"'
173 case \`(set -o) 2>/dev/null\` in #(
181 as_required="as_fn_return () { (exit \$1); }
182 as_fn_success () { as_fn_return 0; }
183 as_fn_failure () { as_fn_return 1; }
184 as_fn_ret_success () { return 0; }
185 as_fn_ret_failure () { return 1; }
188 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
189 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
190 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
191 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
192 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
195 exitcode=1; echo positional parameters were not saved.
197 test x\$exitcode = x0 || exit 1
199 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
200 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
201 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
202 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
203 test \$(( 1 + 1 )) = 2 || exit 1"
204 if (eval "$as_required") 2>/dev/null; then :
209 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
214 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
217 test -z "$as_dir" && as_dir=.
221 for as_base in sh bash ksh sh5; do
222 # Try only shells that exist, to save several forks.
223 as_shell=$as_dir/$as_base
224 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
225 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 CONFIG_SHELL=$as_shell as_have_required=yes
227 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
235 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
236 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
237 CONFIG_SHELL=$SHELL as_have_required=yes
242 if test "x$CONFIG_SHELL" != x; then :
244 # We cannot yet assume a decent shell, so we have to provide a
245 # neutralization value for shells without unset; and this also
246 # works around shells that cannot unset nonexistent variables.
247 # Preserve -v and -x to the replacement shell.
250 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
252 *v*x* | *x*v* ) as_opts=-vx ;;
257 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
258 # Admittedly, this is quite paranoid, since all the known shells bail
259 # out after a failed `exec'.
260 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
264 if test x$as_have_required = xno; then :
265 $as_echo "$0: This script requires a shell more modern than all"
266 $as_echo "$0: the shells that I found on your system."
267 if test x${ZSH_VERSION+set} = xset ; then
268 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
269 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
271 $as_echo "$0: Please tell bug-autoconf@gnu.org and
272 $0: pgsql-bugs@postgresql.org about your system, including
273 $0: any error possibly output before this message. Then
274 $0: install a modern shell, or manually run the script
275 $0: under such a shell if you do have one."
281 SHELL=${CONFIG_SHELL-/bin/sh}
283 # Unset more variables known to interfere with behavior of common tools.
284 CLICOLOR_FORCE= GREP_OPTIONS=
285 unset CLICOLOR_FORCE GREP_OPTIONS
287 ## --------------------- ##
288 ## M4sh Shell Functions. ##
289 ## --------------------- ##
292 # Portably unset VAR.
295 { eval $1=; unset $1;}
299 # as_fn_set_status STATUS
300 # -----------------------
301 # Set $? to STATUS, without forking.
309 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319 # Create "$as_dir" as a directory, including parents if necessary.
324 -*) as_dir=./$as_dir;;
326 test -d "$as_dir" || eval $as_mkdir_p || {
330 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
333 as_dirs="'$as_qdir' $as_dirs"
334 as_dir=`$as_dirname -- "$as_dir" ||
335 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
336 X"$as_dir" : 'X\(//\)[^/]' \| \
337 X"$as_dir" : 'X\(//\)$' \| \
338 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
339 $as_echo X"$as_dir" |
340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357 test -d "$as_dir" && break
359 test -z "$as_dirs" || eval "mkdir $as_dirs"
360 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
365 # as_fn_executable_p FILE
366 # -----------------------
367 # Test if FILE is an executable regular file.
368 as_fn_executable_p ()
370 test -f "$1" && test -x "$1"
371 } # as_fn_executable_p
372 # as_fn_append VAR VALUE
373 # ----------------------
374 # Append the text in VALUE to the end of the definition contained in VAR. Take
375 # advantage of any shell optimizations that allow amortized linear growth over
376 # repeated appends, instead of the typical quadratic growth present in naive
378 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
379 eval 'as_fn_append ()
392 # Perform arithmetic evaluation on the ARGs, and store the result in the
393 # global $as_val. Take advantage of shells that can avoid forks. The arguments
394 # must be portable across $(()) and expr.
395 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 as_val=`expr "$@" || test $? -eq 1`
408 # as_fn_error STATUS ERROR [LINENO LOG_FD]
409 # ----------------------------------------
410 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
411 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
412 # script with STATUS, using 1 if that was 0.
415 as_status=$1; test $as_status -eq 0 && as_status=1
417 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
418 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
420 $as_echo "$as_me: error: $2" >&2
421 as_fn_exit $as_status
424 if expr a : '\(a\)' >/dev/null 2>&1 &&
425 test "X`expr 00001 : '.*\(...\)'`" = X001; then
431 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
437 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
443 as_me=`$as_basename -- "$0" ||
444 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
445 X"$0" : 'X\(//\)$' \| \
446 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
448 sed '/^.*\/\([^/][^/]*\)\/*$/{
462 # Avoid depending upon Character Ranges.
463 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
464 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
465 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
466 as_cr_digits='0123456789'
467 as_cr_alnum=$as_cr_Letters$as_cr_digits
470 as_lineno_1=$LINENO as_lineno_1a=$LINENO
471 as_lineno_2=$LINENO as_lineno_2a=$LINENO
472 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
473 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
474 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
486 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 chmod +x "$as_me.lineno" ||
491 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
493 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
494 # already done that, so ensure we don't try to do so again and fall
495 # in an infinite loop. This has already happened in practice.
496 _as_can_reexec=no; export _as_can_reexec
497 # Don't try to exec as it changes $[0], causing all sort of problems
498 # (the dirname of $[0] is not the place where we might find the
499 # original and so on. Autoconf is especially sensitive to this).
501 # Exit status is that of the last command.
505 ECHO_C= ECHO_N= ECHO_T=
506 case `echo -n x` in #(((((
508 case `echo 'xy\c'` in
509 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
511 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 rm -f conf$$ conf$$.exe conf$$.file
519 if test -d conf$$.dir; then
520 rm -f conf$$.dir/conf$$.file
523 mkdir conf$$.dir 2>/dev/null
525 if (echo >conf$$.file) 2>/dev/null; then
526 if ln -s conf$$.file conf$$ 2>/dev/null; then
528 # ... but there are two gotchas:
529 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
530 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
531 # In both cases, we have to default to `cp -pR'.
532 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
534 elif ln conf$$.file conf$$ 2>/dev/null; then
542 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
543 rmdir conf$$.dir 2>/dev/null
545 if mkdir -p . 2>/dev/null; then
546 as_mkdir_p='mkdir -p "$as_dir"'
548 test -d ./-p && rmdir ./-p
553 as_executable_p=as_fn_executable_p
555 # Sed expression to map a string onto a valid CPP name.
556 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
558 # Sed expression to map a string onto a valid variable name.
559 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
562 test -n "$DJDIR" || exec 7<&0 </dev/null
566 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
567 # so uname gets run too.
568 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
573 ac_default_prefix=/usr/local
575 ac_config_libobj_dir=.
582 # Identity of this package.
583 PACKAGE_NAME='PostgreSQL'
584 PACKAGE_TARNAME='postgresql'
585 PACKAGE_VERSION='9.4devel'
586 PACKAGE_STRING='PostgreSQL 9.4devel'
587 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
590 ac_unique_file="src/backend/access/common/heaptuple.c"
591 ac_default_prefix=/usr/local/pgsql
592 # Factoring default headers for most tests.
593 ac_includes_default="\
595 #ifdef HAVE_SYS_TYPES_H
596 # include <sys/types.h>
598 #ifdef HAVE_SYS_STAT_H
599 # include <sys/stat.h>
605 # ifdef HAVE_STDLIB_H
610 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 #ifdef HAVE_STRINGS_H
616 # include <strings.h>
618 #ifdef HAVE_INTTYPES_H
619 # include <inttypes.h>
628 ac_subst_vars='LTLIBOBJS
663 python_additional_libs
780 program_transform_name
793 enable_option_checking
799 enable_integer_datetimes
828 with_libedit_preferred
839 ac_precious_vars='build_alias
853 # Initialize some variables set by options.
855 ac_init_version=false
856 ac_unrecognized_opts=
858 # The variables have the same names as the options, with
859 # dashes changed to underlines.
867 program_transform_name=s,x,x,
875 # Installation directory options.
876 # These are left unexpanded so users can "make install exec_prefix=/foo"
877 # and all the variables that are supposed to be based on exec_prefix
878 # by default will actually change.
879 # Use braces instead of parens because sh, perl, etc. also accept them.
880 # (The list follows the same order as the GNU Coding Standards.)
881 bindir='${exec_prefix}/bin'
882 sbindir='${exec_prefix}/sbin'
883 libexecdir='${exec_prefix}/libexec'
884 datarootdir='${prefix}/share'
885 datadir='${datarootdir}'
886 sysconfdir='${prefix}/etc'
887 sharedstatedir='${prefix}/com'
888 localstatedir='${prefix}/var'
889 includedir='${prefix}/include'
890 oldincludedir='/usr/include'
891 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
892 infodir='${datarootdir}/info'
897 libdir='${exec_prefix}/lib'
898 localedir='${datarootdir}/locale'
899 mandir='${datarootdir}/man'
905 # If the previous option needs an argument, assign it.
906 if test -n "$ac_prev"; then
907 eval $ac_prev=\$ac_option
913 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
918 # Accept the important Cygnus configure options, so we can diagnose typos.
920 case $ac_dashdash$ac_option in
924 -bindir | --bindir | --bindi | --bind | --bin | --bi)
926 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
929 -build | --build | --buil | --bui | --bu)
930 ac_prev=build_alias ;;
931 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
932 build_alias=$ac_optarg ;;
934 -cache-file | --cache-file | --cache-fil | --cache-fi \
935 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
936 ac_prev=cache_file ;;
937 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
938 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
939 cache_file=$ac_optarg ;;
942 cache_file=config.cache ;;
944 -datadir | --datadir | --datadi | --datad)
946 -datadir=* | --datadir=* | --datadi=* | --datad=*)
947 datadir=$ac_optarg ;;
949 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
950 | --dataroo | --dataro | --datar)
951 ac_prev=datarootdir ;;
952 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
953 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
954 datarootdir=$ac_optarg ;;
956 -disable-* | --disable-*)
957 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
958 # Reject names that are not valid shell variable names.
959 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
960 as_fn_error $? "invalid feature name: $ac_useropt"
961 ac_useropt_orig=$ac_useropt
962 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
963 case $ac_user_opts in
967 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
968 ac_unrecognized_sep=', ';;
970 eval enable_$ac_useropt=no ;;
972 -docdir | --docdir | --docdi | --doc | --do)
974 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
977 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
979 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
982 -enable-* | --enable-*)
983 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
984 # Reject names that are not valid shell variable names.
985 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
986 as_fn_error $? "invalid feature name: $ac_useropt"
987 ac_useropt_orig=$ac_useropt
988 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
989 case $ac_user_opts in
993 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
994 ac_unrecognized_sep=', ';;
996 eval enable_$ac_useropt=\$ac_optarg ;;
998 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
999 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1000 | --exec | --exe | --ex)
1001 ac_prev=exec_prefix ;;
1002 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1003 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1004 | --exec=* | --exe=* | --ex=*)
1005 exec_prefix=$ac_optarg ;;
1007 -gas | --gas | --ga | --g)
1008 # Obsolete; use --with-gas.
1011 -help | --help | --hel | --he | -h)
1012 ac_init_help=long ;;
1013 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1014 ac_init_help=recursive ;;
1015 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1016 ac_init_help=short ;;
1018 -host | --host | --hos | --ho)
1019 ac_prev=host_alias ;;
1020 -host=* | --host=* | --hos=* | --ho=*)
1021 host_alias=$ac_optarg ;;
1023 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1025 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1027 htmldir=$ac_optarg ;;
1029 -includedir | --includedir | --includedi | --included | --include \
1030 | --includ | --inclu | --incl | --inc)
1031 ac_prev=includedir ;;
1032 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1033 | --includ=* | --inclu=* | --incl=* | --inc=*)
1034 includedir=$ac_optarg ;;
1036 -infodir | --infodir | --infodi | --infod | --info | --inf)
1038 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1039 infodir=$ac_optarg ;;
1041 -libdir | --libdir | --libdi | --libd)
1043 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1044 libdir=$ac_optarg ;;
1046 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1047 | --libexe | --libex | --libe)
1048 ac_prev=libexecdir ;;
1049 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1050 | --libexe=* | --libex=* | --libe=*)
1051 libexecdir=$ac_optarg ;;
1053 -localedir | --localedir | --localedi | --localed | --locale)
1054 ac_prev=localedir ;;
1055 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1056 localedir=$ac_optarg ;;
1058 -localstatedir | --localstatedir | --localstatedi | --localstated \
1059 | --localstate | --localstat | --localsta | --localst | --locals)
1060 ac_prev=localstatedir ;;
1061 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1062 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1063 localstatedir=$ac_optarg ;;
1065 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1067 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1068 mandir=$ac_optarg ;;
1070 -nfp | --nfp | --nf)
1071 # Obsolete; use --without-fp.
1074 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1075 | --no-cr | --no-c | -n)
1078 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1079 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1082 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1083 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1084 | --oldin | --oldi | --old | --ol | --o)
1085 ac_prev=oldincludedir ;;
1086 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1087 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1088 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1089 oldincludedir=$ac_optarg ;;
1091 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1093 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1094 prefix=$ac_optarg ;;
1096 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1097 | --program-pre | --program-pr | --program-p)
1098 ac_prev=program_prefix ;;
1099 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1100 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1101 program_prefix=$ac_optarg ;;
1103 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1104 | --program-suf | --program-su | --program-s)
1105 ac_prev=program_suffix ;;
1106 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1107 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1108 program_suffix=$ac_optarg ;;
1110 -program-transform-name | --program-transform-name \
1111 | --program-transform-nam | --program-transform-na \
1112 | --program-transform-n | --program-transform- \
1113 | --program-transform | --program-transfor \
1114 | --program-transfo | --program-transf \
1115 | --program-trans | --program-tran \
1116 | --progr-tra | --program-tr | --program-t)
1117 ac_prev=program_transform_name ;;
1118 -program-transform-name=* | --program-transform-name=* \
1119 | --program-transform-nam=* | --program-transform-na=* \
1120 | --program-transform-n=* | --program-transform-=* \
1121 | --program-transform=* | --program-transfor=* \
1122 | --program-transfo=* | --program-transf=* \
1123 | --program-trans=* | --program-tran=* \
1124 | --progr-tra=* | --program-tr=* | --program-t=*)
1125 program_transform_name=$ac_optarg ;;
1127 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1129 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1130 pdfdir=$ac_optarg ;;
1132 -psdir | --psdir | --psdi | --psd | --ps)
1134 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1137 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1138 | -silent | --silent | --silen | --sile | --sil)
1141 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1143 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1145 sbindir=$ac_optarg ;;
1147 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1148 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1149 | --sharedst | --shareds | --shared | --share | --shar \
1151 ac_prev=sharedstatedir ;;
1152 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1153 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1154 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1156 sharedstatedir=$ac_optarg ;;
1158 -site | --site | --sit)
1160 -site=* | --site=* | --sit=*)
1163 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1165 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1166 srcdir=$ac_optarg ;;
1168 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1169 | --syscon | --sysco | --sysc | --sys | --sy)
1170 ac_prev=sysconfdir ;;
1171 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1172 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1173 sysconfdir=$ac_optarg ;;
1175 -target | --target | --targe | --targ | --tar | --ta | --t)
1176 ac_prev=target_alias ;;
1177 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1178 target_alias=$ac_optarg ;;
1180 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1183 -version | --version | --versio | --versi | --vers | -V)
1184 ac_init_version=: ;;
1187 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1188 # Reject names that are not valid shell variable names.
1189 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1190 as_fn_error $? "invalid package name: $ac_useropt"
1191 ac_useropt_orig=$ac_useropt
1192 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193 case $ac_user_opts in
1197 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1198 ac_unrecognized_sep=', ';;
1200 eval with_$ac_useropt=\$ac_optarg ;;
1202 -without-* | --without-*)
1203 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1204 # Reject names that are not valid shell variable names.
1205 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1206 as_fn_error $? "invalid package name: $ac_useropt"
1207 ac_useropt_orig=$ac_useropt
1208 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1209 case $ac_user_opts in
1213 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1214 ac_unrecognized_sep=', ';;
1216 eval with_$ac_useropt=no ;;
1219 # Obsolete; use --with-x.
1222 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1223 | --x-incl | --x-inc | --x-in | --x-i)
1224 ac_prev=x_includes ;;
1225 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1226 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1227 x_includes=$ac_optarg ;;
1229 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1230 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1231 ac_prev=x_libraries ;;
1232 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1233 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1234 x_libraries=$ac_optarg ;;
1236 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1237 Try \`$0 --help' for more information"
1241 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1242 # Reject names that are not valid shell variable names.
1243 case $ac_envvar in #(
1244 '' | [0-9]* | *[!_$as_cr_alnum]* )
1245 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1247 eval $ac_envvar=\$ac_optarg
1248 export $ac_envvar ;;
1251 # FIXME: should be removed in autoconf 3.0.
1252 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1253 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1254 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1255 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1261 if test -n "$ac_prev"; then
1262 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1263 as_fn_error $? "missing argument to $ac_option"
1266 if test -n "$ac_unrecognized_opts"; then
1267 case $enable_option_checking in
1269 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1270 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1274 # Check all directory arguments for consistency.
1275 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1276 datadir sysconfdir sharedstatedir localstatedir includedir \
1277 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1278 libdir localedir mandir
1280 eval ac_val=\$$ac_var
1281 # Remove trailing slashes.
1284 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1285 eval $ac_var=\$ac_val;;
1287 # Be sure to have absolute directory names.
1289 [\\/$]* | ?:[\\/]* ) continue;;
1290 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1292 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1295 # There might be people who depend on the old broken behavior: `$host'
1296 # used to hold the argument of --host etc.
1297 # FIXME: To remove some day.
1300 target=$target_alias
1302 # FIXME: To remove some day.
1303 if test "x$host_alias" != x; then
1304 if test "x$build_alias" = x; then
1305 cross_compiling=maybe
1306 elif test "x$build_alias" != "x$host_alias"; then
1312 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1314 test "$silent" = yes && exec 6>/dev/null
1317 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1318 ac_ls_di=`ls -di .` &&
1319 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1320 as_fn_error $? "working directory cannot be determined"
1321 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1322 as_fn_error $? "pwd does not report name of working directory"
1325 # Find the source files, if location was not specified.
1326 if test -z "$srcdir"; then
1327 ac_srcdir_defaulted=yes
1328 # Try the directory containing this script, then the parent directory.
1329 ac_confdir=`$as_dirname -- "$as_myself" ||
1330 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1331 X"$as_myself" : 'X\(//\)[^/]' \| \
1332 X"$as_myself" : 'X\(//\)$' \| \
1333 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1334 $as_echo X"$as_myself" |
1335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1353 if test ! -r "$srcdir/$ac_unique_file"; then
1357 ac_srcdir_defaulted=no
1359 if test ! -r "$srcdir/$ac_unique_file"; then
1360 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1361 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1363 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1365 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1367 # When building in place, set srcdir=.
1368 if test "$ac_abs_confdir" = "$ac_pwd"; then
1371 # Remove unnecessary trailing slashes from srcdir.
1372 # Double slashes in file names in object file debugging info
1373 # mess up M-x gdb in Emacs.
1375 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1377 for ac_var in $ac_precious_vars; do
1378 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1379 eval ac_env_${ac_var}_value=\$${ac_var}
1380 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1381 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1385 # Report the --help message.
1387 if test "$ac_init_help" = "long"; then
1388 # Omit some internal or obsolete options to make the list less imposing.
1389 # This message is too long to be a string in the A/UX 3.1 sh.
1391 \`configure' configures PostgreSQL 9.4devel to adapt to many kinds of systems.
1393 Usage: $0 [OPTION]... [VAR=VALUE]...
1395 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1396 VAR=VALUE. See below for descriptions of some of the useful variables.
1398 Defaults for the options are specified in brackets.
1401 -h, --help display this help and exit
1402 --help=short display options specific to this package
1403 --help=recursive display the short help of all the included packages
1404 -V, --version display version information and exit
1405 -q, --quiet, --silent do not print \`checking ...' messages
1406 --cache-file=FILE cache test results in FILE [disabled]
1407 -C, --config-cache alias for \`--cache-file=config.cache'
1408 -n, --no-create do not create output files
1409 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1411 Installation directories:
1412 --prefix=PREFIX install architecture-independent files in PREFIX
1413 [$ac_default_prefix]
1414 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1417 By default, \`make install' will install all the files in
1418 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1419 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1420 for instance \`--prefix=\$HOME'.
1422 For better control, use the options below.
1424 Fine tuning of the installation directories:
1425 --bindir=DIR user executables [EPREFIX/bin]
1426 --sbindir=DIR system admin executables [EPREFIX/sbin]
1427 --libexecdir=DIR program executables [EPREFIX/libexec]
1428 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1429 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1430 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1431 --libdir=DIR object code libraries [EPREFIX/lib]
1432 --includedir=DIR C header files [PREFIX/include]
1433 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1434 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1435 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1436 --infodir=DIR info documentation [DATAROOTDIR/info]
1437 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1438 --mandir=DIR man documentation [DATAROOTDIR/man]
1439 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1440 --htmldir=DIR html documentation [DOCDIR]
1441 --dvidir=DIR dvi documentation [DOCDIR]
1442 --pdfdir=DIR pdf documentation [DOCDIR]
1443 --psdir=DIR ps documentation [DOCDIR]
1449 --build=BUILD configure for building on BUILD [guessed]
1450 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1454 if test -n "$ac_init_help"; then
1455 case $ac_init_help in
1456 short | recursive ) echo "Configuration of PostgreSQL 9.4devel:";;
1461 --disable-option-checking ignore unrecognized --enable/--with options
1462 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1463 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1464 --disable-integer-datetimes
1465 disable 64-bit integer date/time support
1466 --enable-nls[=LANGUAGES]
1467 enable Native Language Support
1468 --disable-rpath do not embed shared library search path in
1470 --disable-spinlocks do not use spinlocks
1471 --enable-debug build with debugging symbols (-g)
1472 --enable-profiling build with profiling enabled
1473 --enable-coverage build with coverage testing instrumentation
1474 --enable-dtrace build with DTrace support
1475 --enable-depend turn on automatic dependency tracking
1476 --enable-cassert enable assertion checks (for debugging)
1477 --disable-thread-safety disable thread-safety in client libraries
1478 --disable-largefile omit support for large files
1479 --disable-float4-byval disable float4 passed by value
1480 --disable-float8-byval disable float8 passed by value
1483 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1484 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1485 --with-extra-version=STRING
1486 append STRING to version
1487 --with-template=NAME override operating system template
1488 --with-includes=DIRS look for additional header files in DIRS
1489 --with-libraries=DIRS look for additional libraries in DIRS
1490 --with-libs=DIRS alternative spelling of --with-libraries
1491 --with-pgport=PORTNUM set default port number [5432]
1492 --with-blocksize=BLOCKSIZE
1493 set table block size in kB [8]
1494 --with-segsize=SEGSIZE set table segment size in GB [1]
1495 --with-wal-blocksize=BLOCKSIZE
1496 set WAL block size in kB [8]
1497 --with-wal-segsize=SEGSIZE
1498 set WAL segment size in MB [16]
1499 --with-CC=CMD set compiler (deprecated)
1500 --with-tcl build Tcl modules (PL/Tcl)
1501 --with-tclconfig=DIR tclConfig.sh is in DIR
1502 --with-perl build Perl modules (PL/Perl)
1503 --with-python build Python modules (PL/Python)
1504 --with-gssapi build with GSSAPI support
1505 --with-krb-srvnam=NAME default service principal name in Kerberos (GSSAPI)
1507 --with-pam build with PAM support
1508 --with-ldap build with LDAP support
1509 --with-bonjour build with Bonjour support
1510 --with-openssl build with OpenSSL support
1511 --with-selinux build with SELinux support
1512 --without-readline do not use GNU Readline nor BSD Libedit for editing
1513 --with-libedit-preferred
1514 prefer BSD Libedit over GNU Readline
1515 --with-ossp-uuid build contrib/uuid-ossp, requires OSSP UUID library
1516 --with-libxml build with XML support
1517 --with-libxslt use XSLT support when building contrib/xml2
1518 --with-system-tzdata=DIR
1519 use system time zone data in DIR
1520 --without-zlib do not use Zlib
1521 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1523 Some influential environment variables:
1524 CC C compiler command
1525 CFLAGS C compiler flags
1526 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1527 nonstandard directory <lib dir>
1528 LIBS libraries to pass to the linker, e.g. -l<library>
1529 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1530 you have headers in a nonstandard directory <include dir>
1532 LDFLAGS_EX extra linker flags for linking executables only
1533 LDFLAGS_SL extra linker flags for linking shared libraries only
1535 location of DocBook stylesheets
1537 Use these variables to override the choices made by `configure' or to help
1538 it to find libraries and programs with nonstandard names/locations.
1540 Report bugs to <pgsql-bugs@postgresql.org>.
1545 if test "$ac_init_help" = "recursive"; then
1546 # If there are subdirs, report their specific --help.
1547 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1548 test -d "$ac_dir" ||
1549 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1554 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1557 # A ".." for each directory in $ac_dir_suffix.
1558 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1559 case $ac_top_builddir_sub in
1560 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1561 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1564 ac_abs_top_builddir=$ac_pwd
1565 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1566 # for backward compatibility:
1567 ac_top_builddir=$ac_top_build_prefix
1570 .) # We are building in place.
1572 ac_top_srcdir=$ac_top_builddir_sub
1573 ac_abs_top_srcdir=$ac_pwd ;;
1574 [\\/]* | ?:[\\/]* ) # Absolute name.
1575 ac_srcdir=$srcdir$ac_dir_suffix;
1576 ac_top_srcdir=$srcdir
1577 ac_abs_top_srcdir=$srcdir ;;
1579 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1580 ac_top_srcdir=$ac_top_build_prefix$srcdir
1581 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1583 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1585 cd "$ac_dir" || { ac_status=$?; continue; }
1586 # Check for guested configure.
1587 if test -f "$ac_srcdir/configure.gnu"; then
1589 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1590 elif test -f "$ac_srcdir/configure"; then
1592 $SHELL "$ac_srcdir/configure" --help=recursive
1594 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1596 cd "$ac_pwd" || { ac_status=$?; break; }
1600 test -n "$ac_init_help" && exit $ac_status
1601 if $ac_init_version; then
1603 PostgreSQL configure 9.4devel
1604 generated by GNU Autoconf 2.69
1606 Copyright (C) 2012 Free Software Foundation, Inc.
1607 This configure script is free software; the Free Software Foundation
1608 gives unlimited permission to copy, distribute and modify it.
1610 Copyright (c) 1996-2014, PostgreSQL Global Development Group
1615 ## ------------------------ ##
1616 ## Autoconf initialization. ##
1617 ## ------------------------ ##
1619 # ac_fn_c_try_compile LINENO
1620 # --------------------------
1621 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1622 ac_fn_c_try_compile ()
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 rm -f conftest.$ac_objext
1626 if { { ac_try="$ac_compile"
1628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1629 *) ac_try_echo=$ac_try;;
1631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632 $as_echo "$ac_try_echo"; } >&5
1633 (eval "$ac_compile") 2>conftest.err
1635 if test -s conftest.err; then
1636 grep -v '^ *+' conftest.err >conftest.er1
1637 cat conftest.er1 >&5
1638 mv -f conftest.er1 conftest.err
1640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641 test $ac_status = 0; } && {
1642 test -z "$ac_c_werror_flag" ||
1643 test ! -s conftest.err
1644 } && test -s conftest.$ac_objext; then :
1647 $as_echo "$as_me: failed program was:" >&5
1648 sed 's/^/| /' conftest.$ac_ext >&5
1652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1653 as_fn_set_status $ac_retval
1655 } # ac_fn_c_try_compile
1657 # ac_fn_c_try_link LINENO
1658 # -----------------------
1659 # Try to link conftest.$ac_ext, and return whether this succeeded.
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 rm -f conftest.$ac_objext conftest$ac_exeext
1664 if { { ac_try="$ac_link"
1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667 *) ac_try_echo=$ac_try;;
1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670 $as_echo "$ac_try_echo"; } >&5
1671 (eval "$ac_link") 2>conftest.err
1673 if test -s conftest.err; then
1674 grep -v '^ *+' conftest.err >conftest.er1
1675 cat conftest.er1 >&5
1676 mv -f conftest.er1 conftest.err
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; } && {
1680 test -z "$ac_c_werror_flag" ||
1681 test ! -s conftest.err
1682 } && test -s conftest$ac_exeext && {
1683 test "$cross_compiling" = yes ||
1684 test -x conftest$ac_exeext
1688 $as_echo "$as_me: failed program was:" >&5
1689 sed 's/^/| /' conftest.$ac_ext >&5
1693 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1694 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1695 # interfere with the next link command; also delete a directory that is
1696 # left behind by Apple's compiler. We do this before executing the actions.
1697 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1699 as_fn_set_status $ac_retval
1701 } # ac_fn_c_try_link
1703 # ac_fn_c_try_cpp LINENO
1704 # ----------------------
1705 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 if { { ac_try="$ac_cpp conftest.$ac_ext"
1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712 *) ac_try_echo=$ac_try;;
1714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715 $as_echo "$ac_try_echo"; } >&5
1716 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1718 if test -s conftest.err; then
1719 grep -v '^ *+' conftest.err >conftest.er1
1720 cat conftest.er1 >&5
1721 mv -f conftest.er1 conftest.err
1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; } > conftest.i && {
1725 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1726 test ! -s conftest.err
1730 $as_echo "$as_me: failed program was:" >&5
1731 sed 's/^/| /' conftest.$ac_ext >&5
1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736 as_fn_set_status $ac_retval
1740 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1741 # -------------------------------------------------------
1742 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1743 # the include files in INCLUDES and setting the cache variable VAR
1745 ac_fn_c_check_header_mongrel ()
1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748 if eval \${$3+:} false; then :
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1750 $as_echo_n "checking for $2... " >&6; }
1751 if eval \${$3+:} false; then :
1752 $as_echo_n "(cached) " >&6
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1756 $as_echo "$ac_res" >&6; }
1758 # Is the header compilable?
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1760 $as_echo_n "checking $2 usability... " >&6; }
1761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762 /* end confdefs.h. */
1766 if ac_fn_c_try_compile "$LINENO"; then :
1767 ac_header_compiler=yes
1769 ac_header_compiler=no
1771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1773 $as_echo "$ac_header_compiler" >&6; }
1775 # Is the header present?
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1777 $as_echo_n "checking $2 presence... " >&6; }
1778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1779 /* end confdefs.h. */
1782 if ac_fn_c_try_cpp "$LINENO"; then :
1783 ac_header_preproc=yes
1785 ac_header_preproc=no
1787 rm -f conftest.err conftest.i conftest.$ac_ext
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1789 $as_echo "$ac_header_preproc" >&6; }
1791 # So? What about this header?
1792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1795 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1797 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1801 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1803 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1805 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1807 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1809 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1810 ( $as_echo "## ---------------------------------------- ##
1811 ## Report this to pgsql-bugs@postgresql.org ##
1812 ## ---------------------------------------- ##"
1813 ) | sed "s/^/$as_me: WARNING: /" >&2
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1817 $as_echo_n "checking for $2... " >&6; }
1818 if eval \${$3+:} false; then :
1819 $as_echo_n "(cached) " >&6
1821 eval "$3=\$ac_header_compiler"
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1825 $as_echo "$ac_res" >&6; }
1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829 } # ac_fn_c_check_header_mongrel
1831 # ac_fn_c_try_run LINENO
1832 # ----------------------
1833 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1834 # that executables *can* be run.
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 if { { ac_try="$ac_link"
1840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1841 *) ac_try_echo=$ac_try;;
1843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844 $as_echo "$ac_try_echo"; } >&5
1845 (eval "$ac_link") 2>&5
1847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1849 { { case "(($ac_try" in
1850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851 *) ac_try_echo=$ac_try;;
1853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 $as_echo "$ac_try_echo"; } >&5
1855 (eval "$ac_try") 2>&5
1857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858 test $ac_status = 0; }; }; then :
1861 $as_echo "$as_me: program exited with status $ac_status" >&5
1862 $as_echo "$as_me: failed program was:" >&5
1863 sed 's/^/| /' conftest.$ac_ext >&5
1865 ac_retval=$ac_status
1867 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869 as_fn_set_status $ac_retval
1873 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1874 # -------------------------------------------------------
1875 # Tests whether HEADER exists and can be compiled using the include files in
1876 # INCLUDES, setting the cache variable VAR accordingly.
1877 ac_fn_c_check_header_compile ()
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1881 $as_echo_n "checking for $2... " >&6; }
1882 if eval \${$3+:} false; then :
1883 $as_echo_n "(cached) " >&6
1885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1886 /* end confdefs.h. */
1890 if ac_fn_c_try_compile "$LINENO"; then :
1895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1899 $as_echo "$ac_res" >&6; }
1900 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902 } # ac_fn_c_check_header_compile
1904 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1905 # ----------------------------------------------------
1906 # Tries to find if the field MEMBER exists in type AGGR, after including
1907 # INCLUDES, setting cache variable VAR accordingly.
1908 ac_fn_c_check_member ()
1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1912 $as_echo_n "checking for $2.$3... " >&6; }
1913 if eval \${$4+:} false; then :
1914 $as_echo_n "(cached) " >&6
1916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917 /* end confdefs.h. */
1929 if ac_fn_c_try_compile "$LINENO"; then :
1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933 /* end confdefs.h. */
1939 if (sizeof ac_aggr.$3)
1945 if ac_fn_c_try_compile "$LINENO"; then :
1950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956 $as_echo "$ac_res" >&6; }
1957 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1959 } # ac_fn_c_check_member
1961 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1962 # -------------------------------------------
1963 # Tests whether TYPE exists after having included INCLUDES, setting cache
1964 # variable VAR accordingly.
1965 ac_fn_c_check_type ()
1967 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1969 $as_echo_n "checking for $2... " >&6; }
1970 if eval \${$3+:} false; then :
1971 $as_echo_n "(cached) " >&6
1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h. */
1986 if ac_fn_c_try_compile "$LINENO"; then :
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1999 if ac_fn_c_try_compile "$LINENO"; then :
2004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2010 $as_echo "$ac_res" >&6; }
2011 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2013 } # ac_fn_c_check_type
2015 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2016 # --------------------------------------------
2017 # Tries to find the compile-time value of EXPR in a program that includes
2018 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2020 ac_fn_c_compute_int ()
2022 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023 if test "$cross_compiling" = yes; then
2024 # Depending upon the size, compute the lo and hi bounds.
2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h. */
2031 static int test_array [1 - 2 * !(($2) >= 0)];
2033 return test_array [0];
2039 if ac_fn_c_try_compile "$LINENO"; then :
2042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2043 /* end confdefs.h. */
2048 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2050 return test_array [0];
2056 if ac_fn_c_try_compile "$LINENO"; then :
2057 ac_hi=$ac_mid; break
2059 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2060 if test $ac_lo -le $ac_mid; then
2064 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h. */
2075 static int test_array [1 - 2 * !(($2) < 0)];
2077 return test_array [0];
2083 if ac_fn_c_try_compile "$LINENO"; then :
2086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087 /* end confdefs.h. */
2092 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2094 return test_array [0];
2100 if ac_fn_c_try_compile "$LINENO"; then :
2101 ac_lo=$ac_mid; break
2103 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2104 if test $ac_mid -le $ac_hi; then
2108 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2118 # Binary search between lo and hi bounds.
2119 while test "x$ac_lo" != "x$ac_hi"; do
2120 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2122 /* end confdefs.h. */
2127 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2129 return test_array [0];
2135 if ac_fn_c_try_compile "$LINENO"; then :
2138 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2143 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148 /* end confdefs.h. */
2150 static long int longval () { return $2; }
2151 static unsigned long int ulongval () { return $2; }
2158 FILE *f = fopen ("conftest.val", "w");
2163 long int i = longval ();
2166 fprintf (f, "%ld", i);
2170 unsigned long int i = ulongval ();
2173 fprintf (f, "%lu", i);
2175 /* Do not output a trailing newline, as this causes \r\n confusion
2176 on some platforms. */
2177 return ferror (f) || fclose (f) != 0;
2183 if ac_fn_c_try_run "$LINENO"; then :
2184 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2189 conftest.$ac_objext conftest.beam conftest.$ac_ext
2193 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2194 as_fn_set_status $ac_retval
2196 } # ac_fn_c_compute_int
2198 # ac_fn_c_check_func LINENO FUNC VAR
2199 # ----------------------------------
2200 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2201 ac_fn_c_check_func ()
2203 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2205 $as_echo_n "checking for $2... " >&6; }
2206 if eval \${$3+:} false; then :
2207 $as_echo_n "(cached) " >&6
2209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2210 /* end confdefs.h. */
2211 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2212 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2213 #define $2 innocuous_$2
2215 /* System header to define __stub macros and hopefully few prototypes,
2216 which can conflict with char $2 (); below.
2217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2218 <limits.h> exists even on freestanding compilers. */
2221 # include <limits.h>
2223 # include <assert.h>
2228 /* Override any GCC internal prototype to avoid an error.
2229 Use char because int might match the return type of a GCC
2230 builtin and then its argument prototype would still apply. */
2235 /* The GNU C library defines this for functions which it implements
2236 to always fail with ENOSYS. Some functions are actually named
2237 something starting with __ and the normal name is an alias. */
2238 #if defined __stub_$2 || defined __stub___$2
2250 if ac_fn_c_try_link "$LINENO"; then :
2255 rm -f core conftest.err conftest.$ac_objext \
2256 conftest$ac_exeext conftest.$ac_ext
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2260 $as_echo "$ac_res" >&6; }
2261 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2263 } # ac_fn_c_check_func
2265 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2266 # ---------------------------------------------
2267 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2269 ac_fn_c_check_decl ()
2271 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2272 as_decl_name=`echo $2|sed 's/ *(.*//'`
2273 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2275 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2276 if eval \${$3+:} false; then :
2277 $as_echo_n "(cached) " >&6
2279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280 /* end confdefs.h. */
2285 #ifndef $as_decl_name
2287 (void) $as_decl_use;
2289 (void) $as_decl_name;
2297 if ac_fn_c_try_compile "$LINENO"; then :
2302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2306 $as_echo "$ac_res" >&6; }
2307 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2309 } # ac_fn_c_check_decl
2310 cat >config.log <<_ACEOF
2311 This file contains any messages produced by compilers while
2312 running configure, to aid debugging if configure makes a mistake.
2314 It was created by PostgreSQL $as_me 9.4devel, which was
2315 generated by GNU Autoconf 2.69. Invocation command line was
2327 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2328 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2329 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2330 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2331 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2333 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2334 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2336 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2337 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2338 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2339 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2340 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2341 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2342 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2350 test -z "$as_dir" && as_dir=.
2351 $as_echo "PATH: $as_dir"
2367 # Keep a trace of the command line.
2368 # Strip out --no-create and --no-recursion so they do not pile up.
2369 # Strip out --silent because we don't want to record it for future runs.
2370 # Also quote any args containing shell meta-characters.
2371 # Make two passes to allow for proper duplicate-argument suppression.
2375 ac_must_keep_next=false
2381 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2382 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2383 | -silent | --silent | --silen | --sile | --sil)
2386 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2389 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2391 as_fn_append ac_configure_args1 " '$ac_arg'"
2392 if test $ac_must_keep_next = true; then
2393 ac_must_keep_next=false # Got value, back to normal.
2396 *=* | --config-cache | -C | -disable-* | --disable-* \
2397 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2398 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2399 | -with-* | --with-* | -without-* | --without-* | --x)
2400 case "$ac_configure_args0 " in
2401 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2404 -* ) ac_must_keep_next=true ;;
2407 as_fn_append ac_configure_args " '$ac_arg'"
2412 { ac_configure_args0=; unset ac_configure_args0;}
2413 { ac_configure_args1=; unset ac_configure_args1;}
2415 # When interrupted or exit'd, cleanup temporary files, and complete
2416 # config.log. We remove comments because anyway the quotes in there
2417 # would cause problems or look ugly.
2418 # WARNING: Use '\'' to represent an apostrophe within the trap.
2419 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2420 trap 'exit_status=$?
2421 # Save into config.log some information that might help in debugging.
2425 $as_echo "## ---------------- ##
2426 ## Cache variables. ##
2427 ## ---------------- ##"
2429 # The following way of writing the cache mishandles newlines in values,
2431 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2432 eval ac_val=\$$ac_var
2436 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2437 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2440 _ | IFS | as_nl) ;; #(
2441 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2442 *) { eval $ac_var=; unset $ac_var;} ;;
2447 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2448 *${as_nl}ac_space=\ *)
2450 "s/'\''/'\''\\\\'\'''\''/g;
2451 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2454 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2461 $as_echo "## ----------------- ##
2462 ## Output variables. ##
2463 ## ----------------- ##"
2465 for ac_var in $ac_subst_vars
2467 eval ac_val=\$$ac_var
2469 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2471 $as_echo "$ac_var='\''$ac_val'\''"
2475 if test -n "$ac_subst_files"; then
2476 $as_echo "## ------------------- ##
2477 ## File substitutions. ##
2478 ## ------------------- ##"
2480 for ac_var in $ac_subst_files
2482 eval ac_val=\$$ac_var
2484 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2486 $as_echo "$ac_var='\''$ac_val'\''"
2491 if test -s confdefs.h; then
2492 $as_echo "## ----------- ##
2499 test "$ac_signal" != 0 &&
2500 $as_echo "$as_me: caught signal $ac_signal"
2501 $as_echo "$as_me: exit $exit_status"
2503 rm -f core *.core core.conftest.* &&
2504 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2507 for ac_signal in 1 2 13 15; do
2508 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2512 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2513 rm -f -r conftest* confdefs.h
2515 $as_echo "/* confdefs.h */" > confdefs.h
2517 # Predefined preprocessor variables.
2519 cat >>confdefs.h <<_ACEOF
2520 #define PACKAGE_NAME "$PACKAGE_NAME"
2523 cat >>confdefs.h <<_ACEOF
2524 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2527 cat >>confdefs.h <<_ACEOF
2528 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2531 cat >>confdefs.h <<_ACEOF
2532 #define PACKAGE_STRING "$PACKAGE_STRING"
2535 cat >>confdefs.h <<_ACEOF
2536 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2539 cat >>confdefs.h <<_ACEOF
2540 #define PACKAGE_URL "$PACKAGE_URL"
2544 # Let the site file select an alternate cache file if it wants to.
2545 # Prefer an explicitly selected file to automatically selected ones.
2548 if test -n "$CONFIG_SITE"; then
2549 # We do not want a PATH search for config.site.
2550 case $CONFIG_SITE in #((
2551 -*) ac_site_file1=./$CONFIG_SITE;;
2552 */*) ac_site_file1=$CONFIG_SITE;;
2553 *) ac_site_file1=./$CONFIG_SITE;;
2555 elif test "x$prefix" != xNONE; then
2556 ac_site_file1=$prefix/share/config.site
2557 ac_site_file2=$prefix/etc/config.site
2559 ac_site_file1=$ac_default_prefix/share/config.site
2560 ac_site_file2=$ac_default_prefix/etc/config.site
2562 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2564 test "x$ac_site_file" = xNONE && continue
2565 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2567 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2568 sed 's/^/| /' "$ac_site_file" >&5
2570 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2572 as_fn_error $? "failed to load site script $ac_site_file
2573 See \`config.log' for more details" "$LINENO" 5; }
2577 if test -r "$cache_file"; then
2578 # Some versions of bash will fail to source /dev/null (special files
2579 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2580 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2582 $as_echo "$as_me: loading cache $cache_file" >&6;}
2584 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2585 *) . "./$cache_file";;
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2590 $as_echo "$as_me: creating cache $cache_file" >&6;}
2594 # Check that the precious variables saved in the cache have kept the same
2596 ac_cache_corrupted=false
2597 for ac_var in $ac_precious_vars; do
2598 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2599 eval ac_new_set=\$ac_env_${ac_var}_set
2600 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2601 eval ac_new_val=\$ac_env_${ac_var}_value
2602 case $ac_old_set,$ac_new_set in
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2605 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2606 ac_cache_corrupted=: ;;
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2609 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2610 ac_cache_corrupted=: ;;
2613 if test "x$ac_old_val" != "x$ac_new_val"; then
2614 # differences in whitespace do not lead to failure.
2615 ac_old_val_w=`echo x $ac_old_val`
2616 ac_new_val_w=`echo x $ac_new_val`
2617 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2619 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2620 ac_cache_corrupted=:
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2623 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2624 eval $ac_var=\$ac_old_val
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2627 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2629 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2632 # Pass precious variables to config.status.
2633 if test "$ac_new_set" = set; then
2635 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2636 *) ac_arg=$ac_var=$ac_new_val ;;
2638 case " $ac_configure_args " in
2639 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2640 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2644 if $ac_cache_corrupted; then
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2646 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2648 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2649 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2651 ## -------------------- ##
2652 ## Main body of script. ##
2653 ## -------------------- ##
2656 ac_cpp='$CPP $CPPFLAGS'
2657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2667 for ac_dir in config "$srcdir"/config; do
2668 if test -f "$ac_dir/install-sh"; then
2670 ac_install_sh="$ac_aux_dir/install-sh -c"
2672 elif test -f "$ac_dir/install.sh"; then
2674 ac_install_sh="$ac_aux_dir/install.sh -c"
2676 elif test -f "$ac_dir/shtool"; then
2678 ac_install_sh="$ac_aux_dir/shtool install -c"
2682 if test -z "$ac_aux_dir"; then
2683 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2686 # These three variables are undocumented and unsupported,
2687 # and are intended to be withdrawn in a future Autoconf release.
2688 # They can cause serious problems if a builder's source tree is in a directory
2689 # whose full name contains unusual characters.
2690 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2691 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2692 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2696 configure_args=$ac_configure_args
2699 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`
2702 cat >>confdefs.h <<_ACEOF
2703 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2710 # Check whether --with-extra-version was given.
2711 if test "${with_extra_version+set}" = set; then :
2712 withval=$with_extra_version;
2715 as_fn_error $? "argument required for --with-extra-version option" "$LINENO" 5
2718 as_fn_error $? "argument required for --with-extra-version option" "$LINENO" 5
2721 PG_VERSION="$PACKAGE_VERSION$withval"
2726 PG_VERSION="$PACKAGE_VERSION"
2731 cat >>confdefs.h <<_ACEOF
2732 #define PG_VERSION "$PG_VERSION"
2736 # Make sure we can run config.sub.
2737 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2738 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2741 $as_echo_n "checking build system type... " >&6; }
2742 if ${ac_cv_build+:} false; then :
2743 $as_echo_n "(cached) " >&6
2745 ac_build_alias=$build_alias
2746 test "x$ac_build_alias" = x &&
2747 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2748 test "x$ac_build_alias" = x &&
2749 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2750 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2751 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2755 $as_echo "$ac_cv_build" >&6; }
2756 case $ac_cv_build in
2758 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2761 ac_save_IFS=$IFS; IFS='-'
2767 # Remember, the first character of IFS is used to create $*,
2768 # except with old shells:
2771 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2775 $as_echo_n "checking host system type... " >&6; }
2776 if ${ac_cv_host+:} false; then :
2777 $as_echo_n "(cached) " >&6
2779 if test "x$host_alias" = x; then
2780 ac_cv_host=$ac_cv_build
2782 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2783 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2788 $as_echo "$ac_cv_host" >&6; }
2791 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2794 ac_save_IFS=$IFS; IFS='-'
2800 # Remember, the first character of IFS is used to create $*,
2801 # except with old shells:
2804 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which template to use" >&5
2810 $as_echo_n "checking which template to use... " >&6; }
2815 # Check whether --with-template was given.
2816 if test "${with_template+set}" = set; then :
2817 withval=$with_template;
2820 as_fn_error $? "argument required for --with-template option" "$LINENO" 5
2823 as_fn_error $? "argument required for --with-template option" "$LINENO" 5
2828 list) echo; ls "$srcdir/src/template"; exit;;
2829 *) if test -f "$srcdir/src/template/$with_template" ; then
2832 as_fn_error $? "'$withval' is not a valid template name. Use 'list' for a list." "$LINENO" 5
2841 # --with-template not given
2844 aix*) template=aix ;;
2845 cygwin*) template=cygwin ;;
2846 darwin*) template=darwin ;;
2847 dragonfly*) template=netbsd ;;
2848 freebsd*) template=freebsd ;;
2849 hpux*) template=hpux ;;
2850 linux*|gnu*|k*bsd*-gnu)
2852 mingw*) template=win32 ;;
2853 netbsd*) template=netbsd ;;
2854 openbsd*) template=openbsd ;;
2855 osf*) template=osf ;;
2856 sco*) template=sco ;;
2857 solaris*) template=solaris ;;
2858 sysv5*) template=unixware ;;
2861 if test x"$template" = x"" ; then
2863 *******************************************************************
2864 PostgreSQL has apparently not been ported to your platform yet.
2865 To try a manual configuration, look into the src/template directory
2866 for a similar platform and use the '--with-template=' option.
2868 Please also contact <pgsql-bugs@postgresql.org> to see about
2869 rectifying this. Include the above 'checking host system type...'
2871 *******************************************************************
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $template" >&5
2881 $as_echo "$template" >&6; }
2886 # Initialize default assumption that we do not need separate assembly code
2887 # for TAS (test-and-set). This can be overridden by the template file
2888 # when it's executed.
2895 ## Command line options
2899 # Add non-standard directories to the include path
2904 # Check whether --with-includes was given.
2905 if test "${with_includes+set}" = set; then :
2906 withval=$with_includes;
2909 as_fn_error $? "argument required for --with-includes option" "$LINENO" 5
2912 as_fn_error $? "argument required for --with-includes option" "$LINENO" 5
2925 # Add non-standard directories to the library search path
2930 # Check whether --with-libraries was given.
2931 if test "${with_libraries+set}" = set; then :
2932 withval=$with_libraries;
2935 as_fn_error $? "argument required for --with-libraries option" "$LINENO" 5
2938 as_fn_error $? "argument required for --with-libraries option" "$LINENO" 5
2941 LIBRARY_DIRS=$withval
2952 # Check whether --with-libs was given.
2953 if test "${with_libs+set}" = set; then :
2957 as_fn_error $? "argument required for --with-libs option" "$LINENO" 5
2960 as_fn_error $? "argument required for --with-libs option" "$LINENO" 5
2963 LIBRARY_DIRS=$withval
2973 # 64-bit integer date/time storage: enabled by default.
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with 64-bit integer date/time support" >&5
2976 $as_echo_n "checking whether to build with 64-bit integer date/time support... " >&6; }
2979 # Check whether --enable-integer-datetimes was given.
2980 if test "${enable_integer_datetimes+set}" = set; then :
2981 enableval=$enable_integer_datetimes;
2985 $as_echo "#define USE_INTEGER_DATETIMES 1" >>confdefs.h
2992 as_fn_error $? "no argument expected for --enable-integer-datetimes option" "$LINENO" 5
2997 enable_integer_datetimes=yes
2999 $as_echo "#define USE_INTEGER_DATETIMES 1" >>confdefs.h
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_integer_datetimes" >&5
3005 $as_echo "$enable_integer_datetimes" >&6; }
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is wanted" >&5
3012 $as_echo_n "checking whether NLS is wanted... " >&6; }
3015 # Check whether --enable-nls was given.
3016 if test "${enable_nls+set}" = set; then :
3017 enableval=$enable_nls;
3027 WANTED_LANGUAGES=$enableval
3037 if test "$enable_nls" = yes; then
3039 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nls" >&5
3044 $as_echo "$enable_nls" >&6; }
3049 # Default port number (--with-pgport), default 5432
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default port number" >&5
3052 $as_echo_n "checking for default port number... " >&6; }
3056 # Check whether --with-pgport was given.
3057 if test "${with_pgport+set}" = set; then :
3058 withval=$with_pgport;
3061 as_fn_error $? "argument required for --with-pgport option" "$LINENO" 5
3064 as_fn_error $? "argument required for --with-pgport option" "$LINENO" 5
3067 default_port=$withval
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $default_port" >&5
3077 $as_echo "$default_port" >&6; }
3078 # Need both of these because some places want an integer and some a string
3080 cat >>confdefs.h <<_ACEOF
3081 #define DEF_PGPORT ${default_port}
3085 cat >>confdefs.h <<_ACEOF
3086 #define DEF_PGPORT_STR "${default_port}"
3092 # '-rpath'-like feature can be disabled
3096 # Check whether --enable-rpath was given.
3097 if test "${enable_rpath+set}" = set; then :
3098 enableval=$enable_rpath;
3107 as_fn_error $? "no argument expected for --enable-rpath option" "$LINENO" 5
3124 # Check whether --enable-spinlocks was given.
3125 if test "${enable_spinlocks+set}" = set; then :
3126 enableval=$enable_spinlocks;
3135 as_fn_error $? "no argument expected for --enable-spinlocks option" "$LINENO" 5
3140 enable_spinlocks=yes
3147 # --enable-debug adds -g to compiler flags
3151 # Check whether --enable-debug was given.
3152 if test "${enable_debug+set}" = set; then :
3153 enableval=$enable_debug;
3162 as_fn_error $? "no argument expected for --enable-debug option" "$LINENO" 5
3175 # --enable-profiling enables gcc profiling
3179 # Check whether --enable-profiling was given.
3180 if test "${enable_profiling+set}" = set; then :
3181 enableval=$enable_profiling;
3190 as_fn_error $? "no argument expected for --enable-profiling option" "$LINENO" 5
3202 # --enable-coverage enables generation of code coverage metrics with gcov
3206 # Check whether --enable-coverage was given.
3207 if test "${enable_coverage+set}" = set; then :
3208 enableval=$enable_coverage;
3213 # Extract the first word of "$ac_prog", so it can be a program name with args.
3214 set dummy $ac_prog; ac_word=$2
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3216 $as_echo_n "checking for $ac_word... " >&6; }
3217 if ${ac_cv_prog_GCOV+:} false; then :
3218 $as_echo_n "(cached) " >&6
3220 if test -n "$GCOV"; then
3221 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
3223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227 test -z "$as_dir" && as_dir=.
3228 for ac_exec_ext in '' $ac_executable_extensions; do
3229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3230 ac_cv_prog_GCOV="$ac_prog"
3231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3240 GCOV=$ac_cv_prog_GCOV
3241 if test -n "$GCOV"; then
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3243 $as_echo "$GCOV" >&6; }
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3246 $as_echo "no" >&6; }
3250 test -n "$GCOV" && break
3253 if test -z "$GCOV"; then
3254 as_fn_error $? "gcov not found" "$LINENO" 5
3258 # Extract the first word of "$ac_prog", so it can be a program name with args.
3259 set dummy $ac_prog; ac_word=$2
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3261 $as_echo_n "checking for $ac_word... " >&6; }
3262 if ${ac_cv_prog_LCOV+:} false; then :
3263 $as_echo_n "(cached) " >&6
3265 if test -n "$LCOV"; then
3266 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
3268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272 test -z "$as_dir" && as_dir=.
3273 for ac_exec_ext in '' $ac_executable_extensions; do
3274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3275 ac_cv_prog_LCOV="$ac_prog"
3276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3285 LCOV=$ac_cv_prog_LCOV
3286 if test -n "$LCOV"; then
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3288 $as_echo "$LCOV" >&6; }
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291 $as_echo "no" >&6; }
3295 test -n "$LCOV" && break
3298 if test -z "$LCOV"; then
3299 as_fn_error $? "lcov not found" "$LINENO" 5
3301 for ac_prog in genhtml
3303 # Extract the first word of "$ac_prog", so it can be a program name with args.
3304 set dummy $ac_prog; ac_word=$2
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3306 $as_echo_n "checking for $ac_word... " >&6; }
3307 if ${ac_cv_prog_GENHTML+:} false; then :
3308 $as_echo_n "(cached) " >&6
3310 if test -n "$GENHTML"; then
3311 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
3313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317 test -z "$as_dir" && as_dir=.
3318 for ac_exec_ext in '' $ac_executable_extensions; do
3319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3320 ac_cv_prog_GENHTML="$ac_prog"
3321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3330 GENHTML=$ac_cv_prog_GENHTML
3331 if test -n "$GENHTML"; then
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3333 $as_echo "$GENHTML" >&6; }
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3336 $as_echo "no" >&6; }
3340 test -n "$GENHTML" && break
3343 if test -z "$GENHTML"; then
3344 as_fn_error $? "genhtml not found" "$LINENO" 5
3351 as_fn_error $? "no argument expected for --enable-coverage option" "$LINENO" 5
3368 # Check whether --enable-dtrace was given.
3369 if test "${enable_dtrace+set}" = set; then :
3370 enableval=$enable_dtrace;
3373 for ac_prog in dtrace
3375 # Extract the first word of "$ac_prog", so it can be a program name with args.
3376 set dummy $ac_prog; ac_word=$2
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3378 $as_echo_n "checking for $ac_word... " >&6; }
3379 if ${ac_cv_prog_DTRACE+:} false; then :
3380 $as_echo_n "(cached) " >&6
3382 if test -n "$DTRACE"; then
3383 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
3385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3389 test -z "$as_dir" && as_dir=.
3390 for ac_exec_ext in '' $ac_executable_extensions; do
3391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3392 ac_cv_prog_DTRACE="$ac_prog"
3393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3402 DTRACE=$ac_cv_prog_DTRACE
3403 if test -n "$DTRACE"; then
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
3405 $as_echo "$DTRACE" >&6; }
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3408 $as_echo "no" >&6; }
3412 test -n "$DTRACE" && break
3415 if test -z "$DTRACE"; then
3416 as_fn_error $? "dtrace not found" "$LINENO" 5
3424 as_fn_error $? "no argument expected for --enable-dtrace option" "$LINENO" 5
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for block size" >&5
3440 $as_echo_n "checking for block size... " >&6; }
3444 # Check whether --with-blocksize was given.
3445 if test "${with_blocksize+set}" = set; then :
3446 withval=$with_blocksize;
3449 as_fn_error $? "argument required for --with-blocksize option" "$LINENO" 5
3452 as_fn_error $? "argument required for --with-blocksize option" "$LINENO" 5
3464 case ${blocksize} in
3471 *) as_fn_error $? "Invalid block size. Allowed values are 1,2,4,8,16,32." "$LINENO" 5
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${blocksize}kB" >&5
3474 $as_echo "${blocksize}kB" >&6; }
3477 cat >>confdefs.h <<_ACEOF
3478 #define BLCKSZ ${BLCKSZ}
3483 # Relation segment size
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for segment size" >&5
3486 $as_echo_n "checking for segment size... " >&6; }
3490 # Check whether --with-segsize was given.
3491 if test "${with_segsize+set}" = set; then :
3492 withval=$with_segsize;
3495 as_fn_error $? "argument required for --with-segsize option" "$LINENO" 5
3498 as_fn_error $? "argument required for --with-segsize option" "$LINENO" 5
3510 # this expression is set up to avoid unnecessary integer overflow
3511 # blocksize is already guaranteed to be a factor of 1024
3512 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
3513 test $? -eq 0 || exit 1
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${segsize}GB" >&5
3515 $as_echo "${segsize}GB" >&6; }
3518 cat >>confdefs.h <<_ACEOF
3519 #define RELSEG_SIZE ${RELSEG_SIZE}
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAL block size" >&5
3527 $as_echo_n "checking for WAL block size... " >&6; }
3531 # Check whether --with-wal-blocksize was given.
3532 if test "${with_wal_blocksize+set}" = set; then :
3533 withval=$with_wal_blocksize;
3536 as_fn_error $? "argument required for --with-wal-blocksize option" "$LINENO" 5
3539 as_fn_error $? "argument required for --with-wal-blocksize option" "$LINENO" 5
3542 wal_blocksize=$withval
3551 case ${wal_blocksize} in
3552 1) XLOG_BLCKSZ=1024;;
3553 2) XLOG_BLCKSZ=2048;;
3554 4) XLOG_BLCKSZ=4096;;
3555 8) XLOG_BLCKSZ=8192;;
3556 16) XLOG_BLCKSZ=16384;;
3557 32) XLOG_BLCKSZ=32768;;
3558 64) XLOG_BLCKSZ=65536;;
3559 *) as_fn_error $? "Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." "$LINENO" 5
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${wal_blocksize}kB" >&5
3562 $as_echo "${wal_blocksize}kB" >&6; }
3565 cat >>confdefs.h <<_ACEOF
3566 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAL segment size" >&5
3574 $as_echo_n "checking for WAL segment size... " >&6; }
3578 # Check whether --with-wal-segsize was given.
3579 if test "${with_wal_segsize+set}" = set; then :
3580 withval=$with_wal_segsize;
3583 as_fn_error $? "argument required for --with-wal-segsize option" "$LINENO" 5
3586 as_fn_error $? "argument required for --with-wal-segsize option" "$LINENO" 5
3589 wal_segsize=$withval
3598 case ${wal_segsize} in
3606 *) as_fn_error $? "Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." "$LINENO" 5
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${wal_segsize}MB" >&5
3609 $as_echo "${wal_segsize}MB" >&6; }
3612 cat >>confdefs.h <<_ACEOF
3613 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
3621 # For historical reasons you can also use --with-CC to specify the C compiler
3622 # to use, although the standard way to do this is to set the CC environment
3627 # Check whether --with-CC was given.
3628 if test "${with_CC+set}" = set; then :
3632 as_fn_error $? "argument required for --with-CC option" "$LINENO" 5
3635 as_fn_error $? "argument required for --with-CC option" "$LINENO" 5
3647 aix) pgac_cc_list="gcc xlc";;
3648 *) pgac_cc_list="gcc cc";;
3652 ac_cpp='$CPP $CPPFLAGS'
3653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3656 if test -n "$ac_tool_prefix"; then
3657 for ac_prog in $pgac_cc_list
3659 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3660 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3662 $as_echo_n "checking for $ac_word... " >&6; }
3663 if ${ac_cv_prog_CC+:} false; then :
3664 $as_echo_n "(cached) " >&6
3666 if test -n "$CC"; then
3667 ac_cv_prog_CC="$CC" # Let the user override the test.
3669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3673 test -z "$as_dir" && as_dir=.
3674 for ac_exec_ext in '' $ac_executable_extensions; do
3675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3676 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3687 if test -n "$CC"; then
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3689 $as_echo "$CC" >&6; }
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3692 $as_echo "no" >&6; }
3696 test -n "$CC" && break
3699 if test -z "$CC"; then
3701 for ac_prog in $pgac_cc_list
3703 # Extract the first word of "$ac_prog", so it can be a program name with args.
3704 set dummy $ac_prog; ac_word=$2
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3706 $as_echo_n "checking for $ac_word... " >&6; }
3707 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3708 $as_echo_n "(cached) " >&6
3710 if test -n "$ac_ct_CC"; then
3711 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3717 test -z "$as_dir" && as_dir=.
3718 for ac_exec_ext in '' $ac_executable_extensions; do
3719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3720 ac_cv_prog_ac_ct_CC="$ac_prog"
3721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3730 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3731 if test -n "$ac_ct_CC"; then
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3733 $as_echo "$ac_ct_CC" >&6; }
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3736 $as_echo "no" >&6; }
3740 test -n "$ac_ct_CC" && break
3743 if test "x$ac_ct_CC" = x; then
3746 case $cross_compiling:$ac_tool_warned in
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3749 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3750 ac_tool_warned=yes ;;
3757 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3758 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3759 as_fn_error $? "no acceptable C compiler found in \$PATH
3760 See \`config.log' for more details" "$LINENO" 5; }
3762 # Provide some information about the compiler.
3763 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3766 for ac_option in --version -v -V -qversion; do
3767 { { ac_try="$ac_compiler $ac_option >&5"
3769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3770 *) ac_try_echo=$ac_try;;
3772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3773 $as_echo "$ac_try_echo"; } >&5
3774 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3776 if test -s conftest.err; then
3778 ... rest of stderr output deleted ...
3779 10q' conftest.err >conftest.er1
3780 cat conftest.er1 >&5
3782 rm -f conftest.er1 conftest.err
3783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3784 test $ac_status = 0; }
3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788 /* end confdefs.h. */
3798 ac_clean_files_save=$ac_clean_files
3799 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3800 # Try to create an executable without -o first, disregard a.out.
3801 # It will help us diagnose broken compilers, and finding out an intuition
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3804 $as_echo_n "checking whether the C compiler works... " >&6; }
3805 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3807 # The possible output files:
3808 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3811 for ac_file in $ac_files
3814 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3815 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3820 if { { ac_try="$ac_link_default"
3822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3823 *) ac_try_echo=$ac_try;;
3825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3826 $as_echo "$ac_try_echo"; } >&5
3827 (eval "$ac_link_default") 2>&5
3829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3830 test $ac_status = 0; }; then :
3831 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3832 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3833 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3834 # so that the user can short-circuit this test for compilers unknown to
3836 for ac_file in $ac_files ''
3838 test -f "$ac_file" || continue
3840 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3843 # We found the default executable, but exeext='' is most
3847 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3849 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3851 # We set ac_cv_exeext here because the later test for it is not
3852 # safe: cross compilers may not add the suffix if given an `-o'
3853 # argument, so we may need to know it at that point already.
3854 # Even if this section looks crufty: it has the advantage of
3861 test "$ac_cv_exeext" = no && ac_cv_exeext=
3866 if test -z "$ac_file"; then :
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3868 $as_echo "no" >&6; }
3869 $as_echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3872 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3873 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3874 as_fn_error 77 "C compiler cannot create executables
3875 See \`config.log' for more details" "$LINENO" 5; }
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3878 $as_echo "yes" >&6; }
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3881 $as_echo_n "checking for C compiler default output file name... " >&6; }
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3883 $as_echo "$ac_file" >&6; }
3884 ac_exeext=$ac_cv_exeext
3886 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3887 ac_clean_files=$ac_clean_files_save
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3889 $as_echo_n "checking for suffix of executables... " >&6; }
3890 if { { ac_try="$ac_link"
3892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893 *) ac_try_echo=$ac_try;;
3895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3896 $as_echo "$ac_try_echo"; } >&5
3897 (eval "$ac_link") 2>&5
3899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3900 test $ac_status = 0; }; then :
3901 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3902 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3903 # work properly (i.e., refer to `conftest.exe'), while it won't with
3905 for ac_file in conftest.exe conftest conftest.*; do
3906 test -f "$ac_file" || continue
3908 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3909 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3915 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3916 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3917 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3918 See \`config.log' for more details" "$LINENO" 5; }
3920 rm -f conftest conftest$ac_cv_exeext
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3922 $as_echo "$ac_cv_exeext" >&6; }
3924 rm -f conftest.$ac_ext
3925 EXEEXT=$ac_cv_exeext
3927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3928 /* end confdefs.h. */
3933 FILE *f = fopen ("conftest.out", "w");
3934 return ferror (f) || fclose (f) != 0;
3940 ac_clean_files="$ac_clean_files conftest.out"
3941 # Check that the compiler produces executables we can run. If not, either
3942 # the compiler is broken, or we cross compile.
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3944 $as_echo_n "checking whether we are cross compiling... " >&6; }
3945 if test "$cross_compiling" != yes; then
3946 { { ac_try="$ac_link"
3948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3949 *) ac_try_echo=$ac_try;;
3951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3952 $as_echo "$ac_try_echo"; } >&5
3953 (eval "$ac_link") 2>&5
3955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3956 test $ac_status = 0; }
3957 if { ac_try='./conftest$ac_cv_exeext'
3958 { { case "(($ac_try" in
3959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3960 *) ac_try_echo=$ac_try;;
3962 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3963 $as_echo "$ac_try_echo"; } >&5
3964 (eval "$ac_try") 2>&5
3966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3967 test $ac_status = 0; }; }; then
3970 if test "$cross_compiling" = maybe; then
3973 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3974 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3975 as_fn_error $? "cannot run C compiled programs.
3976 If you meant to cross compile, use \`--host'.
3977 See \`config.log' for more details" "$LINENO" 5; }
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3982 $as_echo "$cross_compiling" >&6; }
3984 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3985 ac_clean_files=$ac_clean_files_save
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3987 $as_echo_n "checking for suffix of object files... " >&6; }
3988 if ${ac_cv_objext+:} false; then :
3989 $as_echo_n "(cached) " >&6
3991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3992 /* end confdefs.h. */
4002 rm -f conftest.o conftest.obj
4003 if { { ac_try="$ac_compile"
4005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4006 *) ac_try_echo=$ac_try;;
4008 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4009 $as_echo "$ac_try_echo"; } >&5
4010 (eval "$ac_compile") 2>&5
4012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4013 test $ac_status = 0; }; then :
4014 for ac_file in conftest.o conftest.obj conftest.*; do
4015 test -f "$ac_file" || continue;
4017 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4018 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4023 $as_echo "$as_me: failed program was:" >&5
4024 sed 's/^/| /' conftest.$ac_ext >&5
4026 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4028 as_fn_error $? "cannot compute suffix of object files: cannot compile
4029 See \`config.log' for more details" "$LINENO" 5; }
4031 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4034 $as_echo "$ac_cv_objext" >&6; }
4035 OBJEXT=$ac_cv_objext
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4038 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4039 if ${ac_cv_c_compiler_gnu+:} false; then :
4040 $as_echo_n "(cached) " >&6
4042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4043 /* end confdefs.h. */
4056 if ac_fn_c_try_compile "$LINENO"; then :
4061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4062 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4066 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4067 if test $ac_compiler_gnu = yes; then
4072 ac_test_CFLAGS=${CFLAGS+set}
4073 ac_save_CFLAGS=$CFLAGS
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4075 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4076 if ${ac_cv_prog_cc_g+:} false; then :
4077 $as_echo_n "(cached) " >&6
4079 ac_save_c_werror_flag=$ac_c_werror_flag
4080 ac_c_werror_flag=yes
4083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4084 /* end confdefs.h. */
4094 if ac_fn_c_try_compile "$LINENO"; then :
4098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4099 /* end confdefs.h. */
4109 if ac_fn_c_try_compile "$LINENO"; then :
4112 ac_c_werror_flag=$ac_save_c_werror_flag
4114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4115 /* end confdefs.h. */
4125 if ac_fn_c_try_compile "$LINENO"; then :
4128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4133 ac_c_werror_flag=$ac_save_c_werror_flag
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4136 $as_echo "$ac_cv_prog_cc_g" >&6; }
4137 if test "$ac_test_CFLAGS" = set; then
4138 CFLAGS=$ac_save_CFLAGS
4139 elif test $ac_cv_prog_cc_g = yes; then
4140 if test "$GCC" = yes; then
4146 if test "$GCC" = yes; then
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4153 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4154 if ${ac_cv_prog_cc_c89+:} false; then :
4155 $as_echo_n "(cached) " >&6
4157 ac_cv_prog_cc_c89=no
4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160 /* end confdefs.h. */
4164 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4165 struct buf { int x; };
4166 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4167 static char *e (p, i)
4173 static char *f (char * (*g) (char **, int), char **p, ...)
4178 s = g (p, va_arg (v,int));
4183 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4184 function prototypes and stuff, but not '\xHH' hex character constants.
4185 These don't provoke an error unfortunately, instead are silently treated
4186 as 'x'. The following induces an error, until -std is added to get
4187 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4188 array size at least. It's necessary to write '\x00'==0 to get something
4189 that's true only with -std. */
4190 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4192 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4193 inside strings and character constants. */
4195 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4197 int test (int i, double x);
4198 struct s1 {int (*f) (int a);};
4199 struct s2 {int (*f) (double a);};
4200 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4206 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4211 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4212 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4214 CC="$ac_save_CC $ac_arg"
4215 if ac_fn_c_try_compile "$LINENO"; then :
4216 ac_cv_prog_cc_c89=$ac_arg
4218 rm -f core conftest.err conftest.$ac_objext
4219 test "x$ac_cv_prog_cc_c89" != "xno" && break
4221 rm -f conftest.$ac_ext
4226 case "x$ac_cv_prog_cc_c89" in
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4229 $as_echo "none needed" >&6; } ;;
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4232 $as_echo "unsupported" >&6; } ;;
4234 CC="$CC $ac_cv_prog_cc_c89"
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4236 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4238 if test "x$ac_cv_prog_cc_c89" != xno; then :
4243 ac_cpp='$CPP $CPPFLAGS'
4244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4249 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
4250 # but has idiosyncrasies of its own. We assume icc will define
4251 # __INTEL_COMPILER regardless of CFLAGS.
4253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4254 /* end confdefs.h. */
4259 #ifndef __INTEL_COMPILER
4266 if ac_fn_c_try_compile "$LINENO"; then :
4271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4273 # Check if it's Sun Studio compiler. We assume that
4274 # __SUNPRO_C will be defined for Sun Studio compilers
4275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4276 /* end confdefs.h. */
4288 if ac_fn_c_try_compile "$LINENO"; then :
4293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4302 . "$srcdir/src/template/$template" || exit
4304 # CFLAGS are selected so:
4305 # If the user specifies something in the environment, that is used.
4306 # else: If the template file set something, that is used.
4307 # else: If coverage was enabled, don't set anything.
4308 # else: If the compiler is GCC, then we use -O2.
4309 # else: If the compiler is something else, then we use -O, unless debugging.
4311 if test "$ac_env_CFLAGS_set" = set; then
4312 CFLAGS=$ac_env_CFLAGS_value
4313 elif test "${CFLAGS+set}" = set; then
4314 : # (keep what template set)
4315 elif test "$enable_coverage" = yes; then
4316 : # no optimization by default
4317 elif test "$GCC" = yes; then
4320 # if the user selected debug mode, don't use -O
4321 if test "$enable_debug" != yes; then
4326 # set CFLAGS_VECTOR from the environment, if available
4327 if test "$ac_env_CFLAGS_VECTOR_set" = set; then
4328 CFLAGS_VECTOR=$ac_env_CFLAGS_VECTOR_value
4331 # Some versions of GCC support some additional useful warning flags.
4332 # Check whether they are supported, and add them to CFLAGS if so.
4333 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
4334 # but has its own. Also check other compiler-specific flags here.
4336 if test "$GCC" = yes -a "$ICC" = no; then
4337 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
4338 # These work in some but not all gcc versions
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5
4340 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
4341 if ${pgac_cv_prog_cc_cflags__Wdeclaration_after_statement+:} false; then :
4342 $as_echo_n "(cached) " >&6
4344 pgac_save_CFLAGS=$CFLAGS
4345 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
4346 ac_save_c_werror_flag=$ac_c_werror_flag
4347 ac_c_werror_flag=yes
4348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349 /* end confdefs.h. */
4359 if ac_fn_c_try_compile "$LINENO"; then :
4360 pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=yes
4362 pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=no
4364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4365 ac_c_werror_flag=$ac_save_c_werror_flag
4366 CFLAGS="$pgac_save_CFLAGS"
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&5
4369 $as_echo "$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&6; }
4370 if test x"$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" = x"yes"; then
4371 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wendif-labels" >&5
4375 $as_echo_n "checking whether $CC supports -Wendif-labels... " >&6; }
4376 if ${pgac_cv_prog_cc_cflags__Wendif_labels+:} false; then :
4377 $as_echo_n "(cached) " >&6
4379 pgac_save_CFLAGS=$CFLAGS
4380 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
4381 ac_save_c_werror_flag=$ac_c_werror_flag
4382 ac_c_werror_flag=yes
4383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4384 /* end confdefs.h. */
4394 if ac_fn_c_try_compile "$LINENO"; then :
4395 pgac_cv_prog_cc_cflags__Wendif_labels=yes
4397 pgac_cv_prog_cc_cflags__Wendif_labels=no
4399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4400 ac_c_werror_flag=$ac_save_c_werror_flag
4401 CFLAGS="$pgac_save_CFLAGS"
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__Wendif_labels" >&5
4404 $as_echo "$pgac_cv_prog_cc_cflags__Wendif_labels" >&6; }
4405 if test x"$pgac_cv_prog_cc_cflags__Wendif_labels" = x"yes"; then
4406 CFLAGS="$CFLAGS -Wendif-labels"
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wmissing-format-attribute" >&5
4410 $as_echo_n "checking whether $CC supports -Wmissing-format-attribute... " >&6; }
4411 if ${pgac_cv_prog_cc_cflags__Wmissing_format_attribute+:} false; then :
4412 $as_echo_n "(cached) " >&6
4414 pgac_save_CFLAGS=$CFLAGS
4415 CFLAGS="$pgac_save_CFLAGS -Wmissing-format-attribute"
4416 ac_save_c_werror_flag=$ac_c_werror_flag
4417 ac_c_werror_flag=yes
4418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4419 /* end confdefs.h. */
4429 if ac_fn_c_try_compile "$LINENO"; then :
4430 pgac_cv_prog_cc_cflags__Wmissing_format_attribute=yes
4432 pgac_cv_prog_cc_cflags__Wmissing_format_attribute=no
4434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4435 ac_c_werror_flag=$ac_save_c_werror_flag
4436 CFLAGS="$pgac_save_CFLAGS"
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&5
4439 $as_echo "$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&6; }
4440 if test x"$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" = x"yes"; then
4441 CFLAGS="$CFLAGS -Wmissing-format-attribute"
4444 # This was included in -Wall/-Wformat in older GCC versions
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wformat-security" >&5
4446 $as_echo_n "checking whether $CC supports -Wformat-security... " >&6; }
4447 if ${pgac_cv_prog_cc_cflags__Wformat_security+:} false; then :
4448 $as_echo_n "(cached) " >&6
4450 pgac_save_CFLAGS=$CFLAGS
4451 CFLAGS="$pgac_save_CFLAGS -Wformat-security"
4452 ac_save_c_werror_flag=$ac_c_werror_flag
4453 ac_c_werror_flag=yes
4454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455 /* end confdefs.h. */
4465 if ac_fn_c_try_compile "$LINENO"; then :
4466 pgac_cv_prog_cc_cflags__Wformat_security=yes
4468 pgac_cv_prog_cc_cflags__Wformat_security=no
4470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4471 ac_c_werror_flag=$ac_save_c_werror_flag
4472 CFLAGS="$pgac_save_CFLAGS"
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__Wformat_security" >&5
4475 $as_echo "$pgac_cv_prog_cc_cflags__Wformat_security" >&6; }
4476 if test x"$pgac_cv_prog_cc_cflags__Wformat_security" = x"yes"; then
4477 CFLAGS="$CFLAGS -Wformat-security"
4480 # Disable strict-aliasing rules; needed for gcc 3.3+
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fno-strict-aliasing" >&5
4482 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4483 if ${pgac_cv_prog_cc_cflags__fno_strict_aliasing+:} false; then :
4484 $as_echo_n "(cached) " >&6
4486 pgac_save_CFLAGS=$CFLAGS
4487 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4488 ac_save_c_werror_flag=$ac_c_werror_flag
4489 ac_c_werror_flag=yes
4490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4491 /* end confdefs.h. */
4501 if ac_fn_c_try_compile "$LINENO"; then :
4502 pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4504 pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4507 ac_c_werror_flag=$ac_save_c_werror_flag
4508 CFLAGS="$pgac_save_CFLAGS"
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4511 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4512 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4513 CFLAGS="$CFLAGS -fno-strict-aliasing"
4516 # Disable optimizations that assume no overflow; needed for gcc 4.3+
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fwrapv" >&5
4518 $as_echo_n "checking whether $CC supports -fwrapv... " >&6; }
4519 if ${pgac_cv_prog_cc_cflags__fwrapv+:} false; then :
4520 $as_echo_n "(cached) " >&6
4522 pgac_save_CFLAGS=$CFLAGS
4523 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4524 ac_save_c_werror_flag=$ac_c_werror_flag
4525 ac_c_werror_flag=yes
4526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4527 /* end confdefs.h. */
4537 if ac_fn_c_try_compile "$LINENO"; then :
4538 pgac_cv_prog_cc_cflags__fwrapv=yes
4540 pgac_cv_prog_cc_cflags__fwrapv=no
4542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4543 ac_c_werror_flag=$ac_save_c_werror_flag
4544 CFLAGS="$pgac_save_CFLAGS"
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__fwrapv" >&5
4547 $as_echo "$pgac_cv_prog_cc_cflags__fwrapv" >&6; }
4548 if test x"$pgac_cv_prog_cc_cflags__fwrapv" = x"yes"; then
4549 CFLAGS="$CFLAGS -fwrapv"
4552 # Disable FP optimizations that cause various errors on gcc 4.5+ or maybe 4.6+
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fexcess-precision=standard" >&5
4554 $as_echo_n "checking whether $CC supports -fexcess-precision=standard... " >&6; }
4555 if ${pgac_cv_prog_cc_cflags__fexcess_precision_standard+:} false; then :
4556 $as_echo_n "(cached) " >&6
4558 pgac_save_CFLAGS=$CFLAGS
4559 CFLAGS="$pgac_save_CFLAGS -fexcess-precision=standard"
4560 ac_save_c_werror_flag=$ac_c_werror_flag
4561 ac_c_werror_flag=yes
4562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4563 /* end confdefs.h. */
4573 if ac_fn_c_try_compile "$LINENO"; then :
4574 pgac_cv_prog_cc_cflags__fexcess_precision_standard=yes
4576 pgac_cv_prog_cc_cflags__fexcess_precision_standard=no
4578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4579 ac_c_werror_flag=$ac_save_c_werror_flag
4580 CFLAGS="$pgac_save_CFLAGS"
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__fexcess_precision_standard" >&5
4583 $as_echo "$pgac_cv_prog_cc_cflags__fexcess_precision_standard" >&6; }
4584 if test x"$pgac_cv_prog_cc_cflags__fexcess_precision_standard" = x"yes"; then
4585 CFLAGS="$CFLAGS -fexcess-precision=standard"
4588 # Optimization flags for specific files that benefit from vectorization
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -funroll-loops" >&5
4590 $as_echo_n "checking whether $CC supports -funroll-loops... " >&6; }
4591 if ${pgac_cv_prog_cc_cflags__funroll_loops+:} false; then :
4592 $as_echo_n "(cached) " >&6
4594 pgac_save_CFLAGS=$CFLAGS
4595 CFLAGS="$pgac_save_CFLAGS -funroll-loops"
4596 ac_save_c_werror_flag=$ac_c_werror_flag
4597 ac_c_werror_flag=yes
4598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4599 /* end confdefs.h. */
4609 if ac_fn_c_try_compile "$LINENO"; then :
4610 pgac_cv_prog_cc_cflags__funroll_loops=yes
4612 pgac_cv_prog_cc_cflags__funroll_loops=no
4614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4615 ac_c_werror_flag=$ac_save_c_werror_flag
4616 CFLAGS="$pgac_save_CFLAGS"
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__funroll_loops" >&5
4619 $as_echo "$pgac_cv_prog_cc_cflags__funroll_loops" >&6; }
4620 if test x"$pgac_cv_prog_cc_cflags__funroll_loops" = x"yes"; then
4621 CFLAGS_VECTOR="${CFLAGS_VECTOR} -funroll-loops"
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -ftree-vectorize" >&5
4625 $as_echo_n "checking whether $CC supports -ftree-vectorize... " >&6; }
4626 if ${pgac_cv_prog_cc_cflags__ftree_vectorize+:} false; then :
4627 $as_echo_n "(cached) " >&6
4629 pgac_save_CFLAGS=$CFLAGS
4630 CFLAGS="$pgac_save_CFLAGS -ftree-vectorize"
4631 ac_save_c_werror_flag=$ac_c_werror_flag
4632 ac_c_werror_flag=yes
4633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4634 /* end confdefs.h. */
4644 if ac_fn_c_try_compile "$LINENO"; then :
4645 pgac_cv_prog_cc_cflags__ftree_vectorize=yes
4647 pgac_cv_prog_cc_cflags__ftree_vectorize=no
4649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4650 ac_c_werror_flag=$ac_save_c_werror_flag
4651 CFLAGS="$pgac_save_CFLAGS"
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__ftree_vectorize" >&5
4654 $as_echo "$pgac_cv_prog_cc_cflags__ftree_vectorize" >&6; }
4655 if test x"$pgac_cv_prog_cc_cflags__ftree_vectorize" = x"yes"; then
4656 CFLAGS_VECTOR="${CFLAGS_VECTOR} -ftree-vectorize"
4659 elif test "$ICC" = yes; then
4660 # Intel's compiler has a bug/misoptimization in checking for
4661 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mp1" >&5
4663 $as_echo_n "checking whether $CC supports -mp1... " >&6; }
4664 if ${pgac_cv_prog_cc_cflags__mp1+:} false; then :
4665 $as_echo_n "(cached) " >&6
4667 pgac_save_CFLAGS=$CFLAGS
4668 CFLAGS="$pgac_save_CFLAGS -mp1"
4669 ac_save_c_werror_flag=$ac_c_werror_flag
4670 ac_c_werror_flag=yes
4671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4672 /* end confdefs.h. */
4682 if ac_fn_c_try_compile "$LINENO"; then :
4683 pgac_cv_prog_cc_cflags__mp1=yes
4685 pgac_cv_prog_cc_cflags__mp1=no
4687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4688 ac_c_werror_flag=$ac_save_c_werror_flag
4689 CFLAGS="$pgac_save_CFLAGS"
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__mp1" >&5
4692 $as_echo "$pgac_cv_prog_cc_cflags__mp1" >&6; }
4693 if test x"$pgac_cv_prog_cc_cflags__mp1" = x"yes"; then
4694 CFLAGS="$CFLAGS -mp1"
4697 # Make sure strict aliasing is off (though this is said to be the default)
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fno-strict-aliasing" >&5
4699 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4700 if ${pgac_cv_prog_cc_cflags__fno_strict_aliasing+:} false; then :
4701 $as_echo_n "(cached) " >&6
4703 pgac_save_CFLAGS=$CFLAGS
4704 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4705 ac_save_c_werror_flag=$ac_c_werror_flag
4706 ac_c_werror_flag=yes
4707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4708 /* end confdefs.h. */
4718 if ac_fn_c_try_compile "$LINENO"; then :
4719 pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4721 pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4724 ac_c_werror_flag=$ac_save_c_werror_flag
4725 CFLAGS="$pgac_save_CFLAGS"
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4728 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4729 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4730 CFLAGS="$CFLAGS -fno-strict-aliasing"
4733 elif test "$PORTNAME" = "aix"; then
4734 # AIX's xlc has to have strict aliasing turned off too
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -qnoansialias" >&5
4736 $as_echo_n "checking whether $CC supports -qnoansialias... " >&6; }
4737 if ${pgac_cv_prog_cc_cflags__qnoansialias+:} false; then :
4738 $as_echo_n "(cached) " >&6
4740 pgac_save_CFLAGS=$CFLAGS
4741 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4742 ac_save_c_werror_flag=$ac_c_werror_flag
4743 ac_c_werror_flag=yes
4744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4745 /* end confdefs.h. */
4755 if ac_fn_c_try_compile "$LINENO"; then :
4756 pgac_cv_prog_cc_cflags__qnoansialias=yes
4758 pgac_cv_prog_cc_cflags__qnoansialias=no
4760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4761 ac_c_werror_flag=$ac_save_c_werror_flag
4762 CFLAGS="$pgac_save_CFLAGS"
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__qnoansialias" >&5
4765 $as_echo "$pgac_cv_prog_cc_cflags__qnoansialias" >&6; }
4766 if test x"$pgac_cv_prog_cc_cflags__qnoansialias" = x"yes"; then
4767 CFLAGS="$CFLAGS -qnoansialias"
4770 elif test "$PORTNAME" = "hpux"; then
4771 # On some versions of HP-UX, libm functions do not set errno by default.
4772 # Fix that by using +Olibmerrno if the compiler recognizes it.
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports +Olibmerrno" >&5
4774 $as_echo_n "checking whether $CC supports +Olibmerrno... " >&6; }
4775 if ${pgac_cv_prog_cc_cflags_pOlibmerrno+:} false; then :
4776 $as_echo_n "(cached) " >&6
4778 pgac_save_CFLAGS=$CFLAGS
4779 CFLAGS="$pgac_save_CFLAGS +Olibmerrno"
4780 ac_save_c_werror_flag=$ac_c_werror_flag
4781 ac_c_werror_flag=yes
4782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4783 /* end confdefs.h. */
4793 if ac_fn_c_try_compile "$LINENO"; then :
4794 pgac_cv_prog_cc_cflags_pOlibmerrno=yes
4796 pgac_cv_prog_cc_cflags_pOlibmerrno=no
4798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4799 ac_c_werror_flag=$ac_save_c_werror_flag
4800 CFLAGS="$pgac_save_CFLAGS"
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags_pOlibmerrno" >&5
4803 $as_echo "$pgac_cv_prog_cc_cflags_pOlibmerrno" >&6; }
4804 if test x"$pgac_cv_prog_cc_cflags_pOlibmerrno" = x"yes"; then
4805 CFLAGS="$CFLAGS +Olibmerrno"
4810 CFLAGS_VECTOR=$CFLAGS_VECTOR
4813 # supply -g if --enable-debug
4814 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4818 # enable code coverage if --enable-coverage
4819 if test "$enable_coverage" = yes; then
4820 if test "$GCC" = yes; then
4821 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4823 as_fn_error $? "--enable-coverage is supported only when using GCC" "$LINENO" 5
4827 # enable profiling if --enable-profiling
4828 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4829 if test "$GCC" = yes; then
4831 $as_echo "#define PROFILE_PID_DIR 1" >>confdefs.h
4833 CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4835 as_fn_error $? "--enable-profiling is supported only when using GCC" "$LINENO" 5
4839 # We already have this in Makefile.win32, but configure needs it too
4840 if test "$PORTNAME" = "win32"; then
4841 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4844 # Check if the compiler still works with the template settings
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler still works" >&5
4846 $as_echo_n "checking whether the C compiler still works... " >&6; }
4847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4848 /* end confdefs.h. */
4858 if ac_fn_c_try_link "$LINENO"; then :
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4860 $as_echo "yes" >&6; }
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4863 $as_echo "no" >&6; }
4864 as_fn_error $? "cannot proceed" "$LINENO" 5
4866 rm -f core conftest.err conftest.$ac_objext \
4867 conftest$ac_exeext conftest.$ac_ext
4869 # Defend against gcc -ffast-math
4870 if test "$GCC" = yes; then
4871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4872 /* end confdefs.h. */
4877 #ifdef __FAST_MATH__
4884 if ac_fn_c_try_compile "$LINENO"; then :
4887 as_fn_error $? "do not put -ffast-math in CFLAGS" "$LINENO" 5
4889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4893 ac_cpp='$CPP $CPPFLAGS'
4894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4898 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4899 # On Suns, sometimes $CPP names a directory.
4900 if test -n "$CPP" && test -d "$CPP"; then
4903 if test -z "$CPP"; then
4904 if ${ac_cv_prog_CPP+:} false; then :
4905 $as_echo_n "(cached) " >&6
4907 # Double quotes because CPP needs to be expanded
4908 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4911 for ac_c_preproc_warn_flag in '' yes
4913 # Use a header file that comes with gcc, so configuring glibc
4914 # with a fresh cross-compiler works.
4915 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4916 # <limits.h> exists even on freestanding compilers.
4917 # On the NeXT, cc -E runs the code through the compiler's parser,
4918 # not just through cpp. "Syntax error" is here to catch this case.
4919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4920 /* end confdefs.h. */
4922 # include <limits.h>
4924 # include <assert.h>
4928 if ac_fn_c_try_cpp "$LINENO"; then :
4931 # Broken: fails on valid input.
4934 rm -f conftest.err conftest.i conftest.$ac_ext
4936 # OK, works on sane cases. Now check whether nonexistent headers
4937 # can be detected and how.
4938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4939 /* end confdefs.h. */
4940 #include <ac_nonexistent.h>
4942 if ac_fn_c_try_cpp "$LINENO"; then :
4943 # Broken: success on invalid input.
4946 # Passes both tests.
4950 rm -f conftest.err conftest.i conftest.$ac_ext
4953 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4954 rm -f conftest.i conftest.err conftest.$ac_ext
4955 if $ac_preproc_ok; then :
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4968 $as_echo "$CPP" >&6; }
4970 for ac_c_preproc_warn_flag in '' yes
4972 # Use a header file that comes with gcc, so configuring glibc
4973 # with a fresh cross-compiler works.
4974 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4975 # <limits.h> exists even on freestanding compilers.
4976 # On the NeXT, cc -E runs the code through the compiler's parser,
4977 # not just through cpp. "Syntax error" is here to catch this case.
4978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4979 /* end confdefs.h. */
4981 # include <limits.h>
4983 # include <assert.h>
4987 if ac_fn_c_try_cpp "$LINENO"; then :
4990 # Broken: fails on valid input.
4993 rm -f conftest.err conftest.i conftest.$ac_ext
4995 # OK, works on sane cases. Now check whether nonexistent headers
4996 # can be detected and how.
4997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4998 /* end confdefs.h. */
4999 #include <ac_nonexistent.h>
5001 if ac_fn_c_try_cpp "$LINENO"; then :
5002 # Broken: success on invalid input.
5005 # Passes both tests.
5009 rm -f conftest.err conftest.i conftest.$ac_ext
5012 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5013 rm -f conftest.i conftest.err conftest.$ac_ext
5014 if $ac_preproc_ok; then :
5017 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5019 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5020 See \`config.log' for more details" "$LINENO" 5; }
5024 ac_cpp='$CPP $CPPFLAGS'
5025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5033 # Set up TAS assembly code if needed; the template file has now had its
5034 # chance to request this.
5036 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
5039 if test "$need_tas" = yes ; then
5048 # Automatic dependency tracking
5052 # Check whether --enable-depend was given.
5053 if test "${enable_depend+set}" = set; then :
5054 enableval=$enable_depend;
5063 as_fn_error $? "no argument expected for --enable-depend option" "$LINENO" 5
5077 # Enable assert checks
5081 # Check whether --enable-cassert was given.
5082 if test "${enable_cassert+set}" = set; then :
5083 enableval=$enable_cassert;
5087 $as_echo "#define USE_ASSERT_CHECKING 1" >>confdefs.h
5094 as_fn_error $? "no argument expected for --enable-cassert option" "$LINENO" 5
5107 # Include directories
5110 IFS="${IFS}${PATH_SEPARATOR}"
5111 # SRCH_INC comes from the template file
5112 for dir in $with_includes $SRCH_INC; do
5113 if test -d "$dir"; then
5114 INCLUDES="$INCLUDES -I$dir"
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Include directory $dir does not exist." >&5
5117 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
5125 # Library directories
5128 IFS="${IFS}${PATH_SEPARATOR}"
5129 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
5130 for dir in $LIBRARY_DIRS $SRCH_LIB; do
5131 if test -d "$dir"; then
5132 LIBDIRS="$LIBDIRS -L$dir"
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Library directory $dir does not exist." >&5
5135 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
5141 # Enable thread-safe client libraries
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking allow thread-safe client libraries" >&5
5144 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
5147 # Check whether --enable-thread-safety was given.
5148 if test "${enable_thread_safety+set}" = set; then :
5149 enableval=$enable_thread_safety;
5158 as_fn_error $? "no argument expected for --enable-thread-safety option" "$LINENO" 5
5163 enable_thread_safety=yes
5168 if test "$enable_thread_safety" = yes; then
5170 $as_echo "#define ENABLE_THREAD_SAFETY 1" >>confdefs.h
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_thread_safety" >&5
5174 $as_echo "$enable_thread_safety" >&6; }
5178 # Optionally build Tcl modules (PL/Tcl)
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with Tcl" >&5
5181 $as_echo_n "checking whether to build with Tcl... " >&6; }
5185 # Check whether --with-tcl was given.
5186 if test "${with_tcl+set}" = set; then :
5196 as_fn_error $? "no argument expected for --with-tcl option" "$LINENO" 5
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcl" >&5
5207 $as_echo "$with_tcl" >&6; }
5210 # We see if the path to the Tcl/Tk configuration scripts is specified.
5211 # This will override the use of tclsh to find the paths to search.
5216 # Check whether --with-tclconfig was given.
5217 if test "${with_tclconfig+set}" = set; then :
5218 withval=$with_tclconfig;
5221 as_fn_error $? "argument required for --with-tclconfig option" "$LINENO" 5
5224 as_fn_error $? "argument required for --with-tclconfig option" "$LINENO" 5
5236 # Optionally build Perl modules (PL/Perl)
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Perl modules" >&5
5239 $as_echo_n "checking whether to build Perl modules... " >&6; }
5243 # Check whether --with-perl was given.
5244 if test "${with_perl+set}" = set; then :
5254 as_fn_error $? "no argument expected for --with-perl option" "$LINENO" 5
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_perl" >&5
5265 $as_echo "$with_perl" >&6; }
5269 # Optionally build Python modules (PL/Python)
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Python modules" >&5
5272 $as_echo_n "checking whether to build Python modules... " >&6; }
5276 # Check whether --with-python was given.
5277 if test "${with_python+set}" = set; then :
5278 withval=$with_python;
5287 as_fn_error $? "no argument expected for --with-python option" "$LINENO" 5
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
5298 $as_echo "$with_python" >&6; }
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with GSSAPI support" >&5
5305 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
5309 # Check whether --with-gssapi was given.
5310 if test "${with_gssapi+set}" = set; then :
5311 withval=$with_gssapi;
5316 $as_echo "#define ENABLE_GSS 1" >>confdefs.h
5318 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5325 as_fn_error $? "no argument expected for --with-gssapi option" "$LINENO" 5
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_gssapi" >&5
5336 $as_echo "$with_gssapi" >&6; }
5343 # Kerberos configuration parameters
5348 # Check whether --with-krb-srvnam was given.
5349 if test "${with_krb_srvnam+set}" = set; then :
5350 withval=$with_krb_srvnam;
5353 as_fn_error $? "argument required for --with-krb-srvnam option" "$LINENO" 5
5356 as_fn_error $? "argument required for --with-krb-srvnam option" "$LINENO" 5
5364 with_krb_srvnam="postgres"
5369 cat >>confdefs.h <<_ACEOF
5370 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with PAM support" >&5
5379 $as_echo_n "checking whether to build with PAM support... " >&6; }
5383 # Check whether --with-pam was given.
5384 if test "${with_pam+set}" = set; then :
5389 $as_echo "#define USE_PAM 1" >>confdefs.h
5396 as_fn_error $? "no argument expected for --with-pam option" "$LINENO" 5
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pam" >&5
5407 $as_echo "$with_pam" >&6; }
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with LDAP support" >&5
5414 $as_echo_n "checking whether to build with LDAP support... " >&6; }
5418 # Check whether --with-ldap was given.
5419 if test "${with_ldap+set}" = set; then :
5424 $as_echo "#define USE_LDAP 1" >>confdefs.h
5431 as_fn_error $? "no argument expected for --with-ldap option" "$LINENO" 5
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ldap" >&5
5442 $as_echo "$with_ldap" >&6; }
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with Bonjour support" >&5
5449 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
5453 # Check whether --with-bonjour was given.
5454 if test "${with_bonjour+set}" = set; then :
5455 withval=$with_bonjour;
5459 $as_echo "#define USE_BONJOUR 1" >>confdefs.h
5466 as_fn_error $? "no argument expected for --with-bonjour option" "$LINENO" 5
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_bonjour" >&5
5477 $as_echo "$with_bonjour" >&6; }
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with OpenSSL support" >&5
5484 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
5488 # Check whether --with-openssl was given.
5489 if test "${with_openssl+set}" = set; then :
5490 withval=$with_openssl;
5494 $as_echo "#define USE_SSL 1" >>confdefs.h
5501 as_fn_error $? "no argument expected for --with-openssl option" "$LINENO" 5
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_openssl" >&5
5512 $as_echo "$with_openssl" >&6; }
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with SELinux support" >&5
5519 $as_echo_n "checking whether to build with SELinux support... " >&6; }
5523 # Check whether --with-selinux was given.
5524 if test "${with_selinux+set}" = set; then :
5525 withval=$with_selinux;
5534 as_fn_error $? "no argument expected for --with-selinux option" "$LINENO" 5
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_selinux" >&5
5546 $as_echo "$with_selinux" >&6; }
5554 # Check whether --with-readline was given.
5555 if test "${with_readline+set}" = set; then :
5556 withval=$with_readline;
5565 as_fn_error $? "no argument expected for --with-readline option" "$LINENO" 5
5575 # readline on MinGW has problems with backslashes in psql and other bugs.
5576 # This is particularly a problem with non-US code pages.
5577 # Therefore disable its use until we understand the cause. 2004-07-20
5578 if test "$PORTNAME" = "win32"; then
5579 if test "$with_readline" = yes; then
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5581 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5593 # Check whether --with-libedit-preferred was given.
5594 if test "${with_libedit_preferred+set}" = set; then :
5595 withval=$with_libedit_preferred;
5604 as_fn_error $? "no argument expected for --with-libedit-preferred option" "$LINENO" 5
5609 with_libedit_preferred=no
5622 # Check whether --with-ossp-uuid was given.
5623 if test "${with_ossp_uuid+set}" = set; then :
5624 withval=$with_ossp_uuid;
5633 as_fn_error $? "no argument expected for --with-ossp-uuid option" "$LINENO" 5
5652 # Check whether --with-libxml was given.
5653 if test "${with_libxml+set}" = set; then :
5654 withval=$with_libxml;
5658 $as_echo "#define USE_LIBXML 1" >>confdefs.h
5665 as_fn_error $? "no argument expected for --with-libxml option" "$LINENO" 5
5676 if test "$with_libxml" = yes ; then
5677 for ac_prog in xml2-config
5679 # Extract the first word of "$ac_prog", so it can be a program name with args.
5680 set dummy $ac_prog; ac_word=$2
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5682 $as_echo_n "checking for $ac_word... " >&6; }
5683 if ${ac_cv_prog_XML2_CONFIG+:} false; then :
5684 $as_echo_n "(cached) " >&6
5686 if test -n "$XML2_CONFIG"; then
5687 ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5693 test -z "$as_dir" && as_dir=.
5694 for ac_exec_ext in '' $ac_executable_extensions; do
5695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5696 ac_cv_prog_XML2_CONFIG="$ac_prog"
5697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5706 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5707 if test -n "$XML2_CONFIG"; then
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
5709 $as_echo "$XML2_CONFIG" >&6; }
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5712 $as_echo "no" >&6; }
5716 test -n "$XML2_CONFIG" && break
5719 if test -n "$XML2_CONFIG"; then
5720 for pgac_option in `$XML2_CONFIG --cflags`; do
5721 case $pgac_option in
5722 -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5725 for pgac_option in `$XML2_CONFIG --libs`; do
5726 case $pgac_option in
5727 -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5741 # Check whether --with-libxslt was given.
5742 if test "${with_libxslt+set}" = set; then :
5743 withval=$with_libxslt;
5747 $as_echo "#define USE_LIBXSLT 1" >>confdefs.h
5754 as_fn_error $? "no argument expected for --with-libxslt option" "$LINENO" 5
5774 # Check whether --with-system-tzdata was given.
5775 if test "${with_system_tzdata+set}" = set; then :
5776 withval=$with_system_tzdata;
5779 as_fn_error $? "argument required for --with-system-tzdata option" "$LINENO" 5
5782 as_fn_error $? "argument required for --with-system-tzdata option" "$LINENO" 5
5800 # Check whether --with-zlib was given.
5801 if test "${with_zlib+set}" = set; then :
5811 as_fn_error $? "no argument expected for --with-zlib option" "$LINENO" 5
5827 # Assume system is ELF if it predefines __ELF__ as 1,
5828 # otherwise believe host_os based default.
5830 freebsd1*|freebsd2*) elf=no;;
5831 freebsd3*|freebsd4*) elf=yes;;
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5836 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5837 if ${ac_cv_path_GREP+:} false; then :
5838 $as_echo_n "(cached) " >&6
5840 if test -z "$GREP"; then
5841 ac_path_GREP_found=false
5842 # Loop through the user's path and test for each of PROGNAME-LIST
5843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5847 test -z "$as_dir" && as_dir=.
5848 for ac_prog in grep ggrep; do
5849 for ac_exec_ext in '' $ac_executable_extensions; do
5850 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5851 as_fn_executable_p "$ac_path_GREP" || continue
5852 # Check for GNU ac_path_GREP and select it if it is found.
5853 # Check for GNU $ac_path_GREP
5854 case `"$ac_path_GREP" --version 2>&1` in
5856 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5859 $as_echo_n 0123456789 >"conftest.in"
5862 cat "conftest.in" "conftest.in" >"conftest.tmp"
5863 mv "conftest.tmp" "conftest.in"
5864 cp "conftest.in" "conftest.nl"
5865 $as_echo 'GREP' >> "conftest.nl"
5866 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5867 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5868 as_fn_arith $ac_count + 1 && ac_count=$as_val
5869 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5870 # Best one so far, save it but keep looking for a better one
5871 ac_cv_path_GREP="$ac_path_GREP"
5872 ac_path_GREP_max=$ac_count
5874 # 10*(2^10) chars as input seems more than enough
5875 test $ac_count -gt 10 && break
5877 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5880 $ac_path_GREP_found && break 3
5885 if test -z "$ac_cv_path_GREP"; then
5886 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5889 ac_cv_path_GREP=$GREP
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5894 $as_echo "$ac_cv_path_GREP" >&6; }
5895 GREP="$ac_cv_path_GREP"
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5899 $as_echo_n "checking for egrep... " >&6; }
5900 if ${ac_cv_path_EGREP+:} false; then :
5901 $as_echo_n "(cached) " >&6
5903 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5904 then ac_cv_path_EGREP="$GREP -E"
5906 if test -z "$EGREP"; then
5907 ac_path_EGREP_found=false
5908 # Loop through the user's path and test for each of PROGNAME-LIST
5909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5910 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5913 test -z "$as_dir" && as_dir=.
5914 for ac_prog in egrep; do
5915 for ac_exec_ext in '' $ac_executable_extensions; do
5916 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5917 as_fn_executable_p "$ac_path_EGREP" || continue
5918 # Check for GNU ac_path_EGREP and select it if it is found.
5919 # Check for GNU $ac_path_EGREP
5920 case `"$ac_path_EGREP" --version 2>&1` in
5922 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5925 $as_echo_n 0123456789 >"conftest.in"
5928 cat "conftest.in" "conftest.in" >"conftest.tmp"
5929 mv "conftest.tmp" "conftest.in"
5930 cp "conftest.in" "conftest.nl"
5931 $as_echo 'EGREP' >> "conftest.nl"
5932 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5933 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5934 as_fn_arith $ac_count + 1 && ac_count=$as_val
5935 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5936 # Best one so far, save it but keep looking for a better one
5937 ac_cv_path_EGREP="$ac_path_EGREP"
5938 ac_path_EGREP_max=$ac_count
5940 # 10*(2^10) chars as input seems more than enough
5941 test $ac_count -gt 10 && break
5943 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5946 $ac_path_EGREP_found && break 3
5951 if test -z "$ac_cv_path_EGREP"; then
5952 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5955 ac_cv_path_EGREP=$EGREP
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5961 $as_echo "$ac_cv_path_EGREP" >&6; }
5962 EGREP="$ac_cv_path_EGREP"
5965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5966 /* end confdefs.h. */
5972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5973 $EGREP "yes" >/dev/null 2>&1; then :
5976 if test "X$elf" = "Xyes" ; then
5990 CPPFLAGS="$CPPFLAGS $INCLUDES"
5991 LDFLAGS="$LDFLAGS $LIBDIRS"
5997 # Check whether --with-gnu-ld was given.
5998 if test "${with_gnu_ld+set}" = set; then :
5999 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6005 if test "$GCC" = yes; then
6006 # Check if gcc -print-prog-name=ld gives a path.
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6008 $as_echo_n "checking for ld used by GCC... " >&6; }
6011 # gcc leaves a trailing carriage return which upsets mingw
6012 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6014 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6017 # Accept absolute paths.
6018 [\\/]* | [A-Za-z]:[\\/]*)
6019 re_direlt='/[^/][^/]*/\.\./'
6020 # Canonicalize the path of ld
6021 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6022 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6023 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6025 test -z "$LD" && LD="$ac_prog"
6028 # If it fails, then pretend we aren't using GCC.
6032 # If it is relative, then search for the first ld in PATH.
6036 elif test "$with_gnu_ld" = yes; then
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6038 $as_echo_n "checking for GNU ld... " >&6; }
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6041 $as_echo_n "checking for non-GNU ld... " >&6; }
6043 if ${ac_cv_path_LD+:} false; then :
6044 $as_echo_n "(cached) " >&6
6046 if test -z "$LD"; then
6047 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6048 for ac_dir in $PATH; do
6049 test -z "$ac_dir" && ac_dir=.
6050 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6051 ac_cv_path_LD="$ac_dir/$ac_prog"
6052 # Check to see if the program is GNU ld. I'd rather use --version,
6053 # but apparently some GNU ld's only accept -v.
6054 # Break only if it was the GNU/non-GNU ld that we prefer.
6055 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6056 test "$with_gnu_ld" != no && break
6058 test "$with_gnu_ld" != yes && break
6064 ac_cv_path_LD="$LD" # Let the user override the test with a path.
6069 if test -n "$LD"; then
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6071 $as_echo "$LD" >&6; }
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6074 $as_echo "no" >&6; }
6076 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6078 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6079 if ${ac_cv_prog_gnu_ld+:} false; then :
6080 $as_echo_n "(cached) " >&6
6082 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6083 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6084 ac_cv_prog_gnu_ld=yes
6086 ac_cv_prog_gnu_ld=no
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gnu_ld" >&5
6090 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
6091 with_gnu_ld=$ac_cv_prog_gnu_ld
6096 case $host_os in sysv5*)
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld -R works" >&5
6098 $as_echo_n "checking whether ld -R works... " >&6; }
6099 if ${pgac_cv_prog_ld_R+:} false; then :
6100 $as_echo_n "(cached) " >&6
6103 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
6104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6105 /* end confdefs.h. */
6115 if ac_fn_c_try_link "$LINENO"; then :
6116 pgac_cv_prog_ld_R=yes
6118 pgac_cv_prog_ld_R=no
6120 rm -f core conftest.err conftest.$ac_objext \
6121 conftest$ac_exeext conftest.$ac_ext
6122 LDFLAGS=$pgac_save_LDFLAGS
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_ld_R" >&5
6126 $as_echo "$pgac_cv_prog_ld_R" >&6; }
6127 ld_R_works=$pgac_cv_prog_ld_R
6130 if test -n "$ac_tool_prefix"; then
6131 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6132 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6134 $as_echo_n "checking for $ac_word... " >&6; }
6135 if ${ac_cv_prog_RANLIB+:} false; then :
6136 $as_echo_n "(cached) " >&6
6138 if test -n "$RANLIB"; then
6139 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6145 test -z "$as_dir" && as_dir=.
6146 for ac_exec_ext in '' $ac_executable_extensions; do
6147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6148 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6158 RANLIB=$ac_cv_prog_RANLIB
6159 if test -n "$RANLIB"; then
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6161 $as_echo "$RANLIB" >&6; }
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6164 $as_echo "no" >&6; }
6169 if test -z "$ac_cv_prog_RANLIB"; then
6170 ac_ct_RANLIB=$RANLIB
6171 # Extract the first word of "ranlib", so it can be a program name with args.
6172 set dummy ranlib; ac_word=$2
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6174 $as_echo_n "checking for $ac_word... " >&6; }
6175 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6176 $as_echo_n "(cached) " >&6
6178 if test -n "$ac_ct_RANLIB"; then
6179 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6185 test -z "$as_dir" && as_dir=.
6186 for ac_exec_ext in '' $ac_executable_extensions; do
6187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6188 ac_cv_prog_ac_ct_RANLIB="ranlib"
6189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6198 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6199 if test -n "$ac_ct_RANLIB"; then
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6201 $as_echo "$ac_ct_RANLIB" >&6; }
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6204 $as_echo "no" >&6; }
6207 if test "x$ac_ct_RANLIB" = x; then
6210 case $cross_compiling:$ac_tool_warned in
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6214 ac_tool_warned=yes ;;
6216 RANLIB=$ac_ct_RANLIB
6219 RANLIB="$ac_cv_prog_RANLIB"
6223 if test -n "$ac_tool_prefix"; then
6224 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6225 set dummy ${ac_tool_prefix}strip; ac_word=$2
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6227 $as_echo_n "checking for $ac_word... " >&6; }
6228 if ${ac_cv_prog_STRIP+:} false; then :
6229 $as_echo_n "(cached) " >&6
6231 if test -n "$STRIP"; then
6232 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6238 test -z "$as_dir" && as_dir=.
6239 for ac_exec_ext in '' $ac_executable_extensions; do
6240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6241 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6251 STRIP=$ac_cv_prog_STRIP
6252 if test -n "$STRIP"; then
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6254 $as_echo "$STRIP" >&6; }
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6257 $as_echo "no" >&6; }
6262 if test -z "$ac_cv_prog_STRIP"; then
6264 # Extract the first word of "strip", so it can be a program name with args.
6265 set dummy strip; ac_word=$2
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6267 $as_echo_n "checking for $ac_word... " >&6; }
6268 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6269 $as_echo_n "(cached) " >&6
6271 if test -n "$ac_ct_STRIP"; then
6272 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6278 test -z "$as_dir" && as_dir=.
6279 for ac_exec_ext in '' $ac_executable_extensions; do
6280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6281 ac_cv_prog_ac_ct_STRIP="strip"
6282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6291 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6292 if test -n "$ac_ct_STRIP"; then
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6294 $as_echo "$ac_ct_STRIP" >&6; }
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6297 $as_echo "no" >&6; }
6300 if test "x$ac_ct_STRIP" = x; then
6303 case $cross_compiling:$ac_tool_warned in
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6306 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6307 ac_tool_warned=yes ;;
6312 STRIP="$ac_cv_prog_STRIP"
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is possible to strip libraries" >&5
6317 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
6318 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6319 STRIP_STATIC_LIB="$STRIP -x"
6320 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6322 $as_echo "yes" >&6; }
6327 STRIP_STATIC_LIB=$STRIP
6328 STRIP_SHARED_LIB=$STRIP
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6330 $as_echo "yes" >&6; }
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6336 $as_echo "no" >&6; }
6343 if test -n "$ac_tool_prefix"; then
6344 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6345 set dummy ${ac_tool_prefix}ar; ac_word=$2
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6347 $as_echo_n "checking for $ac_word... " >&6; }
6348 if ${ac_cv_prog_AR+:} false; then :
6349 $as_echo_n "(cached) " >&6
6351 if test -n "$AR"; then
6352 ac_cv_prog_AR="$AR" # Let the user override the test.
6354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6358 test -z "$as_dir" && as_dir=.
6359 for ac_exec_ext in '' $ac_executable_extensions; do
6360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6361 ac_cv_prog_AR="${ac_tool_prefix}ar"
6362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6372 if test -n "$AR"; then
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6374 $as_echo "$AR" >&6; }
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6377 $as_echo "no" >&6; }
6382 if test -z "$ac_cv_prog_AR"; then
6384 # Extract the first word of "ar", so it can be a program name with args.
6385 set dummy ar; ac_word=$2
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6387 $as_echo_n "checking for $ac_word... " >&6; }
6388 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6389 $as_echo_n "(cached) " >&6
6391 if test -n "$ac_ct_AR"; then
6392 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6398 test -z "$as_dir" && as_dir=.
6399 for ac_exec_ext in '' $ac_executable_extensions; do
6400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6401 ac_cv_prog_ac_ct_AR="ar"
6402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6411 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6412 if test -n "$ac_ct_AR"; then
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6414 $as_echo "$ac_ct_AR" >&6; }
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6417 $as_echo "no" >&6; }
6420 if test "x$ac_ct_AR" = x; then
6423 case $cross_compiling:$ac_tool_warned in
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6427 ac_tool_warned=yes ;;
6435 if test "$PORTNAME" = "win32"; then
6436 if test -n "$ac_tool_prefix"; then
6437 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6438 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6440 $as_echo_n "checking for $ac_word... " >&6; }
6441 if ${ac_cv_prog_DLLTOOL+:} false; then :
6442 $as_echo_n "(cached) " >&6
6444 if test -n "$DLLTOOL"; then
6445 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6451 test -z "$as_dir" && as_dir=.
6452 for ac_exec_ext in '' $ac_executable_extensions; do
6453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6454 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6464 DLLTOOL=$ac_cv_prog_DLLTOOL
6465 if test -n "$DLLTOOL"; then
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6467 $as_echo "$DLLTOOL" >&6; }
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6470 $as_echo "no" >&6; }
6475 if test -z "$ac_cv_prog_DLLTOOL"; then
6476 ac_ct_DLLTOOL=$DLLTOOL
6477 # Extract the first word of "dlltool", so it can be a program name with args.
6478 set dummy dlltool; ac_word=$2
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6480 $as_echo_n "checking for $ac_word... " >&6; }
6481 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6482 $as_echo_n "(cached) " >&6
6484 if test -n "$ac_ct_DLLTOOL"; then
6485 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6491 test -z "$as_dir" && as_dir=.
6492 for ac_exec_ext in '' $ac_executable_extensions; do
6493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6494 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6504 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6505 if test -n "$ac_ct_DLLTOOL"; then
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6507 $as_echo "$ac_ct_DLLTOOL" >&6; }
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6510 $as_echo "no" >&6; }
6513 if test "x$ac_ct_DLLTOOL" = x; then
6516 case $cross_compiling:$ac_tool_warned in
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6519 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6520 ac_tool_warned=yes ;;
6522 DLLTOOL=$ac_ct_DLLTOOL
6525 DLLTOOL="$ac_cv_prog_DLLTOOL"
6528 if test -n "$ac_tool_prefix"; then
6529 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6530 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6532 $as_echo_n "checking for $ac_word... " >&6; }
6533 if ${ac_cv_prog_DLLWRAP+:} false; then :
6534 $as_echo_n "(cached) " >&6
6536 if test -n "$DLLWRAP"; then
6537 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6543 test -z "$as_dir" && as_dir=.
6544 for ac_exec_ext in '' $ac_executable_extensions; do
6545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6546 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6556 DLLWRAP=$ac_cv_prog_DLLWRAP
6557 if test -n "$DLLWRAP"; then
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
6559 $as_echo "$DLLWRAP" >&6; }
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6562 $as_echo "no" >&6; }
6567 if test -z "$ac_cv_prog_DLLWRAP"; then
6568 ac_ct_DLLWRAP=$DLLWRAP
6569 # Extract the first word of "dllwrap", so it can be a program name with args.
6570 set dummy dllwrap; ac_word=$2
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6572 $as_echo_n "checking for $ac_word... " >&6; }
6573 if ${ac_cv_prog_ac_ct_DLLWRAP+:} false; then :
6574 $as_echo_n "(cached) " >&6
6576 if test -n "$ac_ct_DLLWRAP"; then
6577 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583 test -z "$as_dir" && as_dir=.
6584 for ac_exec_ext in '' $ac_executable_extensions; do
6585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6586 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6596 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6597 if test -n "$ac_ct_DLLWRAP"; then
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
6599 $as_echo "$ac_ct_DLLWRAP" >&6; }
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6602 $as_echo "no" >&6; }
6605 if test "x$ac_ct_DLLWRAP" = x; then
6608 case $cross_compiling:$ac_tool_warned in
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6611 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6612 ac_tool_warned=yes ;;
6614 DLLWRAP=$ac_ct_DLLWRAP
6617 DLLWRAP="$ac_cv_prog_DLLWRAP"
6620 if test -n "$ac_tool_prefix"; then
6621 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6622 set dummy ${ac_tool_prefix}windres; ac_word=$2
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6624 $as_echo_n "checking for $ac_word... " >&6; }
6625 if ${ac_cv_prog_WINDRES+:} false; then :
6626 $as_echo_n "(cached) " >&6
6628 if test -n "$WINDRES"; then
6629 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635 test -z "$as_dir" && as_dir=.
6636 for ac_exec_ext in '' $ac_executable_extensions; do
6637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6638 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6648 WINDRES=$ac_cv_prog_WINDRES
6649 if test -n "$WINDRES"; then
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
6651 $as_echo "$WINDRES" >&6; }
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6654 $as_echo "no" >&6; }
6659 if test -z "$ac_cv_prog_WINDRES"; then
6660 ac_ct_WINDRES=$WINDRES
6661 # Extract the first word of "windres", so it can be a program name with args.
6662 set dummy windres; ac_word=$2
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6664 $as_echo_n "checking for $ac_word... " >&6; }
6665 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
6666 $as_echo_n "(cached) " >&6
6668 if test -n "$ac_ct_WINDRES"; then
6669 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675 test -z "$as_dir" && as_dir=.
6676 for ac_exec_ext in '' $ac_executable_extensions; do
6677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6678 ac_cv_prog_ac_ct_WINDRES="windres"
6679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6688 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6689 if test -n "$ac_ct_WINDRES"; then
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
6691 $as_echo "$ac_ct_WINDRES" >&6; }
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6694 $as_echo "no" >&6; }
6697 if test "x$ac_ct_WINDRES" = x; then
6700 case $cross_compiling:$ac_tool_warned in
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6703 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6704 ac_tool_warned=yes ;;
6706 WINDRES=$ac_ct_WINDRES
6709 WINDRES="$ac_cv_prog_WINDRES"
6714 # Find a good install program. We prefer a C program (faster),
6715 # so one script is as good as another. But avoid the broken or
6716 # incompatible versions:
6717 # SysV /etc/install, /usr/sbin/install
6718 # SunOS /usr/etc/install
6719 # IRIX /sbin/install
6721 # AmigaOS /C/install, which installs bootblocks on floppy discs
6722 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6723 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6724 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6725 # OS/2's system install, which has a completely different semantic
6726 # ./install, which can be erroneously created by make from ./install.sh.
6727 # Reject install programs that cannot install multiple files.
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6729 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6730 if test -z "$INSTALL"; then
6731 if ${ac_cv_path_install+:} false; then :
6732 $as_echo_n "(cached) " >&6
6734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738 test -z "$as_dir" && as_dir=.
6739 # Account for people who put trailing slashes in PATH elements.
6740 case $as_dir/ in #((
6741 ./ | .// | /[cC]/* | \
6742 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6743 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6746 # OSF1 and SCO ODT 3.0 have their own names for install.
6747 # Don't use installbsd from OSF since it installs stuff as root
6749 for ac_prog in ginstall scoinst install; do
6750 for ac_exec_ext in '' $ac_executable_extensions; do
6751 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6752 if test $ac_prog = install &&
6753 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6754 # AIX install. It has an incompatible calling convention.
6756 elif test $ac_prog = install &&
6757 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6758 # program-specific install script used by HP pwplus--don't use.
6761 rm -rf conftest.one conftest.two conftest.dir
6762 echo one > conftest.one
6763 echo two > conftest.two
6765 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6766 test -s conftest.one && test -s conftest.two &&
6767 test -s conftest.dir/conftest.one &&
6768 test -s conftest.dir/conftest.two
6770 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6783 rm -rf conftest.one conftest.two conftest.dir
6786 if test "${ac_cv_path_install+set}" = set; then
6787 INSTALL=$ac_cv_path_install
6789 # As a last resort, use the slow shell script. Don't cache a
6790 # value for INSTALL within a source directory, because that will
6791 # break other packages using the cache if that directory is
6792 # removed, or if the value is a relative name.
6793 INSTALL=$ac_install_sh
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6797 $as_echo "$INSTALL" >&6; }
6799 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6800 # It thinks the first close brace ends the variable substitution.
6801 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6803 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6805 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6807 # When Autoconf chooses install-sh as install program it tries to generate
6808 # a relative path to it in each makefile where it subsitutes it. This clashes
6809 # with our Makefile.global concept. This workaround helps.
6811 *install-sh*) install_bin='';;
6812 *) install_bin=$INSTALL;;
6816 # Extract the first word of "tar", so it can be a program name with args.
6817 set dummy tar; ac_word=$2
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6819 $as_echo_n "checking for $ac_word... " >&6; }
6820 if ${ac_cv_path_TAR+:} false; then :
6821 $as_echo_n "(cached) " >&6
6825 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6832 test -z "$as_dir" && as_dir=.
6833 for ac_exec_ext in '' $ac_executable_extensions; do
6834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6835 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6847 if test -n "$TAR"; then
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
6849 $as_echo "$TAR" >&6; }
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6852 $as_echo "no" >&6; }
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6857 $as_echo_n "checking whether ln -s works... " >&6; }
6859 if test "$LN_S" = "ln -s"; then
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6861 $as_echo "yes" >&6; }
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6864 $as_echo "no, using $LN_S" >&6; }
6867 for ac_prog in gawk mawk nawk awk
6869 # Extract the first word of "$ac_prog", so it can be a program name with args.
6870 set dummy $ac_prog; ac_word=$2
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6872 $as_echo_n "checking for $ac_word... " >&6; }
6873 if ${ac_cv_prog_AWK+:} false; then :
6874 $as_echo_n "(cached) " >&6
6876 if test -n "$AWK"; then
6877 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6883 test -z "$as_dir" && as_dir=.
6884 for ac_exec_ext in '' $ac_executable_extensions; do
6885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6886 ac_cv_prog_AWK="$ac_prog"
6887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6897 if test -n "$AWK"; then
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6899 $as_echo "$AWK" >&6; }
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6902 $as_echo "no" >&6; }
6906 test -n "$AWK" && break
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6910 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6911 if test -z "$MKDIR_P"; then
6912 if ${ac_cv_path_mkdir+:} false; then :
6913 $as_echo_n "(cached) " >&6
6915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6916 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6919 test -z "$as_dir" && as_dir=.
6920 for ac_prog in mkdir gmkdir; do
6921 for ac_exec_ext in '' $ac_executable_extensions; do
6922 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6923 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6924 'mkdir (GNU coreutils) '* | \
6925 'mkdir (coreutils) '* | \
6926 'mkdir (fileutils) '4.1*)
6927 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6937 test -d ./--version && rmdir ./--version
6938 if test "${ac_cv_path_mkdir+set}" = set; then
6939 MKDIR_P="$ac_cv_path_mkdir -p"
6941 # As a last resort, use the slow shell script. Don't cache a
6942 # value for MKDIR_P within a source directory, because that will
6943 # break other packages using the cache if that directory is
6944 # removed, or if the value is a relative name.
6945 MKDIR_P="$ac_install_sh -d"
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6949 $as_echo "$MKDIR_P" >&6; }
6951 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
6952 # a relative path to it in each makefile where it subsitutes it. This clashes
6953 # with our Makefile.global concept. This workaround helps.
6955 *install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
6958 # Let the user override the search
6959 if test -z "$BISON"; then
6960 for ac_prog in bison
6962 # Extract the first word of "$ac_prog", so it can be a program name with args.
6963 set dummy $ac_prog; ac_word=$2
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6965 $as_echo_n "checking for $ac_word... " >&6; }
6966 if ${ac_cv_path_BISON+:} false; then :
6967 $as_echo_n "(cached) " >&6
6971 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
6974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6978 test -z "$as_dir" && as_dir=.
6979 for ac_exec_ext in '' $ac_executable_extensions; do
6980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6981 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
6982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6992 BISON=$ac_cv_path_BISON
6993 if test -n "$BISON"; then
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
6995 $as_echo "$BISON" >&6; }
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6998 $as_echo "no" >&6; }
7002 test -n "$BISON" && break
7007 if test "$BISON"; then
7008 pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: using $pgac_bison_version" >&5
7010 $as_echo "$as_me: using $pgac_bison_version" >&6;}
7011 if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7014 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7015 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
7016 $as_echo "$as_me: WARNING:
7017 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7018 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
7023 if test -z "$BISON"; then
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7025 *** Without Bison you will not be able to build PostgreSQL from Git nor
7026 *** change any of the parser definition files. You can obtain Bison from
7027 *** a GNU mirror site. (If you are using the official distribution of
7028 *** PostgreSQL then you do not need to worry about this, because the Bison
7029 *** output is pre-generated.)" >&5
7030 $as_echo "$as_me: WARNING:
7031 *** Without Bison you will not be able to build PostgreSQL from Git nor
7032 *** change any of the parser definition files. You can obtain Bison from
7033 *** a GNU mirror site. (If you are using the official distribution of
7034 *** PostgreSQL then you do not need to worry about this, because the Bison
7035 *** output is pre-generated.)" >&2;}
7037 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex" >&5
7041 $as_echo_n "checking for flex... " >&6; }
7042 if ${pgac_cv_path_flex+:} false; then :
7043 $as_echo_n "(cached) " >&6
7045 # Let the user override the test
7046 if test -n "$FLEX"; then
7047 pgac_cv_path_flex=$FLEX
7051 for pgac_dir in $PATH; do
7053 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
7056 for pgac_prog in flex lex; do
7057 pgac_candidate="$pgac_dir/$pgac_prog"
7058 if test -f "$pgac_candidate" \
7059 && $pgac_candidate --version </dev/null >/dev/null 2>&1
7061 echo '%%' > conftest.l
7062 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
7063 pgac_flex_version=`$pgac_candidate --version 2>/dev/null`
7064 if echo "$pgac_flex_version" | sed 's/[.a-z]/ /g' | $AWK '{ if ($1 = 2 && $2 = 5 && $3 >= 31) exit 0; else exit 1;}'
7066 pgac_cv_path_flex=$pgac_candidate
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7070 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7071 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
7072 $as_echo "$as_me: WARNING:
7073 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7074 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
7080 rm -f conftest.l lex.yy.c
7081 : ${pgac_cv_path_flex=no}
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_path_flex" >&5
7086 $as_echo "$pgac_cv_path_flex" >&6; }
7087 if test x"$pgac_cv_path_flex" = x"no"; then
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7089 *** Without Flex you will not be able to build PostgreSQL from Git nor
7090 *** change any of the scanner definition files. You can obtain Flex from
7091 *** a GNU mirror site. (If you are using the official distribution of
7092 *** PostgreSQL then you do not need to worry about this because the Flex
7093 *** output is pre-generated.)" >&5
7094 $as_echo "$as_me: WARNING:
7095 *** Without Flex you will not be able to build PostgreSQL from Git nor
7096 *** change any of the scanner definition files. You can obtain Flex from
7097 *** a GNU mirror site. (If you are using the official distribution of
7098 *** PostgreSQL then you do not need to worry about this because the Flex
7099 *** output is pre-generated.)" >&2;}
7103 FLEX=$pgac_cv_path_flex
7104 pgac_flex_version=`$FLEX --version 2>/dev/null`
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: using $pgac_flex_version" >&5
7106 $as_echo "$as_me: using $pgac_flex_version" >&6;}
7113 # Let the user override the search
7114 if test -z "$PERL"; then
7115 # Extract the first word of "perl", so it can be a program name with args.
7116 set dummy perl; ac_word=$2
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7118 $as_echo_n "checking for $ac_word... " >&6; }
7119 if ${ac_cv_path_PERL+:} false; then :
7120 $as_echo_n "(cached) " >&6
7124 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7131 test -z "$as_dir" && as_dir=.
7132 for ac_exec_ext in '' $ac_executable_extensions; do
7133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7134 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7145 PERL=$ac_cv_path_PERL
7146 if test -n "$PERL"; then
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7148 $as_echo "$PERL" >&6; }
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7151 $as_echo "no" >&6; }
7157 if test "$PERL"; then
7158 pgac_perl_version=`$PERL -v 2>/dev/null | sed -n 's/This is perl.*v[a-z ]*\([0-9]\.[0-9][0-9.]*\).*$/\1/p'`
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: using perl $pgac_perl_version" >&5
7160 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
7161 if echo "$pgac_perl_version" | sed 's/[.a-z_]/ /g' | \
7162 $AWK '{ if ($1 = 5 && $2 >= 8) exit 1; else exit 0;}'
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7165 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7166 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&5
7167 $as_echo "$as_me: WARNING:
7168 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7169 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&2;}
7174 if test -z "$PERL"; then
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7176 *** Without Perl you will not be able to build PostgreSQL from Git.
7177 *** You can obtain Perl from any CPAN mirror site.
7178 *** (If you are using the official distribution of PostgreSQL then you do not
7179 *** need to worry about this, because the Perl output is pre-generated.)" >&5
7180 $as_echo "$as_me: WARNING:
7181 *** Without Perl you will not be able to build PostgreSQL from Git.
7182 *** You can obtain Perl from any CPAN mirror site.
7183 *** (If you are using the official distribution of PostgreSQL then you do not
7184 *** need to worry about this, because the Perl output is pre-generated.)" >&2;}
7187 if test "$with_perl" = yes; then
7188 if test -z "$PERL"; then
7189 as_fn_error $? "Perl not found" "$LINENO" 5
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl archlibexp" >&5
7193 $as_echo_n "checking for Perl archlibexp... " >&6; }
7194 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
7195 test "$PORTNAME" = "win32" && perl_archlibexp=`echo $perl_archlibexp | sed 's,\\\\,/,g'`
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_archlibexp" >&5
7197 $as_echo "$perl_archlibexp" >&6; }
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl privlibexp" >&5
7199 $as_echo_n "checking for Perl privlibexp... " >&6; }
7200 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
7201 test "$PORTNAME" = "win32" && perl_privlibexp=`echo $perl_privlibexp | sed 's,\\\\,/,g'`
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_privlibexp" >&5
7203 $as_echo "$perl_privlibexp" >&6; }
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl useshrplib" >&5
7205 $as_echo_n "checking for Perl useshrplib... " >&6; }
7206 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
7207 test "$PORTNAME" = "win32" && perl_useshrplib=`echo $perl_useshrplib | sed 's,\\\\,/,g'`
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_useshrplib" >&5
7209 $as_echo "$perl_useshrplib" >&6; }
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flags to link embedded Perl" >&5
7212 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
7213 if test "$PORTNAME" = "win32" ; then
7214 perl_lib=`basename $perl_archlibexp/CORE/perl[5-9]*.lib .lib`
7215 test -e "$perl_archlibexp/CORE/$perl_lib.lib" && perl_embed_ldflags="-L$perl_archlibexp/CORE -l$perl_lib"
7217 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
7218 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
7219 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
7221 if test -z "$perl_embed_ldflags" ; then
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7223 $as_echo "no" >&6; }
7224 as_fn_error $? "could not determine flags for linking embedded Perl.
7225 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7226 installed." "$LINENO" 5
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_embed_ldflags" >&5
7229 $as_echo "$perl_embed_ldflags" >&6; }
7234 if test "$with_python" = yes; then
7235 # Extract the first word of "python", so it can be a program name with args.
7236 set dummy python; ac_word=$2
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7238 $as_echo_n "checking for $ac_word... " >&6; }
7239 if ${ac_cv_path_PYTHON+:} false; then :
7240 $as_echo_n "(cached) " >&6
7244 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
7247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7251 test -z "$as_dir" && as_dir=.
7252 for ac_exec_ext in '' $ac_executable_extensions; do
7253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7254 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
7255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7265 PYTHON=$ac_cv_path_PYTHON
7266 if test -n "$PYTHON"; then
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
7268 $as_echo "$PYTHON" >&6; }
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7271 $as_echo "no" >&6; }
7275 if test x"$PYTHON" = x""; then
7276 as_fn_error $? "Python not found" "$LINENO" 5
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python distutils module" >&5
7281 $as_echo_n "checking for Python distutils module... " >&6; }
7282 if "${PYTHON}" -c 'import distutils' 2>&5
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7285 $as_echo "yes" >&6; }
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7288 $as_echo "no" >&6; }
7289 as_fn_error $? "distutils module not found" "$LINENO" 5
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python configuration directory" >&5
7292 $as_echo_n "checking Python configuration directory... " >&6; }
7293 python_majorversion=`${PYTHON} -c "import sys; print(sys.version[0])"`
7294 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
7295 python_configdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBPL'))))"`
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_configdir" >&5
7297 $as_echo "$python_configdir" >&6; }
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python include directories" >&5
7300 $as_echo_n "checking Python include directories... " >&6; }
7301 python_includespec=`${PYTHON} -c "
7302 import distutils.sysconfig
7303 a = '-I' + distutils.sysconfig.get_python_inc(False)
7304 b = '-I' + distutils.sysconfig.get_python_inc(True)
7308 print(a + ' ' + b)"`
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_includespec" >&5
7310 $as_echo "$python_includespec" >&6; }
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link an embedded Python application" >&5
7315 $as_echo_n "checking how to link an embedded Python application... " >&6; }
7317 python_libdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
7318 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
7319 python_so=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('SO'))))"`
7320 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
7321 python_framework=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('PYTHONFRAMEWORK'))))"`
7322 python_enable_shared=`${PYTHON} -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_vars().get('Py_ENABLE_SHARED',0))"`
7324 if test -n "$python_framework"; then
7325 python_frameworkprefix=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('PYTHONFRAMEWORKPREFIX'))))"`
7326 python_libspec="-F${python_frameworkprefix} -framework $python_framework"
7327 python_enable_shared=1
7328 elif test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
7330 # New way: use the official shared library
7331 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
7332 python_libspec="-L${python_libdir} -l${ldlibrary}"
7334 # Old way: use libpython from python_configdir
7335 python_libdir="${python_configdir}"
7336 # LDVERSION was introduced in Python 3.2.
7337 python_ldversion=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDVERSION'))))"`
7338 if test x"${python_ldversion}" = x""; then
7339 python_ldversion=$python_version
7341 python_libspec="-L${python_libdir} -lpython${python_ldversion}"
7344 if test -z "$python_framework"; then
7345 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_libspec} ${python_additional_libs}" >&5
7349 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
7352 # threaded python is not supported on OpenBSD
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Python is compiled with thread support" >&5
7354 $as_echo_n "checking whether Python is compiled with thread support... " >&6; }
7355 pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
7356 if test "$pythreads" = "1"; then
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7358 $as_echo "yes" >&6; }
7361 as_fn_error $? "threaded Python not supported on this platform" "$LINENO" 5
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7366 $as_echo "no" >&6; }
7372 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
7373 # Extract the first word of "zic", so it can be a program name with args.
7374 set dummy zic; ac_word=$2
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7376 $as_echo_n "checking for $ac_word... " >&6; }
7377 if ${ac_cv_path_ZIC+:} false; then :
7378 $as_echo_n "(cached) " >&6
7382 ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
7385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7389 test -z "$as_dir" && as_dir=.
7390 for ac_exec_ext in '' $ac_executable_extensions; do
7391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7392 ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
7393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7404 if test -n "$ZIC"; then
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIC" >&5
7406 $as_echo "$ZIC" >&6; }
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7409 $as_echo "no" >&6; }
7413 if test -z "$ZIC"; then
7415 When cross-compiling, either use the option --with-system-tzdata to use
7416 existing time-zone data, or set the environment variable ZIC to a zic
7417 program to use during the build." "$LINENO" 5
7425 ## Most libraries are included only if they demonstrably provide a function
7426 ## we need, but libm is an exception: always include it, because there are
7427 ## too many compilers that play cute optimization games that will break
7428 ## probes for standard functions such as pow().
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
7432 $as_echo_n "checking for main in -lm... " >&6; }
7433 if ${ac_cv_lib_m_main+:} false; then :
7434 $as_echo_n "(cached) " >&6
7436 ac_check_lib_save_LIBS=$LIBS
7438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7439 /* end confdefs.h. */
7450 if ac_fn_c_try_link "$LINENO"; then :
7451 ac_cv_lib_m_main=yes
7455 rm -f core conftest.err conftest.$ac_objext \
7456 conftest$ac_exeext conftest.$ac_ext
7457 LIBS=$ac_check_lib_save_LIBS
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
7460 $as_echo "$ac_cv_lib_m_main" >&6; }
7461 if test "x$ac_cv_lib_m_main" = xyes; then :
7462 cat >>confdefs.h <<_ACEOF
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setproctitle" >&5
7471 $as_echo_n "checking for library containing setproctitle... " >&6; }
7472 if ${ac_cv_search_setproctitle+:} false; then :
7473 $as_echo_n "(cached) " >&6
7475 ac_func_search_save_LIBS=$LIBS
7476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7477 /* end confdefs.h. */
7479 /* Override any GCC internal prototype to avoid an error.
7480 Use char because int might match the return type of a GCC
7481 builtin and then its argument prototype would still apply. */
7485 char setproctitle ();
7489 return setproctitle ();
7494 for ac_lib in '' util; do
7495 if test -z "$ac_lib"; then
7496 ac_res="none required"
7499 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7501 if ac_fn_c_try_link "$LINENO"; then :
7502 ac_cv_search_setproctitle=$ac_res
7504 rm -f core conftest.err conftest.$ac_objext \
7506 if ${ac_cv_search_setproctitle+:} false; then :
7510 if ${ac_cv_search_setproctitle+:} false; then :
7513 ac_cv_search_setproctitle=no
7516 LIBS=$ac_func_search_save_LIBS
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setproctitle" >&5
7519 $as_echo "$ac_cv_search_setproctitle" >&6; }
7520 ac_res=$ac_cv_search_setproctitle
7521 if test "$ac_res" != no; then :
7522 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
7527 $as_echo_n "checking for library containing dlopen... " >&6; }
7528 if ${ac_cv_search_dlopen+:} false; then :
7529 $as_echo_n "(cached) " >&6
7531 ac_func_search_save_LIBS=$LIBS
7532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7533 /* end confdefs.h. */
7535 /* Override any GCC internal prototype to avoid an error.
7536 Use char because int might match the return type of a GCC
7537 builtin and then its argument prototype would still apply. */
7550 for ac_lib in '' dl; do
7551 if test -z "$ac_lib"; then
7552 ac_res="none required"
7555 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7557 if ac_fn_c_try_link "$LINENO"; then :
7558 ac_cv_search_dlopen=$ac_res
7560 rm -f core conftest.err conftest.$ac_objext \
7562 if ${ac_cv_search_dlopen+:} false; then :
7566 if ${ac_cv_search_dlopen+:} false; then :
7569 ac_cv_search_dlopen=no
7572 LIBS=$ac_func_search_save_LIBS
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
7575 $as_echo "$ac_cv_search_dlopen" >&6; }
7576 ac_res=$ac_cv_search_dlopen
7577 if test "$ac_res" != no; then :
7578 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
7583 $as_echo_n "checking for library containing socket... " >&6; }
7584 if ${ac_cv_search_socket+:} false; then :
7585 $as_echo_n "(cached) " >&6
7587 ac_func_search_save_LIBS=$LIBS
7588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7589 /* end confdefs.h. */
7591 /* Override any GCC internal prototype to avoid an error.
7592 Use char because int might match the return type of a GCC
7593 builtin and then its argument prototype would still apply. */
7606 for ac_lib in '' socket wsock32; do
7607 if test -z "$ac_lib"; then
7608 ac_res="none required"
7611 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7613 if ac_fn_c_try_link "$LINENO"; then :
7614 ac_cv_search_socket=$ac_res
7616 rm -f core conftest.err conftest.$ac_objext \
7618 if ${ac_cv_search_socket+:} false; then :
7622 if ${ac_cv_search_socket+:} false; then :
7625 ac_cv_search_socket=no
7628 LIBS=$ac_func_search_save_LIBS
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
7631 $as_echo "$ac_cv_search_socket" >&6; }
7632 ac_res=$ac_cv_search_socket
7633 if test "$ac_res" != no; then :
7634 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
7639 $as_echo_n "checking for library containing shl_load... " >&6; }
7640 if ${ac_cv_search_shl_load+:} false; then :
7641 $as_echo_n "(cached) " >&6
7643 ac_func_search_save_LIBS=$LIBS
7644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7645 /* end confdefs.h. */
7647 /* Override any GCC internal prototype to avoid an error.
7648 Use char because int might match the return type of a GCC
7649 builtin and then its argument prototype would still apply. */
7662 for ac_lib in '' dld; do
7663 if test -z "$ac_lib"; then
7664 ac_res="none required"
7667 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7669 if ac_fn_c_try_link "$LINENO"; then :
7670 ac_cv_search_shl_load=$ac_res
7672 rm -f core conftest.err conftest.$ac_objext \
7674 if ${ac_cv_search_shl_load+:} false; then :
7678 if ${ac_cv_search_shl_load+:} false; then :
7681 ac_cv_search_shl_load=no
7684 LIBS=$ac_func_search_save_LIBS
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
7687 $as_echo "$ac_cv_search_shl_load" >&6; }
7688 ac_res=$ac_cv_search_shl_load
7689 if test "$ac_res" != no; then :
7690 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7694 # We only use libld in port/dynloader/aix.c
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldopen" >&5
7698 $as_echo_n "checking for library containing ldopen... " >&6; }
7699 if ${ac_cv_search_ldopen+:} false; then :
7700 $as_echo_n "(cached) " >&6
7702 ac_func_search_save_LIBS=$LIBS
7703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7704 /* end confdefs.h. */
7706 /* Override any GCC internal prototype to avoid an error.
7707 Use char because int might match the return type of a GCC
7708 builtin and then its argument prototype would still apply. */
7721 for ac_lib in '' ld; do
7722 if test -z "$ac_lib"; then
7723 ac_res="none required"
7726 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7728 if ac_fn_c_try_link "$LINENO"; then :
7729 ac_cv_search_ldopen=$ac_res
7731 rm -f core conftest.err conftest.$ac_objext \
7733 if ${ac_cv_search_ldopen+:} false; then :
7737 if ${ac_cv_search_ldopen+:} false; then :
7740 ac_cv_search_ldopen=no
7743 LIBS=$ac_func_search_save_LIBS
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldopen" >&5
7746 $as_echo "$ac_cv_search_ldopen" >&6; }
7747 ac_res=$ac_cv_search_ldopen
7748 if test "$ac_res" != no; then :
7749 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getopt_long" >&5
7756 $as_echo_n "checking for library containing getopt_long... " >&6; }
7757 if ${ac_cv_search_getopt_long+:} false; then :
7758 $as_echo_n "(cached) " >&6
7760 ac_func_search_save_LIBS=$LIBS
7761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7762 /* end confdefs.h. */
7764 /* Override any GCC internal prototype to avoid an error.
7765 Use char because int might match the return type of a GCC
7766 builtin and then its argument prototype would still apply. */
7770 char getopt_long ();
7774 return getopt_long ();
7779 for ac_lib in '' getopt gnugetopt; do
7780 if test -z "$ac_lib"; then
7781 ac_res="none required"
7784 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7786 if ac_fn_c_try_link "$LINENO"; then :
7787 ac_cv_search_getopt_long=$ac_res
7789 rm -f core conftest.err conftest.$ac_objext \
7791 if ${ac_cv_search_getopt_long+:} false; then :
7795 if ${ac_cv_search_getopt_long+:} false; then :
7798 ac_cv_search_getopt_long=no
7801 LIBS=$ac_func_search_save_LIBS
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getopt_long" >&5
7804 $as_echo "$ac_cv_search_getopt_long" >&6; }
7805 ac_res=$ac_cv_search_getopt_long
7806 if test "$ac_res" != no; then :
7807 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
7812 $as_echo_n "checking for library containing crypt... " >&6; }
7813 if ${ac_cv_search_crypt+:} false; then :
7814 $as_echo_n "(cached) " >&6
7816 ac_func_search_save_LIBS=$LIBS
7817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7818 /* end confdefs.h. */
7820 /* Override any GCC internal prototype to avoid an error.
7821 Use char because int might match the return type of a GCC
7822 builtin and then its argument prototype would still apply. */
7835 for ac_lib in '' crypt; do
7836 if test -z "$ac_lib"; then
7837 ac_res="none required"
7840 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7842 if ac_fn_c_try_link "$LINENO"; then :
7843 ac_cv_search_crypt=$ac_res
7845 rm -f core conftest.err conftest.$ac_objext \
7847 if ${ac_cv_search_crypt+:} false; then :
7851 if ${ac_cv_search_crypt+:} false; then :
7854 ac_cv_search_crypt=no
7857 LIBS=$ac_func_search_save_LIBS
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
7860 $as_echo "$ac_cv_search_crypt" >&6; }
7861 ac_res=$ac_cv_search_crypt
7862 if test "$ac_res" != no; then :
7863 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
7868 $as_echo_n "checking for library containing shm_open... " >&6; }
7869 if ${ac_cv_search_shm_open+:} false; then :
7870 $as_echo_n "(cached) " >&6
7872 ac_func_search_save_LIBS=$LIBS
7873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7874 /* end confdefs.h. */
7876 /* Override any GCC internal prototype to avoid an error.
7877 Use char because int might match the return type of a GCC
7878 builtin and then its argument prototype would still apply. */
7891 for ac_lib in '' rt; do
7892 if test -z "$ac_lib"; then
7893 ac_res="none required"
7896 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7898 if ac_fn_c_try_link "$LINENO"; then :
7899 ac_cv_search_shm_open=$ac_res
7901 rm -f core conftest.err conftest.$ac_objext \
7903 if ${ac_cv_search_shm_open+:} false; then :
7907 if ${ac_cv_search_shm_open+:} false; then :
7910 ac_cv_search_shm_open=no
7913 LIBS=$ac_func_search_save_LIBS
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
7916 $as_echo "$ac_cv_search_shm_open" >&6; }
7917 ac_res=$ac_cv_search_shm_open
7918 if test "$ac_res" != no; then :
7919 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_unlink" >&5
7924 $as_echo_n "checking for library containing shm_unlink... " >&6; }
7925 if ${ac_cv_search_shm_unlink+:} false; then :
7926 $as_echo_n "(cached) " >&6
7928 ac_func_search_save_LIBS=$LIBS
7929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7930 /* end confdefs.h. */
7932 /* Override any GCC internal prototype to avoid an error.
7933 Use char because int might match the return type of a GCC
7934 builtin and then its argument prototype would still apply. */
7942 return shm_unlink ();
7947 for ac_lib in '' rt; do
7948 if test -z "$ac_lib"; then
7949 ac_res="none required"
7952 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7954 if ac_fn_c_try_link "$LINENO"; then :
7955 ac_cv_search_shm_unlink=$ac_res
7957 rm -f core conftest.err conftest.$ac_objext \
7959 if ${ac_cv_search_shm_unlink+:} false; then :
7963 if ${ac_cv_search_shm_unlink+:} false; then :
7966 ac_cv_search_shm_unlink=no
7969 LIBS=$ac_func_search_save_LIBS
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_unlink" >&5
7972 $as_echo "$ac_cv_search_shm_unlink" >&6; }
7973 ac_res=$ac_cv_search_shm_unlink
7974 if test "$ac_res" != no; then :
7975 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
7981 $as_echo_n "checking for library containing fdatasync... " >&6; }
7982 if ${ac_cv_search_fdatasync+:} false; then :
7983 $as_echo_n "(cached) " >&6
7985 ac_func_search_save_LIBS=$LIBS
7986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7987 /* end confdefs.h. */
7989 /* Override any GCC internal prototype to avoid an error.
7990 Use char because int might match the return type of a GCC
7991 builtin and then its argument prototype would still apply. */
7999 return fdatasync ();
8004 for ac_lib in '' rt posix4; do
8005 if test -z "$ac_lib"; then
8006 ac_res="none required"
8009 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8011 if ac_fn_c_try_link "$LINENO"; then :
8012 ac_cv_search_fdatasync=$ac_res
8014 rm -f core conftest.err conftest.$ac_objext \
8016 if ${ac_cv_search_fdatasync+:} false; then :
8020 if ${ac_cv_search_fdatasync+:} false; then :
8023 ac_cv_search_fdatasync=no
8026 LIBS=$ac_func_search_save_LIBS
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
8029 $as_echo "$ac_cv_search_fdatasync" >&6; }
8030 ac_res=$ac_cv_search_fdatasync
8031 if test "$ac_res" != no; then :
8032 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8036 # Required for thread_test.c on Solaris 2.5:
8037 # Other ports use it too (HP-UX) so test unconditionally
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname_r" >&5
8039 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
8040 if ${ac_cv_search_gethostbyname_r+:} false; then :
8041 $as_echo_n "(cached) " >&6
8043 ac_func_search_save_LIBS=$LIBS
8044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8045 /* end confdefs.h. */
8047 /* Override any GCC internal prototype to avoid an error.
8048 Use char because int might match the return type of a GCC
8049 builtin and then its argument prototype would still apply. */
8053 char gethostbyname_r ();
8057 return gethostbyname_r ();
8062 for ac_lib in '' nsl; do
8063 if test -z "$ac_lib"; then
8064 ac_res="none required"
8067 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8069 if ac_fn_c_try_link "$LINENO"; then :
8070 ac_cv_search_gethostbyname_r=$ac_res
8072 rm -f core conftest.err conftest.$ac_objext \
8074 if ${ac_cv_search_gethostbyname_r+:} false; then :
8078 if ${ac_cv_search_gethostbyname_r+:} false; then :
8081 ac_cv_search_gethostbyname_r=no
8084 LIBS=$ac_func_search_save_LIBS
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname_r" >&5
8087 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
8088 ac_res=$ac_cv_search_gethostbyname_r
8089 if test "$ac_res" != no; then :
8090 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shmget" >&5
8096 $as_echo_n "checking for library containing shmget... " >&6; }
8097 if ${ac_cv_search_shmget+:} false; then :
8098 $as_echo_n "(cached) " >&6
8100 ac_func_search_save_LIBS=$LIBS
8101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8102 /* end confdefs.h. */
8104 /* Override any GCC internal prototype to avoid an error.
8105 Use char because int might match the return type of a GCC
8106 builtin and then its argument prototype would still apply. */
8119 for ac_lib in '' cygipc; do
8120 if test -z "$ac_lib"; then
8121 ac_res="none required"
8124 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8126 if ac_fn_c_try_link "$LINENO"; then :
8127 ac_cv_search_shmget=$ac_res
8129 rm -f core conftest.err conftest.$ac_objext \
8131 if ${ac_cv_search_shmget+:} false; then :
8135 if ${ac_cv_search_shmget+:} false; then :
8138 ac_cv_search_shmget=no
8141 LIBS=$ac_func_search_save_LIBS
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shmget" >&5
8144 $as_echo "$ac_cv_search_shmget" >&6; }
8145 ac_res=$ac_cv_search_shmget
8146 if test "$ac_res" != no; then :
8147 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8152 if test "$with_readline" = yes; then
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
8156 $as_echo_n "checking for library containing readline... " >&6; }
8157 if ${pgac_cv_check_readline+:} false; then :
8158 $as_echo_n "(cached) " >&6
8160 pgac_cv_check_readline=no
8161 pgac_save_LIBS=$LIBS
8162 if test x"$with_libedit_preferred" != x"yes"
8163 then READLINE_ORDER="-lreadline -ledit"
8164 else READLINE_ORDER="-ledit -lreadline"
8166 for pgac_rllib in $READLINE_ORDER ; do
8167 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
8168 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
8169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8170 /* end confdefs.h. */
8172 /* Override any GCC internal prototype to avoid an error.
8173 Use char because int might match the return type of a GCC
8174 builtin and then its argument prototype would still apply. */
8187 if ac_fn_c_try_link "$LINENO"; then :
8189 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
8190 # recognize dependent libraries; assume curses is needed if we didn't
8191 # find any dependency.
8193 netbsd* | openbsd* | irix*)
8194 if test x"$pgac_lib" = x"" ; then
8195 pgac_lib=" -lcurses"
8199 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
8203 rm -f core conftest.err conftest.$ac_objext \
8204 conftest$ac_exeext conftest.$ac_ext
8206 if test "$pgac_cv_check_readline" != no ; then
8210 LIBS=$pgac_save_LIBS
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_check_readline" >&5
8214 $as_echo "$pgac_cv_check_readline" >&6; }
8215 if test "$pgac_cv_check_readline" != no ; then
8216 LIBS="$pgac_cv_check_readline $LIBS"
8218 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
8223 if test x"$pgac_cv_check_readline" = x"no"; then
8224 as_fn_error $? "readline library not found
8225 If you have readline already installed, see config.log for details on the
8226 failure. It is possible the compiler isn't looking in the proper directory.
8227 Use --without-readline to disable readline support." "$LINENO" 5
8231 if test "$with_zlib" = yes; then
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
8233 $as_echo_n "checking for inflate in -lz... " >&6; }
8234 if ${ac_cv_lib_z_inflate+:} false; then :
8235 $as_echo_n "(cached) " >&6
8237 ac_check_lib_save_LIBS=$LIBS
8239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8240 /* end confdefs.h. */
8242 /* Override any GCC internal prototype to avoid an error.
8243 Use char because int might match the return type of a GCC
8244 builtin and then its argument prototype would still apply. */
8257 if ac_fn_c_try_link "$LINENO"; then :
8258 ac_cv_lib_z_inflate=yes
8260 ac_cv_lib_z_inflate=no
8262 rm -f core conftest.err conftest.$ac_objext \
8263 conftest$ac_exeext conftest.$ac_ext
8264 LIBS=$ac_check_lib_save_LIBS
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
8267 $as_echo "$ac_cv_lib_z_inflate" >&6; }
8268 if test "x$ac_cv_lib_z_inflate" = xyes; then :
8269 cat >>confdefs.h <<_ACEOF
8276 as_fn_error $? "zlib library not found
8277 If you have zlib already installed, see config.log for details on the
8278 failure. It is possible the compiler isn't looking in the proper directory.
8279 Use --without-zlib to disable zlib support." "$LINENO" 5
8284 if test "$enable_spinlocks" = yes; then
8286 $as_echo "#define HAVE_SPINLOCKS 1" >>confdefs.h
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8290 *** Not using spinlocks will cause poor performance." >&5
8291 $as_echo "$as_me: WARNING:
8292 *** Not using spinlocks will cause poor performance." >&2;}
8295 if test "$with_gssapi" = yes ; then
8296 if test "$PORTNAME" != "win32"; then
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_init_sec_context" >&5
8298 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
8299 if ${ac_cv_search_gss_init_sec_context+:} false; then :
8300 $as_echo_n "(cached) " >&6
8302 ac_func_search_save_LIBS=$LIBS
8303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8304 /* end confdefs.h. */
8306 /* Override any GCC internal prototype to avoid an error.
8307 Use char because int might match the return type of a GCC
8308 builtin and then its argument prototype would still apply. */
8312 char gss_init_sec_context ();
8316 return gss_init_sec_context ();
8321 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
8322 if test -z "$ac_lib"; then
8323 ac_res="none required"
8326 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8328 if ac_fn_c_try_link "$LINENO"; then :
8329 ac_cv_search_gss_init_sec_context=$ac_res
8331 rm -f core conftest.err conftest.$ac_objext \
8333 if ${ac_cv_search_gss_init_sec_context+:} false; then :
8337 if ${ac_cv_search_gss_init_sec_context+:} false; then :
8340 ac_cv_search_gss_init_sec_context=no
8343 LIBS=$ac_func_search_save_LIBS
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_init_sec_context" >&5
8346 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
8347 ac_res=$ac_cv_search_gss_init_sec_context
8348 if test "$ac_res" != no; then :
8349 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8352 as_fn_error $? "could not find function 'gss_init_sec_context' required for GSSAPI" "$LINENO" 5
8356 LIBS="$LIBS -lgssapi32"
8360 if test "$with_openssl" = yes ; then
8361 if test "$PORTNAME" != "win32"; then
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_new_ex_data in -lcrypto" >&5
8363 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
8364 if ${ac_cv_lib_crypto_CRYPTO_new_ex_data+:} false; then :
8365 $as_echo_n "(cached) " >&6
8367 ac_check_lib_save_LIBS=$LIBS
8368 LIBS="-lcrypto $LIBS"
8369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8370 /* end confdefs.h. */
8372 /* Override any GCC internal prototype to avoid an error.
8373 Use char because int might match the return type of a GCC
8374 builtin and then its argument prototype would still apply. */
8378 char CRYPTO_new_ex_data ();
8382 return CRYPTO_new_ex_data ();
8387 if ac_fn_c_try_link "$LINENO"; then :
8388 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
8390 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
8392 rm -f core conftest.err conftest.$ac_objext \
8393 conftest$ac_exeext conftest.$ac_ext
8394 LIBS=$ac_check_lib_save_LIBS
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
8397 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
8398 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = xyes; then :
8399 cat >>confdefs.h <<_ACEOF
8400 #define HAVE_LIBCRYPTO 1
8403 LIBS="-lcrypto $LIBS"
8406 as_fn_error $? "library 'crypto' is required for OpenSSL" "$LINENO" 5
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
8410 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
8411 if ${ac_cv_lib_ssl_SSL_library_init+:} false; then :
8412 $as_echo_n "(cached) " >&6
8414 ac_check_lib_save_LIBS=$LIBS
8416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8417 /* end confdefs.h. */
8419 /* Override any GCC internal prototype to avoid an error.
8420 Use char because int might match the return type of a GCC
8421 builtin and then its argument prototype would still apply. */
8425 char SSL_library_init ();
8429 return SSL_library_init ();
8434 if ac_fn_c_try_link "$LINENO"; then :
8435 ac_cv_lib_ssl_SSL_library_init=yes
8437 ac_cv_lib_ssl_SSL_library_init=no
8439 rm -f core conftest.err conftest.$ac_objext \
8440 conftest$ac_exeext conftest.$ac_ext
8441 LIBS=$ac_check_lib_save_LIBS
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
8444 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
8445 if test "x$ac_cv_lib_ssl_SSL_library_init" = xyes; then :
8446 cat >>confdefs.h <<_ACEOF
8447 #define HAVE_LIBSSL 1
8453 as_fn_error $? "library 'ssl' is required for OpenSSL" "$LINENO" 5
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing CRYPTO_new_ex_data" >&5
8458 $as_echo_n "checking for library containing CRYPTO_new_ex_data... " >&6; }
8459 if ${ac_cv_search_CRYPTO_new_ex_data+:} false; then :
8460 $as_echo_n "(cached) " >&6
8462 ac_func_search_save_LIBS=$LIBS
8463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8464 /* end confdefs.h. */
8466 /* Override any GCC internal prototype to avoid an error.
8467 Use char because int might match the return type of a GCC
8468 builtin and then its argument prototype would still apply. */
8472 char CRYPTO_new_ex_data ();
8476 return CRYPTO_new_ex_data ();
8481 for ac_lib in '' eay32 crypto; do
8482 if test -z "$ac_lib"; then
8483 ac_res="none required"
8486 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8488 if ac_fn_c_try_link "$LINENO"; then :
8489 ac_cv_search_CRYPTO_new_ex_data=$ac_res
8491 rm -f core conftest.err conftest.$ac_objext \
8493 if ${ac_cv_search_CRYPTO_new_ex_data+:} false; then :
8497 if ${ac_cv_search_CRYPTO_new_ex_data+:} false; then :
8500 ac_cv_search_CRYPTO_new_ex_data=no
8503 LIBS=$ac_func_search_save_LIBS
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_CRYPTO_new_ex_data" >&5
8506 $as_echo "$ac_cv_search_CRYPTO_new_ex_data" >&6; }
8507 ac_res=$ac_cv_search_CRYPTO_new_ex_data
8508 if test "$ac_res" != no; then :
8509 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8512 as_fn_error $? "library 'eay32' or 'crypto' is required for OpenSSL" "$LINENO" 5
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_library_init" >&5
8516 $as_echo_n "checking for library containing SSL_library_init... " >&6; }
8517 if ${ac_cv_search_SSL_library_init+:} false; then :
8518 $as_echo_n "(cached) " >&6
8520 ac_func_search_save_LIBS=$LIBS
8521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8522 /* end confdefs.h. */
8524 /* Override any GCC internal prototype to avoid an error.
8525 Use char because int might match the return type of a GCC
8526 builtin and then its argument prototype would still apply. */
8530 char SSL_library_init ();
8534 return SSL_library_init ();
8539 for ac_lib in '' ssleay32 ssl; do
8540 if test -z "$ac_lib"; then
8541 ac_res="none required"
8544 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8546 if ac_fn_c_try_link "$LINENO"; then :
8547 ac_cv_search_SSL_library_init=$ac_res
8549 rm -f core conftest.err conftest.$ac_objext \
8551 if ${ac_cv_search_SSL_library_init+:} false; then :
8555 if ${ac_cv_search_SSL_library_init+:} false; then :
8558 ac_cv_search_SSL_library_init=no
8561 LIBS=$ac_func_search_save_LIBS
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_library_init" >&5
8564 $as_echo "$ac_cv_search_SSL_library_init" >&6; }
8565 ac_res=$ac_cv_search_SSL_library_init
8566 if test "$ac_res" != no; then :
8567 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8570 as_fn_error $? "library 'ssleay32' or 'ssl' is required for OpenSSL" "$LINENO" 5
8576 if test "$with_pam" = yes ; then
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
8578 $as_echo_n "checking for pam_start in -lpam... " >&6; }
8579 if ${ac_cv_lib_pam_pam_start+:} false; then :
8580 $as_echo_n "(cached) " >&6
8582 ac_check_lib_save_LIBS=$LIBS
8584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8585 /* end confdefs.h. */
8587 /* Override any GCC internal prototype to avoid an error.
8588 Use char because int might match the return type of a GCC
8589 builtin and then its argument prototype would still apply. */
8597 return pam_start ();
8602 if ac_fn_c_try_link "$LINENO"; then :
8603 ac_cv_lib_pam_pam_start=yes
8605 ac_cv_lib_pam_pam_start=no
8607 rm -f core conftest.err conftest.$ac_objext \
8608 conftest$ac_exeext conftest.$ac_ext
8609 LIBS=$ac_check_lib_save_LIBS
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
8612 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
8613 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
8614 cat >>confdefs.h <<_ACEOF
8615 #define HAVE_LIBPAM 1
8621 as_fn_error $? "library 'pam' is required for PAM" "$LINENO" 5
8626 if test "$with_libxml" = yes ; then
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSaveToBuffer in -lxml2" >&5
8628 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
8629 if ${ac_cv_lib_xml2_xmlSaveToBuffer+:} false; then :
8630 $as_echo_n "(cached) " >&6
8632 ac_check_lib_save_LIBS=$LIBS
8634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8635 /* end confdefs.h. */
8637 /* Override any GCC internal prototype to avoid an error.
8638 Use char because int might match the return type of a GCC
8639 builtin and then its argument prototype would still apply. */
8643 char xmlSaveToBuffer ();
8647 return xmlSaveToBuffer ();
8652 if ac_fn_c_try_link "$LINENO"; then :
8653 ac_cv_lib_xml2_xmlSaveToBuffer=yes
8655 ac_cv_lib_xml2_xmlSaveToBuffer=no
8657 rm -f core conftest.err conftest.$ac_objext \
8658 conftest$ac_exeext conftest.$ac_ext
8659 LIBS=$ac_check_lib_save_LIBS
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
8662 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
8663 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = xyes; then :
8664 cat >>confdefs.h <<_ACEOF
8665 #define HAVE_LIBXML2 1
8671 as_fn_error $? "library 'xml2' (version >= 2.6.23) is required for XML support" "$LINENO" 5
8676 if test "$with_libxslt" = yes ; then
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xsltCleanupGlobals in -lxslt" >&5
8678 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
8679 if ${ac_cv_lib_xslt_xsltCleanupGlobals+:} false; then :
8680 $as_echo_n "(cached) " >&6
8682 ac_check_lib_save_LIBS=$LIBS
8684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8685 /* end confdefs.h. */
8687 /* Override any GCC internal prototype to avoid an error.
8688 Use char because int might match the return type of a GCC
8689 builtin and then its argument prototype would still apply. */
8693 char xsltCleanupGlobals ();
8697 return xsltCleanupGlobals ();
8702 if ac_fn_c_try_link "$LINENO"; then :
8703 ac_cv_lib_xslt_xsltCleanupGlobals=yes
8705 ac_cv_lib_xslt_xsltCleanupGlobals=no
8707 rm -f core conftest.err conftest.$ac_objext \
8708 conftest$ac_exeext conftest.$ac_ext
8709 LIBS=$ac_check_lib_save_LIBS
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
8712 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
8713 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = xyes; then :
8714 cat >>confdefs.h <<_ACEOF
8715 #define HAVE_LIBXSLT 1
8721 as_fn_error $? "library 'xslt' is required for XSLT support" "$LINENO" 5
8726 # for contrib/sepgsql
8727 if test "$with_selinux" = yes; then
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for security_compute_create_name in -lselinux" >&5
8729 $as_echo_n "checking for security_compute_create_name in -lselinux... " >&6; }
8730 if ${ac_cv_lib_selinux_security_compute_create_name+:} false; then :
8731 $as_echo_n "(cached) " >&6
8733 ac_check_lib_save_LIBS=$LIBS
8734 LIBS="-lselinux $LIBS"
8735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8736 /* end confdefs.h. */
8738 /* Override any GCC internal prototype to avoid an error.
8739 Use char because int might match the return type of a GCC
8740 builtin and then its argument prototype would still apply. */
8744 char security_compute_create_name ();
8748 return security_compute_create_name ();
8753 if ac_fn_c_try_link "$LINENO"; then :
8754 ac_cv_lib_selinux_security_compute_create_name=yes
8756 ac_cv_lib_selinux_security_compute_create_name=no
8758 rm -f core conftest.err conftest.$ac_objext \
8759 conftest$ac_exeext conftest.$ac_ext
8760 LIBS=$ac_check_lib_save_LIBS
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_security_compute_create_name" >&5
8763 $as_echo "$ac_cv_lib_selinux_security_compute_create_name" >&6; }
8764 if test "x$ac_cv_lib_selinux_security_compute_create_name" = xyes; then :
8765 cat >>confdefs.h <<_ACEOF
8766 #define HAVE_LIBSELINUX 1
8769 LIBS="-lselinux $LIBS"
8772 as_fn_error $? "library 'libselinux', version 2.1.10 or newer, is required for SELinux support" "$LINENO" 5
8777 # for contrib/uuid-ossp
8778 if test "$with_ossp_uuid" = yes ; then
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_export in -lossp-uuid" >&5
8780 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
8781 if ${ac_cv_lib_ossp_uuid_uuid_export+:} false; then :
8782 $as_echo_n "(cached) " >&6
8784 ac_check_lib_save_LIBS=$LIBS
8785 LIBS="-lossp-uuid $LIBS"
8786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8787 /* end confdefs.h. */
8789 /* Override any GCC internal prototype to avoid an error.
8790 Use char because int might match the return type of a GCC
8791 builtin and then its argument prototype would still apply. */
8795 char uuid_export ();
8799 return uuid_export ();
8804 if ac_fn_c_try_link "$LINENO"; then :
8805 ac_cv_lib_ossp_uuid_uuid_export=yes
8807 ac_cv_lib_ossp_uuid_uuid_export=no
8809 rm -f core conftest.err conftest.$ac_objext \
8810 conftest$ac_exeext conftest.$ac_ext
8811 LIBS=$ac_check_lib_save_LIBS
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
8814 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
8815 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = xyes; then :
8816 OSSP_UUID_LIBS="-lossp-uuid"
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_export in -luuid" >&5
8819 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
8820 if ${ac_cv_lib_uuid_uuid_export+:} false; then :
8821 $as_echo_n "(cached) " >&6
8823 ac_check_lib_save_LIBS=$LIBS
8825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8826 /* end confdefs.h. */
8828 /* Override any GCC internal prototype to avoid an error.
8829 Use char because int might match the return type of a GCC
8830 builtin and then its argument prototype would still apply. */
8834 char uuid_export ();
8838 return uuid_export ();
8843 if ac_fn_c_try_link "$LINENO"; then :
8844 ac_cv_lib_uuid_uuid_export=yes
8846 ac_cv_lib_uuid_uuid_export=no
8848 rm -f core conftest.err conftest.$ac_objext \
8849 conftest$ac_exeext conftest.$ac_ext
8850 LIBS=$ac_check_lib_save_LIBS
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_export" >&5
8853 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
8854 if test "x$ac_cv_lib_uuid_uuid_export" = xyes; then :
8855 OSSP_UUID_LIBS="-luuid"
8857 as_fn_error $? "library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" "$LINENO" 5
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8871 $as_echo_n "checking for ANSI C header files... " >&6; }
8872 if ${ac_cv_header_stdc+:} false; then :
8873 $as_echo_n "(cached) " >&6
8875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8876 /* end confdefs.h. */
8890 if ac_fn_c_try_compile "$LINENO"; then :
8891 ac_cv_header_stdc=yes
8893 ac_cv_header_stdc=no
8895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8897 if test $ac_cv_header_stdc = yes; then
8898 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8900 /* end confdefs.h. */
8904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8905 $EGREP "memchr" >/dev/null 2>&1; then :
8908 ac_cv_header_stdc=no
8914 if test $ac_cv_header_stdc = yes; then
8915 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8917 /* end confdefs.h. */
8921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8922 $EGREP "free" >/dev/null 2>&1; then :
8925 ac_cv_header_stdc=no
8931 if test $ac_cv_header_stdc = yes; then
8932 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8933 if test "$cross_compiling" = yes; then :
8936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8937 /* end confdefs.h. */
8940 #if ((' ' & 0x0FF) == 0x020)
8941 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8942 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8944 # define ISLOWER(c) \
8945 (('a' <= (c) && (c) <= 'i') \
8946 || ('j' <= (c) && (c) <= 'r') \
8947 || ('s' <= (c) && (c) <= 'z'))
8948 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8951 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8956 for (i = 0; i < 256; i++)
8957 if (XOR (islower (i), ISLOWER (i))
8958 || toupper (i) != TOUPPER (i))
8963 if ac_fn_c_try_run "$LINENO"; then :
8966 ac_cv_header_stdc=no
8968 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8969 conftest.$ac_objext conftest.beam conftest.$ac_ext
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8975 $as_echo "$ac_cv_header_stdc" >&6; }
8976 if test $ac_cv_header_stdc = yes; then
8978 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8982 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8983 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8984 inttypes.h stdint.h unistd.h
8986 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8987 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8989 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8990 cat >>confdefs.h <<_ACEOF
8991 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8999 for ac_header in crypt.h dld.h fp_class.h getopt.h ieeefp.h ifaddrs.h langinfo.h poll.h pwd.h sys/ioctl.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/socket.h sys/sockio.h sys/tas.h sys/time.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h
9001 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9002 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9003 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9004 cat >>confdefs.h <<_ACEOF
9005 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9013 # On BSD, test for net/if.h will fail unless sys/socket.h
9014 # is included first.
9015 for ac_header in net/if.h
9017 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
9018 #ifdef HAVE_SYS_SOCKET_H
9019 #include <sys/socket.h>
9023 if test "x$ac_cv_header_net_if_h" = xyes; then :
9024 cat >>confdefs.h <<_ACEOF
9025 #define HAVE_NET_IF_H 1
9033 # On OpenBSD, test for sys/ucred.h will fail unless sys/param.h
9034 # is included first.
9035 for ac_header in sys/ucred.h
9037 ac_fn_c_check_header_compile "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default
9038 #include <sys/param.h>
9041 if test "x$ac_cv_header_sys_ucred_h" = xyes; then :
9042 cat >>confdefs.h <<_ACEOF
9043 #define HAVE_SYS_UCRED_H 1
9051 # At least on IRIX, test for netinet/tcp.h will fail unless
9052 # netinet/in.h is included first.
9053 for ac_header in netinet/in.h
9055 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
9056 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
9057 cat >>confdefs.h <<_ACEOF
9058 #define HAVE_NETINET_IN_H 1
9065 for ac_header in netinet/tcp.h
9067 ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default
9068 #ifdef HAVE_NETINET_IN_H
9069 #include <netinet/in.h>
9073 if test "x$ac_cv_header_netinet_tcp_h" = xyes; then :
9074 cat >>confdefs.h <<_ACEOF
9075 #define HAVE_NETINET_TCP_H 1
9083 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
9084 for ac_header in readline/readline.h
9086 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
9087 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
9088 cat >>confdefs.h <<_ACEOF
9089 #define HAVE_READLINE_READLINE_H 1
9093 for ac_header in readline.h
9095 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
9096 if test "x$ac_cv_header_readline_h" = xyes; then :
9097 cat >>confdefs.h <<_ACEOF
9098 #define HAVE_READLINE_H 1
9102 as_fn_error $? "readline header not found
9103 If you have readline already installed, see config.log for details on the
9104 failure. It is possible the compiler isn't looking in the proper directory.
9105 Use --without-readline to disable readline support." "$LINENO" 5
9114 for ac_header in readline/history.h
9116 ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
9117 if test "x$ac_cv_header_readline_history_h" = xyes; then :
9118 cat >>confdefs.h <<_ACEOF
9119 #define HAVE_READLINE_HISTORY_H 1
9123 for ac_header in history.h
9125 ac_fn_c_check_header_mongrel "$LINENO" "history.h" "ac_cv_header_history_h" "$ac_includes_default"
9126 if test "x$ac_cv_header_history_h" = xyes; then :
9127 cat >>confdefs.h <<_ACEOF
9128 #define HAVE_HISTORY_H 1
9132 as_fn_error $? "history header not found
9133 If you have readline already installed, see config.log for details on the
9134 failure. It is possible the compiler isn't looking in the proper directory.
9135 Use --without-readline to disable readline support." "$LINENO" 5
9146 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
9147 # Some installations of libedit usurp /usr/include/readline/, which seems
9148 # bad practice, since in combined installations readline will have its headers
9149 # there. We might have to resort to AC_EGREP checks to make sure we found
9150 # the proper header...
9151 for ac_header in editline/readline.h
9153 ac_fn_c_check_header_mongrel "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
9154 if test "x$ac_cv_header_editline_readline_h" = xyes; then :
9155 cat >>confdefs.h <<_ACEOF
9156 #define HAVE_EDITLINE_READLINE_H 1
9160 for ac_header in readline.h
9162 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
9163 if test "x$ac_cv_header_readline_h" = xyes; then :
9164 cat >>confdefs.h <<_ACEOF
9165 #define HAVE_READLINE_H 1
9169 for ac_header in readline/readline.h
9171 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
9172 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
9173 cat >>confdefs.h <<_ACEOF
9174 #define HAVE_READLINE_READLINE_H 1
9178 as_fn_error $? "readline header not found
9179 If you have libedit already installed, see config.log for details on the
9180 failure. It is possible the compiler isn't looking in the proper directory.
9181 Use --without-readline to disable libedit support." "$LINENO" 5
9194 # Note: in a libedit installation, history.h is sometimes a dummy, and may
9195 # not be there at all. Hence, don't complain if not found. We must check
9196 # though, since in yet other versions it is an independent header.
9197 for ac_header in editline/history.h
9199 ac_fn_c_check_header_mongrel "$LINENO" "editline/history.h" "ac_cv_header_editline_history_h" "$ac_includes_default"
9200 if test "x$ac_cv_header_editline_history_h" = xyes; then :
9201 cat >>confdefs.h <<_ACEOF
9202 #define HAVE_EDITLINE_HISTORY_H 1
9206 for ac_header in history.h
9208 ac_fn_c_check_header_mongrel "$LINENO" "history.h" "ac_cv_header_history_h" "$ac_includes_default"
9209 if test "x$ac_cv_header_history_h" = xyes; then :
9210 cat >>confdefs.h <<_ACEOF
9211 #define HAVE_HISTORY_H 1
9215 for ac_header in readline/history.h
9217 ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
9218 if test "x$ac_cv_header_readline_history_h" = xyes; then :
9219 cat >>confdefs.h <<_ACEOF
9220 #define HAVE_READLINE_HISTORY_H 1
9237 if test "$with_zlib" = yes; then
9238 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
9239 if test "x$ac_cv_header_zlib_h" = xyes; then :
9242 as_fn_error $? "zlib header not found
9243 If you have zlib already installed, see config.log for details on the
9244 failure. It is possible the compiler isn't looking in the proper directory.
9245 Use --without-zlib to disable zlib support." "$LINENO" 5
9251 if test "$with_gssapi" = yes ; then
9252 for ac_header in gssapi/gssapi.h
9254 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
9255 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
9256 cat >>confdefs.h <<_ACEOF
9257 #define HAVE_GSSAPI_GSSAPI_H 1
9261 for ac_header in gssapi.h
9263 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
9264 if test "x$ac_cv_header_gssapi_h" = xyes; then :
9265 cat >>confdefs.h <<_ACEOF
9266 #define HAVE_GSSAPI_H 1
9270 as_fn_error $? "gssapi.h header file is required for GSSAPI" "$LINENO" 5
9281 if test "$with_openssl" = yes ; then
9282 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
9283 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
9286 as_fn_error $? "header file <openssl/ssl.h> is required for OpenSSL" "$LINENO" 5
9290 ac_fn_c_check_header_mongrel "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default"
9291 if test "x$ac_cv_header_openssl_err_h" = xyes; then :
9294 as_fn_error $? "header file <openssl/err.h> is required for OpenSSL" "$LINENO" 5
9300 if test "$with_pam" = yes ; then
9301 for ac_header in security/pam_appl.h
9303 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
9304 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
9305 cat >>confdefs.h <<_ACEOF
9306 #define HAVE_SECURITY_PAM_APPL_H 1
9310 for ac_header in pam/pam_appl.h
9312 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
9313 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
9314 cat >>confdefs.h <<_ACEOF
9315 #define HAVE_PAM_PAM_APPL_H 1
9319 as_fn_error $? "header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." "$LINENO" 5
9330 if test "$with_libxml" = yes ; then
9331 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
9332 if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
9335 as_fn_error $? "header file <libxml/parser.h> is required for XML support" "$LINENO" 5
9341 if test "$with_libxslt" = yes ; then
9342 ac_fn_c_check_header_mongrel "$LINENO" "libxslt/xslt.h" "ac_cv_header_libxslt_xslt_h" "$ac_includes_default"
9343 if test "x$ac_cv_header_libxslt_xslt_h" = xyes; then :
9346 as_fn_error $? "header file <libxslt/xslt.h> is required for XSLT support" "$LINENO" 5
9352 if test "$with_ldap" = yes ; then
9353 if test "$PORTNAME" != "win32"; then
9354 for ac_header in ldap.h
9356 ac_fn_c_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
9357 if test "x$ac_cv_header_ldap_h" = xyes; then :
9358 cat >>confdefs.h <<_ACEOF
9359 #define HAVE_LDAP_H 1
9363 as_fn_error $? "header file <ldap.h> is required for LDAP" "$LINENO" 5
9369 for ac_header in winldap.h
9371 ac_fn_c_check_header_compile "$LINENO" "winldap.h" "ac_cv_header_winldap_h" "$ac_includes_default
9372 #include <windows.h>
9375 if test "x$ac_cv_header_winldap_h" = xyes; then :
9376 cat >>confdefs.h <<_ACEOF
9377 #define HAVE_WINLDAP_H 1
9381 as_fn_error $? "header file <winldap.h> is required for LDAP" "$LINENO" 5
9389 if test "$with_bonjour" = yes ; then
9390 ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
9391 if test "x$ac_cv_header_dns_sd_h" = xyes; then :
9394 as_fn_error $? "header file <dns_sd.h> is required for Bonjour" "$LINENO" 5
9400 # for contrib/uuid-ossp
9401 if test "$with_ossp_uuid" = yes ; then
9402 for ac_header in ossp/uuid.h
9404 ac_fn_c_check_header_mongrel "$LINENO" "ossp/uuid.h" "ac_cv_header_ossp_uuid_h" "$ac_includes_default"
9405 if test "x$ac_cv_header_ossp_uuid_h" = xyes; then :
9406 cat >>confdefs.h <<_ACEOF
9407 #define HAVE_OSSP_UUID_H 1
9412 for ac_header in uuid.h
9414 ac_fn_c_check_header_mongrel "$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
9415 if test "x$ac_cv_header_uuid_h" = xyes; then :
9416 cat >>confdefs.h <<_ACEOF
9417 #define HAVE_UUID_H 1
9421 as_fn_error $? "header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" "$LINENO" 5
9432 if test "$PORTNAME" = "win32" ; then
9433 for ac_header in crtdefs.h
9435 ac_fn_c_check_header_mongrel "$LINENO" "crtdefs.h" "ac_cv_header_crtdefs_h" "$ac_includes_default"
9436 if test "x$ac_cv_header_crtdefs_h" = xyes; then :
9437 cat >>confdefs.h <<_ACEOF
9438 #define HAVE_CRTDEFS_H 1
9448 ## Types, structures, compiler characteristics
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9452 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9453 if ${ac_cv_c_bigendian+:} false; then :
9454 $as_echo_n "(cached) " >&6
9456 ac_cv_c_bigendian=unknown
9457 # See if we're dealing with a universal compiler.
9458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9459 /* end confdefs.h. */
9460 #ifndef __APPLE_CC__
9461 not a universal capable compiler
9466 if ac_fn_c_try_compile "$LINENO"; then :
9468 # Check for potential -arch flags. It is not universal unless
9469 # there are at least two -arch flags with different values.
9472 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9473 if test -n "$ac_prev"; then
9475 i?86 | x86_64 | ppc | ppc64)
9476 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9479 ac_cv_c_bigendian=universal
9485 elif test "x$ac_word" = "x-arch"; then
9490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9491 if test $ac_cv_c_bigendian = unknown; then
9492 # See if sys/param.h defines the BYTE_ORDER macro.
9493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9494 /* end confdefs.h. */
9495 #include <sys/types.h>
9496 #include <sys/param.h>
9501 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9502 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9511 if ac_fn_c_try_compile "$LINENO"; then :
9512 # It does; now see whether it defined to BIG_ENDIAN or not.
9513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9514 /* end confdefs.h. */
9515 #include <sys/types.h>
9516 #include <sys/param.h>
9521 #if BYTE_ORDER != BIG_ENDIAN
9529 if ac_fn_c_try_compile "$LINENO"; then :
9530 ac_cv_c_bigendian=yes
9532 ac_cv_c_bigendian=no
9534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9538 if test $ac_cv_c_bigendian = unknown; then
9539 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9541 /* end confdefs.h. */
9547 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9555 if ac_fn_c_try_compile "$LINENO"; then :
9556 # It does; now see whether it defined to _BIG_ENDIAN or not.
9557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9558 /* end confdefs.h. */
9572 if ac_fn_c_try_compile "$LINENO"; then :
9573 ac_cv_c_bigendian=yes
9575 ac_cv_c_bigendian=no
9577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9581 if test $ac_cv_c_bigendian = unknown; then
9582 # Compile a test program.
9583 if test "$cross_compiling" = yes; then :
9584 # Try to guess by grepping values from an object file.
9585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9586 /* end confdefs.h. */
9587 short int ascii_mm[] =
9588 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9589 short int ascii_ii[] =
9590 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9591 int use_ascii (int i) {
9592 return ascii_mm[i] + ascii_ii[i];
9594 short int ebcdic_ii[] =
9595 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9596 short int ebcdic_mm[] =
9597 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9598 int use_ebcdic (int i) {
9599 return ebcdic_mm[i] + ebcdic_ii[i];
9606 return use_ascii (foo) == use_ebcdic (foo);
9611 if ac_fn_c_try_compile "$LINENO"; then :
9612 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9613 ac_cv_c_bigendian=yes
9615 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9616 if test "$ac_cv_c_bigendian" = unknown; then
9617 ac_cv_c_bigendian=no
9619 # finding both strings is unlikely to happen, but who knows?
9620 ac_cv_c_bigendian=unknown
9624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9627 /* end confdefs.h. */
9628 $ac_includes_default
9633 /* Are we little or big endian? From Harbison&Steele. */
9637 char c[sizeof (long int)];
9640 return u.c[sizeof (long int) - 1] == 1;
9646 if ac_fn_c_try_run "$LINENO"; then :
9647 ac_cv_c_bigendian=no
9649 ac_cv_c_bigendian=yes
9651 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9652 conftest.$ac_objext conftest.beam conftest.$ac_ext
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9658 $as_echo "$ac_cv_c_bigendian" >&6; }
9659 case $ac_cv_c_bigendian in #(
9661 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9667 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9671 as_fn_error $? "unknown endianness
9672 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
9676 $as_echo_n "checking for inline... " >&6; }
9677 if ${ac_cv_c_inline+:} false; then :
9678 $as_echo_n "(cached) " >&6
9681 for ac_kw in inline __inline__ __inline; do
9682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9683 /* end confdefs.h. */
9686 static $ac_kw foo_t static_foo () {return 0; }
9687 $ac_kw foo_t foo () {return 0; }
9691 if ac_fn_c_try_compile "$LINENO"; then :
9692 ac_cv_c_inline=$ac_kw
9694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9695 test "$ac_cv_c_inline" != no && break
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
9700 $as_echo "$ac_cv_c_inline" >&6; }
9702 case $ac_cv_c_inline in
9705 case $ac_cv_c_inline in
9707 *) ac_val=$ac_cv_c_inline;;
9709 cat >>confdefs.h <<_ACEOF
9711 #define inline $ac_val
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quiet inline (no complaint if unreferenced)" >&5
9718 $as_echo_n "checking for quiet inline (no complaint if unreferenced)... " >&6; }
9719 if ${pgac_cv_c_inline_quietly+:} false; then :
9720 $as_echo_n "(cached) " >&6
9722 pgac_cv_c_inline_quietly=no
9723 if test "$ac_cv_c_inline" != no; then
9724 pgac_c_inline_save_werror=$ac_c_werror_flag
9725 ac_c_werror_flag=yes
9726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9727 /* end confdefs.h. */
9728 #include "$srcdir/config/test_quiet_include.h"
9737 if ac_fn_c_try_link "$LINENO"; then :
9738 pgac_cv_c_inline_quietly=yes
9740 rm -f core conftest.err conftest.$ac_objext \
9741 conftest$ac_exeext conftest.$ac_ext
9742 ac_c_werror_flag=$pgac_c_inline_save_werror
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_c_inline_quietly" >&5
9746 $as_echo "$pgac_cv_c_inline_quietly" >&6; }
9747 if test "$pgac_cv_c_inline_quietly" != no; then
9749 cat >>confdefs.h <<_ACEOF
9750 #define PG_USE_INLINE 1
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
9757 $as_echo_n "checking for flexible array members... " >&6; }
9758 if ${ac_cv_c_flexmember+:} false; then :
9759 $as_echo_n "(cached) " >&6
9761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9762 /* end confdefs.h. */
9766 struct s { int n; double d[]; };
9771 struct s *p = malloc (offsetof (struct s, d)
9772 + m * sizeof (double));
9774 return p->d != (double *) NULL;
9779 if ac_fn_c_try_compile "$LINENO"; then :
9780 ac_cv_c_flexmember=yes
9782 ac_cv_c_flexmember=no
9784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
9787 $as_echo "$ac_cv_c_flexmember" >&6; }
9788 if test $ac_cv_c_flexmember = yes; then
9790 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
9793 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed types" >&5
9798 $as_echo_n "checking for signed types... " >&6; }
9799 if ${pgac_cv_c_signed+:} false; then :
9800 $as_echo_n "(cached) " >&6
9802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9803 /* end confdefs.h. */
9808 signed char c; signed short s; signed int i;
9813 if ac_fn_c_try_compile "$LINENO"; then :
9814 pgac_cv_c_signed=yes
9818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_c_signed" >&5
9821 $as_echo "$pgac_cv_c_signed" >&6; }
9822 if test x"$pgac_cv_c_signed" = xno ; then
9824 $as_echo "#define signed /**/" >>confdefs.h
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __func__" >&5
9828 $as_echo_n "checking for __func__... " >&6; }
9829 if ${pgac_cv_funcname_func_support+:} false; then :
9830 $as_echo_n "(cached) " >&6
9832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9833 /* end confdefs.h. */
9838 printf("%s\n", __func__);
9843 if ac_fn_c_try_compile "$LINENO"; then :
9844 pgac_cv_funcname_func_support=yes
9846 pgac_cv_funcname_func_support=no
9848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_funcname_func_support" >&5
9851 $as_echo "$pgac_cv_funcname_func_support" >&6; }
9852 if test x"$pgac_cv_funcname_func_support" = xyes ; then
9854 $as_echo "#define HAVE_FUNCNAME__FUNC 1" >>confdefs.h
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __FUNCTION__" >&5
9858 $as_echo_n "checking for __FUNCTION__... " >&6; }
9859 if ${pgac_cv_funcname_function_support+:} false; then :
9860 $as_echo_n "(cached) " >&6
9862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9863 /* end confdefs.h. */
9868 printf("%s\n", __FUNCTION__);
9873 if ac_fn_c_try_compile "$LINENO"; then :
9874 pgac_cv_funcname_function_support=yes
9876 pgac_cv_funcname_function_support=no
9878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_funcname_function_support" >&5
9881 $as_echo "$pgac_cv_funcname_function_support" >&6; }
9882 if test x"$pgac_cv_funcname_function_support" = xyes ; then
9884 $as_echo "#define HAVE_FUNCNAME__FUNCTION 1" >>confdefs.h
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Static_assert" >&5
9889 $as_echo_n "checking for _Static_assert... " >&6; }
9890 if ${pgac_cv__static_assert+:} false; then :
9891 $as_echo_n "(cached) " >&6
9893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9894 /* end confdefs.h. */
9899 ({ _Static_assert(1, "foo"); })
9904 if ac_fn_c_try_link "$LINENO"; then :
9905 pgac_cv__static_assert=yes
9907 pgac_cv__static_assert=no
9909 rm -f core conftest.err conftest.$ac_objext \
9910 conftest$ac_exeext conftest.$ac_ext
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__static_assert" >&5
9913 $as_echo "$pgac_cv__static_assert" >&6; }
9914 if test x"$pgac_cv__static_assert" = xyes ; then
9916 $as_echo "#define HAVE__STATIC_ASSERT 1" >>confdefs.h
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_types_compatible_p" >&5
9920 $as_echo_n "checking for __builtin_types_compatible_p... " >&6; }
9921 if ${pgac_cv__types_compatible+:} false; then :
9922 $as_echo_n "(cached) " >&6
9924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9925 /* end confdefs.h. */
9930 int x; static int y[__builtin_types_compatible_p(__typeof__(x), int)];
9935 if ac_fn_c_try_compile "$LINENO"; then :
9936 pgac_cv__types_compatible=yes
9938 pgac_cv__types_compatible=no
9940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__types_compatible" >&5
9943 $as_echo "$pgac_cv__types_compatible" >&6; }
9944 if test x"$pgac_cv__types_compatible" = xyes ; then
9946 $as_echo "#define HAVE__BUILTIN_TYPES_COMPATIBLE_P 1" >>confdefs.h
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_constant_p" >&5
9950 $as_echo_n "checking for __builtin_constant_p... " >&6; }
9951 if ${pgac_cv__builtin_constant_p+:} false; then :
9952 $as_echo_n "(cached) " >&6
9954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9955 /* end confdefs.h. */
9956 static int x; static int y[__builtin_constant_p(x) ? x : 1];
9965 if ac_fn_c_try_compile "$LINENO"; then :
9966 pgac_cv__builtin_constant_p=yes
9968 pgac_cv__builtin_constant_p=no
9970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_constant_p" >&5
9973 $as_echo "$pgac_cv__builtin_constant_p" >&6; }
9974 if test x"$pgac_cv__builtin_constant_p" = xyes ; then
9976 $as_echo "#define HAVE__BUILTIN_CONSTANT_P 1" >>confdefs.h
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unreachable" >&5
9980 $as_echo_n "checking for __builtin_unreachable... " >&6; }
9981 if ${pgac_cv__builtin_unreachable+:} false; then :
9982 $as_echo_n "(cached) " >&6
9984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9985 /* end confdefs.h. */
9990 __builtin_unreachable();
9995 if ac_fn_c_try_link "$LINENO"; then :
9996 pgac_cv__builtin_unreachable=yes
9998 pgac_cv__builtin_unreachable=no
10000 rm -f core conftest.err conftest.$ac_objext \
10001 conftest$ac_exeext conftest.$ac_ext
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_unreachable" >&5
10004 $as_echo "$pgac_cv__builtin_unreachable" >&6; }
10005 if test x"$pgac_cv__builtin_unreachable" = xyes ; then
10007 $as_echo "#define HAVE__BUILTIN_UNREACHABLE 1" >>confdefs.h
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __VA_ARGS__" >&5
10011 $as_echo_n "checking for __VA_ARGS__... " >&6; }
10012 if ${pgac_cv__va_args+:} false; then :
10013 $as_echo_n "(cached) " >&6
10015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10016 /* end confdefs.h. */
10021 #define debug(...) fprintf(stderr, __VA_ARGS__)
10022 debug("%s", "blarg");
10028 if ac_fn_c_try_compile "$LINENO"; then :
10029 pgac_cv__va_args=yes
10031 pgac_cv__va_args=no
10033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__va_args" >&5
10036 $as_echo "$pgac_cv__va_args" >&6; }
10037 if test x"$pgac_cv__va_args" = xyes ; then
10039 $as_echo "#define HAVE__VA_ARGS 1" >>confdefs.h
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
10043 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
10044 if ${ac_cv_struct_tm+:} false; then :
10045 $as_echo_n "(cached) " >&6
10047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10048 /* end confdefs.h. */
10049 #include <sys/types.h>
10056 int *p = &tm.tm_sec;
10062 if ac_fn_c_try_compile "$LINENO"; then :
10063 ac_cv_struct_tm=time.h
10065 ac_cv_struct_tm=sys/time.h
10067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
10070 $as_echo "$ac_cv_struct_tm" >&6; }
10071 if test $ac_cv_struct_tm = sys/time.h; then
10073 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
10077 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
10078 #include <$ac_cv_struct_tm>
10081 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
10083 cat >>confdefs.h <<_ACEOF
10084 #define HAVE_STRUCT_TM_TM_ZONE 1
10090 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10092 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
10096 $as_echo_n "checking for tzname... " >&6; }
10097 if ${ac_cv_var_tzname+:} false; then :
10098 $as_echo_n "(cached) " >&6
10100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10101 /* end confdefs.h. */
10103 #ifndef tzname /* For SGI. */
10104 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
10115 if ac_fn_c_try_link "$LINENO"; then :
10116 ac_cv_var_tzname=yes
10118 ac_cv_var_tzname=no
10120 rm -f core conftest.err conftest.$ac_objext \
10121 conftest$ac_exeext conftest.$ac_ext
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
10124 $as_echo "$ac_cv_var_tzname" >&6; }
10125 if test $ac_cv_var_tzname = yes; then
10127 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
10131 ac_fn_c_check_type "$LINENO" "union semun" "ac_cv_type_union_semun" "#include <sys/types.h>
10132 #include <sys/ipc.h>
10133 #include <sys/sem.h>
10135 if test "x$ac_cv_type_union_semun" = xyes; then :
10137 cat >>confdefs.h <<_ACEOF
10138 #define HAVE_UNION_SEMUN 1
10144 ac_fn_c_check_type "$LINENO" "struct sockaddr_un" "ac_cv_type_struct_sockaddr_un" "#include <sys/types.h>
10145 #ifdef HAVE_SYS_UN_H
10146 #include <sys/un.h>
10150 if test "x$ac_cv_type_struct_sockaddr_un" = xyes; then :
10152 $as_echo "#define HAVE_UNIX_SOCKETS 1" >>confdefs.h
10156 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
10157 #ifdef HAVE_SYS_SOCKET_H
10158 #include <sys/socket.h>
10162 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
10164 cat >>confdefs.h <<_ACEOF
10165 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
10171 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
10172 #ifdef HAVE_SYS_SOCKET_H
10173 #include <sys/socket.h>
10177 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
10179 cat >>confdefs.h <<_ACEOF
10180 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
10185 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "#include <sys/types.h>
10186 #ifdef HAVE_SYS_SOCKET_H
10187 #include <sys/socket.h>
10191 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then :
10193 cat >>confdefs.h <<_ACEOF
10194 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
10199 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_len" "ac_cv_member_struct_sockaddr_storage_ss_len" "#include <sys/types.h>
10200 #ifdef HAVE_SYS_SOCKET_H
10201 #include <sys/socket.h>
10205 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = xyes; then :
10207 cat >>confdefs.h <<_ACEOF
10208 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
10213 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_len" "ac_cv_member_struct_sockaddr_storage___ss_len" "#include <sys/types.h>
10214 #ifdef HAVE_SYS_SOCKET_H
10215 #include <sys/socket.h>
10219 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = xyes; then :
10221 cat >>confdefs.h <<_ACEOF
10222 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
10227 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
10228 #ifdef HAVE_SYS_SOCKET_H
10229 #include <sys/socket.h>
10233 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
10235 cat >>confdefs.h <<_ACEOF
10236 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
10242 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
10243 #include <sys/socket.h>
10247 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
10249 cat >>confdefs.h <<_ACEOF
10250 #define HAVE_STRUCT_ADDRINFO 1
10257 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10258 if test "x$ac_cv_type_intptr_t" = xyes; then :
10260 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
10263 for ac_type in 'int' 'long int' 'long long int'; do
10264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10265 /* end confdefs.h. */
10266 $ac_includes_default
10270 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
10271 test_array [0] = 0;
10272 return test_array [0];
10278 if ac_fn_c_try_compile "$LINENO"; then :
10280 cat >>confdefs.h <<_ACEOF
10281 #define intptr_t $ac_type
10286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10287 test -z "$ac_type" && break
10293 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
10294 if test "x$ac_cv_type_uintptr_t" = xyes; then :
10296 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
10299 for ac_type in 'unsigned int' 'unsigned long int' \
10300 'unsigned long long int'; do
10301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10302 /* end confdefs.h. */
10303 $ac_includes_default
10307 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
10308 test_array [0] = 0;
10309 return test_array [0];
10315 if ac_fn_c_try_compile "$LINENO"; then :
10317 cat >>confdefs.h <<_ACEOF
10318 #define uintptr_t $ac_type
10323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10324 test -z "$ac_type" && break
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
10331 $as_echo_n "checking for unsigned long long int... " >&6; }
10332 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
10333 $as_echo_n "(cached) " >&6
10335 ac_cv_type_unsigned_long_long_int=yes
10336 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
10337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10338 /* end confdefs.h. */
10340 /* For now, do not test the preprocessor; as of 2007 there are too many
10341 implementations with broken preprocessors. Perhaps this can
10342 be revisited in 2012. In the meantime, code should not expect
10343 #if to work with literals wider than 32 bits. */
10344 /* Test literals. */
10345 long long int ll = 9223372036854775807ll;
10346 long long int nll = -9223372036854775807LL;
10347 unsigned long long int ull = 18446744073709551615ULL;
10348 /* Test constant expressions. */
10349 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
10351 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
10357 /* Test availability of runtime routines for shift and division. */
10358 long long int llmax = 9223372036854775807ll;
10359 unsigned long long int ullmax = 18446744073709551615ull;
10360 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
10361 | (llmax / ll) | (llmax % ll)
10362 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
10363 | (ullmax / ull) | (ullmax % ull));
10369 if ac_fn_c_try_link "$LINENO"; then :
10372 ac_cv_type_unsigned_long_long_int=no
10374 rm -f core conftest.err conftest.$ac_objext \
10375 conftest$ac_exeext conftest.$ac_ext
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
10379 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
10380 if test $ac_cv_type_unsigned_long_long_int = yes; then
10382 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
10389 $as_echo_n "checking for long long int... " >&6; }
10390 if ${ac_cv_type_long_long_int+:} false; then :
10391 $as_echo_n "(cached) " >&6
10393 ac_cv_type_long_long_int=yes
10394 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
10395 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
10396 if test $ac_cv_type_long_long_int = yes; then
10397 if test "$cross_compiling" = yes; then :
10400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10401 /* end confdefs.h. */
10402 #include <limits.h>
10405 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
10406 # define LLONG_MAX (HALF - 1 + HALF)
10411 long long int n = 1;
10415 long long int m = n << i;
10418 if (LLONG_MAX / 2 < m)
10426 if ac_fn_c_try_run "$LINENO"; then :
10429 ac_cv_type_long_long_int=no
10431 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10432 conftest.$ac_objext conftest.beam conftest.$ac_ext
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
10439 $as_echo "$ac_cv_type_long_long_int" >&6; }
10440 if test $ac_cv_type_long_long_int = yes; then
10442 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale_t" >&5
10448 $as_echo_n "checking for locale_t... " >&6; }
10449 if ${pgac_cv_type_locale_t+:} false; then :
10450 $as_echo_n "(cached) " >&6
10452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10453 /* end confdefs.h. */
10454 #include <locale.h>
10464 if ac_fn_c_try_compile "$LINENO"; then :
10465 pgac_cv_type_locale_t=yes
10467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10468 /* end confdefs.h. */
10469 #include <xlocale.h>
10479 if ac_fn_c_try_compile "$LINENO"; then :
10480 pgac_cv_type_locale_t='yes (in xlocale.h)'
10482 pgac_cv_type_locale_t=no
10484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_locale_t" >&5
10489 $as_echo "$pgac_cv_type_locale_t" >&6; }
10490 if test "$pgac_cv_type_locale_t" != no; then
10492 $as_echo "#define HAVE_LOCALE_T 1" >>confdefs.h
10495 if test "$pgac_cv_type_locale_t" = 'yes (in xlocale.h)'; then
10497 $as_echo "#define LOCALE_T_IN_XLOCALE 1" >>confdefs.h
10501 ac_fn_c_check_type "$LINENO" "struct cmsgcred" "ac_cv_type_struct_cmsgcred" "#include <sys/socket.h>
10502 #include <sys/param.h>
10503 #ifdef HAVE_SYS_UCRED_H
10504 #include <sys/ucred.h>
10507 if test "x$ac_cv_type_struct_cmsgcred" = xyes; then :
10509 cat >>confdefs.h <<_ACEOF
10510 #define HAVE_STRUCT_CMSGCRED 1
10517 ac_fn_c_check_type "$LINENO" "struct option" "ac_cv_type_struct_option" "#ifdef HAVE_GETOPT_H
10518 #include <getopt.h>
10521 if test "x$ac_cv_type_struct_option" = xyes; then :
10523 cat >>confdefs.h <<_ACEOF
10524 #define HAVE_STRUCT_OPTION 1
10531 if test "$with_zlib" = yes; then
10532 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
10533 # did not). While we could work around the lack of z_streamp, it
10534 # seems unwise to encourage people to use such old zlib versions...
10535 ac_fn_c_check_type "$LINENO" "z_streamp" "ac_cv_type_z_streamp" "#include <zlib.h>
10537 if test "x$ac_cv_type_z_streamp" = xyes; then :
10540 as_fn_error $? "zlib version is too old
10541 Use --without-zlib to disable zlib support." "$LINENO" 5
10546 # On PPC, check if assembler supports LWARX instruction's mutex hint bit
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports lwarx hint bit" >&5
10550 $as_echo_n "checking whether assembler supports lwarx hint bit... " >&6; }
10551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10552 /* end confdefs.h. */
10557 int a = 0; int *p = &a; int r;
10558 __asm__ __volatile__ (" lwarx %0,0,%1,1\n" : "=&r"(r) : "r"(p));
10563 if ac_fn_c_try_compile "$LINENO"; then :
10564 pgac_cv_have_ppc_mutex_hint=yes
10566 pgac_cv_have_ppc_mutex_hint=no
10568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_have_ppc_mutex_hint" >&5
10570 $as_echo "$pgac_cv_have_ppc_mutex_hint" >&6; }
10571 if test x"$pgac_cv_have_ppc_mutex_hint" = xyes ; then
10573 $as_echo "#define HAVE_PPC_LWARX_MUTEX_HINT 1" >>confdefs.h
10579 # Check largefile support. You might think this is a system service not a
10580 # compiler characteristic, but you'd be wrong. We must check this before
10581 # probing existence of related functions such as fseeko, since the largefile
10582 # defines can affect what is generated for that.
10583 if test "$PORTNAME" != "win32"; then
10584 # Check whether --enable-largefile was given.
10585 if test "${enable_largefile+set}" = set; then :
10586 enableval=$enable_largefile;
10589 if test "$enable_largefile" != no; then
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
10592 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
10593 if ${ac_cv_sys_largefile_CC+:} false; then :
10594 $as_echo_n "(cached) " >&6
10596 ac_cv_sys_largefile_CC=no
10597 if test "$GCC" != yes; then
10600 # IRIX 6.2 and later do not support large files by default,
10601 # so use the C compiler's -n32 option if that helps.
10602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10603 /* end confdefs.h. */
10604 #include <sys/types.h>
10605 /* Check that off_t can represent 2**63 - 1 correctly.
10606 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10607 since some C++ compilers masquerading as C compilers
10608 incorrectly reject 9223372036854775807. */
10609 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10610 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10611 && LARGE_OFF_T % 2147483647 == 1)
10621 if ac_fn_c_try_compile "$LINENO"; then :
10624 rm -f core conftest.err conftest.$ac_objext
10626 if ac_fn_c_try_compile "$LINENO"; then :
10627 ac_cv_sys_largefile_CC=' -n32'; break
10629 rm -f core conftest.err conftest.$ac_objext
10633 rm -f conftest.$ac_ext
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
10637 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
10638 if test "$ac_cv_sys_largefile_CC" != no; then
10639 CC=$CC$ac_cv_sys_largefile_CC
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10643 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
10644 if ${ac_cv_sys_file_offset_bits+:} false; then :
10645 $as_echo_n "(cached) " >&6
10648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10649 /* end confdefs.h. */
10650 #include <sys/types.h>
10651 /* Check that off_t can represent 2**63 - 1 correctly.
10652 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10653 since some C++ compilers masquerading as C compilers
10654 incorrectly reject 9223372036854775807. */
10655 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10656 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10657 && LARGE_OFF_T % 2147483647 == 1)
10667 if ac_fn_c_try_compile "$LINENO"; then :
10668 ac_cv_sys_file_offset_bits=no; break
10670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10672 /* end confdefs.h. */
10673 #define _FILE_OFFSET_BITS 64
10674 #include <sys/types.h>
10675 /* Check that off_t can represent 2**63 - 1 correctly.
10676 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10677 since some C++ compilers masquerading as C compilers
10678 incorrectly reject 9223372036854775807. */
10679 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10680 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10681 && LARGE_OFF_T % 2147483647 == 1)
10691 if ac_fn_c_try_compile "$LINENO"; then :
10692 ac_cv_sys_file_offset_bits=64; break
10694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10695 ac_cv_sys_file_offset_bits=unknown
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
10700 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10701 case $ac_cv_sys_file_offset_bits in #(
10704 cat >>confdefs.h <<_ACEOF
10705 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10710 if test $ac_cv_sys_file_offset_bits = unknown; then
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
10712 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
10713 if ${ac_cv_sys_large_files+:} false; then :
10714 $as_echo_n "(cached) " >&6
10717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10718 /* end confdefs.h. */
10719 #include <sys/types.h>
10720 /* Check that off_t can represent 2**63 - 1 correctly.
10721 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10722 since some C++ compilers masquerading as C compilers
10723 incorrectly reject 9223372036854775807. */
10724 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10725 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10726 && LARGE_OFF_T % 2147483647 == 1)
10736 if ac_fn_c_try_compile "$LINENO"; then :
10737 ac_cv_sys_large_files=no; break
10739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10741 /* end confdefs.h. */
10742 #define _LARGE_FILES 1
10743 #include <sys/types.h>
10744 /* Check that off_t can represent 2**63 - 1 correctly.
10745 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10746 since some C++ compilers masquerading as C compilers
10747 incorrectly reject 9223372036854775807. */
10748 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10749 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10750 && LARGE_OFF_T % 2147483647 == 1)
10760 if ac_fn_c_try_compile "$LINENO"; then :
10761 ac_cv_sys_large_files=1; break
10763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10764 ac_cv_sys_large_files=unknown
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
10769 $as_echo "$ac_cv_sys_large_files" >&6; }
10770 case $ac_cv_sys_large_files in #(
10773 cat >>confdefs.h <<_ACEOF
10774 #define _LARGE_FILES $ac_cv_sys_large_files
10787 # Check for largefile support (must be after AC_SYS_LARGEFILE)
10788 # The cast to long int works around a bug in the HP C Compiler
10789 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10790 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10791 # This bug is HP SR number 8606223364.
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
10793 $as_echo_n "checking size of off_t... " >&6; }
10794 if ${ac_cv_sizeof_off_t+:} false; then :
10795 $as_echo_n "(cached) " >&6
10797 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
10800 if test "$ac_cv_type_off_t" = yes; then
10801 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10802 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10803 as_fn_error 77 "cannot compute sizeof (off_t)
10804 See \`config.log' for more details" "$LINENO" 5; }
10806 ac_cv_sizeof_off_t=0
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
10812 $as_echo "$ac_cv_sizeof_off_t" >&6; }
10816 cat >>confdefs.h <<_ACEOF
10817 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10822 # If we don't have largefile support, can't handle segsize >= 2GB.
10823 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
10824 as_fn_error $? "Large file support is not enabled. Segment size cannot be larger than 1GB." "$LINENO" 5
10829 ## Functions, global variables
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int timezone" >&5
10833 $as_echo_n "checking for int timezone... " >&6; }
10834 if ${pgac_cv_var_int_timezone+:} false; then :
10835 $as_echo_n "(cached) " >&6
10837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10838 /* end confdefs.h. */
10845 res = timezone / 60;
10847 res = _timezone / 60;
10853 if ac_fn_c_try_link "$LINENO"; then :
10854 pgac_cv_var_int_timezone=yes
10856 pgac_cv_var_int_timezone=no
10858 rm -f core conftest.err conftest.$ac_objext \
10859 conftest$ac_exeext conftest.$ac_ext
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_timezone" >&5
10862 $as_echo "$pgac_cv_var_int_timezone" >&6; }
10863 if test x"$pgac_cv_var_int_timezone" = xyes ; then
10865 $as_echo "#define HAVE_INT_TIMEZONE 1" >>confdefs.h
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for accept()" >&5
10869 $as_echo_n "checking types of arguments for accept()... " >&6; }
10870 if ${ac_cv_func_accept_return+:} false; then :
10871 $as_echo_n "(cached) " >&6
10873 if ${ac_cv_func_accept_arg1+:} false; then :
10874 $as_echo_n "(cached) " >&6
10876 if ${ac_cv_func_accept_arg2+:} false; then :
10877 $as_echo_n "(cached) " >&6
10879 if ${ac_cv_func_accept_arg3+:} false; then :
10880 $as_echo_n "(cached) " >&6
10882 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL' 'SOCKET WSAAPI'; do
10883 for ac_cv_func_accept_arg1 in 'int' 'unsigned int' 'SOCKET'; do
10884 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
10885 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
10886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10887 /* end confdefs.h. */
10888 #ifdef HAVE_SYS_TYPES_H
10889 #include <sys/types.h>
10891 #ifdef HAVE_SYS_SOCKET_H
10892 #include <sys/socket.h>
10894 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
10903 if ac_fn_c_try_compile "$LINENO"; then :
10904 ac_not_found=no; break 4
10908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10913 if test "$ac_not_found" = yes; then
10914 as_fn_error $? "could not determine argument types" "$LINENO" 5
10916 if test "$ac_cv_func_accept_arg3" = "void"; then
10917 ac_cv_func_accept_arg3=int
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
10928 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
10930 cat >>confdefs.h <<_ACEOF
10931 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
10935 cat >>confdefs.h <<_ACEOF
10936 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
10940 cat >>confdefs.h <<_ACEOF
10941 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
10945 cat >>confdefs.h <<_ACEOF
10946 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday takes only one argument" >&5
10951 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
10952 if ${pgac_cv_func_gettimeofday_1arg+:} false; then :
10953 $as_echo_n "(cached) " >&6
10955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10956 /* end confdefs.h. */
10957 #include <sys/time.h>
10961 struct timeval *tp;
10962 struct timezone *tzp;
10963 gettimeofday(tp,tzp);
10968 if ac_fn_c_try_compile "$LINENO"; then :
10969 pgac_cv_func_gettimeofday_1arg=no
10971 pgac_cv_func_gettimeofday_1arg=yes
10973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_gettimeofday_1arg" >&5
10976 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
10977 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
10979 $as_echo "#define GETTIMEOFDAY_1ARG 1" >>confdefs.h
10984 # Some versions of libedit contain strlcpy(), setproctitle(), and other
10985 # symbols that that library has no business exposing to the world. Pending
10986 # acquisition of a clue by those developers, ignore libedit (including its
10987 # possible alias of libreadline) while checking for everything else.
10988 LIBS_including_readline="$LIBS"
10989 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
10991 for ac_func in cbrt dlopen fdatasync getifaddrs getpeerucred getrlimit mbstowcs_l memmove poll pstat readlink setproctitle setsid shm_open sigprocmask symlink sync_file_range towlower utime utimes wcstombs wcstombs_l
10993 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10994 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10995 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10996 cat >>confdefs.h <<_ACEOF
10997 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11004 ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
11005 if test "x$ac_cv_func_fseeko" = xyes; then :
11006 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
11009 case " $LIBOBJS " in
11010 *" fseeko.$ac_objext "* ) ;;
11011 *) LIBOBJS="$LIBOBJS fseeko.$ac_objext"
11019 # NetBSD uses a custom fseeko/ftello built on fsetpos/fgetpos
11020 # Mingw uses macros to access Win32 API calls
11023 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
11025 ac_cv_func_fseeko=yes;;
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11028 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
11029 if ${ac_cv_sys_largefile_source+:} false; then :
11030 $as_echo_n "(cached) " >&6
11033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11034 /* end confdefs.h. */
11035 #include <sys/types.h> /* for off_t */
11040 int (*fp) (FILE *, off_t, int) = fseeko;
11041 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11046 if ac_fn_c_try_link "$LINENO"; then :
11047 ac_cv_sys_largefile_source=no; break
11049 rm -f core conftest.err conftest.$ac_objext \
11050 conftest$ac_exeext conftest.$ac_ext
11051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11052 /* end confdefs.h. */
11053 #define _LARGEFILE_SOURCE 1
11054 #include <sys/types.h> /* for off_t */
11059 int (*fp) (FILE *, off_t, int) = fseeko;
11060 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11065 if ac_fn_c_try_link "$LINENO"; then :
11066 ac_cv_sys_largefile_source=1; break
11068 rm -f core conftest.err conftest.$ac_objext \
11069 conftest$ac_exeext conftest.$ac_ext
11070 ac_cv_sys_largefile_source=unknown
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
11075 $as_echo "$ac_cv_sys_largefile_source" >&6; }
11076 case $ac_cv_sys_largefile_source in #(
11079 cat >>confdefs.h <<_ACEOF
11080 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11086 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11087 # in glibc 2.1.3, but that breaks too many other things.
11088 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11089 if test $ac_cv_sys_largefile_source != unknown; then
11091 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
11097 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
11098 # by calling it, 2009-04-02
11099 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
11100 if test "$PORTNAME" != "solaris"; then
11101 for ac_func in posix_fadvise
11103 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
11104 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
11105 cat >>confdefs.h <<_ACEOF
11106 #define HAVE_POSIX_FADVISE 1
11112 ac_fn_c_check_decl "$LINENO" "posix_fadvise" "ac_cv_have_decl_posix_fadvise" "#include <fcntl.h>
11114 if test "x$ac_cv_have_decl_posix_fadvise" = xyes; then :
11120 cat >>confdefs.h <<_ACEOF
11121 #define HAVE_DECL_POSIX_FADVISE $ac_have_decl
11126 ac_fn_c_check_decl "$LINENO" "fdatasync" "ac_cv_have_decl_fdatasync" "#include <unistd.h>
11128 if test "x$ac_cv_have_decl_fdatasync" = xyes; then :
11134 cat >>confdefs.h <<_ACEOF
11135 #define HAVE_DECL_FDATASYNC $ac_have_decl
11138 ac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default"
11139 if test "x$ac_cv_have_decl_strlcat" = xyes; then :
11145 cat >>confdefs.h <<_ACEOF
11146 #define HAVE_DECL_STRLCAT $ac_have_decl
11148 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default"
11149 if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
11155 cat >>confdefs.h <<_ACEOF
11156 #define HAVE_DECL_STRLCPY $ac_have_decl
11159 # This is probably only present on Darwin, but may as well check always
11160 ac_fn_c_check_decl "$LINENO" "F_FULLFSYNC" "ac_cv_have_decl_F_FULLFSYNC" "#include <fcntl.h>
11162 if test "x$ac_cv_have_decl_F_FULLFSYNC" = xyes; then :
11168 cat >>confdefs.h <<_ACEOF
11169 #define HAVE_DECL_F_FULLFSYNC $ac_have_decl
11174 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "$ac_includes_default
11175 #include <netinet/in.h>
11177 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
11179 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PS_STRINGS" >&5
11187 $as_echo_n "checking for PS_STRINGS... " >&6; }
11188 if ${pgac_cv_var_PS_STRINGS+:} false; then :
11189 $as_echo_n "(cached) " >&6
11191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11192 /* end confdefs.h. */
11193 #include <machine/vmparam.h>
11194 #include <sys/exec.h>
11199 PS_STRINGS->ps_nargvstr = 1;
11200 PS_STRINGS->ps_argvstr = "foo";
11205 if ac_fn_c_try_link "$LINENO"; then :
11206 pgac_cv_var_PS_STRINGS=yes
11208 pgac_cv_var_PS_STRINGS=no
11210 rm -f core conftest.err conftest.$ac_objext \
11211 conftest$ac_exeext conftest.$ac_ext
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_PS_STRINGS" >&5
11214 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
11215 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
11217 $as_echo "#define HAVE_PS_STRINGS 1" >>confdefs.h
11222 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
11223 # is missing. Yes, there are machines that have only one. We may
11224 # also decide to use snprintf.c if snprintf() is present but does not
11225 # have all the features we need --- see below.
11227 if test "$PORTNAME" = "win32"; then
11228 # Win32 gets snprintf.c built unconditionally.
11230 # To properly translate all NLS languages strings, we must support the
11231 # *printf() %$ format, which allows *printf() arguments to be selected
11232 # by position in the translated string.
11234 # libintl versions < 0.13 use the native *printf() functions, and Win32
11235 # *printf() doesn't understand %$, so we must use our /port versions,
11236 # which do understand %$. libintl versions >= 0.13 include their own
11237 # *printf versions on Win32. The libintl 0.13 release note text is:
11239 # C format strings with positions, as they arise when a translator
11240 # needs to reorder a sentence, are now supported on all platforms.
11241 # On those few platforms (NetBSD and Woe32) for which the native
11242 # printf()/fprintf()/... functions don't support such format
11243 # strings, replacements are provided through <libintl.h>.
11245 # We could use libintl >= 0.13's *printf() if we were sure that we had
11246 # a litint >= 0.13 at runtime, but seeing that there is no clean way
11247 # to guarantee that, it is best to just use our own, so we are sure to
11248 # get %$ support. In include/port.h we disable the *printf() macros
11249 # that might have been defined by libintl.
11251 # We do this unconditionally whether NLS is used or not so we are sure
11252 # that all Win32 libraries and binaries behave the same.
11253 pgac_need_repl_snprintf=yes
11255 pgac_need_repl_snprintf=no
11256 for ac_func in snprintf
11258 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
11259 if test "x$ac_cv_func_snprintf" = xyes; then :
11260 cat >>confdefs.h <<_ACEOF
11261 #define HAVE_SNPRINTF 1
11265 pgac_need_repl_snprintf=yes
11269 for ac_func in vsnprintf
11271 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
11272 if test "x$ac_cv_func_vsnprintf" = xyes; then :
11273 cat >>confdefs.h <<_ACEOF
11274 #define HAVE_VSNPRINTF 1
11278 pgac_need_repl_snprintf=yes
11285 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
11286 # include/c.h will provide declarations. Note this is a separate test
11287 # from whether the functions exist in the C library --- there are
11288 # systems that have the functions but don't bother to declare them :-(
11290 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
11291 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
11297 cat >>confdefs.h <<_ACEOF
11298 #define HAVE_DECL_SNPRINTF $ac_have_decl
11300 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
11301 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
11307 cat >>confdefs.h <<_ACEOF
11308 #define HAVE_DECL_VSNPRINTF $ac_have_decl
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
11314 $as_echo_n "checking for isinf... " >&6; }
11315 if ${ac_cv_func_isinf+:} false; then :
11316 $as_echo_n "(cached) " >&6
11318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11319 /* end confdefs.h. */
11322 double glob_double;
11327 return isinf(glob_double) ? 0 : 1;
11332 if ac_fn_c_try_link "$LINENO"; then :
11333 ac_cv_func_isinf=yes
11335 ac_cv_func_isinf=no
11337 rm -f core conftest.err conftest.$ac_objext \
11338 conftest$ac_exeext conftest.$ac_ext
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_isinf" >&5
11341 $as_echo "$ac_cv_func_isinf" >&6; }
11343 if test $ac_cv_func_isinf = yes ; then
11345 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
11348 case " $LIBOBJS " in
11349 *" isinf.$ac_objext "* ) ;;
11350 *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
11354 # Look for a way to implement a substitute for isinf()
11355 for ac_func in fpclass fp_class fp_class_d class
11357 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11358 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11359 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11360 cat >>confdefs.h <<_ACEOF
11361 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11369 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
11370 if test "x$ac_cv_func_crypt" = xyes; then :
11371 $as_echo "#define HAVE_CRYPT 1" >>confdefs.h
11374 case " $LIBOBJS " in
11375 *" crypt.$ac_objext "* ) ;;
11376 *) LIBOBJS="$LIBOBJS crypt.$ac_objext"
11382 ac_fn_c_check_func "$LINENO" "fls" "ac_cv_func_fls"
11383 if test "x$ac_cv_func_fls" = xyes; then :
11384 $as_echo "#define HAVE_FLS 1" >>confdefs.h
11387 case " $LIBOBJS " in
11388 *" fls.$ac_objext "* ) ;;
11389 *) LIBOBJS="$LIBOBJS fls.$ac_objext"
11395 ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
11396 if test "x$ac_cv_func_getopt" = xyes; then :
11397 $as_echo "#define HAVE_GETOPT 1" >>confdefs.h
11400 case " $LIBOBJS " in
11401 *" getopt.$ac_objext "* ) ;;
11402 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
11408 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
11409 if test "x$ac_cv_func_getrusage" = xyes; then :
11410 $as_echo "#define HAVE_GETRUSAGE 1" >>confdefs.h
11413 case " $LIBOBJS " in
11414 *" getrusage.$ac_objext "* ) ;;
11415 *) LIBOBJS="$LIBOBJS getrusage.$ac_objext"
11421 ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
11422 if test "x$ac_cv_func_inet_aton" = xyes; then :
11423 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
11426 case " $LIBOBJS " in
11427 *" inet_aton.$ac_objext "* ) ;;
11428 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
11434 ac_fn_c_check_func "$LINENO" "random" "ac_cv_func_random"
11435 if test "x$ac_cv_func_random" = xyes; then :
11436 $as_echo "#define HAVE_RANDOM 1" >>confdefs.h
11439 case " $LIBOBJS " in
11440 *" random.$ac_objext "* ) ;;
11441 *) LIBOBJS="$LIBOBJS random.$ac_objext"
11447 ac_fn_c_check_func "$LINENO" "rint" "ac_cv_func_rint"
11448 if test "x$ac_cv_func_rint" = xyes; then :
11449 $as_echo "#define HAVE_RINT 1" >>confdefs.h
11452 case " $LIBOBJS " in
11453 *" rint.$ac_objext "* ) ;;
11454 *) LIBOBJS="$LIBOBJS rint.$ac_objext"
11460 ac_fn_c_check_func "$LINENO" "srandom" "ac_cv_func_srandom"
11461 if test "x$ac_cv_func_srandom" = xyes; then :
11462 $as_echo "#define HAVE_SRANDOM 1" >>confdefs.h
11465 case " $LIBOBJS " in
11466 *" srandom.$ac_objext "* ) ;;
11467 *) LIBOBJS="$LIBOBJS srandom.$ac_objext"
11473 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
11474 if test "x$ac_cv_func_strerror" = xyes; then :
11475 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
11478 case " $LIBOBJS " in
11479 *" strerror.$ac_objext "* ) ;;
11480 *) LIBOBJS="$LIBOBJS strerror.$ac_objext"
11486 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
11487 if test "x$ac_cv_func_strlcat" = xyes; then :
11488 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
11491 case " $LIBOBJS " in
11492 *" strlcat.$ac_objext "* ) ;;
11493 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
11499 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
11500 if test "x$ac_cv_func_strlcpy" = xyes; then :
11501 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
11504 case " $LIBOBJS " in
11505 *" strlcpy.$ac_objext "* ) ;;
11506 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
11516 # Windows uses a specialised env handler
11517 # and doesn't need a replacement getpeereid because it doesn't use
11521 $as_echo "#define HAVE_UNSETENV 1" >>confdefs.h
11524 $as_echo "#define HAVE_GETPEEREID 1" >>confdefs.h
11526 ac_cv_func_unsetenv=yes
11527 ac_cv_func_getpeereid=yes;;
11529 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
11530 if test "x$ac_cv_func_unsetenv" = xyes; then :
11531 $as_echo "#define HAVE_UNSETENV 1" >>confdefs.h
11534 case " $LIBOBJS " in
11535 *" unsetenv.$ac_objext "* ) ;;
11536 *) LIBOBJS="$LIBOBJS unsetenv.$ac_objext"
11542 ac_fn_c_check_func "$LINENO" "getpeereid" "ac_cv_func_getpeereid"
11543 if test "x$ac_cv_func_getpeereid" = xyes; then :
11544 $as_echo "#define HAVE_GETPEEREID 1" >>confdefs.h
11547 case " $LIBOBJS " in
11548 *" getpeereid.$ac_objext "* ) ;;
11549 *) LIBOBJS="$LIBOBJS getpeereid.$ac_objext"
11559 # System's version of getaddrinfo(), if any, may be used only if we found
11560 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
11561 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
11562 # versions of getaddrinfo don't follow normal C call protocol. This is OK
11563 # because we want to use our own getaddrinfo.c on Windows anyway.)
11564 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
11565 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
11566 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
11567 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
11570 case " $LIBOBJS " in
11571 *" getaddrinfo.$ac_objext "* ) ;;
11572 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
11580 case " $LIBOBJS " in
11581 *" getaddrinfo.$ac_objext "* ) ;;
11582 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
11588 # Similarly, use system's getopt_long() only if system provides struct option.
11589 if test x"$ac_cv_type_struct_option" = xyes ; then
11590 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
11591 if test "x$ac_cv_func_getopt_long" = xyes; then :
11592 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
11595 case " $LIBOBJS " in
11596 *" getopt_long.$ac_objext "* ) ;;
11597 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
11605 case " $LIBOBJS " in
11606 *" getopt_long.$ac_objext "* ) ;;
11607 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
11613 # Solaris' getopt() doesn't do what we want for long options, so always use
11614 # our version on that platform.
11615 if test "$PORTNAME" = "solaris"; then
11616 case " $LIBOBJS " in
11617 *" getopt.$ac_objext "* ) ;;
11618 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
11624 # mingw has adopted a GNU-centric interpretation of optind/optreset,
11625 # so always use our version on Windows.
11626 if test "$PORTNAME" = "win32"; then
11627 case " $LIBOBJS " in
11628 *" getopt.$ac_objext "* ) ;;
11629 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
11633 case " $LIBOBJS " in
11634 *" getopt_long.$ac_objext "* ) ;;
11635 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
11642 if test "$PORTNAME" = "win32"; then
11643 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
11644 if test "x$ac_cv_func_gettimeofday" = xyes; then :
11645 $as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
11648 case " $LIBOBJS " in
11649 *" gettimeofday.$ac_objext "* ) ;;
11650 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
11657 case " $LIBOBJS " in
11658 *" kill.$ac_objext "* ) ;;
11659 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
11663 case " $LIBOBJS " in
11664 *" open.$ac_objext "* ) ;;
11665 *) LIBOBJS="$LIBOBJS open.$ac_objext"
11669 case " $LIBOBJS " in
11670 *" system.$ac_objext "* ) ;;
11671 *) LIBOBJS="$LIBOBJS system.$ac_objext"
11675 case " $LIBOBJS " in
11676 *" win32env.$ac_objext "* ) ;;
11677 *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
11681 case " $LIBOBJS " in
11682 *" win32error.$ac_objext "* ) ;;
11683 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
11687 case " $LIBOBJS " in
11688 *" win32setlocale.$ac_objext "* ) ;;
11689 *) LIBOBJS="$LIBOBJS win32setlocale.$ac_objext"
11694 $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h
11696 ac_fn_c_check_type "$LINENO" "MINIDUMP_TYPE" "ac_cv_type_MINIDUMP_TYPE" "
11697 #define WIN32_LEAN_AND_MEAN
11698 #include <windows.h>
11699 #include <string.h>
11700 #include <dbghelp.h>
11702 if test "x$ac_cv_type_MINIDUMP_TYPE" = xyes; then :
11704 cat >>confdefs.h <<_ACEOF
11705 #define HAVE_MINIDUMP_TYPE 1
11708 pgac_minidump_type=yes
11710 pgac_minidump_type=no
11714 if test x"$pgac_minidump_type" = x"yes" ; then
11715 have_win32_dbghelp=yes
11718 have_win32_dbghelp=no
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
11723 $as_echo_n "checking for sigsetjmp... " >&6; }
11724 if ${pgac_cv_func_sigsetjmp+:} false; then :
11725 $as_echo_n "(cached) " >&6
11727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11728 /* end confdefs.h. */
11729 #include <setjmp.h>
11733 sigjmp_buf x; sigsetjmp(x, 1);
11738 if ac_fn_c_try_link "$LINENO"; then :
11739 pgac_cv_func_sigsetjmp=yes
11741 pgac_cv_func_sigsetjmp=no
11743 rm -f core conftest.err conftest.$ac_objext \
11744 conftest$ac_exeext conftest.$ac_ext
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_sigsetjmp" >&5
11747 $as_echo "$pgac_cv_func_sigsetjmp" >&6; }
11748 if test x"$pgac_cv_func_sigsetjmp" = x"yes"; then
11750 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
11754 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
11755 /* NetBSD declares sys_siglist in unistd.h. */
11756 #ifdef HAVE_UNISTD_H
11757 # include <unistd.h>
11761 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
11767 cat >>confdefs.h <<_ACEOF
11768 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
11773 ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
11774 if test "x$ac_cv_func_syslog" = xyes; then :
11775 ac_fn_c_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
11776 if test "x$ac_cv_header_syslog_h" = xyes; then :
11778 $as_echo "#define HAVE_SYSLOG 1" >>confdefs.h
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opterr" >&5
11787 $as_echo_n "checking for opterr... " >&6; }
11788 if ${pgac_cv_var_int_opterr+:} false; then :
11789 $as_echo_n "(cached) " >&6
11791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11792 /* end confdefs.h. */
11793 #include <unistd.h>
11797 extern int opterr; opterr = 1;
11802 if ac_fn_c_try_link "$LINENO"; then :
11803 pgac_cv_var_int_opterr=yes
11805 pgac_cv_var_int_opterr=no
11807 rm -f core conftest.err conftest.$ac_objext \
11808 conftest$ac_exeext conftest.$ac_ext
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_opterr" >&5
11811 $as_echo "$pgac_cv_var_int_opterr" >&6; }
11812 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
11814 $as_echo "#define HAVE_INT_OPTERR 1" >>confdefs.h
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
11819 $as_echo_n "checking for optreset... " >&6; }
11820 if ${pgac_cv_var_int_optreset+:} false; then :
11821 $as_echo_n "(cached) " >&6
11823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11824 /* end confdefs.h. */
11825 #include <unistd.h>
11829 extern int optreset; optreset = 1;
11834 if ac_fn_c_try_link "$LINENO"; then :
11835 pgac_cv_var_int_optreset=yes
11837 pgac_cv_var_int_optreset=no
11839 rm -f core conftest.err conftest.$ac_objext \
11840 conftest$ac_exeext conftest.$ac_ext
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_optreset" >&5
11843 $as_echo "$pgac_cv_var_int_optreset" >&6; }
11844 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
11846 $as_echo "#define HAVE_INT_OPTRESET 1" >>confdefs.h
11850 for ac_func in strtoll strtoq
11852 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11853 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11854 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11855 cat >>confdefs.h <<_ACEOF
11856 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11862 for ac_func in strtoull strtouq
11864 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11865 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11866 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11867 cat >>confdefs.h <<_ACEOF
11868 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin locking functions" >&5
11876 $as_echo_n "checking for builtin locking functions... " >&6; }
11877 if ${pgac_cv_gcc_int_atomics+:} false; then :
11878 $as_echo_n "(cached) " >&6
11880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11881 /* end confdefs.h. */
11887 __sync_lock_test_and_set(&lock, 1);
11888 __sync_lock_release(&lock);
11893 if ac_fn_c_try_link "$LINENO"; then :
11894 pgac_cv_gcc_int_atomics="yes"
11896 pgac_cv_gcc_int_atomics="no"
11898 rm -f core conftest.err conftest.$ac_objext \
11899 conftest$ac_exeext conftest.$ac_ext
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_int_atomics" >&5
11902 $as_echo "$pgac_cv_gcc_int_atomics" >&6; }
11903 if test x"$pgac_cv_gcc_int_atomics" = x"yes"; then
11905 $as_echo "#define HAVE_GCC_INT_ATOMICS 1" >>confdefs.h
11909 # Lastly, restore full LIBS list and check for readline/libedit symbols
11910 LIBS="$LIBS_including_readline"
11912 if test "$with_readline" = yes; then
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_append_character" >&5
11914 $as_echo_n "checking for rl_completion_append_character... " >&6; }
11915 if ${pgac_cv_var_rl_completion_append_character+:} false; then :
11916 $as_echo_n "(cached) " >&6
11918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11919 /* end confdefs.h. */
11921 #ifdef HAVE_READLINE_READLINE_H
11922 # include <readline/readline.h>
11923 #elif defined(HAVE_READLINE_H)
11924 # include <readline.h>
11930 rl_completion_append_character = 'x';
11935 if ac_fn_c_try_link "$LINENO"; then :
11936 pgac_cv_var_rl_completion_append_character=yes
11938 pgac_cv_var_rl_completion_append_character=no
11940 rm -f core conftest.err conftest.$ac_objext \
11941 conftest$ac_exeext conftest.$ac_ext
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_rl_completion_append_character" >&5
11944 $as_echo "$pgac_cv_var_rl_completion_append_character" >&6; }
11945 if test x"$pgac_cv_var_rl_completion_append_character" = x"yes"; then
11947 $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h
11950 for ac_func in rl_completion_matches rl_filename_completion_function
11952 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11953 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11954 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11955 cat >>confdefs.h <<_ACEOF
11956 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11962 for ac_func in append_history history_truncate_file
11964 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11965 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11966 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11967 cat >>confdefs.h <<_ACEOF
11968 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11980 # For each platform, we need to know about any special compile and link
11981 # libraries, and whether the normal C function names are thread-safe.
11982 # See the comment at the top of src/port/thread.c for more information.
11983 # WIN32 doesn't need the pthread tests; it always uses threads
11984 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
11989 ac_cpp='$CPP $CPPFLAGS'
11990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11996 # We used to check for pthread.h first, but this fails if pthread.h
11997 # requires special compiler flags (e.g. on True64 or Sequent).
11998 # It gets checked for in the link test anyway.
12000 # First of all, check if the user has set any of the PTHREAD_LIBS,
12001 # etcetera environment variables, and if threads linking works using
12003 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
12004 save_CFLAGS="$CFLAGS"
12005 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
12007 LIBS="$PTHREAD_LIBS $LIBS"
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
12009 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
12010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12011 /* end confdefs.h. */
12013 /* Override any GCC internal prototype to avoid an error.
12014 Use char because int might match the return type of a GCC
12015 builtin and then its argument prototype would still apply. */
12019 char pthread_join ();
12023 return pthread_join ();
12028 if ac_fn_c_try_link "$LINENO"; then :
12031 rm -f core conftest.err conftest.$ac_objext \
12032 conftest$ac_exeext conftest.$ac_ext
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
12034 $as_echo "$acx_pthread_ok" >&6; }
12035 if test x"$acx_pthread_ok" = xno; then
12040 CFLAGS="$save_CFLAGS"
12043 # We must check for the threads library under a number of different
12044 # names; the ordering is very important because some systems
12045 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
12046 # libraries is broken (non-POSIX).
12048 # Create a list of thread flags to try. Items starting with a "-" are
12049 # C compiler flags, and other items are library names, except for "none"
12050 # which indicates that we try without any flags at all, and "pthread-config"
12051 # which is a program returning the flags for the Pth emulation library.
12053 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
12055 # The ordering *is* (sometimes) important. Some notes on the
12056 # individual items follow:
12058 # pthreads: AIX (must check this before -lpthread)
12059 # none: in case threads are in libc; should be tried before -Kthread and
12060 # other compiler flags to prevent continual compiler warnings
12061 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
12062 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
12063 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
12064 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
12065 # -pthreads: Solaris/gcc
12066 # -mthreads: Mingw32/gcc, Lynx/gcc
12067 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
12068 # doesn't hurt to check since this sometimes defines pthreads too;
12069 # also defines -D_REENTRANT)
12070 # pthread: Linux, etcetera
12071 # --thread-safe: KAI C++
12072 # pthread-config: use pthread-config program (for GNU Pth library)
12074 case "${host_cpu}-${host_os}" in
12077 # On Solaris (at least, for some versions), libc contains stubbed
12078 # (non-functional) versions of the pthreads routines, so link-based
12079 # tests will erroneously succeed. (We need to link with -pthread or
12080 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
12081 # a function called by this macro, so we could check for that, but
12082 # who knows whether they'll stub that too in a future libc.) So,
12083 # we'll just look for -pthreads and -lpthread first:
12085 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
12089 if test x"$acx_pthread_ok" = xno; then
12090 for flag in $acx_pthread_flags; do
12092 tryPTHREAD_CFLAGS=""
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
12097 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
12102 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
12103 tryPTHREAD_CFLAGS="$flag"
12107 # skip this if we already have flags defined, for PostgreSQL
12108 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
12109 # Extract the first word of "pthread-config", so it can be a program name with args.
12110 set dummy pthread-config; ac_word=$2
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12112 $as_echo_n "checking for $ac_word... " >&6; }
12113 if ${ac_cv_prog_acx_pthread_config+:} false; then :
12114 $as_echo_n "(cached) " >&6
12116 if test -n "$acx_pthread_config"; then
12117 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
12119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12120 for as_dir in $PATH
12123 test -z "$as_dir" && as_dir=.
12124 for ac_exec_ext in '' $ac_executable_extensions; do
12125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12126 ac_cv_prog_acx_pthread_config="yes"
12127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12134 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
12137 acx_pthread_config=$ac_cv_prog_acx_pthread_config
12138 if test -n "$acx_pthread_config"; then
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
12140 $as_echo "$acx_pthread_config" >&6; }
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12143 $as_echo "no" >&6; }
12147 if test x"$acx_pthread_config" = xno; then continue; fi
12148 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
12149 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
12154 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
12155 tryPTHREAD_LIBS="-l$flag"
12160 save_CFLAGS="$CFLAGS"
12161 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
12162 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
12164 # Check for various functions. We must include pthread.h,
12165 # since some functions may be macros. (On the Sequent, we
12166 # need a special flag -Kthread to make this header compile.)
12167 # We check for pthread_join because it is in -lpthread on IRIX
12168 # while pthread_create is in libc. We check for pthread_attr_init
12169 # due to DEC craziness with -lpthreads. We check for
12170 # pthread_cleanup_push because it is one of the few pthread
12171 # functions on Solaris that doesn't have a non-functional libc stub.
12172 # We try pthread_create on general principles.
12173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12174 /* end confdefs.h. */
12175 #include <pthread.h>
12179 pthread_t th; pthread_join(th, 0);
12180 pthread_attr_init(0); pthread_cleanup_push(0, 0);
12181 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
12186 if ac_fn_c_try_link "$LINENO"; then :
12191 rm -f core conftest.err conftest.$ac_objext \
12192 conftest$ac_exeext conftest.$ac_ext
12194 if test "x$acx_pthread_ok" = xyes; then
12195 # Don't use options that are ignored by the compiler.
12196 # We find them by checking stderror.
12197 cat >conftest.$ac_ext <<_ACEOF
12199 main (int argc, char **argv)
12206 rm -f conftest.$ac_objext conftest$ac_exeext
12207 # Check both linking and compiling, because they might tolerate different options.
12208 if test "`(eval $ac_link 2>&1 1>&5)`" = "" && test "`(eval $ac_compile 2>&1 1>&5)`" = ""; then
12209 # we continue with more flags because Linux needs -lpthread
12210 # for libpq builds on PostgreSQL. The test above only
12211 # tests for building binaries, not shared libraries.
12212 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
12213 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
12214 else acx_pthread_ok=no
12219 CFLAGS="$save_CFLAGS"
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
12222 $as_echo "$acx_pthread_ok" >&6; }
12226 # Various other checks:
12227 if test "x$acx_pthread_ok" = xyes; then
12229 LIBS="$PTHREAD_LIBS $LIBS"
12230 save_CFLAGS="$CFLAGS"
12231 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
12233 # Detect AIX lossage: threads are created detached by default
12234 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
12236 $as_echo_n "checking for joinable pthread attribute... " >&6; }
12237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12238 /* end confdefs.h. */
12239 #include <pthread.h>
12243 int attr=PTHREAD_CREATE_JOINABLE;
12248 if ac_fn_c_try_link "$LINENO"; then :
12249 ok=PTHREAD_CREATE_JOINABLE
12253 rm -f core conftest.err conftest.$ac_objext \
12254 conftest$ac_exeext conftest.$ac_ext
12255 if test x"$ok" = xunknown; then
12256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12257 /* end confdefs.h. */
12258 #include <pthread.h>
12262 int attr=PTHREAD_CREATE_UNDETACHED;
12267 if ac_fn_c_try_link "$LINENO"; then :
12268 ok=PTHREAD_CREATE_UNDETACHED
12272 rm -f core conftest.err conftest.$ac_objext \
12273 conftest$ac_exeext conftest.$ac_ext
12275 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
12277 $as_echo "#define PTHREAD_CREATE_JOINABLE \$ok" >>confdefs.h
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ok}" >&5
12281 $as_echo "${ok}" >&6; }
12282 if test x"$ok" = xunknown; then
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: we do not know how to create joinable pthreads" >&5
12284 $as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
12288 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
12290 # We always add these in PostgreSQL
12291 # case "${host_cpu}-${host_os}" in
12292 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
12293 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
12296 $as_echo "${flag}" >&6; }
12297 if test "x$flag" != xno; then
12298 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
12302 CFLAGS="$save_CFLAGS"
12304 # Supporting cc_r would require a special CC in all places that
12305 # use libpq, and that is ugly, so we don't do it. Users can still
12306 # define their compiler as cc_r to do thread builds of everything.
12307 # More AIX lossage: must compile with cc_r
12308 # Extract the first word of "cc_r", so it can be a program name with args.
12309 set dummy cc_r; ac_word=$2
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12311 $as_echo_n "checking for $ac_word... " >&6; }
12312 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
12313 $as_echo_n "(cached) " >&6
12315 if test -n "$PTHREAD_CC"; then
12316 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
12318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12319 for as_dir in $PATH
12322 test -z "$as_dir" && as_dir=.
12323 for ac_exec_ext in '' $ac_executable_extensions; do
12324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12325 ac_cv_prog_PTHREAD_CC="cc_r"
12326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12333 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
12336 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
12337 if test -n "$PTHREAD_CC"; then
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
12339 $as_echo "$PTHREAD_CC" >&6; }
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12342 $as_echo "no" >&6; }
12354 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
12355 if test x"$acx_pthread_ok" = xyes; then
12357 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
12365 ac_cpp='$CPP $CPPFLAGS'
12366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12372 # Some platforms use these, so just define them. They can't hurt if they
12373 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
12374 # enables 5-arg getpwuid_r, among other things.
12375 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
12378 # At this point, we don't want to muck with the compiler name for threading.
12379 # Let's see who fails, perhaps AIX. 2004-04-23
12380 if test "$PTHREAD_CC" != "$CC"; then
12382 PostgreSQL does not support platforms that require a special compiler
12383 for thread safety; use --disable-thread-safety to disable thread safety." "$LINENO" 5
12386 # Check for *_r functions
12389 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
12390 LIBS="$LIBS $PTHREAD_LIBS"
12392 if test "$PORTNAME" != "win32"; then
12393 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
12394 if test "x$ac_cv_header_pthread_h" = xyes; then :
12398 pthread.h not found; use --disable-thread-safety to disable thread safety" "$LINENO" 5
12404 for ac_func in strerror_r getpwuid_r gethostbyname_r
12406 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12407 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12408 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12409 cat >>confdefs.h <<_ACEOF
12410 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12417 # Do test here with the proper thread flags
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpwuid_r takes a fifth argument" >&5
12419 $as_echo_n "checking whether getpwuid_r takes a fifth argument... " >&6; }
12420 if ${pgac_cv_func_getpwuid_r_5arg+:} false; then :
12421 $as_echo_n "(cached) " >&6
12423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12424 /* end confdefs.h. */
12425 #include <sys/types.h>
12431 struct passwd *space;
12434 struct passwd **result;
12435 getpwuid_r(uid, space, buf, bufsize, result);
12440 if ac_fn_c_try_compile "$LINENO"; then :
12441 pgac_cv_func_getpwuid_r_5arg=yes
12443 pgac_cv_func_getpwuid_r_5arg=no
12445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_getpwuid_r_5arg" >&5
12448 $as_echo "$pgac_cv_func_getpwuid_r_5arg" >&6; }
12449 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
12451 $as_echo "#define GETPWUID_R_5ARG 1" >>confdefs.h
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns int" >&5
12456 $as_echo_n "checking whether strerror_r returns int... " >&6; }
12457 if ${pgac_cv_func_strerror_r_int+:} false; then :
12458 $as_echo_n "(cached) " >&6
12460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12461 /* end confdefs.h. */
12462 #include <string.h>
12467 int strerror_r(int, char *, size_t);
12469 /* Older AIX has 'int' for the third argument so we don't test the args. */
12476 if ac_fn_c_try_compile "$LINENO"; then :
12477 pgac_cv_func_strerror_r_int=yes
12479 pgac_cv_func_strerror_r_int=no
12481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_strerror_r_int" >&5
12484 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
12485 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
12487 $as_echo "#define STRERROR_R_INT 1" >>confdefs.h
12496 # do not use values from template file
12505 # We can test for libldap_r only after we know PTHREAD_LIBS
12506 if test "$with_ldap" = yes ; then
12508 if test "$PORTNAME" != "win32"; then
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lldap" >&5
12510 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
12511 if ${ac_cv_lib_ldap_ldap_bind+:} false; then :
12512 $as_echo_n "(cached) " >&6
12514 ac_check_lib_save_LIBS=$LIBS
12515 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
12516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12517 /* end confdefs.h. */
12519 /* Override any GCC internal prototype to avoid an error.
12520 Use char because int might match the return type of a GCC
12521 builtin and then its argument prototype would still apply. */
12529 return ldap_bind ();
12534 if ac_fn_c_try_link "$LINENO"; then :
12535 ac_cv_lib_ldap_ldap_bind=yes
12537 ac_cv_lib_ldap_ldap_bind=no
12539 rm -f core conftest.err conftest.$ac_objext \
12540 conftest$ac_exeext conftest.$ac_ext
12541 LIBS=$ac_check_lib_save_LIBS
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_bind" >&5
12544 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
12545 if test "x$ac_cv_lib_ldap_ldap_bind" = xyes; then :
12546 cat >>confdefs.h <<_ACEOF
12547 #define HAVE_LIBLDAP 1
12550 LIBS="-lldap $LIBS"
12553 as_fn_error $? "library 'ldap' is required for LDAP" "$LINENO" 5
12556 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
12557 if test "$enable_thread_safety" = yes; then
12558 # on some platforms ldap_r fails to link without PTHREAD_LIBS
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_simple_bind in -lldap_r" >&5
12560 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
12561 if ${ac_cv_lib_ldap_r_ldap_simple_bind+:} false; then :
12562 $as_echo_n "(cached) " >&6
12564 ac_check_lib_save_LIBS=$LIBS
12565 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
12566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12567 /* end confdefs.h. */
12569 /* Override any GCC internal prototype to avoid an error.
12570 Use char because int might match the return type of a GCC
12571 builtin and then its argument prototype would still apply. */
12575 char ldap_simple_bind ();
12579 return ldap_simple_bind ();
12584 if ac_fn_c_try_link "$LINENO"; then :
12585 ac_cv_lib_ldap_r_ldap_simple_bind=yes
12587 ac_cv_lib_ldap_r_ldap_simple_bind=no
12589 rm -f core conftest.err conftest.$ac_objext \
12590 conftest$ac_exeext conftest.$ac_ext
12591 LIBS=$ac_check_lib_save_LIBS
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
12594 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
12595 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = xyes; then :
12596 cat >>confdefs.h <<_ACEOF
12597 #define HAVE_LIBLDAP_R 1
12600 LIBS="-lldap_r $LIBS"
12603 as_fn_error $? "library 'ldap_r' is required for LDAP" "$LINENO" 5
12606 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
12608 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lwldap32" >&5
12612 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
12613 if ${ac_cv_lib_wldap32_ldap_bind+:} false; then :
12614 $as_echo_n "(cached) " >&6
12616 ac_check_lib_save_LIBS=$LIBS
12617 LIBS="-lwldap32 $LIBS"
12618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12619 /* end confdefs.h. */
12621 /* Override any GCC internal prototype to avoid an error.
12622 Use char because int might match the return type of a GCC
12623 builtin and then its argument prototype would still apply. */
12631 return ldap_bind ();
12636 if ac_fn_c_try_link "$LINENO"; then :
12637 ac_cv_lib_wldap32_ldap_bind=yes
12639 ac_cv_lib_wldap32_ldap_bind=no
12641 rm -f core conftest.err conftest.$ac_objext \
12642 conftest$ac_exeext conftest.$ac_ext
12643 LIBS=$ac_check_lib_save_LIBS
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wldap32_ldap_bind" >&5
12646 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
12647 if test "x$ac_cv_lib_wldap32_ldap_bind" = xyes; then :
12648 cat >>confdefs.h <<_ACEOF
12649 #define HAVE_LIBWLDAP32 1
12652 LIBS="-lwldap32 $LIBS"
12655 as_fn_error $? "library 'wldap32' is required for LDAP" "$LINENO" 5
12658 LDAP_LIBS_FE="-lwldap32"
12659 LDAP_LIBS_BE="-lwldap32"
12667 # This test makes sure that run tests work at all. Sometimes a shared
12668 # library is found by the linker, but the runtime linker can't find it.
12669 # This check should come after all modifications of compiler or linker
12670 # variables, and before any other run tests.
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking test program" >&5
12672 $as_echo_n "checking test program... " >&6; }
12673 if test "$cross_compiling" = yes; then :
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
12675 $as_echo "cross-compiling" >&6; }
12677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12678 /* end confdefs.h. */
12679 int main() { return 0; }
12681 if ac_fn_c_try_run "$LINENO"; then :
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12683 $as_echo "ok" >&6; }
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12686 $as_echo "failed" >&6; }
12688 Could not execute a simple test program. This may be a problem
12689 related to locating shared libraries. Check the file 'config.log'
12690 for the exact reason." "$LINENO" 5
12692 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12693 conftest.$ac_objext conftest.beam conftest.$ac_ext
12697 # --------------------
12698 # Run tests below here
12699 # --------------------
12701 # Force use of our snprintf if system's doesn't do arg control
12702 # See comment above at snprintf test for details.
12703 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf supports argument control" >&5
12705 $as_echo_n "checking whether snprintf supports argument control... " >&6; }
12706 if ${pgac_cv_snprintf_arg_control+:} false; then :
12707 $as_echo_n "(cached) " >&6
12709 if test "$cross_compiling" = yes; then :
12710 pgac_cv_snprintf_arg_control=cross
12712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12713 /* end confdefs.h. */
12715 #include <string.h>
12721 /* can it swap arguments? */
12722 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
12723 if (strcmp(buf, "4 3") != 0)
12728 if ac_fn_c_try_run "$LINENO"; then :
12729 pgac_cv_snprintf_arg_control=yes
12731 pgac_cv_snprintf_arg_control=no
12733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12734 conftest.$ac_objext conftest.beam conftest.$ac_ext
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_snprintf_arg_control" >&5
12740 $as_echo "$pgac_cv_snprintf_arg_control" >&6; }
12742 if test $pgac_cv_snprintf_arg_control != yes ; then
12743 pgac_need_repl_snprintf=yes
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long int is 64 bits" >&5
12751 $as_echo_n "checking whether long int is 64 bits... " >&6; }
12752 if ${pgac_cv_type_long_int_64+:} false; then :
12753 $as_echo_n "(cached) " >&6
12755 if test "$cross_compiling" = yes; then :
12756 # If cross-compiling, check the size reported by the compiler and
12757 # trust that the arithmetic works.
12758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12759 /* end confdefs.h. */
12764 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
12765 test_array [0] = 0;
12766 return test_array [0];
12772 if ac_fn_c_try_compile "$LINENO"; then :
12773 pgac_cv_type_long_int_64=yes
12775 pgac_cv_type_long_int_64=no
12777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12780 /* end confdefs.h. */
12781 typedef long int ac_int64;
12784 * These are globals to discourage the compiler from folding all the
12785 * arithmetic tests down to compile-time constants.
12787 ac_int64 a = 20000001;
12788 ac_int64 b = 40000005;
12790 int does_int64_work()
12794 if (sizeof(ac_int64) != 8)
12795 return 0; /* definitely not the right size */
12797 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
12805 exit(! does_int64_work());
12808 if ac_fn_c_try_run "$LINENO"; then :
12809 pgac_cv_type_long_int_64=yes
12811 pgac_cv_type_long_int_64=no
12813 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12814 conftest.$ac_objext conftest.beam conftest.$ac_ext
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_long_int_64" >&5
12819 $as_echo "$pgac_cv_type_long_int_64" >&6; }
12821 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
12822 if test x"$pgac_cv_type_long_int_64" = xyes ; then
12824 $as_echo "#define HAVE_LONG_INT_64 1" >>confdefs.h
12829 if test x"$HAVE_LONG_INT_64" = x"yes" ; then
12830 pg_int64_type="long int"
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long long int is 64 bits" >&5
12833 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
12834 if ${pgac_cv_type_long_long_int_64+:} false; then :
12835 $as_echo_n "(cached) " >&6
12837 if test "$cross_compiling" = yes; then :
12838 # If cross-compiling, check the size reported by the compiler and
12839 # trust that the arithmetic works.
12840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12841 /* end confdefs.h. */
12846 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
12847 test_array [0] = 0;
12848 return test_array [0];
12854 if ac_fn_c_try_compile "$LINENO"; then :
12855 pgac_cv_type_long_long_int_64=yes
12857 pgac_cv_type_long_long_int_64=no
12859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12862 /* end confdefs.h. */
12863 typedef long long int ac_int64;
12866 * These are globals to discourage the compiler from folding all the
12867 * arithmetic tests down to compile-time constants.
12869 ac_int64 a = 20000001;
12870 ac_int64 b = 40000005;
12872 int does_int64_work()
12876 if (sizeof(ac_int64) != 8)
12877 return 0; /* definitely not the right size */
12879 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
12887 exit(! does_int64_work());
12890 if ac_fn_c_try_run "$LINENO"; then :
12891 pgac_cv_type_long_long_int_64=yes
12893 pgac_cv_type_long_long_int_64=no
12895 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12896 conftest.$ac_objext conftest.beam conftest.$ac_ext
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_long_long_int_64" >&5
12901 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
12903 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
12904 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
12906 $as_echo "#define HAVE_LONG_LONG_INT_64 1" >>confdefs.h
12910 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
12911 pg_int64_type="long long int"
12913 as_fn_error $? "Cannot find a working 64-bit integer type." "$LINENO" 5
12918 cat >>confdefs.h <<_ACEOF
12919 #define PG_INT64_TYPE $pg_int64_type
12924 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
12925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12926 /* end confdefs.h. */
12928 #define INT64CONST(x) x##LL
12929 long long int foo = INT64CONST(0x1234567890123456);
12939 if ac_fn_c_try_compile "$LINENO"; then :
12941 $as_echo "#define HAVE_LL_CONSTANTS 1" >>confdefs.h
12944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12948 # If we found "long int" is 64 bits, assume snprintf handles it. If
12949 # we found we need to use "long long int", better check. We cope with
12950 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
12951 # work, fall back to our own snprintf emulation (which we know uses %lld).
12953 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
12954 if test $pgac_need_repl_snprintf = no; then
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking snprintf format for long long int" >&5
12956 $as_echo_n "checking snprintf format for long long int... " >&6; }
12957 if ${pgac_cv_snprintf_long_long_int_format+:} false; then :
12958 $as_echo_n "(cached) " >&6
12960 for pgac_format in '%lld' '%qd' '%I64d'; do
12961 if test "$cross_compiling" = yes; then :
12962 pgac_cv_snprintf_long_long_int_format=cross; break
12964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12965 /* end confdefs.h. */
12967 typedef long long int ac_int64;
12968 #define INT64_FORMAT "$pgac_format"
12970 ac_int64 a = 20000001;
12971 ac_int64 b = 40000005;
12973 int does_int64_snprintf_work()
12978 if (sizeof(ac_int64) != 8)
12979 return 0; /* doesn't look like the right size */
12982 snprintf(buf, 100, INT64_FORMAT, c);
12983 if (strcmp(buf, "800000140000005") != 0)
12984 return 0; /* either multiply or snprintf is busted */
12988 exit(! does_int64_snprintf_work());
12991 if ac_fn_c_try_run "$LINENO"; then :
12992 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
12994 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12995 conftest.$ac_objext conftest.beam conftest.$ac_ext
13001 LONG_LONG_INT_FORMAT=''
13003 case $pgac_cv_snprintf_long_long_int_format in
13004 cross) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test (not on host machine)" >&5
13005 $as_echo "cannot test (not on host machine)" >&6; };;
13006 ?*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_snprintf_long_long_int_format" >&5
13007 $as_echo "$pgac_cv_snprintf_long_long_int_format" >&6; }
13008 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
13009 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13010 $as_echo "none" >&6; };;
13012 if test "$LONG_LONG_INT_FORMAT" = ""; then
13013 # Force usage of our own snprintf, since system snprintf is broken
13014 pgac_need_repl_snprintf=yes
13015 LONG_LONG_INT_FORMAT='%lld'
13018 # Here if we previously decided we needed to use our own snprintf
13019 LONG_LONG_INT_FORMAT='%lld'
13021 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
13022 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
13023 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
13025 # Here if we are not using 'long long int' at all
13026 INT64_FORMAT='"%ld"'
13027 UINT64_FORMAT='"%lu"'
13031 cat >>confdefs.h <<_ACEOF
13032 #define INT64_FORMAT $INT64_FORMAT
13037 cat >>confdefs.h <<_ACEOF
13038 #define UINT64_FORMAT $UINT64_FORMAT
13042 # Also force use of our snprintf if the system's doesn't support the %z flag.
13043 if test "$pgac_need_repl_snprintf" = no; then
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf supports the %z modifier" >&5
13045 $as_echo_n "checking whether snprintf supports the %z modifier... " >&6; }
13046 if ${pgac_cv_snprintf_size_t_support+:} false; then :
13047 $as_echo_n "(cached) " >&6
13049 if test "$cross_compiling" = yes; then :
13050 pgac_cv_snprintf_size_t_support=cross
13052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13053 /* end confdefs.h. */
13055 #include <string.h>
13063 * Print the largest unsigned number fitting in a size_t using both %zu
13064 * and the previously-determined format for 64-bit integers. Note that
13065 * we don't run this code unless we know snprintf handles 64-bit ints.
13067 bufz[0] = '\0'; /* in case snprintf fails to emit anything */
13068 snprintf(bufz, sizeof(bufz), "%zu", ~((size_t) 0));
13069 snprintf(buf64, sizeof(buf64), UINT64_FORMAT, (PG_INT64_TYPE) ~((size_t) 0));
13070 if (strcmp(bufz, buf64) != 0)
13075 if ac_fn_c_try_run "$LINENO"; then :
13076 pgac_cv_snprintf_size_t_support=yes
13078 pgac_cv_snprintf_size_t_support=no
13080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13081 conftest.$ac_objext conftest.beam conftest.$ac_ext
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_snprintf_size_t_support" >&5
13087 $as_echo "$pgac_cv_snprintf_size_t_support" >&6; }
13089 if test "$pgac_cv_snprintf_size_t_support" != yes; then
13090 pgac_need_repl_snprintf=yes
13094 # Now we have checked all the reasons to replace snprintf
13095 if test $pgac_need_repl_snprintf = yes; then
13097 $as_echo "#define USE_REPL_SNPRINTF 1" >>confdefs.h
13099 case " $LIBOBJS " in
13100 *" snprintf.$ac_objext "* ) ;;
13101 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
13107 # Check size of void *, size_t (enables tweaks for > 32bit address space)
13108 # The cast to long int works around a bug in the HP C Compiler
13109 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13110 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13111 # This bug is HP SR number 8606223364.
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
13113 $as_echo_n "checking size of void *... " >&6; }
13114 if ${ac_cv_sizeof_void_p+:} false; then :
13115 $as_echo_n "(cached) " >&6
13117 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
13120 if test "$ac_cv_type_void_p" = yes; then
13121 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13122 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13123 as_fn_error 77 "cannot compute sizeof (void *)
13124 See \`config.log' for more details" "$LINENO" 5; }
13126 ac_cv_sizeof_void_p=0
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13132 $as_echo "$ac_cv_sizeof_void_p" >&6; }
13136 cat >>confdefs.h <<_ACEOF
13137 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13141 # The cast to long int works around a bug in the HP C Compiler
13142 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13143 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13144 # This bug is HP SR number 8606223364.
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
13146 $as_echo_n "checking size of size_t... " >&6; }
13147 if ${ac_cv_sizeof_size_t+:} false; then :
13148 $as_echo_n "(cached) " >&6
13150 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
13153 if test "$ac_cv_type_size_t" = yes; then
13154 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13155 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13156 as_fn_error 77 "cannot compute sizeof (size_t)
13157 See \`config.log' for more details" "$LINENO" 5; }
13159 ac_cv_sizeof_size_t=0
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
13165 $as_echo "$ac_cv_sizeof_size_t" >&6; }
13169 cat >>confdefs.h <<_ACEOF
13170 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
13174 # The cast to long int works around a bug in the HP C Compiler
13175 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13176 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13177 # This bug is HP SR number 8606223364.
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13179 $as_echo_n "checking size of long... " >&6; }
13180 if ${ac_cv_sizeof_long+:} false; then :
13181 $as_echo_n "(cached) " >&6
13183 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13186 if test "$ac_cv_type_long" = yes; then
13187 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13188 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13189 as_fn_error 77 "cannot compute sizeof (long)
13190 See \`config.log' for more details" "$LINENO" 5; }
13192 ac_cv_sizeof_long=0
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13198 $as_echo "$ac_cv_sizeof_long" >&6; }
13202 cat >>confdefs.h <<_ACEOF
13203 #define SIZEOF_LONG $ac_cv_sizeof_long
13208 # Decide whether float4 is passed by value: user-selectable, enabled by default
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with float4 passed by value" >&5
13210 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
13213 # Check whether --enable-float4-byval was given.
13214 if test "${enable_float4_byval+set}" = set; then :
13215 enableval=$enable_float4_byval;
13219 $as_echo "#define USE_FLOAT4_BYVAL 1" >>confdefs.h
13221 float4passbyval=true
13224 float4passbyval=false
13227 as_fn_error $? "no argument expected for --enable-float4-byval option" "$LINENO" 5
13232 enable_float4_byval=yes
13234 $as_echo "#define USE_FLOAT4_BYVAL 1" >>confdefs.h
13236 float4passbyval=true
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_float4_byval" >&5
13241 $as_echo "$enable_float4_byval" >&6; }
13243 cat >>confdefs.h <<_ACEOF
13244 #define FLOAT4PASSBYVAL $float4passbyval
13248 # Decide whether float8 is passed by value.
13249 # Note: this setting also controls int8 and related types such as timestamp.
13250 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
13251 # If not, trying to select it is an error.
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with float8 passed by value" >&5
13253 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
13254 if test $ac_cv_sizeof_void_p -ge 8 ; then
13257 # Check whether --enable-float8-byval was given.
13258 if test "${enable_float8_byval+set}" = set; then :
13259 enableval=$enable_float8_byval;
13268 as_fn_error $? "no argument expected for --enable-float8-byval option" "$LINENO" 5
13273 enable_float8_byval=yes
13281 # Check whether --enable-float8-byval was given.
13282 if test "${enable_float8_byval+set}" = set; then :
13283 enableval=$enable_float8_byval;
13292 as_fn_error $? "no argument expected for --enable-float8-byval option" "$LINENO" 5
13297 enable_float8_byval=no
13302 if test "$enable_float8_byval" = yes ; then
13303 as_fn_error $? "--enable-float8-byval is not supported on 32-bit platforms." "$LINENO" 5
13306 if test "$enable_float8_byval" = yes ; then
13308 $as_echo "#define USE_FLOAT8_BYVAL 1" >>confdefs.h
13310 float8passbyval=true
13312 float8passbyval=false
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_float8_byval" >&5
13315 $as_echo "$enable_float8_byval" >&6; }
13317 cat >>confdefs.h <<_ACEOF
13318 #define FLOAT8PASSBYVAL $float8passbyval
13322 # Determine memory alignment requirements for the basic C data types.
13324 # The cast to long int works around a bug in the HP C Compiler,
13325 # see AC_CHECK_SIZEOF for more information.
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of short" >&5
13327 $as_echo_n "checking alignment of short... " >&6; }
13328 if ${ac_cv_alignof_short+:} false; then :
13329 $as_echo_n "(cached) " >&6
13331 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_short" "$ac_includes_default
13333 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
13335 typedef struct { char x; short y; } ac__type_alignof_;"; then :
13338 if test "$ac_cv_type_short" = yes; then
13339 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13340 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13341 as_fn_error 77 "cannot compute alignment of short
13342 See \`config.log' for more details" "$LINENO" 5; }
13344 ac_cv_alignof_short=0
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_short" >&5
13350 $as_echo "$ac_cv_alignof_short" >&6; }
13354 cat >>confdefs.h <<_ACEOF
13355 #define ALIGNOF_SHORT $ac_cv_alignof_short
13359 # The cast to long int works around a bug in the HP C Compiler,
13360 # see AC_CHECK_SIZEOF for more information.
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int" >&5
13362 $as_echo_n "checking alignment of int... " >&6; }
13363 if ${ac_cv_alignof_int+:} false; then :
13364 $as_echo_n "(cached) " >&6
13366 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_int" "$ac_includes_default
13368 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
13370 typedef struct { char x; int y; } ac__type_alignof_;"; then :
13373 if test "$ac_cv_type_int" = yes; then
13374 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13375 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13376 as_fn_error 77 "cannot compute alignment of int
13377 See \`config.log' for more details" "$LINENO" 5; }
13379 ac_cv_alignof_int=0
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_int" >&5
13385 $as_echo "$ac_cv_alignof_int" >&6; }
13389 cat >>confdefs.h <<_ACEOF
13390 #define ALIGNOF_INT $ac_cv_alignof_int
13394 # The cast to long int works around a bug in the HP C Compiler,
13395 # see AC_CHECK_SIZEOF for more information.
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long" >&5
13397 $as_echo_n "checking alignment of long... " >&6; }
13398 if ${ac_cv_alignof_long+:} false; then :
13399 $as_echo_n "(cached) " >&6
13401 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long" "$ac_includes_default
13403 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
13405 typedef struct { char x; long y; } ac__type_alignof_;"; then :
13408 if test "$ac_cv_type_long" = yes; then
13409 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13411 as_fn_error 77 "cannot compute alignment of long
13412 See \`config.log' for more details" "$LINENO" 5; }
13414 ac_cv_alignof_long=0
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long" >&5
13420 $as_echo "$ac_cv_alignof_long" >&6; }
13424 cat >>confdefs.h <<_ACEOF
13425 #define ALIGNOF_LONG $ac_cv_alignof_long
13429 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
13430 # The cast to long int works around a bug in the HP C Compiler,
13431 # see AC_CHECK_SIZEOF for more information.
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long long int" >&5
13433 $as_echo_n "checking alignment of long long int... " >&6; }
13434 if ${ac_cv_alignof_long_long_int+:} false; then :
13435 $as_echo_n "(cached) " >&6
13437 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long_long_int" "$ac_includes_default
13439 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
13441 typedef struct { char x; long long int y; } ac__type_alignof_;"; then :
13444 if test "$ac_cv_type_long_long_int" = yes; then
13445 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13446 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13447 as_fn_error 77 "cannot compute alignment of long long int
13448 See \`config.log' for more details" "$LINENO" 5; }
13450 ac_cv_alignof_long_long_int=0
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long_long_int" >&5
13456 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
13460 cat >>confdefs.h <<_ACEOF
13461 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
13466 # The cast to long int works around a bug in the HP C Compiler,
13467 # see AC_CHECK_SIZEOF for more information.
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of double" >&5
13469 $as_echo_n "checking alignment of double... " >&6; }
13470 if ${ac_cv_alignof_double+:} false; then :
13471 $as_echo_n "(cached) " >&6
13473 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_double" "$ac_includes_default
13475 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
13477 typedef struct { char x; double y; } ac__type_alignof_;"; then :
13480 if test "$ac_cv_type_double" = yes; then
13481 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13483 as_fn_error 77 "cannot compute alignment of double
13484 See \`config.log' for more details" "$LINENO" 5; }
13486 ac_cv_alignof_double=0
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_double" >&5
13492 $as_echo "$ac_cv_alignof_double" >&6; }
13496 cat >>confdefs.h <<_ACEOF
13497 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
13502 # Compute maximum alignment of any basic type.
13503 # We assume long's alignment is at least as strong as char, short, or int;
13504 # but we must check long long (if it exists) and double.
13506 MAX_ALIGNOF=$ac_cv_alignof_long
13507 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
13508 MAX_ALIGNOF=$ac_cv_alignof_double
13510 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
13511 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
13514 cat >>confdefs.h <<_ACEOF
13515 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
13520 # Some platforms predefine the types int8, int16, etc. Only check
13521 # a (hopefully) representative subset.
13522 ac_fn_c_check_type "$LINENO" "int8" "ac_cv_type_int8" "#include <stdio.h>
13524 if test "x$ac_cv_type_int8" = xyes; then :
13526 cat >>confdefs.h <<_ACEOF
13527 #define HAVE_INT8 1
13532 ac_fn_c_check_type "$LINENO" "uint8" "ac_cv_type_uint8" "#include <stdio.h>
13534 if test "x$ac_cv_type_uint8" = xyes; then :
13536 cat >>confdefs.h <<_ACEOF
13537 #define HAVE_UINT8 1
13542 ac_fn_c_check_type "$LINENO" "int64" "ac_cv_type_int64" "#include <stdio.h>
13544 if test "x$ac_cv_type_int64" = xyes; then :
13546 cat >>confdefs.h <<_ACEOF
13547 #define HAVE_INT64 1
13552 ac_fn_c_check_type "$LINENO" "uint64" "ac_cv_type_uint64" "#include <stdio.h>
13554 if test "x$ac_cv_type_uint64" = xyes; then :
13556 cat >>confdefs.h <<_ACEOF
13557 #define HAVE_UINT64 1
13564 # We also check for sig_atomic_t, which *should* be defined per ANSI
13565 # C, but is missing on some old platforms.
13566 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <signal.h>
13568 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
13570 cat >>confdefs.h <<_ACEOF
13571 #define HAVE_SIG_ATOMIC_T 1
13579 if test "$PORTNAME" != "win32"
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX signal interface" >&5
13582 $as_echo_n "checking for POSIX signal interface... " >&6; }
13583 if ${pgac_cv_func_posix_signals+:} false; then :
13584 $as_echo_n "(cached) " >&6
13586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13587 /* end confdefs.h. */
13588 #include <signal.h>
13593 struct sigaction act, oact;
13594 sigemptyset(&act.sa_mask);
13595 act.sa_flags = SA_RESTART;
13596 sigaction(0, &act, &oact);
13601 if ac_fn_c_try_link "$LINENO"; then :
13602 pgac_cv_func_posix_signals=yes
13604 pgac_cv_func_posix_signals=no
13606 rm -f core conftest.err conftest.$ac_objext \
13607 conftest$ac_exeext conftest.$ac_ext
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_posix_signals" >&5
13610 $as_echo "$pgac_cv_func_posix_signals" >&6; }
13611 if test x"$pgac_cv_func_posix_signals" = xyes ; then
13613 $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
13616 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
13618 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
13620 Thread-safety requires POSIX signals, which are not supported by this
13621 operating system; use --disable-thread-safety to disable thread safety." "$LINENO" 5
13626 # Select semaphore implementation type.
13627 if test "$PORTNAME" != "win32"; then
13628 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
13630 $as_echo "#define USE_NAMED_POSIX_SEMAPHORES 1" >>confdefs.h
13632 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
13634 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
13636 $as_echo "#define USE_UNNAMED_POSIX_SEMAPHORES 1" >>confdefs.h
13638 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
13641 $as_echo "#define USE_SYSV_SEMAPHORES 1" >>confdefs.h
13643 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
13648 $as_echo "#define USE_WIN32_SEMAPHORES 1" >>confdefs.h
13650 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
13654 # Select shared-memory implementation type.
13655 if test "$PORTNAME" != "win32"; then
13657 $as_echo "#define USE_SYSV_SHARED_MEMORY 1" >>confdefs.h
13659 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
13662 $as_echo "#define USE_WIN32_SHARED_MEMORY 1" >>confdefs.h
13664 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
13667 # Select latch implementation type.
13668 if test "$PORTNAME" != "win32"; then
13669 LATCH_IMPLEMENTATION="src/backend/port/unix_latch.c"
13671 LATCH_IMPLEMENTATION="src/backend/port/win32_latch.c"
13674 # If not set in template file, set bytes to use libc memset()
13675 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
13676 MEMSET_LOOP_LIMIT=1024
13679 cat >>confdefs.h <<_ACEOF
13680 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
13685 if test "$enable_nls" = yes ; then
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind_textdomain_codeset" >&5
13688 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
13689 if ${ac_cv_search_bind_textdomain_codeset+:} false; then :
13690 $as_echo_n "(cached) " >&6
13692 ac_func_search_save_LIBS=$LIBS
13693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13694 /* end confdefs.h. */
13696 /* Override any GCC internal prototype to avoid an error.
13697 Use char because int might match the return type of a GCC
13698 builtin and then its argument prototype would still apply. */
13702 char bind_textdomain_codeset ();
13706 return bind_textdomain_codeset ();
13711 for ac_lib in '' intl; do
13712 if test -z "$ac_lib"; then
13713 ac_res="none required"
13716 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13718 if ac_fn_c_try_link "$LINENO"; then :
13719 ac_cv_search_bind_textdomain_codeset=$ac_res
13721 rm -f core conftest.err conftest.$ac_objext \
13723 if ${ac_cv_search_bind_textdomain_codeset+:} false; then :
13727 if ${ac_cv_search_bind_textdomain_codeset+:} false; then :
13730 ac_cv_search_bind_textdomain_codeset=no
13732 rm conftest.$ac_ext
13733 LIBS=$ac_func_search_save_LIBS
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind_textdomain_codeset" >&5
13736 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
13737 ac_res=$ac_cv_search_bind_textdomain_codeset
13738 if test "$ac_res" != no; then :
13739 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13742 as_fn_error $? "a gettext implementation is required for NLS" "$LINENO" 5
13745 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
13746 if test "x$ac_cv_header_libintl_h" = xyes; then :
13749 as_fn_error $? "header file <libintl.h> is required for NLS" "$LINENO" 5
13753 for ac_prog in msgfmt
13755 # Extract the first word of "$ac_prog", so it can be a program name with args.
13756 set dummy $ac_prog; ac_word=$2
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13758 $as_echo_n "checking for $ac_word... " >&6; }
13759 if ${ac_cv_prog_MSGFMT+:} false; then :
13760 $as_echo_n "(cached) " >&6
13762 if test -n "$MSGFMT"; then
13763 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
13765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13766 for as_dir in $PATH
13769 test -z "$as_dir" && as_dir=.
13770 for ac_exec_ext in '' $ac_executable_extensions; do
13771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13772 ac_cv_prog_MSGFMT="$ac_prog"
13773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13782 MSGFMT=$ac_cv_prog_MSGFMT
13783 if test -n "$MSGFMT"; then
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13785 $as_echo "$MSGFMT" >&6; }
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13788 $as_echo "no" >&6; }
13792 test -n "$MSGFMT" && break
13795 if test -z "$MSGFMT"; then
13796 as_fn_error $? "msgfmt is required for NLS" "$LINENO" 5
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msgfmt flags" >&5
13799 $as_echo_n "checking for msgfmt flags... " >&6; }
13800 if ${pgac_cv_msgfmt_flags+:} false; then :
13801 $as_echo_n "(cached) " >&6
13803 if test x"$MSGFMT" != x"" && "$MSGFMT" --version 2>&1 | grep "GNU" >/dev/null; then
13804 pgac_cv_msgfmt_flags=-c
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_msgfmt_flags" >&5
13808 $as_echo "$pgac_cv_msgfmt_flags" >&6; }
13809 MSGFMT_FLAGS=$pgac_cv_msgfmt_flags
13811 for ac_prog in msgmerge
13813 # Extract the first word of "$ac_prog", so it can be a program name with args.
13814 set dummy $ac_prog; ac_word=$2
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13816 $as_echo_n "checking for $ac_word... " >&6; }
13817 if ${ac_cv_prog_MSGMERGE+:} false; then :
13818 $as_echo_n "(cached) " >&6
13820 if test -n "$MSGMERGE"; then
13821 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
13823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13824 for as_dir in $PATH
13827 test -z "$as_dir" && as_dir=.
13828 for ac_exec_ext in '' $ac_executable_extensions; do
13829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13830 ac_cv_prog_MSGMERGE="$ac_prog"
13831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13840 MSGMERGE=$ac_cv_prog_MSGMERGE
13841 if test -n "$MSGMERGE"; then
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13843 $as_echo "$MSGMERGE" >&6; }
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13846 $as_echo "no" >&6; }
13850 test -n "$MSGMERGE" && break
13853 for ac_prog in xgettext
13855 # Extract the first word of "$ac_prog", so it can be a program name with args.
13856 set dummy $ac_prog; ac_word=$2
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13858 $as_echo_n "checking for $ac_word... " >&6; }
13859 if ${ac_cv_prog_XGETTEXT+:} false; then :
13860 $as_echo_n "(cached) " >&6
13862 if test -n "$XGETTEXT"; then
13863 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
13865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13866 for as_dir in $PATH
13869 test -z "$as_dir" && as_dir=.
13870 for ac_exec_ext in '' $ac_executable_extensions; do
13871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13872 ac_cv_prog_XGETTEXT="$ac_prog"
13873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13882 XGETTEXT=$ac_cv_prog_XGETTEXT
13883 if test -n "$XGETTEXT"; then
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13885 $as_echo "$XGETTEXT" >&6; }
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13888 $as_echo "no" >&6; }
13892 test -n "$XGETTEXT" && break
13898 # Check for Tcl configuration script tclConfig.sh
13899 if test "$with_tcl" = yes; then
13900 for ac_prog in tclsh tcl tclsh8.6 tclsh86 tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
13902 # Extract the first word of "$ac_prog", so it can be a program name with args.
13903 set dummy $ac_prog; ac_word=$2
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13905 $as_echo_n "checking for $ac_word... " >&6; }
13906 if ${ac_cv_path_TCLSH+:} false; then :
13907 $as_echo_n "(cached) " >&6
13911 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
13914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13915 for as_dir in $PATH
13918 test -z "$as_dir" && as_dir=.
13919 for ac_exec_ext in '' $ac_executable_extensions; do
13920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13921 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
13922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13932 TCLSH=$ac_cv_path_TCLSH
13933 if test -n "$TCLSH"; then
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
13935 $as_echo "$TCLSH" >&6; }
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13938 $as_echo "no" >&6; }
13942 test -n "$TCLSH" && break
13945 if test x"$TCLSH" = x""; then
13946 as_fn_error $? "Tcl shell not found" "$LINENO" 5
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclConfig.sh" >&5
13950 $as_echo_n "checking for tclConfig.sh... " >&6; }
13951 # Let user override test
13952 if test -z "$TCL_CONFIG_SH"; then
13953 pgac_test_dirs="$with_tclconfig"
13955 set X $pgac_test_dirs; shift
13956 if test $# -eq 0; then
13957 test -z "$TCLSH" && as_fn_error $? "unable to locate tclConfig.sh because no Tcl shell was found" "$LINENO" 5
13958 set X `echo 'puts $auto_path' | $TCLSH`; shift
13962 if test -r "$pgac_dir/tclConfig.sh"; then
13963 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
13969 if test -z "$TCL_CONFIG_SH"; then
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13971 $as_echo "no" >&6; }
13972 as_fn_error $? "file 'tclConfig.sh' is required for Tcl" "$LINENO" 5
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCL_CONFIG_SH" >&5
13975 $as_echo "$TCL_CONFIG_SH" >&6; }
13981 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
13982 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
13983 eval TCL_LIBS=\"$TCL_LIBS\"
13984 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
13985 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
13987 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
13988 ac_save_CPPFLAGS=$CPPFLAGS
13989 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
13990 ac_fn_c_check_header_mongrel "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
13991 if test "x$ac_cv_header_tcl_h" = xyes; then :
13994 as_fn_error $? "header file <tcl.h> is required for Tcl" "$LINENO" 5
13998 CPPFLAGS=$ac_save_CPPFLAGS
14001 # check for <perl.h>
14002 if test "$with_perl" = yes; then
14003 ac_save_CPPFLAGS=$CPPFLAGS
14004 CPPFLAGS="$CPPFLAGS -I$perl_archlibexp/CORE"
14005 ac_fn_c_check_header_compile "$LINENO" "perl.h" "ac_cv_header_perl_h" "#include <EXTERN.h>
14007 if test "x$ac_cv_header_perl_h" = xyes; then :
14010 as_fn_error $? "header file <perl.h> is required for Perl" "$LINENO" 5
14014 # While we're at it, check that we can link to libperl.
14015 # On most platforms, if perl.h is there then libperl.so will be too, but at
14016 # this writing Debian packages them separately. There is no known reason to
14017 # waste cycles on separate probes for the Tcl or Python libraries, though.
14018 pgac_save_LIBS=$LIBS
14019 LIBS="$perl_embed_ldflags"
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libperl" >&5
14021 $as_echo_n "checking for libperl... " >&6; }
14022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14023 /* end confdefs.h. */
14025 #include <EXTERN.h>
14036 if ac_fn_c_try_link "$LINENO"; then :
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14038 $as_echo "yes" >&6; }
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14041 $as_echo "no" >&6; }
14042 as_fn_error $? "libperl library is required for Perl" "$LINENO" 5
14044 rm -f core conftest.err conftest.$ac_objext \
14045 conftest$ac_exeext conftest.$ac_ext
14046 LIBS=$pgac_save_LIBS
14047 CPPFLAGS=$ac_save_CPPFLAGS
14050 # check for <Python.h>
14051 if test "$with_python" = yes; then
14052 ac_save_CPPFLAGS=$CPPFLAGS
14053 CPPFLAGS="$python_includespec $CPPFLAGS"
14054 ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
14055 if test "x$ac_cv_header_Python_h" = xyes; then :
14058 as_fn_error $? "header file <Python.h> is required for Python" "$LINENO" 5
14062 CPPFLAGS=$ac_save_CPPFLAGS
14066 # Check for DocBook and tools
14068 for ac_prog in onsgmls nsgmls
14070 # Extract the first word of "$ac_prog", so it can be a program name with args.
14071 set dummy $ac_prog; ac_word=$2
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14073 $as_echo_n "checking for $ac_word... " >&6; }
14074 if ${ac_cv_prog_NSGMLS+:} false; then :
14075 $as_echo_n "(cached) " >&6
14077 if test -n "$NSGMLS"; then
14078 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
14080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14081 for as_dir in $PATH
14084 test -z "$as_dir" && as_dir=.
14085 for ac_exec_ext in '' $ac_executable_extensions; do
14086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14087 ac_cv_prog_NSGMLS="$ac_prog"
14088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14097 NSGMLS=$ac_cv_prog_NSGMLS
14098 if test -n "$NSGMLS"; then
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NSGMLS" >&5
14100 $as_echo "$NSGMLS" >&6; }
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14103 $as_echo "no" >&6; }
14107 test -n "$NSGMLS" && break
14110 for ac_prog in openjade jade
14112 # Extract the first word of "$ac_prog", so it can be a program name with args.
14113 set dummy $ac_prog; ac_word=$2
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14115 $as_echo_n "checking for $ac_word... " >&6; }
14116 if ${ac_cv_prog_JADE+:} false; then :
14117 $as_echo_n "(cached) " >&6
14119 if test -n "$JADE"; then
14120 ac_cv_prog_JADE="$JADE" # Let the user override the test.
14122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14123 for as_dir in $PATH
14126 test -z "$as_dir" && as_dir=.
14127 for ac_exec_ext in '' $ac_executable_extensions; do
14128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14129 ac_cv_prog_JADE="$ac_prog"
14130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14139 JADE=$ac_cv_prog_JADE
14140 if test -n "$JADE"; then
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JADE" >&5
14142 $as_echo "$JADE" >&6; }
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14145 $as_echo "no" >&6; }
14149 test -n "$JADE" && break
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DocBook V4.2" >&5
14154 $as_echo_n "checking for DocBook V4.2... " >&6; }
14155 if ${pgac_cv_check_docbook+:} false; then :
14156 $as_echo_n "(cached) " >&6
14158 cat >conftest.sgml <<EOF
14159 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
14161 <title>test</title>
14163 <title>random</title>
14165 <title>testsect</title>
14172 pgac_cv_check_docbook=no
14174 if test -n "$NSGMLS"; then
14175 $NSGMLS -s conftest.sgml 1>&5 2>&1
14176 if test $? -eq 0; then
14177 pgac_cv_check_docbook=yes
14180 rm -f conftest.sgml
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_check_docbook" >&5
14183 $as_echo "$pgac_cv_check_docbook" >&6; }
14185 have_docbook=$pgac_cv_check_docbook
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DocBook stylesheets" >&5
14189 $as_echo_n "checking for DocBook stylesheets... " >&6; }
14190 if ${pgac_cv_path_stylesheets+:} false; then :
14191 $as_echo_n "(cached) " >&6
14193 if test -n "$DOCBOOKSTYLE"; then
14194 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
14196 for pgac_prefix in /usr /usr/local /opt /sw; do
14197 for pgac_infix in share lib; do
14198 for pgac_postfix in \
14199 sgml/stylesheets/nwalsh-modular \
14200 sgml/stylesheets/docbook \
14201 sgml/stylesheets/dsssl/docbook \
14202 sgml/docbook-dsssl \
14203 sgml/docbook/dsssl/modular \
14204 sgml/docbook/stylesheet/dsssl/modular \
14205 sgml/docbook/dsssl-stylesheets \
14206 sgml/dsssl/docbook-dsssl-nwalsh
14208 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
14209 if test -r "$pgac_candidate/html/docbook.dsl" \
14210 && test -r "$pgac_candidate/print/docbook.dsl"
14212 pgac_cv_path_stylesheets=$pgac_candidate
14221 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
14223 if test -n "$DOCBOOKSTYLE"; then
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOCBOOKSTYLE" >&5
14225 $as_echo "$DOCBOOKSTYLE" >&6; }
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14228 $as_echo "no" >&6; }
14230 if test -n "$DOCBOOKSTYLE" -a -r "$DOCBOOKSTYLE/bin/collateindex.pl"; then
14231 COLLATEINDEX="$DOCBOOKSTYLE/bin/collateindex.pl"
14234 # Extract the first word of "collateindex.pl", so it can be a program name with args.
14235 set dummy collateindex.pl; ac_word=$2
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14237 $as_echo_n "checking for $ac_word... " >&6; }
14238 if ${ac_cv_path_COLLATEINDEX+:} false; then :
14239 $as_echo_n "(cached) " >&6
14241 case $COLLATEINDEX in
14243 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
14246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14247 for as_dir in $PATH
14250 test -z "$as_dir" && as_dir=.
14251 for ac_exec_ext in '' $ac_executable_extensions; do
14252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14253 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
14254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14264 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
14265 if test -n "$COLLATEINDEX"; then
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COLLATEINDEX" >&5
14267 $as_echo "$COLLATEINDEX" >&6; }
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14270 $as_echo "no" >&6; }
14275 for ac_prog in xsltproc
14277 # Extract the first word of "$ac_prog", so it can be a program name with args.
14278 set dummy $ac_prog; ac_word=$2
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14280 $as_echo_n "checking for $ac_word... " >&6; }
14281 if ${ac_cv_prog_XSLTPROC+:} false; then :
14282 $as_echo_n "(cached) " >&6
14284 if test -n "$XSLTPROC"; then
14285 ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
14287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14288 for as_dir in $PATH
14291 test -z "$as_dir" && as_dir=.
14292 for ac_exec_ext in '' $ac_executable_extensions; do
14293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14294 ac_cv_prog_XSLTPROC="$ac_prog"
14295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14304 XSLTPROC=$ac_cv_prog_XSLTPROC
14305 if test -n "$XSLTPROC"; then
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
14307 $as_echo "$XSLTPROC" >&6; }
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14310 $as_echo "no" >&6; }
14314 test -n "$XSLTPROC" && break
14317 for ac_prog in osx sgml2xml sx
14319 # Extract the first word of "$ac_prog", so it can be a program name with args.
14320 set dummy $ac_prog; ac_word=$2
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14322 $as_echo_n "checking for $ac_word... " >&6; }
14323 if ${ac_cv_prog_OSX+:} false; then :
14324 $as_echo_n "(cached) " >&6
14326 if test -n "$OSX"; then
14327 ac_cv_prog_OSX="$OSX" # Let the user override the test.
14329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14330 for as_dir in $PATH
14333 test -z "$as_dir" && as_dir=.
14334 for ac_exec_ext in '' $ac_executable_extensions; do
14335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14336 ac_cv_prog_OSX="$ac_prog"
14337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14346 OSX=$ac_cv_prog_OSX
14347 if test -n "$OSX"; then
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OSX" >&5
14349 $as_echo "$OSX" >&6; }
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14352 $as_echo "no" >&6; }
14356 test -n "$OSX" && break
14361 # Check for test tools
14363 for ac_prog in prove
14365 # Extract the first word of "$ac_prog", so it can be a program name with args.
14366 set dummy $ac_prog; ac_word=$2
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14368 $as_echo_n "checking for $ac_word... " >&6; }
14369 if ${ac_cv_prog_PROVE+:} false; then :
14370 $as_echo_n "(cached) " >&6
14372 if test -n "$PROVE"; then
14373 ac_cv_prog_PROVE="$PROVE" # Let the user override the test.
14375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14376 for as_dir in $PATH
14379 test -z "$as_dir" && as_dir=.
14380 for ac_exec_ext in '' $ac_executable_extensions; do
14381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14382 ac_cv_prog_PROVE="$ac_prog"
14383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14392 PROVE=$ac_cv_prog_PROVE
14393 if test -n "$PROVE"; then
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROVE" >&5
14395 $as_echo "$PROVE" >&6; }
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14398 $as_echo "no" >&6; }
14402 test -n "$PROVE" && break
14408 # We have to run the thread test near the end so we have all our symbols
14409 # defined. Cross compiling throws a warning.
14411 if test "$enable_thread_safety" = yes; then
14412 if test "$PORTNAME" != "win32"
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking thread safety of required library functions" >&5
14415 $as_echo_n "checking thread safety of required library functions... " >&6; }
14419 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
14420 LIBS="$LIBS $PTHREAD_LIBS"
14421 if test "$cross_compiling" = yes; then :
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: maybe" >&5
14423 $as_echo "maybe" >&6; }
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
14425 *** Skipping thread test program because of cross-compile build.
14426 *** Run the program in src/test/thread on the target machine.
14428 $as_echo "$as_me: WARNING:
14429 *** Skipping thread test program because of cross-compile build.
14430 *** Run the program in src/test/thread on the target machine.
14433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14434 /* end confdefs.h. */
14435 #include "$srcdir/src/test/thread/thread_test.c"
14437 if ac_fn_c_try_run "$LINENO"; then :
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14439 $as_echo "yes" >&6; }
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14442 $as_echo "no" >&6; }
14443 as_fn_error $? "thread test program failed
14444 This platform is not thread-safe. Check the file 'config.log' or compile
14445 and run src/test/thread/thread_test for the exact reason.
14446 Use --disable-thread-safety to disable thread safety." "$LINENO" 5
14448 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14449 conftest.$ac_objext conftest.beam conftest.$ac_ext
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** skipping thread test on Win32" >&5
14456 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
14460 # If compiler will take -Wl,--as-needed (or various platform-specific
14461 # spellings thereof) then add that to LDFLAGS. This is much easier than
14462 # trying to filter LIBS to the minimum for each executable.
14463 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
14464 # libreadline; therefore we postpone testing it until we know what library
14465 # dependencies readline has. The test code will try to link with $LIBS.
14466 if test "$with_readline" = yes; then
14467 link_test_func=readline
14469 link_test_func=exit
14472 if test "$PORTNAME" = "darwin"; then
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,-dead_strip_dylibs" >&5
14474 $as_echo_n "checking whether $CC supports -Wl,-dead_strip_dylibs... " >&6; }
14475 if ${pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs+:} false; then :
14476 $as_echo_n "(cached) " >&6
14478 pgac_save_LDFLAGS=$LDFLAGS
14479 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
14480 if test "$cross_compiling" = yes; then :
14481 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs="assuming no"
14483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14484 /* end confdefs.h. */
14485 extern void $link_test_func (); void (*fptr) () = $link_test_func;
14494 if ac_fn_c_try_run "$LINENO"; then :
14495 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=yes
14497 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=no
14499 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14500 conftest.$ac_objext conftest.beam conftest.$ac_ext
14503 LDFLAGS="$pgac_save_LDFLAGS"
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&5
14506 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&6; }
14507 if test x"$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" = x"yes"; then
14508 LDFLAGS="$LDFLAGS -Wl,-dead_strip_dylibs"
14511 elif test "$PORTNAME" = "openbsd"; then
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,-Bdynamic" >&5
14513 $as_echo_n "checking whether $CC supports -Wl,-Bdynamic... " >&6; }
14514 if ${pgac_cv_prog_cc_ldflags__Wl__Bdynamic+:} false; then :
14515 $as_echo_n "(cached) " >&6
14517 pgac_save_LDFLAGS=$LDFLAGS
14518 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
14519 if test "$cross_compiling" = yes; then :
14520 pgac_cv_prog_cc_ldflags__Wl__Bdynamic="assuming no"
14522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14523 /* end confdefs.h. */
14524 extern void $link_test_func (); void (*fptr) () = $link_test_func;
14533 if ac_fn_c_try_run "$LINENO"; then :
14534 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=yes
14536 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=no
14538 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14539 conftest.$ac_objext conftest.beam conftest.$ac_ext
14542 LDFLAGS="$pgac_save_LDFLAGS"
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&5
14545 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&6; }
14546 if test x"$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" = x"yes"; then
14547 LDFLAGS="$LDFLAGS -Wl,-Bdynamic"
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,--as-needed" >&5
14552 $as_echo_n "checking whether $CC supports -Wl,--as-needed... " >&6; }
14553 if ${pgac_cv_prog_cc_ldflags__Wl___as_needed+:} false; then :
14554 $as_echo_n "(cached) " >&6
14556 pgac_save_LDFLAGS=$LDFLAGS
14557 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
14558 if test "$cross_compiling" = yes; then :
14559 pgac_cv_prog_cc_ldflags__Wl___as_needed="assuming no"
14561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14562 /* end confdefs.h. */
14563 extern void $link_test_func (); void (*fptr) () = $link_test_func;
14572 if ac_fn_c_try_run "$LINENO"; then :
14573 pgac_cv_prog_cc_ldflags__Wl___as_needed=yes
14575 pgac_cv_prog_cc_ldflags__Wl___as_needed=no
14577 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14578 conftest.$ac_objext conftest.beam conftest.$ac_ext
14581 LDFLAGS="$pgac_save_LDFLAGS"
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_ldflags__Wl___as_needed" >&5
14584 $as_echo "$pgac_cv_prog_cc_ldflags__Wl___as_needed" >&6; }
14585 if test x"$pgac_cv_prog_cc_ldflags__Wl___as_needed" = x"yes"; then
14586 LDFLAGS="$LDFLAGS -Wl,--as-needed"
14591 # Create compiler version string
14592 if test x"$GCC" = x"yes" ; then
14593 cc_string=`${CC} --version | sed q`
14594 case $cc_string in [A-Za-z]*) ;; *) cc_string="GCC $cc_string";; esac
14595 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
14596 cc_string=`${CC} -V 2>&1 | sed q`
14602 cat >>confdefs.h <<_ACEOF
14603 #define PG_VERSION_STR "PostgreSQL $PG_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
14607 # Supply a numeric version string for use by 3rd party add-ons
14608 # awk -F is a regex on some platforms, and not on others, so make "." a tab
14609 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
14611 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
14613 cat >>confdefs.h <<_ACEOF
14614 #define PG_VERSION_NUM $PG_VERSION_NUM
14619 # Begin output steps
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: using compiler=$cc_string" >&5
14622 $as_echo "$as_me: using compiler=$cc_string" >&6;}
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS=$CFLAGS" >&5
14624 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS=$CPPFLAGS" >&5
14626 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS=$LDFLAGS" >&5
14628 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
14630 # prepare build tree if outside source tree
14631 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
14632 # Note 2: /bin/pwd might be better than shell's built-in at getting
14633 # a symlink-free name.
14634 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
14638 if test "$no_create" != yes; then
14639 $as_echo_n "preparing build tree... " >&6
14640 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
14641 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
14642 || as_fn_error $? "failed" "$LINENO" 5
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14644 $as_echo "done" >&6; }
14650 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
14653 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/backend/port/pg_latch.c:${LATCH_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}"
14656 if test "$PORTNAME" = "win32"; then
14657 ac_config_commands="$ac_config_commands check_win32_symlinks"
14661 ac_config_headers="$ac_config_headers src/include/pg_config.h"
14664 ac_config_headers="$ac_config_headers src/include/pg_config_ext.h"
14667 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
14670 cat >confcache <<\_ACEOF
14671 # This file is a shell script that caches the results of configure
14672 # tests run on this system so they can be shared between configure
14673 # scripts and configure runs, see configure's option --config-cache.
14674 # It is not useful on other systems. If it contains results you don't
14675 # want to keep, you may remove or edit it.
14677 # config.status only pays attention to the cache file if you give it
14678 # the --recheck option to rerun configure.
14680 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14681 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14682 # following values.
14686 # The following way of writing the cache mishandles newlines in values,
14687 # but we know of no workaround that is simple, portable, and efficient.
14688 # So, we kill variables containing newlines.
14689 # Ultrix sh set writes to stderr and can't be redirected directly,
14690 # and sets the high bit in the cache file unless we assign to the vars.
14692 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14693 eval ac_val=\$$ac_var
14697 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14698 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14701 _ | IFS | as_nl) ;; #(
14702 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14703 *) { eval $ac_var=; unset $ac_var;} ;;
14709 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14710 *${as_nl}ac_space=\ *)
14711 # `set' does not quote correctly, so add quotes: double-quote
14712 # substitution turns \\\\ into \\, and sed turns \\ into \.
14715 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14718 # `set' quotes correctly as required by POSIX, so do not add quotes.
14719 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14728 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14730 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14732 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14733 if test -w "$cache_file"; then
14734 if test "x$cache_file" != "x/dev/null"; then
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14736 $as_echo "$as_me: updating cache $cache_file" >&6;}
14737 if test ! -f "$cache_file" || test -h "$cache_file"; then
14738 cat confcache >"$cache_file"
14740 case $cache_file in #(
14742 mv -f confcache "$cache_file"$$ &&
14743 mv -f "$cache_file"$$ "$cache_file" ;; #(
14745 mv -f confcache "$cache_file" ;;
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14751 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14756 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14757 # Let make expand exec_prefix.
14758 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14760 DEFS=-DHAVE_CONFIG_H
14765 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14766 # 1. Remove the extension, and $U if already installed.
14767 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14768 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14769 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14770 # will be set to the directory where LIBOBJS objects are built.
14771 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14772 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14774 LIBOBJS=$ac_libobjs
14776 LTLIBOBJS=$ac_ltlibobjs
14781 : "${CONFIG_STATUS=./config.status}"
14783 ac_clean_files_save=$ac_clean_files
14784 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14786 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14788 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14790 # Generated by $as_me.
14791 # Run this file to recreate the current configuration.
14792 # Compiler output produced by configure, useful for debugging
14793 # configure, is in config.log if it exists.
14796 ac_cs_recheck=false
14799 SHELL=\${CONFIG_SHELL-$SHELL}
14802 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14803 ## -------------------- ##
14804 ## M4sh Initialization. ##
14805 ## -------------------- ##
14807 # Be more Bourne compatible
14808 DUALCASE=1; export DUALCASE # for MKS sh
14809 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14812 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14813 # is contrary to our usage. Disable this feature.
14814 alias -g '${1+"$@"}'='"$@"'
14815 setopt NO_GLOB_SUBST
14817 case `(set -o) 2>/dev/null` in #(
14829 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14830 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14831 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14832 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14833 # Prefer a ksh shell builtin over an external printf program on Solaris,
14834 # but without wasting forks for bash or zsh.
14835 if test -z "$BASH_VERSION$ZSH_VERSION" \
14836 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14837 as_echo='print -r --'
14838 as_echo_n='print -rn --'
14839 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14840 as_echo='printf %s\n'
14841 as_echo_n='printf %s'
14843 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14844 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14845 as_echo_n='/usr/ucb/echo -n'
14847 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14848 as_echo_n_body='eval
14852 expr "X$arg" : "X\\(.*\\)$as_nl";
14853 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14855 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14857 export as_echo_n_body
14858 as_echo_n='sh -c $as_echo_n_body as_echo'
14860 export as_echo_body
14861 as_echo='sh -c $as_echo_body as_echo'
14864 # The user is always right.
14865 if test "${PATH_SEPARATOR+set}" != set; then
14867 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14868 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14875 # We need space, tab and new line, in precisely that order. Quoting is
14876 # there to prevent editors from complaining about space-tab.
14877 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14878 # splitting by setting IFS to empty value.)
14881 # Find who we are. Look in the path if we contain no directory separator.
14884 *[\\/]* ) as_myself=$0 ;;
14885 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14886 for as_dir in $PATH
14889 test -z "$as_dir" && as_dir=.
14890 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14896 # We did not find ourselves, most probably we were run as `sh COMMAND'
14897 # in which case we are not to be found in the path.
14898 if test "x$as_myself" = x; then
14901 if test ! -f "$as_myself"; then
14902 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14906 # Unset variables that we do not need and which cause bugs (e.g. in
14907 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14908 # suppresses any "Segmentation fault" message there. '((' could
14909 # trigger a bug in pdksh 5.2.14.
14910 for as_var in BASH_ENV ENV MAIL MAILPATH
14911 do eval test x\${$as_var+set} = xset \
14912 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14925 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14928 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14929 # ----------------------------------------
14930 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14931 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14932 # script with STATUS, using 1 if that was 0.
14935 as_status=$1; test $as_status -eq 0 && as_status=1
14937 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14938 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14940 $as_echo "$as_me: error: $2" >&2
14941 as_fn_exit $as_status
14945 # as_fn_set_status STATUS
14946 # -----------------------
14947 # Set $? to STATUS, without forking.
14948 as_fn_set_status ()
14951 } # as_fn_set_status
14953 # as_fn_exit STATUS
14954 # -----------------
14955 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14959 as_fn_set_status $1
14965 # Portably unset VAR.
14968 { eval $1=; unset $1;}
14970 as_unset=as_fn_unset
14971 # as_fn_append VAR VALUE
14972 # ----------------------
14973 # Append the text in VALUE to the end of the definition contained in VAR. Take
14974 # advantage of any shell optimizations that allow amortized linear growth over
14975 # repeated appends, instead of the typical quadratic growth present in naive
14977 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14978 eval 'as_fn_append ()
14989 # as_fn_arith ARG...
14990 # ------------------
14991 # Perform arithmetic evaluation on the ARGs, and store the result in the
14992 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14993 # must be portable across $(()) and expr.
14994 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14995 eval 'as_fn_arith ()
15002 as_val=`expr "$@" || test $? -eq 1`
15007 if expr a : '\(a\)' >/dev/null 2>&1 &&
15008 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15014 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15015 as_basename=basename
15020 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15026 as_me=`$as_basename -- "$0" ||
15027 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15028 X"$0" : 'X\(//\)$' \| \
15029 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15031 sed '/^.*\/\([^/][^/]*\)\/*$/{
15045 # Avoid depending upon Character Ranges.
15046 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15047 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15048 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15049 as_cr_digits='0123456789'
15050 as_cr_alnum=$as_cr_Letters$as_cr_digits
15052 ECHO_C= ECHO_N= ECHO_T=
15053 case `echo -n x` in #(((((
15055 case `echo 'xy\c'` in
15056 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15058 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15065 rm -f conf$$ conf$$.exe conf$$.file
15066 if test -d conf$$.dir; then
15067 rm -f conf$$.dir/conf$$.file
15070 mkdir conf$$.dir 2>/dev/null
15072 if (echo >conf$$.file) 2>/dev/null; then
15073 if ln -s conf$$.file conf$$ 2>/dev/null; then
15075 # ... but there are two gotchas:
15076 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15077 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15078 # In both cases, we have to default to `cp -pR'.
15079 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15081 elif ln conf$$.file conf$$ 2>/dev/null; then
15089 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15090 rmdir conf$$.dir 2>/dev/null
15095 # Create "$as_dir" as a directory, including parents if necessary.
15100 -*) as_dir=./$as_dir;;
15102 test -d "$as_dir" || eval $as_mkdir_p || {
15106 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15107 *) as_qdir=$as_dir;;
15109 as_dirs="'$as_qdir' $as_dirs"
15110 as_dir=`$as_dirname -- "$as_dir" ||
15111 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15112 X"$as_dir" : 'X\(//\)[^/]' \| \
15113 X"$as_dir" : 'X\(//\)$' \| \
15114 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15115 $as_echo X"$as_dir" |
15116 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15120 /^X\(\/\/\)[^/].*/{
15133 test -d "$as_dir" && break
15135 test -z "$as_dirs" || eval "mkdir $as_dirs"
15136 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15140 if mkdir -p . 2>/dev/null; then
15141 as_mkdir_p='mkdir -p "$as_dir"'
15143 test -d ./-p && rmdir ./-p
15148 # as_fn_executable_p FILE
15149 # -----------------------
15150 # Test if FILE is an executable regular file.
15151 as_fn_executable_p ()
15153 test -f "$1" && test -x "$1"
15154 } # as_fn_executable_p
15155 as_test_x='test -x'
15156 as_executable_p=as_fn_executable_p
15158 # Sed expression to map a string onto a valid CPP name.
15159 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15161 # Sed expression to map a string onto a valid variable name.
15162 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15166 ## ----------------------------------- ##
15167 ## Main body of $CONFIG_STATUS script. ##
15168 ## ----------------------------------- ##
15170 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15172 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15173 # Save the log message, to keep $0 and so on meaningful, and to
15174 # report actual input values of CONFIG_FILES etc. instead of their
15175 # values after options handling.
15177 This file was extended by PostgreSQL $as_me 9.4devel, which was
15178 generated by GNU Autoconf 2.69. Invocation command line was
15180 CONFIG_FILES = $CONFIG_FILES
15181 CONFIG_HEADERS = $CONFIG_HEADERS
15182 CONFIG_LINKS = $CONFIG_LINKS
15183 CONFIG_COMMANDS = $CONFIG_COMMANDS
15186 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15191 case $ac_config_files in *"
15192 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15195 case $ac_config_headers in *"
15196 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15200 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15201 # Files that config.status was made for.
15202 config_files="$ac_config_files"
15203 config_headers="$ac_config_headers"
15204 config_links="$ac_config_links"
15205 config_commands="$ac_config_commands"
15209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15211 \`$as_me' instantiates files and other configuration actions
15212 from templates according to the current configuration. Unless the files
15213 and actions are specified as TAGs, all are instantiated by default.
15215 Usage: $0 [OPTION]... [TAG]...
15217 -h, --help print this help, then exit
15218 -V, --version print version number and configuration settings, then exit
15219 --config print configuration, then exit
15220 -q, --quiet, --silent
15221 do not print progress messages
15222 -d, --debug don't remove temporary files
15223 --recheck update $as_me by reconfiguring in the same conditions
15224 --file=FILE[:TEMPLATE]
15225 instantiate the configuration file FILE
15226 --header=FILE[:TEMPLATE]
15227 instantiate the configuration header FILE
15229 Configuration files:
15232 Configuration headers:
15235 Configuration links:
15238 Configuration commands:
15241 Report bugs to <pgsql-bugs@postgresql.org>."
15244 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15245 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15247 PostgreSQL config.status 9.4devel
15248 configured by $0, generated by GNU Autoconf 2.69,
15249 with options \\"\$ac_cs_config\\"
15251 Copyright (C) 2012 Free Software Foundation, Inc.
15252 This config.status script is free software; the Free Software Foundation
15253 gives unlimited permission to copy, distribute and modify it."
15260 test -n "\$AWK" || AWK=awk
15263 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15264 # The default lists apply if the user does not specify any file.
15270 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15271 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15275 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15287 # Handling of the options.
15288 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15290 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15291 $as_echo "$ac_cs_version"; exit ;;
15292 --config | --confi | --conf | --con | --co | --c )
15293 $as_echo "$ac_cs_config"; exit ;;
15294 --debug | --debu | --deb | --de | --d | -d )
15296 --file | --fil | --fi | --f )
15299 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15300 '') as_fn_error $? "missing file argument" ;;
15302 as_fn_append CONFIG_FILES " '$ac_optarg'"
15303 ac_need_defaults=false;;
15304 --header | --heade | --head | --hea )
15307 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15309 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15310 ac_need_defaults=false;;
15312 # Conflict between --help and --header
15313 as_fn_error $? "ambiguous option: \`$1'
15314 Try \`$0 --help' for more information.";;
15315 --help | --hel | -h )
15316 $as_echo "$ac_cs_usage"; exit ;;
15317 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15318 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15321 # This is an error.
15322 -*) as_fn_error $? "unrecognized option: \`$1'
15323 Try \`$0 --help' for more information." ;;
15325 *) as_fn_append ac_config_targets " $1"
15326 ac_need_defaults=false ;;
15332 ac_configure_extra_args=
15334 if $ac_cs_silent; then
15336 ac_configure_extra_args="$ac_configure_extra_args --silent"
15340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15341 if \$ac_cs_recheck; then
15342 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15344 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15345 CONFIG_SHELL='$SHELL'
15346 export CONFIG_SHELL
15351 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15355 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15356 ## Running $as_me. ##
15362 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15365 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15367 # Handling of arguments.
15368 for ac_config_target in $ac_config_targets
15370 case $ac_config_target in
15371 "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
15372 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
15373 "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
15374 "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
15375 "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
15376 "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
15377 "src/backend/port/pg_latch.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_latch.c:${LATCH_IMPLEMENTATION}" ;;
15378 "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
15379 "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
15380 "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
15381 "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
15382 "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
15383 "src/include/pg_config_ext.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config_ext.h" ;;
15384 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
15386 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15391 # If the user did not use the arguments to specify the items to instantiate,
15392 # then the envvar interface is used. Set only those that are not.
15393 # We use the long form for the default assignment because of an extremely
15394 # bizarre bug on SunOS 4.1.3.
15395 if $ac_need_defaults; then
15396 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15397 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15398 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
15399 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15402 # Have a temporary directory for convenience. Make it in the build tree
15403 # simply because there is no reason against having it here, and in addition,
15404 # creating and moving files from /tmp can sometimes cause problems.
15405 # Hook for its removal unless debugging.
15406 # Note that there is a small window in which the directory will not be cleaned:
15407 # after its creation but before its name has been assigned to `$tmp'.
15411 trap 'exit_status=$?
15412 : "${ac_tmp:=$tmp}"
15413 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15415 trap 'as_fn_exit 1' 1 2 13 15
15417 # Create a (secure) tmp directory for tmp files.
15420 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15424 tmp=./conf$$-$RANDOM
15425 (umask 077 && mkdir "$tmp")
15426 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15429 # Set up the scripts for CONFIG_FILES section.
15430 # No need to generate them if there are no CONFIG_FILES.
15431 # This happens for instance with `./config.status config.h'.
15432 if test -n "$CONFIG_FILES"; then
15435 ac_cr=`echo X | tr X '\015'`
15436 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15437 # But we know of no other shell where ac_cr would be empty at this
15438 # point, so we can use a bashism as a fallback.
15439 if test "x$ac_cr" = x; then
15440 eval ac_cr=\$\'\\r\'
15442 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15443 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15446 ac_cs_awk_cr=$ac_cr
15449 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15454 echo "cat >conf$$subs.awk <<_ACEOF" &&
15455 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15457 } >conf$$subs.sh ||
15458 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15459 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15461 for ac_last_try in false false false false false :; do
15462 . ./conf$$subs.sh ||
15463 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15465 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15466 if test $ac_delim_n = $ac_delim_num; then
15468 elif $ac_last_try; then
15469 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15471 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15474 rm -f conf$$subs.sh
15476 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15477 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15481 s/^/S["/; s/!.*/"]=/
15491 s/\(.\{148\}\)..*/\1/
15493 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15498 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15505 s/\(.\{148\}\)..*/\1/
15507 s/["\\]/\\&/g; s/^/"/; s/$/"/
15511 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15516 ' <conf$$subs.awk | sed '
15521 ' >>$CONFIG_STATUS || ac_write_fail=1
15522 rm -f conf$$subs.awk
15523 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15525 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15526 for (key in S) S_is_set[key] = 1
15532 nfields = split(line, field, "@")
15534 len = length(field[1])
15535 for (i = 2; i < nfields; i++) {
15537 keylen = length(key)
15538 if (S_is_set[key]) {
15540 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15541 len += length(value) + length(field[++i])
15552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15553 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15554 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15557 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15558 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15561 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15562 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15563 # trailing colons and then remove the whole line if VPATH becomes empty
15564 # (actually we leave an empty line to preserve line numbers).
15565 if test "x$srcdir" = x.; then
15566 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15584 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15585 fi # test -n "$CONFIG_FILES"
15587 # Set up the scripts for CONFIG_HEADERS section.
15588 # No need to generate them if there are no CONFIG_HEADERS.
15589 # This happens for instance with `./config.status Makefile'.
15590 if test -n "$CONFIG_HEADERS"; then
15591 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15595 # Transform confdefs.h into an awk script `defines.awk', embedded as
15596 # here-document in config.status, that substitutes the proper values into
15597 # config.h.in to produce config.h.
15599 # Create a delimiter string that does not exist in confdefs.h, to ease
15600 # handling of long lines.
15602 for ac_last_try in false false :; do
15603 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15604 if test -z "$ac_tt"; then
15606 elif $ac_last_try; then
15607 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15609 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15613 # For the awk script, D is an array of macro values keyed by name,
15614 # likewise P contains macro parameters if any. Preserve backslash
15615 # newline sequences.
15617 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15619 s/.\{148\}/&'"$ac_delim"'/g
15622 s/^[ ]*#[ ]*define[ ][ ]*/ /
15629 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15631 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15635 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15636 D["\1"]=" \3\\\\\\n"\\/p
15638 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15643 s/.\{148\}/&'"$ac_delim"'/g
15648 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15651 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15653 ' <confdefs.h | sed '
15654 s/'"$ac_delim"'/"\\\
15655 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15657 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15658 for (key in D) D_is_set[key] = 1
15661 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15663 split(line, arg, " ")
15664 if (arg[1] == "#") {
15668 defundef = substr(arg[1], 2)
15671 split(mac1, mac2, "(") #)
15673 prefix = substr(line, 1, index(line, defundef) - 1)
15674 if (D_is_set[macro]) {
15675 # Preserve the white space surrounding the "#".
15676 print prefix "define", macro P[macro] D[macro]
15679 # Replace #undef with comments. This is necessary, for example,
15680 # in the case of _POSIX_SOURCE, which is predefined and required
15681 # on some systems where configure will not decide to define it.
15682 if (defundef == "undef") {
15683 print "/*", prefix defundef, macro, "*/"
15691 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15692 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15693 fi # test -n "$CONFIG_HEADERS"
15696 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
15701 :[FHLC]) ac_mode=$ac_tag; continue;;
15703 case $ac_mode$ac_tag in
15705 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15706 :[FH]-) ac_tag=-:-;;
15707 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15724 -) ac_f="$ac_tmp/stdin";;
15725 *) # Look for the file first in the build tree, then in the source tree
15726 # (if the path is not absolute). The absolute path cannot be DOS-style,
15727 # because $ac_f cannot contain `:'.
15731 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15733 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15735 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15736 as_fn_append ac_file_inputs " '$ac_f'"
15739 # Let's still pretend it is `configure' which instantiates (i.e., don't
15740 # use $as_me), people would be surprised to read:
15741 # /* config.h. Generated by config.status. */
15742 configure_input='Generated from '`
15743 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15745 if test x"$ac_file" != x-; then
15746 configure_input="$ac_file. $configure_input"
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15748 $as_echo "$as_me: creating $ac_file" >&6;}
15750 # Neutralize special characters interpreted by sed in replacement strings.
15751 case $configure_input in #(
15752 *\&* | *\|* | *\\* )
15753 ac_sed_conf_input=`$as_echo "$configure_input" |
15754 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15755 *) ac_sed_conf_input=$configure_input;;
15759 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15760 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15765 ac_dir=`$as_dirname -- "$ac_file" ||
15766 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15767 X"$ac_file" : 'X\(//\)[^/]' \| \
15768 X"$ac_file" : 'X\(//\)$' \| \
15769 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15770 $as_echo X"$ac_file" |
15771 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15775 /^X\(\/\/\)[^/].*/{
15788 as_dir="$ac_dir"; as_fn_mkdir_p
15792 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15794 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15795 # A ".." for each directory in $ac_dir_suffix.
15796 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15797 case $ac_top_builddir_sub in
15798 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15799 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15802 ac_abs_top_builddir=$ac_pwd
15803 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15804 # for backward compatibility:
15805 ac_top_builddir=$ac_top_build_prefix
15808 .) # We are building in place.
15810 ac_top_srcdir=$ac_top_builddir_sub
15811 ac_abs_top_srcdir=$ac_pwd ;;
15812 [\\/]* | ?:[\\/]* ) # Absolute name.
15813 ac_srcdir=$srcdir$ac_dir_suffix;
15814 ac_top_srcdir=$srcdir
15815 ac_abs_top_srcdir=$srcdir ;;
15816 *) # Relative name.
15817 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15818 ac_top_srcdir=$ac_top_build_prefix$srcdir
15819 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15821 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15831 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15832 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15834 ac_MKDIR_P=$MKDIR_P
15836 [\\/$]* | ?:[\\/]* ) ;;
15837 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15841 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15842 # If the template does not know about datarootdir, expand it.
15843 # FIXME: This hack should be removed a few years after 2.60.
15844 ac_datarootdir_hack=; ac_datarootdir_seen=
15855 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15856 *datarootdir*) ac_datarootdir_seen=yes;;
15857 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15859 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15861 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15862 ac_datarootdir_hack='
15863 s&@datadir@&$datadir&g
15864 s&@docdir@&$docdir&g
15865 s&@infodir@&$infodir&g
15866 s&@localedir@&$localedir&g
15867 s&@mandir@&$mandir&g
15868 s&\\\${datarootdir}&$datarootdir&g' ;;
15872 # Neutralize VPATH when `$srcdir' = `.'.
15873 # Shell code in configure.ac might set extrasub.
15874 # FIXME: do we really want to maintain this feature?
15875 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15876 ac_sed_extra="$ac_vpsub
15879 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15881 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15882 s|@configure_input@|$ac_sed_conf_input|;t t
15883 s&@top_builddir@&$ac_top_builddir_sub&;t t
15884 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15885 s&@srcdir@&$ac_srcdir&;t t
15886 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15887 s&@top_srcdir@&$ac_top_srcdir&;t t
15888 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15889 s&@builddir@&$ac_builddir&;t t
15890 s&@abs_builddir@&$ac_abs_builddir&;t t
15891 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15892 s&@INSTALL@&$ac_INSTALL&;t t
15893 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15894 $ac_datarootdir_hack
15896 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15897 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15899 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15900 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15901 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15902 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15904 which seems to be undefined. Please make sure it is defined" >&5
15905 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15906 which seems to be undefined. Please make sure it is defined" >&2;}
15908 rm -f "$ac_tmp/stdin"
15910 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15911 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15913 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15919 if test x"$ac_file" != x-; then
15921 $as_echo "/* $configure_input */" \
15922 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15923 } >"$ac_tmp/config.h" \
15924 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15925 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15926 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15927 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15930 mv "$ac_tmp/config.h" "$ac_file" \
15931 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15934 $as_echo "/* $configure_input */" \
15935 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15936 || as_fn_error $? "could not create -" "$LINENO" 5
15944 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
15947 # Prefer the file from the source tree if names are identical.
15948 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
15949 ac_source=$srcdir/$ac_source
15952 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
15953 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
15955 if test ! -r "$ac_source"; then
15956 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
15960 # Try a relative symlink, then a hard link, then a copy.
15962 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
15963 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
15965 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
15966 ln "$ac_source" "$ac_file" 2>/dev/null ||
15967 cp -p "$ac_source" "$ac_file" ||
15968 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
15971 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15972 $as_echo "$as_me: executing $ac_file commands" >&6;}
15977 case $ac_file$ac_mode in
15978 "check_win32_symlinks":C)
15979 # Links sometimes fail undetected on Mingw -
15980 # so here we detect it and warn the user
15981 for FILE in $CONFIG_LINKS
15983 # test -e works for symlinks in the MinGW console
15984 test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** link for $FILE -- please fix by hand" >&5
15985 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
15988 "src/include/pg_config.h":H)
15989 # Update timestamp for pg_config.h (see Makefile.global)
15990 echo >src/include/stamp-h
15992 "src/include/pg_config_ext.h":H)
15993 # Update timestamp for pg_config_ext.h (see Makefile.global)
15994 echo >src/include/stamp-ext-h
15996 "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
16004 ac_clean_files=$ac_clean_files_save
16006 test $ac_write_fail = 0 ||
16007 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16010 # configure is writing to config.log, and then calls config.status.
16011 # config.status does its own redirection, appending to config.log.
16012 # Unfortunately, on DOS this fails, as config.log is still kept open
16013 # by configure, so config.status won't be able to write to it; its
16014 # output is simply discarded. So we exec the FD to /dev/null,
16015 # effectively closing config.log, so it can be properly (re)opened and
16016 # appended to by config.status. When coming back to configure, we
16017 # need to make the FD available again.
16018 if test "$no_create" != yes; then
16020 ac_config_status_args=
16021 test "$silent" = yes &&
16022 ac_config_status_args="$ac_config_status_args --quiet"
16024 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16026 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16027 # would make configure fail if this is the last instruction.
16028 $ac_cs_success || as_fn_exit 1
16030 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16032 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}