2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for PostgreSQL 9.5devel.
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-2015, 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.5devel'
586 PACKAGE_STRING='PostgreSQL 9.5devel'
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
664 python_additional_libs
783 program_transform_name
796 enable_option_checking
802 enable_integer_datetimes
833 with_libedit_preferred
845 ac_precious_vars='build_alias
859 # Initialize some variables set by options.
861 ac_init_version=false
862 ac_unrecognized_opts=
864 # The variables have the same names as the options, with
865 # dashes changed to underlines.
873 program_transform_name=s,x,x,
881 # Installation directory options.
882 # These are left unexpanded so users can "make install exec_prefix=/foo"
883 # and all the variables that are supposed to be based on exec_prefix
884 # by default will actually change.
885 # Use braces instead of parens because sh, perl, etc. also accept them.
886 # (The list follows the same order as the GNU Coding Standards.)
887 bindir='${exec_prefix}/bin'
888 sbindir='${exec_prefix}/sbin'
889 libexecdir='${exec_prefix}/libexec'
890 datarootdir='${prefix}/share'
891 datadir='${datarootdir}'
892 sysconfdir='${prefix}/etc'
893 sharedstatedir='${prefix}/com'
894 localstatedir='${prefix}/var'
895 includedir='${prefix}/include'
896 oldincludedir='/usr/include'
897 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
898 infodir='${datarootdir}/info'
903 libdir='${exec_prefix}/lib'
904 localedir='${datarootdir}/locale'
905 mandir='${datarootdir}/man'
911 # If the previous option needs an argument, assign it.
912 if test -n "$ac_prev"; then
913 eval $ac_prev=\$ac_option
919 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
924 # Accept the important Cygnus configure options, so we can diagnose typos.
926 case $ac_dashdash$ac_option in
930 -bindir | --bindir | --bindi | --bind | --bin | --bi)
932 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
935 -build | --build | --buil | --bui | --bu)
936 ac_prev=build_alias ;;
937 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
938 build_alias=$ac_optarg ;;
940 -cache-file | --cache-file | --cache-fil | --cache-fi \
941 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
942 ac_prev=cache_file ;;
943 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
944 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
945 cache_file=$ac_optarg ;;
948 cache_file=config.cache ;;
950 -datadir | --datadir | --datadi | --datad)
952 -datadir=* | --datadir=* | --datadi=* | --datad=*)
953 datadir=$ac_optarg ;;
955 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
956 | --dataroo | --dataro | --datar)
957 ac_prev=datarootdir ;;
958 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
959 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
960 datarootdir=$ac_optarg ;;
962 -disable-* | --disable-*)
963 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
964 # Reject names that are not valid shell variable names.
965 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
966 as_fn_error $? "invalid feature name: $ac_useropt"
967 ac_useropt_orig=$ac_useropt
968 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
969 case $ac_user_opts in
973 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
974 ac_unrecognized_sep=', ';;
976 eval enable_$ac_useropt=no ;;
978 -docdir | --docdir | --docdi | --doc | --do)
980 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
983 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
985 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
988 -enable-* | --enable-*)
989 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
990 # Reject names that are not valid shell variable names.
991 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
992 as_fn_error $? "invalid feature name: $ac_useropt"
993 ac_useropt_orig=$ac_useropt
994 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
995 case $ac_user_opts in
999 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1000 ac_unrecognized_sep=', ';;
1002 eval enable_$ac_useropt=\$ac_optarg ;;
1004 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1005 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1006 | --exec | --exe | --ex)
1007 ac_prev=exec_prefix ;;
1008 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1009 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1010 | --exec=* | --exe=* | --ex=*)
1011 exec_prefix=$ac_optarg ;;
1013 -gas | --gas | --ga | --g)
1014 # Obsolete; use --with-gas.
1017 -help | --help | --hel | --he | -h)
1018 ac_init_help=long ;;
1019 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1020 ac_init_help=recursive ;;
1021 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1022 ac_init_help=short ;;
1024 -host | --host | --hos | --ho)
1025 ac_prev=host_alias ;;
1026 -host=* | --host=* | --hos=* | --ho=*)
1027 host_alias=$ac_optarg ;;
1029 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1031 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1033 htmldir=$ac_optarg ;;
1035 -includedir | --includedir | --includedi | --included | --include \
1036 | --includ | --inclu | --incl | --inc)
1037 ac_prev=includedir ;;
1038 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1039 | --includ=* | --inclu=* | --incl=* | --inc=*)
1040 includedir=$ac_optarg ;;
1042 -infodir | --infodir | --infodi | --infod | --info | --inf)
1044 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1045 infodir=$ac_optarg ;;
1047 -libdir | --libdir | --libdi | --libd)
1049 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1050 libdir=$ac_optarg ;;
1052 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1053 | --libexe | --libex | --libe)
1054 ac_prev=libexecdir ;;
1055 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1056 | --libexe=* | --libex=* | --libe=*)
1057 libexecdir=$ac_optarg ;;
1059 -localedir | --localedir | --localedi | --localed | --locale)
1060 ac_prev=localedir ;;
1061 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1062 localedir=$ac_optarg ;;
1064 -localstatedir | --localstatedir | --localstatedi | --localstated \
1065 | --localstate | --localstat | --localsta | --localst | --locals)
1066 ac_prev=localstatedir ;;
1067 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1068 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1069 localstatedir=$ac_optarg ;;
1071 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1073 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1074 mandir=$ac_optarg ;;
1076 -nfp | --nfp | --nf)
1077 # Obsolete; use --without-fp.
1080 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1081 | --no-cr | --no-c | -n)
1084 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1085 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1088 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1089 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1090 | --oldin | --oldi | --old | --ol | --o)
1091 ac_prev=oldincludedir ;;
1092 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1093 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1094 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1095 oldincludedir=$ac_optarg ;;
1097 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1099 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1100 prefix=$ac_optarg ;;
1102 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1103 | --program-pre | --program-pr | --program-p)
1104 ac_prev=program_prefix ;;
1105 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1106 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1107 program_prefix=$ac_optarg ;;
1109 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1110 | --program-suf | --program-su | --program-s)
1111 ac_prev=program_suffix ;;
1112 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1113 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1114 program_suffix=$ac_optarg ;;
1116 -program-transform-name | --program-transform-name \
1117 | --program-transform-nam | --program-transform-na \
1118 | --program-transform-n | --program-transform- \
1119 | --program-transform | --program-transfor \
1120 | --program-transfo | --program-transf \
1121 | --program-trans | --program-tran \
1122 | --progr-tra | --program-tr | --program-t)
1123 ac_prev=program_transform_name ;;
1124 -program-transform-name=* | --program-transform-name=* \
1125 | --program-transform-nam=* | --program-transform-na=* \
1126 | --program-transform-n=* | --program-transform-=* \
1127 | --program-transform=* | --program-transfor=* \
1128 | --program-transfo=* | --program-transf=* \
1129 | --program-trans=* | --program-tran=* \
1130 | --progr-tra=* | --program-tr=* | --program-t=*)
1131 program_transform_name=$ac_optarg ;;
1133 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1135 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1136 pdfdir=$ac_optarg ;;
1138 -psdir | --psdir | --psdi | --psd | --ps)
1140 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1143 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1144 | -silent | --silent | --silen | --sile | --sil)
1147 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1149 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1151 sbindir=$ac_optarg ;;
1153 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1154 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1155 | --sharedst | --shareds | --shared | --share | --shar \
1157 ac_prev=sharedstatedir ;;
1158 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1159 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1160 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1162 sharedstatedir=$ac_optarg ;;
1164 -site | --site | --sit)
1166 -site=* | --site=* | --sit=*)
1169 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1171 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1172 srcdir=$ac_optarg ;;
1174 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1175 | --syscon | --sysco | --sysc | --sys | --sy)
1176 ac_prev=sysconfdir ;;
1177 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1178 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1179 sysconfdir=$ac_optarg ;;
1181 -target | --target | --targe | --targ | --tar | --ta | --t)
1182 ac_prev=target_alias ;;
1183 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1184 target_alias=$ac_optarg ;;
1186 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1189 -version | --version | --versio | --versi | --vers | -V)
1190 ac_init_version=: ;;
1193 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1194 # Reject names that are not valid shell variable names.
1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1196 as_fn_error $? "invalid package name: $ac_useropt"
1197 ac_useropt_orig=$ac_useropt
1198 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1199 case $ac_user_opts in
1203 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1204 ac_unrecognized_sep=', ';;
1206 eval with_$ac_useropt=\$ac_optarg ;;
1208 -without-* | --without-*)
1209 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1210 # Reject names that are not valid shell variable names.
1211 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1212 as_fn_error $? "invalid package name: $ac_useropt"
1213 ac_useropt_orig=$ac_useropt
1214 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1215 case $ac_user_opts in
1219 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1220 ac_unrecognized_sep=', ';;
1222 eval with_$ac_useropt=no ;;
1225 # Obsolete; use --with-x.
1228 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1229 | --x-incl | --x-inc | --x-in | --x-i)
1230 ac_prev=x_includes ;;
1231 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1232 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1233 x_includes=$ac_optarg ;;
1235 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1236 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1237 ac_prev=x_libraries ;;
1238 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1239 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1240 x_libraries=$ac_optarg ;;
1242 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1243 Try \`$0 --help' for more information"
1247 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1248 # Reject names that are not valid shell variable names.
1249 case $ac_envvar in #(
1250 '' | [0-9]* | *[!_$as_cr_alnum]* )
1251 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1253 eval $ac_envvar=\$ac_optarg
1254 export $ac_envvar ;;
1257 # FIXME: should be removed in autoconf 3.0.
1258 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1259 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1260 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1261 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1267 if test -n "$ac_prev"; then
1268 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1269 as_fn_error $? "missing argument to $ac_option"
1272 if test -n "$ac_unrecognized_opts"; then
1273 case $enable_option_checking in
1275 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1276 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1280 # Check all directory arguments for consistency.
1281 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1282 datadir sysconfdir sharedstatedir localstatedir includedir \
1283 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1284 libdir localedir mandir
1286 eval ac_val=\$$ac_var
1287 # Remove trailing slashes.
1290 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1291 eval $ac_var=\$ac_val;;
1293 # Be sure to have absolute directory names.
1295 [\\/$]* | ?:[\\/]* ) continue;;
1296 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1298 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1301 # There might be people who depend on the old broken behavior: `$host'
1302 # used to hold the argument of --host etc.
1303 # FIXME: To remove some day.
1306 target=$target_alias
1308 # FIXME: To remove some day.
1309 if test "x$host_alias" != x; then
1310 if test "x$build_alias" = x; then
1311 cross_compiling=maybe
1312 elif test "x$build_alias" != "x$host_alias"; then
1318 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1320 test "$silent" = yes && exec 6>/dev/null
1323 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1324 ac_ls_di=`ls -di .` &&
1325 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1326 as_fn_error $? "working directory cannot be determined"
1327 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1328 as_fn_error $? "pwd does not report name of working directory"
1331 # Find the source files, if location was not specified.
1332 if test -z "$srcdir"; then
1333 ac_srcdir_defaulted=yes
1334 # Try the directory containing this script, then the parent directory.
1335 ac_confdir=`$as_dirname -- "$as_myself" ||
1336 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1337 X"$as_myself" : 'X\(//\)[^/]' \| \
1338 X"$as_myself" : 'X\(//\)$' \| \
1339 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1340 $as_echo X"$as_myself" |
1341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1359 if test ! -r "$srcdir/$ac_unique_file"; then
1363 ac_srcdir_defaulted=no
1365 if test ! -r "$srcdir/$ac_unique_file"; then
1366 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1367 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1369 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1371 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1373 # When building in place, set srcdir=.
1374 if test "$ac_abs_confdir" = "$ac_pwd"; then
1377 # Remove unnecessary trailing slashes from srcdir.
1378 # Double slashes in file names in object file debugging info
1379 # mess up M-x gdb in Emacs.
1381 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1383 for ac_var in $ac_precious_vars; do
1384 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_env_${ac_var}_value=\$${ac_var}
1386 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1387 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1391 # Report the --help message.
1393 if test "$ac_init_help" = "long"; then
1394 # Omit some internal or obsolete options to make the list less imposing.
1395 # This message is too long to be a string in the A/UX 3.1 sh.
1397 \`configure' configures PostgreSQL 9.5devel to adapt to many kinds of systems.
1399 Usage: $0 [OPTION]... [VAR=VALUE]...
1401 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1402 VAR=VALUE. See below for descriptions of some of the useful variables.
1404 Defaults for the options are specified in brackets.
1407 -h, --help display this help and exit
1408 --help=short display options specific to this package
1409 --help=recursive display the short help of all the included packages
1410 -V, --version display version information and exit
1411 -q, --quiet, --silent do not print \`checking ...' messages
1412 --cache-file=FILE cache test results in FILE [disabled]
1413 -C, --config-cache alias for \`--cache-file=config.cache'
1414 -n, --no-create do not create output files
1415 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1417 Installation directories:
1418 --prefix=PREFIX install architecture-independent files in PREFIX
1419 [$ac_default_prefix]
1420 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1423 By default, \`make install' will install all the files in
1424 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1425 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1426 for instance \`--prefix=\$HOME'.
1428 For better control, use the options below.
1430 Fine tuning of the installation directories:
1431 --bindir=DIR user executables [EPREFIX/bin]
1432 --sbindir=DIR system admin executables [EPREFIX/sbin]
1433 --libexecdir=DIR program executables [EPREFIX/libexec]
1434 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1435 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1436 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1437 --libdir=DIR object code libraries [EPREFIX/lib]
1438 --includedir=DIR C header files [PREFIX/include]
1439 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1440 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1441 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1442 --infodir=DIR info documentation [DATAROOTDIR/info]
1443 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1444 --mandir=DIR man documentation [DATAROOTDIR/man]
1445 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1446 --htmldir=DIR html documentation [DOCDIR]
1447 --dvidir=DIR dvi documentation [DOCDIR]
1448 --pdfdir=DIR pdf documentation [DOCDIR]
1449 --psdir=DIR ps documentation [DOCDIR]
1455 --build=BUILD configure for building on BUILD [guessed]
1456 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1460 if test -n "$ac_init_help"; then
1461 case $ac_init_help in
1462 short | recursive ) echo "Configuration of PostgreSQL 9.5devel:";;
1467 --disable-option-checking ignore unrecognized --enable/--with options
1468 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1469 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1470 --disable-integer-datetimes
1471 disable 64-bit integer date/time support
1472 --enable-nls[=LANGUAGES]
1473 enable Native Language Support
1474 --disable-rpath do not embed shared library search path in
1476 --disable-spinlocks do not use spinlocks
1477 --disable-atomics do not use atomic operations
1478 --enable-debug build with debugging symbols (-g)
1479 --enable-profiling build with profiling enabled
1480 --enable-coverage build with coverage testing instrumentation
1481 --enable-dtrace build with DTrace support
1482 --enable-tap-tests enable TAP tests (requires Perl and IPC::Run)
1483 --enable-depend turn on automatic dependency tracking
1484 --enable-cassert enable assertion checks (for debugging)
1485 --disable-thread-safety disable thread-safety in client libraries
1486 --disable-largefile omit support for large files
1487 --disable-float4-byval disable float4 passed by value
1488 --disable-float8-byval disable float8 passed by value
1491 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1492 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1493 --with-extra-version=STRING
1494 append STRING to version
1495 --with-template=NAME override operating system template
1496 --with-includes=DIRS look for additional header files in DIRS
1497 --with-libraries=DIRS look for additional libraries in DIRS
1498 --with-libs=DIRS alternative spelling of --with-libraries
1499 --with-pgport=PORTNUM set default port number [5432]
1500 --with-blocksize=BLOCKSIZE
1501 set table block size in kB [8]
1502 --with-segsize=SEGSIZE set table segment size in GB [1]
1503 --with-wal-blocksize=BLOCKSIZE
1504 set WAL block size in kB [8]
1505 --with-wal-segsize=SEGSIZE
1506 set WAL segment size in MB [16]
1507 --with-CC=CMD set compiler (deprecated)
1508 --with-tcl build Tcl modules (PL/Tcl)
1509 --with-tclconfig=DIR tclConfig.sh is in DIR
1510 --with-perl build Perl modules (PL/Perl)
1511 --with-python build Python modules (PL/Python)
1512 --with-gssapi build with GSSAPI support
1513 --with-krb-srvnam=NAME default service principal name in Kerberos (GSSAPI)
1515 --with-pam build with PAM support
1516 --with-ldap build with LDAP support
1517 --with-bonjour build with Bonjour support
1518 --with-openssl build with OpenSSL support
1519 --with-selinux build with SELinux support
1520 --without-readline do not use GNU Readline nor BSD Libedit for editing
1521 --with-libedit-preferred
1522 prefer BSD Libedit over GNU Readline
1523 --with-uuid=LIB build contrib/uuid-ossp using LIB (bsd,e2fs,ossp)
1524 --with-ossp-uuid obsolete spelling of --with-uuid=ossp
1525 --with-libxml build with XML support
1526 --with-libxslt use XSLT support when building contrib/xml2
1527 --with-system-tzdata=DIR
1528 use system time zone data in DIR
1529 --without-zlib do not use Zlib
1530 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1532 Some influential environment variables:
1533 CC C compiler command
1534 CFLAGS C compiler flags
1535 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1536 nonstandard directory <lib dir>
1537 LIBS libraries to pass to the linker, e.g. -l<library>
1538 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1539 you have headers in a nonstandard directory <include dir>
1541 LDFLAGS_EX extra linker flags for linking executables only
1542 LDFLAGS_SL extra linker flags for linking shared libraries only
1544 location of DocBook stylesheets
1546 Use these variables to override the choices made by `configure' or to help
1547 it to find libraries and programs with nonstandard names/locations.
1549 Report bugs to <pgsql-bugs@postgresql.org>.
1554 if test "$ac_init_help" = "recursive"; then
1555 # If there are subdirs, report their specific --help.
1556 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1557 test -d "$ac_dir" ||
1558 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1563 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1566 # A ".." for each directory in $ac_dir_suffix.
1567 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1568 case $ac_top_builddir_sub in
1569 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1570 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1573 ac_abs_top_builddir=$ac_pwd
1574 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1575 # for backward compatibility:
1576 ac_top_builddir=$ac_top_build_prefix
1579 .) # We are building in place.
1581 ac_top_srcdir=$ac_top_builddir_sub
1582 ac_abs_top_srcdir=$ac_pwd ;;
1583 [\\/]* | ?:[\\/]* ) # Absolute name.
1584 ac_srcdir=$srcdir$ac_dir_suffix;
1585 ac_top_srcdir=$srcdir
1586 ac_abs_top_srcdir=$srcdir ;;
1588 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1589 ac_top_srcdir=$ac_top_build_prefix$srcdir
1590 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1592 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1594 cd "$ac_dir" || { ac_status=$?; continue; }
1595 # Check for guested configure.
1596 if test -f "$ac_srcdir/configure.gnu"; then
1598 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1599 elif test -f "$ac_srcdir/configure"; then
1601 $SHELL "$ac_srcdir/configure" --help=recursive
1603 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1605 cd "$ac_pwd" || { ac_status=$?; break; }
1609 test -n "$ac_init_help" && exit $ac_status
1610 if $ac_init_version; then
1612 PostgreSQL configure 9.5devel
1613 generated by GNU Autoconf 2.69
1615 Copyright (C) 2012 Free Software Foundation, Inc.
1616 This configure script is free software; the Free Software Foundation
1617 gives unlimited permission to copy, distribute and modify it.
1619 Copyright (c) 1996-2015, PostgreSQL Global Development Group
1624 ## ------------------------ ##
1625 ## Autoconf initialization. ##
1626 ## ------------------------ ##
1628 # ac_fn_c_try_compile LINENO
1629 # --------------------------
1630 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1631 ac_fn_c_try_compile ()
1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634 rm -f conftest.$ac_objext
1635 if { { ac_try="$ac_compile"
1637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1638 *) ac_try_echo=$ac_try;;
1640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641 $as_echo "$ac_try_echo"; } >&5
1642 (eval "$ac_compile") 2>conftest.err
1644 if test -s conftest.err; then
1645 grep -v '^ *+' conftest.err >conftest.er1
1646 cat conftest.er1 >&5
1647 mv -f conftest.er1 conftest.err
1649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650 test $ac_status = 0; } && {
1651 test -z "$ac_c_werror_flag" ||
1652 test ! -s conftest.err
1653 } && test -s conftest.$ac_objext; then :
1656 $as_echo "$as_me: failed program was:" >&5
1657 sed 's/^/| /' conftest.$ac_ext >&5
1661 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1662 as_fn_set_status $ac_retval
1664 } # ac_fn_c_try_compile
1666 # ac_fn_c_try_link LINENO
1667 # -----------------------
1668 # Try to link conftest.$ac_ext, and return whether this succeeded.
1671 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672 rm -f conftest.$ac_objext conftest$ac_exeext
1673 if { { ac_try="$ac_link"
1675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676 *) ac_try_echo=$ac_try;;
1678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679 $as_echo "$ac_try_echo"; } >&5
1680 (eval "$ac_link") 2>conftest.err
1682 if test -s conftest.err; then
1683 grep -v '^ *+' conftest.err >conftest.er1
1684 cat conftest.er1 >&5
1685 mv -f conftest.er1 conftest.err
1687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1688 test $ac_status = 0; } && {
1689 test -z "$ac_c_werror_flag" ||
1690 test ! -s conftest.err
1691 } && test -s conftest$ac_exeext && {
1692 test "$cross_compiling" = yes ||
1693 test -x conftest$ac_exeext
1697 $as_echo "$as_me: failed program was:" >&5
1698 sed 's/^/| /' conftest.$ac_ext >&5
1702 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1703 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1704 # interfere with the next link command; also delete a directory that is
1705 # left behind by Apple's compiler. We do this before executing the actions.
1706 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1708 as_fn_set_status $ac_retval
1710 } # ac_fn_c_try_link
1712 # ac_fn_c_try_cpp LINENO
1713 # ----------------------
1714 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 if { { ac_try="$ac_cpp conftest.$ac_ext"
1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721 *) ac_try_echo=$ac_try;;
1723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724 $as_echo "$ac_try_echo"; } >&5
1725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1727 if test -s conftest.err; then
1728 grep -v '^ *+' conftest.err >conftest.er1
1729 cat conftest.er1 >&5
1730 mv -f conftest.er1 conftest.err
1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; } > conftest.i && {
1734 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1735 test ! -s conftest.err
1739 $as_echo "$as_me: failed program was:" >&5
1740 sed 's/^/| /' conftest.$ac_ext >&5
1744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745 as_fn_set_status $ac_retval
1749 # ac_fn_c_check_func LINENO FUNC VAR
1750 # ----------------------------------
1751 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1752 ac_fn_c_check_func ()
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1756 $as_echo_n "checking for $2... " >&6; }
1757 if eval \${$3+:} false; then :
1758 $as_echo_n "(cached) " >&6
1760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1761 /* end confdefs.h. */
1762 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1764 #define $2 innocuous_$2
1766 /* System header to define __stub macros and hopefully few prototypes,
1767 which can conflict with char $2 (); below.
1768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1769 <limits.h> exists even on freestanding compilers. */
1772 # include <limits.h>
1774 # include <assert.h>
1779 /* Override any GCC internal prototype to avoid an error.
1780 Use char because int might match the return type of a GCC
1781 builtin and then its argument prototype would still apply. */
1786 /* The GNU C library defines this for functions which it implements
1787 to always fail with ENOSYS. Some functions are actually named
1788 something starting with __ and the normal name is an alias. */
1789 #if defined __stub_$2 || defined __stub___$2
1801 if ac_fn_c_try_link "$LINENO"; then :
1806 rm -f core conftest.err conftest.$ac_objext \
1807 conftest$ac_exeext conftest.$ac_ext
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1811 $as_echo "$ac_res" >&6; }
1812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814 } # ac_fn_c_check_func
1816 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1817 # -------------------------------------------------------
1818 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1819 # the include files in INCLUDES and setting the cache variable VAR
1821 ac_fn_c_check_header_mongrel ()
1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824 if eval \${$3+:} false; then :
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1826 $as_echo_n "checking for $2... " >&6; }
1827 if eval \${$3+:} false; then :
1828 $as_echo_n "(cached) " >&6
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1832 $as_echo "$ac_res" >&6; }
1834 # Is the header compilable?
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1836 $as_echo_n "checking $2 usability... " >&6; }
1837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838 /* end confdefs.h. */
1842 if ac_fn_c_try_compile "$LINENO"; then :
1843 ac_header_compiler=yes
1845 ac_header_compiler=no
1847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1849 $as_echo "$ac_header_compiler" >&6; }
1851 # Is the header present?
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1853 $as_echo_n "checking $2 presence... " >&6; }
1854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1855 /* end confdefs.h. */
1858 if ac_fn_c_try_cpp "$LINENO"; then :
1859 ac_header_preproc=yes
1861 ac_header_preproc=no
1863 rm -f conftest.err conftest.i conftest.$ac_ext
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1865 $as_echo "$ac_header_preproc" >&6; }
1867 # So? What about this header?
1868 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1871 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1873 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1877 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1879 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1881 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1883 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1885 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1886 ( $as_echo "## ---------------------------------------- ##
1887 ## Report this to pgsql-bugs@postgresql.org ##
1888 ## ---------------------------------------- ##"
1889 ) | sed "s/^/$as_me: WARNING: /" >&2
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1893 $as_echo_n "checking for $2... " >&6; }
1894 if eval \${$3+:} false; then :
1895 $as_echo_n "(cached) " >&6
1897 eval "$3=\$ac_header_compiler"
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1901 $as_echo "$ac_res" >&6; }
1903 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905 } # ac_fn_c_check_header_mongrel
1907 # ac_fn_c_try_run LINENO
1908 # ----------------------
1909 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1910 # that executables *can* be run.
1913 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914 if { { ac_try="$ac_link"
1916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1917 *) ac_try_echo=$ac_try;;
1919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1920 $as_echo "$ac_try_echo"; } >&5
1921 (eval "$ac_link") 2>&5
1923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1924 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1925 { { case "(($ac_try" in
1926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1927 *) ac_try_echo=$ac_try;;
1929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1930 $as_echo "$ac_try_echo"; } >&5
1931 (eval "$ac_try") 2>&5
1933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1934 test $ac_status = 0; }; }; then :
1937 $as_echo "$as_me: program exited with status $ac_status" >&5
1938 $as_echo "$as_me: failed program was:" >&5
1939 sed 's/^/| /' conftest.$ac_ext >&5
1941 ac_retval=$ac_status
1943 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1944 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1945 as_fn_set_status $ac_retval
1949 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1950 # -------------------------------------------------------
1951 # Tests whether HEADER exists and can be compiled using the include files in
1952 # INCLUDES, setting the cache variable VAR accordingly.
1953 ac_fn_c_check_header_compile ()
1955 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1957 $as_echo_n "checking for $2... " >&6; }
1958 if eval \${$3+:} false; then :
1959 $as_echo_n "(cached) " >&6
1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962 /* end confdefs.h. */
1966 if ac_fn_c_try_compile "$LINENO"; then :
1971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1975 $as_echo "$ac_res" >&6; }
1976 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1978 } # ac_fn_c_check_header_compile
1980 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1981 # ----------------------------------------------------
1982 # Tries to find if the field MEMBER exists in type AGGR, after including
1983 # INCLUDES, setting cache variable VAR accordingly.
1984 ac_fn_c_check_member ()
1986 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1988 $as_echo_n "checking for $2.$3... " >&6; }
1989 if eval \${$4+:} false; then :
1990 $as_echo_n "(cached) " >&6
1992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1993 /* end confdefs.h. */
2005 if ac_fn_c_try_compile "$LINENO"; then :
2008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009 /* end confdefs.h. */
2015 if (sizeof ac_aggr.$3)
2021 if ac_fn_c_try_compile "$LINENO"; then :
2026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2032 $as_echo "$ac_res" >&6; }
2033 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2035 } # ac_fn_c_check_member
2037 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2038 # -------------------------------------------
2039 # Tests whether TYPE exists after having included INCLUDES, setting cache
2040 # variable VAR accordingly.
2041 ac_fn_c_check_type ()
2043 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2045 $as_echo_n "checking for $2... " >&6; }
2046 if eval \${$3+:} false; then :
2047 $as_echo_n "(cached) " >&6
2050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051 /* end confdefs.h. */
2062 if ac_fn_c_try_compile "$LINENO"; then :
2063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2064 /* end confdefs.h. */
2075 if ac_fn_c_try_compile "$LINENO"; then :
2080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2086 $as_echo "$ac_res" >&6; }
2087 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2089 } # ac_fn_c_check_type
2091 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2092 # --------------------------------------------
2093 # Tries to find the compile-time value of EXPR in a program that includes
2094 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2096 ac_fn_c_compute_int ()
2098 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2099 if test "$cross_compiling" = yes; then
2100 # Depending upon the size, compute the lo and hi bounds.
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h. */
2107 static int test_array [1 - 2 * !(($2) >= 0)];
2109 return test_array [0];
2115 if ac_fn_c_try_compile "$LINENO"; then :
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h. */
2124 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2126 return test_array [0];
2132 if ac_fn_c_try_compile "$LINENO"; then :
2133 ac_hi=$ac_mid; break
2135 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2136 if test $ac_lo -le $ac_mid; then
2140 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2146 /* end confdefs.h. */
2151 static int test_array [1 - 2 * !(($2) < 0)];
2153 return test_array [0];
2159 if ac_fn_c_try_compile "$LINENO"; then :
2162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2163 /* end confdefs.h. */
2168 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2170 return test_array [0];
2176 if ac_fn_c_try_compile "$LINENO"; then :
2177 ac_lo=$ac_mid; break
2179 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2180 if test $ac_mid -le $ac_hi; then
2184 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2194 # Binary search between lo and hi bounds.
2195 while test "x$ac_lo" != "x$ac_hi"; do
2196 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2198 /* end confdefs.h. */
2203 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2205 return test_array [0];
2211 if ac_fn_c_try_compile "$LINENO"; then :
2214 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2219 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2224 /* end confdefs.h. */
2226 static long int longval () { return $2; }
2227 static unsigned long int ulongval () { return $2; }
2234 FILE *f = fopen ("conftest.val", "w");
2239 long int i = longval ();
2242 fprintf (f, "%ld", i);
2246 unsigned long int i = ulongval ();
2249 fprintf (f, "%lu", i);
2251 /* Do not output a trailing newline, as this causes \r\n confusion
2252 on some platforms. */
2253 return ferror (f) || fclose (f) != 0;
2259 if ac_fn_c_try_run "$LINENO"; then :
2260 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2264 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2265 conftest.$ac_objext conftest.beam conftest.$ac_ext
2269 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2270 as_fn_set_status $ac_retval
2272 } # ac_fn_c_compute_int
2274 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2275 # ---------------------------------------------
2276 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2278 ac_fn_c_check_decl ()
2280 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2281 as_decl_name=`echo $2|sed 's/ *(.*//'`
2282 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2284 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2285 if eval \${$3+:} false; then :
2286 $as_echo_n "(cached) " >&6
2288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2289 /* end confdefs.h. */
2294 #ifndef $as_decl_name
2296 (void) $as_decl_use;
2298 (void) $as_decl_name;
2306 if ac_fn_c_try_compile "$LINENO"; then :
2311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2315 $as_echo "$ac_res" >&6; }
2316 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2318 } # ac_fn_c_check_decl
2319 cat >config.log <<_ACEOF
2320 This file contains any messages produced by compilers while
2321 running configure, to aid debugging if configure makes a mistake.
2323 It was created by PostgreSQL $as_me 9.5devel, which was
2324 generated by GNU Autoconf 2.69. Invocation command line was
2336 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2337 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2338 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2339 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2340 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2342 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2343 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2345 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2346 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2347 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2348 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2349 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2350 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2351 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359 test -z "$as_dir" && as_dir=.
2360 $as_echo "PATH: $as_dir"
2376 # Keep a trace of the command line.
2377 # Strip out --no-create and --no-recursion so they do not pile up.
2378 # Strip out --silent because we don't want to record it for future runs.
2379 # Also quote any args containing shell meta-characters.
2380 # Make two passes to allow for proper duplicate-argument suppression.
2384 ac_must_keep_next=false
2390 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2391 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2392 | -silent | --silent | --silen | --sile | --sil)
2395 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2398 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2400 as_fn_append ac_configure_args1 " '$ac_arg'"
2401 if test $ac_must_keep_next = true; then
2402 ac_must_keep_next=false # Got value, back to normal.
2405 *=* | --config-cache | -C | -disable-* | --disable-* \
2406 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2407 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2408 | -with-* | --with-* | -without-* | --without-* | --x)
2409 case "$ac_configure_args0 " in
2410 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2413 -* ) ac_must_keep_next=true ;;
2416 as_fn_append ac_configure_args " '$ac_arg'"
2421 { ac_configure_args0=; unset ac_configure_args0;}
2422 { ac_configure_args1=; unset ac_configure_args1;}
2424 # When interrupted or exit'd, cleanup temporary files, and complete
2425 # config.log. We remove comments because anyway the quotes in there
2426 # would cause problems or look ugly.
2427 # WARNING: Use '\'' to represent an apostrophe within the trap.
2428 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2429 trap 'exit_status=$?
2430 # Save into config.log some information that might help in debugging.
2434 $as_echo "## ---------------- ##
2435 ## Cache variables. ##
2436 ## ---------------- ##"
2438 # The following way of writing the cache mishandles newlines in values,
2440 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2441 eval ac_val=\$$ac_var
2445 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2446 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2449 _ | IFS | as_nl) ;; #(
2450 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2451 *) { eval $ac_var=; unset $ac_var;} ;;
2456 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2457 *${as_nl}ac_space=\ *)
2459 "s/'\''/'\''\\\\'\'''\''/g;
2460 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2463 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2470 $as_echo "## ----------------- ##
2471 ## Output variables. ##
2472 ## ----------------- ##"
2474 for ac_var in $ac_subst_vars
2476 eval ac_val=\$$ac_var
2478 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2480 $as_echo "$ac_var='\''$ac_val'\''"
2484 if test -n "$ac_subst_files"; then
2485 $as_echo "## ------------------- ##
2486 ## File substitutions. ##
2487 ## ------------------- ##"
2489 for ac_var in $ac_subst_files
2491 eval ac_val=\$$ac_var
2493 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2495 $as_echo "$ac_var='\''$ac_val'\''"
2500 if test -s confdefs.h; then
2501 $as_echo "## ----------- ##
2508 test "$ac_signal" != 0 &&
2509 $as_echo "$as_me: caught signal $ac_signal"
2510 $as_echo "$as_me: exit $exit_status"
2512 rm -f core *.core core.conftest.* &&
2513 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2516 for ac_signal in 1 2 13 15; do
2517 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2521 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2522 rm -f -r conftest* confdefs.h
2524 $as_echo "/* confdefs.h */" > confdefs.h
2526 # Predefined preprocessor variables.
2528 cat >>confdefs.h <<_ACEOF
2529 #define PACKAGE_NAME "$PACKAGE_NAME"
2532 cat >>confdefs.h <<_ACEOF
2533 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2536 cat >>confdefs.h <<_ACEOF
2537 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2540 cat >>confdefs.h <<_ACEOF
2541 #define PACKAGE_STRING "$PACKAGE_STRING"
2544 cat >>confdefs.h <<_ACEOF
2545 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2548 cat >>confdefs.h <<_ACEOF
2549 #define PACKAGE_URL "$PACKAGE_URL"
2553 # Let the site file select an alternate cache file if it wants to.
2554 # Prefer an explicitly selected file to automatically selected ones.
2557 if test -n "$CONFIG_SITE"; then
2558 # We do not want a PATH search for config.site.
2559 case $CONFIG_SITE in #((
2560 -*) ac_site_file1=./$CONFIG_SITE;;
2561 */*) ac_site_file1=$CONFIG_SITE;;
2562 *) ac_site_file1=./$CONFIG_SITE;;
2564 elif test "x$prefix" != xNONE; then
2565 ac_site_file1=$prefix/share/config.site
2566 ac_site_file2=$prefix/etc/config.site
2568 ac_site_file1=$ac_default_prefix/share/config.site
2569 ac_site_file2=$ac_default_prefix/etc/config.site
2571 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2573 test "x$ac_site_file" = xNONE && continue
2574 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2576 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2577 sed 's/^/| /' "$ac_site_file" >&5
2579 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2581 as_fn_error $? "failed to load site script $ac_site_file
2582 See \`config.log' for more details" "$LINENO" 5; }
2586 if test -r "$cache_file"; then
2587 # Some versions of bash will fail to source /dev/null (special files
2588 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2589 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2591 $as_echo "$as_me: loading cache $cache_file" >&6;}
2593 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2594 *) . "./$cache_file";;
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2599 $as_echo "$as_me: creating cache $cache_file" >&6;}
2603 # Check that the precious variables saved in the cache have kept the same
2605 ac_cache_corrupted=false
2606 for ac_var in $ac_precious_vars; do
2607 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2608 eval ac_new_set=\$ac_env_${ac_var}_set
2609 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2610 eval ac_new_val=\$ac_env_${ac_var}_value
2611 case $ac_old_set,$ac_new_set in
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2614 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2615 ac_cache_corrupted=: ;;
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2618 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2619 ac_cache_corrupted=: ;;
2622 if test "x$ac_old_val" != "x$ac_new_val"; then
2623 # differences in whitespace do not lead to failure.
2624 ac_old_val_w=`echo x $ac_old_val`
2625 ac_new_val_w=`echo x $ac_new_val`
2626 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2628 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2629 ac_cache_corrupted=:
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2632 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2633 eval $ac_var=\$ac_old_val
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2636 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2638 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2641 # Pass precious variables to config.status.
2642 if test "$ac_new_set" = set; then
2644 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2645 *) ac_arg=$ac_var=$ac_new_val ;;
2647 case " $ac_configure_args " in
2648 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2649 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2653 if $ac_cache_corrupted; then
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2655 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2657 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2658 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2660 ## -------------------- ##
2661 ## Main body of script. ##
2662 ## -------------------- ##
2665 ac_cpp='$CPP $CPPFLAGS'
2666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2676 for ac_dir in config "$srcdir"/config; do
2677 if test -f "$ac_dir/install-sh"; then
2679 ac_install_sh="$ac_aux_dir/install-sh -c"
2681 elif test -f "$ac_dir/install.sh"; then
2683 ac_install_sh="$ac_aux_dir/install.sh -c"
2685 elif test -f "$ac_dir/shtool"; then
2687 ac_install_sh="$ac_aux_dir/shtool install -c"
2691 if test -z "$ac_aux_dir"; then
2692 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2695 # These three variables are undocumented and unsupported,
2696 # and are intended to be withdrawn in a future Autoconf release.
2697 # They can cause serious problems if a builder's source tree is in a directory
2698 # whose full name contains unusual characters.
2699 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2700 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2701 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2705 configure_args=$ac_configure_args
2708 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`
2711 cat >>confdefs.h <<_ACEOF
2712 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2719 # Check whether --with-extra-version was given.
2720 if test "${with_extra_version+set}" = set; then :
2721 withval=$with_extra_version;
2724 as_fn_error $? "argument required for --with-extra-version option" "$LINENO" 5
2727 as_fn_error $? "argument required for --with-extra-version option" "$LINENO" 5
2730 PG_VERSION="$PACKAGE_VERSION$withval"
2735 PG_VERSION="$PACKAGE_VERSION"
2740 cat >>confdefs.h <<_ACEOF
2741 #define PG_VERSION "$PG_VERSION"
2745 # Make sure we can run config.sub.
2746 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2747 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2750 $as_echo_n "checking build system type... " >&6; }
2751 if ${ac_cv_build+:} false; then :
2752 $as_echo_n "(cached) " >&6
2754 ac_build_alias=$build_alias
2755 test "x$ac_build_alias" = x &&
2756 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2757 test "x$ac_build_alias" = x &&
2758 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2759 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2760 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2764 $as_echo "$ac_cv_build" >&6; }
2765 case $ac_cv_build in
2767 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2770 ac_save_IFS=$IFS; IFS='-'
2776 # Remember, the first character of IFS is used to create $*,
2777 # except with old shells:
2780 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2784 $as_echo_n "checking host system type... " >&6; }
2785 if ${ac_cv_host+:} false; then :
2786 $as_echo_n "(cached) " >&6
2788 if test "x$host_alias" = x; then
2789 ac_cv_host=$ac_cv_build
2791 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2792 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2797 $as_echo "$ac_cv_host" >&6; }
2800 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2803 ac_save_IFS=$IFS; IFS='-'
2809 # Remember, the first character of IFS is used to create $*,
2810 # except with old shells:
2813 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which template to use" >&5
2819 $as_echo_n "checking which template to use... " >&6; }
2824 # Check whether --with-template was given.
2825 if test "${with_template+set}" = set; then :
2826 withval=$with_template;
2829 as_fn_error $? "argument required for --with-template option" "$LINENO" 5
2832 as_fn_error $? "argument required for --with-template option" "$LINENO" 5
2837 list) echo; ls "$srcdir/src/template"; exit;;
2838 *) if test -f "$srcdir/src/template/$with_template" ; then
2841 as_fn_error $? "'$withval' is not a valid template name. Use 'list' for a list." "$LINENO" 5
2850 # --with-template not given
2853 aix*) template=aix ;;
2854 cygwin*) template=cygwin ;;
2855 darwin*) template=darwin ;;
2856 dragonfly*) template=netbsd ;;
2857 freebsd*) template=freebsd ;;
2858 hpux*) template=hpux ;;
2859 linux*|gnu*|k*bsd*-gnu)
2861 mingw*) template=win32 ;;
2862 netbsd*) template=netbsd ;;
2863 openbsd*) template=openbsd ;;
2864 sco*) template=sco ;;
2865 solaris*) template=solaris ;;
2866 sysv5*) template=unixware ;;
2869 if test x"$template" = x"" ; then
2871 *******************************************************************
2872 PostgreSQL has apparently not been ported to your platform yet.
2873 To try a manual configuration, look into the src/template directory
2874 for a similar platform and use the '--with-template=' option.
2876 Please also contact <pgsql-bugs@postgresql.org> to see about
2877 rectifying this. Include the above 'checking host system type...'
2879 *******************************************************************
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $template" >&5
2889 $as_echo "$template" >&6; }
2894 # Initialize default assumption that we do not need separate assembly code
2895 # for TAS (test-and-set). This can be overridden by the template file
2896 # when it's executed.
2903 ## Command line options
2907 # Add non-standard directories to the include path
2912 # Check whether --with-includes was given.
2913 if test "${with_includes+set}" = set; then :
2914 withval=$with_includes;
2917 as_fn_error $? "argument required for --with-includes option" "$LINENO" 5
2920 as_fn_error $? "argument required for --with-includes option" "$LINENO" 5
2933 # Add non-standard directories to the library search path
2938 # Check whether --with-libraries was given.
2939 if test "${with_libraries+set}" = set; then :
2940 withval=$with_libraries;
2943 as_fn_error $? "argument required for --with-libraries option" "$LINENO" 5
2946 as_fn_error $? "argument required for --with-libraries option" "$LINENO" 5
2949 LIBRARY_DIRS=$withval
2960 # Check whether --with-libs was given.
2961 if test "${with_libs+set}" = set; then :
2965 as_fn_error $? "argument required for --with-libs option" "$LINENO" 5
2968 as_fn_error $? "argument required for --with-libs option" "$LINENO" 5
2971 LIBRARY_DIRS=$withval
2981 # 64-bit integer date/time storage: enabled by default.
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with 64-bit integer date/time support" >&5
2984 $as_echo_n "checking whether to build with 64-bit integer date/time support... " >&6; }
2987 # Check whether --enable-integer-datetimes was given.
2988 if test "${enable_integer_datetimes+set}" = set; then :
2989 enableval=$enable_integer_datetimes;
2993 $as_echo "#define USE_INTEGER_DATETIMES 1" >>confdefs.h
3000 as_fn_error $? "no argument expected for --enable-integer-datetimes option" "$LINENO" 5
3005 enable_integer_datetimes=yes
3007 $as_echo "#define USE_INTEGER_DATETIMES 1" >>confdefs.h
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_integer_datetimes" >&5
3013 $as_echo "$enable_integer_datetimes" >&6; }
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is wanted" >&5
3020 $as_echo_n "checking whether NLS is wanted... " >&6; }
3023 # Check whether --enable-nls was given.
3024 if test "${enable_nls+set}" = set; then :
3025 enableval=$enable_nls;
3035 WANTED_LANGUAGES=$enableval
3045 if test "$enable_nls" = yes; then
3047 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nls" >&5
3052 $as_echo "$enable_nls" >&6; }
3057 # Default port number (--with-pgport), default 5432
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default port number" >&5
3060 $as_echo_n "checking for default port number... " >&6; }
3064 # Check whether --with-pgport was given.
3065 if test "${with_pgport+set}" = set; then :
3066 withval=$with_pgport;
3069 as_fn_error $? "argument required for --with-pgport option" "$LINENO" 5
3072 as_fn_error $? "argument required for --with-pgport option" "$LINENO" 5
3075 default_port=$withval
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $default_port" >&5
3085 $as_echo "$default_port" >&6; }
3086 # Need both of these because some places want an integer and some a string
3088 cat >>confdefs.h <<_ACEOF
3089 #define DEF_PGPORT ${default_port}
3093 cat >>confdefs.h <<_ACEOF
3094 #define DEF_PGPORT_STR "${default_port}"
3100 # '-rpath'-like feature can be disabled
3104 # Check whether --enable-rpath was given.
3105 if test "${enable_rpath+set}" = set; then :
3106 enableval=$enable_rpath;
3115 as_fn_error $? "no argument expected for --enable-rpath option" "$LINENO" 5
3132 # Check whether --enable-spinlocks was given.
3133 if test "${enable_spinlocks+set}" = set; then :
3134 enableval=$enable_spinlocks;
3143 as_fn_error $? "no argument expected for --enable-spinlocks option" "$LINENO" 5
3148 enable_spinlocks=yes
3159 # Check whether --enable-atomics was given.
3160 if test "${enable_atomics+set}" = set; then :
3161 enableval=$enable_atomics;
3170 as_fn_error $? "no argument expected for --enable-atomics option" "$LINENO" 5
3182 # --enable-debug adds -g to compiler flags
3186 # Check whether --enable-debug was given.
3187 if test "${enable_debug+set}" = set; then :
3188 enableval=$enable_debug;
3197 as_fn_error $? "no argument expected for --enable-debug option" "$LINENO" 5
3210 # --enable-profiling enables gcc profiling
3214 # Check whether --enable-profiling was given.
3215 if test "${enable_profiling+set}" = set; then :
3216 enableval=$enable_profiling;
3225 as_fn_error $? "no argument expected for --enable-profiling option" "$LINENO" 5
3237 # --enable-coverage enables generation of code coverage metrics with gcov
3241 # Check whether --enable-coverage was given.
3242 if test "${enable_coverage+set}" = set; then :
3243 enableval=$enable_coverage;
3248 # Extract the first word of "$ac_prog", so it can be a program name with args.
3249 set dummy $ac_prog; ac_word=$2
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3251 $as_echo_n "checking for $ac_word... " >&6; }
3252 if ${ac_cv_prog_GCOV+:} false; then :
3253 $as_echo_n "(cached) " >&6
3255 if test -n "$GCOV"; then
3256 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
3258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262 test -z "$as_dir" && as_dir=.
3263 for ac_exec_ext in '' $ac_executable_extensions; do
3264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3265 ac_cv_prog_GCOV="$ac_prog"
3266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3275 GCOV=$ac_cv_prog_GCOV
3276 if test -n "$GCOV"; then
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3278 $as_echo "$GCOV" >&6; }
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3281 $as_echo "no" >&6; }
3285 test -n "$GCOV" && break
3288 if test -z "$GCOV"; then
3289 as_fn_error $? "gcov not found" "$LINENO" 5
3293 # Extract the first word of "$ac_prog", so it can be a program name with args.
3294 set dummy $ac_prog; ac_word=$2
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3296 $as_echo_n "checking for $ac_word... " >&6; }
3297 if ${ac_cv_prog_LCOV+:} false; then :
3298 $as_echo_n "(cached) " >&6
3300 if test -n "$LCOV"; then
3301 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
3303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307 test -z "$as_dir" && as_dir=.
3308 for ac_exec_ext in '' $ac_executable_extensions; do
3309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3310 ac_cv_prog_LCOV="$ac_prog"
3311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3320 LCOV=$ac_cv_prog_LCOV
3321 if test -n "$LCOV"; then
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3323 $as_echo "$LCOV" >&6; }
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3326 $as_echo "no" >&6; }
3330 test -n "$LCOV" && break
3333 if test -z "$LCOV"; then
3334 as_fn_error $? "lcov not found" "$LINENO" 5
3336 for ac_prog in genhtml
3338 # Extract the first word of "$ac_prog", so it can be a program name with args.
3339 set dummy $ac_prog; ac_word=$2
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3341 $as_echo_n "checking for $ac_word... " >&6; }
3342 if ${ac_cv_prog_GENHTML+:} false; then :
3343 $as_echo_n "(cached) " >&6
3345 if test -n "$GENHTML"; then
3346 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
3348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3352 test -z "$as_dir" && as_dir=.
3353 for ac_exec_ext in '' $ac_executable_extensions; do
3354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3355 ac_cv_prog_GENHTML="$ac_prog"
3356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3365 GENHTML=$ac_cv_prog_GENHTML
3366 if test -n "$GENHTML"; then
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3368 $as_echo "$GENHTML" >&6; }
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3371 $as_echo "no" >&6; }
3375 test -n "$GENHTML" && break
3378 if test -z "$GENHTML"; then
3379 as_fn_error $? "genhtml not found" "$LINENO" 5
3386 as_fn_error $? "no argument expected for --enable-coverage option" "$LINENO" 5
3403 # Check whether --enable-dtrace was given.
3404 if test "${enable_dtrace+set}" = set; then :
3405 enableval=$enable_dtrace;
3408 for ac_prog in dtrace
3410 # Extract the first word of "$ac_prog", so it can be a program name with args.
3411 set dummy $ac_prog; ac_word=$2
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3413 $as_echo_n "checking for $ac_word... " >&6; }
3414 if ${ac_cv_prog_DTRACE+:} false; then :
3415 $as_echo_n "(cached) " >&6
3417 if test -n "$DTRACE"; then
3418 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
3420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3424 test -z "$as_dir" && as_dir=.
3425 for ac_exec_ext in '' $ac_executable_extensions; do
3426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3427 ac_cv_prog_DTRACE="$ac_prog"
3428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3437 DTRACE=$ac_cv_prog_DTRACE
3438 if test -n "$DTRACE"; then
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
3440 $as_echo "$DTRACE" >&6; }
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3443 $as_echo "no" >&6; }
3447 test -n "$DTRACE" && break
3450 if test -z "$DTRACE"; then
3451 as_fn_error $? "dtrace not found" "$LINENO" 5
3459 as_fn_error $? "no argument expected for --enable-dtrace option" "$LINENO" 5
3476 # Check whether --enable-tap-tests was given.
3477 if test "${enable_tap_tests+set}" = set; then :
3478 enableval=$enable_tap_tests;
3487 as_fn_error $? "no argument expected for --enable-tap-tests option" "$LINENO" 5
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for block size" >&5
3503 $as_echo_n "checking for block size... " >&6; }
3507 # Check whether --with-blocksize was given.
3508 if test "${with_blocksize+set}" = set; then :
3509 withval=$with_blocksize;
3512 as_fn_error $? "argument required for --with-blocksize option" "$LINENO" 5
3515 as_fn_error $? "argument required for --with-blocksize option" "$LINENO" 5
3527 case ${blocksize} in
3534 *) as_fn_error $? "Invalid block size. Allowed values are 1,2,4,8,16,32." "$LINENO" 5
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${blocksize}kB" >&5
3537 $as_echo "${blocksize}kB" >&6; }
3540 cat >>confdefs.h <<_ACEOF
3541 #define BLCKSZ ${BLCKSZ}
3546 # Relation segment size
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for segment size" >&5
3549 $as_echo_n "checking for segment size... " >&6; }
3553 # Check whether --with-segsize was given.
3554 if test "${with_segsize+set}" = set; then :
3555 withval=$with_segsize;
3558 as_fn_error $? "argument required for --with-segsize option" "$LINENO" 5
3561 as_fn_error $? "argument required for --with-segsize option" "$LINENO" 5
3573 # this expression is set up to avoid unnecessary integer overflow
3574 # blocksize is already guaranteed to be a factor of 1024
3575 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
3576 test $? -eq 0 || exit 1
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${segsize}GB" >&5
3578 $as_echo "${segsize}GB" >&6; }
3581 cat >>confdefs.h <<_ACEOF
3582 #define RELSEG_SIZE ${RELSEG_SIZE}
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAL block size" >&5
3590 $as_echo_n "checking for WAL block size... " >&6; }
3594 # Check whether --with-wal-blocksize was given.
3595 if test "${with_wal_blocksize+set}" = set; then :
3596 withval=$with_wal_blocksize;
3599 as_fn_error $? "argument required for --with-wal-blocksize option" "$LINENO" 5
3602 as_fn_error $? "argument required for --with-wal-blocksize option" "$LINENO" 5
3605 wal_blocksize=$withval
3614 case ${wal_blocksize} in
3615 1) XLOG_BLCKSZ=1024;;
3616 2) XLOG_BLCKSZ=2048;;
3617 4) XLOG_BLCKSZ=4096;;
3618 8) XLOG_BLCKSZ=8192;;
3619 16) XLOG_BLCKSZ=16384;;
3620 32) XLOG_BLCKSZ=32768;;
3621 64) XLOG_BLCKSZ=65536;;
3622 *) as_fn_error $? "Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." "$LINENO" 5
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${wal_blocksize}kB" >&5
3625 $as_echo "${wal_blocksize}kB" >&6; }
3628 cat >>confdefs.h <<_ACEOF
3629 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAL segment size" >&5
3637 $as_echo_n "checking for WAL segment size... " >&6; }
3641 # Check whether --with-wal-segsize was given.
3642 if test "${with_wal_segsize+set}" = set; then :
3643 withval=$with_wal_segsize;
3646 as_fn_error $? "argument required for --with-wal-segsize option" "$LINENO" 5
3649 as_fn_error $? "argument required for --with-wal-segsize option" "$LINENO" 5
3652 wal_segsize=$withval
3661 case ${wal_segsize} in
3669 *) as_fn_error $? "Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." "$LINENO" 5
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${wal_segsize}MB" >&5
3672 $as_echo "${wal_segsize}MB" >&6; }
3675 cat >>confdefs.h <<_ACEOF
3676 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
3684 # For historical reasons you can also use --with-CC to specify the C compiler
3685 # to use, although the standard way to do this is to set the CC environment
3690 # Check whether --with-CC was given.
3691 if test "${with_CC+set}" = set; then :
3695 as_fn_error $? "argument required for --with-CC option" "$LINENO" 5
3698 as_fn_error $? "argument required for --with-CC option" "$LINENO" 5
3710 aix) pgac_cc_list="gcc xlc";;
3711 *) pgac_cc_list="gcc cc";;
3715 ac_cpp='$CPP $CPPFLAGS'
3716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3719 if test -n "$ac_tool_prefix"; then
3720 for ac_prog in $pgac_cc_list
3722 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3723 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3725 $as_echo_n "checking for $ac_word... " >&6; }
3726 if ${ac_cv_prog_CC+:} false; then :
3727 $as_echo_n "(cached) " >&6
3729 if test -n "$CC"; then
3730 ac_cv_prog_CC="$CC" # Let the user override the test.
3732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3736 test -z "$as_dir" && as_dir=.
3737 for ac_exec_ext in '' $ac_executable_extensions; do
3738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3739 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3750 if test -n "$CC"; then
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3752 $as_echo "$CC" >&6; }
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3755 $as_echo "no" >&6; }
3759 test -n "$CC" && break
3762 if test -z "$CC"; then
3764 for ac_prog in $pgac_cc_list
3766 # Extract the first word of "$ac_prog", so it can be a program name with args.
3767 set dummy $ac_prog; ac_word=$2
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3769 $as_echo_n "checking for $ac_word... " >&6; }
3770 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3771 $as_echo_n "(cached) " >&6
3773 if test -n "$ac_ct_CC"; then
3774 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3780 test -z "$as_dir" && as_dir=.
3781 for ac_exec_ext in '' $ac_executable_extensions; do
3782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3783 ac_cv_prog_ac_ct_CC="$ac_prog"
3784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3793 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3794 if test -n "$ac_ct_CC"; then
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3796 $as_echo "$ac_ct_CC" >&6; }
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3799 $as_echo "no" >&6; }
3803 test -n "$ac_ct_CC" && break
3806 if test "x$ac_ct_CC" = x; then
3809 case $cross_compiling:$ac_tool_warned in
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3812 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3813 ac_tool_warned=yes ;;
3820 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3821 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3822 as_fn_error $? "no acceptable C compiler found in \$PATH
3823 See \`config.log' for more details" "$LINENO" 5; }
3825 # Provide some information about the compiler.
3826 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3829 for ac_option in --version -v -V -qversion; do
3830 { { ac_try="$ac_compiler $ac_option >&5"
3832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3833 *) ac_try_echo=$ac_try;;
3835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3836 $as_echo "$ac_try_echo"; } >&5
3837 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3839 if test -s conftest.err; then
3841 ... rest of stderr output deleted ...
3842 10q' conftest.err >conftest.er1
3843 cat conftest.er1 >&5
3845 rm -f conftest.er1 conftest.err
3846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3847 test $ac_status = 0; }
3850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3851 /* end confdefs.h. */
3861 ac_clean_files_save=$ac_clean_files
3862 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3863 # Try to create an executable without -o first, disregard a.out.
3864 # It will help us diagnose broken compilers, and finding out an intuition
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3867 $as_echo_n "checking whether the C compiler works... " >&6; }
3868 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3870 # The possible output files:
3871 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3874 for ac_file in $ac_files
3877 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3878 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3883 if { { ac_try="$ac_link_default"
3885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3886 *) ac_try_echo=$ac_try;;
3888 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3889 $as_echo "$ac_try_echo"; } >&5
3890 (eval "$ac_link_default") 2>&5
3892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3893 test $ac_status = 0; }; then :
3894 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3895 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3896 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3897 # so that the user can short-circuit this test for compilers unknown to
3899 for ac_file in $ac_files ''
3901 test -f "$ac_file" || continue
3903 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3906 # We found the default executable, but exeext='' is most
3910 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3912 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3914 # We set ac_cv_exeext here because the later test for it is not
3915 # safe: cross compilers may not add the suffix if given an `-o'
3916 # argument, so we may need to know it at that point already.
3917 # Even if this section looks crufty: it has the advantage of
3924 test "$ac_cv_exeext" = no && ac_cv_exeext=
3929 if test -z "$ac_file"; then :
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3931 $as_echo "no" >&6; }
3932 $as_echo "$as_me: failed program was:" >&5
3933 sed 's/^/| /' conftest.$ac_ext >&5
3935 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3937 as_fn_error 77 "C compiler cannot create executables
3938 See \`config.log' for more details" "$LINENO" 5; }
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3941 $as_echo "yes" >&6; }
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3944 $as_echo_n "checking for C compiler default output file name... " >&6; }
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3946 $as_echo "$ac_file" >&6; }
3947 ac_exeext=$ac_cv_exeext
3949 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3950 ac_clean_files=$ac_clean_files_save
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3952 $as_echo_n "checking for suffix of executables... " >&6; }
3953 if { { ac_try="$ac_link"
3955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3956 *) ac_try_echo=$ac_try;;
3958 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3959 $as_echo "$ac_try_echo"; } >&5
3960 (eval "$ac_link") 2>&5
3962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3963 test $ac_status = 0; }; then :
3964 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3965 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3966 # work properly (i.e., refer to `conftest.exe'), while it won't with
3968 for ac_file in conftest.exe conftest conftest.*; do
3969 test -f "$ac_file" || continue
3971 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3972 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3978 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3979 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3980 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3981 See \`config.log' for more details" "$LINENO" 5; }
3983 rm -f conftest conftest$ac_cv_exeext
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3985 $as_echo "$ac_cv_exeext" >&6; }
3987 rm -f conftest.$ac_ext
3988 EXEEXT=$ac_cv_exeext
3990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3991 /* end confdefs.h. */
3996 FILE *f = fopen ("conftest.out", "w");
3997 return ferror (f) || fclose (f) != 0;
4003 ac_clean_files="$ac_clean_files conftest.out"
4004 # Check that the compiler produces executables we can run. If not, either
4005 # the compiler is broken, or we cross compile.
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4007 $as_echo_n "checking whether we are cross compiling... " >&6; }
4008 if test "$cross_compiling" != yes; then
4009 { { ac_try="$ac_link"
4011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4012 *) ac_try_echo=$ac_try;;
4014 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4015 $as_echo "$ac_try_echo"; } >&5
4016 (eval "$ac_link") 2>&5
4018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4019 test $ac_status = 0; }
4020 if { ac_try='./conftest$ac_cv_exeext'
4021 { { case "(($ac_try" in
4022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4023 *) ac_try_echo=$ac_try;;
4025 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4026 $as_echo "$ac_try_echo"; } >&5
4027 (eval "$ac_try") 2>&5
4029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4030 test $ac_status = 0; }; }; then
4033 if test "$cross_compiling" = maybe; then
4036 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4038 as_fn_error $? "cannot run C compiled programs.
4039 If you meant to cross compile, use \`--host'.
4040 See \`config.log' for more details" "$LINENO" 5; }
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4045 $as_echo "$cross_compiling" >&6; }
4047 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4048 ac_clean_files=$ac_clean_files_save
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4050 $as_echo_n "checking for suffix of object files... " >&6; }
4051 if ${ac_cv_objext+:} false; then :
4052 $as_echo_n "(cached) " >&6
4054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055 /* end confdefs.h. */
4065 rm -f conftest.o conftest.obj
4066 if { { ac_try="$ac_compile"
4068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4069 *) ac_try_echo=$ac_try;;
4071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4072 $as_echo "$ac_try_echo"; } >&5
4073 (eval "$ac_compile") 2>&5
4075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4076 test $ac_status = 0; }; then :
4077 for ac_file in conftest.o conftest.obj conftest.*; do
4078 test -f "$ac_file" || continue;
4080 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4081 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4086 $as_echo "$as_me: failed program was:" >&5
4087 sed 's/^/| /' conftest.$ac_ext >&5
4089 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4091 as_fn_error $? "cannot compute suffix of object files: cannot compile
4092 See \`config.log' for more details" "$LINENO" 5; }
4094 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4097 $as_echo "$ac_cv_objext" >&6; }
4098 OBJEXT=$ac_cv_objext
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4101 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4102 if ${ac_cv_c_compiler_gnu+:} false; then :
4103 $as_echo_n "(cached) " >&6
4105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4106 /* end confdefs.h. */
4119 if ac_fn_c_try_compile "$LINENO"; then :
4124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4125 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4129 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4130 if test $ac_compiler_gnu = yes; then
4135 ac_test_CFLAGS=${CFLAGS+set}
4136 ac_save_CFLAGS=$CFLAGS
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4138 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4139 if ${ac_cv_prog_cc_g+:} false; then :
4140 $as_echo_n "(cached) " >&6
4142 ac_save_c_werror_flag=$ac_c_werror_flag
4143 ac_c_werror_flag=yes
4146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4147 /* end confdefs.h. */
4157 if ac_fn_c_try_compile "$LINENO"; then :
4161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4162 /* end confdefs.h. */
4172 if ac_fn_c_try_compile "$LINENO"; then :
4175 ac_c_werror_flag=$ac_save_c_werror_flag
4177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4178 /* end confdefs.h. */
4188 if ac_fn_c_try_compile "$LINENO"; then :
4191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4196 ac_c_werror_flag=$ac_save_c_werror_flag
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4199 $as_echo "$ac_cv_prog_cc_g" >&6; }
4200 if test "$ac_test_CFLAGS" = set; then
4201 CFLAGS=$ac_save_CFLAGS
4202 elif test $ac_cv_prog_cc_g = yes; then
4203 if test "$GCC" = yes; then
4209 if test "$GCC" = yes; then
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4216 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4217 if ${ac_cv_prog_cc_c89+:} false; then :
4218 $as_echo_n "(cached) " >&6
4220 ac_cv_prog_cc_c89=no
4222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4223 /* end confdefs.h. */
4227 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4228 struct buf { int x; };
4229 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4230 static char *e (p, i)
4236 static char *f (char * (*g) (char **, int), char **p, ...)
4241 s = g (p, va_arg (v,int));
4246 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4247 function prototypes and stuff, but not '\xHH' hex character constants.
4248 These don't provoke an error unfortunately, instead are silently treated
4249 as 'x'. The following induces an error, until -std is added to get
4250 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4251 array size at least. It's necessary to write '\x00'==0 to get something
4252 that's true only with -std. */
4253 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4255 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4256 inside strings and character constants. */
4258 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4260 int test (int i, double x);
4261 struct s1 {int (*f) (int a);};
4262 struct s2 {int (*f) (double a);};
4263 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4269 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4274 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4275 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4277 CC="$ac_save_CC $ac_arg"
4278 if ac_fn_c_try_compile "$LINENO"; then :
4279 ac_cv_prog_cc_c89=$ac_arg
4281 rm -f core conftest.err conftest.$ac_objext
4282 test "x$ac_cv_prog_cc_c89" != "xno" && break
4284 rm -f conftest.$ac_ext
4289 case "x$ac_cv_prog_cc_c89" in
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4292 $as_echo "none needed" >&6; } ;;
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4295 $as_echo "unsupported" >&6; } ;;
4297 CC="$CC $ac_cv_prog_cc_c89"
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4299 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4301 if test "x$ac_cv_prog_cc_c89" != xno; then :
4306 ac_cpp='$CPP $CPPFLAGS'
4307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4312 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
4313 # but has idiosyncrasies of its own. We assume icc will define
4314 # __INTEL_COMPILER regardless of CFLAGS.
4316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4317 /* end confdefs.h. */
4322 #ifndef __INTEL_COMPILER
4329 if ac_fn_c_try_compile "$LINENO"; then :
4334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4336 # Check if it's Sun Studio compiler. We assume that
4337 # __SUNPRO_C will be defined for Sun Studio compilers
4338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4339 /* end confdefs.h. */
4351 if ac_fn_c_try_compile "$LINENO"; then :
4356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4365 . "$srcdir/src/template/$template" || exit
4367 # CFLAGS are selected so:
4368 # If the user specifies something in the environment, that is used.
4369 # else: If the template file set something, that is used.
4370 # else: If coverage was enabled, don't set anything.
4371 # else: If the compiler is GCC, then we use -O2.
4372 # else: If the compiler is something else, then we use -O, unless debugging.
4374 if test "$ac_env_CFLAGS_set" = set; then
4375 CFLAGS=$ac_env_CFLAGS_value
4376 elif test "${CFLAGS+set}" = set; then
4377 : # (keep what template set)
4378 elif test "$enable_coverage" = yes; then
4379 : # no optimization by default
4380 elif test "$GCC" = yes; then
4383 # if the user selected debug mode, don't use -O
4384 if test "$enable_debug" != yes; then
4389 # CFLAGS we determined above will be added back at the end
4393 # set CFLAGS_VECTOR from the environment, if available
4394 if test "$ac_env_CFLAGS_VECTOR_set" = set; then
4395 CFLAGS_VECTOR=$ac_env_CFLAGS_VECTOR_value
4398 # Some versions of GCC support some additional useful warning flags.
4399 # Check whether they are supported, and add them to CFLAGS if so.
4400 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
4401 # but has its own. Also check other compiler-specific flags here.
4403 if test "$GCC" = yes -a "$ICC" = no; then
4404 CFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith"
4405 # These work in some but not all gcc versions
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5
4407 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
4408 if ${pgac_cv_prog_cc_cflags__Wdeclaration_after_statement+:} false; then :
4409 $as_echo_n "(cached) " >&6
4411 pgac_save_CFLAGS=$CFLAGS
4412 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
4413 ac_save_c_werror_flag=$ac_c_werror_flag
4414 ac_c_werror_flag=yes
4415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4416 /* end confdefs.h. */
4426 if ac_fn_c_try_compile "$LINENO"; then :
4427 pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=yes
4429 pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=no
4431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4432 ac_c_werror_flag=$ac_save_c_werror_flag
4433 CFLAGS="$pgac_save_CFLAGS"
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&5
4436 $as_echo "$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&6; }
4437 if test x"$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" = x"yes"; then
4438 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wendif-labels" >&5
4442 $as_echo_n "checking whether $CC supports -Wendif-labels... " >&6; }
4443 if ${pgac_cv_prog_cc_cflags__Wendif_labels+:} false; then :
4444 $as_echo_n "(cached) " >&6
4446 pgac_save_CFLAGS=$CFLAGS
4447 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
4448 ac_save_c_werror_flag=$ac_c_werror_flag
4449 ac_c_werror_flag=yes
4450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4451 /* end confdefs.h. */
4461 if ac_fn_c_try_compile "$LINENO"; then :
4462 pgac_cv_prog_cc_cflags__Wendif_labels=yes
4464 pgac_cv_prog_cc_cflags__Wendif_labels=no
4466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4467 ac_c_werror_flag=$ac_save_c_werror_flag
4468 CFLAGS="$pgac_save_CFLAGS"
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__Wendif_labels" >&5
4471 $as_echo "$pgac_cv_prog_cc_cflags__Wendif_labels" >&6; }
4472 if test x"$pgac_cv_prog_cc_cflags__Wendif_labels" = x"yes"; then
4473 CFLAGS="$CFLAGS -Wendif-labels"
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wmissing-format-attribute" >&5
4477 $as_echo_n "checking whether $CC supports -Wmissing-format-attribute... " >&6; }
4478 if ${pgac_cv_prog_cc_cflags__Wmissing_format_attribute+:} false; then :
4479 $as_echo_n "(cached) " >&6
4481 pgac_save_CFLAGS=$CFLAGS
4482 CFLAGS="$pgac_save_CFLAGS -Wmissing-format-attribute"
4483 ac_save_c_werror_flag=$ac_c_werror_flag
4484 ac_c_werror_flag=yes
4485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4486 /* end confdefs.h. */
4496 if ac_fn_c_try_compile "$LINENO"; then :
4497 pgac_cv_prog_cc_cflags__Wmissing_format_attribute=yes
4499 pgac_cv_prog_cc_cflags__Wmissing_format_attribute=no
4501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4502 ac_c_werror_flag=$ac_save_c_werror_flag
4503 CFLAGS="$pgac_save_CFLAGS"
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&5
4506 $as_echo "$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&6; }
4507 if test x"$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" = x"yes"; then
4508 CFLAGS="$CFLAGS -Wmissing-format-attribute"
4511 # This was included in -Wall/-Wformat in older GCC versions
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wformat-security" >&5
4513 $as_echo_n "checking whether $CC supports -Wformat-security... " >&6; }
4514 if ${pgac_cv_prog_cc_cflags__Wformat_security+:} false; then :
4515 $as_echo_n "(cached) " >&6
4517 pgac_save_CFLAGS=$CFLAGS
4518 CFLAGS="$pgac_save_CFLAGS -Wformat-security"
4519 ac_save_c_werror_flag=$ac_c_werror_flag
4520 ac_c_werror_flag=yes
4521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4522 /* end confdefs.h. */
4532 if ac_fn_c_try_compile "$LINENO"; then :
4533 pgac_cv_prog_cc_cflags__Wformat_security=yes
4535 pgac_cv_prog_cc_cflags__Wformat_security=no
4537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4538 ac_c_werror_flag=$ac_save_c_werror_flag
4539 CFLAGS="$pgac_save_CFLAGS"
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__Wformat_security" >&5
4542 $as_echo "$pgac_cv_prog_cc_cflags__Wformat_security" >&6; }
4543 if test x"$pgac_cv_prog_cc_cflags__Wformat_security" = x"yes"; then
4544 CFLAGS="$CFLAGS -Wformat-security"
4547 # Disable strict-aliasing rules; needed for gcc 3.3+
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fno-strict-aliasing" >&5
4549 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4550 if ${pgac_cv_prog_cc_cflags__fno_strict_aliasing+:} false; then :
4551 $as_echo_n "(cached) " >&6
4553 pgac_save_CFLAGS=$CFLAGS
4554 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4555 ac_save_c_werror_flag=$ac_c_werror_flag
4556 ac_c_werror_flag=yes
4557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4558 /* end confdefs.h. */
4568 if ac_fn_c_try_compile "$LINENO"; then :
4569 pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4571 pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4574 ac_c_werror_flag=$ac_save_c_werror_flag
4575 CFLAGS="$pgac_save_CFLAGS"
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4578 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4579 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4580 CFLAGS="$CFLAGS -fno-strict-aliasing"
4583 # Disable optimizations that assume no overflow; needed for gcc 4.3+
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fwrapv" >&5
4585 $as_echo_n "checking whether $CC supports -fwrapv... " >&6; }
4586 if ${pgac_cv_prog_cc_cflags__fwrapv+:} false; then :
4587 $as_echo_n "(cached) " >&6
4589 pgac_save_CFLAGS=$CFLAGS
4590 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4591 ac_save_c_werror_flag=$ac_c_werror_flag
4592 ac_c_werror_flag=yes
4593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4594 /* end confdefs.h. */
4604 if ac_fn_c_try_compile "$LINENO"; then :
4605 pgac_cv_prog_cc_cflags__fwrapv=yes
4607 pgac_cv_prog_cc_cflags__fwrapv=no
4609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4610 ac_c_werror_flag=$ac_save_c_werror_flag
4611 CFLAGS="$pgac_save_CFLAGS"
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__fwrapv" >&5
4614 $as_echo "$pgac_cv_prog_cc_cflags__fwrapv" >&6; }
4615 if test x"$pgac_cv_prog_cc_cflags__fwrapv" = x"yes"; then
4616 CFLAGS="$CFLAGS -fwrapv"
4619 # Disable FP optimizations that cause various errors on gcc 4.5+ or maybe 4.6+
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fexcess-precision=standard" >&5
4621 $as_echo_n "checking whether $CC supports -fexcess-precision=standard... " >&6; }
4622 if ${pgac_cv_prog_cc_cflags__fexcess_precision_standard+:} false; then :
4623 $as_echo_n "(cached) " >&6
4625 pgac_save_CFLAGS=$CFLAGS
4626 CFLAGS="$pgac_save_CFLAGS -fexcess-precision=standard"
4627 ac_save_c_werror_flag=$ac_c_werror_flag
4628 ac_c_werror_flag=yes
4629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4630 /* end confdefs.h. */
4640 if ac_fn_c_try_compile "$LINENO"; then :
4641 pgac_cv_prog_cc_cflags__fexcess_precision_standard=yes
4643 pgac_cv_prog_cc_cflags__fexcess_precision_standard=no
4645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4646 ac_c_werror_flag=$ac_save_c_werror_flag
4647 CFLAGS="$pgac_save_CFLAGS"
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__fexcess_precision_standard" >&5
4650 $as_echo "$pgac_cv_prog_cc_cflags__fexcess_precision_standard" >&6; }
4651 if test x"$pgac_cv_prog_cc_cflags__fexcess_precision_standard" = x"yes"; then
4652 CFLAGS="$CFLAGS -fexcess-precision=standard"
4655 # Optimization flags for specific files that benefit from vectorization
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -funroll-loops" >&5
4657 $as_echo_n "checking whether $CC supports -funroll-loops... " >&6; }
4658 if ${pgac_cv_prog_cc_cflags__funroll_loops+:} false; then :
4659 $as_echo_n "(cached) " >&6
4661 pgac_save_CFLAGS=$CFLAGS
4662 CFLAGS="$pgac_save_CFLAGS -funroll-loops"
4663 ac_save_c_werror_flag=$ac_c_werror_flag
4664 ac_c_werror_flag=yes
4665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4666 /* end confdefs.h. */
4676 if ac_fn_c_try_compile "$LINENO"; then :
4677 pgac_cv_prog_cc_cflags__funroll_loops=yes
4679 pgac_cv_prog_cc_cflags__funroll_loops=no
4681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4682 ac_c_werror_flag=$ac_save_c_werror_flag
4683 CFLAGS="$pgac_save_CFLAGS"
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__funroll_loops" >&5
4686 $as_echo "$pgac_cv_prog_cc_cflags__funroll_loops" >&6; }
4687 if test x"$pgac_cv_prog_cc_cflags__funroll_loops" = x"yes"; then
4688 CFLAGS_VECTOR="${CFLAGS_VECTOR} -funroll-loops"
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -ftree-vectorize" >&5
4692 $as_echo_n "checking whether $CC supports -ftree-vectorize... " >&6; }
4693 if ${pgac_cv_prog_cc_cflags__ftree_vectorize+:} false; then :
4694 $as_echo_n "(cached) " >&6
4696 pgac_save_CFLAGS=$CFLAGS
4697 CFLAGS="$pgac_save_CFLAGS -ftree-vectorize"
4698 ac_save_c_werror_flag=$ac_c_werror_flag
4699 ac_c_werror_flag=yes
4700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701 /* end confdefs.h. */
4711 if ac_fn_c_try_compile "$LINENO"; then :
4712 pgac_cv_prog_cc_cflags__ftree_vectorize=yes
4714 pgac_cv_prog_cc_cflags__ftree_vectorize=no
4716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4717 ac_c_werror_flag=$ac_save_c_werror_flag
4718 CFLAGS="$pgac_save_CFLAGS"
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__ftree_vectorize" >&5
4721 $as_echo "$pgac_cv_prog_cc_cflags__ftree_vectorize" >&6; }
4722 if test x"$pgac_cv_prog_cc_cflags__ftree_vectorize" = x"yes"; then
4723 CFLAGS_VECTOR="${CFLAGS_VECTOR} -ftree-vectorize"
4726 # We want to suppress clang's unhelpful unused-command-line-argument warnings
4727 # but gcc won't complain about unrecognized -Wno-foo switches, so we have to
4728 # test for the positive form and if that works, add the negative form
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wunused-command-line-argument" >&5
4730 $as_echo_n "checking whether $CC supports -Wunused-command-line-argument... " >&6; }
4731 if ${pgac_cv_prog_cc_cflags__Wunused_command_line_argument+:} false; then :
4732 $as_echo_n "(cached) " >&6
4734 pgac_save_CFLAGS=$CFLAGS
4735 CFLAGS="$pgac_save_CFLAGS -Wunused-command-line-argument"
4736 ac_save_c_werror_flag=$ac_c_werror_flag
4737 ac_c_werror_flag=yes
4738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739 /* end confdefs.h. */
4749 if ac_fn_c_try_compile "$LINENO"; then :
4750 pgac_cv_prog_cc_cflags__Wunused_command_line_argument=yes
4752 pgac_cv_prog_cc_cflags__Wunused_command_line_argument=no
4754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4755 ac_c_werror_flag=$ac_save_c_werror_flag
4756 CFLAGS="$pgac_save_CFLAGS"
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__Wunused_command_line_argument" >&5
4759 $as_echo "$pgac_cv_prog_cc_cflags__Wunused_command_line_argument" >&6; }
4760 if test x"$pgac_cv_prog_cc_cflags__Wunused_command_line_argument" = x"yes"; then
4761 NOT_THE_CFLAGS="${NOT_THE_CFLAGS} -Wunused-command-line-argument"
4764 if test -n "$NOT_THE_CFLAGS"; then
4765 CFLAGS="$CFLAGS -Wno-unused-command-line-argument"
4767 elif test "$ICC" = yes; then
4768 # Intel's compiler has a bug/misoptimization in checking for
4769 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mp1" >&5
4771 $as_echo_n "checking whether $CC supports -mp1... " >&6; }
4772 if ${pgac_cv_prog_cc_cflags__mp1+:} false; then :
4773 $as_echo_n "(cached) " >&6
4775 pgac_save_CFLAGS=$CFLAGS
4776 CFLAGS="$pgac_save_CFLAGS -mp1"
4777 ac_save_c_werror_flag=$ac_c_werror_flag
4778 ac_c_werror_flag=yes
4779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4780 /* end confdefs.h. */
4790 if ac_fn_c_try_compile "$LINENO"; then :
4791 pgac_cv_prog_cc_cflags__mp1=yes
4793 pgac_cv_prog_cc_cflags__mp1=no
4795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4796 ac_c_werror_flag=$ac_save_c_werror_flag
4797 CFLAGS="$pgac_save_CFLAGS"
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__mp1" >&5
4800 $as_echo "$pgac_cv_prog_cc_cflags__mp1" >&6; }
4801 if test x"$pgac_cv_prog_cc_cflags__mp1" = x"yes"; then
4802 CFLAGS="$CFLAGS -mp1"
4805 # Make sure strict aliasing is off (though this is said to be the default)
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fno-strict-aliasing" >&5
4807 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4808 if ${pgac_cv_prog_cc_cflags__fno_strict_aliasing+:} false; then :
4809 $as_echo_n "(cached) " >&6
4811 pgac_save_CFLAGS=$CFLAGS
4812 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4813 ac_save_c_werror_flag=$ac_c_werror_flag
4814 ac_c_werror_flag=yes
4815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4816 /* end confdefs.h. */
4826 if ac_fn_c_try_compile "$LINENO"; then :
4827 pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4829 pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4832 ac_c_werror_flag=$ac_save_c_werror_flag
4833 CFLAGS="$pgac_save_CFLAGS"
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4836 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4837 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4838 CFLAGS="$CFLAGS -fno-strict-aliasing"
4841 elif test "$PORTNAME" = "aix"; then
4842 # AIX's xlc has to have strict aliasing turned off too
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -qnoansialias" >&5
4844 $as_echo_n "checking whether $CC supports -qnoansialias... " >&6; }
4845 if ${pgac_cv_prog_cc_cflags__qnoansialias+:} false; then :
4846 $as_echo_n "(cached) " >&6
4848 pgac_save_CFLAGS=$CFLAGS
4849 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4850 ac_save_c_werror_flag=$ac_c_werror_flag
4851 ac_c_werror_flag=yes
4852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4853 /* end confdefs.h. */
4863 if ac_fn_c_try_compile "$LINENO"; then :
4864 pgac_cv_prog_cc_cflags__qnoansialias=yes
4866 pgac_cv_prog_cc_cflags__qnoansialias=no
4868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4869 ac_c_werror_flag=$ac_save_c_werror_flag
4870 CFLAGS="$pgac_save_CFLAGS"
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__qnoansialias" >&5
4873 $as_echo "$pgac_cv_prog_cc_cflags__qnoansialias" >&6; }
4874 if test x"$pgac_cv_prog_cc_cflags__qnoansialias" = x"yes"; then
4875 CFLAGS="$CFLAGS -qnoansialias"
4878 elif test "$PORTNAME" = "hpux"; then
4879 # On some versions of HP-UX, libm functions do not set errno by default.
4880 # Fix that by using +Olibmerrno if the compiler recognizes it.
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports +Olibmerrno" >&5
4882 $as_echo_n "checking whether $CC supports +Olibmerrno... " >&6; }
4883 if ${pgac_cv_prog_cc_cflags_pOlibmerrno+:} false; then :
4884 $as_echo_n "(cached) " >&6
4886 pgac_save_CFLAGS=$CFLAGS
4887 CFLAGS="$pgac_save_CFLAGS +Olibmerrno"
4888 ac_save_c_werror_flag=$ac_c_werror_flag
4889 ac_c_werror_flag=yes
4890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4891 /* end confdefs.h. */
4901 if ac_fn_c_try_compile "$LINENO"; then :
4902 pgac_cv_prog_cc_cflags_pOlibmerrno=yes
4904 pgac_cv_prog_cc_cflags_pOlibmerrno=no
4906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4907 ac_c_werror_flag=$ac_save_c_werror_flag
4908 CFLAGS="$pgac_save_CFLAGS"
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags_pOlibmerrno" >&5
4911 $as_echo "$pgac_cv_prog_cc_cflags_pOlibmerrno" >&6; }
4912 if test x"$pgac_cv_prog_cc_cflags_pOlibmerrno" = x"yes"; then
4913 CFLAGS="$CFLAGS +Olibmerrno"
4918 CFLAGS_VECTOR=$CFLAGS_VECTOR
4921 # supply -g if --enable-debug
4922 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4926 # enable code coverage if --enable-coverage
4927 if test "$enable_coverage" = yes; then
4928 if test "$GCC" = yes; then
4929 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4931 as_fn_error $? "--enable-coverage is supported only when using GCC" "$LINENO" 5
4935 # enable profiling if --enable-profiling
4936 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4937 if test "$GCC" = yes; then
4939 $as_echo "#define PROFILE_PID_DIR 1" >>confdefs.h
4941 CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4943 as_fn_error $? "--enable-profiling is supported only when using GCC" "$LINENO" 5
4947 # We already have this in Makefile.win32, but configure needs it too
4948 if test "$PORTNAME" = "win32"; then
4949 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4952 # Now that we're done automatically adding stuff to CFLAGS, put back the
4953 # user-specified flags (if any) at the end. This lets users override
4954 # the automatic additions.
4955 CFLAGS="$CFLAGS $user_CFLAGS"
4957 # Check if the compiler still works with the final flag settings
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler still works" >&5
4959 $as_echo_n "checking whether the C compiler still works... " >&6; }
4960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4961 /* end confdefs.h. */
4971 if ac_fn_c_try_link "$LINENO"; then :
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4973 $as_echo "yes" >&6; }
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4976 $as_echo "no" >&6; }
4977 as_fn_error $? "cannot proceed" "$LINENO" 5
4979 rm -f core conftest.err conftest.$ac_objext \
4980 conftest$ac_exeext conftest.$ac_ext
4982 # Defend against gcc -ffast-math
4983 if test "$GCC" = yes; then
4984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4985 /* end confdefs.h. */
4990 #ifdef __FAST_MATH__
4997 if ac_fn_c_try_compile "$LINENO"; then :
5000 as_fn_error $? "do not put -ffast-math in CFLAGS" "$LINENO" 5
5002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5006 ac_cpp='$CPP $CPPFLAGS'
5007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5011 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5012 # On Suns, sometimes $CPP names a directory.
5013 if test -n "$CPP" && test -d "$CPP"; then
5016 if test -z "$CPP"; then
5017 if ${ac_cv_prog_CPP+:} false; then :
5018 $as_echo_n "(cached) " >&6
5020 # Double quotes because CPP needs to be expanded
5021 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5024 for ac_c_preproc_warn_flag in '' yes
5026 # Use a header file that comes with gcc, so configuring glibc
5027 # with a fresh cross-compiler works.
5028 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5029 # <limits.h> exists even on freestanding compilers.
5030 # On the NeXT, cc -E runs the code through the compiler's parser,
5031 # not just through cpp. "Syntax error" is here to catch this case.
5032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5033 /* end confdefs.h. */
5035 # include <limits.h>
5037 # include <assert.h>
5041 if ac_fn_c_try_cpp "$LINENO"; then :
5044 # Broken: fails on valid input.
5047 rm -f conftest.err conftest.i conftest.$ac_ext
5049 # OK, works on sane cases. Now check whether nonexistent headers
5050 # can be detected and how.
5051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5052 /* end confdefs.h. */
5053 #include <ac_nonexistent.h>
5055 if ac_fn_c_try_cpp "$LINENO"; then :
5056 # Broken: success on invalid input.
5059 # Passes both tests.
5063 rm -f conftest.err conftest.i conftest.$ac_ext
5066 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5067 rm -f conftest.i conftest.err conftest.$ac_ext
5068 if $ac_preproc_ok; then :
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5081 $as_echo "$CPP" >&6; }
5083 for ac_c_preproc_warn_flag in '' yes
5085 # Use a header file that comes with gcc, so configuring glibc
5086 # with a fresh cross-compiler works.
5087 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5088 # <limits.h> exists even on freestanding compilers.
5089 # On the NeXT, cc -E runs the code through the compiler's parser,
5090 # not just through cpp. "Syntax error" is here to catch this case.
5091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5092 /* end confdefs.h. */
5094 # include <limits.h>
5096 # include <assert.h>
5100 if ac_fn_c_try_cpp "$LINENO"; then :
5103 # Broken: fails on valid input.
5106 rm -f conftest.err conftest.i conftest.$ac_ext
5108 # OK, works on sane cases. Now check whether nonexistent headers
5109 # can be detected and how.
5110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5111 /* end confdefs.h. */
5112 #include <ac_nonexistent.h>
5114 if ac_fn_c_try_cpp "$LINENO"; then :
5115 # Broken: success on invalid input.
5118 # Passes both tests.
5122 rm -f conftest.err conftest.i conftest.$ac_ext
5125 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5126 rm -f conftest.i conftest.err conftest.$ac_ext
5127 if $ac_preproc_ok; then :
5130 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5131 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5132 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5133 See \`config.log' for more details" "$LINENO" 5; }
5137 ac_cpp='$CPP $CPPFLAGS'
5138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5146 # Set up TAS assembly code if needed; the template file has now had its
5147 # chance to request this.
5149 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
5152 if test "$need_tas" = yes ; then
5161 # Automatic dependency tracking
5165 # Check whether --enable-depend was given.
5166 if test "${enable_depend+set}" = set; then :
5167 enableval=$enable_depend;
5176 as_fn_error $? "no argument expected for --enable-depend option" "$LINENO" 5
5190 # Enable assert checks
5194 # Check whether --enable-cassert was given.
5195 if test "${enable_cassert+set}" = set; then :
5196 enableval=$enable_cassert;
5200 $as_echo "#define USE_ASSERT_CHECKING 1" >>confdefs.h
5207 as_fn_error $? "no argument expected for --enable-cassert option" "$LINENO" 5
5220 # Include directories
5223 IFS="${IFS}${PATH_SEPARATOR}"
5224 # SRCH_INC comes from the template file
5225 for dir in $with_includes $SRCH_INC; do
5226 if test -d "$dir"; then
5227 INCLUDES="$INCLUDES -I$dir"
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Include directory $dir does not exist." >&5
5230 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
5238 # Library directories
5241 IFS="${IFS}${PATH_SEPARATOR}"
5242 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
5243 for dir in $LIBRARY_DIRS $SRCH_LIB; do
5244 if test -d "$dir"; then
5245 LIBDIRS="$LIBDIRS -L$dir"
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Library directory $dir does not exist." >&5
5248 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
5254 # Enable thread-safe client libraries
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking allow thread-safe client libraries" >&5
5257 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
5260 # Check whether --enable-thread-safety was given.
5261 if test "${enable_thread_safety+set}" = set; then :
5262 enableval=$enable_thread_safety;
5271 as_fn_error $? "no argument expected for --enable-thread-safety option" "$LINENO" 5
5276 enable_thread_safety=yes
5281 if test "$enable_thread_safety" = yes; then
5283 $as_echo "#define ENABLE_THREAD_SAFETY 1" >>confdefs.h
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_thread_safety" >&5
5287 $as_echo "$enable_thread_safety" >&6; }
5291 # Optionally build Tcl modules (PL/Tcl)
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with Tcl" >&5
5294 $as_echo_n "checking whether to build with Tcl... " >&6; }
5298 # Check whether --with-tcl was given.
5299 if test "${with_tcl+set}" = set; then :
5309 as_fn_error $? "no argument expected for --with-tcl option" "$LINENO" 5
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcl" >&5
5320 $as_echo "$with_tcl" >&6; }
5323 # We see if the path to the Tcl/Tk configuration scripts is specified.
5324 # This will override the use of tclsh to find the paths to search.
5329 # Check whether --with-tclconfig was given.
5330 if test "${with_tclconfig+set}" = set; then :
5331 withval=$with_tclconfig;
5334 as_fn_error $? "argument required for --with-tclconfig option" "$LINENO" 5
5337 as_fn_error $? "argument required for --with-tclconfig option" "$LINENO" 5
5349 # Optionally build Perl modules (PL/Perl)
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Perl modules" >&5
5352 $as_echo_n "checking whether to build Perl modules... " >&6; }
5356 # Check whether --with-perl was given.
5357 if test "${with_perl+set}" = set; then :
5367 as_fn_error $? "no argument expected for --with-perl option" "$LINENO" 5
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_perl" >&5
5378 $as_echo "$with_perl" >&6; }
5382 # Optionally build Python modules (PL/Python)
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Python modules" >&5
5385 $as_echo_n "checking whether to build Python modules... " >&6; }
5389 # Check whether --with-python was given.
5390 if test "${with_python+set}" = set; then :
5391 withval=$with_python;
5400 as_fn_error $? "no argument expected for --with-python option" "$LINENO" 5
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
5411 $as_echo "$with_python" >&6; }
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with GSSAPI support" >&5
5418 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
5422 # Check whether --with-gssapi was given.
5423 if test "${with_gssapi+set}" = set; then :
5424 withval=$with_gssapi;
5429 $as_echo "#define ENABLE_GSS 1" >>confdefs.h
5431 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5438 as_fn_error $? "no argument expected for --with-gssapi option" "$LINENO" 5
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_gssapi" >&5
5449 $as_echo "$with_gssapi" >&6; }
5456 # Kerberos configuration parameters
5461 # Check whether --with-krb-srvnam was given.
5462 if test "${with_krb_srvnam+set}" = set; then :
5463 withval=$with_krb_srvnam;
5466 as_fn_error $? "argument required for --with-krb-srvnam option" "$LINENO" 5
5469 as_fn_error $? "argument required for --with-krb-srvnam option" "$LINENO" 5
5477 with_krb_srvnam="postgres"
5482 cat >>confdefs.h <<_ACEOF
5483 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with PAM support" >&5
5492 $as_echo_n "checking whether to build with PAM support... " >&6; }
5496 # Check whether --with-pam was given.
5497 if test "${with_pam+set}" = set; then :
5502 $as_echo "#define USE_PAM 1" >>confdefs.h
5509 as_fn_error $? "no argument expected for --with-pam option" "$LINENO" 5
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pam" >&5
5520 $as_echo "$with_pam" >&6; }
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with LDAP support" >&5
5527 $as_echo_n "checking whether to build with LDAP support... " >&6; }
5531 # Check whether --with-ldap was given.
5532 if test "${with_ldap+set}" = set; then :
5537 $as_echo "#define USE_LDAP 1" >>confdefs.h
5544 as_fn_error $? "no argument expected for --with-ldap option" "$LINENO" 5
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ldap" >&5
5555 $as_echo "$with_ldap" >&6; }
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with Bonjour support" >&5
5562 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
5566 # Check whether --with-bonjour was given.
5567 if test "${with_bonjour+set}" = set; then :
5568 withval=$with_bonjour;
5572 $as_echo "#define USE_BONJOUR 1" >>confdefs.h
5579 as_fn_error $? "no argument expected for --with-bonjour option" "$LINENO" 5
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_bonjour" >&5
5590 $as_echo "$with_bonjour" >&6; }
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with OpenSSL support" >&5
5597 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
5601 # Check whether --with-openssl was given.
5602 if test "${with_openssl+set}" = set; then :
5603 withval=$with_openssl;
5607 $as_echo "#define USE_OPENSSL 1" >>confdefs.h
5614 as_fn_error $? "no argument expected for --with-openssl option" "$LINENO" 5
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_openssl" >&5
5625 $as_echo "$with_openssl" >&6; }
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with SELinux support" >&5
5632 $as_echo_n "checking whether to build with SELinux support... " >&6; }
5636 # Check whether --with-selinux was given.
5637 if test "${with_selinux+set}" = set; then :
5638 withval=$with_selinux;
5647 as_fn_error $? "no argument expected for --with-selinux option" "$LINENO" 5
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_selinux" >&5
5659 $as_echo "$with_selinux" >&6; }
5667 # Check whether --with-readline was given.
5668 if test "${with_readline+set}" = set; then :
5669 withval=$with_readline;
5678 as_fn_error $? "no argument expected for --with-readline option" "$LINENO" 5
5688 # readline on MinGW has problems with backslashes in psql and other bugs.
5689 # This is particularly a problem with non-US code pages.
5690 # Therefore disable its use until we understand the cause. 2004-07-20
5691 if test "$PORTNAME" = "win32"; then
5692 if test "$with_readline" = yes; then
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5694 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5706 # Check whether --with-libedit-preferred was given.
5707 if test "${with_libedit_preferred+set}" = set; then :
5708 withval=$with_libedit_preferred;
5717 as_fn_error $? "no argument expected for --with-libedit-preferred option" "$LINENO" 5
5722 with_libedit_preferred=no
5732 # There are at least three UUID libraries in common use: the FreeBSD/NetBSD
5733 # library, the e2fsprogs libuuid (now part of util-linux-ng), and the OSSP
5734 # UUID library. More than one of these might be present on a given platform,
5735 # so we make the user say which one she wants.
5740 # Check whether --with-uuid was given.
5741 if test "${with_uuid+set}" = set; then :
5745 as_fn_error $? "argument required for --with-uuid option" "$LINENO" 5
5748 as_fn_error $? "argument required for --with-uuid option" "$LINENO" 5
5758 if test x"$with_uuid" = x"" ; then
5764 # Check whether --with-ossp-uuid was given.
5765 if test "${with_ossp_uuid+set}" = set; then :
5766 withval=$with_ossp_uuid;
5775 as_fn_error $? "no argument expected for --with-ossp-uuid option" "$LINENO" 5
5785 if test "$with_ossp_uuid" = yes ; then
5789 if test "$with_uuid" = bsd ; then
5791 $as_echo "#define HAVE_UUID_BSD 1" >>confdefs.h
5793 UUID_EXTRA_OBJS="md5.o sha1.o"
5794 elif test "$with_uuid" = e2fs ; then
5796 $as_echo "#define HAVE_UUID_E2FS 1" >>confdefs.h
5798 UUID_EXTRA_OBJS="md5.o sha1.o"
5799 elif test "$with_uuid" = ossp ; then
5801 $as_echo "#define HAVE_UUID_OSSP 1" >>confdefs.h
5804 elif test "$with_uuid" = no ; then
5807 as_fn_error $? "--with-uuid must specify one of bsd, e2fs, or ossp" "$LINENO" 5
5819 # Check whether --with-libxml was given.
5820 if test "${with_libxml+set}" = set; then :
5821 withval=$with_libxml;
5825 $as_echo "#define USE_LIBXML 1" >>confdefs.h
5832 as_fn_error $? "no argument expected for --with-libxml option" "$LINENO" 5
5843 if test "$with_libxml" = yes ; then
5844 for ac_prog in xml2-config
5846 # Extract the first word of "$ac_prog", so it can be a program name with args.
5847 set dummy $ac_prog; ac_word=$2
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5849 $as_echo_n "checking for $ac_word... " >&6; }
5850 if ${ac_cv_prog_XML2_CONFIG+:} false; then :
5851 $as_echo_n "(cached) " >&6
5853 if test -n "$XML2_CONFIG"; then
5854 ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860 test -z "$as_dir" && as_dir=.
5861 for ac_exec_ext in '' $ac_executable_extensions; do
5862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5863 ac_cv_prog_XML2_CONFIG="$ac_prog"
5864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5873 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5874 if test -n "$XML2_CONFIG"; then
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
5876 $as_echo "$XML2_CONFIG" >&6; }
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5879 $as_echo "no" >&6; }
5883 test -n "$XML2_CONFIG" && break
5886 if test -n "$XML2_CONFIG"; then
5887 for pgac_option in `$XML2_CONFIG --cflags`; do
5888 case $pgac_option in
5889 -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5892 for pgac_option in `$XML2_CONFIG --libs`; do
5893 case $pgac_option in
5894 -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5908 # Check whether --with-libxslt was given.
5909 if test "${with_libxslt+set}" = set; then :
5910 withval=$with_libxslt;
5914 $as_echo "#define USE_LIBXSLT 1" >>confdefs.h
5921 as_fn_error $? "no argument expected for --with-libxslt option" "$LINENO" 5
5941 # Check whether --with-system-tzdata was given.
5942 if test "${with_system_tzdata+set}" = set; then :
5943 withval=$with_system_tzdata;
5946 as_fn_error $? "argument required for --with-system-tzdata option" "$LINENO" 5
5949 as_fn_error $? "argument required for --with-system-tzdata option" "$LINENO" 5
5967 # Check whether --with-zlib was given.
5968 if test "${with_zlib+set}" = set; then :
5978 as_fn_error $? "no argument expected for --with-zlib option" "$LINENO" 5
5994 # Assume system is ELF if it predefines __ELF__ as 1,
5995 # otherwise believe host_os based default.
5997 freebsd1*|freebsd2*) elf=no;;
5998 freebsd3*|freebsd4*) elf=yes;;
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6003 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6004 if ${ac_cv_path_GREP+:} false; then :
6005 $as_echo_n "(cached) " >&6
6007 if test -z "$GREP"; then
6008 ac_path_GREP_found=false
6009 # Loop through the user's path and test for each of PROGNAME-LIST
6010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6014 test -z "$as_dir" && as_dir=.
6015 for ac_prog in grep ggrep; do
6016 for ac_exec_ext in '' $ac_executable_extensions; do
6017 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6018 as_fn_executable_p "$ac_path_GREP" || continue
6019 # Check for GNU ac_path_GREP and select it if it is found.
6020 # Check for GNU $ac_path_GREP
6021 case `"$ac_path_GREP" --version 2>&1` in
6023 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6026 $as_echo_n 0123456789 >"conftest.in"
6029 cat "conftest.in" "conftest.in" >"conftest.tmp"
6030 mv "conftest.tmp" "conftest.in"
6031 cp "conftest.in" "conftest.nl"
6032 $as_echo 'GREP' >> "conftest.nl"
6033 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6034 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6035 as_fn_arith $ac_count + 1 && ac_count=$as_val
6036 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6037 # Best one so far, save it but keep looking for a better one
6038 ac_cv_path_GREP="$ac_path_GREP"
6039 ac_path_GREP_max=$ac_count
6041 # 10*(2^10) chars as input seems more than enough
6042 test $ac_count -gt 10 && break
6044 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6047 $ac_path_GREP_found && break 3
6052 if test -z "$ac_cv_path_GREP"; then
6053 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6056 ac_cv_path_GREP=$GREP
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6061 $as_echo "$ac_cv_path_GREP" >&6; }
6062 GREP="$ac_cv_path_GREP"
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6066 $as_echo_n "checking for egrep... " >&6; }
6067 if ${ac_cv_path_EGREP+:} false; then :
6068 $as_echo_n "(cached) " >&6
6070 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6071 then ac_cv_path_EGREP="$GREP -E"
6073 if test -z "$EGREP"; then
6074 ac_path_EGREP_found=false
6075 # Loop through the user's path and test for each of PROGNAME-LIST
6076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6077 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6080 test -z "$as_dir" && as_dir=.
6081 for ac_prog in egrep; do
6082 for ac_exec_ext in '' $ac_executable_extensions; do
6083 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6084 as_fn_executable_p "$ac_path_EGREP" || continue
6085 # Check for GNU ac_path_EGREP and select it if it is found.
6086 # Check for GNU $ac_path_EGREP
6087 case `"$ac_path_EGREP" --version 2>&1` in
6089 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6092 $as_echo_n 0123456789 >"conftest.in"
6095 cat "conftest.in" "conftest.in" >"conftest.tmp"
6096 mv "conftest.tmp" "conftest.in"
6097 cp "conftest.in" "conftest.nl"
6098 $as_echo 'EGREP' >> "conftest.nl"
6099 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6100 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6101 as_fn_arith $ac_count + 1 && ac_count=$as_val
6102 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6103 # Best one so far, save it but keep looking for a better one
6104 ac_cv_path_EGREP="$ac_path_EGREP"
6105 ac_path_EGREP_max=$ac_count
6107 # 10*(2^10) chars as input seems more than enough
6108 test $ac_count -gt 10 && break
6110 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6113 $ac_path_EGREP_found && break 3
6118 if test -z "$ac_cv_path_EGREP"; then
6119 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6122 ac_cv_path_EGREP=$EGREP
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6128 $as_echo "$ac_cv_path_EGREP" >&6; }
6129 EGREP="$ac_cv_path_EGREP"
6132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6133 /* end confdefs.h. */
6139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6140 $EGREP "yes" >/dev/null 2>&1; then :
6143 if test "X$elf" = "Xyes" ; then
6157 CPPFLAGS="$CPPFLAGS $INCLUDES"
6158 LDFLAGS="$LDFLAGS $LIBDIRS"
6164 # Check whether --with-gnu-ld was given.
6165 if test "${with_gnu_ld+set}" = set; then :
6166 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6172 if test "$GCC" = yes; then
6173 # Check if gcc -print-prog-name=ld gives a path.
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6175 $as_echo_n "checking for ld used by GCC... " >&6; }
6178 # gcc leaves a trailing carriage return which upsets mingw
6179 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6181 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6184 # Accept absolute paths.
6185 [\\/]* | [A-Za-z]:[\\/]*)
6186 re_direlt='/[^/][^/]*/\.\./'
6187 # Canonicalize the path of ld
6188 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6189 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6190 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6192 test -z "$LD" && LD="$ac_prog"
6195 # If it fails, then pretend we aren't using GCC.
6199 # If it is relative, then search for the first ld in PATH.
6203 elif test "$with_gnu_ld" = yes; then
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6205 $as_echo_n "checking for GNU ld... " >&6; }
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6208 $as_echo_n "checking for non-GNU ld... " >&6; }
6210 if ${ac_cv_path_LD+:} false; then :
6211 $as_echo_n "(cached) " >&6
6213 if test -z "$LD"; then
6214 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6215 for ac_dir in $PATH; do
6216 test -z "$ac_dir" && ac_dir=.
6217 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6218 ac_cv_path_LD="$ac_dir/$ac_prog"
6219 # Check to see if the program is GNU ld. I'd rather use --version,
6220 # but apparently some GNU ld's only accept -v.
6221 # Break only if it was the GNU/non-GNU ld that we prefer.
6222 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6223 test "$with_gnu_ld" != no && break
6225 test "$with_gnu_ld" != yes && break
6231 ac_cv_path_LD="$LD" # Let the user override the test with a path.
6236 if test -n "$LD"; then
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6238 $as_echo "$LD" >&6; }
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6241 $as_echo "no" >&6; }
6243 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6245 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6246 if ${ac_cv_prog_gnu_ld+:} false; then :
6247 $as_echo_n "(cached) " >&6
6249 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6250 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6251 ac_cv_prog_gnu_ld=yes
6253 ac_cv_prog_gnu_ld=no
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gnu_ld" >&5
6257 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
6258 with_gnu_ld=$ac_cv_prog_gnu_ld
6263 case $host_os in sysv5*)
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld -R works" >&5
6265 $as_echo_n "checking whether ld -R works... " >&6; }
6266 if ${pgac_cv_prog_ld_R+:} false; then :
6267 $as_echo_n "(cached) " >&6
6270 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
6271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6272 /* end confdefs.h. */
6282 if ac_fn_c_try_link "$LINENO"; then :
6283 pgac_cv_prog_ld_R=yes
6285 pgac_cv_prog_ld_R=no
6287 rm -f core conftest.err conftest.$ac_objext \
6288 conftest$ac_exeext conftest.$ac_ext
6289 LDFLAGS=$pgac_save_LDFLAGS
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_ld_R" >&5
6293 $as_echo "$pgac_cv_prog_ld_R" >&6; }
6294 ld_R_works=$pgac_cv_prog_ld_R
6297 if test -n "$ac_tool_prefix"; then
6298 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6299 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6301 $as_echo_n "checking for $ac_word... " >&6; }
6302 if ${ac_cv_prog_RANLIB+:} false; then :
6303 $as_echo_n "(cached) " >&6
6305 if test -n "$RANLIB"; then
6306 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6312 test -z "$as_dir" && as_dir=.
6313 for ac_exec_ext in '' $ac_executable_extensions; do
6314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6315 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6325 RANLIB=$ac_cv_prog_RANLIB
6326 if test -n "$RANLIB"; then
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6328 $as_echo "$RANLIB" >&6; }
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6331 $as_echo "no" >&6; }
6336 if test -z "$ac_cv_prog_RANLIB"; then
6337 ac_ct_RANLIB=$RANLIB
6338 # Extract the first word of "ranlib", so it can be a program name with args.
6339 set dummy ranlib; ac_word=$2
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6341 $as_echo_n "checking for $ac_word... " >&6; }
6342 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6343 $as_echo_n "(cached) " >&6
6345 if test -n "$ac_ct_RANLIB"; then
6346 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6352 test -z "$as_dir" && as_dir=.
6353 for ac_exec_ext in '' $ac_executable_extensions; do
6354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6355 ac_cv_prog_ac_ct_RANLIB="ranlib"
6356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6365 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6366 if test -n "$ac_ct_RANLIB"; then
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6368 $as_echo "$ac_ct_RANLIB" >&6; }
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6371 $as_echo "no" >&6; }
6374 if test "x$ac_ct_RANLIB" = x; then
6377 case $cross_compiling:$ac_tool_warned in
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6381 ac_tool_warned=yes ;;
6383 RANLIB=$ac_ct_RANLIB
6386 RANLIB="$ac_cv_prog_RANLIB"
6390 if test -n "$ac_tool_prefix"; then
6391 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6392 set dummy ${ac_tool_prefix}strip; ac_word=$2
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6394 $as_echo_n "checking for $ac_word... " >&6; }
6395 if ${ac_cv_prog_STRIP+:} false; then :
6396 $as_echo_n "(cached) " >&6
6398 if test -n "$STRIP"; then
6399 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6405 test -z "$as_dir" && as_dir=.
6406 for ac_exec_ext in '' $ac_executable_extensions; do
6407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6408 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6418 STRIP=$ac_cv_prog_STRIP
6419 if test -n "$STRIP"; then
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6421 $as_echo "$STRIP" >&6; }
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6424 $as_echo "no" >&6; }
6429 if test -z "$ac_cv_prog_STRIP"; then
6431 # Extract the first word of "strip", so it can be a program name with args.
6432 set dummy strip; ac_word=$2
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6434 $as_echo_n "checking for $ac_word... " >&6; }
6435 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6436 $as_echo_n "(cached) " >&6
6438 if test -n "$ac_ct_STRIP"; then
6439 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6445 test -z "$as_dir" && as_dir=.
6446 for ac_exec_ext in '' $ac_executable_extensions; do
6447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6448 ac_cv_prog_ac_ct_STRIP="strip"
6449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6458 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6459 if test -n "$ac_ct_STRIP"; then
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6461 $as_echo "$ac_ct_STRIP" >&6; }
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6464 $as_echo "no" >&6; }
6467 if test "x$ac_ct_STRIP" = x; then
6470 case $cross_compiling:$ac_tool_warned in
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6473 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6474 ac_tool_warned=yes ;;
6479 STRIP="$ac_cv_prog_STRIP"
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is possible to strip libraries" >&5
6484 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
6485 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6486 STRIP_STATIC_LIB="$STRIP -x"
6487 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6489 $as_echo "yes" >&6; }
6494 STRIP_STATIC_LIB=$STRIP
6495 STRIP_SHARED_LIB=$STRIP
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6497 $as_echo "yes" >&6; }
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6503 $as_echo "no" >&6; }
6510 if test -n "$ac_tool_prefix"; then
6511 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6512 set dummy ${ac_tool_prefix}ar; ac_word=$2
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6514 $as_echo_n "checking for $ac_word... " >&6; }
6515 if ${ac_cv_prog_AR+:} false; then :
6516 $as_echo_n "(cached) " >&6
6518 if test -n "$AR"; then
6519 ac_cv_prog_AR="$AR" # Let the user override the test.
6521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525 test -z "$as_dir" && as_dir=.
6526 for ac_exec_ext in '' $ac_executable_extensions; do
6527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6528 ac_cv_prog_AR="${ac_tool_prefix}ar"
6529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6539 if test -n "$AR"; then
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6541 $as_echo "$AR" >&6; }
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6544 $as_echo "no" >&6; }
6549 if test -z "$ac_cv_prog_AR"; then
6551 # Extract the first word of "ar", so it can be a program name with args.
6552 set dummy ar; ac_word=$2
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6554 $as_echo_n "checking for $ac_word... " >&6; }
6555 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6556 $as_echo_n "(cached) " >&6
6558 if test -n "$ac_ct_AR"; then
6559 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6565 test -z "$as_dir" && as_dir=.
6566 for ac_exec_ext in '' $ac_executable_extensions; do
6567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6568 ac_cv_prog_ac_ct_AR="ar"
6569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6578 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6579 if test -n "$ac_ct_AR"; then
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6581 $as_echo "$ac_ct_AR" >&6; }
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6584 $as_echo "no" >&6; }
6587 if test "x$ac_ct_AR" = x; then
6590 case $cross_compiling:$ac_tool_warned in
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6594 ac_tool_warned=yes ;;
6602 if test "$PORTNAME" = "win32"; then
6603 if test -n "$ac_tool_prefix"; then
6604 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6605 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6607 $as_echo_n "checking for $ac_word... " >&6; }
6608 if ${ac_cv_prog_DLLTOOL+:} false; then :
6609 $as_echo_n "(cached) " >&6
6611 if test -n "$DLLTOOL"; then
6612 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618 test -z "$as_dir" && as_dir=.
6619 for ac_exec_ext in '' $ac_executable_extensions; do
6620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6621 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6631 DLLTOOL=$ac_cv_prog_DLLTOOL
6632 if test -n "$DLLTOOL"; then
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6634 $as_echo "$DLLTOOL" >&6; }
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6637 $as_echo "no" >&6; }
6642 if test -z "$ac_cv_prog_DLLTOOL"; then
6643 ac_ct_DLLTOOL=$DLLTOOL
6644 # Extract the first word of "dlltool", so it can be a program name with args.
6645 set dummy dlltool; ac_word=$2
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6647 $as_echo_n "checking for $ac_word... " >&6; }
6648 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6649 $as_echo_n "(cached) " >&6
6651 if test -n "$ac_ct_DLLTOOL"; then
6652 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658 test -z "$as_dir" && as_dir=.
6659 for ac_exec_ext in '' $ac_executable_extensions; do
6660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6661 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6671 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6672 if test -n "$ac_ct_DLLTOOL"; then
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6674 $as_echo "$ac_ct_DLLTOOL" >&6; }
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6677 $as_echo "no" >&6; }
6680 if test "x$ac_ct_DLLTOOL" = x; then
6683 case $cross_compiling:$ac_tool_warned in
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6687 ac_tool_warned=yes ;;
6689 DLLTOOL=$ac_ct_DLLTOOL
6692 DLLTOOL="$ac_cv_prog_DLLTOOL"
6695 if test -n "$ac_tool_prefix"; then
6696 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6697 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6699 $as_echo_n "checking for $ac_word... " >&6; }
6700 if ${ac_cv_prog_DLLWRAP+:} false; then :
6701 $as_echo_n "(cached) " >&6
6703 if test -n "$DLLWRAP"; then
6704 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6710 test -z "$as_dir" && as_dir=.
6711 for ac_exec_ext in '' $ac_executable_extensions; do
6712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6713 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6723 DLLWRAP=$ac_cv_prog_DLLWRAP
6724 if test -n "$DLLWRAP"; then
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
6726 $as_echo "$DLLWRAP" >&6; }
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6729 $as_echo "no" >&6; }
6734 if test -z "$ac_cv_prog_DLLWRAP"; then
6735 ac_ct_DLLWRAP=$DLLWRAP
6736 # Extract the first word of "dllwrap", so it can be a program name with args.
6737 set dummy dllwrap; ac_word=$2
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6739 $as_echo_n "checking for $ac_word... " >&6; }
6740 if ${ac_cv_prog_ac_ct_DLLWRAP+:} false; then :
6741 $as_echo_n "(cached) " >&6
6743 if test -n "$ac_ct_DLLWRAP"; then
6744 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6750 test -z "$as_dir" && as_dir=.
6751 for ac_exec_ext in '' $ac_executable_extensions; do
6752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6753 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6763 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6764 if test -n "$ac_ct_DLLWRAP"; then
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
6766 $as_echo "$ac_ct_DLLWRAP" >&6; }
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6769 $as_echo "no" >&6; }
6772 if test "x$ac_ct_DLLWRAP" = x; then
6775 case $cross_compiling:$ac_tool_warned in
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6778 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6779 ac_tool_warned=yes ;;
6781 DLLWRAP=$ac_ct_DLLWRAP
6784 DLLWRAP="$ac_cv_prog_DLLWRAP"
6787 if test -n "$ac_tool_prefix"; then
6788 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6789 set dummy ${ac_tool_prefix}windres; ac_word=$2
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6791 $as_echo_n "checking for $ac_word... " >&6; }
6792 if ${ac_cv_prog_WINDRES+:} false; then :
6793 $as_echo_n "(cached) " >&6
6795 if test -n "$WINDRES"; then
6796 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6802 test -z "$as_dir" && as_dir=.
6803 for ac_exec_ext in '' $ac_executable_extensions; do
6804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6805 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6815 WINDRES=$ac_cv_prog_WINDRES
6816 if test -n "$WINDRES"; then
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
6818 $as_echo "$WINDRES" >&6; }
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6821 $as_echo "no" >&6; }
6826 if test -z "$ac_cv_prog_WINDRES"; then
6827 ac_ct_WINDRES=$WINDRES
6828 # Extract the first word of "windres", so it can be a program name with args.
6829 set dummy windres; ac_word=$2
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6831 $as_echo_n "checking for $ac_word... " >&6; }
6832 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
6833 $as_echo_n "(cached) " >&6
6835 if test -n "$ac_ct_WINDRES"; then
6836 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842 test -z "$as_dir" && as_dir=.
6843 for ac_exec_ext in '' $ac_executable_extensions; do
6844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6845 ac_cv_prog_ac_ct_WINDRES="windres"
6846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6855 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6856 if test -n "$ac_ct_WINDRES"; then
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
6858 $as_echo "$ac_ct_WINDRES" >&6; }
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6861 $as_echo "no" >&6; }
6864 if test "x$ac_ct_WINDRES" = x; then
6867 case $cross_compiling:$ac_tool_warned in
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6870 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6871 ac_tool_warned=yes ;;
6873 WINDRES=$ac_ct_WINDRES
6876 WINDRES="$ac_cv_prog_WINDRES"
6881 # Find a good install program. We prefer a C program (faster),
6882 # so one script is as good as another. But avoid the broken or
6883 # incompatible versions:
6884 # SysV /etc/install, /usr/sbin/install
6885 # SunOS /usr/etc/install
6886 # IRIX /sbin/install
6888 # AmigaOS /C/install, which installs bootblocks on floppy discs
6889 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6890 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6891 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6892 # OS/2's system install, which has a completely different semantic
6893 # ./install, which can be erroneously created by make from ./install.sh.
6894 # Reject install programs that cannot install multiple files.
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6896 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6897 if test -z "$INSTALL"; then
6898 if ${ac_cv_path_install+:} false; then :
6899 $as_echo_n "(cached) " >&6
6901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6905 test -z "$as_dir" && as_dir=.
6906 # Account for people who put trailing slashes in PATH elements.
6907 case $as_dir/ in #((
6908 ./ | .// | /[cC]/* | \
6909 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6910 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6913 # OSF1 and SCO ODT 3.0 have their own names for install.
6914 # Don't use installbsd from OSF since it installs stuff as root
6916 for ac_prog in ginstall scoinst install; do
6917 for ac_exec_ext in '' $ac_executable_extensions; do
6918 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6919 if test $ac_prog = install &&
6920 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6921 # AIX install. It has an incompatible calling convention.
6923 elif test $ac_prog = install &&
6924 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6925 # program-specific install script used by HP pwplus--don't use.
6928 rm -rf conftest.one conftest.two conftest.dir
6929 echo one > conftest.one
6930 echo two > conftest.two
6932 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6933 test -s conftest.one && test -s conftest.two &&
6934 test -s conftest.dir/conftest.one &&
6935 test -s conftest.dir/conftest.two
6937 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6950 rm -rf conftest.one conftest.two conftest.dir
6953 if test "${ac_cv_path_install+set}" = set; then
6954 INSTALL=$ac_cv_path_install
6956 # As a last resort, use the slow shell script. Don't cache a
6957 # value for INSTALL within a source directory, because that will
6958 # break other packages using the cache if that directory is
6959 # removed, or if the value is a relative name.
6960 INSTALL=$ac_install_sh
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6964 $as_echo "$INSTALL" >&6; }
6966 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6967 # It thinks the first close brace ends the variable substitution.
6968 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6970 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6972 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6974 # When Autoconf chooses install-sh as install program it tries to generate
6975 # a relative path to it in each makefile where it subsitutes it. This clashes
6976 # with our Makefile.global concept. This workaround helps.
6978 *install-sh*) install_bin='';;
6979 *) install_bin=$INSTALL;;
6983 # Extract the first word of "tar", so it can be a program name with args.
6984 set dummy tar; ac_word=$2
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6986 $as_echo_n "checking for $ac_word... " >&6; }
6987 if ${ac_cv_path_TAR+:} false; then :
6988 $as_echo_n "(cached) " >&6
6992 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999 test -z "$as_dir" && as_dir=.
7000 for ac_exec_ext in '' $ac_executable_extensions; do
7001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7002 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7014 if test -n "$TAR"; then
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
7016 $as_echo "$TAR" >&6; }
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7019 $as_echo "no" >&6; }
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7024 $as_echo_n "checking whether ln -s works... " >&6; }
7026 if test "$LN_S" = "ln -s"; then
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7028 $as_echo "yes" >&6; }
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7031 $as_echo "no, using $LN_S" >&6; }
7034 for ac_prog in gawk mawk nawk awk
7036 # Extract the first word of "$ac_prog", so it can be a program name with args.
7037 set dummy $ac_prog; ac_word=$2
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7039 $as_echo_n "checking for $ac_word... " >&6; }
7040 if ${ac_cv_prog_AWK+:} false; then :
7041 $as_echo_n "(cached) " >&6
7043 if test -n "$AWK"; then
7044 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7050 test -z "$as_dir" && as_dir=.
7051 for ac_exec_ext in '' $ac_executable_extensions; do
7052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7053 ac_cv_prog_AWK="$ac_prog"
7054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7064 if test -n "$AWK"; then
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7066 $as_echo "$AWK" >&6; }
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7069 $as_echo "no" >&6; }
7073 test -n "$AWK" && break
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
7077 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7078 if test -z "$MKDIR_P"; then
7079 if ${ac_cv_path_mkdir+:} false; then :
7080 $as_echo_n "(cached) " >&6
7082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
7086 test -z "$as_dir" && as_dir=.
7087 for ac_prog in mkdir gmkdir; do
7088 for ac_exec_ext in '' $ac_executable_extensions; do
7089 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
7090 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7091 'mkdir (GNU coreutils) '* | \
7092 'mkdir (coreutils) '* | \
7093 'mkdir (fileutils) '4.1*)
7094 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
7104 test -d ./--version && rmdir ./--version
7105 if test "${ac_cv_path_mkdir+set}" = set; then
7106 MKDIR_P="$ac_cv_path_mkdir -p"
7108 # As a last resort, use the slow shell script. Don't cache a
7109 # value for MKDIR_P within a source directory, because that will
7110 # break other packages using the cache if that directory is
7111 # removed, or if the value is a relative name.
7112 MKDIR_P="$ac_install_sh -d"
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7116 $as_echo "$MKDIR_P" >&6; }
7118 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
7119 # a relative path to it in each makefile where it subsitutes it. This clashes
7120 # with our Makefile.global concept. This workaround helps.
7122 *install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
7125 # Let the user override the search
7126 if test -z "$BISON"; then
7127 for ac_prog in bison
7129 # Extract the first word of "$ac_prog", so it can be a program name with args.
7130 set dummy $ac_prog; ac_word=$2
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7132 $as_echo_n "checking for $ac_word... " >&6; }
7133 if ${ac_cv_path_BISON+:} false; then :
7134 $as_echo_n "(cached) " >&6
7138 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
7141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145 test -z "$as_dir" && as_dir=.
7146 for ac_exec_ext in '' $ac_executable_extensions; do
7147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7148 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
7149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7159 BISON=$ac_cv_path_BISON
7160 if test -n "$BISON"; then
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7162 $as_echo "$BISON" >&6; }
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7165 $as_echo "no" >&6; }
7169 test -n "$BISON" && break
7174 if test "$BISON"; then
7175 pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: using $pgac_bison_version" >&5
7177 $as_echo "$as_me: using $pgac_bison_version" >&6;}
7178 if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7181 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7182 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
7183 $as_echo "$as_me: WARNING:
7184 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7185 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
7188 # Bison >=3.0 issues warnings about %name-prefix="base_yy", instead
7189 # of the now preferred %name-prefix "base_yy", but the latter
7190 # doesn't work with Bison 2.3 or less. So for now we silence the
7191 # deprecation warnings.
7192 if echo "$pgac_bison_version" | $AWK '{ if ($4 >= 3) exit 0; else exit 1;}'
7194 BISONFLAGS="$BISONFLAGS -Wno-deprecated"
7198 if test -z "$BISON"; then
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7200 *** Without Bison you will not be able to build PostgreSQL from Git nor
7201 *** change any of the parser definition files. You can obtain Bison from
7202 *** a GNU mirror site. (If you are using the official distribution of
7203 *** PostgreSQL then you do not need to worry about this, because the Bison
7204 *** output is pre-generated.)" >&5
7205 $as_echo "$as_me: WARNING:
7206 *** Without Bison you will not be able to build PostgreSQL from Git nor
7207 *** change any of the parser definition files. You can obtain Bison from
7208 *** a GNU mirror site. (If you are using the official distribution of
7209 *** PostgreSQL then you do not need to worry about this, because the Bison
7210 *** output is pre-generated.)" >&2;}
7212 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex" >&5
7216 $as_echo_n "checking for flex... " >&6; }
7217 if ${pgac_cv_path_flex+:} false; then :
7218 $as_echo_n "(cached) " >&6
7220 # Let the user override the test
7221 if test -n "$FLEX"; then
7222 pgac_cv_path_flex=$FLEX
7226 for pgac_dir in $PATH; do
7228 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
7231 for pgac_prog in flex lex; do
7232 pgac_candidate="$pgac_dir/$pgac_prog"
7233 if test -f "$pgac_candidate" \
7234 && $pgac_candidate --version </dev/null >/dev/null 2>&1
7236 echo '%%' > conftest.l
7237 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
7238 pgac_flex_version=`$pgac_candidate --version 2>/dev/null`
7239 if echo "$pgac_flex_version" | sed 's/[.a-z]/ /g' | $AWK '{ if ($1 = 2 && $2 = 5 && $3 >= 31) exit 0; else exit 1;}'
7241 pgac_cv_path_flex=$pgac_candidate
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7245 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7246 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
7247 $as_echo "$as_me: WARNING:
7248 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7249 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
7255 rm -f conftest.l lex.yy.c
7256 : ${pgac_cv_path_flex=no}
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_path_flex" >&5
7261 $as_echo "$pgac_cv_path_flex" >&6; }
7262 if test x"$pgac_cv_path_flex" = x"no"; then
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7264 *** Without Flex you will not be able to build PostgreSQL from Git nor
7265 *** change any of the scanner definition files. You can obtain Flex from
7266 *** a GNU mirror site. (If you are using the official distribution of
7267 *** PostgreSQL then you do not need to worry about this because the Flex
7268 *** output is pre-generated.)" >&5
7269 $as_echo "$as_me: WARNING:
7270 *** Without Flex you will not be able to build PostgreSQL from Git nor
7271 *** change any of the scanner definition files. You can obtain Flex from
7272 *** a GNU mirror site. (If you are using the official distribution of
7273 *** PostgreSQL then you do not need to worry about this because the Flex
7274 *** output is pre-generated.)" >&2;}
7278 FLEX=$pgac_cv_path_flex
7279 pgac_flex_version=`$FLEX --version 2>/dev/null`
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: using $pgac_flex_version" >&5
7281 $as_echo "$as_me: using $pgac_flex_version" >&6;}
7288 # Let the user override the search
7289 if test -z "$PERL"; then
7290 # Extract the first word of "perl", so it can be a program name with args.
7291 set dummy perl; ac_word=$2
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7293 $as_echo_n "checking for $ac_word... " >&6; }
7294 if ${ac_cv_path_PERL+:} false; then :
7295 $as_echo_n "(cached) " >&6
7299 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7306 test -z "$as_dir" && as_dir=.
7307 for ac_exec_ext in '' $ac_executable_extensions; do
7308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7309 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7320 PERL=$ac_cv_path_PERL
7321 if test -n "$PERL"; then
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7323 $as_echo "$PERL" >&6; }
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7326 $as_echo "no" >&6; }
7332 if test "$PERL"; then
7333 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'`
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: using perl $pgac_perl_version" >&5
7335 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
7336 if echo "$pgac_perl_version" | sed 's/[.a-z_]/ /g' | \
7337 $AWK '{ if ($1 = 5 && $2 >= 8) exit 1; else exit 0;}'
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7340 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7341 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&5
7342 $as_echo "$as_me: WARNING:
7343 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7344 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&2;}
7349 if test -z "$PERL"; then
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7351 *** Without Perl you will not be able to build PostgreSQL from Git.
7352 *** You can obtain Perl from any CPAN mirror site.
7353 *** (If you are using the official distribution of PostgreSQL then you do not
7354 *** need to worry about this, because the Perl output is pre-generated.)" >&5
7355 $as_echo "$as_me: WARNING:
7356 *** Without Perl you will not be able to build PostgreSQL from Git.
7357 *** You can obtain Perl from any CPAN mirror site.
7358 *** (If you are using the official distribution of PostgreSQL then you do not
7359 *** need to worry about this, because the Perl output is pre-generated.)" >&2;}
7362 if test "$with_perl" = yes; then
7363 if test -z "$PERL"; then
7364 as_fn_error $? "Perl not found" "$LINENO" 5
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl archlibexp" >&5
7368 $as_echo_n "checking for Perl archlibexp... " >&6; }
7369 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
7370 test "$PORTNAME" = "win32" && perl_archlibexp=`echo $perl_archlibexp | sed 's,\\\\,/,g'`
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_archlibexp" >&5
7372 $as_echo "$perl_archlibexp" >&6; }
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl privlibexp" >&5
7374 $as_echo_n "checking for Perl privlibexp... " >&6; }
7375 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
7376 test "$PORTNAME" = "win32" && perl_privlibexp=`echo $perl_privlibexp | sed 's,\\\\,/,g'`
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_privlibexp" >&5
7378 $as_echo "$perl_privlibexp" >&6; }
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl useshrplib" >&5
7380 $as_echo_n "checking for Perl useshrplib... " >&6; }
7381 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
7382 test "$PORTNAME" = "win32" && perl_useshrplib=`echo $perl_useshrplib | sed 's,\\\\,/,g'`
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_useshrplib" >&5
7384 $as_echo "$perl_useshrplib" >&6; }
7385 if test "$perl_useshrplib" != yes && test "$perl_useshrplib" != true; then
7386 as_fn_error $? "cannot build PL/Perl because libperl is not a shared library
7387 You might have to rebuild your Perl installation. Refer to the
7388 documentation for details. Use --without-perl to disable building
7389 PL/Perl." "$LINENO" 5
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flags to link embedded Perl" >&5
7393 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
7394 if test "$PORTNAME" = "win32" ; then
7395 perl_lib=`basename $perl_archlibexp/CORE/perl[5-9]*.lib .lib`
7396 test -e "$perl_archlibexp/CORE/$perl_lib.lib" && perl_embed_ldflags="-L$perl_archlibexp/CORE -l$perl_lib"
7398 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
7399 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
7400 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
7402 if test -z "$perl_embed_ldflags" ; then
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7404 $as_echo "no" >&6; }
7405 as_fn_error $? "could not determine flags for linking embedded Perl.
7406 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7407 installed." "$LINENO" 5
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_embed_ldflags" >&5
7410 $as_echo "$perl_embed_ldflags" >&6; }
7415 if test "$with_python" = yes; then
7416 # Extract the first word of "python", so it can be a program name with args.
7417 set dummy python; ac_word=$2
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7419 $as_echo_n "checking for $ac_word... " >&6; }
7420 if ${ac_cv_path_PYTHON+:} false; then :
7421 $as_echo_n "(cached) " >&6
7425 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
7428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7432 test -z "$as_dir" && as_dir=.
7433 for ac_exec_ext in '' $ac_executable_extensions; do
7434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7435 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
7436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7446 PYTHON=$ac_cv_path_PYTHON
7447 if test -n "$PYTHON"; then
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
7449 $as_echo "$PYTHON" >&6; }
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7452 $as_echo "no" >&6; }
7456 if test x"$PYTHON" = x""; then
7457 as_fn_error $? "Python not found" "$LINENO" 5
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python distutils module" >&5
7462 $as_echo_n "checking for Python distutils module... " >&6; }
7463 if "${PYTHON}" -c 'import distutils' 2>&5
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7466 $as_echo "yes" >&6; }
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7469 $as_echo "no" >&6; }
7470 as_fn_error $? "distutils module not found" "$LINENO" 5
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python configuration directory" >&5
7473 $as_echo_n "checking Python configuration directory... " >&6; }
7474 python_majorversion=`${PYTHON} -c "import sys; print(sys.version[0])"`
7475 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
7476 python_configdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBPL'))))"`
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_configdir" >&5
7478 $as_echo "$python_configdir" >&6; }
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python include directories" >&5
7481 $as_echo_n "checking Python include directories... " >&6; }
7482 python_includespec=`${PYTHON} -c "
7483 import distutils.sysconfig
7484 a = '-I' + distutils.sysconfig.get_python_inc(False)
7485 b = '-I' + distutils.sysconfig.get_python_inc(True)
7489 print(a + ' ' + b)"`
7490 if test "$PORTNAME" = win32 ; then
7491 python_includespec=`echo $python_includespec | sed 's,[\],/,g'`
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_includespec" >&5
7494 $as_echo "$python_includespec" >&6; }
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link an embedded Python application" >&5
7499 $as_echo_n "checking how to link an embedded Python application... " >&6; }
7501 python_libdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
7502 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
7503 python_so=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('SO'))))"`
7504 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
7505 python_enable_shared=`${PYTHON} -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_vars().get('Py_ENABLE_SHARED',0))"`
7507 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
7509 # New way: use the official shared library
7510 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
7511 python_libspec="-L${python_libdir} -l${ldlibrary}"
7513 # Old way: use libpython from python_configdir
7514 python_libdir="${python_configdir}"
7515 # LDVERSION was introduced in Python 3.2.
7516 python_ldversion=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDVERSION'))))"`
7517 if test x"${python_ldversion}" = x""; then
7518 python_ldversion=$python_version
7520 python_libspec="-L${python_libdir} -lpython${python_ldversion}"
7523 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_libspec} ${python_additional_libs}" >&5
7526 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
7531 # We need libpython as a shared library. With Python >=2.5, we
7532 # check the Py_ENABLE_SHARED setting. On Debian, the setting is not
7533 # correct before the jessie release (http://bugs.debian.org/695979).
7534 # We also want to support older Python versions. So as a fallback
7535 # we see if there is a file that is named like a shared library.
7537 if test "$python_enable_shared" != 1; then
7538 if test "$PORTNAME" = darwin; then
7539 # OS X does supply a .dylib even though Py_ENABLE_SHARED does
7540 # not get set. The file detection logic below doesn't succeed
7541 # on older OS X versions, so make it explicit.
7542 python_enable_shared=1
7543 elif test "$PORTNAME" = win32; then
7544 # Windows also needs an explicit override.
7545 python_enable_shared=1
7547 # We don't know the platform shared library extension here yet,
7548 # so we try some candidates.
7549 for dlsuffix in .so .sl; do
7550 if ls "$python_libdir"/libpython*${dlsuffix}* >/dev/null 2>&1; then
7551 python_enable_shared=1
7558 if test "$python_enable_shared" != 1; then
7559 as_fn_error $? "cannot build PL/Python because libpython is not a shared library
7560 You might have to rebuild your Python installation. Refer to the
7561 documentation for details. Use --without-python to disable building
7562 PL/Python." "$LINENO" 5
7566 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
7567 # Extract the first word of "zic", so it can be a program name with args.
7568 set dummy zic; ac_word=$2
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7570 $as_echo_n "checking for $ac_word... " >&6; }
7571 if ${ac_cv_path_ZIC+:} false; then :
7572 $as_echo_n "(cached) " >&6
7576 ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
7579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7583 test -z "$as_dir" && as_dir=.
7584 for ac_exec_ext in '' $ac_executable_extensions; do
7585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7586 ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
7587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7598 if test -n "$ZIC"; then
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIC" >&5
7600 $as_echo "$ZIC" >&6; }
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7603 $as_echo "no" >&6; }
7607 if test -z "$ZIC"; then
7609 When cross-compiling, either use the option --with-system-tzdata to use
7610 existing time-zone data, or set the environment variable ZIC to a zic
7611 program to use during the build." "$LINENO" 5
7619 ## Most libraries are included only if they demonstrably provide a function
7620 ## we need, but libm is an exception: always include it, because there are
7621 ## too many compilers that play cute optimization games that will break
7622 ## probes for standard functions such as pow().
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
7626 $as_echo_n "checking for main in -lm... " >&6; }
7627 if ${ac_cv_lib_m_main+:} false; then :
7628 $as_echo_n "(cached) " >&6
7630 ac_check_lib_save_LIBS=$LIBS
7632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7633 /* end confdefs.h. */
7644 if ac_fn_c_try_link "$LINENO"; then :
7645 ac_cv_lib_m_main=yes
7649 rm -f core conftest.err conftest.$ac_objext \
7650 conftest$ac_exeext conftest.$ac_ext
7651 LIBS=$ac_check_lib_save_LIBS
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
7654 $as_echo "$ac_cv_lib_m_main" >&6; }
7655 if test "x$ac_cv_lib_m_main" = xyes; then :
7656 cat >>confdefs.h <<_ACEOF
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setproctitle" >&5
7665 $as_echo_n "checking for library containing setproctitle... " >&6; }
7666 if ${ac_cv_search_setproctitle+:} false; then :
7667 $as_echo_n "(cached) " >&6
7669 ac_func_search_save_LIBS=$LIBS
7670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7671 /* end confdefs.h. */
7673 /* Override any GCC internal prototype to avoid an error.
7674 Use char because int might match the return type of a GCC
7675 builtin and then its argument prototype would still apply. */
7679 char setproctitle ();
7683 return setproctitle ();
7688 for ac_lib in '' util; do
7689 if test -z "$ac_lib"; then
7690 ac_res="none required"
7693 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7695 if ac_fn_c_try_link "$LINENO"; then :
7696 ac_cv_search_setproctitle=$ac_res
7698 rm -f core conftest.err conftest.$ac_objext \
7700 if ${ac_cv_search_setproctitle+:} false; then :
7704 if ${ac_cv_search_setproctitle+:} false; then :
7707 ac_cv_search_setproctitle=no
7710 LIBS=$ac_func_search_save_LIBS
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setproctitle" >&5
7713 $as_echo "$ac_cv_search_setproctitle" >&6; }
7714 ac_res=$ac_cv_search_setproctitle
7715 if test "$ac_res" != no; then :
7716 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
7721 $as_echo_n "checking for library containing dlopen... " >&6; }
7722 if ${ac_cv_search_dlopen+:} false; then :
7723 $as_echo_n "(cached) " >&6
7725 ac_func_search_save_LIBS=$LIBS
7726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7727 /* end confdefs.h. */
7729 /* Override any GCC internal prototype to avoid an error.
7730 Use char because int might match the return type of a GCC
7731 builtin and then its argument prototype would still apply. */
7744 for ac_lib in '' dl; do
7745 if test -z "$ac_lib"; then
7746 ac_res="none required"
7749 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7751 if ac_fn_c_try_link "$LINENO"; then :
7752 ac_cv_search_dlopen=$ac_res
7754 rm -f core conftest.err conftest.$ac_objext \
7756 if ${ac_cv_search_dlopen+:} false; then :
7760 if ${ac_cv_search_dlopen+:} false; then :
7763 ac_cv_search_dlopen=no
7766 LIBS=$ac_func_search_save_LIBS
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
7769 $as_echo "$ac_cv_search_dlopen" >&6; }
7770 ac_res=$ac_cv_search_dlopen
7771 if test "$ac_res" != no; then :
7772 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
7777 $as_echo_n "checking for library containing socket... " >&6; }
7778 if ${ac_cv_search_socket+:} false; then :
7779 $as_echo_n "(cached) " >&6
7781 ac_func_search_save_LIBS=$LIBS
7782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7783 /* end confdefs.h. */
7785 /* Override any GCC internal prototype to avoid an error.
7786 Use char because int might match the return type of a GCC
7787 builtin and then its argument prototype would still apply. */
7800 for ac_lib in '' socket ws2_32; do
7801 if test -z "$ac_lib"; then
7802 ac_res="none required"
7805 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7807 if ac_fn_c_try_link "$LINENO"; then :
7808 ac_cv_search_socket=$ac_res
7810 rm -f core conftest.err conftest.$ac_objext \
7812 if ${ac_cv_search_socket+:} false; then :
7816 if ${ac_cv_search_socket+:} false; then :
7819 ac_cv_search_socket=no
7822 LIBS=$ac_func_search_save_LIBS
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
7825 $as_echo "$ac_cv_search_socket" >&6; }
7826 ac_res=$ac_cv_search_socket
7827 if test "$ac_res" != no; then :
7828 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
7833 $as_echo_n "checking for library containing shl_load... " >&6; }
7834 if ${ac_cv_search_shl_load+:} false; then :
7835 $as_echo_n "(cached) " >&6
7837 ac_func_search_save_LIBS=$LIBS
7838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7839 /* end confdefs.h. */
7841 /* Override any GCC internal prototype to avoid an error.
7842 Use char because int might match the return type of a GCC
7843 builtin and then its argument prototype would still apply. */
7856 for ac_lib in '' dld; do
7857 if test -z "$ac_lib"; then
7858 ac_res="none required"
7861 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7863 if ac_fn_c_try_link "$LINENO"; then :
7864 ac_cv_search_shl_load=$ac_res
7866 rm -f core conftest.err conftest.$ac_objext \
7868 if ${ac_cv_search_shl_load+:} false; then :
7872 if ${ac_cv_search_shl_load+:} false; then :
7875 ac_cv_search_shl_load=no
7878 LIBS=$ac_func_search_save_LIBS
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
7881 $as_echo "$ac_cv_search_shl_load" >&6; }
7882 ac_res=$ac_cv_search_shl_load
7883 if test "$ac_res" != no; then :
7884 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7888 # We only use libld in port/dynloader/aix.c
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldopen" >&5
7892 $as_echo_n "checking for library containing ldopen... " >&6; }
7893 if ${ac_cv_search_ldopen+:} false; then :
7894 $as_echo_n "(cached) " >&6
7896 ac_func_search_save_LIBS=$LIBS
7897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7898 /* end confdefs.h. */
7900 /* Override any GCC internal prototype to avoid an error.
7901 Use char because int might match the return type of a GCC
7902 builtin and then its argument prototype would still apply. */
7915 for ac_lib in '' ld; do
7916 if test -z "$ac_lib"; then
7917 ac_res="none required"
7920 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7922 if ac_fn_c_try_link "$LINENO"; then :
7923 ac_cv_search_ldopen=$ac_res
7925 rm -f core conftest.err conftest.$ac_objext \
7927 if ${ac_cv_search_ldopen+:} false; then :
7931 if ${ac_cv_search_ldopen+:} false; then :
7934 ac_cv_search_ldopen=no
7937 LIBS=$ac_func_search_save_LIBS
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldopen" >&5
7940 $as_echo "$ac_cv_search_ldopen" >&6; }
7941 ac_res=$ac_cv_search_ldopen
7942 if test "$ac_res" != no; then :
7943 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getopt_long" >&5
7950 $as_echo_n "checking for library containing getopt_long... " >&6; }
7951 if ${ac_cv_search_getopt_long+:} false; then :
7952 $as_echo_n "(cached) " >&6
7954 ac_func_search_save_LIBS=$LIBS
7955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7956 /* end confdefs.h. */
7958 /* Override any GCC internal prototype to avoid an error.
7959 Use char because int might match the return type of a GCC
7960 builtin and then its argument prototype would still apply. */
7964 char getopt_long ();
7968 return getopt_long ();
7973 for ac_lib in '' getopt gnugetopt; do
7974 if test -z "$ac_lib"; then
7975 ac_res="none required"
7978 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7980 if ac_fn_c_try_link "$LINENO"; then :
7981 ac_cv_search_getopt_long=$ac_res
7983 rm -f core conftest.err conftest.$ac_objext \
7985 if ${ac_cv_search_getopt_long+:} false; then :
7989 if ${ac_cv_search_getopt_long+:} false; then :
7992 ac_cv_search_getopt_long=no
7995 LIBS=$ac_func_search_save_LIBS
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getopt_long" >&5
7998 $as_echo "$ac_cv_search_getopt_long" >&6; }
7999 ac_res=$ac_cv_search_getopt_long
8000 if test "$ac_res" != no; then :
8001 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
8006 $as_echo_n "checking for library containing crypt... " >&6; }
8007 if ${ac_cv_search_crypt+:} false; then :
8008 $as_echo_n "(cached) " >&6
8010 ac_func_search_save_LIBS=$LIBS
8011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8012 /* end confdefs.h. */
8014 /* Override any GCC internal prototype to avoid an error.
8015 Use char because int might match the return type of a GCC
8016 builtin and then its argument prototype would still apply. */
8029 for ac_lib in '' crypt; do
8030 if test -z "$ac_lib"; then
8031 ac_res="none required"
8034 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8036 if ac_fn_c_try_link "$LINENO"; then :
8037 ac_cv_search_crypt=$ac_res
8039 rm -f core conftest.err conftest.$ac_objext \
8041 if ${ac_cv_search_crypt+:} false; then :
8045 if ${ac_cv_search_crypt+:} false; then :
8048 ac_cv_search_crypt=no
8051 LIBS=$ac_func_search_save_LIBS
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
8054 $as_echo "$ac_cv_search_crypt" >&6; }
8055 ac_res=$ac_cv_search_crypt
8056 if test "$ac_res" != no; then :
8057 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
8062 $as_echo_n "checking for library containing shm_open... " >&6; }
8063 if ${ac_cv_search_shm_open+:} false; then :
8064 $as_echo_n "(cached) " >&6
8066 ac_func_search_save_LIBS=$LIBS
8067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8068 /* end confdefs.h. */
8070 /* Override any GCC internal prototype to avoid an error.
8071 Use char because int might match the return type of a GCC
8072 builtin and then its argument prototype would still apply. */
8085 for ac_lib in '' rt; do
8086 if test -z "$ac_lib"; then
8087 ac_res="none required"
8090 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8092 if ac_fn_c_try_link "$LINENO"; then :
8093 ac_cv_search_shm_open=$ac_res
8095 rm -f core conftest.err conftest.$ac_objext \
8097 if ${ac_cv_search_shm_open+:} false; then :
8101 if ${ac_cv_search_shm_open+:} false; then :
8104 ac_cv_search_shm_open=no
8107 LIBS=$ac_func_search_save_LIBS
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
8110 $as_echo "$ac_cv_search_shm_open" >&6; }
8111 ac_res=$ac_cv_search_shm_open
8112 if test "$ac_res" != no; then :
8113 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_unlink" >&5
8118 $as_echo_n "checking for library containing shm_unlink... " >&6; }
8119 if ${ac_cv_search_shm_unlink+:} false; then :
8120 $as_echo_n "(cached) " >&6
8122 ac_func_search_save_LIBS=$LIBS
8123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8124 /* end confdefs.h. */
8126 /* Override any GCC internal prototype to avoid an error.
8127 Use char because int might match the return type of a GCC
8128 builtin and then its argument prototype would still apply. */
8136 return shm_unlink ();
8141 for ac_lib in '' rt; do
8142 if test -z "$ac_lib"; then
8143 ac_res="none required"
8146 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8148 if ac_fn_c_try_link "$LINENO"; then :
8149 ac_cv_search_shm_unlink=$ac_res
8151 rm -f core conftest.err conftest.$ac_objext \
8153 if ${ac_cv_search_shm_unlink+:} false; then :
8157 if ${ac_cv_search_shm_unlink+:} false; then :
8160 ac_cv_search_shm_unlink=no
8163 LIBS=$ac_func_search_save_LIBS
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_unlink" >&5
8166 $as_echo "$ac_cv_search_shm_unlink" >&6; }
8167 ac_res=$ac_cv_search_shm_unlink
8168 if test "$ac_res" != no; then :
8169 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
8175 $as_echo_n "checking for library containing fdatasync... " >&6; }
8176 if ${ac_cv_search_fdatasync+:} false; then :
8177 $as_echo_n "(cached) " >&6
8179 ac_func_search_save_LIBS=$LIBS
8180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8181 /* end confdefs.h. */
8183 /* Override any GCC internal prototype to avoid an error.
8184 Use char because int might match the return type of a GCC
8185 builtin and then its argument prototype would still apply. */
8193 return fdatasync ();
8198 for ac_lib in '' rt posix4; do
8199 if test -z "$ac_lib"; then
8200 ac_res="none required"
8203 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8205 if ac_fn_c_try_link "$LINENO"; then :
8206 ac_cv_search_fdatasync=$ac_res
8208 rm -f core conftest.err conftest.$ac_objext \
8210 if ${ac_cv_search_fdatasync+:} false; then :
8214 if ${ac_cv_search_fdatasync+:} false; then :
8217 ac_cv_search_fdatasync=no
8220 LIBS=$ac_func_search_save_LIBS
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
8223 $as_echo "$ac_cv_search_fdatasync" >&6; }
8224 ac_res=$ac_cv_search_fdatasync
8225 if test "$ac_res" != no; then :
8226 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8230 # Required for thread_test.c on Solaris 2.5:
8231 # Other ports use it too (HP-UX) so test unconditionally
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname_r" >&5
8233 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
8234 if ${ac_cv_search_gethostbyname_r+:} false; then :
8235 $as_echo_n "(cached) " >&6
8237 ac_func_search_save_LIBS=$LIBS
8238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8239 /* end confdefs.h. */
8241 /* Override any GCC internal prototype to avoid an error.
8242 Use char because int might match the return type of a GCC
8243 builtin and then its argument prototype would still apply. */
8247 char gethostbyname_r ();
8251 return gethostbyname_r ();
8256 for ac_lib in '' nsl; do
8257 if test -z "$ac_lib"; then
8258 ac_res="none required"
8261 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8263 if ac_fn_c_try_link "$LINENO"; then :
8264 ac_cv_search_gethostbyname_r=$ac_res
8266 rm -f core conftest.err conftest.$ac_objext \
8268 if ${ac_cv_search_gethostbyname_r+:} false; then :
8272 if ${ac_cv_search_gethostbyname_r+:} false; then :
8275 ac_cv_search_gethostbyname_r=no
8278 LIBS=$ac_func_search_save_LIBS
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname_r" >&5
8281 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
8282 ac_res=$ac_cv_search_gethostbyname_r
8283 if test "$ac_res" != no; then :
8284 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shmget" >&5
8290 $as_echo_n "checking for library containing shmget... " >&6; }
8291 if ${ac_cv_search_shmget+:} false; then :
8292 $as_echo_n "(cached) " >&6
8294 ac_func_search_save_LIBS=$LIBS
8295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8296 /* end confdefs.h. */
8298 /* Override any GCC internal prototype to avoid an error.
8299 Use char because int might match the return type of a GCC
8300 builtin and then its argument prototype would still apply. */
8313 for ac_lib in '' cygipc; do
8314 if test -z "$ac_lib"; then
8315 ac_res="none required"
8318 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8320 if ac_fn_c_try_link "$LINENO"; then :
8321 ac_cv_search_shmget=$ac_res
8323 rm -f core conftest.err conftest.$ac_objext \
8325 if ${ac_cv_search_shmget+:} false; then :
8329 if ${ac_cv_search_shmget+:} false; then :
8332 ac_cv_search_shmget=no
8335 LIBS=$ac_func_search_save_LIBS
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shmget" >&5
8338 $as_echo "$ac_cv_search_shmget" >&6; }
8339 ac_res=$ac_cv_search_shmget
8340 if test "$ac_res" != no; then :
8341 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8346 if test "$with_readline" = yes; then
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
8350 $as_echo_n "checking for library containing readline... " >&6; }
8351 if ${pgac_cv_check_readline+:} false; then :
8352 $as_echo_n "(cached) " >&6
8354 pgac_cv_check_readline=no
8355 pgac_save_LIBS=$LIBS
8356 if test x"$with_libedit_preferred" != x"yes"
8357 then READLINE_ORDER="-lreadline -ledit"
8358 else READLINE_ORDER="-ledit -lreadline"
8360 for pgac_rllib in $READLINE_ORDER ; do
8361 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
8362 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
8363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8364 /* end confdefs.h. */
8366 /* Override any GCC internal prototype to avoid an error.
8367 Use char because int might match the return type of a GCC
8368 builtin and then its argument prototype would still apply. */
8381 if ac_fn_c_try_link "$LINENO"; then :
8383 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
8384 # recognize dependent libraries; assume curses is needed if we didn't
8385 # find any dependency.
8387 netbsd* | openbsd* | irix*)
8388 if test x"$pgac_lib" = x"" ; then
8389 pgac_lib=" -lcurses"
8393 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
8397 rm -f core conftest.err conftest.$ac_objext \
8398 conftest$ac_exeext conftest.$ac_ext
8400 if test "$pgac_cv_check_readline" != no ; then
8404 LIBS=$pgac_save_LIBS
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_check_readline" >&5
8408 $as_echo "$pgac_cv_check_readline" >&6; }
8409 if test "$pgac_cv_check_readline" != no ; then
8410 LIBS="$pgac_cv_check_readline $LIBS"
8412 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
8417 if test x"$pgac_cv_check_readline" = x"no"; then
8418 as_fn_error $? "readline library not found
8419 If you have readline already installed, see config.log for details on the
8420 failure. It is possible the compiler isn't looking in the proper directory.
8421 Use --without-readline to disable readline support." "$LINENO" 5
8425 if test "$with_zlib" = yes; then
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
8427 $as_echo_n "checking for inflate in -lz... " >&6; }
8428 if ${ac_cv_lib_z_inflate+:} false; then :
8429 $as_echo_n "(cached) " >&6
8431 ac_check_lib_save_LIBS=$LIBS
8433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8434 /* end confdefs.h. */
8436 /* Override any GCC internal prototype to avoid an error.
8437 Use char because int might match the return type of a GCC
8438 builtin and then its argument prototype would still apply. */
8451 if ac_fn_c_try_link "$LINENO"; then :
8452 ac_cv_lib_z_inflate=yes
8454 ac_cv_lib_z_inflate=no
8456 rm -f core conftest.err conftest.$ac_objext \
8457 conftest$ac_exeext conftest.$ac_ext
8458 LIBS=$ac_check_lib_save_LIBS
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
8461 $as_echo "$ac_cv_lib_z_inflate" >&6; }
8462 if test "x$ac_cv_lib_z_inflate" = xyes; then :
8463 cat >>confdefs.h <<_ACEOF
8470 as_fn_error $? "zlib library not found
8471 If you have zlib already installed, see config.log for details on the
8472 failure. It is possible the compiler isn't looking in the proper directory.
8473 Use --without-zlib to disable zlib support." "$LINENO" 5
8478 if test "$enable_spinlocks" = yes; then
8480 $as_echo "#define HAVE_SPINLOCKS 1" >>confdefs.h
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8484 *** Not using spinlocks will cause poor performance." >&5
8485 $as_echo "$as_me: WARNING:
8486 *** Not using spinlocks will cause poor performance." >&2;}
8489 if test "$enable_atomics" = yes; then
8491 $as_echo "#define HAVE_ATOMICS 1" >>confdefs.h
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8495 *** Not using atomic operations will cause poor performance." >&5
8496 $as_echo "$as_me: WARNING:
8497 *** Not using atomic operations will cause poor performance." >&2;}
8500 if test "$with_gssapi" = yes ; then
8501 if test "$PORTNAME" != "win32"; then
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_init_sec_context" >&5
8503 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
8504 if ${ac_cv_search_gss_init_sec_context+:} false; then :
8505 $as_echo_n "(cached) " >&6
8507 ac_func_search_save_LIBS=$LIBS
8508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8509 /* end confdefs.h. */
8511 /* Override any GCC internal prototype to avoid an error.
8512 Use char because int might match the return type of a GCC
8513 builtin and then its argument prototype would still apply. */
8517 char gss_init_sec_context ();
8521 return gss_init_sec_context ();
8526 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
8527 if test -z "$ac_lib"; then
8528 ac_res="none required"
8531 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8533 if ac_fn_c_try_link "$LINENO"; then :
8534 ac_cv_search_gss_init_sec_context=$ac_res
8536 rm -f core conftest.err conftest.$ac_objext \
8538 if ${ac_cv_search_gss_init_sec_context+:} false; then :
8542 if ${ac_cv_search_gss_init_sec_context+:} false; then :
8545 ac_cv_search_gss_init_sec_context=no
8548 LIBS=$ac_func_search_save_LIBS
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_init_sec_context" >&5
8551 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
8552 ac_res=$ac_cv_search_gss_init_sec_context
8553 if test "$ac_res" != no; then :
8554 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8557 as_fn_error $? "could not find function 'gss_init_sec_context' required for GSSAPI" "$LINENO" 5
8561 LIBS="$LIBS -lgssapi32"
8565 if test "$with_openssl" = yes ; then
8566 if test "$PORTNAME" != "win32"; then
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_new_ex_data in -lcrypto" >&5
8568 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
8569 if ${ac_cv_lib_crypto_CRYPTO_new_ex_data+:} false; then :
8570 $as_echo_n "(cached) " >&6
8572 ac_check_lib_save_LIBS=$LIBS
8573 LIBS="-lcrypto $LIBS"
8574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8575 /* end confdefs.h. */
8577 /* Override any GCC internal prototype to avoid an error.
8578 Use char because int might match the return type of a GCC
8579 builtin and then its argument prototype would still apply. */
8583 char CRYPTO_new_ex_data ();
8587 return CRYPTO_new_ex_data ();
8592 if ac_fn_c_try_link "$LINENO"; then :
8593 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
8595 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
8597 rm -f core conftest.err conftest.$ac_objext \
8598 conftest$ac_exeext conftest.$ac_ext
8599 LIBS=$ac_check_lib_save_LIBS
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
8602 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
8603 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = xyes; then :
8604 cat >>confdefs.h <<_ACEOF
8605 #define HAVE_LIBCRYPTO 1
8608 LIBS="-lcrypto $LIBS"
8611 as_fn_error $? "library 'crypto' is required for OpenSSL" "$LINENO" 5
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
8615 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
8616 if ${ac_cv_lib_ssl_SSL_library_init+:} false; then :
8617 $as_echo_n "(cached) " >&6
8619 ac_check_lib_save_LIBS=$LIBS
8621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8622 /* end confdefs.h. */
8624 /* Override any GCC internal prototype to avoid an error.
8625 Use char because int might match the return type of a GCC
8626 builtin and then its argument prototype would still apply. */
8630 char SSL_library_init ();
8634 return SSL_library_init ();
8639 if ac_fn_c_try_link "$LINENO"; then :
8640 ac_cv_lib_ssl_SSL_library_init=yes
8642 ac_cv_lib_ssl_SSL_library_init=no
8644 rm -f core conftest.err conftest.$ac_objext \
8645 conftest$ac_exeext conftest.$ac_ext
8646 LIBS=$ac_check_lib_save_LIBS
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
8649 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
8650 if test "x$ac_cv_lib_ssl_SSL_library_init" = xyes; then :
8651 cat >>confdefs.h <<_ACEOF
8652 #define HAVE_LIBSSL 1
8658 as_fn_error $? "library 'ssl' is required for OpenSSL" "$LINENO" 5
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing CRYPTO_new_ex_data" >&5
8663 $as_echo_n "checking for library containing CRYPTO_new_ex_data... " >&6; }
8664 if ${ac_cv_search_CRYPTO_new_ex_data+:} false; then :
8665 $as_echo_n "(cached) " >&6
8667 ac_func_search_save_LIBS=$LIBS
8668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8669 /* end confdefs.h. */
8671 /* Override any GCC internal prototype to avoid an error.
8672 Use char because int might match the return type of a GCC
8673 builtin and then its argument prototype would still apply. */
8677 char CRYPTO_new_ex_data ();
8681 return CRYPTO_new_ex_data ();
8686 for ac_lib in '' eay32 crypto; do
8687 if test -z "$ac_lib"; then
8688 ac_res="none required"
8691 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8693 if ac_fn_c_try_link "$LINENO"; then :
8694 ac_cv_search_CRYPTO_new_ex_data=$ac_res
8696 rm -f core conftest.err conftest.$ac_objext \
8698 if ${ac_cv_search_CRYPTO_new_ex_data+:} false; then :
8702 if ${ac_cv_search_CRYPTO_new_ex_data+:} false; then :
8705 ac_cv_search_CRYPTO_new_ex_data=no
8708 LIBS=$ac_func_search_save_LIBS
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_CRYPTO_new_ex_data" >&5
8711 $as_echo "$ac_cv_search_CRYPTO_new_ex_data" >&6; }
8712 ac_res=$ac_cv_search_CRYPTO_new_ex_data
8713 if test "$ac_res" != no; then :
8714 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8717 as_fn_error $? "library 'eay32' or 'crypto' is required for OpenSSL" "$LINENO" 5
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_library_init" >&5
8721 $as_echo_n "checking for library containing SSL_library_init... " >&6; }
8722 if ${ac_cv_search_SSL_library_init+:} false; then :
8723 $as_echo_n "(cached) " >&6
8725 ac_func_search_save_LIBS=$LIBS
8726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8727 /* end confdefs.h. */
8729 /* Override any GCC internal prototype to avoid an error.
8730 Use char because int might match the return type of a GCC
8731 builtin and then its argument prototype would still apply. */
8735 char SSL_library_init ();
8739 return SSL_library_init ();
8744 for ac_lib in '' ssleay32 ssl; do
8745 if test -z "$ac_lib"; then
8746 ac_res="none required"
8749 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8751 if ac_fn_c_try_link "$LINENO"; then :
8752 ac_cv_search_SSL_library_init=$ac_res
8754 rm -f core conftest.err conftest.$ac_objext \
8756 if ${ac_cv_search_SSL_library_init+:} false; then :
8760 if ${ac_cv_search_SSL_library_init+:} false; then :
8763 ac_cv_search_SSL_library_init=no
8766 LIBS=$ac_func_search_save_LIBS
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_library_init" >&5
8769 $as_echo "$ac_cv_search_SSL_library_init" >&6; }
8770 ac_res=$ac_cv_search_SSL_library_init
8771 if test "$ac_res" != no; then :
8772 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8775 as_fn_error $? "library 'ssleay32' or 'ssl' is required for OpenSSL" "$LINENO" 5
8779 for ac_func in SSL_get_current_compression
8781 ac_fn_c_check_func "$LINENO" "SSL_get_current_compression" "ac_cv_func_SSL_get_current_compression"
8782 if test "x$ac_cv_func_SSL_get_current_compression" = xyes; then :
8783 cat >>confdefs.h <<_ACEOF
8784 #define HAVE_SSL_GET_CURRENT_COMPRESSION 1
8792 if test "$with_pam" = yes ; then
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
8794 $as_echo_n "checking for pam_start in -lpam... " >&6; }
8795 if ${ac_cv_lib_pam_pam_start+:} false; then :
8796 $as_echo_n "(cached) " >&6
8798 ac_check_lib_save_LIBS=$LIBS
8800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8801 /* end confdefs.h. */
8803 /* Override any GCC internal prototype to avoid an error.
8804 Use char because int might match the return type of a GCC
8805 builtin and then its argument prototype would still apply. */
8813 return pam_start ();
8818 if ac_fn_c_try_link "$LINENO"; then :
8819 ac_cv_lib_pam_pam_start=yes
8821 ac_cv_lib_pam_pam_start=no
8823 rm -f core conftest.err conftest.$ac_objext \
8824 conftest$ac_exeext conftest.$ac_ext
8825 LIBS=$ac_check_lib_save_LIBS
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
8828 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
8829 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
8830 cat >>confdefs.h <<_ACEOF
8831 #define HAVE_LIBPAM 1
8837 as_fn_error $? "library 'pam' is required for PAM" "$LINENO" 5
8842 if test "$with_libxml" = yes ; then
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSaveToBuffer in -lxml2" >&5
8844 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
8845 if ${ac_cv_lib_xml2_xmlSaveToBuffer+:} false; then :
8846 $as_echo_n "(cached) " >&6
8848 ac_check_lib_save_LIBS=$LIBS
8850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8851 /* end confdefs.h. */
8853 /* Override any GCC internal prototype to avoid an error.
8854 Use char because int might match the return type of a GCC
8855 builtin and then its argument prototype would still apply. */
8859 char xmlSaveToBuffer ();
8863 return xmlSaveToBuffer ();
8868 if ac_fn_c_try_link "$LINENO"; then :
8869 ac_cv_lib_xml2_xmlSaveToBuffer=yes
8871 ac_cv_lib_xml2_xmlSaveToBuffer=no
8873 rm -f core conftest.err conftest.$ac_objext \
8874 conftest$ac_exeext conftest.$ac_ext
8875 LIBS=$ac_check_lib_save_LIBS
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
8878 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
8879 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = xyes; then :
8880 cat >>confdefs.h <<_ACEOF
8881 #define HAVE_LIBXML2 1
8887 as_fn_error $? "library 'xml2' (version >= 2.6.23) is required for XML support" "$LINENO" 5
8892 if test "$with_libxslt" = yes ; then
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xsltCleanupGlobals in -lxslt" >&5
8894 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
8895 if ${ac_cv_lib_xslt_xsltCleanupGlobals+:} false; then :
8896 $as_echo_n "(cached) " >&6
8898 ac_check_lib_save_LIBS=$LIBS
8900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8901 /* end confdefs.h. */
8903 /* Override any GCC internal prototype to avoid an error.
8904 Use char because int might match the return type of a GCC
8905 builtin and then its argument prototype would still apply. */
8909 char xsltCleanupGlobals ();
8913 return xsltCleanupGlobals ();
8918 if ac_fn_c_try_link "$LINENO"; then :
8919 ac_cv_lib_xslt_xsltCleanupGlobals=yes
8921 ac_cv_lib_xslt_xsltCleanupGlobals=no
8923 rm -f core conftest.err conftest.$ac_objext \
8924 conftest$ac_exeext conftest.$ac_ext
8925 LIBS=$ac_check_lib_save_LIBS
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
8928 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
8929 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = xyes; then :
8930 cat >>confdefs.h <<_ACEOF
8931 #define HAVE_LIBXSLT 1
8937 as_fn_error $? "library 'xslt' is required for XSLT support" "$LINENO" 5
8942 # for contrib/sepgsql
8943 if test "$with_selinux" = yes; then
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for security_compute_create_name in -lselinux" >&5
8945 $as_echo_n "checking for security_compute_create_name in -lselinux... " >&6; }
8946 if ${ac_cv_lib_selinux_security_compute_create_name+:} false; then :
8947 $as_echo_n "(cached) " >&6
8949 ac_check_lib_save_LIBS=$LIBS
8950 LIBS="-lselinux $LIBS"
8951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8952 /* end confdefs.h. */
8954 /* Override any GCC internal prototype to avoid an error.
8955 Use char because int might match the return type of a GCC
8956 builtin and then its argument prototype would still apply. */
8960 char security_compute_create_name ();
8964 return security_compute_create_name ();
8969 if ac_fn_c_try_link "$LINENO"; then :
8970 ac_cv_lib_selinux_security_compute_create_name=yes
8972 ac_cv_lib_selinux_security_compute_create_name=no
8974 rm -f core conftest.err conftest.$ac_objext \
8975 conftest$ac_exeext conftest.$ac_ext
8976 LIBS=$ac_check_lib_save_LIBS
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_security_compute_create_name" >&5
8979 $as_echo "$ac_cv_lib_selinux_security_compute_create_name" >&6; }
8980 if test "x$ac_cv_lib_selinux_security_compute_create_name" = xyes; then :
8981 cat >>confdefs.h <<_ACEOF
8982 #define HAVE_LIBSELINUX 1
8985 LIBS="-lselinux $LIBS"
8988 as_fn_error $? "library 'libselinux', version 2.1.10 or newer, is required for SELinux support" "$LINENO" 5
8993 # for contrib/uuid-ossp
8994 if test "$with_uuid" = bsd ; then
8995 # On BSD, the UUID functions are in libc
8996 ac_fn_c_check_func "$LINENO" "uuid_to_string" "ac_cv_func_uuid_to_string"
8997 if test "x$ac_cv_func_uuid_to_string" = xyes; then :
9000 as_fn_error $? "BSD UUID functions are not present" "$LINENO" 5
9003 elif test "$with_uuid" = e2fs ; then
9004 # On OS X, the UUID functions are in libc
9005 ac_fn_c_check_func "$LINENO" "uuid_generate" "ac_cv_func_uuid_generate"
9006 if test "x$ac_cv_func_uuid_generate" = xyes; then :
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
9010 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
9011 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
9012 $as_echo_n "(cached) " >&6
9014 ac_check_lib_save_LIBS=$LIBS
9016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9017 /* end confdefs.h. */
9019 /* Override any GCC internal prototype to avoid an error.
9020 Use char because int might match the return type of a GCC
9021 builtin and then its argument prototype would still apply. */
9025 char uuid_generate ();
9029 return uuid_generate ();
9034 if ac_fn_c_try_link "$LINENO"; then :
9035 ac_cv_lib_uuid_uuid_generate=yes
9037 ac_cv_lib_uuid_uuid_generate=no
9039 rm -f core conftest.err conftest.$ac_objext \
9040 conftest$ac_exeext conftest.$ac_ext
9041 LIBS=$ac_check_lib_save_LIBS
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
9044 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
9045 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
9048 as_fn_error $? "library 'uuid' is required for E2FS UUID" "$LINENO" 5
9053 elif test "$with_uuid" = ossp ; then
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_export in -lossp-uuid" >&5
9055 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
9056 if ${ac_cv_lib_ossp_uuid_uuid_export+:} false; then :
9057 $as_echo_n "(cached) " >&6
9059 ac_check_lib_save_LIBS=$LIBS
9060 LIBS="-lossp-uuid $LIBS"
9061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9062 /* end confdefs.h. */
9064 /* Override any GCC internal prototype to avoid an error.
9065 Use char because int might match the return type of a GCC
9066 builtin and then its argument prototype would still apply. */
9070 char uuid_export ();
9074 return uuid_export ();
9079 if ac_fn_c_try_link "$LINENO"; then :
9080 ac_cv_lib_ossp_uuid_uuid_export=yes
9082 ac_cv_lib_ossp_uuid_uuid_export=no
9084 rm -f core conftest.err conftest.$ac_objext \
9085 conftest$ac_exeext conftest.$ac_ext
9086 LIBS=$ac_check_lib_save_LIBS
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
9089 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
9090 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = xyes; then :
9091 UUID_LIBS="-lossp-uuid"
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_export in -luuid" >&5
9094 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
9095 if ${ac_cv_lib_uuid_uuid_export+:} false; then :
9096 $as_echo_n "(cached) " >&6
9098 ac_check_lib_save_LIBS=$LIBS
9100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9101 /* end confdefs.h. */
9103 /* Override any GCC internal prototype to avoid an error.
9104 Use char because int might match the return type of a GCC
9105 builtin and then its argument prototype would still apply. */
9109 char uuid_export ();
9113 return uuid_export ();
9118 if ac_fn_c_try_link "$LINENO"; then :
9119 ac_cv_lib_uuid_uuid_export=yes
9121 ac_cv_lib_uuid_uuid_export=no
9123 rm -f core conftest.err conftest.$ac_objext \
9124 conftest$ac_exeext conftest.$ac_ext
9125 LIBS=$ac_check_lib_save_LIBS
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_export" >&5
9128 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
9129 if test "x$ac_cv_lib_uuid_uuid_export" = xyes; then :
9132 as_fn_error $? "library 'ossp-uuid' or 'uuid' is required for OSSP UUID" "$LINENO" 5
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9146 $as_echo_n "checking for ANSI C header files... " >&6; }
9147 if ${ac_cv_header_stdc+:} false; then :
9148 $as_echo_n "(cached) " >&6
9150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9151 /* end confdefs.h. */
9165 if ac_fn_c_try_compile "$LINENO"; then :
9166 ac_cv_header_stdc=yes
9168 ac_cv_header_stdc=no
9170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9172 if test $ac_cv_header_stdc = yes; then
9173 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9175 /* end confdefs.h. */
9179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9180 $EGREP "memchr" >/dev/null 2>&1; then :
9183 ac_cv_header_stdc=no
9189 if test $ac_cv_header_stdc = yes; then
9190 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9192 /* end confdefs.h. */
9196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9197 $EGREP "free" >/dev/null 2>&1; then :
9200 ac_cv_header_stdc=no
9206 if test $ac_cv_header_stdc = yes; then
9207 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9208 if test "$cross_compiling" = yes; then :
9211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9212 /* end confdefs.h. */
9215 #if ((' ' & 0x0FF) == 0x020)
9216 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9217 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9219 # define ISLOWER(c) \
9220 (('a' <= (c) && (c) <= 'i') \
9221 || ('j' <= (c) && (c) <= 'r') \
9222 || ('s' <= (c) && (c) <= 'z'))
9223 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9226 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9231 for (i = 0; i < 256; i++)
9232 if (XOR (islower (i), ISLOWER (i))
9233 || toupper (i) != TOUPPER (i))
9238 if ac_fn_c_try_run "$LINENO"; then :
9241 ac_cv_header_stdc=no
9243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9244 conftest.$ac_objext conftest.beam conftest.$ac_ext
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9250 $as_echo "$ac_cv_header_stdc" >&6; }
9251 if test $ac_cv_header_stdc = yes; then
9253 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9257 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9258 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9259 inttypes.h stdint.h unistd.h
9261 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9262 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9264 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9265 cat >>confdefs.h <<_ACEOF
9266 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9274 for ac_header in atomic.h crypt.h dld.h fp_class.h getopt.h ieeefp.h ifaddrs.h langinfo.h mbarrier.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
9276 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9277 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9278 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9279 cat >>confdefs.h <<_ACEOF
9280 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9288 # On BSD, test for net/if.h will fail unless sys/socket.h
9289 # is included first.
9290 for ac_header in net/if.h
9292 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
9293 #ifdef HAVE_SYS_SOCKET_H
9294 #include <sys/socket.h>
9298 if test "x$ac_cv_header_net_if_h" = xyes; then :
9299 cat >>confdefs.h <<_ACEOF
9300 #define HAVE_NET_IF_H 1
9308 # On OpenBSD, test for sys/ucred.h will fail unless sys/param.h
9309 # is included first.
9310 for ac_header in sys/ucred.h
9312 ac_fn_c_check_header_compile "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default
9313 #include <sys/param.h>
9316 if test "x$ac_cv_header_sys_ucred_h" = xyes; then :
9317 cat >>confdefs.h <<_ACEOF
9318 #define HAVE_SYS_UCRED_H 1
9326 # At least on IRIX, test for netinet/tcp.h will fail unless
9327 # netinet/in.h is included first.
9328 for ac_header in netinet/in.h
9330 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
9331 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
9332 cat >>confdefs.h <<_ACEOF
9333 #define HAVE_NETINET_IN_H 1
9340 for ac_header in netinet/tcp.h
9342 ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default
9343 #ifdef HAVE_NETINET_IN_H
9344 #include <netinet/in.h>
9348 if test "x$ac_cv_header_netinet_tcp_h" = xyes; then :
9349 cat >>confdefs.h <<_ACEOF
9350 #define HAVE_NETINET_TCP_H 1
9358 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
9359 for ac_header in readline/readline.h
9361 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
9362 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
9363 cat >>confdefs.h <<_ACEOF
9364 #define HAVE_READLINE_READLINE_H 1
9368 for ac_header in readline.h
9370 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
9371 if test "x$ac_cv_header_readline_h" = xyes; then :
9372 cat >>confdefs.h <<_ACEOF
9373 #define HAVE_READLINE_H 1
9377 as_fn_error $? "readline header not found
9378 If you have readline already installed, see config.log for details on the
9379 failure. It is possible the compiler isn't looking in the proper directory.
9380 Use --without-readline to disable readline support." "$LINENO" 5
9389 for ac_header in readline/history.h
9391 ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
9392 if test "x$ac_cv_header_readline_history_h" = xyes; then :
9393 cat >>confdefs.h <<_ACEOF
9394 #define HAVE_READLINE_HISTORY_H 1
9398 for ac_header in history.h
9400 ac_fn_c_check_header_mongrel "$LINENO" "history.h" "ac_cv_header_history_h" "$ac_includes_default"
9401 if test "x$ac_cv_header_history_h" = xyes; then :
9402 cat >>confdefs.h <<_ACEOF
9403 #define HAVE_HISTORY_H 1
9407 as_fn_error $? "history header not found
9408 If you have readline already installed, see config.log for details on the
9409 failure. It is possible the compiler isn't looking in the proper directory.
9410 Use --without-readline to disable readline support." "$LINENO" 5
9421 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
9422 # Some installations of libedit usurp /usr/include/readline/, which seems
9423 # bad practice, since in combined installations readline will have its headers
9424 # there. We might have to resort to AC_EGREP checks to make sure we found
9425 # the proper header...
9426 for ac_header in editline/readline.h
9428 ac_fn_c_check_header_mongrel "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
9429 if test "x$ac_cv_header_editline_readline_h" = xyes; then :
9430 cat >>confdefs.h <<_ACEOF
9431 #define HAVE_EDITLINE_READLINE_H 1
9435 for ac_header in readline.h
9437 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
9438 if test "x$ac_cv_header_readline_h" = xyes; then :
9439 cat >>confdefs.h <<_ACEOF
9440 #define HAVE_READLINE_H 1
9444 for ac_header in readline/readline.h
9446 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
9447 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
9448 cat >>confdefs.h <<_ACEOF
9449 #define HAVE_READLINE_READLINE_H 1
9453 as_fn_error $? "readline header not found
9454 If you have libedit already installed, see config.log for details on the
9455 failure. It is possible the compiler isn't looking in the proper directory.
9456 Use --without-readline to disable libedit support." "$LINENO" 5
9469 # Note: in a libedit installation, history.h is sometimes a dummy, and may
9470 # not be there at all. Hence, don't complain if not found. We must check
9471 # though, since in yet other versions it is an independent header.
9472 for ac_header in editline/history.h
9474 ac_fn_c_check_header_mongrel "$LINENO" "editline/history.h" "ac_cv_header_editline_history_h" "$ac_includes_default"
9475 if test "x$ac_cv_header_editline_history_h" = xyes; then :
9476 cat >>confdefs.h <<_ACEOF
9477 #define HAVE_EDITLINE_HISTORY_H 1
9481 for ac_header in history.h
9483 ac_fn_c_check_header_mongrel "$LINENO" "history.h" "ac_cv_header_history_h" "$ac_includes_default"
9484 if test "x$ac_cv_header_history_h" = xyes; then :
9485 cat >>confdefs.h <<_ACEOF
9486 #define HAVE_HISTORY_H 1
9490 for ac_header in readline/history.h
9492 ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
9493 if test "x$ac_cv_header_readline_history_h" = xyes; then :
9494 cat >>confdefs.h <<_ACEOF
9495 #define HAVE_READLINE_HISTORY_H 1
9512 if test "$with_zlib" = yes; then
9513 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
9514 if test "x$ac_cv_header_zlib_h" = xyes; then :
9517 as_fn_error $? "zlib header not found
9518 If you have zlib already installed, see config.log for details on the
9519 failure. It is possible the compiler isn't looking in the proper directory.
9520 Use --without-zlib to disable zlib support." "$LINENO" 5
9526 if test "$with_gssapi" = yes ; then
9527 for ac_header in gssapi/gssapi.h
9529 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
9530 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
9531 cat >>confdefs.h <<_ACEOF
9532 #define HAVE_GSSAPI_GSSAPI_H 1
9536 for ac_header in gssapi.h
9538 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
9539 if test "x$ac_cv_header_gssapi_h" = xyes; then :
9540 cat >>confdefs.h <<_ACEOF
9541 #define HAVE_GSSAPI_H 1
9545 as_fn_error $? "gssapi.h header file is required for GSSAPI" "$LINENO" 5
9556 if test "$with_openssl" = yes ; then
9557 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
9558 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
9561 as_fn_error $? "header file <openssl/ssl.h> is required for OpenSSL" "$LINENO" 5
9565 ac_fn_c_check_header_mongrel "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default"
9566 if test "x$ac_cv_header_openssl_err_h" = xyes; then :
9569 as_fn_error $? "header file <openssl/err.h> is required for OpenSSL" "$LINENO" 5
9575 if test "$with_pam" = yes ; then
9576 for ac_header in security/pam_appl.h
9578 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
9579 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
9580 cat >>confdefs.h <<_ACEOF
9581 #define HAVE_SECURITY_PAM_APPL_H 1
9585 for ac_header in pam/pam_appl.h
9587 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
9588 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
9589 cat >>confdefs.h <<_ACEOF
9590 #define HAVE_PAM_PAM_APPL_H 1
9594 as_fn_error $? "header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." "$LINENO" 5
9605 if test "$with_libxml" = yes ; then
9606 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
9607 if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
9610 as_fn_error $? "header file <libxml/parser.h> is required for XML support" "$LINENO" 5
9616 if test "$with_libxslt" = yes ; then
9617 ac_fn_c_check_header_mongrel "$LINENO" "libxslt/xslt.h" "ac_cv_header_libxslt_xslt_h" "$ac_includes_default"
9618 if test "x$ac_cv_header_libxslt_xslt_h" = xyes; then :
9621 as_fn_error $? "header file <libxslt/xslt.h> is required for XSLT support" "$LINENO" 5
9627 if test "$with_ldap" = yes ; then
9628 if test "$PORTNAME" != "win32"; then
9629 for ac_header in ldap.h
9631 ac_fn_c_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
9632 if test "x$ac_cv_header_ldap_h" = xyes; then :
9633 cat >>confdefs.h <<_ACEOF
9634 #define HAVE_LDAP_H 1
9638 as_fn_error $? "header file <ldap.h> is required for LDAP" "$LINENO" 5
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible LDAP implementation" >&5
9644 $as_echo_n "checking for compatible LDAP implementation... " >&6; }
9645 if ${pgac_cv_ldap_safe+:} false; then :
9646 $as_echo_n "(cached) " >&6
9648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9649 /* end confdefs.h. */
9651 #if !defined(LDAP_VENDOR_VERSION) || \
9652 (defined(LDAP_API_FEATURE_X_OPENLDAP) && \
9653 LDAP_VENDOR_VERSION >= 20424 && LDAP_VENDOR_VERSION <= 20431)
9664 if ac_fn_c_try_compile "$LINENO"; then :
9665 pgac_cv_ldap_safe=yes
9667 pgac_cv_ldap_safe=no
9669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_ldap_safe" >&5
9672 $as_echo "$pgac_cv_ldap_safe" >&6; }
9674 if test "$pgac_cv_ldap_safe" != yes; then
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9676 *** With OpenLDAP versions 2.4.24 through 2.4.31, inclusive, each backend
9677 *** process that loads libpq (via WAL receiver, dblink, or postgres_fdw) and
9678 *** also uses LDAP will crash on exit." >&5
9679 $as_echo "$as_me: WARNING:
9680 *** With OpenLDAP versions 2.4.24 through 2.4.31, inclusive, each backend
9681 *** process that loads libpq (via WAL receiver, dblink, or postgres_fdw) and
9682 *** also uses LDAP will crash on exit." >&2;}
9685 for ac_header in winldap.h
9687 ac_fn_c_check_header_compile "$LINENO" "winldap.h" "ac_cv_header_winldap_h" "$ac_includes_default
9688 #include <windows.h>
9691 if test "x$ac_cv_header_winldap_h" = xyes; then :
9692 cat >>confdefs.h <<_ACEOF
9693 #define HAVE_WINLDAP_H 1
9697 as_fn_error $? "header file <winldap.h> is required for LDAP" "$LINENO" 5
9705 if test "$with_bonjour" = yes ; then
9706 ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
9707 if test "x$ac_cv_header_dns_sd_h" = xyes; then :
9710 as_fn_error $? "header file <dns_sd.h> is required for Bonjour" "$LINENO" 5
9716 # for contrib/uuid-ossp
9717 if test "$with_uuid" = bsd ; then
9718 for ac_header in uuid.h
9720 ac_fn_c_check_header_mongrel "$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
9721 if test "x$ac_cv_header_uuid_h" = xyes; then :
9722 cat >>confdefs.h <<_ACEOF
9723 #define HAVE_UUID_H 1
9725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9726 /* end confdefs.h. */
9730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9731 $EGREP "uuid_to_string" >/dev/null 2>&1; then :
9734 as_fn_error $? "header file <uuid.h> does not match BSD UUID library" "$LINENO" 5
9739 as_fn_error $? "header file <uuid.h> is required for BSD UUID" "$LINENO" 5
9744 elif test "$with_uuid" = e2fs ; then
9745 for ac_header in uuid/uuid.h
9747 ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
9748 if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
9749 cat >>confdefs.h <<_ACEOF
9750 #define HAVE_UUID_UUID_H 1
9752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9753 /* end confdefs.h. */
9754 #include <uuid/uuid.h>
9757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9758 $EGREP "uuid_generate" >/dev/null 2>&1; then :
9761 as_fn_error $? "header file <uuid/uuid.h> does not match E2FS UUID library" "$LINENO" 5
9766 for ac_header in uuid.h
9768 ac_fn_c_check_header_mongrel "$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
9769 if test "x$ac_cv_header_uuid_h" = xyes; then :
9770 cat >>confdefs.h <<_ACEOF
9771 #define HAVE_UUID_H 1
9773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9774 /* end confdefs.h. */
9778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9779 $EGREP "uuid_generate" >/dev/null 2>&1; then :
9782 as_fn_error $? "header file <uuid.h> does not match E2FS UUID library" "$LINENO" 5
9787 as_fn_error $? "header file <uuid/uuid.h> or <uuid.h> is required for E2FS UUID" "$LINENO" 5
9796 elif test "$with_uuid" = ossp ; then
9797 for ac_header in ossp/uuid.h
9799 ac_fn_c_check_header_mongrel "$LINENO" "ossp/uuid.h" "ac_cv_header_ossp_uuid_h" "$ac_includes_default"
9800 if test "x$ac_cv_header_ossp_uuid_h" = xyes; then :
9801 cat >>confdefs.h <<_ACEOF
9802 #define HAVE_OSSP_UUID_H 1
9804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9805 /* end confdefs.h. */
9806 #include <ossp/uuid.h>
9809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9810 $EGREP "uuid_export" >/dev/null 2>&1; then :
9813 as_fn_error $? "header file <ossp/uuid.h> does not match OSSP UUID library" "$LINENO" 5
9818 for ac_header in uuid.h
9820 ac_fn_c_check_header_mongrel "$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
9821 if test "x$ac_cv_header_uuid_h" = xyes; then :
9822 cat >>confdefs.h <<_ACEOF
9823 #define HAVE_UUID_H 1
9825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9826 /* end confdefs.h. */
9830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9831 $EGREP "uuid_export" >/dev/null 2>&1; then :
9834 as_fn_error $? "header file <uuid.h> does not match OSSP UUID library" "$LINENO" 5
9839 as_fn_error $? "header file <ossp/uuid.h> or <uuid.h> is required for OSSP UUID" "$LINENO" 5
9850 if test "$PORTNAME" = "win32" ; then
9851 for ac_header in crtdefs.h
9853 ac_fn_c_check_header_mongrel "$LINENO" "crtdefs.h" "ac_cv_header_crtdefs_h" "$ac_includes_default"
9854 if test "x$ac_cv_header_crtdefs_h" = xyes; then :
9855 cat >>confdefs.h <<_ACEOF
9856 #define HAVE_CRTDEFS_H 1
9866 ## Types, structures, compiler characteristics
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9870 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9871 if ${ac_cv_c_bigendian+:} false; then :
9872 $as_echo_n "(cached) " >&6
9874 ac_cv_c_bigendian=unknown
9875 # See if we're dealing with a universal compiler.
9876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9877 /* end confdefs.h. */
9878 #ifndef __APPLE_CC__
9879 not a universal capable compiler
9884 if ac_fn_c_try_compile "$LINENO"; then :
9886 # Check for potential -arch flags. It is not universal unless
9887 # there are at least two -arch flags with different values.
9890 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9891 if test -n "$ac_prev"; then
9893 i?86 | x86_64 | ppc | ppc64)
9894 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9897 ac_cv_c_bigendian=universal
9903 elif test "x$ac_word" = "x-arch"; then
9908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9909 if test $ac_cv_c_bigendian = unknown; then
9910 # See if sys/param.h defines the BYTE_ORDER macro.
9911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9912 /* end confdefs.h. */
9913 #include <sys/types.h>
9914 #include <sys/param.h>
9919 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9920 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9929 if ac_fn_c_try_compile "$LINENO"; then :
9930 # It does; now see whether it defined to BIG_ENDIAN or not.
9931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9932 /* end confdefs.h. */
9933 #include <sys/types.h>
9934 #include <sys/param.h>
9939 #if BYTE_ORDER != BIG_ENDIAN
9947 if ac_fn_c_try_compile "$LINENO"; then :
9948 ac_cv_c_bigendian=yes
9950 ac_cv_c_bigendian=no
9952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9956 if test $ac_cv_c_bigendian = unknown; then
9957 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9959 /* end confdefs.h. */
9965 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9973 if ac_fn_c_try_compile "$LINENO"; then :
9974 # It does; now see whether it defined to _BIG_ENDIAN or not.
9975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9976 /* end confdefs.h. */
9990 if ac_fn_c_try_compile "$LINENO"; then :
9991 ac_cv_c_bigendian=yes
9993 ac_cv_c_bigendian=no
9995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9999 if test $ac_cv_c_bigendian = unknown; then
10000 # Compile a test program.
10001 if test "$cross_compiling" = yes; then :
10002 # Try to guess by grepping values from an object file.
10003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10004 /* end confdefs.h. */
10005 short int ascii_mm[] =
10006 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10007 short int ascii_ii[] =
10008 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10009 int use_ascii (int i) {
10010 return ascii_mm[i] + ascii_ii[i];
10012 short int ebcdic_ii[] =
10013 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10014 short int ebcdic_mm[] =
10015 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10016 int use_ebcdic (int i) {
10017 return ebcdic_mm[i] + ebcdic_ii[i];
10024 return use_ascii (foo) == use_ebcdic (foo);
10029 if ac_fn_c_try_compile "$LINENO"; then :
10030 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10031 ac_cv_c_bigendian=yes
10033 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10034 if test "$ac_cv_c_bigendian" = unknown; then
10035 ac_cv_c_bigendian=no
10037 # finding both strings is unlikely to happen, but who knows?
10038 ac_cv_c_bigendian=unknown
10042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10045 /* end confdefs.h. */
10046 $ac_includes_default
10051 /* Are we little or big endian? From Harbison&Steele. */
10055 char c[sizeof (long int)];
10058 return u.c[sizeof (long int) - 1] == 1;
10064 if ac_fn_c_try_run "$LINENO"; then :
10065 ac_cv_c_bigendian=no
10067 ac_cv_c_bigendian=yes
10069 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10070 conftest.$ac_objext conftest.beam conftest.$ac_ext
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10076 $as_echo "$ac_cv_c_bigendian" >&6; }
10077 case $ac_cv_c_bigendian in #(
10079 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10085 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10089 as_fn_error $? "unknown endianness
10090 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
10094 $as_echo_n "checking for inline... " >&6; }
10095 if ${ac_cv_c_inline+:} false; then :
10096 $as_echo_n "(cached) " >&6
10099 for ac_kw in inline __inline__ __inline; do
10100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10101 /* end confdefs.h. */
10102 #ifndef __cplusplus
10104 static $ac_kw foo_t static_foo () {return 0; }
10105 $ac_kw foo_t foo () {return 0; }
10109 if ac_fn_c_try_compile "$LINENO"; then :
10110 ac_cv_c_inline=$ac_kw
10112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10113 test "$ac_cv_c_inline" != no && break
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
10118 $as_echo "$ac_cv_c_inline" >&6; }
10120 case $ac_cv_c_inline in
10123 case $ac_cv_c_inline in
10125 *) ac_val=$ac_cv_c_inline;;
10127 cat >>confdefs.h <<_ACEOF
10128 #ifndef __cplusplus
10129 #define inline $ac_val
10135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quiet inline (no complaint if unreferenced)" >&5
10136 $as_echo_n "checking for quiet inline (no complaint if unreferenced)... " >&6; }
10137 if ${pgac_cv_c_inline_quietly+:} false; then :
10138 $as_echo_n "(cached) " >&6
10140 pgac_cv_c_inline_quietly=no
10141 if test "$ac_cv_c_inline" != no; then
10142 pgac_c_inline_save_werror=$ac_c_werror_flag
10143 ac_c_werror_flag=yes
10144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10145 /* end confdefs.h. */
10146 #include "$srcdir/config/test_quiet_include.h"
10155 if ac_fn_c_try_link "$LINENO"; then :
10156 pgac_cv_c_inline_quietly=yes
10158 rm -f core conftest.err conftest.$ac_objext \
10159 conftest$ac_exeext conftest.$ac_ext
10160 ac_c_werror_flag=$pgac_c_inline_save_werror
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_c_inline_quietly" >&5
10164 $as_echo "$pgac_cv_c_inline_quietly" >&6; }
10165 if test "$pgac_cv_c_inline_quietly" != no; then
10167 cat >>confdefs.h <<_ACEOF
10168 #define PG_USE_INLINE 1
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf format archetype" >&5
10174 $as_echo_n "checking for printf format archetype... " >&6; }
10175 if ${pgac_cv_printf_archetype+:} false; then :
10176 $as_echo_n "(cached) " >&6
10178 ac_save_c_werror_flag=$ac_c_werror_flag
10179 ac_c_werror_flag=yes
10180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10181 /* end confdefs.h. */
10183 pgac_write(int ignore, const char *fmt,...)
10184 __attribute__((format(gnu_printf, 2, 3)));
10193 if ac_fn_c_try_compile "$LINENO"; then :
10194 pgac_cv_printf_archetype=gnu_printf
10196 pgac_cv_printf_archetype=printf
10198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10199 ac_c_werror_flag=$ac_save_c_werror_flag
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_printf_archetype" >&5
10202 $as_echo "$pgac_cv_printf_archetype" >&6; }
10204 cat >>confdefs.h <<_ACEOF
10205 #define PG_PRINTF_ATTRIBUTE $pgac_cv_printf_archetype
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
10211 $as_echo_n "checking for flexible array members... " >&6; }
10212 if ${ac_cv_c_flexmember+:} false; then :
10213 $as_echo_n "(cached) " >&6
10215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10216 /* end confdefs.h. */
10217 #include <stdlib.h>
10219 #include <stddef.h>
10220 struct s { int n; double d[]; };
10224 int m = getchar ();
10225 struct s *p = malloc (offsetof (struct s, d)
10226 + m * sizeof (double));
10228 return p->d != (double *) NULL;
10233 if ac_fn_c_try_compile "$LINENO"; then :
10234 ac_cv_c_flexmember=yes
10236 ac_cv_c_flexmember=no
10238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
10241 $as_echo "$ac_cv_c_flexmember" >&6; }
10242 if test $ac_cv_c_flexmember = yes; then
10244 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
10247 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed types" >&5
10252 $as_echo_n "checking for signed types... " >&6; }
10253 if ${pgac_cv_c_signed+:} false; then :
10254 $as_echo_n "(cached) " >&6
10256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10257 /* end confdefs.h. */
10262 signed char c; signed short s; signed int i;
10267 if ac_fn_c_try_compile "$LINENO"; then :
10268 pgac_cv_c_signed=yes
10270 pgac_cv_c_signed=no
10272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_c_signed" >&5
10275 $as_echo "$pgac_cv_c_signed" >&6; }
10276 if test x"$pgac_cv_c_signed" = xno ; then
10278 $as_echo "#define signed /**/" >>confdefs.h
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __func__" >&5
10282 $as_echo_n "checking for __func__... " >&6; }
10283 if ${pgac_cv_funcname_func_support+:} false; then :
10284 $as_echo_n "(cached) " >&6
10286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10287 /* end confdefs.h. */
10292 printf("%s\n", __func__);
10297 if ac_fn_c_try_compile "$LINENO"; then :
10298 pgac_cv_funcname_func_support=yes
10300 pgac_cv_funcname_func_support=no
10302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_funcname_func_support" >&5
10305 $as_echo "$pgac_cv_funcname_func_support" >&6; }
10306 if test x"$pgac_cv_funcname_func_support" = xyes ; then
10308 $as_echo "#define HAVE_FUNCNAME__FUNC 1" >>confdefs.h
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __FUNCTION__" >&5
10312 $as_echo_n "checking for __FUNCTION__... " >&6; }
10313 if ${pgac_cv_funcname_function_support+:} false; then :
10314 $as_echo_n "(cached) " >&6
10316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10317 /* end confdefs.h. */
10322 printf("%s\n", __FUNCTION__);
10327 if ac_fn_c_try_compile "$LINENO"; then :
10328 pgac_cv_funcname_function_support=yes
10330 pgac_cv_funcname_function_support=no
10332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_funcname_function_support" >&5
10335 $as_echo "$pgac_cv_funcname_function_support" >&6; }
10336 if test x"$pgac_cv_funcname_function_support" = xyes ; then
10338 $as_echo "#define HAVE_FUNCNAME__FUNCTION 1" >>confdefs.h
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Static_assert" >&5
10343 $as_echo_n "checking for _Static_assert... " >&6; }
10344 if ${pgac_cv__static_assert+:} false; then :
10345 $as_echo_n "(cached) " >&6
10347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10348 /* end confdefs.h. */
10353 ({ _Static_assert(1, "foo"); })
10358 if ac_fn_c_try_link "$LINENO"; then :
10359 pgac_cv__static_assert=yes
10361 pgac_cv__static_assert=no
10363 rm -f core conftest.err conftest.$ac_objext \
10364 conftest$ac_exeext conftest.$ac_ext
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__static_assert" >&5
10367 $as_echo "$pgac_cv__static_assert" >&6; }
10368 if test x"$pgac_cv__static_assert" = xyes ; then
10370 $as_echo "#define HAVE__STATIC_ASSERT 1" >>confdefs.h
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_types_compatible_p" >&5
10374 $as_echo_n "checking for __builtin_types_compatible_p... " >&6; }
10375 if ${pgac_cv__types_compatible+:} false; then :
10376 $as_echo_n "(cached) " >&6
10378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10379 /* end confdefs.h. */
10384 int x; static int y[__builtin_types_compatible_p(__typeof__(x), int)];
10389 if ac_fn_c_try_compile "$LINENO"; then :
10390 pgac_cv__types_compatible=yes
10392 pgac_cv__types_compatible=no
10394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__types_compatible" >&5
10397 $as_echo "$pgac_cv__types_compatible" >&6; }
10398 if test x"$pgac_cv__types_compatible" = xyes ; then
10400 $as_echo "#define HAVE__BUILTIN_TYPES_COMPATIBLE_P 1" >>confdefs.h
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap32" >&5
10404 $as_echo_n "checking for __builtin_bswap32... " >&6; }
10405 if ${pgac_cv__builtin_bswap32+:} false; then :
10406 $as_echo_n "(cached) " >&6
10408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10409 /* end confdefs.h. */
10410 static unsigned long int x = __builtin_bswap32(0xaabbccdd);
10419 if ac_fn_c_try_compile "$LINENO"; then :
10420 pgac_cv__builtin_bswap32=yes
10422 pgac_cv__builtin_bswap32=no
10424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_bswap32" >&5
10427 $as_echo "$pgac_cv__builtin_bswap32" >&6; }
10428 if test x"$pgac_cv__builtin_bswap32" = xyes ; then
10430 $as_echo "#define HAVE__BUILTIN_BSWAP32 1" >>confdefs.h
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_constant_p" >&5
10434 $as_echo_n "checking for __builtin_constant_p... " >&6; }
10435 if ${pgac_cv__builtin_constant_p+:} false; then :
10436 $as_echo_n "(cached) " >&6
10438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10439 /* end confdefs.h. */
10440 static int x; static int y[__builtin_constant_p(x) ? x : 1];
10449 if ac_fn_c_try_compile "$LINENO"; then :
10450 pgac_cv__builtin_constant_p=yes
10452 pgac_cv__builtin_constant_p=no
10454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_constant_p" >&5
10457 $as_echo "$pgac_cv__builtin_constant_p" >&6; }
10458 if test x"$pgac_cv__builtin_constant_p" = xyes ; then
10460 $as_echo "#define HAVE__BUILTIN_CONSTANT_P 1" >>confdefs.h
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unreachable" >&5
10464 $as_echo_n "checking for __builtin_unreachable... " >&6; }
10465 if ${pgac_cv__builtin_unreachable+:} false; then :
10466 $as_echo_n "(cached) " >&6
10468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10469 /* end confdefs.h. */
10474 __builtin_unreachable();
10479 if ac_fn_c_try_link "$LINENO"; then :
10480 pgac_cv__builtin_unreachable=yes
10482 pgac_cv__builtin_unreachable=no
10484 rm -f core conftest.err conftest.$ac_objext \
10485 conftest$ac_exeext conftest.$ac_ext
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_unreachable" >&5
10488 $as_echo "$pgac_cv__builtin_unreachable" >&6; }
10489 if test x"$pgac_cv__builtin_unreachable" = xyes ; then
10491 $as_echo "#define HAVE__BUILTIN_UNREACHABLE 1" >>confdefs.h
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __VA_ARGS__" >&5
10495 $as_echo_n "checking for __VA_ARGS__... " >&6; }
10496 if ${pgac_cv__va_args+:} false; then :
10497 $as_echo_n "(cached) " >&6
10499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10500 /* end confdefs.h. */
10505 #define debug(...) fprintf(stderr, __VA_ARGS__)
10506 debug("%s", "blarg");
10512 if ac_fn_c_try_compile "$LINENO"; then :
10513 pgac_cv__va_args=yes
10515 pgac_cv__va_args=no
10517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__va_args" >&5
10520 $as_echo "$pgac_cv__va_args" >&6; }
10521 if test x"$pgac_cv__va_args" = xyes ; then
10523 $as_echo "#define HAVE__VA_ARGS 1" >>confdefs.h
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
10527 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
10528 if ${ac_cv_struct_tm+:} false; then :
10529 $as_echo_n "(cached) " >&6
10531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10532 /* end confdefs.h. */
10533 #include <sys/types.h>
10540 int *p = &tm.tm_sec;
10546 if ac_fn_c_try_compile "$LINENO"; then :
10547 ac_cv_struct_tm=time.h
10549 ac_cv_struct_tm=sys/time.h
10551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
10554 $as_echo "$ac_cv_struct_tm" >&6; }
10555 if test $ac_cv_struct_tm = sys/time.h; then
10557 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
10561 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
10562 #include <$ac_cv_struct_tm>
10565 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
10567 cat >>confdefs.h <<_ACEOF
10568 #define HAVE_STRUCT_TM_TM_ZONE 1
10574 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10576 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
10580 $as_echo_n "checking for tzname... " >&6; }
10581 if ${ac_cv_var_tzname+:} false; then :
10582 $as_echo_n "(cached) " >&6
10584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10585 /* end confdefs.h. */
10587 #ifndef tzname /* For SGI. */
10588 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
10599 if ac_fn_c_try_link "$LINENO"; then :
10600 ac_cv_var_tzname=yes
10602 ac_cv_var_tzname=no
10604 rm -f core conftest.err conftest.$ac_objext \
10605 conftest$ac_exeext conftest.$ac_ext
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
10608 $as_echo "$ac_cv_var_tzname" >&6; }
10609 if test $ac_cv_var_tzname = yes; then
10611 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
10615 ac_fn_c_check_type "$LINENO" "union semun" "ac_cv_type_union_semun" "#include <sys/types.h>
10616 #include <sys/ipc.h>
10617 #include <sys/sem.h>
10619 if test "x$ac_cv_type_union_semun" = xyes; then :
10621 cat >>confdefs.h <<_ACEOF
10622 #define HAVE_UNION_SEMUN 1
10628 ac_fn_c_check_type "$LINENO" "struct sockaddr_un" "ac_cv_type_struct_sockaddr_un" "#include <sys/types.h>
10629 #ifdef HAVE_SYS_UN_H
10630 #include <sys/un.h>
10634 if test "x$ac_cv_type_struct_sockaddr_un" = xyes; then :
10636 $as_echo "#define HAVE_UNIX_SOCKETS 1" >>confdefs.h
10640 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
10641 #ifdef HAVE_SYS_SOCKET_H
10642 #include <sys/socket.h>
10646 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
10648 cat >>confdefs.h <<_ACEOF
10649 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
10655 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
10656 #ifdef HAVE_SYS_SOCKET_H
10657 #include <sys/socket.h>
10661 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
10663 cat >>confdefs.h <<_ACEOF
10664 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
10669 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "#include <sys/types.h>
10670 #ifdef HAVE_SYS_SOCKET_H
10671 #include <sys/socket.h>
10675 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then :
10677 cat >>confdefs.h <<_ACEOF
10678 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
10683 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_len" "ac_cv_member_struct_sockaddr_storage_ss_len" "#include <sys/types.h>
10684 #ifdef HAVE_SYS_SOCKET_H
10685 #include <sys/socket.h>
10689 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = xyes; then :
10691 cat >>confdefs.h <<_ACEOF
10692 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
10697 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_len" "ac_cv_member_struct_sockaddr_storage___ss_len" "#include <sys/types.h>
10698 #ifdef HAVE_SYS_SOCKET_H
10699 #include <sys/socket.h>
10703 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = xyes; then :
10705 cat >>confdefs.h <<_ACEOF
10706 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
10711 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
10712 #ifdef HAVE_SYS_SOCKET_H
10713 #include <sys/socket.h>
10717 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
10719 cat >>confdefs.h <<_ACEOF
10720 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
10726 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
10727 #include <sys/socket.h>
10731 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
10733 cat >>confdefs.h <<_ACEOF
10734 #define HAVE_STRUCT_ADDRINFO 1
10741 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10742 if test "x$ac_cv_type_intptr_t" = xyes; then :
10744 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
10747 for ac_type in 'int' 'long int' 'long long int'; do
10748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10749 /* end confdefs.h. */
10750 $ac_includes_default
10754 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
10755 test_array [0] = 0;
10756 return test_array [0];
10762 if ac_fn_c_try_compile "$LINENO"; then :
10764 cat >>confdefs.h <<_ACEOF
10765 #define intptr_t $ac_type
10770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10771 test -z "$ac_type" && break
10777 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
10778 if test "x$ac_cv_type_uintptr_t" = xyes; then :
10780 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
10783 for ac_type in 'unsigned int' 'unsigned long int' \
10784 'unsigned long long int'; do
10785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10786 /* end confdefs.h. */
10787 $ac_includes_default
10791 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
10792 test_array [0] = 0;
10793 return test_array [0];
10799 if ac_fn_c_try_compile "$LINENO"; then :
10801 cat >>confdefs.h <<_ACEOF
10802 #define uintptr_t $ac_type
10807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10808 test -z "$ac_type" && break
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
10815 $as_echo_n "checking for unsigned long long int... " >&6; }
10816 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
10817 $as_echo_n "(cached) " >&6
10819 ac_cv_type_unsigned_long_long_int=yes
10820 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
10821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10822 /* end confdefs.h. */
10824 /* For now, do not test the preprocessor; as of 2007 there are too many
10825 implementations with broken preprocessors. Perhaps this can
10826 be revisited in 2012. In the meantime, code should not expect
10827 #if to work with literals wider than 32 bits. */
10828 /* Test literals. */
10829 long long int ll = 9223372036854775807ll;
10830 long long int nll = -9223372036854775807LL;
10831 unsigned long long int ull = 18446744073709551615ULL;
10832 /* Test constant expressions. */
10833 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
10835 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
10841 /* Test availability of runtime routines for shift and division. */
10842 long long int llmax = 9223372036854775807ll;
10843 unsigned long long int ullmax = 18446744073709551615ull;
10844 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
10845 | (llmax / ll) | (llmax % ll)
10846 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
10847 | (ullmax / ull) | (ullmax % ull));
10853 if ac_fn_c_try_link "$LINENO"; then :
10856 ac_cv_type_unsigned_long_long_int=no
10858 rm -f core conftest.err conftest.$ac_objext \
10859 conftest$ac_exeext conftest.$ac_ext
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
10863 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
10864 if test $ac_cv_type_unsigned_long_long_int = yes; then
10866 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
10873 $as_echo_n "checking for long long int... " >&6; }
10874 if ${ac_cv_type_long_long_int+:} false; then :
10875 $as_echo_n "(cached) " >&6
10877 ac_cv_type_long_long_int=yes
10878 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
10879 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
10880 if test $ac_cv_type_long_long_int = yes; then
10881 if test "$cross_compiling" = yes; then :
10884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10885 /* end confdefs.h. */
10886 #include <limits.h>
10889 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
10890 # define LLONG_MAX (HALF - 1 + HALF)
10895 long long int n = 1;
10899 long long int m = n << i;
10902 if (LLONG_MAX / 2 < m)
10910 if ac_fn_c_try_run "$LINENO"; then :
10913 ac_cv_type_long_long_int=no
10915 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10916 conftest.$ac_objext conftest.beam conftest.$ac_ext
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
10923 $as_echo "$ac_cv_type_long_long_int" >&6; }
10924 if test $ac_cv_type_long_long_int = yes; then
10926 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale_t" >&5
10932 $as_echo_n "checking for locale_t... " >&6; }
10933 if ${pgac_cv_type_locale_t+:} false; then :
10934 $as_echo_n "(cached) " >&6
10936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10937 /* end confdefs.h. */
10938 #include <locale.h>
10948 if ac_fn_c_try_compile "$LINENO"; then :
10949 pgac_cv_type_locale_t=yes
10951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10952 /* end confdefs.h. */
10953 #include <xlocale.h>
10963 if ac_fn_c_try_compile "$LINENO"; then :
10964 pgac_cv_type_locale_t='yes (in xlocale.h)'
10966 pgac_cv_type_locale_t=no
10968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_locale_t" >&5
10973 $as_echo "$pgac_cv_type_locale_t" >&6; }
10974 if test "$pgac_cv_type_locale_t" != no; then
10976 $as_echo "#define HAVE_LOCALE_T 1" >>confdefs.h
10979 if test "$pgac_cv_type_locale_t" = 'yes (in xlocale.h)'; then
10981 $as_echo "#define LOCALE_T_IN_XLOCALE 1" >>confdefs.h
10985 ac_fn_c_check_type "$LINENO" "struct cmsgcred" "ac_cv_type_struct_cmsgcred" "#include <sys/socket.h>
10986 #include <sys/param.h>
10987 #ifdef HAVE_SYS_UCRED_H
10988 #include <sys/ucred.h>
10991 if test "x$ac_cv_type_struct_cmsgcred" = xyes; then :
10993 cat >>confdefs.h <<_ACEOF
10994 #define HAVE_STRUCT_CMSGCRED 1
11001 ac_fn_c_check_type "$LINENO" "struct option" "ac_cv_type_struct_option" "#ifdef HAVE_GETOPT_H
11002 #include <getopt.h>
11005 if test "x$ac_cv_type_struct_option" = xyes; then :
11007 cat >>confdefs.h <<_ACEOF
11008 #define HAVE_STRUCT_OPTION 1
11015 if test "$with_zlib" = yes; then
11016 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
11017 # did not). While we could work around the lack of z_streamp, it
11018 # seems unwise to encourage people to use such old zlib versions...
11019 ac_fn_c_check_type "$LINENO" "z_streamp" "ac_cv_type_z_streamp" "#include <zlib.h>
11021 if test "x$ac_cv_type_z_streamp" = xyes; then :
11024 as_fn_error $? "zlib version is too old
11025 Use --without-zlib to disable zlib support." "$LINENO" 5
11030 # On PPC, check if assembler supports LWARX instruction's mutex hint bit
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports lwarx hint bit" >&5
11034 $as_echo_n "checking whether assembler supports lwarx hint bit... " >&6; }
11035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11036 /* end confdefs.h. */
11041 int a = 0; int *p = &a; int r;
11042 __asm__ __volatile__ (" lwarx %0,0,%1,1\n" : "=&r"(r) : "r"(p));
11047 if ac_fn_c_try_compile "$LINENO"; then :
11048 pgac_cv_have_ppc_mutex_hint=yes
11050 pgac_cv_have_ppc_mutex_hint=no
11052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_have_ppc_mutex_hint" >&5
11054 $as_echo "$pgac_cv_have_ppc_mutex_hint" >&6; }
11055 if test x"$pgac_cv_have_ppc_mutex_hint" = xyes ; then
11057 $as_echo "#define HAVE_PPC_LWARX_MUTEX_HINT 1" >>confdefs.h
11063 # Check largefile support. You might think this is a system service not a
11064 # compiler characteristic, but you'd be wrong. We must check this before
11065 # probing existence of related functions such as fseeko, since the largefile
11066 # defines can affect what is generated for that.
11067 if test "$PORTNAME" != "win32"; then
11068 # Check whether --enable-largefile was given.
11069 if test "${enable_largefile+set}" = set; then :
11070 enableval=$enable_largefile;
11073 if test "$enable_largefile" != no; then
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11076 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11077 if ${ac_cv_sys_largefile_CC+:} false; then :
11078 $as_echo_n "(cached) " >&6
11080 ac_cv_sys_largefile_CC=no
11081 if test "$GCC" != yes; then
11084 # IRIX 6.2 and later do not support large files by default,
11085 # so use the C compiler's -n32 option if that helps.
11086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11087 /* end confdefs.h. */
11088 #include <sys/types.h>
11089 /* Check that off_t can represent 2**63 - 1 correctly.
11090 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11091 since some C++ compilers masquerading as C compilers
11092 incorrectly reject 9223372036854775807. */
11093 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11094 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11095 && LARGE_OFF_T % 2147483647 == 1)
11105 if ac_fn_c_try_compile "$LINENO"; then :
11108 rm -f core conftest.err conftest.$ac_objext
11110 if ac_fn_c_try_compile "$LINENO"; then :
11111 ac_cv_sys_largefile_CC=' -n32'; break
11113 rm -f core conftest.err conftest.$ac_objext
11117 rm -f conftest.$ac_ext
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11121 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11122 if test "$ac_cv_sys_largefile_CC" != no; then
11123 CC=$CC$ac_cv_sys_largefile_CC
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11127 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11128 if ${ac_cv_sys_file_offset_bits+:} false; then :
11129 $as_echo_n "(cached) " >&6
11132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11133 /* end confdefs.h. */
11134 #include <sys/types.h>
11135 /* Check that off_t can represent 2**63 - 1 correctly.
11136 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11137 since some C++ compilers masquerading as C compilers
11138 incorrectly reject 9223372036854775807. */
11139 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11140 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11141 && LARGE_OFF_T % 2147483647 == 1)
11151 if ac_fn_c_try_compile "$LINENO"; then :
11152 ac_cv_sys_file_offset_bits=no; break
11154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11156 /* end confdefs.h. */
11157 #define _FILE_OFFSET_BITS 64
11158 #include <sys/types.h>
11159 /* Check that off_t can represent 2**63 - 1 correctly.
11160 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11161 since some C++ compilers masquerading as C compilers
11162 incorrectly reject 9223372036854775807. */
11163 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11164 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11165 && LARGE_OFF_T % 2147483647 == 1)
11175 if ac_fn_c_try_compile "$LINENO"; then :
11176 ac_cv_sys_file_offset_bits=64; break
11178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11179 ac_cv_sys_file_offset_bits=unknown
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11184 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11185 case $ac_cv_sys_file_offset_bits in #(
11188 cat >>confdefs.h <<_ACEOF
11189 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11194 if test $ac_cv_sys_file_offset_bits = unknown; then
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11196 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11197 if ${ac_cv_sys_large_files+:} false; then :
11198 $as_echo_n "(cached) " >&6
11201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11202 /* end confdefs.h. */
11203 #include <sys/types.h>
11204 /* Check that off_t can represent 2**63 - 1 correctly.
11205 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11206 since some C++ compilers masquerading as C compilers
11207 incorrectly reject 9223372036854775807. */
11208 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11209 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11210 && LARGE_OFF_T % 2147483647 == 1)
11220 if ac_fn_c_try_compile "$LINENO"; then :
11221 ac_cv_sys_large_files=no; break
11223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11225 /* end confdefs.h. */
11226 #define _LARGE_FILES 1
11227 #include <sys/types.h>
11228 /* Check that off_t can represent 2**63 - 1 correctly.
11229 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11230 since some C++ compilers masquerading as C compilers
11231 incorrectly reject 9223372036854775807. */
11232 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11233 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11234 && LARGE_OFF_T % 2147483647 == 1)
11244 if ac_fn_c_try_compile "$LINENO"; then :
11245 ac_cv_sys_large_files=1; break
11247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11248 ac_cv_sys_large_files=unknown
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11253 $as_echo "$ac_cv_sys_large_files" >&6; }
11254 case $ac_cv_sys_large_files in #(
11257 cat >>confdefs.h <<_ACEOF
11258 #define _LARGE_FILES $ac_cv_sys_large_files
11271 # Check for largefile support (must be after AC_SYS_LARGEFILE)
11272 # The cast to long int works around a bug in the HP C Compiler
11273 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11274 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11275 # This bug is HP SR number 8606223364.
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
11277 $as_echo_n "checking size of off_t... " >&6; }
11278 if ${ac_cv_sizeof_off_t+:} false; then :
11279 $as_echo_n "(cached) " >&6
11281 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
11284 if test "$ac_cv_type_off_t" = yes; then
11285 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11286 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11287 as_fn_error 77 "cannot compute sizeof (off_t)
11288 See \`config.log' for more details" "$LINENO" 5; }
11290 ac_cv_sizeof_off_t=0
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
11296 $as_echo "$ac_cv_sizeof_off_t" >&6; }
11300 cat >>confdefs.h <<_ACEOF
11301 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
11306 # If we don't have largefile support, can't handle segsize >= 2GB.
11307 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
11308 as_fn_error $? "Large file support is not enabled. Segment size cannot be larger than 1GB." "$LINENO" 5
11313 ## Functions, global variables
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int timezone" >&5
11317 $as_echo_n "checking for int timezone... " >&6; }
11318 if ${pgac_cv_var_int_timezone+:} false; then :
11319 $as_echo_n "(cached) " >&6
11321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11322 /* end confdefs.h. */
11329 res = timezone / 60;
11331 res = _timezone / 60;
11337 if ac_fn_c_try_link "$LINENO"; then :
11338 pgac_cv_var_int_timezone=yes
11340 pgac_cv_var_int_timezone=no
11342 rm -f core conftest.err conftest.$ac_objext \
11343 conftest$ac_exeext conftest.$ac_ext
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_timezone" >&5
11346 $as_echo "$pgac_cv_var_int_timezone" >&6; }
11347 if test x"$pgac_cv_var_int_timezone" = xyes ; then
11349 $as_echo "#define HAVE_INT_TIMEZONE 1" >>confdefs.h
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for accept()" >&5
11353 $as_echo_n "checking types of arguments for accept()... " >&6; }
11354 if ${ac_cv_func_accept_return+:} false; then :
11355 $as_echo_n "(cached) " >&6
11357 if ${ac_cv_func_accept_arg1+:} false; then :
11358 $as_echo_n "(cached) " >&6
11360 if ${ac_cv_func_accept_arg2+:} false; then :
11361 $as_echo_n "(cached) " >&6
11363 if ${ac_cv_func_accept_arg3+:} false; then :
11364 $as_echo_n "(cached) " >&6
11366 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL' 'SOCKET WSAAPI'; do
11367 for ac_cv_func_accept_arg1 in 'int' 'unsigned int' 'SOCKET'; do
11368 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
11369 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
11370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11371 /* end confdefs.h. */
11372 #ifdef HAVE_SYS_TYPES_H
11373 #include <sys/types.h>
11375 #ifdef HAVE_SYS_SOCKET_H
11376 #include <sys/socket.h>
11378 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
11387 if ac_fn_c_try_compile "$LINENO"; then :
11388 ac_not_found=no; break 4
11392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11397 if test "$ac_not_found" = yes; then
11398 as_fn_error $? "could not determine argument types" "$LINENO" 5
11400 if test "$ac_cv_func_accept_arg3" = "void"; then
11401 ac_cv_func_accept_arg3=int
11411 { $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
11412 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
11414 cat >>confdefs.h <<_ACEOF
11415 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
11419 cat >>confdefs.h <<_ACEOF
11420 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
11424 cat >>confdefs.h <<_ACEOF
11425 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
11429 cat >>confdefs.h <<_ACEOF
11430 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday takes only one argument" >&5
11435 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
11436 if ${pgac_cv_func_gettimeofday_1arg+:} false; then :
11437 $as_echo_n "(cached) " >&6
11439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11440 /* end confdefs.h. */
11441 #include <sys/time.h>
11445 struct timeval *tp;
11446 struct timezone *tzp;
11447 gettimeofday(tp,tzp);
11452 if ac_fn_c_try_compile "$LINENO"; then :
11453 pgac_cv_func_gettimeofday_1arg=no
11455 pgac_cv_func_gettimeofday_1arg=yes
11457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_gettimeofday_1arg" >&5
11460 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
11461 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
11463 $as_echo "#define GETTIMEOFDAY_1ARG 1" >>confdefs.h
11468 # Some versions of libedit contain strlcpy(), setproctitle(), and other
11469 # symbols that that library has no business exposing to the world. Pending
11470 # acquisition of a clue by those developers, ignore libedit (including its
11471 # possible alias of libreadline) while checking for everything else.
11472 LIBS_including_readline="$LIBS"
11473 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
11475 for ac_func in cbrt dlopen fdatasync getifaddrs getpeerucred getrlimit mbstowcs_l memmove poll pstat pthread_is_threaded_np readlink setproctitle setsid shm_open sigprocmask symlink sync_file_range towlower utime utimes wcstombs wcstombs_l
11477 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11478 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11479 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11480 cat >>confdefs.h <<_ACEOF
11481 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11488 ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
11489 if test "x$ac_cv_func_fseeko" = xyes; then :
11490 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
11493 case " $LIBOBJS " in
11494 *" fseeko.$ac_objext "* ) ;;
11495 *) LIBOBJS="$LIBOBJS fseeko.$ac_objext"
11503 # NetBSD uses a custom fseeko/ftello built on fsetpos/fgetpos
11504 # Mingw uses macros to access Win32 API calls
11507 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
11509 ac_cv_func_fseeko=yes;;
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11512 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
11513 if ${ac_cv_sys_largefile_source+:} false; then :
11514 $as_echo_n "(cached) " >&6
11517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11518 /* end confdefs.h. */
11519 #include <sys/types.h> /* for off_t */
11524 int (*fp) (FILE *, off_t, int) = fseeko;
11525 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11530 if ac_fn_c_try_link "$LINENO"; then :
11531 ac_cv_sys_largefile_source=no; break
11533 rm -f core conftest.err conftest.$ac_objext \
11534 conftest$ac_exeext conftest.$ac_ext
11535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11536 /* end confdefs.h. */
11537 #define _LARGEFILE_SOURCE 1
11538 #include <sys/types.h> /* for off_t */
11543 int (*fp) (FILE *, off_t, int) = fseeko;
11544 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11549 if ac_fn_c_try_link "$LINENO"; then :
11550 ac_cv_sys_largefile_source=1; break
11552 rm -f core conftest.err conftest.$ac_objext \
11553 conftest$ac_exeext conftest.$ac_ext
11554 ac_cv_sys_largefile_source=unknown
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
11559 $as_echo "$ac_cv_sys_largefile_source" >&6; }
11560 case $ac_cv_sys_largefile_source in #(
11563 cat >>confdefs.h <<_ACEOF
11564 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11570 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11571 # in glibc 2.1.3, but that breaks too many other things.
11572 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11573 if test $ac_cv_sys_largefile_source != unknown; then
11575 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
11581 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
11582 # by calling it, 2009-04-02
11583 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
11584 if test "$PORTNAME" != "solaris"; then
11585 for ac_func in posix_fadvise
11587 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
11588 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
11589 cat >>confdefs.h <<_ACEOF
11590 #define HAVE_POSIX_FADVISE 1
11596 ac_fn_c_check_decl "$LINENO" "posix_fadvise" "ac_cv_have_decl_posix_fadvise" "#include <fcntl.h>
11598 if test "x$ac_cv_have_decl_posix_fadvise" = xyes; then :
11604 cat >>confdefs.h <<_ACEOF
11605 #define HAVE_DECL_POSIX_FADVISE $ac_have_decl
11610 ac_fn_c_check_decl "$LINENO" "fdatasync" "ac_cv_have_decl_fdatasync" "#include <unistd.h>
11612 if test "x$ac_cv_have_decl_fdatasync" = xyes; then :
11618 cat >>confdefs.h <<_ACEOF
11619 #define HAVE_DECL_FDATASYNC $ac_have_decl
11622 ac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default"
11623 if test "x$ac_cv_have_decl_strlcat" = xyes; then :
11629 cat >>confdefs.h <<_ACEOF
11630 #define HAVE_DECL_STRLCAT $ac_have_decl
11632 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default"
11633 if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
11639 cat >>confdefs.h <<_ACEOF
11640 #define HAVE_DECL_STRLCPY $ac_have_decl
11643 # This is probably only present on Darwin, but may as well check always
11644 ac_fn_c_check_decl "$LINENO" "F_FULLFSYNC" "ac_cv_have_decl_F_FULLFSYNC" "#include <fcntl.h>
11646 if test "x$ac_cv_have_decl_F_FULLFSYNC" = xyes; then :
11652 cat >>confdefs.h <<_ACEOF
11653 #define HAVE_DECL_F_FULLFSYNC $ac_have_decl
11658 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "$ac_includes_default
11659 #include <netinet/in.h>
11661 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
11663 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PS_STRINGS" >&5
11671 $as_echo_n "checking for PS_STRINGS... " >&6; }
11672 if ${pgac_cv_var_PS_STRINGS+:} false; then :
11673 $as_echo_n "(cached) " >&6
11675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11676 /* end confdefs.h. */
11677 #include <machine/vmparam.h>
11678 #include <sys/exec.h>
11683 PS_STRINGS->ps_nargvstr = 1;
11684 PS_STRINGS->ps_argvstr = "foo";
11689 if ac_fn_c_try_link "$LINENO"; then :
11690 pgac_cv_var_PS_STRINGS=yes
11692 pgac_cv_var_PS_STRINGS=no
11694 rm -f core conftest.err conftest.$ac_objext \
11695 conftest$ac_exeext conftest.$ac_ext
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_PS_STRINGS" >&5
11698 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
11699 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
11701 $as_echo "#define HAVE_PS_STRINGS 1" >>confdefs.h
11706 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
11707 # is missing. Yes, there are machines that have only one. We may
11708 # also decide to use snprintf.c if snprintf() is present but does not
11709 # have all the features we need --- see below.
11711 if test "$PORTNAME" = "win32"; then
11712 # Win32 gets snprintf.c built unconditionally.
11714 # To properly translate all NLS languages strings, we must support the
11715 # *printf() %$ format, which allows *printf() arguments to be selected
11716 # by position in the translated string.
11718 # libintl versions < 0.13 use the native *printf() functions, and Win32
11719 # *printf() doesn't understand %$, so we must use our /port versions,
11720 # which do understand %$. libintl versions >= 0.13 include their own
11721 # *printf versions on Win32. The libintl 0.13 release note text is:
11723 # C format strings with positions, as they arise when a translator
11724 # needs to reorder a sentence, are now supported on all platforms.
11725 # On those few platforms (NetBSD and Woe32) for which the native
11726 # printf()/fprintf()/... functions don't support such format
11727 # strings, replacements are provided through <libintl.h>.
11729 # We could use libintl >= 0.13's *printf() if we were sure that we had
11730 # a litint >= 0.13 at runtime, but seeing that there is no clean way
11731 # to guarantee that, it is best to just use our own, so we are sure to
11732 # get %$ support. In include/port.h we disable the *printf() macros
11733 # that might have been defined by libintl.
11735 # We do this unconditionally whether NLS is used or not so we are sure
11736 # that all Win32 libraries and binaries behave the same.
11737 pgac_need_repl_snprintf=yes
11739 pgac_need_repl_snprintf=no
11740 for ac_func in snprintf
11742 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
11743 if test "x$ac_cv_func_snprintf" = xyes; then :
11744 cat >>confdefs.h <<_ACEOF
11745 #define HAVE_SNPRINTF 1
11749 pgac_need_repl_snprintf=yes
11753 for ac_func in vsnprintf
11755 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
11756 if test "x$ac_cv_func_vsnprintf" = xyes; then :
11757 cat >>confdefs.h <<_ACEOF
11758 #define HAVE_VSNPRINTF 1
11762 pgac_need_repl_snprintf=yes
11769 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
11770 # include/c.h will provide declarations. Note this is a separate test
11771 # from whether the functions exist in the C library --- there are
11772 # systems that have the functions but don't bother to declare them :-(
11774 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
11775 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
11781 cat >>confdefs.h <<_ACEOF
11782 #define HAVE_DECL_SNPRINTF $ac_have_decl
11784 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
11785 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
11791 cat >>confdefs.h <<_ACEOF
11792 #define HAVE_DECL_VSNPRINTF $ac_have_decl
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
11798 $as_echo_n "checking for isinf... " >&6; }
11799 if ${ac_cv_func_isinf+:} false; then :
11800 $as_echo_n "(cached) " >&6
11802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11803 /* end confdefs.h. */
11806 double glob_double;
11811 return isinf(glob_double) ? 0 : 1;
11816 if ac_fn_c_try_link "$LINENO"; then :
11817 ac_cv_func_isinf=yes
11819 ac_cv_func_isinf=no
11821 rm -f core conftest.err conftest.$ac_objext \
11822 conftest$ac_exeext conftest.$ac_ext
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_isinf" >&5
11825 $as_echo "$ac_cv_func_isinf" >&6; }
11827 if test $ac_cv_func_isinf = yes ; then
11829 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
11832 case " $LIBOBJS " in
11833 *" isinf.$ac_objext "* ) ;;
11834 *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
11838 # Look for a way to implement a substitute for isinf()
11839 for ac_func in fpclass fp_class fp_class_d class
11841 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11842 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11843 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11844 cat >>confdefs.h <<_ACEOF
11845 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11853 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
11854 if test "x$ac_cv_func_crypt" = xyes; then :
11855 $as_echo "#define HAVE_CRYPT 1" >>confdefs.h
11858 case " $LIBOBJS " in
11859 *" crypt.$ac_objext "* ) ;;
11860 *) LIBOBJS="$LIBOBJS crypt.$ac_objext"
11866 ac_fn_c_check_func "$LINENO" "fls" "ac_cv_func_fls"
11867 if test "x$ac_cv_func_fls" = xyes; then :
11868 $as_echo "#define HAVE_FLS 1" >>confdefs.h
11871 case " $LIBOBJS " in
11872 *" fls.$ac_objext "* ) ;;
11873 *) LIBOBJS="$LIBOBJS fls.$ac_objext"
11879 ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
11880 if test "x$ac_cv_func_getopt" = xyes; then :
11881 $as_echo "#define HAVE_GETOPT 1" >>confdefs.h
11884 case " $LIBOBJS " in
11885 *" getopt.$ac_objext "* ) ;;
11886 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
11892 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
11893 if test "x$ac_cv_func_getrusage" = xyes; then :
11894 $as_echo "#define HAVE_GETRUSAGE 1" >>confdefs.h
11897 case " $LIBOBJS " in
11898 *" getrusage.$ac_objext "* ) ;;
11899 *) LIBOBJS="$LIBOBJS getrusage.$ac_objext"
11905 ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
11906 if test "x$ac_cv_func_inet_aton" = xyes; then :
11907 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
11910 case " $LIBOBJS " in
11911 *" inet_aton.$ac_objext "* ) ;;
11912 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
11918 ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
11919 if test "x$ac_cv_func_mkdtemp" = xyes; then :
11920 $as_echo "#define HAVE_MKDTEMP 1" >>confdefs.h
11923 case " $LIBOBJS " in
11924 *" mkdtemp.$ac_objext "* ) ;;
11925 *) LIBOBJS="$LIBOBJS mkdtemp.$ac_objext"
11931 ac_fn_c_check_func "$LINENO" "random" "ac_cv_func_random"
11932 if test "x$ac_cv_func_random" = xyes; then :
11933 $as_echo "#define HAVE_RANDOM 1" >>confdefs.h
11936 case " $LIBOBJS " in
11937 *" random.$ac_objext "* ) ;;
11938 *) LIBOBJS="$LIBOBJS random.$ac_objext"
11944 ac_fn_c_check_func "$LINENO" "rint" "ac_cv_func_rint"
11945 if test "x$ac_cv_func_rint" = xyes; then :
11946 $as_echo "#define HAVE_RINT 1" >>confdefs.h
11949 case " $LIBOBJS " in
11950 *" rint.$ac_objext "* ) ;;
11951 *) LIBOBJS="$LIBOBJS rint.$ac_objext"
11957 ac_fn_c_check_func "$LINENO" "srandom" "ac_cv_func_srandom"
11958 if test "x$ac_cv_func_srandom" = xyes; then :
11959 $as_echo "#define HAVE_SRANDOM 1" >>confdefs.h
11962 case " $LIBOBJS " in
11963 *" srandom.$ac_objext "* ) ;;
11964 *) LIBOBJS="$LIBOBJS srandom.$ac_objext"
11970 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
11971 if test "x$ac_cv_func_strerror" = xyes; then :
11972 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
11975 case " $LIBOBJS " in
11976 *" strerror.$ac_objext "* ) ;;
11977 *) LIBOBJS="$LIBOBJS strerror.$ac_objext"
11983 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
11984 if test "x$ac_cv_func_strlcat" = xyes; then :
11985 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
11988 case " $LIBOBJS " in
11989 *" strlcat.$ac_objext "* ) ;;
11990 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
11996 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
11997 if test "x$ac_cv_func_strlcpy" = xyes; then :
11998 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
12001 case " $LIBOBJS " in
12002 *" strlcpy.$ac_objext "* ) ;;
12003 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
12013 # Windows uses a specialised env handler
12014 # and doesn't need a replacement getpeereid because it doesn't use
12018 $as_echo "#define HAVE_UNSETENV 1" >>confdefs.h
12021 $as_echo "#define HAVE_GETPEEREID 1" >>confdefs.h
12023 ac_cv_func_unsetenv=yes
12024 ac_cv_func_getpeereid=yes;;
12026 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
12027 if test "x$ac_cv_func_unsetenv" = xyes; then :
12028 $as_echo "#define HAVE_UNSETENV 1" >>confdefs.h
12031 case " $LIBOBJS " in
12032 *" unsetenv.$ac_objext "* ) ;;
12033 *) LIBOBJS="$LIBOBJS unsetenv.$ac_objext"
12039 ac_fn_c_check_func "$LINENO" "getpeereid" "ac_cv_func_getpeereid"
12040 if test "x$ac_cv_func_getpeereid" = xyes; then :
12041 $as_echo "#define HAVE_GETPEEREID 1" >>confdefs.h
12044 case " $LIBOBJS " in
12045 *" getpeereid.$ac_objext "* ) ;;
12046 *) LIBOBJS="$LIBOBJS getpeereid.$ac_objext"
12056 # System's version of getaddrinfo(), if any, may be used only if we found
12057 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
12058 # We use only our own getaddrinfo.c on Windows, but it's time to revisit that.
12059 if test x"$ac_cv_type_struct_addrinfo" = xyes && \
12060 test "$PORTNAME" != "win32"; then
12061 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
12062 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
12063 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
12066 case " $LIBOBJS " in
12067 *" getaddrinfo.$ac_objext "* ) ;;
12068 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
12076 case " $LIBOBJS " in
12077 *" getaddrinfo.$ac_objext "* ) ;;
12078 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
12084 # Similarly, use system's getopt_long() only if system provides struct option.
12085 if test x"$ac_cv_type_struct_option" = xyes ; then
12086 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
12087 if test "x$ac_cv_func_getopt_long" = xyes; then :
12088 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
12091 case " $LIBOBJS " in
12092 *" getopt_long.$ac_objext "* ) ;;
12093 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
12101 case " $LIBOBJS " in
12102 *" getopt_long.$ac_objext "* ) ;;
12103 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
12109 # Solaris' getopt() doesn't do what we want for long options, so always use
12110 # our version on that platform.
12111 if test "$PORTNAME" = "solaris"; then
12112 case " $LIBOBJS " in
12113 *" getopt.$ac_objext "* ) ;;
12114 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
12120 # mingw has adopted a GNU-centric interpretation of optind/optreset,
12121 # so always use our version on Windows.
12122 if test "$PORTNAME" = "win32"; then
12123 case " $LIBOBJS " in
12124 *" getopt.$ac_objext "* ) ;;
12125 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
12129 case " $LIBOBJS " in
12130 *" getopt_long.$ac_objext "* ) ;;
12131 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
12137 # Win32 (really MinGW) support
12138 if test "$PORTNAME" = "win32"; then
12139 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
12140 if test "x$ac_cv_func_gettimeofday" = xyes; then :
12141 $as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
12144 case " $LIBOBJS " in
12145 *" gettimeofday.$ac_objext "* ) ;;
12146 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
12153 case " $LIBOBJS " in
12154 *" dirmod.$ac_objext "* ) ;;
12155 *) LIBOBJS="$LIBOBJS dirmod.$ac_objext"
12159 case " $LIBOBJS " in
12160 *" kill.$ac_objext "* ) ;;
12161 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
12165 case " $LIBOBJS " in
12166 *" open.$ac_objext "* ) ;;
12167 *) LIBOBJS="$LIBOBJS open.$ac_objext"
12171 case " $LIBOBJS " in
12172 *" system.$ac_objext "* ) ;;
12173 *) LIBOBJS="$LIBOBJS system.$ac_objext"
12177 case " $LIBOBJS " in
12178 *" win32env.$ac_objext "* ) ;;
12179 *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
12183 case " $LIBOBJS " in
12184 *" win32error.$ac_objext "* ) ;;
12185 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
12189 case " $LIBOBJS " in
12190 *" win32setlocale.$ac_objext "* ) ;;
12191 *) LIBOBJS="$LIBOBJS win32setlocale.$ac_objext"
12196 $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h
12198 ac_fn_c_check_type "$LINENO" "MINIDUMP_TYPE" "ac_cv_type_MINIDUMP_TYPE" "
12199 #define WIN32_LEAN_AND_MEAN
12200 #include <windows.h>
12201 #include <string.h>
12202 #include <dbghelp.h>
12204 if test "x$ac_cv_type_MINIDUMP_TYPE" = xyes; then :
12206 cat >>confdefs.h <<_ACEOF
12207 #define HAVE_MINIDUMP_TYPE 1
12210 pgac_minidump_type=yes
12212 pgac_minidump_type=no
12216 if test x"$pgac_minidump_type" = x"yes" ; then
12217 have_win32_dbghelp=yes
12220 have_win32_dbghelp=no
12224 # Cygwin needs only a bit of that
12225 if test "$PORTNAME" = "cygwin"; then
12226 case " $LIBOBJS " in
12227 *" dirmod.$ac_objext "* ) ;;
12228 *) LIBOBJS="$LIBOBJS dirmod.$ac_objext"
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
12235 $as_echo_n "checking for sigsetjmp... " >&6; }
12236 if ${pgac_cv_func_sigsetjmp+:} false; then :
12237 $as_echo_n "(cached) " >&6
12239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12240 /* end confdefs.h. */
12241 #include <setjmp.h>
12245 sigjmp_buf x; sigsetjmp(x, 1);
12250 if ac_fn_c_try_link "$LINENO"; then :
12251 pgac_cv_func_sigsetjmp=yes
12253 pgac_cv_func_sigsetjmp=no
12255 rm -f core conftest.err conftest.$ac_objext \
12256 conftest$ac_exeext conftest.$ac_ext
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_sigsetjmp" >&5
12259 $as_echo "$pgac_cv_func_sigsetjmp" >&6; }
12260 if test x"$pgac_cv_func_sigsetjmp" = x"yes"; then
12262 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
12266 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
12267 /* NetBSD declares sys_siglist in unistd.h. */
12268 #ifdef HAVE_UNISTD_H
12269 # include <unistd.h>
12273 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
12279 cat >>confdefs.h <<_ACEOF
12280 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
12285 ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
12286 if test "x$ac_cv_func_syslog" = xyes; then :
12287 ac_fn_c_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
12288 if test "x$ac_cv_header_syslog_h" = xyes; then :
12290 $as_echo "#define HAVE_SYSLOG 1" >>confdefs.h
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opterr" >&5
12299 $as_echo_n "checking for opterr... " >&6; }
12300 if ${pgac_cv_var_int_opterr+:} false; then :
12301 $as_echo_n "(cached) " >&6
12303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12304 /* end confdefs.h. */
12305 #include <unistd.h>
12309 extern int opterr; opterr = 1;
12314 if ac_fn_c_try_link "$LINENO"; then :
12315 pgac_cv_var_int_opterr=yes
12317 pgac_cv_var_int_opterr=no
12319 rm -f core conftest.err conftest.$ac_objext \
12320 conftest$ac_exeext conftest.$ac_ext
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_opterr" >&5
12323 $as_echo "$pgac_cv_var_int_opterr" >&6; }
12324 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
12326 $as_echo "#define HAVE_INT_OPTERR 1" >>confdefs.h
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
12331 $as_echo_n "checking for optreset... " >&6; }
12332 if ${pgac_cv_var_int_optreset+:} false; then :
12333 $as_echo_n "(cached) " >&6
12335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12336 /* end confdefs.h. */
12337 #include <unistd.h>
12341 extern int optreset; optreset = 1;
12346 if ac_fn_c_try_link "$LINENO"; then :
12347 pgac_cv_var_int_optreset=yes
12349 pgac_cv_var_int_optreset=no
12351 rm -f core conftest.err conftest.$ac_objext \
12352 conftest$ac_exeext conftest.$ac_ext
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_optreset" >&5
12355 $as_echo "$pgac_cv_var_int_optreset" >&6; }
12356 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
12358 $as_echo "#define HAVE_INT_OPTRESET 1" >>confdefs.h
12362 for ac_func in strtoll strtoq
12364 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12365 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12366 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12367 cat >>confdefs.h <<_ACEOF
12368 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12374 for ac_func in strtoull strtouq
12376 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12377 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12378 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12379 cat >>confdefs.h <<_ACEOF
12380 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12387 # Lastly, restore full LIBS list and check for readline/libedit symbols
12388 LIBS="$LIBS_including_readline"
12390 if test "$with_readline" = yes; then
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_append_character" >&5
12392 $as_echo_n "checking for rl_completion_append_character... " >&6; }
12393 if ${pgac_cv_var_rl_completion_append_character+:} false; then :
12394 $as_echo_n "(cached) " >&6
12396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12397 /* end confdefs.h. */
12399 #ifdef HAVE_READLINE_READLINE_H
12400 # include <readline/readline.h>
12401 #elif defined(HAVE_READLINE_H)
12402 # include <readline.h>
12408 rl_completion_append_character = 'x';
12413 if ac_fn_c_try_link "$LINENO"; then :
12414 pgac_cv_var_rl_completion_append_character=yes
12416 pgac_cv_var_rl_completion_append_character=no
12418 rm -f core conftest.err conftest.$ac_objext \
12419 conftest$ac_exeext conftest.$ac_ext
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_rl_completion_append_character" >&5
12422 $as_echo "$pgac_cv_var_rl_completion_append_character" >&6; }
12423 if test x"$pgac_cv_var_rl_completion_append_character" = x"yes"; then
12425 $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h
12428 for ac_func in rl_completion_matches rl_filename_completion_function
12430 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12431 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12432 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12433 cat >>confdefs.h <<_ACEOF
12434 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12440 for ac_func in append_history history_truncate_file
12442 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12443 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12444 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12445 cat >>confdefs.h <<_ACEOF
12446 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12458 # For each platform, we need to know about any special compile and link
12459 # libraries, and whether the normal C function names are thread-safe.
12460 # See the comment at the top of src/port/thread.c for more information.
12461 # WIN32 doesn't need the pthread tests; it always uses threads
12462 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
12467 ac_cpp='$CPP $CPPFLAGS'
12468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12474 # We used to check for pthread.h first, but this fails if pthread.h
12475 # requires special compiler flags (e.g. on True64 or Sequent).
12476 # It gets checked for in the link test anyway.
12478 # First of all, check if the user has set any of the PTHREAD_LIBS,
12479 # etcetera environment variables, and if threads linking works using
12481 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
12482 save_CFLAGS="$CFLAGS"
12483 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
12485 LIBS="$PTHREAD_LIBS $LIBS"
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
12487 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
12488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12489 /* end confdefs.h. */
12491 /* Override any GCC internal prototype to avoid an error.
12492 Use char because int might match the return type of a GCC
12493 builtin and then its argument prototype would still apply. */
12497 char pthread_join ();
12501 return pthread_join ();
12506 if ac_fn_c_try_link "$LINENO"; then :
12509 rm -f core conftest.err conftest.$ac_objext \
12510 conftest$ac_exeext conftest.$ac_ext
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
12512 $as_echo "$acx_pthread_ok" >&6; }
12513 if test x"$acx_pthread_ok" = xno; then
12518 CFLAGS="$save_CFLAGS"
12521 # We must check for the threads library under a number of different
12522 # names; the ordering is very important because some systems
12523 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
12524 # libraries is broken (non-POSIX).
12526 # Create a list of thread flags to try. Items starting with a "-" are
12527 # C compiler flags, and other items are library names, except for "none"
12528 # which indicates that we try without any flags at all, and "pthread-config"
12529 # which is a program returning the flags for the Pth emulation library.
12531 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
12533 # The ordering *is* (sometimes) important. Some notes on the
12534 # individual items follow:
12536 # pthreads: AIX (must check this before -lpthread)
12537 # none: in case threads are in libc; should be tried before -Kthread and
12538 # other compiler flags to prevent continual compiler warnings
12539 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
12540 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
12541 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
12542 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
12543 # -pthreads: Solaris/gcc
12544 # -mthreads: Mingw32/gcc, Lynx/gcc
12545 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
12546 # doesn't hurt to check since this sometimes defines pthreads too;
12547 # also defines -D_REENTRANT)
12548 # pthread: Linux, etcetera
12549 # --thread-safe: KAI C++
12550 # pthread-config: use pthread-config program (for GNU Pth library)
12552 case "${host_cpu}-${host_os}" in
12555 # On Solaris (at least, for some versions), libc contains stubbed
12556 # (non-functional) versions of the pthreads routines, so link-based
12557 # tests will erroneously succeed. (We need to link with -pthread or
12558 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
12559 # a function called by this macro, so we could check for that, but
12560 # who knows whether they'll stub that too in a future libc.) So,
12561 # we'll just look for -pthreads and -lpthread first:
12563 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
12567 if test x"$acx_pthread_ok" = xno; then
12568 for flag in $acx_pthread_flags; do
12570 tryPTHREAD_CFLAGS=""
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
12575 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
12580 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
12581 tryPTHREAD_CFLAGS="$flag"
12585 # skip this if we already have flags defined, for PostgreSQL
12586 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
12587 # Extract the first word of "pthread-config", so it can be a program name with args.
12588 set dummy pthread-config; ac_word=$2
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12590 $as_echo_n "checking for $ac_word... " >&6; }
12591 if ${ac_cv_prog_acx_pthread_config+:} false; then :
12592 $as_echo_n "(cached) " >&6
12594 if test -n "$acx_pthread_config"; then
12595 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
12597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12598 for as_dir in $PATH
12601 test -z "$as_dir" && as_dir=.
12602 for ac_exec_ext in '' $ac_executable_extensions; do
12603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12604 ac_cv_prog_acx_pthread_config="yes"
12605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12612 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
12615 acx_pthread_config=$ac_cv_prog_acx_pthread_config
12616 if test -n "$acx_pthread_config"; then
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
12618 $as_echo "$acx_pthread_config" >&6; }
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12621 $as_echo "no" >&6; }
12625 if test x"$acx_pthread_config" = xno; then continue; fi
12626 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
12627 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
12632 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
12633 tryPTHREAD_LIBS="-l$flag"
12638 save_CFLAGS="$CFLAGS"
12639 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
12640 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
12642 # Check for various functions. We must include pthread.h,
12643 # since some functions may be macros. (On the Sequent, we
12644 # need a special flag -Kthread to make this header compile.)
12645 # We check for pthread_join because it is in -lpthread on IRIX
12646 # while pthread_create is in libc. We check for pthread_attr_init
12647 # due to DEC craziness with -lpthreads. We check for
12648 # pthread_cleanup_push because it is one of the few pthread
12649 # functions on Solaris that doesn't have a non-functional libc stub.
12650 # We try pthread_create on general principles.
12651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12652 /* end confdefs.h. */
12653 #include <pthread.h>
12657 pthread_t th; pthread_join(th, 0);
12658 pthread_attr_init(0); pthread_cleanup_push(0, 0);
12659 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
12664 if ac_fn_c_try_link "$LINENO"; then :
12669 rm -f core conftest.err conftest.$ac_objext \
12670 conftest$ac_exeext conftest.$ac_ext
12672 if test "x$acx_pthread_ok" = xyes; then
12673 # Don't use options that are ignored by the compiler.
12674 # We find them by checking stderror.
12675 cat >conftest.$ac_ext <<_ACEOF
12677 main (int argc, char **argv)
12684 rm -f conftest.$ac_objext conftest$ac_exeext
12685 # Check both linking and compiling, because they might tolerate different options.
12686 if test "`(eval $ac_link 2>&1 1>&5)`" = "" && test "`(eval $ac_compile 2>&1 1>&5)`" = ""; then
12687 # The original macro breaks out of the loop at this point,
12688 # but we continue trying flags because Linux needs -lpthread
12689 # too to build libpq successfully. The test above only
12690 # tests for building binaries, not shared libraries.
12691 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
12692 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
12693 else acx_pthread_ok=no
12698 CFLAGS="$save_CFLAGS"
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
12701 $as_echo "$acx_pthread_ok" >&6; }
12705 # The original macro has a bunch of other tests here, which we have removed
12706 # because (a) Postgres doesn't need them, and (b) $acx_pthread_ok is not
12707 # meaningful at this point.
12713 ac_cpp='$CPP $CPPFLAGS'
12714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12720 # Some platforms use these, so just define them. They can't hurt if they
12721 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
12722 # enables 5-arg getpwuid_r, among other things.
12723 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
12725 # Check for *_r functions
12728 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
12729 LIBS="$LIBS $PTHREAD_LIBS"
12731 if test "$PORTNAME" != "win32"; then
12732 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
12733 if test "x$ac_cv_header_pthread_h" = xyes; then :
12737 pthread.h not found; use --disable-thread-safety to disable thread safety" "$LINENO" 5
12743 for ac_func in strerror_r getpwuid_r gethostbyname_r
12745 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12746 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12747 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12748 cat >>confdefs.h <<_ACEOF
12749 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12756 # Do test here with the proper thread flags
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns int" >&5
12758 $as_echo_n "checking whether strerror_r returns int... " >&6; }
12759 if ${pgac_cv_func_strerror_r_int+:} false; then :
12760 $as_echo_n "(cached) " >&6
12762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12763 /* end confdefs.h. */
12764 #include <string.h>
12769 int strerror_r(int, char *, size_t);
12771 /* Older AIX has 'int' for the third argument so we don't test the args. */
12778 if ac_fn_c_try_compile "$LINENO"; then :
12779 pgac_cv_func_strerror_r_int=yes
12781 pgac_cv_func_strerror_r_int=no
12783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_strerror_r_int" >&5
12786 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
12787 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
12789 $as_echo "#define STRERROR_R_INT 1" >>confdefs.h
12798 # do not use values from template file
12807 # We can test for libldap_r only after we know PTHREAD_LIBS
12808 if test "$with_ldap" = yes ; then
12810 if test "$PORTNAME" != "win32"; then
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lldap" >&5
12812 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
12813 if ${ac_cv_lib_ldap_ldap_bind+:} false; then :
12814 $as_echo_n "(cached) " >&6
12816 ac_check_lib_save_LIBS=$LIBS
12817 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
12818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12819 /* end confdefs.h. */
12821 /* Override any GCC internal prototype to avoid an error.
12822 Use char because int might match the return type of a GCC
12823 builtin and then its argument prototype would still apply. */
12831 return ldap_bind ();
12836 if ac_fn_c_try_link "$LINENO"; then :
12837 ac_cv_lib_ldap_ldap_bind=yes
12839 ac_cv_lib_ldap_ldap_bind=no
12841 rm -f core conftest.err conftest.$ac_objext \
12842 conftest$ac_exeext conftest.$ac_ext
12843 LIBS=$ac_check_lib_save_LIBS
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_bind" >&5
12846 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
12847 if test "x$ac_cv_lib_ldap_ldap_bind" = xyes; then :
12848 cat >>confdefs.h <<_ACEOF
12849 #define HAVE_LIBLDAP 1
12852 LIBS="-lldap $LIBS"
12855 as_fn_error $? "library 'ldap' is required for LDAP" "$LINENO" 5
12858 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
12859 if test "$enable_thread_safety" = yes; then
12860 # on some platforms ldap_r fails to link without PTHREAD_LIBS
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_simple_bind in -lldap_r" >&5
12862 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
12863 if ${ac_cv_lib_ldap_r_ldap_simple_bind+:} false; then :
12864 $as_echo_n "(cached) " >&6
12866 ac_check_lib_save_LIBS=$LIBS
12867 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
12868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12869 /* end confdefs.h. */
12871 /* Override any GCC internal prototype to avoid an error.
12872 Use char because int might match the return type of a GCC
12873 builtin and then its argument prototype would still apply. */
12877 char ldap_simple_bind ();
12881 return ldap_simple_bind ();
12886 if ac_fn_c_try_link "$LINENO"; then :
12887 ac_cv_lib_ldap_r_ldap_simple_bind=yes
12889 ac_cv_lib_ldap_r_ldap_simple_bind=no
12891 rm -f core conftest.err conftest.$ac_objext \
12892 conftest$ac_exeext conftest.$ac_ext
12893 LIBS=$ac_check_lib_save_LIBS
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
12896 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
12897 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = xyes; then :
12898 cat >>confdefs.h <<_ACEOF
12899 #define HAVE_LIBLDAP_R 1
12902 LIBS="-lldap_r $LIBS"
12905 as_fn_error $? "library 'ldap_r' is required for LDAP" "$LINENO" 5
12908 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
12910 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lwldap32" >&5
12914 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
12915 if ${ac_cv_lib_wldap32_ldap_bind+:} false; then :
12916 $as_echo_n "(cached) " >&6
12918 ac_check_lib_save_LIBS=$LIBS
12919 LIBS="-lwldap32 $LIBS"
12920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12921 /* end confdefs.h. */
12923 /* Override any GCC internal prototype to avoid an error.
12924 Use char because int might match the return type of a GCC
12925 builtin and then its argument prototype would still apply. */
12933 return ldap_bind ();
12938 if ac_fn_c_try_link "$LINENO"; then :
12939 ac_cv_lib_wldap32_ldap_bind=yes
12941 ac_cv_lib_wldap32_ldap_bind=no
12943 rm -f core conftest.err conftest.$ac_objext \
12944 conftest$ac_exeext conftest.$ac_ext
12945 LIBS=$ac_check_lib_save_LIBS
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wldap32_ldap_bind" >&5
12948 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
12949 if test "x$ac_cv_lib_wldap32_ldap_bind" = xyes; then :
12950 cat >>confdefs.h <<_ACEOF
12951 #define HAVE_LIBWLDAP32 1
12954 LIBS="-lwldap32 $LIBS"
12957 as_fn_error $? "library 'wldap32' is required for LDAP" "$LINENO" 5
12960 LDAP_LIBS_FE="-lwldap32"
12961 LDAP_LIBS_BE="-lwldap32"
12969 # This test makes sure that run tests work at all. Sometimes a shared
12970 # library is found by the linker, but the runtime linker can't find it.
12971 # This check should come after all modifications of compiler or linker
12972 # variables, and before any other run tests.
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking test program" >&5
12974 $as_echo_n "checking test program... " >&6; }
12975 if test "$cross_compiling" = yes; then :
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
12977 $as_echo "cross-compiling" >&6; }
12979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12980 /* end confdefs.h. */
12981 int main() { return 0; }
12983 if ac_fn_c_try_run "$LINENO"; then :
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12985 $as_echo "ok" >&6; }
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12988 $as_echo "failed" >&6; }
12990 Could not execute a simple test program. This may be a problem
12991 related to locating shared libraries. Check the file 'config.log'
12992 for the exact reason." "$LINENO" 5
12994 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12995 conftest.$ac_objext conftest.beam conftest.$ac_ext
12999 # --------------------
13000 # Run tests below here
13001 # --------------------
13003 # Force use of our snprintf if system's doesn't do arg control
13004 # See comment above at snprintf test for details.
13005 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf supports argument control" >&5
13007 $as_echo_n "checking whether snprintf supports argument control... " >&6; }
13008 if ${pgac_cv_snprintf_arg_control+:} false; then :
13009 $as_echo_n "(cached) " >&6
13011 if test "$cross_compiling" = yes; then :
13012 pgac_cv_snprintf_arg_control=cross
13014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13015 /* end confdefs.h. */
13017 #include <string.h>
13023 /* can it swap arguments? */
13024 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
13025 if (strcmp(buf, "4 3") != 0)
13030 if ac_fn_c_try_run "$LINENO"; then :
13031 pgac_cv_snprintf_arg_control=yes
13033 pgac_cv_snprintf_arg_control=no
13035 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13036 conftest.$ac_objext conftest.beam conftest.$ac_ext
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_snprintf_arg_control" >&5
13042 $as_echo "$pgac_cv_snprintf_arg_control" >&6; }
13044 if test $pgac_cv_snprintf_arg_control != yes ; then
13045 pgac_need_repl_snprintf=yes
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long int is 64 bits" >&5
13053 $as_echo_n "checking whether long int is 64 bits... " >&6; }
13054 if ${pgac_cv_type_long_int_64+:} false; then :
13055 $as_echo_n "(cached) " >&6
13057 if test "$cross_compiling" = yes; then :
13058 # If cross-compiling, check the size reported by the compiler and
13059 # trust that the arithmetic works.
13060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13061 /* end confdefs.h. */
13066 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
13067 test_array [0] = 0;
13068 return test_array [0];
13074 if ac_fn_c_try_compile "$LINENO"; then :
13075 pgac_cv_type_long_int_64=yes
13077 pgac_cv_type_long_int_64=no
13079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13082 /* end confdefs.h. */
13083 typedef long int ac_int64;
13086 * These are globals to discourage the compiler from folding all the
13087 * arithmetic tests down to compile-time constants.
13089 ac_int64 a = 20000001;
13090 ac_int64 b = 40000005;
13092 int does_int64_work()
13096 if (sizeof(ac_int64) != 8)
13097 return 0; /* definitely not the right size */
13099 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13107 exit(! does_int64_work());
13110 if ac_fn_c_try_run "$LINENO"; then :
13111 pgac_cv_type_long_int_64=yes
13113 pgac_cv_type_long_int_64=no
13115 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13116 conftest.$ac_objext conftest.beam conftest.$ac_ext
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_long_int_64" >&5
13121 $as_echo "$pgac_cv_type_long_int_64" >&6; }
13123 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
13124 if test x"$pgac_cv_type_long_int_64" = xyes ; then
13126 $as_echo "#define HAVE_LONG_INT_64 1" >>confdefs.h
13131 if test x"$HAVE_LONG_INT_64" = x"yes" ; then
13132 pg_int64_type="long int"
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long long int is 64 bits" >&5
13135 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
13136 if ${pgac_cv_type_long_long_int_64+:} false; then :
13137 $as_echo_n "(cached) " >&6
13139 if test "$cross_compiling" = yes; then :
13140 # If cross-compiling, check the size reported by the compiler and
13141 # trust that the arithmetic works.
13142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13143 /* end confdefs.h. */
13148 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
13149 test_array [0] = 0;
13150 return test_array [0];
13156 if ac_fn_c_try_compile "$LINENO"; then :
13157 pgac_cv_type_long_long_int_64=yes
13159 pgac_cv_type_long_long_int_64=no
13161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13164 /* end confdefs.h. */
13165 typedef long long int ac_int64;
13168 * These are globals to discourage the compiler from folding all the
13169 * arithmetic tests down to compile-time constants.
13171 ac_int64 a = 20000001;
13172 ac_int64 b = 40000005;
13174 int does_int64_work()
13178 if (sizeof(ac_int64) != 8)
13179 return 0; /* definitely not the right size */
13181 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13189 exit(! does_int64_work());
13192 if ac_fn_c_try_run "$LINENO"; then :
13193 pgac_cv_type_long_long_int_64=yes
13195 pgac_cv_type_long_long_int_64=no
13197 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13198 conftest.$ac_objext conftest.beam conftest.$ac_ext
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_long_long_int_64" >&5
13203 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
13205 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
13206 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
13208 $as_echo "#define HAVE_LONG_LONG_INT_64 1" >>confdefs.h
13212 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
13213 pg_int64_type="long long int"
13215 as_fn_error $? "Cannot find a working 64-bit integer type." "$LINENO" 5
13220 cat >>confdefs.h <<_ACEOF
13221 #define PG_INT64_TYPE $pg_int64_type
13226 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
13227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13228 /* end confdefs.h. */
13230 #define INT64CONST(x) x##LL
13231 long long int foo = INT64CONST(0x1234567890123456);
13241 if ac_fn_c_try_compile "$LINENO"; then :
13243 $as_echo "#define HAVE_LL_CONSTANTS 1" >>confdefs.h
13246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13250 # If we found "long int" is 64 bits, assume snprintf handles it. If
13251 # we found we need to use "long long int", better check. We cope with
13252 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
13253 # work, fall back to our own snprintf emulation (which we know uses %lld).
13255 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
13256 if test $pgac_need_repl_snprintf = no; then
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking snprintf length modifier for long long int" >&5
13258 $as_echo_n "checking snprintf length modifier for long long int... " >&6; }
13259 if ${pgac_cv_snprintf_long_long_int_modifier+:} false; then :
13260 $as_echo_n "(cached) " >&6
13262 for pgac_modifier in 'll' 'q' 'I64'; do
13263 if test "$cross_compiling" = yes; then :
13264 pgac_cv_snprintf_long_long_int_modifier=cross; break
13266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13267 /* end confdefs.h. */
13269 typedef long long int ac_int64;
13270 #define INT64_FORMAT "%${pgac_modifier}d"
13272 ac_int64 a = 20000001;
13273 ac_int64 b = 40000005;
13275 int does_int64_snprintf_work()
13280 if (sizeof(ac_int64) != 8)
13281 return 0; /* doesn't look like the right size */
13284 snprintf(buf, 100, INT64_FORMAT, c);
13285 if (strcmp(buf, "800000140000005") != 0)
13286 return 0; /* either multiply or snprintf is busted */
13290 exit(! does_int64_snprintf_work());
13293 if ac_fn_c_try_run "$LINENO"; then :
13294 pgac_cv_snprintf_long_long_int_modifier=$pgac_modifier; break
13296 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13297 conftest.$ac_objext conftest.beam conftest.$ac_ext
13303 LONG_LONG_INT_MODIFIER=''
13305 case $pgac_cv_snprintf_long_long_int_modifier in
13306 cross) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test (not on host machine)" >&5
13307 $as_echo "cannot test (not on host machine)" >&6; };;
13308 ?*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_snprintf_long_long_int_modifier" >&5
13309 $as_echo "$pgac_cv_snprintf_long_long_int_modifier" >&6; }
13310 LONG_LONG_INT_MODIFIER=$pgac_cv_snprintf_long_long_int_modifier;;
13311 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13312 $as_echo "none" >&6; };;
13314 if test "$LONG_LONG_INT_MODIFIER" = ""; then
13315 # Force usage of our own snprintf, since system snprintf is broken
13316 pgac_need_repl_snprintf=yes
13317 LONG_LONG_INT_MODIFIER='ll'
13320 # Here if we previously decided we needed to use our own snprintf
13321 LONG_LONG_INT_MODIFIER='ll'
13324 # Here if we are not using 'long long int' at all
13325 LONG_LONG_INT_MODIFIER='l'
13328 INT64_MODIFIER="\"$LONG_LONG_INT_MODIFIER\""
13331 cat >>confdefs.h <<_ACEOF
13332 #define INT64_MODIFIER $INT64_MODIFIER
13336 # Also force use of our snprintf if the system's doesn't support the %z flag.
13337 if test "$pgac_need_repl_snprintf" = no; then
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf supports the %z modifier" >&5
13339 $as_echo_n "checking whether snprintf supports the %z modifier... " >&6; }
13340 if ${pgac_cv_snprintf_size_t_support+:} false; then :
13341 $as_echo_n "(cached) " >&6
13343 if test "$cross_compiling" = yes; then :
13344 pgac_cv_snprintf_size_t_support=cross
13346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13347 /* end confdefs.h. */
13349 #include <string.h>
13357 * Print the largest unsigned number fitting in a size_t using both %zu
13358 * and the previously-determined format for 64-bit integers. Note that
13359 * we don't run this code unless we know snprintf handles 64-bit ints.
13361 bufz[0] = '\0'; /* in case snprintf fails to emit anything */
13362 snprintf(bufz, sizeof(bufz), "%zu", ~((size_t) 0));
13363 snprintf(buf64, sizeof(buf64), "%" INT64_MODIFIER "u",
13364 (unsigned PG_INT64_TYPE) ~((size_t) 0));
13365 if (strcmp(bufz, buf64) != 0)
13370 if ac_fn_c_try_run "$LINENO"; then :
13371 pgac_cv_snprintf_size_t_support=yes
13373 pgac_cv_snprintf_size_t_support=no
13375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13376 conftest.$ac_objext conftest.beam conftest.$ac_ext
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_snprintf_size_t_support" >&5
13382 $as_echo "$pgac_cv_snprintf_size_t_support" >&6; }
13384 if test "$pgac_cv_snprintf_size_t_support" != yes; then
13385 pgac_need_repl_snprintf=yes
13389 # Now we have checked all the reasons to replace snprintf
13390 if test $pgac_need_repl_snprintf = yes; then
13392 $as_echo "#define USE_REPL_SNPRINTF 1" >>confdefs.h
13394 case " $LIBOBJS " in
13395 *" snprintf.$ac_objext "* ) ;;
13396 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
13402 # Check size of void *, size_t (enables tweaks for > 32bit address space)
13403 # The cast to long int works around a bug in the HP C Compiler
13404 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13405 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13406 # This bug is HP SR number 8606223364.
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
13408 $as_echo_n "checking size of void *... " >&6; }
13409 if ${ac_cv_sizeof_void_p+:} false; then :
13410 $as_echo_n "(cached) " >&6
13412 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
13415 if test "$ac_cv_type_void_p" = yes; then
13416 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13417 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13418 as_fn_error 77 "cannot compute sizeof (void *)
13419 See \`config.log' for more details" "$LINENO" 5; }
13421 ac_cv_sizeof_void_p=0
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13427 $as_echo "$ac_cv_sizeof_void_p" >&6; }
13431 cat >>confdefs.h <<_ACEOF
13432 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13436 # The cast to long int works around a bug in the HP C Compiler
13437 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13438 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13439 # This bug is HP SR number 8606223364.
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
13441 $as_echo_n "checking size of size_t... " >&6; }
13442 if ${ac_cv_sizeof_size_t+:} false; then :
13443 $as_echo_n "(cached) " >&6
13445 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
13448 if test "$ac_cv_type_size_t" = yes; then
13449 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13451 as_fn_error 77 "cannot compute sizeof (size_t)
13452 See \`config.log' for more details" "$LINENO" 5; }
13454 ac_cv_sizeof_size_t=0
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
13460 $as_echo "$ac_cv_sizeof_size_t" >&6; }
13464 cat >>confdefs.h <<_ACEOF
13465 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
13469 # The cast to long int works around a bug in the HP C Compiler
13470 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13471 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13472 # This bug is HP SR number 8606223364.
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13474 $as_echo_n "checking size of long... " >&6; }
13475 if ${ac_cv_sizeof_long+:} false; then :
13476 $as_echo_n "(cached) " >&6
13478 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13481 if test "$ac_cv_type_long" = yes; then
13482 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13484 as_fn_error 77 "cannot compute sizeof (long)
13485 See \`config.log' for more details" "$LINENO" 5; }
13487 ac_cv_sizeof_long=0
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13493 $as_echo "$ac_cv_sizeof_long" >&6; }
13497 cat >>confdefs.h <<_ACEOF
13498 #define SIZEOF_LONG $ac_cv_sizeof_long
13503 # Decide whether float4 is passed by value: user-selectable, enabled by default
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with float4 passed by value" >&5
13505 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
13508 # Check whether --enable-float4-byval was given.
13509 if test "${enable_float4_byval+set}" = set; then :
13510 enableval=$enable_float4_byval;
13514 $as_echo "#define USE_FLOAT4_BYVAL 1" >>confdefs.h
13516 float4passbyval=true
13519 float4passbyval=false
13522 as_fn_error $? "no argument expected for --enable-float4-byval option" "$LINENO" 5
13527 enable_float4_byval=yes
13529 $as_echo "#define USE_FLOAT4_BYVAL 1" >>confdefs.h
13531 float4passbyval=true
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_float4_byval" >&5
13536 $as_echo "$enable_float4_byval" >&6; }
13538 cat >>confdefs.h <<_ACEOF
13539 #define FLOAT4PASSBYVAL $float4passbyval
13543 # Decide whether float8 is passed by value.
13544 # Note: this setting also controls int8 and related types such as timestamp.
13545 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
13546 # If not, trying to select it is an error.
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with float8 passed by value" >&5
13548 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
13549 if test $ac_cv_sizeof_void_p -ge 8 ; then
13552 # Check whether --enable-float8-byval was given.
13553 if test "${enable_float8_byval+set}" = set; then :
13554 enableval=$enable_float8_byval;
13563 as_fn_error $? "no argument expected for --enable-float8-byval option" "$LINENO" 5
13568 enable_float8_byval=yes
13576 # Check whether --enable-float8-byval was given.
13577 if test "${enable_float8_byval+set}" = set; then :
13578 enableval=$enable_float8_byval;
13587 as_fn_error $? "no argument expected for --enable-float8-byval option" "$LINENO" 5
13592 enable_float8_byval=no
13597 if test "$enable_float8_byval" = yes ; then
13598 as_fn_error $? "--enable-float8-byval is not supported on 32-bit platforms." "$LINENO" 5
13601 if test "$enable_float8_byval" = yes ; then
13603 $as_echo "#define USE_FLOAT8_BYVAL 1" >>confdefs.h
13605 float8passbyval=true
13607 float8passbyval=false
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_float8_byval" >&5
13610 $as_echo "$enable_float8_byval" >&6; }
13612 cat >>confdefs.h <<_ACEOF
13613 #define FLOAT8PASSBYVAL $float8passbyval
13617 # Determine memory alignment requirements for the basic C data types.
13619 # The cast to long int works around a bug in the HP C Compiler,
13620 # see AC_CHECK_SIZEOF for more information.
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of short" >&5
13622 $as_echo_n "checking alignment of short... " >&6; }
13623 if ${ac_cv_alignof_short+:} false; then :
13624 $as_echo_n "(cached) " >&6
13626 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_short" "$ac_includes_default
13628 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
13630 typedef struct { char x; short y; } ac__type_alignof_;"; then :
13633 if test "$ac_cv_type_short" = yes; then
13634 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13636 as_fn_error 77 "cannot compute alignment of short
13637 See \`config.log' for more details" "$LINENO" 5; }
13639 ac_cv_alignof_short=0
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_short" >&5
13645 $as_echo "$ac_cv_alignof_short" >&6; }
13649 cat >>confdefs.h <<_ACEOF
13650 #define ALIGNOF_SHORT $ac_cv_alignof_short
13654 # The cast to long int works around a bug in the HP C Compiler,
13655 # see AC_CHECK_SIZEOF for more information.
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int" >&5
13657 $as_echo_n "checking alignment of int... " >&6; }
13658 if ${ac_cv_alignof_int+:} false; then :
13659 $as_echo_n "(cached) " >&6
13661 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_int" "$ac_includes_default
13663 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
13665 typedef struct { char x; int y; } ac__type_alignof_;"; then :
13668 if test "$ac_cv_type_int" = yes; then
13669 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13671 as_fn_error 77 "cannot compute alignment of int
13672 See \`config.log' for more details" "$LINENO" 5; }
13674 ac_cv_alignof_int=0
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_int" >&5
13680 $as_echo "$ac_cv_alignof_int" >&6; }
13684 cat >>confdefs.h <<_ACEOF
13685 #define ALIGNOF_INT $ac_cv_alignof_int
13689 # The cast to long int works around a bug in the HP C Compiler,
13690 # see AC_CHECK_SIZEOF for more information.
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long" >&5
13692 $as_echo_n "checking alignment of long... " >&6; }
13693 if ${ac_cv_alignof_long+:} false; then :
13694 $as_echo_n "(cached) " >&6
13696 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long" "$ac_includes_default
13698 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
13700 typedef struct { char x; long y; } ac__type_alignof_;"; then :
13703 if test "$ac_cv_type_long" = yes; then
13704 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13705 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13706 as_fn_error 77 "cannot compute alignment of long
13707 See \`config.log' for more details" "$LINENO" 5; }
13709 ac_cv_alignof_long=0
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long" >&5
13715 $as_echo "$ac_cv_alignof_long" >&6; }
13719 cat >>confdefs.h <<_ACEOF
13720 #define ALIGNOF_LONG $ac_cv_alignof_long
13724 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
13725 # The cast to long int works around a bug in the HP C Compiler,
13726 # see AC_CHECK_SIZEOF for more information.
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long long int" >&5
13728 $as_echo_n "checking alignment of long long int... " >&6; }
13729 if ${ac_cv_alignof_long_long_int+:} false; then :
13730 $as_echo_n "(cached) " >&6
13732 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long_long_int" "$ac_includes_default
13734 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
13736 typedef struct { char x; long long int y; } ac__type_alignof_;"; then :
13739 if test "$ac_cv_type_long_long_int" = yes; then
13740 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13741 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13742 as_fn_error 77 "cannot compute alignment of long long int
13743 See \`config.log' for more details" "$LINENO" 5; }
13745 ac_cv_alignof_long_long_int=0
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long_long_int" >&5
13751 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
13755 cat >>confdefs.h <<_ACEOF
13756 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
13761 # The cast to long int works around a bug in the HP C Compiler,
13762 # see AC_CHECK_SIZEOF for more information.
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of double" >&5
13764 $as_echo_n "checking alignment of double... " >&6; }
13765 if ${ac_cv_alignof_double+:} false; then :
13766 $as_echo_n "(cached) " >&6
13768 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_double" "$ac_includes_default
13770 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
13772 typedef struct { char x; double y; } ac__type_alignof_;"; then :
13775 if test "$ac_cv_type_double" = yes; then
13776 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13777 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13778 as_fn_error 77 "cannot compute alignment of double
13779 See \`config.log' for more details" "$LINENO" 5; }
13781 ac_cv_alignof_double=0
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_double" >&5
13787 $as_echo "$ac_cv_alignof_double" >&6; }
13791 cat >>confdefs.h <<_ACEOF
13792 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
13797 # Compute maximum alignment of any basic type.
13798 # We assume long's alignment is at least as strong as char, short, or int;
13799 # but we must check long long (if it exists) and double.
13801 MAX_ALIGNOF=$ac_cv_alignof_long
13802 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
13803 MAX_ALIGNOF=$ac_cv_alignof_double
13805 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
13806 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
13809 cat >>confdefs.h <<_ACEOF
13810 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
13815 # Some platforms predefine the types int8, int16, etc. Only check
13816 # a (hopefully) representative subset.
13817 ac_fn_c_check_type "$LINENO" "int8" "ac_cv_type_int8" "#include <stdio.h>
13819 if test "x$ac_cv_type_int8" = xyes; then :
13821 cat >>confdefs.h <<_ACEOF
13822 #define HAVE_INT8 1
13827 ac_fn_c_check_type "$LINENO" "uint8" "ac_cv_type_uint8" "#include <stdio.h>
13829 if test "x$ac_cv_type_uint8" = xyes; then :
13831 cat >>confdefs.h <<_ACEOF
13832 #define HAVE_UINT8 1
13837 ac_fn_c_check_type "$LINENO" "int64" "ac_cv_type_int64" "#include <stdio.h>
13839 if test "x$ac_cv_type_int64" = xyes; then :
13841 cat >>confdefs.h <<_ACEOF
13842 #define HAVE_INT64 1
13847 ac_fn_c_check_type "$LINENO" "uint64" "ac_cv_type_uint64" "#include <stdio.h>
13849 if test "x$ac_cv_type_uint64" = xyes; then :
13851 cat >>confdefs.h <<_ACEOF
13852 #define HAVE_UINT64 1
13859 # We also check for sig_atomic_t, which *should* be defined per ANSI
13860 # C, but is missing on some old platforms.
13861 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <signal.h>
13863 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
13865 cat >>confdefs.h <<_ACEOF
13866 #define HAVE_SIG_ATOMIC_T 1
13873 # Check for extensions offering the integer scalar type __int128.
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __int128" >&5
13875 $as_echo_n "checking for __int128... " >&6; }
13876 if ${pgac_cv__128bit_int+:} false; then :
13877 $as_echo_n "(cached) " >&6
13879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13880 /* end confdefs.h. */
13883 * These are globals to discourage the compiler from folding all the
13884 * arithmetic tests down to compile-time constants. We do not have
13885 * convenient support for 64bit literals at this point...
13887 __int128 a = 48828125;
13888 __int128 b = 97656255;
13895 a = (a << 12) + 1; /* 200000000001 */
13896 b = (b << 12) + 5; /* 400000000005 */
13897 /* use the most relevant arithmetic ops */
13900 /* return different values, to prevent optimizations */
13909 if ac_fn_c_try_link "$LINENO"; then :
13910 pgac_cv__128bit_int=yes
13912 pgac_cv__128bit_int=no
13914 rm -f core conftest.err conftest.$ac_objext \
13915 conftest$ac_exeext conftest.$ac_ext
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__128bit_int" >&5
13918 $as_echo "$pgac_cv__128bit_int" >&6; }
13919 if test x"$pgac_cv__128bit_int" = xyes ; then
13921 $as_echo "#define PG_INT128_TYPE __int128" >>confdefs.h
13925 # Check for various atomic operations now that we have checked how to declare
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync char locking functions" >&5
13928 $as_echo_n "checking for builtin __sync char locking functions... " >&6; }
13929 if ${pgac_cv_gcc_sync_char_tas+:} false; then :
13930 $as_echo_n "(cached) " >&6
13932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13933 /* end confdefs.h. */
13939 __sync_lock_test_and_set(&lock, 1);
13940 __sync_lock_release(&lock);
13945 if ac_fn_c_try_link "$LINENO"; then :
13946 pgac_cv_gcc_sync_char_tas="yes"
13948 pgac_cv_gcc_sync_char_tas="no"
13950 rm -f core conftest.err conftest.$ac_objext \
13951 conftest$ac_exeext conftest.$ac_ext
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_char_tas" >&5
13954 $as_echo "$pgac_cv_gcc_sync_char_tas" >&6; }
13955 if test x"$pgac_cv_gcc_sync_char_tas" = x"yes"; then
13957 $as_echo "#define HAVE_GCC__SYNC_CHAR_TAS 1" >>confdefs.h
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int32 locking functions" >&5
13961 $as_echo_n "checking for builtin __sync int32 locking functions... " >&6; }
13962 if ${pgac_cv_gcc_sync_int32_tas+:} false; then :
13963 $as_echo_n "(cached) " >&6
13965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13966 /* end confdefs.h. */
13972 __sync_lock_test_and_set(&lock, 1);
13973 __sync_lock_release(&lock);
13978 if ac_fn_c_try_link "$LINENO"; then :
13979 pgac_cv_gcc_sync_int32_tas="yes"
13981 pgac_cv_gcc_sync_int32_tas="no"
13983 rm -f core conftest.err conftest.$ac_objext \
13984 conftest$ac_exeext conftest.$ac_ext
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int32_tas" >&5
13987 $as_echo "$pgac_cv_gcc_sync_int32_tas" >&6; }
13988 if test x"$pgac_cv_gcc_sync_int32_tas" = x"yes"; then
13990 $as_echo "#define HAVE_GCC__SYNC_INT32_TAS 1" >>confdefs.h
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int32 atomic operations" >&5
13994 $as_echo_n "checking for builtin __sync int32 atomic operations... " >&6; }
13995 if ${pgac_cv_gcc_sync_int32_cas+:} false; then :
13996 $as_echo_n "(cached) " >&6
13998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13999 /* end confdefs.h. */
14005 __sync_val_compare_and_swap(&val, 0, 37);
14010 if ac_fn_c_try_link "$LINENO"; then :
14011 pgac_cv_gcc_sync_int32_cas="yes"
14013 pgac_cv_gcc_sync_int32_cas="no"
14015 rm -f core conftest.err conftest.$ac_objext \
14016 conftest$ac_exeext conftest.$ac_ext
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int32_cas" >&5
14019 $as_echo "$pgac_cv_gcc_sync_int32_cas" >&6; }
14020 if test x"$pgac_cv_gcc_sync_int32_cas" = x"yes"; then
14022 $as_echo "#define HAVE_GCC__SYNC_INT32_CAS 1" >>confdefs.h
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int64 atomic operations" >&5
14026 $as_echo_n "checking for builtin __sync int64 atomic operations... " >&6; }
14027 if ${pgac_cv_gcc_sync_int64_cas+:} false; then :
14028 $as_echo_n "(cached) " >&6
14030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14031 /* end confdefs.h. */
14036 PG_INT64_TYPE lock = 0;
14037 __sync_val_compare_and_swap(&lock, 0, (PG_INT64_TYPE) 37);
14042 if ac_fn_c_try_link "$LINENO"; then :
14043 pgac_cv_gcc_sync_int64_cas="yes"
14045 pgac_cv_gcc_sync_int64_cas="no"
14047 rm -f core conftest.err conftest.$ac_objext \
14048 conftest$ac_exeext conftest.$ac_ext
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int64_cas" >&5
14051 $as_echo "$pgac_cv_gcc_sync_int64_cas" >&6; }
14052 if test x"$pgac_cv_gcc_sync_int64_cas" = x"yes"; then
14054 $as_echo "#define HAVE_GCC__SYNC_INT64_CAS 1" >>confdefs.h
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __atomic int32 atomic operations" >&5
14058 $as_echo_n "checking for builtin __atomic int32 atomic operations... " >&6; }
14059 if ${pgac_cv_gcc_atomic_int32_cas+:} false; then :
14060 $as_echo_n "(cached) " >&6
14062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14063 /* end confdefs.h. */
14070 __atomic_compare_exchange_n(&val, &expect, 37, 0, __ATOMIC_SEQ_CST, __ATOMIC_RELAXED);
14075 if ac_fn_c_try_link "$LINENO"; then :
14076 pgac_cv_gcc_atomic_int32_cas="yes"
14078 pgac_cv_gcc_atomic_int32_cas="no"
14080 rm -f core conftest.err conftest.$ac_objext \
14081 conftest$ac_exeext conftest.$ac_ext
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_atomic_int32_cas" >&5
14084 $as_echo "$pgac_cv_gcc_atomic_int32_cas" >&6; }
14085 if test x"$pgac_cv_gcc_atomic_int32_cas" = x"yes"; then
14087 $as_echo "#define HAVE_GCC__ATOMIC_INT32_CAS 1" >>confdefs.h
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __atomic int64 atomic operations" >&5
14091 $as_echo_n "checking for builtin __atomic int64 atomic operations... " >&6; }
14092 if ${pgac_cv_gcc_atomic_int64_cas+:} false; then :
14093 $as_echo_n "(cached) " >&6
14095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14096 /* end confdefs.h. */
14101 PG_INT64_TYPE val = 0;
14102 PG_INT64_TYPE expect = 0;
14103 __atomic_compare_exchange_n(&val, &expect, 37, 0, __ATOMIC_SEQ_CST, __ATOMIC_RELAXED);
14108 if ac_fn_c_try_link "$LINENO"; then :
14109 pgac_cv_gcc_atomic_int64_cas="yes"
14111 pgac_cv_gcc_atomic_int64_cas="no"
14113 rm -f core conftest.err conftest.$ac_objext \
14114 conftest$ac_exeext conftest.$ac_ext
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_atomic_int64_cas" >&5
14117 $as_echo "$pgac_cv_gcc_atomic_int64_cas" >&6; }
14118 if test x"$pgac_cv_gcc_atomic_int64_cas" = x"yes"; then
14120 $as_echo "#define HAVE_GCC__ATOMIC_INT64_CAS 1" >>confdefs.h
14125 # Check for x86 cpuid instruction
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __get_cpuid" >&5
14127 $as_echo_n "checking for __get_cpuid... " >&6; }
14128 if ${pgac_cv__get_cpuid+:} false; then :
14129 $as_echo_n "(cached) " >&6
14131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14132 /* end confdefs.h. */
14137 unsigned int exx[4] = {0, 0, 0, 0};
14138 __get_cpuid(1, &exx[0], &exx[1], &exx[2], &exx[3]);
14144 if ac_fn_c_try_link "$LINENO"; then :
14145 pgac_cv__get_cpuid="yes"
14147 pgac_cv__get_cpuid="no"
14149 rm -f core conftest.err conftest.$ac_objext \
14150 conftest$ac_exeext conftest.$ac_ext
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__get_cpuid" >&5
14153 $as_echo "$pgac_cv__get_cpuid" >&6; }
14154 if test x"$pgac_cv__get_cpuid" = x"yes"; then
14156 $as_echo "#define HAVE__GET_CPUID 1" >>confdefs.h
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __cpuid" >&5
14161 $as_echo_n "checking for __cpuid... " >&6; }
14162 if ${pgac_cv__cpuid+:} false; then :
14163 $as_echo_n "(cached) " >&6
14165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14166 /* end confdefs.h. */
14167 #include <intrin.h>
14171 unsigned int exx[4] = {0, 0, 0, 0};
14172 __get_cpuid(exx[0], 1);
14178 if ac_fn_c_try_link "$LINENO"; then :
14179 pgac_cv__cpuid="yes"
14181 pgac_cv__cpuid="no"
14183 rm -f core conftest.err conftest.$ac_objext \
14184 conftest$ac_exeext conftest.$ac_ext
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__cpuid" >&5
14187 $as_echo "$pgac_cv__cpuid" >&6; }
14188 if test x"$pgac_cv__cpuid" = x"yes"; then
14190 $as_echo "#define HAVE__CPUID 1" >>confdefs.h
14194 # Check for Intel SSE 4.2 intrinsics to do CRC calculations.
14196 # First check if the _mm_crc32_u8 and _mm_crc32_u64 intrinsics can be used
14197 # with the default compiler flags. If not, check if adding the -msse4.2
14198 # flag helps. CFLAGS_SSE42 is set to -msse4.2 if that's required.
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=" >&5
14200 $as_echo_n "checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=... " >&6; }
14201 if ${pgac_cv_sse42_crc32_intrinsics_+:} false; then :
14202 $as_echo_n "(cached) " >&6
14204 pgac_save_CFLAGS=$CFLAGS
14205 CFLAGS="$pgac_save_CFLAGS "
14206 ac_save_c_werror_flag=$ac_c_werror_flag
14207 ac_c_werror_flag=yes
14208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14209 /* end confdefs.h. */
14210 #include <nmmintrin.h>
14214 unsigned int crc = 0;
14215 crc = _mm_crc32_u8(crc, 0);
14216 crc = _mm_crc32_u32(crc, 0);
14221 if ac_fn_c_try_link "$LINENO"; then :
14222 pgac_cv_sse42_crc32_intrinsics_=yes
14224 pgac_cv_sse42_crc32_intrinsics_=no
14226 rm -f core conftest.err conftest.$ac_objext \
14227 conftest$ac_exeext conftest.$ac_ext
14228 ac_c_werror_flag=$ac_save_c_werror_flag
14229 CFLAGS="$pgac_save_CFLAGS"
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_sse42_crc32_intrinsics_" >&5
14232 $as_echo "$pgac_cv_sse42_crc32_intrinsics_" >&6; }
14233 if test x"$pgac_cv_sse42_crc32_intrinsics_" = x"yes"; then
14235 pgac_sse42_crc32_intrinsics=yes
14238 if test x"$pgac_sse42_crc32_intrinsics" != x"yes"; then
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=-msse4.2" >&5
14240 $as_echo_n "checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=-msse4.2... " >&6; }
14241 if ${pgac_cv_sse42_crc32_intrinsics__msse4_2+:} false; then :
14242 $as_echo_n "(cached) " >&6
14244 pgac_save_CFLAGS=$CFLAGS
14245 CFLAGS="$pgac_save_CFLAGS -msse4.2"
14246 ac_save_c_werror_flag=$ac_c_werror_flag
14247 ac_c_werror_flag=yes
14248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14249 /* end confdefs.h. */
14250 #include <nmmintrin.h>
14254 unsigned int crc = 0;
14255 crc = _mm_crc32_u8(crc, 0);
14256 crc = _mm_crc32_u32(crc, 0);
14261 if ac_fn_c_try_link "$LINENO"; then :
14262 pgac_cv_sse42_crc32_intrinsics__msse4_2=yes
14264 pgac_cv_sse42_crc32_intrinsics__msse4_2=no
14266 rm -f core conftest.err conftest.$ac_objext \
14267 conftest$ac_exeext conftest.$ac_ext
14268 ac_c_werror_flag=$ac_save_c_werror_flag
14269 CFLAGS="$pgac_save_CFLAGS"
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_sse42_crc32_intrinsics__msse4_2" >&5
14272 $as_echo "$pgac_cv_sse42_crc32_intrinsics__msse4_2" >&6; }
14273 if test x"$pgac_cv_sse42_crc32_intrinsics__msse4_2" = x"yes"; then
14274 CFLAGS_SSE42="-msse4.2"
14275 pgac_sse42_crc32_intrinsics=yes
14281 # Are we targeting a processor that supports SSE 4.2? gcc, clang and icc all
14282 # define __SSE4_2__ in that case.
14283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14284 /* end confdefs.h. */
14291 #error __SSE4_2__ not defined
14298 if ac_fn_c_try_compile "$LINENO"; then :
14301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14303 # Select CRC-32C implementation.
14305 # If we are targeting a processor that has SSE 4.2 instructions, we can use the
14306 # special CRC instructions for calculating CRC-32C. If we're not targeting such
14307 # a processor, but we can nevertheless produce code that uses the SSE
14308 # intrinsics, perhaps with some extra CFLAGS, compile both implementations and
14309 # select which one to use at runtime, depending on whether SSE 4.2 is supported
14310 # by the processor we're running on.
14312 # You can override this logic by setting the appropriate USE_*_CRC32 flag to 1
14313 # in the template or configure command line.
14314 if test x"$USE_SSE42_CRC32C" = x"" && test x"$USE_SSE42_CRC32C_WITH_RUNTIME_CHECK" = x"" && test x"$USE_SLICING_BY_8_CRC32C" = x""; then
14315 if test x"$pgac_sse42_crc32_intrinsics" = x"yes" && test x"$SSE4_2_TARGETED" = x"1" ; then
14318 # the CPUID instruction is needed for the runtime check.
14319 if test x"$pgac_sse42_crc32_intrinsics" = x"yes" && (test x"$pgac_cv__get_cpuid" = x"yes" || test x"$pgac_cv__cpuid" = x"yes"); then
14320 USE_SSE42_CRC32C_WITH_RUNTIME_CHECK=1
14322 # fall back to slicing-by-8 algorithm which doesn't require any special
14324 USE_SLICING_BY_8_CRC32C=1
14329 # Set PG_CRC32C_OBJS appropriately depending on the selected implementation.
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which CRC-32C implementation to use" >&5
14331 $as_echo_n "checking which CRC-32C implementation to use... " >&6; }
14332 if test x"$USE_SSE42_CRC32C" = x"1"; then
14334 $as_echo "#define USE_SSE42_CRC32C 1" >>confdefs.h
14336 PG_CRC32C_OBJS="pg_crc32c_sse42.o"
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SSE 4.2" >&5
14338 $as_echo "SSE 4.2" >&6; }
14340 if test x"$USE_SSE42_CRC32C_WITH_RUNTIME_CHECK" = x"1"; then
14342 $as_echo "#define USE_SSE42_CRC32C_WITH_RUNTIME_CHECK 1" >>confdefs.h
14344 PG_CRC32C_OBJS="pg_crc32c_sse42.o pg_crc32c_sb8.o pg_crc32c_choose.o"
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SSE 4.2 with runtime check" >&5
14346 $as_echo "SSE 4.2 with runtime check" >&6; }
14349 $as_echo "#define USE_SLICING_BY_8_CRC32C 1" >>confdefs.h
14351 PG_CRC32C_OBJS="pg_crc32c_sb8.o"
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: slicing-by-8" >&5
14353 $as_echo "slicing-by-8" >&6; }
14359 # Check that POSIX signals are available if thread safety is enabled.
14360 if test "$PORTNAME" != "win32"
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX signal interface" >&5
14363 $as_echo_n "checking for POSIX signal interface... " >&6; }
14364 if ${pgac_cv_func_posix_signals+:} false; then :
14365 $as_echo_n "(cached) " >&6
14367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14368 /* end confdefs.h. */
14369 #include <signal.h>
14374 struct sigaction act, oact;
14375 sigemptyset(&act.sa_mask);
14376 act.sa_flags = SA_RESTART;
14377 sigaction(0, &act, &oact);
14382 if ac_fn_c_try_link "$LINENO"; then :
14383 pgac_cv_func_posix_signals=yes
14385 pgac_cv_func_posix_signals=no
14387 rm -f core conftest.err conftest.$ac_objext \
14388 conftest$ac_exeext conftest.$ac_ext
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_posix_signals" >&5
14391 $as_echo "$pgac_cv_func_posix_signals" >&6; }
14392 if test x"$pgac_cv_func_posix_signals" = xyes ; then
14394 $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
14397 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
14399 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
14401 Thread-safety requires POSIX signals, which are not supported by this
14402 operating system; use --disable-thread-safety to disable thread safety." "$LINENO" 5
14407 # Select semaphore implementation type.
14408 if test "$PORTNAME" != "win32"; then
14409 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
14411 $as_echo "#define USE_NAMED_POSIX_SEMAPHORES 1" >>confdefs.h
14413 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
14415 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
14417 $as_echo "#define USE_UNNAMED_POSIX_SEMAPHORES 1" >>confdefs.h
14419 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
14422 $as_echo "#define USE_SYSV_SEMAPHORES 1" >>confdefs.h
14424 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
14429 $as_echo "#define USE_WIN32_SEMAPHORES 1" >>confdefs.h
14431 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
14435 # Select shared-memory implementation type.
14436 if test "$PORTNAME" != "win32"; then
14438 $as_echo "#define USE_SYSV_SHARED_MEMORY 1" >>confdefs.h
14440 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
14443 $as_echo "#define USE_WIN32_SHARED_MEMORY 1" >>confdefs.h
14445 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
14448 # Select latch implementation type.
14449 if test "$PORTNAME" != "win32"; then
14450 LATCH_IMPLEMENTATION="src/backend/port/unix_latch.c"
14452 LATCH_IMPLEMENTATION="src/backend/port/win32_latch.c"
14455 # If not set in template file, set bytes to use libc memset()
14456 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
14457 MEMSET_LOOP_LIMIT=1024
14460 cat >>confdefs.h <<_ACEOF
14461 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
14466 if test "$enable_nls" = yes ; then
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind_textdomain_codeset" >&5
14469 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
14470 if ${ac_cv_search_bind_textdomain_codeset+:} false; then :
14471 $as_echo_n "(cached) " >&6
14473 ac_func_search_save_LIBS=$LIBS
14474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14475 /* end confdefs.h. */
14477 /* Override any GCC internal prototype to avoid an error.
14478 Use char because int might match the return type of a GCC
14479 builtin and then its argument prototype would still apply. */
14483 char bind_textdomain_codeset ();
14487 return bind_textdomain_codeset ();
14492 for ac_lib in '' intl; do
14493 if test -z "$ac_lib"; then
14494 ac_res="none required"
14497 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14499 if ac_fn_c_try_link "$LINENO"; then :
14500 ac_cv_search_bind_textdomain_codeset=$ac_res
14502 rm -f core conftest.err conftest.$ac_objext \
14504 if ${ac_cv_search_bind_textdomain_codeset+:} false; then :
14508 if ${ac_cv_search_bind_textdomain_codeset+:} false; then :
14511 ac_cv_search_bind_textdomain_codeset=no
14513 rm conftest.$ac_ext
14514 LIBS=$ac_func_search_save_LIBS
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind_textdomain_codeset" >&5
14517 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
14518 ac_res=$ac_cv_search_bind_textdomain_codeset
14519 if test "$ac_res" != no; then :
14520 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14523 as_fn_error $? "a gettext implementation is required for NLS" "$LINENO" 5
14526 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
14527 if test "x$ac_cv_header_libintl_h" = xyes; then :
14530 as_fn_error $? "header file <libintl.h> is required for NLS" "$LINENO" 5
14534 for ac_prog in msgfmt
14536 # Extract the first word of "$ac_prog", so it can be a program name with args.
14537 set dummy $ac_prog; ac_word=$2
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14539 $as_echo_n "checking for $ac_word... " >&6; }
14540 if ${ac_cv_prog_MSGFMT+:} false; then :
14541 $as_echo_n "(cached) " >&6
14543 if test -n "$MSGFMT"; then
14544 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
14546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14547 for as_dir in $PATH
14550 test -z "$as_dir" && as_dir=.
14551 for ac_exec_ext in '' $ac_executable_extensions; do
14552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14553 ac_cv_prog_MSGFMT="$ac_prog"
14554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14563 MSGFMT=$ac_cv_prog_MSGFMT
14564 if test -n "$MSGFMT"; then
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
14566 $as_echo "$MSGFMT" >&6; }
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14569 $as_echo "no" >&6; }
14573 test -n "$MSGFMT" && break
14576 if test -z "$MSGFMT"; then
14577 as_fn_error $? "msgfmt is required for NLS" "$LINENO" 5
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msgfmt flags" >&5
14580 $as_echo_n "checking for msgfmt flags... " >&6; }
14581 if ${pgac_cv_msgfmt_flags+:} false; then :
14582 $as_echo_n "(cached) " >&6
14584 if test x"$MSGFMT" != x"" && "$MSGFMT" --version 2>&1 | grep "GNU" >/dev/null; then
14585 pgac_cv_msgfmt_flags=-c
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_msgfmt_flags" >&5
14589 $as_echo "$pgac_cv_msgfmt_flags" >&6; }
14590 MSGFMT_FLAGS=$pgac_cv_msgfmt_flags
14592 for ac_prog in msgmerge
14594 # Extract the first word of "$ac_prog", so it can be a program name with args.
14595 set dummy $ac_prog; ac_word=$2
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14597 $as_echo_n "checking for $ac_word... " >&6; }
14598 if ${ac_cv_prog_MSGMERGE+:} false; then :
14599 $as_echo_n "(cached) " >&6
14601 if test -n "$MSGMERGE"; then
14602 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
14604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14605 for as_dir in $PATH
14608 test -z "$as_dir" && as_dir=.
14609 for ac_exec_ext in '' $ac_executable_extensions; do
14610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14611 ac_cv_prog_MSGMERGE="$ac_prog"
14612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14621 MSGMERGE=$ac_cv_prog_MSGMERGE
14622 if test -n "$MSGMERGE"; then
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
14624 $as_echo "$MSGMERGE" >&6; }
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14627 $as_echo "no" >&6; }
14631 test -n "$MSGMERGE" && break
14634 for ac_prog in xgettext
14636 # Extract the first word of "$ac_prog", so it can be a program name with args.
14637 set dummy $ac_prog; ac_word=$2
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14639 $as_echo_n "checking for $ac_word... " >&6; }
14640 if ${ac_cv_prog_XGETTEXT+:} false; then :
14641 $as_echo_n "(cached) " >&6
14643 if test -n "$XGETTEXT"; then
14644 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
14646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14647 for as_dir in $PATH
14650 test -z "$as_dir" && as_dir=.
14651 for ac_exec_ext in '' $ac_executable_extensions; do
14652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14653 ac_cv_prog_XGETTEXT="$ac_prog"
14654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14663 XGETTEXT=$ac_cv_prog_XGETTEXT
14664 if test -n "$XGETTEXT"; then
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
14666 $as_echo "$XGETTEXT" >&6; }
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14669 $as_echo "no" >&6; }
14673 test -n "$XGETTEXT" && break
14679 # Check for Tcl configuration script tclConfig.sh
14680 if test "$with_tcl" = yes; then
14681 for ac_prog in tclsh tcl tclsh8.6 tclsh86 tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
14683 # Extract the first word of "$ac_prog", so it can be a program name with args.
14684 set dummy $ac_prog; ac_word=$2
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14686 $as_echo_n "checking for $ac_word... " >&6; }
14687 if ${ac_cv_path_TCLSH+:} false; then :
14688 $as_echo_n "(cached) " >&6
14692 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
14695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14696 for as_dir in $PATH
14699 test -z "$as_dir" && as_dir=.
14700 for ac_exec_ext in '' $ac_executable_extensions; do
14701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14702 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
14703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14713 TCLSH=$ac_cv_path_TCLSH
14714 if test -n "$TCLSH"; then
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
14716 $as_echo "$TCLSH" >&6; }
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14719 $as_echo "no" >&6; }
14723 test -n "$TCLSH" && break
14726 if test x"$TCLSH" = x""; then
14727 as_fn_error $? "Tcl shell not found" "$LINENO" 5
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclConfig.sh" >&5
14731 $as_echo_n "checking for tclConfig.sh... " >&6; }
14732 # Let user override test
14733 if test -z "$TCL_CONFIG_SH"; then
14734 pgac_test_dirs="$with_tclconfig"
14736 set X $pgac_test_dirs; shift
14737 if test $# -eq 0; then
14738 test -z "$TCLSH" && as_fn_error $? "unable to locate tclConfig.sh because no Tcl shell was found" "$LINENO" 5
14739 set X `echo 'puts $auto_path' | $TCLSH`; shift
14743 if test -r "$pgac_dir/tclConfig.sh"; then
14744 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
14750 if test -z "$TCL_CONFIG_SH"; then
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14752 $as_echo "no" >&6; }
14753 as_fn_error $? "file 'tclConfig.sh' is required for Tcl" "$LINENO" 5
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCL_CONFIG_SH" >&5
14756 $as_echo "$TCL_CONFIG_SH" >&6; }
14762 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
14763 eval TCL_LIBS=\"$TCL_LIBS\"
14764 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
14765 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
14767 if test "$TCL_SHARED_BUILD" != 1; then
14768 as_fn_error $? "cannot build PL/Tcl because Tcl is not a shared library
14769 Use --without-tcl to disable building PL/Tcl." "$LINENO" 5
14771 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
14772 ac_save_CPPFLAGS=$CPPFLAGS
14773 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
14774 ac_fn_c_check_header_mongrel "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
14775 if test "x$ac_cv_header_tcl_h" = xyes; then :
14778 as_fn_error $? "header file <tcl.h> is required for Tcl" "$LINENO" 5
14782 CPPFLAGS=$ac_save_CPPFLAGS
14785 # check for <perl.h>
14786 if test "$with_perl" = yes; then
14787 ac_save_CPPFLAGS=$CPPFLAGS
14788 CPPFLAGS="$CPPFLAGS -I$perl_archlibexp/CORE"
14789 ac_fn_c_check_header_compile "$LINENO" "perl.h" "ac_cv_header_perl_h" "#include <EXTERN.h>
14791 if test "x$ac_cv_header_perl_h" = xyes; then :
14794 as_fn_error $? "header file <perl.h> is required for Perl" "$LINENO" 5
14798 # While we're at it, check that we can link to libperl.
14799 # On most platforms, if perl.h is there then libperl.so will be too, but at
14800 # this writing Debian packages them separately. There is no known reason to
14801 # waste cycles on separate probes for the Tcl or Python libraries, though.
14802 pgac_save_LIBS=$LIBS
14803 LIBS="$perl_embed_ldflags"
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libperl" >&5
14805 $as_echo_n "checking for libperl... " >&6; }
14806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14807 /* end confdefs.h. */
14809 #include <EXTERN.h>
14820 if ac_fn_c_try_link "$LINENO"; then :
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14822 $as_echo "yes" >&6; }
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14825 $as_echo "no" >&6; }
14826 as_fn_error $? "libperl library is required for Perl" "$LINENO" 5
14828 rm -f core conftest.err conftest.$ac_objext \
14829 conftest$ac_exeext conftest.$ac_ext
14830 LIBS=$pgac_save_LIBS
14831 CPPFLAGS=$ac_save_CPPFLAGS
14834 # check for <Python.h>
14835 if test "$with_python" = yes; then
14836 ac_save_CPPFLAGS=$CPPFLAGS
14837 CPPFLAGS="$python_includespec $CPPFLAGS"
14838 ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
14839 if test "x$ac_cv_header_Python_h" = xyes; then :
14842 as_fn_error $? "header file <Python.h> is required for Python" "$LINENO" 5
14846 CPPFLAGS=$ac_save_CPPFLAGS
14850 # Check for DocBook and tools
14852 for ac_prog in onsgmls nsgmls
14854 # Extract the first word of "$ac_prog", so it can be a program name with args.
14855 set dummy $ac_prog; ac_word=$2
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14857 $as_echo_n "checking for $ac_word... " >&6; }
14858 if ${ac_cv_prog_NSGMLS+:} false; then :
14859 $as_echo_n "(cached) " >&6
14861 if test -n "$NSGMLS"; then
14862 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
14864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14865 for as_dir in $PATH
14868 test -z "$as_dir" && as_dir=.
14869 for ac_exec_ext in '' $ac_executable_extensions; do
14870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14871 ac_cv_prog_NSGMLS="$ac_prog"
14872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14881 NSGMLS=$ac_cv_prog_NSGMLS
14882 if test -n "$NSGMLS"; then
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NSGMLS" >&5
14884 $as_echo "$NSGMLS" >&6; }
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14887 $as_echo "no" >&6; }
14891 test -n "$NSGMLS" && break
14894 for ac_prog in openjade jade
14896 # Extract the first word of "$ac_prog", so it can be a program name with args.
14897 set dummy $ac_prog; ac_word=$2
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14899 $as_echo_n "checking for $ac_word... " >&6; }
14900 if ${ac_cv_prog_JADE+:} false; then :
14901 $as_echo_n "(cached) " >&6
14903 if test -n "$JADE"; then
14904 ac_cv_prog_JADE="$JADE" # Let the user override the test.
14906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14907 for as_dir in $PATH
14910 test -z "$as_dir" && as_dir=.
14911 for ac_exec_ext in '' $ac_executable_extensions; do
14912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14913 ac_cv_prog_JADE="$ac_prog"
14914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14923 JADE=$ac_cv_prog_JADE
14924 if test -n "$JADE"; then
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JADE" >&5
14926 $as_echo "$JADE" >&6; }
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14929 $as_echo "no" >&6; }
14933 test -n "$JADE" && break
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DocBook V4.2" >&5
14938 $as_echo_n "checking for DocBook V4.2... " >&6; }
14939 if ${pgac_cv_check_docbook+:} false; then :
14940 $as_echo_n "(cached) " >&6
14942 cat >conftest.sgml <<EOF
14943 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
14945 <title>test</title>
14947 <title>random</title>
14949 <title>testsect</title>
14956 pgac_cv_check_docbook=no
14958 if test -n "$NSGMLS"; then
14959 $NSGMLS -s conftest.sgml 1>&5 2>&1
14960 if test $? -eq 0; then
14961 pgac_cv_check_docbook=yes
14964 rm -f conftest.sgml
14966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_check_docbook" >&5
14967 $as_echo "$pgac_cv_check_docbook" >&6; }
14969 have_docbook=$pgac_cv_check_docbook
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DocBook stylesheets" >&5
14973 $as_echo_n "checking for DocBook stylesheets... " >&6; }
14974 if ${pgac_cv_path_stylesheets+:} false; then :
14975 $as_echo_n "(cached) " >&6
14977 if test -n "$DOCBOOKSTYLE"; then
14978 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
14980 for pgac_prefix in /usr /usr/local /opt /sw; do
14981 for pgac_infix in share lib; do
14982 for pgac_postfix in \
14983 sgml/stylesheets/nwalsh-modular \
14984 sgml/stylesheets/docbook \
14985 sgml/stylesheets/dsssl/docbook \
14986 sgml/docbook-dsssl \
14987 sgml/docbook/dsssl/modular \
14988 sgml/docbook/stylesheet/dsssl/modular \
14989 sgml/docbook/dsssl-stylesheets \
14990 sgml/dsssl/docbook-dsssl-nwalsh
14992 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
14993 if test -r "$pgac_candidate/html/docbook.dsl" \
14994 && test -r "$pgac_candidate/print/docbook.dsl"
14996 pgac_cv_path_stylesheets=$pgac_candidate
15005 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
15007 if test -n "$DOCBOOKSTYLE"; then
15008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOCBOOKSTYLE" >&5
15009 $as_echo "$DOCBOOKSTYLE" >&6; }
15011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15012 $as_echo "no" >&6; }
15014 if test -n "$DOCBOOKSTYLE" -a -r "$DOCBOOKSTYLE/bin/collateindex.pl"; then
15015 COLLATEINDEX="$DOCBOOKSTYLE/bin/collateindex.pl"
15018 # Extract the first word of "collateindex.pl", so it can be a program name with args.
15019 set dummy collateindex.pl; ac_word=$2
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15021 $as_echo_n "checking for $ac_word... " >&6; }
15022 if ${ac_cv_path_COLLATEINDEX+:} false; then :
15023 $as_echo_n "(cached) " >&6
15025 case $COLLATEINDEX in
15027 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
15030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15031 for as_dir in $PATH
15034 test -z "$as_dir" && as_dir=.
15035 for ac_exec_ext in '' $ac_executable_extensions; do
15036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15037 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
15038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15048 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
15049 if test -n "$COLLATEINDEX"; then
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COLLATEINDEX" >&5
15051 $as_echo "$COLLATEINDEX" >&6; }
15053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15054 $as_echo "no" >&6; }
15059 for ac_prog in dbtoepub
15061 # Extract the first word of "$ac_prog", so it can be a program name with args.
15062 set dummy $ac_prog; ac_word=$2
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15064 $as_echo_n "checking for $ac_word... " >&6; }
15065 if ${ac_cv_prog_DBTOEPUB+:} false; then :
15066 $as_echo_n "(cached) " >&6
15068 if test -n "$DBTOEPUB"; then
15069 ac_cv_prog_DBTOEPUB="$DBTOEPUB" # Let the user override the test.
15071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15072 for as_dir in $PATH
15075 test -z "$as_dir" && as_dir=.
15076 for ac_exec_ext in '' $ac_executable_extensions; do
15077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15078 ac_cv_prog_DBTOEPUB="$ac_prog"
15079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15088 DBTOEPUB=$ac_cv_prog_DBTOEPUB
15089 if test -n "$DBTOEPUB"; then
15090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBTOEPUB" >&5
15091 $as_echo "$DBTOEPUB" >&6; }
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15094 $as_echo "no" >&6; }
15098 test -n "$DBTOEPUB" && break
15101 for ac_prog in xmllint
15103 # Extract the first word of "$ac_prog", so it can be a program name with args.
15104 set dummy $ac_prog; ac_word=$2
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15106 $as_echo_n "checking for $ac_word... " >&6; }
15107 if ${ac_cv_prog_XMLLINT+:} false; then :
15108 $as_echo_n "(cached) " >&6
15110 if test -n "$XMLLINT"; then
15111 ac_cv_prog_XMLLINT="$XMLLINT" # Let the user override the test.
15113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15114 for as_dir in $PATH
15117 test -z "$as_dir" && as_dir=.
15118 for ac_exec_ext in '' $ac_executable_extensions; do
15119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15120 ac_cv_prog_XMLLINT="$ac_prog"
15121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15130 XMLLINT=$ac_cv_prog_XMLLINT
15131 if test -n "$XMLLINT"; then
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
15133 $as_echo "$XMLLINT" >&6; }
15135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15136 $as_echo "no" >&6; }
15140 test -n "$XMLLINT" && break
15143 for ac_prog in xsltproc
15145 # Extract the first word of "$ac_prog", so it can be a program name with args.
15146 set dummy $ac_prog; ac_word=$2
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15148 $as_echo_n "checking for $ac_word... " >&6; }
15149 if ${ac_cv_prog_XSLTPROC+:} false; then :
15150 $as_echo_n "(cached) " >&6
15152 if test -n "$XSLTPROC"; then
15153 ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
15155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15156 for as_dir in $PATH
15159 test -z "$as_dir" && as_dir=.
15160 for ac_exec_ext in '' $ac_executable_extensions; do
15161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15162 ac_cv_prog_XSLTPROC="$ac_prog"
15163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15172 XSLTPROC=$ac_cv_prog_XSLTPROC
15173 if test -n "$XSLTPROC"; then
15174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
15175 $as_echo "$XSLTPROC" >&6; }
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15178 $as_echo "no" >&6; }
15182 test -n "$XSLTPROC" && break
15185 for ac_prog in osx sgml2xml sx
15187 # Extract the first word of "$ac_prog", so it can be a program name with args.
15188 set dummy $ac_prog; ac_word=$2
15189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15190 $as_echo_n "checking for $ac_word... " >&6; }
15191 if ${ac_cv_prog_OSX+:} false; then :
15192 $as_echo_n "(cached) " >&6
15194 if test -n "$OSX"; then
15195 ac_cv_prog_OSX="$OSX" # Let the user override the test.
15197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15198 for as_dir in $PATH
15201 test -z "$as_dir" && as_dir=.
15202 for ac_exec_ext in '' $ac_executable_extensions; do
15203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15204 ac_cv_prog_OSX="$ac_prog"
15205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15214 OSX=$ac_cv_prog_OSX
15215 if test -n "$OSX"; then
15216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OSX" >&5
15217 $as_echo "$OSX" >&6; }
15219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15220 $as_echo "no" >&6; }
15224 test -n "$OSX" && break
15229 # Check for test tools
15231 if test "$enable_tap_tests" = yes; then
15232 for ac_prog in prove
15234 # Extract the first word of "$ac_prog", so it can be a program name with args.
15235 set dummy $ac_prog; ac_word=$2
15236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15237 $as_echo_n "checking for $ac_word... " >&6; }
15238 if ${ac_cv_prog_PROVE+:} false; then :
15239 $as_echo_n "(cached) " >&6
15241 if test -n "$PROVE"; then
15242 ac_cv_prog_PROVE="$PROVE" # Let the user override the test.
15244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15245 for as_dir in $PATH
15248 test -z "$as_dir" && as_dir=.
15249 for ac_exec_ext in '' $ac_executable_extensions; do
15250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15251 ac_cv_prog_PROVE="$ac_prog"
15252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15261 PROVE=$ac_cv_prog_PROVE
15262 if test -n "$PROVE"; then
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROVE" >&5
15264 $as_echo "$PROVE" >&6; }
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15267 $as_echo "no" >&6; }
15271 test -n "$PROVE" && break
15274 if test -z "$PROVE"; then
15275 as_fn_error $? "prove not found" "$LINENO" 5
15277 if test -z "$PERL"; then
15278 as_fn_error $? "Perl not found" "$LINENO" 5
15284 # We have to run the thread test near the end so we have all our symbols
15285 # defined. Cross compiling throws a warning.
15287 if test "$enable_thread_safety" = yes; then
15288 if test "$PORTNAME" != "win32"
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking thread safety of required library functions" >&5
15291 $as_echo_n "checking thread safety of required library functions... " >&6; }
15295 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
15296 LIBS="$LIBS $PTHREAD_LIBS"
15297 if test "$cross_compiling" = yes; then :
15298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: maybe" >&5
15299 $as_echo "maybe" >&6; }
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15301 *** Skipping thread test program because of cross-compile build.
15302 *** Run the program in src/test/thread on the target machine.
15304 $as_echo "$as_me: WARNING:
15305 *** Skipping thread test program because of cross-compile build.
15306 *** Run the program in src/test/thread on the target machine.
15309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15310 /* end confdefs.h. */
15311 #include "$srcdir/src/test/thread/thread_test.c"
15313 if ac_fn_c_try_run "$LINENO"; then :
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15315 $as_echo "yes" >&6; }
15317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15318 $as_echo "no" >&6; }
15319 as_fn_error $? "thread test program failed
15320 This platform is not thread-safe. Check the file 'config.log' or compile
15321 and run src/test/thread/thread_test for the exact reason.
15322 Use --disable-thread-safety to disable thread safety." "$LINENO" 5
15324 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15325 conftest.$ac_objext conftest.beam conftest.$ac_ext
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** skipping thread test on Win32" >&5
15332 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
15336 # If compiler will take -Wl,--as-needed (or various platform-specific
15337 # spellings thereof) then add that to LDFLAGS. This is much easier than
15338 # trying to filter LIBS to the minimum for each executable.
15339 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
15340 # libreadline; therefore we postpone testing it until we know what library
15341 # dependencies readline has. The test code will try to link with $LIBS.
15342 if test "$with_readline" = yes; then
15343 link_test_func=readline
15345 link_test_func=exit
15348 if test "$PORTNAME" = "darwin"; then
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,-dead_strip_dylibs" >&5
15350 $as_echo_n "checking whether $CC supports -Wl,-dead_strip_dylibs... " >&6; }
15351 if ${pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs+:} false; then :
15352 $as_echo_n "(cached) " >&6
15354 pgac_save_LDFLAGS=$LDFLAGS
15355 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
15356 if test "$cross_compiling" = yes; then :
15357 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs="assuming no"
15359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15360 /* end confdefs.h. */
15361 extern void $link_test_func (); void (*fptr) () = $link_test_func;
15370 if ac_fn_c_try_run "$LINENO"; then :
15371 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=yes
15373 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=no
15375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15376 conftest.$ac_objext conftest.beam conftest.$ac_ext
15379 LDFLAGS="$pgac_save_LDFLAGS"
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&5
15382 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&6; }
15383 if test x"$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" = x"yes"; then
15384 LDFLAGS="$LDFLAGS -Wl,-dead_strip_dylibs"
15387 elif test "$PORTNAME" = "openbsd"; then
15388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,-Bdynamic" >&5
15389 $as_echo_n "checking whether $CC supports -Wl,-Bdynamic... " >&6; }
15390 if ${pgac_cv_prog_cc_ldflags__Wl__Bdynamic+:} false; then :
15391 $as_echo_n "(cached) " >&6
15393 pgac_save_LDFLAGS=$LDFLAGS
15394 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
15395 if test "$cross_compiling" = yes; then :
15396 pgac_cv_prog_cc_ldflags__Wl__Bdynamic="assuming no"
15398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15399 /* end confdefs.h. */
15400 extern void $link_test_func (); void (*fptr) () = $link_test_func;
15409 if ac_fn_c_try_run "$LINENO"; then :
15410 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=yes
15412 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=no
15414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15415 conftest.$ac_objext conftest.beam conftest.$ac_ext
15418 LDFLAGS="$pgac_save_LDFLAGS"
15420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&5
15421 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&6; }
15422 if test x"$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" = x"yes"; then
15423 LDFLAGS="$LDFLAGS -Wl,-Bdynamic"
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,--as-needed" >&5
15428 $as_echo_n "checking whether $CC supports -Wl,--as-needed... " >&6; }
15429 if ${pgac_cv_prog_cc_ldflags__Wl___as_needed+:} false; then :
15430 $as_echo_n "(cached) " >&6
15432 pgac_save_LDFLAGS=$LDFLAGS
15433 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
15434 if test "$cross_compiling" = yes; then :
15435 pgac_cv_prog_cc_ldflags__Wl___as_needed="assuming no"
15437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15438 /* end confdefs.h. */
15439 extern void $link_test_func (); void (*fptr) () = $link_test_func;
15448 if ac_fn_c_try_run "$LINENO"; then :
15449 pgac_cv_prog_cc_ldflags__Wl___as_needed=yes
15451 pgac_cv_prog_cc_ldflags__Wl___as_needed=no
15453 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15454 conftest.$ac_objext conftest.beam conftest.$ac_ext
15457 LDFLAGS="$pgac_save_LDFLAGS"
15459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_ldflags__Wl___as_needed" >&5
15460 $as_echo "$pgac_cv_prog_cc_ldflags__Wl___as_needed" >&6; }
15461 if test x"$pgac_cv_prog_cc_ldflags__Wl___as_needed" = x"yes"; then
15462 LDFLAGS="$LDFLAGS -Wl,--as-needed"
15467 # Create compiler version string
15468 if test x"$GCC" = x"yes" ; then
15469 cc_string=`${CC} --version | sed q`
15470 case $cc_string in [A-Za-z]*) ;; *) cc_string="GCC $cc_string";; esac
15471 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
15472 cc_string=`${CC} -V 2>&1 | sed q`
15478 cat >>confdefs.h <<_ACEOF
15479 #define PG_VERSION_STR "PostgreSQL $PG_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
15483 # Supply a numeric version string for use by 3rd party add-ons
15484 # awk -F is a regex on some platforms, and not on others, so make "." a tab
15485 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
15487 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
15489 cat >>confdefs.h <<_ACEOF
15490 #define PG_VERSION_NUM $PG_VERSION_NUM
15495 # Begin output steps
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: using compiler=$cc_string" >&5
15498 $as_echo "$as_me: using compiler=$cc_string" >&6;}
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS=$CFLAGS" >&5
15500 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS=$CPPFLAGS" >&5
15502 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
15503 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS=$LDFLAGS" >&5
15504 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
15506 # prepare build tree if outside source tree
15507 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
15508 # Note 2: /bin/pwd might be better than shell's built-in at getting
15509 # a symlink-free name.
15510 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
15514 if test "$no_create" != yes; then
15515 $as_echo_n "preparing build tree... " >&6
15516 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
15517 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
15518 || as_fn_error $? "failed" "$LINENO" 5
15519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15520 $as_echo "done" >&6; }
15526 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
15529 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}"
15532 if test "$PORTNAME" = "win32"; then
15533 ac_config_commands="$ac_config_commands check_win32_symlinks"
15537 ac_config_headers="$ac_config_headers src/include/pg_config.h"
15540 ac_config_headers="$ac_config_headers src/include/pg_config_ext.h"
15543 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
15546 cat >confcache <<\_ACEOF
15547 # This file is a shell script that caches the results of configure
15548 # tests run on this system so they can be shared between configure
15549 # scripts and configure runs, see configure's option --config-cache.
15550 # It is not useful on other systems. If it contains results you don't
15551 # want to keep, you may remove or edit it.
15553 # config.status only pays attention to the cache file if you give it
15554 # the --recheck option to rerun configure.
15556 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15557 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15558 # following values.
15562 # The following way of writing the cache mishandles newlines in values,
15563 # but we know of no workaround that is simple, portable, and efficient.
15564 # So, we kill variables containing newlines.
15565 # Ultrix sh set writes to stderr and can't be redirected directly,
15566 # and sets the high bit in the cache file unless we assign to the vars.
15568 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15569 eval ac_val=\$$ac_var
15573 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15574 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15577 _ | IFS | as_nl) ;; #(
15578 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15579 *) { eval $ac_var=; unset $ac_var;} ;;
15585 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15586 *${as_nl}ac_space=\ *)
15587 # `set' does not quote correctly, so add quotes: double-quote
15588 # substitution turns \\\\ into \\, and sed turns \\ into \.
15591 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15594 # `set' quotes correctly as required by POSIX, so do not add quotes.
15595 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15604 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15606 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15608 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15609 if test -w "$cache_file"; then
15610 if test "x$cache_file" != "x/dev/null"; then
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15612 $as_echo "$as_me: updating cache $cache_file" >&6;}
15613 if test ! -f "$cache_file" || test -h "$cache_file"; then
15614 cat confcache >"$cache_file"
15616 case $cache_file in #(
15618 mv -f confcache "$cache_file"$$ &&
15619 mv -f "$cache_file"$$ "$cache_file" ;; #(
15621 mv -f confcache "$cache_file" ;;
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15627 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15632 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15633 # Let make expand exec_prefix.
15634 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15636 DEFS=-DHAVE_CONFIG_H
15641 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15642 # 1. Remove the extension, and $U if already installed.
15643 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15644 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15645 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15646 # will be set to the directory where LIBOBJS objects are built.
15647 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15648 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15650 LIBOBJS=$ac_libobjs
15652 LTLIBOBJS=$ac_ltlibobjs
15657 : "${CONFIG_STATUS=./config.status}"
15659 ac_clean_files_save=$ac_clean_files
15660 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15661 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15662 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15664 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15666 # Generated by $as_me.
15667 # Run this file to recreate the current configuration.
15668 # Compiler output produced by configure, useful for debugging
15669 # configure, is in config.log if it exists.
15672 ac_cs_recheck=false
15675 SHELL=\${CONFIG_SHELL-$SHELL}
15678 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15679 ## -------------------- ##
15680 ## M4sh Initialization. ##
15681 ## -------------------- ##
15683 # Be more Bourne compatible
15684 DUALCASE=1; export DUALCASE # for MKS sh
15685 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15688 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15689 # is contrary to our usage. Disable this feature.
15690 alias -g '${1+"$@"}'='"$@"'
15691 setopt NO_GLOB_SUBST
15693 case `(set -o) 2>/dev/null` in #(
15705 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15706 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15707 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15708 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15709 # Prefer a ksh shell builtin over an external printf program on Solaris,
15710 # but without wasting forks for bash or zsh.
15711 if test -z "$BASH_VERSION$ZSH_VERSION" \
15712 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15713 as_echo='print -r --'
15714 as_echo_n='print -rn --'
15715 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15716 as_echo='printf %s\n'
15717 as_echo_n='printf %s'
15719 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15720 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15721 as_echo_n='/usr/ucb/echo -n'
15723 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15724 as_echo_n_body='eval
15728 expr "X$arg" : "X\\(.*\\)$as_nl";
15729 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15731 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15733 export as_echo_n_body
15734 as_echo_n='sh -c $as_echo_n_body as_echo'
15736 export as_echo_body
15737 as_echo='sh -c $as_echo_body as_echo'
15740 # The user is always right.
15741 if test "${PATH_SEPARATOR+set}" != set; then
15743 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15744 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15751 # We need space, tab and new line, in precisely that order. Quoting is
15752 # there to prevent editors from complaining about space-tab.
15753 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15754 # splitting by setting IFS to empty value.)
15757 # Find who we are. Look in the path if we contain no directory separator.
15760 *[\\/]* ) as_myself=$0 ;;
15761 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15762 for as_dir in $PATH
15765 test -z "$as_dir" && as_dir=.
15766 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15772 # We did not find ourselves, most probably we were run as `sh COMMAND'
15773 # in which case we are not to be found in the path.
15774 if test "x$as_myself" = x; then
15777 if test ! -f "$as_myself"; then
15778 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15782 # Unset variables that we do not need and which cause bugs (e.g. in
15783 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15784 # suppresses any "Segmentation fault" message there. '((' could
15785 # trigger a bug in pdksh 5.2.14.
15786 for as_var in BASH_ENV ENV MAIL MAILPATH
15787 do eval test x\${$as_var+set} = xset \
15788 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15801 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15804 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15805 # ----------------------------------------
15806 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15807 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15808 # script with STATUS, using 1 if that was 0.
15811 as_status=$1; test $as_status -eq 0 && as_status=1
15813 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15814 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15816 $as_echo "$as_me: error: $2" >&2
15817 as_fn_exit $as_status
15821 # as_fn_set_status STATUS
15822 # -----------------------
15823 # Set $? to STATUS, without forking.
15824 as_fn_set_status ()
15827 } # as_fn_set_status
15829 # as_fn_exit STATUS
15830 # -----------------
15831 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15835 as_fn_set_status $1
15841 # Portably unset VAR.
15844 { eval $1=; unset $1;}
15846 as_unset=as_fn_unset
15847 # as_fn_append VAR VALUE
15848 # ----------------------
15849 # Append the text in VALUE to the end of the definition contained in VAR. Take
15850 # advantage of any shell optimizations that allow amortized linear growth over
15851 # repeated appends, instead of the typical quadratic growth present in naive
15853 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15854 eval 'as_fn_append ()
15865 # as_fn_arith ARG...
15866 # ------------------
15867 # Perform arithmetic evaluation on the ARGs, and store the result in the
15868 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15869 # must be portable across $(()) and expr.
15870 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15871 eval 'as_fn_arith ()
15878 as_val=`expr "$@" || test $? -eq 1`
15883 if expr a : '\(a\)' >/dev/null 2>&1 &&
15884 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15890 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15891 as_basename=basename
15896 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15902 as_me=`$as_basename -- "$0" ||
15903 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15904 X"$0" : 'X\(//\)$' \| \
15905 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15907 sed '/^.*\/\([^/][^/]*\)\/*$/{
15921 # Avoid depending upon Character Ranges.
15922 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15923 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15924 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15925 as_cr_digits='0123456789'
15926 as_cr_alnum=$as_cr_Letters$as_cr_digits
15928 ECHO_C= ECHO_N= ECHO_T=
15929 case `echo -n x` in #(((((
15931 case `echo 'xy\c'` in
15932 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15934 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15941 rm -f conf$$ conf$$.exe conf$$.file
15942 if test -d conf$$.dir; then
15943 rm -f conf$$.dir/conf$$.file
15946 mkdir conf$$.dir 2>/dev/null
15948 if (echo >conf$$.file) 2>/dev/null; then
15949 if ln -s conf$$.file conf$$ 2>/dev/null; then
15951 # ... but there are two gotchas:
15952 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15953 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15954 # In both cases, we have to default to `cp -pR'.
15955 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15957 elif ln conf$$.file conf$$ 2>/dev/null; then
15965 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15966 rmdir conf$$.dir 2>/dev/null
15971 # Create "$as_dir" as a directory, including parents if necessary.
15976 -*) as_dir=./$as_dir;;
15978 test -d "$as_dir" || eval $as_mkdir_p || {
15982 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15983 *) as_qdir=$as_dir;;
15985 as_dirs="'$as_qdir' $as_dirs"
15986 as_dir=`$as_dirname -- "$as_dir" ||
15987 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15988 X"$as_dir" : 'X\(//\)[^/]' \| \
15989 X"$as_dir" : 'X\(//\)$' \| \
15990 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15991 $as_echo X"$as_dir" |
15992 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15996 /^X\(\/\/\)[^/].*/{
16009 test -d "$as_dir" && break
16011 test -z "$as_dirs" || eval "mkdir $as_dirs"
16012 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16016 if mkdir -p . 2>/dev/null; then
16017 as_mkdir_p='mkdir -p "$as_dir"'
16019 test -d ./-p && rmdir ./-p
16024 # as_fn_executable_p FILE
16025 # -----------------------
16026 # Test if FILE is an executable regular file.
16027 as_fn_executable_p ()
16029 test -f "$1" && test -x "$1"
16030 } # as_fn_executable_p
16031 as_test_x='test -x'
16032 as_executable_p=as_fn_executable_p
16034 # Sed expression to map a string onto a valid CPP name.
16035 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16037 # Sed expression to map a string onto a valid variable name.
16038 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16042 ## ----------------------------------- ##
16043 ## Main body of $CONFIG_STATUS script. ##
16044 ## ----------------------------------- ##
16046 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16048 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16049 # Save the log message, to keep $0 and so on meaningful, and to
16050 # report actual input values of CONFIG_FILES etc. instead of their
16051 # values after options handling.
16053 This file was extended by PostgreSQL $as_me 9.5devel, which was
16054 generated by GNU Autoconf 2.69. Invocation command line was
16056 CONFIG_FILES = $CONFIG_FILES
16057 CONFIG_HEADERS = $CONFIG_HEADERS
16058 CONFIG_LINKS = $CONFIG_LINKS
16059 CONFIG_COMMANDS = $CONFIG_COMMANDS
16062 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16067 case $ac_config_files in *"
16068 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16071 case $ac_config_headers in *"
16072 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16076 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16077 # Files that config.status was made for.
16078 config_files="$ac_config_files"
16079 config_headers="$ac_config_headers"
16080 config_links="$ac_config_links"
16081 config_commands="$ac_config_commands"
16085 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16087 \`$as_me' instantiates files and other configuration actions
16088 from templates according to the current configuration. Unless the files
16089 and actions are specified as TAGs, all are instantiated by default.
16091 Usage: $0 [OPTION]... [TAG]...
16093 -h, --help print this help, then exit
16094 -V, --version print version number and configuration settings, then exit
16095 --config print configuration, then exit
16096 -q, --quiet, --silent
16097 do not print progress messages
16098 -d, --debug don't remove temporary files
16099 --recheck update $as_me by reconfiguring in the same conditions
16100 --file=FILE[:TEMPLATE]
16101 instantiate the configuration file FILE
16102 --header=FILE[:TEMPLATE]
16103 instantiate the configuration header FILE
16105 Configuration files:
16108 Configuration headers:
16111 Configuration links:
16114 Configuration commands:
16117 Report bugs to <pgsql-bugs@postgresql.org>."
16120 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16121 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16123 PostgreSQL config.status 9.5devel
16124 configured by $0, generated by GNU Autoconf 2.69,
16125 with options \\"\$ac_cs_config\\"
16127 Copyright (C) 2012 Free Software Foundation, Inc.
16128 This config.status script is free software; the Free Software Foundation
16129 gives unlimited permission to copy, distribute and modify it."
16136 test -n "\$AWK" || AWK=awk
16139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16140 # The default lists apply if the user does not specify any file.
16146 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16147 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16151 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16163 # Handling of the options.
16164 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16166 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16167 $as_echo "$ac_cs_version"; exit ;;
16168 --config | --confi | --conf | --con | --co | --c )
16169 $as_echo "$ac_cs_config"; exit ;;
16170 --debug | --debu | --deb | --de | --d | -d )
16172 --file | --fil | --fi | --f )
16175 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16176 '') as_fn_error $? "missing file argument" ;;
16178 as_fn_append CONFIG_FILES " '$ac_optarg'"
16179 ac_need_defaults=false;;
16180 --header | --heade | --head | --hea )
16183 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16185 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16186 ac_need_defaults=false;;
16188 # Conflict between --help and --header
16189 as_fn_error $? "ambiguous option: \`$1'
16190 Try \`$0 --help' for more information.";;
16191 --help | --hel | -h )
16192 $as_echo "$ac_cs_usage"; exit ;;
16193 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16194 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16197 # This is an error.
16198 -*) as_fn_error $? "unrecognized option: \`$1'
16199 Try \`$0 --help' for more information." ;;
16201 *) as_fn_append ac_config_targets " $1"
16202 ac_need_defaults=false ;;
16208 ac_configure_extra_args=
16210 if $ac_cs_silent; then
16212 ac_configure_extra_args="$ac_configure_extra_args --silent"
16216 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16217 if \$ac_cs_recheck; then
16218 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16220 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16221 CONFIG_SHELL='$SHELL'
16222 export CONFIG_SHELL
16227 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16231 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16232 ## Running $as_me. ##
16238 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16241 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16243 # Handling of arguments.
16244 for ac_config_target in $ac_config_targets
16246 case $ac_config_target in
16247 "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
16248 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
16249 "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
16250 "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
16251 "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
16252 "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
16253 "src/backend/port/pg_latch.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_latch.c:${LATCH_IMPLEMENTATION}" ;;
16254 "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
16255 "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
16256 "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
16257 "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
16258 "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
16259 "src/include/pg_config_ext.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config_ext.h" ;;
16260 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
16262 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16267 # If the user did not use the arguments to specify the items to instantiate,
16268 # then the envvar interface is used. Set only those that are not.
16269 # We use the long form for the default assignment because of an extremely
16270 # bizarre bug on SunOS 4.1.3.
16271 if $ac_need_defaults; then
16272 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16273 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16274 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16275 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16278 # Have a temporary directory for convenience. Make it in the build tree
16279 # simply because there is no reason against having it here, and in addition,
16280 # creating and moving files from /tmp can sometimes cause problems.
16281 # Hook for its removal unless debugging.
16282 # Note that there is a small window in which the directory will not be cleaned:
16283 # after its creation but before its name has been assigned to `$tmp'.
16287 trap 'exit_status=$?
16288 : "${ac_tmp:=$tmp}"
16289 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16291 trap 'as_fn_exit 1' 1 2 13 15
16293 # Create a (secure) tmp directory for tmp files.
16296 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16300 tmp=./conf$$-$RANDOM
16301 (umask 077 && mkdir "$tmp")
16302 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16305 # Set up the scripts for CONFIG_FILES section.
16306 # No need to generate them if there are no CONFIG_FILES.
16307 # This happens for instance with `./config.status config.h'.
16308 if test -n "$CONFIG_FILES"; then
16311 ac_cr=`echo X | tr X '\015'`
16312 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16313 # But we know of no other shell where ac_cr would be empty at this
16314 # point, so we can use a bashism as a fallback.
16315 if test "x$ac_cr" = x; then
16316 eval ac_cr=\$\'\\r\'
16318 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16319 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16322 ac_cs_awk_cr=$ac_cr
16325 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16330 echo "cat >conf$$subs.awk <<_ACEOF" &&
16331 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16333 } >conf$$subs.sh ||
16334 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16335 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16337 for ac_last_try in false false false false false :; do
16338 . ./conf$$subs.sh ||
16339 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16341 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16342 if test $ac_delim_n = $ac_delim_num; then
16344 elif $ac_last_try; then
16345 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16347 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16350 rm -f conf$$subs.sh
16352 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16353 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16357 s/^/S["/; s/!.*/"]=/
16367 s/\(.\{148\}\)..*/\1/
16369 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16374 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16381 s/\(.\{148\}\)..*/\1/
16383 s/["\\]/\\&/g; s/^/"/; s/$/"/
16387 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16392 ' <conf$$subs.awk | sed '
16397 ' >>$CONFIG_STATUS || ac_write_fail=1
16398 rm -f conf$$subs.awk
16399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16401 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16402 for (key in S) S_is_set[key] = 1
16408 nfields = split(line, field, "@")
16410 len = length(field[1])
16411 for (i = 2; i < nfields; i++) {
16413 keylen = length(key)
16414 if (S_is_set[key]) {
16416 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16417 len += length(value) + length(field[++i])
16428 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16429 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16430 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16433 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16434 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16437 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16438 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16439 # trailing colons and then remove the whole line if VPATH becomes empty
16440 # (actually we leave an empty line to preserve line numbers).
16441 if test "x$srcdir" = x.; then
16442 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16461 fi # test -n "$CONFIG_FILES"
16463 # Set up the scripts for CONFIG_HEADERS section.
16464 # No need to generate them if there are no CONFIG_HEADERS.
16465 # This happens for instance with `./config.status Makefile'.
16466 if test -n "$CONFIG_HEADERS"; then
16467 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16471 # Transform confdefs.h into an awk script `defines.awk', embedded as
16472 # here-document in config.status, that substitutes the proper values into
16473 # config.h.in to produce config.h.
16475 # Create a delimiter string that does not exist in confdefs.h, to ease
16476 # handling of long lines.
16478 for ac_last_try in false false :; do
16479 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16480 if test -z "$ac_tt"; then
16482 elif $ac_last_try; then
16483 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16485 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16489 # For the awk script, D is an array of macro values keyed by name,
16490 # likewise P contains macro parameters if any. Preserve backslash
16491 # newline sequences.
16493 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16495 s/.\{148\}/&'"$ac_delim"'/g
16498 s/^[ ]*#[ ]*define[ ][ ]*/ /
16505 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16507 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16511 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16512 D["\1"]=" \3\\\\\\n"\\/p
16514 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16519 s/.\{148\}/&'"$ac_delim"'/g
16524 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16527 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16529 ' <confdefs.h | sed '
16530 s/'"$ac_delim"'/"\\\
16531 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16533 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16534 for (key in D) D_is_set[key] = 1
16537 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16539 split(line, arg, " ")
16540 if (arg[1] == "#") {
16544 defundef = substr(arg[1], 2)
16547 split(mac1, mac2, "(") #)
16549 prefix = substr(line, 1, index(line, defundef) - 1)
16550 if (D_is_set[macro]) {
16551 # Preserve the white space surrounding the "#".
16552 print prefix "define", macro P[macro] D[macro]
16555 # Replace #undef with comments. This is necessary, for example,
16556 # in the case of _POSIX_SOURCE, which is predefined and required
16557 # on some systems where configure will not decide to define it.
16558 if (defundef == "undef") {
16559 print "/*", prefix defundef, macro, "*/"
16567 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16568 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16569 fi # test -n "$CONFIG_HEADERS"
16572 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
16577 :[FHLC]) ac_mode=$ac_tag; continue;;
16579 case $ac_mode$ac_tag in
16581 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16582 :[FH]-) ac_tag=-:-;;
16583 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16600 -) ac_f="$ac_tmp/stdin";;
16601 *) # Look for the file first in the build tree, then in the source tree
16602 # (if the path is not absolute). The absolute path cannot be DOS-style,
16603 # because $ac_f cannot contain `:'.
16607 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16609 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16611 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16612 as_fn_append ac_file_inputs " '$ac_f'"
16615 # Let's still pretend it is `configure' which instantiates (i.e., don't
16616 # use $as_me), people would be surprised to read:
16617 # /* config.h. Generated by config.status. */
16618 configure_input='Generated from '`
16619 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16621 if test x"$ac_file" != x-; then
16622 configure_input="$ac_file. $configure_input"
16623 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16624 $as_echo "$as_me: creating $ac_file" >&6;}
16626 # Neutralize special characters interpreted by sed in replacement strings.
16627 case $configure_input in #(
16628 *\&* | *\|* | *\\* )
16629 ac_sed_conf_input=`$as_echo "$configure_input" |
16630 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16631 *) ac_sed_conf_input=$configure_input;;
16635 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16636 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16641 ac_dir=`$as_dirname -- "$ac_file" ||
16642 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16643 X"$ac_file" : 'X\(//\)[^/]' \| \
16644 X"$ac_file" : 'X\(//\)$' \| \
16645 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16646 $as_echo X"$ac_file" |
16647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16651 /^X\(\/\/\)[^/].*/{
16664 as_dir="$ac_dir"; as_fn_mkdir_p
16668 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16670 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16671 # A ".." for each directory in $ac_dir_suffix.
16672 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16673 case $ac_top_builddir_sub in
16674 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16675 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16678 ac_abs_top_builddir=$ac_pwd
16679 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16680 # for backward compatibility:
16681 ac_top_builddir=$ac_top_build_prefix
16684 .) # We are building in place.
16686 ac_top_srcdir=$ac_top_builddir_sub
16687 ac_abs_top_srcdir=$ac_pwd ;;
16688 [\\/]* | ?:[\\/]* ) # Absolute name.
16689 ac_srcdir=$srcdir$ac_dir_suffix;
16690 ac_top_srcdir=$srcdir
16691 ac_abs_top_srcdir=$srcdir ;;
16692 *) # Relative name.
16693 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16694 ac_top_srcdir=$ac_top_build_prefix$srcdir
16695 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16697 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16707 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16708 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16710 ac_MKDIR_P=$MKDIR_P
16712 [\\/$]* | ?:[\\/]* ) ;;
16713 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16717 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16718 # If the template does not know about datarootdir, expand it.
16719 # FIXME: This hack should be removed a few years after 2.60.
16720 ac_datarootdir_hack=; ac_datarootdir_seen=
16731 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16732 *datarootdir*) ac_datarootdir_seen=yes;;
16733 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16735 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16737 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16738 ac_datarootdir_hack='
16739 s&@datadir@&$datadir&g
16740 s&@docdir@&$docdir&g
16741 s&@infodir@&$infodir&g
16742 s&@localedir@&$localedir&g
16743 s&@mandir@&$mandir&g
16744 s&\\\${datarootdir}&$datarootdir&g' ;;
16748 # Neutralize VPATH when `$srcdir' = `.'.
16749 # Shell code in configure.ac might set extrasub.
16750 # FIXME: do we really want to maintain this feature?
16751 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16752 ac_sed_extra="$ac_vpsub
16755 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16757 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16758 s|@configure_input@|$ac_sed_conf_input|;t t
16759 s&@top_builddir@&$ac_top_builddir_sub&;t t
16760 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16761 s&@srcdir@&$ac_srcdir&;t t
16762 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16763 s&@top_srcdir@&$ac_top_srcdir&;t t
16764 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16765 s&@builddir@&$ac_builddir&;t t
16766 s&@abs_builddir@&$ac_abs_builddir&;t t
16767 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16768 s&@INSTALL@&$ac_INSTALL&;t t
16769 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16770 $ac_datarootdir_hack
16772 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16773 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16775 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16776 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16777 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16778 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16780 which seems to be undefined. Please make sure it is defined" >&5
16781 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16782 which seems to be undefined. Please make sure it is defined" >&2;}
16784 rm -f "$ac_tmp/stdin"
16786 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16787 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16789 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16795 if test x"$ac_file" != x-; then
16797 $as_echo "/* $configure_input */" \
16798 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16799 } >"$ac_tmp/config.h" \
16800 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16801 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16802 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16803 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16806 mv "$ac_tmp/config.h" "$ac_file" \
16807 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16810 $as_echo "/* $configure_input */" \
16811 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16812 || as_fn_error $? "could not create -" "$LINENO" 5
16820 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16823 # Prefer the file from the source tree if names are identical.
16824 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16825 ac_source=$srcdir/$ac_source
16828 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16829 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16831 if test ! -r "$ac_source"; then
16832 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
16836 # Try a relative symlink, then a hard link, then a copy.
16838 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16839 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16841 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16842 ln "$ac_source" "$ac_file" 2>/dev/null ||
16843 cp -p "$ac_source" "$ac_file" ||
16844 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16847 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16848 $as_echo "$as_me: executing $ac_file commands" >&6;}
16853 case $ac_file$ac_mode in
16854 "check_win32_symlinks":C)
16855 # Links sometimes fail undetected on Mingw -
16856 # so here we detect it and warn the user
16857 for FILE in $CONFIG_LINKS
16859 # test -e works for symlinks in the MinGW console
16860 test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** link for $FILE -- please fix by hand" >&5
16861 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
16864 "src/include/pg_config.h":H)
16865 # Update timestamp for pg_config.h (see Makefile.global)
16866 echo >src/include/stamp-h
16868 "src/include/pg_config_ext.h":H)
16869 # Update timestamp for pg_config_ext.h (see Makefile.global)
16870 echo >src/include/stamp-ext-h
16872 "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
16880 ac_clean_files=$ac_clean_files_save
16882 test $ac_write_fail = 0 ||
16883 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16886 # configure is writing to config.log, and then calls config.status.
16887 # config.status does its own redirection, appending to config.log.
16888 # Unfortunately, on DOS this fails, as config.log is still kept open
16889 # by configure, so config.status won't be able to write to it; its
16890 # output is simply discarded. So we exec the FD to /dev/null,
16891 # effectively closing config.log, so it can be properly (re)opened and
16892 # appended to by config.status. When coming back to configure, we
16893 # need to make the FD available again.
16894 if test "$no_create" != yes; then
16896 ac_config_status_args=
16897 test "$silent" = yes &&
16898 ac_config_status_args="$ac_config_status_args --quiet"
16900 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16902 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16903 # would make configure fail if this is the last instruction.
16904 $ac_cs_success || as_fn_exit 1
16906 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16908 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}