2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for PostgreSQL 11devel.
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-2017, 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='11devel'
586 PACKAGE_STRING='PostgreSQL 11devel'
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
661 python_additional_libs
788 program_transform_name
801 enable_option_checking
807 enable_integer_datetimes
841 with_libedit_preferred
853 ac_precious_vars='build_alias
871 # Initialize some variables set by options.
873 ac_init_version=false
874 ac_unrecognized_opts=
876 # The variables have the same names as the options, with
877 # dashes changed to underlines.
885 program_transform_name=s,x,x,
893 # Installation directory options.
894 # These are left unexpanded so users can "make install exec_prefix=/foo"
895 # and all the variables that are supposed to be based on exec_prefix
896 # by default will actually change.
897 # Use braces instead of parens because sh, perl, etc. also accept them.
898 # (The list follows the same order as the GNU Coding Standards.)
899 bindir='${exec_prefix}/bin'
900 sbindir='${exec_prefix}/sbin'
901 libexecdir='${exec_prefix}/libexec'
902 datarootdir='${prefix}/share'
903 datadir='${datarootdir}'
904 sysconfdir='${prefix}/etc'
905 sharedstatedir='${prefix}/com'
906 localstatedir='${prefix}/var'
907 includedir='${prefix}/include'
908 oldincludedir='/usr/include'
909 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
910 infodir='${datarootdir}/info'
915 libdir='${exec_prefix}/lib'
916 localedir='${datarootdir}/locale'
917 mandir='${datarootdir}/man'
923 # If the previous option needs an argument, assign it.
924 if test -n "$ac_prev"; then
925 eval $ac_prev=\$ac_option
931 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
936 # Accept the important Cygnus configure options, so we can diagnose typos.
938 case $ac_dashdash$ac_option in
942 -bindir | --bindir | --bindi | --bind | --bin | --bi)
944 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
947 -build | --build | --buil | --bui | --bu)
948 ac_prev=build_alias ;;
949 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
950 build_alias=$ac_optarg ;;
952 -cache-file | --cache-file | --cache-fil | --cache-fi \
953 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
954 ac_prev=cache_file ;;
955 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
956 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
957 cache_file=$ac_optarg ;;
960 cache_file=config.cache ;;
962 -datadir | --datadir | --datadi | --datad)
964 -datadir=* | --datadir=* | --datadi=* | --datad=*)
965 datadir=$ac_optarg ;;
967 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
968 | --dataroo | --dataro | --datar)
969 ac_prev=datarootdir ;;
970 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
971 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
972 datarootdir=$ac_optarg ;;
974 -disable-* | --disable-*)
975 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
976 # Reject names that are not valid shell variable names.
977 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
978 as_fn_error $? "invalid feature name: $ac_useropt"
979 ac_useropt_orig=$ac_useropt
980 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
981 case $ac_user_opts in
985 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
986 ac_unrecognized_sep=', ';;
988 eval enable_$ac_useropt=no ;;
990 -docdir | --docdir | --docdi | --doc | --do)
992 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
995 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
997 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1000 -enable-* | --enable-*)
1001 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1002 # Reject names that are not valid shell variable names.
1003 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1004 as_fn_error $? "invalid feature name: $ac_useropt"
1005 ac_useropt_orig=$ac_useropt
1006 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1007 case $ac_user_opts in
1009 "enable_$ac_useropt"
1011 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1012 ac_unrecognized_sep=', ';;
1014 eval enable_$ac_useropt=\$ac_optarg ;;
1016 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1017 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1018 | --exec | --exe | --ex)
1019 ac_prev=exec_prefix ;;
1020 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1021 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1022 | --exec=* | --exe=* | --ex=*)
1023 exec_prefix=$ac_optarg ;;
1025 -gas | --gas | --ga | --g)
1026 # Obsolete; use --with-gas.
1029 -help | --help | --hel | --he | -h)
1030 ac_init_help=long ;;
1031 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1032 ac_init_help=recursive ;;
1033 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1034 ac_init_help=short ;;
1036 -host | --host | --hos | --ho)
1037 ac_prev=host_alias ;;
1038 -host=* | --host=* | --hos=* | --ho=*)
1039 host_alias=$ac_optarg ;;
1041 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1043 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1045 htmldir=$ac_optarg ;;
1047 -includedir | --includedir | --includedi | --included | --include \
1048 | --includ | --inclu | --incl | --inc)
1049 ac_prev=includedir ;;
1050 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1051 | --includ=* | --inclu=* | --incl=* | --inc=*)
1052 includedir=$ac_optarg ;;
1054 -infodir | --infodir | --infodi | --infod | --info | --inf)
1056 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1057 infodir=$ac_optarg ;;
1059 -libdir | --libdir | --libdi | --libd)
1061 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1062 libdir=$ac_optarg ;;
1064 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1065 | --libexe | --libex | --libe)
1066 ac_prev=libexecdir ;;
1067 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1068 | --libexe=* | --libex=* | --libe=*)
1069 libexecdir=$ac_optarg ;;
1071 -localedir | --localedir | --localedi | --localed | --locale)
1072 ac_prev=localedir ;;
1073 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1074 localedir=$ac_optarg ;;
1076 -localstatedir | --localstatedir | --localstatedi | --localstated \
1077 | --localstate | --localstat | --localsta | --localst | --locals)
1078 ac_prev=localstatedir ;;
1079 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1080 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1081 localstatedir=$ac_optarg ;;
1083 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1085 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1086 mandir=$ac_optarg ;;
1088 -nfp | --nfp | --nf)
1089 # Obsolete; use --without-fp.
1092 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1093 | --no-cr | --no-c | -n)
1096 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1097 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1100 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1101 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1102 | --oldin | --oldi | --old | --ol | --o)
1103 ac_prev=oldincludedir ;;
1104 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1105 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1106 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1107 oldincludedir=$ac_optarg ;;
1109 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1111 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1112 prefix=$ac_optarg ;;
1114 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1115 | --program-pre | --program-pr | --program-p)
1116 ac_prev=program_prefix ;;
1117 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1118 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1119 program_prefix=$ac_optarg ;;
1121 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1122 | --program-suf | --program-su | --program-s)
1123 ac_prev=program_suffix ;;
1124 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1125 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1126 program_suffix=$ac_optarg ;;
1128 -program-transform-name | --program-transform-name \
1129 | --program-transform-nam | --program-transform-na \
1130 | --program-transform-n | --program-transform- \
1131 | --program-transform | --program-transfor \
1132 | --program-transfo | --program-transf \
1133 | --program-trans | --program-tran \
1134 | --progr-tra | --program-tr | --program-t)
1135 ac_prev=program_transform_name ;;
1136 -program-transform-name=* | --program-transform-name=* \
1137 | --program-transform-nam=* | --program-transform-na=* \
1138 | --program-transform-n=* | --program-transform-=* \
1139 | --program-transform=* | --program-transfor=* \
1140 | --program-transfo=* | --program-transf=* \
1141 | --program-trans=* | --program-tran=* \
1142 | --progr-tra=* | --program-tr=* | --program-t=*)
1143 program_transform_name=$ac_optarg ;;
1145 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1147 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1148 pdfdir=$ac_optarg ;;
1150 -psdir | --psdir | --psdi | --psd | --ps)
1152 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1155 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1156 | -silent | --silent | --silen | --sile | --sil)
1159 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1161 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1163 sbindir=$ac_optarg ;;
1165 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1166 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1167 | --sharedst | --shareds | --shared | --share | --shar \
1169 ac_prev=sharedstatedir ;;
1170 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1171 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1172 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1174 sharedstatedir=$ac_optarg ;;
1176 -site | --site | --sit)
1178 -site=* | --site=* | --sit=*)
1181 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1183 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1184 srcdir=$ac_optarg ;;
1186 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1187 | --syscon | --sysco | --sysc | --sys | --sy)
1188 ac_prev=sysconfdir ;;
1189 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1190 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1191 sysconfdir=$ac_optarg ;;
1193 -target | --target | --targe | --targ | --tar | --ta | --t)
1194 ac_prev=target_alias ;;
1195 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1196 target_alias=$ac_optarg ;;
1198 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1201 -version | --version | --versio | --versi | --vers | -V)
1202 ac_init_version=: ;;
1205 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1206 # Reject names that are not valid shell variable names.
1207 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1208 as_fn_error $? "invalid package name: $ac_useropt"
1209 ac_useropt_orig=$ac_useropt
1210 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1211 case $ac_user_opts in
1215 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1216 ac_unrecognized_sep=', ';;
1218 eval with_$ac_useropt=\$ac_optarg ;;
1220 -without-* | --without-*)
1221 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1222 # Reject names that are not valid shell variable names.
1223 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1224 as_fn_error $? "invalid package name: $ac_useropt"
1225 ac_useropt_orig=$ac_useropt
1226 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1227 case $ac_user_opts in
1231 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1232 ac_unrecognized_sep=', ';;
1234 eval with_$ac_useropt=no ;;
1237 # Obsolete; use --with-x.
1240 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1241 | --x-incl | --x-inc | --x-in | --x-i)
1242 ac_prev=x_includes ;;
1243 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1244 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1245 x_includes=$ac_optarg ;;
1247 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1248 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1249 ac_prev=x_libraries ;;
1250 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1251 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1252 x_libraries=$ac_optarg ;;
1254 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1255 Try \`$0 --help' for more information"
1259 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1260 # Reject names that are not valid shell variable names.
1261 case $ac_envvar in #(
1262 '' | [0-9]* | *[!_$as_cr_alnum]* )
1263 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1265 eval $ac_envvar=\$ac_optarg
1266 export $ac_envvar ;;
1269 # FIXME: should be removed in autoconf 3.0.
1270 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1271 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1272 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1273 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1279 if test -n "$ac_prev"; then
1280 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1281 as_fn_error $? "missing argument to $ac_option"
1284 if test -n "$ac_unrecognized_opts"; then
1285 case $enable_option_checking in
1287 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1288 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1292 # Check all directory arguments for consistency.
1293 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1294 datadir sysconfdir sharedstatedir localstatedir includedir \
1295 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1296 libdir localedir mandir
1298 eval ac_val=\$$ac_var
1299 # Remove trailing slashes.
1302 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1303 eval $ac_var=\$ac_val;;
1305 # Be sure to have absolute directory names.
1307 [\\/$]* | ?:[\\/]* ) continue;;
1308 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1310 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1313 # There might be people who depend on the old broken behavior: `$host'
1314 # used to hold the argument of --host etc.
1315 # FIXME: To remove some day.
1318 target=$target_alias
1320 # FIXME: To remove some day.
1321 if test "x$host_alias" != x; then
1322 if test "x$build_alias" = x; then
1323 cross_compiling=maybe
1324 elif test "x$build_alias" != "x$host_alias"; then
1330 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1332 test "$silent" = yes && exec 6>/dev/null
1335 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1336 ac_ls_di=`ls -di .` &&
1337 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1338 as_fn_error $? "working directory cannot be determined"
1339 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1340 as_fn_error $? "pwd does not report name of working directory"
1343 # Find the source files, if location was not specified.
1344 if test -z "$srcdir"; then
1345 ac_srcdir_defaulted=yes
1346 # Try the directory containing this script, then the parent directory.
1347 ac_confdir=`$as_dirname -- "$as_myself" ||
1348 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1349 X"$as_myself" : 'X\(//\)[^/]' \| \
1350 X"$as_myself" : 'X\(//\)$' \| \
1351 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1352 $as_echo X"$as_myself" |
1353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1371 if test ! -r "$srcdir/$ac_unique_file"; then
1375 ac_srcdir_defaulted=no
1377 if test ! -r "$srcdir/$ac_unique_file"; then
1378 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1379 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1381 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1383 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1385 # When building in place, set srcdir=.
1386 if test "$ac_abs_confdir" = "$ac_pwd"; then
1389 # Remove unnecessary trailing slashes from srcdir.
1390 # Double slashes in file names in object file debugging info
1391 # mess up M-x gdb in Emacs.
1393 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1395 for ac_var in $ac_precious_vars; do
1396 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1397 eval ac_env_${ac_var}_value=\$${ac_var}
1398 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1399 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1403 # Report the --help message.
1405 if test "$ac_init_help" = "long"; then
1406 # Omit some internal or obsolete options to make the list less imposing.
1407 # This message is too long to be a string in the A/UX 3.1 sh.
1409 \`configure' configures PostgreSQL 11devel to adapt to many kinds of systems.
1411 Usage: $0 [OPTION]... [VAR=VALUE]...
1413 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1414 VAR=VALUE. See below for descriptions of some of the useful variables.
1416 Defaults for the options are specified in brackets.
1419 -h, --help display this help and exit
1420 --help=short display options specific to this package
1421 --help=recursive display the short help of all the included packages
1422 -V, --version display version information and exit
1423 -q, --quiet, --silent do not print \`checking ...' messages
1424 --cache-file=FILE cache test results in FILE [disabled]
1425 -C, --config-cache alias for \`--cache-file=config.cache'
1426 -n, --no-create do not create output files
1427 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1429 Installation directories:
1430 --prefix=PREFIX install architecture-independent files in PREFIX
1431 [$ac_default_prefix]
1432 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1435 By default, \`make install' will install all the files in
1436 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1437 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1438 for instance \`--prefix=\$HOME'.
1440 For better control, use the options below.
1442 Fine tuning of the installation directories:
1443 --bindir=DIR user executables [EPREFIX/bin]
1444 --sbindir=DIR system admin executables [EPREFIX/sbin]
1445 --libexecdir=DIR program executables [EPREFIX/libexec]
1446 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1447 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1448 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1449 --libdir=DIR object code libraries [EPREFIX/lib]
1450 --includedir=DIR C header files [PREFIX/include]
1451 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1452 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1453 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1454 --infodir=DIR info documentation [DATAROOTDIR/info]
1455 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1456 --mandir=DIR man documentation [DATAROOTDIR/man]
1457 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1458 --htmldir=DIR html documentation [DOCDIR]
1459 --dvidir=DIR dvi documentation [DOCDIR]
1460 --pdfdir=DIR pdf documentation [DOCDIR]
1461 --psdir=DIR ps documentation [DOCDIR]
1467 --build=BUILD configure for building on BUILD [guessed]
1468 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1472 if test -n "$ac_init_help"; then
1473 case $ac_init_help in
1474 short | recursive ) echo "Configuration of PostgreSQL 11devel:";;
1479 --disable-option-checking ignore unrecognized --enable/--with options
1480 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1481 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1482 --disable-integer-datetimes
1483 obsolete option, no longer supported
1484 --enable-nls[=LANGUAGES]
1485 enable Native Language Support
1486 --disable-rpath do not embed shared library search path in
1488 --disable-spinlocks do not use spinlocks
1489 --disable-atomics do not use atomic operations
1490 --disable-strong-random do not use a strong random number source
1491 --enable-debug build with debugging symbols (-g)
1492 --enable-profiling build with profiling enabled
1493 --enable-coverage build with coverage testing instrumentation
1494 --enable-dtrace build with DTrace support
1495 --enable-tap-tests enable TAP tests (requires Perl and IPC::Run)
1496 --enable-depend turn on automatic dependency tracking
1497 --enable-cassert enable assertion checks (for debugging)
1498 --disable-thread-safety disable thread-safety in client libraries
1499 --disable-largefile omit support for large files
1500 --disable-float4-byval disable float4 passed by value
1501 --disable-float8-byval disable float8 passed by value
1504 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1505 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1506 --with-extra-version=STRING
1507 append STRING to version
1508 --with-template=NAME override operating system template
1509 --with-includes=DIRS look for additional header files in DIRS
1510 --with-libraries=DIRS look for additional libraries in DIRS
1511 --with-libs=DIRS alternative spelling of --with-libraries
1512 --with-pgport=PORTNUM set default port number [5432]
1513 --with-blocksize=BLOCKSIZE
1514 set table block size in kB [8]
1515 --with-segsize=SEGSIZE set table segment size in GB [1]
1516 --with-wal-blocksize=BLOCKSIZE
1517 set WAL block size in kB [8]
1518 --with-CC=CMD set compiler (deprecated)
1519 --with-icu build with ICU support
1520 --with-tcl build Tcl modules (PL/Tcl)
1521 --with-tclconfig=DIR tclConfig.sh is in DIR
1522 --with-perl build Perl modules (PL/Perl)
1523 --with-python build Python modules (PL/Python)
1524 --with-gssapi build with GSSAPI support
1525 --with-krb-srvnam=NAME default service principal name in Kerberos (GSSAPI)
1527 --with-pam build with PAM support
1528 --with-bsd-auth build with BSD Authentication support
1529 --with-ldap build with LDAP support
1530 --with-bonjour build with Bonjour support
1531 --with-openssl build with OpenSSL support
1532 --with-selinux build with SELinux support
1533 --with-systemd build with systemd support
1534 --without-readline do not use GNU Readline nor BSD Libedit for editing
1535 --with-libedit-preferred
1536 prefer BSD Libedit over GNU Readline
1537 --with-uuid=LIB build contrib/uuid-ossp using LIB (bsd,e2fs,ossp)
1538 --with-ossp-uuid obsolete spelling of --with-uuid=ossp
1539 --with-libxml build with XML support
1540 --with-libxslt use XSLT support when building contrib/xml2
1541 --with-system-tzdata=DIR
1542 use system time zone data in DIR
1543 --without-zlib do not use Zlib
1544 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1546 Some influential environment variables:
1547 CC C compiler command
1548 CFLAGS C compiler flags
1549 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1550 nonstandard directory <lib dir>
1551 LIBS libraries to pass to the linker, e.g. -l<library>
1552 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1553 you have headers in a nonstandard directory <include dir>
1555 PKG_CONFIG path to pkg-config utility
1557 directories to add to pkg-config's search path
1559 path overriding pkg-config's built-in search path
1560 ICU_CFLAGS C compiler flags for ICU, overriding pkg-config
1561 ICU_LIBS linker flags for ICU, overriding pkg-config
1562 LDFLAGS_EX extra linker flags for linking executables only
1563 LDFLAGS_SL extra linker flags for linking shared libraries only
1565 Use these variables to override the choices made by `configure' or to help
1566 it to find libraries and programs with nonstandard names/locations.
1568 Report bugs to <pgsql-bugs@postgresql.org>.
1573 if test "$ac_init_help" = "recursive"; then
1574 # If there are subdirs, report their specific --help.
1575 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1576 test -d "$ac_dir" ||
1577 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1582 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1585 # A ".." for each directory in $ac_dir_suffix.
1586 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1587 case $ac_top_builddir_sub in
1588 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1589 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1592 ac_abs_top_builddir=$ac_pwd
1593 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1594 # for backward compatibility:
1595 ac_top_builddir=$ac_top_build_prefix
1598 .) # We are building in place.
1600 ac_top_srcdir=$ac_top_builddir_sub
1601 ac_abs_top_srcdir=$ac_pwd ;;
1602 [\\/]* | ?:[\\/]* ) # Absolute name.
1603 ac_srcdir=$srcdir$ac_dir_suffix;
1604 ac_top_srcdir=$srcdir
1605 ac_abs_top_srcdir=$srcdir ;;
1607 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1608 ac_top_srcdir=$ac_top_build_prefix$srcdir
1609 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1611 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1613 cd "$ac_dir" || { ac_status=$?; continue; }
1614 # Check for guested configure.
1615 if test -f "$ac_srcdir/configure.gnu"; then
1617 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1618 elif test -f "$ac_srcdir/configure"; then
1620 $SHELL "$ac_srcdir/configure" --help=recursive
1622 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1624 cd "$ac_pwd" || { ac_status=$?; break; }
1628 test -n "$ac_init_help" && exit $ac_status
1629 if $ac_init_version; then
1631 PostgreSQL configure 11devel
1632 generated by GNU Autoconf 2.69
1634 Copyright (C) 2012 Free Software Foundation, Inc.
1635 This configure script is free software; the Free Software Foundation
1636 gives unlimited permission to copy, distribute and modify it.
1638 Copyright (c) 1996-2017, PostgreSQL Global Development Group
1643 ## ------------------------ ##
1644 ## Autoconf initialization. ##
1645 ## ------------------------ ##
1647 # ac_fn_c_try_compile LINENO
1648 # --------------------------
1649 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1650 ac_fn_c_try_compile ()
1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653 rm -f conftest.$ac_objext
1654 if { { ac_try="$ac_compile"
1656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657 *) ac_try_echo=$ac_try;;
1659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660 $as_echo "$ac_try_echo"; } >&5
1661 (eval "$ac_compile") 2>conftest.err
1663 if test -s conftest.err; then
1664 grep -v '^ *+' conftest.err >conftest.er1
1665 cat conftest.er1 >&5
1666 mv -f conftest.er1 conftest.err
1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669 test $ac_status = 0; } && {
1670 test -z "$ac_c_werror_flag" ||
1671 test ! -s conftest.err
1672 } && test -s conftest.$ac_objext; then :
1675 $as_echo "$as_me: failed program was:" >&5
1676 sed 's/^/| /' conftest.$ac_ext >&5
1680 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1681 as_fn_set_status $ac_retval
1683 } # ac_fn_c_try_compile
1685 # ac_fn_c_try_link LINENO
1686 # -----------------------
1687 # Try to link conftest.$ac_ext, and return whether this succeeded.
1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691 rm -f conftest.$ac_objext conftest$ac_exeext
1692 if { { ac_try="$ac_link"
1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_link") 2>conftest.err
1701 if test -s conftest.err; then
1702 grep -v '^ *+' conftest.err >conftest.er1
1703 cat conftest.er1 >&5
1704 mv -f conftest.er1 conftest.err
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; } && {
1708 test -z "$ac_c_werror_flag" ||
1709 test ! -s conftest.err
1710 } && test -s conftest$ac_exeext && {
1711 test "$cross_compiling" = yes ||
1712 test -x conftest$ac_exeext
1716 $as_echo "$as_me: failed program was:" >&5
1717 sed 's/^/| /' conftest.$ac_ext >&5
1721 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1722 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1723 # interfere with the next link command; also delete a directory that is
1724 # left behind by Apple's compiler. We do this before executing the actions.
1725 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727 as_fn_set_status $ac_retval
1729 } # ac_fn_c_try_link
1731 # ac_fn_c_try_cpp LINENO
1732 # ----------------------
1733 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 if { { ac_try="$ac_cpp conftest.$ac_ext"
1739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1740 *) ac_try_echo=$ac_try;;
1742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743 $as_echo "$ac_try_echo"; } >&5
1744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1746 if test -s conftest.err; then
1747 grep -v '^ *+' conftest.err >conftest.er1
1748 cat conftest.er1 >&5
1749 mv -f conftest.er1 conftest.err
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; } > conftest.i && {
1753 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1754 test ! -s conftest.err
1758 $as_echo "$as_me: failed program was:" >&5
1759 sed 's/^/| /' conftest.$ac_ext >&5
1763 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1764 as_fn_set_status $ac_retval
1768 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1769 # -------------------------------------------------------
1770 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1771 # the include files in INCLUDES and setting the cache variable VAR
1773 ac_fn_c_check_header_mongrel ()
1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776 if eval \${$3+:} false; then :
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1778 $as_echo_n "checking for $2... " >&6; }
1779 if eval \${$3+:} false; then :
1780 $as_echo_n "(cached) " >&6
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1784 $as_echo "$ac_res" >&6; }
1786 # Is the header compilable?
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1788 $as_echo_n "checking $2 usability... " >&6; }
1789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790 /* end confdefs.h. */
1794 if ac_fn_c_try_compile "$LINENO"; then :
1795 ac_header_compiler=yes
1797 ac_header_compiler=no
1799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1801 $as_echo "$ac_header_compiler" >&6; }
1803 # Is the header present?
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1805 $as_echo_n "checking $2 presence... " >&6; }
1806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807 /* end confdefs.h. */
1810 if ac_fn_c_try_cpp "$LINENO"; then :
1811 ac_header_preproc=yes
1813 ac_header_preproc=no
1815 rm -f conftest.err conftest.i conftest.$ac_ext
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1817 $as_echo "$ac_header_preproc" >&6; }
1819 # So? What about this header?
1820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1823 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1825 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1829 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1831 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1833 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1835 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1837 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1838 ( $as_echo "## ---------------------------------------- ##
1839 ## Report this to pgsql-bugs@postgresql.org ##
1840 ## ---------------------------------------- ##"
1841 ) | sed "s/^/$as_me: WARNING: /" >&2
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1845 $as_echo_n "checking for $2... " >&6; }
1846 if eval \${$3+:} false; then :
1847 $as_echo_n "(cached) " >&6
1849 eval "$3=\$ac_header_compiler"
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1853 $as_echo "$ac_res" >&6; }
1855 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857 } # ac_fn_c_check_header_mongrel
1859 # ac_fn_c_try_run LINENO
1860 # ----------------------
1861 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1862 # that executables *can* be run.
1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866 if { { ac_try="$ac_link"
1868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1869 *) ac_try_echo=$ac_try;;
1871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1872 $as_echo "$ac_try_echo"; } >&5
1873 (eval "$ac_link") 2>&5
1875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1876 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1877 { { case "(($ac_try" in
1878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1879 *) ac_try_echo=$ac_try;;
1881 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1882 $as_echo "$ac_try_echo"; } >&5
1883 (eval "$ac_try") 2>&5
1885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1886 test $ac_status = 0; }; }; then :
1889 $as_echo "$as_me: program exited with status $ac_status" >&5
1890 $as_echo "$as_me: failed program was:" >&5
1891 sed 's/^/| /' conftest.$ac_ext >&5
1893 ac_retval=$ac_status
1895 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1896 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1897 as_fn_set_status $ac_retval
1901 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1902 # -------------------------------------------------------
1903 # Tests whether HEADER exists and can be compiled using the include files in
1904 # INCLUDES, setting the cache variable VAR accordingly.
1905 ac_fn_c_check_header_compile ()
1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1909 $as_echo_n "checking for $2... " >&6; }
1910 if eval \${$3+:} false; then :
1911 $as_echo_n "(cached) " >&6
1913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914 /* end confdefs.h. */
1918 if ac_fn_c_try_compile "$LINENO"; then :
1923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927 $as_echo "$ac_res" >&6; }
1928 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1930 } # ac_fn_c_check_header_compile
1932 # ac_fn_c_check_func LINENO FUNC VAR
1933 # ----------------------------------
1934 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1935 ac_fn_c_check_func ()
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1939 $as_echo_n "checking for $2... " >&6; }
1940 if eval \${$3+:} false; then :
1941 $as_echo_n "(cached) " >&6
1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h. */
1945 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1946 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1947 #define $2 innocuous_$2
1949 /* System header to define __stub macros and hopefully few prototypes,
1950 which can conflict with char $2 (); below.
1951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1952 <limits.h> exists even on freestanding compilers. */
1955 # include <limits.h>
1957 # include <assert.h>
1962 /* Override any GCC internal prototype to avoid an error.
1963 Use char because int might match the return type of a GCC
1964 builtin and then its argument prototype would still apply. */
1969 /* The GNU C library defines this for functions which it implements
1970 to always fail with ENOSYS. Some functions are actually named
1971 something starting with __ and the normal name is an alias. */
1972 #if defined __stub_$2 || defined __stub___$2
1984 if ac_fn_c_try_link "$LINENO"; then :
1989 rm -f core conftest.err conftest.$ac_objext \
1990 conftest$ac_exeext conftest.$ac_ext
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1994 $as_echo "$ac_res" >&6; }
1995 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1997 } # ac_fn_c_check_func
1999 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2000 # ----------------------------------------------------
2001 # Tries to find if the field MEMBER exists in type AGGR, after including
2002 # INCLUDES, setting cache variable VAR accordingly.
2003 ac_fn_c_check_member ()
2005 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2007 $as_echo_n "checking for $2.$3... " >&6; }
2008 if eval \${$4+:} false; then :
2009 $as_echo_n "(cached) " >&6
2011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012 /* end confdefs.h. */
2024 if ac_fn_c_try_compile "$LINENO"; then :
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2034 if (sizeof ac_aggr.$3)
2040 if ac_fn_c_try_compile "$LINENO"; then :
2045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2051 $as_echo "$ac_res" >&6; }
2052 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2054 } # ac_fn_c_check_member
2056 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2057 # -------------------------------------------
2058 # Tests whether TYPE exists after having included INCLUDES, setting cache
2059 # variable VAR accordingly.
2060 ac_fn_c_check_type ()
2062 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2064 $as_echo_n "checking for $2... " >&6; }
2065 if eval \${$3+:} false; then :
2066 $as_echo_n "(cached) " >&6
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h. */
2081 if ac_fn_c_try_compile "$LINENO"; then :
2082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h. */
2094 if ac_fn_c_try_compile "$LINENO"; then :
2099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2105 $as_echo "$ac_res" >&6; }
2106 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2108 } # ac_fn_c_check_type
2110 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2111 # --------------------------------------------
2112 # Tries to find the compile-time value of EXPR in a program that includes
2113 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2115 ac_fn_c_compute_int ()
2117 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2118 if test "$cross_compiling" = yes; then
2119 # Depending upon the size, compute the lo and hi bounds.
2120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2121 /* end confdefs.h. */
2126 static int test_array [1 - 2 * !(($2) >= 0)];
2128 return test_array [0];
2134 if ac_fn_c_try_compile "$LINENO"; then :
2137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138 /* end confdefs.h. */
2143 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2145 return test_array [0];
2151 if ac_fn_c_try_compile "$LINENO"; then :
2152 ac_hi=$ac_mid; break
2154 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2155 if test $ac_lo -le $ac_mid; then
2159 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165 /* end confdefs.h. */
2170 static int test_array [1 - 2 * !(($2) < 0)];
2172 return test_array [0];
2178 if ac_fn_c_try_compile "$LINENO"; then :
2181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182 /* end confdefs.h. */
2187 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2189 return test_array [0];
2195 if ac_fn_c_try_compile "$LINENO"; then :
2196 ac_lo=$ac_mid; break
2198 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2199 if test $ac_mid -le $ac_hi; then
2203 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2213 # Binary search between lo and hi bounds.
2214 while test "x$ac_lo" != "x$ac_hi"; do
2215 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2217 /* end confdefs.h. */
2222 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2224 return test_array [0];
2230 if ac_fn_c_try_compile "$LINENO"; then :
2233 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2238 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2243 /* end confdefs.h. */
2245 static long int longval () { return $2; }
2246 static unsigned long int ulongval () { return $2; }
2253 FILE *f = fopen ("conftest.val", "w");
2258 long int i = longval ();
2261 fprintf (f, "%ld", i);
2265 unsigned long int i = ulongval ();
2268 fprintf (f, "%lu", i);
2270 /* Do not output a trailing newline, as this causes \r\n confusion
2271 on some platforms. */
2272 return ferror (f) || fclose (f) != 0;
2278 if ac_fn_c_try_run "$LINENO"; then :
2279 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2283 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2284 conftest.$ac_objext conftest.beam conftest.$ac_ext
2288 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2289 as_fn_set_status $ac_retval
2291 } # ac_fn_c_compute_int
2293 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2294 # ---------------------------------------------
2295 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2297 ac_fn_c_check_decl ()
2299 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2300 as_decl_name=`echo $2|sed 's/ *(.*//'`
2301 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2303 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2304 if eval \${$3+:} false; then :
2305 $as_echo_n "(cached) " >&6
2307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2308 /* end confdefs.h. */
2313 #ifndef $as_decl_name
2315 (void) $as_decl_use;
2317 (void) $as_decl_name;
2325 if ac_fn_c_try_compile "$LINENO"; then :
2330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2334 $as_echo "$ac_res" >&6; }
2335 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2337 } # ac_fn_c_check_decl
2338 cat >config.log <<_ACEOF
2339 This file contains any messages produced by compilers while
2340 running configure, to aid debugging if configure makes a mistake.
2342 It was created by PostgreSQL $as_me 11devel, which was
2343 generated by GNU Autoconf 2.69. Invocation command line was
2355 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2356 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2357 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2358 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2359 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2361 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2362 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2364 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2365 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2366 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2367 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2368 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2369 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2370 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2378 test -z "$as_dir" && as_dir=.
2379 $as_echo "PATH: $as_dir"
2395 # Keep a trace of the command line.
2396 # Strip out --no-create and --no-recursion so they do not pile up.
2397 # Strip out --silent because we don't want to record it for future runs.
2398 # Also quote any args containing shell meta-characters.
2399 # Make two passes to allow for proper duplicate-argument suppression.
2403 ac_must_keep_next=false
2409 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2410 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2411 | -silent | --silent | --silen | --sile | --sil)
2414 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2417 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2419 as_fn_append ac_configure_args1 " '$ac_arg'"
2420 if test $ac_must_keep_next = true; then
2421 ac_must_keep_next=false # Got value, back to normal.
2424 *=* | --config-cache | -C | -disable-* | --disable-* \
2425 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2426 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2427 | -with-* | --with-* | -without-* | --without-* | --x)
2428 case "$ac_configure_args0 " in
2429 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2432 -* ) ac_must_keep_next=true ;;
2435 as_fn_append ac_configure_args " '$ac_arg'"
2440 { ac_configure_args0=; unset ac_configure_args0;}
2441 { ac_configure_args1=; unset ac_configure_args1;}
2443 # When interrupted or exit'd, cleanup temporary files, and complete
2444 # config.log. We remove comments because anyway the quotes in there
2445 # would cause problems or look ugly.
2446 # WARNING: Use '\'' to represent an apostrophe within the trap.
2447 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2448 trap 'exit_status=$?
2449 # Save into config.log some information that might help in debugging.
2453 $as_echo "## ---------------- ##
2454 ## Cache variables. ##
2455 ## ---------------- ##"
2457 # The following way of writing the cache mishandles newlines in values,
2459 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2460 eval ac_val=\$$ac_var
2464 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2465 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2468 _ | IFS | as_nl) ;; #(
2469 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2470 *) { eval $ac_var=; unset $ac_var;} ;;
2475 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2476 *${as_nl}ac_space=\ *)
2478 "s/'\''/'\''\\\\'\'''\''/g;
2479 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2482 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2489 $as_echo "## ----------------- ##
2490 ## Output variables. ##
2491 ## ----------------- ##"
2493 for ac_var in $ac_subst_vars
2495 eval ac_val=\$$ac_var
2497 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2499 $as_echo "$ac_var='\''$ac_val'\''"
2503 if test -n "$ac_subst_files"; then
2504 $as_echo "## ------------------- ##
2505 ## File substitutions. ##
2506 ## ------------------- ##"
2508 for ac_var in $ac_subst_files
2510 eval ac_val=\$$ac_var
2512 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2514 $as_echo "$ac_var='\''$ac_val'\''"
2519 if test -s confdefs.h; then
2520 $as_echo "## ----------- ##
2527 test "$ac_signal" != 0 &&
2528 $as_echo "$as_me: caught signal $ac_signal"
2529 $as_echo "$as_me: exit $exit_status"
2531 rm -f core *.core core.conftest.* &&
2532 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2535 for ac_signal in 1 2 13 15; do
2536 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2540 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2541 rm -f -r conftest* confdefs.h
2543 $as_echo "/* confdefs.h */" > confdefs.h
2545 # Predefined preprocessor variables.
2547 cat >>confdefs.h <<_ACEOF
2548 #define PACKAGE_NAME "$PACKAGE_NAME"
2551 cat >>confdefs.h <<_ACEOF
2552 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2555 cat >>confdefs.h <<_ACEOF
2556 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2559 cat >>confdefs.h <<_ACEOF
2560 #define PACKAGE_STRING "$PACKAGE_STRING"
2563 cat >>confdefs.h <<_ACEOF
2564 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2567 cat >>confdefs.h <<_ACEOF
2568 #define PACKAGE_URL "$PACKAGE_URL"
2572 # Let the site file select an alternate cache file if it wants to.
2573 # Prefer an explicitly selected file to automatically selected ones.
2576 if test -n "$CONFIG_SITE"; then
2577 # We do not want a PATH search for config.site.
2578 case $CONFIG_SITE in #((
2579 -*) ac_site_file1=./$CONFIG_SITE;;
2580 */*) ac_site_file1=$CONFIG_SITE;;
2581 *) ac_site_file1=./$CONFIG_SITE;;
2583 elif test "x$prefix" != xNONE; then
2584 ac_site_file1=$prefix/share/config.site
2585 ac_site_file2=$prefix/etc/config.site
2587 ac_site_file1=$ac_default_prefix/share/config.site
2588 ac_site_file2=$ac_default_prefix/etc/config.site
2590 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2592 test "x$ac_site_file" = xNONE && continue
2593 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2595 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2596 sed 's/^/| /' "$ac_site_file" >&5
2598 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2599 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2600 as_fn_error $? "failed to load site script $ac_site_file
2601 See \`config.log' for more details" "$LINENO" 5; }
2605 if test -r "$cache_file"; then
2606 # Some versions of bash will fail to source /dev/null (special files
2607 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2608 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2610 $as_echo "$as_me: loading cache $cache_file" >&6;}
2612 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2613 *) . "./$cache_file";;
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2618 $as_echo "$as_me: creating cache $cache_file" >&6;}
2622 # Check that the precious variables saved in the cache have kept the same
2624 ac_cache_corrupted=false
2625 for ac_var in $ac_precious_vars; do
2626 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2627 eval ac_new_set=\$ac_env_${ac_var}_set
2628 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2629 eval ac_new_val=\$ac_env_${ac_var}_value
2630 case $ac_old_set,$ac_new_set in
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2633 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2634 ac_cache_corrupted=: ;;
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2637 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2638 ac_cache_corrupted=: ;;
2641 if test "x$ac_old_val" != "x$ac_new_val"; then
2642 # differences in whitespace do not lead to failure.
2643 ac_old_val_w=`echo x $ac_old_val`
2644 ac_new_val_w=`echo x $ac_new_val`
2645 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2647 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2648 ac_cache_corrupted=:
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2651 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2652 eval $ac_var=\$ac_old_val
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2655 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2657 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2660 # Pass precious variables to config.status.
2661 if test "$ac_new_set" = set; then
2663 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2664 *) ac_arg=$ac_var=$ac_new_val ;;
2666 case " $ac_configure_args " in
2667 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2668 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2672 if $ac_cache_corrupted; then
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2674 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2676 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2677 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2679 ## -------------------- ##
2680 ## Main body of script. ##
2681 ## -------------------- ##
2684 ac_cpp='$CPP $CPPFLAGS'
2685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2695 for ac_dir in config "$srcdir"/config; do
2696 if test -f "$ac_dir/install-sh"; then
2698 ac_install_sh="$ac_aux_dir/install-sh -c"
2700 elif test -f "$ac_dir/install.sh"; then
2702 ac_install_sh="$ac_aux_dir/install.sh -c"
2704 elif test -f "$ac_dir/shtool"; then
2706 ac_install_sh="$ac_aux_dir/shtool install -c"
2710 if test -z "$ac_aux_dir"; then
2711 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2714 # These three variables are undocumented and unsupported,
2715 # and are intended to be withdrawn in a future Autoconf release.
2716 # They can cause serious problems if a builder's source tree is in a directory
2717 # whose full name contains unusual characters.
2718 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2719 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2720 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2724 configure_args=$ac_configure_args
2727 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\)'`
2730 cat >>confdefs.h <<_ACEOF
2731 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2738 # Check whether --with-extra-version was given.
2739 if test "${with_extra_version+set}" = set; then :
2740 withval=$with_extra_version;
2743 as_fn_error $? "argument required for --with-extra-version option" "$LINENO" 5
2746 as_fn_error $? "argument required for --with-extra-version option" "$LINENO" 5
2749 PG_VERSION="$PACKAGE_VERSION$withval"
2754 PG_VERSION="$PACKAGE_VERSION"
2759 cat >>confdefs.h <<_ACEOF
2760 #define PG_VERSION "$PG_VERSION"
2764 # Make sure we can run config.sub.
2765 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2766 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2769 $as_echo_n "checking build system type... " >&6; }
2770 if ${ac_cv_build+:} false; then :
2771 $as_echo_n "(cached) " >&6
2773 ac_build_alias=$build_alias
2774 test "x$ac_build_alias" = x &&
2775 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2776 test "x$ac_build_alias" = x &&
2777 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2778 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2779 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2783 $as_echo "$ac_cv_build" >&6; }
2784 case $ac_cv_build in
2786 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2789 ac_save_IFS=$IFS; IFS='-'
2795 # Remember, the first character of IFS is used to create $*,
2796 # except with old shells:
2799 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2803 $as_echo_n "checking host system type... " >&6; }
2804 if ${ac_cv_host+:} false; then :
2805 $as_echo_n "(cached) " >&6
2807 if test "x$host_alias" = x; then
2808 ac_cv_host=$ac_cv_build
2810 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2811 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2816 $as_echo "$ac_cv_host" >&6; }
2819 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2822 ac_save_IFS=$IFS; IFS='-'
2828 # Remember, the first character of IFS is used to create $*,
2829 # except with old shells:
2832 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which template to use" >&5
2838 $as_echo_n "checking which template to use... " >&6; }
2843 # Check whether --with-template was given.
2844 if test "${with_template+set}" = set; then :
2845 withval=$with_template;
2848 as_fn_error $? "argument required for --with-template option" "$LINENO" 5
2851 as_fn_error $? "argument required for --with-template option" "$LINENO" 5
2856 list) echo; ls "$srcdir/src/template"; exit;;
2857 *) if test -f "$srcdir/src/template/$with_template" ; then
2860 as_fn_error $? "'$withval' is not a valid template name. Use 'list' for a list." "$LINENO" 5
2869 # --with-template not given
2872 aix*) template=aix ;;
2873 cygwin*) template=cygwin ;;
2874 darwin*) template=darwin ;;
2875 dragonfly*) template=netbsd ;;
2876 freebsd*) template=freebsd ;;
2877 hpux*) template=hpux ;;
2878 linux*|gnu*|k*bsd*-gnu)
2880 mingw*) template=win32 ;;
2881 netbsd*) template=netbsd ;;
2882 openbsd*) template=openbsd ;;
2883 solaris*) template=solaris ;;
2886 if test x"$template" = x"" ; then
2888 *******************************************************************
2889 PostgreSQL has apparently not been ported to your platform yet.
2890 To try a manual configuration, look into the src/template directory
2891 for a similar platform and use the '--with-template=' option.
2893 Please also contact <pgsql-bugs@postgresql.org> to see about
2894 rectifying this. Include the above 'checking host system type...'
2896 *******************************************************************
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $template" >&5
2906 $as_echo "$template" >&6; }
2911 # Initialize default assumption that we do not need separate assembly code
2912 # for TAS (test-and-set). This can be overridden by the template file
2913 # when it's executed.
2920 ## Command line options
2924 # Add non-standard directories to the include path
2929 # Check whether --with-includes was given.
2930 if test "${with_includes+set}" = set; then :
2931 withval=$with_includes;
2934 as_fn_error $? "argument required for --with-includes option" "$LINENO" 5
2937 as_fn_error $? "argument required for --with-includes option" "$LINENO" 5
2950 # Add non-standard directories to the library search path
2955 # Check whether --with-libraries was given.
2956 if test "${with_libraries+set}" = set; then :
2957 withval=$with_libraries;
2960 as_fn_error $? "argument required for --with-libraries option" "$LINENO" 5
2963 as_fn_error $? "argument required for --with-libraries option" "$LINENO" 5
2966 LIBRARY_DIRS=$withval
2977 # Check whether --with-libs was given.
2978 if test "${with_libs+set}" = set; then :
2982 as_fn_error $? "argument required for --with-libs option" "$LINENO" 5
2985 as_fn_error $? "argument required for --with-libs option" "$LINENO" 5
2988 LIBRARY_DIRS=$withval
2998 # 64-bit integer date/time storage is now the only option, but to avoid
2999 # unnecessary breakage of build scripts, continue to accept an explicit
3000 # "--enable-integer-datetimes" switch.
3004 # Check whether --enable-integer-datetimes was given.
3005 if test "${enable_integer_datetimes+set}" = set; then :
3006 enableval=$enable_integer_datetimes;
3012 as_fn_error $? "--disable-integer-datetimes is no longer supported" "$LINENO" 5
3015 as_fn_error $? "no argument expected for --enable-integer-datetimes option" "$LINENO" 5
3020 enable_integer_datetimes=yes
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is wanted" >&5
3031 $as_echo_n "checking whether NLS is wanted... " >&6; }
3034 # Check whether --enable-nls was given.
3035 if test "${enable_nls+set}" = set; then :
3036 enableval=$enable_nls;
3046 WANTED_LANGUAGES=$enableval
3056 if test "$enable_nls" = yes; then
3058 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nls" >&5
3063 $as_echo "$enable_nls" >&6; }
3068 # Default port number (--with-pgport), default 5432
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default port number" >&5
3071 $as_echo_n "checking for default port number... " >&6; }
3075 # Check whether --with-pgport was given.
3076 if test "${with_pgport+set}" = set; then :
3077 withval=$with_pgport;
3080 as_fn_error $? "argument required for --with-pgport option" "$LINENO" 5
3083 as_fn_error $? "argument required for --with-pgport option" "$LINENO" 5
3086 default_port=$withval
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $default_port" >&5
3096 $as_echo "$default_port" >&6; }
3097 # Need both of these because some places want an integer and some a string
3099 cat >>confdefs.h <<_ACEOF
3100 #define DEF_PGPORT ${default_port}
3104 cat >>confdefs.h <<_ACEOF
3105 #define DEF_PGPORT_STR "${default_port}"
3110 # It's worth validating port; you can get very confusing errors otherwise
3111 if test x"$default_port" = x""; then
3112 as_fn_error $? "invalid --with-pgport specification: empty string" "$LINENO" 5
3113 elif test ! x`echo "$default_port" | sed -e 's/[0-9]*//'` = x""; then
3114 as_fn_error $? "invalid --with-pgport specification: must be a number" "$LINENO" 5
3115 elif test ! x`echo "$default_port" | sed -e 's/^0.//'` = x"$default_port"; then
3116 as_fn_error $? "invalid --with-pgport specification: must not have leading 0" "$LINENO" 5
3117 elif test "$default_port" -lt "1" -o "$default_port" -gt "65535"; then
3118 as_fn_error $? "invalid --with-pgport specification: must be between 1 and 65535" "$LINENO" 5
3122 # '-rpath'-like feature can be disabled
3126 # Check whether --enable-rpath was given.
3127 if test "${enable_rpath+set}" = set; then :
3128 enableval=$enable_rpath;
3137 as_fn_error $? "no argument expected for --enable-rpath option" "$LINENO" 5
3154 # Check whether --enable-spinlocks was given.
3155 if test "${enable_spinlocks+set}" = set; then :
3156 enableval=$enable_spinlocks;
3165 as_fn_error $? "no argument expected for --enable-spinlocks option" "$LINENO" 5
3170 enable_spinlocks=yes
3181 # Check whether --enable-atomics was given.
3182 if test "${enable_atomics+set}" = set; then :
3183 enableval=$enable_atomics;
3192 as_fn_error $? "no argument expected for --enable-atomics option" "$LINENO" 5
3204 # Random number generation
3208 # Check whether --enable-strong-random was given.
3209 if test "${enable_strong_random+set}" = set; then :
3210 enableval=$enable_strong_random;
3219 as_fn_error $? "no argument expected for --enable-strong-random option" "$LINENO" 5
3224 enable_strong_random=yes
3232 # --enable-debug adds -g to compiler flags
3236 # Check whether --enable-debug was given.
3237 if test "${enable_debug+set}" = set; then :
3238 enableval=$enable_debug;
3247 as_fn_error $? "no argument expected for --enable-debug option" "$LINENO" 5
3260 # --enable-profiling enables gcc profiling
3264 # Check whether --enable-profiling was given.
3265 if test "${enable_profiling+set}" = set; then :
3266 enableval=$enable_profiling;
3275 as_fn_error $? "no argument expected for --enable-profiling option" "$LINENO" 5
3287 # --enable-coverage enables generation of code coverage metrics with gcov
3291 # Check whether --enable-coverage was given.
3292 if test "${enable_coverage+set}" = set; then :
3293 enableval=$enable_coverage;
3296 if test -z "$GCOV"; then
3299 # Extract the first word of "$ac_prog", so it can be a program name with args.
3300 set dummy $ac_prog; ac_word=$2
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3302 $as_echo_n "checking for $ac_word... " >&6; }
3303 if ${ac_cv_path_GCOV+:} false; then :
3304 $as_echo_n "(cached) " >&6
3308 ac_cv_path_GCOV="$GCOV" # Let the user override the test with a path.
3311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315 test -z "$as_dir" && as_dir=.
3316 for ac_exec_ext in '' $ac_executable_extensions; do
3317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3318 ac_cv_path_GCOV="$as_dir/$ac_word$ac_exec_ext"
3319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3329 GCOV=$ac_cv_path_GCOV
3330 if test -n "$GCOV"; then
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3332 $as_echo "$GCOV" >&6; }
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3335 $as_echo "no" >&6; }
3339 test -n "$GCOV" && break
3343 # Report the value of GCOV in configure's output in all cases.
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCOV" >&5
3345 $as_echo_n "checking for GCOV... " >&6; }
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3347 $as_echo "$GCOV" >&6; }
3350 if test -z "$GCOV"; then
3351 as_fn_error $? "gcov not found" "$LINENO" 5
3353 if test -z "$LCOV"; then
3356 # Extract the first word of "$ac_prog", so it can be a program name with args.
3357 set dummy $ac_prog; ac_word=$2
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3359 $as_echo_n "checking for $ac_word... " >&6; }
3360 if ${ac_cv_path_LCOV+:} false; then :
3361 $as_echo_n "(cached) " >&6
3365 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
3368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372 test -z "$as_dir" && as_dir=.
3373 for ac_exec_ext in '' $ac_executable_extensions; do
3374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3375 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
3376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3386 LCOV=$ac_cv_path_LCOV
3387 if test -n "$LCOV"; then
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3389 $as_echo "$LCOV" >&6; }
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3392 $as_echo "no" >&6; }
3396 test -n "$LCOV" && break
3400 # Report the value of LCOV in configure's output in all cases.
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCOV" >&5
3402 $as_echo_n "checking for LCOV... " >&6; }
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3404 $as_echo "$LCOV" >&6; }
3407 if test -z "$LCOV"; then
3408 as_fn_error $? "lcov not found" "$LINENO" 5
3410 if test -z "$GENHTML"; then
3411 for ac_prog in genhtml
3413 # Extract the first word of "$ac_prog", so it can be a program name with args.
3414 set dummy $ac_prog; ac_word=$2
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3416 $as_echo_n "checking for $ac_word... " >&6; }
3417 if ${ac_cv_path_GENHTML+:} false; then :
3418 $as_echo_n "(cached) " >&6
3422 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
3425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3429 test -z "$as_dir" && as_dir=.
3430 for ac_exec_ext in '' $ac_executable_extensions; do
3431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3432 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
3433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3443 GENHTML=$ac_cv_path_GENHTML
3444 if test -n "$GENHTML"; then
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3446 $as_echo "$GENHTML" >&6; }
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3449 $as_echo "no" >&6; }
3453 test -n "$GENHTML" && break
3457 # Report the value of GENHTML in configure's output in all cases.
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GENHTML" >&5
3459 $as_echo_n "checking for GENHTML... " >&6; }
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3461 $as_echo "$GENHTML" >&6; }
3464 if test -z "$GENHTML"; then
3465 as_fn_error $? "genhtml not found" "$LINENO" 5
3472 as_fn_error $? "no argument expected for --enable-coverage option" "$LINENO" 5
3489 # Check whether --enable-dtrace was given.
3490 if test "${enable_dtrace+set}" = set; then :
3491 enableval=$enable_dtrace;
3494 if test -z "$DTRACE"; then
3495 for ac_prog in dtrace
3497 # Extract the first word of "$ac_prog", so it can be a program name with args.
3498 set dummy $ac_prog; ac_word=$2
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3500 $as_echo_n "checking for $ac_word... " >&6; }
3501 if ${ac_cv_path_DTRACE+:} false; then :
3502 $as_echo_n "(cached) " >&6
3506 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
3509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3513 test -z "$as_dir" && as_dir=.
3514 for ac_exec_ext in '' $ac_executable_extensions; do
3515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3516 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
3517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3527 DTRACE=$ac_cv_path_DTRACE
3528 if test -n "$DTRACE"; then
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
3530 $as_echo "$DTRACE" >&6; }
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3533 $as_echo "no" >&6; }
3537 test -n "$DTRACE" && break
3541 # Report the value of DTRACE in configure's output in all cases.
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5
3543 $as_echo_n "checking for DTRACE... " >&6; }
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
3545 $as_echo "$DTRACE" >&6; }
3548 if test -z "$DTRACE"; then
3549 as_fn_error $? "dtrace not found" "$LINENO" 5
3557 as_fn_error $? "no argument expected for --enable-dtrace option" "$LINENO" 5
3574 # Check whether --enable-tap-tests was given.
3575 if test "${enable_tap_tests+set}" = set; then :
3576 enableval=$enable_tap_tests;
3585 as_fn_error $? "no argument expected for --enable-tap-tests option" "$LINENO" 5
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for block size" >&5
3601 $as_echo_n "checking for block size... " >&6; }
3605 # Check whether --with-blocksize was given.
3606 if test "${with_blocksize+set}" = set; then :
3607 withval=$with_blocksize;
3610 as_fn_error $? "argument required for --with-blocksize option" "$LINENO" 5
3613 as_fn_error $? "argument required for --with-blocksize option" "$LINENO" 5
3625 case ${blocksize} in
3632 *) as_fn_error $? "Invalid block size. Allowed values are 1,2,4,8,16,32." "$LINENO" 5
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${blocksize}kB" >&5
3635 $as_echo "${blocksize}kB" >&6; }
3638 cat >>confdefs.h <<_ACEOF
3639 #define BLCKSZ ${BLCKSZ}
3644 # Relation segment size
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for segment size" >&5
3647 $as_echo_n "checking for segment size... " >&6; }
3651 # Check whether --with-segsize was given.
3652 if test "${with_segsize+set}" = set; then :
3653 withval=$with_segsize;
3656 as_fn_error $? "argument required for --with-segsize option" "$LINENO" 5
3659 as_fn_error $? "argument required for --with-segsize option" "$LINENO" 5
3671 # this expression is set up to avoid unnecessary integer overflow
3672 # blocksize is already guaranteed to be a factor of 1024
3673 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
3674 test $? -eq 0 || exit 1
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${segsize}GB" >&5
3676 $as_echo "${segsize}GB" >&6; }
3679 cat >>confdefs.h <<_ACEOF
3680 #define RELSEG_SIZE ${RELSEG_SIZE}
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAL block size" >&5
3688 $as_echo_n "checking for WAL block size... " >&6; }
3692 # Check whether --with-wal-blocksize was given.
3693 if test "${with_wal_blocksize+set}" = set; then :
3694 withval=$with_wal_blocksize;
3697 as_fn_error $? "argument required for --with-wal-blocksize option" "$LINENO" 5
3700 as_fn_error $? "argument required for --with-wal-blocksize option" "$LINENO" 5
3703 wal_blocksize=$withval
3712 case ${wal_blocksize} in
3713 1) XLOG_BLCKSZ=1024;;
3714 2) XLOG_BLCKSZ=2048;;
3715 4) XLOG_BLCKSZ=4096;;
3716 8) XLOG_BLCKSZ=8192;;
3717 16) XLOG_BLCKSZ=16384;;
3718 32) XLOG_BLCKSZ=32768;;
3719 64) XLOG_BLCKSZ=65536;;
3720 *) as_fn_error $? "Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." "$LINENO" 5
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${wal_blocksize}kB" >&5
3723 $as_echo "${wal_blocksize}kB" >&6; }
3726 cat >>confdefs.h <<_ACEOF
3727 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
3735 # For historical reasons you can also use --with-CC to specify the C compiler
3736 # to use, although the standard way to do this is to set the CC environment
3741 # Check whether --with-CC was given.
3742 if test "${with_CC+set}" = set; then :
3746 as_fn_error $? "argument required for --with-CC option" "$LINENO" 5
3749 as_fn_error $? "argument required for --with-CC option" "$LINENO" 5
3761 aix) pgac_cc_list="gcc xlc";;
3762 *) pgac_cc_list="gcc cc";;
3766 ac_cpp='$CPP $CPPFLAGS'
3767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3770 if test -n "$ac_tool_prefix"; then
3771 for ac_prog in $pgac_cc_list
3773 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3774 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3776 $as_echo_n "checking for $ac_word... " >&6; }
3777 if ${ac_cv_prog_CC+:} false; then :
3778 $as_echo_n "(cached) " >&6
3780 if test -n "$CC"; then
3781 ac_cv_prog_CC="$CC" # Let the user override the test.
3783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3787 test -z "$as_dir" && as_dir=.
3788 for ac_exec_ext in '' $ac_executable_extensions; do
3789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3790 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3801 if test -n "$CC"; then
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3803 $as_echo "$CC" >&6; }
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3806 $as_echo "no" >&6; }
3810 test -n "$CC" && break
3813 if test -z "$CC"; then
3815 for ac_prog in $pgac_cc_list
3817 # Extract the first word of "$ac_prog", so it can be a program name with args.
3818 set dummy $ac_prog; ac_word=$2
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3820 $as_echo_n "checking for $ac_word... " >&6; }
3821 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3822 $as_echo_n "(cached) " >&6
3824 if test -n "$ac_ct_CC"; then
3825 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3831 test -z "$as_dir" && as_dir=.
3832 for ac_exec_ext in '' $ac_executable_extensions; do
3833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3834 ac_cv_prog_ac_ct_CC="$ac_prog"
3835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3844 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3845 if test -n "$ac_ct_CC"; then
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3847 $as_echo "$ac_ct_CC" >&6; }
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3850 $as_echo "no" >&6; }
3854 test -n "$ac_ct_CC" && break
3857 if test "x$ac_ct_CC" = x; then
3860 case $cross_compiling:$ac_tool_warned in
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3864 ac_tool_warned=yes ;;
3871 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3873 as_fn_error $? "no acceptable C compiler found in \$PATH
3874 See \`config.log' for more details" "$LINENO" 5; }
3876 # Provide some information about the compiler.
3877 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3880 for ac_option in --version -v -V -qversion; do
3881 { { ac_try="$ac_compiler $ac_option >&5"
3883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3884 *) ac_try_echo=$ac_try;;
3886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3887 $as_echo "$ac_try_echo"; } >&5
3888 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3890 if test -s conftest.err; then
3892 ... rest of stderr output deleted ...
3893 10q' conftest.err >conftest.er1
3894 cat conftest.er1 >&5
3896 rm -f conftest.er1 conftest.err
3897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3898 test $ac_status = 0; }
3901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3902 /* end confdefs.h. */
3912 ac_clean_files_save=$ac_clean_files
3913 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3914 # Try to create an executable without -o first, disregard a.out.
3915 # It will help us diagnose broken compilers, and finding out an intuition
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3918 $as_echo_n "checking whether the C compiler works... " >&6; }
3919 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3921 # The possible output files:
3922 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3925 for ac_file in $ac_files
3928 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3929 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3934 if { { ac_try="$ac_link_default"
3936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3937 *) ac_try_echo=$ac_try;;
3939 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3940 $as_echo "$ac_try_echo"; } >&5
3941 (eval "$ac_link_default") 2>&5
3943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3944 test $ac_status = 0; }; then :
3945 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3946 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3947 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3948 # so that the user can short-circuit this test for compilers unknown to
3950 for ac_file in $ac_files ''
3952 test -f "$ac_file" || continue
3954 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3957 # We found the default executable, but exeext='' is most
3961 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3963 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3965 # We set ac_cv_exeext here because the later test for it is not
3966 # safe: cross compilers may not add the suffix if given an `-o'
3967 # argument, so we may need to know it at that point already.
3968 # Even if this section looks crufty: it has the advantage of
3975 test "$ac_cv_exeext" = no && ac_cv_exeext=
3980 if test -z "$ac_file"; then :
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3982 $as_echo "no" >&6; }
3983 $as_echo "$as_me: failed program was:" >&5
3984 sed 's/^/| /' conftest.$ac_ext >&5
3986 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3987 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3988 as_fn_error 77 "C compiler cannot create executables
3989 See \`config.log' for more details" "$LINENO" 5; }
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3992 $as_echo "yes" >&6; }
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3995 $as_echo_n "checking for C compiler default output file name... " >&6; }
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3997 $as_echo "$ac_file" >&6; }
3998 ac_exeext=$ac_cv_exeext
4000 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4001 ac_clean_files=$ac_clean_files_save
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4003 $as_echo_n "checking for suffix of executables... " >&6; }
4004 if { { ac_try="$ac_link"
4006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4007 *) ac_try_echo=$ac_try;;
4009 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4010 $as_echo "$ac_try_echo"; } >&5
4011 (eval "$ac_link") 2>&5
4013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4014 test $ac_status = 0; }; then :
4015 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4016 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4017 # work properly (i.e., refer to `conftest.exe'), while it won't with
4019 for ac_file in conftest.exe conftest conftest.*; do
4020 test -f "$ac_file" || continue
4022 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4023 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4029 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4031 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4032 See \`config.log' for more details" "$LINENO" 5; }
4034 rm -f conftest conftest$ac_cv_exeext
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4036 $as_echo "$ac_cv_exeext" >&6; }
4038 rm -f conftest.$ac_ext
4039 EXEEXT=$ac_cv_exeext
4041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4042 /* end confdefs.h. */
4047 FILE *f = fopen ("conftest.out", "w");
4048 return ferror (f) || fclose (f) != 0;
4054 ac_clean_files="$ac_clean_files conftest.out"
4055 # Check that the compiler produces executables we can run. If not, either
4056 # the compiler is broken, or we cross compile.
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4058 $as_echo_n "checking whether we are cross compiling... " >&6; }
4059 if test "$cross_compiling" != yes; then
4060 { { ac_try="$ac_link"
4062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4063 *) ac_try_echo=$ac_try;;
4065 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4066 $as_echo "$ac_try_echo"; } >&5
4067 (eval "$ac_link") 2>&5
4069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4070 test $ac_status = 0; }
4071 if { ac_try='./conftest$ac_cv_exeext'
4072 { { case "(($ac_try" in
4073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4074 *) ac_try_echo=$ac_try;;
4076 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4077 $as_echo "$ac_try_echo"; } >&5
4078 (eval "$ac_try") 2>&5
4080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4081 test $ac_status = 0; }; }; then
4084 if test "$cross_compiling" = maybe; then
4087 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4089 as_fn_error $? "cannot run C compiled programs.
4090 If you meant to cross compile, use \`--host'.
4091 See \`config.log' for more details" "$LINENO" 5; }
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4096 $as_echo "$cross_compiling" >&6; }
4098 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4099 ac_clean_files=$ac_clean_files_save
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4101 $as_echo_n "checking for suffix of object files... " >&6; }
4102 if ${ac_cv_objext+:} false; then :
4103 $as_echo_n "(cached) " >&6
4105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4106 /* end confdefs.h. */
4116 rm -f conftest.o conftest.obj
4117 if { { ac_try="$ac_compile"
4119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4120 *) ac_try_echo=$ac_try;;
4122 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4123 $as_echo "$ac_try_echo"; } >&5
4124 (eval "$ac_compile") 2>&5
4126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4127 test $ac_status = 0; }; then :
4128 for ac_file in conftest.o conftest.obj conftest.*; do
4129 test -f "$ac_file" || continue;
4131 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4132 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4137 $as_echo "$as_me: failed program was:" >&5
4138 sed 's/^/| /' conftest.$ac_ext >&5
4140 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4142 as_fn_error $? "cannot compute suffix of object files: cannot compile
4143 See \`config.log' for more details" "$LINENO" 5; }
4145 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4148 $as_echo "$ac_cv_objext" >&6; }
4149 OBJEXT=$ac_cv_objext
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4152 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4153 if ${ac_cv_c_compiler_gnu+:} false; then :
4154 $as_echo_n "(cached) " >&6
4156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4157 /* end confdefs.h. */
4170 if ac_fn_c_try_compile "$LINENO"; then :
4175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4176 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4180 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4181 if test $ac_compiler_gnu = yes; then
4186 ac_test_CFLAGS=${CFLAGS+set}
4187 ac_save_CFLAGS=$CFLAGS
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4189 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4190 if ${ac_cv_prog_cc_g+:} false; then :
4191 $as_echo_n "(cached) " >&6
4193 ac_save_c_werror_flag=$ac_c_werror_flag
4194 ac_c_werror_flag=yes
4197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4198 /* end confdefs.h. */
4208 if ac_fn_c_try_compile "$LINENO"; then :
4212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4213 /* end confdefs.h. */
4223 if ac_fn_c_try_compile "$LINENO"; then :
4226 ac_c_werror_flag=$ac_save_c_werror_flag
4228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4229 /* end confdefs.h. */
4239 if ac_fn_c_try_compile "$LINENO"; then :
4242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4247 ac_c_werror_flag=$ac_save_c_werror_flag
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4250 $as_echo "$ac_cv_prog_cc_g" >&6; }
4251 if test "$ac_test_CFLAGS" = set; then
4252 CFLAGS=$ac_save_CFLAGS
4253 elif test $ac_cv_prog_cc_g = yes; then
4254 if test "$GCC" = yes; then
4260 if test "$GCC" = yes; then
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4267 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4268 if ${ac_cv_prog_cc_c89+:} false; then :
4269 $as_echo_n "(cached) " >&6
4271 ac_cv_prog_cc_c89=no
4273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4274 /* end confdefs.h. */
4278 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4279 struct buf { int x; };
4280 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4281 static char *e (p, i)
4287 static char *f (char * (*g) (char **, int), char **p, ...)
4292 s = g (p, va_arg (v,int));
4297 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4298 function prototypes and stuff, but not '\xHH' hex character constants.
4299 These don't provoke an error unfortunately, instead are silently treated
4300 as 'x'. The following induces an error, until -std is added to get
4301 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4302 array size at least. It's necessary to write '\x00'==0 to get something
4303 that's true only with -std. */
4304 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4306 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4307 inside strings and character constants. */
4309 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4311 int test (int i, double x);
4312 struct s1 {int (*f) (int a);};
4313 struct s2 {int (*f) (double a);};
4314 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4320 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4325 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4326 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4328 CC="$ac_save_CC $ac_arg"
4329 if ac_fn_c_try_compile "$LINENO"; then :
4330 ac_cv_prog_cc_c89=$ac_arg
4332 rm -f core conftest.err conftest.$ac_objext
4333 test "x$ac_cv_prog_cc_c89" != "xno" && break
4335 rm -f conftest.$ac_ext
4340 case "x$ac_cv_prog_cc_c89" in
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4343 $as_echo "none needed" >&6; } ;;
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4346 $as_echo "unsupported" >&6; } ;;
4348 CC="$CC $ac_cv_prog_cc_c89"
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4350 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4352 if test "x$ac_cv_prog_cc_c89" != xno; then :
4357 ac_cpp='$CPP $CPPFLAGS'
4358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4363 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
4364 # but has idiosyncrasies of its own. We assume icc will define
4365 # __INTEL_COMPILER regardless of CFLAGS.
4367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4368 /* end confdefs.h. */
4373 #ifndef __INTEL_COMPILER
4380 if ac_fn_c_try_compile "$LINENO"; then :
4385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4387 # Check if it's Sun Studio compiler. We assume that
4388 # __SUNPRO_C will be defined for Sun Studio compilers
4389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4390 /* end confdefs.h. */
4402 if ac_fn_c_try_compile "$LINENO"; then :
4407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4416 . "$srcdir/src/template/$template" || exit
4418 # CFLAGS are selected so:
4419 # If the user specifies something in the environment, that is used.
4420 # else: If the template file set something, that is used.
4421 # else: If coverage was enabled, don't set anything.
4422 # else: If the compiler is GCC, then we use -O2.
4423 # else: If the compiler is something else, then we use -O, unless debugging.
4425 if test "$ac_env_CFLAGS_set" = set; then
4426 CFLAGS=$ac_env_CFLAGS_value
4427 elif test "${CFLAGS+set}" = set; then
4428 : # (keep what template set)
4429 elif test "$enable_coverage" = yes; then
4430 : # no optimization by default
4431 elif test "$GCC" = yes; then
4434 # if the user selected debug mode, don't use -O
4435 if test "$enable_debug" != yes; then
4440 # CFLAGS we determined above will be added back at the end
4444 # set CFLAGS_VECTOR from the environment, if available
4445 if test "$ac_env_CFLAGS_VECTOR_set" = set; then
4446 CFLAGS_VECTOR=$ac_env_CFLAGS_VECTOR_value
4449 # Some versions of GCC support some additional useful warning flags.
4450 # Check whether they are supported, and add them to CFLAGS if so.
4451 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
4452 # but has its own. Also check other compiler-specific flags here.
4454 if test "$GCC" = yes -a "$ICC" = no; then
4455 CFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith"
4456 # These work in some but not all gcc versions
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5
4458 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
4459 if ${pgac_cv_prog_cc_cflags__Wdeclaration_after_statement+:} false; then :
4460 $as_echo_n "(cached) " >&6
4462 pgac_save_CFLAGS=$CFLAGS
4463 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
4464 ac_save_c_werror_flag=$ac_c_werror_flag
4465 ac_c_werror_flag=yes
4466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4467 /* end confdefs.h. */
4477 if ac_fn_c_try_compile "$LINENO"; then :
4478 pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=yes
4480 pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=no
4482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4483 ac_c_werror_flag=$ac_save_c_werror_flag
4484 CFLAGS="$pgac_save_CFLAGS"
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&5
4487 $as_echo "$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&6; }
4488 if test x"$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" = x"yes"; then
4489 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wendif-labels" >&5
4493 $as_echo_n "checking whether $CC supports -Wendif-labels... " >&6; }
4494 if ${pgac_cv_prog_cc_cflags__Wendif_labels+:} false; then :
4495 $as_echo_n "(cached) " >&6
4497 pgac_save_CFLAGS=$CFLAGS
4498 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
4499 ac_save_c_werror_flag=$ac_c_werror_flag
4500 ac_c_werror_flag=yes
4501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4502 /* end confdefs.h. */
4512 if ac_fn_c_try_compile "$LINENO"; then :
4513 pgac_cv_prog_cc_cflags__Wendif_labels=yes
4515 pgac_cv_prog_cc_cflags__Wendif_labels=no
4517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4518 ac_c_werror_flag=$ac_save_c_werror_flag
4519 CFLAGS="$pgac_save_CFLAGS"
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__Wendif_labels" >&5
4522 $as_echo "$pgac_cv_prog_cc_cflags__Wendif_labels" >&6; }
4523 if test x"$pgac_cv_prog_cc_cflags__Wendif_labels" = x"yes"; then
4524 CFLAGS="$CFLAGS -Wendif-labels"
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wmissing-format-attribute" >&5
4528 $as_echo_n "checking whether $CC supports -Wmissing-format-attribute... " >&6; }
4529 if ${pgac_cv_prog_cc_cflags__Wmissing_format_attribute+:} false; then :
4530 $as_echo_n "(cached) " >&6
4532 pgac_save_CFLAGS=$CFLAGS
4533 CFLAGS="$pgac_save_CFLAGS -Wmissing-format-attribute"
4534 ac_save_c_werror_flag=$ac_c_werror_flag
4535 ac_c_werror_flag=yes
4536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537 /* end confdefs.h. */
4547 if ac_fn_c_try_compile "$LINENO"; then :
4548 pgac_cv_prog_cc_cflags__Wmissing_format_attribute=yes
4550 pgac_cv_prog_cc_cflags__Wmissing_format_attribute=no
4552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4553 ac_c_werror_flag=$ac_save_c_werror_flag
4554 CFLAGS="$pgac_save_CFLAGS"
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&5
4557 $as_echo "$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&6; }
4558 if test x"$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" = x"yes"; then
4559 CFLAGS="$CFLAGS -Wmissing-format-attribute"
4562 # This was included in -Wall/-Wformat in older GCC versions
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wformat-security" >&5
4564 $as_echo_n "checking whether $CC supports -Wformat-security... " >&6; }
4565 if ${pgac_cv_prog_cc_cflags__Wformat_security+:} false; then :
4566 $as_echo_n "(cached) " >&6
4568 pgac_save_CFLAGS=$CFLAGS
4569 CFLAGS="$pgac_save_CFLAGS -Wformat-security"
4570 ac_save_c_werror_flag=$ac_c_werror_flag
4571 ac_c_werror_flag=yes
4572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4573 /* end confdefs.h. */
4583 if ac_fn_c_try_compile "$LINENO"; then :
4584 pgac_cv_prog_cc_cflags__Wformat_security=yes
4586 pgac_cv_prog_cc_cflags__Wformat_security=no
4588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4589 ac_c_werror_flag=$ac_save_c_werror_flag
4590 CFLAGS="$pgac_save_CFLAGS"
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__Wformat_security" >&5
4593 $as_echo "$pgac_cv_prog_cc_cflags__Wformat_security" >&6; }
4594 if test x"$pgac_cv_prog_cc_cflags__Wformat_security" = x"yes"; then
4595 CFLAGS="$CFLAGS -Wformat-security"
4598 # Disable strict-aliasing rules; needed for gcc 3.3+
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fno-strict-aliasing" >&5
4600 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4601 if ${pgac_cv_prog_cc_cflags__fno_strict_aliasing+:} false; then :
4602 $as_echo_n "(cached) " >&6
4604 pgac_save_CFLAGS=$CFLAGS
4605 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4606 ac_save_c_werror_flag=$ac_c_werror_flag
4607 ac_c_werror_flag=yes
4608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4609 /* end confdefs.h. */
4619 if ac_fn_c_try_compile "$LINENO"; then :
4620 pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4622 pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4625 ac_c_werror_flag=$ac_save_c_werror_flag
4626 CFLAGS="$pgac_save_CFLAGS"
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4629 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4630 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4631 CFLAGS="$CFLAGS -fno-strict-aliasing"
4634 # Disable optimizations that assume no overflow; needed for gcc 4.3+
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fwrapv" >&5
4636 $as_echo_n "checking whether $CC supports -fwrapv... " >&6; }
4637 if ${pgac_cv_prog_cc_cflags__fwrapv+:} false; then :
4638 $as_echo_n "(cached) " >&6
4640 pgac_save_CFLAGS=$CFLAGS
4641 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4642 ac_save_c_werror_flag=$ac_c_werror_flag
4643 ac_c_werror_flag=yes
4644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4645 /* end confdefs.h. */
4655 if ac_fn_c_try_compile "$LINENO"; then :
4656 pgac_cv_prog_cc_cflags__fwrapv=yes
4658 pgac_cv_prog_cc_cflags__fwrapv=no
4660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4661 ac_c_werror_flag=$ac_save_c_werror_flag
4662 CFLAGS="$pgac_save_CFLAGS"
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__fwrapv" >&5
4665 $as_echo "$pgac_cv_prog_cc_cflags__fwrapv" >&6; }
4666 if test x"$pgac_cv_prog_cc_cflags__fwrapv" = x"yes"; then
4667 CFLAGS="$CFLAGS -fwrapv"
4670 # Disable FP optimizations that cause various errors on gcc 4.5+ or maybe 4.6+
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fexcess-precision=standard" >&5
4672 $as_echo_n "checking whether $CC supports -fexcess-precision=standard... " >&6; }
4673 if ${pgac_cv_prog_cc_cflags__fexcess_precision_standard+:} false; then :
4674 $as_echo_n "(cached) " >&6
4676 pgac_save_CFLAGS=$CFLAGS
4677 CFLAGS="$pgac_save_CFLAGS -fexcess-precision=standard"
4678 ac_save_c_werror_flag=$ac_c_werror_flag
4679 ac_c_werror_flag=yes
4680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4681 /* end confdefs.h. */
4691 if ac_fn_c_try_compile "$LINENO"; then :
4692 pgac_cv_prog_cc_cflags__fexcess_precision_standard=yes
4694 pgac_cv_prog_cc_cflags__fexcess_precision_standard=no
4696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4697 ac_c_werror_flag=$ac_save_c_werror_flag
4698 CFLAGS="$pgac_save_CFLAGS"
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__fexcess_precision_standard" >&5
4701 $as_echo "$pgac_cv_prog_cc_cflags__fexcess_precision_standard" >&6; }
4702 if test x"$pgac_cv_prog_cc_cflags__fexcess_precision_standard" = x"yes"; then
4703 CFLAGS="$CFLAGS -fexcess-precision=standard"
4706 # Optimization flags for specific files that benefit from vectorization
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -funroll-loops" >&5
4708 $as_echo_n "checking whether $CC supports -funroll-loops... " >&6; }
4709 if ${pgac_cv_prog_cc_cflags__funroll_loops+:} false; then :
4710 $as_echo_n "(cached) " >&6
4712 pgac_save_CFLAGS=$CFLAGS
4713 CFLAGS="$pgac_save_CFLAGS -funroll-loops"
4714 ac_save_c_werror_flag=$ac_c_werror_flag
4715 ac_c_werror_flag=yes
4716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4717 /* end confdefs.h. */
4727 if ac_fn_c_try_compile "$LINENO"; then :
4728 pgac_cv_prog_cc_cflags__funroll_loops=yes
4730 pgac_cv_prog_cc_cflags__funroll_loops=no
4732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4733 ac_c_werror_flag=$ac_save_c_werror_flag
4734 CFLAGS="$pgac_save_CFLAGS"
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__funroll_loops" >&5
4737 $as_echo "$pgac_cv_prog_cc_cflags__funroll_loops" >&6; }
4738 if test x"$pgac_cv_prog_cc_cflags__funroll_loops" = x"yes"; then
4739 CFLAGS_VECTOR="${CFLAGS_VECTOR} -funroll-loops"
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -ftree-vectorize" >&5
4743 $as_echo_n "checking whether $CC supports -ftree-vectorize... " >&6; }
4744 if ${pgac_cv_prog_cc_cflags__ftree_vectorize+:} false; then :
4745 $as_echo_n "(cached) " >&6
4747 pgac_save_CFLAGS=$CFLAGS
4748 CFLAGS="$pgac_save_CFLAGS -ftree-vectorize"
4749 ac_save_c_werror_flag=$ac_c_werror_flag
4750 ac_c_werror_flag=yes
4751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4752 /* end confdefs.h. */
4762 if ac_fn_c_try_compile "$LINENO"; then :
4763 pgac_cv_prog_cc_cflags__ftree_vectorize=yes
4765 pgac_cv_prog_cc_cflags__ftree_vectorize=no
4767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4768 ac_c_werror_flag=$ac_save_c_werror_flag
4769 CFLAGS="$pgac_save_CFLAGS"
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__ftree_vectorize" >&5
4772 $as_echo "$pgac_cv_prog_cc_cflags__ftree_vectorize" >&6; }
4773 if test x"$pgac_cv_prog_cc_cflags__ftree_vectorize" = x"yes"; then
4774 CFLAGS_VECTOR="${CFLAGS_VECTOR} -ftree-vectorize"
4777 # We want to suppress clang's unhelpful unused-command-line-argument warnings
4778 # but gcc won't complain about unrecognized -Wno-foo switches, so we have to
4779 # test for the positive form and if that works, add the negative form
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wunused-command-line-argument" >&5
4781 $as_echo_n "checking whether $CC supports -Wunused-command-line-argument... " >&6; }
4782 if ${pgac_cv_prog_cc_cflags__Wunused_command_line_argument+:} false; then :
4783 $as_echo_n "(cached) " >&6
4785 pgac_save_CFLAGS=$CFLAGS
4786 CFLAGS="$pgac_save_CFLAGS -Wunused-command-line-argument"
4787 ac_save_c_werror_flag=$ac_c_werror_flag
4788 ac_c_werror_flag=yes
4789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4790 /* end confdefs.h. */
4800 if ac_fn_c_try_compile "$LINENO"; then :
4801 pgac_cv_prog_cc_cflags__Wunused_command_line_argument=yes
4803 pgac_cv_prog_cc_cflags__Wunused_command_line_argument=no
4805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4806 ac_c_werror_flag=$ac_save_c_werror_flag
4807 CFLAGS="$pgac_save_CFLAGS"
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__Wunused_command_line_argument" >&5
4810 $as_echo "$pgac_cv_prog_cc_cflags__Wunused_command_line_argument" >&6; }
4811 if test x"$pgac_cv_prog_cc_cflags__Wunused_command_line_argument" = x"yes"; then
4812 NOT_THE_CFLAGS="${NOT_THE_CFLAGS} -Wunused-command-line-argument"
4815 if test -n "$NOT_THE_CFLAGS"; then
4816 CFLAGS="$CFLAGS -Wno-unused-command-line-argument"
4818 elif test "$ICC" = yes; then
4819 # Intel's compiler has a bug/misoptimization in checking for
4820 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mp1" >&5
4822 $as_echo_n "checking whether $CC supports -mp1... " >&6; }
4823 if ${pgac_cv_prog_cc_cflags__mp1+:} false; then :
4824 $as_echo_n "(cached) " >&6
4826 pgac_save_CFLAGS=$CFLAGS
4827 CFLAGS="$pgac_save_CFLAGS -mp1"
4828 ac_save_c_werror_flag=$ac_c_werror_flag
4829 ac_c_werror_flag=yes
4830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4831 /* end confdefs.h. */
4841 if ac_fn_c_try_compile "$LINENO"; then :
4842 pgac_cv_prog_cc_cflags__mp1=yes
4844 pgac_cv_prog_cc_cflags__mp1=no
4846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4847 ac_c_werror_flag=$ac_save_c_werror_flag
4848 CFLAGS="$pgac_save_CFLAGS"
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__mp1" >&5
4851 $as_echo "$pgac_cv_prog_cc_cflags__mp1" >&6; }
4852 if test x"$pgac_cv_prog_cc_cflags__mp1" = x"yes"; then
4853 CFLAGS="$CFLAGS -mp1"
4856 # Make sure strict aliasing is off (though this is said to be the default)
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fno-strict-aliasing" >&5
4858 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4859 if ${pgac_cv_prog_cc_cflags__fno_strict_aliasing+:} false; then :
4860 $as_echo_n "(cached) " >&6
4862 pgac_save_CFLAGS=$CFLAGS
4863 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4864 ac_save_c_werror_flag=$ac_c_werror_flag
4865 ac_c_werror_flag=yes
4866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4867 /* end confdefs.h. */
4877 if ac_fn_c_try_compile "$LINENO"; then :
4878 pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4880 pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4883 ac_c_werror_flag=$ac_save_c_werror_flag
4884 CFLAGS="$pgac_save_CFLAGS"
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4887 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4888 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4889 CFLAGS="$CFLAGS -fno-strict-aliasing"
4892 elif test "$PORTNAME" = "aix"; then
4893 # AIX's xlc has to have strict aliasing turned off too
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -qnoansialias" >&5
4895 $as_echo_n "checking whether $CC supports -qnoansialias... " >&6; }
4896 if ${pgac_cv_prog_cc_cflags__qnoansialias+:} false; then :
4897 $as_echo_n "(cached) " >&6
4899 pgac_save_CFLAGS=$CFLAGS
4900 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4901 ac_save_c_werror_flag=$ac_c_werror_flag
4902 ac_c_werror_flag=yes
4903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4904 /* end confdefs.h. */
4914 if ac_fn_c_try_compile "$LINENO"; then :
4915 pgac_cv_prog_cc_cflags__qnoansialias=yes
4917 pgac_cv_prog_cc_cflags__qnoansialias=no
4919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4920 ac_c_werror_flag=$ac_save_c_werror_flag
4921 CFLAGS="$pgac_save_CFLAGS"
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__qnoansialias" >&5
4924 $as_echo "$pgac_cv_prog_cc_cflags__qnoansialias" >&6; }
4925 if test x"$pgac_cv_prog_cc_cflags__qnoansialias" = x"yes"; then
4926 CFLAGS="$CFLAGS -qnoansialias"
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -qlonglong" >&5
4930 $as_echo_n "checking whether $CC supports -qlonglong... " >&6; }
4931 if ${pgac_cv_prog_cc_cflags__qlonglong+:} false; then :
4932 $as_echo_n "(cached) " >&6
4934 pgac_save_CFLAGS=$CFLAGS
4935 CFLAGS="$pgac_save_CFLAGS -qlonglong"
4936 ac_save_c_werror_flag=$ac_c_werror_flag
4937 ac_c_werror_flag=yes
4938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4939 /* end confdefs.h. */
4949 if ac_fn_c_try_compile "$LINENO"; then :
4950 pgac_cv_prog_cc_cflags__qlonglong=yes
4952 pgac_cv_prog_cc_cflags__qlonglong=no
4954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4955 ac_c_werror_flag=$ac_save_c_werror_flag
4956 CFLAGS="$pgac_save_CFLAGS"
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__qlonglong" >&5
4959 $as_echo "$pgac_cv_prog_cc_cflags__qlonglong" >&6; }
4960 if test x"$pgac_cv_prog_cc_cflags__qlonglong" = x"yes"; then
4961 CFLAGS="$CFLAGS -qlonglong"
4964 elif test "$PORTNAME" = "hpux"; then
4965 # On some versions of HP-UX, libm functions do not set errno by default.
4966 # Fix that by using +Olibmerrno if the compiler recognizes it.
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports +Olibmerrno" >&5
4968 $as_echo_n "checking whether $CC supports +Olibmerrno... " >&6; }
4969 if ${pgac_cv_prog_cc_cflags_pOlibmerrno+:} false; then :
4970 $as_echo_n "(cached) " >&6
4972 pgac_save_CFLAGS=$CFLAGS
4973 CFLAGS="$pgac_save_CFLAGS +Olibmerrno"
4974 ac_save_c_werror_flag=$ac_c_werror_flag
4975 ac_c_werror_flag=yes
4976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4977 /* end confdefs.h. */
4987 if ac_fn_c_try_compile "$LINENO"; then :
4988 pgac_cv_prog_cc_cflags_pOlibmerrno=yes
4990 pgac_cv_prog_cc_cflags_pOlibmerrno=no
4992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4993 ac_c_werror_flag=$ac_save_c_werror_flag
4994 CFLAGS="$pgac_save_CFLAGS"
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags_pOlibmerrno" >&5
4997 $as_echo "$pgac_cv_prog_cc_cflags_pOlibmerrno" >&6; }
4998 if test x"$pgac_cv_prog_cc_cflags_pOlibmerrno" = x"yes"; then
4999 CFLAGS="$CFLAGS +Olibmerrno"
5004 CFLAGS_VECTOR=$CFLAGS_VECTOR
5007 # supply -g if --enable-debug
5008 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
5012 # enable code coverage if --enable-coverage
5013 if test "$enable_coverage" = yes; then
5014 if test "$GCC" = yes; then
5015 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
5017 as_fn_error $? "--enable-coverage is supported only when using GCC" "$LINENO" 5
5021 # enable profiling if --enable-profiling
5022 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
5023 if test "$GCC" = yes; then
5025 $as_echo "#define PROFILE_PID_DIR 1" >>confdefs.h
5027 CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
5029 as_fn_error $? "--enable-profiling is supported only when using GCC" "$LINENO" 5
5033 # We already have this in Makefile.win32, but configure needs it too
5034 if test "$PORTNAME" = "win32"; then
5035 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
5038 # Now that we're done automatically adding stuff to CFLAGS, put back the
5039 # user-specified flags (if any) at the end. This lets users override
5040 # the automatic additions.
5041 CFLAGS="$CFLAGS $user_CFLAGS"
5043 # Check if the compiler still works with the final flag settings
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler still works" >&5
5045 $as_echo_n "checking whether the C compiler still works... " >&6; }
5046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5047 /* end confdefs.h. */
5057 if ac_fn_c_try_link "$LINENO"; then :
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5059 $as_echo "yes" >&6; }
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5062 $as_echo "no" >&6; }
5063 as_fn_error $? "cannot proceed" "$LINENO" 5
5065 rm -f core conftest.err conftest.$ac_objext \
5066 conftest$ac_exeext conftest.$ac_ext
5068 # Defend against gcc -ffast-math
5069 if test "$GCC" = yes; then
5070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5071 /* end confdefs.h. */
5076 #ifdef __FAST_MATH__
5083 if ac_fn_c_try_compile "$LINENO"; then :
5086 as_fn_error $? "do not put -ffast-math in CFLAGS" "$LINENO" 5
5088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5092 ac_cpp='$CPP $CPPFLAGS'
5093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5097 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5098 # On Suns, sometimes $CPP names a directory.
5099 if test -n "$CPP" && test -d "$CPP"; then
5102 if test -z "$CPP"; then
5103 if ${ac_cv_prog_CPP+:} false; then :
5104 $as_echo_n "(cached) " >&6
5106 # Double quotes because CPP needs to be expanded
5107 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5110 for ac_c_preproc_warn_flag in '' yes
5112 # Use a header file that comes with gcc, so configuring glibc
5113 # with a fresh cross-compiler works.
5114 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5115 # <limits.h> exists even on freestanding compilers.
5116 # On the NeXT, cc -E runs the code through the compiler's parser,
5117 # not just through cpp. "Syntax error" is here to catch this case.
5118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5119 /* end confdefs.h. */
5121 # include <limits.h>
5123 # include <assert.h>
5127 if ac_fn_c_try_cpp "$LINENO"; then :
5130 # Broken: fails on valid input.
5133 rm -f conftest.err conftest.i conftest.$ac_ext
5135 # OK, works on sane cases. Now check whether nonexistent headers
5136 # can be detected and how.
5137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5138 /* end confdefs.h. */
5139 #include <ac_nonexistent.h>
5141 if ac_fn_c_try_cpp "$LINENO"; then :
5142 # Broken: success on invalid input.
5145 # Passes both tests.
5149 rm -f conftest.err conftest.i conftest.$ac_ext
5152 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5153 rm -f conftest.i conftest.err conftest.$ac_ext
5154 if $ac_preproc_ok; then :
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5167 $as_echo "$CPP" >&6; }
5169 for ac_c_preproc_warn_flag in '' yes
5171 # Use a header file that comes with gcc, so configuring glibc
5172 # with a fresh cross-compiler works.
5173 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5174 # <limits.h> exists even on freestanding compilers.
5175 # On the NeXT, cc -E runs the code through the compiler's parser,
5176 # not just through cpp. "Syntax error" is here to catch this case.
5177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5178 /* end confdefs.h. */
5180 # include <limits.h>
5182 # include <assert.h>
5186 if ac_fn_c_try_cpp "$LINENO"; then :
5189 # Broken: fails on valid input.
5192 rm -f conftest.err conftest.i conftest.$ac_ext
5194 # OK, works on sane cases. Now check whether nonexistent headers
5195 # can be detected and how.
5196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5197 /* end confdefs.h. */
5198 #include <ac_nonexistent.h>
5200 if ac_fn_c_try_cpp "$LINENO"; then :
5201 # Broken: success on invalid input.
5204 # Passes both tests.
5208 rm -f conftest.err conftest.i conftest.$ac_ext
5211 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5212 rm -f conftest.i conftest.err conftest.$ac_ext
5213 if $ac_preproc_ok; then :
5216 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5217 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5218 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5219 See \`config.log' for more details" "$LINENO" 5; }
5223 ac_cpp='$CPP $CPPFLAGS'
5224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5232 # Set up TAS assembly code if needed; the template file has now had its
5233 # chance to request this.
5235 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
5238 if test "$need_tas" = yes ; then
5247 # Automatic dependency tracking
5251 # Check whether --enable-depend was given.
5252 if test "${enable_depend+set}" = set; then :
5253 enableval=$enable_depend;
5262 as_fn_error $? "no argument expected for --enable-depend option" "$LINENO" 5
5276 # Enable assert checks
5280 # Check whether --enable-cassert was given.
5281 if test "${enable_cassert+set}" = set; then :
5282 enableval=$enable_cassert;
5286 $as_echo "#define USE_ASSERT_CHECKING 1" >>confdefs.h
5293 as_fn_error $? "no argument expected for --enable-cassert option" "$LINENO" 5
5306 # Include directories
5309 IFS="${IFS}${PATH_SEPARATOR}"
5310 # SRCH_INC comes from the template file
5311 for dir in $with_includes $SRCH_INC; do
5312 if test -d "$dir"; then
5313 INCLUDES="$INCLUDES -I$dir"
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Include directory $dir does not exist." >&5
5316 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
5324 # Library directories
5327 IFS="${IFS}${PATH_SEPARATOR}"
5328 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
5329 for dir in $LIBRARY_DIRS $SRCH_LIB; do
5330 if test -d "$dir"; then
5331 LIBDIRS="$LIBDIRS -L$dir"
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Library directory $dir does not exist." >&5
5334 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
5340 # Enable thread-safe client libraries
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking allow thread-safe client libraries" >&5
5343 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
5346 # Check whether --enable-thread-safety was given.
5347 if test "${enable_thread_safety+set}" = set; then :
5348 enableval=$enable_thread_safety;
5357 as_fn_error $? "no argument expected for --enable-thread-safety option" "$LINENO" 5
5362 enable_thread_safety=yes
5367 if test "$enable_thread_safety" = yes; then
5369 $as_echo "#define ENABLE_THREAD_SAFETY 1" >>confdefs.h
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_thread_safety" >&5
5373 $as_echo "$enable_thread_safety" >&6; }
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with ICU support" >&5
5380 $as_echo_n "checking whether to build with ICU support... " >&6; }
5384 # Check whether --with-icu was given.
5385 if test "${with_icu+set}" = set; then :
5390 $as_echo "#define USE_ICU 1" >>confdefs.h
5397 as_fn_error $? "no argument expected for --with-icu option" "$LINENO" 5
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_icu" >&5
5408 $as_echo "$with_icu" >&6; }
5411 if test "$with_icu" = yes; then
5419 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5420 if test -n "$ac_tool_prefix"; then
5421 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5422 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5424 $as_echo_n "checking for $ac_word... " >&6; }
5425 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5426 $as_echo_n "(cached) " >&6
5430 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5437 test -z "$as_dir" && as_dir=.
5438 for ac_exec_ext in '' $ac_executable_extensions; do
5439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5440 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5451 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5452 if test -n "$PKG_CONFIG"; then
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5454 $as_echo "$PKG_CONFIG" >&6; }
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5457 $as_echo "no" >&6; }
5462 if test -z "$ac_cv_path_PKG_CONFIG"; then
5463 ac_pt_PKG_CONFIG=$PKG_CONFIG
5464 # Extract the first word of "pkg-config", so it can be a program name with args.
5465 set dummy pkg-config; ac_word=$2
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5467 $as_echo_n "checking for $ac_word... " >&6; }
5468 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5469 $as_echo_n "(cached) " >&6
5471 case $ac_pt_PKG_CONFIG in
5473 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5480 test -z "$as_dir" && as_dir=.
5481 for ac_exec_ext in '' $ac_executable_extensions; do
5482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5483 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5494 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5495 if test -n "$ac_pt_PKG_CONFIG"; then
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5497 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5500 $as_echo "no" >&6; }
5503 if test "x$ac_pt_PKG_CONFIG" = x; then
5506 case $cross_compiling:$ac_tool_warned in
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5509 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5510 ac_tool_warned=yes ;;
5512 PKG_CONFIG=$ac_pt_PKG_CONFIG
5515 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5519 if test -n "$PKG_CONFIG"; then
5520 _pkg_min_version=0.9.0
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5522 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5523 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5525 $as_echo "yes" >&6; }
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5528 $as_echo "no" >&6; }
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icu-uc icu-i18n" >&5
5535 $as_echo_n "checking for icu-uc icu-i18n... " >&6; }
5537 if test -n "$ICU_CFLAGS"; then
5538 pkg_cv_ICU_CFLAGS="$ICU_CFLAGS"
5539 elif test -n "$PKG_CONFIG"; then
5540 if test -n "$PKG_CONFIG" && \
5541 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc icu-i18n\""; } >&5
5542 ($PKG_CONFIG --exists --print-errors "icu-uc icu-i18n") 2>&5
5544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5545 test $ac_status = 0; }; then
5546 pkg_cv_ICU_CFLAGS=`$PKG_CONFIG --cflags "icu-uc icu-i18n" 2>/dev/null`
5547 test "x$?" != "x0" && pkg_failed=yes
5554 if test -n "$ICU_LIBS"; then
5555 pkg_cv_ICU_LIBS="$ICU_LIBS"
5556 elif test -n "$PKG_CONFIG"; then
5557 if test -n "$PKG_CONFIG" && \
5558 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc icu-i18n\""; } >&5
5559 ($PKG_CONFIG --exists --print-errors "icu-uc icu-i18n") 2>&5
5561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5562 test $ac_status = 0; }; then
5563 pkg_cv_ICU_LIBS=`$PKG_CONFIG --libs "icu-uc icu-i18n" 2>/dev/null`
5564 test "x$?" != "x0" && pkg_failed=yes
5574 if test $pkg_failed = yes; then
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5576 $as_echo "no" >&6; }
5578 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5579 _pkg_short_errors_supported=yes
5581 _pkg_short_errors_supported=no
5583 if test $_pkg_short_errors_supported = yes; then
5584 ICU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "icu-uc icu-i18n" 2>&1`
5586 ICU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "icu-uc icu-i18n" 2>&1`
5588 # Put the nasty error message in config.log where it belongs
5589 echo "$ICU_PKG_ERRORS" >&5
5591 as_fn_error $? "Package requirements (icu-uc icu-i18n) were not met:
5595 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5596 installed software in a non-standard prefix.
5598 Alternatively, you may set the environment variables ICU_CFLAGS
5599 and ICU_LIBS to avoid the need to call pkg-config.
5600 See the pkg-config man page for more details." "$LINENO" 5
5601 elif test $pkg_failed = untried; then
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5603 $as_echo "no" >&6; }
5604 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5606 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
5607 is in your PATH or set the PKG_CONFIG environment variable to the full
5610 Alternatively, you may set the environment variables ICU_CFLAGS
5611 and ICU_LIBS to avoid the need to call pkg-config.
5612 See the pkg-config man page for more details.
5614 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5615 See \`config.log' for more details" "$LINENO" 5; }
5617 ICU_CFLAGS=$pkg_cv_ICU_CFLAGS
5618 ICU_LIBS=$pkg_cv_ICU_LIBS
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5620 $as_echo "yes" >&6; }
5626 # Optionally build Tcl modules (PL/Tcl)
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with Tcl" >&5
5629 $as_echo_n "checking whether to build with Tcl... " >&6; }
5633 # Check whether --with-tcl was given.
5634 if test "${with_tcl+set}" = set; then :
5644 as_fn_error $? "no argument expected for --with-tcl option" "$LINENO" 5
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcl" >&5
5655 $as_echo "$with_tcl" >&6; }
5658 # We see if the path to the Tcl/Tk configuration scripts is specified.
5659 # This will override the use of tclsh to find the paths to search.
5664 # Check whether --with-tclconfig was given.
5665 if test "${with_tclconfig+set}" = set; then :
5666 withval=$with_tclconfig;
5669 as_fn_error $? "argument required for --with-tclconfig option" "$LINENO" 5
5672 as_fn_error $? "argument required for --with-tclconfig option" "$LINENO" 5
5684 # Optionally build Perl modules (PL/Perl)
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Perl modules" >&5
5687 $as_echo_n "checking whether to build Perl modules... " >&6; }
5691 # Check whether --with-perl was given.
5692 if test "${with_perl+set}" = set; then :
5702 as_fn_error $? "no argument expected for --with-perl option" "$LINENO" 5
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_perl" >&5
5713 $as_echo "$with_perl" >&6; }
5717 # Optionally build Python modules (PL/Python)
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Python modules" >&5
5720 $as_echo_n "checking whether to build Python modules... " >&6; }
5724 # Check whether --with-python was given.
5725 if test "${with_python+set}" = set; then :
5726 withval=$with_python;
5735 as_fn_error $? "no argument expected for --with-python option" "$LINENO" 5
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
5746 $as_echo "$with_python" >&6; }
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with GSSAPI support" >&5
5753 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
5757 # Check whether --with-gssapi was given.
5758 if test "${with_gssapi+set}" = set; then :
5759 withval=$with_gssapi;
5764 $as_echo "#define ENABLE_GSS 1" >>confdefs.h
5766 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5773 as_fn_error $? "no argument expected for --with-gssapi option" "$LINENO" 5
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_gssapi" >&5
5784 $as_echo "$with_gssapi" >&6; }
5791 # Kerberos configuration parameters
5796 # Check whether --with-krb-srvnam was given.
5797 if test "${with_krb_srvnam+set}" = set; then :
5798 withval=$with_krb_srvnam;
5801 as_fn_error $? "argument required for --with-krb-srvnam option" "$LINENO" 5
5804 as_fn_error $? "argument required for --with-krb-srvnam option" "$LINENO" 5
5812 with_krb_srvnam="postgres"
5817 cat >>confdefs.h <<_ACEOF
5818 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with PAM support" >&5
5827 $as_echo_n "checking whether to build with PAM support... " >&6; }
5831 # Check whether --with-pam was given.
5832 if test "${with_pam+set}" = set; then :
5837 $as_echo "#define USE_PAM 1" >>confdefs.h
5844 as_fn_error $? "no argument expected for --with-pam option" "$LINENO" 5
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pam" >&5
5855 $as_echo "$with_pam" >&6; }
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with BSD Authentication support" >&5
5862 $as_echo_n "checking whether to build with BSD Authentication support... " >&6; }
5866 # Check whether --with-bsd-auth was given.
5867 if test "${with_bsd_auth+set}" = set; then :
5868 withval=$with_bsd_auth;
5872 $as_echo "#define USE_BSD_AUTH 1" >>confdefs.h
5879 as_fn_error $? "no argument expected for --with-bsd-auth option" "$LINENO" 5
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_bsd_auth" >&5
5890 $as_echo "$with_bsd_auth" >&6; }
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with LDAP support" >&5
5897 $as_echo_n "checking whether to build with LDAP support... " >&6; }
5901 # Check whether --with-ldap was given.
5902 if test "${with_ldap+set}" = set; then :
5907 $as_echo "#define USE_LDAP 1" >>confdefs.h
5914 as_fn_error $? "no argument expected for --with-ldap option" "$LINENO" 5
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ldap" >&5
5925 $as_echo "$with_ldap" >&6; }
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with Bonjour support" >&5
5932 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
5936 # Check whether --with-bonjour was given.
5937 if test "${with_bonjour+set}" = set; then :
5938 withval=$with_bonjour;
5942 $as_echo "#define USE_BONJOUR 1" >>confdefs.h
5949 as_fn_error $? "no argument expected for --with-bonjour option" "$LINENO" 5
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_bonjour" >&5
5960 $as_echo "$with_bonjour" >&6; }
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with OpenSSL support" >&5
5967 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
5971 # Check whether --with-openssl was given.
5972 if test "${with_openssl+set}" = set; then :
5973 withval=$with_openssl;
5977 $as_echo "#define USE_OPENSSL 1" >>confdefs.h
5984 as_fn_error $? "no argument expected for --with-openssl option" "$LINENO" 5
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_openssl" >&5
5995 $as_echo "$with_openssl" >&6; }
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with SELinux support" >&5
6002 $as_echo_n "checking whether to build with SELinux support... " >&6; }
6006 # Check whether --with-selinux was given.
6007 if test "${with_selinux+set}" = set; then :
6008 withval=$with_selinux;
6017 as_fn_error $? "no argument expected for --with-selinux option" "$LINENO" 5
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_selinux" >&5
6029 $as_echo "$with_selinux" >&6; }
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with systemd support" >&5
6035 $as_echo_n "checking whether to build with systemd support... " >&6; }
6039 # Check whether --with-systemd was given.
6040 if test "${with_systemd+set}" = set; then :
6041 withval=$with_systemd;
6045 $as_echo "#define USE_SYSTEMD 1" >>confdefs.h
6052 as_fn_error $? "no argument expected for --with-systemd option" "$LINENO" 5
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemd" >&5
6064 $as_echo "$with_systemd" >&6; }
6072 # Check whether --with-readline was given.
6073 if test "${with_readline+set}" = set; then :
6074 withval=$with_readline;
6083 as_fn_error $? "no argument expected for --with-readline option" "$LINENO" 5
6093 # readline on MinGW has problems with backslashes in psql and other bugs.
6094 # This is particularly a problem with non-US code pages.
6095 # Therefore disable its use until we understand the cause. 2004-07-20
6096 if test "$PORTNAME" = "win32"; then
6097 if test "$with_readline" = yes; then
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Readline does not work on MinGW --- disabling" >&5
6099 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
6111 # Check whether --with-libedit-preferred was given.
6112 if test "${with_libedit_preferred+set}" = set; then :
6113 withval=$with_libedit_preferred;
6122 as_fn_error $? "no argument expected for --with-libedit-preferred option" "$LINENO" 5
6127 with_libedit_preferred=no
6137 # There are at least three UUID libraries in common use: the FreeBSD/NetBSD
6138 # library, the e2fsprogs libuuid (now part of util-linux-ng), and the OSSP
6139 # UUID library. More than one of these might be present on a given platform,
6140 # so we make the user say which one she wants.
6145 # Check whether --with-uuid was given.
6146 if test "${with_uuid+set}" = set; then :
6150 as_fn_error $? "argument required for --with-uuid option" "$LINENO" 5
6153 as_fn_error $? "argument required for --with-uuid option" "$LINENO" 5
6163 if test x"$with_uuid" = x"" ; then
6169 # Check whether --with-ossp-uuid was given.
6170 if test "${with_ossp_uuid+set}" = set; then :
6171 withval=$with_ossp_uuid;
6180 as_fn_error $? "no argument expected for --with-ossp-uuid option" "$LINENO" 5
6190 if test "$with_ossp_uuid" = yes ; then
6194 if test "$with_uuid" = bsd ; then
6196 $as_echo "#define HAVE_UUID_BSD 1" >>confdefs.h
6198 UUID_EXTRA_OBJS="md5.o sha1.o"
6199 elif test "$with_uuid" = e2fs ; then
6201 $as_echo "#define HAVE_UUID_E2FS 1" >>confdefs.h
6203 UUID_EXTRA_OBJS="md5.o sha1.o"
6204 elif test "$with_uuid" = ossp ; then
6206 $as_echo "#define HAVE_UUID_OSSP 1" >>confdefs.h
6209 elif test "$with_uuid" = no ; then
6212 as_fn_error $? "--with-uuid must specify one of bsd, e2fs, or ossp" "$LINENO" 5
6224 # Check whether --with-libxml was given.
6225 if test "${with_libxml+set}" = set; then :
6226 withval=$with_libxml;
6230 $as_echo "#define USE_LIBXML 1" >>confdefs.h
6237 as_fn_error $? "no argument expected for --with-libxml option" "$LINENO" 5
6248 if test "$with_libxml" = yes ; then
6249 if test -z "$XML2_CONFIG"; then
6250 for ac_prog in xml2-config
6252 # Extract the first word of "$ac_prog", so it can be a program name with args.
6253 set dummy $ac_prog; ac_word=$2
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6255 $as_echo_n "checking for $ac_word... " >&6; }
6256 if ${ac_cv_path_XML2_CONFIG+:} false; then :
6257 $as_echo_n "(cached) " >&6
6259 case $XML2_CONFIG in
6261 ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
6264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6268 test -z "$as_dir" && as_dir=.
6269 for ac_exec_ext in '' $ac_executable_extensions; do
6270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6271 ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6282 XML2_CONFIG=$ac_cv_path_XML2_CONFIG
6283 if test -n "$XML2_CONFIG"; then
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
6285 $as_echo "$XML2_CONFIG" >&6; }
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6288 $as_echo "no" >&6; }
6292 test -n "$XML2_CONFIG" && break
6296 # Report the value of XML2_CONFIG in configure's output in all cases.
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML2_CONFIG" >&5
6298 $as_echo_n "checking for XML2_CONFIG... " >&6; }
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
6300 $as_echo "$XML2_CONFIG" >&6; }
6303 if test -n "$XML2_CONFIG"; then
6304 for pgac_option in `$XML2_CONFIG --cflags`; do
6305 case $pgac_option in
6306 -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
6309 for pgac_option in `$XML2_CONFIG --libs`; do
6310 case $pgac_option in
6311 -L*) LDFLAGS="$LDFLAGS $pgac_option";;
6325 # Check whether --with-libxslt was given.
6326 if test "${with_libxslt+set}" = set; then :
6327 withval=$with_libxslt;
6331 $as_echo "#define USE_LIBXSLT 1" >>confdefs.h
6338 as_fn_error $? "no argument expected for --with-libxslt option" "$LINENO" 5
6358 # Check whether --with-system-tzdata was given.
6359 if test "${with_system_tzdata+set}" = set; then :
6360 withval=$with_system_tzdata;
6363 as_fn_error $? "argument required for --with-system-tzdata option" "$LINENO" 5
6366 as_fn_error $? "argument required for --with-system-tzdata option" "$LINENO" 5
6384 # Check whether --with-zlib was given.
6385 if test "${with_zlib+set}" = set; then :
6395 as_fn_error $? "no argument expected for --with-zlib option" "$LINENO" 5
6411 # Assume system is ELF if it predefines __ELF__ as 1,
6412 # otherwise believe host_os based default.
6414 freebsd1*|freebsd2*) elf=no;;
6415 freebsd3*|freebsd4*) elf=yes;;
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6420 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6421 if ${ac_cv_path_GREP+:} false; then :
6422 $as_echo_n "(cached) " >&6
6424 if test -z "$GREP"; then
6425 ac_path_GREP_found=false
6426 # Loop through the user's path and test for each of PROGNAME-LIST
6427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6428 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6431 test -z "$as_dir" && as_dir=.
6432 for ac_prog in grep ggrep; do
6433 for ac_exec_ext in '' $ac_executable_extensions; do
6434 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6435 as_fn_executable_p "$ac_path_GREP" || continue
6436 # Check for GNU ac_path_GREP and select it if it is found.
6437 # Check for GNU $ac_path_GREP
6438 case `"$ac_path_GREP" --version 2>&1` in
6440 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6443 $as_echo_n 0123456789 >"conftest.in"
6446 cat "conftest.in" "conftest.in" >"conftest.tmp"
6447 mv "conftest.tmp" "conftest.in"
6448 cp "conftest.in" "conftest.nl"
6449 $as_echo 'GREP' >> "conftest.nl"
6450 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6451 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6452 as_fn_arith $ac_count + 1 && ac_count=$as_val
6453 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6454 # Best one so far, save it but keep looking for a better one
6455 ac_cv_path_GREP="$ac_path_GREP"
6456 ac_path_GREP_max=$ac_count
6458 # 10*(2^10) chars as input seems more than enough
6459 test $ac_count -gt 10 && break
6461 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6464 $ac_path_GREP_found && break 3
6469 if test -z "$ac_cv_path_GREP"; then
6470 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6473 ac_cv_path_GREP=$GREP
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6478 $as_echo "$ac_cv_path_GREP" >&6; }
6479 GREP="$ac_cv_path_GREP"
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6483 $as_echo_n "checking for egrep... " >&6; }
6484 if ${ac_cv_path_EGREP+:} false; then :
6485 $as_echo_n "(cached) " >&6
6487 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6488 then ac_cv_path_EGREP="$GREP -E"
6490 if test -z "$EGREP"; then
6491 ac_path_EGREP_found=false
6492 # Loop through the user's path and test for each of PROGNAME-LIST
6493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6494 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6497 test -z "$as_dir" && as_dir=.
6498 for ac_prog in egrep; do
6499 for ac_exec_ext in '' $ac_executable_extensions; do
6500 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6501 as_fn_executable_p "$ac_path_EGREP" || continue
6502 # Check for GNU ac_path_EGREP and select it if it is found.
6503 # Check for GNU $ac_path_EGREP
6504 case `"$ac_path_EGREP" --version 2>&1` in
6506 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6509 $as_echo_n 0123456789 >"conftest.in"
6512 cat "conftest.in" "conftest.in" >"conftest.tmp"
6513 mv "conftest.tmp" "conftest.in"
6514 cp "conftest.in" "conftest.nl"
6515 $as_echo 'EGREP' >> "conftest.nl"
6516 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6517 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6518 as_fn_arith $ac_count + 1 && ac_count=$as_val
6519 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6520 # Best one so far, save it but keep looking for a better one
6521 ac_cv_path_EGREP="$ac_path_EGREP"
6522 ac_path_EGREP_max=$ac_count
6524 # 10*(2^10) chars as input seems more than enough
6525 test $ac_count -gt 10 && break
6527 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6530 $ac_path_EGREP_found && break 3
6535 if test -z "$ac_cv_path_EGREP"; then
6536 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6539 ac_cv_path_EGREP=$EGREP
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6545 $as_echo "$ac_cv_path_EGREP" >&6; }
6546 EGREP="$ac_cv_path_EGREP"
6549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6550 /* end confdefs.h. */
6556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6557 $EGREP "yes" >/dev/null 2>&1; then :
6560 if test "X$elf" = "Xyes" ; then
6574 CPPFLAGS="$CPPFLAGS $INCLUDES"
6575 LDFLAGS="$LDFLAGS $LIBDIRS"
6581 # Check whether --with-gnu-ld was given.
6582 if test "${with_gnu_ld+set}" = set; then :
6583 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6589 if test "$GCC" = yes; then
6590 # Check if gcc -print-prog-name=ld gives a path.
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6592 $as_echo_n "checking for ld used by GCC... " >&6; }
6595 # gcc leaves a trailing carriage return which upsets mingw
6596 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6598 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6601 # Accept absolute paths.
6602 [\\/]* | [A-Za-z]:[\\/]*)
6603 re_direlt='/[^/][^/]*/\.\./'
6604 # Canonicalize the path of ld
6605 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6606 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6607 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6609 test -z "$LD" && LD="$ac_prog"
6612 # If it fails, then pretend we aren't using GCC.
6616 # If it is relative, then search for the first ld in PATH.
6620 elif test "$with_gnu_ld" = yes; then
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6622 $as_echo_n "checking for GNU ld... " >&6; }
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6625 $as_echo_n "checking for non-GNU ld... " >&6; }
6627 if ${ac_cv_path_LD+:} false; then :
6628 $as_echo_n "(cached) " >&6
6630 if test -z "$LD"; then
6631 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6632 for ac_dir in $PATH; do
6633 test -z "$ac_dir" && ac_dir=.
6634 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6635 ac_cv_path_LD="$ac_dir/$ac_prog"
6636 # Check to see if the program is GNU ld. I'd rather use --version,
6637 # but apparently some GNU ld's only accept -v.
6638 # Break only if it was the GNU/non-GNU ld that we prefer.
6639 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6640 test "$with_gnu_ld" != no && break
6642 test "$with_gnu_ld" != yes && break
6648 ac_cv_path_LD="$LD" # Let the user override the test with a path.
6653 if test -n "$LD"; then
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6655 $as_echo "$LD" >&6; }
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6658 $as_echo "no" >&6; }
6660 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6662 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6663 if ${ac_cv_prog_gnu_ld+:} false; then :
6664 $as_echo_n "(cached) " >&6
6666 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6667 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6668 ac_cv_prog_gnu_ld=yes
6670 ac_cv_prog_gnu_ld=no
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gnu_ld" >&5
6674 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
6675 with_gnu_ld=$ac_cv_prog_gnu_ld
6680 if test -n "$ac_tool_prefix"; then
6681 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6682 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6684 $as_echo_n "checking for $ac_word... " >&6; }
6685 if ${ac_cv_prog_RANLIB+:} false; then :
6686 $as_echo_n "(cached) " >&6
6688 if test -n "$RANLIB"; then
6689 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6695 test -z "$as_dir" && as_dir=.
6696 for ac_exec_ext in '' $ac_executable_extensions; do
6697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6698 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6708 RANLIB=$ac_cv_prog_RANLIB
6709 if test -n "$RANLIB"; then
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6711 $as_echo "$RANLIB" >&6; }
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6714 $as_echo "no" >&6; }
6719 if test -z "$ac_cv_prog_RANLIB"; then
6720 ac_ct_RANLIB=$RANLIB
6721 # Extract the first word of "ranlib", so it can be a program name with args.
6722 set dummy ranlib; ac_word=$2
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6724 $as_echo_n "checking for $ac_word... " >&6; }
6725 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6726 $as_echo_n "(cached) " >&6
6728 if test -n "$ac_ct_RANLIB"; then
6729 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6735 test -z "$as_dir" && as_dir=.
6736 for ac_exec_ext in '' $ac_executable_extensions; do
6737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6738 ac_cv_prog_ac_ct_RANLIB="ranlib"
6739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6748 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6749 if test -n "$ac_ct_RANLIB"; then
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6751 $as_echo "$ac_ct_RANLIB" >&6; }
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6754 $as_echo "no" >&6; }
6757 if test "x$ac_ct_RANLIB" = x; then
6760 case $cross_compiling:$ac_tool_warned in
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6763 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6764 ac_tool_warned=yes ;;
6766 RANLIB=$ac_ct_RANLIB
6769 RANLIB="$ac_cv_prog_RANLIB"
6773 if test -n "$ac_tool_prefix"; then
6774 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6775 set dummy ${ac_tool_prefix}strip; ac_word=$2
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6777 $as_echo_n "checking for $ac_word... " >&6; }
6778 if ${ac_cv_prog_STRIP+:} false; then :
6779 $as_echo_n "(cached) " >&6
6781 if test -n "$STRIP"; then
6782 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788 test -z "$as_dir" && as_dir=.
6789 for ac_exec_ext in '' $ac_executable_extensions; do
6790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6791 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6801 STRIP=$ac_cv_prog_STRIP
6802 if test -n "$STRIP"; then
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6804 $as_echo "$STRIP" >&6; }
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6807 $as_echo "no" >&6; }
6812 if test -z "$ac_cv_prog_STRIP"; then
6814 # Extract the first word of "strip", so it can be a program name with args.
6815 set dummy strip; ac_word=$2
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6817 $as_echo_n "checking for $ac_word... " >&6; }
6818 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6819 $as_echo_n "(cached) " >&6
6821 if test -n "$ac_ct_STRIP"; then
6822 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828 test -z "$as_dir" && as_dir=.
6829 for ac_exec_ext in '' $ac_executable_extensions; do
6830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6831 ac_cv_prog_ac_ct_STRIP="strip"
6832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6841 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6842 if test -n "$ac_ct_STRIP"; then
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6844 $as_echo "$ac_ct_STRIP" >&6; }
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6847 $as_echo "no" >&6; }
6850 if test "x$ac_ct_STRIP" = x; then
6853 case $cross_compiling:$ac_tool_warned in
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6857 ac_tool_warned=yes ;;
6862 STRIP="$ac_cv_prog_STRIP"
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is possible to strip libraries" >&5
6867 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
6868 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6869 STRIP_STATIC_LIB="$STRIP -x"
6870 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6872 $as_echo "yes" >&6; }
6877 STRIP_STATIC_LIB=$STRIP
6878 STRIP_SHARED_LIB=$STRIP
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6880 $as_echo "yes" >&6; }
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6886 $as_echo "no" >&6; }
6893 if test -n "$ac_tool_prefix"; then
6894 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6895 set dummy ${ac_tool_prefix}ar; ac_word=$2
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6897 $as_echo_n "checking for $ac_word... " >&6; }
6898 if ${ac_cv_prog_AR+:} false; then :
6899 $as_echo_n "(cached) " >&6
6901 if test -n "$AR"; then
6902 ac_cv_prog_AR="$AR" # Let the user override the test.
6904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908 test -z "$as_dir" && as_dir=.
6909 for ac_exec_ext in '' $ac_executable_extensions; do
6910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6911 ac_cv_prog_AR="${ac_tool_prefix}ar"
6912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6922 if test -n "$AR"; then
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6924 $as_echo "$AR" >&6; }
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6927 $as_echo "no" >&6; }
6932 if test -z "$ac_cv_prog_AR"; then
6934 # Extract the first word of "ar", so it can be a program name with args.
6935 set dummy ar; ac_word=$2
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6937 $as_echo_n "checking for $ac_word... " >&6; }
6938 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6939 $as_echo_n "(cached) " >&6
6941 if test -n "$ac_ct_AR"; then
6942 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6948 test -z "$as_dir" && as_dir=.
6949 for ac_exec_ext in '' $ac_executable_extensions; do
6950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6951 ac_cv_prog_ac_ct_AR="ar"
6952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6961 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6962 if test -n "$ac_ct_AR"; then
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6964 $as_echo "$ac_ct_AR" >&6; }
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6967 $as_echo "no" >&6; }
6970 if test "x$ac_ct_AR" = x; then
6973 case $cross_compiling:$ac_tool_warned in
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6976 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6977 ac_tool_warned=yes ;;
6985 if test "$PORTNAME" = "win32"; then
6986 if test -n "$ac_tool_prefix"; then
6987 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6988 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6990 $as_echo_n "checking for $ac_word... " >&6; }
6991 if ${ac_cv_prog_DLLTOOL+:} false; then :
6992 $as_echo_n "(cached) " >&6
6994 if test -n "$DLLTOOL"; then
6995 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7001 test -z "$as_dir" && as_dir=.
7002 for ac_exec_ext in '' $ac_executable_extensions; do
7003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7004 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7014 DLLTOOL=$ac_cv_prog_DLLTOOL
7015 if test -n "$DLLTOOL"; then
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7017 $as_echo "$DLLTOOL" >&6; }
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7020 $as_echo "no" >&6; }
7025 if test -z "$ac_cv_prog_DLLTOOL"; then
7026 ac_ct_DLLTOOL=$DLLTOOL
7027 # Extract the first word of "dlltool", so it can be a program name with args.
7028 set dummy dlltool; ac_word=$2
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7030 $as_echo_n "checking for $ac_word... " >&6; }
7031 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7032 $as_echo_n "(cached) " >&6
7034 if test -n "$ac_ct_DLLTOOL"; then
7035 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041 test -z "$as_dir" && as_dir=.
7042 for ac_exec_ext in '' $ac_executable_extensions; do
7043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7044 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7054 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7055 if test -n "$ac_ct_DLLTOOL"; then
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7057 $as_echo "$ac_ct_DLLTOOL" >&6; }
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7060 $as_echo "no" >&6; }
7063 if test "x$ac_ct_DLLTOOL" = x; then
7066 case $cross_compiling:$ac_tool_warned in
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7070 ac_tool_warned=yes ;;
7072 DLLTOOL=$ac_ct_DLLTOOL
7075 DLLTOOL="$ac_cv_prog_DLLTOOL"
7078 if test -n "$ac_tool_prefix"; then
7079 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
7080 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7082 $as_echo_n "checking for $ac_word... " >&6; }
7083 if ${ac_cv_prog_DLLWRAP+:} false; then :
7084 $as_echo_n "(cached) " >&6
7086 if test -n "$DLLWRAP"; then
7087 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
7089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093 test -z "$as_dir" && as_dir=.
7094 for ac_exec_ext in '' $ac_executable_extensions; do
7095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7096 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
7097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7106 DLLWRAP=$ac_cv_prog_DLLWRAP
7107 if test -n "$DLLWRAP"; then
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
7109 $as_echo "$DLLWRAP" >&6; }
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7112 $as_echo "no" >&6; }
7117 if test -z "$ac_cv_prog_DLLWRAP"; then
7118 ac_ct_DLLWRAP=$DLLWRAP
7119 # Extract the first word of "dllwrap", so it can be a program name with args.
7120 set dummy dllwrap; ac_word=$2
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7122 $as_echo_n "checking for $ac_word... " >&6; }
7123 if ${ac_cv_prog_ac_ct_DLLWRAP+:} false; then :
7124 $as_echo_n "(cached) " >&6
7126 if test -n "$ac_ct_DLLWRAP"; then
7127 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
7129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133 test -z "$as_dir" && as_dir=.
7134 for ac_exec_ext in '' $ac_executable_extensions; do
7135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7136 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
7137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7146 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
7147 if test -n "$ac_ct_DLLWRAP"; then
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
7149 $as_echo "$ac_ct_DLLWRAP" >&6; }
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7152 $as_echo "no" >&6; }
7155 if test "x$ac_ct_DLLWRAP" = x; then
7158 case $cross_compiling:$ac_tool_warned in
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7162 ac_tool_warned=yes ;;
7164 DLLWRAP=$ac_ct_DLLWRAP
7167 DLLWRAP="$ac_cv_prog_DLLWRAP"
7170 if test -n "$ac_tool_prefix"; then
7171 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7172 set dummy ${ac_tool_prefix}windres; ac_word=$2
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7174 $as_echo_n "checking for $ac_word... " >&6; }
7175 if ${ac_cv_prog_WINDRES+:} false; then :
7176 $as_echo_n "(cached) " >&6
7178 if test -n "$WINDRES"; then
7179 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7185 test -z "$as_dir" && as_dir=.
7186 for ac_exec_ext in '' $ac_executable_extensions; do
7187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7188 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
7189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7198 WINDRES=$ac_cv_prog_WINDRES
7199 if test -n "$WINDRES"; then
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7201 $as_echo "$WINDRES" >&6; }
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7204 $as_echo "no" >&6; }
7209 if test -z "$ac_cv_prog_WINDRES"; then
7210 ac_ct_WINDRES=$WINDRES
7211 # Extract the first word of "windres", so it can be a program name with args.
7212 set dummy windres; ac_word=$2
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7214 $as_echo_n "checking for $ac_word... " >&6; }
7215 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
7216 $as_echo_n "(cached) " >&6
7218 if test -n "$ac_ct_WINDRES"; then
7219 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
7221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7225 test -z "$as_dir" && as_dir=.
7226 for ac_exec_ext in '' $ac_executable_extensions; do
7227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7228 ac_cv_prog_ac_ct_WINDRES="windres"
7229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7238 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
7239 if test -n "$ac_ct_WINDRES"; then
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7241 $as_echo "$ac_ct_WINDRES" >&6; }
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7244 $as_echo "no" >&6; }
7247 if test "x$ac_ct_WINDRES" = x; then
7250 case $cross_compiling:$ac_tool_warned in
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7254 ac_tool_warned=yes ;;
7256 WINDRES=$ac_ct_WINDRES
7259 WINDRES="$ac_cv_prog_WINDRES"
7264 # Find a good install program. We prefer a C program (faster),
7265 # so one script is as good as another. But avoid the broken or
7266 # incompatible versions:
7267 # SysV /etc/install, /usr/sbin/install
7268 # SunOS /usr/etc/install
7269 # IRIX /sbin/install
7271 # AmigaOS /C/install, which installs bootblocks on floppy discs
7272 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7273 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7274 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7275 # OS/2's system install, which has a completely different semantic
7276 # ./install, which can be erroneously created by make from ./install.sh.
7277 # Reject install programs that cannot install multiple files.
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7279 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7280 if test -z "$INSTALL"; then
7281 if ${ac_cv_path_install+:} false; then :
7282 $as_echo_n "(cached) " >&6
7284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7288 test -z "$as_dir" && as_dir=.
7289 # Account for people who put trailing slashes in PATH elements.
7290 case $as_dir/ in #((
7291 ./ | .// | /[cC]/* | \
7292 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7293 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
7296 # OSF1 and SCO ODT 3.0 have their own names for install.
7297 # Don't use installbsd from OSF since it installs stuff as root
7299 for ac_prog in ginstall scoinst install; do
7300 for ac_exec_ext in '' $ac_executable_extensions; do
7301 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7302 if test $ac_prog = install &&
7303 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7304 # AIX install. It has an incompatible calling convention.
7306 elif test $ac_prog = install &&
7307 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7308 # program-specific install script used by HP pwplus--don't use.
7311 rm -rf conftest.one conftest.two conftest.dir
7312 echo one > conftest.one
7313 echo two > conftest.two
7315 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
7316 test -s conftest.one && test -s conftest.two &&
7317 test -s conftest.dir/conftest.one &&
7318 test -s conftest.dir/conftest.two
7320 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7333 rm -rf conftest.one conftest.two conftest.dir
7336 if test "${ac_cv_path_install+set}" = set; then
7337 INSTALL=$ac_cv_path_install
7339 # As a last resort, use the slow shell script. Don't cache a
7340 # value for INSTALL within a source directory, because that will
7341 # break other packages using the cache if that directory is
7342 # removed, or if the value is a relative name.
7343 INSTALL=$ac_install_sh
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7347 $as_echo "$INSTALL" >&6; }
7349 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7350 # It thinks the first close brace ends the variable substitution.
7351 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7353 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7355 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7357 # When Autoconf chooses install-sh as install program it tries to generate
7358 # a relative path to it in each makefile where it substitutes it. This clashes
7359 # with our Makefile.global concept. This workaround helps.
7361 *install-sh*) install_bin='';;
7362 *) install_bin=$INSTALL;;
7366 if test -z "$TAR"; then
7369 # Extract the first word of "$ac_prog", so it can be a program name with args.
7370 set dummy $ac_prog; ac_word=$2
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7372 $as_echo_n "checking for $ac_word... " >&6; }
7373 if ${ac_cv_path_TAR+:} false; then :
7374 $as_echo_n "(cached) " >&6
7378 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7385 test -z "$as_dir" && as_dir=.
7386 for ac_exec_ext in '' $ac_executable_extensions; do
7387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7388 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7400 if test -n "$TAR"; then
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
7402 $as_echo "$TAR" >&6; }
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7405 $as_echo "no" >&6; }
7409 test -n "$TAR" && break
7413 # Report the value of TAR in configure's output in all cases.
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
7415 $as_echo_n "checking for TAR... " >&6; }
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
7417 $as_echo "$TAR" >&6; }
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7421 $as_echo_n "checking whether ln -s works... " >&6; }
7423 if test "$LN_S" = "ln -s"; then
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7425 $as_echo "yes" >&6; }
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7428 $as_echo "no, using $LN_S" >&6; }
7431 for ac_prog in gawk mawk nawk awk
7433 # Extract the first word of "$ac_prog", so it can be a program name with args.
7434 set dummy $ac_prog; ac_word=$2
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7436 $as_echo_n "checking for $ac_word... " >&6; }
7437 if ${ac_cv_prog_AWK+:} false; then :
7438 $as_echo_n "(cached) " >&6
7440 if test -n "$AWK"; then
7441 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7447 test -z "$as_dir" && as_dir=.
7448 for ac_exec_ext in '' $ac_executable_extensions; do
7449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7450 ac_cv_prog_AWK="$ac_prog"
7451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7461 if test -n "$AWK"; then
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7463 $as_echo "$AWK" >&6; }
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7466 $as_echo "no" >&6; }
7470 test -n "$AWK" && break
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
7474 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7475 if test -z "$MKDIR_P"; then
7476 if ${ac_cv_path_mkdir+:} false; then :
7477 $as_echo_n "(cached) " >&6
7479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7480 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
7483 test -z "$as_dir" && as_dir=.
7484 for ac_prog in mkdir gmkdir; do
7485 for ac_exec_ext in '' $ac_executable_extensions; do
7486 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
7487 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7488 'mkdir (GNU coreutils) '* | \
7489 'mkdir (coreutils) '* | \
7490 'mkdir (fileutils) '4.1*)
7491 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
7501 test -d ./--version && rmdir ./--version
7502 if test "${ac_cv_path_mkdir+set}" = set; then
7503 MKDIR_P="$ac_cv_path_mkdir -p"
7505 # As a last resort, use the slow shell script. Don't cache a
7506 # value for MKDIR_P within a source directory, because that will
7507 # break other packages using the cache if that directory is
7508 # removed, or if the value is a relative name.
7509 MKDIR_P="$ac_install_sh -d"
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7513 $as_echo "$MKDIR_P" >&6; }
7515 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
7516 # a relative path to it in each makefile where it substitutes it. This clashes
7517 # with our Makefile.global concept. This workaround helps.
7519 *install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
7522 if test -z "$BISON"; then
7523 for ac_prog in bison
7525 # Extract the first word of "$ac_prog", so it can be a program name with args.
7526 set dummy $ac_prog; ac_word=$2
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7528 $as_echo_n "checking for $ac_word... " >&6; }
7529 if ${ac_cv_path_BISON+:} false; then :
7530 $as_echo_n "(cached) " >&6
7534 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
7537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7541 test -z "$as_dir" && as_dir=.
7542 for ac_exec_ext in '' $ac_executable_extensions; do
7543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7544 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
7545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7555 BISON=$ac_cv_path_BISON
7556 if test -n "$BISON"; then
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7558 $as_echo "$BISON" >&6; }
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7561 $as_echo "no" >&6; }
7565 test -n "$BISON" && break
7569 # Report the value of BISON in configure's output in all cases.
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BISON" >&5
7571 $as_echo_n "checking for BISON... " >&6; }
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7573 $as_echo "$BISON" >&6; }
7577 if test "$BISON"; then
7578 pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: using $pgac_bison_version" >&5
7580 $as_echo "$as_me: using $pgac_bison_version" >&6;}
7581 if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7584 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7585 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
7586 $as_echo "$as_me: WARNING:
7587 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7588 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
7591 # Bison >=3.0 issues warnings about %name-prefix="base_yy", instead
7592 # of the now preferred %name-prefix "base_yy", but the latter
7593 # doesn't work with Bison 2.3 or less. So for now we silence the
7594 # deprecation warnings.
7595 if echo "$pgac_bison_version" | $AWK '{ if ($4 >= 3) exit 0; else exit 1;}'
7597 BISONFLAGS="$BISONFLAGS -Wno-deprecated"
7601 if test -z "$BISON"; then
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7603 *** Without Bison you will not be able to build PostgreSQL from Git nor
7604 *** change any of the parser definition files. You can obtain Bison from
7605 *** a GNU mirror site. (If you are using the official distribution of
7606 *** PostgreSQL then you do not need to worry about this, because the Bison
7607 *** output is pre-generated.)" >&5
7608 $as_echo "$as_me: WARNING:
7609 *** Without Bison you will not be able to build PostgreSQL from Git nor
7610 *** change any of the parser definition files. You can obtain Bison from
7611 *** a GNU mirror site. (If you are using the official distribution of
7612 *** PostgreSQL then you do not need to worry about this, because the Bison
7613 *** output is pre-generated.)" >&2;}
7615 # We don't need AC_SUBST(BISON) because PGAC_PATH_PROGS did it
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex" >&5
7619 $as_echo_n "checking for flex... " >&6; }
7620 if ${pgac_cv_path_flex+:} false; then :
7621 $as_echo_n "(cached) " >&6
7623 # Let the user override the test
7624 if test -n "$FLEX"; then
7625 pgac_cv_path_flex=$FLEX
7629 for pgac_dir in $PATH; do
7631 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
7634 for pgac_prog in flex lex; do
7635 pgac_candidate="$pgac_dir/$pgac_prog"
7636 if test -f "$pgac_candidate" \
7637 && $pgac_candidate --version </dev/null >/dev/null 2>&1
7639 echo '%%' > conftest.l
7640 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
7641 pgac_flex_version=`$pgac_candidate --version 2>/dev/null`
7642 if echo "$pgac_flex_version" | sed 's/[.a-z]/ /g' | $AWK '{ if ($1 == 2 && ($2 > 5 || ($2 == 5 && $3 >= 31))) exit 0; else exit 1;}'
7644 pgac_cv_path_flex=$pgac_candidate
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7648 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7649 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
7650 $as_echo "$as_me: WARNING:
7651 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7652 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
7658 rm -f conftest.l lex.yy.c
7659 : ${pgac_cv_path_flex=no}
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_path_flex" >&5
7664 $as_echo "$pgac_cv_path_flex" >&6; }
7665 if test x"$pgac_cv_path_flex" = x"no"; then
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7667 *** Without Flex you will not be able to build PostgreSQL from Git nor
7668 *** change any of the scanner definition files. You can obtain Flex from
7669 *** a GNU mirror site. (If you are using the official distribution of
7670 *** PostgreSQL then you do not need to worry about this because the Flex
7671 *** output is pre-generated.)" >&5
7672 $as_echo "$as_me: WARNING:
7673 *** Without Flex you will not be able to build PostgreSQL from Git nor
7674 *** change any of the scanner definition files. You can obtain Flex from
7675 *** a GNU mirror site. (If you are using the official distribution of
7676 *** PostgreSQL then you do not need to worry about this because the Flex
7677 *** output is pre-generated.)" >&2;}
7681 FLEX=$pgac_cv_path_flex
7682 pgac_flex_version=`$FLEX --version 2>/dev/null`
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: using $pgac_flex_version" >&5
7684 $as_echo "$as_me: using $pgac_flex_version" >&6;}
7691 if test -z "$PERL"; then
7694 # Extract the first word of "$ac_prog", so it can be a program name with args.
7695 set dummy $ac_prog; ac_word=$2
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7697 $as_echo_n "checking for $ac_word... " >&6; }
7698 if ${ac_cv_path_PERL+:} false; then :
7699 $as_echo_n "(cached) " >&6
7703 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7710 test -z "$as_dir" && as_dir=.
7711 for ac_exec_ext in '' $ac_executable_extensions; do
7712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7713 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7724 PERL=$ac_cv_path_PERL
7725 if test -n "$PERL"; then
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7727 $as_echo "$PERL" >&6; }
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7730 $as_echo "no" >&6; }
7734 test -n "$PERL" && break
7738 # Report the value of PERL in configure's output in all cases.
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PERL" >&5
7740 $as_echo_n "checking for PERL... " >&6; }
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7742 $as_echo "$PERL" >&6; }
7746 if test "$PERL"; then
7747 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'`
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: using perl $pgac_perl_version" >&5
7749 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
7750 if echo "$pgac_perl_version" | sed 's/[.a-z_]/ /g' | \
7751 $AWK '{ if ($1 == 5 && $2 >= 8) exit 1; else exit 0;}'
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7754 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7755 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&5
7756 $as_echo "$as_me: WARNING:
7757 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7758 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&2;}
7763 if test -z "$PERL"; then
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7765 *** Without Perl you will not be able to build PostgreSQL from Git.
7766 *** You can obtain Perl from any CPAN mirror site.
7767 *** (If you are using the official distribution of PostgreSQL then you do not
7768 *** need to worry about this, because the Perl output is pre-generated.)" >&5
7769 $as_echo "$as_me: WARNING:
7770 *** Without Perl you will not be able to build PostgreSQL from Git.
7771 *** You can obtain Perl from any CPAN mirror site.
7772 *** (If you are using the official distribution of PostgreSQL then you do not
7773 *** need to worry about this, because the Perl output is pre-generated.)" >&2;}
7776 if test "$with_perl" = yes; then
7777 if test -z "$PERL"; then
7778 as_fn_error $? "Perl not found" "$LINENO" 5
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl archlibexp" >&5
7782 $as_echo_n "checking for Perl archlibexp... " >&6; }
7783 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
7784 test "$PORTNAME" = "win32" && perl_archlibexp=`echo $perl_archlibexp | sed 's,\\\\,/,g'`
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_archlibexp" >&5
7786 $as_echo "$perl_archlibexp" >&6; }
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl privlibexp" >&5
7788 $as_echo_n "checking for Perl privlibexp... " >&6; }
7789 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
7790 test "$PORTNAME" = "win32" && perl_privlibexp=`echo $perl_privlibexp | sed 's,\\\\,/,g'`
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_privlibexp" >&5
7792 $as_echo "$perl_privlibexp" >&6; }
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl useshrplib" >&5
7794 $as_echo_n "checking for Perl useshrplib... " >&6; }
7795 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
7796 test "$PORTNAME" = "win32" && perl_useshrplib=`echo $perl_useshrplib | sed 's,\\\\,/,g'`
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_useshrplib" >&5
7798 $as_echo "$perl_useshrplib" >&6; }
7799 if test "$perl_useshrplib" != yes && test "$perl_useshrplib" != true; then
7800 as_fn_error $? "cannot build PL/Perl because libperl is not a shared library
7801 You might have to rebuild your Perl installation. Refer to the
7802 documentation for details. Use --without-perl to disable building
7803 PL/Perl." "$LINENO" 5
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS recommended by Perl" >&5
7807 $as_echo_n "checking for CFLAGS recommended by Perl... " >&6; }
7808 perl_ccflags=`$PERL -MConfig -e 'print $Config{ccflags}'`
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_ccflags" >&5
7810 $as_echo "$perl_ccflags" >&6; }
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS to compile embedded Perl" >&5
7812 $as_echo_n "checking for CFLAGS to compile embedded Perl... " >&6; }
7813 perl_embed_ccflags=`$PERL -MConfig -e 'foreach $f (split(" ",$Config{ccflags})) {print $f, " " if ($f =~ /^-D[^_]/ || $f =~ /^-D_USE_32BIT_TIME_T/)}'`
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_embed_ccflags" >&5
7815 $as_echo "$perl_embed_ccflags" >&6; }
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flags to link embedded Perl" >&5
7819 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
7820 if test "$PORTNAME" = "win32" ; then
7821 perl_lib=`basename $perl_archlibexp/CORE/perl[5-9]*.lib .lib`
7822 if test -e "$perl_archlibexp/CORE/$perl_lib.lib"; then
7823 perl_embed_ldflags="-L$perl_archlibexp/CORE -l$perl_lib"
7825 perl_lib=`basename $perl_archlibexp/CORE/libperl[5-9]*.a .a | sed 's/^lib//'`
7826 if test -e "$perl_archlibexp/CORE/lib$perl_lib.a"; then
7827 perl_embed_ldflags="-L$perl_archlibexp/CORE -l$perl_lib"
7831 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
7832 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
7833 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
7835 if test -z "$perl_embed_ldflags" ; then
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7837 $as_echo "no" >&6; }
7838 as_fn_error $? "could not determine flags for linking embedded Perl.
7839 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7840 installed." "$LINENO" 5
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_embed_ldflags" >&5
7843 $as_echo "$perl_embed_ldflags" >&6; }
7848 if test "$with_python" = yes; then
7849 if test -z "$PYTHON"; then
7850 for ac_prog in python
7852 # Extract the first word of "$ac_prog", so it can be a program name with args.
7853 set dummy $ac_prog; ac_word=$2
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7855 $as_echo_n "checking for $ac_word... " >&6; }
7856 if ${ac_cv_path_PYTHON+:} false; then :
7857 $as_echo_n "(cached) " >&6
7861 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
7864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7868 test -z "$as_dir" && as_dir=.
7869 for ac_exec_ext in '' $ac_executable_extensions; do
7870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7871 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
7872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7882 PYTHON=$ac_cv_path_PYTHON
7883 if test -n "$PYTHON"; then
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
7885 $as_echo "$PYTHON" >&6; }
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7888 $as_echo "no" >&6; }
7892 test -n "$PYTHON" && break
7896 # Report the value of PYTHON in configure's output in all cases.
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYTHON" >&5
7898 $as_echo_n "checking for PYTHON... " >&6; }
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
7900 $as_echo "$PYTHON" >&6; }
7903 if test x"$PYTHON" = x""; then
7904 as_fn_error $? "Python not found" "$LINENO" 5
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python distutils module" >&5
7909 $as_echo_n "checking for Python distutils module... " >&6; }
7910 if "${PYTHON}" -c 'import distutils' 2>&5
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7913 $as_echo "yes" >&6; }
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7916 $as_echo "no" >&6; }
7917 as_fn_error $? "distutils module not found" "$LINENO" 5
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python configuration directory" >&5
7920 $as_echo_n "checking Python configuration directory... " >&6; }
7921 python_majorversion=`${PYTHON} -c "import sys; print(sys.version[0])"`
7922 python_minorversion=`${PYTHON} -c "import sys; print(sys.version[2])"`
7923 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
7924 python_configdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBPL'))))"`
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_configdir" >&5
7926 $as_echo "$python_configdir" >&6; }
7928 # Reject unsupported Python versions as soon as practical.
7929 if test "$python_majorversion" -lt 3 -a "$python_minorversion" -lt 4; then
7930 as_fn_error $? "Python version $python_version is too old (version 2.4 or later is required)" "$LINENO" 5
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python include directories" >&5
7934 $as_echo_n "checking Python include directories... " >&6; }
7935 python_includespec=`${PYTHON} -c "
7936 import distutils.sysconfig
7937 a = '-I' + distutils.sysconfig.get_python_inc(False)
7938 b = '-I' + distutils.sysconfig.get_python_inc(True)
7942 print(a + ' ' + b)"`
7943 if test "$PORTNAME" = win32 ; then
7944 python_includespec=`echo $python_includespec | sed 's,[\],/,g'`
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_includespec" >&5
7947 $as_echo "$python_includespec" >&6; }
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link an embedded Python application" >&5
7952 $as_echo_n "checking how to link an embedded Python application... " >&6; }
7954 python_libdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
7955 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
7957 # If LDLIBRARY exists and has a shlib extension, use it verbatim.
7958 ldlibrary=`echo "${python_ldlibrary}" | sed -e 's/\.so$//' -e 's/\.dll$//' -e 's/\.dylib$//' -e 's/\.sl$//'`
7959 if test -e "${python_libdir}/${python_ldlibrary}" -a x"${python_ldlibrary}" != x"${ldlibrary}"
7961 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
7964 # Otherwise, guess the base name of the shlib.
7965 # LDVERSION was added in Python 3.2, before that use VERSION,
7966 # or failing that, $python_version from _PGAC_CHECK_PYTHON_DIRS.
7967 python_ldversion=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDVERSION'))))"`
7968 if test x"${python_ldversion}" != x""; then
7969 ldlibrary="python${python_ldversion}"
7971 python_version_var=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('VERSION'))))"`
7972 if test x"${python_version_var}" != x""; then
7973 ldlibrary="python${python_version_var}"
7975 ldlibrary="python${python_version}"
7978 # Search for a likely-looking file.
7980 for d in "${python_libdir}" "${python_configdir}" /usr/lib64 /usr/lib
7982 # We don't know the platform DLSUFFIX here, so check 'em all.
7983 for e in .so .dll .dylib .sl; do
7984 if test -e "$d/lib${ldlibrary}$e"; then
7991 # Some platforms (OpenBSD) require us to accept a bare versioned shlib
7992 # (".so.n.n") as well. However, check this only after failing to find
7993 # ".so" anywhere, because yet other platforms (Debian) put the .so
7994 # symlink in a different directory from the underlying versioned shlib.
7995 if test "$found_shlib" != 1; then
7996 for d in "${python_libdir}" "${python_configdir}" /usr/lib64 /usr/lib
7998 for f in "$d/lib${ldlibrary}.so."* ; do
7999 if test -e "$f"; then
8007 # As usual, Windows has its own ideas. Possible default library
8008 # locations include c:/Windows/System32 and (for Cygwin) /usr/bin,
8009 # and the "lib" prefix might not be there.
8010 if test "$found_shlib" != 1 -a \( "$PORTNAME" = win32 -o "$PORTNAME" = cygwin \); then
8011 for d in "${python_libdir}" "${python_configdir}" c:/Windows/System32 /usr/bin
8013 for f in "$d/lib${ldlibrary}.dll" "$d/${ldlibrary}.dll" ; do
8014 if test -e "$f"; then
8023 if test "$found_shlib" != 1; then
8024 as_fn_error $? "could not find shared library for Python
8025 You might have to rebuild your Python installation. Refer to the
8026 documentation for details. Use --without-python to disable building
8027 PL/Python." "$LINENO" 5
8029 python_libspec="-L${python_libdir} -l${ldlibrary}"
8031 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_libspec} ${python_additional_libs}" >&5
8034 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
8040 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
8041 if test -z "$ZIC"; then
8044 # Extract the first word of "$ac_prog", so it can be a program name with args.
8045 set dummy $ac_prog; ac_word=$2
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8047 $as_echo_n "checking for $ac_word... " >&6; }
8048 if ${ac_cv_path_ZIC+:} false; then :
8049 $as_echo_n "(cached) " >&6
8053 ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
8056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8060 test -z "$as_dir" && as_dir=.
8061 for ac_exec_ext in '' $ac_executable_extensions; do
8062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8063 ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
8064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8075 if test -n "$ZIC"; then
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIC" >&5
8077 $as_echo "$ZIC" >&6; }
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8080 $as_echo "no" >&6; }
8084 test -n "$ZIC" && break
8088 # Report the value of ZIC in configure's output in all cases.
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIC" >&5
8090 $as_echo_n "checking for ZIC... " >&6; }
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIC" >&5
8092 $as_echo "$ZIC" >&6; }
8095 if test -z "$ZIC"; then
8097 When cross-compiling, either use the option --with-system-tzdata to use
8098 existing time-zone data, or set the environment variable ZIC to a zic
8099 program to use during the build." "$LINENO" 5
8106 # For each platform, we need to know about any special compile and link
8107 # libraries, and whether the normal C function names are thread-safe.
8108 # See the comment at the top of src/port/thread.c for more information.
8109 # WIN32 doesn't need the pthread tests; it always uses threads
8111 # These tests are run before the library-tests, because linking with the
8112 # other libraries can pull in the pthread functions as a side-effect. We
8113 # want to use the -pthread or similar flags directly, and not rely on
8114 # the side-effects of linking with some other library.
8116 # note: We have to use AS_IF here rather than plain if. The AC_CHECK_HEADER
8117 # invocation below is the first one in the script, and autoconf generates
8118 # additional code for that, which must not be inside the if-block. AS_IF
8119 # knows how to do that.
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8121 $as_echo_n "checking for ANSI C header files... " >&6; }
8122 if ${ac_cv_header_stdc+:} false; then :
8123 $as_echo_n "(cached) " >&6
8125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8126 /* end confdefs.h. */
8140 if ac_fn_c_try_compile "$LINENO"; then :
8141 ac_cv_header_stdc=yes
8143 ac_cv_header_stdc=no
8145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8147 if test $ac_cv_header_stdc = yes; then
8148 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8150 /* end confdefs.h. */
8154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8155 $EGREP "memchr" >/dev/null 2>&1; then :
8158 ac_cv_header_stdc=no
8164 if test $ac_cv_header_stdc = yes; then
8165 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8167 /* end confdefs.h. */
8171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8172 $EGREP "free" >/dev/null 2>&1; then :
8175 ac_cv_header_stdc=no
8181 if test $ac_cv_header_stdc = yes; then
8182 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8183 if test "$cross_compiling" = yes; then :
8186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8187 /* end confdefs.h. */
8190 #if ((' ' & 0x0FF) == 0x020)
8191 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8192 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8194 # define ISLOWER(c) \
8195 (('a' <= (c) && (c) <= 'i') \
8196 || ('j' <= (c) && (c) <= 'r') \
8197 || ('s' <= (c) && (c) <= 'z'))
8198 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8201 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8206 for (i = 0; i < 256; i++)
8207 if (XOR (islower (i), ISLOWER (i))
8208 || toupper (i) != TOUPPER (i))
8213 if ac_fn_c_try_run "$LINENO"; then :
8216 ac_cv_header_stdc=no
8218 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8219 conftest.$ac_objext conftest.beam conftest.$ac_ext
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8225 $as_echo "$ac_cv_header_stdc" >&6; }
8226 if test $ac_cv_header_stdc = yes; then
8228 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8232 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8233 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8234 inttypes.h stdint.h unistd.h
8236 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8237 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8239 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8240 cat >>confdefs.h <<_ACEOF
8241 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8249 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then :
8255 ac_cpp='$CPP $CPPFLAGS'
8256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8262 # We used to check for pthread.h first, but this fails if pthread.h
8263 # requires special compiler flags (e.g. on Tru64 or Sequent).
8264 # It gets checked for in the link test anyway.
8266 # First of all, check if the user has set any of the PTHREAD_LIBS,
8267 # etcetera environment variables, and if threads linking works using
8269 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8270 save_CFLAGS="$CFLAGS"
8271 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8273 LIBS="$PTHREAD_LIBS $LIBS"
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
8275 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
8276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8277 /* end confdefs.h. */
8279 /* Override any GCC internal prototype to avoid an error.
8280 Use char because int might match the return type of a GCC
8281 builtin and then its argument prototype would still apply. */
8285 char pthread_join ();
8289 return pthread_join ();
8294 if ac_fn_c_try_link "$LINENO"; then :
8297 rm -f core conftest.err conftest.$ac_objext \
8298 conftest$ac_exeext conftest.$ac_ext
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8300 $as_echo "$ax_pthread_ok" >&6; }
8301 if test x"$ax_pthread_ok" = xno; then
8306 CFLAGS="$save_CFLAGS"
8309 # We must check for the threads library under a number of different
8310 # names; the ordering is very important because some systems
8311 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8312 # libraries is broken (non-POSIX).
8314 # Create a list of thread flags to try. Items starting with a "-" are
8315 # C compiler flags, and other items are library names, except for "none"
8316 # which indicates that we try without any flags at all, and "pthread-config"
8317 # which is a program returning the flags for the Pth emulation library.
8319 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mt -mthreads pthread --thread-safe pthread-config"
8321 # The ordering *is* (sometimes) important. Some notes on the
8322 # individual items follow:
8324 # pthreads: AIX (must check this before -lpthread)
8325 # none: in case threads are in libc; should be tried before -Kthread and
8326 # other compiler flags to prevent continual compiler warnings
8327 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8328 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8329 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8330 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
8331 # -pthreads: Solaris/gcc
8332 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8333 # doesn't hurt to check since this sometimes defines pthreads and
8334 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
8335 # is present but should not be used directly)
8336 # -mthreads: Mingw32/gcc, Lynx/gcc
8337 # pthread: Linux, etcetera
8338 # --thread-safe: KAI C++
8339 # pthread-config: use pthread-config program (for GNU Pth library)
8345 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
8346 # multi-threading and also sets -lpthread."
8348 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
8353 # IBM z/OS requires a feature-test macro to be defined in order to
8354 # enable POSIX threads at all, so give the user a hint if this is
8355 # not set. (We don't define these ourselves, as they can affect
8356 # other portions of the system API in unpredictable ways.)
8358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8359 /* end confdefs.h. */
8361 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
8362 AX_PTHREAD_ZOS_MISSING
8366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8367 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
8369 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
8377 # Newer versions of Solaris require the "-mt -lpthread" pair, and we
8378 # check that first. On some older versions, libc contains stubbed
8379 # (non-functional) versions of the pthreads routines, so link-based
8380 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8381 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8382 # a function called by this macro, so we could check for that, but
8383 # who knows whether they'll stub that too in a future libc.) So
8384 # we'll look for -pthreads and -lpthread shortly thereafter.
8386 ax_pthread_flags="-mt,pthread -pthreads -pthread pthread $ax_pthread_flags"
8390 # Older versions of Clang only give a warning instead of an error for an
8391 # unrecognized option, unless we specify -Werror. (We throw in some extra
8392 # Clang warning flags for good measure.)
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs certain flags to reject unknown flags" >&5
8395 $as_echo_n "checking if compiler needs certain flags to reject unknown flags... " >&6; }
8396 if ${ax_cv_PTHREAD_REJECT_UNKNOWN+:} false; then :
8397 $as_echo_n "(cached) " >&6
8399 ax_cv_PTHREAD_REJECT_UNKNOWN=unknown
8400 save_CFLAGS="$CFLAGS"
8401 ax_pthread_extra_flags="-Wunknown-warning-option -Wunused-command-line-argument"
8402 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wfoobaz -foobaz"
8403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8404 /* end confdefs.h. */
8414 if ac_fn_c_try_compile "$LINENO"; then :
8415 ax_cv_PTHREAD_REJECT_UNKNOWN="-Werror $ax_pthread_extra_flags"
8417 ax_cv_PTHREAD_REJECT_UNKNOWN=no
8419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8420 CFLAGS="$save_CFLAGS"
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_REJECT_UNKNOWN" >&5
8424 $as_echo "$ax_cv_PTHREAD_REJECT_UNKNOWN" >&6; }
8425 ax_pthread_extra_flags=
8426 if test "x$ax_cv_PTHREAD_REJECT_UNKNOWN" != "xno"; then :
8427 ax_pthread_extra_flags="$ax_cv_PTHREAD_REJECT_UNKNOWN"
8430 if test x"$ax_pthread_ok" = xno; then
8431 for flag in $ax_pthread_flags; do
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8436 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
8441 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
8442 PTHREAD_CFLAGS="-mt"
8443 PTHREAD_LIBS="-lpthread"
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8448 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
8449 PTHREAD_CFLAGS="$flag"
8453 # Extract the first word of "pthread-config", so it can be a program name with args.
8454 set dummy pthread-config; ac_word=$2
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8456 $as_echo_n "checking for $ac_word... " >&6; }
8457 if ${ac_cv_prog_ax_pthread_config+:} false; then :
8458 $as_echo_n "(cached) " >&6
8460 if test -n "$ax_pthread_config"; then
8461 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8467 test -z "$as_dir" && as_dir=.
8468 for ac_exec_ext in '' $ac_executable_extensions; do
8469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8470 ac_cv_prog_ax_pthread_config="yes"
8471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8478 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8481 ax_pthread_config=$ac_cv_prog_ax_pthread_config
8482 if test -n "$ax_pthread_config"; then
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8484 $as_echo "$ax_pthread_config" >&6; }
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8487 $as_echo "no" >&6; }
8491 if test x"$ax_pthread_config" = xno; then continue; fi
8492 PTHREAD_CFLAGS="`pthread-config --cflags`"
8493 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8498 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8499 PTHREAD_LIBS="-l$flag"
8504 save_CFLAGS="$CFLAGS"
8505 LIBS="$PTHREAD_LIBS $LIBS"
8506 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
8508 # Check for various functions. We must include pthread.h,
8509 # since some functions may be macros. (On the Sequent, we
8510 # need a special flag -Kthread to make this header compile.)
8511 # We check for pthread_join because it is in -lpthread on IRIX
8512 # while pthread_create is in libc. We check for pthread_attr_init
8513 # due to DEC craziness with -lpthreads. We check for
8514 # pthread_cleanup_push because it is one of the few pthread
8515 # functions on Solaris that doesn't have a non-functional libc stub.
8516 # We try pthread_create on general principles.
8517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8518 /* end confdefs.h. */
8519 #include <pthread.h>
8520 static void routine(void *a) { a = 0; }
8521 static void *start_routine(void *a) { return a; }
8525 pthread_t th; pthread_attr_t attr;
8526 pthread_create(&th, 0, start_routine, 0);
8527 pthread_join(th, 0);
8528 pthread_attr_init(&attr);
8529 pthread_cleanup_push(routine, 0);
8530 pthread_cleanup_pop(0) /* ; */
8535 if ac_fn_c_try_link "$LINENO"; then :
8538 rm -f core conftest.err conftest.$ac_objext \
8539 conftest$ac_exeext conftest.$ac_ext
8542 CFLAGS="$save_CFLAGS"
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8545 $as_echo "$ax_pthread_ok" >&6; }
8546 if test "x$ax_pthread_ok" = xyes; then
8555 # Various other checks:
8556 if test "x$ax_pthread_ok" = xyes; then
8558 LIBS="$PTHREAD_LIBS $LIBS"
8559 save_CFLAGS="$CFLAGS"
8560 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8562 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8564 $as_echo_n "checking for joinable pthread attribute... " >&6; }
8565 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
8566 $as_echo_n "(cached) " >&6
8568 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
8569 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8571 /* end confdefs.h. */
8572 #include <pthread.h>
8576 int attr = $attr; return attr /* ; */
8581 if ac_fn_c_try_link "$LINENO"; then :
8582 ax_cv_PTHREAD_JOINABLE_ATTR=$attr; break
8584 rm -f core conftest.err conftest.$ac_objext \
8585 conftest$ac_exeext conftest.$ac_ext
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
8590 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
8591 if test "$ax_cv_PTHREAD_JOINABLE_ATTR" != unknown && \
8592 test "$ax_cv_PTHREAD_JOINABLE_ATTR" != PTHREAD_CREATE_JOINABLE; then :
8594 cat >>confdefs.h <<_ACEOF
8595 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8601 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8602 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
8603 $as_echo_n "(cached) " >&6
8605 ax_cv_PTHREAD_SPECIAL_FLAGS=no
8606 ax_pthread_special_flags_added=no
8607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8608 /* end confdefs.h. */
8610 # if !defined(_REENTRANT) && !defined(_THREAD_SAFE)
8611 AX_PTHREAD_NEED_SPECIAL_FLAG
8615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8616 $EGREP "AX_PTHREAD_NEED_SPECIAL_FLAG" >/dev/null 2>&1; then :
8619 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_THREAD_SAFE"
8621 darwin* | hpux* | osf* | solaris*)
8622 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_REENTRANT"
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
8632 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
8633 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
8634 test "x$ax_pthread_special_flags_added" != "xyes"; then :
8635 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
8636 ax_pthread_special_flags_added=yes
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
8640 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
8641 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
8642 $as_echo_n "(cached) " >&6
8644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8645 /* end confdefs.h. */
8646 #include <pthread.h>
8650 int i = PTHREAD_PRIO_INHERIT;
8655 if ac_fn_c_try_link "$LINENO"; then :
8656 ax_cv_PTHREAD_PRIO_INHERIT=yes
8658 ax_cv_PTHREAD_PRIO_INHERIT=no
8660 rm -f core conftest.err conftest.$ac_objext \
8661 conftest$ac_exeext conftest.$ac_ext
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
8665 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
8666 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
8668 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
8673 CFLAGS="$save_CFLAGS"
8675 # More AIX lossage: compile with *_r variant
8676 if test "x$GCC" != xyes; then
8680 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
8681 #handle absolute path differently from PATH based program lookup
8684 if as_fn_executable_p ${CC}_r; then :
8685 PTHREAD_CC="${CC}_r"
8688 for ac_prog in ${CC}_r
8690 # Extract the first word of "$ac_prog", so it can be a program name with args.
8691 set dummy $ac_prog; ac_word=$2
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8693 $as_echo_n "checking for $ac_word... " >&6; }
8694 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
8695 $as_echo_n "(cached) " >&6
8697 if test -n "$PTHREAD_CC"; then
8698 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8704 test -z "$as_dir" && as_dir=.
8705 for ac_exec_ext in '' $ac_executable_extensions; do
8706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8707 ac_cv_prog_PTHREAD_CC="$ac_prog"
8708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8717 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8718 if test -n "$PTHREAD_CC"; then
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8720 $as_echo "$PTHREAD_CC" >&6; }
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8723 $as_echo "no" >&6; }
8727 test -n "$PTHREAD_CC" && break
8729 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
8740 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
8746 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8747 if test x"$ax_pthread_ok" = xyes; then
8749 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8757 ac_cpp='$CPP $CPPFLAGS'
8758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8764 # Some platforms use these, so just define them. They can't hurt if they
8765 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
8766 # enables 5-arg getpwuid_r, among other things.
8767 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
8769 # Check for *_r functions
8772 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8773 LIBS="$LIBS $PTHREAD_LIBS"
8775 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8776 if test "x$ac_cv_header_pthread_h" = xyes; then :
8780 pthread.h not found; use --disable-thread-safety to disable thread safety" "$LINENO" 5
8785 for ac_func in strerror_r getpwuid_r gethostbyname_r
8787 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8788 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8789 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8790 cat >>confdefs.h <<_ACEOF
8791 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8798 # Do test here with the proper thread flags
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns int" >&5
8800 $as_echo_n "checking whether strerror_r returns int... " >&6; }
8801 if ${pgac_cv_func_strerror_r_int+:} false; then :
8802 $as_echo_n "(cached) " >&6
8804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8805 /* end confdefs.h. */
8811 int strerror_r(int, char *, size_t);
8813 /* Older AIX has 'int' for the third argument so we don't test the args. */
8820 if ac_fn_c_try_compile "$LINENO"; then :
8821 pgac_cv_func_strerror_r_int=yes
8823 pgac_cv_func_strerror_r_int=no
8825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_strerror_r_int" >&5
8828 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
8829 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
8831 $as_echo "#define STRERROR_R_INT 1" >>confdefs.h
8842 # do not use values from template file
8855 ## Most libraries are included only if they demonstrably provide a function
8856 ## we need, but libm is an exception: always include it, because there are
8857 ## too many compilers that play cute optimization games that will break
8858 ## probes for standard functions such as pow().
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
8862 $as_echo_n "checking for main in -lm... " >&6; }
8863 if ${ac_cv_lib_m_main+:} false; then :
8864 $as_echo_n "(cached) " >&6
8866 ac_check_lib_save_LIBS=$LIBS
8868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8869 /* end confdefs.h. */
8880 if ac_fn_c_try_link "$LINENO"; then :
8881 ac_cv_lib_m_main=yes
8885 rm -f core conftest.err conftest.$ac_objext \
8886 conftest$ac_exeext conftest.$ac_ext
8887 LIBS=$ac_check_lib_save_LIBS
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
8890 $as_echo "$ac_cv_lib_m_main" >&6; }
8891 if test "x$ac_cv_lib_m_main" = xyes; then :
8892 cat >>confdefs.h <<_ACEOF
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setproctitle" >&5
8901 $as_echo_n "checking for library containing setproctitle... " >&6; }
8902 if ${ac_cv_search_setproctitle+:} false; then :
8903 $as_echo_n "(cached) " >&6
8905 ac_func_search_save_LIBS=$LIBS
8906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8907 /* end confdefs.h. */
8909 /* Override any GCC internal prototype to avoid an error.
8910 Use char because int might match the return type of a GCC
8911 builtin and then its argument prototype would still apply. */
8915 char setproctitle ();
8919 return setproctitle ();
8924 for ac_lib in '' util; do
8925 if test -z "$ac_lib"; then
8926 ac_res="none required"
8929 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8931 if ac_fn_c_try_link "$LINENO"; then :
8932 ac_cv_search_setproctitle=$ac_res
8934 rm -f core conftest.err conftest.$ac_objext \
8936 if ${ac_cv_search_setproctitle+:} false; then :
8940 if ${ac_cv_search_setproctitle+:} false; then :
8943 ac_cv_search_setproctitle=no
8946 LIBS=$ac_func_search_save_LIBS
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setproctitle" >&5
8949 $as_echo "$ac_cv_search_setproctitle" >&6; }
8950 ac_res=$ac_cv_search_setproctitle
8951 if test "$ac_res" != no; then :
8952 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
8957 $as_echo_n "checking for library containing dlopen... " >&6; }
8958 if ${ac_cv_search_dlopen+:} false; then :
8959 $as_echo_n "(cached) " >&6
8961 ac_func_search_save_LIBS=$LIBS
8962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8963 /* end confdefs.h. */
8965 /* Override any GCC internal prototype to avoid an error.
8966 Use char because int might match the return type of a GCC
8967 builtin and then its argument prototype would still apply. */
8980 for ac_lib in '' dl; do
8981 if test -z "$ac_lib"; then
8982 ac_res="none required"
8985 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8987 if ac_fn_c_try_link "$LINENO"; then :
8988 ac_cv_search_dlopen=$ac_res
8990 rm -f core conftest.err conftest.$ac_objext \
8992 if ${ac_cv_search_dlopen+:} false; then :
8996 if ${ac_cv_search_dlopen+:} false; then :
8999 ac_cv_search_dlopen=no
9002 LIBS=$ac_func_search_save_LIBS
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9005 $as_echo "$ac_cv_search_dlopen" >&6; }
9006 ac_res=$ac_cv_search_dlopen
9007 if test "$ac_res" != no; then :
9008 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
9013 $as_echo_n "checking for library containing socket... " >&6; }
9014 if ${ac_cv_search_socket+:} false; then :
9015 $as_echo_n "(cached) " >&6
9017 ac_func_search_save_LIBS=$LIBS
9018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9019 /* end confdefs.h. */
9021 /* Override any GCC internal prototype to avoid an error.
9022 Use char because int might match the return type of a GCC
9023 builtin and then its argument prototype would still apply. */
9036 for ac_lib in '' socket ws2_32; do
9037 if test -z "$ac_lib"; then
9038 ac_res="none required"
9041 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9043 if ac_fn_c_try_link "$LINENO"; then :
9044 ac_cv_search_socket=$ac_res
9046 rm -f core conftest.err conftest.$ac_objext \
9048 if ${ac_cv_search_socket+:} false; then :
9052 if ${ac_cv_search_socket+:} false; then :
9055 ac_cv_search_socket=no
9058 LIBS=$ac_func_search_save_LIBS
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
9061 $as_echo "$ac_cv_search_socket" >&6; }
9062 ac_res=$ac_cv_search_socket
9063 if test "$ac_res" != no; then :
9064 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
9069 $as_echo_n "checking for library containing shl_load... " >&6; }
9070 if ${ac_cv_search_shl_load+:} false; then :
9071 $as_echo_n "(cached) " >&6
9073 ac_func_search_save_LIBS=$LIBS
9074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9075 /* end confdefs.h. */
9077 /* Override any GCC internal prototype to avoid an error.
9078 Use char because int might match the return type of a GCC
9079 builtin and then its argument prototype would still apply. */
9092 for ac_lib in '' dld; do
9093 if test -z "$ac_lib"; then
9094 ac_res="none required"
9097 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9099 if ac_fn_c_try_link "$LINENO"; then :
9100 ac_cv_search_shl_load=$ac_res
9102 rm -f core conftest.err conftest.$ac_objext \
9104 if ${ac_cv_search_shl_load+:} false; then :
9108 if ${ac_cv_search_shl_load+:} false; then :
9111 ac_cv_search_shl_load=no
9114 LIBS=$ac_func_search_save_LIBS
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
9117 $as_echo "$ac_cv_search_shl_load" >&6; }
9118 ac_res=$ac_cv_search_shl_load
9119 if test "$ac_res" != no; then :
9120 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9124 # We only use libld in port/dynloader/aix.c
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldopen" >&5
9128 $as_echo_n "checking for library containing ldopen... " >&6; }
9129 if ${ac_cv_search_ldopen+:} false; then :
9130 $as_echo_n "(cached) " >&6
9132 ac_func_search_save_LIBS=$LIBS
9133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9134 /* end confdefs.h. */
9136 /* Override any GCC internal prototype to avoid an error.
9137 Use char because int might match the return type of a GCC
9138 builtin and then its argument prototype would still apply. */
9151 for ac_lib in '' ld; do
9152 if test -z "$ac_lib"; then
9153 ac_res="none required"
9156 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9158 if ac_fn_c_try_link "$LINENO"; then :
9159 ac_cv_search_ldopen=$ac_res
9161 rm -f core conftest.err conftest.$ac_objext \
9163 if ${ac_cv_search_ldopen+:} false; then :
9167 if ${ac_cv_search_ldopen+:} false; then :
9170 ac_cv_search_ldopen=no
9173 LIBS=$ac_func_search_save_LIBS
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldopen" >&5
9176 $as_echo "$ac_cv_search_ldopen" >&6; }
9177 ac_res=$ac_cv_search_ldopen
9178 if test "$ac_res" != no; then :
9179 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getopt_long" >&5
9186 $as_echo_n "checking for library containing getopt_long... " >&6; }
9187 if ${ac_cv_search_getopt_long+:} false; then :
9188 $as_echo_n "(cached) " >&6
9190 ac_func_search_save_LIBS=$LIBS
9191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9192 /* end confdefs.h. */
9194 /* Override any GCC internal prototype to avoid an error.
9195 Use char because int might match the return type of a GCC
9196 builtin and then its argument prototype would still apply. */
9200 char getopt_long ();
9204 return getopt_long ();
9209 for ac_lib in '' getopt gnugetopt; do
9210 if test -z "$ac_lib"; then
9211 ac_res="none required"
9214 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9216 if ac_fn_c_try_link "$LINENO"; then :
9217 ac_cv_search_getopt_long=$ac_res
9219 rm -f core conftest.err conftest.$ac_objext \
9221 if ${ac_cv_search_getopt_long+:} false; then :
9225 if ${ac_cv_search_getopt_long+:} false; then :
9228 ac_cv_search_getopt_long=no
9231 LIBS=$ac_func_search_save_LIBS
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getopt_long" >&5
9234 $as_echo "$ac_cv_search_getopt_long" >&6; }
9235 ac_res=$ac_cv_search_getopt_long
9236 if test "$ac_res" != no; then :
9237 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
9242 $as_echo_n "checking for library containing crypt... " >&6; }
9243 if ${ac_cv_search_crypt+:} false; then :
9244 $as_echo_n "(cached) " >&6
9246 ac_func_search_save_LIBS=$LIBS
9247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9248 /* end confdefs.h. */
9250 /* Override any GCC internal prototype to avoid an error.
9251 Use char because int might match the return type of a GCC
9252 builtin and then its argument prototype would still apply. */
9265 for ac_lib in '' crypt; do
9266 if test -z "$ac_lib"; then
9267 ac_res="none required"
9270 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9272 if ac_fn_c_try_link "$LINENO"; then :
9273 ac_cv_search_crypt=$ac_res
9275 rm -f core conftest.err conftest.$ac_objext \
9277 if ${ac_cv_search_crypt+:} false; then :
9281 if ${ac_cv_search_crypt+:} false; then :
9284 ac_cv_search_crypt=no
9287 LIBS=$ac_func_search_save_LIBS
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
9290 $as_echo "$ac_cv_search_crypt" >&6; }
9291 ac_res=$ac_cv_search_crypt
9292 if test "$ac_res" != no; then :
9293 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
9298 $as_echo_n "checking for library containing shm_open... " >&6; }
9299 if ${ac_cv_search_shm_open+:} false; then :
9300 $as_echo_n "(cached) " >&6
9302 ac_func_search_save_LIBS=$LIBS
9303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9304 /* end confdefs.h. */
9306 /* Override any GCC internal prototype to avoid an error.
9307 Use char because int might match the return type of a GCC
9308 builtin and then its argument prototype would still apply. */
9321 for ac_lib in '' rt; do
9322 if test -z "$ac_lib"; then
9323 ac_res="none required"
9326 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9328 if ac_fn_c_try_link "$LINENO"; then :
9329 ac_cv_search_shm_open=$ac_res
9331 rm -f core conftest.err conftest.$ac_objext \
9333 if ${ac_cv_search_shm_open+:} false; then :
9337 if ${ac_cv_search_shm_open+:} false; then :
9340 ac_cv_search_shm_open=no
9343 LIBS=$ac_func_search_save_LIBS
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
9346 $as_echo "$ac_cv_search_shm_open" >&6; }
9347 ac_res=$ac_cv_search_shm_open
9348 if test "$ac_res" != no; then :
9349 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_unlink" >&5
9354 $as_echo_n "checking for library containing shm_unlink... " >&6; }
9355 if ${ac_cv_search_shm_unlink+:} false; then :
9356 $as_echo_n "(cached) " >&6
9358 ac_func_search_save_LIBS=$LIBS
9359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9360 /* end confdefs.h. */
9362 /* Override any GCC internal prototype to avoid an error.
9363 Use char because int might match the return type of a GCC
9364 builtin and then its argument prototype would still apply. */
9372 return shm_unlink ();
9377 for ac_lib in '' rt; do
9378 if test -z "$ac_lib"; then
9379 ac_res="none required"
9382 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9384 if ac_fn_c_try_link "$LINENO"; then :
9385 ac_cv_search_shm_unlink=$ac_res
9387 rm -f core conftest.err conftest.$ac_objext \
9389 if ${ac_cv_search_shm_unlink+:} false; then :
9393 if ${ac_cv_search_shm_unlink+:} false; then :
9396 ac_cv_search_shm_unlink=no
9399 LIBS=$ac_func_search_save_LIBS
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_unlink" >&5
9402 $as_echo "$ac_cv_search_shm_unlink" >&6; }
9403 ac_res=$ac_cv_search_shm_unlink
9404 if test "$ac_res" != no; then :
9405 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
9410 $as_echo_n "checking for library containing clock_gettime... " >&6; }
9411 if ${ac_cv_search_clock_gettime+:} false; then :
9412 $as_echo_n "(cached) " >&6
9414 ac_func_search_save_LIBS=$LIBS
9415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9416 /* end confdefs.h. */
9418 /* Override any GCC internal prototype to avoid an error.
9419 Use char because int might match the return type of a GCC
9420 builtin and then its argument prototype would still apply. */
9424 char clock_gettime ();
9428 return clock_gettime ();
9433 for ac_lib in '' rt posix4; do
9434 if test -z "$ac_lib"; then
9435 ac_res="none required"
9438 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9440 if ac_fn_c_try_link "$LINENO"; then :
9441 ac_cv_search_clock_gettime=$ac_res
9443 rm -f core conftest.err conftest.$ac_objext \
9445 if ${ac_cv_search_clock_gettime+:} false; then :
9449 if ${ac_cv_search_clock_gettime+:} false; then :
9452 ac_cv_search_clock_gettime=no
9455 LIBS=$ac_func_search_save_LIBS
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
9458 $as_echo "$ac_cv_search_clock_gettime" >&6; }
9459 ac_res=$ac_cv_search_clock_gettime
9460 if test "$ac_res" != no; then :
9461 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
9467 $as_echo_n "checking for library containing fdatasync... " >&6; }
9468 if ${ac_cv_search_fdatasync+:} false; then :
9469 $as_echo_n "(cached) " >&6
9471 ac_func_search_save_LIBS=$LIBS
9472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9473 /* end confdefs.h. */
9475 /* Override any GCC internal prototype to avoid an error.
9476 Use char because int might match the return type of a GCC
9477 builtin and then its argument prototype would still apply. */
9485 return fdatasync ();
9490 for ac_lib in '' rt posix4; do
9491 if test -z "$ac_lib"; then
9492 ac_res="none required"
9495 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9497 if ac_fn_c_try_link "$LINENO"; then :
9498 ac_cv_search_fdatasync=$ac_res
9500 rm -f core conftest.err conftest.$ac_objext \
9502 if ${ac_cv_search_fdatasync+:} false; then :
9506 if ${ac_cv_search_fdatasync+:} false; then :
9509 ac_cv_search_fdatasync=no
9512 LIBS=$ac_func_search_save_LIBS
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
9515 $as_echo "$ac_cv_search_fdatasync" >&6; }
9516 ac_res=$ac_cv_search_fdatasync
9517 if test "$ac_res" != no; then :
9518 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9522 # Required for thread_test.c on Solaris
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
9524 $as_echo_n "checking for library containing sched_yield... " >&6; }
9525 if ${ac_cv_search_sched_yield+:} false; then :
9526 $as_echo_n "(cached) " >&6
9528 ac_func_search_save_LIBS=$LIBS
9529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9530 /* end confdefs.h. */
9532 /* Override any GCC internal prototype to avoid an error.
9533 Use char because int might match the return type of a GCC
9534 builtin and then its argument prototype would still apply. */
9538 char sched_yield ();
9542 return sched_yield ();
9547 for ac_lib in '' rt; do
9548 if test -z "$ac_lib"; then
9549 ac_res="none required"
9552 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9554 if ac_fn_c_try_link "$LINENO"; then :
9555 ac_cv_search_sched_yield=$ac_res
9557 rm -f core conftest.err conftest.$ac_objext \
9559 if ${ac_cv_search_sched_yield+:} false; then :
9563 if ${ac_cv_search_sched_yield+:} false; then :
9566 ac_cv_search_sched_yield=no
9569 LIBS=$ac_func_search_save_LIBS
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
9572 $as_echo "$ac_cv_search_sched_yield" >&6; }
9573 ac_res=$ac_cv_search_sched_yield
9574 if test "$ac_res" != no; then :
9575 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9579 # Required for thread_test.c on Solaris 2.5:
9580 # Other ports use it too (HP-UX) so test unconditionally
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname_r" >&5
9582 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
9583 if ${ac_cv_search_gethostbyname_r+:} false; then :
9584 $as_echo_n "(cached) " >&6
9586 ac_func_search_save_LIBS=$LIBS
9587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9588 /* end confdefs.h. */
9590 /* Override any GCC internal prototype to avoid an error.
9591 Use char because int might match the return type of a GCC
9592 builtin and then its argument prototype would still apply. */
9596 char gethostbyname_r ();
9600 return gethostbyname_r ();
9605 for ac_lib in '' nsl; do
9606 if test -z "$ac_lib"; then
9607 ac_res="none required"
9610 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9612 if ac_fn_c_try_link "$LINENO"; then :
9613 ac_cv_search_gethostbyname_r=$ac_res
9615 rm -f core conftest.err conftest.$ac_objext \
9617 if ${ac_cv_search_gethostbyname_r+:} false; then :
9621 if ${ac_cv_search_gethostbyname_r+:} false; then :
9624 ac_cv_search_gethostbyname_r=no
9627 LIBS=$ac_func_search_save_LIBS
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname_r" >&5
9630 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
9631 ac_res=$ac_cv_search_gethostbyname_r
9632 if test "$ac_res" != no; then :
9633 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shmget" >&5
9639 $as_echo_n "checking for library containing shmget... " >&6; }
9640 if ${ac_cv_search_shmget+:} false; then :
9641 $as_echo_n "(cached) " >&6
9643 ac_func_search_save_LIBS=$LIBS
9644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9645 /* end confdefs.h. */
9647 /* Override any GCC internal prototype to avoid an error.
9648 Use char because int might match the return type of a GCC
9649 builtin and then its argument prototype would still apply. */
9662 for ac_lib in '' cygipc; do
9663 if test -z "$ac_lib"; then
9664 ac_res="none required"
9667 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9669 if ac_fn_c_try_link "$LINENO"; then :
9670 ac_cv_search_shmget=$ac_res
9672 rm -f core conftest.err conftest.$ac_objext \
9674 if ${ac_cv_search_shmget+:} false; then :
9678 if ${ac_cv_search_shmget+:} false; then :
9681 ac_cv_search_shmget=no
9684 LIBS=$ac_func_search_save_LIBS
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shmget" >&5
9687 $as_echo "$ac_cv_search_shmget" >&6; }
9688 ac_res=$ac_cv_search_shmget
9689 if test "$ac_res" != no; then :
9690 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9695 if test "$with_readline" = yes; then
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
9699 $as_echo_n "checking for library containing readline... " >&6; }
9700 if ${pgac_cv_check_readline+:} false; then :
9701 $as_echo_n "(cached) " >&6
9703 pgac_cv_check_readline=no
9704 pgac_save_LIBS=$LIBS
9705 if test x"$with_libedit_preferred" != x"yes"
9706 then READLINE_ORDER="-lreadline -ledit"
9707 else READLINE_ORDER="-ledit -lreadline"
9709 for pgac_rllib in $READLINE_ORDER ; do
9710 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
9711 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
9712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9713 /* end confdefs.h. */
9715 /* Override any GCC internal prototype to avoid an error.
9716 Use char because int might match the return type of a GCC
9717 builtin and then its argument prototype would still apply. */
9730 if ac_fn_c_try_link "$LINENO"; then :
9732 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
9733 # recognize dependent libraries; assume curses is needed if we didn't
9734 # find any dependency.
9736 netbsd* | openbsd* | irix*)
9737 if test x"$pgac_lib" = x"" ; then
9738 pgac_lib=" -lcurses"
9742 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
9746 rm -f core conftest.err conftest.$ac_objext \
9747 conftest$ac_exeext conftest.$ac_ext
9749 if test "$pgac_cv_check_readline" != no ; then
9753 LIBS=$pgac_save_LIBS
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_check_readline" >&5
9757 $as_echo "$pgac_cv_check_readline" >&6; }
9758 if test "$pgac_cv_check_readline" != no ; then
9759 LIBS="$pgac_cv_check_readline $LIBS"
9761 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
9766 if test x"$pgac_cv_check_readline" = x"no"; then
9767 as_fn_error $? "readline library not found
9768 If you have readline already installed, see config.log for details on the
9769 failure. It is possible the compiler isn't looking in the proper directory.
9770 Use --without-readline to disable readline support." "$LINENO" 5
9774 if test "$with_zlib" = yes; then
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
9776 $as_echo_n "checking for inflate in -lz... " >&6; }
9777 if ${ac_cv_lib_z_inflate+:} false; then :
9778 $as_echo_n "(cached) " >&6
9780 ac_check_lib_save_LIBS=$LIBS
9782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9783 /* end confdefs.h. */
9785 /* Override any GCC internal prototype to avoid an error.
9786 Use char because int might match the return type of a GCC
9787 builtin and then its argument prototype would still apply. */
9800 if ac_fn_c_try_link "$LINENO"; then :
9801 ac_cv_lib_z_inflate=yes
9803 ac_cv_lib_z_inflate=no
9805 rm -f core conftest.err conftest.$ac_objext \
9806 conftest$ac_exeext conftest.$ac_ext
9807 LIBS=$ac_check_lib_save_LIBS
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
9810 $as_echo "$ac_cv_lib_z_inflate" >&6; }
9811 if test "x$ac_cv_lib_z_inflate" = xyes; then :
9812 cat >>confdefs.h <<_ACEOF
9819 as_fn_error $? "zlib library not found
9820 If you have zlib already installed, see config.log for details on the
9821 failure. It is possible the compiler isn't looking in the proper directory.
9822 Use --without-zlib to disable zlib support." "$LINENO" 5
9827 if test "$enable_spinlocks" = yes; then
9829 $as_echo "#define HAVE_SPINLOCKS 1" >>confdefs.h
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9833 *** Not using spinlocks will cause poor performance." >&5
9834 $as_echo "$as_me: WARNING:
9835 *** Not using spinlocks will cause poor performance." >&2;}
9838 if test "$enable_atomics" = yes; then
9840 $as_echo "#define HAVE_ATOMICS 1" >>confdefs.h
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9844 *** Not using atomic operations will cause poor performance." >&5
9845 $as_echo "$as_me: WARNING:
9846 *** Not using atomic operations will cause poor performance." >&2;}
9849 if test "$with_gssapi" = yes ; then
9850 if test "$PORTNAME" != "win32"; then
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_init_sec_context" >&5
9852 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
9853 if ${ac_cv_search_gss_init_sec_context+:} false; then :
9854 $as_echo_n "(cached) " >&6
9856 ac_func_search_save_LIBS=$LIBS
9857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9858 /* end confdefs.h. */
9860 /* Override any GCC internal prototype to avoid an error.
9861 Use char because int might match the return type of a GCC
9862 builtin and then its argument prototype would still apply. */
9866 char gss_init_sec_context ();
9870 return gss_init_sec_context ();
9875 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
9876 if test -z "$ac_lib"; then
9877 ac_res="none required"
9880 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9882 if ac_fn_c_try_link "$LINENO"; then :
9883 ac_cv_search_gss_init_sec_context=$ac_res
9885 rm -f core conftest.err conftest.$ac_objext \
9887 if ${ac_cv_search_gss_init_sec_context+:} false; then :
9891 if ${ac_cv_search_gss_init_sec_context+:} false; then :
9894 ac_cv_search_gss_init_sec_context=no
9897 LIBS=$ac_func_search_save_LIBS
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_init_sec_context" >&5
9900 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
9901 ac_res=$ac_cv_search_gss_init_sec_context
9902 if test "$ac_res" != no; then :
9903 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9906 as_fn_error $? "could not find function 'gss_init_sec_context' required for GSSAPI" "$LINENO" 5
9910 LIBS="$LIBS -lgssapi32"
9914 if test "$with_openssl" = yes ; then
9915 if test "$PORTNAME" != "win32"; then
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_new_ex_data in -lcrypto" >&5
9917 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
9918 if ${ac_cv_lib_crypto_CRYPTO_new_ex_data+:} false; then :
9919 $as_echo_n "(cached) " >&6
9921 ac_check_lib_save_LIBS=$LIBS
9922 LIBS="-lcrypto $LIBS"
9923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9924 /* end confdefs.h. */
9926 /* Override any GCC internal prototype to avoid an error.
9927 Use char because int might match the return type of a GCC
9928 builtin and then its argument prototype would still apply. */
9932 char CRYPTO_new_ex_data ();
9936 return CRYPTO_new_ex_data ();
9941 if ac_fn_c_try_link "$LINENO"; then :
9942 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
9944 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
9946 rm -f core conftest.err conftest.$ac_objext \
9947 conftest$ac_exeext conftest.$ac_ext
9948 LIBS=$ac_check_lib_save_LIBS
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
9951 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
9952 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = xyes; then :
9953 cat >>confdefs.h <<_ACEOF
9954 #define HAVE_LIBCRYPTO 1
9957 LIBS="-lcrypto $LIBS"
9960 as_fn_error $? "library 'crypto' is required for OpenSSL" "$LINENO" 5
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
9964 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
9965 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
9966 $as_echo_n "(cached) " >&6
9968 ac_check_lib_save_LIBS=$LIBS
9970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9971 /* end confdefs.h. */
9973 /* Override any GCC internal prototype to avoid an error.
9974 Use char because int might match the return type of a GCC
9975 builtin and then its argument prototype would still apply. */
9988 if ac_fn_c_try_link "$LINENO"; then :
9989 ac_cv_lib_ssl_SSL_new=yes
9991 ac_cv_lib_ssl_SSL_new=no
9993 rm -f core conftest.err conftest.$ac_objext \
9994 conftest$ac_exeext conftest.$ac_ext
9995 LIBS=$ac_check_lib_save_LIBS
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
9998 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
9999 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
10000 cat >>confdefs.h <<_ACEOF
10001 #define HAVE_LIBSSL 1
10007 as_fn_error $? "library 'ssl' is required for OpenSSL" "$LINENO" 5
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing CRYPTO_new_ex_data" >&5
10012 $as_echo_n "checking for library containing CRYPTO_new_ex_data... " >&6; }
10013 if ${ac_cv_search_CRYPTO_new_ex_data+:} false; then :
10014 $as_echo_n "(cached) " >&6
10016 ac_func_search_save_LIBS=$LIBS
10017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10018 /* end confdefs.h. */
10020 /* Override any GCC internal prototype to avoid an error.
10021 Use char because int might match the return type of a GCC
10022 builtin and then its argument prototype would still apply. */
10026 char CRYPTO_new_ex_data ();
10030 return CRYPTO_new_ex_data ();
10035 for ac_lib in '' eay32 crypto; do
10036 if test -z "$ac_lib"; then
10037 ac_res="none required"
10040 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10042 if ac_fn_c_try_link "$LINENO"; then :
10043 ac_cv_search_CRYPTO_new_ex_data=$ac_res
10045 rm -f core conftest.err conftest.$ac_objext \
10047 if ${ac_cv_search_CRYPTO_new_ex_data+:} false; then :
10051 if ${ac_cv_search_CRYPTO_new_ex_data+:} false; then :
10054 ac_cv_search_CRYPTO_new_ex_data=no
10056 rm conftest.$ac_ext
10057 LIBS=$ac_func_search_save_LIBS
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_CRYPTO_new_ex_data" >&5
10060 $as_echo "$ac_cv_search_CRYPTO_new_ex_data" >&6; }
10061 ac_res=$ac_cv_search_CRYPTO_new_ex_data
10062 if test "$ac_res" != no; then :
10063 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10066 as_fn_error $? "library 'eay32' or 'crypto' is required for OpenSSL" "$LINENO" 5
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_new" >&5
10070 $as_echo_n "checking for library containing SSL_new... " >&6; }
10071 if ${ac_cv_search_SSL_new+:} false; then :
10072 $as_echo_n "(cached) " >&6
10074 ac_func_search_save_LIBS=$LIBS
10075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10076 /* end confdefs.h. */
10078 /* Override any GCC internal prototype to avoid an error.
10079 Use char because int might match the return type of a GCC
10080 builtin and then its argument prototype would still apply. */
10093 for ac_lib in '' ssleay32 ssl; do
10094 if test -z "$ac_lib"; then
10095 ac_res="none required"
10098 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10100 if ac_fn_c_try_link "$LINENO"; then :
10101 ac_cv_search_SSL_new=$ac_res
10103 rm -f core conftest.err conftest.$ac_objext \
10105 if ${ac_cv_search_SSL_new+:} false; then :
10109 if ${ac_cv_search_SSL_new+:} false; then :
10112 ac_cv_search_SSL_new=no
10114 rm conftest.$ac_ext
10115 LIBS=$ac_func_search_save_LIBS
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_new" >&5
10118 $as_echo "$ac_cv_search_SSL_new" >&6; }
10119 ac_res=$ac_cv_search_SSL_new
10120 if test "$ac_res" != no; then :
10121 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10124 as_fn_error $? "library 'ssleay32' or 'ssl' is required for OpenSSL" "$LINENO" 5
10128 for ac_func in SSL_get_current_compression
10130 ac_fn_c_check_func "$LINENO" "SSL_get_current_compression" "ac_cv_func_SSL_get_current_compression"
10131 if test "x$ac_cv_func_SSL_get_current_compression" = xyes; then :
10132 cat >>confdefs.h <<_ACEOF
10133 #define HAVE_SSL_GET_CURRENT_COMPRESSION 1
10139 # Functions introduced in OpenSSL 1.1.0. We used to check for
10140 # OPENSSL_VERSION_NUMBER, but that didn't work with 1.1.0, because LibreSSL
10141 # defines OPENSSL_VERSION_NUMBER to claim version 2.0.0, even though it
10142 # doesn't have these OpenSSL 1.1.0 functions. So check for individual
10144 for ac_func in OPENSSL_init_ssl BIO_get_data BIO_meth_new ASN1_STRING_get0_data RAND_OpenSSL
10146 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10147 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10148 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10149 cat >>confdefs.h <<_ACEOF
10150 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10156 # OpenSSL versions before 1.1.0 required setting callback functions, for
10157 # thread-safety. In 1.1.0, it's no longer required, and CRYPTO_lock()
10158 # function was removed.
10159 for ac_func in CRYPTO_lock
10161 ac_fn_c_check_func "$LINENO" "CRYPTO_lock" "ac_cv_func_CRYPTO_lock"
10162 if test "x$ac_cv_func_CRYPTO_lock" = xyes; then :
10163 cat >>confdefs.h <<_ACEOF
10164 #define HAVE_CRYPTO_LOCK 1
10172 if test "$with_pam" = yes ; then
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
10174 $as_echo_n "checking for pam_start in -lpam... " >&6; }
10175 if ${ac_cv_lib_pam_pam_start+:} false; then :
10176 $as_echo_n "(cached) " >&6
10178 ac_check_lib_save_LIBS=$LIBS
10180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10181 /* end confdefs.h. */
10183 /* Override any GCC internal prototype to avoid an error.
10184 Use char because int might match the return type of a GCC
10185 builtin and then its argument prototype would still apply. */
10193 return pam_start ();
10198 if ac_fn_c_try_link "$LINENO"; then :
10199 ac_cv_lib_pam_pam_start=yes
10201 ac_cv_lib_pam_pam_start=no
10203 rm -f core conftest.err conftest.$ac_objext \
10204 conftest$ac_exeext conftest.$ac_ext
10205 LIBS=$ac_check_lib_save_LIBS
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
10208 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
10209 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
10210 cat >>confdefs.h <<_ACEOF
10211 #define HAVE_LIBPAM 1
10217 as_fn_error $? "library 'pam' is required for PAM" "$LINENO" 5
10222 if test "$with_libxml" = yes ; then
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSaveToBuffer in -lxml2" >&5
10224 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
10225 if ${ac_cv_lib_xml2_xmlSaveToBuffer+:} false; then :
10226 $as_echo_n "(cached) " >&6
10228 ac_check_lib_save_LIBS=$LIBS
10229 LIBS="-lxml2 $LIBS"
10230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10231 /* end confdefs.h. */
10233 /* Override any GCC internal prototype to avoid an error.
10234 Use char because int might match the return type of a GCC
10235 builtin and then its argument prototype would still apply. */
10239 char xmlSaveToBuffer ();
10243 return xmlSaveToBuffer ();
10248 if ac_fn_c_try_link "$LINENO"; then :
10249 ac_cv_lib_xml2_xmlSaveToBuffer=yes
10251 ac_cv_lib_xml2_xmlSaveToBuffer=no
10253 rm -f core conftest.err conftest.$ac_objext \
10254 conftest$ac_exeext conftest.$ac_ext
10255 LIBS=$ac_check_lib_save_LIBS
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
10258 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
10259 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = xyes; then :
10260 cat >>confdefs.h <<_ACEOF
10261 #define HAVE_LIBXML2 1
10264 LIBS="-lxml2 $LIBS"
10267 as_fn_error $? "library 'xml2' (version >= 2.6.23) is required for XML support" "$LINENO" 5
10272 if test "$with_libxslt" = yes ; then
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xsltCleanupGlobals in -lxslt" >&5
10274 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
10275 if ${ac_cv_lib_xslt_xsltCleanupGlobals+:} false; then :
10276 $as_echo_n "(cached) " >&6
10278 ac_check_lib_save_LIBS=$LIBS
10279 LIBS="-lxslt $LIBS"
10280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10281 /* end confdefs.h. */
10283 /* Override any GCC internal prototype to avoid an error.
10284 Use char because int might match the return type of a GCC
10285 builtin and then its argument prototype would still apply. */
10289 char xsltCleanupGlobals ();
10293 return xsltCleanupGlobals ();
10298 if ac_fn_c_try_link "$LINENO"; then :
10299 ac_cv_lib_xslt_xsltCleanupGlobals=yes
10301 ac_cv_lib_xslt_xsltCleanupGlobals=no
10303 rm -f core conftest.err conftest.$ac_objext \
10304 conftest$ac_exeext conftest.$ac_ext
10305 LIBS=$ac_check_lib_save_LIBS
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
10308 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
10309 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = xyes; then :
10310 cat >>confdefs.h <<_ACEOF
10311 #define HAVE_LIBXSLT 1
10314 LIBS="-lxslt $LIBS"
10317 as_fn_error $? "library 'xslt' is required for XSLT support" "$LINENO" 5
10322 # Note: We can test for libldap_r only after we know PTHREAD_LIBS
10323 if test "$with_ldap" = yes ; then
10325 if test "$PORTNAME" != "win32"; then
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lldap" >&5
10327 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
10328 if ${ac_cv_lib_ldap_ldap_bind+:} false; then :
10329 $as_echo_n "(cached) " >&6
10331 ac_check_lib_save_LIBS=$LIBS
10332 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
10333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10334 /* end confdefs.h. */
10336 /* Override any GCC internal prototype to avoid an error.
10337 Use char because int might match the return type of a GCC
10338 builtin and then its argument prototype would still apply. */
10346 return ldap_bind ();
10351 if ac_fn_c_try_link "$LINENO"; then :
10352 ac_cv_lib_ldap_ldap_bind=yes
10354 ac_cv_lib_ldap_ldap_bind=no
10356 rm -f core conftest.err conftest.$ac_objext \
10357 conftest$ac_exeext conftest.$ac_ext
10358 LIBS=$ac_check_lib_save_LIBS
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_bind" >&5
10361 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
10362 if test "x$ac_cv_lib_ldap_ldap_bind" = xyes; then :
10363 cat >>confdefs.h <<_ACEOF
10364 #define HAVE_LIBLDAP 1
10367 LIBS="-lldap $LIBS"
10370 as_fn_error $? "library 'ldap' is required for LDAP" "$LINENO" 5
10373 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
10374 if test "$enable_thread_safety" = yes; then
10375 # on some platforms ldap_r fails to link without PTHREAD_LIBS
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_simple_bind in -lldap_r" >&5
10377 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
10378 if ${ac_cv_lib_ldap_r_ldap_simple_bind+:} false; then :
10379 $as_echo_n "(cached) " >&6
10381 ac_check_lib_save_LIBS=$LIBS
10382 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
10383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10384 /* end confdefs.h. */
10386 /* Override any GCC internal prototype to avoid an error.
10387 Use char because int might match the return type of a GCC
10388 builtin and then its argument prototype would still apply. */
10392 char ldap_simple_bind ();
10396 return ldap_simple_bind ();
10401 if ac_fn_c_try_link "$LINENO"; then :
10402 ac_cv_lib_ldap_r_ldap_simple_bind=yes
10404 ac_cv_lib_ldap_r_ldap_simple_bind=no
10406 rm -f core conftest.err conftest.$ac_objext \
10407 conftest$ac_exeext conftest.$ac_ext
10408 LIBS=$ac_check_lib_save_LIBS
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
10411 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
10412 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = xyes; then :
10413 cat >>confdefs.h <<_ACEOF
10414 #define HAVE_LIBLDAP_R 1
10417 LIBS="-lldap_r $LIBS"
10420 as_fn_error $? "library 'ldap_r' is required for LDAP" "$LINENO" 5
10423 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
10425 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lwldap32" >&5
10429 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
10430 if ${ac_cv_lib_wldap32_ldap_bind+:} false; then :
10431 $as_echo_n "(cached) " >&6
10433 ac_check_lib_save_LIBS=$LIBS
10434 LIBS="-lwldap32 $LIBS"
10435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10436 /* end confdefs.h. */
10438 /* Override any GCC internal prototype to avoid an error.
10439 Use char because int might match the return type of a GCC
10440 builtin and then its argument prototype would still apply. */
10448 return ldap_bind ();
10453 if ac_fn_c_try_link "$LINENO"; then :
10454 ac_cv_lib_wldap32_ldap_bind=yes
10456 ac_cv_lib_wldap32_ldap_bind=no
10458 rm -f core conftest.err conftest.$ac_objext \
10459 conftest$ac_exeext conftest.$ac_ext
10460 LIBS=$ac_check_lib_save_LIBS
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wldap32_ldap_bind" >&5
10463 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
10464 if test "x$ac_cv_lib_wldap32_ldap_bind" = xyes; then :
10465 cat >>confdefs.h <<_ACEOF
10466 #define HAVE_LIBWLDAP32 1
10469 LIBS="-lwldap32 $LIBS"
10472 as_fn_error $? "library 'wldap32' is required for LDAP" "$LINENO" 5
10475 LDAP_LIBS_FE="-lwldap32"
10476 LDAP_LIBS_BE="-lwldap32"
10483 # for contrib/sepgsql
10484 if test "$with_selinux" = yes; then
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for security_compute_create_name in -lselinux" >&5
10486 $as_echo_n "checking for security_compute_create_name in -lselinux... " >&6; }
10487 if ${ac_cv_lib_selinux_security_compute_create_name+:} false; then :
10488 $as_echo_n "(cached) " >&6
10490 ac_check_lib_save_LIBS=$LIBS
10491 LIBS="-lselinux $LIBS"
10492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10493 /* end confdefs.h. */
10495 /* Override any GCC internal prototype to avoid an error.
10496 Use char because int might match the return type of a GCC
10497 builtin and then its argument prototype would still apply. */
10501 char security_compute_create_name ();
10505 return security_compute_create_name ();
10510 if ac_fn_c_try_link "$LINENO"; then :
10511 ac_cv_lib_selinux_security_compute_create_name=yes
10513 ac_cv_lib_selinux_security_compute_create_name=no
10515 rm -f core conftest.err conftest.$ac_objext \
10516 conftest$ac_exeext conftest.$ac_ext
10517 LIBS=$ac_check_lib_save_LIBS
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_security_compute_create_name" >&5
10520 $as_echo "$ac_cv_lib_selinux_security_compute_create_name" >&6; }
10521 if test "x$ac_cv_lib_selinux_security_compute_create_name" = xyes; then :
10522 cat >>confdefs.h <<_ACEOF
10523 #define HAVE_LIBSELINUX 1
10526 LIBS="-lselinux $LIBS"
10529 as_fn_error $? "library 'libselinux', version 2.1.10 or newer, is required for SELinux support" "$LINENO" 5
10534 # for contrib/uuid-ossp
10535 if test "$with_uuid" = bsd ; then
10536 # On BSD, the UUID functions are in libc
10537 ac_fn_c_check_func "$LINENO" "uuid_to_string" "ac_cv_func_uuid_to_string"
10538 if test "x$ac_cv_func_uuid_to_string" = xyes; then :
10541 as_fn_error $? "BSD UUID functions are not present" "$LINENO" 5
10544 elif test "$with_uuid" = e2fs ; then
10545 # On macOS, the UUID functions are in libc
10546 ac_fn_c_check_func "$LINENO" "uuid_generate" "ac_cv_func_uuid_generate"
10547 if test "x$ac_cv_func_uuid_generate" = xyes; then :
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
10551 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
10552 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
10553 $as_echo_n "(cached) " >&6
10555 ac_check_lib_save_LIBS=$LIBS
10556 LIBS="-luuid $LIBS"
10557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10558 /* end confdefs.h. */
10560 /* Override any GCC internal prototype to avoid an error.
10561 Use char because int might match the return type of a GCC
10562 builtin and then its argument prototype would still apply. */
10566 char uuid_generate ();
10570 return uuid_generate ();
10575 if ac_fn_c_try_link "$LINENO"; then :
10576 ac_cv_lib_uuid_uuid_generate=yes
10578 ac_cv_lib_uuid_uuid_generate=no
10580 rm -f core conftest.err conftest.$ac_objext \
10581 conftest$ac_exeext conftest.$ac_ext
10582 LIBS=$ac_check_lib_save_LIBS
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
10585 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
10586 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
10589 as_fn_error $? "library 'uuid' is required for E2FS UUID" "$LINENO" 5
10594 elif test "$with_uuid" = ossp ; then
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_export in -lossp-uuid" >&5
10596 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
10597 if ${ac_cv_lib_ossp_uuid_uuid_export+:} false; then :
10598 $as_echo_n "(cached) " >&6
10600 ac_check_lib_save_LIBS=$LIBS
10601 LIBS="-lossp-uuid $LIBS"
10602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10603 /* end confdefs.h. */
10605 /* Override any GCC internal prototype to avoid an error.
10606 Use char because int might match the return type of a GCC
10607 builtin and then its argument prototype would still apply. */
10611 char uuid_export ();
10615 return uuid_export ();
10620 if ac_fn_c_try_link "$LINENO"; then :
10621 ac_cv_lib_ossp_uuid_uuid_export=yes
10623 ac_cv_lib_ossp_uuid_uuid_export=no
10625 rm -f core conftest.err conftest.$ac_objext \
10626 conftest$ac_exeext conftest.$ac_ext
10627 LIBS=$ac_check_lib_save_LIBS
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
10630 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
10631 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = xyes; then :
10632 UUID_LIBS="-lossp-uuid"
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_export in -luuid" >&5
10635 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
10636 if ${ac_cv_lib_uuid_uuid_export+:} false; then :
10637 $as_echo_n "(cached) " >&6
10639 ac_check_lib_save_LIBS=$LIBS
10640 LIBS="-luuid $LIBS"
10641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10642 /* end confdefs.h. */
10644 /* Override any GCC internal prototype to avoid an error.
10645 Use char because int might match the return type of a GCC
10646 builtin and then its argument prototype would still apply. */
10650 char uuid_export ();
10654 return uuid_export ();
10659 if ac_fn_c_try_link "$LINENO"; then :
10660 ac_cv_lib_uuid_uuid_export=yes
10662 ac_cv_lib_uuid_uuid_export=no
10664 rm -f core conftest.err conftest.$ac_objext \
10665 conftest$ac_exeext conftest.$ac_ext
10666 LIBS=$ac_check_lib_save_LIBS
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_export" >&5
10669 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
10670 if test "x$ac_cv_lib_uuid_uuid_export" = xyes; then :
10673 as_fn_error $? "library 'ossp-uuid' or 'uuid' is required for OSSP UUID" "$LINENO" 5
10686 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 sys/epoll.h sys/ipc.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/sockio.h sys/tas.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h
10688 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10689 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10690 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10691 cat >>confdefs.h <<_ACEOF
10692 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10700 # On BSD, test for net/if.h will fail unless sys/socket.h
10701 # is included first.
10702 for ac_header in net/if.h
10704 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
10705 #include <sys/socket.h>
10708 if test "x$ac_cv_header_net_if_h" = xyes; then :
10709 cat >>confdefs.h <<_ACEOF
10710 #define HAVE_NET_IF_H 1
10718 # On OpenBSD, test for sys/ucred.h will fail unless sys/param.h
10719 # is included first.
10720 for ac_header in sys/ucred.h
10722 ac_fn_c_check_header_compile "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default
10723 #include <sys/param.h>
10726 if test "x$ac_cv_header_sys_ucred_h" = xyes; then :
10727 cat >>confdefs.h <<_ACEOF
10728 #define HAVE_SYS_UCRED_H 1
10736 # At least on IRIX, test for netinet/tcp.h will fail unless
10737 # netinet/in.h is included first.
10738 for ac_header in netinet/tcp.h
10740 ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default
10741 #include <netinet/in.h>
10744 if test "x$ac_cv_header_netinet_tcp_h" = xyes; then :
10745 cat >>confdefs.h <<_ACEOF
10746 #define HAVE_NETINET_TCP_H 1
10754 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
10755 for ac_header in readline/readline.h
10757 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
10758 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
10759 cat >>confdefs.h <<_ACEOF
10760 #define HAVE_READLINE_READLINE_H 1
10764 for ac_header in readline.h
10766 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
10767 if test "x$ac_cv_header_readline_h" = xyes; then :
10768 cat >>confdefs.h <<_ACEOF
10769 #define HAVE_READLINE_H 1
10773 as_fn_error $? "readline header not found
10774 If you have readline already installed, see config.log for details on the
10775 failure. It is possible the compiler isn't looking in the proper directory.
10776 Use --without-readline to disable readline support." "$LINENO" 5
10785 for ac_header in readline/history.h
10787 ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
10788 if test "x$ac_cv_header_readline_history_h" = xyes; then :
10789 cat >>confdefs.h <<_ACEOF
10790 #define HAVE_READLINE_HISTORY_H 1
10794 for ac_header in history.h
10796 ac_fn_c_check_header_mongrel "$LINENO" "history.h" "ac_cv_header_history_h" "$ac_includes_default"
10797 if test "x$ac_cv_header_history_h" = xyes; then :
10798 cat >>confdefs.h <<_ACEOF
10799 #define HAVE_HISTORY_H 1
10803 as_fn_error $? "history header not found
10804 If you have readline already installed, see config.log for details on the
10805 failure. It is possible the compiler isn't looking in the proper directory.
10806 Use --without-readline to disable readline support." "$LINENO" 5
10817 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
10818 # Some installations of libedit usurp /usr/include/readline/, which seems
10819 # bad practice, since in combined installations readline will have its headers
10820 # there. We might have to resort to AC_EGREP checks to make sure we found
10821 # the proper header...
10822 for ac_header in editline/readline.h
10824 ac_fn_c_check_header_mongrel "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
10825 if test "x$ac_cv_header_editline_readline_h" = xyes; then :
10826 cat >>confdefs.h <<_ACEOF
10827 #define HAVE_EDITLINE_READLINE_H 1
10831 for ac_header in readline.h
10833 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
10834 if test "x$ac_cv_header_readline_h" = xyes; then :
10835 cat >>confdefs.h <<_ACEOF
10836 #define HAVE_READLINE_H 1
10840 for ac_header in readline/readline.h
10842 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
10843 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
10844 cat >>confdefs.h <<_ACEOF
10845 #define HAVE_READLINE_READLINE_H 1
10849 as_fn_error $? "readline header not found
10850 If you have libedit already installed, see config.log for details on the
10851 failure. It is possible the compiler isn't looking in the proper directory.
10852 Use --without-readline to disable libedit support." "$LINENO" 5
10865 # Note: in a libedit installation, history.h is sometimes a dummy, and may
10866 # not be there at all. Hence, don't complain if not found. We must check
10867 # though, since in yet other versions it is an independent header.
10868 for ac_header in editline/history.h
10870 ac_fn_c_check_header_mongrel "$LINENO" "editline/history.h" "ac_cv_header_editline_history_h" "$ac_includes_default"
10871 if test "x$ac_cv_header_editline_history_h" = xyes; then :
10872 cat >>confdefs.h <<_ACEOF
10873 #define HAVE_EDITLINE_HISTORY_H 1
10877 for ac_header in history.h
10879 ac_fn_c_check_header_mongrel "$LINENO" "history.h" "ac_cv_header_history_h" "$ac_includes_default"
10880 if test "x$ac_cv_header_history_h" = xyes; then :
10881 cat >>confdefs.h <<_ACEOF
10882 #define HAVE_HISTORY_H 1
10886 for ac_header in readline/history.h
10888 ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
10889 if test "x$ac_cv_header_readline_history_h" = xyes; then :
10890 cat >>confdefs.h <<_ACEOF
10891 #define HAVE_READLINE_HISTORY_H 1
10908 if test "$with_zlib" = yes; then
10909 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
10910 if test "x$ac_cv_header_zlib_h" = xyes; then :
10913 as_fn_error $? "zlib header not found
10914 If you have zlib already installed, see config.log for details on the
10915 failure. It is possible the compiler isn't looking in the proper directory.
10916 Use --without-zlib to disable zlib support." "$LINENO" 5
10922 if test "$with_gssapi" = yes ; then
10923 for ac_header in gssapi/gssapi.h
10925 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
10926 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
10927 cat >>confdefs.h <<_ACEOF
10928 #define HAVE_GSSAPI_GSSAPI_H 1
10932 for ac_header in gssapi.h
10934 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
10935 if test "x$ac_cv_header_gssapi_h" = xyes; then :
10936 cat >>confdefs.h <<_ACEOF
10937 #define HAVE_GSSAPI_H 1
10941 as_fn_error $? "gssapi.h header file is required for GSSAPI" "$LINENO" 5
10952 if test "$with_openssl" = yes ; then
10953 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
10954 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
10957 as_fn_error $? "header file <openssl/ssl.h> is required for OpenSSL" "$LINENO" 5
10961 ac_fn_c_check_header_mongrel "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default"
10962 if test "x$ac_cv_header_openssl_err_h" = xyes; then :
10965 as_fn_error $? "header file <openssl/err.h> is required for OpenSSL" "$LINENO" 5
10971 if test "$with_pam" = yes ; then
10972 for ac_header in security/pam_appl.h
10974 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
10975 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
10976 cat >>confdefs.h <<_ACEOF
10977 #define HAVE_SECURITY_PAM_APPL_H 1
10981 for ac_header in pam/pam_appl.h
10983 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
10984 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
10985 cat >>confdefs.h <<_ACEOF
10986 #define HAVE_PAM_PAM_APPL_H 1
10990 as_fn_error $? "header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." "$LINENO" 5
11001 if test "$with_bsd_auth" = yes ; then
11002 ac_fn_c_check_header_mongrel "$LINENO" "bsd_auth.h" "ac_cv_header_bsd_auth_h" "$ac_includes_default"
11003 if test "x$ac_cv_header_bsd_auth_h" = xyes; then :
11006 as_fn_error $? "header file <bsd_auth.h> is required for BSD Authentication support" "$LINENO" 5
11012 if test "$with_systemd" = yes ; then
11013 ac_fn_c_check_header_mongrel "$LINENO" "systemd/sd-daemon.h" "ac_cv_header_systemd_sd_daemon_h" "$ac_includes_default"
11014 if test "x$ac_cv_header_systemd_sd_daemon_h" = xyes; then :
11017 as_fn_error $? "header file <systemd/sd-daemon.h> is required for systemd support" "$LINENO" 5
11023 if test "$with_libxml" = yes ; then
11024 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
11025 if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
11028 as_fn_error $? "header file <libxml/parser.h> is required for XML support" "$LINENO" 5
11034 if test "$with_libxslt" = yes ; then
11035 ac_fn_c_check_header_mongrel "$LINENO" "libxslt/xslt.h" "ac_cv_header_libxslt_xslt_h" "$ac_includes_default"
11036 if test "x$ac_cv_header_libxslt_xslt_h" = xyes; then :
11039 as_fn_error $? "header file <libxslt/xslt.h> is required for XSLT support" "$LINENO" 5
11045 if test "$with_ldap" = yes ; then
11046 if test "$PORTNAME" != "win32"; then
11047 for ac_header in ldap.h
11049 ac_fn_c_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
11050 if test "x$ac_cv_header_ldap_h" = xyes; then :
11051 cat >>confdefs.h <<_ACEOF
11052 #define HAVE_LDAP_H 1
11056 as_fn_error $? "header file <ldap.h> is required for LDAP" "$LINENO" 5
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible LDAP implementation" >&5
11062 $as_echo_n "checking for compatible LDAP implementation... " >&6; }
11063 if ${pgac_cv_ldap_safe+:} false; then :
11064 $as_echo_n "(cached) " >&6
11066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11067 /* end confdefs.h. */
11069 #if !defined(LDAP_VENDOR_VERSION) || \
11070 (defined(LDAP_API_FEATURE_X_OPENLDAP) && \
11071 LDAP_VENDOR_VERSION >= 20424 && LDAP_VENDOR_VERSION <= 20431)
11082 if ac_fn_c_try_compile "$LINENO"; then :
11083 pgac_cv_ldap_safe=yes
11085 pgac_cv_ldap_safe=no
11087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_ldap_safe" >&5
11090 $as_echo "$pgac_cv_ldap_safe" >&6; }
11092 if test "$pgac_cv_ldap_safe" != yes; then
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
11094 *** With OpenLDAP versions 2.4.24 through 2.4.31, inclusive, each backend
11095 *** process that loads libpq (via WAL receiver, dblink, or postgres_fdw) and
11096 *** also uses LDAP will crash on exit." >&5
11097 $as_echo "$as_me: WARNING:
11098 *** With OpenLDAP versions 2.4.24 through 2.4.31, inclusive, each backend
11099 *** process that loads libpq (via WAL receiver, dblink, or postgres_fdw) and
11100 *** also uses LDAP will crash on exit." >&2;}
11103 for ac_header in winldap.h
11105 ac_fn_c_check_header_compile "$LINENO" "winldap.h" "ac_cv_header_winldap_h" "$ac_includes_default
11106 #include <windows.h>
11109 if test "x$ac_cv_header_winldap_h" = xyes; then :
11110 cat >>confdefs.h <<_ACEOF
11111 #define HAVE_WINLDAP_H 1
11115 as_fn_error $? "header file <winldap.h> is required for LDAP" "$LINENO" 5
11123 if test "$with_bonjour" = yes ; then
11124 ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
11125 if test "x$ac_cv_header_dns_sd_h" = xyes; then :
11128 as_fn_error $? "header file <dns_sd.h> is required for Bonjour" "$LINENO" 5
11134 # for contrib/uuid-ossp
11135 if test "$with_uuid" = bsd ; then
11136 for ac_header in uuid.h
11138 ac_fn_c_check_header_mongrel "$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
11139 if test "x$ac_cv_header_uuid_h" = xyes; then :
11140 cat >>confdefs.h <<_ACEOF
11141 #define HAVE_UUID_H 1
11143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11144 /* end confdefs.h. */
11148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11149 $EGREP "uuid_to_string" >/dev/null 2>&1; then :
11152 as_fn_error $? "header file <uuid.h> does not match BSD UUID library" "$LINENO" 5
11157 as_fn_error $? "header file <uuid.h> is required for BSD UUID" "$LINENO" 5
11162 elif test "$with_uuid" = e2fs ; then
11163 for ac_header in uuid/uuid.h
11165 ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
11166 if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
11167 cat >>confdefs.h <<_ACEOF
11168 #define HAVE_UUID_UUID_H 1
11170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11171 /* end confdefs.h. */
11172 #include <uuid/uuid.h>
11175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11176 $EGREP "uuid_generate" >/dev/null 2>&1; then :
11179 as_fn_error $? "header file <uuid/uuid.h> does not match E2FS UUID library" "$LINENO" 5
11184 for ac_header in uuid.h
11186 ac_fn_c_check_header_mongrel "$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
11187 if test "x$ac_cv_header_uuid_h" = xyes; then :
11188 cat >>confdefs.h <<_ACEOF
11189 #define HAVE_UUID_H 1
11191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11192 /* end confdefs.h. */
11196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11197 $EGREP "uuid_generate" >/dev/null 2>&1; then :
11200 as_fn_error $? "header file <uuid.h> does not match E2FS UUID library" "$LINENO" 5
11205 as_fn_error $? "header file <uuid/uuid.h> or <uuid.h> is required for E2FS UUID" "$LINENO" 5
11214 elif test "$with_uuid" = ossp ; then
11215 for ac_header in ossp/uuid.h
11217 ac_fn_c_check_header_mongrel "$LINENO" "ossp/uuid.h" "ac_cv_header_ossp_uuid_h" "$ac_includes_default"
11218 if test "x$ac_cv_header_ossp_uuid_h" = xyes; then :
11219 cat >>confdefs.h <<_ACEOF
11220 #define HAVE_OSSP_UUID_H 1
11222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11223 /* end confdefs.h. */
11224 #include <ossp/uuid.h>
11227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11228 $EGREP "uuid_export" >/dev/null 2>&1; then :
11231 as_fn_error $? "header file <ossp/uuid.h> does not match OSSP UUID library" "$LINENO" 5
11236 for ac_header in uuid.h
11238 ac_fn_c_check_header_mongrel "$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
11239 if test "x$ac_cv_header_uuid_h" = xyes; then :
11240 cat >>confdefs.h <<_ACEOF
11241 #define HAVE_UUID_H 1
11243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11244 /* end confdefs.h. */
11248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11249 $EGREP "uuid_export" >/dev/null 2>&1; then :
11252 as_fn_error $? "header file <uuid.h> does not match OSSP UUID library" "$LINENO" 5
11257 as_fn_error $? "header file <ossp/uuid.h> or <uuid.h> is required for OSSP UUID" "$LINENO" 5
11268 if test "$PORTNAME" = "win32" ; then
11269 for ac_header in crtdefs.h
11271 ac_fn_c_check_header_mongrel "$LINENO" "crtdefs.h" "ac_cv_header_crtdefs_h" "$ac_includes_default"
11272 if test "x$ac_cv_header_crtdefs_h" = xyes; then :
11273 cat >>confdefs.h <<_ACEOF
11274 #define HAVE_CRTDEFS_H 1
11284 ## Types, structures, compiler characteristics
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11288 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11289 if ${ac_cv_c_bigendian+:} false; then :
11290 $as_echo_n "(cached) " >&6
11292 ac_cv_c_bigendian=unknown
11293 # See if we're dealing with a universal compiler.
11294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11295 /* end confdefs.h. */
11296 #ifndef __APPLE_CC__
11297 not a universal capable compiler
11302 if ac_fn_c_try_compile "$LINENO"; then :
11304 # Check for potential -arch flags. It is not universal unless
11305 # there are at least two -arch flags with different values.
11308 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11309 if test -n "$ac_prev"; then
11311 i?86 | x86_64 | ppc | ppc64)
11312 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11315 ac_cv_c_bigendian=universal
11321 elif test "x$ac_word" = "x-arch"; then
11326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11327 if test $ac_cv_c_bigendian = unknown; then
11328 # See if sys/param.h defines the BYTE_ORDER macro.
11329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11330 /* end confdefs.h. */
11331 #include <sys/types.h>
11332 #include <sys/param.h>
11337 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11338 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11340 bogus endian macros
11347 if ac_fn_c_try_compile "$LINENO"; then :
11348 # It does; now see whether it defined to BIG_ENDIAN or not.
11349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11350 /* end confdefs.h. */
11351 #include <sys/types.h>
11352 #include <sys/param.h>
11357 #if BYTE_ORDER != BIG_ENDIAN
11365 if ac_fn_c_try_compile "$LINENO"; then :
11366 ac_cv_c_bigendian=yes
11368 ac_cv_c_bigendian=no
11370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11374 if test $ac_cv_c_bigendian = unknown; then
11375 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11377 /* end confdefs.h. */
11378 #include <limits.h>
11383 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11384 bogus endian macros
11391 if ac_fn_c_try_compile "$LINENO"; then :
11392 # It does; now see whether it defined to _BIG_ENDIAN or not.
11393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11394 /* end confdefs.h. */
11395 #include <limits.h>
11400 #ifndef _BIG_ENDIAN
11408 if ac_fn_c_try_compile "$LINENO"; then :
11409 ac_cv_c_bigendian=yes
11411 ac_cv_c_bigendian=no
11413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11417 if test $ac_cv_c_bigendian = unknown; then
11418 # Compile a test program.
11419 if test "$cross_compiling" = yes; then :
11420 # Try to guess by grepping values from an object file.
11421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11422 /* end confdefs.h. */
11423 short int ascii_mm[] =
11424 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11425 short int ascii_ii[] =
11426 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11427 int use_ascii (int i) {
11428 return ascii_mm[i] + ascii_ii[i];
11430 short int ebcdic_ii[] =
11431 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11432 short int ebcdic_mm[] =
11433 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11434 int use_ebcdic (int i) {
11435 return ebcdic_mm[i] + ebcdic_ii[i];
11442 return use_ascii (foo) == use_ebcdic (foo);
11447 if ac_fn_c_try_compile "$LINENO"; then :
11448 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11449 ac_cv_c_bigendian=yes
11451 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11452 if test "$ac_cv_c_bigendian" = unknown; then
11453 ac_cv_c_bigendian=no
11455 # finding both strings is unlikely to happen, but who knows?
11456 ac_cv_c_bigendian=unknown
11460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11463 /* end confdefs.h. */
11464 $ac_includes_default
11469 /* Are we little or big endian? From Harbison&Steele. */
11473 char c[sizeof (long int)];
11476 return u.c[sizeof (long int) - 1] == 1;
11482 if ac_fn_c_try_run "$LINENO"; then :
11483 ac_cv_c_bigendian=no
11485 ac_cv_c_bigendian=yes
11487 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11488 conftest.$ac_objext conftest.beam conftest.$ac_ext
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11494 $as_echo "$ac_cv_c_bigendian" >&6; }
11495 case $ac_cv_c_bigendian in #(
11497 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11503 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11507 as_fn_error $? "unknown endianness
11508 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11512 $as_echo_n "checking for inline... " >&6; }
11513 if ${ac_cv_c_inline+:} false; then :
11514 $as_echo_n "(cached) " >&6
11517 for ac_kw in inline __inline__ __inline; do
11518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11519 /* end confdefs.h. */
11520 #ifndef __cplusplus
11522 static $ac_kw foo_t static_foo () {return 0; }
11523 $ac_kw foo_t foo () {return 0; }
11527 if ac_fn_c_try_compile "$LINENO"; then :
11528 ac_cv_c_inline=$ac_kw
11530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11531 test "$ac_cv_c_inline" != no && break
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11536 $as_echo "$ac_cv_c_inline" >&6; }
11538 case $ac_cv_c_inline in
11541 case $ac_cv_c_inline in
11543 *) ac_val=$ac_cv_c_inline;;
11545 cat >>confdefs.h <<_ACEOF
11546 #ifndef __cplusplus
11547 #define inline $ac_val
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf format archetype" >&5
11554 $as_echo_n "checking for printf format archetype... " >&6; }
11555 if ${pgac_cv_printf_archetype+:} false; then :
11556 $as_echo_n "(cached) " >&6
11558 ac_save_c_werror_flag=$ac_c_werror_flag
11559 ac_c_werror_flag=yes
11560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11561 /* end confdefs.h. */
11563 pgac_write(int ignore, const char *fmt,...)
11564 __attribute__((format(gnu_printf, 2, 3)));
11573 if ac_fn_c_try_compile "$LINENO"; then :
11574 pgac_cv_printf_archetype=gnu_printf
11576 pgac_cv_printf_archetype=printf
11578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11579 ac_c_werror_flag=$ac_save_c_werror_flag
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_printf_archetype" >&5
11582 $as_echo "$pgac_cv_printf_archetype" >&6; }
11584 cat >>confdefs.h <<_ACEOF
11585 #define PG_PRINTF_ATTRIBUTE $pgac_cv_printf_archetype
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
11591 $as_echo_n "checking for flexible array members... " >&6; }
11592 if ${ac_cv_c_flexmember+:} false; then :
11593 $as_echo_n "(cached) " >&6
11595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11596 /* end confdefs.h. */
11597 #include <stdlib.h>
11599 #include <stddef.h>
11600 struct s { int n; double d[]; };
11604 int m = getchar ();
11605 struct s *p = malloc (offsetof (struct s, d)
11606 + m * sizeof (double));
11608 return p->d != (double *) NULL;
11613 if ac_fn_c_try_compile "$LINENO"; then :
11614 ac_cv_c_flexmember=yes
11616 ac_cv_c_flexmember=no
11618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
11621 $as_echo "$ac_cv_c_flexmember" >&6; }
11622 if test $ac_cv_c_flexmember = yes; then
11624 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
11627 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed types" >&5
11632 $as_echo_n "checking for signed types... " >&6; }
11633 if ${pgac_cv_c_signed+:} false; then :
11634 $as_echo_n "(cached) " >&6
11636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11637 /* end confdefs.h. */
11642 signed char c; signed short s; signed int i;
11647 if ac_fn_c_try_compile "$LINENO"; then :
11648 pgac_cv_c_signed=yes
11650 pgac_cv_c_signed=no
11652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_c_signed" >&5
11655 $as_echo "$pgac_cv_c_signed" >&6; }
11656 if test x"$pgac_cv_c_signed" = xno ; then
11658 $as_echo "#define signed /**/" >>confdefs.h
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __func__" >&5
11662 $as_echo_n "checking for __func__... " >&6; }
11663 if ${pgac_cv_funcname_func_support+:} false; then :
11664 $as_echo_n "(cached) " >&6
11666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11667 /* end confdefs.h. */
11672 printf("%s\n", __func__);
11677 if ac_fn_c_try_compile "$LINENO"; then :
11678 pgac_cv_funcname_func_support=yes
11680 pgac_cv_funcname_func_support=no
11682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_funcname_func_support" >&5
11685 $as_echo "$pgac_cv_funcname_func_support" >&6; }
11686 if test x"$pgac_cv_funcname_func_support" = xyes ; then
11688 $as_echo "#define HAVE_FUNCNAME__FUNC 1" >>confdefs.h
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __FUNCTION__" >&5
11692 $as_echo_n "checking for __FUNCTION__... " >&6; }
11693 if ${pgac_cv_funcname_function_support+:} false; then :
11694 $as_echo_n "(cached) " >&6
11696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11697 /* end confdefs.h. */
11702 printf("%s\n", __FUNCTION__);
11707 if ac_fn_c_try_compile "$LINENO"; then :
11708 pgac_cv_funcname_function_support=yes
11710 pgac_cv_funcname_function_support=no
11712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_funcname_function_support" >&5
11715 $as_echo "$pgac_cv_funcname_function_support" >&6; }
11716 if test x"$pgac_cv_funcname_function_support" = xyes ; then
11718 $as_echo "#define HAVE_FUNCNAME__FUNCTION 1" >>confdefs.h
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Static_assert" >&5
11723 $as_echo_n "checking for _Static_assert... " >&6; }
11724 if ${pgac_cv__static_assert+:} false; then :
11725 $as_echo_n "(cached) " >&6
11727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11728 /* end confdefs.h. */
11733 ({ _Static_assert(1, "foo"); })
11738 if ac_fn_c_try_link "$LINENO"; then :
11739 pgac_cv__static_assert=yes
11741 pgac_cv__static_assert=no
11743 rm -f core conftest.err conftest.$ac_objext \
11744 conftest$ac_exeext conftest.$ac_ext
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__static_assert" >&5
11747 $as_echo "$pgac_cv__static_assert" >&6; }
11748 if test x"$pgac_cv__static_assert" = xyes ; then
11750 $as_echo "#define HAVE__STATIC_ASSERT 1" >>confdefs.h
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
11754 $as_echo_n "checking for typeof... " >&6; }
11755 if ${pgac_cv_c_typeof+:} false; then :
11756 $as_echo_n "(cached) " >&6
11758 pgac_cv_c_typeof=no
11759 for pgac_kw in typeof __typeof__ decltype; do
11760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11761 /* end confdefs.h. */
11774 if ac_fn_c_try_compile "$LINENO"; then :
11775 pgac_cv_c_typeof=$pgac_kw
11777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11778 test "$pgac_cv_c_typeof" != no && break
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_c_typeof" >&5
11782 $as_echo "$pgac_cv_c_typeof" >&6; }
11783 if test "$pgac_cv_c_typeof" != no; then
11785 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
11787 if test "$pgac_cv_c_typeof" != typeof; then
11789 cat >>confdefs.h <<_ACEOF
11790 #define typeof $pgac_cv_c_typeof
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_types_compatible_p" >&5
11796 $as_echo_n "checking for __builtin_types_compatible_p... " >&6; }
11797 if ${pgac_cv__types_compatible+:} false; then :
11798 $as_echo_n "(cached) " >&6
11800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11801 /* end confdefs.h. */
11806 int x; static int y[__builtin_types_compatible_p(__typeof__(x), int)];
11811 if ac_fn_c_try_compile "$LINENO"; then :
11812 pgac_cv__types_compatible=yes
11814 pgac_cv__types_compatible=no
11816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__types_compatible" >&5
11819 $as_echo "$pgac_cv__types_compatible" >&6; }
11820 if test x"$pgac_cv__types_compatible" = xyes ; then
11822 $as_echo "#define HAVE__BUILTIN_TYPES_COMPATIBLE_P 1" >>confdefs.h
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap16" >&5
11826 $as_echo_n "checking for __builtin_bswap16... " >&6; }
11827 if ${pgac_cv__builtin_bswap16+:} false; then :
11828 $as_echo_n "(cached) " >&6
11830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11831 /* end confdefs.h. */
11832 static unsigned long int x = __builtin_bswap16(0xaabb);
11835 if ac_fn_c_try_compile "$LINENO"; then :
11836 pgac_cv__builtin_bswap16=yes
11838 pgac_cv__builtin_bswap16=no
11840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_bswap16" >&5
11843 $as_echo "$pgac_cv__builtin_bswap16" >&6; }
11844 if test x"$pgac_cv__builtin_bswap16" = xyes ; then
11846 $as_echo "#define HAVE__BUILTIN_BSWAP16 1" >>confdefs.h
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap32" >&5
11850 $as_echo_n "checking for __builtin_bswap32... " >&6; }
11851 if ${pgac_cv__builtin_bswap32+:} false; then :
11852 $as_echo_n "(cached) " >&6
11854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11855 /* end confdefs.h. */
11856 static unsigned long int x = __builtin_bswap32(0xaabbccdd);
11859 if ac_fn_c_try_compile "$LINENO"; then :
11860 pgac_cv__builtin_bswap32=yes
11862 pgac_cv__builtin_bswap32=no
11864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_bswap32" >&5
11867 $as_echo "$pgac_cv__builtin_bswap32" >&6; }
11868 if test x"$pgac_cv__builtin_bswap32" = xyes ; then
11870 $as_echo "#define HAVE__BUILTIN_BSWAP32 1" >>confdefs.h
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap64" >&5
11874 $as_echo_n "checking for __builtin_bswap64... " >&6; }
11875 if ${pgac_cv__builtin_bswap64+:} false; then :
11876 $as_echo_n "(cached) " >&6
11878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11879 /* end confdefs.h. */
11880 static unsigned long int x = __builtin_bswap64(0xaabbccddeeff0011);
11883 if ac_fn_c_try_compile "$LINENO"; then :
11884 pgac_cv__builtin_bswap64=yes
11886 pgac_cv__builtin_bswap64=no
11888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_bswap64" >&5
11891 $as_echo "$pgac_cv__builtin_bswap64" >&6; }
11892 if test x"$pgac_cv__builtin_bswap64" = xyes ; then
11894 $as_echo "#define HAVE__BUILTIN_BSWAP64 1" >>confdefs.h
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_constant_p" >&5
11898 $as_echo_n "checking for __builtin_constant_p... " >&6; }
11899 if ${pgac_cv__builtin_constant_p+:} false; then :
11900 $as_echo_n "(cached) " >&6
11902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11903 /* end confdefs.h. */
11905 static int y[__builtin_constant_p(x) ? x : 1];
11906 static int z[__builtin_constant_p("string literal") ? 1 : x];
11910 if ac_fn_c_try_compile "$LINENO"; then :
11911 pgac_cv__builtin_constant_p=yes
11913 pgac_cv__builtin_constant_p=no
11915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_constant_p" >&5
11918 $as_echo "$pgac_cv__builtin_constant_p" >&6; }
11919 if test x"$pgac_cv__builtin_constant_p" = xyes ; then
11921 $as_echo "#define HAVE__BUILTIN_CONSTANT_P 1" >>confdefs.h
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unreachable" >&5
11925 $as_echo_n "checking for __builtin_unreachable... " >&6; }
11926 if ${pgac_cv__builtin_unreachable+:} false; then :
11927 $as_echo_n "(cached) " >&6
11929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11930 /* end confdefs.h. */
11935 __builtin_unreachable();
11940 if ac_fn_c_try_link "$LINENO"; then :
11941 pgac_cv__builtin_unreachable=yes
11943 pgac_cv__builtin_unreachable=no
11945 rm -f core conftest.err conftest.$ac_objext \
11946 conftest$ac_exeext conftest.$ac_ext
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_unreachable" >&5
11949 $as_echo "$pgac_cv__builtin_unreachable" >&6; }
11950 if test x"$pgac_cv__builtin_unreachable" = xyes ; then
11952 $as_echo "#define HAVE__BUILTIN_UNREACHABLE 1" >>confdefs.h
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for computed goto support" >&5
11956 $as_echo_n "checking for computed goto support... " >&6; }
11957 if ${pgac_cv_computed_goto+:} false; then :
11958 $as_echo_n "(cached) " >&6
11960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11961 /* end confdefs.h. */
11966 void *labeladdrs[] = {&&my_label};
11967 goto *labeladdrs[0];
11975 if ac_fn_c_try_compile "$LINENO"; then :
11976 pgac_cv_computed_goto=yes
11978 pgac_cv_computed_goto=no
11980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_computed_goto" >&5
11983 $as_echo "$pgac_cv_computed_goto" >&6; }
11984 if test x"$pgac_cv_computed_goto" = xyes ; then
11986 $as_echo "#define HAVE_COMPUTED_GOTO 1" >>confdefs.h
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __VA_ARGS__" >&5
11990 $as_echo_n "checking for __VA_ARGS__... " >&6; }
11991 if ${pgac_cv__va_args+:} false; then :
11992 $as_echo_n "(cached) " >&6
11994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11995 /* end confdefs.h. */
12000 #define debug(...) fprintf(stderr, __VA_ARGS__)
12001 debug("%s", "blarg");
12007 if ac_fn_c_try_compile "$LINENO"; then :
12008 pgac_cv__va_args=yes
12010 pgac_cv__va_args=no
12012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__va_args" >&5
12015 $as_echo "$pgac_cv__va_args" >&6; }
12016 if test x"$pgac_cv__va_args" = xyes ; then
12018 $as_echo "#define HAVE__VA_ARGS 1" >>confdefs.h
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12022 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
12023 if ${ac_cv_struct_tm+:} false; then :
12024 $as_echo_n "(cached) " >&6
12026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12027 /* end confdefs.h. */
12028 #include <sys/types.h>
12035 int *p = &tm.tm_sec;
12041 if ac_fn_c_try_compile "$LINENO"; then :
12042 ac_cv_struct_tm=time.h
12044 ac_cv_struct_tm=sys/time.h
12046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
12049 $as_echo "$ac_cv_struct_tm" >&6; }
12050 if test $ac_cv_struct_tm = sys/time.h; then
12052 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
12056 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
12057 #include <$ac_cv_struct_tm>
12060 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
12062 cat >>confdefs.h <<_ACEOF
12063 #define HAVE_STRUCT_TM_TM_ZONE 1
12069 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12071 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
12075 $as_echo_n "checking for tzname... " >&6; }
12076 if ${ac_cv_var_tzname+:} false; then :
12077 $as_echo_n "(cached) " >&6
12079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12080 /* end confdefs.h. */
12081 #include <stdlib.h>
12083 #ifndef tzname /* For SGI. */
12084 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
12095 if ac_fn_c_try_link "$LINENO"; then :
12096 ac_cv_var_tzname=yes
12098 ac_cv_var_tzname=no
12100 rm -f core conftest.err conftest.$ac_objext \
12101 conftest$ac_exeext conftest.$ac_ext
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
12104 $as_echo "$ac_cv_var_tzname" >&6; }
12105 if test $ac_cv_var_tzname = yes; then
12107 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
12111 ac_fn_c_check_type "$LINENO" "union semun" "ac_cv_type_union_semun" "#include <sys/types.h>
12112 #ifdef HAVE_SYS_IPC_H
12113 #include <sys/ipc.h>
12115 #ifdef HAVE_SYS_SEM_H
12116 #include <sys/sem.h>
12119 if test "x$ac_cv_type_union_semun" = xyes; then :
12121 cat >>confdefs.h <<_ACEOF
12122 #define HAVE_UNION_SEMUN 1
12128 ac_fn_c_check_type "$LINENO" "struct sockaddr_un" "ac_cv_type_struct_sockaddr_un" "#include <sys/types.h>
12129 #ifdef HAVE_SYS_UN_H
12130 #include <sys/un.h>
12134 if test "x$ac_cv_type_struct_sockaddr_un" = xyes; then :
12136 $as_echo "#define HAVE_UNIX_SOCKETS 1" >>confdefs.h
12140 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
12141 #include <sys/socket.h>
12144 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
12146 cat >>confdefs.h <<_ACEOF
12147 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
12153 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
12154 #include <sys/socket.h>
12157 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
12159 cat >>confdefs.h <<_ACEOF
12160 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
12165 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "#include <sys/types.h>
12166 #include <sys/socket.h>
12169 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then :
12171 cat >>confdefs.h <<_ACEOF
12172 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
12177 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_len" "ac_cv_member_struct_sockaddr_storage_ss_len" "#include <sys/types.h>
12178 #include <sys/socket.h>
12181 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = xyes; then :
12183 cat >>confdefs.h <<_ACEOF
12184 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
12189 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_len" "ac_cv_member_struct_sockaddr_storage___ss_len" "#include <sys/types.h>
12190 #include <sys/socket.h>
12193 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = xyes; then :
12195 cat >>confdefs.h <<_ACEOF
12196 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
12201 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
12202 #include <sys/socket.h>
12205 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
12207 cat >>confdefs.h <<_ACEOF
12208 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
12214 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
12215 #include <sys/socket.h>
12219 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
12221 cat >>confdefs.h <<_ACEOF
12222 #define HAVE_STRUCT_ADDRINFO 1
12229 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
12230 if test "x$ac_cv_type_intptr_t" = xyes; then :
12232 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
12235 for ac_type in 'int' 'long int' 'long long int'; do
12236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12237 /* end confdefs.h. */
12238 $ac_includes_default
12242 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
12243 test_array [0] = 0;
12244 return test_array [0];
12250 if ac_fn_c_try_compile "$LINENO"; then :
12252 cat >>confdefs.h <<_ACEOF
12253 #define intptr_t $ac_type
12258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12259 test -z "$ac_type" && break
12265 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
12266 if test "x$ac_cv_type_uintptr_t" = xyes; then :
12268 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
12271 for ac_type in 'unsigned int' 'unsigned long int' \
12272 'unsigned long long int'; do
12273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12274 /* end confdefs.h. */
12275 $ac_includes_default
12279 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
12280 test_array [0] = 0;
12281 return test_array [0];
12287 if ac_fn_c_try_compile "$LINENO"; then :
12289 cat >>confdefs.h <<_ACEOF
12290 #define uintptr_t $ac_type
12295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12296 test -z "$ac_type" && break
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
12303 $as_echo_n "checking for unsigned long long int... " >&6; }
12304 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
12305 $as_echo_n "(cached) " >&6
12307 ac_cv_type_unsigned_long_long_int=yes
12308 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
12309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12310 /* end confdefs.h. */
12312 /* For now, do not test the preprocessor; as of 2007 there are too many
12313 implementations with broken preprocessors. Perhaps this can
12314 be revisited in 2012. In the meantime, code should not expect
12315 #if to work with literals wider than 32 bits. */
12316 /* Test literals. */
12317 long long int ll = 9223372036854775807ll;
12318 long long int nll = -9223372036854775807LL;
12319 unsigned long long int ull = 18446744073709551615ULL;
12320 /* Test constant expressions. */
12321 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
12323 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
12329 /* Test availability of runtime routines for shift and division. */
12330 long long int llmax = 9223372036854775807ll;
12331 unsigned long long int ullmax = 18446744073709551615ull;
12332 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
12333 | (llmax / ll) | (llmax % ll)
12334 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
12335 | (ullmax / ull) | (ullmax % ull));
12341 if ac_fn_c_try_link "$LINENO"; then :
12344 ac_cv_type_unsigned_long_long_int=no
12346 rm -f core conftest.err conftest.$ac_objext \
12347 conftest$ac_exeext conftest.$ac_ext
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
12351 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
12352 if test $ac_cv_type_unsigned_long_long_int = yes; then
12354 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
12361 $as_echo_n "checking for long long int... " >&6; }
12362 if ${ac_cv_type_long_long_int+:} false; then :
12363 $as_echo_n "(cached) " >&6
12365 ac_cv_type_long_long_int=yes
12366 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
12367 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
12368 if test $ac_cv_type_long_long_int = yes; then
12369 if test "$cross_compiling" = yes; then :
12372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12373 /* end confdefs.h. */
12374 #include <limits.h>
12377 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
12378 # define LLONG_MAX (HALF - 1 + HALF)
12383 long long int n = 1;
12387 long long int m = n << i;
12390 if (LLONG_MAX / 2 < m)
12398 if ac_fn_c_try_run "$LINENO"; then :
12401 ac_cv_type_long_long_int=no
12403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12404 conftest.$ac_objext conftest.beam conftest.$ac_ext
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
12411 $as_echo "$ac_cv_type_long_long_int" >&6; }
12412 if test $ac_cv_type_long_long_int = yes; then
12414 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale_t" >&5
12420 $as_echo_n "checking for locale_t... " >&6; }
12421 if ${pgac_cv_type_locale_t+:} false; then :
12422 $as_echo_n "(cached) " >&6
12424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12425 /* end confdefs.h. */
12426 #include <locale.h>
12436 if ac_fn_c_try_compile "$LINENO"; then :
12437 pgac_cv_type_locale_t=yes
12439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12440 /* end confdefs.h. */
12441 #include <xlocale.h>
12451 if ac_fn_c_try_compile "$LINENO"; then :
12452 pgac_cv_type_locale_t='yes (in xlocale.h)'
12454 pgac_cv_type_locale_t=no
12456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_locale_t" >&5
12461 $as_echo "$pgac_cv_type_locale_t" >&6; }
12462 if test "$pgac_cv_type_locale_t" != no; then
12464 $as_echo "#define HAVE_LOCALE_T 1" >>confdefs.h
12467 if test "$pgac_cv_type_locale_t" = 'yes (in xlocale.h)'; then
12469 $as_echo "#define LOCALE_T_IN_XLOCALE 1" >>confdefs.h
12473 # MSVC doesn't cope well with defining restrict to __restrict, the
12474 # spelling it understands, because it conflicts with
12475 # __declspec(restrict). Therefore we define pg_restrict to the
12476 # appropriate definition, which presumably won't conflict.
12478 # Allow platforms with buggy compilers to force restrict to not be
12479 # used by setting $FORCE_DISABLE_RESTRICT=yes in the relevant
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
12482 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
12483 if ${ac_cv_c_restrict+:} false; then :
12484 $as_echo_n "(cached) " >&6
12486 ac_cv_c_restrict=no
12487 # The order here caters to the fact that C++ does not require restrict.
12488 for ac_kw in __restrict __restrict__ _Restrict restrict; do
12489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12490 /* end confdefs.h. */
12491 typedef int * int_ptr;
12492 int foo (int_ptr $ac_kw ip) {
12499 int * $ac_kw t = s;
12506 if ac_fn_c_try_compile "$LINENO"; then :
12507 ac_cv_c_restrict=$ac_kw
12509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12510 test "$ac_cv_c_restrict" != no && break
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
12515 $as_echo "$ac_cv_c_restrict" >&6; }
12517 case $ac_cv_c_restrict in
12519 no) $as_echo "#define restrict /**/" >>confdefs.h
12521 *) cat >>confdefs.h <<_ACEOF
12522 #define restrict $ac_cv_c_restrict
12527 if test "$ac_cv_c_restrict" = "no" -o "x$FORCE_DISABLE_RESTRICT" = "xyes"; then
12530 pg_restrict="$ac_cv_c_restrict"
12533 cat >>confdefs.h <<_ACEOF
12534 #define pg_restrict $pg_restrict
12538 ac_fn_c_check_type "$LINENO" "struct cmsgcred" "ac_cv_type_struct_cmsgcred" "#include <sys/socket.h>
12539 #include <sys/param.h>
12540 #ifdef HAVE_SYS_UCRED_H
12541 #include <sys/ucred.h>
12544 if test "x$ac_cv_type_struct_cmsgcred" = xyes; then :
12546 cat >>confdefs.h <<_ACEOF
12547 #define HAVE_STRUCT_CMSGCRED 1
12554 ac_fn_c_check_type "$LINENO" "struct option" "ac_cv_type_struct_option" "#ifdef HAVE_GETOPT_H
12555 #include <getopt.h>
12558 if test "x$ac_cv_type_struct_option" = xyes; then :
12560 cat >>confdefs.h <<_ACEOF
12561 #define HAVE_STRUCT_OPTION 1
12568 if test "$with_zlib" = yes; then
12569 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
12570 # did not). While we could work around the lack of z_streamp, it
12571 # seems unwise to encourage people to use such old zlib versions...
12572 ac_fn_c_check_type "$LINENO" "z_streamp" "ac_cv_type_z_streamp" "#include <zlib.h>
12574 if test "x$ac_cv_type_z_streamp" = xyes; then :
12577 as_fn_error $? "zlib version is too old
12578 Use --without-zlib to disable zlib support." "$LINENO" 5
12583 # On PPC, check if assembler supports LWARX instruction's mutex hint bit
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports lwarx hint bit" >&5
12587 $as_echo_n "checking whether assembler supports lwarx hint bit... " >&6; }
12588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12589 /* end confdefs.h. */
12594 int a = 0; int *p = &a; int r;
12595 __asm__ __volatile__ (" lwarx %0,0,%1,1\n" : "=&r"(r) : "r"(p));
12600 if ac_fn_c_try_compile "$LINENO"; then :
12601 pgac_cv_have_ppc_mutex_hint=yes
12603 pgac_cv_have_ppc_mutex_hint=no
12605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_have_ppc_mutex_hint" >&5
12607 $as_echo "$pgac_cv_have_ppc_mutex_hint" >&6; }
12608 if test x"$pgac_cv_have_ppc_mutex_hint" = xyes ; then
12610 $as_echo "#define HAVE_PPC_LWARX_MUTEX_HINT 1" >>confdefs.h
12616 # Check largefile support. You might think this is a system service not a
12617 # compiler characteristic, but you'd be wrong. We must check this before
12618 # probing existence of related functions such as fseeko, since the largefile
12619 # defines can affect what is generated for that.
12620 if test "$PORTNAME" != "win32"; then
12621 # Check whether --enable-largefile was given.
12622 if test "${enable_largefile+set}" = set; then :
12623 enableval=$enable_largefile;
12626 if test "$enable_largefile" != no; then
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12629 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12630 if ${ac_cv_sys_largefile_CC+:} false; then :
12631 $as_echo_n "(cached) " >&6
12633 ac_cv_sys_largefile_CC=no
12634 if test "$GCC" != yes; then
12637 # IRIX 6.2 and later do not support large files by default,
12638 # so use the C compiler's -n32 option if that helps.
12639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12640 /* end confdefs.h. */
12641 #include <sys/types.h>
12642 /* Check that off_t can represent 2**63 - 1 correctly.
12643 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12644 since some C++ compilers masquerading as C compilers
12645 incorrectly reject 9223372036854775807. */
12646 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12647 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12648 && LARGE_OFF_T % 2147483647 == 1)
12658 if ac_fn_c_try_compile "$LINENO"; then :
12661 rm -f core conftest.err conftest.$ac_objext
12663 if ac_fn_c_try_compile "$LINENO"; then :
12664 ac_cv_sys_largefile_CC=' -n32'; break
12666 rm -f core conftest.err conftest.$ac_objext
12670 rm -f conftest.$ac_ext
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12674 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
12675 if test "$ac_cv_sys_largefile_CC" != no; then
12676 CC=$CC$ac_cv_sys_largefile_CC
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12680 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12681 if ${ac_cv_sys_file_offset_bits+:} false; then :
12682 $as_echo_n "(cached) " >&6
12685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12686 /* end confdefs.h. */
12687 #include <sys/types.h>
12688 /* Check that off_t can represent 2**63 - 1 correctly.
12689 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12690 since some C++ compilers masquerading as C compilers
12691 incorrectly reject 9223372036854775807. */
12692 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12693 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12694 && LARGE_OFF_T % 2147483647 == 1)
12704 if ac_fn_c_try_compile "$LINENO"; then :
12705 ac_cv_sys_file_offset_bits=no; break
12707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12709 /* end confdefs.h. */
12710 #define _FILE_OFFSET_BITS 64
12711 #include <sys/types.h>
12712 /* Check that off_t can represent 2**63 - 1 correctly.
12713 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12714 since some C++ compilers masquerading as C compilers
12715 incorrectly reject 9223372036854775807. */
12716 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12717 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12718 && LARGE_OFF_T % 2147483647 == 1)
12728 if ac_fn_c_try_compile "$LINENO"; then :
12729 ac_cv_sys_file_offset_bits=64; break
12731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12732 ac_cv_sys_file_offset_bits=unknown
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12737 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12738 case $ac_cv_sys_file_offset_bits in #(
12741 cat >>confdefs.h <<_ACEOF
12742 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12747 if test $ac_cv_sys_file_offset_bits = unknown; then
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12749 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12750 if ${ac_cv_sys_large_files+:} false; then :
12751 $as_echo_n "(cached) " >&6
12754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12755 /* end confdefs.h. */
12756 #include <sys/types.h>
12757 /* Check that off_t can represent 2**63 - 1 correctly.
12758 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12759 since some C++ compilers masquerading as C compilers
12760 incorrectly reject 9223372036854775807. */
12761 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12762 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12763 && LARGE_OFF_T % 2147483647 == 1)
12773 if ac_fn_c_try_compile "$LINENO"; then :
12774 ac_cv_sys_large_files=no; break
12776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12778 /* end confdefs.h. */
12779 #define _LARGE_FILES 1
12780 #include <sys/types.h>
12781 /* Check that off_t can represent 2**63 - 1 correctly.
12782 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12783 since some C++ compilers masquerading as C compilers
12784 incorrectly reject 9223372036854775807. */
12785 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12786 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12787 && LARGE_OFF_T % 2147483647 == 1)
12797 if ac_fn_c_try_compile "$LINENO"; then :
12798 ac_cv_sys_large_files=1; break
12800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12801 ac_cv_sys_large_files=unknown
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12806 $as_echo "$ac_cv_sys_large_files" >&6; }
12807 case $ac_cv_sys_large_files in #(
12810 cat >>confdefs.h <<_ACEOF
12811 #define _LARGE_FILES $ac_cv_sys_large_files
12824 # Check for largefile support (must be after AC_SYS_LARGEFILE)
12825 # The cast to long int works around a bug in the HP C Compiler
12826 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12827 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12828 # This bug is HP SR number 8606223364.
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12830 $as_echo_n "checking size of off_t... " >&6; }
12831 if ${ac_cv_sizeof_off_t+:} false; then :
12832 $as_echo_n "(cached) " >&6
12834 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
12837 if test "$ac_cv_type_off_t" = yes; then
12838 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12839 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12840 as_fn_error 77 "cannot compute sizeof (off_t)
12841 See \`config.log' for more details" "$LINENO" 5; }
12843 ac_cv_sizeof_off_t=0
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12849 $as_echo "$ac_cv_sizeof_off_t" >&6; }
12853 cat >>confdefs.h <<_ACEOF
12854 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12859 # If we don't have largefile support, can't handle segsize >= 2GB.
12860 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
12861 as_fn_error $? "Large file support is not enabled. Segment size cannot be larger than 1GB." "$LINENO" 5
12866 ## Functions, global variables
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int timezone" >&5
12870 $as_echo_n "checking for int timezone... " >&6; }
12871 if ${pgac_cv_var_int_timezone+:} false; then :
12872 $as_echo_n "(cached) " >&6
12874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12875 /* end confdefs.h. */
12882 res = timezone / 60;
12884 res = _timezone / 60;
12890 if ac_fn_c_try_link "$LINENO"; then :
12891 pgac_cv_var_int_timezone=yes
12893 pgac_cv_var_int_timezone=no
12895 rm -f core conftest.err conftest.$ac_objext \
12896 conftest$ac_exeext conftest.$ac_ext
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_timezone" >&5
12899 $as_echo "$pgac_cv_var_int_timezone" >&6; }
12900 if test x"$pgac_cv_var_int_timezone" = xyes ; then
12902 $as_echo "#define HAVE_INT_TIMEZONE 1" >>confdefs.h
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for accept()" >&5
12906 $as_echo_n "checking types of arguments for accept()... " >&6; }
12907 if ${ac_cv_func_accept_return+:} false; then :
12908 $as_echo_n "(cached) " >&6
12910 if ${ac_cv_func_accept_arg1+:} false; then :
12911 $as_echo_n "(cached) " >&6
12913 if ${ac_cv_func_accept_arg2+:} false; then :
12914 $as_echo_n "(cached) " >&6
12916 if ${ac_cv_func_accept_arg3+:} false; then :
12917 $as_echo_n "(cached) " >&6
12919 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL' 'SOCKET WSAAPI'; do
12920 for ac_cv_func_accept_arg1 in 'int' 'unsigned int' 'SOCKET'; do
12921 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
12922 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
12923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12924 /* end confdefs.h. */
12925 #include <sys/types.h>
12926 #include <sys/socket.h>
12927 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
12929 if ac_fn_c_try_compile "$LINENO"; then :
12930 ac_not_found=no; break 4
12934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12939 if test "$ac_not_found" = yes; then
12940 as_fn_error $? "could not determine argument types" "$LINENO" 5
12942 if test "$ac_cv_func_accept_arg3" = "void"; then
12943 ac_cv_func_accept_arg3=int
12953 { $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
12954 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
12956 cat >>confdefs.h <<_ACEOF
12957 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
12961 cat >>confdefs.h <<_ACEOF
12962 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
12966 cat >>confdefs.h <<_ACEOF
12967 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
12971 cat >>confdefs.h <<_ACEOF
12972 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday takes only one argument" >&5
12977 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
12978 if ${pgac_cv_func_gettimeofday_1arg+:} false; then :
12979 $as_echo_n "(cached) " >&6
12981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12982 /* end confdefs.h. */
12983 #include <sys/time.h>
12987 struct timeval *tp;
12988 struct timezone *tzp;
12989 gettimeofday(tp,tzp);
12994 if ac_fn_c_try_compile "$LINENO"; then :
12995 pgac_cv_func_gettimeofday_1arg=no
12997 pgac_cv_func_gettimeofday_1arg=yes
12999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_gettimeofday_1arg" >&5
13002 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
13003 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
13005 $as_echo "#define GETTIMEOFDAY_1ARG 1" >>confdefs.h
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wcstombs_l declaration" >&5
13010 $as_echo_n "checking for wcstombs_l declaration... " >&6; }
13011 if ${pgac_cv_func_wcstombs_l+:} false; then :
13012 $as_echo_n "(cached) " >&6
13014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13015 /* end confdefs.h. */
13016 #include <stdlib.h>
13017 #include <locale.h>
13028 if ac_fn_c_try_compile "$LINENO"; then :
13029 pgac_cv_func_wcstombs_l='yes'
13031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13032 /* end confdefs.h. */
13033 #include <stdlib.h>
13034 #include <locale.h>
13035 #include <xlocale.h>
13046 if ac_fn_c_try_compile "$LINENO"; then :
13047 pgac_cv_func_wcstombs_l='yes (in xlocale.h)'
13049 pgac_cv_func_wcstombs_l='no'
13051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_wcstombs_l" >&5
13056 $as_echo "$pgac_cv_func_wcstombs_l" >&6; }
13057 if test "$pgac_cv_func_wcstombs_l" = 'yes (in xlocale.h)'; then
13059 $as_echo "#define WCSTOMBS_L_IN_XLOCALE 1" >>confdefs.h
13063 # Some versions of libedit contain strlcpy(), setproctitle(), and other
13064 # symbols that that library has no business exposing to the world. Pending
13065 # acquisition of a clue by those developers, ignore libedit (including its
13066 # possible alias of libreadline) while checking for everything else.
13067 LIBS_including_readline="$LIBS"
13068 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
13070 for ac_func in cbrt clock_gettime dlopen fdatasync getifaddrs getpeerucred getrlimit mbstowcs_l memmove poll posix_fallocate pstat pthread_is_threaded_np readlink setproctitle setsid shm_open symlink sync_file_range utime utimes wcstombs_l
13072 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13073 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13074 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13075 cat >>confdefs.h <<_ACEOF
13076 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13083 ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
13084 if test "x$ac_cv_func_fseeko" = xyes; then :
13085 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13088 case " $LIBOBJS " in
13089 *" fseeko.$ac_objext "* ) ;;
13090 *) LIBOBJS="$LIBOBJS fseeko.$ac_objext"
13098 # NetBSD uses a custom fseeko/ftello built on fsetpos/fgetpos
13099 # Mingw uses macros to access Win32 API calls
13102 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13104 ac_cv_func_fseeko=yes;;
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13107 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13108 if ${ac_cv_sys_largefile_source+:} false; then :
13109 $as_echo_n "(cached) " >&6
13112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13113 /* end confdefs.h. */
13114 #include <sys/types.h> /* for off_t */
13119 int (*fp) (FILE *, off_t, int) = fseeko;
13120 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13125 if ac_fn_c_try_link "$LINENO"; then :
13126 ac_cv_sys_largefile_source=no; break
13128 rm -f core conftest.err conftest.$ac_objext \
13129 conftest$ac_exeext conftest.$ac_ext
13130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13131 /* end confdefs.h. */
13132 #define _LARGEFILE_SOURCE 1
13133 #include <sys/types.h> /* for off_t */
13138 int (*fp) (FILE *, off_t, int) = fseeko;
13139 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13144 if ac_fn_c_try_link "$LINENO"; then :
13145 ac_cv_sys_largefile_source=1; break
13147 rm -f core conftest.err conftest.$ac_objext \
13148 conftest$ac_exeext conftest.$ac_ext
13149 ac_cv_sys_largefile_source=unknown
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13154 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13155 case $ac_cv_sys_largefile_source in #(
13158 cat >>confdefs.h <<_ACEOF
13159 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13165 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13166 # in glibc 2.1.3, but that breaks too many other things.
13167 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13168 if test $ac_cv_sys_largefile_source != unknown; then
13170 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13176 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
13177 # by calling it, 2009-04-02
13178 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
13179 if test "$PORTNAME" != "solaris"; then
13180 for ac_func in posix_fadvise
13182 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
13183 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
13184 cat >>confdefs.h <<_ACEOF
13185 #define HAVE_POSIX_FADVISE 1
13191 ac_fn_c_check_decl "$LINENO" "posix_fadvise" "ac_cv_have_decl_posix_fadvise" "#include <fcntl.h>
13193 if test "x$ac_cv_have_decl_posix_fadvise" = xyes; then :
13199 cat >>confdefs.h <<_ACEOF
13200 #define HAVE_DECL_POSIX_FADVISE $ac_have_decl
13205 ac_fn_c_check_decl "$LINENO" "fdatasync" "ac_cv_have_decl_fdatasync" "#include <unistd.h>
13207 if test "x$ac_cv_have_decl_fdatasync" = xyes; then :
13213 cat >>confdefs.h <<_ACEOF
13214 #define HAVE_DECL_FDATASYNC $ac_have_decl
13217 ac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default"
13218 if test "x$ac_cv_have_decl_strlcat" = xyes; then :
13224 cat >>confdefs.h <<_ACEOF
13225 #define HAVE_DECL_STRLCAT $ac_have_decl
13227 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default"
13228 if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
13234 cat >>confdefs.h <<_ACEOF
13235 #define HAVE_DECL_STRLCPY $ac_have_decl
13237 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
13238 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
13244 cat >>confdefs.h <<_ACEOF
13245 #define HAVE_DECL_STRNLEN $ac_have_decl
13248 # This is probably only present on macOS, but may as well check always
13249 ac_fn_c_check_decl "$LINENO" "F_FULLFSYNC" "ac_cv_have_decl_F_FULLFSYNC" "#include <fcntl.h>
13251 if test "x$ac_cv_have_decl_F_FULLFSYNC" = xyes; then :
13257 cat >>confdefs.h <<_ACEOF
13258 #define HAVE_DECL_F_FULLFSYNC $ac_have_decl
13263 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "$ac_includes_default
13264 #include <netinet/in.h>
13266 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
13268 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PS_STRINGS" >&5
13276 $as_echo_n "checking for PS_STRINGS... " >&6; }
13277 if ${pgac_cv_var_PS_STRINGS+:} false; then :
13278 $as_echo_n "(cached) " >&6
13280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13281 /* end confdefs.h. */
13282 #include <machine/vmparam.h>
13283 #include <sys/exec.h>
13288 PS_STRINGS->ps_nargvstr = 1;
13289 PS_STRINGS->ps_argvstr = "foo";
13294 if ac_fn_c_try_link "$LINENO"; then :
13295 pgac_cv_var_PS_STRINGS=yes
13297 pgac_cv_var_PS_STRINGS=no
13299 rm -f core conftest.err conftest.$ac_objext \
13300 conftest$ac_exeext conftest.$ac_ext
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_PS_STRINGS" >&5
13303 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
13304 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
13306 $as_echo "#define HAVE_PS_STRINGS 1" >>confdefs.h
13311 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
13312 # is missing. Yes, there are machines that have only one. We may
13313 # also decide to use snprintf.c if snprintf() is present but does not
13314 # have all the features we need --- see below.
13316 if test "$PORTNAME" = "win32"; then
13317 # Win32 gets snprintf.c built unconditionally.
13319 # To properly translate all NLS languages strings, we must support the
13320 # *printf() %$ format, which allows *printf() arguments to be selected
13321 # by position in the translated string.
13323 # libintl versions < 0.13 use the native *printf() functions, and Win32
13324 # *printf() doesn't understand %$, so we must use our /port versions,
13325 # which do understand %$. libintl versions >= 0.13 include their own
13326 # *printf versions on Win32. The libintl 0.13 release note text is:
13328 # C format strings with positions, as they arise when a translator
13329 # needs to reorder a sentence, are now supported on all platforms.
13330 # On those few platforms (NetBSD and Woe32) for which the native
13331 # printf()/fprintf()/... functions don't support such format
13332 # strings, replacements are provided through <libintl.h>.
13334 # We could use libintl >= 0.13's *printf() if we were sure that we had
13335 # a litint >= 0.13 at runtime, but seeing that there is no clean way
13336 # to guarantee that, it is best to just use our own, so we are sure to
13337 # get %$ support. In include/port.h we disable the *printf() macros
13338 # that might have been defined by libintl.
13340 # We do this unconditionally whether NLS is used or not so we are sure
13341 # that all Win32 libraries and binaries behave the same.
13342 pgac_need_repl_snprintf=yes
13344 pgac_need_repl_snprintf=no
13345 for ac_func in snprintf
13347 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
13348 if test "x$ac_cv_func_snprintf" = xyes; then :
13349 cat >>confdefs.h <<_ACEOF
13350 #define HAVE_SNPRINTF 1
13354 pgac_need_repl_snprintf=yes
13358 for ac_func in vsnprintf
13360 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
13361 if test "x$ac_cv_func_vsnprintf" = xyes; then :
13362 cat >>confdefs.h <<_ACEOF
13363 #define HAVE_VSNPRINTF 1
13367 pgac_need_repl_snprintf=yes
13374 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
13375 # include/c.h will provide declarations. Note this is a separate test
13376 # from whether the functions exist in the C library --- there are
13377 # systems that have the functions but don't bother to declare them :-(
13379 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
13380 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
13386 cat >>confdefs.h <<_ACEOF
13387 #define HAVE_DECL_SNPRINTF $ac_have_decl
13389 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
13390 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
13396 cat >>confdefs.h <<_ACEOF
13397 #define HAVE_DECL_VSNPRINTF $ac_have_decl
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
13403 $as_echo_n "checking for isinf... " >&6; }
13404 if ${ac_cv_func_isinf+:} false; then :
13405 $as_echo_n "(cached) " >&6
13407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13408 /* end confdefs.h. */
13411 double glob_double;
13416 return isinf(glob_double) ? 0 : 1;
13421 if ac_fn_c_try_link "$LINENO"; then :
13422 ac_cv_func_isinf=yes
13424 ac_cv_func_isinf=no
13426 rm -f core conftest.err conftest.$ac_objext \
13427 conftest$ac_exeext conftest.$ac_ext
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_isinf" >&5
13430 $as_echo "$ac_cv_func_isinf" >&6; }
13432 if test $ac_cv_func_isinf = yes ; then
13434 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
13437 case " $LIBOBJS " in
13438 *" isinf.$ac_objext "* ) ;;
13439 *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
13443 # Look for a way to implement a substitute for isinf()
13444 for ac_func in fpclass fp_class fp_class_d class
13446 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13447 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13448 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13449 cat >>confdefs.h <<_ACEOF
13450 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13458 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
13459 if test "x$ac_cv_func_crypt" = xyes; then :
13460 $as_echo "#define HAVE_CRYPT 1" >>confdefs.h
13463 case " $LIBOBJS " in
13464 *" crypt.$ac_objext "* ) ;;
13465 *) LIBOBJS="$LIBOBJS crypt.$ac_objext"
13471 ac_fn_c_check_func "$LINENO" "fls" "ac_cv_func_fls"
13472 if test "x$ac_cv_func_fls" = xyes; then :
13473 $as_echo "#define HAVE_FLS 1" >>confdefs.h
13476 case " $LIBOBJS " in
13477 *" fls.$ac_objext "* ) ;;
13478 *) LIBOBJS="$LIBOBJS fls.$ac_objext"
13484 ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
13485 if test "x$ac_cv_func_getopt" = xyes; then :
13486 $as_echo "#define HAVE_GETOPT 1" >>confdefs.h
13489 case " $LIBOBJS " in
13490 *" getopt.$ac_objext "* ) ;;
13491 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
13497 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
13498 if test "x$ac_cv_func_getrusage" = xyes; then :
13499 $as_echo "#define HAVE_GETRUSAGE 1" >>confdefs.h
13502 case " $LIBOBJS " in
13503 *" getrusage.$ac_objext "* ) ;;
13504 *) LIBOBJS="$LIBOBJS getrusage.$ac_objext"
13510 ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
13511 if test "x$ac_cv_func_inet_aton" = xyes; then :
13512 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
13515 case " $LIBOBJS " in
13516 *" inet_aton.$ac_objext "* ) ;;
13517 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
13523 ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
13524 if test "x$ac_cv_func_mkdtemp" = xyes; then :
13525 $as_echo "#define HAVE_MKDTEMP 1" >>confdefs.h
13528 case " $LIBOBJS " in
13529 *" mkdtemp.$ac_objext "* ) ;;
13530 *) LIBOBJS="$LIBOBJS mkdtemp.$ac_objext"
13536 ac_fn_c_check_func "$LINENO" "random" "ac_cv_func_random"
13537 if test "x$ac_cv_func_random" = xyes; then :
13538 $as_echo "#define HAVE_RANDOM 1" >>confdefs.h
13541 case " $LIBOBJS " in
13542 *" random.$ac_objext "* ) ;;
13543 *) LIBOBJS="$LIBOBJS random.$ac_objext"
13549 ac_fn_c_check_func "$LINENO" "rint" "ac_cv_func_rint"
13550 if test "x$ac_cv_func_rint" = xyes; then :
13551 $as_echo "#define HAVE_RINT 1" >>confdefs.h
13554 case " $LIBOBJS " in
13555 *" rint.$ac_objext "* ) ;;
13556 *) LIBOBJS="$LIBOBJS rint.$ac_objext"
13562 ac_fn_c_check_func "$LINENO" "srandom" "ac_cv_func_srandom"
13563 if test "x$ac_cv_func_srandom" = xyes; then :
13564 $as_echo "#define HAVE_SRANDOM 1" >>confdefs.h
13567 case " $LIBOBJS " in
13568 *" srandom.$ac_objext "* ) ;;
13569 *) LIBOBJS="$LIBOBJS srandom.$ac_objext"
13575 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
13576 if test "x$ac_cv_func_strerror" = xyes; then :
13577 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
13580 case " $LIBOBJS " in
13581 *" strerror.$ac_objext "* ) ;;
13582 *) LIBOBJS="$LIBOBJS strerror.$ac_objext"
13588 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
13589 if test "x$ac_cv_func_strlcat" = xyes; then :
13590 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
13593 case " $LIBOBJS " in
13594 *" strlcat.$ac_objext "* ) ;;
13595 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
13601 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
13602 if test "x$ac_cv_func_strlcpy" = xyes; then :
13603 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
13606 case " $LIBOBJS " in
13607 *" strlcpy.$ac_objext "* ) ;;
13608 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
13614 ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
13615 if test "x$ac_cv_func_strnlen" = xyes; then :
13616 $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h
13619 case " $LIBOBJS " in
13620 *" strnlen.$ac_objext "* ) ;;
13621 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
13631 # Windows uses a specialised env handler
13632 # and doesn't need a replacement getpeereid because it doesn't use
13636 $as_echo "#define HAVE_UNSETENV 1" >>confdefs.h
13639 $as_echo "#define HAVE_GETPEEREID 1" >>confdefs.h
13641 ac_cv_func_unsetenv=yes
13642 ac_cv_func_getpeereid=yes;;
13644 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
13645 if test "x$ac_cv_func_unsetenv" = xyes; then :
13646 $as_echo "#define HAVE_UNSETENV 1" >>confdefs.h
13649 case " $LIBOBJS " in
13650 *" unsetenv.$ac_objext "* ) ;;
13651 *) LIBOBJS="$LIBOBJS unsetenv.$ac_objext"
13657 ac_fn_c_check_func "$LINENO" "getpeereid" "ac_cv_func_getpeereid"
13658 if test "x$ac_cv_func_getpeereid" = xyes; then :
13659 $as_echo "#define HAVE_GETPEEREID 1" >>confdefs.h
13662 case " $LIBOBJS " in
13663 *" getpeereid.$ac_objext "* ) ;;
13664 *) LIBOBJS="$LIBOBJS getpeereid.$ac_objext"
13674 # System's version of getaddrinfo(), if any, may be used only if we found
13675 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
13676 # We use only our own getaddrinfo.c on Windows, but it's time to revisit that.
13677 if test x"$ac_cv_type_struct_addrinfo" = xyes && \
13678 test "$PORTNAME" != "win32"; then
13679 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
13680 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
13681 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
13684 case " $LIBOBJS " in
13685 *" getaddrinfo.$ac_objext "* ) ;;
13686 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
13694 case " $LIBOBJS " in
13695 *" getaddrinfo.$ac_objext "* ) ;;
13696 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
13702 # Similarly, use system's getopt_long() only if system provides struct option.
13703 if test x"$ac_cv_type_struct_option" = xyes ; then
13704 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
13705 if test "x$ac_cv_func_getopt_long" = xyes; then :
13706 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
13709 case " $LIBOBJS " in
13710 *" getopt_long.$ac_objext "* ) ;;
13711 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
13719 case " $LIBOBJS " in
13720 *" getopt_long.$ac_objext "* ) ;;
13721 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
13727 # Solaris' getopt() doesn't do what we want for long options, so always use
13728 # our version on that platform.
13729 if test "$PORTNAME" = "solaris"; then
13730 case " $LIBOBJS " in
13731 *" getopt.$ac_objext "* ) ;;
13732 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
13738 # mingw has adopted a GNU-centric interpretation of optind/optreset,
13739 # so always use our version on Windows.
13740 if test "$PORTNAME" = "win32"; then
13741 case " $LIBOBJS " in
13742 *" getopt.$ac_objext "* ) ;;
13743 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
13747 case " $LIBOBJS " in
13748 *" getopt_long.$ac_objext "* ) ;;
13749 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
13755 # Win32 (really MinGW) support
13756 if test "$PORTNAME" = "win32"; then
13757 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
13758 if test "x$ac_cv_func_gettimeofday" = xyes; then :
13759 $as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
13762 case " $LIBOBJS " in
13763 *" gettimeofday.$ac_objext "* ) ;;
13764 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
13771 case " $LIBOBJS " in
13772 *" dirmod.$ac_objext "* ) ;;
13773 *) LIBOBJS="$LIBOBJS dirmod.$ac_objext"
13777 case " $LIBOBJS " in
13778 *" kill.$ac_objext "* ) ;;
13779 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
13783 case " $LIBOBJS " in
13784 *" open.$ac_objext "* ) ;;
13785 *) LIBOBJS="$LIBOBJS open.$ac_objext"
13789 case " $LIBOBJS " in
13790 *" system.$ac_objext "* ) ;;
13791 *) LIBOBJS="$LIBOBJS system.$ac_objext"
13795 case " $LIBOBJS " in
13796 *" win32env.$ac_objext "* ) ;;
13797 *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
13801 case " $LIBOBJS " in
13802 *" win32error.$ac_objext "* ) ;;
13803 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
13807 case " $LIBOBJS " in
13808 *" win32security.$ac_objext "* ) ;;
13809 *) LIBOBJS="$LIBOBJS win32security.$ac_objext"
13813 case " $LIBOBJS " in
13814 *" win32setlocale.$ac_objext "* ) ;;
13815 *) LIBOBJS="$LIBOBJS win32setlocale.$ac_objext"
13820 $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h
13822 ac_fn_c_check_type "$LINENO" "MINIDUMP_TYPE" "ac_cv_type_MINIDUMP_TYPE" "
13823 #define WIN32_LEAN_AND_MEAN
13824 #include <windows.h>
13825 #include <string.h>
13826 #include <dbghelp.h>
13828 if test "x$ac_cv_type_MINIDUMP_TYPE" = xyes; then :
13830 cat >>confdefs.h <<_ACEOF
13831 #define HAVE_MINIDUMP_TYPE 1
13834 pgac_minidump_type=yes
13836 pgac_minidump_type=no
13840 if test x"$pgac_minidump_type" = x"yes" ; then
13841 have_win32_dbghelp=yes
13844 have_win32_dbghelp=no
13848 # Cygwin needs only a bit of that
13849 if test "$PORTNAME" = "cygwin"; then
13850 case " $LIBOBJS " in
13851 *" dirmod.$ac_objext "* ) ;;
13852 *) LIBOBJS="$LIBOBJS dirmod.$ac_objext"
13858 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
13859 /* NetBSD declares sys_siglist in unistd.h. */
13860 #ifdef HAVE_UNISTD_H
13861 # include <unistd.h>
13865 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
13871 cat >>confdefs.h <<_ACEOF
13872 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
13876 ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
13877 if test "x$ac_cv_func_syslog" = xyes; then :
13878 ac_fn_c_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
13879 if test "x$ac_cv_header_syslog_h" = xyes; then :
13881 $as_echo "#define HAVE_SYSLOG 1" >>confdefs.h
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opterr" >&5
13890 $as_echo_n "checking for opterr... " >&6; }
13891 if ${pgac_cv_var_int_opterr+:} false; then :
13892 $as_echo_n "(cached) " >&6
13894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13895 /* end confdefs.h. */
13896 #include <unistd.h>
13900 extern int opterr; opterr = 1;
13905 if ac_fn_c_try_link "$LINENO"; then :
13906 pgac_cv_var_int_opterr=yes
13908 pgac_cv_var_int_opterr=no
13910 rm -f core conftest.err conftest.$ac_objext \
13911 conftest$ac_exeext conftest.$ac_ext
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_opterr" >&5
13914 $as_echo "$pgac_cv_var_int_opterr" >&6; }
13915 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
13917 $as_echo "#define HAVE_INT_OPTERR 1" >>confdefs.h
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
13922 $as_echo_n "checking for optreset... " >&6; }
13923 if ${pgac_cv_var_int_optreset+:} false; then :
13924 $as_echo_n "(cached) " >&6
13926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13927 /* end confdefs.h. */
13928 #include <unistd.h>
13932 extern int optreset; optreset = 1;
13937 if ac_fn_c_try_link "$LINENO"; then :
13938 pgac_cv_var_int_optreset=yes
13940 pgac_cv_var_int_optreset=no
13942 rm -f core conftest.err conftest.$ac_objext \
13943 conftest$ac_exeext conftest.$ac_ext
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_optreset" >&5
13946 $as_echo "$pgac_cv_var_int_optreset" >&6; }
13947 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
13949 $as_echo "#define HAVE_INT_OPTRESET 1" >>confdefs.h
13953 for ac_func in strtoll strtoq
13955 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13956 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13957 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13958 cat >>confdefs.h <<_ACEOF
13959 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13965 for ac_func in strtoull strtouq
13967 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13968 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13969 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13970 cat >>confdefs.h <<_ACEOF
13971 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13978 if test "$with_icu" = yes; then
13979 ac_save_CPPFLAGS=$CPPFLAGS
13980 CPPFLAGS="$ICU_CFLAGS $CPPFLAGS"
13982 # Verify we have ICU's header files
13983 ac_fn_c_check_header_mongrel "$LINENO" "unicode/ucol.h" "ac_cv_header_unicode_ucol_h" "$ac_includes_default"
13984 if test "x$ac_cv_header_unicode_ucol_h" = xyes; then :
13987 as_fn_error $? "header file <unicode/ucol.h> is required for ICU" "$LINENO" 5
13992 CPPFLAGS=$ac_save_CPPFLAGS
13995 # Lastly, restore full LIBS list and check for readline/libedit symbols
13996 LIBS="$LIBS_including_readline"
13998 if test "$with_readline" = yes; then
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_append_character" >&5
14000 $as_echo_n "checking for rl_completion_append_character... " >&6; }
14001 if ${pgac_cv_var_rl_completion_append_character+:} false; then :
14002 $as_echo_n "(cached) " >&6
14004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14005 /* end confdefs.h. */
14007 #ifdef HAVE_READLINE_READLINE_H
14008 # include <readline/readline.h>
14009 #elif defined(HAVE_READLINE_H)
14010 # include <readline.h>
14016 rl_completion_append_character = 'x';
14021 if ac_fn_c_try_link "$LINENO"; then :
14022 pgac_cv_var_rl_completion_append_character=yes
14024 pgac_cv_var_rl_completion_append_character=no
14026 rm -f core conftest.err conftest.$ac_objext \
14027 conftest$ac_exeext conftest.$ac_ext
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_rl_completion_append_character" >&5
14030 $as_echo "$pgac_cv_var_rl_completion_append_character" >&6; }
14031 if test x"$pgac_cv_var_rl_completion_append_character" = x"yes"; then
14033 $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h
14036 for ac_func in rl_completion_matches rl_filename_completion_function rl_reset_screen_size
14038 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14039 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14040 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14041 cat >>confdefs.h <<_ACEOF
14042 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14048 for ac_func in append_history history_truncate_file
14050 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14051 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14052 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14053 cat >>confdefs.h <<_ACEOF
14054 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14063 # This test makes sure that run tests work at all. Sometimes a shared
14064 # library is found by the linker, but the runtime linker can't find it.
14065 # This check should come after all modifications of compiler or linker
14066 # variables, and before any other run tests.
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking test program" >&5
14068 $as_echo_n "checking test program... " >&6; }
14069 if test "$cross_compiling" = yes; then :
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
14071 $as_echo "cross-compiling" >&6; }
14073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14074 /* end confdefs.h. */
14075 int main() { return 0; }
14077 if ac_fn_c_try_run "$LINENO"; then :
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14079 $as_echo "ok" >&6; }
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14082 $as_echo "failed" >&6; }
14084 Could not execute a simple test program. This may be a problem
14085 related to locating shared libraries. Check the file 'config.log'
14086 for the exact reason." "$LINENO" 5
14088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14089 conftest.$ac_objext conftest.beam conftest.$ac_ext
14093 # --------------------
14094 # Run tests below here
14095 # --------------------
14097 # Force use of our snprintf if system's doesn't do arg control
14098 # See comment above at snprintf test for details.
14099 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf supports argument control" >&5
14101 $as_echo_n "checking whether snprintf supports argument control... " >&6; }
14102 if ${pgac_cv_snprintf_arg_control+:} false; then :
14103 $as_echo_n "(cached) " >&6
14105 if test "$cross_compiling" = yes; then :
14106 pgac_cv_snprintf_arg_control=cross
14108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14109 /* end confdefs.h. */
14111 #include <string.h>
14117 /* can it swap arguments? */
14118 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
14119 if (strcmp(buf, "4 3") != 0)
14124 if ac_fn_c_try_run "$LINENO"; then :
14125 pgac_cv_snprintf_arg_control=yes
14127 pgac_cv_snprintf_arg_control=no
14129 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14130 conftest.$ac_objext conftest.beam conftest.$ac_ext
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_snprintf_arg_control" >&5
14136 $as_echo "$pgac_cv_snprintf_arg_control" >&6; }
14138 if test $pgac_cv_snprintf_arg_control != yes ; then
14139 pgac_need_repl_snprintf=yes
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long int is 64 bits" >&5
14147 $as_echo_n "checking whether long int is 64 bits... " >&6; }
14148 if ${pgac_cv_type_long_int_64+:} false; then :
14149 $as_echo_n "(cached) " >&6
14151 if test "$cross_compiling" = yes; then :
14152 # If cross-compiling, check the size reported by the compiler and
14153 # trust that the arithmetic works.
14154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14155 /* end confdefs.h. */
14160 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
14161 test_array [0] = 0;
14162 return test_array [0];
14168 if ac_fn_c_try_compile "$LINENO"; then :
14169 pgac_cv_type_long_int_64=yes
14171 pgac_cv_type_long_int_64=no
14173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14176 /* end confdefs.h. */
14177 typedef long int ac_int64;
14180 * These are globals to discourage the compiler from folding all the
14181 * arithmetic tests down to compile-time constants.
14183 ac_int64 a = 20000001;
14184 ac_int64 b = 40000005;
14186 int does_int64_work()
14190 if (sizeof(ac_int64) != 8)
14191 return 0; /* definitely not the right size */
14193 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
14203 return (! does_int64_work());
14206 if ac_fn_c_try_run "$LINENO"; then :
14207 pgac_cv_type_long_int_64=yes
14209 pgac_cv_type_long_int_64=no
14211 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14212 conftest.$ac_objext conftest.beam conftest.$ac_ext
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_long_int_64" >&5
14217 $as_echo "$pgac_cv_type_long_int_64" >&6; }
14219 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
14220 if test x"$pgac_cv_type_long_int_64" = xyes ; then
14222 $as_echo "#define HAVE_LONG_INT_64 1" >>confdefs.h
14227 if test x"$HAVE_LONG_INT_64" = x"yes" ; then
14228 pg_int64_type="long int"
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long long int is 64 bits" >&5
14231 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
14232 if ${pgac_cv_type_long_long_int_64+:} false; then :
14233 $as_echo_n "(cached) " >&6
14235 if test "$cross_compiling" = yes; then :
14236 # If cross-compiling, check the size reported by the compiler and
14237 # trust that the arithmetic works.
14238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14239 /* end confdefs.h. */
14244 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
14245 test_array [0] = 0;
14246 return test_array [0];
14252 if ac_fn_c_try_compile "$LINENO"; then :
14253 pgac_cv_type_long_long_int_64=yes
14255 pgac_cv_type_long_long_int_64=no
14257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14260 /* end confdefs.h. */
14261 typedef long long int ac_int64;
14264 * These are globals to discourage the compiler from folding all the
14265 * arithmetic tests down to compile-time constants.
14267 ac_int64 a = 20000001;
14268 ac_int64 b = 40000005;
14270 int does_int64_work()
14274 if (sizeof(ac_int64) != 8)
14275 return 0; /* definitely not the right size */
14277 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
14287 return (! does_int64_work());
14290 if ac_fn_c_try_run "$LINENO"; then :
14291 pgac_cv_type_long_long_int_64=yes
14293 pgac_cv_type_long_long_int_64=no
14295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14296 conftest.$ac_objext conftest.beam conftest.$ac_ext
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_long_long_int_64" >&5
14301 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
14303 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
14304 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
14306 $as_echo "#define HAVE_LONG_LONG_INT_64 1" >>confdefs.h
14310 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
14311 pg_int64_type="long long int"
14313 as_fn_error $? "Cannot find a working 64-bit integer type." "$LINENO" 5
14318 cat >>confdefs.h <<_ACEOF
14319 #define PG_INT64_TYPE $pg_int64_type
14323 # If we found "long int" is 64 bits, assume snprintf handles it. If
14324 # we found we need to use "long long int", better check. We cope with
14325 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
14326 # work, fall back to our own snprintf emulation (which we know uses %lld).
14328 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
14329 if test $pgac_need_repl_snprintf = no; then
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking snprintf length modifier for long long int" >&5
14331 $as_echo_n "checking snprintf length modifier for long long int... " >&6; }
14332 if ${pgac_cv_snprintf_long_long_int_modifier+:} false; then :
14333 $as_echo_n "(cached) " >&6
14335 for pgac_modifier in 'll' 'q' 'I64'; do
14336 if test "$cross_compiling" = yes; then :
14337 pgac_cv_snprintf_long_long_int_modifier=cross; break
14339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14340 /* end confdefs.h. */
14342 #include <string.h>
14343 typedef long long int ac_int64;
14344 #define INT64_FORMAT "%${pgac_modifier}d"
14346 ac_int64 a = 20000001;
14347 ac_int64 b = 40000005;
14349 int does_int64_snprintf_work()
14354 if (sizeof(ac_int64) != 8)
14355 return 0; /* doesn't look like the right size */
14358 snprintf(buf, 100, INT64_FORMAT, c);
14359 if (strcmp(buf, "800000140000005") != 0)
14360 return 0; /* either multiply or snprintf is busted */
14366 return (! does_int64_snprintf_work());
14369 if ac_fn_c_try_run "$LINENO"; then :
14370 pgac_cv_snprintf_long_long_int_modifier=$pgac_modifier; break
14372 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14373 conftest.$ac_objext conftest.beam conftest.$ac_ext
14379 LONG_LONG_INT_MODIFIER=''
14381 case $pgac_cv_snprintf_long_long_int_modifier in
14382 cross) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test (not on host machine)" >&5
14383 $as_echo "cannot test (not on host machine)" >&6; };;
14384 ?*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_snprintf_long_long_int_modifier" >&5
14385 $as_echo "$pgac_cv_snprintf_long_long_int_modifier" >&6; }
14386 LONG_LONG_INT_MODIFIER=$pgac_cv_snprintf_long_long_int_modifier;;
14387 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14388 $as_echo "none" >&6; };;
14390 if test "$LONG_LONG_INT_MODIFIER" = ""; then
14391 # Force usage of our own snprintf, since system snprintf is broken
14392 pgac_need_repl_snprintf=yes
14393 LONG_LONG_INT_MODIFIER='ll'
14396 # Here if we previously decided we needed to use our own snprintf
14397 LONG_LONG_INT_MODIFIER='ll'
14400 # Here if we are not using 'long long int' at all
14401 LONG_LONG_INT_MODIFIER='l'
14404 INT64_MODIFIER="\"$LONG_LONG_INT_MODIFIER\""
14407 cat >>confdefs.h <<_ACEOF
14408 #define INT64_MODIFIER $INT64_MODIFIER
14412 # Also force use of our snprintf if the system's doesn't support the %z flag.
14413 if test "$pgac_need_repl_snprintf" = no; then
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf supports the %z modifier" >&5
14415 $as_echo_n "checking whether snprintf supports the %z modifier... " >&6; }
14416 if ${pgac_cv_snprintf_size_t_support+:} false; then :
14417 $as_echo_n "(cached) " >&6
14419 if test "$cross_compiling" = yes; then :
14420 pgac_cv_snprintf_size_t_support=cross
14422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14423 /* end confdefs.h. */
14425 #include <string.h>
14433 * Print the largest unsigned number fitting in a size_t using both %zu
14434 * and the previously-determined format for 64-bit integers. Note that
14435 * we don't run this code unless we know snprintf handles 64-bit ints.
14437 bufz[0] = '\0'; /* in case snprintf fails to emit anything */
14438 snprintf(bufz, sizeof(bufz), "%zu", ~((size_t) 0));
14439 snprintf(buf64, sizeof(buf64), "%" INT64_MODIFIER "u",
14440 (unsigned PG_INT64_TYPE) ~((size_t) 0));
14441 if (strcmp(bufz, buf64) != 0)
14446 if ac_fn_c_try_run "$LINENO"; then :
14447 pgac_cv_snprintf_size_t_support=yes
14449 pgac_cv_snprintf_size_t_support=no
14451 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14452 conftest.$ac_objext conftest.beam conftest.$ac_ext
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_snprintf_size_t_support" >&5
14458 $as_echo "$pgac_cv_snprintf_size_t_support" >&6; }
14460 if test "$pgac_cv_snprintf_size_t_support" != yes; then
14461 pgac_need_repl_snprintf=yes
14465 # Now we have checked all the reasons to replace snprintf
14466 if test $pgac_need_repl_snprintf = yes; then
14468 $as_echo "#define USE_REPL_SNPRINTF 1" >>confdefs.h
14470 case " $LIBOBJS " in
14471 *" snprintf.$ac_objext "* ) ;;
14472 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
14478 # has to be down here, rather than with the other builtins, because
14479 # the test uses PG_INT64_TYPE.
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_mul_overflow" >&5
14481 $as_echo_n "checking for __builtin_mul_overflow... " >&6; }
14482 if ${pgac_cv__builtin_op_overflow+:} false; then :
14483 $as_echo_n "(cached) " >&6
14485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14486 /* end confdefs.h. */
14488 PG_INT64_TYPE a = 1;
14489 PG_INT64_TYPE b = 1;
14490 PG_INT64_TYPE result;
14496 oflo = __builtin_mul_overflow(a, b, &result);
14501 if ac_fn_c_try_link "$LINENO"; then :
14502 pgac_cv__builtin_op_overflow=yes
14504 pgac_cv__builtin_op_overflow=no
14506 rm -f core conftest.err conftest.$ac_objext \
14507 conftest$ac_exeext conftest.$ac_ext
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_op_overflow" >&5
14510 $as_echo "$pgac_cv__builtin_op_overflow" >&6; }
14511 if test x"$pgac_cv__builtin_op_overflow" = xyes ; then
14513 $as_echo "#define HAVE__BUILTIN_OP_OVERFLOW 1" >>confdefs.h
14517 # Check size of void *, size_t (enables tweaks for > 32bit address space)
14518 # The cast to long int works around a bug in the HP C Compiler
14519 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14520 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14521 # This bug is HP SR number 8606223364.
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14523 $as_echo_n "checking size of void *... " >&6; }
14524 if ${ac_cv_sizeof_void_p+:} false; then :
14525 $as_echo_n "(cached) " >&6
14527 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
14530 if test "$ac_cv_type_void_p" = yes; then
14531 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14532 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14533 as_fn_error 77 "cannot compute sizeof (void *)
14534 See \`config.log' for more details" "$LINENO" 5; }
14536 ac_cv_sizeof_void_p=0
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14542 $as_echo "$ac_cv_sizeof_void_p" >&6; }
14546 cat >>confdefs.h <<_ACEOF
14547 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14551 # The cast to long int works around a bug in the HP C Compiler
14552 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14553 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14554 # This bug is HP SR number 8606223364.
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
14556 $as_echo_n "checking size of size_t... " >&6; }
14557 if ${ac_cv_sizeof_size_t+:} false; then :
14558 $as_echo_n "(cached) " >&6
14560 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
14563 if test "$ac_cv_type_size_t" = yes; then
14564 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14565 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14566 as_fn_error 77 "cannot compute sizeof (size_t)
14567 See \`config.log' for more details" "$LINENO" 5; }
14569 ac_cv_sizeof_size_t=0
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
14575 $as_echo "$ac_cv_sizeof_size_t" >&6; }
14579 cat >>confdefs.h <<_ACEOF
14580 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
14584 # The cast to long int works around a bug in the HP C Compiler
14585 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14586 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14587 # This bug is HP SR number 8606223364.
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14589 $as_echo_n "checking size of long... " >&6; }
14590 if ${ac_cv_sizeof_long+:} false; then :
14591 $as_echo_n "(cached) " >&6
14593 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
14596 if test "$ac_cv_type_long" = yes; then
14597 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14598 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14599 as_fn_error 77 "cannot compute sizeof (long)
14600 See \`config.log' for more details" "$LINENO" 5; }
14602 ac_cv_sizeof_long=0
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14608 $as_echo "$ac_cv_sizeof_long" >&6; }
14612 cat >>confdefs.h <<_ACEOF
14613 #define SIZEOF_LONG $ac_cv_sizeof_long
14618 # Decide whether float4 is passed by value: user-selectable, enabled by default
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with float4 passed by value" >&5
14620 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
14623 # Check whether --enable-float4-byval was given.
14624 if test "${enable_float4_byval+set}" = set; then :
14625 enableval=$enable_float4_byval;
14629 $as_echo "#define USE_FLOAT4_BYVAL 1" >>confdefs.h
14631 float4passbyval=true
14634 float4passbyval=false
14637 as_fn_error $? "no argument expected for --enable-float4-byval option" "$LINENO" 5
14642 enable_float4_byval=yes
14644 $as_echo "#define USE_FLOAT4_BYVAL 1" >>confdefs.h
14646 float4passbyval=true
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_float4_byval" >&5
14651 $as_echo "$enable_float4_byval" >&6; }
14653 cat >>confdefs.h <<_ACEOF
14654 #define FLOAT4PASSBYVAL $float4passbyval
14658 # Decide whether float8 is passed by value.
14659 # Note: this setting also controls int8 and related types such as timestamp.
14660 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
14661 # If not, trying to select it is an error.
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with float8 passed by value" >&5
14663 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
14664 if test $ac_cv_sizeof_void_p -ge 8 ; then
14667 # Check whether --enable-float8-byval was given.
14668 if test "${enable_float8_byval+set}" = set; then :
14669 enableval=$enable_float8_byval;
14678 as_fn_error $? "no argument expected for --enable-float8-byval option" "$LINENO" 5
14683 enable_float8_byval=yes
14691 # Check whether --enable-float8-byval was given.
14692 if test "${enable_float8_byval+set}" = set; then :
14693 enableval=$enable_float8_byval;
14702 as_fn_error $? "no argument expected for --enable-float8-byval option" "$LINENO" 5
14707 enable_float8_byval=no
14712 if test "$enable_float8_byval" = yes ; then
14713 as_fn_error $? "--enable-float8-byval is not supported on 32-bit platforms." "$LINENO" 5
14716 if test "$enable_float8_byval" = yes ; then
14718 $as_echo "#define USE_FLOAT8_BYVAL 1" >>confdefs.h
14720 float8passbyval=true
14722 float8passbyval=false
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_float8_byval" >&5
14725 $as_echo "$enable_float8_byval" >&6; }
14727 cat >>confdefs.h <<_ACEOF
14728 #define FLOAT8PASSBYVAL $float8passbyval
14732 # Determine memory alignment requirements for the basic C data types.
14734 # The cast to long int works around a bug in the HP C Compiler,
14735 # see AC_CHECK_SIZEOF for more information.
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of short" >&5
14737 $as_echo_n "checking alignment of short... " >&6; }
14738 if ${ac_cv_alignof_short+:} false; then :
14739 $as_echo_n "(cached) " >&6
14741 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_short" "$ac_includes_default
14743 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
14745 typedef struct { char x; short y; } ac__type_alignof_;"; then :
14748 if test "$ac_cv_type_short" = yes; then
14749 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14750 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14751 as_fn_error 77 "cannot compute alignment of short
14752 See \`config.log' for more details" "$LINENO" 5; }
14754 ac_cv_alignof_short=0
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_short" >&5
14760 $as_echo "$ac_cv_alignof_short" >&6; }
14764 cat >>confdefs.h <<_ACEOF
14765 #define ALIGNOF_SHORT $ac_cv_alignof_short
14769 # The cast to long int works around a bug in the HP C Compiler,
14770 # see AC_CHECK_SIZEOF for more information.
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int" >&5
14772 $as_echo_n "checking alignment of int... " >&6; }
14773 if ${ac_cv_alignof_int+:} false; then :
14774 $as_echo_n "(cached) " >&6
14776 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_int" "$ac_includes_default
14778 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
14780 typedef struct { char x; int y; } ac__type_alignof_;"; then :
14783 if test "$ac_cv_type_int" = yes; then
14784 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14785 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14786 as_fn_error 77 "cannot compute alignment of int
14787 See \`config.log' for more details" "$LINENO" 5; }
14789 ac_cv_alignof_int=0
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_int" >&5
14795 $as_echo "$ac_cv_alignof_int" >&6; }
14799 cat >>confdefs.h <<_ACEOF
14800 #define ALIGNOF_INT $ac_cv_alignof_int
14804 # The cast to long int works around a bug in the HP C Compiler,
14805 # see AC_CHECK_SIZEOF for more information.
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long" >&5
14807 $as_echo_n "checking alignment of long... " >&6; }
14808 if ${ac_cv_alignof_long+:} false; then :
14809 $as_echo_n "(cached) " >&6
14811 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long" "$ac_includes_default
14813 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
14815 typedef struct { char x; long y; } ac__type_alignof_;"; then :
14818 if test "$ac_cv_type_long" = yes; then
14819 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14821 as_fn_error 77 "cannot compute alignment of long
14822 See \`config.log' for more details" "$LINENO" 5; }
14824 ac_cv_alignof_long=0
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long" >&5
14830 $as_echo "$ac_cv_alignof_long" >&6; }
14834 cat >>confdefs.h <<_ACEOF
14835 #define ALIGNOF_LONG $ac_cv_alignof_long
14839 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
14840 # The cast to long int works around a bug in the HP C Compiler,
14841 # see AC_CHECK_SIZEOF for more information.
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long long int" >&5
14843 $as_echo_n "checking alignment of long long int... " >&6; }
14844 if ${ac_cv_alignof_long_long_int+:} false; then :
14845 $as_echo_n "(cached) " >&6
14847 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long_long_int" "$ac_includes_default
14849 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
14851 typedef struct { char x; long long int y; } ac__type_alignof_;"; then :
14854 if test "$ac_cv_type_long_long_int" = yes; then
14855 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14856 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14857 as_fn_error 77 "cannot compute alignment of long long int
14858 See \`config.log' for more details" "$LINENO" 5; }
14860 ac_cv_alignof_long_long_int=0
14865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long_long_int" >&5
14866 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
14870 cat >>confdefs.h <<_ACEOF
14871 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
14876 # The cast to long int works around a bug in the HP C Compiler,
14877 # see AC_CHECK_SIZEOF for more information.
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of double" >&5
14879 $as_echo_n "checking alignment of double... " >&6; }
14880 if ${ac_cv_alignof_double+:} false; then :
14881 $as_echo_n "(cached) " >&6
14883 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_double" "$ac_includes_default
14885 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
14887 typedef struct { char x; double y; } ac__type_alignof_;"; then :
14890 if test "$ac_cv_type_double" = yes; then
14891 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14892 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14893 as_fn_error 77 "cannot compute alignment of double
14894 See \`config.log' for more details" "$LINENO" 5; }
14896 ac_cv_alignof_double=0
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_double" >&5
14902 $as_echo "$ac_cv_alignof_double" >&6; }
14906 cat >>confdefs.h <<_ACEOF
14907 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
14912 # Compute maximum alignment of any basic type.
14913 # We assume long's alignment is at least as strong as char, short, or int;
14914 # but we must check long long (if it is being used for int64) and double.
14915 # Note that we intentionally do not consider any types wider than 64 bits,
14916 # as allowing MAXIMUM_ALIGNOF to exceed 8 would be too much of a penalty
14917 # for disk and memory space.
14919 MAX_ALIGNOF=$ac_cv_alignof_long
14920 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
14921 MAX_ALIGNOF=$ac_cv_alignof_double
14923 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
14924 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
14927 cat >>confdefs.h <<_ACEOF
14928 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
14933 # Some platforms predefine the types int8, int16, etc. Only check
14934 # a (hopefully) representative subset.
14935 ac_fn_c_check_type "$LINENO" "int8" "ac_cv_type_int8" "#include <stdio.h>
14937 if test "x$ac_cv_type_int8" = xyes; then :
14939 cat >>confdefs.h <<_ACEOF
14940 #define HAVE_INT8 1
14945 ac_fn_c_check_type "$LINENO" "uint8" "ac_cv_type_uint8" "#include <stdio.h>
14947 if test "x$ac_cv_type_uint8" = xyes; then :
14949 cat >>confdefs.h <<_ACEOF
14950 #define HAVE_UINT8 1
14955 ac_fn_c_check_type "$LINENO" "int64" "ac_cv_type_int64" "#include <stdio.h>
14957 if test "x$ac_cv_type_int64" = xyes; then :
14959 cat >>confdefs.h <<_ACEOF
14960 #define HAVE_INT64 1
14965 ac_fn_c_check_type "$LINENO" "uint64" "ac_cv_type_uint64" "#include <stdio.h>
14967 if test "x$ac_cv_type_uint64" = xyes; then :
14969 cat >>confdefs.h <<_ACEOF
14970 #define HAVE_UINT64 1
14977 # Some compilers offer a 128-bit integer scalar type.
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __int128" >&5
14979 $as_echo_n "checking for __int128... " >&6; }
14980 if ${pgac_cv__128bit_int+:} false; then :
14981 $as_echo_n "(cached) " >&6
14983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14984 /* end confdefs.h. */
14987 * These are globals to discourage the compiler from folding all the
14988 * arithmetic tests down to compile-time constants. We do not have
14989 * convenient support for 64bit literals at this point...
14991 __int128 a = 48828125;
14992 __int128 b = 97656255;
14999 a = (a << 12) + 1; /* 200000000001 */
15000 b = (b << 12) + 5; /* 400000000005 */
15001 /* use the most relevant arithmetic ops */
15004 /* return different values, to prevent optimizations */
15013 if ac_fn_c_try_link "$LINENO"; then :
15014 pgac_cv__128bit_int=yes
15016 pgac_cv__128bit_int=no
15018 rm -f core conftest.err conftest.$ac_objext \
15019 conftest$ac_exeext conftest.$ac_ext
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__128bit_int" >&5
15022 $as_echo "$pgac_cv__128bit_int" >&6; }
15023 if test x"$pgac_cv__128bit_int" = xyes ; then
15025 $as_echo "#define PG_INT128_TYPE __int128" >>confdefs.h
15027 # The cast to long int works around a bug in the HP C Compiler,
15028 # see AC_CHECK_SIZEOF for more information.
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of PG_INT128_TYPE" >&5
15030 $as_echo_n "checking alignment of PG_INT128_TYPE... " >&6; }
15031 if ${ac_cv_alignof_PG_INT128_TYPE+:} false; then :
15032 $as_echo_n "(cached) " >&6
15034 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_PG_INT128_TYPE" "$ac_includes_default
15036 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
15038 typedef struct { char x; PG_INT128_TYPE y; } ac__type_alignof_;"; then :
15041 if test "$ac_cv_type_PG_INT128_TYPE" = yes; then
15042 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15044 as_fn_error 77 "cannot compute alignment of PG_INT128_TYPE
15045 See \`config.log' for more details" "$LINENO" 5; }
15047 ac_cv_alignof_PG_INT128_TYPE=0
15052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_PG_INT128_TYPE" >&5
15053 $as_echo "$ac_cv_alignof_PG_INT128_TYPE" >&6; }
15057 cat >>confdefs.h <<_ACEOF
15058 #define ALIGNOF_PG_INT128_TYPE $ac_cv_alignof_PG_INT128_TYPE
15064 # Check for various atomic operations now that we have checked how to declare
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync char locking functions" >&5
15067 $as_echo_n "checking for builtin __sync char locking functions... " >&6; }
15068 if ${pgac_cv_gcc_sync_char_tas+:} false; then :
15069 $as_echo_n "(cached) " >&6
15071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15072 /* end confdefs.h. */
15078 __sync_lock_test_and_set(&lock, 1);
15079 __sync_lock_release(&lock);
15084 if ac_fn_c_try_link "$LINENO"; then :
15085 pgac_cv_gcc_sync_char_tas="yes"
15087 pgac_cv_gcc_sync_char_tas="no"
15089 rm -f core conftest.err conftest.$ac_objext \
15090 conftest$ac_exeext conftest.$ac_ext
15092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_char_tas" >&5
15093 $as_echo "$pgac_cv_gcc_sync_char_tas" >&6; }
15094 if test x"$pgac_cv_gcc_sync_char_tas" = x"yes"; then
15096 $as_echo "#define HAVE_GCC__SYNC_CHAR_TAS 1" >>confdefs.h
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int32 locking functions" >&5
15100 $as_echo_n "checking for builtin __sync int32 locking functions... " >&6; }
15101 if ${pgac_cv_gcc_sync_int32_tas+:} false; then :
15102 $as_echo_n "(cached) " >&6
15104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15105 /* end confdefs.h. */
15111 __sync_lock_test_and_set(&lock, 1);
15112 __sync_lock_release(&lock);
15117 if ac_fn_c_try_link "$LINENO"; then :
15118 pgac_cv_gcc_sync_int32_tas="yes"
15120 pgac_cv_gcc_sync_int32_tas="no"
15122 rm -f core conftest.err conftest.$ac_objext \
15123 conftest$ac_exeext conftest.$ac_ext
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int32_tas" >&5
15126 $as_echo "$pgac_cv_gcc_sync_int32_tas" >&6; }
15127 if test x"$pgac_cv_gcc_sync_int32_tas" = x"yes"; then
15129 $as_echo "#define HAVE_GCC__SYNC_INT32_TAS 1" >>confdefs.h
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int32 atomic operations" >&5
15133 $as_echo_n "checking for builtin __sync int32 atomic operations... " >&6; }
15134 if ${pgac_cv_gcc_sync_int32_cas+:} false; then :
15135 $as_echo_n "(cached) " >&6
15137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15138 /* end confdefs.h. */
15144 __sync_val_compare_and_swap(&val, 0, 37);
15149 if ac_fn_c_try_link "$LINENO"; then :
15150 pgac_cv_gcc_sync_int32_cas="yes"
15152 pgac_cv_gcc_sync_int32_cas="no"
15154 rm -f core conftest.err conftest.$ac_objext \
15155 conftest$ac_exeext conftest.$ac_ext
15157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int32_cas" >&5
15158 $as_echo "$pgac_cv_gcc_sync_int32_cas" >&6; }
15159 if test x"$pgac_cv_gcc_sync_int32_cas" = x"yes"; then
15161 $as_echo "#define HAVE_GCC__SYNC_INT32_CAS 1" >>confdefs.h
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int64 atomic operations" >&5
15165 $as_echo_n "checking for builtin __sync int64 atomic operations... " >&6; }
15166 if ${pgac_cv_gcc_sync_int64_cas+:} false; then :
15167 $as_echo_n "(cached) " >&6
15169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15170 /* end confdefs.h. */
15175 PG_INT64_TYPE lock = 0;
15176 __sync_val_compare_and_swap(&lock, 0, (PG_INT64_TYPE) 37);
15181 if ac_fn_c_try_link "$LINENO"; then :
15182 pgac_cv_gcc_sync_int64_cas="yes"
15184 pgac_cv_gcc_sync_int64_cas="no"
15186 rm -f core conftest.err conftest.$ac_objext \
15187 conftest$ac_exeext conftest.$ac_ext
15189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int64_cas" >&5
15190 $as_echo "$pgac_cv_gcc_sync_int64_cas" >&6; }
15191 if test x"$pgac_cv_gcc_sync_int64_cas" = x"yes"; then
15193 $as_echo "#define HAVE_GCC__SYNC_INT64_CAS 1" >>confdefs.h
15196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __atomic int32 atomic operations" >&5
15197 $as_echo_n "checking for builtin __atomic int32 atomic operations... " >&6; }
15198 if ${pgac_cv_gcc_atomic_int32_cas+:} false; then :
15199 $as_echo_n "(cached) " >&6
15201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15202 /* end confdefs.h. */
15209 __atomic_compare_exchange_n(&val, &expect, 37, 0, __ATOMIC_SEQ_CST, __ATOMIC_RELAXED);
15214 if ac_fn_c_try_link "$LINENO"; then :
15215 pgac_cv_gcc_atomic_int32_cas="yes"
15217 pgac_cv_gcc_atomic_int32_cas="no"
15219 rm -f core conftest.err conftest.$ac_objext \
15220 conftest$ac_exeext conftest.$ac_ext
15222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_atomic_int32_cas" >&5
15223 $as_echo "$pgac_cv_gcc_atomic_int32_cas" >&6; }
15224 if test x"$pgac_cv_gcc_atomic_int32_cas" = x"yes"; then
15226 $as_echo "#define HAVE_GCC__ATOMIC_INT32_CAS 1" >>confdefs.h
15229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __atomic int64 atomic operations" >&5
15230 $as_echo_n "checking for builtin __atomic int64 atomic operations... " >&6; }
15231 if ${pgac_cv_gcc_atomic_int64_cas+:} false; then :
15232 $as_echo_n "(cached) " >&6
15234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15235 /* end confdefs.h. */
15240 PG_INT64_TYPE val = 0;
15241 PG_INT64_TYPE expect = 0;
15242 __atomic_compare_exchange_n(&val, &expect, 37, 0, __ATOMIC_SEQ_CST, __ATOMIC_RELAXED);
15247 if ac_fn_c_try_link "$LINENO"; then :
15248 pgac_cv_gcc_atomic_int64_cas="yes"
15250 pgac_cv_gcc_atomic_int64_cas="no"
15252 rm -f core conftest.err conftest.$ac_objext \
15253 conftest$ac_exeext conftest.$ac_ext
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_atomic_int64_cas" >&5
15256 $as_echo "$pgac_cv_gcc_atomic_int64_cas" >&6; }
15257 if test x"$pgac_cv_gcc_atomic_int64_cas" = x"yes"; then
15259 $as_echo "#define HAVE_GCC__ATOMIC_INT64_CAS 1" >>confdefs.h
15264 # Check for x86 cpuid instruction
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __get_cpuid" >&5
15266 $as_echo_n "checking for __get_cpuid... " >&6; }
15267 if ${pgac_cv__get_cpuid+:} false; then :
15268 $as_echo_n "(cached) " >&6
15270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15271 /* end confdefs.h. */
15276 unsigned int exx[4] = {0, 0, 0, 0};
15277 __get_cpuid(1, &exx[0], &exx[1], &exx[2], &exx[3]);
15283 if ac_fn_c_try_link "$LINENO"; then :
15284 pgac_cv__get_cpuid="yes"
15286 pgac_cv__get_cpuid="no"
15288 rm -f core conftest.err conftest.$ac_objext \
15289 conftest$ac_exeext conftest.$ac_ext
15291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__get_cpuid" >&5
15292 $as_echo "$pgac_cv__get_cpuid" >&6; }
15293 if test x"$pgac_cv__get_cpuid" = x"yes"; then
15295 $as_echo "#define HAVE__GET_CPUID 1" >>confdefs.h
15299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __cpuid" >&5
15300 $as_echo_n "checking for __cpuid... " >&6; }
15301 if ${pgac_cv__cpuid+:} false; then :
15302 $as_echo_n "(cached) " >&6
15304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15305 /* end confdefs.h. */
15306 #include <intrin.h>
15310 unsigned int exx[4] = {0, 0, 0, 0};
15311 __get_cpuid(exx[0], 1);
15317 if ac_fn_c_try_link "$LINENO"; then :
15318 pgac_cv__cpuid="yes"
15320 pgac_cv__cpuid="no"
15322 rm -f core conftest.err conftest.$ac_objext \
15323 conftest$ac_exeext conftest.$ac_ext
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__cpuid" >&5
15326 $as_echo "$pgac_cv__cpuid" >&6; }
15327 if test x"$pgac_cv__cpuid" = x"yes"; then
15329 $as_echo "#define HAVE__CPUID 1" >>confdefs.h
15333 # Check for Intel SSE 4.2 intrinsics to do CRC calculations.
15335 # First check if the _mm_crc32_u8 and _mm_crc32_u64 intrinsics can be used
15336 # with the default compiler flags. If not, check if adding the -msse4.2
15337 # flag helps. CFLAGS_SSE42 is set to -msse4.2 if that's required.
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=" >&5
15339 $as_echo_n "checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=... " >&6; }
15340 if ${pgac_cv_sse42_crc32_intrinsics_+:} false; then :
15341 $as_echo_n "(cached) " >&6
15343 pgac_save_CFLAGS=$CFLAGS
15344 CFLAGS="$pgac_save_CFLAGS "
15345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15346 /* end confdefs.h. */
15347 #include <nmmintrin.h>
15351 unsigned int crc = 0;
15352 crc = _mm_crc32_u8(crc, 0);
15353 crc = _mm_crc32_u32(crc, 0);
15354 /* return computed value, to prevent the above being optimized away */
15360 if ac_fn_c_try_link "$LINENO"; then :
15361 pgac_cv_sse42_crc32_intrinsics_=yes
15363 pgac_cv_sse42_crc32_intrinsics_=no
15365 rm -f core conftest.err conftest.$ac_objext \
15366 conftest$ac_exeext conftest.$ac_ext
15367 CFLAGS="$pgac_save_CFLAGS"
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_sse42_crc32_intrinsics_" >&5
15370 $as_echo "$pgac_cv_sse42_crc32_intrinsics_" >&6; }
15371 if test x"$pgac_cv_sse42_crc32_intrinsics_" = x"yes"; then
15373 pgac_sse42_crc32_intrinsics=yes
15376 if test x"$pgac_sse42_crc32_intrinsics" != x"yes"; then
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=-msse4.2" >&5
15378 $as_echo_n "checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=-msse4.2... " >&6; }
15379 if ${pgac_cv_sse42_crc32_intrinsics__msse4_2+:} false; then :
15380 $as_echo_n "(cached) " >&6
15382 pgac_save_CFLAGS=$CFLAGS
15383 CFLAGS="$pgac_save_CFLAGS -msse4.2"
15384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15385 /* end confdefs.h. */
15386 #include <nmmintrin.h>
15390 unsigned int crc = 0;
15391 crc = _mm_crc32_u8(crc, 0);
15392 crc = _mm_crc32_u32(crc, 0);
15393 /* return computed value, to prevent the above being optimized away */
15399 if ac_fn_c_try_link "$LINENO"; then :
15400 pgac_cv_sse42_crc32_intrinsics__msse4_2=yes
15402 pgac_cv_sse42_crc32_intrinsics__msse4_2=no
15404 rm -f core conftest.err conftest.$ac_objext \
15405 conftest$ac_exeext conftest.$ac_ext
15406 CFLAGS="$pgac_save_CFLAGS"
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_sse42_crc32_intrinsics__msse4_2" >&5
15409 $as_echo "$pgac_cv_sse42_crc32_intrinsics__msse4_2" >&6; }
15410 if test x"$pgac_cv_sse42_crc32_intrinsics__msse4_2" = x"yes"; then
15411 CFLAGS_SSE42="-msse4.2"
15412 pgac_sse42_crc32_intrinsics=yes
15418 # Are we targeting a processor that supports SSE 4.2? gcc, clang and icc all
15419 # define __SSE4_2__ in that case.
15420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15421 /* end confdefs.h. */
15428 #error __SSE4_2__ not defined
15435 if ac_fn_c_try_compile "$LINENO"; then :
15438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15440 # Select CRC-32C implementation.
15442 # If we are targeting a processor that has SSE 4.2 instructions, we can use the
15443 # special CRC instructions for calculating CRC-32C. If we're not targeting such
15444 # a processor, but we can nevertheless produce code that uses the SSE
15445 # intrinsics, perhaps with some extra CFLAGS, compile both implementations and
15446 # select which one to use at runtime, depending on whether SSE 4.2 is supported
15447 # by the processor we're running on.
15449 # You can override this logic by setting the appropriate USE_*_CRC32 flag to 1
15450 # in the template or configure command line.
15451 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
15452 if test x"$pgac_sse42_crc32_intrinsics" = x"yes" && test x"$SSE4_2_TARGETED" = x"1" ; then
15455 # the CPUID instruction is needed for the runtime check.
15456 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
15457 USE_SSE42_CRC32C_WITH_RUNTIME_CHECK=1
15459 # fall back to slicing-by-8 algorithm which doesn't require any special
15461 USE_SLICING_BY_8_CRC32C=1
15466 # Set PG_CRC32C_OBJS appropriately depending on the selected implementation.
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which CRC-32C implementation to use" >&5
15468 $as_echo_n "checking which CRC-32C implementation to use... " >&6; }
15469 if test x"$USE_SSE42_CRC32C" = x"1"; then
15471 $as_echo "#define USE_SSE42_CRC32C 1" >>confdefs.h
15473 PG_CRC32C_OBJS="pg_crc32c_sse42.o"
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SSE 4.2" >&5
15475 $as_echo "SSE 4.2" >&6; }
15477 if test x"$USE_SSE42_CRC32C_WITH_RUNTIME_CHECK" = x"1"; then
15479 $as_echo "#define USE_SSE42_CRC32C_WITH_RUNTIME_CHECK 1" >>confdefs.h
15481 PG_CRC32C_OBJS="pg_crc32c_sse42.o pg_crc32c_sb8.o pg_crc32c_choose.o"
15482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SSE 4.2 with runtime check" >&5
15483 $as_echo "SSE 4.2 with runtime check" >&6; }
15486 $as_echo "#define USE_SLICING_BY_8_CRC32C 1" >>confdefs.h
15488 PG_CRC32C_OBJS="pg_crc32c_sb8.o"
15489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: slicing-by-8" >&5
15490 $as_echo "slicing-by-8" >&6; }
15496 # Select semaphore implementation type.
15497 if test "$PORTNAME" != "win32"; then
15498 if test x"$PREFERRED_SEMAPHORES" = x"NAMED_POSIX" ; then
15499 # Need sem_open for this
15500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_open" >&5
15501 $as_echo_n "checking for library containing sem_open... " >&6; }
15502 if ${ac_cv_search_sem_open+:} false; then :
15503 $as_echo_n "(cached) " >&6
15505 ac_func_search_save_LIBS=$LIBS
15506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15507 /* end confdefs.h. */
15509 /* Override any GCC internal prototype to avoid an error.
15510 Use char because int might match the return type of a GCC
15511 builtin and then its argument prototype would still apply. */
15519 return sem_open ();
15524 for ac_lib in '' rt pthread; do
15525 if test -z "$ac_lib"; then
15526 ac_res="none required"
15529 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15531 if ac_fn_c_try_link "$LINENO"; then :
15532 ac_cv_search_sem_open=$ac_res
15534 rm -f core conftest.err conftest.$ac_objext \
15536 if ${ac_cv_search_sem_open+:} false; then :
15540 if ${ac_cv_search_sem_open+:} false; then :
15543 ac_cv_search_sem_open=no
15545 rm conftest.$ac_ext
15546 LIBS=$ac_func_search_save_LIBS
15548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_open" >&5
15549 $as_echo "$ac_cv_search_sem_open" >&6; }
15550 ac_res=$ac_cv_search_sem_open
15551 if test "$ac_res" != no; then :
15552 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15553 USE_NAMED_POSIX_SEMAPHORES=1
15557 if test x"$PREFERRED_SEMAPHORES" = x"UNNAMED_POSIX" ; then
15558 # Need sem_init for this
15559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
15560 $as_echo_n "checking for library containing sem_init... " >&6; }
15561 if ${ac_cv_search_sem_init+:} false; then :
15562 $as_echo_n "(cached) " >&6
15564 ac_func_search_save_LIBS=$LIBS
15565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15566 /* end confdefs.h. */
15568 /* Override any GCC internal prototype to avoid an error.
15569 Use char because int might match the return type of a GCC
15570 builtin and then its argument prototype would still apply. */
15578 return sem_init ();
15583 for ac_lib in '' rt pthread; do
15584 if test -z "$ac_lib"; then
15585 ac_res="none required"
15588 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15590 if ac_fn_c_try_link "$LINENO"; then :
15591 ac_cv_search_sem_init=$ac_res
15593 rm -f core conftest.err conftest.$ac_objext \
15595 if ${ac_cv_search_sem_init+:} false; then :
15599 if ${ac_cv_search_sem_init+:} false; then :
15602 ac_cv_search_sem_init=no
15604 rm conftest.$ac_ext
15605 LIBS=$ac_func_search_save_LIBS
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
15608 $as_echo "$ac_cv_search_sem_init" >&6; }
15609 ac_res=$ac_cv_search_sem_init
15610 if test "$ac_res" != no; then :
15611 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15612 USE_UNNAMED_POSIX_SEMAPHORES=1
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which semaphore API to use" >&5
15617 $as_echo_n "checking which semaphore API to use... " >&6; }
15618 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
15620 $as_echo "#define USE_NAMED_POSIX_SEMAPHORES 1" >>confdefs.h
15622 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
15623 sematype="named POSIX"
15625 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
15627 $as_echo "#define USE_UNNAMED_POSIX_SEMAPHORES 1" >>confdefs.h
15629 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
15630 sematype="unnamed POSIX"
15633 $as_echo "#define USE_SYSV_SEMAPHORES 1" >>confdefs.h
15635 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
15636 sematype="System V"
15639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sematype" >&5
15640 $as_echo "$sematype" >&6; }
15643 $as_echo "#define USE_WIN32_SEMAPHORES 1" >>confdefs.h
15645 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
15649 # Select shared-memory implementation type.
15650 if test "$PORTNAME" != "win32"; then
15652 $as_echo "#define USE_SYSV_SHARED_MEMORY 1" >>confdefs.h
15654 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
15657 $as_echo "#define USE_WIN32_SHARED_MEMORY 1" >>confdefs.h
15659 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
15662 # Select random number source
15664 # You can override this logic by setting the appropriate USE_*RANDOM flag to 1
15665 # in the template or configure command line.
15667 # If not selected manually, try to select a source automatically.
15668 if test "$enable_strong_random" = "yes" && test x"$USE_OPENSSL_RANDOM" = x"" && test x"$USE_WIN32_RANDOM" = x"" && test x"$USE_DEV_URANDOM" = x"" ; then
15669 if test x"$with_openssl" = x"yes" ; then
15670 USE_OPENSSL_RANDOM=1
15671 elif test "$PORTNAME" = "win32" ; then
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/urandom" >&5
15675 $as_echo_n "checking for /dev/urandom... " >&6; }
15676 if ${ac_cv_file__dev_urandom+:} false; then :
15677 $as_echo_n "(cached) " >&6
15679 test "$cross_compiling" = yes &&
15680 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
15681 if test -r "/dev/urandom"; then
15682 ac_cv_file__dev_urandom=yes
15684 ac_cv_file__dev_urandom=no
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_urandom" >&5
15688 $as_echo "$ac_cv_file__dev_urandom" >&6; }
15689 if test "x$ac_cv_file__dev_urandom" = xyes; then :
15694 if test x"$ac_cv_file__dev_urandom" = x"yes" ; then
15700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which random number source to use" >&5
15701 $as_echo_n "checking which random number source to use... " >&6; }
15702 if test "$enable_strong_random" = yes ; then
15703 if test x"$USE_OPENSSL_RANDOM" = x"1" ; then
15705 $as_echo "#define USE_OPENSSL_RANDOM 1" >>confdefs.h
15707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenSSL" >&5
15708 $as_echo "OpenSSL" >&6; }
15709 elif test x"$USE_WIN32_RANDOM" = x"1" ; then
15711 $as_echo "#define USE_WIN32_RANDOM 1" >>confdefs.h
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows native" >&5
15714 $as_echo "Windows native" >&6; }
15715 elif test x"$USE_DEV_URANDOM" = x"1" ; then
15717 $as_echo "#define USE_DEV_URANDOM 1" >>confdefs.h
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /dev/urandom" >&5
15720 $as_echo "/dev/urandom" >&6; }
15723 no source of strong random numbers was found
15724 PostgreSQL can use OpenSSL or /dev/urandom as a source of random numbers,
15725 for authentication protocols. You can use --disable-strong-random to use a
15726 built-in pseudo random number generator, but that may be insecure." "$LINENO" 5
15729 $as_echo "#define HAVE_STRONG_RANDOM 1" >>confdefs.h
15732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: weak builtin PRNG" >&5
15733 $as_echo "weak builtin PRNG" >&6; }
15734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15735 *** Not using a strong random number source may be insecure." >&5
15736 $as_echo "$as_me: WARNING:
15737 *** Not using a strong random number source may be insecure." >&2;}
15740 # If not set in template file, set bytes to use libc memset()
15741 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
15742 MEMSET_LOOP_LIMIT=1024
15745 cat >>confdefs.h <<_ACEOF
15746 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
15751 if test "$enable_nls" = yes ; then
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind_textdomain_codeset" >&5
15754 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
15755 if ${ac_cv_search_bind_textdomain_codeset+:} false; then :
15756 $as_echo_n "(cached) " >&6
15758 ac_func_search_save_LIBS=$LIBS
15759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15760 /* end confdefs.h. */
15762 /* Override any GCC internal prototype to avoid an error.
15763 Use char because int might match the return type of a GCC
15764 builtin and then its argument prototype would still apply. */
15768 char bind_textdomain_codeset ();
15772 return bind_textdomain_codeset ();
15777 for ac_lib in '' intl; do
15778 if test -z "$ac_lib"; then
15779 ac_res="none required"
15782 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15784 if ac_fn_c_try_link "$LINENO"; then :
15785 ac_cv_search_bind_textdomain_codeset=$ac_res
15787 rm -f core conftest.err conftest.$ac_objext \
15789 if ${ac_cv_search_bind_textdomain_codeset+:} false; then :
15793 if ${ac_cv_search_bind_textdomain_codeset+:} false; then :
15796 ac_cv_search_bind_textdomain_codeset=no
15798 rm conftest.$ac_ext
15799 LIBS=$ac_func_search_save_LIBS
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind_textdomain_codeset" >&5
15802 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
15803 ac_res=$ac_cv_search_bind_textdomain_codeset
15804 if test "$ac_res" != no; then :
15805 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15808 as_fn_error $? "a gettext implementation is required for NLS" "$LINENO" 5
15811 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
15812 if test "x$ac_cv_header_libintl_h" = xyes; then :
15815 as_fn_error $? "header file <libintl.h> is required for NLS" "$LINENO" 5
15819 if test -z "$MSGFMT"; then
15820 for ac_prog in msgfmt
15822 # Extract the first word of "$ac_prog", so it can be a program name with args.
15823 set dummy $ac_prog; ac_word=$2
15824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15825 $as_echo_n "checking for $ac_word... " >&6; }
15826 if ${ac_cv_path_MSGFMT+:} false; then :
15827 $as_echo_n "(cached) " >&6
15831 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15835 for as_dir in $PATH
15838 test -z "$as_dir" && as_dir=.
15839 for ac_exec_ext in '' $ac_executable_extensions; do
15840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15841 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
15842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15852 MSGFMT=$ac_cv_path_MSGFMT
15853 if test -n "$MSGFMT"; then
15854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
15855 $as_echo "$MSGFMT" >&6; }
15857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15858 $as_echo "no" >&6; }
15862 test -n "$MSGFMT" && break
15866 # Report the value of MSGFMT in configure's output in all cases.
15867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSGFMT" >&5
15868 $as_echo_n "checking for MSGFMT... " >&6; }
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
15870 $as_echo "$MSGFMT" >&6; }
15873 if test -z "$MSGFMT"; then
15874 as_fn_error $? "msgfmt is required for NLS" "$LINENO" 5
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msgfmt flags" >&5
15877 $as_echo_n "checking for msgfmt flags... " >&6; }
15878 if ${pgac_cv_msgfmt_flags+:} false; then :
15879 $as_echo_n "(cached) " >&6
15881 if test x"$MSGFMT" != x"" && "$MSGFMT" --version 2>&1 | grep "GNU" >/dev/null; then
15882 pgac_cv_msgfmt_flags=-c
15885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_msgfmt_flags" >&5
15886 $as_echo "$pgac_cv_msgfmt_flags" >&6; }
15887 MSGFMT_FLAGS=$pgac_cv_msgfmt_flags
15889 if test -z "$MSGMERGE"; then
15890 for ac_prog in msgmerge
15892 # Extract the first word of "$ac_prog", so it can be a program name with args.
15893 set dummy $ac_prog; ac_word=$2
15894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15895 $as_echo_n "checking for $ac_word... " >&6; }
15896 if ${ac_cv_path_MSGMERGE+:} false; then :
15897 $as_echo_n "(cached) " >&6
15901 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
15904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15905 for as_dir in $PATH
15908 test -z "$as_dir" && as_dir=.
15909 for ac_exec_ext in '' $ac_executable_extensions; do
15910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15911 ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
15912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15922 MSGMERGE=$ac_cv_path_MSGMERGE
15923 if test -n "$MSGMERGE"; then
15924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
15925 $as_echo "$MSGMERGE" >&6; }
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15928 $as_echo "no" >&6; }
15932 test -n "$MSGMERGE" && break
15936 # Report the value of MSGMERGE in configure's output in all cases.
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSGMERGE" >&5
15938 $as_echo_n "checking for MSGMERGE... " >&6; }
15939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
15940 $as_echo "$MSGMERGE" >&6; }
15943 if test -z "$XGETTEXT"; then
15944 for ac_prog in xgettext
15946 # Extract the first word of "$ac_prog", so it can be a program name with args.
15947 set dummy $ac_prog; ac_word=$2
15948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15949 $as_echo_n "checking for $ac_word... " >&6; }
15950 if ${ac_cv_path_XGETTEXT+:} false; then :
15951 $as_echo_n "(cached) " >&6
15955 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15959 for as_dir in $PATH
15962 test -z "$as_dir" && as_dir=.
15963 for ac_exec_ext in '' $ac_executable_extensions; do
15964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15965 ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
15966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15976 XGETTEXT=$ac_cv_path_XGETTEXT
15977 if test -n "$XGETTEXT"; then
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
15979 $as_echo "$XGETTEXT" >&6; }
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15982 $as_echo "no" >&6; }
15986 test -n "$XGETTEXT" && break
15990 # Report the value of XGETTEXT in configure's output in all cases.
15991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGETTEXT" >&5
15992 $as_echo_n "checking for XGETTEXT... " >&6; }
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
15994 $as_echo "$XGETTEXT" >&6; }
16000 # Check for Tcl configuration script tclConfig.sh
16001 if test "$with_tcl" = yes; then
16002 if test -z "$TCLSH"; then
16003 for ac_prog in tclsh tcl tclsh8.6 tclsh86 tclsh8.5 tclsh85 tclsh8.4 tclsh84
16005 # Extract the first word of "$ac_prog", so it can be a program name with args.
16006 set dummy $ac_prog; ac_word=$2
16007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16008 $as_echo_n "checking for $ac_word... " >&6; }
16009 if ${ac_cv_path_TCLSH+:} false; then :
16010 $as_echo_n "(cached) " >&6
16014 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
16017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16018 for as_dir in $PATH
16021 test -z "$as_dir" && as_dir=.
16022 for ac_exec_ext in '' $ac_executable_extensions; do
16023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16024 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
16025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16035 TCLSH=$ac_cv_path_TCLSH
16036 if test -n "$TCLSH"; then
16037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
16038 $as_echo "$TCLSH" >&6; }
16040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16041 $as_echo "no" >&6; }
16045 test -n "$TCLSH" && break
16049 # Report the value of TCLSH in configure's output in all cases.
16050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCLSH" >&5
16051 $as_echo_n "checking for TCLSH... " >&6; }
16052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
16053 $as_echo "$TCLSH" >&6; }
16056 if test x"$TCLSH" = x""; then
16057 as_fn_error $? "Tcl shell not found" "$LINENO" 5
16060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclConfig.sh" >&5
16061 $as_echo_n "checking for tclConfig.sh... " >&6; }
16062 # Let user override test
16063 if test -z "$TCL_CONFIG_SH"; then
16064 pgac_test_dirs="$with_tclconfig"
16066 set X $pgac_test_dirs; shift
16067 if test $# -eq 0; then
16068 test -z "$TCLSH" && as_fn_error $? "unable to locate tclConfig.sh because no Tcl shell was found" "$LINENO" 5
16069 set X `echo 'puts $auto_path' | $TCLSH`; shift
16073 if test -r "$pgac_dir/tclConfig.sh"; then
16074 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
16080 if test -z "$TCL_CONFIG_SH"; then
16081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16082 $as_echo "no" >&6; }
16083 as_fn_error $? "file 'tclConfig.sh' is required for Tcl" "$LINENO" 5
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCL_CONFIG_SH" >&5
16086 $as_echo "$TCL_CONFIG_SH" >&6; }
16092 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
16093 eval TCL_LIBS=\"$TCL_LIBS\"
16094 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
16095 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
16097 if test "$TCL_SHARED_BUILD" != 1; then
16098 as_fn_error $? "cannot build PL/Tcl because Tcl is not a shared library
16099 Use --without-tcl to disable building PL/Tcl." "$LINENO" 5
16101 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
16102 ac_save_CPPFLAGS=$CPPFLAGS
16103 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
16104 ac_fn_c_check_header_mongrel "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
16105 if test "x$ac_cv_header_tcl_h" = xyes; then :
16108 as_fn_error $? "header file <tcl.h> is required for Tcl" "$LINENO" 5
16112 CPPFLAGS=$ac_save_CPPFLAGS
16115 # check for <perl.h>
16116 if test "$with_perl" = yes; then
16117 ac_save_CPPFLAGS=$CPPFLAGS
16118 CPPFLAGS="$CPPFLAGS -I$perl_archlibexp/CORE"
16119 ac_fn_c_check_header_compile "$LINENO" "perl.h" "ac_cv_header_perl_h" "#include <EXTERN.h>
16121 if test "x$ac_cv_header_perl_h" = xyes; then :
16124 as_fn_error $? "header file <perl.h> is required for Perl" "$LINENO" 5
16128 # While we're at it, check that we can link to libperl.
16129 # On most platforms, if perl.h is there then libperl.so will be too, but at
16130 # this writing Debian packages them separately. There is no known reason to
16131 # waste cycles on separate probes for the Tcl or Python libraries, though.
16132 pgac_save_LIBS=$LIBS
16133 LIBS="$perl_embed_ldflags"
16134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libperl" >&5
16135 $as_echo_n "checking for libperl... " >&6; }
16136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16137 /* end confdefs.h. */
16139 #include <EXTERN.h>
16150 if ac_fn_c_try_link "$LINENO"; then :
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16152 $as_echo "yes" >&6; }
16154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16155 $as_echo "no" >&6; }
16156 as_fn_error $? "libperl library is required for Perl" "$LINENO" 5
16158 rm -f core conftest.err conftest.$ac_objext \
16159 conftest$ac_exeext conftest.$ac_ext
16160 LIBS=$pgac_save_LIBS
16161 CPPFLAGS=$ac_save_CPPFLAGS
16164 # check for <Python.h>
16165 if test "$with_python" = yes; then
16166 ac_save_CPPFLAGS=$CPPFLAGS
16167 CPPFLAGS="$python_includespec $CPPFLAGS"
16168 ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
16169 if test "x$ac_cv_header_Python_h" = xyes; then :
16172 as_fn_error $? "header file <Python.h> is required for Python" "$LINENO" 5
16176 CPPFLAGS=$ac_save_CPPFLAGS
16180 # Check for DocBook and tools
16182 if test -z "$XMLLINT"; then
16183 for ac_prog in xmllint
16185 # Extract the first word of "$ac_prog", so it can be a program name with args.
16186 set dummy $ac_prog; ac_word=$2
16187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16188 $as_echo_n "checking for $ac_word... " >&6; }
16189 if ${ac_cv_path_XMLLINT+:} false; then :
16190 $as_echo_n "(cached) " >&6
16194 ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path.
16197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16198 for as_dir in $PATH
16201 test -z "$as_dir" && as_dir=.
16202 for ac_exec_ext in '' $ac_executable_extensions; do
16203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16204 ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext"
16205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16215 XMLLINT=$ac_cv_path_XMLLINT
16216 if test -n "$XMLLINT"; then
16217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
16218 $as_echo "$XMLLINT" >&6; }
16220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16221 $as_echo "no" >&6; }
16225 test -n "$XMLLINT" && break
16229 # Report the value of XMLLINT in configure's output in all cases.
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMLLINT" >&5
16231 $as_echo_n "checking for XMLLINT... " >&6; }
16232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
16233 $as_echo "$XMLLINT" >&6; }
16237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DocBook XML V4.2" >&5
16238 $as_echo_n "checking for DocBook XML V4.2... " >&6; }
16239 if ${pgac_cv_check_docbook+:} false; then :
16240 $as_echo_n "(cached) " >&6
16242 cat >conftest.xml <<EOF
16243 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
16245 <title>test</title>
16247 <title>random</title>
16249 <title>testsect</title>
16256 pgac_cv_check_docbook=no
16258 if test -n "$XMLLINT"; then
16259 $XMLLINT --noout --valid conftest.xml 1>&5 2>&1
16260 if test $? -eq 0; then
16261 pgac_cv_check_docbook=yes
16266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_check_docbook" >&5
16267 $as_echo "$pgac_cv_check_docbook" >&6; }
16269 have_docbook=$pgac_cv_check_docbook
16272 if test -z "$DBTOEPUB"; then
16273 for ac_prog in dbtoepub
16275 # Extract the first word of "$ac_prog", so it can be a program name with args.
16276 set dummy $ac_prog; ac_word=$2
16277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16278 $as_echo_n "checking for $ac_word... " >&6; }
16279 if ${ac_cv_path_DBTOEPUB+:} false; then :
16280 $as_echo_n "(cached) " >&6
16284 ac_cv_path_DBTOEPUB="$DBTOEPUB" # Let the user override the test with a path.
16287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16288 for as_dir in $PATH
16291 test -z "$as_dir" && as_dir=.
16292 for ac_exec_ext in '' $ac_executable_extensions; do
16293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16294 ac_cv_path_DBTOEPUB="$as_dir/$ac_word$ac_exec_ext"
16295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16305 DBTOEPUB=$ac_cv_path_DBTOEPUB
16306 if test -n "$DBTOEPUB"; then
16307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBTOEPUB" >&5
16308 $as_echo "$DBTOEPUB" >&6; }
16310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16311 $as_echo "no" >&6; }
16315 test -n "$DBTOEPUB" && break
16319 # Report the value of DBTOEPUB in configure's output in all cases.
16320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBTOEPUB" >&5
16321 $as_echo_n "checking for DBTOEPUB... " >&6; }
16322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBTOEPUB" >&5
16323 $as_echo "$DBTOEPUB" >&6; }
16326 if test -z "$XSLTPROC"; then
16327 for ac_prog in xsltproc
16329 # Extract the first word of "$ac_prog", so it can be a program name with args.
16330 set dummy $ac_prog; ac_word=$2
16331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16332 $as_echo_n "checking for $ac_word... " >&6; }
16333 if ${ac_cv_path_XSLTPROC+:} false; then :
16334 $as_echo_n "(cached) " >&6
16338 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
16341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16342 for as_dir in $PATH
16345 test -z "$as_dir" && as_dir=.
16346 for ac_exec_ext in '' $ac_executable_extensions; do
16347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16348 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
16349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16359 XSLTPROC=$ac_cv_path_XSLTPROC
16360 if test -n "$XSLTPROC"; then
16361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
16362 $as_echo "$XSLTPROC" >&6; }
16364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16365 $as_echo "no" >&6; }
16369 test -n "$XSLTPROC" && break
16373 # Report the value of XSLTPROC in configure's output in all cases.
16374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSLTPROC" >&5
16375 $as_echo_n "checking for XSLTPROC... " >&6; }
16376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
16377 $as_echo "$XSLTPROC" >&6; }
16380 if test -z "$FOP"; then
16383 # Extract the first word of "$ac_prog", so it can be a program name with args.
16384 set dummy $ac_prog; ac_word=$2
16385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16386 $as_echo_n "checking for $ac_word... " >&6; }
16387 if ${ac_cv_path_FOP+:} false; then :
16388 $as_echo_n "(cached) " >&6
16392 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
16395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16396 for as_dir in $PATH
16399 test -z "$as_dir" && as_dir=.
16400 for ac_exec_ext in '' $ac_executable_extensions; do
16401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16402 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
16403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16413 FOP=$ac_cv_path_FOP
16414 if test -n "$FOP"; then
16415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
16416 $as_echo "$FOP" >&6; }
16418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16419 $as_echo "no" >&6; }
16423 test -n "$FOP" && break
16427 # Report the value of FOP in configure's output in all cases.
16428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FOP" >&5
16429 $as_echo_n "checking for FOP... " >&6; }
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
16431 $as_echo "$FOP" >&6; }
16436 # Check for test tools
16438 if test "$enable_tap_tests" = yes; then
16439 # Check for necessary modules, unless user has specified the "prove" to use;
16440 # in that case it's her responsibility to have a working configuration.
16441 # (prove might be part of a different Perl installation than perl, eg on
16442 # MSys, so the result of AX_PROG_PERL_MODULES could be irrelevant anyway.)
16443 if test -z "$PROVE"; then
16450 # Make sure we have perl
16451 if test -z "$PERL"; then
16452 # Extract the first word of "perl", so it can be a program name with args.
16453 set dummy perl; ac_word=$2
16454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16455 $as_echo_n "checking for $ac_word... " >&6; }
16456 if ${ac_cv_prog_PERL+:} false; then :
16457 $as_echo_n "(cached) " >&6
16459 if test -n "$PERL"; then
16460 ac_cv_prog_PERL="$PERL" # Let the user override the test.
16462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16463 for as_dir in $PATH
16466 test -z "$as_dir" && as_dir=.
16467 for ac_exec_ext in '' $ac_executable_extensions; do
16468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16469 ac_cv_prog_PERL="perl"
16470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16479 PERL=$ac_cv_prog_PERL
16480 if test -n "$PERL"; then
16481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
16482 $as_echo "$PERL" >&6; }
16484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16485 $as_echo "no" >&6; }
16491 if test "x$PERL" != x; then
16492 ax_perl_modules_failed=0
16493 for ax_perl_module in 'IPC::Run' ; do
16494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl module $ax_perl_module" >&5
16495 $as_echo_n "checking for perl module $ax_perl_module... " >&6; }
16497 # Would be nice to log result here, but can't rely on autoconf internals
16498 $PERL -e "use $ax_perl_module; exit" > /dev/null 2>&1
16499 if test $? -ne 0; then
16500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16501 $as_echo "no" >&6; };
16502 ax_perl_modules_failed=1
16504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
16505 $as_echo "ok" >&6; };
16509 # Run optional shell commands
16510 if test "$ax_perl_modules_failed" = 0; then
16515 as_fn_error $? "Perl module IPC::Run is required to run TAP tests" "$LINENO" 5
16518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5
16519 $as_echo "$as_me: WARNING: could not find perl" >&2;}
16522 # Now make sure we know where prove is
16523 if test -z "$PROVE"; then
16524 for ac_prog in prove
16526 # Extract the first word of "$ac_prog", so it can be a program name with args.
16527 set dummy $ac_prog; ac_word=$2
16528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16529 $as_echo_n "checking for $ac_word... " >&6; }
16530 if ${ac_cv_path_PROVE+:} false; then :
16531 $as_echo_n "(cached) " >&6
16535 ac_cv_path_PROVE="$PROVE" # Let the user override the test with a path.
16538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16539 for as_dir in $PATH
16542 test -z "$as_dir" && as_dir=.
16543 for ac_exec_ext in '' $ac_executable_extensions; do
16544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16545 ac_cv_path_PROVE="$as_dir/$ac_word$ac_exec_ext"
16546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16556 PROVE=$ac_cv_path_PROVE
16557 if test -n "$PROVE"; then
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROVE" >&5
16559 $as_echo "$PROVE" >&6; }
16561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16562 $as_echo "no" >&6; }
16566 test -n "$PROVE" && break
16570 # Report the value of PROVE in configure's output in all cases.
16571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PROVE" >&5
16572 $as_echo_n "checking for PROVE... " >&6; }
16573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROVE" >&5
16574 $as_echo "$PROVE" >&6; }
16577 if test -z "$PROVE"; then
16578 as_fn_error $? "prove not found" "$LINENO" 5
16584 # We have to run the thread test near the end so we have all our symbols
16585 # defined. Cross compiling throws a warning.
16587 if test "$enable_thread_safety" = yes; then
16588 if test "$PORTNAME" != "win32"
16590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking thread safety of required library functions" >&5
16591 $as_echo_n "checking thread safety of required library functions... " >&6; }
16595 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
16596 LIBS="$LIBS $PTHREAD_LIBS"
16597 if test "$cross_compiling" = yes; then :
16598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: maybe" >&5
16599 $as_echo "maybe" >&6; }
16600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
16601 *** Skipping thread test program because of cross-compile build.
16602 *** Run the program in src/test/thread on the target machine.
16604 $as_echo "$as_me: WARNING:
16605 *** Skipping thread test program because of cross-compile build.
16606 *** Run the program in src/test/thread on the target machine.
16609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16610 /* end confdefs.h. */
16611 #include "$srcdir/src/test/thread/thread_test.c"
16613 if ac_fn_c_try_run "$LINENO"; then :
16614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16615 $as_echo "yes" >&6; }
16617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16618 $as_echo "no" >&6; }
16619 as_fn_error $? "thread test program failed
16620 This platform is not thread-safe. Check the file 'config.log' or compile
16621 and run src/test/thread/thread_test for the exact reason.
16622 Use --disable-thread-safety to disable thread safety." "$LINENO" 5
16624 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16625 conftest.$ac_objext conftest.beam conftest.$ac_ext
16631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** skipping thread test on Win32" >&5
16632 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
16636 # If compiler will take -Wl,--as-needed (or various platform-specific
16637 # spellings thereof) then add that to LDFLAGS. This is much easier than
16638 # trying to filter LIBS to the minimum for each executable.
16639 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
16640 # libreadline; therefore we postpone testing it until we know what library
16641 # dependencies readline has. The test code will try to link with $LIBS.
16642 if test "$with_readline" = yes; then
16643 link_test_func=readline
16645 link_test_func=exit
16648 if test "$PORTNAME" = "darwin"; then
16649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,-dead_strip_dylibs" >&5
16650 $as_echo_n "checking whether $CC supports -Wl,-dead_strip_dylibs... " >&6; }
16651 if ${pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs+:} false; then :
16652 $as_echo_n "(cached) " >&6
16654 pgac_save_LDFLAGS=$LDFLAGS
16655 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
16656 if test "$cross_compiling" = yes; then :
16657 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs="assuming no"
16659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16660 /* end confdefs.h. */
16661 extern void $link_test_func (); void (*fptr) () = $link_test_func;
16670 if ac_fn_c_try_run "$LINENO"; then :
16671 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=yes
16673 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=no
16675 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16676 conftest.$ac_objext conftest.beam conftest.$ac_ext
16679 LDFLAGS="$pgac_save_LDFLAGS"
16681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&5
16682 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&6; }
16683 if test x"$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" = x"yes"; then
16684 LDFLAGS="$LDFLAGS -Wl,-dead_strip_dylibs"
16687 elif test "$PORTNAME" = "openbsd"; then
16688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,-Bdynamic" >&5
16689 $as_echo_n "checking whether $CC supports -Wl,-Bdynamic... " >&6; }
16690 if ${pgac_cv_prog_cc_ldflags__Wl__Bdynamic+:} false; then :
16691 $as_echo_n "(cached) " >&6
16693 pgac_save_LDFLAGS=$LDFLAGS
16694 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
16695 if test "$cross_compiling" = yes; then :
16696 pgac_cv_prog_cc_ldflags__Wl__Bdynamic="assuming no"
16698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16699 /* end confdefs.h. */
16700 extern void $link_test_func (); void (*fptr) () = $link_test_func;
16709 if ac_fn_c_try_run "$LINENO"; then :
16710 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=yes
16712 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=no
16714 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16715 conftest.$ac_objext conftest.beam conftest.$ac_ext
16718 LDFLAGS="$pgac_save_LDFLAGS"
16720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&5
16721 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&6; }
16722 if test x"$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" = x"yes"; then
16723 LDFLAGS="$LDFLAGS -Wl,-Bdynamic"
16727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,--as-needed" >&5
16728 $as_echo_n "checking whether $CC supports -Wl,--as-needed... " >&6; }
16729 if ${pgac_cv_prog_cc_ldflags__Wl___as_needed+:} false; then :
16730 $as_echo_n "(cached) " >&6
16732 pgac_save_LDFLAGS=$LDFLAGS
16733 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
16734 if test "$cross_compiling" = yes; then :
16735 pgac_cv_prog_cc_ldflags__Wl___as_needed="assuming no"
16737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16738 /* end confdefs.h. */
16739 extern void $link_test_func (); void (*fptr) () = $link_test_func;
16748 if ac_fn_c_try_run "$LINENO"; then :
16749 pgac_cv_prog_cc_ldflags__Wl___as_needed=yes
16751 pgac_cv_prog_cc_ldflags__Wl___as_needed=no
16753 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16754 conftest.$ac_objext conftest.beam conftest.$ac_ext
16757 LDFLAGS="$pgac_save_LDFLAGS"
16759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_ldflags__Wl___as_needed" >&5
16760 $as_echo "$pgac_cv_prog_cc_ldflags__Wl___as_needed" >&6; }
16761 if test x"$pgac_cv_prog_cc_ldflags__Wl___as_needed" = x"yes"; then
16762 LDFLAGS="$LDFLAGS -Wl,--as-needed"
16767 # Create compiler version string
16768 if test x"$GCC" = x"yes" ; then
16769 cc_string=`${CC} --version | sed q`
16770 case $cc_string in [A-Za-z]*) ;; *) cc_string="GCC $cc_string";; esac
16771 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
16772 cc_string=`${CC} -V 2>&1 | sed q`
16778 cat >>confdefs.h <<_ACEOF
16779 #define PG_VERSION_STR "PostgreSQL $PG_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
16783 # Supply a numeric version string for use by 3rd party add-ons
16784 # awk -F is a regex on some platforms, and not on others, so make "." a tab
16785 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
16787 $AWK '{printf "%d%04d", $1, $2}'`"
16789 cat >>confdefs.h <<_ACEOF
16790 #define PG_VERSION_NUM $PG_VERSION_NUM
16796 # Begin output steps
16798 { $as_echo "$as_me:${as_lineno-$LINENO}: using compiler=$cc_string" >&5
16799 $as_echo "$as_me: using compiler=$cc_string" >&6;}
16800 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS=$CFLAGS" >&5
16801 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
16802 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS=$CPPFLAGS" >&5
16803 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
16804 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS=$LDFLAGS" >&5
16805 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
16807 # prepare build tree if outside source tree
16808 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
16809 # Note 2: /bin/pwd might be better than shell's built-in at getting
16810 # a symlink-free name.
16811 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
16815 if test "$no_create" != yes; then
16816 $as_echo_n "preparing build tree... " >&6
16817 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
16818 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
16819 || as_fn_error $? "failed" "$LINENO" 5
16820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16821 $as_echo "done" >&6; }
16827 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
16830 ac_config_links="$ac_config_links src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION} src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION} src/include/dynloader.h:src/backend/port/dynloader/${template}.h src/include/pg_config_os.h:src/include/port/${template}.h src/Makefile.port:src/makefiles/Makefile.${template}"
16833 if test "$PORTNAME" = "win32"; then
16834 ac_config_commands="$ac_config_commands check_win32_symlinks"
16838 ac_config_headers="$ac_config_headers src/include/pg_config.h"
16841 ac_config_headers="$ac_config_headers src/include/pg_config_ext.h"
16844 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
16847 cat >confcache <<\_ACEOF
16848 # This file is a shell script that caches the results of configure
16849 # tests run on this system so they can be shared between configure
16850 # scripts and configure runs, see configure's option --config-cache.
16851 # It is not useful on other systems. If it contains results you don't
16852 # want to keep, you may remove or edit it.
16854 # config.status only pays attention to the cache file if you give it
16855 # the --recheck option to rerun configure.
16857 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16858 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16859 # following values.
16863 # The following way of writing the cache mishandles newlines in values,
16864 # but we know of no workaround that is simple, portable, and efficient.
16865 # So, we kill variables containing newlines.
16866 # Ultrix sh set writes to stderr and can't be redirected directly,
16867 # and sets the high bit in the cache file unless we assign to the vars.
16869 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16870 eval ac_val=\$$ac_var
16874 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16875 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16878 _ | IFS | as_nl) ;; #(
16879 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16880 *) { eval $ac_var=; unset $ac_var;} ;;
16886 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16887 *${as_nl}ac_space=\ *)
16888 # `set' does not quote correctly, so add quotes: double-quote
16889 # substitution turns \\\\ into \\, and sed turns \\ into \.
16892 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16895 # `set' quotes correctly as required by POSIX, so do not add quotes.
16896 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16905 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16907 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16909 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16910 if test -w "$cache_file"; then
16911 if test "x$cache_file" != "x/dev/null"; then
16912 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16913 $as_echo "$as_me: updating cache $cache_file" >&6;}
16914 if test ! -f "$cache_file" || test -h "$cache_file"; then
16915 cat confcache >"$cache_file"
16917 case $cache_file in #(
16919 mv -f confcache "$cache_file"$$ &&
16920 mv -f "$cache_file"$$ "$cache_file" ;; #(
16922 mv -f confcache "$cache_file" ;;
16927 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16928 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16933 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16934 # Let make expand exec_prefix.
16935 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16937 DEFS=-DHAVE_CONFIG_H
16942 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16943 # 1. Remove the extension, and $U if already installed.
16944 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16945 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16946 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16947 # will be set to the directory where LIBOBJS objects are built.
16948 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16949 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16951 LIBOBJS=$ac_libobjs
16953 LTLIBOBJS=$ac_ltlibobjs
16958 : "${CONFIG_STATUS=./config.status}"
16960 ac_clean_files_save=$ac_clean_files
16961 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16962 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16963 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16965 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16967 # Generated by $as_me.
16968 # Run this file to recreate the current configuration.
16969 # Compiler output produced by configure, useful for debugging
16970 # configure, is in config.log if it exists.
16973 ac_cs_recheck=false
16976 SHELL=\${CONFIG_SHELL-$SHELL}
16979 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16980 ## -------------------- ##
16981 ## M4sh Initialization. ##
16982 ## -------------------- ##
16984 # Be more Bourne compatible
16985 DUALCASE=1; export DUALCASE # for MKS sh
16986 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16989 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16990 # is contrary to our usage. Disable this feature.
16991 alias -g '${1+"$@"}'='"$@"'
16992 setopt NO_GLOB_SUBST
16994 case `(set -o) 2>/dev/null` in #(
17006 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17007 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17008 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17009 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17010 # Prefer a ksh shell builtin over an external printf program on Solaris,
17011 # but without wasting forks for bash or zsh.
17012 if test -z "$BASH_VERSION$ZSH_VERSION" \
17013 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17014 as_echo='print -r --'
17015 as_echo_n='print -rn --'
17016 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17017 as_echo='printf %s\n'
17018 as_echo_n='printf %s'
17020 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17021 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17022 as_echo_n='/usr/ucb/echo -n'
17024 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17025 as_echo_n_body='eval
17029 expr "X$arg" : "X\\(.*\\)$as_nl";
17030 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17032 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17034 export as_echo_n_body
17035 as_echo_n='sh -c $as_echo_n_body as_echo'
17037 export as_echo_body
17038 as_echo='sh -c $as_echo_body as_echo'
17041 # The user is always right.
17042 if test "${PATH_SEPARATOR+set}" != set; then
17044 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17045 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17052 # We need space, tab and new line, in precisely that order. Quoting is
17053 # there to prevent editors from complaining about space-tab.
17054 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17055 # splitting by setting IFS to empty value.)
17058 # Find who we are. Look in the path if we contain no directory separator.
17061 *[\\/]* ) as_myself=$0 ;;
17062 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17063 for as_dir in $PATH
17066 test -z "$as_dir" && as_dir=.
17067 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17073 # We did not find ourselves, most probably we were run as `sh COMMAND'
17074 # in which case we are not to be found in the path.
17075 if test "x$as_myself" = x; then
17078 if test ! -f "$as_myself"; then
17079 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17083 # Unset variables that we do not need and which cause bugs (e.g. in
17084 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17085 # suppresses any "Segmentation fault" message there. '((' could
17086 # trigger a bug in pdksh 5.2.14.
17087 for as_var in BASH_ENV ENV MAIL MAILPATH
17088 do eval test x\${$as_var+set} = xset \
17089 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17102 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17105 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17106 # ----------------------------------------
17107 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17108 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17109 # script with STATUS, using 1 if that was 0.
17112 as_status=$1; test $as_status -eq 0 && as_status=1
17114 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17115 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17117 $as_echo "$as_me: error: $2" >&2
17118 as_fn_exit $as_status
17122 # as_fn_set_status STATUS
17123 # -----------------------
17124 # Set $? to STATUS, without forking.
17125 as_fn_set_status ()
17128 } # as_fn_set_status
17130 # as_fn_exit STATUS
17131 # -----------------
17132 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17136 as_fn_set_status $1
17142 # Portably unset VAR.
17145 { eval $1=; unset $1;}
17147 as_unset=as_fn_unset
17148 # as_fn_append VAR VALUE
17149 # ----------------------
17150 # Append the text in VALUE to the end of the definition contained in VAR. Take
17151 # advantage of any shell optimizations that allow amortized linear growth over
17152 # repeated appends, instead of the typical quadratic growth present in naive
17154 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17155 eval 'as_fn_append ()
17166 # as_fn_arith ARG...
17167 # ------------------
17168 # Perform arithmetic evaluation on the ARGs, and store the result in the
17169 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17170 # must be portable across $(()) and expr.
17171 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17172 eval 'as_fn_arith ()
17179 as_val=`expr "$@" || test $? -eq 1`
17184 if expr a : '\(a\)' >/dev/null 2>&1 &&
17185 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17191 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17192 as_basename=basename
17197 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17203 as_me=`$as_basename -- "$0" ||
17204 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17205 X"$0" : 'X\(//\)$' \| \
17206 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17208 sed '/^.*\/\([^/][^/]*\)\/*$/{
17222 # Avoid depending upon Character Ranges.
17223 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17224 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17225 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17226 as_cr_digits='0123456789'
17227 as_cr_alnum=$as_cr_Letters$as_cr_digits
17229 ECHO_C= ECHO_N= ECHO_T=
17230 case `echo -n x` in #(((((
17232 case `echo 'xy\c'` in
17233 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17235 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17242 rm -f conf$$ conf$$.exe conf$$.file
17243 if test -d conf$$.dir; then
17244 rm -f conf$$.dir/conf$$.file
17247 mkdir conf$$.dir 2>/dev/null
17249 if (echo >conf$$.file) 2>/dev/null; then
17250 if ln -s conf$$.file conf$$ 2>/dev/null; then
17252 # ... but there are two gotchas:
17253 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17254 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17255 # In both cases, we have to default to `cp -pR'.
17256 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17258 elif ln conf$$.file conf$$ 2>/dev/null; then
17266 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17267 rmdir conf$$.dir 2>/dev/null
17272 # Create "$as_dir" as a directory, including parents if necessary.
17277 -*) as_dir=./$as_dir;;
17279 test -d "$as_dir" || eval $as_mkdir_p || {
17283 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17284 *) as_qdir=$as_dir;;
17286 as_dirs="'$as_qdir' $as_dirs"
17287 as_dir=`$as_dirname -- "$as_dir" ||
17288 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17289 X"$as_dir" : 'X\(//\)[^/]' \| \
17290 X"$as_dir" : 'X\(//\)$' \| \
17291 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17292 $as_echo X"$as_dir" |
17293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17297 /^X\(\/\/\)[^/].*/{
17310 test -d "$as_dir" && break
17312 test -z "$as_dirs" || eval "mkdir $as_dirs"
17313 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17317 if mkdir -p . 2>/dev/null; then
17318 as_mkdir_p='mkdir -p "$as_dir"'
17320 test -d ./-p && rmdir ./-p
17325 # as_fn_executable_p FILE
17326 # -----------------------
17327 # Test if FILE is an executable regular file.
17328 as_fn_executable_p ()
17330 test -f "$1" && test -x "$1"
17331 } # as_fn_executable_p
17332 as_test_x='test -x'
17333 as_executable_p=as_fn_executable_p
17335 # Sed expression to map a string onto a valid CPP name.
17336 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17338 # Sed expression to map a string onto a valid variable name.
17339 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17343 ## ----------------------------------- ##
17344 ## Main body of $CONFIG_STATUS script. ##
17345 ## ----------------------------------- ##
17347 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17349 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17350 # Save the log message, to keep $0 and so on meaningful, and to
17351 # report actual input values of CONFIG_FILES etc. instead of their
17352 # values after options handling.
17354 This file was extended by PostgreSQL $as_me 11devel, which was
17355 generated by GNU Autoconf 2.69. Invocation command line was
17357 CONFIG_FILES = $CONFIG_FILES
17358 CONFIG_HEADERS = $CONFIG_HEADERS
17359 CONFIG_LINKS = $CONFIG_LINKS
17360 CONFIG_COMMANDS = $CONFIG_COMMANDS
17363 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17368 case $ac_config_files in *"
17369 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17372 case $ac_config_headers in *"
17373 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17377 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17378 # Files that config.status was made for.
17379 config_files="$ac_config_files"
17380 config_headers="$ac_config_headers"
17381 config_links="$ac_config_links"
17382 config_commands="$ac_config_commands"
17386 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17388 \`$as_me' instantiates files and other configuration actions
17389 from templates according to the current configuration. Unless the files
17390 and actions are specified as TAGs, all are instantiated by default.
17392 Usage: $0 [OPTION]... [TAG]...
17394 -h, --help print this help, then exit
17395 -V, --version print version number and configuration settings, then exit
17396 --config print configuration, then exit
17397 -q, --quiet, --silent
17398 do not print progress messages
17399 -d, --debug don't remove temporary files
17400 --recheck update $as_me by reconfiguring in the same conditions
17401 --file=FILE[:TEMPLATE]
17402 instantiate the configuration file FILE
17403 --header=FILE[:TEMPLATE]
17404 instantiate the configuration header FILE
17406 Configuration files:
17409 Configuration headers:
17412 Configuration links:
17415 Configuration commands:
17418 Report bugs to <pgsql-bugs@postgresql.org>."
17421 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17422 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17424 PostgreSQL config.status 11devel
17425 configured by $0, generated by GNU Autoconf 2.69,
17426 with options \\"\$ac_cs_config\\"
17428 Copyright (C) 2012 Free Software Foundation, Inc.
17429 This config.status script is free software; the Free Software Foundation
17430 gives unlimited permission to copy, distribute and modify it."
17437 test -n "\$AWK" || AWK=awk
17440 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17441 # The default lists apply if the user does not specify any file.
17447 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17448 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17452 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17464 # Handling of the options.
17465 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17467 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17468 $as_echo "$ac_cs_version"; exit ;;
17469 --config | --confi | --conf | --con | --co | --c )
17470 $as_echo "$ac_cs_config"; exit ;;
17471 --debug | --debu | --deb | --de | --d | -d )
17473 --file | --fil | --fi | --f )
17476 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17477 '') as_fn_error $? "missing file argument" ;;
17479 as_fn_append CONFIG_FILES " '$ac_optarg'"
17480 ac_need_defaults=false;;
17481 --header | --heade | --head | --hea )
17484 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17486 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17487 ac_need_defaults=false;;
17489 # Conflict between --help and --header
17490 as_fn_error $? "ambiguous option: \`$1'
17491 Try \`$0 --help' for more information.";;
17492 --help | --hel | -h )
17493 $as_echo "$ac_cs_usage"; exit ;;
17494 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17495 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17498 # This is an error.
17499 -*) as_fn_error $? "unrecognized option: \`$1'
17500 Try \`$0 --help' for more information." ;;
17502 *) as_fn_append ac_config_targets " $1"
17503 ac_need_defaults=false ;;
17509 ac_configure_extra_args=
17511 if $ac_cs_silent; then
17513 ac_configure_extra_args="$ac_configure_extra_args --silent"
17517 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17518 if \$ac_cs_recheck; then
17519 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17521 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17522 CONFIG_SHELL='$SHELL'
17523 export CONFIG_SHELL
17528 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17532 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17533 ## Running $as_me. ##
17539 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17542 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17544 # Handling of arguments.
17545 for ac_config_target in $ac_config_targets
17547 case $ac_config_target in
17548 "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
17549 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
17550 "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
17551 "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
17552 "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
17553 "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
17554 "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
17555 "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
17556 "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
17557 "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
17558 "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
17559 "src/include/pg_config_ext.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config_ext.h" ;;
17560 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
17562 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17567 # If the user did not use the arguments to specify the items to instantiate,
17568 # then the envvar interface is used. Set only those that are not.
17569 # We use the long form for the default assignment because of an extremely
17570 # bizarre bug on SunOS 4.1.3.
17571 if $ac_need_defaults; then
17572 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17573 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17574 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17575 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17578 # Have a temporary directory for convenience. Make it in the build tree
17579 # simply because there is no reason against having it here, and in addition,
17580 # creating and moving files from /tmp can sometimes cause problems.
17581 # Hook for its removal unless debugging.
17582 # Note that there is a small window in which the directory will not be cleaned:
17583 # after its creation but before its name has been assigned to `$tmp'.
17587 trap 'exit_status=$?
17588 : "${ac_tmp:=$tmp}"
17589 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17591 trap 'as_fn_exit 1' 1 2 13 15
17593 # Create a (secure) tmp directory for tmp files.
17596 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17600 tmp=./conf$$-$RANDOM
17601 (umask 077 && mkdir "$tmp")
17602 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17605 # Set up the scripts for CONFIG_FILES section.
17606 # No need to generate them if there are no CONFIG_FILES.
17607 # This happens for instance with `./config.status config.h'.
17608 if test -n "$CONFIG_FILES"; then
17611 ac_cr=`echo X | tr X '\015'`
17612 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17613 # But we know of no other shell where ac_cr would be empty at this
17614 # point, so we can use a bashism as a fallback.
17615 if test "x$ac_cr" = x; then
17616 eval ac_cr=\$\'\\r\'
17618 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17619 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17622 ac_cs_awk_cr=$ac_cr
17625 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17630 echo "cat >conf$$subs.awk <<_ACEOF" &&
17631 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17633 } >conf$$subs.sh ||
17634 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17635 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17637 for ac_last_try in false false false false false :; do
17638 . ./conf$$subs.sh ||
17639 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17641 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17642 if test $ac_delim_n = $ac_delim_num; then
17644 elif $ac_last_try; then
17645 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17647 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17650 rm -f conf$$subs.sh
17652 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17653 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17657 s/^/S["/; s/!.*/"]=/
17667 s/\(.\{148\}\)..*/\1/
17669 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17674 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17681 s/\(.\{148\}\)..*/\1/
17683 s/["\\]/\\&/g; s/^/"/; s/$/"/
17687 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17692 ' <conf$$subs.awk | sed '
17697 ' >>$CONFIG_STATUS || ac_write_fail=1
17698 rm -f conf$$subs.awk
17699 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17701 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17702 for (key in S) S_is_set[key] = 1
17708 nfields = split(line, field, "@")
17710 len = length(field[1])
17711 for (i = 2; i < nfields; i++) {
17713 keylen = length(key)
17714 if (S_is_set[key]) {
17716 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17717 len += length(value) + length(field[++i])
17728 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17729 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17730 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17733 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17734 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17737 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17738 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17739 # trailing colons and then remove the whole line if VPATH becomes empty
17740 # (actually we leave an empty line to preserve line numbers).
17741 if test "x$srcdir" = x.; then
17742 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17760 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17761 fi # test -n "$CONFIG_FILES"
17763 # Set up the scripts for CONFIG_HEADERS section.
17764 # No need to generate them if there are no CONFIG_HEADERS.
17765 # This happens for instance with `./config.status Makefile'.
17766 if test -n "$CONFIG_HEADERS"; then
17767 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17771 # Transform confdefs.h into an awk script `defines.awk', embedded as
17772 # here-document in config.status, that substitutes the proper values into
17773 # config.h.in to produce config.h.
17775 # Create a delimiter string that does not exist in confdefs.h, to ease
17776 # handling of long lines.
17778 for ac_last_try in false false :; do
17779 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17780 if test -z "$ac_tt"; then
17782 elif $ac_last_try; then
17783 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17785 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17789 # For the awk script, D is an array of macro values keyed by name,
17790 # likewise P contains macro parameters if any. Preserve backslash
17791 # newline sequences.
17793 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17795 s/.\{148\}/&'"$ac_delim"'/g
17798 s/^[ ]*#[ ]*define[ ][ ]*/ /
17805 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17807 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17811 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17812 D["\1"]=" \3\\\\\\n"\\/p
17814 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17819 s/.\{148\}/&'"$ac_delim"'/g
17824 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17827 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17829 ' <confdefs.h | sed '
17830 s/'"$ac_delim"'/"\\\
17831 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17833 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17834 for (key in D) D_is_set[key] = 1
17837 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17839 split(line, arg, " ")
17840 if (arg[1] == "#") {
17844 defundef = substr(arg[1], 2)
17847 split(mac1, mac2, "(") #)
17849 prefix = substr(line, 1, index(line, defundef) - 1)
17850 if (D_is_set[macro]) {
17851 # Preserve the white space surrounding the "#".
17852 print prefix "define", macro P[macro] D[macro]
17855 # Replace #undef with comments. This is necessary, for example,
17856 # in the case of _POSIX_SOURCE, which is predefined and required
17857 # on some systems where configure will not decide to define it.
17858 if (defundef == "undef") {
17859 print "/*", prefix defundef, macro, "*/"
17867 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17868 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17869 fi # test -n "$CONFIG_HEADERS"
17872 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
17877 :[FHLC]) ac_mode=$ac_tag; continue;;
17879 case $ac_mode$ac_tag in
17881 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17882 :[FH]-) ac_tag=-:-;;
17883 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17900 -) ac_f="$ac_tmp/stdin";;
17901 *) # Look for the file first in the build tree, then in the source tree
17902 # (if the path is not absolute). The absolute path cannot be DOS-style,
17903 # because $ac_f cannot contain `:'.
17907 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17909 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17911 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17912 as_fn_append ac_file_inputs " '$ac_f'"
17915 # Let's still pretend it is `configure' which instantiates (i.e., don't
17916 # use $as_me), people would be surprised to read:
17917 # /* config.h. Generated by config.status. */
17918 configure_input='Generated from '`
17919 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17921 if test x"$ac_file" != x-; then
17922 configure_input="$ac_file. $configure_input"
17923 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17924 $as_echo "$as_me: creating $ac_file" >&6;}
17926 # Neutralize special characters interpreted by sed in replacement strings.
17927 case $configure_input in #(
17928 *\&* | *\|* | *\\* )
17929 ac_sed_conf_input=`$as_echo "$configure_input" |
17930 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17931 *) ac_sed_conf_input=$configure_input;;
17935 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17936 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17941 ac_dir=`$as_dirname -- "$ac_file" ||
17942 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17943 X"$ac_file" : 'X\(//\)[^/]' \| \
17944 X"$ac_file" : 'X\(//\)$' \| \
17945 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17946 $as_echo X"$ac_file" |
17947 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17951 /^X\(\/\/\)[^/].*/{
17964 as_dir="$ac_dir"; as_fn_mkdir_p
17968 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17970 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17971 # A ".." for each directory in $ac_dir_suffix.
17972 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17973 case $ac_top_builddir_sub in
17974 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17975 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17978 ac_abs_top_builddir=$ac_pwd
17979 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17980 # for backward compatibility:
17981 ac_top_builddir=$ac_top_build_prefix
17984 .) # We are building in place.
17986 ac_top_srcdir=$ac_top_builddir_sub
17987 ac_abs_top_srcdir=$ac_pwd ;;
17988 [\\/]* | ?:[\\/]* ) # Absolute name.
17989 ac_srcdir=$srcdir$ac_dir_suffix;
17990 ac_top_srcdir=$srcdir
17991 ac_abs_top_srcdir=$srcdir ;;
17992 *) # Relative name.
17993 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17994 ac_top_srcdir=$ac_top_build_prefix$srcdir
17995 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17997 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18007 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18008 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18010 ac_MKDIR_P=$MKDIR_P
18012 [\\/$]* | ?:[\\/]* ) ;;
18013 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18018 # If the template does not know about datarootdir, expand it.
18019 # FIXME: This hack should be removed a few years after 2.60.
18020 ac_datarootdir_hack=; ac_datarootdir_seen=
18031 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18032 *datarootdir*) ac_datarootdir_seen=yes;;
18033 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18035 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18037 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18038 ac_datarootdir_hack='
18039 s&@datadir@&$datadir&g
18040 s&@docdir@&$docdir&g
18041 s&@infodir@&$infodir&g
18042 s&@localedir@&$localedir&g
18043 s&@mandir@&$mandir&g
18044 s&\\\${datarootdir}&$datarootdir&g' ;;
18048 # Neutralize VPATH when `$srcdir' = `.'.
18049 # Shell code in configure.ac might set extrasub.
18050 # FIXME: do we really want to maintain this feature?
18051 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18052 ac_sed_extra="$ac_vpsub
18055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18057 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18058 s|@configure_input@|$ac_sed_conf_input|;t t
18059 s&@top_builddir@&$ac_top_builddir_sub&;t t
18060 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18061 s&@srcdir@&$ac_srcdir&;t t
18062 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18063 s&@top_srcdir@&$ac_top_srcdir&;t t
18064 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18065 s&@builddir@&$ac_builddir&;t t
18066 s&@abs_builddir@&$ac_abs_builddir&;t t
18067 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18068 s&@INSTALL@&$ac_INSTALL&;t t
18069 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18070 $ac_datarootdir_hack
18072 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18073 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18075 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18076 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18077 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18078 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18080 which seems to be undefined. Please make sure it is defined" >&5
18081 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18082 which seems to be undefined. Please make sure it is defined" >&2;}
18084 rm -f "$ac_tmp/stdin"
18086 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18087 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18089 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18095 if test x"$ac_file" != x-; then
18097 $as_echo "/* $configure_input */" \
18098 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18099 } >"$ac_tmp/config.h" \
18100 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18101 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18102 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18103 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18106 mv "$ac_tmp/config.h" "$ac_file" \
18107 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18110 $as_echo "/* $configure_input */" \
18111 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18112 || as_fn_error $? "could not create -" "$LINENO" 5
18120 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
18123 # Prefer the file from the source tree if names are identical.
18124 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
18125 ac_source=$srcdir/$ac_source
18128 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
18129 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
18131 if test ! -r "$ac_source"; then
18132 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
18136 # Try a relative symlink, then a hard link, then a copy.
18138 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
18139 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
18141 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
18142 ln "$ac_source" "$ac_file" 2>/dev/null ||
18143 cp -p "$ac_source" "$ac_file" ||
18144 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
18147 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18148 $as_echo "$as_me: executing $ac_file commands" >&6;}
18153 case $ac_file$ac_mode in
18154 "check_win32_symlinks":C)
18155 # Links sometimes fail undetected on Mingw -
18156 # so here we detect it and warn the user
18157 for FILE in $CONFIG_LINKS
18159 # test -e works for symlinks in the MinGW console
18160 test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** link for $FILE -- please fix by hand" >&5
18161 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
18164 "src/include/pg_config.h":H)
18165 # Update timestamp for pg_config.h (see Makefile.global)
18166 echo >src/include/stamp-h
18168 "src/include/pg_config_ext.h":H)
18169 # Update timestamp for pg_config_ext.h (see Makefile.global)
18170 echo >src/include/stamp-ext-h
18172 "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
18180 ac_clean_files=$ac_clean_files_save
18182 test $ac_write_fail = 0 ||
18183 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18186 # configure is writing to config.log, and then calls config.status.
18187 # config.status does its own redirection, appending to config.log.
18188 # Unfortunately, on DOS this fails, as config.log is still kept open
18189 # by configure, so config.status won't be able to write to it; its
18190 # output is simply discarded. So we exec the FD to /dev/null,
18191 # effectively closing config.log, so it can be properly (re)opened and
18192 # appended to by config.status. When coming back to configure, we
18193 # need to make the FD available again.
18194 if test "$no_create" != yes; then
18196 ac_config_status_args=
18197 test "$silent" = yes &&
18198 ac_config_status_args="$ac_config_status_args --quiet"
18200 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18202 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18203 # would make configure fail if this is the last instruction.
18204 $ac_cs_success || as_fn_exit 1
18206 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18208 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}