2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for PostgreSQL 16.0.
5 # Report bugs to <pgsql-bugs@lists.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-2023, 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@lists.postgresql.org about your system,
273 $0: including any error possibly output before this
274 $0: message. Then install a modern shell, or manually run
275 $0: the script 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
='16.0'
586 PACKAGE_STRING
='PostgreSQL 16.0'
587 PACKAGE_BUGREPORT
='pgsql-bugs@lists.postgresql.org'
588 PACKAGE_URL
='https://www.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
666 python_additional_libs
742 PERMIT_DECLARATION_AFTER_STATEMENT
813 program_transform_name
826 enable_option_checking
832 enable_integer_datetimes
866 with_libedit_preferred
879 ac_precious_vars
='build_alias
913 # Initialize some variables set by options.
915 ac_init_version
=false
916 ac_unrecognized_opts
=
918 # The variables have the same names as the options, with
919 # dashes changed to underlines.
927 program_transform_name
=s
,x
,x
,
935 # Installation directory options.
936 # These are left unexpanded so users can "make install exec_prefix=/foo"
937 # and all the variables that are supposed to be based on exec_prefix
938 # by default will actually change.
939 # Use braces instead of parens because sh, perl, etc. also accept them.
940 # (The list follows the same order as the GNU Coding Standards.)
941 bindir
='${exec_prefix}/bin'
942 sbindir
='${exec_prefix}/sbin'
943 libexecdir
='${exec_prefix}/libexec'
944 datarootdir
='${prefix}/share'
945 datadir
='${datarootdir}'
946 sysconfdir
='${prefix}/etc'
947 sharedstatedir
='${prefix}/com'
948 localstatedir
='${prefix}/var'
949 includedir
='${prefix}/include'
950 oldincludedir
='/usr/include'
951 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
952 infodir
='${datarootdir}/info'
957 libdir
='${exec_prefix}/lib'
958 localedir
='${datarootdir}/locale'
959 mandir
='${datarootdir}/man'
965 # If the previous option needs an argument, assign it.
966 if test -n "$ac_prev"; then
967 eval $ac_prev=\
$ac_option
973 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
978 # Accept the important Cygnus configure options, so we can diagnose typos.
980 case $ac_dashdash$ac_option in
984 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
986 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
989 -build |
--build |
--buil |
--bui |
--bu)
990 ac_prev
=build_alias
;;
991 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
992 build_alias
=$ac_optarg ;;
994 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
995 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
996 ac_prev
=cache_file
;;
997 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
998 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
999 cache_file
=$ac_optarg ;;
1001 --config-cache |
-C)
1002 cache_file
=config.cache
;;
1004 -datadir |
--datadir |
--datadi |
--datad)
1006 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1007 datadir
=$ac_optarg ;;
1009 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1010 |
--dataroo |
--dataro |
--datar)
1011 ac_prev
=datarootdir
;;
1012 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1013 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1014 datarootdir
=$ac_optarg ;;
1016 -disable-* |
--disable-*)
1017 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1018 # Reject names that are not valid shell variable names.
1019 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1020 as_fn_error $?
"invalid feature name: $ac_useropt"
1021 ac_useropt_orig
=$ac_useropt
1022 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1023 case $ac_user_opts in
1025 "enable_
$ac_useropt"
1027 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1028 ac_unrecognized_sep
=', ';;
1030 eval enable_
$ac_useropt=no
;;
1032 -docdir |
--docdir |
--docdi |
--doc |
--do)
1034 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1035 docdir
=$ac_optarg ;;
1037 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1039 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1040 dvidir
=$ac_optarg ;;
1042 -enable-* |
--enable-*)
1043 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1044 # Reject names that are not valid shell variable names.
1045 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1046 as_fn_error $?
"invalid feature name: $ac_useropt"
1047 ac_useropt_orig
=$ac_useropt
1048 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1049 case $ac_user_opts in
1051 "enable_
$ac_useropt"
1053 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1054 ac_unrecognized_sep
=', ';;
1056 eval enable_
$ac_useropt=\
$ac_optarg ;;
1058 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1059 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1060 |
--exec |
--exe |
--ex)
1061 ac_prev
=exec_prefix
;;
1062 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1063 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1064 |
--exec=* |
--exe=* |
--ex=*)
1065 exec_prefix
=$ac_optarg ;;
1067 -gas |
--gas |
--ga |
--g)
1068 # Obsolete; use --with-gas.
1071 -help |
--help |
--hel |
--he |
-h)
1072 ac_init_help
=long
;;
1073 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1074 ac_init_help
=recursive
;;
1075 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1076 ac_init_help
=short
;;
1078 -host |
--host |
--hos |
--ho)
1079 ac_prev
=host_alias
;;
1080 -host=* |
--host=* |
--hos=* |
--ho=*)
1081 host_alias
=$ac_optarg ;;
1083 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1085 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1087 htmldir
=$ac_optarg ;;
1089 -includedir |
--includedir |
--includedi |
--included |
--include \
1090 |
--includ |
--inclu |
--incl |
--inc)
1091 ac_prev
=includedir
;;
1092 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1093 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1094 includedir
=$ac_optarg ;;
1096 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1098 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1099 infodir
=$ac_optarg ;;
1101 -libdir |
--libdir |
--libdi |
--libd)
1103 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1104 libdir
=$ac_optarg ;;
1106 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1107 |
--libexe |
--libex |
--libe)
1108 ac_prev
=libexecdir
;;
1109 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1110 |
--libexe=* |
--libex=* |
--libe=*)
1111 libexecdir
=$ac_optarg ;;
1113 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1114 ac_prev
=localedir
;;
1115 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1116 localedir
=$ac_optarg ;;
1118 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1119 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1120 ac_prev
=localstatedir
;;
1121 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1122 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1123 localstatedir
=$ac_optarg ;;
1125 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1127 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1128 mandir
=$ac_optarg ;;
1130 -nfp |
--nfp |
--nf)
1131 # Obsolete; use --without-fp.
1134 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1135 |
--no-cr |
--no-c |
-n)
1138 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1139 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1142 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1143 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1144 |
--oldin |
--oldi |
--old |
--ol |
--o)
1145 ac_prev
=oldincludedir
;;
1146 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1147 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1148 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1149 oldincludedir
=$ac_optarg ;;
1151 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1153 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1154 prefix
=$ac_optarg ;;
1156 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1157 |
--program-pre |
--program-pr |
--program-p)
1158 ac_prev
=program_prefix
;;
1159 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1160 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1161 program_prefix
=$ac_optarg ;;
1163 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1164 |
--program-suf |
--program-su |
--program-s)
1165 ac_prev
=program_suffix
;;
1166 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1167 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1168 program_suffix
=$ac_optarg ;;
1170 -program-transform-name |
--program-transform-name \
1171 |
--program-transform-nam |
--program-transform-na \
1172 |
--program-transform-n |
--program-transform- \
1173 |
--program-transform |
--program-transfor \
1174 |
--program-transfo |
--program-transf \
1175 |
--program-trans |
--program-tran \
1176 |
--progr-tra |
--program-tr |
--program-t)
1177 ac_prev
=program_transform_name
;;
1178 -program-transform-name=* |
--program-transform-name=* \
1179 |
--program-transform-nam=* |
--program-transform-na=* \
1180 |
--program-transform-n=* |
--program-transform-=* \
1181 |
--program-transform=* |
--program-transfor=* \
1182 |
--program-transfo=* |
--program-transf=* \
1183 |
--program-trans=* |
--program-tran=* \
1184 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1185 program_transform_name
=$ac_optarg ;;
1187 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1189 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1190 pdfdir
=$ac_optarg ;;
1192 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1194 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1197 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1198 |
-silent |
--silent |
--silen |
--sile |
--sil)
1201 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1203 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1205 sbindir
=$ac_optarg ;;
1207 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1208 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1209 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1211 ac_prev
=sharedstatedir
;;
1212 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1213 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1214 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1216 sharedstatedir
=$ac_optarg ;;
1218 -site |
--site |
--sit)
1220 -site=* |
--site=* |
--sit=*)
1223 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1225 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1226 srcdir
=$ac_optarg ;;
1228 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1229 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1230 ac_prev
=sysconfdir
;;
1231 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1232 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1233 sysconfdir
=$ac_optarg ;;
1235 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1236 ac_prev
=target_alias
;;
1237 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1238 target_alias
=$ac_optarg ;;
1240 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1243 -version |
--version |
--versio |
--versi |
--vers |
-V)
1244 ac_init_version
=: ;;
1247 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1248 # Reject names that are not valid shell variable names.
1249 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1250 as_fn_error $?
"invalid package name: $ac_useropt"
1251 ac_useropt_orig
=$ac_useropt
1252 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1253 case $ac_user_opts in
1257 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1258 ac_unrecognized_sep
=', ';;
1260 eval with_
$ac_useropt=\
$ac_optarg ;;
1262 -without-* |
--without-*)
1263 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1264 # Reject names that are not valid shell variable names.
1265 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1266 as_fn_error $?
"invalid package name: $ac_useropt"
1267 ac_useropt_orig
=$ac_useropt
1268 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1269 case $ac_user_opts in
1273 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1274 ac_unrecognized_sep
=', ';;
1276 eval with_
$ac_useropt=no
;;
1279 # Obsolete; use --with-x.
1282 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1283 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1284 ac_prev
=x_includes
;;
1285 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1286 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1287 x_includes
=$ac_optarg ;;
1289 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1290 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1291 ac_prev
=x_libraries
;;
1292 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1293 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1294 x_libraries
=$ac_optarg ;;
1296 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1297 Try \`$0 --help' for more information"
1301 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1302 # Reject names that are not valid shell variable names.
1303 case $ac_envvar in #(
1304 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1305 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1307 eval $ac_envvar=\
$ac_optarg
1308 export $ac_envvar ;;
1311 # FIXME: should be removed in autoconf 3.0.
1312 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1313 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1314 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1315 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1321 if test -n "$ac_prev"; then
1322 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1323 as_fn_error $?
"missing argument to $ac_option"
1326 if test -n "$ac_unrecognized_opts"; then
1327 case $enable_option_checking in
1329 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1330 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1334 # Check all directory arguments for consistency.
1335 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1336 datadir sysconfdir sharedstatedir localstatedir includedir \
1337 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1338 libdir localedir mandir
1340 eval ac_val
=\$
$ac_var
1341 # Remove trailing slashes.
1344 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1345 eval $ac_var=\
$ac_val;;
1347 # Be sure to have absolute directory names.
1349 [\\/$
]* | ?
:[\\/]* ) continue;;
1350 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1352 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1355 # There might be people who depend on the old broken behavior: `$host'
1356 # used to hold the argument of --host etc.
1357 # FIXME: To remove some day.
1360 target
=$target_alias
1362 # FIXME: To remove some day.
1363 if test "x$host_alias" != x
; then
1364 if test "x$build_alias" = x
; then
1365 cross_compiling
=maybe
1366 elif test "x$build_alias" != "x$host_alias"; then
1372 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1374 test "$silent" = yes && exec 6>/dev
/null
1377 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1378 ac_ls_di
=`ls -di .` &&
1379 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1380 as_fn_error $?
"working directory cannot be determined"
1381 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1382 as_fn_error $?
"pwd does not report name of working directory"
1385 # Find the source files, if location was not specified.
1386 if test -z "$srcdir"; then
1387 ac_srcdir_defaulted
=yes
1388 # Try the directory containing this script, then the parent directory.
1389 ac_confdir
=`$as_dirname -- "$as_myself" ||
1390 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1391 X"$as_myself" : 'X\(//\)[^/]' \| \
1392 X"$as_myself" : 'X\(//\)$' \| \
1393 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1394 $as_echo X"$as_myself" |
1395 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1413 if test ! -r "$srcdir/$ac_unique_file"; then
1417 ac_srcdir_defaulted
=no
1419 if test ! -r "$srcdir/$ac_unique_file"; then
1420 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1421 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1423 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1425 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1427 # When building in place, set srcdir=.
1428 if test "$ac_abs_confdir" = "$ac_pwd"; then
1431 # Remove unnecessary trailing slashes from srcdir.
1432 # Double slashes in file names in object file debugging info
1433 # mess up M-x gdb in Emacs.
1435 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1437 for ac_var
in $ac_precious_vars; do
1438 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1439 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1440 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1441 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1445 # Report the --help message.
1447 if test "$ac_init_help" = "long"; then
1448 # Omit some internal or obsolete options to make the list less imposing.
1449 # This message is too long to be a string in the A/UX 3.1 sh.
1451 \`configure' configures PostgreSQL 16.0 to adapt to many kinds of systems.
1453 Usage: $0 [OPTION]... [VAR=VALUE]...
1455 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1456 VAR=VALUE. See below for descriptions of some of the useful variables.
1458 Defaults for the options are specified in brackets.
1461 -h, --help display this help and exit
1462 --help=short display options specific to this package
1463 --help=recursive display the short help of all the included packages
1464 -V, --version display version information and exit
1465 -q, --quiet, --silent do not print \`checking ...' messages
1466 --cache-file=FILE cache test results in FILE [disabled]
1467 -C, --config-cache alias for \`--cache-file=config.cache'
1468 -n, --no-create do not create output files
1469 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1471 Installation directories:
1472 --prefix=PREFIX install architecture-independent files in PREFIX
1473 [$ac_default_prefix]
1474 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1477 By default, \`make install' will install all the files in
1478 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1479 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1480 for instance \`--prefix=\$HOME'.
1482 For better control, use the options below.
1484 Fine tuning of the installation directories:
1485 --bindir=DIR user executables [EPREFIX/bin]
1486 --sbindir=DIR system admin executables [EPREFIX/sbin]
1487 --libexecdir=DIR program executables [EPREFIX/libexec]
1488 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1489 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1490 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1491 --libdir=DIR object code libraries [EPREFIX/lib]
1492 --includedir=DIR C header files [PREFIX/include]
1493 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1494 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1495 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1496 --infodir=DIR info documentation [DATAROOTDIR/info]
1497 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1498 --mandir=DIR man documentation [DATAROOTDIR/man]
1499 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1500 --htmldir=DIR html documentation [DOCDIR]
1501 --dvidir=DIR dvi documentation [DOCDIR]
1502 --pdfdir=DIR pdf documentation [DOCDIR]
1503 --psdir=DIR ps documentation [DOCDIR]
1509 --build=BUILD configure
for building on BUILD
[guessed
]
1510 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1514 if test -n "$ac_init_help"; then
1515 case $ac_init_help in
1516 short | recursive
) echo "Configuration of PostgreSQL 16.0:";;
1521 --disable-option-checking ignore unrecognized
--enable/--with options
1522 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1523 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1524 --disable-integer-datetimes
1525 obsolete option
, no longer supported
1526 --enable-nls[=LANGUAGES
]
1527 enable Native Language Support
1528 --disable-rpath do not embed shared library search path
in
1530 --disable-spinlocks do not use spinlocks
1531 --disable-atomics do not use atomic operations
1532 --enable-debug build with debugging symbols
(-g)
1533 --enable-profiling build with profiling enabled
1534 --enable-coverage build with coverage testing instrumentation
1535 --enable-dtrace build with DTrace support
1536 --enable-tap-tests enable TAP tests
(requires Perl and IPC
::Run
)
1537 --enable-depend turn on automatic dependency tracking
1538 --enable-cassert enable assertion checks
(for debugging
)
1539 --disable-thread-safety disable thread-safety
in client libraries
1540 --disable-largefile omit support
for large files
1543 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1544 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1545 --with-extra-version=STRING
1546 append STRING to version
1547 --with-template=NAME override operating system template
1548 --with-includes=DIRS
look for additional header files
in DIRS
1549 --with-libraries=DIRS
look for additional libraries
in DIRS
1550 --with-libs=DIRS alternative spelling of
--with-libraries
1551 --with-pgport=PORTNUM
set default port number
[5432]
1552 --with-blocksize=BLOCKSIZE
1553 set table block size
in kB
[8]
1554 --with-segsize=SEGSIZE
set table segment size
in GB
[1]
1555 --with-segsize-blocks=SEGSIZE_BLOCKS
1556 set table segment size
in blocks
[0]
1557 --with-wal-blocksize=BLOCKSIZE
1558 set WAL block size
in kB
[8]
1559 --with-CC=CMD
set compiler
(deprecated
)
1560 --with-llvm build with LLVM based JIT support
1561 --without-icu build without ICU support
1562 --with-tcl build Tcl modules
(PL
/Tcl
)
1563 --with-tclconfig=DIR tclConfig.sh is
in DIR
1564 --with-perl build Perl modules
(PL
/Perl
)
1565 --with-python build Python modules
(PL
/Python
)
1566 --with-gssapi build with GSSAPI support
1567 --with-krb-srvnam=NAME default service principal name
in Kerberos
(GSSAPI
)
1569 --with-pam build with PAM support
1570 --with-bsd-auth build with BSD Authentication support
1571 --with-ldap build with LDAP support
1572 --with-bonjour build with Bonjour support
1573 --with-selinux build with SELinux support
1574 --with-systemd build with systemd support
1575 --without-readline do not use GNU Readline nor BSD Libedit
for editing
1576 --with-libedit-preferred
1577 prefer BSD Libedit over GNU Readline
1578 --with-uuid=LIB build contrib
/uuid-ossp using LIB
(bsd
,e2fs
,ossp
)
1579 --with-ossp-uuid obsolete spelling of
--with-uuid=ossp
1580 --with-libxml build with XML support
1581 --with-libxslt use XSLT support when building contrib
/xml2
1582 --with-system-tzdata=DIR
1583 use system
time zone data
in DIR
1584 --without-zlib do not use Zlib
1585 --with-lz4 build with LZ4 support
1586 --with-zstd build with ZSTD support
1587 --with-ssl=LIB use LIB
for SSL
/TLS support
(openssl
)
1588 --with-openssl obsolete spelling of
--with-ssl=openssl
1590 Some influential environment variables
:
1591 CC C compiler
command
1592 CFLAGS C compiler flags
1593 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1594 nonstandard directory
<lib dir
>
1595 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1596 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1597 you have headers
in a nonstandard directory
<include dir
>
1598 CXX C
++ compiler
command
1599 CXXFLAGS C
++ compiler flags
1600 LLVM_CONFIG path to llvm-config
command
1601 CLANG path to clang compiler to generate bitcode
1603 PKG_CONFIG path to pkg-config utility
1605 directories to add to pkg-config
's search path
1607 path overriding pkg-config's built-in search path
1608 ICU_CFLAGS C compiler flags
for ICU
, overriding pkg-config
1609 ICU_LIBS linker flags
for ICU
, overriding pkg-config
1610 XML2_CONFIG path to xml2-config utility
1611 XML2_CFLAGS C compiler flags
for XML2
, overriding pkg-config
1612 XML2_LIBS linker flags
for XML2
, overriding pkg-config
1613 LZ4_CFLAGS C compiler flags
for LZ4
, overriding pkg-config
1614 LZ4_LIBS linker flags
for LZ4
, overriding pkg-config
1615 ZSTD_CFLAGS C compiler flags
for ZSTD
, overriding pkg-config
1616 ZSTD_LIBS linker flags
for ZSTD
, overriding pkg-config
1617 LDFLAGS_EX extra linker flags
for linking executables only
1618 LDFLAGS_SL extra linker flags
for linking shared libraries only
1620 PYTHON Python program
1621 MSGFMT msgfmt program
for NLS
1622 TCLSH Tcl interpreter program
(tclsh
)
1624 Use these variables to override the choices made by
`configure' or to help
1625 it to find libraries and programs with nonstandard names/locations.
1627 Report bugs to <pgsql-bugs@lists.postgresql.org>.
1628 PostgreSQL home page: <https://www.postgresql.org/>.
1633 if test "$ac_init_help" = "recursive"; then
1634 # If there are subdirs, report their specific --help.
1635 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1636 test -d "$ac_dir" ||
1637 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1642 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1644 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1645 # A ".." for each directory in $ac_dir_suffix.
1646 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1647 case $ac_top_builddir_sub in
1648 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1649 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1652 ac_abs_top_builddir=$ac_pwd
1653 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1654 # for backward compatibility:
1655 ac_top_builddir=$ac_top_build_prefix
1658 .) # We are building in place.
1660 ac_top_srcdir=$ac_top_builddir_sub
1661 ac_abs_top_srcdir=$ac_pwd ;;
1662 [\\/]* | ?:[\\/]* ) # Absolute name.
1663 ac_srcdir=$srcdir$ac_dir_suffix;
1664 ac_top_srcdir=$srcdir
1665 ac_abs_top_srcdir=$srcdir ;;
1667 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1668 ac_top_srcdir=$ac_top_build_prefix$srcdir
1669 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1671 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1673 cd "$ac_dir" || { ac_status=$?; continue; }
1674 # Check for guested configure.
1675 if test -f "$ac_srcdir/configure.gnu"; then
1677 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1678 elif test -f "$ac_srcdir/configure"; then
1680 $SHELL "$ac_srcdir/configure" --help=recursive
1682 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1684 cd "$ac_pwd" || { ac_status=$?; break; }
1688 test -n "$ac_init_help" && exit $ac_status
1689 if $ac_init_version; then
1691 PostgreSQL configure 16.0
1692 generated by GNU Autoconf 2.69
1694 Copyright (C) 2012 Free Software Foundation, Inc.
1695 This configure script is free software; the Free Software Foundation
1696 gives unlimited permission to copy, distribute and modify it.
1698 Copyright (c) 1996-2023, PostgreSQL Global Development Group
1703 ## ------------------------ ##
1704 ## Autoconf initialization. ##
1705 ## ------------------------ ##
1707 # ac_fn_c_try_compile LINENO
1708 # --------------------------
1709 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1710 ac_fn_c_try_compile ()
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 rm -f conftest.$ac_objext
1714 if { { ac_try="$ac_compile"
1716 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1717 *) ac_try_echo
=$ac_try;;
1719 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720 $as_echo "$ac_try_echo"; } >&5
1721 (eval "$ac_compile") 2>conftest.err
1723 if test -s conftest.err
; then
1724 grep -v '^ *+' conftest.err
>conftest.er1
1725 cat conftest.er1
>&5
1726 mv -f conftest.er1 conftest.err
1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729 test $ac_status = 0; } && {
1730 test -z "$ac_c_werror_flag" ||
1731 test ! -s conftest.err
1732 } && test -s conftest.
$ac_objext; then :
1735 $as_echo "$as_me: failed program was:" >&5
1736 sed 's/^/| /' conftest.
$ac_ext >&5
1740 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1741 as_fn_set_status
$ac_retval
1743 } # ac_fn_c_try_compile
1745 # ac_fn_cxx_try_compile LINENO
1746 # ----------------------------
1747 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1748 ac_fn_cxx_try_compile
()
1750 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1751 rm -f conftest.
$ac_objext
1752 if { { ac_try
="$ac_compile"
1754 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1755 *) ac_try_echo=$ac_try;;
1757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758 $as_echo "$ac_try_echo"; } >&5
1759 (eval "$ac_compile") 2>conftest.err
1761 if test -s conftest.err; then
1762 grep -v '^ *+' conftest.err >conftest.er1
1763 cat conftest.er1 >&5
1764 mv -f conftest.er1 conftest.err
1766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767 test $ac_status = 0; } && {
1768 test -z "$ac_cxx_werror_flag" ||
1769 test ! -s conftest.err
1770 } && test -s conftest.$ac_objext; then :
1773 $as_echo "$as_me: failed program was:" >&5
1774 sed 's/^/| /' conftest.$ac_ext >&5
1778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1779 as_fn_set_status $ac_retval
1781 } # ac_fn_cxx_try_compile
1783 # ac_fn_c_try_link LINENO
1784 # -----------------------
1785 # Try to link conftest.$ac_ext, and return whether this succeeded.
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 rm -f conftest.$ac_objext conftest$ac_exeext
1790 if { { ac_try="$ac_link"
1792 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1793 *) ac_try_echo
=$ac_try;;
1795 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796 $as_echo "$ac_try_echo"; } >&5
1797 (eval "$ac_link") 2>conftest.err
1799 if test -s conftest.err
; then
1800 grep -v '^ *+' conftest.err
>conftest.er1
1801 cat conftest.er1
>&5
1802 mv -f conftest.er1 conftest.err
1804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805 test $ac_status = 0; } && {
1806 test -z "$ac_c_werror_flag" ||
1807 test ! -s conftest.err
1808 } && test -s conftest
$ac_exeext && {
1809 test "$cross_compiling" = yes ||
1810 test -x conftest
$ac_exeext
1814 $as_echo "$as_me: failed program was:" >&5
1815 sed 's/^/| /' conftest.
$ac_ext >&5
1819 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1820 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1821 # interfere with the next link command; also delete a directory that is
1822 # left behind by Apple's compiler. We do this before executing the actions.
1823 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825 as_fn_set_status
$ac_retval
1827 } # ac_fn_c_try_link
1829 # ac_fn_c_try_cpp LINENO
1830 # ----------------------
1831 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1834 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1835 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1837 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1838 *) ac_try_echo=$ac_try;;
1840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1841 $as_echo "$ac_try_echo"; } >&5
1842 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1844 if test -s conftest.err; then
1845 grep -v '^ *+' conftest.err >conftest.er1
1846 cat conftest.er1 >&5
1847 mv -f conftest.er1 conftest.err
1849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1850 test $ac_status = 0; } > conftest.i && {
1851 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1852 test ! -s conftest.err
1856 $as_echo "$as_me: failed program was:" >&5
1857 sed 's/^/| /' conftest.$ac_ext >&5
1861 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1862 as_fn_set_status $ac_retval
1866 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1867 # -------------------------------------------------------
1868 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1869 # the include files in INCLUDES and setting the cache variable VAR
1871 ac_fn_c_check_header_mongrel ()
1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874 if eval \${$3+:} false; then :
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1876 $as_echo_n "checking for $2... " >&6; }
1877 if eval \${$3+:} false; then :
1878 $as_echo_n "(cached) " >&6
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1882 $as_echo "$ac_res" >&6; }
1884 # Is the header compilable?
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1886 $as_echo_n "checking $2 usability... " >&6; }
1887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888 /* end confdefs.h. */
1892 if ac_fn_c_try_compile "$LINENO"; then :
1893 ac_header_compiler=yes
1895 ac_header_compiler=no
1897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1899 $as_echo "$ac_header_compiler" >&6; }
1901 # Is the header present?
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1903 $as_echo_n "checking $2 presence... " >&6; }
1904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1905 /* end confdefs.h. */
1908 if ac_fn_c_try_cpp "$LINENO"; then :
1909 ac_header_preproc=yes
1911 ac_header_preproc=no
1913 rm -f conftest.err conftest.i conftest.$ac_ext
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1915 $as_echo "$ac_header_preproc" >&6; }
1917 # So? What about this header?
1918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1921 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1923 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1927 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1929 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1931 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1933 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1935 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1936 ( $as_echo "## ---------------------------------------------- ##
1937 ## Report this to pgsql-bugs@lists.postgresql.org ##
1938 ## ---------------------------------------------- ##"
1939 ) | sed "s/^/$as_me: WARNING: /" >&2
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1943 $as_echo_n "checking for $2... " >&6; }
1944 if eval \${$3+:} false; then :
1945 $as_echo_n "(cached) " >&6
1947 eval "$3=\$ac_header_compiler"
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1951 $as_echo "$ac_res" >&6; }
1953 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1955 } # ac_fn_c_check_header_mongrel
1957 # ac_fn_c_try_run LINENO
1958 # ----------------------
1959 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1960 # that executables *can* be run.
1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964 if { { ac_try="$ac_link"
1966 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1967 *) ac_try_echo
=$ac_try;;
1969 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1970 $as_echo "$ac_try_echo"; } >&5
1971 (eval "$ac_link") 2>&5
1973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1974 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1975 { { case "(($ac_try" in
1976 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1977 *) ac_try_echo=$ac_try;;
1979 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1980 $as_echo "$ac_try_echo"; } >&5
1981 (eval "$ac_try") 2>&5
1983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1984 test $ac_status = 0; }; }; then :
1987 $as_echo "$as_me: program exited with status $ac_status" >&5
1988 $as_echo "$as_me: failed program was:" >&5
1989 sed 's/^/| /' conftest.$ac_ext >&5
1991 ac_retval=$ac_status
1993 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1994 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1995 as_fn_set_status $ac_retval
1999 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2000 # -------------------------------------------------------
2001 # Tests whether HEADER exists and can be compiled using the include files in
2002 # INCLUDES, setting the cache variable VAR accordingly.
2003 ac_fn_c_check_header_compile ()
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" >&5
2007 $as_echo_n "checking for $2... " >&6; }
2008 if eval \${$3+:} false; then :
2009 $as_echo_n "(cached) " >&6
2011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012 /* end confdefs.h. */
2016 if ac_fn_c_try_compile "$LINENO"; then :
2021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2025 $as_echo "$ac_res" >&6; }
2026 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2028 } # ac_fn_c_check_header_compile
2030 # ac_fn_c_check_func LINENO FUNC VAR
2031 # ----------------------------------
2032 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2033 ac_fn_c_check_func ()
2035 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2037 $as_echo_n "checking for $2... " >&6; }
2038 if eval \${$3+:} false; then :
2039 $as_echo_n "(cached) " >&6
2041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042 /* end confdefs.h. */
2043 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2045 #define $2 innocuous_$2
2047 /* System header to define __stub macros and hopefully few prototypes,
2048 which can conflict with char $2 (); below.
2049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2050 <limits.h> exists even on freestanding compilers. */
2053 # include <limits.h>
2055 # include <assert.h>
2060 /* Override any GCC internal prototype to avoid an error.
2061 Use char because int might match the return type of a GCC
2062 builtin and then its argument prototype would still apply. */
2067 /* The GNU C library defines this for functions which it implements
2068 to always fail with ENOSYS. Some functions are actually named
2069 something starting with __ and the normal name is an alias. */
2070 #if defined __stub_$2 || defined __stub___$2
2082 if ac_fn_c_try_link "$LINENO"; then :
2087 rm -f core conftest.err conftest.$ac_objext \
2088 conftest$ac_exeext conftest.$ac_ext
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2092 $as_echo "$ac_res" >&6; }
2093 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2095 } # ac_fn_c_check_func
2097 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2098 # -------------------------------------------
2099 # Tests whether TYPE exists after having included INCLUDES, setting cache
2100 # variable VAR accordingly.
2101 ac_fn_c_check_type ()
2103 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2105 $as_echo_n "checking for $2... " >&6; }
2106 if eval \${$3+:} false; then :
2107 $as_echo_n "(cached) " >&6
2110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2111 /* end confdefs.h. */
2122 if ac_fn_c_try_compile "$LINENO"; then :
2123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124 /* end confdefs.h. */
2135 if ac_fn_c_try_compile "$LINENO"; then :
2140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2146 $as_echo "$ac_res" >&6; }
2147 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2149 } # ac_fn_c_check_type
2151 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2152 # ----------------------------------------------------
2153 # Tries to find if the field MEMBER exists in type AGGR, after including
2154 # INCLUDES, setting cache variable VAR accordingly.
2155 ac_fn_c_check_member ()
2157 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2159 $as_echo_n "checking for $2.$3... " >&6; }
2160 if eval \${$4+:} false; then :
2161 $as_echo_n "(cached) " >&6
2163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2164 /* end confdefs.h. */
2176 if ac_fn_c_try_compile "$LINENO"; then :
2179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180 /* end confdefs.h. */
2186 if (sizeof ac_aggr.$3)
2192 if ac_fn_c_try_compile "$LINENO"; then :
2197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2203 $as_echo "$ac_res" >&6; }
2204 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2206 } # ac_fn_c_check_member
2208 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2209 # --------------------------------------------
2210 # Tries to find the compile-time value of EXPR in a program that includes
2211 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2213 ac_fn_c_compute_int ()
2215 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2216 if test "$cross_compiling" = yes; then
2217 # Depending upon the size, compute the lo and hi bounds.
2218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219 /* end confdefs.h. */
2224 static int test_array [1 - 2 * !(($2) >= 0)];
2226 return test_array [0];
2232 if ac_fn_c_try_compile "$LINENO"; then :
2235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236 /* end confdefs.h. */
2241 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2243 return test_array [0];
2249 if ac_fn_c_try_compile "$LINENO"; then :
2250 ac_hi=$ac_mid; break
2252 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2253 if test $ac_lo -le $ac_mid; then
2257 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2263 /* end confdefs.h. */
2268 static int test_array [1 - 2 * !(($2) < 0)];
2270 return test_array [0];
2276 if ac_fn_c_try_compile "$LINENO"; then :
2279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280 /* end confdefs.h. */
2285 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2287 return test_array [0];
2293 if ac_fn_c_try_compile "$LINENO"; then :
2294 ac_lo=$ac_mid; break
2296 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2297 if test $ac_mid -le $ac_hi; then
2301 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2311 # Binary search between lo and hi bounds.
2312 while test "x$ac_lo" != "x$ac_hi"; do
2313 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2315 /* end confdefs.h. */
2320 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2322 return test_array [0];
2328 if ac_fn_c_try_compile "$LINENO"; then :
2331 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2336 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2341 /* end confdefs.h. */
2343 static long int longval () { return $2; }
2344 static unsigned long int ulongval () { return $2; }
2351 FILE *f = fopen ("conftest.val", "w");
2356 long int i = longval ();
2359 fprintf (f, "%ld", i);
2363 unsigned long int i = ulongval ();
2366 fprintf (f, "%lu", i);
2368 /* Do not output a trailing newline, as this causes \r\n confusion
2369 on some platforms. */
2370 return ferror (f) || fclose (f) != 0;
2376 if ac_fn_c_try_run "$LINENO"; then :
2377 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2382 conftest.$ac_objext conftest.beam conftest.$ac_ext
2386 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2387 as_fn_set_status $ac_retval
2389 } # ac_fn_c_compute_int
2391 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2392 # ---------------------------------------------
2393 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2395 ac_fn_c_check_decl ()
2397 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2398 # Initialize each $ac_[]_AC_LANG_ABBREV[]_decl_warn_flag once.
2399 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2400 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2402 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2403 if eval \${$3+:} false; then :
2404 $as_echo_n "(cached) " >&6
2406 ac_save_werror_flag=$ac_c_werror_flag
2407 ac_c_werror_flag="$ac_c_decl_warn_flag$ac_c_werror_flag"
2408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2409 /* end confdefs.h. */
2414 #ifndef $as_decl_name
2416 (void) $as_decl_use;
2418 (void) $as_decl_name;
2426 if ac_fn_c_try_compile "$LINENO"; then :
2431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2432 ac_c_werror_flag=$ac_save_werror_flag
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2436 $as_echo "$ac_res" >&6; }
2437 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2439 } # ac_fn_c_check_decl
2440 cat >config.log <<_ACEOF
2441 This file contains any messages produced by compilers while
2442 running configure, to aid debugging if configure makes a mistake.
2444 It was created by PostgreSQL $as_me 16.0, which was
2445 generated by GNU Autoconf 2.69. Invocation command line was
2457 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2458 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2459 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2460 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2461 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2463 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2464 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2466 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2467 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2468 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2469 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2470 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2471 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2472 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480 test -z "$as_dir" && as_dir=.
2481 $as_echo "PATH: $as_dir"
2497 # Keep a trace of the command line.
2498 # Strip out --no-create and --no-recursion so they do not pile up.
2499 # Strip out --silent because we don't want to record it for future runs.
2500 # Also quote any args containing shell meta-characters.
2501 # Make two passes to allow for proper duplicate-argument suppression.
2505 ac_must_keep_next=false
2511 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2512 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2513 | -silent | --silent | --silen | --sile | --sil)
2516 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2519 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2521 as_fn_append ac_configure_args1 " '$ac_arg'"
2522 if test $ac_must_keep_next = true; then
2523 ac_must_keep_next=false # Got value, back to normal.
2526 *=* | --config-cache | -C | -disable-* | --disable-* \
2527 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2528 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2529 | -with-* | --with-* | -without-* | --without-* | --x)
2530 case "$ac_configure_args0 " in
2531 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2534 -* ) ac_must_keep_next=true ;;
2537 as_fn_append ac_configure_args " '$ac_arg'"
2542 { ac_configure_args0=; unset ac_configure_args0;}
2543 { ac_configure_args1=; unset ac_configure_args1;}
2545 # When interrupted or exit'd, cleanup temporary files, and complete
2546 # config.log. We remove comments because anyway the quotes in there
2547 # would cause problems or look ugly.
2548 # WARNING: Use '\'' to represent an apostrophe within the trap.
2549 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2550 trap 'exit_status=$?
2551 # Save into config.log some information that might help in debugging.
2555 $as_echo "## ---------------- ##
2556 ## Cache variables. ##
2557 ## ---------------- ##"
2559 # The following way of writing the cache mishandles newlines in values,
2561 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2562 eval ac_val=\$$ac_var
2566 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2567 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2570 _ | IFS | as_nl) ;; #(
2571 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2572 *) { eval $ac_var=; unset $ac_var;} ;;
2577 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2578 *${as_nl}ac_space=\ *)
2580 "s/'\''/'\''\\\\'\'''\''/g;
2581 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2584 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2591 $as_echo "## ----------------- ##
2592 ## Output variables. ##
2593 ## ----------------- ##"
2595 for ac_var in $ac_subst_vars
2597 eval ac_val=\$$ac_var
2599 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2601 $as_echo "$ac_var='\''$ac_val'\''"
2605 if test -n "$ac_subst_files"; then
2606 $as_echo "## ------------------- ##
2607 ## File substitutions. ##
2608 ## ------------------- ##"
2610 for ac_var in $ac_subst_files
2612 eval ac_val=\$$ac_var
2614 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2616 $as_echo "$ac_var='\''$ac_val'\''"
2621 if test -s confdefs.h; then
2622 $as_echo "## ----------- ##
2629 test "$ac_signal" != 0 &&
2630 $as_echo "$as_me: caught signal $ac_signal"
2631 $as_echo "$as_me: exit $exit_status"
2633 rm -f core *.core core.conftest.* &&
2634 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2637 for ac_signal in 1 2 13 15; do
2638 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2642 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2643 rm -f -r conftest* confdefs.h
2645 $as_echo "/* confdefs.h */" > confdefs.h
2647 # Predefined preprocessor variables.
2649 cat >>confdefs.h <<_ACEOF
2650 #define PACKAGE_NAME "$PACKAGE_NAME"
2653 cat >>confdefs.h <<_ACEOF
2654 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2657 cat >>confdefs.h <<_ACEOF
2658 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2661 cat >>confdefs.h <<_ACEOF
2662 #define PACKAGE_STRING "$PACKAGE_STRING"
2665 cat >>confdefs.h <<_ACEOF
2666 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2669 cat >>confdefs.h <<_ACEOF
2670 #define PACKAGE_URL "$PACKAGE_URL"
2674 # Let the site file select an alternate cache file if it wants to.
2675 # Prefer an explicitly selected file to automatically selected ones.
2678 if test -n "$CONFIG_SITE"; then
2679 # We do not want a PATH search for config.site.
2680 case $CONFIG_SITE in #((
2681 -*) ac_site_file1=./$CONFIG_SITE;;
2682 */*) ac_site_file1=$CONFIG_SITE;;
2683 *) ac_site_file1=./$CONFIG_SITE;;
2685 elif test "x$prefix" != xNONE; then
2686 ac_site_file1=$prefix/share/config.site
2687 ac_site_file2=$prefix/etc/config.site
2689 ac_site_file1=$ac_default_prefix/share/config.site
2690 ac_site_file2=$ac_default_prefix/etc/config.site
2692 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2694 test "x$ac_site_file" = xNONE && continue
2695 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2697 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2698 sed 's/^/| /' "$ac_site_file" >&5
2700 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2701 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2702 as_fn_error $? "failed to load site
script $ac_site_file
2703 See \
`config.log' for more details" "$LINENO" 5; }
2707 if test -r "$cache_file"; then
2708 # Some versions of bash will fail to source /dev/null (special files
2709 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2710 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2712 $as_echo "$as_me: loading cache $cache_file" >&6;}
2714 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2715 *) . "./$cache_file";;
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2720 $as_echo "$as_me: creating cache $cache_file" >&6;}
2724 # Check that the precious variables saved in the cache have kept the same
2726 ac_cache_corrupted=false
2727 for ac_var in $ac_precious_vars; do
2728 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2729 eval ac_new_set=\$ac_env_${ac_var}_set
2730 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2731 eval ac_new_val=\$ac_env_${ac_var}_value
2732 case $ac_old_set,$ac_new_set in
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2735 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2736 ac_cache_corrupted=: ;;
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2739 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2740 ac_cache_corrupted=: ;;
2743 if test "x$ac_old_val" != "x$ac_new_val"; then
2744 # differences in whitespace do not lead to failure.
2745 ac_old_val_w=`echo x
$ac_old_val`
2746 ac_new_val_w=`echo x
$ac_new_val`
2747 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2749 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2750 ac_cache_corrupted=:
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2753 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2754 eval $ac_var=\$ac_old_val
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2757 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2759 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2762 # Pass precious variables to config.status.
2763 if test "$ac_new_set" = set; then
2765 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2766 *) ac_arg=$ac_var=$ac_new_val ;;
2768 case " $ac_configure_args " in
2769 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2770 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2774 if $ac_cache_corrupted; then
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2776 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2778 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2779 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2781 ## -------------------- ##
2782 ## Main body of script. ##
2783 ## -------------------- ##
2786 ac_cpp='$CPP $CPPFLAGS'
2787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2797 for ac_dir in config "$srcdir"/config; do
2798 if test -f "$ac_dir/install-sh"; then
2800 ac_install_sh="$ac_aux_dir/install-sh -c"
2802 elif test -f "$ac_dir/install.sh"; then
2804 ac_install_sh="$ac_aux_dir/install.sh -c"
2806 elif test -f "$ac_dir/shtool"; then
2808 ac_install_sh="$ac_aux_dir/shtool install -c"
2812 if test -z "$ac_aux_dir"; then
2813 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2816 # These three variables are undocumented and unsupported,
2817 # and are intended to be withdrawn in a future Autoconf release.
2818 # They can cause serious problems if a builder's source tree is in a directory
2819 # whose full name contains unusual characters.
2820 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2821 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2822 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2827 cat >>confdefs.h <<_ACEOF
2828 #define CONFIGURE_ARGS "$ac_configure_args"
2832 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\)'`
2833 PG_MINORVERSION=`expr "$PACKAGE_VERSION" : '.*\.\([0-9][0-9]*\)'`
2834 test -n "$PG_MINORVERSION" || PG_MINORVERSION=0
2837 cat >>confdefs.h <<_ACEOF
2838 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2842 cat >>confdefs.h <<_ACEOF
2843 #define PG_MAJORVERSION_NUM $PG_MAJORVERSION
2847 cat >>confdefs.h <<_ACEOF
2848 #define PG_MINORVERSION_NUM $PG_MINORVERSION
2855 # Check whether --with-extra-version was given.
2856 if test "${with_extra_version+set}" = set; then :
2857 withval=$with_extra_version;
2860 as_fn_error $? "argument required for --with-extra-version option" "$LINENO" 5
2863 as_fn_error $? "argument required for --with-extra-version option" "$LINENO" 5
2866 PG_VERSION="$PACKAGE_VERSION$withval"
2871 PG_VERSION="$PACKAGE_VERSION"
2876 cat >>confdefs.h <<_ACEOF
2877 #define PG_VERSION "$PG_VERSION"
2881 # Make sure we can run config.sub.
2882 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2883 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2886 $as_echo_n "checking build system type... " >&6; }
2887 if ${ac_cv_build+:} false; then :
2888 $as_echo_n "(cached) " >&6
2890 ac_build_alias=$build_alias
2891 test "x$ac_build_alias" = x &&
2892 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2893 test "x$ac_build_alias" = x &&
2894 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2895 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2896 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2900 $as_echo "$ac_cv_build" >&6; }
2901 case $ac_cv_build in
2903 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2906 ac_save_IFS=$IFS; IFS='-'
2912 # Remember, the first character of IFS is used to create $*,
2913 # except with old shells:
2916 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2920 $as_echo_n "checking host system type... " >&6; }
2921 if ${ac_cv_host+:} false; then :
2922 $as_echo_n "(cached) " >&6
2924 if test "x$host_alias" = x; then
2925 ac_cv_host=$ac_cv_build
2927 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2928 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2933 $as_echo "$ac_cv_host" >&6; }
2936 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2939 ac_save_IFS=$IFS; IFS='-'
2945 # Remember, the first character of IFS is used to create $*,
2946 # except with old shells:
2949 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which template to use" >&5
2955 $as_echo_n "checking which template to use... " >&6; }
2960 # Check whether --with-template was given.
2961 if test "${with_template+set}" = set; then :
2962 withval=$with_template;
2965 as_fn_error $? "argument required for --with-template option" "$LINENO" 5
2968 as_fn_error $? "argument required for --with-template option" "$LINENO" 5
2973 list) echo; ls "$srcdir/src/template"; exit;;
2974 *) if test -f "$srcdir/src/template/$with_template" ; then
2977 as_fn_error $? "'$withval' is not a valid template name. Use 'list' for a list." "$LINENO" 5
2986 # --with-template not given
2989 aix*) template=aix ;;
2990 cygwin*|msys*) template=cygwin ;;
2991 darwin*) template=darwin ;;
2992 dragonfly*) template=netbsd ;;
2993 freebsd*) template=freebsd ;;
2994 linux*|gnu*|k*bsd*-gnu)
2996 mingw*) template=win32 ;;
2997 netbsd*) template=netbsd ;;
2998 openbsd*) template=openbsd ;;
2999 solaris*) template=solaris ;;
3002 if test x"$template" = x"" ; then
3004 *******************************************************************
3005 PostgreSQL has apparently not been ported to your platform yet.
3006 To try a manual configuration, look into the src/template directory
3007 for a similar platform and use the '--with-template=' option.
3009 Please also contact <pgsql-bugs@lists.postgresql.org> to see about
3010 rectifying this. Include the above 'checking host system type...'
3012 *******************************************************************
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $template" >&5
3022 $as_echo "$template" >&6; }
3027 # Initialize default assumption that we do not need separate assembly code
3028 # for TAS (test-and-set). This can be overridden by the template file
3029 # when it's executed.
3033 # Default, works for most platforms, override in template file if needed
3039 ## Command line options
3043 # Add non-standard directories to the include path
3048 # Check whether --with-includes was given.
3049 if test "${with_includes+set}" = set; then :
3050 withval=$with_includes;
3053 as_fn_error $? "argument required for --with-includes option" "$LINENO" 5
3056 as_fn_error $? "argument required for --with-includes option" "$LINENO" 5
3069 # Add non-standard directories to the library search path
3074 # Check whether --with-libraries was given.
3075 if test "${with_libraries+set}" = set; then :
3076 withval=$with_libraries;
3079 as_fn_error $? "argument required for --with-libraries option" "$LINENO" 5
3082 as_fn_error $? "argument required for --with-libraries option" "$LINENO" 5
3085 LIBRARY_DIRS=$withval
3096 # Check whether --with-libs was given.
3097 if test "${with_libs+set}" = set; then :
3101 as_fn_error $? "argument required for --with-libs option" "$LINENO" 5
3104 as_fn_error $? "argument required for --with-libs option" "$LINENO" 5
3107 LIBRARY_DIRS=$withval
3117 # 64-bit integer date/time storage is now the only option, but to avoid
3118 # unnecessary breakage of build scripts, continue to accept an explicit
3119 # "--enable-integer-datetimes" switch.
3123 # Check whether --enable-integer-datetimes was given.
3124 if test "${enable_integer_datetimes+set}" = set; then :
3125 enableval=$enable_integer_datetimes;
3131 as_fn_error $? "--disable-integer-datetimes is no longer supported" "$LINENO" 5
3134 as_fn_error $? "no argument expected for --enable-integer-datetimes option" "$LINENO" 5
3139 enable_integer_datetimes=yes
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is wanted" >&5
3150 $as_echo_n "checking whether NLS is wanted... " >&6; }
3153 # Check whether --enable-nls was given.
3154 if test "${enable_nls+set}" = set; then :
3155 enableval=$enable_nls;
3165 WANTED_LANGUAGES=$enableval
3175 if test "$enable_nls" = yes; then
3177 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nls" >&5
3182 $as_echo "$enable_nls" >&6; }
3187 # Default port number (--with-pgport), default 5432
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default port number" >&5
3190 $as_echo_n "checking for default port number... " >&6; }
3194 # Check whether --with-pgport was given.
3195 if test "${with_pgport+set}" = set; then :
3196 withval=$with_pgport;
3199 as_fn_error $? "argument required for --with-pgport option" "$LINENO" 5
3202 as_fn_error $? "argument required for --with-pgport option" "$LINENO" 5
3205 default_port=$withval
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $default_port" >&5
3215 $as_echo "$default_port" >&6; }
3216 # Need both of these because some places want an integer and some a string
3218 cat >>confdefs.h <<_ACEOF
3219 #define DEF_PGPORT ${default_port}
3223 cat >>confdefs.h <<_ACEOF
3224 #define DEF_PGPORT_STR "${default_port}"
3229 # It's worth validating port; you can get very confusing errors otherwise
3230 if test x"$default_port" = x""; then
3231 as_fn_error $? "invalid --with-pgport specification: empty string" "$LINENO" 5
3232 elif test ! x`echo "$default_port" |
sed -e 's/[0-9]*//'` = x""; then
3233 as_fn_error $? "invalid --with-pgport specification: must be a number" "$LINENO" 5
3234 elif test ! x`echo "$default_port" |
sed -e 's/^0.//'` = x"$default_port"; then
3235 as_fn_error $? "invalid --with-pgport specification: must not have leading 0" "$LINENO" 5
3236 elif test "$default_port" -lt "1" -o "$default_port" -gt "65535"; then
3237 as_fn_error $? "invalid --with-pgport specification: must be between 1 and 65535" "$LINENO" 5
3241 # '-rpath'-like feature can be disabled
3245 # Check whether --enable-rpath was given.
3246 if test "${enable_rpath+set}" = set; then :
3247 enableval=$enable_rpath;
3256 as_fn_error $? "no argument expected for --enable-rpath option" "$LINENO" 5
3273 # Check whether --enable-spinlocks was given.
3274 if test "${enable_spinlocks+set}" = set; then :
3275 enableval=$enable_spinlocks;
3284 as_fn_error $? "no argument expected for --enable-spinlocks option" "$LINENO" 5
3289 enable_spinlocks=yes
3300 # Check whether --enable-atomics was given.
3301 if test "${enable_atomics+set}" = set; then :
3302 enableval=$enable_atomics;
3311 as_fn_error $? "no argument expected for --enable-atomics option" "$LINENO" 5
3323 # --enable-debug adds -g to compiler flags
3327 # Check whether --enable-debug was given.
3328 if test "${enable_debug+set}" = set; then :
3329 enableval=$enable_debug;
3338 as_fn_error $? "no argument expected for --enable-debug option" "$LINENO" 5
3351 # --enable-profiling enables gcc profiling
3355 # Check whether --enable-profiling was given.
3356 if test "${enable_profiling+set}" = set; then :
3357 enableval=$enable_profiling;
3366 as_fn_error $? "no argument expected for --enable-profiling option" "$LINENO" 5
3378 # --enable-coverage enables generation of code coverage metrics with gcov
3382 # Check whether --enable-coverage was given.
3383 if test "${enable_coverage+set}" = set; then :
3384 enableval=$enable_coverage;
3387 if test -z "$GCOV"; then
3390 # Extract the first word of "$ac_prog", so it can be a program name with args.
3391 set dummy $ac_prog; ac_word=$2
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3393 $as_echo_n "checking for $ac_word... " >&6; }
3394 if ${ac_cv_path_GCOV+:} false; then :
3395 $as_echo_n "(cached) " >&6
3399 ac_cv_path_GCOV="$GCOV" # Let the user override the test with a path.
3402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3406 test -z "$as_dir" && as_dir=.
3407 for ac_exec_ext in '' $ac_executable_extensions; do
3408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3409 ac_cv_path_GCOV="$as_dir/$ac_word$ac_exec_ext"
3410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3420 GCOV=$ac_cv_path_GCOV
3421 if test -n "$GCOV"; then
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3423 $as_echo "$GCOV" >&6; }
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3426 $as_echo "no" >&6; }
3430 test -n "$GCOV" && break
3434 # Report the value of GCOV in configure's output in all cases.
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCOV" >&5
3436 $as_echo_n "checking for GCOV... " >&6; }
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3438 $as_echo "$GCOV" >&6; }
3441 if test -z "$GCOV"; then
3442 as_fn_error $? "gcov not found" "$LINENO" 5
3444 if test -z "$LCOV"; then
3447 # Extract the first word of "$ac_prog", so it can be a program name with args.
3448 set dummy $ac_prog; ac_word=$2
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3450 $as_echo_n "checking for $ac_word... " >&6; }
3451 if ${ac_cv_path_LCOV+:} false; then :
3452 $as_echo_n "(cached) " >&6
3456 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
3459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3463 test -z "$as_dir" && as_dir=.
3464 for ac_exec_ext in '' $ac_executable_extensions; do
3465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3466 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
3467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3477 LCOV=$ac_cv_path_LCOV
3478 if test -n "$LCOV"; then
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3480 $as_echo "$LCOV" >&6; }
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3483 $as_echo "no" >&6; }
3487 test -n "$LCOV" && break
3491 # Report the value of LCOV in configure's output in all cases.
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCOV" >&5
3493 $as_echo_n "checking for LCOV... " >&6; }
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3495 $as_echo "$LCOV" >&6; }
3498 if test -z "$LCOV"; then
3499 as_fn_error $? "lcov not found" "$LINENO" 5
3501 if test -z "$GENHTML"; then
3502 for ac_prog in genhtml
3504 # Extract the first word of "$ac_prog", so it can be a program name with args.
3505 set dummy $ac_prog; ac_word=$2
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3507 $as_echo_n "checking for $ac_word... " >&6; }
3508 if ${ac_cv_path_GENHTML+:} false; then :
3509 $as_echo_n "(cached) " >&6
3513 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
3516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3520 test -z "$as_dir" && as_dir=.
3521 for ac_exec_ext in '' $ac_executable_extensions; do
3522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3523 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
3524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3534 GENHTML=$ac_cv_path_GENHTML
3535 if test -n "$GENHTML"; then
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3537 $as_echo "$GENHTML" >&6; }
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3540 $as_echo "no" >&6; }
3544 test -n "$GENHTML" && break
3548 # Report the value of GENHTML in configure's output in all cases.
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GENHTML" >&5
3550 $as_echo_n "checking for GENHTML... " >&6; }
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3552 $as_echo "$GENHTML" >&6; }
3555 if test -z "$GENHTML"; then
3556 as_fn_error $? "genhtml not found" "$LINENO" 5
3563 as_fn_error $? "no argument expected for --enable-coverage option" "$LINENO" 5
3580 # Check whether --enable-dtrace was given.
3581 if test "${enable_dtrace+set}" = set; then :
3582 enableval=$enable_dtrace;
3585 if test -z "$DTRACE"; then
3586 for ac_prog in dtrace
3588 # Extract the first word of "$ac_prog", so it can be a program name with args.
3589 set dummy $ac_prog; ac_word=$2
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3591 $as_echo_n "checking for $ac_word... " >&6; }
3592 if ${ac_cv_path_DTRACE+:} false; then :
3593 $as_echo_n "(cached) " >&6
3597 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
3600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3604 test -z "$as_dir" && as_dir=.
3605 for ac_exec_ext in '' $ac_executable_extensions; do
3606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3607 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
3608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3618 DTRACE=$ac_cv_path_DTRACE
3619 if test -n "$DTRACE"; then
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
3621 $as_echo "$DTRACE" >&6; }
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3624 $as_echo "no" >&6; }
3628 test -n "$DTRACE" && break
3632 # Report the value of DTRACE in configure's output in all cases.
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5
3634 $as_echo_n "checking for DTRACE... " >&6; }
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
3636 $as_echo "$DTRACE" >&6; }
3639 if test -z "$DTRACE"; then
3640 as_fn_error $? "dtrace not found" "$LINENO" 5
3648 as_fn_error $? "no argument expected for --enable-dtrace option" "$LINENO" 5
3665 # Check whether --enable-tap-tests was given.
3666 if test "${enable_tap_tests+set}" = set; then :
3667 enableval=$enable_tap_tests;
3676 as_fn_error $? "no argument expected for --enable-tap-tests option" "$LINENO" 5
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for block size" >&5
3692 $as_echo_n "checking for block size... " >&6; }
3696 # Check whether --with-blocksize was given.
3697 if test "${with_blocksize+set}" = set; then :
3698 withval=$with_blocksize;
3701 as_fn_error $? "argument required for --with-blocksize option" "$LINENO" 5
3704 as_fn_error $? "argument required for --with-blocksize option" "$LINENO" 5
3716 case ${blocksize} in
3723 *) as_fn_error $? "Invalid block size. Allowed values are 1,2,4,8,16,32." "$LINENO" 5
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${blocksize}kB" >&5
3726 $as_echo "${blocksize}kB" >&6; }
3729 cat >>confdefs.h <<_ACEOF
3730 #define BLCKSZ ${BLCKSZ}
3735 # Relation segment size
3740 # Check whether --with-segsize was given.
3741 if test "${with_segsize+set}" = set; then :
3742 withval=$with_segsize;
3745 as_fn_error $? "argument required for --with-segsize option" "$LINENO" 5
3748 as_fn_error $? "argument required for --with-segsize option" "$LINENO" 5
3763 # Check whether --with-segsize-blocks was given.
3764 if test "${with_segsize_blocks+set}" = set; then :
3765 withval=$with_segsize_blocks;
3768 as_fn_error $? "argument required for --with-segsize-blocks option" "$LINENO" 5
3771 as_fn_error $? "argument required for --with-segsize-blocks option" "$LINENO" 5
3774 segsize_blocks=$withval
3784 # If --with-segsize-blocks is non-zero, it is used, --with-segsize
3785 # otherwise. segsize-blocks is only really useful for developers wanting to
3786 # test segment related code. Warn if both are used.
3787 if test $segsize_blocks -ne 0 -a $segsize -ne 1; then
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: both --with-segsize and --with-segsize-blocks specified, --with-segsize-blocks wins" >&5
3789 $as_echo "$as_me: WARNING: both --with-segsize and --with-segsize-blocks specified, --with-segsize-blocks wins" >&2;}
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for segment size" >&5
3793 $as_echo_n "checking for segment size... " >&6; }
3794 if test $segsize_blocks -eq 0; then
3795 # this expression is set up to avoid unnecessary integer overflow
3796 # blocksize is already guaranteed to be a factor of 1024
3797 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
3798 test $? -eq 0 || exit 1
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${segsize}GB" >&5
3800 $as_echo "${segsize}GB" >&6; }
3802 RELSEG_SIZE=$segsize_blocks
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${RELSEG_SIZE} blocks" >&5
3804 $as_echo "${RELSEG_SIZE} blocks" >&6; }
3808 cat >>confdefs.h <<_ACEOF
3809 #define RELSEG_SIZE ${RELSEG_SIZE}
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAL block size" >&5
3817 $as_echo_n "checking for WAL block size... " >&6; }
3821 # Check whether --with-wal-blocksize was given.
3822 if test "${with_wal_blocksize+set}" = set; then :
3823 withval=$with_wal_blocksize;
3826 as_fn_error $? "argument required for --with-wal-blocksize option" "$LINENO" 5
3829 as_fn_error $? "argument required for --with-wal-blocksize option" "$LINENO" 5
3832 wal_blocksize=$withval
3841 case ${wal_blocksize} in
3842 1) XLOG_BLCKSZ=1024;;
3843 2) XLOG_BLCKSZ=2048;;
3844 4) XLOG_BLCKSZ=4096;;
3845 8) XLOG_BLCKSZ=8192;;
3846 16) XLOG_BLCKSZ=16384;;
3847 32) XLOG_BLCKSZ=32768;;
3848 64) XLOG_BLCKSZ=65536;;
3849 *) as_fn_error $? "Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." "$LINENO" 5
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${wal_blocksize}kB" >&5
3852 $as_echo "${wal_blocksize}kB" >&6; }
3855 cat >>confdefs.h <<_ACEOF
3856 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
3864 # For historical reasons you can also use --with-CC to specify the C compiler
3865 # to use, although the standard way to do this is to set the CC environment
3870 # Check whether --with-CC was given.
3871 if test "${with_CC+set}" = set; then :
3875 as_fn_error $? "argument required for --with-CC option" "$LINENO" 5
3878 as_fn_error $? "argument required for --with-CC option" "$LINENO" 5
3890 aix) pgac_cc_list="gcc xlc"; pgac_cxx_list="g++ xlC";;
3891 *) pgac_cc_list="gcc cc"; pgac_cxx_list="g++ c++";;
3895 ac_cpp='$CPP $CPPFLAGS'
3896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3899 if test -n "$ac_tool_prefix"; then
3900 for ac_prog in $pgac_cc_list
3902 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3903 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3905 $as_echo_n "checking for $ac_word... " >&6; }
3906 if ${ac_cv_prog_CC+:} false; then :
3907 $as_echo_n "(cached) " >&6
3909 if test -n "$CC"; then
3910 ac_cv_prog_CC="$CC" # Let the user override the test.
3912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3916 test -z "$as_dir" && as_dir=.
3917 for ac_exec_ext in '' $ac_executable_extensions; do
3918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3919 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3930 if test -n "$CC"; then
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3932 $as_echo "$CC" >&6; }
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3935 $as_echo "no" >&6; }
3939 test -n "$CC" && break
3942 if test -z "$CC"; then
3944 for ac_prog in $pgac_cc_list
3946 # Extract the first word of "$ac_prog", so it can be a program name with args.
3947 set dummy $ac_prog; ac_word=$2
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3949 $as_echo_n "checking for $ac_word... " >&6; }
3950 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3951 $as_echo_n "(cached) " >&6
3953 if test -n "$ac_ct_CC"; then
3954 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3960 test -z "$as_dir" && as_dir=.
3961 for ac_exec_ext in '' $ac_executable_extensions; do
3962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3963 ac_cv_prog_ac_ct_CC="$ac_prog"
3964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3973 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3974 if test -n "$ac_ct_CC"; then
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3976 $as_echo "$ac_ct_CC" >&6; }
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3979 $as_echo "no" >&6; }
3983 test -n "$ac_ct_CC" && break
3986 if test "x$ac_ct_CC" = x; then
3989 case $cross_compiling:$ac_tool_warned in
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3993 ac_tool_warned=yes ;;
4000 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4001 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4002 as_fn_error $? "no acceptable C compiler found
in \
$PATH
4003 See \
`config.log' for more details" "$LINENO" 5; }
4005 # Provide some information about the compiler.
4006 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4009 for ac_option in --version -v -V -qversion; do
4010 { { ac_try="$ac_compiler $ac_option >&5"
4012 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4013 *) ac_try_echo
=$ac_try;;
4015 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4016 $as_echo "$ac_try_echo"; } >&5
4017 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4019 if test -s conftest.err
; then
4021 ... rest of stderr output deleted ...
4022 10q' conftest.err
>conftest.er1
4023 cat conftest.er1
>&5
4025 rm -f conftest.er1 conftest.err
4026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4027 test $ac_status = 0; }
4030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4031 /* end confdefs.h. */
4041 ac_clean_files_save
=$ac_clean_files
4042 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4043 # Try to create an executable without -o first, disregard a.out.
4044 # It will help us diagnose broken compilers, and finding out an intuition
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4047 $as_echo_n "checking whether the C compiler works... " >&6; }
4048 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4050 # The possible output files:
4051 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4054 for ac_file
in $ac_files
4057 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4058 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
4063 if { { ac_try
="$ac_link_default"
4065 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4066 *) ac_try_echo=$ac_try;;
4068 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4069 $as_echo "$ac_try_echo"; } >&5
4070 (eval "$ac_link_default") 2>&5
4072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4073 test $ac_status = 0; }; then :
4074 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
4075 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
4076 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4077 # so that the user can short-circuit this test for compilers unknown to
4079 for ac_file in $ac_files ''
4081 test -f "$ac_file" || continue
4083 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4086 # We found the default executable, but exeext='' is most
4090 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4092 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4094 # We set ac_cv_exeext here because the later test for it is not
4095 # safe: cross compilers may not add the suffix if given an `-o'
4096 # argument, so we may need to know it at that point already.
4097 # Even if this section looks crufty: it has the advantage of
4104 test "$ac_cv_exeext" = no && ac_cv_exeext=
4109 if test -z "$ac_file"; then :
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4111 $as_echo "no" >&6; }
4112 $as_echo "$as_me: failed program was:" >&5
4113 sed 's
/^
/|
/' conftest.$ac_ext >&5
4115 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4116 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
4117 as_fn_error 77 "C compiler cannot create executables
4118 See \`config.log
' for more details" "$LINENO" 5; }
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4121 $as_echo "yes" >&6; }
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4124 $as_echo_n "checking for C compiler default output file name... " >&6; }
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4126 $as_echo "$ac_file" >&6; }
4127 ac_exeext=$ac_cv_exeext
4129 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4130 ac_clean_files=$ac_clean_files_save
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4132 $as_echo_n "checking for suffix of executables... " >&6; }
4133 if { { ac_try="$ac_link"
4135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136 *) ac_try_echo=$ac_try;;
4138 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4139 $as_echo "$ac_try_echo"; } >&5
4140 (eval "$ac_link") 2>&5
4142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4143 test $ac_status = 0; }; then :
4144 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
4145 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
4146 # work properly (i.e., refer to `conftest.exe
'), while it won't with
4148 for ac_file
in conftest.exe conftest conftest.
*; do
4149 test -f "$ac_file" ||
continue
4151 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4152 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4158 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4160 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4161 See \`config.log' for more details" "$LINENO" 5; }
4163 rm -f conftest conftest
$ac_cv_exeext
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4165 $as_echo "$ac_cv_exeext" >&6; }
4167 rm -f conftest.
$ac_ext
4168 EXEEXT
=$ac_cv_exeext
4170 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4171 /* end confdefs.h. */
4176 FILE *f = fopen ("conftest.out", "w");
4177 return ferror (f) || fclose (f) != 0;
4183 ac_clean_files
="$ac_clean_files conftest.out"
4184 # Check that the compiler produces executables we can run. If not, either
4185 # the compiler is broken, or we cross compile.
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4187 $as_echo_n "checking whether we are cross compiling... " >&6; }
4188 if test "$cross_compiling" != yes; then
4189 { { ac_try
="$ac_link"
4191 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4192 *) ac_try_echo=$ac_try;;
4194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4195 $as_echo "$ac_try_echo"; } >&5
4196 (eval "$ac_link") 2>&5
4198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4199 test $ac_status = 0; }
4200 if { ac_try='./conftest$ac_cv_exeext'
4201 { { case "(($ac_try" in
4202 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4203 *) ac_try_echo
=$ac_try;;
4205 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4206 $as_echo "$ac_try_echo"; } >&5
4207 (eval "$ac_try") 2>&5
4209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4210 test $ac_status = 0; }; }; then
4213 if test "$cross_compiling" = maybe
; then
4216 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4217 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4218 as_fn_error $?
"cannot run C compiled programs.
4219 If you meant to cross compile, use \`--host'.
4220 See \`config.log' for more details" "$LINENO" 5; }
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4225 $as_echo "$cross_compiling" >&6; }
4227 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4228 ac_clean_files
=$ac_clean_files_save
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4230 $as_echo_n "checking for suffix of object files... " >&6; }
4231 if ${ac_cv_objext+:} false
; then :
4232 $as_echo_n "(cached) " >&6
4234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4235 /* end confdefs.h. */
4245 rm -f conftest.o conftest.obj
4246 if { { ac_try
="$ac_compile"
4248 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4249 *) ac_try_echo=$ac_try;;
4251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4252 $as_echo "$ac_try_echo"; } >&5
4253 (eval "$ac_compile") 2>&5
4255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4256 test $ac_status = 0; }; then :
4257 for ac_file in conftest.o conftest.obj conftest.*; do
4258 test -f "$ac_file" || continue;
4260 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4261 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4266 $as_echo "$as_me: failed program was:" >&5
4267 sed 's/^/| /' conftest.$ac_ext >&5
4269 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4270 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4271 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4272 See \
`config.log' for more details" "$LINENO" 5; }
4274 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4277 $as_echo "$ac_cv_objext" >&6; }
4278 OBJEXT=$ac_cv_objext
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4281 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4282 if ${ac_cv_c_compiler_gnu+:} false; then :
4283 $as_echo_n "(cached) " >&6
4285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4286 /* end confdefs.h. */
4299 if ac_fn_c_try_compile "$LINENO"; then :
4304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4305 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4309 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4310 if test $ac_compiler_gnu = yes; then
4315 ac_test_CFLAGS=${CFLAGS+set}
4316 ac_save_CFLAGS=$CFLAGS
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4318 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4319 if ${ac_cv_prog_cc_g+:} false; then :
4320 $as_echo_n "(cached) " >&6
4322 ac_save_c_werror_flag=$ac_c_werror_flag
4323 ac_c_werror_flag=yes
4326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4327 /* end confdefs.h. */
4337 if ac_fn_c_try_compile "$LINENO"; then :
4341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4342 /* end confdefs.h. */
4352 if ac_fn_c_try_compile "$LINENO"; then :
4355 ac_c_werror_flag=$ac_save_c_werror_flag
4357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4358 /* end confdefs.h. */
4368 if ac_fn_c_try_compile "$LINENO"; then :
4371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4376 ac_c_werror_flag=$ac_save_c_werror_flag
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4379 $as_echo "$ac_cv_prog_cc_g" >&6; }
4380 if test "$ac_test_CFLAGS" = set; then
4381 CFLAGS=$ac_save_CFLAGS
4382 elif test $ac_cv_prog_cc_g = yes; then
4383 if test "$GCC" = yes; then
4389 if test "$GCC" = yes; then
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4396 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4397 if ${ac_cv_prog_cc_c89+:} false; then :
4398 $as_echo_n "(cached) " >&6
4400 ac_cv_prog_cc_c89=no
4402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4403 /* end confdefs.h. */
4407 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4408 struct buf { int x; };
4409 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4410 static char *e (p, i)
4416 static char *f (char * (*g) (char **, int), char **p, ...)
4421 s = g (p, va_arg (v,int));
4426 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4427 function prototypes and stuff, but not '\xHH' hex character constants.
4428 These don't provoke an error unfortunately, instead are silently treated
4429 as 'x'. The following induces an error, until -std is added to get
4430 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4431 array size at least. It's necessary to write '\x00'==0 to get something
4432 that's true only with -std. */
4433 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4435 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4436 inside strings and character constants. */
4438 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4440 int test (int i, double x);
4441 struct s1 {int (*f) (int a);};
4442 struct s2 {int (*f) (double a);};
4443 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4449 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4454 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4455 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4457 CC="$ac_save_CC $ac_arg"
4458 if ac_fn_c_try_compile "$LINENO"; then :
4459 ac_cv_prog_cc_c89=$ac_arg
4461 rm -f core conftest.err conftest.$ac_objext
4462 test "x$ac_cv_prog_cc_c89" != "xno" && break
4464 rm -f conftest.$ac_ext
4469 case "x$ac_cv_prog_cc_c89" in
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4472 $as_echo "none needed" >&6; } ;;
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4475 $as_echo "unsupported" >&6; } ;;
4477 CC="$CC $ac_cv_prog_cc_c89"
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4479 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4481 if test "x$ac_cv_prog_cc_c89" != xno; then :
4486 ac_cpp='$CPP $CPPFLAGS'
4487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4492 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4493 if ${ac_cv_prog_cc_c99+:} false; then :
4494 $as_echo_n "(cached) " >&6
4496 ac_cv_prog_cc_c99=no
4498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4499 /* end confdefs.h. */
4501 #include <stdbool.h>
4506 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4507 #define debug(...) fprintf (stderr, __VA_ARGS__)
4508 #define showlist(...) puts (#__VA_ARGS__)
4509 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4511 test_varargs_macros (void)
4516 debug ("X = %d\n", x);
4517 showlist (The first, second, and third items.);
4518 report (x>y, "x is %d but y is %d", x, y);
4521 // Check long long types.
4522 #define BIG64 18446744073709551615ull
4523 #define BIG32 4294967295ul
4524 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4526 your preprocessor is broken;
4530 your preprocessor is broken;
4532 static long long int bignum = -9223372036854775807LL;
4533 static unsigned long long int ubignum = BIG64;
4535 struct incomplete_array
4543 const wchar_t *name;
4547 typedef const char *ccp;
4550 test_restrict (ccp restrict text)
4552 // See if C++-style comments work.
4553 // Iterate through items via the restricted pointer.
4554 // Also check for declarations in for loops.
4555 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4560 // Check varargs and va_copy.
4562 test_varargs (const char *format, ...)
4565 va_start (args, format);
4567 va_copy (args_copy, args);
4578 str = va_arg (args_copy, const char *);
4581 number = va_arg (args_copy, int);
4584 fnumber = va_arg (args_copy, double);
4599 _Bool success = false;
4602 if (test_restrict ("String literal") == 0)
4604 char *restrict newvar = "Another string";
4607 test_varargs ("s, d' f .", "string", 65, 34.234);
4608 test_varargs_macros ();
4610 // Check flexible array members.
4611 struct incomplete_array *ia =
4612 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4614 for (int i = 0; i < ia->datasize; ++i)
4615 ia->data[i] = i * 1.234;
4617 // Check named initializers.
4618 struct named_init ni = {
4620 .name = L"Test wide string",
4621 .average = 543.34343,
4626 int dynamic_array[ni.number];
4627 dynamic_array[ni.number - 1] = 543;
4629 // work around unused variable warnings
4630 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4631 || dynamic_array[ni.number - 1] != 543);
4637 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4639 CC="$ac_save_CC $ac_arg"
4640 if ac_fn_c_try_compile "$LINENO"; then :
4641 ac_cv_prog_cc_c99=$ac_arg
4643 rm -f core conftest.err conftest.$ac_objext
4644 test "x$ac_cv_prog_cc_c99" != "xno" && break
4646 rm -f conftest.$ac_ext
4651 case "x$ac_cv_prog_cc_c99" in
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4654 $as_echo "none needed" >&6; } ;;
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4657 $as_echo "unsupported" >&6; } ;;
4659 CC="$CC $ac_cv_prog_cc_c99"
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4661 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4663 if test "x$ac_cv_prog_cc_c99" != xno; then :
4669 # Error out if the compiler does not support C99, as the codebase
4671 if test "$ac_cv_prog_cc_c99" = no; then
4672 as_fn_error $? "C compiler \"$CC\" does not support C99" "$LINENO" 5
4676 ac_cpp='$CXXCPP $CPPFLAGS'
4677 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4678 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4679 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4680 if test -z "$CXX"; then
4681 if test -n "$CCC"; then
4684 if test -n "$ac_tool_prefix"; then
4685 for ac_prog in $pgac_cxx_list
4687 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4688 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4690 $as_echo_n "checking for $ac_word... " >&6; }
4691 if ${ac_cv_prog_CXX+:} false; then :
4692 $as_echo_n "(cached) " >&6
4694 if test -n "$CXX"; then
4695 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701 test -z "$as_dir" && as_dir=.
4702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4704 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4715 if test -n "$CXX"; then
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4717 $as_echo "$CXX" >&6; }
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4720 $as_echo "no" >&6; }
4724 test -n "$CXX" && break
4727 if test -z "$CXX"; then
4729 for ac_prog in $pgac_cxx_list
4731 # Extract the first word of "$ac_prog", so it can be a program name with args.
4732 set dummy $ac_prog; ac_word=$2
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4734 $as_echo_n "checking for $ac_word... " >&6; }
4735 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4736 $as_echo_n "(cached) " >&6
4738 if test -n "$ac_ct_CXX"; then
4739 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 test -z "$as_dir" && as_dir=.
4746 for ac_exec_ext in '' $ac_executable_extensions; do
4747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4748 ac_cv_prog_ac_ct_CXX="$ac_prog"
4749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4758 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4759 if test -n "$ac_ct_CXX"; then
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4761 $as_echo "$ac_ct_CXX" >&6; }
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4764 $as_echo "no" >&6; }
4768 test -n "$ac_ct_CXX" && break
4771 if test "x$ac_ct_CXX" = x; then
4774 case $cross_compiling:$ac_tool_warned in
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4778 ac_tool_warned=yes ;;
4786 # Provide some information about the compiler.
4787 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4790 for ac_option in --version -v -V -qversion; do
4791 { { ac_try="$ac_compiler $ac_option >&5"
4793 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4794 *) ac_try_echo
=$ac_try;;
4796 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4797 $as_echo "$ac_try_echo"; } >&5
4798 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4800 if test -s conftest.err
; then
4802 ... rest of stderr output deleted ...
4803 10q' conftest.err
>conftest.er1
4804 cat conftest.er1
>&5
4806 rm -f conftest.er1 conftest.err
4807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4808 test $ac_status = 0; }
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4812 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4813 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
4814 $as_echo_n "(cached) " >&6
4816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4817 /* end confdefs.h. */
4830 if ac_fn_cxx_try_compile
"$LINENO"; then :
4835 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4836 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4840 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4841 if test $ac_compiler_gnu = yes; then
4846 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4847 ac_save_CXXFLAGS
=$CXXFLAGS
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4849 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4850 if ${ac_cv_prog_cxx_g+:} false
; then :
4851 $as_echo_n "(cached) " >&6
4853 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4854 ac_cxx_werror_flag
=yes
4857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4858 /* end confdefs.h. */
4868 if ac_fn_cxx_try_compile
"$LINENO"; then :
4869 ac_cv_prog_cxx_g
=yes
4872 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4873 /* end confdefs.h. */
4883 if ac_fn_cxx_try_compile
"$LINENO"; then :
4886 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4889 /* end confdefs.h. */
4899 if ac_fn_cxx_try_compile
"$LINENO"; then :
4900 ac_cv_prog_cxx_g
=yes
4902 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4904 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4906 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4907 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4910 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4911 if test "$ac_test_CXXFLAGS" = set; then
4912 CXXFLAGS
=$ac_save_CXXFLAGS
4913 elif test $ac_cv_prog_cxx_g = yes; then
4914 if test "$GXX" = yes; then
4920 if test "$GXX" = yes; then
4927 ac_cpp
='$CPP $CPPFLAGS'
4928 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4929 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4930 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4933 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
4934 # but has idiosyncrasies of its own. We assume icc will define
4935 # __INTEL_COMPILER regardless of CFLAGS.
4937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4938 /* end confdefs.h. */
4943 #ifndef __INTEL_COMPILER
4950 if ac_fn_c_try_compile
"$LINENO"; then :
4955 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4957 # Check if it's Sun Studio compiler. We assume that
4958 # __SUNPRO_C will be defined for Sun Studio compilers
4959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4960 /* end confdefs.h. */
4972 if ac_fn_c_try_compile
"$LINENO"; then :
4977 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4985 # Checked early because subsequent tests depend on it.
4989 # Check whether --with-llvm was given.
4990 if test "${with_llvm+set}" = set; then :
4995 $as_echo "#define USE_LLVM 1" >>confdefs.h
5002 as_fn_error $?
"no argument expected for --with-llvm option" "$LINENO" 5
5013 for ac_prog
in gawk mawk nawk
awk
5015 # Extract the first word of "$ac_prog", so it can be a program name with args.
5016 set dummy
$ac_prog; ac_word
=$2
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5018 $as_echo_n "checking for $ac_word... " >&6; }
5019 if ${ac_cv_prog_AWK+:} false
; then :
5020 $as_echo_n "(cached) " >&6
5022 if test -n "$AWK"; then
5023 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
5025 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5029 test -z "$as_dir" && as_dir
=.
5030 for ac_exec_ext
in '' $ac_executable_extensions; do
5031 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5032 ac_cv_prog_AWK
="$ac_prog"
5033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5043 if test -n "$AWK"; then
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5045 $as_echo "$AWK" >&6; }
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5048 $as_echo "no" >&6; }
5052 test -n "$AWK" && break
5055 if test "$with_llvm" = yes; then :
5061 if test -z "$LLVM_CONFIG"; then
5062 for ac_prog
in llvm-config llvm-config-7 llvm-config-6.0 llvm-config-5.0 llvm-config-4.0 llvm-config-3.9
5064 # Extract the first word of "$ac_prog", so it can be a program name with args.
5065 set dummy
$ac_prog; ac_word
=$2
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5067 $as_echo_n "checking for $ac_word... " >&6; }
5068 if ${ac_cv_path_LLVM_CONFIG+:} false
; then :
5069 $as_echo_n "(cached) " >&6
5071 case $LLVM_CONFIG in
5073 ac_cv_path_LLVM_CONFIG
="$LLVM_CONFIG" # Let the user override the test with a path.
5076 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5080 test -z "$as_dir" && as_dir
=.
5081 for ac_exec_ext
in '' $ac_executable_extensions; do
5082 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5083 ac_cv_path_LLVM_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5094 LLVM_CONFIG
=$ac_cv_path_LLVM_CONFIG
5095 if test -n "$LLVM_CONFIG"; then
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5
5097 $as_echo "$LLVM_CONFIG" >&6; }
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5100 $as_echo "no" >&6; }
5104 test -n "$LLVM_CONFIG" && break
5108 # Report the value of LLVM_CONFIG in configure's output in all cases.
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LLVM_CONFIG" >&5
5110 $as_echo_n "checking for LLVM_CONFIG... " >&6; }
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5
5112 $as_echo "$LLVM_CONFIG" >&6; }
5116 # no point continuing if llvm wasn't found
5117 if test -z "$LLVM_CONFIG"; then
5118 as_fn_error $?
"llvm-config not found, but required when compiling --with-llvm, specify with LLVM_CONFIG=" "$LINENO" 5
5120 # check if detected $LLVM_CONFIG is executable
5121 pgac_llvm_version
="$($LLVM_CONFIG --version 2> /dev/null || echo no)"
5122 if test "x$pgac_llvm_version" = "xno"; then
5123 as_fn_error $?
"$LLVM_CONFIG does not work" "$LINENO" 5
5125 # and whether the version is supported
5126 if echo $pgac_llvm_version |
$AWK -F '.' '{ if ($1 >= 4 || ($1 == 3 && $2 >= 9)) exit 1; else exit 0;}';then
5127 as_fn_error $?
"$LLVM_CONFIG version is $pgac_llvm_version but at least 3.9 is required" "$LINENO" 5
5130 # need clang to create some bitcode files
5132 if test -z "$CLANG"; then
5133 for ac_prog
in clang clang-7 clang-6.0 clang-5.0 clang-4.0 clang-3.9
5135 # Extract the first word of "$ac_prog", so it can be a program name with args.
5136 set dummy
$ac_prog; ac_word
=$2
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5138 $as_echo_n "checking for $ac_word... " >&6; }
5139 if ${ac_cv_path_CLANG+:} false
; then :
5140 $as_echo_n "(cached) " >&6
5144 ac_cv_path_CLANG
="$CLANG" # Let the user override the test with a path.
5147 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5151 test -z "$as_dir" && as_dir
=.
5152 for ac_exec_ext
in '' $ac_executable_extensions; do
5153 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5154 ac_cv_path_CLANG
="$as_dir/$ac_word$ac_exec_ext"
5155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5165 CLANG
=$ac_cv_path_CLANG
5166 if test -n "$CLANG"; then
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG" >&5
5168 $as_echo "$CLANG" >&6; }
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5171 $as_echo "no" >&6; }
5175 test -n "$CLANG" && break
5179 # Report the value of CLANG in configure's output in all cases.
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CLANG" >&5
5181 $as_echo_n "checking for CLANG... " >&6; }
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG" >&5
5183 $as_echo "$CLANG" >&6; }
5186 if test -z "$CLANG"; then
5187 as_fn_error $?
"clang not found, but required when compiling --with-llvm, specify with CLANG=" "$LINENO" 5
5189 # make sure clang is executable
5190 if test "x$($CLANG --version 2> /dev/null || echo no)" = "xno"; then
5191 as_fn_error $?
"$CLANG does not work" "$LINENO" 5
5193 # Could check clang version, but it doesn't seem that
5194 # important. Systems with a new enough LLVM version are usually
5195 # going to have a decent clang version too. It's also not entirely
5196 # clear what the minimum version is.
5198 # Collect compiler flags necessary to build the LLVM dependent
5200 for pgac_option
in `$LLVM_CONFIG --cppflags`; do
5201 case $pgac_option in
5202 -I*|
-D*) LLVM_CPPFLAGS
="$pgac_option $LLVM_CPPFLAGS";;
5206 for pgac_option
in `$LLVM_CONFIG --ldflags`; do
5207 case $pgac_option in
5208 -L*) LDFLAGS
="$LDFLAGS $pgac_option";;
5212 # ABI influencing options, standard influencing options
5213 for pgac_option
in `$LLVM_CONFIG --cxxflags`; do
5214 case $pgac_option in
5215 -fno-rtti*) LLVM_CXXFLAGS
="$LLVM_CXXFLAGS $pgac_option";;
5216 -std=*) LLVM_CXXFLAGS
="$LLVM_CXXFLAGS $pgac_option";;
5220 # Look for components we're interested in, collect necessary
5221 # libs. As some components are optional, we can't just list all of
5222 # them as it'd raise an error.
5224 for pgac_component
in `$LLVM_CONFIG --components`; do
5225 case $pgac_component in
5226 engine
) pgac_components
="$pgac_components $pgac_component";;
5227 debuginfodwarf
) pgac_components
="$pgac_components $pgac_component";;
5228 orcjit
) pgac_components
="$pgac_components $pgac_component";;
5229 passes
) pgac_components
="$pgac_components $pgac_component";;
5230 native
) pgac_components
="$pgac_components $pgac_component";;
5231 perfjitevents
) pgac_components
="$pgac_components $pgac_component";;
5235 # And then get the libraries that need to be linked in for the
5236 # selected components. They're large libraries, we only want to
5237 # link them into the LLVM using shared library.
5238 for pgac_option
in `$LLVM_CONFIG --libs --system-libs $pgac_components`; do
5239 case $pgac_option in
5240 -l*) LLVM_LIBS
="$LLVM_LIBS $pgac_option";;
5244 LLVM_BINPATH
=`$LLVM_CONFIG --bindir`
5263 .
"$srcdir/src/template/$template" ||
exit
5265 # C[XX]FLAGS are selected so:
5266 # If the user specifies something in the environment, that is used.
5267 # else: If the template file set something, that is used.
5268 # else: If coverage was enabled, don't set anything.
5269 # else: If the compiler is GCC, then we use -O2.
5270 # else: If the compiler is something else, then we use -O, unless debugging.
5272 if test "$ac_env_CFLAGS_set" = set; then
5273 CFLAGS
=$ac_env_CFLAGS_value
5274 elif test "${CFLAGS+set}" = set; then
5275 : # (keep what template set)
5276 elif test "$enable_coverage" = yes; then
5277 : # no optimization by default
5278 elif test "$GCC" = yes; then
5281 # if the user selected debug mode, don't use -O
5282 if test "$enable_debug" != yes; then
5287 if test "$ac_env_CXXFLAGS_set" = set; then
5288 CXXFLAGS
=$ac_env_CXXFLAGS_value
5289 elif test "${CXXFLAGS+set}" = set; then
5290 : # (keep what template set)
5291 elif test "$enable_coverage" = yes; then
5292 : # no optimization by default
5293 elif test "$GCC" = yes; then
5296 # if the user selected debug mode, don't use -O
5297 if test "$enable_debug" != yes; then
5302 # When generating bitcode (for inlining) we always want to use -O2
5303 # even when --enable-debug is specified. The bitcode is not going to
5304 # be used for line-by-line debugging, and JIT inlining doesn't work
5305 # without at least -O1 (otherwise clang will emit 'noinline'
5306 # attributes everywhere), which is bad for testing. Still allow the
5307 # environment to override if done explicitly.
5308 if test "$ac_env_BITCODE_CFLAGS_set" = set; then
5309 BITCODE_CFLAGS
=$ac_env_BITCODE_CFLAGS_value
5311 BITCODE_CFLAGS
="-O2 $BITCODE_CFLAGS"
5313 if test "$ac_env_BITCODE_CXXFLAGS_set" = set; then
5314 BITCODE_CXXFLAGS
=$ac_env_BITCODE_CXXFLAGS_value
5316 BITCODE_CXXFLAGS
="-O2 $BITCODE_CXXFLAGS"
5319 # C[XX]FLAGS we determined above will be added back at the end
5322 user_CXXFLAGS
=$CXXFLAGS
5324 user_BITCODE_CFLAGS
=$BITCODE_CFLAGS
5326 user_BITCODE_CXXFLAGS
=$BITCODE_CXXFLAGS
5329 # set CFLAGS_UNROLL_LOOPS and CFLAGS_VECTORIZE from the environment, if present
5330 if test "$ac_env_CFLAGS_UNROLL_LOOPS_set" = set; then
5331 CFLAGS_UNROLL_LOOPS
=$ac_env_CFLAGS_UNROLL_LOOPS_value
5333 if test "$ac_env_CFLAGS_VECTORIZE_set" = set; then
5334 CFLAGS_VECTORIZE
=$ac_env_CFLAGS_VECTORIZE_value
5337 # Some versions of GCC support some additional useful warning flags.
5338 # Check whether they are supported, and add them to CFLAGS if so.
5339 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
5340 # but has its own. Also check other compiler-specific flags here.
5342 if test "$GCC" = yes -a "$ICC" = no
; then
5343 CFLAGS
="-Wall -Wmissing-prototypes -Wpointer-arith"
5344 CXXFLAGS
="-Wall -Wpointer-arith"
5345 # These work in some but not all gcc versions
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wdeclaration-after-statement, for CFLAGS" >&5
5349 $as_echo_n "checking whether ${CC} supports -Wdeclaration-after-statement, for CFLAGS... " >&6; }
5350 if ${pgac_cv_prog_CC_cflags__Wdeclaration_after_statement+:} false
; then :
5351 $as_echo_n "(cached) " >&6
5353 pgac_save_CFLAGS
=$CFLAGS
5356 CFLAGS
="${CFLAGS} -Wdeclaration-after-statement"
5357 ac_save_c_werror_flag
=$ac_c_werror_flag
5358 ac_c_werror_flag
=yes
5359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5360 /* end confdefs.h. */
5370 if ac_fn_c_try_compile
"$LINENO"; then :
5371 pgac_cv_prog_CC_cflags__Wdeclaration_after_statement
=yes
5373 pgac_cv_prog_CC_cflags__Wdeclaration_after_statement
=no
5375 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5376 ac_c_werror_flag
=$ac_save_c_werror_flag
5377 CFLAGS
="$pgac_save_CFLAGS"
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wdeclaration_after_statement" >&5
5381 $as_echo "$pgac_cv_prog_CC_cflags__Wdeclaration_after_statement" >&6; }
5382 if test x
"$pgac_cv_prog_CC_cflags__Wdeclaration_after_statement" = x
"yes"; then
5383 CFLAGS
="${CFLAGS} -Wdeclaration-after-statement"
5387 # -Wdeclaration-after-statement isn't applicable for C++. Specific C files
5388 # disable it, so AC_SUBST the negative form.
5389 PERMIT_DECLARATION_AFTER_STATEMENT
=
5390 if test x
"$save_CFLAGS" != x
"$CFLAGS"; then
5391 PERMIT_DECLARATION_AFTER_STATEMENT
=-Wno-declaration-after-statement
5394 # Really don't want VLAs to be used in our dialect of C
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Werror=vla, for CFLAGS" >&5
5397 $as_echo_n "checking whether ${CC} supports -Werror=vla, for CFLAGS... " >&6; }
5398 if ${pgac_cv_prog_CC_cflags__Werror_vla+:} false
; then :
5399 $as_echo_n "(cached) " >&6
5401 pgac_save_CFLAGS
=$CFLAGS
5404 CFLAGS
="${CFLAGS} -Werror=vla"
5405 ac_save_c_werror_flag
=$ac_c_werror_flag
5406 ac_c_werror_flag
=yes
5407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5408 /* end confdefs.h. */
5418 if ac_fn_c_try_compile
"$LINENO"; then :
5419 pgac_cv_prog_CC_cflags__Werror_vla
=yes
5421 pgac_cv_prog_CC_cflags__Werror_vla
=no
5423 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5424 ac_c_werror_flag
=$ac_save_c_werror_flag
5425 CFLAGS
="$pgac_save_CFLAGS"
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Werror_vla" >&5
5429 $as_echo "$pgac_cv_prog_CC_cflags__Werror_vla" >&6; }
5430 if test x
"$pgac_cv_prog_CC_cflags__Werror_vla" = x
"yes"; then
5431 CFLAGS
="${CFLAGS} -Werror=vla"
5435 # On macOS, complain about usage of symbols newer than the deployment target
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Werror=unguarded-availability-new, for CFLAGS" >&5
5438 $as_echo_n "checking whether ${CC} supports -Werror=unguarded-availability-new, for CFLAGS... " >&6; }
5439 if ${pgac_cv_prog_CC_cflags__Werror_unguarded_availability_new+:} false
; then :
5440 $as_echo_n "(cached) " >&6
5442 pgac_save_CFLAGS
=$CFLAGS
5445 CFLAGS
="${CFLAGS} -Werror=unguarded-availability-new"
5446 ac_save_c_werror_flag
=$ac_c_werror_flag
5447 ac_c_werror_flag
=yes
5448 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5449 /* end confdefs.h. */
5459 if ac_fn_c_try_compile
"$LINENO"; then :
5460 pgac_cv_prog_CC_cflags__Werror_unguarded_availability_new
=yes
5462 pgac_cv_prog_CC_cflags__Werror_unguarded_availability_new
=no
5464 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5465 ac_c_werror_flag
=$ac_save_c_werror_flag
5466 CFLAGS
="$pgac_save_CFLAGS"
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Werror_unguarded_availability_new" >&5
5470 $as_echo "$pgac_cv_prog_CC_cflags__Werror_unguarded_availability_new" >&6; }
5471 if test x
"$pgac_cv_prog_CC_cflags__Werror_unguarded_availability_new" = x
"yes"; then
5472 CFLAGS
="${CFLAGS} -Werror=unguarded-availability-new"
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Werror=unguarded-availability-new, for CXXFLAGS" >&5
5477 $as_echo_n "checking whether ${CXX} supports -Werror=unguarded-availability-new, for CXXFLAGS... " >&6; }
5478 if ${pgac_cv_prog_CXX_cxxflags__Werror_unguarded_availability_new+:} false
; then :
5479 $as_echo_n "(cached) " >&6
5481 pgac_save_CXXFLAGS
=$CXXFLAGS
5484 CXXFLAGS
="${CXXFLAGS} -Werror=unguarded-availability-new"
5485 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5486 ac_cxx_werror_flag
=yes
5488 ac_cpp
='$CXXCPP $CPPFLAGS'
5489 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5490 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5491 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5493 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5494 /* end confdefs.h. */
5504 if ac_fn_cxx_try_compile
"$LINENO"; then :
5505 pgac_cv_prog_CXX_cxxflags__Werror_unguarded_availability_new
=yes
5507 pgac_cv_prog_CXX_cxxflags__Werror_unguarded_availability_new
=no
5509 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5511 ac_cpp
='$CPP $CPPFLAGS'
5512 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5513 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5514 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5516 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5517 CXXFLAGS
="$pgac_save_CXXFLAGS"
5518 CXX
="$pgac_save_CXX"
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Werror_unguarded_availability_new" >&5
5521 $as_echo "$pgac_cv_prog_CXX_cxxflags__Werror_unguarded_availability_new" >&6; }
5522 if test x
"$pgac_cv_prog_CXX_cxxflags__Werror_unguarded_availability_new" = x
"yes"; then
5523 CXXFLAGS
="${CXXFLAGS} -Werror=unguarded-availability-new"
5527 # -Wvla is not applicable for C++
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wendif-labels, for CFLAGS" >&5
5530 $as_echo_n "checking whether ${CC} supports -Wendif-labels, for CFLAGS... " >&6; }
5531 if ${pgac_cv_prog_CC_cflags__Wendif_labels+:} false
; then :
5532 $as_echo_n "(cached) " >&6
5534 pgac_save_CFLAGS
=$CFLAGS
5537 CFLAGS
="${CFLAGS} -Wendif-labels"
5538 ac_save_c_werror_flag
=$ac_c_werror_flag
5539 ac_c_werror_flag
=yes
5540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5541 /* end confdefs.h. */
5551 if ac_fn_c_try_compile
"$LINENO"; then :
5552 pgac_cv_prog_CC_cflags__Wendif_labels
=yes
5554 pgac_cv_prog_CC_cflags__Wendif_labels
=no
5556 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5557 ac_c_werror_flag
=$ac_save_c_werror_flag
5558 CFLAGS
="$pgac_save_CFLAGS"
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wendif_labels" >&5
5562 $as_echo "$pgac_cv_prog_CC_cflags__Wendif_labels" >&6; }
5563 if test x
"$pgac_cv_prog_CC_cflags__Wendif_labels" = x
"yes"; then
5564 CFLAGS
="${CFLAGS} -Wendif-labels"
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wendif-labels, for CXXFLAGS" >&5
5569 $as_echo_n "checking whether ${CXX} supports -Wendif-labels, for CXXFLAGS... " >&6; }
5570 if ${pgac_cv_prog_CXX_cxxflags__Wendif_labels+:} false
; then :
5571 $as_echo_n "(cached) " >&6
5573 pgac_save_CXXFLAGS
=$CXXFLAGS
5576 CXXFLAGS
="${CXXFLAGS} -Wendif-labels"
5577 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5578 ac_cxx_werror_flag
=yes
5580 ac_cpp
='$CXXCPP $CPPFLAGS'
5581 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5582 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5583 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5586 /* end confdefs.h. */
5596 if ac_fn_cxx_try_compile
"$LINENO"; then :
5597 pgac_cv_prog_CXX_cxxflags__Wendif_labels
=yes
5599 pgac_cv_prog_CXX_cxxflags__Wendif_labels
=no
5601 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5603 ac_cpp
='$CPP $CPPFLAGS'
5604 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5605 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5606 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5608 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5609 CXXFLAGS
="$pgac_save_CXXFLAGS"
5610 CXX
="$pgac_save_CXX"
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wendif_labels" >&5
5613 $as_echo "$pgac_cv_prog_CXX_cxxflags__Wendif_labels" >&6; }
5614 if test x
"$pgac_cv_prog_CXX_cxxflags__Wendif_labels" = x
"yes"; then
5615 CXXFLAGS
="${CXXFLAGS} -Wendif-labels"
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wmissing-format-attribute, for CFLAGS" >&5
5621 $as_echo_n "checking whether ${CC} supports -Wmissing-format-attribute, for CFLAGS... " >&6; }
5622 if ${pgac_cv_prog_CC_cflags__Wmissing_format_attribute+:} false
; then :
5623 $as_echo_n "(cached) " >&6
5625 pgac_save_CFLAGS
=$CFLAGS
5628 CFLAGS
="${CFLAGS} -Wmissing-format-attribute"
5629 ac_save_c_werror_flag
=$ac_c_werror_flag
5630 ac_c_werror_flag
=yes
5631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5632 /* end confdefs.h. */
5642 if ac_fn_c_try_compile
"$LINENO"; then :
5643 pgac_cv_prog_CC_cflags__Wmissing_format_attribute
=yes
5645 pgac_cv_prog_CC_cflags__Wmissing_format_attribute
=no
5647 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5648 ac_c_werror_flag
=$ac_save_c_werror_flag
5649 CFLAGS
="$pgac_save_CFLAGS"
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wmissing_format_attribute" >&5
5653 $as_echo "$pgac_cv_prog_CC_cflags__Wmissing_format_attribute" >&6; }
5654 if test x
"$pgac_cv_prog_CC_cflags__Wmissing_format_attribute" = x
"yes"; then
5655 CFLAGS
="${CFLAGS} -Wmissing-format-attribute"
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wmissing-format-attribute, for CXXFLAGS" >&5
5660 $as_echo_n "checking whether ${CXX} supports -Wmissing-format-attribute, for CXXFLAGS... " >&6; }
5661 if ${pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute+:} false
; then :
5662 $as_echo_n "(cached) " >&6
5664 pgac_save_CXXFLAGS
=$CXXFLAGS
5667 CXXFLAGS
="${CXXFLAGS} -Wmissing-format-attribute"
5668 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5669 ac_cxx_werror_flag
=yes
5671 ac_cpp
='$CXXCPP $CPPFLAGS'
5672 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5673 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5674 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5676 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5677 /* end confdefs.h. */
5687 if ac_fn_cxx_try_compile
"$LINENO"; then :
5688 pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute
=yes
5690 pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute
=no
5692 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5694 ac_cpp
='$CPP $CPPFLAGS'
5695 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5696 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5697 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5699 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5700 CXXFLAGS
="$pgac_save_CXXFLAGS"
5701 CXX
="$pgac_save_CXX"
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute" >&5
5704 $as_echo "$pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute" >&6; }
5705 if test x
"$pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute" = x
"yes"; then
5706 CXXFLAGS
="${CXXFLAGS} -Wmissing-format-attribute"
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wimplicit-fallthrough=3, for CFLAGS" >&5
5712 $as_echo_n "checking whether ${CC} supports -Wimplicit-fallthrough=3, for CFLAGS... " >&6; }
5713 if ${pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_3+:} false
; then :
5714 $as_echo_n "(cached) " >&6
5716 pgac_save_CFLAGS
=$CFLAGS
5719 CFLAGS
="${CFLAGS} -Wimplicit-fallthrough=3"
5720 ac_save_c_werror_flag
=$ac_c_werror_flag
5721 ac_c_werror_flag
=yes
5722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5723 /* end confdefs.h. */
5733 if ac_fn_c_try_compile
"$LINENO"; then :
5734 pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_3
=yes
5736 pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_3
=no
5738 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5739 ac_c_werror_flag
=$ac_save_c_werror_flag
5740 CFLAGS
="$pgac_save_CFLAGS"
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_3" >&5
5744 $as_echo "$pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_3" >&6; }
5745 if test x
"$pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_3" = x
"yes"; then
5746 CFLAGS
="${CFLAGS} -Wimplicit-fallthrough=3"
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wimplicit-fallthrough=3, for CXXFLAGS" >&5
5751 $as_echo_n "checking whether ${CXX} supports -Wimplicit-fallthrough=3, for CXXFLAGS... " >&6; }
5752 if ${pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_3+:} false
; then :
5753 $as_echo_n "(cached) " >&6
5755 pgac_save_CXXFLAGS
=$CXXFLAGS
5758 CXXFLAGS
="${CXXFLAGS} -Wimplicit-fallthrough=3"
5759 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5760 ac_cxx_werror_flag
=yes
5762 ac_cpp
='$CXXCPP $CPPFLAGS'
5763 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5764 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5765 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5768 /* end confdefs.h. */
5778 if ac_fn_cxx_try_compile
"$LINENO"; then :
5779 pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_3
=yes
5781 pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_3
=no
5783 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5785 ac_cpp
='$CPP $CPPFLAGS'
5786 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5787 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5788 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5790 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5791 CXXFLAGS
="$pgac_save_CXXFLAGS"
5792 CXX
="$pgac_save_CXX"
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_3" >&5
5795 $as_echo "$pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_3" >&6; }
5796 if test x
"$pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_3" = x
"yes"; then
5797 CXXFLAGS
="${CXXFLAGS} -Wimplicit-fallthrough=3"
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wcast-function-type, for CFLAGS" >&5
5803 $as_echo_n "checking whether ${CC} supports -Wcast-function-type, for CFLAGS... " >&6; }
5804 if ${pgac_cv_prog_CC_cflags__Wcast_function_type+:} false
; then :
5805 $as_echo_n "(cached) " >&6
5807 pgac_save_CFLAGS
=$CFLAGS
5810 CFLAGS
="${CFLAGS} -Wcast-function-type"
5811 ac_save_c_werror_flag
=$ac_c_werror_flag
5812 ac_c_werror_flag
=yes
5813 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5814 /* end confdefs.h. */
5824 if ac_fn_c_try_compile
"$LINENO"; then :
5825 pgac_cv_prog_CC_cflags__Wcast_function_type
=yes
5827 pgac_cv_prog_CC_cflags__Wcast_function_type
=no
5829 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5830 ac_c_werror_flag
=$ac_save_c_werror_flag
5831 CFLAGS
="$pgac_save_CFLAGS"
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wcast_function_type" >&5
5835 $as_echo "$pgac_cv_prog_CC_cflags__Wcast_function_type" >&6; }
5836 if test x
"$pgac_cv_prog_CC_cflags__Wcast_function_type" = x
"yes"; then
5837 CFLAGS
="${CFLAGS} -Wcast-function-type"
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wcast-function-type, for CXXFLAGS" >&5
5842 $as_echo_n "checking whether ${CXX} supports -Wcast-function-type, for CXXFLAGS... " >&6; }
5843 if ${pgac_cv_prog_CXX_cxxflags__Wcast_function_type+:} false
; then :
5844 $as_echo_n "(cached) " >&6
5846 pgac_save_CXXFLAGS
=$CXXFLAGS
5849 CXXFLAGS
="${CXXFLAGS} -Wcast-function-type"
5850 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5851 ac_cxx_werror_flag
=yes
5853 ac_cpp
='$CXXCPP $CPPFLAGS'
5854 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5855 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5856 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5859 /* end confdefs.h. */
5869 if ac_fn_cxx_try_compile
"$LINENO"; then :
5870 pgac_cv_prog_CXX_cxxflags__Wcast_function_type
=yes
5872 pgac_cv_prog_CXX_cxxflags__Wcast_function_type
=no
5874 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5876 ac_cpp
='$CPP $CPPFLAGS'
5877 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5878 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5879 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5881 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5882 CXXFLAGS
="$pgac_save_CXXFLAGS"
5883 CXX
="$pgac_save_CXX"
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wcast_function_type" >&5
5886 $as_echo "$pgac_cv_prog_CXX_cxxflags__Wcast_function_type" >&6; }
5887 if test x
"$pgac_cv_prog_CXX_cxxflags__Wcast_function_type" = x
"yes"; then
5888 CXXFLAGS
="${CXXFLAGS} -Wcast-function-type"
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wshadow=compatible-local, for CFLAGS" >&5
5894 $as_echo_n "checking whether ${CC} supports -Wshadow=compatible-local, for CFLAGS... " >&6; }
5895 if ${pgac_cv_prog_CC_cflags__Wshadow_compatible_local+:} false
; then :
5896 $as_echo_n "(cached) " >&6
5898 pgac_save_CFLAGS
=$CFLAGS
5901 CFLAGS
="${CFLAGS} -Wshadow=compatible-local"
5902 ac_save_c_werror_flag
=$ac_c_werror_flag
5903 ac_c_werror_flag
=yes
5904 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5905 /* end confdefs.h. */
5915 if ac_fn_c_try_compile
"$LINENO"; then :
5916 pgac_cv_prog_CC_cflags__Wshadow_compatible_local
=yes
5918 pgac_cv_prog_CC_cflags__Wshadow_compatible_local
=no
5920 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5921 ac_c_werror_flag
=$ac_save_c_werror_flag
5922 CFLAGS
="$pgac_save_CFLAGS"
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wshadow_compatible_local" >&5
5926 $as_echo "$pgac_cv_prog_CC_cflags__Wshadow_compatible_local" >&6; }
5927 if test x
"$pgac_cv_prog_CC_cflags__Wshadow_compatible_local" = x
"yes"; then
5928 CFLAGS
="${CFLAGS} -Wshadow=compatible-local"
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wshadow=compatible-local, for CXXFLAGS" >&5
5933 $as_echo_n "checking whether ${CXX} supports -Wshadow=compatible-local, for CXXFLAGS... " >&6; }
5934 if ${pgac_cv_prog_CXX_cxxflags__Wshadow_compatible_local+:} false
; then :
5935 $as_echo_n "(cached) " >&6
5937 pgac_save_CXXFLAGS
=$CXXFLAGS
5940 CXXFLAGS
="${CXXFLAGS} -Wshadow=compatible-local"
5941 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5942 ac_cxx_werror_flag
=yes
5944 ac_cpp
='$CXXCPP $CPPFLAGS'
5945 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5946 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5947 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5949 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5950 /* end confdefs.h. */
5960 if ac_fn_cxx_try_compile
"$LINENO"; then :
5961 pgac_cv_prog_CXX_cxxflags__Wshadow_compatible_local
=yes
5963 pgac_cv_prog_CXX_cxxflags__Wshadow_compatible_local
=no
5965 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5967 ac_cpp
='$CPP $CPPFLAGS'
5968 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5969 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5970 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5972 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5973 CXXFLAGS
="$pgac_save_CXXFLAGS"
5974 CXX
="$pgac_save_CXX"
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wshadow_compatible_local" >&5
5977 $as_echo "$pgac_cv_prog_CXX_cxxflags__Wshadow_compatible_local" >&6; }
5978 if test x
"$pgac_cv_prog_CXX_cxxflags__Wshadow_compatible_local" = x
"yes"; then
5979 CXXFLAGS
="${CXXFLAGS} -Wshadow=compatible-local"
5983 # This was included in -Wall/-Wformat in older GCC versions
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wformat-security, for CFLAGS" >&5
5986 $as_echo_n "checking whether ${CC} supports -Wformat-security, for CFLAGS... " >&6; }
5987 if ${pgac_cv_prog_CC_cflags__Wformat_security+:} false
; then :
5988 $as_echo_n "(cached) " >&6
5990 pgac_save_CFLAGS
=$CFLAGS
5993 CFLAGS
="${CFLAGS} -Wformat-security"
5994 ac_save_c_werror_flag
=$ac_c_werror_flag
5995 ac_c_werror_flag
=yes
5996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5997 /* end confdefs.h. */
6007 if ac_fn_c_try_compile
"$LINENO"; then :
6008 pgac_cv_prog_CC_cflags__Wformat_security
=yes
6010 pgac_cv_prog_CC_cflags__Wformat_security
=no
6012 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6013 ac_c_werror_flag
=$ac_save_c_werror_flag
6014 CFLAGS
="$pgac_save_CFLAGS"
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wformat_security" >&5
6018 $as_echo "$pgac_cv_prog_CC_cflags__Wformat_security" >&6; }
6019 if test x
"$pgac_cv_prog_CC_cflags__Wformat_security" = x
"yes"; then
6020 CFLAGS
="${CFLAGS} -Wformat-security"
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wformat-security, for CXXFLAGS" >&5
6025 $as_echo_n "checking whether ${CXX} supports -Wformat-security, for CXXFLAGS... " >&6; }
6026 if ${pgac_cv_prog_CXX_cxxflags__Wformat_security+:} false
; then :
6027 $as_echo_n "(cached) " >&6
6029 pgac_save_CXXFLAGS
=$CXXFLAGS
6032 CXXFLAGS
="${CXXFLAGS} -Wformat-security"
6033 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6034 ac_cxx_werror_flag
=yes
6036 ac_cpp
='$CXXCPP $CPPFLAGS'
6037 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6038 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6039 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6042 /* end confdefs.h. */
6052 if ac_fn_cxx_try_compile
"$LINENO"; then :
6053 pgac_cv_prog_CXX_cxxflags__Wformat_security
=yes
6055 pgac_cv_prog_CXX_cxxflags__Wformat_security
=no
6057 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6059 ac_cpp
='$CPP $CPPFLAGS'
6060 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6061 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6062 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6064 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6065 CXXFLAGS
="$pgac_save_CXXFLAGS"
6066 CXX
="$pgac_save_CXX"
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wformat_security" >&5
6069 $as_echo "$pgac_cv_prog_CXX_cxxflags__Wformat_security" >&6; }
6070 if test x
"$pgac_cv_prog_CXX_cxxflags__Wformat_security" = x
"yes"; then
6071 CXXFLAGS
="${CXXFLAGS} -Wformat-security"
6075 # Disable strict-aliasing rules; needed for gcc 3.3+
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fno-strict-aliasing, for CFLAGS" >&5
6078 $as_echo_n "checking whether ${CC} supports -fno-strict-aliasing, for CFLAGS... " >&6; }
6079 if ${pgac_cv_prog_CC_cflags__fno_strict_aliasing+:} false
; then :
6080 $as_echo_n "(cached) " >&6
6082 pgac_save_CFLAGS
=$CFLAGS
6085 CFLAGS
="${CFLAGS} -fno-strict-aliasing"
6086 ac_save_c_werror_flag
=$ac_c_werror_flag
6087 ac_c_werror_flag
=yes
6088 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6089 /* end confdefs.h. */
6099 if ac_fn_c_try_compile
"$LINENO"; then :
6100 pgac_cv_prog_CC_cflags__fno_strict_aliasing
=yes
6102 pgac_cv_prog_CC_cflags__fno_strict_aliasing
=no
6104 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6105 ac_c_werror_flag
=$ac_save_c_werror_flag
6106 CFLAGS
="$pgac_save_CFLAGS"
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fno_strict_aliasing" >&5
6110 $as_echo "$pgac_cv_prog_CC_cflags__fno_strict_aliasing" >&6; }
6111 if test x
"$pgac_cv_prog_CC_cflags__fno_strict_aliasing" = x
"yes"; then
6112 CFLAGS
="${CFLAGS} -fno-strict-aliasing"
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fno-strict-aliasing, for CXXFLAGS" >&5
6117 $as_echo_n "checking whether ${CXX} supports -fno-strict-aliasing, for CXXFLAGS... " >&6; }
6118 if ${pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing+:} false
; then :
6119 $as_echo_n "(cached) " >&6
6121 pgac_save_CXXFLAGS
=$CXXFLAGS
6124 CXXFLAGS
="${CXXFLAGS} -fno-strict-aliasing"
6125 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6126 ac_cxx_werror_flag
=yes
6128 ac_cpp
='$CXXCPP $CPPFLAGS'
6129 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6130 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6131 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6134 /* end confdefs.h. */
6144 if ac_fn_cxx_try_compile
"$LINENO"; then :
6145 pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing
=yes
6147 pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing
=no
6149 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6151 ac_cpp
='$CPP $CPPFLAGS'
6152 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6153 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6154 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6156 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6157 CXXFLAGS
="$pgac_save_CXXFLAGS"
6158 CXX
="$pgac_save_CXX"
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" >&5
6161 $as_echo "$pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" >&6; }
6162 if test x
"$pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" = x
"yes"; then
6163 CXXFLAGS
="${CXXFLAGS} -fno-strict-aliasing"
6167 # Disable optimizations that assume no overflow; needed for gcc 4.3+
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fwrapv, for CFLAGS" >&5
6170 $as_echo_n "checking whether ${CC} supports -fwrapv, for CFLAGS... " >&6; }
6171 if ${pgac_cv_prog_CC_cflags__fwrapv+:} false
; then :
6172 $as_echo_n "(cached) " >&6
6174 pgac_save_CFLAGS
=$CFLAGS
6177 CFLAGS
="${CFLAGS} -fwrapv"
6178 ac_save_c_werror_flag
=$ac_c_werror_flag
6179 ac_c_werror_flag
=yes
6180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6181 /* end confdefs.h. */
6191 if ac_fn_c_try_compile
"$LINENO"; then :
6192 pgac_cv_prog_CC_cflags__fwrapv
=yes
6194 pgac_cv_prog_CC_cflags__fwrapv
=no
6196 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6197 ac_c_werror_flag
=$ac_save_c_werror_flag
6198 CFLAGS
="$pgac_save_CFLAGS"
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fwrapv" >&5
6202 $as_echo "$pgac_cv_prog_CC_cflags__fwrapv" >&6; }
6203 if test x
"$pgac_cv_prog_CC_cflags__fwrapv" = x
"yes"; then
6204 CFLAGS
="${CFLAGS} -fwrapv"
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fwrapv, for CXXFLAGS" >&5
6209 $as_echo_n "checking whether ${CXX} supports -fwrapv, for CXXFLAGS... " >&6; }
6210 if ${pgac_cv_prog_CXX_cxxflags__fwrapv+:} false
; then :
6211 $as_echo_n "(cached) " >&6
6213 pgac_save_CXXFLAGS
=$CXXFLAGS
6216 CXXFLAGS
="${CXXFLAGS} -fwrapv"
6217 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6218 ac_cxx_werror_flag
=yes
6220 ac_cpp
='$CXXCPP $CPPFLAGS'
6221 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6222 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6223 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6226 /* end confdefs.h. */
6236 if ac_fn_cxx_try_compile
"$LINENO"; then :
6237 pgac_cv_prog_CXX_cxxflags__fwrapv
=yes
6239 pgac_cv_prog_CXX_cxxflags__fwrapv
=no
6241 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6243 ac_cpp
='$CPP $CPPFLAGS'
6244 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6245 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6246 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6248 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6249 CXXFLAGS
="$pgac_save_CXXFLAGS"
6250 CXX
="$pgac_save_CXX"
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fwrapv" >&5
6253 $as_echo "$pgac_cv_prog_CXX_cxxflags__fwrapv" >&6; }
6254 if test x
"$pgac_cv_prog_CXX_cxxflags__fwrapv" = x
"yes"; then
6255 CXXFLAGS
="${CXXFLAGS} -fwrapv"
6259 # Disable FP optimizations that cause various errors on gcc 4.5+ or maybe 4.6+
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fexcess-precision=standard, for CFLAGS" >&5
6262 $as_echo_n "checking whether ${CC} supports -fexcess-precision=standard, for CFLAGS... " >&6; }
6263 if ${pgac_cv_prog_CC_cflags__fexcess_precision_standard+:} false
; then :
6264 $as_echo_n "(cached) " >&6
6266 pgac_save_CFLAGS
=$CFLAGS
6269 CFLAGS
="${CFLAGS} -fexcess-precision=standard"
6270 ac_save_c_werror_flag
=$ac_c_werror_flag
6271 ac_c_werror_flag
=yes
6272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6273 /* end confdefs.h. */
6283 if ac_fn_c_try_compile
"$LINENO"; then :
6284 pgac_cv_prog_CC_cflags__fexcess_precision_standard
=yes
6286 pgac_cv_prog_CC_cflags__fexcess_precision_standard
=no
6288 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6289 ac_c_werror_flag
=$ac_save_c_werror_flag
6290 CFLAGS
="$pgac_save_CFLAGS"
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fexcess_precision_standard" >&5
6294 $as_echo "$pgac_cv_prog_CC_cflags__fexcess_precision_standard" >&6; }
6295 if test x
"$pgac_cv_prog_CC_cflags__fexcess_precision_standard" = x
"yes"; then
6296 CFLAGS
="${CFLAGS} -fexcess-precision=standard"
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fexcess-precision=standard, for CXXFLAGS" >&5
6301 $as_echo_n "checking whether ${CXX} supports -fexcess-precision=standard, for CXXFLAGS... " >&6; }
6302 if ${pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard+:} false
; then :
6303 $as_echo_n "(cached) " >&6
6305 pgac_save_CXXFLAGS
=$CXXFLAGS
6308 CXXFLAGS
="${CXXFLAGS} -fexcess-precision=standard"
6309 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6310 ac_cxx_werror_flag
=yes
6312 ac_cpp
='$CXXCPP $CPPFLAGS'
6313 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6314 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6315 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6317 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6318 /* end confdefs.h. */
6328 if ac_fn_cxx_try_compile
"$LINENO"; then :
6329 pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard
=yes
6331 pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard
=no
6333 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6335 ac_cpp
='$CPP $CPPFLAGS'
6336 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6337 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6338 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6340 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6341 CXXFLAGS
="$pgac_save_CXXFLAGS"
6342 CXX
="$pgac_save_CXX"
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard" >&5
6345 $as_echo "$pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard" >&6; }
6346 if test x
"$pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard" = x
"yes"; then
6347 CXXFLAGS
="${CXXFLAGS} -fexcess-precision=standard"
6351 # Optimization flags for specific files that benefit from loop unrolling
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -funroll-loops, for CFLAGS_UNROLL_LOOPS" >&5
6353 $as_echo_n "checking whether ${CC} supports -funroll-loops, for CFLAGS_UNROLL_LOOPS... " >&6; }
6354 if ${pgac_cv_prog_CC_cflags__funroll_loops+:} false
; then :
6355 $as_echo_n "(cached) " >&6
6357 pgac_save_CFLAGS
=$CFLAGS
6360 CFLAGS
="${CFLAGS_UNROLL_LOOPS} -funroll-loops"
6361 ac_save_c_werror_flag
=$ac_c_werror_flag
6362 ac_c_werror_flag
=yes
6363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6364 /* end confdefs.h. */
6374 if ac_fn_c_try_compile
"$LINENO"; then :
6375 pgac_cv_prog_CC_cflags__funroll_loops
=yes
6377 pgac_cv_prog_CC_cflags__funroll_loops
=no
6379 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6380 ac_c_werror_flag
=$ac_save_c_werror_flag
6381 CFLAGS
="$pgac_save_CFLAGS"
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__funroll_loops" >&5
6385 $as_echo "$pgac_cv_prog_CC_cflags__funroll_loops" >&6; }
6386 if test x
"$pgac_cv_prog_CC_cflags__funroll_loops" = x
"yes"; then
6387 CFLAGS_UNROLL_LOOPS
="${CFLAGS_UNROLL_LOOPS} -funroll-loops"
6391 # Optimization flags for specific files that benefit from vectorization
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -ftree-vectorize, for CFLAGS_VECTORIZE" >&5
6393 $as_echo_n "checking whether ${CC} supports -ftree-vectorize, for CFLAGS_VECTORIZE... " >&6; }
6394 if ${pgac_cv_prog_CC_cflags__ftree_vectorize+:} false
; then :
6395 $as_echo_n "(cached) " >&6
6397 pgac_save_CFLAGS
=$CFLAGS
6400 CFLAGS
="${CFLAGS_VECTORIZE} -ftree-vectorize"
6401 ac_save_c_werror_flag
=$ac_c_werror_flag
6402 ac_c_werror_flag
=yes
6403 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6404 /* end confdefs.h. */
6414 if ac_fn_c_try_compile
"$LINENO"; then :
6415 pgac_cv_prog_CC_cflags__ftree_vectorize
=yes
6417 pgac_cv_prog_CC_cflags__ftree_vectorize
=no
6419 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6420 ac_c_werror_flag
=$ac_save_c_werror_flag
6421 CFLAGS
="$pgac_save_CFLAGS"
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__ftree_vectorize" >&5
6425 $as_echo "$pgac_cv_prog_CC_cflags__ftree_vectorize" >&6; }
6426 if test x
"$pgac_cv_prog_CC_cflags__ftree_vectorize" = x
"yes"; then
6427 CFLAGS_VECTORIZE
="${CFLAGS_VECTORIZE} -ftree-vectorize"
6432 # The following tests want to suppress various unhelpful warnings by adding
6433 # -Wno-foo switches. But gcc won't complain about unrecognized -Wno-foo
6434 # switches, so we have to test for the positive form and if that works,
6435 # add the negative form. Note that tests of this form typically need to
6436 # be duplicated in the BITCODE_CFLAGS setup stanza below.
6438 # Suppress clang's unhelpful unused-command-line-argument warnings.
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wunused-command-line-argument, for NOT_THE_CFLAGS" >&5
6441 $as_echo_n "checking whether ${CC} supports -Wunused-command-line-argument, for NOT_THE_CFLAGS... " >&6; }
6442 if ${pgac_cv_prog_CC_cflags__Wunused_command_line_argument+:} false
; then :
6443 $as_echo_n "(cached) " >&6
6445 pgac_save_CFLAGS
=$CFLAGS
6448 CFLAGS
="${NOT_THE_CFLAGS} -Wunused-command-line-argument"
6449 ac_save_c_werror_flag
=$ac_c_werror_flag
6450 ac_c_werror_flag
=yes
6451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6452 /* end confdefs.h. */
6462 if ac_fn_c_try_compile
"$LINENO"; then :
6463 pgac_cv_prog_CC_cflags__Wunused_command_line_argument
=yes
6465 pgac_cv_prog_CC_cflags__Wunused_command_line_argument
=no
6467 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6468 ac_c_werror_flag
=$ac_save_c_werror_flag
6469 CFLAGS
="$pgac_save_CFLAGS"
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wunused_command_line_argument" >&5
6473 $as_echo "$pgac_cv_prog_CC_cflags__Wunused_command_line_argument" >&6; }
6474 if test x
"$pgac_cv_prog_CC_cflags__Wunused_command_line_argument" = x
"yes"; then
6475 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wunused-command-line-argument"
6479 if test -n "$NOT_THE_CFLAGS"; then
6480 CFLAGS
="$CFLAGS -Wno-unused-command-line-argument"
6482 # Remove clang 12+'s compound-token-split-by-macro, as this causes a lot
6483 # of warnings when building plperl because of usages in the Perl headers.
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wcompound-token-split-by-macro, for NOT_THE_CFLAGS" >&5
6486 $as_echo_n "checking whether ${CC} supports -Wcompound-token-split-by-macro, for NOT_THE_CFLAGS... " >&6; }
6487 if ${pgac_cv_prog_CC_cflags__Wcompound_token_split_by_macro+:} false
; then :
6488 $as_echo_n "(cached) " >&6
6490 pgac_save_CFLAGS
=$CFLAGS
6493 CFLAGS
="${NOT_THE_CFLAGS} -Wcompound-token-split-by-macro"
6494 ac_save_c_werror_flag
=$ac_c_werror_flag
6495 ac_c_werror_flag
=yes
6496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6497 /* end confdefs.h. */
6507 if ac_fn_c_try_compile
"$LINENO"; then :
6508 pgac_cv_prog_CC_cflags__Wcompound_token_split_by_macro
=yes
6510 pgac_cv_prog_CC_cflags__Wcompound_token_split_by_macro
=no
6512 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6513 ac_c_werror_flag
=$ac_save_c_werror_flag
6514 CFLAGS
="$pgac_save_CFLAGS"
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wcompound_token_split_by_macro" >&5
6518 $as_echo "$pgac_cv_prog_CC_cflags__Wcompound_token_split_by_macro" >&6; }
6519 if test x
"$pgac_cv_prog_CC_cflags__Wcompound_token_split_by_macro" = x
"yes"; then
6520 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wcompound-token-split-by-macro"
6524 if test -n "$NOT_THE_CFLAGS"; then
6525 CFLAGS
="$CFLAGS -Wno-compound-token-split-by-macro"
6527 # Similarly disable useless truncation warnings from gcc 8+
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wformat-truncation, for NOT_THE_CFLAGS" >&5
6530 $as_echo_n "checking whether ${CC} supports -Wformat-truncation, for NOT_THE_CFLAGS... " >&6; }
6531 if ${pgac_cv_prog_CC_cflags__Wformat_truncation+:} false
; then :
6532 $as_echo_n "(cached) " >&6
6534 pgac_save_CFLAGS
=$CFLAGS
6537 CFLAGS
="${NOT_THE_CFLAGS} -Wformat-truncation"
6538 ac_save_c_werror_flag
=$ac_c_werror_flag
6539 ac_c_werror_flag
=yes
6540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6541 /* end confdefs.h. */
6551 if ac_fn_c_try_compile
"$LINENO"; then :
6552 pgac_cv_prog_CC_cflags__Wformat_truncation
=yes
6554 pgac_cv_prog_CC_cflags__Wformat_truncation
=no
6556 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6557 ac_c_werror_flag
=$ac_save_c_werror_flag
6558 CFLAGS
="$pgac_save_CFLAGS"
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wformat_truncation" >&5
6562 $as_echo "$pgac_cv_prog_CC_cflags__Wformat_truncation" >&6; }
6563 if test x
"$pgac_cv_prog_CC_cflags__Wformat_truncation" = x
"yes"; then
6564 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wformat-truncation"
6568 if test -n "$NOT_THE_CFLAGS"; then
6569 CFLAGS
="$CFLAGS -Wno-format-truncation"
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wstringop-truncation, for NOT_THE_CFLAGS" >&5
6573 $as_echo_n "checking whether ${CC} supports -Wstringop-truncation, for NOT_THE_CFLAGS... " >&6; }
6574 if ${pgac_cv_prog_CC_cflags__Wstringop_truncation+:} false
; then :
6575 $as_echo_n "(cached) " >&6
6577 pgac_save_CFLAGS
=$CFLAGS
6580 CFLAGS
="${NOT_THE_CFLAGS} -Wstringop-truncation"
6581 ac_save_c_werror_flag
=$ac_c_werror_flag
6582 ac_c_werror_flag
=yes
6583 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6584 /* end confdefs.h. */
6594 if ac_fn_c_try_compile
"$LINENO"; then :
6595 pgac_cv_prog_CC_cflags__Wstringop_truncation
=yes
6597 pgac_cv_prog_CC_cflags__Wstringop_truncation
=no
6599 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6600 ac_c_werror_flag
=$ac_save_c_werror_flag
6601 CFLAGS
="$pgac_save_CFLAGS"
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wstringop_truncation" >&5
6605 $as_echo "$pgac_cv_prog_CC_cflags__Wstringop_truncation" >&6; }
6606 if test x
"$pgac_cv_prog_CC_cflags__Wstringop_truncation" = x
"yes"; then
6607 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wstringop-truncation"
6611 if test -n "$NOT_THE_CFLAGS"; then
6612 CFLAGS
="$CFLAGS -Wno-stringop-truncation"
6614 # Suppress clang 16's strict warnings about function casts
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wcast-function-type-strict, for NOT_THE_CFLAGS" >&5
6617 $as_echo_n "checking whether ${CC} supports -Wcast-function-type-strict, for NOT_THE_CFLAGS... " >&6; }
6618 if ${pgac_cv_prog_CC_cflags__Wcast_function_type_strict+:} false
; then :
6619 $as_echo_n "(cached) " >&6
6621 pgac_save_CFLAGS
=$CFLAGS
6624 CFLAGS
="${NOT_THE_CFLAGS} -Wcast-function-type-strict"
6625 ac_save_c_werror_flag
=$ac_c_werror_flag
6626 ac_c_werror_flag
=yes
6627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6628 /* end confdefs.h. */
6638 if ac_fn_c_try_compile
"$LINENO"; then :
6639 pgac_cv_prog_CC_cflags__Wcast_function_type_strict
=yes
6641 pgac_cv_prog_CC_cflags__Wcast_function_type_strict
=no
6643 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6644 ac_c_werror_flag
=$ac_save_c_werror_flag
6645 CFLAGS
="$pgac_save_CFLAGS"
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wcast_function_type_strict" >&5
6649 $as_echo "$pgac_cv_prog_CC_cflags__Wcast_function_type_strict" >&6; }
6650 if test x
"$pgac_cv_prog_CC_cflags__Wcast_function_type_strict" = x
"yes"; then
6651 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wcast-function-type-strict"
6655 if test -n "$NOT_THE_CFLAGS"; then
6656 CFLAGS
="$CFLAGS -Wno-cast-function-type-strict"
6658 elif test "$ICC" = yes; then
6659 # Intel's compiler has a bug/misoptimization in checking for
6660 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -mp1, for CFLAGS" >&5
6663 $as_echo_n "checking whether ${CC} supports -mp1, for CFLAGS... " >&6; }
6664 if ${pgac_cv_prog_CC_cflags__mp1+:} false
; then :
6665 $as_echo_n "(cached) " >&6
6667 pgac_save_CFLAGS
=$CFLAGS
6670 CFLAGS
="${CFLAGS} -mp1"
6671 ac_save_c_werror_flag
=$ac_c_werror_flag
6672 ac_c_werror_flag
=yes
6673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6674 /* end confdefs.h. */
6684 if ac_fn_c_try_compile
"$LINENO"; then :
6685 pgac_cv_prog_CC_cflags__mp1
=yes
6687 pgac_cv_prog_CC_cflags__mp1
=no
6689 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6690 ac_c_werror_flag
=$ac_save_c_werror_flag
6691 CFLAGS
="$pgac_save_CFLAGS"
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__mp1" >&5
6695 $as_echo "$pgac_cv_prog_CC_cflags__mp1" >&6; }
6696 if test x
"$pgac_cv_prog_CC_cflags__mp1" = x
"yes"; then
6697 CFLAGS
="${CFLAGS} -mp1"
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -mp1, for CXXFLAGS" >&5
6702 $as_echo_n "checking whether ${CXX} supports -mp1, for CXXFLAGS... " >&6; }
6703 if ${pgac_cv_prog_CXX_cxxflags__mp1+:} false
; then :
6704 $as_echo_n "(cached) " >&6
6706 pgac_save_CXXFLAGS
=$CXXFLAGS
6709 CXXFLAGS
="${CXXFLAGS} -mp1"
6710 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6711 ac_cxx_werror_flag
=yes
6713 ac_cpp
='$CXXCPP $CPPFLAGS'
6714 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6715 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6716 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6719 /* end confdefs.h. */
6729 if ac_fn_cxx_try_compile
"$LINENO"; then :
6730 pgac_cv_prog_CXX_cxxflags__mp1
=yes
6732 pgac_cv_prog_CXX_cxxflags__mp1
=no
6734 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6736 ac_cpp
='$CPP $CPPFLAGS'
6737 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6738 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6739 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6741 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6742 CXXFLAGS
="$pgac_save_CXXFLAGS"
6743 CXX
="$pgac_save_CXX"
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__mp1" >&5
6746 $as_echo "$pgac_cv_prog_CXX_cxxflags__mp1" >&6; }
6747 if test x
"$pgac_cv_prog_CXX_cxxflags__mp1" = x
"yes"; then
6748 CXXFLAGS
="${CXXFLAGS} -mp1"
6752 # Make sure strict aliasing is off (though this is said to be the default)
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fno-strict-aliasing, for CFLAGS" >&5
6755 $as_echo_n "checking whether ${CC} supports -fno-strict-aliasing, for CFLAGS... " >&6; }
6756 if ${pgac_cv_prog_CC_cflags__fno_strict_aliasing+:} false
; then :
6757 $as_echo_n "(cached) " >&6
6759 pgac_save_CFLAGS
=$CFLAGS
6762 CFLAGS
="${CFLAGS} -fno-strict-aliasing"
6763 ac_save_c_werror_flag
=$ac_c_werror_flag
6764 ac_c_werror_flag
=yes
6765 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6766 /* end confdefs.h. */
6776 if ac_fn_c_try_compile
"$LINENO"; then :
6777 pgac_cv_prog_CC_cflags__fno_strict_aliasing
=yes
6779 pgac_cv_prog_CC_cflags__fno_strict_aliasing
=no
6781 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6782 ac_c_werror_flag
=$ac_save_c_werror_flag
6783 CFLAGS
="$pgac_save_CFLAGS"
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fno_strict_aliasing" >&5
6787 $as_echo "$pgac_cv_prog_CC_cflags__fno_strict_aliasing" >&6; }
6788 if test x
"$pgac_cv_prog_CC_cflags__fno_strict_aliasing" = x
"yes"; then
6789 CFLAGS
="${CFLAGS} -fno-strict-aliasing"
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fno-strict-aliasing, for CXXFLAGS" >&5
6794 $as_echo_n "checking whether ${CXX} supports -fno-strict-aliasing, for CXXFLAGS... " >&6; }
6795 if ${pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing+:} false
; then :
6796 $as_echo_n "(cached) " >&6
6798 pgac_save_CXXFLAGS
=$CXXFLAGS
6801 CXXFLAGS
="${CXXFLAGS} -fno-strict-aliasing"
6802 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6803 ac_cxx_werror_flag
=yes
6805 ac_cpp
='$CXXCPP $CPPFLAGS'
6806 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6807 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6808 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6811 /* end confdefs.h. */
6821 if ac_fn_cxx_try_compile
"$LINENO"; then :
6822 pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing
=yes
6824 pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing
=no
6826 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6828 ac_cpp
='$CPP $CPPFLAGS'
6829 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6830 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6831 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6833 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6834 CXXFLAGS
="$pgac_save_CXXFLAGS"
6835 CXX
="$pgac_save_CXX"
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" >&5
6838 $as_echo "$pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" >&6; }
6839 if test x
"$pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" = x
"yes"; then
6840 CXXFLAGS
="${CXXFLAGS} -fno-strict-aliasing"
6844 elif test "$PORTNAME" = "aix"; then
6845 # AIX's xlc has to have strict aliasing turned off too
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -qnoansialias, for CFLAGS" >&5
6848 $as_echo_n "checking whether ${CC} supports -qnoansialias, for CFLAGS... " >&6; }
6849 if ${pgac_cv_prog_CC_cflags__qnoansialias+:} false
; then :
6850 $as_echo_n "(cached) " >&6
6852 pgac_save_CFLAGS
=$CFLAGS
6855 CFLAGS
="${CFLAGS} -qnoansialias"
6856 ac_save_c_werror_flag
=$ac_c_werror_flag
6857 ac_c_werror_flag
=yes
6858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6859 /* end confdefs.h. */
6869 if ac_fn_c_try_compile
"$LINENO"; then :
6870 pgac_cv_prog_CC_cflags__qnoansialias
=yes
6872 pgac_cv_prog_CC_cflags__qnoansialias
=no
6874 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6875 ac_c_werror_flag
=$ac_save_c_werror_flag
6876 CFLAGS
="$pgac_save_CFLAGS"
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__qnoansialias" >&5
6880 $as_echo "$pgac_cv_prog_CC_cflags__qnoansialias" >&6; }
6881 if test x
"$pgac_cv_prog_CC_cflags__qnoansialias" = x
"yes"; then
6882 CFLAGS
="${CFLAGS} -qnoansialias"
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -qnoansialias, for CXXFLAGS" >&5
6887 $as_echo_n "checking whether ${CXX} supports -qnoansialias, for CXXFLAGS... " >&6; }
6888 if ${pgac_cv_prog_CXX_cxxflags__qnoansialias+:} false
; then :
6889 $as_echo_n "(cached) " >&6
6891 pgac_save_CXXFLAGS
=$CXXFLAGS
6894 CXXFLAGS
="${CXXFLAGS} -qnoansialias"
6895 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6896 ac_cxx_werror_flag
=yes
6898 ac_cpp
='$CXXCPP $CPPFLAGS'
6899 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6900 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6901 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6904 /* end confdefs.h. */
6914 if ac_fn_cxx_try_compile
"$LINENO"; then :
6915 pgac_cv_prog_CXX_cxxflags__qnoansialias
=yes
6917 pgac_cv_prog_CXX_cxxflags__qnoansialias
=no
6919 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6921 ac_cpp
='$CPP $CPPFLAGS'
6922 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6923 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6924 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6926 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6927 CXXFLAGS
="$pgac_save_CXXFLAGS"
6928 CXX
="$pgac_save_CXX"
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__qnoansialias" >&5
6931 $as_echo "$pgac_cv_prog_CXX_cxxflags__qnoansialias" >&6; }
6932 if test x
"$pgac_cv_prog_CXX_cxxflags__qnoansialias" = x
"yes"; then
6933 CXXFLAGS
="${CXXFLAGS} -qnoansialias"
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -qlonglong, for CFLAGS" >&5
6939 $as_echo_n "checking whether ${CC} supports -qlonglong, for CFLAGS... " >&6; }
6940 if ${pgac_cv_prog_CC_cflags__qlonglong+:} false
; then :
6941 $as_echo_n "(cached) " >&6
6943 pgac_save_CFLAGS
=$CFLAGS
6946 CFLAGS
="${CFLAGS} -qlonglong"
6947 ac_save_c_werror_flag
=$ac_c_werror_flag
6948 ac_c_werror_flag
=yes
6949 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6950 /* end confdefs.h. */
6960 if ac_fn_c_try_compile
"$LINENO"; then :
6961 pgac_cv_prog_CC_cflags__qlonglong
=yes
6963 pgac_cv_prog_CC_cflags__qlonglong
=no
6965 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6966 ac_c_werror_flag
=$ac_save_c_werror_flag
6967 CFLAGS
="$pgac_save_CFLAGS"
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__qlonglong" >&5
6971 $as_echo "$pgac_cv_prog_CC_cflags__qlonglong" >&6; }
6972 if test x
"$pgac_cv_prog_CC_cflags__qlonglong" = x
"yes"; then
6973 CFLAGS
="${CFLAGS} -qlonglong"
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -qlonglong, for CXXFLAGS" >&5
6978 $as_echo_n "checking whether ${CXX} supports -qlonglong, for CXXFLAGS... " >&6; }
6979 if ${pgac_cv_prog_CXX_cxxflags__qlonglong+:} false
; then :
6980 $as_echo_n "(cached) " >&6
6982 pgac_save_CXXFLAGS
=$CXXFLAGS
6985 CXXFLAGS
="${CXXFLAGS} -qlonglong"
6986 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6987 ac_cxx_werror_flag
=yes
6989 ac_cpp
='$CXXCPP $CPPFLAGS'
6990 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6991 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6992 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6995 /* end confdefs.h. */
7005 if ac_fn_cxx_try_compile
"$LINENO"; then :
7006 pgac_cv_prog_CXX_cxxflags__qlonglong
=yes
7008 pgac_cv_prog_CXX_cxxflags__qlonglong
=no
7010 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7012 ac_cpp
='$CPP $CPPFLAGS'
7013 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7014 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7015 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7017 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
7018 CXXFLAGS
="$pgac_save_CXXFLAGS"
7019 CXX
="$pgac_save_CXX"
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__qlonglong" >&5
7022 $as_echo "$pgac_cv_prog_CXX_cxxflags__qlonglong" >&6; }
7023 if test x
"$pgac_cv_prog_CXX_cxxflags__qlonglong" = x
"yes"; then
7024 CXXFLAGS
="${CXXFLAGS} -qlonglong"
7030 # If the compiler knows how to hide symbols, add the switch needed for that to
7031 # CFLAGS_SL_MODULE and define HAVE_VISIBILITY_ATTRIBUTE.
7033 # This is done separately from the above because -fvisibility is supported by
7034 # quite a few different compilers, making the required repetition bothersome.
7036 # We might need to add a separate test to check if
7037 # __attribute__((visibility("hidden"))) is supported, if we encounter a
7038 # compiler that supports one of the supported variants of -fvisibility=hidden
7039 # but uses a different syntax to mark a symbol as exported.
7040 if test "$GCC" = yes -o "$SUN_STUDIO_CC" = yes ; then
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fvisibility=hidden, for CFLAGS_SL_MODULE" >&5
7042 $as_echo_n "checking whether ${CC} supports -fvisibility=hidden, for CFLAGS_SL_MODULE... " >&6; }
7043 if ${pgac_cv_prog_CC_cflags__fvisibility_hidden+:} false
; then :
7044 $as_echo_n "(cached) " >&6
7046 pgac_save_CFLAGS
=$CFLAGS
7049 CFLAGS
="${CFLAGS_SL_MODULE} -fvisibility=hidden"
7050 ac_save_c_werror_flag
=$ac_c_werror_flag
7051 ac_c_werror_flag
=yes
7052 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7053 /* end confdefs.h. */
7063 if ac_fn_c_try_compile
"$LINENO"; then :
7064 pgac_cv_prog_CC_cflags__fvisibility_hidden
=yes
7066 pgac_cv_prog_CC_cflags__fvisibility_hidden
=no
7068 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7069 ac_c_werror_flag
=$ac_save_c_werror_flag
7070 CFLAGS
="$pgac_save_CFLAGS"
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fvisibility_hidden" >&5
7074 $as_echo "$pgac_cv_prog_CC_cflags__fvisibility_hidden" >&6; }
7075 if test x
"$pgac_cv_prog_CC_cflags__fvisibility_hidden" = x
"yes"; then
7076 CFLAGS_SL_MODULE
="${CFLAGS_SL_MODULE} -fvisibility=hidden"
7080 # For C++ we additionally want -fvisibility-inlines-hidden
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fvisibility=hidden, for CXXFLAGS_SL_MODULE" >&5
7082 $as_echo_n "checking whether ${CXX} supports -fvisibility=hidden, for CXXFLAGS_SL_MODULE... " >&6; }
7083 if ${pgac_cv_prog_CXX_cxxflags__fvisibility_hidden+:} false
; then :
7084 $as_echo_n "(cached) " >&6
7086 pgac_save_CXXFLAGS
=$CXXFLAGS
7089 CXXFLAGS
="${CXXFLAGS_SL_MODULE} -fvisibility=hidden"
7090 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
7091 ac_cxx_werror_flag
=yes
7093 ac_cpp
='$CXXCPP $CPPFLAGS'
7094 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7095 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7096 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7099 /* end confdefs.h. */
7109 if ac_fn_cxx_try_compile
"$LINENO"; then :
7110 pgac_cv_prog_CXX_cxxflags__fvisibility_hidden
=yes
7112 pgac_cv_prog_CXX_cxxflags__fvisibility_hidden
=no
7114 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7116 ac_cpp
='$CPP $CPPFLAGS'
7117 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7118 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7119 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7121 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
7122 CXXFLAGS
="$pgac_save_CXXFLAGS"
7123 CXX
="$pgac_save_CXX"
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fvisibility_hidden" >&5
7126 $as_echo "$pgac_cv_prog_CXX_cxxflags__fvisibility_hidden" >&6; }
7127 if test x
"$pgac_cv_prog_CXX_cxxflags__fvisibility_hidden" = x
"yes"; then
7128 CXXFLAGS_SL_MODULE
="${CXXFLAGS_SL_MODULE} -fvisibility=hidden"
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fvisibility-inlines-hidden, for CXXFLAGS_SL_MODULE" >&5
7132 $as_echo_n "checking whether ${CXX} supports -fvisibility-inlines-hidden, for CXXFLAGS_SL_MODULE... " >&6; }
7133 if ${pgac_cv_prog_CXX_cxxflags__fvisibility_inlines_hidden+:} false
; then :
7134 $as_echo_n "(cached) " >&6
7136 pgac_save_CXXFLAGS
=$CXXFLAGS
7139 CXXFLAGS
="${CXXFLAGS_SL_MODULE} -fvisibility-inlines-hidden"
7140 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
7141 ac_cxx_werror_flag
=yes
7143 ac_cpp
='$CXXCPP $CPPFLAGS'
7144 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7145 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7146 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7149 /* end confdefs.h. */
7159 if ac_fn_cxx_try_compile
"$LINENO"; then :
7160 pgac_cv_prog_CXX_cxxflags__fvisibility_inlines_hidden
=yes
7162 pgac_cv_prog_CXX_cxxflags__fvisibility_inlines_hidden
=no
7164 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7166 ac_cpp
='$CPP $CPPFLAGS'
7167 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7168 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7169 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7171 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
7172 CXXFLAGS
="$pgac_save_CXXFLAGS"
7173 CXX
="$pgac_save_CXX"
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fvisibility_inlines_hidden" >&5
7176 $as_echo "$pgac_cv_prog_CXX_cxxflags__fvisibility_inlines_hidden" >&6; }
7177 if test x
"$pgac_cv_prog_CXX_cxxflags__fvisibility_inlines_hidden" = x
"yes"; then
7178 CXXFLAGS_SL_MODULE
="${CXXFLAGS_SL_MODULE} -fvisibility-inlines-hidden"
7181 have_visibility_attribute
=$pgac_cv_prog_CC_cflags__fvisibility_hidden
7182 elif test "$PORTNAME" = "aix"; then
7183 # Note that xlc accepts -fvisibility=hidden as a file.
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -qvisibility=hidden, for CFLAGS_SL_MODULE" >&5
7185 $as_echo_n "checking whether ${CC} supports -qvisibility=hidden, for CFLAGS_SL_MODULE... " >&6; }
7186 if ${pgac_cv_prog_CC_cflags__qvisibility_hidden+:} false
; then :
7187 $as_echo_n "(cached) " >&6
7189 pgac_save_CFLAGS
=$CFLAGS
7192 CFLAGS
="${CFLAGS_SL_MODULE} -qvisibility=hidden"
7193 ac_save_c_werror_flag
=$ac_c_werror_flag
7194 ac_c_werror_flag
=yes
7195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7196 /* end confdefs.h. */
7206 if ac_fn_c_try_compile
"$LINENO"; then :
7207 pgac_cv_prog_CC_cflags__qvisibility_hidden
=yes
7209 pgac_cv_prog_CC_cflags__qvisibility_hidden
=no
7211 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7212 ac_c_werror_flag
=$ac_save_c_werror_flag
7213 CFLAGS
="$pgac_save_CFLAGS"
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__qvisibility_hidden" >&5
7217 $as_echo "$pgac_cv_prog_CC_cflags__qvisibility_hidden" >&6; }
7218 if test x
"$pgac_cv_prog_CC_cflags__qvisibility_hidden" = x
"yes"; then
7219 CFLAGS_SL_MODULE
="${CFLAGS_SL_MODULE} -qvisibility=hidden"
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -qvisibility=hidden, for CXXFLAGS_SL_MODULE" >&5
7224 $as_echo_n "checking whether ${CXX} supports -qvisibility=hidden, for CXXFLAGS_SL_MODULE... " >&6; }
7225 if ${pgac_cv_prog_CXX_cxxflags__qvisibility_hidden+:} false
; then :
7226 $as_echo_n "(cached) " >&6
7228 pgac_save_CXXFLAGS
=$CXXFLAGS
7231 CXXFLAGS
="${CXXFLAGS_SL_MODULE} -qvisibility=hidden"
7232 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
7233 ac_cxx_werror_flag
=yes
7235 ac_cpp
='$CXXCPP $CPPFLAGS'
7236 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7237 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7238 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7241 /* end confdefs.h. */
7251 if ac_fn_cxx_try_compile
"$LINENO"; then :
7252 pgac_cv_prog_CXX_cxxflags__qvisibility_hidden
=yes
7254 pgac_cv_prog_CXX_cxxflags__qvisibility_hidden
=no
7256 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7258 ac_cpp
='$CPP $CPPFLAGS'
7259 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7260 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7261 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7263 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
7264 CXXFLAGS
="$pgac_save_CXXFLAGS"
7265 CXX
="$pgac_save_CXX"
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__qvisibility_hidden" >&5
7268 $as_echo "$pgac_cv_prog_CXX_cxxflags__qvisibility_hidden" >&6; }
7269 if test x
"$pgac_cv_prog_CXX_cxxflags__qvisibility_hidden" = x
"yes"; then
7270 CXXFLAGS_SL_MODULE
="${CXXFLAGS_SL_MODULE} -qvisibility=hidden"
7273 have_visibility_attribute
=$pgac_cv_prog_CC_cflags__qvisibility_hidden
7274 # Old xlc versions (<13.1) don't have support for -qvisibility. Use expfull to force
7275 # all extension module symbols to be exported.
7276 if test "$pgac_cv_prog_CC_cflags__qvisibility_hidden" != "yes"; then
7277 CFLAGS_SL_MODULE
="$CFLAGS_SL_MODULE -Wl,-b,expfull"
7281 if test "$have_visibility_attribute" = "yes"; then
7283 $as_echo "#define HAVE_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
7292 # Determine flags used to emit bitcode for JIT inlining.
7293 # 1. We must duplicate any behaviour-changing compiler flags used above,
7294 # to keep compatibility with the compiler used for normal Postgres code.
7295 # 2. We don't bother to duplicate extra-warnings switches --- seeing a
7296 # warning in the main build is enough.
7297 # 3. But we must duplicate -Wno-warning flags, else we'll see those anyway.
7298 if test "$with_llvm" = yes ; then
7299 CLANGXX
="$CLANG -xc++"
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -fno-strict-aliasing, for BITCODE_CFLAGS" >&5
7302 $as_echo_n "checking whether ${CLANG} supports -fno-strict-aliasing, for BITCODE_CFLAGS... " >&6; }
7303 if ${pgac_cv_prog_CLANG_cflags__fno_strict_aliasing+:} false
; then :
7304 $as_echo_n "(cached) " >&6
7306 pgac_save_CFLAGS
=$CFLAGS
7309 CFLAGS
="${BITCODE_CFLAGS} -fno-strict-aliasing"
7310 ac_save_c_werror_flag
=$ac_c_werror_flag
7311 ac_c_werror_flag
=yes
7312 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7313 /* end confdefs.h. */
7323 if ac_fn_c_try_compile
"$LINENO"; then :
7324 pgac_cv_prog_CLANG_cflags__fno_strict_aliasing
=yes
7326 pgac_cv_prog_CLANG_cflags__fno_strict_aliasing
=no
7328 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7329 ac_c_werror_flag
=$ac_save_c_werror_flag
7330 CFLAGS
="$pgac_save_CFLAGS"
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__fno_strict_aliasing" >&5
7334 $as_echo "$pgac_cv_prog_CLANG_cflags__fno_strict_aliasing" >&6; }
7335 if test x
"$pgac_cv_prog_CLANG_cflags__fno_strict_aliasing" = x
"yes"; then
7336 BITCODE_CFLAGS
="${BITCODE_CFLAGS} -fno-strict-aliasing"
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANGXX} supports -fno-strict-aliasing, for BITCODE_CXXFLAGS" >&5
7340 $as_echo_n "checking whether ${CLANGXX} supports -fno-strict-aliasing, for BITCODE_CXXFLAGS... " >&6; }
7341 if ${pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing+:} false
; then :
7342 $as_echo_n "(cached) " >&6
7344 pgac_save_CXXFLAGS
=$CXXFLAGS
7347 CXXFLAGS
="${BITCODE_CXXFLAGS} -fno-strict-aliasing"
7348 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
7349 ac_cxx_werror_flag
=yes
7351 ac_cpp
='$CXXCPP $CPPFLAGS'
7352 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7353 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7354 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7356 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7357 /* end confdefs.h. */
7367 if ac_fn_cxx_try_compile
"$LINENO"; then :
7368 pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing
=yes
7370 pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing
=no
7372 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7374 ac_cpp
='$CPP $CPPFLAGS'
7375 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7376 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7377 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7379 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
7380 CXXFLAGS
="$pgac_save_CXXFLAGS"
7381 CXX
="$pgac_save_CXX"
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing" >&5
7384 $as_echo "$pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing" >&6; }
7385 if test x
"$pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing" = x
"yes"; then
7386 BITCODE_CXXFLAGS
="${BITCODE_CXXFLAGS} -fno-strict-aliasing"
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -fwrapv, for BITCODE_CFLAGS" >&5
7390 $as_echo_n "checking whether ${CLANG} supports -fwrapv, for BITCODE_CFLAGS... " >&6; }
7391 if ${pgac_cv_prog_CLANG_cflags__fwrapv+:} false
; then :
7392 $as_echo_n "(cached) " >&6
7394 pgac_save_CFLAGS
=$CFLAGS
7397 CFLAGS
="${BITCODE_CFLAGS} -fwrapv"
7398 ac_save_c_werror_flag
=$ac_c_werror_flag
7399 ac_c_werror_flag
=yes
7400 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7401 /* end confdefs.h. */
7411 if ac_fn_c_try_compile
"$LINENO"; then :
7412 pgac_cv_prog_CLANG_cflags__fwrapv
=yes
7414 pgac_cv_prog_CLANG_cflags__fwrapv
=no
7416 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7417 ac_c_werror_flag
=$ac_save_c_werror_flag
7418 CFLAGS
="$pgac_save_CFLAGS"
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__fwrapv" >&5
7422 $as_echo "$pgac_cv_prog_CLANG_cflags__fwrapv" >&6; }
7423 if test x
"$pgac_cv_prog_CLANG_cflags__fwrapv" = x
"yes"; then
7424 BITCODE_CFLAGS
="${BITCODE_CFLAGS} -fwrapv"
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANGXX} supports -fwrapv, for BITCODE_CXXFLAGS" >&5
7428 $as_echo_n "checking whether ${CLANGXX} supports -fwrapv, for BITCODE_CXXFLAGS... " >&6; }
7429 if ${pgac_cv_prog_CLANGXX_cxxflags__fwrapv+:} false
; then :
7430 $as_echo_n "(cached) " >&6
7432 pgac_save_CXXFLAGS
=$CXXFLAGS
7435 CXXFLAGS
="${BITCODE_CXXFLAGS} -fwrapv"
7436 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
7437 ac_cxx_werror_flag
=yes
7439 ac_cpp
='$CXXCPP $CPPFLAGS'
7440 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7441 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7442 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7445 /* end confdefs.h. */
7455 if ac_fn_cxx_try_compile
"$LINENO"; then :
7456 pgac_cv_prog_CLANGXX_cxxflags__fwrapv
=yes
7458 pgac_cv_prog_CLANGXX_cxxflags__fwrapv
=no
7460 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7462 ac_cpp
='$CPP $CPPFLAGS'
7463 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7464 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7465 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7467 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
7468 CXXFLAGS
="$pgac_save_CXXFLAGS"
7469 CXX
="$pgac_save_CXX"
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANGXX_cxxflags__fwrapv" >&5
7472 $as_echo "$pgac_cv_prog_CLANGXX_cxxflags__fwrapv" >&6; }
7473 if test x
"$pgac_cv_prog_CLANGXX_cxxflags__fwrapv" = x
"yes"; then
7474 BITCODE_CXXFLAGS
="${BITCODE_CXXFLAGS} -fwrapv"
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -fexcess-precision=standard, for BITCODE_CFLAGS" >&5
7478 $as_echo_n "checking whether ${CLANG} supports -fexcess-precision=standard, for BITCODE_CFLAGS... " >&6; }
7479 if ${pgac_cv_prog_CLANG_cflags__fexcess_precision_standard+:} false
; then :
7480 $as_echo_n "(cached) " >&6
7482 pgac_save_CFLAGS
=$CFLAGS
7485 CFLAGS
="${BITCODE_CFLAGS} -fexcess-precision=standard"
7486 ac_save_c_werror_flag
=$ac_c_werror_flag
7487 ac_c_werror_flag
=yes
7488 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7489 /* end confdefs.h. */
7499 if ac_fn_c_try_compile
"$LINENO"; then :
7500 pgac_cv_prog_CLANG_cflags__fexcess_precision_standard
=yes
7502 pgac_cv_prog_CLANG_cflags__fexcess_precision_standard
=no
7504 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7505 ac_c_werror_flag
=$ac_save_c_werror_flag
7506 CFLAGS
="$pgac_save_CFLAGS"
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__fexcess_precision_standard" >&5
7510 $as_echo "$pgac_cv_prog_CLANG_cflags__fexcess_precision_standard" >&6; }
7511 if test x
"$pgac_cv_prog_CLANG_cflags__fexcess_precision_standard" = x
"yes"; then
7512 BITCODE_CFLAGS
="${BITCODE_CFLAGS} -fexcess-precision=standard"
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANGXX} supports -fexcess-precision=standard, for BITCODE_CXXFLAGS" >&5
7516 $as_echo_n "checking whether ${CLANGXX} supports -fexcess-precision=standard, for BITCODE_CXXFLAGS... " >&6; }
7517 if ${pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard+:} false
; then :
7518 $as_echo_n "(cached) " >&6
7520 pgac_save_CXXFLAGS
=$CXXFLAGS
7523 CXXFLAGS
="${BITCODE_CXXFLAGS} -fexcess-precision=standard"
7524 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
7525 ac_cxx_werror_flag
=yes
7527 ac_cpp
='$CXXCPP $CPPFLAGS'
7528 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7529 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7530 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7532 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7533 /* end confdefs.h. */
7543 if ac_fn_cxx_try_compile
"$LINENO"; then :
7544 pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard
=yes
7546 pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard
=no
7548 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7550 ac_cpp
='$CPP $CPPFLAGS'
7551 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7552 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7553 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7555 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
7556 CXXFLAGS
="$pgac_save_CXXFLAGS"
7557 CXX
="$pgac_save_CXX"
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard" >&5
7560 $as_echo "$pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard" >&6; }
7561 if test x
"$pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard" = x
"yes"; then
7562 BITCODE_CXXFLAGS
="${BITCODE_CXXFLAGS} -fexcess-precision=standard"
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -Xclang -no-opaque-pointers, for BITCODE_CFLAGS" >&5
7567 $as_echo_n "checking whether ${CLANG} supports -Xclang -no-opaque-pointers, for BITCODE_CFLAGS... " >&6; }
7568 if ${pgac_cv_prog_CLANG_cflags__Xclang__no_opaque_pointers+:} false
; then :
7569 $as_echo_n "(cached) " >&6
7571 pgac_save_CFLAGS
=$CFLAGS
7574 CFLAGS
="${BITCODE_CFLAGS} -Xclang -no-opaque-pointers"
7575 ac_save_c_werror_flag
=$ac_c_werror_flag
7576 ac_c_werror_flag
=yes
7577 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7578 /* end confdefs.h. */
7588 if ac_fn_c_try_compile
"$LINENO"; then :
7589 pgac_cv_prog_CLANG_cflags__Xclang__no_opaque_pointers
=yes
7591 pgac_cv_prog_CLANG_cflags__Xclang__no_opaque_pointers
=no
7593 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7594 ac_c_werror_flag
=$ac_save_c_werror_flag
7595 CFLAGS
="$pgac_save_CFLAGS"
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__Xclang__no_opaque_pointers" >&5
7599 $as_echo "$pgac_cv_prog_CLANG_cflags__Xclang__no_opaque_pointers" >&6; }
7600 if test x
"$pgac_cv_prog_CLANG_cflags__Xclang__no_opaque_pointers" = x
"yes"; then
7601 BITCODE_CFLAGS
="${BITCODE_CFLAGS} -Xclang -no-opaque-pointers"
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANGXX} supports -Xclang -no-opaque-pointers, for BITCODE_CXXFLAGS" >&5
7605 $as_echo_n "checking whether ${CLANGXX} supports -Xclang -no-opaque-pointers, for BITCODE_CXXFLAGS... " >&6; }
7606 if ${pgac_cv_prog_CLANGXX_cxxflags__Xclang__no_opaque_pointers+:} false
; then :
7607 $as_echo_n "(cached) " >&6
7609 pgac_save_CXXFLAGS
=$CXXFLAGS
7612 CXXFLAGS
="${BITCODE_CXXFLAGS} -Xclang -no-opaque-pointers"
7613 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
7614 ac_cxx_werror_flag
=yes
7616 ac_cpp
='$CXXCPP $CPPFLAGS'
7617 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7618 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7619 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7622 /* end confdefs.h. */
7632 if ac_fn_cxx_try_compile
"$LINENO"; then :
7633 pgac_cv_prog_CLANGXX_cxxflags__Xclang__no_opaque_pointers
=yes
7635 pgac_cv_prog_CLANGXX_cxxflags__Xclang__no_opaque_pointers
=no
7637 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7639 ac_cpp
='$CPP $CPPFLAGS'
7640 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7641 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7642 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7644 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
7645 CXXFLAGS
="$pgac_save_CXXFLAGS"
7646 CXX
="$pgac_save_CXX"
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANGXX_cxxflags__Xclang__no_opaque_pointers" >&5
7649 $as_echo "$pgac_cv_prog_CLANGXX_cxxflags__Xclang__no_opaque_pointers" >&6; }
7650 if test x
"$pgac_cv_prog_CLANGXX_cxxflags__Xclang__no_opaque_pointers" = x
"yes"; then
7651 BITCODE_CXXFLAGS
="${BITCODE_CXXFLAGS} -Xclang -no-opaque-pointers"
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -Wunused-command-line-argument, for NOT_THE_CFLAGS" >&5
7657 $as_echo_n "checking whether ${CLANG} supports -Wunused-command-line-argument, for NOT_THE_CFLAGS... " >&6; }
7658 if ${pgac_cv_prog_CLANG_cflags__Wunused_command_line_argument+:} false
; then :
7659 $as_echo_n "(cached) " >&6
7661 pgac_save_CFLAGS
=$CFLAGS
7664 CFLAGS
="${NOT_THE_CFLAGS} -Wunused-command-line-argument"
7665 ac_save_c_werror_flag
=$ac_c_werror_flag
7666 ac_c_werror_flag
=yes
7667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7668 /* end confdefs.h. */
7678 if ac_fn_c_try_compile
"$LINENO"; then :
7679 pgac_cv_prog_CLANG_cflags__Wunused_command_line_argument
=yes
7681 pgac_cv_prog_CLANG_cflags__Wunused_command_line_argument
=no
7683 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7684 ac_c_werror_flag
=$ac_save_c_werror_flag
7685 CFLAGS
="$pgac_save_CFLAGS"
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__Wunused_command_line_argument" >&5
7689 $as_echo "$pgac_cv_prog_CLANG_cflags__Wunused_command_line_argument" >&6; }
7690 if test x
"$pgac_cv_prog_CLANG_cflags__Wunused_command_line_argument" = x
"yes"; then
7691 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wunused-command-line-argument"
7694 if test -n "$NOT_THE_CFLAGS"; then
7695 BITCODE_CFLAGS
="$BITCODE_CFLAGS -Wno-unused-command-line-argument"
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -Wcompound-token-split-by-macro, for NOT_THE_CFLAGS" >&5
7699 $as_echo_n "checking whether ${CLANG} supports -Wcompound-token-split-by-macro, for NOT_THE_CFLAGS... " >&6; }
7700 if ${pgac_cv_prog_CLANG_cflags__Wcompound_token_split_by_macro+:} false
; then :
7701 $as_echo_n "(cached) " >&6
7703 pgac_save_CFLAGS
=$CFLAGS
7706 CFLAGS
="${NOT_THE_CFLAGS} -Wcompound-token-split-by-macro"
7707 ac_save_c_werror_flag
=$ac_c_werror_flag
7708 ac_c_werror_flag
=yes
7709 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7710 /* end confdefs.h. */
7720 if ac_fn_c_try_compile
"$LINENO"; then :
7721 pgac_cv_prog_CLANG_cflags__Wcompound_token_split_by_macro
=yes
7723 pgac_cv_prog_CLANG_cflags__Wcompound_token_split_by_macro
=no
7725 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7726 ac_c_werror_flag
=$ac_save_c_werror_flag
7727 CFLAGS
="$pgac_save_CFLAGS"
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__Wcompound_token_split_by_macro" >&5
7731 $as_echo "$pgac_cv_prog_CLANG_cflags__Wcompound_token_split_by_macro" >&6; }
7732 if test x
"$pgac_cv_prog_CLANG_cflags__Wcompound_token_split_by_macro" = x
"yes"; then
7733 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wcompound-token-split-by-macro"
7736 if test -n "$NOT_THE_CFLAGS"; then
7737 BITCODE_CFLAGS
="$BITCODE_CFLAGS -Wno-compound-token-split-by-macro"
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -Wformat-truncation, for NOT_THE_CFLAGS" >&5
7741 $as_echo_n "checking whether ${CLANG} supports -Wformat-truncation, for NOT_THE_CFLAGS... " >&6; }
7742 if ${pgac_cv_prog_CLANG_cflags__Wformat_truncation+:} false
; then :
7743 $as_echo_n "(cached) " >&6
7745 pgac_save_CFLAGS
=$CFLAGS
7748 CFLAGS
="${NOT_THE_CFLAGS} -Wformat-truncation"
7749 ac_save_c_werror_flag
=$ac_c_werror_flag
7750 ac_c_werror_flag
=yes
7751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7752 /* end confdefs.h. */
7762 if ac_fn_c_try_compile
"$LINENO"; then :
7763 pgac_cv_prog_CLANG_cflags__Wformat_truncation
=yes
7765 pgac_cv_prog_CLANG_cflags__Wformat_truncation
=no
7767 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7768 ac_c_werror_flag
=$ac_save_c_werror_flag
7769 CFLAGS
="$pgac_save_CFLAGS"
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__Wformat_truncation" >&5
7773 $as_echo "$pgac_cv_prog_CLANG_cflags__Wformat_truncation" >&6; }
7774 if test x
"$pgac_cv_prog_CLANG_cflags__Wformat_truncation" = x
"yes"; then
7775 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wformat-truncation"
7778 if test -n "$NOT_THE_CFLAGS"; then
7779 BITCODE_CFLAGS
="$BITCODE_CFLAGS -Wno-format-truncation"
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -Wstringop-truncation, for NOT_THE_CFLAGS" >&5
7783 $as_echo_n "checking whether ${CLANG} supports -Wstringop-truncation, for NOT_THE_CFLAGS... " >&6; }
7784 if ${pgac_cv_prog_CLANG_cflags__Wstringop_truncation+:} false
; then :
7785 $as_echo_n "(cached) " >&6
7787 pgac_save_CFLAGS
=$CFLAGS
7790 CFLAGS
="${NOT_THE_CFLAGS} -Wstringop-truncation"
7791 ac_save_c_werror_flag
=$ac_c_werror_flag
7792 ac_c_werror_flag
=yes
7793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7794 /* end confdefs.h. */
7804 if ac_fn_c_try_compile
"$LINENO"; then :
7805 pgac_cv_prog_CLANG_cflags__Wstringop_truncation
=yes
7807 pgac_cv_prog_CLANG_cflags__Wstringop_truncation
=no
7809 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7810 ac_c_werror_flag
=$ac_save_c_werror_flag
7811 CFLAGS
="$pgac_save_CFLAGS"
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__Wstringop_truncation" >&5
7815 $as_echo "$pgac_cv_prog_CLANG_cflags__Wstringop_truncation" >&6; }
7816 if test x
"$pgac_cv_prog_CLANG_cflags__Wstringop_truncation" = x
"yes"; then
7817 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wstringop-truncation"
7820 if test -n "$NOT_THE_CFLAGS"; then
7821 BITCODE_CFLAGS
="$BITCODE_CFLAGS -Wno-stringop-truncation"
7825 # supply -g if --enable-debug
7826 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
7830 if test "$enable_debug" = yes && test "$ac_cv_prog_cxx_g" = yes; then
7831 CXXFLAGS
="$CXXFLAGS -g"
7834 # enable code coverage if --enable-coverage
7835 if test "$enable_coverage" = yes; then
7836 if test "$GCC" = yes; then
7837 CFLAGS
="$CFLAGS -fprofile-arcs -ftest-coverage"
7838 CXXFLAGS
="$CXXFLAGS -fprofile-arcs -ftest-coverage"
7840 as_fn_error $?
"--enable-coverage is supported only when using GCC" "$LINENO" 5
7844 # enable profiling if --enable-profiling
7845 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
7846 if test "$GCC" = yes; then
7848 $as_echo "#define PROFILE_PID_DIR 1" >>confdefs.h
7850 CFLAGS
="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
7851 CXXFLAGS
="$CXXFLAGS -pg $PLATFORM_PROFILE_FLAGS"
7853 as_fn_error $?
"--enable-profiling is supported only when using GCC" "$LINENO" 5
7857 # On Solaris, we need this #define to get POSIX-conforming versions
7858 # of many interfaces (sigwait, getpwuid_r, ...).
7859 if test "$PORTNAME" = "solaris"; then
7860 CPPFLAGS
="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS"
7863 # We already have this in Makefile.win32, but configure needs it too
7864 if test "$PORTNAME" = "win32"; then
7865 CPPFLAGS
="$CPPFLAGS -I$srcdir/src/include/port/win32"
7868 # Now that we're done automatically adding stuff to C[XX]FLAGS, put back the
7869 # user-specified flags (if any) at the end. This lets users override
7870 # the automatic additions.
7871 CFLAGS
="$CFLAGS $user_CFLAGS"
7872 CXXFLAGS
="$CXXFLAGS $user_CXXFLAGS"
7873 BITCODE_CFLAGS
="$BITCODE_CFLAGS $user_BITCODE_CFLAGS"
7874 BITCODE_CXXFLAGS
="$BITCODE_CXXFLAGS $user_BITCODE_CXXFLAGS"
7879 # The template file must set up CFLAGS_SL; we don't support user override
7882 # Check if the compiler still works with the final flag settings
7883 # (note, we're not checking that for CXX, which is optional)
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler still works" >&5
7885 $as_echo_n "checking whether the C compiler still works... " >&6; }
7886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7887 /* end confdefs.h. */
7897 if ac_fn_c_try_link
"$LINENO"; then :
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7899 $as_echo "yes" >&6; }
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7902 $as_echo "no" >&6; }
7903 as_fn_error $?
"cannot proceed" "$LINENO" 5
7905 rm -f core conftest.err conftest.
$ac_objext \
7906 conftest
$ac_exeext conftest.
$ac_ext
7908 # Defend against gcc -ffast-math
7909 if test "$GCC" = yes; then
7910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7911 /* end confdefs.h. */
7916 #ifdef __FAST_MATH__
7923 if ac_fn_c_try_compile
"$LINENO"; then :
7926 as_fn_error $?
"do not put -ffast-math in CFLAGS" "$LINENO" 5
7928 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7931 # Defend against clang being used on x86-32 without SSE2 enabled. As current
7932 # versions of clang do not understand -fexcess-precision=standard, the use of
7933 # x87 floating point operations leads to problems like isinf possibly returning
7934 # false for a value that is infinite when converted from the 80bit register to
7935 # the 8byte memory representation.
7937 # Only perform the test if the compiler doesn't understand
7938 # -fexcess-precision=standard, that way a potentially fixed compiler will work
7940 if test "$pgac_cv_prog_CC_cflags__fexcess_precision_standard" = no
; then
7941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7942 /* end confdefs.h. */
7948 #if defined(__clang__) && defined(__i386__) && !defined(__SSE2_MATH__)
7956 if ac_fn_c_try_compile
"$LINENO"; then :
7959 as_fn_error $?
"Compiling PostgreSQL with clang, on 32bit x86, requires SSE2 support. Use -msse2 or use gcc." "$LINENO" 5
7961 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7965 ac_cpp
='$CPP $CPPFLAGS'
7966 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7967 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7968 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7970 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7971 # On Suns, sometimes $CPP names a directory.
7972 if test -n "$CPP" && test -d "$CPP"; then
7975 if test -z "$CPP"; then
7976 if ${ac_cv_prog_CPP+:} false
; then :
7977 $as_echo_n "(cached) " >&6
7979 # Double quotes because CPP needs to be expanded
7980 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7983 for ac_c_preproc_warn_flag
in '' yes
7985 # Use a header file that comes with gcc, so configuring glibc
7986 # with a fresh cross-compiler works.
7987 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7988 # <limits.h> exists even on freestanding compilers.
7989 # On the NeXT, cc -E runs the code through the compiler's parser,
7990 # not just through cpp. "Syntax error" is here to catch this case.
7991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7992 /* end confdefs.h. */
7994 # include <limits.h>
7996 # include <assert.h>
8000 if ac_fn_c_try_cpp
"$LINENO"; then :
8003 # Broken: fails on valid input.
8006 rm -f conftest.err conftest.i conftest.
$ac_ext
8008 # OK, works on sane cases. Now check whether nonexistent headers
8009 # can be detected and how.
8010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8011 /* end confdefs.h. */
8012 #include <ac_nonexistent.h>
8014 if ac_fn_c_try_cpp
"$LINENO"; then :
8015 # Broken: success on invalid input.
8018 # Passes both tests.
8022 rm -f conftest.err conftest.i conftest.
$ac_ext
8025 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8026 rm -f conftest.i conftest.err conftest.
$ac_ext
8027 if $ac_preproc_ok; then :
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8040 $as_echo "$CPP" >&6; }
8042 for ac_c_preproc_warn_flag
in '' yes
8044 # Use a header file that comes with gcc, so configuring glibc
8045 # with a fresh cross-compiler works.
8046 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8047 # <limits.h> exists even on freestanding compilers.
8048 # On the NeXT, cc -E runs the code through the compiler's parser,
8049 # not just through cpp. "Syntax error" is here to catch this case.
8050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8051 /* end confdefs.h. */
8053 # include <limits.h>
8055 # include <assert.h>
8059 if ac_fn_c_try_cpp
"$LINENO"; then :
8062 # Broken: fails on valid input.
8065 rm -f conftest.err conftest.i conftest.
$ac_ext
8067 # OK, works on sane cases. Now check whether nonexistent headers
8068 # can be detected and how.
8069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8070 /* end confdefs.h. */
8071 #include <ac_nonexistent.h>
8073 if ac_fn_c_try_cpp
"$LINENO"; then :
8074 # Broken: success on invalid input.
8077 # Passes both tests.
8081 rm -f conftest.err conftest.i conftest.
$ac_ext
8084 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8085 rm -f conftest.i conftest.err conftest.
$ac_ext
8086 if $ac_preproc_ok; then :
8089 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8091 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
8092 See \`config.log' for more details" "$LINENO" 5; }
8096 ac_cpp
='$CPP $CPPFLAGS'
8097 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8098 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8099 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8105 # Set up TAS assembly code if needed; the template file has now had its
8106 # chance to request this.
8108 ac_config_links
="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
8111 if test "$need_tas" = yes ; then
8119 cat >>confdefs.h
<<_ACEOF
8120 #define DLSUFFIX "$DLSUFFIX"
8125 # Set up pkg_config in case we need it below
8134 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8135 if test -n "$ac_tool_prefix"; then
8136 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8137 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8139 $as_echo_n "checking for $ac_word... " >&6; }
8140 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
8141 $as_echo_n "(cached) " >&6
8145 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8148 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8152 test -z "$as_dir" && as_dir
=.
8153 for ac_exec_ext
in '' $ac_executable_extensions; do
8154 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8155 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8166 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8167 if test -n "$PKG_CONFIG"; then
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8169 $as_echo "$PKG_CONFIG" >&6; }
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8172 $as_echo "no" >&6; }
8177 if test -z "$ac_cv_path_PKG_CONFIG"; then
8178 ac_pt_PKG_CONFIG
=$PKG_CONFIG
8179 # Extract the first word of "pkg-config", so it can be a program name with args.
8180 set dummy pkg-config
; ac_word
=$2
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8182 $as_echo_n "checking for $ac_word... " >&6; }
8183 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
8184 $as_echo_n "(cached) " >&6
8186 case $ac_pt_PKG_CONFIG in
8188 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8191 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8195 test -z "$as_dir" && as_dir
=.
8196 for ac_exec_ext
in '' $ac_executable_extensions; do
8197 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8198 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8209 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
8210 if test -n "$ac_pt_PKG_CONFIG"; then
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8212 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8215 $as_echo "no" >&6; }
8218 if test "x$ac_pt_PKG_CONFIG" = x
; then
8221 case $cross_compiling:$ac_tool_warned in
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8225 ac_tool_warned
=yes ;;
8227 PKG_CONFIG
=$ac_pt_PKG_CONFIG
8230 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
8234 if test -n "$PKG_CONFIG"; then
8235 _pkg_min_version
=0.9.0
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8237 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8238 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8240 $as_echo "yes" >&6; }
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8243 $as_echo "no" >&6; }
8249 # Automatic dependency tracking
8253 # Check whether --enable-depend was given.
8254 if test "${enable_depend+set}" = set; then :
8255 enableval
=$enable_depend;
8264 as_fn_error $?
"no argument expected for --enable-depend option" "$LINENO" 5
8278 # Enable assert checks
8282 # Check whether --enable-cassert was given.
8283 if test "${enable_cassert+set}" = set; then :
8284 enableval
=$enable_cassert;
8288 $as_echo "#define USE_ASSERT_CHECKING 1" >>confdefs.h
8295 as_fn_error $?
"no argument expected for --enable-cassert option" "$LINENO" 5
8308 # Include directories
8311 IFS
="${IFS}${PATH_SEPARATOR}"
8312 # SRCH_INC comes from the template file
8313 for dir
in $with_includes $SRCH_INC; do
8314 if test -d "$dir"; then
8315 INCLUDES
="$INCLUDES -I$dir"
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Include directory $dir does not exist." >&5
8318 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
8326 # Library directories
8329 IFS
="${IFS}${PATH_SEPARATOR}"
8330 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
8331 for dir
in $LIBRARY_DIRS $SRCH_LIB; do
8332 if test -d "$dir"; then
8333 LIBDIRS
="$LIBDIRS -L$dir"
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Library directory $dir does not exist." >&5
8336 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
8342 # Enable thread-safe client libraries
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking allow thread-safe client libraries" >&5
8345 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
8348 # Check whether --enable-thread-safety was given.
8349 if test "${enable_thread_safety+set}" = set; then :
8350 enableval
=$enable_thread_safety;
8359 as_fn_error $?
"no argument expected for --enable-thread-safety option" "$LINENO" 5
8364 enable_thread_safety
=yes
8369 if test "$enable_thread_safety" = yes; then
8371 $as_echo "#define ENABLE_THREAD_SAFETY 1" >>confdefs.h
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_thread_safety" >&5
8375 $as_echo "$enable_thread_safety" >&6; }
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with ICU support" >&5
8382 $as_echo_n "checking whether to build with ICU support... " >&6; }
8386 # Check whether --with-icu was given.
8387 if test "${with_icu+set}" = set; then :
8392 $as_echo "#define USE_ICU 1" >>confdefs.h
8399 as_fn_error $?
"no argument expected for --with-icu option" "$LINENO" 5
8406 $as_echo "#define USE_ICU 1" >>confdefs.h
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_icu" >&5
8412 $as_echo "$with_icu" >&6; }
8415 if test "$with_icu" = yes; then
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icu-uc icu-i18n" >&5
8419 $as_echo_n "checking for icu-uc icu-i18n... " >&6; }
8421 if test -n "$ICU_CFLAGS"; then
8422 pkg_cv_ICU_CFLAGS
="$ICU_CFLAGS"
8423 elif test -n "$PKG_CONFIG"; then
8424 if test -n "$PKG_CONFIG" && \
8425 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc icu-i18n\""; } >&5
8426 ($PKG_CONFIG --exists --print-errors "icu-uc icu-i18n") 2>&5
8428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8429 test $ac_status = 0; }; then
8430 pkg_cv_ICU_CFLAGS
=`$PKG_CONFIG --cflags "icu-uc icu-i18n" 2>/dev/null`
8431 test "x$?" != "x0" && pkg_failed
=yes
8438 if test -n "$ICU_LIBS"; then
8439 pkg_cv_ICU_LIBS
="$ICU_LIBS"
8440 elif test -n "$PKG_CONFIG"; then
8441 if test -n "$PKG_CONFIG" && \
8442 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc icu-i18n\""; } >&5
8443 ($PKG_CONFIG --exists --print-errors "icu-uc icu-i18n") 2>&5
8445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8446 test $ac_status = 0; }; then
8447 pkg_cv_ICU_LIBS
=`$PKG_CONFIG --libs "icu-uc icu-i18n" 2>/dev/null`
8448 test "x$?" != "x0" && pkg_failed
=yes
8458 if test $pkg_failed = yes; then
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8460 $as_echo "no" >&6; }
8462 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8463 _pkg_short_errors_supported
=yes
8465 _pkg_short_errors_supported
=no
8467 if test $_pkg_short_errors_supported = yes; then
8468 ICU_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "icu-uc icu-i18n" 2>&1`
8470 ICU_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "icu-uc icu-i18n" 2>&1`
8472 # Put the nasty error message in config.log where it belongs
8473 echo "$ICU_PKG_ERRORS" >&5
8475 as_fn_error $?
"ICU library not found
8476 If you have ICU already installed, see config.log for details on the
8477 failure. It is possible the compiler isn't looking in the proper directory.
8478 Use --without-icu to disable ICU support." "$LINENO" 5
8479 elif test $pkg_failed = untried
; then
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8481 $as_echo "no" >&6; }
8482 as_fn_error $?
"ICU library not found
8483 If you have ICU already installed, see config.log for details on the
8484 failure. It is possible the compiler isn't looking in the proper directory.
8485 Use --without-icu to disable ICU support." "$LINENO" 5
8487 ICU_CFLAGS
=$pkg_cv_ICU_CFLAGS
8488 ICU_LIBS
=$pkg_cv_ICU_LIBS
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8490 $as_echo "yes" >&6; }
8496 # Optionally build Tcl modules (PL/Tcl)
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with Tcl" >&5
8499 $as_echo_n "checking whether to build with Tcl... " >&6; }
8503 # Check whether --with-tcl was given.
8504 if test "${with_tcl+set}" = set; then :
8514 as_fn_error $?
"no argument expected for --with-tcl option" "$LINENO" 5
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcl" >&5
8525 $as_echo "$with_tcl" >&6; }
8528 # We see if the path to the Tcl/Tk configuration scripts is specified.
8529 # This will override the use of tclsh to find the paths to search.
8534 # Check whether --with-tclconfig was given.
8535 if test "${with_tclconfig+set}" = set; then :
8536 withval
=$with_tclconfig;
8539 as_fn_error $?
"argument required for --with-tclconfig option" "$LINENO" 5
8542 as_fn_error $?
"argument required for --with-tclconfig option" "$LINENO" 5
8554 # Optionally build Perl modules (PL/Perl)
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Perl modules" >&5
8557 $as_echo_n "checking whether to build Perl modules... " >&6; }
8561 # Check whether --with-perl was given.
8562 if test "${with_perl+set}" = set; then :
8572 as_fn_error $?
"no argument expected for --with-perl option" "$LINENO" 5
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_perl" >&5
8583 $as_echo "$with_perl" >&6; }
8587 # Optionally build Python modules (PL/Python)
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Python modules" >&5
8590 $as_echo_n "checking whether to build Python modules... " >&6; }
8594 # Check whether --with-python was given.
8595 if test "${with_python+set}" = set; then :
8596 withval
=$with_python;
8605 as_fn_error $?
"no argument expected for --with-python option" "$LINENO" 5
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
8616 $as_echo "$with_python" >&6; }
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with GSSAPI support" >&5
8623 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
8627 # Check whether --with-gssapi was given.
8628 if test "${with_gssapi+set}" = set; then :
8629 withval
=$with_gssapi;
8634 $as_echo "#define ENABLE_GSS 1" >>confdefs.h
8636 krb_srvtab
="FILE:\$(sysconfdir)/krb5.keytab"
8643 as_fn_error $?
"no argument expected for --with-gssapi option" "$LINENO" 5
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_gssapi" >&5
8654 $as_echo "$with_gssapi" >&6; }
8662 # Kerberos configuration parameters
8667 # Check whether --with-krb-srvnam was given.
8668 if test "${with_krb_srvnam+set}" = set; then :
8669 withval
=$with_krb_srvnam;
8672 as_fn_error $?
"argument required for --with-krb-srvnam option" "$LINENO" 5
8675 as_fn_error $?
"argument required for --with-krb-srvnam option" "$LINENO" 5
8683 with_krb_srvnam
="postgres"
8689 cat >>confdefs.h
<<_ACEOF
8690 #define PG_KRB_SRVNAM "$with_krb_srvnam"
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with PAM support" >&5
8699 $as_echo_n "checking whether to build with PAM support... " >&6; }
8703 # Check whether --with-pam was given.
8704 if test "${with_pam+set}" = set; then :
8709 $as_echo "#define USE_PAM 1" >>confdefs.h
8716 as_fn_error $?
"no argument expected for --with-pam option" "$LINENO" 5
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pam" >&5
8727 $as_echo "$with_pam" >&6; }
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with BSD Authentication support" >&5
8734 $as_echo_n "checking whether to build with BSD Authentication support... " >&6; }
8738 # Check whether --with-bsd-auth was given.
8739 if test "${with_bsd_auth+set}" = set; then :
8740 withval
=$with_bsd_auth;
8744 $as_echo "#define USE_BSD_AUTH 1" >>confdefs.h
8751 as_fn_error $?
"no argument expected for --with-bsd-auth option" "$LINENO" 5
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_bsd_auth" >&5
8762 $as_echo "$with_bsd_auth" >&6; }
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with LDAP support" >&5
8769 $as_echo_n "checking whether to build with LDAP support... " >&6; }
8773 # Check whether --with-ldap was given.
8774 if test "${with_ldap+set}" = set; then :
8779 $as_echo "#define USE_LDAP 1" >>confdefs.h
8786 as_fn_error $?
"no argument expected for --with-ldap option" "$LINENO" 5
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ldap" >&5
8797 $as_echo "$with_ldap" >&6; }
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with Bonjour support" >&5
8805 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
8809 # Check whether --with-bonjour was given.
8810 if test "${with_bonjour+set}" = set; then :
8811 withval
=$with_bonjour;
8815 $as_echo "#define USE_BONJOUR 1" >>confdefs.h
8822 as_fn_error $?
"no argument expected for --with-bonjour option" "$LINENO" 5
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_bonjour" >&5
8833 $as_echo "$with_bonjour" >&6; }
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with SELinux support" >&5
8840 $as_echo_n "checking whether to build with SELinux support... " >&6; }
8844 # Check whether --with-selinux was given.
8845 if test "${with_selinux+set}" = set; then :
8846 withval
=$with_selinux;
8855 as_fn_error $?
"no argument expected for --with-selinux option" "$LINENO" 5
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_selinux" >&5
8867 $as_echo "$with_selinux" >&6; }
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with systemd support" >&5
8873 $as_echo_n "checking whether to build with systemd support... " >&6; }
8877 # Check whether --with-systemd was given.
8878 if test "${with_systemd+set}" = set; then :
8879 withval
=$with_systemd;
8883 $as_echo "#define USE_SYSTEMD 1" >>confdefs.h
8890 as_fn_error $?
"no argument expected for --with-systemd option" "$LINENO" 5
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemd" >&5
8902 $as_echo "$with_systemd" >&6; }
8910 # Check whether --with-readline was given.
8911 if test "${with_readline+set}" = set; then :
8912 withval
=$with_readline;
8921 as_fn_error $?
"no argument expected for --with-readline option" "$LINENO" 5
8931 # readline on MinGW has problems with backslashes in psql and other bugs.
8932 # This is particularly a problem with non-US code pages.
8933 # Therefore disable its use until we understand the cause. 2004-07-20
8934 if test "$PORTNAME" = "win32"; then
8935 if test "$with_readline" = yes; then
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Readline does not work on MinGW --- disabling" >&5
8937 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
8950 # Check whether --with-libedit-preferred was given.
8951 if test "${with_libedit_preferred+set}" = set; then :
8952 withval
=$with_libedit_preferred;
8961 as_fn_error $?
"no argument expected for --with-libedit-preferred option" "$LINENO" 5
8966 with_libedit_preferred
=no
8976 # There are at least three UUID libraries in common use: the FreeBSD/NetBSD
8977 # library, the e2fsprogs libuuid (now part of util-linux-ng), and the OSSP
8978 # UUID library. More than one of these might be present on a given platform,
8979 # so we make the user say which one she wants.
8984 # Check whether --with-uuid was given.
8985 if test "${with_uuid+set}" = set; then :
8989 as_fn_error $?
"argument required for --with-uuid option" "$LINENO" 5
8992 as_fn_error $?
"argument required for --with-uuid option" "$LINENO" 5
9002 if test x
"$with_uuid" = x
"" ; then
9008 # Check whether --with-ossp-uuid was given.
9009 if test "${with_ossp_uuid+set}" = set; then :
9010 withval
=$with_ossp_uuid;
9019 as_fn_error $?
"no argument expected for --with-ossp-uuid option" "$LINENO" 5
9029 if test "$with_ossp_uuid" = yes ; then
9033 if test "$with_uuid" != no
; then
9034 if test "$with_uuid" = bsd
; then
9036 $as_echo "#define HAVE_UUID_BSD 1" >>confdefs.h
9038 elif test "$with_uuid" = e2fs
; then
9040 $as_echo "#define HAVE_UUID_E2FS 1" >>confdefs.h
9042 elif test "$with_uuid" = ossp
; then
9044 $as_echo "#define HAVE_UUID_OSSP 1" >>confdefs.h
9047 as_fn_error $?
"--with-uuid must specify one of bsd, e2fs, or ossp" "$LINENO" 5
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with XML support" >&5
9057 $as_echo_n "checking whether to build with XML support... " >&6; }
9061 # Check whether --with-libxml was given.
9062 if test "${with_libxml+set}" = set; then :
9063 withval
=$with_libxml;
9067 $as_echo "#define USE_LIBXML 1" >>confdefs.h
9074 as_fn_error $?
"no argument expected for --with-libxml option" "$LINENO" 5
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_libxml" >&5
9085 $as_echo "$with_libxml" >&6; }
9088 if test "$with_libxml" = yes ; then
9089 # Check pkg-config, then xml2-config. But for backwards compatibility,
9090 # setting XML2_CONFIG overrides pkg-config.
9091 have_libxml2_pkg_config
=no
9092 if test -z "$XML2_CONFIG" -a -n "$PKG_CONFIG"; then
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.6.23" >&5
9096 $as_echo_n "checking for libxml-2.0 >= 2.6.23... " >&6; }
9098 if test -n "$XML2_CFLAGS"; then
9099 pkg_cv_XML2_CFLAGS
="$XML2_CFLAGS"
9100 elif test -n "$PKG_CONFIG"; then
9101 if test -n "$PKG_CONFIG" && \
9102 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.23\""; } >&5
9103 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.23") 2>&5
9105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9106 test $ac_status = 0; }; then
9107 pkg_cv_XML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.23" 2>/dev/null`
9108 test "x$?" != "x0" && pkg_failed
=yes
9115 if test -n "$XML2_LIBS"; then
9116 pkg_cv_XML2_LIBS
="$XML2_LIBS"
9117 elif test -n "$PKG_CONFIG"; then
9118 if test -n "$PKG_CONFIG" && \
9119 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.23\""; } >&5
9120 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.23") 2>&5
9122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9123 test $ac_status = 0; }; then
9124 pkg_cv_XML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.23" 2>/dev/null`
9125 test "x$?" != "x0" && pkg_failed
=yes
9135 if test $pkg_failed = yes; then
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9137 $as_echo "no" >&6; }
9139 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9140 _pkg_short_errors_supported
=yes
9142 _pkg_short_errors_supported
=no
9144 if test $_pkg_short_errors_supported = yes; then
9145 XML2_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6.23" 2>&1`
9147 XML2_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6.23" 2>&1`
9149 # Put the nasty error message in config.log where it belongs
9150 echo "$XML2_PKG_ERRORS" >&5
9153 elif test $pkg_failed = untried
; then
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9155 $as_echo "no" >&6; }
9158 XML2_CFLAGS
=$pkg_cv_XML2_CFLAGS
9159 XML2_LIBS
=$pkg_cv_XML2_LIBS
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9161 $as_echo "yes" >&6; }
9162 have_libxml2_pkg_config
=yes
9165 if test "$have_libxml2_pkg_config" = no
; then
9166 if test -z "$XML2_CONFIG"; then
9167 for ac_prog
in xml2-config
9169 # Extract the first word of "$ac_prog", so it can be a program name with args.
9170 set dummy
$ac_prog; ac_word
=$2
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9172 $as_echo_n "checking for $ac_word... " >&6; }
9173 if ${ac_cv_path_XML2_CONFIG+:} false
; then :
9174 $as_echo_n "(cached) " >&6
9176 case $XML2_CONFIG in
9178 ac_cv_path_XML2_CONFIG
="$XML2_CONFIG" # Let the user override the test with a path.
9181 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9185 test -z "$as_dir" && as_dir
=.
9186 for ac_exec_ext
in '' $ac_executable_extensions; do
9187 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9188 ac_cv_path_XML2_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9199 XML2_CONFIG
=$ac_cv_path_XML2_CONFIG
9200 if test -n "$XML2_CONFIG"; then
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
9202 $as_echo "$XML2_CONFIG" >&6; }
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9205 $as_echo "no" >&6; }
9209 test -n "$XML2_CONFIG" && break
9213 # Report the value of XML2_CONFIG in configure's output in all cases.
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML2_CONFIG" >&5
9215 $as_echo_n "checking for XML2_CONFIG... " >&6; }
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
9217 $as_echo "$XML2_CONFIG" >&6; }
9220 if test -n "$XML2_CONFIG"; then
9221 XML2_CFLAGS
=`$XML2_CONFIG --cflags`
9222 XML2_LIBS
=`$XML2_CONFIG --libs`
9225 # Note the user could also set XML2_CFLAGS/XML2_LIBS directly
9226 for pgac_option
in $XML2_CFLAGS; do
9227 case $pgac_option in
9228 -I*|
-D*) CPPFLAGS
="$CPPFLAGS $pgac_option";;
9231 for pgac_option
in $XML2_LIBS; do
9232 case $pgac_option in
9233 -L*) LDFLAGS
="$LDFLAGS $pgac_option";;
9245 # Check whether --with-libxslt was given.
9246 if test "${with_libxslt+set}" = set; then :
9247 withval
=$with_libxslt;
9251 $as_echo "#define USE_LIBXSLT 1" >>confdefs.h
9258 as_fn_error $?
"no argument expected for --with-libxslt option" "$LINENO" 5
9278 # Check whether --with-system-tzdata was given.
9279 if test "${with_system_tzdata+set}" = set; then :
9280 withval
=$with_system_tzdata;
9283 as_fn_error $?
"argument required for --with-system-tzdata option" "$LINENO" 5
9286 as_fn_error $?
"argument required for --with-system-tzdata option" "$LINENO" 5
9304 # Check whether --with-zlib was given.
9305 if test "${with_zlib+set}" = set; then :
9315 as_fn_error $?
"no argument expected for --with-zlib option" "$LINENO" 5
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with LZ4 support" >&5
9331 $as_echo_n "checking whether to build with LZ4 support... " >&6; }
9335 # Check whether --with-lz4 was given.
9336 if test "${with_lz4+set}" = set; then :
9341 $as_echo "#define USE_LZ4 1" >>confdefs.h
9348 as_fn_error $?
"no argument expected for --with-lz4 option" "$LINENO" 5
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lz4" >&5
9359 $as_echo "$with_lz4" >&6; }
9362 if test "$with_lz4" = yes; then
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblz4" >&5
9366 $as_echo_n "checking for liblz4... " >&6; }
9368 if test -n "$LZ4_CFLAGS"; then
9369 pkg_cv_LZ4_CFLAGS
="$LZ4_CFLAGS"
9370 elif test -n "$PKG_CONFIG"; then
9371 if test -n "$PKG_CONFIG" && \
9372 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblz4\""; } >&5
9373 ($PKG_CONFIG --exists --print-errors "liblz4") 2>&5
9375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9376 test $ac_status = 0; }; then
9377 pkg_cv_LZ4_CFLAGS
=`$PKG_CONFIG --cflags "liblz4" 2>/dev/null`
9378 test "x$?" != "x0" && pkg_failed
=yes
9385 if test -n "$LZ4_LIBS"; then
9386 pkg_cv_LZ4_LIBS
="$LZ4_LIBS"
9387 elif test -n "$PKG_CONFIG"; then
9388 if test -n "$PKG_CONFIG" && \
9389 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblz4\""; } >&5
9390 ($PKG_CONFIG --exists --print-errors "liblz4") 2>&5
9392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9393 test $ac_status = 0; }; then
9394 pkg_cv_LZ4_LIBS
=`$PKG_CONFIG --libs "liblz4" 2>/dev/null`
9395 test "x$?" != "x0" && pkg_failed
=yes
9405 if test $pkg_failed = yes; then
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9407 $as_echo "no" >&6; }
9409 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9410 _pkg_short_errors_supported
=yes
9412 _pkg_short_errors_supported
=no
9414 if test $_pkg_short_errors_supported = yes; then
9415 LZ4_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblz4" 2>&1`
9417 LZ4_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "liblz4" 2>&1`
9419 # Put the nasty error message in config.log where it belongs
9420 echo "$LZ4_PKG_ERRORS" >&5
9422 as_fn_error $?
"Package requirements (liblz4) were not met:
9426 Consider adjusting the PKG_CONFIG_PATH environment variable if you
9427 installed software in a non-standard prefix.
9429 Alternatively, you may set the environment variables LZ4_CFLAGS
9430 and LZ4_LIBS to avoid the need to call pkg-config.
9431 See the pkg-config man page for more details." "$LINENO" 5
9432 elif test $pkg_failed = untried
; then
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9434 $as_echo "no" >&6; }
9435 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9437 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
9438 is in your PATH or set the PKG_CONFIG environment variable to the full
9441 Alternatively, you may set the environment variables LZ4_CFLAGS
9442 and LZ4_LIBS to avoid the need to call pkg-config.
9443 See the pkg-config man page for more details.
9445 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
9446 See \`config.log' for more details" "$LINENO" 5; }
9448 LZ4_CFLAGS
=$pkg_cv_LZ4_CFLAGS
9449 LZ4_LIBS
=$pkg_cv_LZ4_LIBS
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9451 $as_echo "yes" >&6; }
9454 # We only care about -I, -D, and -L switches;
9455 # note that -llz4 will be added by AC_CHECK_LIB below.
9456 for pgac_option
in $LZ4_CFLAGS; do
9457 case $pgac_option in
9458 -I*|
-D*) CPPFLAGS
="$CPPFLAGS $pgac_option";;
9461 for pgac_option
in $LZ4_LIBS; do
9462 case $pgac_option in
9463 -L*) LDFLAGS
="$LDFLAGS $pgac_option";;
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with ZSTD support" >&5
9472 $as_echo_n "checking whether to build with ZSTD support... " >&6; }
9476 # Check whether --with-zstd was given.
9477 if test "${with_zstd+set}" = set; then :
9482 $as_echo "#define USE_ZSTD 1" >>confdefs.h
9489 as_fn_error $?
"no argument expected for --with-zstd option" "$LINENO" 5
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_zstd" >&5
9500 $as_echo "$with_zstd" >&6; }
9503 if test "$with_zstd" = yes; then
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.4.0" >&5
9507 $as_echo_n "checking for libzstd >= 1.4.0... " >&6; }
9509 if test -n "$ZSTD_CFLAGS"; then
9510 pkg_cv_ZSTD_CFLAGS
="$ZSTD_CFLAGS"
9511 elif test -n "$PKG_CONFIG"; then
9512 if test -n "$PKG_CONFIG" && \
9513 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
9514 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
9516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9517 test $ac_status = 0; }; then
9518 pkg_cv_ZSTD_CFLAGS
=`$PKG_CONFIG --cflags "libzstd >= 1.4.0" 2>/dev/null`
9519 test "x$?" != "x0" && pkg_failed
=yes
9526 if test -n "$ZSTD_LIBS"; then
9527 pkg_cv_ZSTD_LIBS
="$ZSTD_LIBS"
9528 elif test -n "$PKG_CONFIG"; then
9529 if test -n "$PKG_CONFIG" && \
9530 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
9531 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
9533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9534 test $ac_status = 0; }; then
9535 pkg_cv_ZSTD_LIBS
=`$PKG_CONFIG --libs "libzstd >= 1.4.0" 2>/dev/null`
9536 test "x$?" != "x0" && pkg_failed
=yes
9546 if test $pkg_failed = yes; then
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9548 $as_echo "no" >&6; }
9550 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9551 _pkg_short_errors_supported
=yes
9553 _pkg_short_errors_supported
=no
9555 if test $_pkg_short_errors_supported = yes; then
9556 ZSTD_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
9558 ZSTD_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
9560 # Put the nasty error message in config.log where it belongs
9561 echo "$ZSTD_PKG_ERRORS" >&5
9563 as_fn_error $?
"Package requirements (libzstd >= 1.4.0) were not met:
9567 Consider adjusting the PKG_CONFIG_PATH environment variable if you
9568 installed software in a non-standard prefix.
9570 Alternatively, you may set the environment variables ZSTD_CFLAGS
9571 and ZSTD_LIBS to avoid the need to call pkg-config.
9572 See the pkg-config man page for more details." "$LINENO" 5
9573 elif test $pkg_failed = untried
; then
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9575 $as_echo "no" >&6; }
9576 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9578 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
9579 is in your PATH or set the PKG_CONFIG environment variable to the full
9582 Alternatively, you may set the environment variables ZSTD_CFLAGS
9583 and ZSTD_LIBS to avoid the need to call pkg-config.
9584 See the pkg-config man page for more details.
9586 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
9587 See \`config.log' for more details" "$LINENO" 5; }
9589 ZSTD_CFLAGS
=$pkg_cv_ZSTD_CFLAGS
9590 ZSTD_LIBS
=$pkg_cv_ZSTD_LIBS
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9592 $as_echo "yes" >&6; }
9595 # We only care about -I, -D, and -L switches;
9596 # note that -lzstd will be added by AC_CHECK_LIB below.
9597 for pgac_option
in $ZSTD_CFLAGS; do
9598 case $pgac_option in
9599 -I*|
-D*) CPPFLAGS
="$CPPFLAGS $pgac_option";;
9602 for pgac_option
in $ZSTD_LIBS; do
9603 case $pgac_option in
9604 -L*) LDFLAGS
="$LDFLAGS $pgac_option";;
9612 CPPFLAGS
="$CPPFLAGS $INCLUDES"
9613 LDFLAGS
="$LDFLAGS $LIBDIRS"
9619 if test -n "$ac_tool_prefix"; then
9620 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9621 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9623 $as_echo_n "checking for $ac_word... " >&6; }
9624 if ${ac_cv_prog_STRIP+:} false
; then :
9625 $as_echo_n "(cached) " >&6
9627 if test -n "$STRIP"; then
9628 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
9630 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9634 test -z "$as_dir" && as_dir
=.
9635 for ac_exec_ext
in '' $ac_executable_extensions; do
9636 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9637 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
9638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9647 STRIP
=$ac_cv_prog_STRIP
9648 if test -n "$STRIP"; then
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9650 $as_echo "$STRIP" >&6; }
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9653 $as_echo "no" >&6; }
9658 if test -z "$ac_cv_prog_STRIP"; then
9660 # Extract the first word of "strip", so it can be a program name with args.
9661 set dummy strip
; ac_word
=$2
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9663 $as_echo_n "checking for $ac_word... " >&6; }
9664 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
9665 $as_echo_n "(cached) " >&6
9667 if test -n "$ac_ct_STRIP"; then
9668 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
9670 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9674 test -z "$as_dir" && as_dir
=.
9675 for ac_exec_ext
in '' $ac_executable_extensions; do
9676 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9677 ac_cv_prog_ac_ct_STRIP
="strip"
9678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9687 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
9688 if test -n "$ac_ct_STRIP"; then
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9690 $as_echo "$ac_ct_STRIP" >&6; }
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9693 $as_echo "no" >&6; }
9696 if test "x$ac_ct_STRIP" = x
; then
9699 case $cross_compiling:$ac_tool_warned in
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9702 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9703 ac_tool_warned
=yes ;;
9708 STRIP
="$ac_cv_prog_STRIP"
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is possible to strip libraries" >&5
9713 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
9714 if test x
"$STRIP" != x
"" && "$STRIP" -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
9715 STRIP_STATIC_LIB
="$STRIP --strip-unneeded"
9716 STRIP_SHARED_LIB
="$STRIP --strip-unneeded"
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9718 $as_echo "yes" >&6; }
9723 STRIP_STATIC_LIB
=$STRIP
9724 STRIP_SHARED_LIB
=$STRIP
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9726 $as_echo "yes" >&6; }
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9732 $as_echo "no" >&6; }
9739 if test -n "$ac_tool_prefix"; then
9740 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9741 set dummy
${ac_tool_prefix}ar; ac_word
=$2
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9743 $as_echo_n "checking for $ac_word... " >&6; }
9744 if ${ac_cv_prog_AR+:} false
; then :
9745 $as_echo_n "(cached) " >&6
9747 if test -n "$AR"; then
9748 ac_cv_prog_AR
="$AR" # Let the user override the test.
9750 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9754 test -z "$as_dir" && as_dir
=.
9755 for ac_exec_ext
in '' $ac_executable_extensions; do
9756 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9757 ac_cv_prog_AR
="${ac_tool_prefix}ar"
9758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9768 if test -n "$AR"; then
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9770 $as_echo "$AR" >&6; }
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9773 $as_echo "no" >&6; }
9778 if test -z "$ac_cv_prog_AR"; then
9780 # Extract the first word of "ar", so it can be a program name with args.
9781 set dummy
ar; ac_word
=$2
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9783 $as_echo_n "checking for $ac_word... " >&6; }
9784 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
9785 $as_echo_n "(cached) " >&6
9787 if test -n "$ac_ct_AR"; then
9788 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
9790 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9794 test -z "$as_dir" && as_dir
=.
9795 for ac_exec_ext
in '' $ac_executable_extensions; do
9796 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9797 ac_cv_prog_ac_ct_AR
="ar"
9798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9807 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
9808 if test -n "$ac_ct_AR"; then
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9810 $as_echo "$ac_ct_AR" >&6; }
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9813 $as_echo "no" >&6; }
9816 if test "x$ac_ct_AR" = x
; then
9819 case $cross_compiling:$ac_tool_warned in
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9822 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9823 ac_tool_warned
=yes ;;
9831 if test "$PORTNAME" = "win32"; then
9832 if test -n "$ac_tool_prefix"; then
9833 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
9834 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9836 $as_echo_n "checking for $ac_word... " >&6; }
9837 if ${ac_cv_prog_WINDRES+:} false
; then :
9838 $as_echo_n "(cached) " >&6
9840 if test -n "$WINDRES"; then
9841 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
9843 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9847 test -z "$as_dir" && as_dir
=.
9848 for ac_exec_ext
in '' $ac_executable_extensions; do
9849 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9850 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
9851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9860 WINDRES
=$ac_cv_prog_WINDRES
9861 if test -n "$WINDRES"; then
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9863 $as_echo "$WINDRES" >&6; }
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9866 $as_echo "no" >&6; }
9871 if test -z "$ac_cv_prog_WINDRES"; then
9872 ac_ct_WINDRES
=$WINDRES
9873 # Extract the first word of "windres", so it can be a program name with args.
9874 set dummy windres
; ac_word
=$2
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9876 $as_echo_n "checking for $ac_word... " >&6; }
9877 if ${ac_cv_prog_ac_ct_WINDRES+:} false
; then :
9878 $as_echo_n "(cached) " >&6
9880 if test -n "$ac_ct_WINDRES"; then
9881 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
9883 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9887 test -z "$as_dir" && as_dir
=.
9888 for ac_exec_ext
in '' $ac_executable_extensions; do
9889 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9890 ac_cv_prog_ac_ct_WINDRES
="windres"
9891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9900 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
9901 if test -n "$ac_ct_WINDRES"; then
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
9903 $as_echo "$ac_ct_WINDRES" >&6; }
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9906 $as_echo "no" >&6; }
9909 if test "x$ac_ct_WINDRES" = x
; then
9912 case $cross_compiling:$ac_tool_warned in
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9915 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9916 ac_tool_warned
=yes ;;
9918 WINDRES
=$ac_ct_WINDRES
9921 WINDRES
="$ac_cv_prog_WINDRES"
9926 # Find a good install program. We prefer a C program (faster),
9927 # so one script is as good as another. But avoid the broken or
9928 # incompatible versions:
9929 # SysV /etc/install, /usr/sbin/install
9930 # SunOS /usr/etc/install
9931 # IRIX /sbin/install
9933 # AmigaOS /C/install, which installs bootblocks on floppy discs
9934 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9935 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9936 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9937 # OS/2's system install, which has a completely different semantic
9938 # ./install, which can be erroneously created by make from ./install.sh.
9939 # Reject install programs that cannot install multiple files.
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
9941 $as_echo_n "checking for a BSD-compatible install... " >&6; }
9942 if test -z "$INSTALL"; then
9943 if ${ac_cv_path_install+:} false
; then :
9944 $as_echo_n "(cached) " >&6
9946 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9950 test -z "$as_dir" && as_dir
=.
9951 # Account for people who put trailing slashes in PATH elements.
9952 case $as_dir/ in #((
9953 .
/ | .
// |
/[cC
]/* | \
9954 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
9955 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
9958 # OSF1 and SCO ODT 3.0 have their own names for install.
9959 # Don't use installbsd from OSF since it installs stuff as root
9961 for ac_prog
in ginstall scoinst
install; do
9962 for ac_exec_ext
in '' $ac_executable_extensions; do
9963 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
9964 if test $ac_prog = install &&
9965 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
9966 # AIX install. It has an incompatible calling convention.
9968 elif test $ac_prog = install &&
9969 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
9970 # program-specific install script used by HP pwplus--don't use.
9973 rm -rf conftest.one conftest.two conftest.dir
9974 echo one
> conftest.one
9975 echo two
> conftest.two
9977 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
9978 test -s conftest.one
&& test -s conftest.two
&&
9979 test -s conftest.dir
/conftest.one
&&
9980 test -s conftest.dir
/conftest.two
9982 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
9995 rm -rf conftest.one conftest.two conftest.dir
9998 if test "${ac_cv_path_install+set}" = set; then
9999 INSTALL
=$ac_cv_path_install
10001 # As a last resort, use the slow shell script. Don't cache a
10002 # value for INSTALL within a source directory, because that will
10003 # break other packages using the cache if that directory is
10004 # removed, or if the value is a relative name.
10005 INSTALL
=$ac_install_sh
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
10009 $as_echo "$INSTALL" >&6; }
10011 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10012 # It thinks the first close brace ends the variable substitution.
10013 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
10015 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
10017 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
10019 # When Autoconf chooses install-sh as install program it tries to generate
10020 # a relative path to it in each makefile where it substitutes it. This clashes
10021 # with our Makefile.global concept. This workaround helps.
10023 *install-sh
*) install_bin
='';;
10024 *) install_bin
=$INSTALL;;
10028 if test -z "$TAR"; then
10031 # Extract the first word of "$ac_prog", so it can be a program name with args.
10032 set dummy
$ac_prog; ac_word
=$2
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10034 $as_echo_n "checking for $ac_word... " >&6; }
10035 if ${ac_cv_path_TAR+:} false
; then :
10036 $as_echo_n "(cached) " >&6
10040 ac_cv_path_TAR
="$TAR" # Let the user override the test with a path.
10043 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10044 for as_dir
in $PATH
10047 test -z "$as_dir" && as_dir
=.
10048 for ac_exec_ext
in '' $ac_executable_extensions; do
10049 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10050 ac_cv_path_TAR
="$as_dir/$ac_word$ac_exec_ext"
10051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10061 TAR
=$ac_cv_path_TAR
10062 if test -n "$TAR"; then
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
10064 $as_echo "$TAR" >&6; }
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10067 $as_echo "no" >&6; }
10071 test -n "$TAR" && break
10075 # Report the value of TAR in configure's output in all cases.
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
10077 $as_echo_n "checking for TAR... " >&6; }
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
10079 $as_echo "$TAR" >&6; }
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
10083 $as_echo_n "checking whether ln -s works... " >&6; }
10085 if test "$LN_S" = "ln -s"; then
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10087 $as_echo "yes" >&6; }
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
10090 $as_echo "no, using $LN_S" >&6; }
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
10094 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
10095 if test -z "$MKDIR_P"; then
10096 if ${ac_cv_path_mkdir+:} false
; then :
10097 $as_echo_n "(cached) " >&6
10099 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10100 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
10103 test -z "$as_dir" && as_dir
=.
10104 for ac_prog
in mkdir gmkdir
; do
10105 for ac_exec_ext
in '' $ac_executable_extensions; do
10106 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
10107 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
10108 'mkdir (GNU coreutils) '* | \
10109 'mkdir (coreutils) '* | \
10110 'mkdir (fileutils) '4.1*)
10111 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
10121 test -d .
/--version && rmdir .
/--version
10122 if test "${ac_cv_path_mkdir+set}" = set; then
10123 MKDIR_P
="$ac_cv_path_mkdir -p"
10125 # As a last resort, use the slow shell script. Don't cache a
10126 # value for MKDIR_P within a source directory, because that will
10127 # break other packages using the cache if that directory is
10128 # removed, or if the value is a relative name.
10129 MKDIR_P
="$ac_install_sh -d"
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
10133 $as_echo "$MKDIR_P" >&6; }
10135 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
10136 # a relative path to it in each makefile where it substitutes it. This clashes
10137 # with our Makefile.global concept. This workaround helps.
10139 *install-sh
*) MKDIR_P
='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
10142 if test -z "$BISON"; then
10143 for ac_prog
in bison
10145 # Extract the first word of "$ac_prog", so it can be a program name with args.
10146 set dummy
$ac_prog; ac_word
=$2
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10148 $as_echo_n "checking for $ac_word... " >&6; }
10149 if ${ac_cv_path_BISON+:} false
; then :
10150 $as_echo_n "(cached) " >&6
10154 ac_cv_path_BISON
="$BISON" # Let the user override the test with a path.
10157 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10158 for as_dir
in $PATH
10161 test -z "$as_dir" && as_dir
=.
10162 for ac_exec_ext
in '' $ac_executable_extensions; do
10163 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10164 ac_cv_path_BISON
="$as_dir/$ac_word$ac_exec_ext"
10165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10175 BISON
=$ac_cv_path_BISON
10176 if test -n "$BISON"; then
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10178 $as_echo "$BISON" >&6; }
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10181 $as_echo "no" >&6; }
10185 test -n "$BISON" && break
10189 # Report the value of BISON in configure's output in all cases.
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BISON" >&5
10191 $as_echo_n "checking for BISON... " >&6; }
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10193 $as_echo "$BISON" >&6; }
10197 if test "$BISON"; then
10198 pgac_bison_version
=`$BISON --version 2>/dev/null | sed q`
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: using $pgac_bison_version" >&5
10200 $as_echo "$as_me: using $pgac_bison_version" >&6;}
10201 if echo "$pgac_bison_version" |
$AWK '{ if ($4 < 2.3) exit 0; else exit 1;}'
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10204 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
10205 *** Bison version 2.3 or later is required, but this is $pgac_bison_version." >&5
10206 $as_echo "$as_me: WARNING:
10207 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
10208 *** Bison version 2.3 or later is required, but this is $pgac_bison_version." >&2;}
10211 # Bison >=3.0 issues warnings about %name-prefix="base_yy", instead
10212 # of the now preferred %name-prefix "base_yy", but the latter
10213 # doesn't work with Bison 2.3 or less. So for now we silence the
10214 # deprecation warnings.
10215 if echo "$pgac_bison_version" |
$AWK '{ if ($4 >= 3) exit 0; else exit 1;}'
10217 BISONFLAGS
="$BISONFLAGS -Wno-deprecated"
10221 if test -z "$BISON"; then
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10223 *** Without Bison you will not be able to build PostgreSQL from Git nor
10224 *** change any of the parser definition files. You can obtain Bison from
10225 *** a GNU mirror site. (If you are using the official distribution of
10226 *** PostgreSQL then you do not need to worry about this, because the Bison
10227 *** output is pre-generated.)" >&5
10228 $as_echo "$as_me: WARNING:
10229 *** Without Bison you will not be able to build PostgreSQL from Git nor
10230 *** change any of the parser definition files. You can obtain Bison from
10231 *** a GNU mirror site. (If you are using the official distribution of
10232 *** PostgreSQL then you do not need to worry about this, because the Bison
10233 *** output is pre-generated.)" >&2;}
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex" >&5
10238 $as_echo_n "checking for flex... " >&6; }
10239 if ${pgac_cv_path_flex+:} false
; then :
10240 $as_echo_n "(cached) " >&6
10242 # Let the user override the test
10243 if test -n "$FLEX"; then
10244 pgac_cv_path_flex
=$FLEX
10247 IFS
=$PATH_SEPARATOR
10248 for pgac_dir
in $PATH; do
10250 if test -z "$pgac_dir" ||
test x
"$pgac_dir" = x
"."; then
10253 for pgac_prog
in flex
lex; do
10254 pgac_candidate
="$pgac_dir/$pgac_prog"
10255 if test -f "$pgac_candidate" \
10256 && $pgac_candidate --version </dev
/null
>/dev
/null
2>&1
10258 echo '%%' > conftest.l
10259 if $pgac_candidate -t conftest.l
2>/dev
/null |
grep FLEX_SCANNER
>/dev
/null
2>&1; then
10260 pgac_flex_version
=`$pgac_candidate --version 2>/dev/null`
10261 if echo "$pgac_flex_version" |
sed 's/[.a-z]/ /g' |
$AWK '{ if ($1 == 2 && ($2 > 5 || ($2 == 5 && $3 >= 35))) exit 0; else exit 1;}'
10263 pgac_cv_path_flex
=$pgac_candidate
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10267 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
10268 *** Flex version 2.5.35 or later is required, but this is $pgac_flex_version." >&5
10269 $as_echo "$as_me: WARNING:
10270 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
10271 *** Flex version 2.5.35 or later is required, but this is $pgac_flex_version." >&2;}
10277 rm -f conftest.l
lex.yy.c
10278 : ${pgac_cv_path_flex=no}
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_path_flex" >&5
10283 $as_echo "$pgac_cv_path_flex" >&6; }
10284 if test x
"$pgac_cv_path_flex" = x
"no"; then
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10286 *** Without Flex you will not be able to build PostgreSQL from Git nor
10287 *** change any of the scanner definition files. You can obtain Flex from
10288 *** a GNU mirror site. (If you are using the official distribution of
10289 *** PostgreSQL then you do not need to worry about this because the Flex
10290 *** output is pre-generated.)" >&5
10291 $as_echo "$as_me: WARNING:
10292 *** Without Flex you will not be able to build PostgreSQL from Git nor
10293 *** change any of the scanner definition files. You can obtain Flex from
10294 *** a GNU mirror site. (If you are using the official distribution of
10295 *** PostgreSQL then you do not need to worry about this because the Flex
10296 *** output is pre-generated.)" >&2;}
10300 FLEX
=$pgac_cv_path_flex
10301 pgac_flex_version
=`$FLEX --version 2>/dev/null`
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: using $pgac_flex_version" >&5
10303 $as_echo "$as_me: using $pgac_flex_version" >&6;}
10310 if test -z "$PERL"; then
10311 for ac_prog
in perl
10313 # Extract the first word of "$ac_prog", so it can be a program name with args.
10314 set dummy
$ac_prog; ac_word
=$2
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10316 $as_echo_n "checking for $ac_word... " >&6; }
10317 if ${ac_cv_path_PERL+:} false
; then :
10318 $as_echo_n "(cached) " >&6
10322 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
10325 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10326 for as_dir
in $PATH
10329 test -z "$as_dir" && as_dir
=.
10330 for ac_exec_ext
in '' $ac_executable_extensions; do
10331 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10332 ac_cv_path_PERL
="$as_dir/$ac_word$ac_exec_ext"
10333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10343 PERL
=$ac_cv_path_PERL
10344 if test -n "$PERL"; then
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
10346 $as_echo "$PERL" >&6; }
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10349 $as_echo "no" >&6; }
10353 test -n "$PERL" && break
10357 # Report the value of PERL in configure's output in all cases.
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PERL" >&5
10359 $as_echo_n "checking for PERL... " >&6; }
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
10361 $as_echo "$PERL" >&6; }
10365 if test "$PERL"; then
10366 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'`
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: using perl $pgac_perl_version" >&5
10368 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
10369 if echo "$pgac_perl_version" |
sed 's/[.a-z_]/ /g' | \
10370 $AWK '{ if ($1 == 5 && ($2 >= 14)) exit 1; else exit 0;}'
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10373 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
10374 *** Perl version 5.14 or later is required, but this is $pgac_perl_version." >&5
10375 $as_echo "$as_me: WARNING:
10376 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
10377 *** Perl version 5.14 or later is required, but this is $pgac_perl_version." >&2;}
10382 if test -z "$PERL"; then
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10384 *** Without Perl you will not be able to build PostgreSQL from Git.
10385 *** You can obtain Perl from any CPAN mirror site.
10386 *** (If you are using the official distribution of PostgreSQL then you do not
10387 *** need to worry about this, because the Perl output is pre-generated.)" >&5
10388 $as_echo "$as_me: WARNING:
10389 *** Without Perl you will not be able to build PostgreSQL from Git.
10390 *** You can obtain Perl from any CPAN mirror site.
10391 *** (If you are using the official distribution of PostgreSQL then you do not
10392 *** need to worry about this, because the Perl output is pre-generated.)" >&2;}
10395 if test "$with_perl" = yes; then
10396 if test -z "$PERL"; then
10397 as_fn_error $?
"Perl not found" "$LINENO" 5
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl archlibexp" >&5
10401 $as_echo_n "checking for Perl archlibexp... " >&6; }
10402 perl_archlibexp
=`$PERL -MConfig -e 'print $Config{archlibexp}'`
10403 test "$PORTNAME" = "win32" && perl_archlibexp
=`echo $perl_archlibexp | sed 's,\\\\,/,g'`
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_archlibexp" >&5
10405 $as_echo "$perl_archlibexp" >&6; }
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl privlibexp" >&5
10407 $as_echo_n "checking for Perl privlibexp... " >&6; }
10408 perl_privlibexp
=`$PERL -MConfig -e 'print $Config{privlibexp}'`
10409 test "$PORTNAME" = "win32" && perl_privlibexp
=`echo $perl_privlibexp | sed 's,\\\\,/,g'`
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_privlibexp" >&5
10411 $as_echo "$perl_privlibexp" >&6; }
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl useshrplib" >&5
10413 $as_echo_n "checking for Perl useshrplib... " >&6; }
10414 perl_useshrplib
=`$PERL -MConfig -e 'print $Config{useshrplib}'`
10415 test "$PORTNAME" = "win32" && perl_useshrplib
=`echo $perl_useshrplib | sed 's,\\\\,/,g'`
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_useshrplib" >&5
10417 $as_echo "$perl_useshrplib" >&6; }
10418 if test "$perl_useshrplib" != yes && test "$perl_useshrplib" != true
; then
10419 as_fn_error $?
"cannot build PL/Perl because libperl is not a shared library
10420 You might have to rebuild your Perl installation. Refer to the
10421 documentation for details. Use --without-perl to disable building
10422 PL/Perl." "$LINENO" 5
10424 # On most platforms, archlibexp is also where the Perl include files live ...
10425 perl_includespec
="-I$perl_archlibexp/CORE"
10426 # ... but on newer macOS versions, we must use -iwithsysroot to look
10427 # under $PG_SYSROOT
10428 if test \
! -f "$perl_archlibexp/CORE/perl.h" ; then
10429 if test -f "$PG_SYSROOT$perl_archlibexp/CORE/perl.h" ; then
10430 perl_includespec
="-iwithsysroot $perl_archlibexp/CORE"
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS recommended by Perl" >&5
10435 $as_echo_n "checking for CFLAGS recommended by Perl... " >&6; }
10436 perl_ccflags
=`$PERL -MConfig -e 'print $Config{ccflags}'`
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_ccflags" >&5
10438 $as_echo "$perl_ccflags" >&6; }
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS to compile embedded Perl" >&5
10440 $as_echo_n "checking for CFLAGS to compile embedded Perl... " >&6; }
10441 perl_embed_ccflags
=`$PERL -MConfig -e 'foreach $f (split(" ",$Config{ccflags})) {print $f, " " if ($f =~ /^-D[^_]/ || $f =~ /^-D_USE_32BIT_TIME_T/)}'`
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_embed_ccflags" >&5
10443 $as_echo "$perl_embed_ccflags" >&6; }
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flags to link embedded Perl" >&5
10447 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
10448 if test "$PORTNAME" = "win32" ; then
10449 perl_lib
=`basename $perl_archlibexp/CORE/perl[5-9]*.lib .lib`
10450 if test -e "$perl_archlibexp/CORE/$perl_lib.lib"; then
10451 perl_embed_ldflags
="-L$perl_archlibexp/CORE -l$perl_lib"
10453 perl_lib
=`basename $perl_archlibexp/CORE/libperl[5-9]*.a .a | sed 's/^lib//'`
10454 if test -e "$perl_archlibexp/CORE/lib$perl_lib.a"; then
10455 perl_embed_ldflags
="-L$perl_archlibexp/CORE -l$perl_lib"
10459 pgac_tmp1
=`$PERL -MExtUtils::Embed -e ldopts`
10460 pgac_tmp2
=`$PERL -MConfig -e 'print "$Config{ccdlflags} $Config{ldflags}"'`
10461 perl_embed_ldflags
=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%"`
10463 if test -z "$perl_embed_ldflags" ; then
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10465 $as_echo "no" >&6; }
10466 as_fn_error $?
"could not determine flags for linking embedded Perl.
10467 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
10468 installed." "$LINENO" 5
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_embed_ldflags" >&5
10471 $as_echo "$perl_embed_ldflags" >&6; }
10476 if test "$with_python" = yes; then
10477 if test -z "$PYTHON"; then
10478 for ac_prog
in python3 python
10480 # Extract the first word of "$ac_prog", so it can be a program name with args.
10481 set dummy
$ac_prog; ac_word
=$2
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10483 $as_echo_n "checking for $ac_word... " >&6; }
10484 if ${ac_cv_path_PYTHON+:} false
; then :
10485 $as_echo_n "(cached) " >&6
10489 ac_cv_path_PYTHON
="$PYTHON" # Let the user override the test with a path.
10492 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10493 for as_dir
in $PATH
10496 test -z "$as_dir" && as_dir
=.
10497 for ac_exec_ext
in '' $ac_executable_extensions; do
10498 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10499 ac_cv_path_PYTHON
="$as_dir/$ac_word$ac_exec_ext"
10500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10510 PYTHON
=$ac_cv_path_PYTHON
10511 if test -n "$PYTHON"; then
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
10513 $as_echo "$PYTHON" >&6; }
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10516 $as_echo "no" >&6; }
10520 test -n "$PYTHON" && break
10524 # Report the value of PYTHON in configure's output in all cases.
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYTHON" >&5
10526 $as_echo_n "checking for PYTHON... " >&6; }
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
10528 $as_echo "$PYTHON" >&6; }
10531 if test x
"$PYTHON" = x
""; then
10532 as_fn_error $?
"Python not found" "$LINENO" 5
10536 python_fullversion
=`${PYTHON} -c "import sys; print(sys.version)" | sed q`
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: using python $python_fullversion" >&5
10538 $as_echo "$as_me: using python $python_fullversion" >&6;}
10539 # python_fullversion is typically n.n.n plus some trailing junk
10540 python_majorversion
=`echo "$python_fullversion" | sed 's/^\([0-9]*\).*/\1/'`
10541 python_minorversion
=`echo "$python_fullversion" | sed 's/^[0-9]*\.\([0-9]*\).*/\1/'`
10542 python_version
=`echo "$python_fullversion" | sed 's/^\([0-9]*\.[0-9]*\).*/\1/'`
10543 # Reject unsupported Python versions as soon as practical.
10544 if test "$python_majorversion" -lt 3; then
10545 as_fn_error $?
"Python version $python_version is too old (version 3 or later is required)" "$LINENO" 5
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python sysconfig module" >&5
10549 $as_echo_n "checking for Python sysconfig module... " >&6; }
10550 if "${PYTHON}" -c 'import sysconfig' 2>&5
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10553 $as_echo "yes" >&6; }
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10556 $as_echo "no" >&6; }
10557 as_fn_error $?
"sysconfig module not found" "$LINENO" 5
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python configuration directory" >&5
10561 $as_echo_n "checking Python configuration directory... " >&6; }
10562 python_configdir
=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('LIBPL'))))"`
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_configdir" >&5
10564 $as_echo "$python_configdir" >&6; }
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python include directory" >&5
10567 $as_echo_n "checking Python include directory... " >&6; }
10568 python_includespec
=`${PYTHON} -c "import sysconfig; print('-I' + sysconfig.get_config_var('INCLUDEPY'))"`
10569 if test "$PORTNAME" = win32
; then
10570 python_includespec
=`echo $python_includespec | sed 's,[\],/,g'`
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_includespec" >&5
10573 $as_echo "$python_includespec" >&6; }
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link an embedded Python application" >&5
10578 $as_echo_n "checking how to link an embedded Python application... " >&6; }
10580 python_libdir
=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('LIBDIR'))))"`
10581 python_ldlibrary
=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('LDLIBRARY'))))"`
10583 # If LDLIBRARY exists and has a shlib extension, use it verbatim.
10584 ldlibrary
=`echo "${python_ldlibrary}" | sed -e 's/\.so$//' -e 's/\.dll$//' -e 's/\.dylib$//' -e 's/\.sl$//'`
10585 if test -e "${python_libdir}/${python_ldlibrary}" -a x"${python_ldlibrary}" != x"${ldlibrary}"
10587 ldlibrary
=`echo "${ldlibrary}" | sed "s/^lib//"`
10590 # Otherwise, guess the base name of the shlib.
10591 # LDVERSION was added in Python 3.2, before that use VERSION,
10592 # or failing that, $python_version from _PGAC_CHECK_PYTHON_DIRS.
10593 python_ldversion
=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('LDVERSION'))))"`
10594 if test x
"${python_ldversion}" != x
""; then
10595 ldlibrary
="python${python_ldversion}"
10597 python_version_var
=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('VERSION'))))"`
10598 if test x
"${python_version_var}" != x
""; then
10599 ldlibrary
="python${python_version_var}"
10601 ldlibrary
="python${python_version}"
10604 # Search for a likely-looking file.
10606 for d
in "${python_libdir}" "${python_configdir}" /usr
/lib64
/usr
/lib
10608 if test -e "$d/lib${ldlibrary}${DLSUFFIX}"; then
10614 # Some platforms (OpenBSD) require us to accept a bare versioned shlib
10615 # (".so.n.n") as well. However, check this only after failing to find
10616 # ".so" anywhere, because yet other platforms (Debian) put the .so
10617 # symlink in a different directory from the underlying versioned shlib.
10618 if test "$found_shlib" != 1; then
10619 for d
in "${python_libdir}" "${python_configdir}" /usr
/lib64
/usr
/lib
10621 for f
in "$d/lib${ldlibrary}.so."* ; do
10622 if test -e "$f"; then
10630 # As usual, Windows has its own ideas. Possible default library
10631 # locations include c:/Windows/System32 and (for Cygwin) /usr/bin,
10632 # and the "lib" prefix might not be there.
10633 if test "$found_shlib" != 1 -a \
( "$PORTNAME" = win32
-o "$PORTNAME" = cygwin \
); then
10634 for d
in "${python_libdir}" "${python_configdir}" c
:/Windows
/System32
/usr
/bin
10636 for f
in "$d/lib${ldlibrary}.dll" "$d/${ldlibrary}.dll" ; do
10637 if test -e "$f"; then
10646 if test "$found_shlib" != 1; then
10647 as_fn_error $?
"could not find shared library for Python
10648 You might have to rebuild your Python installation. Refer to the
10649 documentation for details. Use --without-python to disable building
10650 PL/Python." "$LINENO" 5
10652 python_libspec
="-L${python_libdir} -l${ldlibrary}"
10654 python_additional_libs
=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_libspec} ${python_additional_libs}" >&5
10657 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
10663 if test x"$cross_compiling" = x"yes" && test -z "$with_system_tzdata"; then
10664 if test -z "$ZIC"; then
10667 # Extract the first word of "$ac_prog", so it can be a program name with args.
10668 set dummy $ac_prog; ac_word=$2
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10670 $as_echo_n "checking
for $ac_word...
" >&6; }
10671 if ${ac_cv_path_ZIC+:} false; then :
10672 $as_echo_n "(cached
) " >&6
10676 ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
10679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10680 for as_dir in $PATH
10683 test -z "$as_dir" && as_dir=.
10684 for ac_exec_ext in '' $ac_executable_extensions; do
10685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10686 ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
10687 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10697 ZIC=$ac_cv_path_ZIC
10698 if test -n "$ZIC"; then
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ZIC" >&5
10700 $as_echo "$ZIC" >&6; }
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10703 $as_echo "no
" >&6; }
10707 test -n "$ZIC" && break
10711 # Report the value of ZIC in configure's output in all cases.
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ZIC
" >&5
10713 $as_echo_n "checking
for ZIC...
" >&6; }
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ZIC" >&5
10715 $as_echo "$ZIC" >&6; }
10718 if test -z "$ZIC"; then
10720 When cross-compiling
, either use the option
--with-system-tzdata to use
10721 existing time-zone data
, or
set the environment variable ZIC to a zic
10722 program to use during the build.
" "$LINENO" 5
10729 # For each platform, we need to know about any special compile and link
10730 # libraries, and whether the normal C function names are thread-safe.
10731 # See the comment at the top of src/port/thread.c for more information.
10732 # WIN32 doesn't need the pthread tests; it always uses threads
10734 # These tests are run before the library-tests, because linking with the
10735 # other libraries can pull in the pthread functions as a side-effect. We
10736 # want to use the -pthread or similar flags directly, and not rely on
10737 # the side-effects of linking with some other library.
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for a
sed that does not truncate output
" >&5
10740 $as_echo_n "checking
for a
sed that does not truncate output...
" >&6; }
10741 if ${ac_cv_path_SED+:} false; then :
10742 $as_echo_n "(cached
) " >&6
10744 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10745 for ac_i in 1 2 3 4 5 6 7; do
10746 ac_script="$ac_script$as_nl$ac_script"
10748 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10749 { ac_script=; unset ac_script;}
10750 if test -z "$SED"; then
10751 ac_path_SED_found=false
10752 # Loop through the user's path and test for each of PROGNAME-LIST
10753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10754 for as_dir in $PATH
10757 test -z "$as_dir" && as_dir=.
10758 for ac_prog in sed gsed; do
10759 for ac_exec_ext in '' $ac_executable_extensions; do
10760 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10761 as_fn_executable_p "$ac_path_SED" || continue
10762 # Check for GNU ac_path_SED and select it if it is found.
10763 # Check for GNU $ac_path_SED
10764 case `"$ac_path_SED" --version 2>&1` in
10766 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10769 $as_echo_n 0123456789 >"conftest.
in"
10772 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
10773 mv "conftest.tmp
" "conftest.
in"
10774 cp "conftest.
in" "conftest.
nl"
10775 $as_echo '' >> "conftest.
nl"
10776 "$ac_path_SED" -f conftest.sed < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
10777 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
10778 as_fn_arith $ac_count + 1 && ac_count=$as_val
10779 if test $ac_count -gt ${ac_path_SED_max-0}; then
10780 # Best one so far, save it but keep looking for a better one
10781 ac_cv_path_SED="$ac_path_SED"
10782 ac_path_SED_max=$ac_count
10784 # 10*(2^10) chars as input seems more than enough
10785 test $ac_count -gt 10 && break
10787 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10790 $ac_path_SED_found && break 3
10795 if test -z "$ac_cv_path_SED"; then
10796 as_fn_error $? "no acceptable
sed could be found
in \
$PATH" "$LINENO" 5
10799 ac_cv_path_SED=$SED
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_SED" >&5
10804 $as_echo "$ac_cv_path_SED" >&6; }
10805 SED="$ac_cv_path_SED"
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
10810 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
10811 if ${ac_cv_path_GREP+:} false; then :
10812 $as_echo_n "(cached
) " >&6
10814 if test -z "$GREP"; then
10815 ac_path_GREP_found=false
10816 # Loop through the user's path and test for each of PROGNAME-LIST
10817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10818 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10821 test -z "$as_dir" && as_dir=.
10822 for ac_prog in grep ggrep; do
10823 for ac_exec_ext in '' $ac_executable_extensions; do
10824 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
10825 as_fn_executable_p "$ac_path_GREP" || continue
10826 # Check for GNU ac_path_GREP and select it if it is found.
10827 # Check for GNU $ac_path_GREP
10828 case `"$ac_path_GREP" --version 2>&1` in
10830 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
10833 $as_echo_n 0123456789 >"conftest.
in"
10836 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
10837 mv "conftest.tmp
" "conftest.
in"
10838 cp "conftest.
in" "conftest.
nl"
10839 $as_echo 'GREP' >> "conftest.
nl"
10840 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
10841 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
10842 as_fn_arith $ac_count + 1 && ac_count=$as_val
10843 if test $ac_count -gt ${ac_path_GREP_max-0}; then
10844 # Best one so far, save it but keep looking for a better one
10845 ac_cv_path_GREP="$ac_path_GREP"
10846 ac_path_GREP_max=$ac_count
10848 # 10*(2^10) chars as input seems more than enough
10849 test $ac_count -gt 10 && break
10851 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10854 $ac_path_GREP_found && break 3
10859 if test -z "$ac_cv_path_GREP"; then
10860 as_fn_error $? "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
10863 ac_cv_path_GREP=$GREP
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
10868 $as_echo "$ac_cv_path_GREP" >&6; }
10869 GREP="$ac_cv_path_GREP"
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
10873 $as_echo_n "checking
for egrep...
" >&6; }
10874 if ${ac_cv_path_EGREP+:} false; then :
10875 $as_echo_n "(cached
) " >&6
10877 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
10878 then ac_cv_path_EGREP="$GREP -E"
10880 if test -z "$EGREP"; then
10881 ac_path_EGREP_found=false
10882 # Loop through the user's path and test for each of PROGNAME-LIST
10883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10884 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10887 test -z "$as_dir" && as_dir=.
10888 for ac_prog in egrep; do
10889 for ac_exec_ext in '' $ac_executable_extensions; do
10890 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
10891 as_fn_executable_p "$ac_path_EGREP" || continue
10892 # Check for GNU ac_path_EGREP and select it if it is found.
10893 # Check for GNU $ac_path_EGREP
10894 case `"$ac_path_EGREP" --version 2>&1` in
10896 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
10899 $as_echo_n 0123456789 >"conftest.
in"
10902 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
10903 mv "conftest.tmp
" "conftest.
in"
10904 cp "conftest.
in" "conftest.
nl"
10905 $as_echo 'EGREP' >> "conftest.
nl"
10906 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
10907 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
10908 as_fn_arith $ac_count + 1 && ac_count=$as_val
10909 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
10910 # Best one so far, save it but keep looking for a better one
10911 ac_cv_path_EGREP="$ac_path_EGREP"
10912 ac_path_EGREP_max=$ac_count
10914 # 10*(2^10) chars as input seems more than enough
10915 test $ac_count -gt 10 && break
10917 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10920 $ac_path_EGREP_found && break 3
10925 if test -z "$ac_cv_path_EGREP"; then
10926 as_fn_error $? "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
10929 ac_cv_path_EGREP=$EGREP
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
10935 $as_echo "$ac_cv_path_EGREP" >&6; }
10936 EGREP="$ac_cv_path_EGREP"
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
10940 $as_echo_n "checking
for ANSI C header files...
" >&6; }
10941 if ${ac_cv_header_stdc+:} false; then :
10942 $as_echo_n "(cached
) " >&6
10944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10945 /* end confdefs.h. */
10946 #include <stdlib.h>
10947 #include <stdarg.h>
10948 #include <string.h>
10959 if ac_fn_c_try_compile "$LINENO"; then :
10960 ac_cv_header_stdc=yes
10962 ac_cv_header_stdc=no
10964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10966 if test $ac_cv_header_stdc = yes; then
10967 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10969 /* end confdefs.h. */
10970 #include <string.h>
10973 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
10974 $EGREP "memchr
" >/dev/null 2>&1; then :
10977 ac_cv_header_stdc=no
10983 if test $ac_cv_header_stdc = yes; then
10984 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10986 /* end confdefs.h. */
10987 #include <stdlib.h>
10990 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
10991 $EGREP "free
" >/dev/null 2>&1; then :
10994 ac_cv_header_stdc=no
11000 if test $ac_cv_header_stdc = yes; then
11001 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11002 if test "$cross_compiling" = yes; then :
11005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11006 /* end confdefs.h. */
11008 #include <stdlib.h>
11009 #if ((' ' & 0x0FF) == 0x020)
11010 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11011 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11013 # define ISLOWER(c) \
11014 (('a' <= (c) && (c) <= 'i') \
11015 || ('j' <= (c) && (c) <= 'r') \
11016 || ('s' <= (c) && (c) <= 'z'))
11017 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11020 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11025 for (i = 0; i < 256; i++)
11026 if (XOR (islower (i), ISLOWER (i))
11027 || toupper (i) != TOUPPER (i))
11032 if ac_fn_c_try_run "$LINENO"; then :
11035 ac_cv_header_stdc=no
11037 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11038 conftest.$ac_objext conftest.beam conftest.$ac_ext
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
11044 $as_echo "$ac_cv_header_stdc" >&6; }
11045 if test $ac_cv_header_stdc = yes; then
11047 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11051 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
11052 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
11053 inttypes.h stdint.h unistd.h
11055 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11056 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
11058 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
11059 cat >>confdefs.h
<<_ACEOF
11060 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11068 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then :
11075 ac_cpp
='$CPP $CPPFLAGS'
11076 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11077 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11078 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11082 # We used to check for pthread.h first, but this fails if pthread.h
11083 # requires special compiler flags (e.g. on Tru64 or Sequent).
11084 # It gets checked for in the link test anyway.
11086 # First of all, check if the user has set any of the PTHREAD_LIBS,
11087 # etcetera environment variables, and if threads linking works using
11089 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
11090 ax_pthread_save_CC
="$CC"
11091 ax_pthread_save_CFLAGS
="$CFLAGS"
11092 ax_pthread_save_LIBS
="$LIBS"
11093 if test "x$PTHREAD_CC" != "x"; then :
11096 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
11097 LIBS
="$PTHREAD_LIBS $LIBS"
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
11099 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
11100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11101 /* end confdefs.h. */
11103 /* Override any GCC internal prototype to avoid an error.
11104 Use char because int might match the return type of a GCC
11105 builtin and then its argument prototype would still apply. */
11109 char pthread_join ();
11113 return pthread_join ();
11118 if ac_fn_c_try_link
"$LINENO"; then :
11121 rm -f core conftest.err conftest.
$ac_objext \
11122 conftest
$ac_exeext conftest.
$ac_ext
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
11124 $as_echo "$ax_pthread_ok" >&6; }
11125 if test "x$ax_pthread_ok" = "xno"; then
11129 CC
="$ax_pthread_save_CC"
11130 CFLAGS
="$ax_pthread_save_CFLAGS"
11131 LIBS
="$ax_pthread_save_LIBS"
11134 # We must check for the threads library under a number of different
11135 # names; the ordering is very important because some systems
11136 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
11137 # libraries is broken (non-POSIX).
11139 # Create a list of thread flags to try. Items starting with a "-" are
11140 # C compiler flags, and other items are library names, except for "none"
11141 # which indicates that we try without any flags at all, and "pthread-config"
11142 # which is a program returning the flags for the Pth emulation library.
11144 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
11146 # The ordering *is* (sometimes) important. Some notes on the
11147 # individual items follow:
11149 # pthreads: AIX (must check this before -lpthread)
11150 # none: in case threads are in libc; should be tried before -Kthread and
11151 # other compiler flags to prevent continual compiler warnings
11152 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
11153 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
11154 # (Note: HP C rejects this with "bad form for `-t' option")
11155 # -pthreads: Solaris/gcc (Note: HP C also rejects)
11156 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
11157 # doesn't hurt to check since this sometimes defines pthreads and
11158 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
11159 # is present but should not be used directly; and before -mthreads,
11160 # because the compiler interprets this as "-mt" + "-hreads")
11161 # -mthreads: Mingw32/gcc, Lynx/gcc
11162 # pthread: Linux, etcetera
11163 # --thread-safe: KAI C++
11164 # pthread-config: use pthread-config program (for GNU Pth library)
11170 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
11171 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
11173 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
11178 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
11179 # multi-threading and also sets -lpthread."
11181 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
11186 # IBM z/OS requires a feature-test macro to be defined in order to
11187 # enable POSIX threads at all, so give the user a hint if this is
11188 # not set. (We don't define these ourselves, as they can affect
11189 # other portions of the system API in unpredictable ways.)
11191 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11192 /* end confdefs.h. */
11194 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
11195 AX_PTHREAD_ZOS_MISSING
11199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11200 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
11202 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
11210 # On Solaris (at least, for some versions), libc contains stubbed
11211 # (non-functional) versions of the pthreads routines, so link-based
11212 # tests will erroneously succeed. (N.B.: The stubs are missing
11213 # pthread_cleanup_push, or rather a function called by this macro,
11214 # so we could check for that, but who knows whether they'll stub
11215 # that too in a future libc.) So we'll check first for the
11216 # standard Solaris way of linking pthreads (-mt -lpthread).
11218 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
11222 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
11224 if test "x$GCC" = "xyes"; then :
11225 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
11228 # The presence of a feature test macro requesting re-entrant function
11229 # definitions is, on some systems, a strong hint that pthreads support is
11230 # correctly enabled
11233 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
11234 ax_pthread_check_macro
="_REENTRANT"
11238 ax_pthread_check_macro
="_THREAD_SAFE"
11242 ax_pthread_check_macro
="--"
11245 if test "x$ax_pthread_check_macro" = "x--"; then :
11246 ax_pthread_check_cond
=0
11248 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
11251 # Are we compiling with Clang?
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
11254 $as_echo_n "checking whether $CC is Clang... " >&6; }
11255 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
11256 $as_echo_n "(cached) " >&6
11258 ax_cv_PTHREAD_CLANG
=no
11259 # Note that Autoconf sets GCC=yes for Clang as well as GCC
11260 if test "x$GCC" = "xyes"; then
11261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11262 /* end confdefs.h. */
11263 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
11264 # if defined(__clang__) && defined(__llvm__)
11265 AX_PTHREAD_CC_IS_CLANG
11269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11270 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
11271 ax_cv_PTHREAD_CLANG
=yes
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
11279 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
11280 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
11282 ax_pthread_clang_warning
=no
11284 # Clang needs special handling, because older versions handle the -pthread
11285 # option in a rather... idiosyncratic way
11287 if test "x$ax_pthread_clang" = "xyes"; then
11289 # Clang takes -pthread; it has never supported any other flag
11291 # (Note 1: This will need to be revisited if a system that Clang
11292 # supports has POSIX threads in a separate library. This tends not
11293 # to be the way of modern systems, but it's conceivable.)
11295 # (Note 2: On some systems, notably Darwin, -pthread is not needed
11296 # to get POSIX threads support; the API is always present and
11297 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
11298 # -pthread does define _REENTRANT, and while the Darwin headers
11299 # ignore this macro, third-party headers might not.)
11301 PTHREAD_CFLAGS
="-pthread"
11306 # However, older versions of Clang make a point of warning the user
11307 # that, in an invocation where only linking and no compilation is
11308 # taking place, the -pthread option has no effect ("argument unused
11309 # during compilation"). They expect -pthread to be passed in only
11310 # when source code is being compiled.
11312 # Problem is, this is at odds with the way Automake and most other
11313 # C build frameworks function, which is that the same flags used in
11314 # compilation (CFLAGS) are also used in linking. Many systems
11315 # supported by AX_PTHREAD require exactly this for POSIX threads
11316 # support, and in fact it is often not straightforward to specify a
11317 # flag that is used only in the compilation phase and not in
11318 # linking. Such a scenario is extremely rare in practice.
11320 # Even though use of the -pthread flag in linking would only print
11321 # a warning, this can be a nuisance for well-run software projects
11322 # that build with -Werror. So if the active version of Clang has
11323 # this misfeature, we search for an option to squash it.
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
11326 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
11327 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
11328 $as_echo_n "(cached) " >&6
11330 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
11331 # Create an alternate version of $ac_link that compiles and
11332 # links in two steps (.c -> .o, .o -> exe) instead of one
11333 # (.c -> exe), because the warning occurs only in the second
11335 ax_pthread_save_ac_link
="$ac_link"
11336 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
11337 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
11338 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
11339 ax_pthread_save_CFLAGS
="$CFLAGS"
11340 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
11341 if test "x$ax_pthread_try" = "xunknown"; then :
11344 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
11345 ac_link
="$ax_pthread_save_ac_link"
11346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11347 /* end confdefs.h. */
11348 int main(void){return 0;}
11350 if ac_fn_c_try_link
"$LINENO"; then :
11351 ac_link
="$ax_pthread_2step_ac_link"
11352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11353 /* end confdefs.h. */
11354 int main(void){return 0;}
11356 if ac_fn_c_try_link
"$LINENO"; then :
11359 rm -f core conftest.err conftest.
$ac_objext \
11360 conftest
$ac_exeext conftest.
$ac_ext
11363 rm -f core conftest.err conftest.
$ac_objext \
11364 conftest
$ac_exeext conftest.
$ac_ext
11366 ac_link
="$ax_pthread_save_ac_link"
11367 CFLAGS
="$ax_pthread_save_CFLAGS"
11368 if test "x$ax_pthread_try" = "x"; then :
11371 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
11375 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
11377 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
11379 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
11382 fi # $ax_pthread_clang = yes
11384 if test "x$ax_pthread_ok" = "xno"; then
11385 for ax_pthread_try_flag
in $ax_pthread_flags; do
11387 case $ax_pthread_try_flag in
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
11390 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
11395 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
11396 PTHREAD_CFLAGS
="-mt"
11397 PTHREAD_LIBS
="-lpthread"
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
11402 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
11403 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
11407 # Extract the first word of "pthread-config", so it can be a program name with args.
11408 set dummy pthread-config
; ac_word
=$2
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11410 $as_echo_n "checking for $ac_word... " >&6; }
11411 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
11412 $as_echo_n "(cached) " >&6
11414 if test -n "$ax_pthread_config"; then
11415 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
11417 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11418 for as_dir
in $PATH
11421 test -z "$as_dir" && as_dir
=.
11422 for ac_exec_ext
in '' $ac_executable_extensions; do
11423 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11424 ac_cv_prog_ax_pthread_config
="yes"
11425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11432 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
11435 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
11436 if test -n "$ax_pthread_config"; then
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
11438 $as_echo "$ax_pthread_config" >&6; }
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11441 $as_echo "no" >&6; }
11445 if test "x$ax_pthread_config" = "xno"; then :
11448 PTHREAD_CFLAGS
="`pthread-config --cflags`"
11449 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
11454 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
11455 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
11459 ax_pthread_save_CFLAGS
="$CFLAGS"
11460 ax_pthread_save_LIBS
="$LIBS"
11461 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
11462 LIBS
="$PTHREAD_LIBS $LIBS"
11464 # Check for various functions. We must include pthread.h,
11465 # since some functions may be macros. (On the Sequent, we
11466 # need a special flag -Kthread to make this header compile.)
11467 # We check for pthread_join because it is in -lpthread on IRIX
11468 # while pthread_create is in libc. We check for pthread_attr_init
11469 # due to DEC craziness with -lpthreads. We check for
11470 # pthread_cleanup_push because it is one of the few pthread
11471 # functions on Solaris that doesn't have a non-functional libc stub.
11472 # We try pthread_create on general principles.
11474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11475 /* end confdefs.h. */
11476 #include <pthread.h>
11477 # if $ax_pthread_check_cond
11478 # error "$ax_pthread_check_macro must be defined"
11480 static void routine(void *a) { a = 0; }
11481 static void *start_routine(void *a) { return a; }
11485 pthread_t th; pthread_attr_t attr;
11486 pthread_create(&th, 0, start_routine, 0);
11487 pthread_join(th, 0);
11488 pthread_attr_init(&attr);
11489 pthread_cleanup_push(routine, 0);
11490 pthread_cleanup_pop(0) /* ; */
11495 if ac_fn_c_try_link
"$LINENO"; then :
11498 rm -f core conftest.err conftest.
$ac_objext \
11499 conftest
$ac_exeext conftest.
$ac_ext
11501 CFLAGS
="$ax_pthread_save_CFLAGS"
11502 LIBS
="$ax_pthread_save_LIBS"
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
11505 $as_echo "$ax_pthread_ok" >&6; }
11506 if test "x$ax_pthread_ok" = "xyes"; then :
11515 # Various other checks:
11516 if test "x$ax_pthread_ok" = "xyes"; then
11517 ax_pthread_save_CFLAGS
="$CFLAGS"
11518 ax_pthread_save_LIBS
="$LIBS"
11519 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
11520 LIBS
="$PTHREAD_LIBS $LIBS"
11522 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
11524 $as_echo_n "checking for joinable pthread attribute... " >&6; }
11525 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
11526 $as_echo_n "(cached) " >&6
11528 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
11529 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
11530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11531 /* end confdefs.h. */
11532 #include <pthread.h>
11536 int attr = $ax_pthread_attr; return attr /* ; */
11541 if ac_fn_c_try_link
"$LINENO"; then :
11542 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
11544 rm -f core conftest.err conftest.
$ac_objext \
11545 conftest
$ac_exeext conftest.
$ac_ext
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
11550 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
11551 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
11552 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
11553 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
11555 cat >>confdefs.h
<<_ACEOF
11556 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
11559 ax_pthread_joinable_attr_defined
=yes
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
11564 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
11565 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
11566 $as_echo_n "(cached) " >&6
11568 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
11571 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
11577 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
11578 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
11579 test "x$ax_pthread_special_flags_added" != "xyes"; then :
11580 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
11581 ax_pthread_special_flags_added
=yes
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
11585 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
11586 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
11587 $as_echo_n "(cached) " >&6
11589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11590 /* end confdefs.h. */
11591 #include <pthread.h>
11595 int i = PTHREAD_PRIO_INHERIT;
11600 if ac_fn_c_try_link
"$LINENO"; then :
11601 ax_cv_PTHREAD_PRIO_INHERIT
=yes
11603 ax_cv_PTHREAD_PRIO_INHERIT
=no
11605 rm -f core conftest.err conftest.
$ac_objext \
11606 conftest
$ac_exeext conftest.
$ac_ext
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
11610 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
11611 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
11612 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
11614 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
11616 ax_pthread_prio_inherit_defined
=yes
11620 CFLAGS
="$ax_pthread_save_CFLAGS"
11621 LIBS
="$ax_pthread_save_LIBS"
11623 # More AIX lossage: compile with *_r variant
11624 if test "x$GCC" != "xyes"; then
11628 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
11629 #handle absolute path differently from PATH based program lookup
11632 if as_fn_executable_p
${CC}_r
; then :
11633 PTHREAD_CC
="${CC}_r"
11636 for ac_prog
in ${CC}_r
11638 # Extract the first word of "$ac_prog", so it can be a program name with args.
11639 set dummy
$ac_prog; ac_word
=$2
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11641 $as_echo_n "checking for $ac_word... " >&6; }
11642 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
11643 $as_echo_n "(cached) " >&6
11645 if test -n "$PTHREAD_CC"; then
11646 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
11648 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11649 for as_dir
in $PATH
11652 test -z "$as_dir" && as_dir
=.
11653 for ac_exec_ext
in '' $ac_executable_extensions; do
11654 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11655 ac_cv_prog_PTHREAD_CC
="$ac_prog"
11656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11665 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
11666 if test -n "$PTHREAD_CC"; then
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
11668 $as_echo "$PTHREAD_CC" >&6; }
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11671 $as_echo "no" >&6; }
11675 test -n "$PTHREAD_CC" && break
11677 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
11688 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
11694 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
11695 if test "x$ax_pthread_ok" = "xyes"; then
11697 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
11705 ac_cpp
='$CPP $CPPFLAGS'
11706 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11707 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11708 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11712 # Some platforms use these, so just define them. They can't hurt if they
11713 # are not supported.
11714 PTHREAD_CFLAGS
="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE"
11716 # Check for *_r functions
11719 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
11720 LIBS
="$LIBS $PTHREAD_LIBS"
11722 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
11723 if test "x$ac_cv_header_pthread_h" = xyes
; then :
11727 pthread.h not found; use --disable-thread-safety to disable thread safety" "$LINENO" 5
11732 for ac_func
in strerror_r
11734 ac_fn_c_check_func
"$LINENO" "strerror_r" "ac_cv_func_strerror_r"
11735 if test "x$ac_cv_func_strerror_r" = xyes
; then :
11736 cat >>confdefs.h
<<_ACEOF
11737 #define HAVE_STRERROR_R 1
11744 # Do test here with the proper thread flags
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns int" >&5
11746 $as_echo_n "checking whether strerror_r returns int... " >&6; }
11747 if ${pgac_cv_func_strerror_r_int+:} false
; then :
11748 $as_echo_n "(cached) " >&6
11750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11751 /* end confdefs.h. */
11752 #include <string.h>
11757 switch (strerror_r(1, buf, sizeof(buf)))
11758 { case 0: break; default: break; }
11764 if ac_fn_c_try_compile
"$LINENO"; then :
11765 pgac_cv_func_strerror_r_int
=yes
11767 pgac_cv_func_strerror_r_int
=no
11769 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_strerror_r_int" >&5
11772 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
11773 if test x
"$pgac_cv_func_strerror_r_int" = xyes
; then
11775 $as_echo "#define STRERROR_R_INT 1" >>confdefs.h
11786 # do not use values from template file
11799 ## Most libraries are included only if they demonstrably provide a function
11800 ## we need, but libm is an exception: always include it, because there are
11801 ## too many compilers that play cute optimization games that will break
11802 ## probes for standard functions such as pow().
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
11806 $as_echo_n "checking for main in -lm... " >&6; }
11807 if ${ac_cv_lib_m_main+:} false
; then :
11808 $as_echo_n "(cached) " >&6
11810 ac_check_lib_save_LIBS
=$LIBS
11812 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11813 /* end confdefs.h. */
11824 if ac_fn_c_try_link
"$LINENO"; then :
11825 ac_cv_lib_m_main
=yes
11827 ac_cv_lib_m_main
=no
11829 rm -f core conftest.err conftest.
$ac_objext \
11830 conftest
$ac_exeext conftest.
$ac_ext
11831 LIBS
=$ac_check_lib_save_LIBS
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
11834 $as_echo "$ac_cv_lib_m_main" >&6; }
11835 if test "x$ac_cv_lib_m_main" = xyes
; then :
11836 cat >>confdefs.h
<<_ACEOF
11837 #define HAVE_LIBM 1
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setproctitle" >&5
11845 $as_echo_n "checking for library containing setproctitle... " >&6; }
11846 if ${ac_cv_search_setproctitle+:} false
; then :
11847 $as_echo_n "(cached) " >&6
11849 ac_func_search_save_LIBS
=$LIBS
11850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11851 /* end confdefs.h. */
11853 /* Override any GCC internal prototype to avoid an error.
11854 Use char because int might match the return type of a GCC
11855 builtin and then its argument prototype would still apply. */
11859 char setproctitle ();
11863 return setproctitle ();
11868 for ac_lib
in '' util
; do
11869 if test -z "$ac_lib"; then
11870 ac_res
="none required"
11873 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11875 if ac_fn_c_try_link
"$LINENO"; then :
11876 ac_cv_search_setproctitle
=$ac_res
11878 rm -f core conftest.err conftest.
$ac_objext \
11880 if ${ac_cv_search_setproctitle+:} false
; then :
11884 if ${ac_cv_search_setproctitle+:} false
; then :
11887 ac_cv_search_setproctitle
=no
11889 rm conftest.
$ac_ext
11890 LIBS
=$ac_func_search_save_LIBS
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setproctitle" >&5
11893 $as_echo "$ac_cv_search_setproctitle" >&6; }
11894 ac_res
=$ac_cv_search_setproctitle
11895 if test "$ac_res" != no
; then :
11896 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11900 # gcc/clang's sanitizer helper library provides dlopen but not dlsym, thus
11901 # when enabling asan the dlopen check doesn't notice that -ldl is actually
11902 # required. Just checking for dlsym() ought to suffice.
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
11904 $as_echo_n "checking for library containing dlsym... " >&6; }
11905 if ${ac_cv_search_dlsym+:} false
; then :
11906 $as_echo_n "(cached) " >&6
11908 ac_func_search_save_LIBS
=$LIBS
11909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11910 /* end confdefs.h. */
11912 /* Override any GCC internal prototype to avoid an error.
11913 Use char because int might match the return type of a GCC
11914 builtin and then its argument prototype would still apply. */
11927 for ac_lib
in '' dl
; do
11928 if test -z "$ac_lib"; then
11929 ac_res
="none required"
11932 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11934 if ac_fn_c_try_link
"$LINENO"; then :
11935 ac_cv_search_dlsym
=$ac_res
11937 rm -f core conftest.err conftest.
$ac_objext \
11939 if ${ac_cv_search_dlsym+:} false
; then :
11943 if ${ac_cv_search_dlsym+:} false
; then :
11946 ac_cv_search_dlsym
=no
11948 rm conftest.
$ac_ext
11949 LIBS
=$ac_func_search_save_LIBS
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
11952 $as_echo "$ac_cv_search_dlsym" >&6; }
11953 ac_res
=$ac_cv_search_dlsym
11954 if test "$ac_res" != no
; then :
11955 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
11960 $as_echo_n "checking for library containing socket... " >&6; }
11961 if ${ac_cv_search_socket+:} false
; then :
11962 $as_echo_n "(cached) " >&6
11964 ac_func_search_save_LIBS
=$LIBS
11965 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11966 /* end confdefs.h. */
11968 /* Override any GCC internal prototype to avoid an error.
11969 Use char because int might match the return type of a GCC
11970 builtin and then its argument prototype would still apply. */
11983 for ac_lib
in '' socket ws2_32
; do
11984 if test -z "$ac_lib"; then
11985 ac_res
="none required"
11988 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11990 if ac_fn_c_try_link
"$LINENO"; then :
11991 ac_cv_search_socket
=$ac_res
11993 rm -f core conftest.err conftest.
$ac_objext \
11995 if ${ac_cv_search_socket+:} false
; then :
11999 if ${ac_cv_search_socket+:} false
; then :
12002 ac_cv_search_socket
=no
12004 rm conftest.
$ac_ext
12005 LIBS
=$ac_func_search_save_LIBS
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12008 $as_echo "$ac_cv_search_socket" >&6; }
12009 ac_res
=$ac_cv_search_socket
12010 if test "$ac_res" != no
; then :
12011 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getopt_long" >&5
12016 $as_echo_n "checking for library containing getopt_long... " >&6; }
12017 if ${ac_cv_search_getopt_long+:} false
; then :
12018 $as_echo_n "(cached) " >&6
12020 ac_func_search_save_LIBS
=$LIBS
12021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12022 /* end confdefs.h. */
12024 /* Override any GCC internal prototype to avoid an error.
12025 Use char because int might match the return type of a GCC
12026 builtin and then its argument prototype would still apply. */
12030 char getopt_long ();
12034 return getopt_long ();
12039 for ac_lib
in '' getopt gnugetopt
; do
12040 if test -z "$ac_lib"; then
12041 ac_res
="none required"
12044 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12046 if ac_fn_c_try_link
"$LINENO"; then :
12047 ac_cv_search_getopt_long
=$ac_res
12049 rm -f core conftest.err conftest.
$ac_objext \
12051 if ${ac_cv_search_getopt_long+:} false
; then :
12055 if ${ac_cv_search_getopt_long+:} false
; then :
12058 ac_cv_search_getopt_long
=no
12060 rm conftest.
$ac_ext
12061 LIBS
=$ac_func_search_save_LIBS
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getopt_long" >&5
12064 $as_echo "$ac_cv_search_getopt_long" >&6; }
12065 ac_res
=$ac_cv_search_getopt_long
12066 if test "$ac_res" != no
; then :
12067 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
12072 $as_echo_n "checking for library containing shm_open... " >&6; }
12073 if ${ac_cv_search_shm_open+:} false
; then :
12074 $as_echo_n "(cached) " >&6
12076 ac_func_search_save_LIBS
=$LIBS
12077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12078 /* end confdefs.h. */
12080 /* Override any GCC internal prototype to avoid an error.
12081 Use char because int might match the return type of a GCC
12082 builtin and then its argument prototype would still apply. */
12090 return shm_open ();
12095 for ac_lib
in '' rt
; do
12096 if test -z "$ac_lib"; then
12097 ac_res
="none required"
12100 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12102 if ac_fn_c_try_link
"$LINENO"; then :
12103 ac_cv_search_shm_open
=$ac_res
12105 rm -f core conftest.err conftest.
$ac_objext \
12107 if ${ac_cv_search_shm_open+:} false
; then :
12111 if ${ac_cv_search_shm_open+:} false
; then :
12114 ac_cv_search_shm_open
=no
12116 rm conftest.
$ac_ext
12117 LIBS
=$ac_func_search_save_LIBS
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
12120 $as_echo "$ac_cv_search_shm_open" >&6; }
12121 ac_res
=$ac_cv_search_shm_open
12122 if test "$ac_res" != no
; then :
12123 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_unlink" >&5
12128 $as_echo_n "checking for library containing shm_unlink... " >&6; }
12129 if ${ac_cv_search_shm_unlink+:} false
; then :
12130 $as_echo_n "(cached) " >&6
12132 ac_func_search_save_LIBS
=$LIBS
12133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12134 /* end confdefs.h. */
12136 /* Override any GCC internal prototype to avoid an error.
12137 Use char because int might match the return type of a GCC
12138 builtin and then its argument prototype would still apply. */
12142 char shm_unlink ();
12146 return shm_unlink ();
12151 for ac_lib
in '' rt
; do
12152 if test -z "$ac_lib"; then
12153 ac_res
="none required"
12156 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12158 if ac_fn_c_try_link
"$LINENO"; then :
12159 ac_cv_search_shm_unlink
=$ac_res
12161 rm -f core conftest.err conftest.
$ac_objext \
12163 if ${ac_cv_search_shm_unlink+:} false
; then :
12167 if ${ac_cv_search_shm_unlink+:} false
; then :
12170 ac_cv_search_shm_unlink
=no
12172 rm conftest.
$ac_ext
12173 LIBS
=$ac_func_search_save_LIBS
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_unlink" >&5
12176 $as_echo "$ac_cv_search_shm_unlink" >&6; }
12177 ac_res
=$ac_cv_search_shm_unlink
12178 if test "$ac_res" != no
; then :
12179 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
12184 $as_echo_n "checking for library containing clock_gettime... " >&6; }
12185 if ${ac_cv_search_clock_gettime+:} false
; then :
12186 $as_echo_n "(cached) " >&6
12188 ac_func_search_save_LIBS
=$LIBS
12189 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12190 /* end confdefs.h. */
12192 /* Override any GCC internal prototype to avoid an error.
12193 Use char because int might match the return type of a GCC
12194 builtin and then its argument prototype would still apply. */
12198 char clock_gettime ();
12202 return clock_gettime ();
12207 for ac_lib
in '' rt posix4
; do
12208 if test -z "$ac_lib"; then
12209 ac_res
="none required"
12212 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12214 if ac_fn_c_try_link
"$LINENO"; then :
12215 ac_cv_search_clock_gettime
=$ac_res
12217 rm -f core conftest.err conftest.
$ac_objext \
12219 if ${ac_cv_search_clock_gettime+:} false
; then :
12223 if ${ac_cv_search_clock_gettime+:} false
; then :
12226 ac_cv_search_clock_gettime
=no
12228 rm conftest.
$ac_ext
12229 LIBS
=$ac_func_search_save_LIBS
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
12232 $as_echo "$ac_cv_search_clock_gettime" >&6; }
12233 ac_res
=$ac_cv_search_clock_gettime
12234 if test "$ac_res" != no
; then :
12235 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
12241 $as_echo_n "checking for library containing fdatasync... " >&6; }
12242 if ${ac_cv_search_fdatasync+:} false
; then :
12243 $as_echo_n "(cached) " >&6
12245 ac_func_search_save_LIBS
=$LIBS
12246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12247 /* end confdefs.h. */
12249 /* Override any GCC internal prototype to avoid an error.
12250 Use char because int might match the return type of a GCC
12251 builtin and then its argument prototype would still apply. */
12259 return fdatasync ();
12264 for ac_lib
in '' rt posix4
; do
12265 if test -z "$ac_lib"; then
12266 ac_res
="none required"
12269 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12271 if ac_fn_c_try_link
"$LINENO"; then :
12272 ac_cv_search_fdatasync
=$ac_res
12274 rm -f core conftest.err conftest.
$ac_objext \
12276 if ${ac_cv_search_fdatasync+:} false
; then :
12280 if ${ac_cv_search_fdatasync+:} false
; then :
12283 ac_cv_search_fdatasync
=no
12285 rm conftest.
$ac_ext
12286 LIBS
=$ac_func_search_save_LIBS
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
12289 $as_echo "$ac_cv_search_fdatasync" >&6; }
12290 ac_res
=$ac_cv_search_fdatasync
12291 if test "$ac_res" != no
; then :
12292 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shmget" >&5
12298 $as_echo_n "checking for library containing shmget... " >&6; }
12299 if ${ac_cv_search_shmget+:} false
; then :
12300 $as_echo_n "(cached) " >&6
12302 ac_func_search_save_LIBS
=$LIBS
12303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12304 /* end confdefs.h. */
12306 /* Override any GCC internal prototype to avoid an error.
12307 Use char because int might match the return type of a GCC
12308 builtin and then its argument prototype would still apply. */
12321 for ac_lib
in '' cygipc
; do
12322 if test -z "$ac_lib"; then
12323 ac_res
="none required"
12326 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12328 if ac_fn_c_try_link
"$LINENO"; then :
12329 ac_cv_search_shmget
=$ac_res
12331 rm -f core conftest.err conftest.
$ac_objext \
12333 if ${ac_cv_search_shmget+:} false
; then :
12337 if ${ac_cv_search_shmget+:} false
; then :
12340 ac_cv_search_shmget
=no
12342 rm conftest.
$ac_ext
12343 LIBS
=$ac_func_search_save_LIBS
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shmget" >&5
12346 $as_echo "$ac_cv_search_shmget" >&6; }
12347 ac_res
=$ac_cv_search_shmget
12348 if test "$ac_res" != no
; then :
12349 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols" >&5
12355 $as_echo_n "checking for library containing backtrace_symbols... " >&6; }
12356 if ${ac_cv_search_backtrace_symbols+:} false
; then :
12357 $as_echo_n "(cached) " >&6
12359 ac_func_search_save_LIBS
=$LIBS
12360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12361 /* end confdefs.h. */
12363 /* Override any GCC internal prototype to avoid an error.
12364 Use char because int might match the return type of a GCC
12365 builtin and then its argument prototype would still apply. */
12369 char backtrace_symbols ();
12373 return backtrace_symbols ();
12378 for ac_lib
in '' execinfo
; do
12379 if test -z "$ac_lib"; then
12380 ac_res
="none required"
12383 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12385 if ac_fn_c_try_link
"$LINENO"; then :
12386 ac_cv_search_backtrace_symbols
=$ac_res
12388 rm -f core conftest.err conftest.
$ac_objext \
12390 if ${ac_cv_search_backtrace_symbols+:} false
; then :
12394 if ${ac_cv_search_backtrace_symbols+:} false
; then :
12397 ac_cv_search_backtrace_symbols
=no
12399 rm conftest.
$ac_ext
12400 LIBS
=$ac_func_search_save_LIBS
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols" >&5
12403 $as_echo "$ac_cv_search_backtrace_symbols" >&6; }
12404 ac_res
=$ac_cv_search_backtrace_symbols
12405 if test "$ac_res" != no
; then :
12406 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12411 if test "$enable_thread_safety" = yes; then
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_barrier_wait" >&5
12413 $as_echo_n "checking for library containing pthread_barrier_wait... " >&6; }
12414 if ${ac_cv_search_pthread_barrier_wait+:} false
; then :
12415 $as_echo_n "(cached) " >&6
12417 ac_func_search_save_LIBS
=$LIBS
12418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12419 /* end confdefs.h. */
12421 /* Override any GCC internal prototype to avoid an error.
12422 Use char because int might match the return type of a GCC
12423 builtin and then its argument prototype would still apply. */
12427 char pthread_barrier_wait ();
12431 return pthread_barrier_wait ();
12436 for ac_lib
in '' pthread
; do
12437 if test -z "$ac_lib"; then
12438 ac_res
="none required"
12441 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12443 if ac_fn_c_try_link
"$LINENO"; then :
12444 ac_cv_search_pthread_barrier_wait
=$ac_res
12446 rm -f core conftest.err conftest.
$ac_objext \
12448 if ${ac_cv_search_pthread_barrier_wait+:} false
; then :
12452 if ${ac_cv_search_pthread_barrier_wait+:} false
; then :
12455 ac_cv_search_pthread_barrier_wait
=no
12457 rm conftest.
$ac_ext
12458 LIBS
=$ac_func_search_save_LIBS
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_barrier_wait" >&5
12461 $as_echo "$ac_cv_search_pthread_barrier_wait" >&6; }
12462 ac_res
=$ac_cv_search_pthread_barrier_wait
12463 if test "$ac_res" != no
; then :
12464 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12470 if test "$with_readline" = yes; then
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
12474 $as_echo_n "checking for library containing readline... " >&6; }
12475 if ${pgac_cv_check_readline+:} false
; then :
12476 $as_echo_n "(cached) " >&6
12478 pgac_cv_check_readline
=no
12479 pgac_save_LIBS
=$LIBS
12480 if test x
"$with_libedit_preferred" != x
"yes"
12481 then READLINE_ORDER
="-lreadline -ledit"
12482 else READLINE_ORDER
="-ledit -lreadline"
12484 for pgac_rllib
in $READLINE_ORDER ; do
12485 for pgac_lib
in "" " -ltermcap" " -lncurses" " -lcurses" ; do
12486 LIBS
="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
12487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12488 /* end confdefs.h. */
12490 /* Override any GCC internal prototype to avoid an error.
12491 Use char because int might match the return type of a GCC
12492 builtin and then its argument prototype would still apply. */
12500 return readline ();
12505 if ac_fn_c_try_link
"$LINENO"; then :
12507 # Older NetBSD and OpenBSD have a broken linker that does not
12508 # recognize dependent libraries; assume curses is needed if we didn't
12509 # find any dependency.
12511 netbsd
* | openbsd
*)
12512 if test x
"$pgac_lib" = x
"" ; then
12513 pgac_lib
=" -lcurses"
12517 pgac_cv_check_readline
="${pgac_rllib}${pgac_lib}"
12521 rm -f core conftest.err conftest.
$ac_objext \
12522 conftest
$ac_exeext conftest.
$ac_ext
12524 if test "$pgac_cv_check_readline" != no
; then
12528 LIBS
=$pgac_save_LIBS
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_check_readline" >&5
12532 $as_echo "$pgac_cv_check_readline" >&6; }
12533 if test "$pgac_cv_check_readline" != no
; then
12534 LIBS
="$pgac_cv_check_readline $LIBS"
12536 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
12541 if test x
"$pgac_cv_check_readline" = x
"no"; then
12542 as_fn_error $?
"readline library not found
12543 If you have readline already installed, see config.log for details on the
12544 failure. It is possible the compiler isn't looking in the proper directory.
12545 Use --without-readline to disable readline support." "$LINENO" 5
12549 if test "$with_zlib" = yes; then
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
12551 $as_echo_n "checking for inflate in -lz... " >&6; }
12552 if ${ac_cv_lib_z_inflate+:} false
; then :
12553 $as_echo_n "(cached) " >&6
12555 ac_check_lib_save_LIBS
=$LIBS
12557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12558 /* end confdefs.h. */
12560 /* Override any GCC internal prototype to avoid an error.
12561 Use char because int might match the return type of a GCC
12562 builtin and then its argument prototype would still apply. */
12575 if ac_fn_c_try_link
"$LINENO"; then :
12576 ac_cv_lib_z_inflate
=yes
12578 ac_cv_lib_z_inflate
=no
12580 rm -f core conftest.err conftest.
$ac_objext \
12581 conftest
$ac_exeext conftest.
$ac_ext
12582 LIBS
=$ac_check_lib_save_LIBS
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
12585 $as_echo "$ac_cv_lib_z_inflate" >&6; }
12586 if test "x$ac_cv_lib_z_inflate" = xyes
; then :
12587 cat >>confdefs.h
<<_ACEOF
12588 #define HAVE_LIBZ 1
12594 as_fn_error $?
"zlib library not found
12595 If you have zlib already installed, see config.log for details on the
12596 failure. It is possible the compiler isn't looking in the proper directory.
12597 Use --without-zlib to disable zlib support." "$LINENO" 5
12602 if test "$enable_spinlocks" = yes; then
12604 $as_echo "#define HAVE_SPINLOCKS 1" >>confdefs.h
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12608 *** Not using spinlocks will cause poor performance." >&5
12609 $as_echo "$as_me: WARNING:
12610 *** Not using spinlocks will cause poor performance." >&2;}
12613 if test "$enable_atomics" = yes; then
12615 $as_echo "#define HAVE_ATOMICS 1" >>confdefs.h
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12619 *** Not using atomic operations will cause poor performance." >&5
12620 $as_echo "$as_me: WARNING:
12621 *** Not using atomic operations will cause poor performance." >&2;}
12624 if test "$with_gssapi" = yes ; then
12625 if test "$PORTNAME" != "win32"; then
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_store_cred_into" >&5
12627 $as_echo_n "checking for library containing gss_store_cred_into... " >&6; }
12628 if ${ac_cv_search_gss_store_cred_into+:} false
; then :
12629 $as_echo_n "(cached) " >&6
12631 ac_func_search_save_LIBS
=$LIBS
12632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12633 /* end confdefs.h. */
12635 /* Override any GCC internal prototype to avoid an error.
12636 Use char because int might match the return type of a GCC
12637 builtin and then its argument prototype would still apply. */
12641 char gss_store_cred_into ();
12645 return gss_store_cred_into ();
12650 for ac_lib
in '' gssapi_krb5 gss
'gssapi -lkrb5 -lcrypto'; do
12651 if test -z "$ac_lib"; then
12652 ac_res
="none required"
12655 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12657 if ac_fn_c_try_link
"$LINENO"; then :
12658 ac_cv_search_gss_store_cred_into
=$ac_res
12660 rm -f core conftest.err conftest.
$ac_objext \
12662 if ${ac_cv_search_gss_store_cred_into+:} false
; then :
12666 if ${ac_cv_search_gss_store_cred_into+:} false
; then :
12669 ac_cv_search_gss_store_cred_into
=no
12671 rm conftest.
$ac_ext
12672 LIBS
=$ac_func_search_save_LIBS
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_store_cred_into" >&5
12675 $as_echo "$ac_cv_search_gss_store_cred_into" >&6; }
12676 ac_res
=$ac_cv_search_gss_store_cred_into
12677 if test "$ac_res" != no
; then :
12678 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12681 as_fn_error $?
"could not find function 'gss_store_cred_into' required for GSSAPI" "$LINENO" 5
12685 LIBS
="$LIBS -lgssapi32"
12692 # There is currently only one supported SSL/TLS library: OpenSSL.
12697 # Check whether --with-ssl was given.
12698 if test "${with_ssl+set}" = set; then :
12702 as_fn_error $?
"argument required for --with-ssl option" "$LINENO" 5
12705 as_fn_error $?
"argument required for --with-ssl option" "$LINENO" 5
12715 if test x
"$with_ssl" = x
"" ; then
12721 # Check whether --with-openssl was given.
12722 if test "${with_openssl+set}" = set; then :
12723 withval
=$with_openssl;
12732 as_fn_error $?
"no argument expected for --with-openssl option" "$LINENO" 5
12742 if test "$with_openssl" = yes ; then
12746 if test "$with_ssl" = openssl
; then
12747 # Minimum required OpenSSL version is 1.0.1
12749 $as_echo "#define OPENSSL_API_COMPAT 0x10001000L" >>confdefs.h
12751 if test "$PORTNAME" != "win32"; then
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_new_ex_data in -lcrypto" >&5
12753 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
12754 if ${ac_cv_lib_crypto_CRYPTO_new_ex_data+:} false
; then :
12755 $as_echo_n "(cached) " >&6
12757 ac_check_lib_save_LIBS
=$LIBS
12758 LIBS
="-lcrypto $LIBS"
12759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12760 /* end confdefs.h. */
12762 /* Override any GCC internal prototype to avoid an error.
12763 Use char because int might match the return type of a GCC
12764 builtin and then its argument prototype would still apply. */
12768 char CRYPTO_new_ex_data ();
12772 return CRYPTO_new_ex_data ();
12777 if ac_fn_c_try_link
"$LINENO"; then :
12778 ac_cv_lib_crypto_CRYPTO_new_ex_data
=yes
12780 ac_cv_lib_crypto_CRYPTO_new_ex_data
=no
12782 rm -f core conftest.err conftest.
$ac_objext \
12783 conftest
$ac_exeext conftest.
$ac_ext
12784 LIBS
=$ac_check_lib_save_LIBS
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
12787 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
12788 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = xyes
; then :
12789 cat >>confdefs.h
<<_ACEOF
12790 #define HAVE_LIBCRYPTO 1
12793 LIBS
="-lcrypto $LIBS"
12796 as_fn_error $?
"library 'crypto' is required for OpenSSL" "$LINENO" 5
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
12800 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
12801 if ${ac_cv_lib_ssl_SSL_new+:} false
; then :
12802 $as_echo_n "(cached) " >&6
12804 ac_check_lib_save_LIBS
=$LIBS
12806 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12807 /* end confdefs.h. */
12809 /* Override any GCC internal prototype to avoid an error.
12810 Use char because int might match the return type of a GCC
12811 builtin and then its argument prototype would still apply. */
12824 if ac_fn_c_try_link
"$LINENO"; then :
12825 ac_cv_lib_ssl_SSL_new
=yes
12827 ac_cv_lib_ssl_SSL_new
=no
12829 rm -f core conftest.err conftest.
$ac_objext \
12830 conftest
$ac_exeext conftest.
$ac_ext
12831 LIBS
=$ac_check_lib_save_LIBS
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
12834 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
12835 if test "x$ac_cv_lib_ssl_SSL_new" = xyes
; then :
12836 cat >>confdefs.h
<<_ACEOF
12837 #define HAVE_LIBSSL 1
12843 as_fn_error $?
"library 'ssl' is required for OpenSSL" "$LINENO" 5
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing CRYPTO_new_ex_data" >&5
12848 $as_echo_n "checking for library containing CRYPTO_new_ex_data... " >&6; }
12849 if ${ac_cv_search_CRYPTO_new_ex_data+:} false
; then :
12850 $as_echo_n "(cached) " >&6
12852 ac_func_search_save_LIBS
=$LIBS
12853 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12854 /* end confdefs.h. */
12856 /* Override any GCC internal prototype to avoid an error.
12857 Use char because int might match the return type of a GCC
12858 builtin and then its argument prototype would still apply. */
12862 char CRYPTO_new_ex_data ();
12866 return CRYPTO_new_ex_data ();
12871 for ac_lib
in '' eay32 crypto
; do
12872 if test -z "$ac_lib"; then
12873 ac_res
="none required"
12876 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12878 if ac_fn_c_try_link
"$LINENO"; then :
12879 ac_cv_search_CRYPTO_new_ex_data
=$ac_res
12881 rm -f core conftest.err conftest.
$ac_objext \
12883 if ${ac_cv_search_CRYPTO_new_ex_data+:} false
; then :
12887 if ${ac_cv_search_CRYPTO_new_ex_data+:} false
; then :
12890 ac_cv_search_CRYPTO_new_ex_data
=no
12892 rm conftest.
$ac_ext
12893 LIBS
=$ac_func_search_save_LIBS
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_CRYPTO_new_ex_data" >&5
12896 $as_echo "$ac_cv_search_CRYPTO_new_ex_data" >&6; }
12897 ac_res
=$ac_cv_search_CRYPTO_new_ex_data
12898 if test "$ac_res" != no
; then :
12899 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12902 as_fn_error $?
"library 'eay32' or 'crypto' is required for OpenSSL" "$LINENO" 5
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_new" >&5
12906 $as_echo_n "checking for library containing SSL_new... " >&6; }
12907 if ${ac_cv_search_SSL_new+:} false
; then :
12908 $as_echo_n "(cached) " >&6
12910 ac_func_search_save_LIBS
=$LIBS
12911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12912 /* end confdefs.h. */
12914 /* Override any GCC internal prototype to avoid an error.
12915 Use char because int might match the return type of a GCC
12916 builtin and then its argument prototype would still apply. */
12929 for ac_lib
in '' ssleay32 ssl
; do
12930 if test -z "$ac_lib"; then
12931 ac_res
="none required"
12934 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12936 if ac_fn_c_try_link
"$LINENO"; then :
12937 ac_cv_search_SSL_new
=$ac_res
12939 rm -f core conftest.err conftest.
$ac_objext \
12941 if ${ac_cv_search_SSL_new+:} false
; then :
12945 if ${ac_cv_search_SSL_new+:} false
; then :
12948 ac_cv_search_SSL_new
=no
12950 rm conftest.
$ac_ext
12951 LIBS
=$ac_func_search_save_LIBS
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_new" >&5
12954 $as_echo "$ac_cv_search_SSL_new" >&6; }
12955 ac_res
=$ac_cv_search_SSL_new
12956 if test "$ac_res" != no
; then :
12957 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12960 as_fn_error $?
"library 'ssleay32' or 'ssl' is required for OpenSSL" "$LINENO" 5
12964 # Functions introduced in OpenSSL 1.0.2. LibreSSL does not have
12965 # SSL_CTX_set_cert_cb().
12966 for ac_func
in X509_get_signature_nid SSL_CTX_set_cert_cb
12968 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12969 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12970 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12971 cat >>confdefs.h
<<_ACEOF
12972 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12978 # Functions introduced in OpenSSL 1.1.0. We used to check for
12979 # OPENSSL_VERSION_NUMBER, but that didn't work with 1.1.0, because LibreSSL
12980 # defines OPENSSL_VERSION_NUMBER to claim version 2.0.0, even though it
12981 # doesn't have these OpenSSL 1.1.0 functions. So check for individual
12983 for ac_func
in OPENSSL_init_ssl BIO_get_data BIO_meth_new ASN1_STRING_get0_data HMAC_CTX_new HMAC_CTX_free
12985 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12986 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12987 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12988 cat >>confdefs.h
<<_ACEOF
12989 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12995 # OpenSSL versions before 1.1.0 required setting callback functions, for
12996 # thread-safety. In 1.1.0, it's no longer required, and CRYPTO_lock()
12997 # function was removed.
12998 for ac_func
in CRYPTO_lock
13000 ac_fn_c_check_func
"$LINENO" "CRYPTO_lock" "ac_cv_func_CRYPTO_lock"
13001 if test "x$ac_cv_func_CRYPTO_lock" = xyes
; then :
13002 cat >>confdefs.h
<<_ACEOF
13003 #define HAVE_CRYPTO_LOCK 1
13009 # Function introduced in OpenSSL 1.1.1.
13010 for ac_func
in X509_get_signature_info
13012 ac_fn_c_check_func
"$LINENO" "X509_get_signature_info" "ac_cv_func_X509_get_signature_info"
13013 if test "x$ac_cv_func_X509_get_signature_info" = xyes
; then :
13014 cat >>confdefs.h
<<_ACEOF
13015 #define HAVE_X509_GET_SIGNATURE_INFO 1
13022 $as_echo "#define USE_OPENSSL 1" >>confdefs.h
13024 elif test "$with_ssl" != no
; then
13025 as_fn_error $?
"--with-ssl must specify openssl" "$LINENO" 5
13029 if test "$with_pam" = yes ; then
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
13031 $as_echo_n "checking for pam_start in -lpam... " >&6; }
13032 if ${ac_cv_lib_pam_pam_start+:} false
; then :
13033 $as_echo_n "(cached) " >&6
13035 ac_check_lib_save_LIBS
=$LIBS
13037 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13038 /* end confdefs.h. */
13040 /* Override any GCC internal prototype to avoid an error.
13041 Use char because int might match the return type of a GCC
13042 builtin and then its argument prototype would still apply. */
13050 return pam_start ();
13055 if ac_fn_c_try_link
"$LINENO"; then :
13056 ac_cv_lib_pam_pam_start
=yes
13058 ac_cv_lib_pam_pam_start
=no
13060 rm -f core conftest.err conftest.
$ac_objext \
13061 conftest
$ac_exeext conftest.
$ac_ext
13062 LIBS
=$ac_check_lib_save_LIBS
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
13065 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
13066 if test "x$ac_cv_lib_pam_pam_start" = xyes
; then :
13067 cat >>confdefs.h
<<_ACEOF
13068 #define HAVE_LIBPAM 1
13074 as_fn_error $?
"library 'pam' is required for PAM" "$LINENO" 5
13079 if test "$with_libxml" = yes ; then
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSaveToBuffer in -lxml2" >&5
13081 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
13082 if ${ac_cv_lib_xml2_xmlSaveToBuffer+:} false
; then :
13083 $as_echo_n "(cached) " >&6
13085 ac_check_lib_save_LIBS
=$LIBS
13086 LIBS
="-lxml2 $LIBS"
13087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13088 /* end confdefs.h. */
13090 /* Override any GCC internal prototype to avoid an error.
13091 Use char because int might match the return type of a GCC
13092 builtin and then its argument prototype would still apply. */
13096 char xmlSaveToBuffer ();
13100 return xmlSaveToBuffer ();
13105 if ac_fn_c_try_link
"$LINENO"; then :
13106 ac_cv_lib_xml2_xmlSaveToBuffer
=yes
13108 ac_cv_lib_xml2_xmlSaveToBuffer
=no
13110 rm -f core conftest.err conftest.
$ac_objext \
13111 conftest
$ac_exeext conftest.
$ac_ext
13112 LIBS
=$ac_check_lib_save_LIBS
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
13115 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
13116 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = xyes
; then :
13117 cat >>confdefs.h
<<_ACEOF
13118 #define HAVE_LIBXML2 1
13121 LIBS
="-lxml2 $LIBS"
13124 as_fn_error $?
"library 'xml2' (version >= 2.6.23) is required for XML support" "$LINENO" 5
13129 if test "$with_libxslt" = yes ; then
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xsltCleanupGlobals in -lxslt" >&5
13131 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
13132 if ${ac_cv_lib_xslt_xsltCleanupGlobals+:} false
; then :
13133 $as_echo_n "(cached) " >&6
13135 ac_check_lib_save_LIBS
=$LIBS
13136 LIBS
="-lxslt $LIBS"
13137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13138 /* end confdefs.h. */
13140 /* Override any GCC internal prototype to avoid an error.
13141 Use char because int might match the return type of a GCC
13142 builtin and then its argument prototype would still apply. */
13146 char xsltCleanupGlobals ();
13150 return xsltCleanupGlobals ();
13155 if ac_fn_c_try_link
"$LINENO"; then :
13156 ac_cv_lib_xslt_xsltCleanupGlobals
=yes
13158 ac_cv_lib_xslt_xsltCleanupGlobals
=no
13160 rm -f core conftest.err conftest.
$ac_objext \
13161 conftest
$ac_exeext conftest.
$ac_ext
13162 LIBS
=$ac_check_lib_save_LIBS
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
13165 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
13166 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = xyes
; then :
13167 cat >>confdefs.h
<<_ACEOF
13168 #define HAVE_LIBXSLT 1
13171 LIBS
="-lxslt $LIBS"
13174 as_fn_error $?
"library 'xslt' is required for XSLT support" "$LINENO" 5
13179 if test "$with_lz4" = yes ; then
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZ4_compress_default in -llz4" >&5
13181 $as_echo_n "checking for LZ4_compress_default in -llz4... " >&6; }
13182 if ${ac_cv_lib_lz4_LZ4_compress_default+:} false
; then :
13183 $as_echo_n "(cached) " >&6
13185 ac_check_lib_save_LIBS
=$LIBS
13187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13188 /* end confdefs.h. */
13190 /* Override any GCC internal prototype to avoid an error.
13191 Use char because int might match the return type of a GCC
13192 builtin and then its argument prototype would still apply. */
13196 char LZ4_compress_default ();
13200 return LZ4_compress_default ();
13205 if ac_fn_c_try_link
"$LINENO"; then :
13206 ac_cv_lib_lz4_LZ4_compress_default
=yes
13208 ac_cv_lib_lz4_LZ4_compress_default
=no
13210 rm -f core conftest.err conftest.
$ac_objext \
13211 conftest
$ac_exeext conftest.
$ac_ext
13212 LIBS
=$ac_check_lib_save_LIBS
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lz4_LZ4_compress_default" >&5
13215 $as_echo "$ac_cv_lib_lz4_LZ4_compress_default" >&6; }
13216 if test "x$ac_cv_lib_lz4_LZ4_compress_default" = xyes
; then :
13217 cat >>confdefs.h
<<_ACEOF
13218 #define HAVE_LIBLZ4 1
13224 as_fn_error $?
"library 'lz4' is required for LZ4 support" "$LINENO" 5
13229 if test "$with_zstd" = yes ; then
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZSTD_compress in -lzstd" >&5
13231 $as_echo_n "checking for ZSTD_compress in -lzstd... " >&6; }
13232 if ${ac_cv_lib_zstd_ZSTD_compress+:} false
; then :
13233 $as_echo_n "(cached) " >&6
13235 ac_check_lib_save_LIBS
=$LIBS
13236 LIBS
="-lzstd $LIBS"
13237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13238 /* end confdefs.h. */
13240 /* Override any GCC internal prototype to avoid an error.
13241 Use char because int might match the return type of a GCC
13242 builtin and then its argument prototype would still apply. */
13246 char ZSTD_compress ();
13250 return ZSTD_compress ();
13255 if ac_fn_c_try_link
"$LINENO"; then :
13256 ac_cv_lib_zstd_ZSTD_compress
=yes
13258 ac_cv_lib_zstd_ZSTD_compress
=no
13260 rm -f core conftest.err conftest.
$ac_objext \
13261 conftest
$ac_exeext conftest.
$ac_ext
13262 LIBS
=$ac_check_lib_save_LIBS
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_compress" >&5
13265 $as_echo "$ac_cv_lib_zstd_ZSTD_compress" >&6; }
13266 if test "x$ac_cv_lib_zstd_ZSTD_compress" = xyes
; then :
13267 cat >>confdefs.h
<<_ACEOF
13268 #define HAVE_LIBZSTD 1
13271 LIBS
="-lzstd $LIBS"
13274 as_fn_error $?
"library 'zstd' is required for ZSTD support" "$LINENO" 5
13279 # Note: We can test for libldap_r only after we know PTHREAD_LIBS;
13280 # also, on AIX, we may need to have openssl in LIBS for this step.
13281 if test "$with_ldap" = yes ; then
13283 if test "$PORTNAME" != "win32"; then
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lldap" >&5
13285 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
13286 if ${ac_cv_lib_ldap_ldap_bind+:} false
; then :
13287 $as_echo_n "(cached) " >&6
13289 ac_check_lib_save_LIBS
=$LIBS
13290 LIBS
="-lldap $EXTRA_LDAP_LIBS $LIBS"
13291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13292 /* end confdefs.h. */
13294 /* Override any GCC internal prototype to avoid an error.
13295 Use char because int might match the return type of a GCC
13296 builtin and then its argument prototype would still apply. */
13304 return ldap_bind ();
13309 if ac_fn_c_try_link
"$LINENO"; then :
13310 ac_cv_lib_ldap_ldap_bind
=yes
13312 ac_cv_lib_ldap_ldap_bind
=no
13314 rm -f core conftest.err conftest.
$ac_objext \
13315 conftest
$ac_exeext conftest.
$ac_ext
13316 LIBS
=$ac_check_lib_save_LIBS
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_bind" >&5
13319 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
13320 if test "x$ac_cv_lib_ldap_ldap_bind" = xyes
; then :
13321 cat >>confdefs.h
<<_ACEOF
13322 #define HAVE_LIBLDAP 1
13325 LIBS
="-lldap $LIBS"
13328 as_fn_error $?
"library 'ldap' is required for LDAP" "$LINENO" 5
13331 LDAP_LIBS_BE
="-lldap $EXTRA_LDAP_LIBS"
13332 # This test is carried out against libldap.
13333 for ac_func
in ldap_initialize
13335 ac_fn_c_check_func
"$LINENO" "ldap_initialize" "ac_cv_func_ldap_initialize"
13336 if test "x$ac_cv_func_ldap_initialize" = xyes
; then :
13337 cat >>confdefs.h
<<_ACEOF
13338 #define HAVE_LDAP_INITIALIZE 1
13344 # The separate ldap_r library only exists in OpenLDAP < 2.5, and if we
13345 # have 2.5 or later, we shouldn't even probe for ldap_r (we might find a
13346 # library from a separate OpenLDAP installation). The most reliable
13347 # way to check that is to check for a function introduced in 2.5.
13348 ac_fn_c_check_func
"$LINENO" "ldap_verify_credentials" "ac_cv_func_ldap_verify_credentials"
13349 if test "x$ac_cv_func_ldap_verify_credentials" = xyes
; then :
13350 thread_safe_libldap
=yes
13352 thread_safe_libldap
=no
13355 if test "$enable_thread_safety" = yes -a "$thread_safe_libldap" = no
; then
13356 # Use ldap_r for FE if available, else assume ldap is thread-safe.
13357 # On some platforms ldap_r fails to link without PTHREAD_LIBS.
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lldap_r" >&5
13360 $as_echo_n "checking for ldap_bind in -lldap_r... " >&6; }
13361 if ${ac_cv_lib_ldap_r_ldap_bind+:} false
; then :
13362 $as_echo_n "(cached) " >&6
13364 ac_check_lib_save_LIBS
=$LIBS
13365 LIBS
="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
13366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13367 /* end confdefs.h. */
13369 /* Override any GCC internal prototype to avoid an error.
13370 Use char because int might match the return type of a GCC
13371 builtin and then its argument prototype would still apply. */
13379 return ldap_bind ();
13384 if ac_fn_c_try_link
"$LINENO"; then :
13385 ac_cv_lib_ldap_r_ldap_bind
=yes
13387 ac_cv_lib_ldap_r_ldap_bind
=no
13389 rm -f core conftest.err conftest.
$ac_objext \
13390 conftest
$ac_exeext conftest.
$ac_ext
13391 LIBS
=$ac_check_lib_save_LIBS
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_bind" >&5
13394 $as_echo "$ac_cv_lib_ldap_r_ldap_bind" >&6; }
13395 if test "x$ac_cv_lib_ldap_r_ldap_bind" = xyes
; then :
13396 LDAP_LIBS_FE
="-lldap_r $EXTRA_LDAP_LIBS"
13398 LDAP_LIBS_FE
="-lldap $EXTRA_LDAP_LIBS"
13402 LDAP_LIBS_FE
="-lldap $EXTRA_LDAP_LIBS"
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lwldap32" >&5
13406 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
13407 if ${ac_cv_lib_wldap32_ldap_bind+:} false
; then :
13408 $as_echo_n "(cached) " >&6
13410 ac_check_lib_save_LIBS
=$LIBS
13411 LIBS
="-lwldap32 $LIBS"
13412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13413 /* end confdefs.h. */
13415 /* Override any GCC internal prototype to avoid an error.
13416 Use char because int might match the return type of a GCC
13417 builtin and then its argument prototype would still apply. */
13425 return ldap_bind ();
13430 if ac_fn_c_try_link
"$LINENO"; then :
13431 ac_cv_lib_wldap32_ldap_bind
=yes
13433 ac_cv_lib_wldap32_ldap_bind
=no
13435 rm -f core conftest.err conftest.
$ac_objext \
13436 conftest
$ac_exeext conftest.
$ac_ext
13437 LIBS
=$ac_check_lib_save_LIBS
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wldap32_ldap_bind" >&5
13440 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
13441 if test "x$ac_cv_lib_wldap32_ldap_bind" = xyes
; then :
13442 cat >>confdefs.h
<<_ACEOF
13443 #define HAVE_LIBWLDAP32 1
13446 LIBS
="-lwldap32 $LIBS"
13449 as_fn_error $?
"library 'wldap32' is required for LDAP" "$LINENO" 5
13452 LDAP_LIBS_FE
="-lwldap32"
13453 LDAP_LIBS_BE
="-lwldap32"
13460 # for contrib/sepgsql
13461 if test "$with_selinux" = yes; then
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for security_compute_create_name in -lselinux" >&5
13463 $as_echo_n "checking for security_compute_create_name in -lselinux... " >&6; }
13464 if ${ac_cv_lib_selinux_security_compute_create_name+:} false
; then :
13465 $as_echo_n "(cached) " >&6
13467 ac_check_lib_save_LIBS
=$LIBS
13468 LIBS
="-lselinux $LIBS"
13469 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13470 /* end confdefs.h. */
13472 /* Override any GCC internal prototype to avoid an error.
13473 Use char because int might match the return type of a GCC
13474 builtin and then its argument prototype would still apply. */
13478 char security_compute_create_name ();
13482 return security_compute_create_name ();
13487 if ac_fn_c_try_link
"$LINENO"; then :
13488 ac_cv_lib_selinux_security_compute_create_name
=yes
13490 ac_cv_lib_selinux_security_compute_create_name
=no
13492 rm -f core conftest.err conftest.
$ac_objext \
13493 conftest
$ac_exeext conftest.
$ac_ext
13494 LIBS
=$ac_check_lib_save_LIBS
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_security_compute_create_name" >&5
13497 $as_echo "$ac_cv_lib_selinux_security_compute_create_name" >&6; }
13498 if test "x$ac_cv_lib_selinux_security_compute_create_name" = xyes
; then :
13499 cat >>confdefs.h
<<_ACEOF
13500 #define HAVE_LIBSELINUX 1
13503 LIBS
="-lselinux $LIBS"
13506 as_fn_error $?
"library 'libselinux', version 2.1.10 or newer, is required for SELinux support" "$LINENO" 5
13511 # for contrib/uuid-ossp
13512 if test "$with_uuid" = bsd
; then
13513 # On BSD, the UUID functions are in libc
13514 ac_fn_c_check_func
"$LINENO" "uuid_to_string" "ac_cv_func_uuid_to_string"
13515 if test "x$ac_cv_func_uuid_to_string" = xyes
; then :
13518 as_fn_error $?
"BSD UUID functions are not present" "$LINENO" 5
13521 elif test "$with_uuid" = e2fs
; then
13522 # On macOS, the UUID functions are in libc
13523 ac_fn_c_check_func
"$LINENO" "uuid_generate" "ac_cv_func_uuid_generate"
13524 if test "x$ac_cv_func_uuid_generate" = xyes
; then :
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
13528 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
13529 if ${ac_cv_lib_uuid_uuid_generate+:} false
; then :
13530 $as_echo_n "(cached) " >&6
13532 ac_check_lib_save_LIBS
=$LIBS
13533 LIBS
="-luuid $LIBS"
13534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13535 /* end confdefs.h. */
13537 /* Override any GCC internal prototype to avoid an error.
13538 Use char because int might match the return type of a GCC
13539 builtin and then its argument prototype would still apply. */
13543 char uuid_generate ();
13547 return uuid_generate ();
13552 if ac_fn_c_try_link
"$LINENO"; then :
13553 ac_cv_lib_uuid_uuid_generate
=yes
13555 ac_cv_lib_uuid_uuid_generate
=no
13557 rm -f core conftest.err conftest.
$ac_objext \
13558 conftest
$ac_exeext conftest.
$ac_ext
13559 LIBS
=$ac_check_lib_save_LIBS
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
13562 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
13563 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
; then :
13566 as_fn_error $?
"library 'uuid' is required for E2FS UUID" "$LINENO" 5
13571 elif test "$with_uuid" = ossp
; then
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_export in -lossp-uuid" >&5
13573 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
13574 if ${ac_cv_lib_ossp_uuid_uuid_export+:} false
; then :
13575 $as_echo_n "(cached) " >&6
13577 ac_check_lib_save_LIBS
=$LIBS
13578 LIBS
="-lossp-uuid $LIBS"
13579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13580 /* end confdefs.h. */
13582 /* Override any GCC internal prototype to avoid an error.
13583 Use char because int might match the return type of a GCC
13584 builtin and then its argument prototype would still apply. */
13588 char uuid_export ();
13592 return uuid_export ();
13597 if ac_fn_c_try_link
"$LINENO"; then :
13598 ac_cv_lib_ossp_uuid_uuid_export
=yes
13600 ac_cv_lib_ossp_uuid_uuid_export
=no
13602 rm -f core conftest.err conftest.
$ac_objext \
13603 conftest
$ac_exeext conftest.
$ac_ext
13604 LIBS
=$ac_check_lib_save_LIBS
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
13607 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
13608 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = xyes
; then :
13609 UUID_LIBS
="-lossp-uuid"
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_export in -luuid" >&5
13612 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
13613 if ${ac_cv_lib_uuid_uuid_export+:} false
; then :
13614 $as_echo_n "(cached) " >&6
13616 ac_check_lib_save_LIBS
=$LIBS
13617 LIBS
="-luuid $LIBS"
13618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13619 /* end confdefs.h. */
13621 /* Override any GCC internal prototype to avoid an error.
13622 Use char because int might match the return type of a GCC
13623 builtin and then its argument prototype would still apply. */
13627 char uuid_export ();
13631 return uuid_export ();
13636 if ac_fn_c_try_link
"$LINENO"; then :
13637 ac_cv_lib_uuid_uuid_export
=yes
13639 ac_cv_lib_uuid_uuid_export
=no
13641 rm -f core conftest.err conftest.
$ac_objext \
13642 conftest
$ac_exeext conftest.
$ac_ext
13643 LIBS
=$ac_check_lib_save_LIBS
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_export" >&5
13646 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
13647 if test "x$ac_cv_lib_uuid_uuid_export" = xyes
; then :
13650 as_fn_error $?
"library 'ossp-uuid' or 'uuid' is required for OSSP UUID" "$LINENO" 5
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
13664 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
13665 if ${ac_cv_header_stdbool_h+:} false
; then :
13666 $as_echo_n "(cached) " >&6
13668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13669 /* end confdefs.h. */
13671 #include <stdbool.h>
13673 "error: bool is not defined"
13676 "error: false is not defined"
13679 "error: false is not 0"
13682 "error: true is not defined"
13685 "error: true is not 1"
13687 #ifndef __bool_true_false_are_defined
13688 "error: __bool_true_false_are_defined is not defined"
13691 struct s { _Bool s: 1; _Bool t; } s;
13693 char a[true == 1 ? 1 : -1];
13694 char b[false == 0 ? 1 : -1];
13695 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
13696 char d[(bool) 0.5 == true ? 1 : -1];
13697 /* See body of main program for 'e'. */
13698 char f[(_Bool) 0.0 == false ? 1 : -1];
13700 char h[sizeof (_Bool)];
13701 char i[sizeof s.t];
13702 enum { j = false, k = true, l = false * true, m = true * 256 };
13703 /* The following fails for
13704 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
13706 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
13707 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
13708 /* Catch a bug in an HP-UX C compiler. See
13709 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
13710 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
13722 /* Refer to every declared value, to avoid compiler optimizations. */
13723 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
13724 + !m + !n + !o + !p + !q + !pq);
13730 if ac_fn_c_try_compile
"$LINENO"; then :
13731 ac_cv_header_stdbool_h
=yes
13733 ac_cv_header_stdbool_h
=no
13735 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
13738 $as_echo "$ac_cv_header_stdbool_h" >&6; }
13739 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
13740 if test "x$ac_cv_type__Bool" = xyes
; then :
13742 cat >>confdefs.h
<<_ACEOF
13743 #define HAVE__BOOL 1
13750 if test $ac_cv_header_stdbool_h = yes; then
13752 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
13757 for ac_header
in atomic.h copyfile.h execinfo.h getopt.h ifaddrs.h langinfo.h mbarrier.h sys
/epoll.h sys
/event.h sys
/personality.h sys
/prctl.h sys
/procctl.h sys
/signalfd.h sys
/ucred.h termios.h ucred.h
13759 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13760 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13761 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13762 cat >>confdefs.h
<<_ACEOF
13763 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13771 if expr x
"$pgac_cv_check_readline" : 'x-lreadline' >/dev
/null
; then
13772 for ac_header
in readline
/readline.h
13774 ac_fn_c_check_header_mongrel
"$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
13775 if test "x$ac_cv_header_readline_readline_h" = xyes
; then :
13776 cat >>confdefs.h
<<_ACEOF
13777 #define HAVE_READLINE_READLINE_H 1
13781 for ac_header
in readline.h
13783 ac_fn_c_check_header_mongrel
"$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
13784 if test "x$ac_cv_header_readline_h" = xyes
; then :
13785 cat >>confdefs.h
<<_ACEOF
13786 #define HAVE_READLINE_H 1
13790 as_fn_error $?
"readline header not found
13791 If you have readline already installed, see config.log for details on the
13792 failure. It is possible the compiler isn't looking in the proper directory.
13793 Use --without-readline to disable readline support." "$LINENO" 5
13802 for ac_header
in readline
/history.h
13804 ac_fn_c_check_header_mongrel
"$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
13805 if test "x$ac_cv_header_readline_history_h" = xyes
; then :
13806 cat >>confdefs.h
<<_ACEOF
13807 #define HAVE_READLINE_HISTORY_H 1
13811 for ac_header
in history.h
13813 ac_fn_c_check_header_mongrel
"$LINENO" "history.h" "ac_cv_header_history_h" "$ac_includes_default"
13814 if test "x$ac_cv_header_history_h" = xyes
; then :
13815 cat >>confdefs.h
<<_ACEOF
13816 #define HAVE_HISTORY_H 1
13820 as_fn_error $?
"history header not found
13821 If you have readline already installed, see config.log for details on the
13822 failure. It is possible the compiler isn't looking in the proper directory.
13823 Use --without-readline to disable readline support." "$LINENO" 5
13834 if expr x
"$pgac_cv_check_readline" : 'x-ledit' >/dev
/null
; then
13835 # Some installations of libedit usurp /usr/include/readline/, which seems
13836 # bad practice, since in combined installations readline will have its headers
13837 # there. We might have to resort to AC_EGREP checks to make sure we found
13838 # the proper header...
13839 for ac_header
in editline
/readline.h
13841 ac_fn_c_check_header_mongrel
"$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
13842 if test "x$ac_cv_header_editline_readline_h" = xyes
; then :
13843 cat >>confdefs.h
<<_ACEOF
13844 #define HAVE_EDITLINE_READLINE_H 1
13848 for ac_header
in readline.h
13850 ac_fn_c_check_header_mongrel
"$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
13851 if test "x$ac_cv_header_readline_h" = xyes
; then :
13852 cat >>confdefs.h
<<_ACEOF
13853 #define HAVE_READLINE_H 1
13857 for ac_header
in readline
/readline.h
13859 ac_fn_c_check_header_mongrel
"$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
13860 if test "x$ac_cv_header_readline_readline_h" = xyes
; then :
13861 cat >>confdefs.h
<<_ACEOF
13862 #define HAVE_READLINE_READLINE_H 1
13866 as_fn_error $?
"readline header not found
13867 If you have libedit already installed, see config.log for details on the
13868 failure. It is possible the compiler isn't looking in the proper directory.
13869 Use --without-readline to disable libedit support." "$LINENO" 5
13882 # Note: in a libedit installation, history.h is sometimes a dummy, and may
13883 # not be there at all. Hence, don't complain if not found. We must check
13884 # though, since in yet other versions it is an independent header.
13885 for ac_header
in editline
/history.h
13887 ac_fn_c_check_header_mongrel
"$LINENO" "editline/history.h" "ac_cv_header_editline_history_h" "$ac_includes_default"
13888 if test "x$ac_cv_header_editline_history_h" = xyes
; then :
13889 cat >>confdefs.h
<<_ACEOF
13890 #define HAVE_EDITLINE_HISTORY_H 1
13894 for ac_header
in history.h
13896 ac_fn_c_check_header_mongrel
"$LINENO" "history.h" "ac_cv_header_history_h" "$ac_includes_default"
13897 if test "x$ac_cv_header_history_h" = xyes
; then :
13898 cat >>confdefs.h
<<_ACEOF
13899 #define HAVE_HISTORY_H 1
13903 for ac_header
in readline
/history.h
13905 ac_fn_c_check_header_mongrel
"$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
13906 if test "x$ac_cv_header_readline_history_h" = xyes
; then :
13907 cat >>confdefs.h
<<_ACEOF
13908 #define HAVE_READLINE_HISTORY_H 1
13925 if test "$with_zlib" = yes; then
13926 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13927 if test "x$ac_cv_header_zlib_h" = xyes
; then :
13930 as_fn_error $?
"zlib header not found
13931 If you have zlib already installed, see config.log for details on the
13932 failure. It is possible the compiler isn't looking in the proper directory.
13933 Use --without-zlib to disable zlib support." "$LINENO" 5
13939 if test -z "$LZ4"; then
13942 # Extract the first word of "$ac_prog", so it can be a program name with args.
13943 set dummy
$ac_prog; ac_word
=$2
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13945 $as_echo_n "checking for $ac_word... " >&6; }
13946 if ${ac_cv_path_LZ4+:} false
; then :
13947 $as_echo_n "(cached) " >&6
13951 ac_cv_path_LZ4
="$LZ4" # Let the user override the test with a path.
13954 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13955 for as_dir
in $PATH
13958 test -z "$as_dir" && as_dir
=.
13959 for ac_exec_ext
in '' $ac_executable_extensions; do
13960 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13961 ac_cv_path_LZ4
="$as_dir/$ac_word$ac_exec_ext"
13962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13972 LZ4
=$ac_cv_path_LZ4
13973 if test -n "$LZ4"; then
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZ4" >&5
13975 $as_echo "$LZ4" >&6; }
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13978 $as_echo "no" >&6; }
13982 test -n "$LZ4" && break
13986 # Report the value of LZ4 in configure's output in all cases.
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZ4" >&5
13988 $as_echo_n "checking for LZ4... " >&6; }
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZ4" >&5
13990 $as_echo "$LZ4" >&6; }
13993 if test "$with_lz4" = yes; then
13994 ac_fn_c_check_header_mongrel
"$LINENO" "lz4.h" "ac_cv_header_lz4_h" "$ac_includes_default"
13995 if test "x$ac_cv_header_lz4_h" = xyes
; then :
13998 as_fn_error $?
"lz4.h header file is required for LZ4" "$LINENO" 5
14004 if test -z "$ZSTD"; then
14005 for ac_prog
in zstd
14007 # Extract the first word of "$ac_prog", so it can be a program name with args.
14008 set dummy
$ac_prog; ac_word
=$2
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14010 $as_echo_n "checking for $ac_word... " >&6; }
14011 if ${ac_cv_path_ZSTD+:} false
; then :
14012 $as_echo_n "(cached) " >&6
14016 ac_cv_path_ZSTD
="$ZSTD" # Let the user override the test with a path.
14019 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14020 for as_dir
in $PATH
14023 test -z "$as_dir" && as_dir
=.
14024 for ac_exec_ext
in '' $ac_executable_extensions; do
14025 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14026 ac_cv_path_ZSTD
="$as_dir/$ac_word$ac_exec_ext"
14027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14037 ZSTD
=$ac_cv_path_ZSTD
14038 if test -n "$ZSTD"; then
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZSTD" >&5
14040 $as_echo "$ZSTD" >&6; }
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14043 $as_echo "no" >&6; }
14047 test -n "$ZSTD" && break
14051 # Report the value of ZSTD in configure's output in all cases.
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZSTD" >&5
14053 $as_echo_n "checking for ZSTD... " >&6; }
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZSTD" >&5
14055 $as_echo "$ZSTD" >&6; }
14058 if test "$with_zstd" = yes; then
14059 ac_fn_c_check_header_mongrel
"$LINENO" "zstd.h" "ac_cv_header_zstd_h" "$ac_includes_default"
14060 if test "x$ac_cv_header_zstd_h" = xyes
; then :
14063 as_fn_error $?
"zstd.h header file is required for ZSTD" "$LINENO" 5
14069 if test "$with_gssapi" = yes ; then
14070 for ac_header
in gssapi
/gssapi.h
14072 ac_fn_c_check_header_mongrel
"$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
14073 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes
; then :
14074 cat >>confdefs.h
<<_ACEOF
14075 #define HAVE_GSSAPI_GSSAPI_H 1
14079 for ac_header
in gssapi.h
14081 ac_fn_c_check_header_mongrel
"$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
14082 if test "x$ac_cv_header_gssapi_h" = xyes
; then :
14083 cat >>confdefs.h
<<_ACEOF
14084 #define HAVE_GSSAPI_H 1
14088 as_fn_error $?
"gssapi.h header file is required for GSSAPI" "$LINENO" 5
14097 for ac_header
in gssapi
/gssapi_ext.h
14099 ac_fn_c_check_header_mongrel
"$LINENO" "gssapi/gssapi_ext.h" "ac_cv_header_gssapi_gssapi_ext_h" "$ac_includes_default"
14100 if test "x$ac_cv_header_gssapi_gssapi_ext_h" = xyes
; then :
14101 cat >>confdefs.h
<<_ACEOF
14102 #define HAVE_GSSAPI_GSSAPI_EXT_H 1
14106 for ac_header
in gssapi_ext.h
14108 ac_fn_c_check_header_mongrel
"$LINENO" "gssapi_ext.h" "ac_cv_header_gssapi_ext_h" "$ac_includes_default"
14109 if test "x$ac_cv_header_gssapi_ext_h" = xyes
; then :
14110 cat >>confdefs.h
<<_ACEOF
14111 #define HAVE_GSSAPI_EXT_H 1
14115 as_fn_error $?
"gssapi_ext.h header file is required for GSSAPI" "$LINENO" 5
14126 if test -z "$OPENSSL"; then
14127 for ac_prog
in openssl
14129 # Extract the first word of "$ac_prog", so it can be a program name with args.
14130 set dummy
$ac_prog; ac_word
=$2
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14132 $as_echo_n "checking for $ac_word... " >&6; }
14133 if ${ac_cv_path_OPENSSL+:} false
; then :
14134 $as_echo_n "(cached) " >&6
14138 ac_cv_path_OPENSSL
="$OPENSSL" # Let the user override the test with a path.
14141 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14142 for as_dir
in $PATH
14145 test -z "$as_dir" && as_dir
=.
14146 for ac_exec_ext
in '' $ac_executable_extensions; do
14147 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14148 ac_cv_path_OPENSSL
="$as_dir/$ac_word$ac_exec_ext"
14149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14159 OPENSSL
=$ac_cv_path_OPENSSL
14160 if test -n "$OPENSSL"; then
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
14162 $as_echo "$OPENSSL" >&6; }
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14165 $as_echo "no" >&6; }
14169 test -n "$OPENSSL" && break
14173 # Report the value of OPENSSL in configure's output in all cases.
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
14175 $as_echo_n "checking for OPENSSL... " >&6; }
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
14177 $as_echo "$OPENSSL" >&6; }
14180 if test "$with_ssl" = openssl
; then
14181 ac_fn_c_check_header_mongrel
"$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
14182 if test "x$ac_cv_header_openssl_ssl_h" = xyes
; then :
14185 as_fn_error $?
"header file <openssl/ssl.h> is required for OpenSSL" "$LINENO" 5
14189 ac_fn_c_check_header_mongrel
"$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default"
14190 if test "x$ac_cv_header_openssl_err_h" = xyes
; then :
14193 as_fn_error $?
"header file <openssl/err.h> is required for OpenSSL" "$LINENO" 5
14199 if test "$with_pam" = yes ; then
14200 for ac_header
in security
/pam_appl.h
14202 ac_fn_c_check_header_mongrel
"$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
14203 if test "x$ac_cv_header_security_pam_appl_h" = xyes
; then :
14204 cat >>confdefs.h
<<_ACEOF
14205 #define HAVE_SECURITY_PAM_APPL_H 1
14209 for ac_header
in pam
/pam_appl.h
14211 ac_fn_c_check_header_mongrel
"$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
14212 if test "x$ac_cv_header_pam_pam_appl_h" = xyes
; then :
14213 cat >>confdefs.h
<<_ACEOF
14214 #define HAVE_PAM_PAM_APPL_H 1
14218 as_fn_error $?
"header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." "$LINENO" 5
14229 if test "$with_bsd_auth" = yes ; then
14230 ac_fn_c_check_header_mongrel
"$LINENO" "bsd_auth.h" "ac_cv_header_bsd_auth_h" "$ac_includes_default"
14231 if test "x$ac_cv_header_bsd_auth_h" = xyes
; then :
14234 as_fn_error $?
"header file <bsd_auth.h> is required for BSD Authentication support" "$LINENO" 5
14240 if test "$with_systemd" = yes ; then
14241 ac_fn_c_check_header_mongrel
"$LINENO" "systemd/sd-daemon.h" "ac_cv_header_systemd_sd_daemon_h" "$ac_includes_default"
14242 if test "x$ac_cv_header_systemd_sd_daemon_h" = xyes
; then :
14245 as_fn_error $?
"header file <systemd/sd-daemon.h> is required for systemd support" "$LINENO" 5
14251 if test "$with_libxml" = yes ; then
14252 ac_fn_c_check_header_mongrel
"$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
14253 if test "x$ac_cv_header_libxml_parser_h" = xyes
; then :
14256 as_fn_error $?
"header file <libxml/parser.h> is required for XML support" "$LINENO" 5
14262 if test "$with_libxslt" = yes ; then
14263 ac_fn_c_check_header_mongrel
"$LINENO" "libxslt/xslt.h" "ac_cv_header_libxslt_xslt_h" "$ac_includes_default"
14264 if test "x$ac_cv_header_libxslt_xslt_h" = xyes
; then :
14267 as_fn_error $?
"header file <libxslt/xslt.h> is required for XSLT support" "$LINENO" 5
14273 if test "$with_ldap" = yes ; then
14274 if test "$PORTNAME" != "win32"; then
14275 ac_fn_c_check_header_mongrel
"$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
14276 if test "x$ac_cv_header_ldap_h" = xyes
; then :
14279 as_fn_error $?
"header file <ldap.h> is required for LDAP" "$LINENO" 5
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible LDAP implementation" >&5
14284 $as_echo_n "checking for compatible LDAP implementation... " >&6; }
14285 if ${pgac_cv_ldap_safe+:} false
; then :
14286 $as_echo_n "(cached) " >&6
14288 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14289 /* end confdefs.h. */
14291 #if !defined(LDAP_VENDOR_VERSION) || \
14292 (defined(LDAP_API_FEATURE_X_OPENLDAP) && \
14293 LDAP_VENDOR_VERSION >= 20424 && LDAP_VENDOR_VERSION <= 20431)
14304 if ac_fn_c_try_compile
"$LINENO"; then :
14305 pgac_cv_ldap_safe
=yes
14307 pgac_cv_ldap_safe
=no
14309 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_ldap_safe" >&5
14312 $as_echo "$pgac_cv_ldap_safe" >&6; }
14314 if test "$pgac_cv_ldap_safe" != yes; then
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
14316 *** With OpenLDAP versions 2.4.24 through 2.4.31, inclusive, each backend
14317 *** process that loads libpq (via WAL receiver, dblink, or postgres_fdw) and
14318 *** also uses LDAP will crash on exit." >&5
14319 $as_echo "$as_me: WARNING:
14320 *** With OpenLDAP versions 2.4.24 through 2.4.31, inclusive, each backend
14321 *** process that loads libpq (via WAL receiver, dblink, or postgres_fdw) and
14322 *** also uses LDAP will crash on exit." >&2;}
14325 ac_fn_c_check_header_compile
"$LINENO" "winldap.h" "ac_cv_header_winldap_h" "$ac_includes_default
14326 #include <windows.h>
14329 if test "x$ac_cv_header_winldap_h" = xyes
; then :
14332 as_fn_error $?
"header file <winldap.h> is required for LDAP" "$LINENO" 5
14339 if test "$with_bonjour" = yes ; then
14340 ac_fn_c_check_header_mongrel
"$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
14341 if test "x$ac_cv_header_dns_sd_h" = xyes
; then :
14344 as_fn_error $?
"header file <dns_sd.h> is required for Bonjour" "$LINENO" 5
14350 # for contrib/uuid-ossp
14351 if test "$with_uuid" = bsd
; then
14352 for ac_header
in uuid.h
14354 ac_fn_c_check_header_mongrel
"$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
14355 if test "x$ac_cv_header_uuid_h" = xyes
; then :
14356 cat >>confdefs.h
<<_ACEOF
14357 #define HAVE_UUID_H 1
14359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14360 /* end confdefs.h. */
14364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14365 $EGREP "uuid_to_string" >/dev
/null
2>&1; then :
14368 as_fn_error $?
"header file <uuid.h> does not match BSD UUID library" "$LINENO" 5
14373 as_fn_error $?
"header file <uuid.h> is required for BSD UUID" "$LINENO" 5
14378 elif test "$with_uuid" = e2fs
; then
14379 for ac_header
in uuid
/uuid.h
14381 ac_fn_c_check_header_mongrel
"$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
14382 if test "x$ac_cv_header_uuid_uuid_h" = xyes
; then :
14383 cat >>confdefs.h
<<_ACEOF
14384 #define HAVE_UUID_UUID_H 1
14386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14387 /* end confdefs.h. */
14388 #include <uuid/uuid.h>
14391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14392 $EGREP "uuid_generate" >/dev
/null
2>&1; then :
14395 as_fn_error $?
"header file <uuid/uuid.h> does not match E2FS UUID library" "$LINENO" 5
14400 for ac_header
in uuid.h
14402 ac_fn_c_check_header_mongrel
"$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
14403 if test "x$ac_cv_header_uuid_h" = xyes
; then :
14404 cat >>confdefs.h
<<_ACEOF
14405 #define HAVE_UUID_H 1
14407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14408 /* end confdefs.h. */
14412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14413 $EGREP "uuid_generate" >/dev
/null
2>&1; then :
14416 as_fn_error $?
"header file <uuid.h> does not match E2FS UUID library" "$LINENO" 5
14421 as_fn_error $?
"header file <uuid/uuid.h> or <uuid.h> is required for E2FS UUID" "$LINENO" 5
14430 elif test "$with_uuid" = ossp
; then
14431 for ac_header
in ossp
/uuid.h
14433 ac_fn_c_check_header_mongrel
"$LINENO" "ossp/uuid.h" "ac_cv_header_ossp_uuid_h" "$ac_includes_default"
14434 if test "x$ac_cv_header_ossp_uuid_h" = xyes
; then :
14435 cat >>confdefs.h
<<_ACEOF
14436 #define HAVE_OSSP_UUID_H 1
14438 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14439 /* end confdefs.h. */
14440 #include <ossp/uuid.h>
14443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14444 $EGREP "uuid_export" >/dev
/null
2>&1; then :
14447 as_fn_error $?
"header file <ossp/uuid.h> does not match OSSP UUID library" "$LINENO" 5
14452 for ac_header
in uuid.h
14454 ac_fn_c_check_header_mongrel
"$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
14455 if test "x$ac_cv_header_uuid_h" = xyes
; then :
14456 cat >>confdefs.h
<<_ACEOF
14457 #define HAVE_UUID_H 1
14459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14460 /* end confdefs.h. */
14464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14465 $EGREP "uuid_export" >/dev
/null
2>&1; then :
14468 as_fn_error $?
"header file <uuid.h> does not match OSSP UUID library" "$LINENO" 5
14473 as_fn_error $?
"header file <ossp/uuid.h> or <uuid.h> is required for OSSP UUID" "$LINENO" 5
14484 if test "$PORTNAME" = "win32" ; then
14485 for ac_header
in crtdefs.h
14487 ac_fn_c_check_header_mongrel
"$LINENO" "crtdefs.h" "ac_cv_header_crtdefs_h" "$ac_includes_default"
14488 if test "x$ac_cv_header_crtdefs_h" = xyes
; then :
14489 cat >>confdefs.h
<<_ACEOF
14490 #define HAVE_CRTDEFS_H 1
14500 ## Types, structures, compiler characteristics
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14504 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14505 if ${ac_cv_c_bigendian+:} false
; then :
14506 $as_echo_n "(cached) " >&6
14508 ac_cv_c_bigendian
=unknown
14509 # See if we're dealing with a universal compiler.
14510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14511 /* end confdefs.h. */
14512 #ifndef __APPLE_CC__
14513 not a universal capable compiler
14518 if ac_fn_c_try_compile
"$LINENO"; then :
14520 # Check for potential -arch flags. It is not universal unless
14521 # there are at least two -arch flags with different values.
14524 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14525 if test -n "$ac_prev"; then
14527 i?
86 | x86_64 | ppc | ppc64
)
14528 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
14531 ac_cv_c_bigendian
=universal
14537 elif test "x$ac_word" = "x-arch"; then
14542 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14543 if test $ac_cv_c_bigendian = unknown
; then
14544 # See if sys/param.h defines the BYTE_ORDER macro.
14545 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14546 /* end confdefs.h. */
14547 #include <sys/types.h>
14548 #include <sys/param.h>
14553 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14554 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14556 bogus endian macros
14563 if ac_fn_c_try_compile
"$LINENO"; then :
14564 # It does; now see whether it defined to BIG_ENDIAN or not.
14565 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14566 /* end confdefs.h. */
14567 #include <sys/types.h>
14568 #include <sys/param.h>
14573 #if BYTE_ORDER != BIG_ENDIAN
14581 if ac_fn_c_try_compile
"$LINENO"; then :
14582 ac_cv_c_bigendian
=yes
14584 ac_cv_c_bigendian
=no
14586 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14588 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14590 if test $ac_cv_c_bigendian = unknown
; then
14591 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14593 /* end confdefs.h. */
14594 #include <limits.h>
14599 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14600 bogus endian macros
14607 if ac_fn_c_try_compile
"$LINENO"; then :
14608 # It does; now see whether it defined to _BIG_ENDIAN or not.
14609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14610 /* end confdefs.h. */
14611 #include <limits.h>
14616 #ifndef _BIG_ENDIAN
14624 if ac_fn_c_try_compile
"$LINENO"; then :
14625 ac_cv_c_bigendian
=yes
14627 ac_cv_c_bigendian
=no
14629 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14631 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14633 if test $ac_cv_c_bigendian = unknown
; then
14634 # Compile a test program.
14635 if test "$cross_compiling" = yes; then :
14636 # Try to guess by grepping values from an object file.
14637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14638 /* end confdefs.h. */
14639 short int ascii_mm[] =
14640 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14641 short int ascii_ii[] =
14642 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14643 int use_ascii (int i) {
14644 return ascii_mm[i] + ascii_ii[i];
14646 short int ebcdic_ii[] =
14647 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14648 short int ebcdic_mm[] =
14649 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14650 int use_ebcdic (int i) {
14651 return ebcdic_mm[i] + ebcdic_ii[i];
14658 return use_ascii (foo) == use_ebcdic (foo);
14663 if ac_fn_c_try_compile
"$LINENO"; then :
14664 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
14665 ac_cv_c_bigendian
=yes
14667 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
14668 if test "$ac_cv_c_bigendian" = unknown
; then
14669 ac_cv_c_bigendian
=no
14671 # finding both strings is unlikely to happen, but who knows?
14672 ac_cv_c_bigendian
=unknown
14676 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14679 /* end confdefs.h. */
14680 $ac_includes_default
14685 /* Are we little or big endian? From Harbison&Steele. */
14689 char c[sizeof (long int)];
14692 return u.c[sizeof (long int) - 1] == 1;
14698 if ac_fn_c_try_run
"$LINENO"; then :
14699 ac_cv_c_bigendian
=no
14701 ac_cv_c_bigendian
=yes
14703 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14704 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14710 $as_echo "$ac_cv_c_bigendian" >&6; }
14711 case $ac_cv_c_bigendian in #(
14713 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14719 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14723 as_fn_error $?
"unknown endianness
14724 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14728 $as_echo_n "checking for inline... " >&6; }
14729 if ${ac_cv_c_inline+:} false
; then :
14730 $as_echo_n "(cached) " >&6
14733 for ac_kw
in inline __inline__ __inline
; do
14734 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14735 /* end confdefs.h. */
14736 #ifndef __cplusplus
14738 static $ac_kw foo_t static_foo () {return 0; }
14739 $ac_kw foo_t foo () {return 0; }
14743 if ac_fn_c_try_compile
"$LINENO"; then :
14744 ac_cv_c_inline
=$ac_kw
14746 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14747 test "$ac_cv_c_inline" != no
&& break
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14752 $as_echo "$ac_cv_c_inline" >&6; }
14754 case $ac_cv_c_inline in
14757 case $ac_cv_c_inline in
14759 *) ac_val
=$ac_cv_c_inline;;
14761 cat >>confdefs.h
<<_ACEOF
14762 #ifndef __cplusplus
14763 #define inline $ac_val
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf format archetype" >&5
14770 $as_echo_n "checking for printf format archetype... " >&6; }
14771 if ${pgac_cv_printf_archetype+:} false
; then :
14772 $as_echo_n "(cached) " >&6
14774 pgac_cv_printf_archetype
=gnu_printf
14775 ac_save_c_werror_flag
=$ac_c_werror_flag
14776 ac_c_werror_flag
=yes
14777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14778 /* end confdefs.h. */
14779 extern void pgac_write(int ignore, const char *fmt,...)
14780 __attribute__((format($pgac_cv_printf_archetype, 2, 3)));
14784 pgac_write(0, "error %s: %m", "foo");
14789 if ac_fn_c_try_compile
"$LINENO"; then :
14790 ac_archetype_ok
=yes
14794 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14795 ac_c_werror_flag
=$ac_save_c_werror_flag
14797 if [ "$ac_archetype_ok" = no
]; then
14798 pgac_cv_printf_archetype
=__syslog__
14799 ac_save_c_werror_flag
=$ac_c_werror_flag
14800 ac_c_werror_flag
=yes
14801 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14802 /* end confdefs.h. */
14803 extern void pgac_write(int ignore, const char *fmt,...)
14804 __attribute__((format($pgac_cv_printf_archetype, 2, 3)));
14808 pgac_write(0, "error %s: %m", "foo");
14813 if ac_fn_c_try_compile
"$LINENO"; then :
14814 ac_archetype_ok
=yes
14818 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14819 ac_c_werror_flag
=$ac_save_c_werror_flag
14821 if [ "$ac_archetype_ok" = no
]; then
14822 pgac_cv_printf_archetype
=printf
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_printf_archetype" >&5
14827 $as_echo "$pgac_cv_printf_archetype" >&6; }
14829 cat >>confdefs.h
<<_ACEOF
14830 #define PG_PRINTF_ATTRIBUTE $pgac_cv_printf_archetype
14834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Static_assert" >&5
14835 $as_echo_n "checking for _Static_assert... " >&6; }
14836 if ${pgac_cv__static_assert+:} false
; then :
14837 $as_echo_n "(cached) " >&6
14839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14840 /* end confdefs.h. */
14845 ({ _Static_assert(1, "foo"); })
14850 if ac_fn_c_try_link
"$LINENO"; then :
14851 pgac_cv__static_assert
=yes
14853 pgac_cv__static_assert
=no
14855 rm -f core conftest.err conftest.
$ac_objext \
14856 conftest
$ac_exeext conftest.
$ac_ext
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__static_assert" >&5
14859 $as_echo "$pgac_cv__static_assert" >&6; }
14860 if test x
"$pgac_cv__static_assert" = xyes
; then
14862 $as_echo "#define HAVE__STATIC_ASSERT 1" >>confdefs.h
14865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
14866 $as_echo_n "checking for typeof... " >&6; }
14867 if ${pgac_cv_c_typeof+:} false
; then :
14868 $as_echo_n "(cached) " >&6
14870 pgac_cv_c_typeof
=no
14871 for pgac_kw
in typeof __typeof__ decltype
; do
14872 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14873 /* end confdefs.h. */
14886 if ac_fn_c_try_compile
"$LINENO"; then :
14887 pgac_cv_c_typeof
=$pgac_kw
14889 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14890 test "$pgac_cv_c_typeof" != no
&& break
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_c_typeof" >&5
14894 $as_echo "$pgac_cv_c_typeof" >&6; }
14895 if test "$pgac_cv_c_typeof" != no
; then
14897 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
14899 if test "$pgac_cv_c_typeof" != typeof
; then
14901 cat >>confdefs.h
<<_ACEOF
14902 #define typeof $pgac_cv_c_typeof
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_types_compatible_p" >&5
14908 $as_echo_n "checking for __builtin_types_compatible_p... " >&6; }
14909 if ${pgac_cv__types_compatible+:} false
; then :
14910 $as_echo_n "(cached) " >&6
14912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14913 /* end confdefs.h. */
14918 int x; static int y[__builtin_types_compatible_p(__typeof__(x), int)];
14923 if ac_fn_c_try_compile
"$LINENO"; then :
14924 pgac_cv__types_compatible
=yes
14926 pgac_cv__types_compatible
=no
14928 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__types_compatible" >&5
14931 $as_echo "$pgac_cv__types_compatible" >&6; }
14932 if test x
"$pgac_cv__types_compatible" = xyes
; then
14934 $as_echo "#define HAVE__BUILTIN_TYPES_COMPATIBLE_P 1" >>confdefs.h
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_constant_p" >&5
14938 $as_echo_n "checking for __builtin_constant_p... " >&6; }
14939 if ${pgac_cv__builtin_constant_p+:} false
; then :
14940 $as_echo_n "(cached) " >&6
14942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14943 /* end confdefs.h. */
14945 static int y[__builtin_constant_p(x) ? x : 1];
14946 static int z[__builtin_constant_p("string literal") ? 1 : x];
14950 if ac_fn_c_try_compile
"$LINENO"; then :
14951 pgac_cv__builtin_constant_p
=yes
14953 pgac_cv__builtin_constant_p
=no
14955 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_constant_p" >&5
14958 $as_echo "$pgac_cv__builtin_constant_p" >&6; }
14959 if test x
"$pgac_cv__builtin_constant_p" = xyes
; then
14961 $as_echo "#define HAVE__BUILTIN_CONSTANT_P 1" >>confdefs.h
14964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unreachable" >&5
14965 $as_echo_n "checking for __builtin_unreachable... " >&6; }
14966 if ${pgac_cv__builtin_unreachable+:} false
; then :
14967 $as_echo_n "(cached) " >&6
14969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14970 /* end confdefs.h. */
14975 __builtin_unreachable();
14980 if ac_fn_c_try_link
"$LINENO"; then :
14981 pgac_cv__builtin_unreachable
=yes
14983 pgac_cv__builtin_unreachable
=no
14985 rm -f core conftest.err conftest.
$ac_objext \
14986 conftest
$ac_exeext conftest.
$ac_ext
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_unreachable" >&5
14989 $as_echo "$pgac_cv__builtin_unreachable" >&6; }
14990 if test x
"$pgac_cv__builtin_unreachable" = xyes
; then
14992 $as_echo "#define HAVE__BUILTIN_UNREACHABLE 1" >>confdefs.h
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for computed goto support" >&5
14996 $as_echo_n "checking for computed goto support... " >&6; }
14997 if ${pgac_cv_computed_goto+:} false
; then :
14998 $as_echo_n "(cached) " >&6
15000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15001 /* end confdefs.h. */
15006 void *labeladdrs[] = {&&my_label};
15007 goto *labeladdrs[0];
15015 if ac_fn_c_try_compile
"$LINENO"; then :
15016 pgac_cv_computed_goto
=yes
15018 pgac_cv_computed_goto
=no
15020 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_computed_goto" >&5
15023 $as_echo "$pgac_cv_computed_goto" >&6; }
15024 if test x
"$pgac_cv_computed_goto" = xyes
; then
15026 $as_echo "#define HAVE_COMPUTED_GOTO 1" >>confdefs.h
15029 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
15033 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
; then :
15035 cat >>confdefs.h
<<_ACEOF
15036 #define HAVE_STRUCT_TM_TM_ZONE 1
15043 ac_fn_c_check_type
"$LINENO" "union semun" "ac_cv_type_union_semun" "#include <sys/types.h>
15044 #include <sys/ipc.h>
15045 #include <sys/sem.h>
15048 if test "x$ac_cv_type_union_semun" = xyes
; then :
15050 cat >>confdefs.h
<<_ACEOF
15051 #define HAVE_UNION_SEMUN 1
15057 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/socket.h>
15059 if test "x$ac_cv_type_socklen_t" = xyes
; then :
15061 cat >>confdefs.h
<<_ACEOF
15062 #define HAVE_SOCKLEN_T 1
15068 ac_fn_c_check_member
"$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
15069 #include <sys/socket.h>
15072 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes
; then :
15074 cat >>confdefs.h
<<_ACEOF
15075 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale_t" >&5
15083 $as_echo_n "checking for locale_t... " >&6; }
15084 if ${pgac_cv_type_locale_t+:} false
; then :
15085 $as_echo_n "(cached) " >&6
15087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15088 /* end confdefs.h. */
15089 #include <locale.h>
15099 if ac_fn_c_try_compile
"$LINENO"; then :
15100 pgac_cv_type_locale_t
=yes
15102 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15103 /* end confdefs.h. */
15104 #include <xlocale.h>
15114 if ac_fn_c_try_compile
"$LINENO"; then :
15115 pgac_cv_type_locale_t
='yes (in xlocale.h)'
15117 pgac_cv_type_locale_t
=no
15119 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15121 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_locale_t" >&5
15124 $as_echo "$pgac_cv_type_locale_t" >&6; }
15125 if test "$pgac_cv_type_locale_t" != no
; then
15127 $as_echo "#define HAVE_LOCALE_T 1" >>confdefs.h
15130 if test "$pgac_cv_type_locale_t" = 'yes (in xlocale.h)'; then
15132 $as_echo "#define LOCALE_T_IN_XLOCALE 1" >>confdefs.h
15136 # MSVC doesn't cope well with defining restrict to __restrict, the
15137 # spelling it understands, because it conflicts with
15138 # __declspec(restrict). Therefore we define pg_restrict to the
15139 # appropriate definition, which presumably won't conflict.
15141 # Allow platforms with buggy compilers to force restrict to not be
15142 # used by setting $FORCE_DISABLE_RESTRICT=yes in the relevant
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
15145 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
15146 if ${ac_cv_c_restrict+:} false
; then :
15147 $as_echo_n "(cached) " >&6
15149 ac_cv_c_restrict
=no
15150 # The order here caters to the fact that C++ does not require restrict.
15151 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
15152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15153 /* end confdefs.h. */
15154 typedef int * int_ptr;
15155 int foo (int_ptr $ac_kw ip) {
15162 int * $ac_kw t = s;
15169 if ac_fn_c_try_compile
"$LINENO"; then :
15170 ac_cv_c_restrict
=$ac_kw
15172 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15173 test "$ac_cv_c_restrict" != no
&& break
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
15178 $as_echo "$ac_cv_c_restrict" >&6; }
15180 case $ac_cv_c_restrict in
15182 no
) $as_echo "#define restrict /**/" >>confdefs.h
15184 *) cat >>confdefs.h
<<_ACEOF
15185 #define restrict $ac_cv_c_restrict
15190 if test "$ac_cv_c_restrict" = "no" -o "x$FORCE_DISABLE_RESTRICT" = "xyes"; then
15193 pg_restrict
="$ac_cv_c_restrict"
15196 cat >>confdefs.h
<<_ACEOF
15197 #define pg_restrict $pg_restrict
15201 ac_fn_c_check_type
"$LINENO" "struct option" "ac_cv_type_struct_option" "#ifdef HAVE_GETOPT_H
15202 #include <getopt.h>
15205 if test "x$ac_cv_type_struct_option" = xyes
; then :
15207 cat >>confdefs.h
<<_ACEOF
15208 #define HAVE_STRUCT_OPTION 1
15215 if test "$with_zlib" = yes; then
15216 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
15217 # did not). While we could work around the lack of z_streamp, it
15218 # seems unwise to encourage people to use such old zlib versions...
15219 ac_fn_c_check_type
"$LINENO" "z_streamp" "ac_cv_type_z_streamp" "#include <zlib.h>
15221 if test "x$ac_cv_type_z_streamp" = xyes
; then :
15224 as_fn_error $?
"zlib version is too old
15225 Use --without-zlib to disable zlib support." "$LINENO" 5
15232 # On x86_64, check if we can compile a popcntq instruction
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports x86_64 popcntq" >&5
15234 $as_echo_n "checking whether assembler supports x86_64 popcntq... " >&6; }
15235 if ${pgac_cv_have_x86_64_popcntq+:} false
; then :
15236 $as_echo_n "(cached) " >&6
15238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15239 /* end confdefs.h. */
15244 long long x = 1; long long r;
15245 __asm__ __volatile__ (" popcntq %1,%0\n" : "=q"(r) : "rm"(x));
15250 if ac_fn_c_try_compile
"$LINENO"; then :
15251 pgac_cv_have_x86_64_popcntq
=yes
15253 pgac_cv_have_x86_64_popcntq
=no
15255 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_have_x86_64_popcntq" >&5
15258 $as_echo "$pgac_cv_have_x86_64_popcntq" >&6; }
15259 if test x
"$pgac_cv_have_x86_64_popcntq" = xyes
; then
15261 $as_echo "#define HAVE_X86_64_POPCNTQ 1" >>confdefs.h
15266 # On PPC, check if compiler accepts "i"(x) when __builtin_constant_p(x).
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __builtin_constant_p(x) implies \"i\"(x) acceptance" >&5
15268 $as_echo_n "checking whether __builtin_constant_p(x) implies \"i\"(x) acceptance... " >&6; }
15269 if ${pgac_cv_have_i_constraint__builtin_constant_p+:} false
; then :
15270 $as_echo_n "(cached) " >&6
15272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15273 /* end confdefs.h. */
15275 addi(int ra, int si)
15278 if (__builtin_constant_p(si))
15279 __asm__ __volatile__(
15280 " addi %0,%1,%2\n" : "=r"(res) : "b"(ra), "i"(si));
15283 int test_adds(int x) { return addi(3, x) + addi(x, 5); }
15292 if ac_fn_c_try_compile
"$LINENO"; then :
15293 pgac_cv_have_i_constraint__builtin_constant_p
=yes
15295 pgac_cv_have_i_constraint__builtin_constant_p
=no
15297 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_have_i_constraint__builtin_constant_p" >&5
15300 $as_echo "$pgac_cv_have_i_constraint__builtin_constant_p" >&6; }
15301 if test x
"$pgac_cv_have_i_constraint__builtin_constant_p" = xyes
; then
15303 $as_echo "#define HAVE_I_CONSTRAINT__BUILTIN_CONSTANT_P 1" >>confdefs.h
15309 # Check largefile support. You might think this is a system service not a
15310 # compiler characteristic, but you'd be wrong. We must check this before
15311 # probing existence of related functions such as fseeko, since the largefile
15312 # defines can affect what is generated for that.
15313 if test "$PORTNAME" != "win32"; then
15314 # Check whether --enable-largefile was given.
15315 if test "${enable_largefile+set}" = set; then :
15316 enableval
=$enable_largefile;
15319 if test "$enable_largefile" != no
; then
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15322 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15323 if ${ac_cv_sys_largefile_CC+:} false
; then :
15324 $as_echo_n "(cached) " >&6
15326 ac_cv_sys_largefile_CC
=no
15327 if test "$GCC" != yes; then
15330 # IRIX 6.2 and later do not support large files by default,
15331 # so use the C compiler's -n32 option if that helps.
15332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15333 /* end confdefs.h. */
15334 #include <sys/types.h>
15335 /* Check that off_t can represent 2**63 - 1 correctly.
15336 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15337 since some C++ compilers masquerading as C compilers
15338 incorrectly reject 9223372036854775807. */
15339 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15340 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15341 && LARGE_OFF_T % 2147483647 == 1)
15351 if ac_fn_c_try_compile
"$LINENO"; then :
15354 rm -f core conftest.err conftest.
$ac_objext
15356 if ac_fn_c_try_compile
"$LINENO"; then :
15357 ac_cv_sys_largefile_CC
=' -n32'; break
15359 rm -f core conftest.err conftest.
$ac_objext
15363 rm -f conftest.
$ac_ext
15366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15367 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15368 if test "$ac_cv_sys_largefile_CC" != no
; then
15369 CC
=$CC$ac_cv_sys_largefile_CC
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15373 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15374 if ${ac_cv_sys_file_offset_bits+:} false
; then :
15375 $as_echo_n "(cached) " >&6
15378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15379 /* end confdefs.h. */
15380 #include <sys/types.h>
15381 /* Check that off_t can represent 2**63 - 1 correctly.
15382 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15383 since some C++ compilers masquerading as C compilers
15384 incorrectly reject 9223372036854775807. */
15385 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15386 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15387 && LARGE_OFF_T % 2147483647 == 1)
15397 if ac_fn_c_try_compile
"$LINENO"; then :
15398 ac_cv_sys_file_offset_bits
=no
; break
15400 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15402 /* end confdefs.h. */
15403 #define _FILE_OFFSET_BITS 64
15404 #include <sys/types.h>
15405 /* Check that off_t can represent 2**63 - 1 correctly.
15406 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15407 since some C++ compilers masquerading as C compilers
15408 incorrectly reject 9223372036854775807. */
15409 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15410 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15411 && LARGE_OFF_T % 2147483647 == 1)
15421 if ac_fn_c_try_compile
"$LINENO"; then :
15422 ac_cv_sys_file_offset_bits
=64; break
15424 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15425 ac_cv_sys_file_offset_bits
=unknown
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15430 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15431 case $ac_cv_sys_file_offset_bits in #(
15434 cat >>confdefs.h
<<_ACEOF
15435 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15440 if test $ac_cv_sys_file_offset_bits = unknown
; then
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15442 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15443 if ${ac_cv_sys_large_files+:} false
; then :
15444 $as_echo_n "(cached) " >&6
15447 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15448 /* end confdefs.h. */
15449 #include <sys/types.h>
15450 /* Check that off_t can represent 2**63 - 1 correctly.
15451 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15452 since some C++ compilers masquerading as C compilers
15453 incorrectly reject 9223372036854775807. */
15454 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15455 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15456 && LARGE_OFF_T % 2147483647 == 1)
15466 if ac_fn_c_try_compile
"$LINENO"; then :
15467 ac_cv_sys_large_files
=no
; break
15469 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15471 /* end confdefs.h. */
15472 #define _LARGE_FILES 1
15473 #include <sys/types.h>
15474 /* Check that off_t can represent 2**63 - 1 correctly.
15475 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15476 since some C++ compilers masquerading as C compilers
15477 incorrectly reject 9223372036854775807. */
15478 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15479 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15480 && LARGE_OFF_T % 2147483647 == 1)
15490 if ac_fn_c_try_compile
"$LINENO"; then :
15491 ac_cv_sys_large_files
=1; break
15493 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15494 ac_cv_sys_large_files
=unknown
15498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15499 $as_echo "$ac_cv_sys_large_files" >&6; }
15500 case $ac_cv_sys_large_files in #(
15503 cat >>confdefs.h
<<_ACEOF
15504 #define _LARGE_FILES $ac_cv_sys_large_files
15517 # The cast to long int works around a bug in the HP C Compiler
15518 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15519 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15520 # This bug is HP SR number 8606223364.
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
15522 $as_echo_n "checking size of off_t... " >&6; }
15523 if ${ac_cv_sizeof_off_t+:} false
; then :
15524 $as_echo_n "(cached) " >&6
15526 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
15529 if test "$ac_cv_type_off_t" = yes; then
15530 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15531 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15532 as_fn_error
77 "cannot compute sizeof (off_t)
15533 See \`config.log' for more details" "$LINENO" 5; }
15535 ac_cv_sizeof_off_t
=0
15540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
15541 $as_echo "$ac_cv_sizeof_off_t" >&6; }
15545 cat >>confdefs.h
<<_ACEOF
15546 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
15551 # If we don't have largefile support, can't handle segment size >= 2GB.
15552 if test "$ac_cv_sizeof_off_t" -lt 8; then
15553 if expr $RELSEG_SIZE '*' $blocksize '>=' 2 '*' 1024 '*' 1024; then
15554 as_fn_error $?
"Large file support is not enabled. Segment size cannot be larger than 1GB." "$LINENO" 5
15558 # The cast to long int works around a bug in the HP C Compiler
15559 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15560 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15561 # This bug is HP SR number 8606223364.
15562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of bool" >&5
15563 $as_echo_n "checking size of bool... " >&6; }
15564 if ${ac_cv_sizeof_bool+:} false
; then :
15565 $as_echo_n "(cached) " >&6
15567 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (bool))" "ac_cv_sizeof_bool" "#ifdef HAVE_STDBOOL_H
15568 #include <stdbool.h>
15573 if test "$ac_cv_type_bool" = yes; then
15574 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15576 as_fn_error
77 "cannot compute sizeof (bool)
15577 See \`config.log' for more details" "$LINENO" 5; }
15579 ac_cv_sizeof_bool
=0
15584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_bool" >&5
15585 $as_echo "$ac_cv_sizeof_bool" >&6; }
15589 cat >>confdefs.h
<<_ACEOF
15590 #define SIZEOF_BOOL $ac_cv_sizeof_bool
15595 if test "$ac_cv_header_stdbool_h" = yes -a "$ac_cv_sizeof_bool" = 1; then
15597 $as_echo "#define PG_USE_STDBOOL 1" >>confdefs.h
15603 ## Functions, global variables
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int timezone" >&5
15607 $as_echo_n "checking for int timezone... " >&6; }
15608 if ${pgac_cv_var_int_timezone+:} false
; then :
15609 $as_echo_n "(cached) " >&6
15611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15612 /* end confdefs.h. */
15619 res = timezone / 60;
15621 res = _timezone / 60;
15627 if ac_fn_c_try_link
"$LINENO"; then :
15628 pgac_cv_var_int_timezone
=yes
15630 pgac_cv_var_int_timezone
=no
15632 rm -f core conftest.err conftest.
$ac_objext \
15633 conftest
$ac_exeext conftest.
$ac_ext
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_timezone" >&5
15636 $as_echo "$pgac_cv_var_int_timezone" >&6; }
15637 if test x
"$pgac_cv_var_int_timezone" = xyes
; then
15639 $as_echo "#define HAVE_INT_TIMEZONE 1" >>confdefs.h
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wcstombs_l declaration" >&5
15643 $as_echo_n "checking for wcstombs_l declaration... " >&6; }
15644 if ${pgac_cv_func_wcstombs_l+:} false
; then :
15645 $as_echo_n "(cached) " >&6
15647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15648 /* end confdefs.h. */
15649 #include <stdlib.h>
15650 #include <locale.h>
15661 if ac_fn_c_try_compile
"$LINENO"; then :
15662 pgac_cv_func_wcstombs_l
='yes'
15664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15665 /* end confdefs.h. */
15666 #include <stdlib.h>
15667 #include <locale.h>
15668 #include <xlocale.h>
15679 if ac_fn_c_try_compile
"$LINENO"; then :
15680 pgac_cv_func_wcstombs_l
='yes (in xlocale.h)'
15682 pgac_cv_func_wcstombs_l
='no'
15684 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15686 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_wcstombs_l" >&5
15689 $as_echo "$pgac_cv_func_wcstombs_l" >&6; }
15690 if test "$pgac_cv_func_wcstombs_l" = 'yes (in xlocale.h)'; then
15692 $as_echo "#define WCSTOMBS_L_IN_XLOCALE 1" >>confdefs.h
15696 # Some versions of libedit contain strlcpy(), setproctitle(), and other
15697 # symbols that that library has no business exposing to the world. Pending
15698 # acquisition of a clue by those developers, ignore libedit (including its
15699 # possible alias of libreadline) while checking for everything else.
15700 LIBS_including_readline
="$LIBS"
15701 LIBS
=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
15703 for ac_func
in backtrace_symbols copyfile getifaddrs getpeerucred inet_pton kqueue mbstowcs_l memset_s posix_fallocate ppoll pthread_is_threaded_np setproctitle setproctitle_fast strchrnul strsignal syncfs sync_file_range uselocale wcstombs_l
15705 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15706 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15707 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15708 cat >>confdefs.h
<<_ACEOF
15709 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15716 # These typically are compiler builtins, for which AC_CHECK_FUNCS fails.
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap16" >&5
15718 $as_echo_n "checking for __builtin_bswap16... " >&6; }
15719 if ${pgac_cv__builtin_bswap16+:} false
; then :
15720 $as_echo_n "(cached) " >&6
15722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15723 /* end confdefs.h. */
15726 call__builtin_bswap16(int x)
15728 return __builtin_bswap16(x);
15738 if ac_fn_c_try_link
"$LINENO"; then :
15739 pgac_cv__builtin_bswap16
=yes
15741 pgac_cv__builtin_bswap16
=no
15743 rm -f core conftest.err conftest.
$ac_objext \
15744 conftest
$ac_exeext conftest.
$ac_ext
15746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_bswap16" >&5
15747 $as_echo "$pgac_cv__builtin_bswap16" >&6; }
15748 if test x
"${pgac_cv__builtin_bswap16}" = xyes
; then
15750 cat >>confdefs.h
<<_ACEOF
15751 #define HAVE__BUILTIN_BSWAP16 1
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap32" >&5
15756 $as_echo_n "checking for __builtin_bswap32... " >&6; }
15757 if ${pgac_cv__builtin_bswap32+:} false
; then :
15758 $as_echo_n "(cached) " >&6
15760 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15761 /* end confdefs.h. */
15764 call__builtin_bswap32(int x)
15766 return __builtin_bswap32(x);
15776 if ac_fn_c_try_link
"$LINENO"; then :
15777 pgac_cv__builtin_bswap32
=yes
15779 pgac_cv__builtin_bswap32
=no
15781 rm -f core conftest.err conftest.
$ac_objext \
15782 conftest
$ac_exeext conftest.
$ac_ext
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_bswap32" >&5
15785 $as_echo "$pgac_cv__builtin_bswap32" >&6; }
15786 if test x
"${pgac_cv__builtin_bswap32}" = xyes
; then
15788 cat >>confdefs.h
<<_ACEOF
15789 #define HAVE__BUILTIN_BSWAP32 1
15793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap64" >&5
15794 $as_echo_n "checking for __builtin_bswap64... " >&6; }
15795 if ${pgac_cv__builtin_bswap64+:} false
; then :
15796 $as_echo_n "(cached) " >&6
15798 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15799 /* end confdefs.h. */
15802 call__builtin_bswap64(long int x)
15804 return __builtin_bswap64(x);
15814 if ac_fn_c_try_link
"$LINENO"; then :
15815 pgac_cv__builtin_bswap64
=yes
15817 pgac_cv__builtin_bswap64
=no
15819 rm -f core conftest.err conftest.
$ac_objext \
15820 conftest
$ac_exeext conftest.
$ac_ext
15822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_bswap64" >&5
15823 $as_echo "$pgac_cv__builtin_bswap64" >&6; }
15824 if test x
"${pgac_cv__builtin_bswap64}" = xyes
; then
15826 cat >>confdefs.h
<<_ACEOF
15827 #define HAVE__BUILTIN_BSWAP64 1
15831 # We assume that we needn't test all widths of these explicitly:
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5
15833 $as_echo_n "checking for __builtin_clz... " >&6; }
15834 if ${pgac_cv__builtin_clz+:} false
; then :
15835 $as_echo_n "(cached) " >&6
15837 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15838 /* end confdefs.h. */
15841 call__builtin_clz(unsigned int x)
15843 return __builtin_clz(x);
15853 if ac_fn_c_try_link
"$LINENO"; then :
15854 pgac_cv__builtin_clz
=yes
15856 pgac_cv__builtin_clz
=no
15858 rm -f core conftest.err conftest.
$ac_objext \
15859 conftest
$ac_exeext conftest.
$ac_ext
15861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_clz" >&5
15862 $as_echo "$pgac_cv__builtin_clz" >&6; }
15863 if test x
"${pgac_cv__builtin_clz}" = xyes
; then
15865 cat >>confdefs.h
<<_ACEOF
15866 #define HAVE__BUILTIN_CLZ 1
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_ctz" >&5
15871 $as_echo_n "checking for __builtin_ctz... " >&6; }
15872 if ${pgac_cv__builtin_ctz+:} false
; then :
15873 $as_echo_n "(cached) " >&6
15875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15876 /* end confdefs.h. */
15879 call__builtin_ctz(unsigned int x)
15881 return __builtin_ctz(x);
15891 if ac_fn_c_try_link
"$LINENO"; then :
15892 pgac_cv__builtin_ctz
=yes
15894 pgac_cv__builtin_ctz
=no
15896 rm -f core conftest.err conftest.
$ac_objext \
15897 conftest
$ac_exeext conftest.
$ac_ext
15899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_ctz" >&5
15900 $as_echo "$pgac_cv__builtin_ctz" >&6; }
15901 if test x
"${pgac_cv__builtin_ctz}" = xyes
; then
15903 cat >>confdefs.h
<<_ACEOF
15904 #define HAVE__BUILTIN_CTZ 1
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_popcount" >&5
15909 $as_echo_n "checking for __builtin_popcount... " >&6; }
15910 if ${pgac_cv__builtin_popcount+:} false
; then :
15911 $as_echo_n "(cached) " >&6
15913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15914 /* end confdefs.h. */
15917 call__builtin_popcount(unsigned int x)
15919 return __builtin_popcount(x);
15929 if ac_fn_c_try_link
"$LINENO"; then :
15930 pgac_cv__builtin_popcount
=yes
15932 pgac_cv__builtin_popcount
=no
15934 rm -f core conftest.err conftest.
$ac_objext \
15935 conftest
$ac_exeext conftest.
$ac_ext
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_popcount" >&5
15938 $as_echo "$pgac_cv__builtin_popcount" >&6; }
15939 if test x
"${pgac_cv__builtin_popcount}" = xyes
; then
15941 cat >>confdefs.h
<<_ACEOF
15942 #define HAVE__BUILTIN_POPCOUNT 1
15946 # __builtin_frame_address may draw a diagnostic for non-constant argument,
15947 # so it needs a different test function.
15948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_frame_address" >&5
15949 $as_echo_n "checking for __builtin_frame_address... " >&6; }
15950 if ${pgac_cv__builtin_frame_address+:} false
; then :
15951 $as_echo_n "(cached) " >&6
15953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15954 /* end confdefs.h. */
15957 call__builtin_frame_address(void)
15959 return __builtin_frame_address(0);
15969 if ac_fn_c_try_link
"$LINENO"; then :
15970 pgac_cv__builtin_frame_address
=yes
15972 pgac_cv__builtin_frame_address
=no
15974 rm -f core conftest.err conftest.
$ac_objext \
15975 conftest
$ac_exeext conftest.
$ac_ext
15977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_frame_address" >&5
15978 $as_echo "$pgac_cv__builtin_frame_address" >&6; }
15979 if test x
"${pgac_cv__builtin_frame_address}" = xyes
; then
15981 cat >>confdefs.h
<<_ACEOF
15982 #define HAVE__BUILTIN_FRAME_ADDRESS 1
15987 # We require 64-bit fseeko() to be available, but run this check anyway
15988 # in case it finds that _LARGEFILE_SOURCE has to be #define'd for that.
15989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15990 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
15991 if ${ac_cv_sys_largefile_source+:} false
; then :
15992 $as_echo_n "(cached) " >&6
15995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15996 /* end confdefs.h. */
15997 #include <sys/types.h> /* for off_t */
16002 int (*fp) (FILE *, off_t, int) = fseeko;
16003 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
16008 if ac_fn_c_try_link
"$LINENO"; then :
16009 ac_cv_sys_largefile_source
=no
; break
16011 rm -f core conftest.err conftest.
$ac_objext \
16012 conftest
$ac_exeext conftest.
$ac_ext
16013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16014 /* end confdefs.h. */
16015 #define _LARGEFILE_SOURCE 1
16016 #include <sys/types.h> /* for off_t */
16021 int (*fp) (FILE *, off_t, int) = fseeko;
16022 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
16027 if ac_fn_c_try_link
"$LINENO"; then :
16028 ac_cv_sys_largefile_source
=1; break
16030 rm -f core conftest.err conftest.
$ac_objext \
16031 conftest
$ac_exeext conftest.
$ac_ext
16032 ac_cv_sys_largefile_source
=unknown
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
16037 $as_echo "$ac_cv_sys_largefile_source" >&6; }
16038 case $ac_cv_sys_largefile_source in #(
16041 cat >>confdefs.h
<<_ACEOF
16042 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
16048 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16049 # in glibc 2.1.3, but that breaks too many other things.
16050 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16051 if test $ac_cv_sys_largefile_source != unknown
; then
16053 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
16058 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
16059 # by calling it, 2009-04-02
16060 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
16061 # The Clang compiler raises a warning for an undeclared identifier that matches
16062 # a compiler builtin function. All extant Clang versions are affected, as of
16063 # Clang 3.6.0. Test a builtin known to every version. This problem affects the
16064 # C and Objective C languages, but Clang does report an error under C++ and
16067 # Passing -fno-builtin to the compiler would suppress this problem. That
16068 # strategy would have the advantage of being insensitive to stray warnings, but
16069 # it would make tests less realistic.
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how $CC reports undeclared, standard C functions" >&5
16071 $as_echo_n "checking how $CC reports undeclared, standard C functions... " >&6; }
16072 if ${ac_cv_c_decl_report+:} false
; then :
16073 $as_echo_n "(cached) " >&6
16075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16076 /* end confdefs.h. */
16086 if ac_fn_c_try_compile
"$LINENO"; then :
16087 if test -s conftest.err
; then :
16088 # For AC_CHECK_DECL to react to warnings, the compiler must be silent on
16089 # valid AC_CHECK_DECL input. No library function is consistently available
16090 # on freestanding implementations, so test against a dummy declaration.
16091 # Include always-available headers on the off chance that they somehow
16093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16094 /* end confdefs.h. */
16096 #include <limits.h>
16097 #include <stdarg.h>
16098 #include <stddef.h>
16099 extern void ac_decl (int, char *);
16104 (void) ac_decl ((int) 0, (char *) 0);
16114 if ac_fn_c_try_compile
"$LINENO"; then :
16115 if test -s conftest.err
; then :
16116 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16117 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16118 as_fn_error $?
"cannot detect from compiler exit status or warnings
16119 See \`config.log' for more details" "$LINENO" 5; }
16121 ac_cv_c_decl_report
=warning
16124 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16125 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16126 as_fn_error $?
"cannot compile a simple declaration test
16127 See \`config.log' for more details" "$LINENO" 5; }
16129 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16131 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16133 as_fn_error $?
"compiler does not report undeclared identifiers
16134 See \`config.log' for more details" "$LINENO" 5; }
16137 ac_cv_c_decl_report
=error
16139 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_decl_report" >&5
16142 $as_echo "$ac_cv_c_decl_report" >&6; }
16144 case $ac_cv_c_decl_report in
16145 warning
) ac_c_decl_warn_flag
=yes ;;
16146 *) ac_c_decl_warn_flag
= ;;
16149 if test "$PORTNAME" != "solaris"; then :
16151 for ac_func
in posix_fadvise
16153 ac_fn_c_check_func
"$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
16154 if test "x$ac_cv_func_posix_fadvise" = xyes
; then :
16155 cat >>confdefs.h
<<_ACEOF
16156 #define HAVE_POSIX_FADVISE 1
16162 ac_fn_c_check_decl
"$LINENO" "posix_fadvise" "ac_cv_have_decl_posix_fadvise" "#include <fcntl.h>
16164 if test "x$ac_cv_have_decl_posix_fadvise" = xyes
; then :
16170 cat >>confdefs.h
<<_ACEOF
16171 #define HAVE_DECL_POSIX_FADVISE $ac_have_decl
16177 ac_fn_c_check_decl
"$LINENO" "fdatasync" "ac_cv_have_decl_fdatasync" "#include <unistd.h>
16179 if test "x$ac_cv_have_decl_fdatasync" = xyes
; then :
16185 cat >>confdefs.h
<<_ACEOF
16186 #define HAVE_DECL_FDATASYNC $ac_have_decl
16189 ac_fn_c_check_decl
"$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default"
16190 if test "x$ac_cv_have_decl_strlcat" = xyes
; then :
16196 cat >>confdefs.h
<<_ACEOF
16197 #define HAVE_DECL_STRLCAT $ac_have_decl
16199 ac_fn_c_check_decl
"$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default"
16200 if test "x$ac_cv_have_decl_strlcpy" = xyes
; then :
16206 cat >>confdefs.h
<<_ACEOF
16207 #define HAVE_DECL_STRLCPY $ac_have_decl
16209 ac_fn_c_check_decl
"$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
16210 if test "x$ac_cv_have_decl_strnlen" = xyes
; then :
16216 cat >>confdefs.h
<<_ACEOF
16217 #define HAVE_DECL_STRNLEN $ac_have_decl
16221 # We can't use AC_REPLACE_FUNCS to replace these functions, because it
16222 # won't handle deployment target restrictions on macOS
16223 ac_fn_c_check_decl
"$LINENO" "preadv" "ac_cv_have_decl_preadv" "#include <sys/uio.h>
16225 if test "x$ac_cv_have_decl_preadv" = xyes
; then :
16231 cat >>confdefs.h
<<_ACEOF
16232 #define HAVE_DECL_PREADV $ac_have_decl
16234 if test $ac_have_decl = 1; then :
16237 case " $LIBOBJS " in
16238 *" preadv.$ac_objext "* ) ;;
16239 *) LIBOBJS
="$LIBOBJS preadv.$ac_objext"
16245 ac_fn_c_check_decl
"$LINENO" "pwritev" "ac_cv_have_decl_pwritev" "#include <sys/uio.h>
16247 if test "x$ac_cv_have_decl_pwritev" = xyes
; then :
16253 cat >>confdefs.h
<<_ACEOF
16254 #define HAVE_DECL_PWRITEV $ac_have_decl
16256 if test $ac_have_decl = 1; then :
16259 case " $LIBOBJS " in
16260 *" pwritev.$ac_objext "* ) ;;
16261 *) LIBOBJS
="$LIBOBJS pwritev.$ac_objext"
16268 # This is probably only present on macOS, but may as well check always
16269 ac_fn_c_check_decl
"$LINENO" "F_FULLFSYNC" "ac_cv_have_decl_F_FULLFSYNC" "#include <fcntl.h>
16271 if test "x$ac_cv_have_decl_F_FULLFSYNC" = xyes
; then :
16277 cat >>confdefs.h
<<_ACEOF
16278 #define HAVE_DECL_F_FULLFSYNC $ac_have_decl
16282 ac_fn_c_check_func
"$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
16283 if test "x$ac_cv_func_explicit_bzero" = xyes
; then :
16284 $as_echo "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
16287 case " $LIBOBJS " in
16288 *" explicit_bzero.$ac_objext "* ) ;;
16289 *) LIBOBJS
="$LIBOBJS explicit_bzero.$ac_objext"
16295 ac_fn_c_check_func
"$LINENO" "getopt" "ac_cv_func_getopt"
16296 if test "x$ac_cv_func_getopt" = xyes
; then :
16297 $as_echo "#define HAVE_GETOPT 1" >>confdefs.h
16300 case " $LIBOBJS " in
16301 *" getopt.$ac_objext "* ) ;;
16302 *) LIBOBJS
="$LIBOBJS getopt.$ac_objext"
16308 ac_fn_c_check_func
"$LINENO" "getpeereid" "ac_cv_func_getpeereid"
16309 if test "x$ac_cv_func_getpeereid" = xyes
; then :
16310 $as_echo "#define HAVE_GETPEEREID 1" >>confdefs.h
16313 case " $LIBOBJS " in
16314 *" getpeereid.$ac_objext "* ) ;;
16315 *) LIBOBJS
="$LIBOBJS getpeereid.$ac_objext"
16321 ac_fn_c_check_func
"$LINENO" "inet_aton" "ac_cv_func_inet_aton"
16322 if test "x$ac_cv_func_inet_aton" = xyes
; then :
16323 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
16326 case " $LIBOBJS " in
16327 *" inet_aton.$ac_objext "* ) ;;
16328 *) LIBOBJS
="$LIBOBJS inet_aton.$ac_objext"
16334 ac_fn_c_check_func
"$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
16335 if test "x$ac_cv_func_mkdtemp" = xyes
; then :
16336 $as_echo "#define HAVE_MKDTEMP 1" >>confdefs.h
16339 case " $LIBOBJS " in
16340 *" mkdtemp.$ac_objext "* ) ;;
16341 *) LIBOBJS
="$LIBOBJS mkdtemp.$ac_objext"
16347 ac_fn_c_check_func
"$LINENO" "strlcat" "ac_cv_func_strlcat"
16348 if test "x$ac_cv_func_strlcat" = xyes
; then :
16349 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
16352 case " $LIBOBJS " in
16353 *" strlcat.$ac_objext "* ) ;;
16354 *) LIBOBJS
="$LIBOBJS strlcat.$ac_objext"
16360 ac_fn_c_check_func
"$LINENO" "strlcpy" "ac_cv_func_strlcpy"
16361 if test "x$ac_cv_func_strlcpy" = xyes
; then :
16362 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
16365 case " $LIBOBJS " in
16366 *" strlcpy.$ac_objext "* ) ;;
16367 *) LIBOBJS
="$LIBOBJS strlcpy.$ac_objext"
16373 ac_fn_c_check_func
"$LINENO" "strnlen" "ac_cv_func_strnlen"
16374 if test "x$ac_cv_func_strnlen" = xyes
; then :
16375 $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h
16378 case " $LIBOBJS " in
16379 *" strnlen.$ac_objext "* ) ;;
16380 *) LIBOBJS
="$LIBOBJS strnlen.$ac_objext"
16388 if test "$enable_thread_safety" = yes; then
16389 ac_fn_c_check_func
"$LINENO" "pthread_barrier_wait" "ac_cv_func_pthread_barrier_wait"
16390 if test "x$ac_cv_func_pthread_barrier_wait" = xyes
; then :
16391 $as_echo "#define HAVE_PTHREAD_BARRIER_WAIT 1" >>confdefs.h
16394 case " $LIBOBJS " in
16395 *" pthread_barrier_wait.$ac_objext "* ) ;;
16396 *) LIBOBJS
="$LIBOBJS pthread_barrier_wait.$ac_objext"
16405 if test "$PORTNAME" = "win32" -o "$PORTNAME" = "cygwin"; then
16406 # Cygwin and (apparently, based on test results) Mingw both
16407 # have a broken strtof(), so substitute its implementation.
16408 # That's not a perfect fix, since it doesn't avoid double-rounding,
16409 # but we have no better options.
16410 case " $LIBOBJS " in
16411 *" strtof.$ac_objext "* ) ;;
16412 *) LIBOBJS
="$LIBOBJS strtof.$ac_objext"
16416 { $as_echo "$as_me:${as_lineno-$LINENO}: On $host_os we will use our strtof wrapper." >&5
16417 $as_echo "$as_me: On $host_os we will use our strtof wrapper." >&6;}
16420 # Similarly, use system's getopt_long() only if system provides struct option.
16421 if test x
"$ac_cv_type_struct_option" = xyes
; then
16422 ac_fn_c_check_func
"$LINENO" "getopt_long" "ac_cv_func_getopt_long"
16423 if test "x$ac_cv_func_getopt_long" = xyes
; then :
16424 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
16427 case " $LIBOBJS " in
16428 *" getopt_long.$ac_objext "* ) ;;
16429 *) LIBOBJS
="$LIBOBJS getopt_long.$ac_objext"
16437 case " $LIBOBJS " in
16438 *" getopt_long.$ac_objext "* ) ;;
16439 *) LIBOBJS
="$LIBOBJS getopt_long.$ac_objext"
16445 # On OpenBSD and Solaris, getopt() doesn't do what we want for long options
16446 # (i.e., allow '-' as a flag character), so use our version on those platforms.
16447 if test "$PORTNAME" = "openbsd" -o "$PORTNAME" = "solaris"; then
16448 case " $LIBOBJS " in
16449 *" getopt.$ac_objext "* ) ;;
16450 *) LIBOBJS
="$LIBOBJS getopt.$ac_objext"
16456 # mingw has adopted a GNU-centric interpretation of optind/optreset,
16457 # so always use our version on Windows.
16458 if test "$PORTNAME" = "win32"; then
16459 case " $LIBOBJS " in
16460 *" getopt.$ac_objext "* ) ;;
16461 *) LIBOBJS
="$LIBOBJS getopt.$ac_objext"
16465 case " $LIBOBJS " in
16466 *" getopt_long.$ac_objext "* ) ;;
16467 *) LIBOBJS
="$LIBOBJS getopt_long.$ac_objext"
16473 # Win32 (really MinGW) support
16474 if test "$PORTNAME" = "win32"; then
16475 for ac_func
in _configthreadlocale
16477 ac_fn_c_check_func
"$LINENO" "_configthreadlocale" "ac_cv_func__configthreadlocale"
16478 if test "x$ac_cv_func__configthreadlocale" = xyes
; then :
16479 cat >>confdefs.h
<<_ACEOF
16480 #define HAVE__CONFIGTHREADLOCALE 1
16486 case " $LIBOBJS " in
16487 *" dirmod.$ac_objext "* ) ;;
16488 *) LIBOBJS
="$LIBOBJS dirmod.$ac_objext"
16492 case " $LIBOBJS " in
16493 *" kill.$ac_objext "* ) ;;
16494 *) LIBOBJS
="$LIBOBJS kill.$ac_objext"
16498 case " $LIBOBJS " in
16499 *" open.$ac_objext "* ) ;;
16500 *) LIBOBJS
="$LIBOBJS open.$ac_objext"
16504 case " $LIBOBJS " in
16505 *" system.$ac_objext "* ) ;;
16506 *) LIBOBJS
="$LIBOBJS system.$ac_objext"
16510 case " $LIBOBJS " in
16511 *" win32common.$ac_objext "* ) ;;
16512 *) LIBOBJS
="$LIBOBJS win32common.$ac_objext"
16516 case " $LIBOBJS " in
16517 *" win32dlopen.$ac_objext "* ) ;;
16518 *) LIBOBJS
="$LIBOBJS win32dlopen.$ac_objext"
16522 case " $LIBOBJS " in
16523 *" win32env.$ac_objext "* ) ;;
16524 *) LIBOBJS
="$LIBOBJS win32env.$ac_objext"
16528 case " $LIBOBJS " in
16529 *" win32error.$ac_objext "* ) ;;
16530 *) LIBOBJS
="$LIBOBJS win32error.$ac_objext"
16534 case " $LIBOBJS " in
16535 *" win32fdatasync.$ac_objext "* ) ;;
16536 *) LIBOBJS
="$LIBOBJS win32fdatasync.$ac_objext"
16540 case " $LIBOBJS " in
16541 *" win32getrusage.$ac_objext "* ) ;;
16542 *) LIBOBJS
="$LIBOBJS win32getrusage.$ac_objext"
16546 case " $LIBOBJS " in
16547 *" win32link.$ac_objext "* ) ;;
16548 *) LIBOBJS
="$LIBOBJS win32link.$ac_objext"
16552 case " $LIBOBJS " in
16553 *" win32ntdll.$ac_objext "* ) ;;
16554 *) LIBOBJS
="$LIBOBJS win32ntdll.$ac_objext"
16558 case " $LIBOBJS " in
16559 *" win32pread.$ac_objext "* ) ;;
16560 *) LIBOBJS
="$LIBOBJS win32pread.$ac_objext"
16564 case " $LIBOBJS " in
16565 *" win32pwrite.$ac_objext "* ) ;;
16566 *) LIBOBJS
="$LIBOBJS win32pwrite.$ac_objext"
16570 case " $LIBOBJS " in
16571 *" win32security.$ac_objext "* ) ;;
16572 *) LIBOBJS
="$LIBOBJS win32security.$ac_objext"
16576 case " $LIBOBJS " in
16577 *" win32setlocale.$ac_objext "* ) ;;
16578 *) LIBOBJS
="$LIBOBJS win32setlocale.$ac_objext"
16582 case " $LIBOBJS " in
16583 *" win32stat.$ac_objext "* ) ;;
16584 *) LIBOBJS
="$LIBOBJS win32stat.$ac_objext"
16589 # Cygwin needs only a bit of that
16590 if test "$PORTNAME" = "cygwin"; then
16591 case " $LIBOBJS " in
16592 *" dirmod.$ac_objext "* ) ;;
16593 *) LIBOBJS
="$LIBOBJS dirmod.$ac_objext"
16599 ac_fn_c_check_func
"$LINENO" "syslog" "ac_cv_func_syslog"
16600 if test "x$ac_cv_func_syslog" = xyes
; then :
16601 ac_fn_c_check_header_mongrel
"$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
16602 if test "x$ac_cv_header_syslog_h" = xyes
; then :
16604 $as_echo "#define HAVE_SYSLOG 1" >>confdefs.h
16612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opterr" >&5
16613 $as_echo_n "checking for opterr... " >&6; }
16614 if ${pgac_cv_var_int_opterr+:} false
; then :
16615 $as_echo_n "(cached) " >&6
16617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16618 /* end confdefs.h. */
16619 #include <unistd.h>
16623 extern int opterr; opterr = 1;
16628 if ac_fn_c_try_link
"$LINENO"; then :
16629 pgac_cv_var_int_opterr
=yes
16631 pgac_cv_var_int_opterr
=no
16633 rm -f core conftest.err conftest.
$ac_objext \
16634 conftest
$ac_exeext conftest.
$ac_ext
16636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_opterr" >&5
16637 $as_echo "$pgac_cv_var_int_opterr" >&6; }
16638 if test x
"$pgac_cv_var_int_opterr" = x
"yes"; then
16640 $as_echo "#define HAVE_INT_OPTERR 1" >>confdefs.h
16644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
16645 $as_echo_n "checking for optreset... " >&6; }
16646 if ${pgac_cv_var_int_optreset+:} false
; then :
16647 $as_echo_n "(cached) " >&6
16649 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16650 /* end confdefs.h. */
16651 #include <unistd.h>
16655 extern int optreset; optreset = 1;
16660 if ac_fn_c_try_link
"$LINENO"; then :
16661 pgac_cv_var_int_optreset
=yes
16663 pgac_cv_var_int_optreset
=no
16665 rm -f core conftest.err conftest.
$ac_objext \
16666 conftest
$ac_exeext conftest.
$ac_ext
16668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_optreset" >&5
16669 $as_echo "$pgac_cv_var_int_optreset" >&6; }
16670 if test x
"$pgac_cv_var_int_optreset" = x
"yes"; then
16672 $as_echo "#define HAVE_INT_OPTRESET 1" >>confdefs.h
16676 if test "$with_icu" = yes; then
16677 ac_save_CPPFLAGS
=$CPPFLAGS
16678 CPPFLAGS
="$ICU_CFLAGS $CPPFLAGS"
16680 # Verify we have ICU's header files
16681 ac_fn_c_check_header_mongrel
"$LINENO" "unicode/ucol.h" "ac_cv_header_unicode_ucol_h" "$ac_includes_default"
16682 if test "x$ac_cv_header_unicode_ucol_h" = xyes
; then :
16685 as_fn_error $?
"header file <unicode/ucol.h> is required for ICU" "$LINENO" 5
16690 CPPFLAGS
=$ac_save_CPPFLAGS
16693 if test "$with_llvm" = yes; then
16695 # Check which functionality is present
16696 SAVE_CPPFLAGS
="$CPPFLAGS"
16697 CPPFLAGS
="$CPPFLAGS $LLVM_CPPFLAGS"
16698 ac_fn_c_check_decl
"$LINENO" "LLVMOrcGetSymbolAddressIn" "ac_cv_have_decl_LLVMOrcGetSymbolAddressIn" "#include <llvm-c/OrcBindings.h>
16700 if test "x$ac_cv_have_decl_LLVMOrcGetSymbolAddressIn" = xyes
; then :
16706 cat >>confdefs.h
<<_ACEOF
16707 #define HAVE_DECL_LLVMORCGETSYMBOLADDRESSIN $ac_have_decl
16710 ac_fn_c_check_decl
"$LINENO" "LLVMGetHostCPUName" "ac_cv_have_decl_LLVMGetHostCPUName" "#include <llvm-c/TargetMachine.h>
16712 if test "x$ac_cv_have_decl_LLVMGetHostCPUName" = xyes
; then :
16718 cat >>confdefs.h
<<_ACEOF
16719 #define HAVE_DECL_LLVMGETHOSTCPUNAME $ac_have_decl
16721 ac_fn_c_check_decl
"$LINENO" "LLVMGetHostCPUFeatures" "ac_cv_have_decl_LLVMGetHostCPUFeatures" "#include <llvm-c/TargetMachine.h>
16723 if test "x$ac_cv_have_decl_LLVMGetHostCPUFeatures" = xyes
; then :
16729 cat >>confdefs.h
<<_ACEOF
16730 #define HAVE_DECL_LLVMGETHOSTCPUFEATURES $ac_have_decl
16733 ac_fn_c_check_decl
"$LINENO" "LLVMCreateGDBRegistrationListener" "ac_cv_have_decl_LLVMCreateGDBRegistrationListener" "#include <llvm-c/ExecutionEngine.h>
16735 if test "x$ac_cv_have_decl_LLVMCreateGDBRegistrationListener" = xyes
; then :
16741 cat >>confdefs.h
<<_ACEOF
16742 #define HAVE_DECL_LLVMCREATEGDBREGISTRATIONLISTENER $ac_have_decl
16744 ac_fn_c_check_decl
"$LINENO" "LLVMCreatePerfJITEventListener" "ac_cv_have_decl_LLVMCreatePerfJITEventListener" "#include <llvm-c/ExecutionEngine.h>
16746 if test "x$ac_cv_have_decl_LLVMCreatePerfJITEventListener" = xyes
; then :
16752 cat >>confdefs.h
<<_ACEOF
16753 #define HAVE_DECL_LLVMCREATEPERFJITEVENTLISTENER $ac_have_decl
16756 CPPFLAGS
="$SAVE_CPPFLAGS"
16760 # Lastly, restore full LIBS list and check for readline/libedit symbols
16761 LIBS
="$LIBS_including_readline"
16763 if test "$with_readline" = yes; then
16764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_suppress_quote" >&5
16765 $as_echo_n "checking for rl_completion_suppress_quote... " >&6; }
16766 if ${pgac_cv_var_rl_completion_suppress_quote+:} false
; then :
16767 $as_echo_n "(cached) " >&6
16769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16770 /* end confdefs.h. */
16772 #if defined(HAVE_READLINE_READLINE_H)
16773 #include <readline/readline.h>
16774 #elif defined(HAVE_EDITLINE_READLINE_H)
16775 #include <editline/readline.h>
16776 #elif defined(HAVE_READLINE_H)
16777 #include <readline.h>
16783 rl_completion_suppress_quote = 1;
16788 if ac_fn_c_try_link
"$LINENO"; then :
16789 pgac_cv_var_rl_completion_suppress_quote
=yes
16791 pgac_cv_var_rl_completion_suppress_quote
=no
16793 rm -f core conftest.err conftest.
$ac_objext \
16794 conftest
$ac_exeext conftest.
$ac_ext
16796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_rl_completion_suppress_quote" >&5
16797 $as_echo "$pgac_cv_var_rl_completion_suppress_quote" >&6; }
16798 if test x
"$pgac_cv_var_rl_completion_suppress_quote" = x
"yes"; then
16800 $as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_QUOTE 1" >>confdefs.h
16803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_filename_quote_characters" >&5
16804 $as_echo_n "checking for rl_filename_quote_characters... " >&6; }
16805 if ${pgac_cv_var_rl_filename_quote_characters+:} false
; then :
16806 $as_echo_n "(cached) " >&6
16808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16809 /* end confdefs.h. */
16811 #if defined(HAVE_READLINE_READLINE_H)
16812 #include <readline/readline.h>
16813 #elif defined(HAVE_EDITLINE_READLINE_H)
16814 #include <editline/readline.h>
16815 #elif defined(HAVE_READLINE_H)
16816 #include <readline.h>
16822 rl_filename_quote_characters = "x";
16827 if ac_fn_c_try_link
"$LINENO"; then :
16828 pgac_cv_var_rl_filename_quote_characters
=yes
16830 pgac_cv_var_rl_filename_quote_characters
=no
16832 rm -f core conftest.err conftest.
$ac_objext \
16833 conftest
$ac_exeext conftest.
$ac_ext
16835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_rl_filename_quote_characters" >&5
16836 $as_echo "$pgac_cv_var_rl_filename_quote_characters" >&6; }
16837 if test x
"$pgac_cv_var_rl_filename_quote_characters" = x
"yes"; then
16839 $as_echo "#define HAVE_RL_FILENAME_QUOTE_CHARACTERS 1" >>confdefs.h
16842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_filename_quoting_function" >&5
16843 $as_echo_n "checking for rl_filename_quoting_function... " >&6; }
16844 if ${pgac_cv_var_rl_filename_quoting_function+:} false
; then :
16845 $as_echo_n "(cached) " >&6
16847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16848 /* end confdefs.h. */
16850 #if defined(HAVE_READLINE_READLINE_H)
16851 #include <readline/readline.h>
16852 #elif defined(HAVE_EDITLINE_READLINE_H)
16853 #include <editline/readline.h>
16854 #elif defined(HAVE_READLINE_H)
16855 #include <readline.h>
16861 rl_filename_quoting_function = 0;
16866 if ac_fn_c_try_link
"$LINENO"; then :
16867 pgac_cv_var_rl_filename_quoting_function
=yes
16869 pgac_cv_var_rl_filename_quoting_function
=no
16871 rm -f core conftest.err conftest.
$ac_objext \
16872 conftest
$ac_exeext conftest.
$ac_ext
16874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_rl_filename_quoting_function" >&5
16875 $as_echo "$pgac_cv_var_rl_filename_quoting_function" >&6; }
16876 if test x
"$pgac_cv_var_rl_filename_quoting_function" = x
"yes"; then
16878 $as_echo "#define HAVE_RL_FILENAME_QUOTING_FUNCTION 1" >>confdefs.h
16882 for ac_func
in append_history history_truncate_file rl_completion_matches rl_filename_completion_function rl_reset_screen_size rl_variable_bind
16884 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16885 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16886 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
16887 cat >>confdefs.h
<<_ACEOF
16888 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16897 # This test makes sure that run tests work at all. Sometimes a shared
16898 # library is found by the linker, but the runtime linker can't find it.
16899 # This check should come after all modifications of compiler or linker
16900 # variables, and before any other run tests.
16901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking test program" >&5
16902 $as_echo_n "checking test program... " >&6; }
16903 if test "$cross_compiling" = yes; then :
16904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
16905 $as_echo "cross-compiling" >&6; }
16907 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16908 /* end confdefs.h. */
16909 int main() { return 0; }
16911 if ac_fn_c_try_run
"$LINENO"; then :
16912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
16913 $as_echo "ok" >&6; }
16915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
16916 $as_echo "failed" >&6; }
16918 Could not execute a simple test program. This may be a problem
16919 related to locating shared libraries. Check the file 'config.log'
16920 for the exact reason." "$LINENO" 5
16922 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16923 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16927 # --------------------
16928 # Run tests below here
16929 # --------------------
16932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long int is 64 bits" >&5
16933 $as_echo_n "checking whether long int is 64 bits... " >&6; }
16934 if ${pgac_cv_type_long_int_64+:} false
; then :
16935 $as_echo_n "(cached) " >&6
16937 if test "$cross_compiling" = yes; then :
16938 # If cross-compiling, check the size reported by the compiler and
16939 # trust that the arithmetic works.
16940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16941 /* end confdefs.h. */
16946 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
16947 test_array [0] = 0;
16948 return test_array [0];
16954 if ac_fn_c_try_compile
"$LINENO"; then :
16955 pgac_cv_type_long_int_64
=yes
16957 pgac_cv_type_long_int_64
=no
16959 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16962 /* end confdefs.h. */
16963 typedef long int ac_int64;
16966 * These are globals to discourage the compiler from folding all the
16967 * arithmetic tests down to compile-time constants.
16969 ac_int64 a = 20000001;
16970 ac_int64 b = 40000005;
16972 int does_int64_work()
16976 if (sizeof(ac_int64) != 8)
16977 return 0; /* definitely not the right size */
16979 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
16989 return (! does_int64_work());
16992 if ac_fn_c_try_run
"$LINENO"; then :
16993 pgac_cv_type_long_int_64
=yes
16995 pgac_cv_type_long_int_64
=no
16997 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16998 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_long_int_64" >&5
17003 $as_echo "$pgac_cv_type_long_int_64" >&6; }
17005 HAVE_LONG_INT_64
=$pgac_cv_type_long_int_64
17006 if test x
"$pgac_cv_type_long_int_64" = xyes
; then
17008 $as_echo "#define HAVE_LONG_INT_64 1" >>confdefs.h
17013 if test x
"$HAVE_LONG_INT_64" = x
"yes" ; then
17014 pg_int64_type
="long int"
17016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long long int is 64 bits" >&5
17017 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
17018 if ${pgac_cv_type_long_long_int_64+:} false
; then :
17019 $as_echo_n "(cached) " >&6
17021 if test "$cross_compiling" = yes; then :
17022 # If cross-compiling, check the size reported by the compiler and
17023 # trust that the arithmetic works.
17024 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17025 /* end confdefs.h. */
17030 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
17031 test_array [0] = 0;
17032 return test_array [0];
17038 if ac_fn_c_try_compile
"$LINENO"; then :
17039 pgac_cv_type_long_long_int_64
=yes
17041 pgac_cv_type_long_long_int_64
=no
17043 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17046 /* end confdefs.h. */
17047 typedef long long int ac_int64;
17050 * These are globals to discourage the compiler from folding all the
17051 * arithmetic tests down to compile-time constants.
17053 ac_int64 a = 20000001;
17054 ac_int64 b = 40000005;
17056 int does_int64_work()
17060 if (sizeof(ac_int64) != 8)
17061 return 0; /* definitely not the right size */
17063 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
17073 return (! does_int64_work());
17076 if ac_fn_c_try_run
"$LINENO"; then :
17077 pgac_cv_type_long_long_int_64
=yes
17079 pgac_cv_type_long_long_int_64
=no
17081 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17082 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_long_long_int_64" >&5
17087 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
17089 HAVE_LONG_LONG_INT_64
=$pgac_cv_type_long_long_int_64
17090 if test x
"$pgac_cv_type_long_long_int_64" = xyes
; then
17092 $as_echo "#define HAVE_LONG_LONG_INT_64 1" >>confdefs.h
17096 if test x
"$HAVE_LONG_LONG_INT_64" = x
"yes" ; then
17097 pg_int64_type
="long long int"
17099 as_fn_error $?
"Cannot find a working 64-bit integer type." "$LINENO" 5
17104 cat >>confdefs.h
<<_ACEOF
17105 #define PG_INT64_TYPE $pg_int64_type
17109 # Select the printf length modifier that goes with that, too.
17110 if test x
"$pg_int64_type" = x
"long long int" ; then
17111 INT64_MODIFIER
='"ll"'
17113 INT64_MODIFIER
='"l"'
17117 cat >>confdefs.h
<<_ACEOF
17118 #define INT64_MODIFIER $INT64_MODIFIER
17122 # has to be down here, rather than with the other builtins, because
17123 # the test uses PG_INT64_TYPE.
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_mul_overflow" >&5
17125 $as_echo_n "checking for __builtin_mul_overflow... " >&6; }
17126 if ${pgac_cv__builtin_op_overflow+:} false
; then :
17127 $as_echo_n "(cached) " >&6
17129 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17130 /* end confdefs.h. */
17132 PG_INT64_TYPE a = 1;
17133 PG_INT64_TYPE b = 1;
17134 PG_INT64_TYPE result;
17140 oflo = __builtin_mul_overflow(a, b, &result);
17145 if ac_fn_c_try_link
"$LINENO"; then :
17146 pgac_cv__builtin_op_overflow
=yes
17148 pgac_cv__builtin_op_overflow
=no
17150 rm -f core conftest.err conftest.
$ac_objext \
17151 conftest
$ac_exeext conftest.
$ac_ext
17153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_op_overflow" >&5
17154 $as_echo "$pgac_cv__builtin_op_overflow" >&6; }
17155 if test x
"$pgac_cv__builtin_op_overflow" = xyes
; then
17157 $as_echo "#define HAVE__BUILTIN_OP_OVERFLOW 1" >>confdefs.h
17161 # Check size of void *, size_t (enables tweaks for > 32bit address space)
17162 # The cast to long int works around a bug in the HP C Compiler
17163 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17164 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17165 # This bug is HP SR number 8606223364.
17166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
17167 $as_echo_n "checking size of void *... " >&6; }
17168 if ${ac_cv_sizeof_void_p+:} false
; then :
17169 $as_echo_n "(cached) " >&6
17171 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
17174 if test "$ac_cv_type_void_p" = yes; then
17175 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17176 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17177 as_fn_error
77 "cannot compute sizeof (void *)
17178 See \`config.log' for more details" "$LINENO" 5; }
17180 ac_cv_sizeof_void_p
=0
17185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
17186 $as_echo "$ac_cv_sizeof_void_p" >&6; }
17190 cat >>confdefs.h
<<_ACEOF
17191 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
17195 # The cast to long int works around a bug in the HP C Compiler
17196 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17197 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17198 # This bug is HP SR number 8606223364.
17199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
17200 $as_echo_n "checking size of size_t... " >&6; }
17201 if ${ac_cv_sizeof_size_t+:} false
; then :
17202 $as_echo_n "(cached) " >&6
17204 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
17207 if test "$ac_cv_type_size_t" = yes; then
17208 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17210 as_fn_error
77 "cannot compute sizeof (size_t)
17211 See \`config.log' for more details" "$LINENO" 5; }
17213 ac_cv_sizeof_size_t
=0
17218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
17219 $as_echo "$ac_cv_sizeof_size_t" >&6; }
17223 cat >>confdefs.h
<<_ACEOF
17224 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
17228 # The cast to long int works around a bug in the HP C Compiler
17229 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17230 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17231 # This bug is HP SR number 8606223364.
17232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
17233 $as_echo_n "checking size of long... " >&6; }
17234 if ${ac_cv_sizeof_long+:} false
; then :
17235 $as_echo_n "(cached) " >&6
17237 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
17240 if test "$ac_cv_type_long" = yes; then
17241 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17243 as_fn_error
77 "cannot compute sizeof (long)
17244 See \`config.log' for more details" "$LINENO" 5; }
17246 ac_cv_sizeof_long
=0
17251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
17252 $as_echo "$ac_cv_sizeof_long" >&6; }
17256 cat >>confdefs.h
<<_ACEOF
17257 #define SIZEOF_LONG $ac_cv_sizeof_long
17262 # Determine memory alignment requirements for the basic C data types.
17264 # The cast to long int works around a bug in the HP C Compiler,
17265 # see AC_CHECK_SIZEOF for more information.
17266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of short" >&5
17267 $as_echo_n "checking alignment of short... " >&6; }
17268 if ${ac_cv_alignof_short+:} false
; then :
17269 $as_echo_n "(cached) " >&6
17271 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_short" "$ac_includes_default
17273 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17275 typedef struct { char x; short y; } ac__type_alignof_;"; then :
17278 if test "$ac_cv_type_short" = yes; then
17279 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17281 as_fn_error
77 "cannot compute alignment of short
17282 See \`config.log' for more details" "$LINENO" 5; }
17284 ac_cv_alignof_short
=0
17289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_short" >&5
17290 $as_echo "$ac_cv_alignof_short" >&6; }
17294 cat >>confdefs.h
<<_ACEOF
17295 #define ALIGNOF_SHORT $ac_cv_alignof_short
17299 # The cast to long int works around a bug in the HP C Compiler,
17300 # see AC_CHECK_SIZEOF for more information.
17301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int" >&5
17302 $as_echo_n "checking alignment of int... " >&6; }
17303 if ${ac_cv_alignof_int+:} false
; then :
17304 $as_echo_n "(cached) " >&6
17306 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_int" "$ac_includes_default
17308 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17310 typedef struct { char x; int y; } ac__type_alignof_;"; then :
17313 if test "$ac_cv_type_int" = yes; then
17314 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17315 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17316 as_fn_error
77 "cannot compute alignment of int
17317 See \`config.log' for more details" "$LINENO" 5; }
17319 ac_cv_alignof_int
=0
17324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_int" >&5
17325 $as_echo "$ac_cv_alignof_int" >&6; }
17329 cat >>confdefs.h
<<_ACEOF
17330 #define ALIGNOF_INT $ac_cv_alignof_int
17334 # The cast to long int works around a bug in the HP C Compiler,
17335 # see AC_CHECK_SIZEOF for more information.
17336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long" >&5
17337 $as_echo_n "checking alignment of long... " >&6; }
17338 if ${ac_cv_alignof_long+:} false
; then :
17339 $as_echo_n "(cached) " >&6
17341 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long" "$ac_includes_default
17343 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17345 typedef struct { char x; long y; } ac__type_alignof_;"; then :
17348 if test "$ac_cv_type_long" = yes; then
17349 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17351 as_fn_error
77 "cannot compute alignment of long
17352 See \`config.log' for more details" "$LINENO" 5; }
17354 ac_cv_alignof_long
=0
17359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long" >&5
17360 $as_echo "$ac_cv_alignof_long" >&6; }
17364 cat >>confdefs.h
<<_ACEOF
17365 #define ALIGNOF_LONG $ac_cv_alignof_long
17369 if test x
"$HAVE_LONG_LONG_INT_64" = x
"yes" ; then
17370 # The cast to long int works around a bug in the HP C Compiler,
17371 # see AC_CHECK_SIZEOF for more information.
17372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long long int" >&5
17373 $as_echo_n "checking alignment of long long int... " >&6; }
17374 if ${ac_cv_alignof_long_long_int+:} false
; then :
17375 $as_echo_n "(cached) " >&6
17377 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long_long_int" "$ac_includes_default
17379 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17381 typedef struct { char x; long long int y; } ac__type_alignof_;"; then :
17384 if test "$ac_cv_type_long_long_int" = yes; then
17385 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17386 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17387 as_fn_error
77 "cannot compute alignment of long long int
17388 See \`config.log' for more details" "$LINENO" 5; }
17390 ac_cv_alignof_long_long_int
=0
17395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long_long_int" >&5
17396 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
17400 cat >>confdefs.h
<<_ACEOF
17401 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
17406 # The cast to long int works around a bug in the HP C Compiler,
17407 # see AC_CHECK_SIZEOF for more information.
17408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of double" >&5
17409 $as_echo_n "checking alignment of double... " >&6; }
17410 if ${ac_cv_alignof_double+:} false
; then :
17411 $as_echo_n "(cached) " >&6
17413 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_double" "$ac_includes_default
17415 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17417 typedef struct { char x; double y; } ac__type_alignof_;"; then :
17420 if test "$ac_cv_type_double" = yes; then
17421 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17423 as_fn_error
77 "cannot compute alignment of double
17424 See \`config.log' for more details" "$LINENO" 5; }
17426 ac_cv_alignof_double
=0
17431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_double" >&5
17432 $as_echo "$ac_cv_alignof_double" >&6; }
17436 cat >>confdefs.h
<<_ACEOF
17437 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
17442 # Compute maximum alignment of any basic type.
17443 # We assume long's alignment is at least as strong as char, short, or int;
17444 # but we must check long long (if it is being used for int64) and double.
17445 # Note that we intentionally do not consider any types wider than 64 bits,
17446 # as allowing MAXIMUM_ALIGNOF to exceed 8 would be too much of a penalty
17447 # for disk and memory space.
17449 MAX_ALIGNOF
=$ac_cv_alignof_long
17450 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
17451 MAX_ALIGNOF
=$ac_cv_alignof_double
17453 if test x
"$HAVE_LONG_LONG_INT_64" = xyes
&& test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
17454 MAX_ALIGNOF
="$ac_cv_alignof_long_long_int"
17457 cat >>confdefs.h
<<_ACEOF
17458 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
17463 # Some platforms predefine the types int8, int16, etc. Only check
17464 # a (hopefully) representative subset.
17465 ac_fn_c_check_type
"$LINENO" "int8" "ac_cv_type_int8" "#include <stdio.h>
17467 if test "x$ac_cv_type_int8" = xyes
; then :
17469 cat >>confdefs.h
<<_ACEOF
17470 #define HAVE_INT8 1
17475 ac_fn_c_check_type
"$LINENO" "uint8" "ac_cv_type_uint8" "#include <stdio.h>
17477 if test "x$ac_cv_type_uint8" = xyes
; then :
17479 cat >>confdefs.h
<<_ACEOF
17480 #define HAVE_UINT8 1
17485 ac_fn_c_check_type
"$LINENO" "int64" "ac_cv_type_int64" "#include <stdio.h>
17487 if test "x$ac_cv_type_int64" = xyes
; then :
17489 cat >>confdefs.h
<<_ACEOF
17490 #define HAVE_INT64 1
17495 ac_fn_c_check_type
"$LINENO" "uint64" "ac_cv_type_uint64" "#include <stdio.h>
17497 if test "x$ac_cv_type_uint64" = xyes
; then :
17499 cat >>confdefs.h
<<_ACEOF
17500 #define HAVE_UINT64 1
17507 # Some compilers offer a 128-bit integer scalar type.
17508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __int128" >&5
17509 $as_echo_n "checking for __int128... " >&6; }
17510 if ${pgac_cv__128bit_int+:} false
; then :
17511 $as_echo_n "(cached) " >&6
17513 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17514 /* end confdefs.h. */
17517 * We don't actually run this test, just link it to verify that any support
17518 * functions needed for __int128 are present.
17520 * These are globals to discourage the compiler from folding all the
17521 * arithmetic tests down to compile-time constants. We do not have
17522 * convenient support for 128bit literals at this point...
17524 __int128 a = 48828125;
17525 __int128 b = 97656250;
17532 a = (a << 12) + 1; /* 200000000001 */
17533 b = (b << 12) + 5; /* 400000000005 */
17534 /* try the most relevant arithmetic ops */
17537 /* must use the results, else compiler may optimize arithmetic away */
17545 if ac_fn_c_try_link
"$LINENO"; then :
17546 pgac_cv__128bit_int
=yes
17548 pgac_cv__128bit_int
=no
17550 rm -f core conftest.err conftest.
$ac_objext \
17551 conftest
$ac_exeext conftest.
$ac_ext
17553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__128bit_int" >&5
17554 $as_echo "$pgac_cv__128bit_int" >&6; }
17555 if test x
"$pgac_cv__128bit_int" = xyes
; then
17556 # Use of non-default alignment with __int128 tickles bugs in some compilers.
17557 # If not cross-compiling, we can test for bugs and disable use of __int128
17558 # with buggy compilers. If cross-compiling, hope for the best.
17559 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83925
17560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __int128 alignment bug" >&5
17561 $as_echo_n "checking for __int128 alignment bug... " >&6; }
17562 if ${pgac_cv__128bit_int_bug+:} false
; then :
17563 $as_echo_n "(cached) " >&6
17565 if test "$cross_compiling" = yes; then :
17566 pgac_cv__128bit_int_bug
="assuming ok"
17568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17569 /* end confdefs.h. */
17571 /* This must match the corresponding code in c.h: */
17572 #if defined(__GNUC__) || defined(__SUNPRO_C) || defined(__IBMC__)
17573 #define pg_attribute_aligned(a) __attribute__((aligned(a)))
17574 #elif defined(_MSC_VER)
17575 #define pg_attribute_aligned(a) __declspec(align(a))
17577 typedef __int128 int128a
17578 #if defined(pg_attribute_aligned)
17579 pg_attribute_aligned(8)
17583 void pass_by_val(void *buffer, int128a par) { holder = par; }
17589 long int i64 = 97656225L << 12;
17591 pass_by_val(main, (int128a) i64);
17600 if ac_fn_c_try_run
"$LINENO"; then :
17601 pgac_cv__128bit_int_bug
=ok
17603 pgac_cv__128bit_int_bug
=broken
17605 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17606 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__128bit_int_bug" >&5
17611 $as_echo "$pgac_cv__128bit_int_bug" >&6; }
17612 if test x
"$pgac_cv__128bit_int_bug" != xbroken
; then
17614 $as_echo "#define PG_INT128_TYPE __int128" >>confdefs.h
17616 # The cast to long int works around a bug in the HP C Compiler,
17617 # see AC_CHECK_SIZEOF for more information.
17618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of PG_INT128_TYPE" >&5
17619 $as_echo_n "checking alignment of PG_INT128_TYPE... " >&6; }
17620 if ${ac_cv_alignof_PG_INT128_TYPE+:} false
; then :
17621 $as_echo_n "(cached) " >&6
17623 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_PG_INT128_TYPE" "$ac_includes_default
17625 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17627 typedef struct { char x; PG_INT128_TYPE y; } ac__type_alignof_;"; then :
17630 if test "$ac_cv_type_PG_INT128_TYPE" = yes; then
17631 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17632 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17633 as_fn_error
77 "cannot compute alignment of PG_INT128_TYPE
17634 See \`config.log' for more details" "$LINENO" 5; }
17636 ac_cv_alignof_PG_INT128_TYPE
=0
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_PG_INT128_TYPE" >&5
17642 $as_echo "$ac_cv_alignof_PG_INT128_TYPE" >&6; }
17646 cat >>confdefs.h
<<_ACEOF
17647 #define ALIGNOF_PG_INT128_TYPE $ac_cv_alignof_PG_INT128_TYPE
17654 # Check for various atomic operations now that we have checked how to declare
17656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync char locking functions" >&5
17657 $as_echo_n "checking for builtin __sync char locking functions... " >&6; }
17658 if ${pgac_cv_gcc_sync_char_tas+:} false
; then :
17659 $as_echo_n "(cached) " >&6
17661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17662 /* end confdefs.h. */
17668 __sync_lock_test_and_set(&lock, 1);
17669 __sync_lock_release(&lock);
17674 if ac_fn_c_try_link
"$LINENO"; then :
17675 pgac_cv_gcc_sync_char_tas
="yes"
17677 pgac_cv_gcc_sync_char_tas
="no"
17679 rm -f core conftest.err conftest.
$ac_objext \
17680 conftest
$ac_exeext conftest.
$ac_ext
17682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_char_tas" >&5
17683 $as_echo "$pgac_cv_gcc_sync_char_tas" >&6; }
17684 if test x
"$pgac_cv_gcc_sync_char_tas" = x
"yes"; then
17686 $as_echo "#define HAVE_GCC__SYNC_CHAR_TAS 1" >>confdefs.h
17689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int32 locking functions" >&5
17690 $as_echo_n "checking for builtin __sync int32 locking functions... " >&6; }
17691 if ${pgac_cv_gcc_sync_int32_tas+:} false
; then :
17692 $as_echo_n "(cached) " >&6
17694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17695 /* end confdefs.h. */
17701 __sync_lock_test_and_set(&lock, 1);
17702 __sync_lock_release(&lock);
17707 if ac_fn_c_try_link
"$LINENO"; then :
17708 pgac_cv_gcc_sync_int32_tas
="yes"
17710 pgac_cv_gcc_sync_int32_tas
="no"
17712 rm -f core conftest.err conftest.
$ac_objext \
17713 conftest
$ac_exeext conftest.
$ac_ext
17715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int32_tas" >&5
17716 $as_echo "$pgac_cv_gcc_sync_int32_tas" >&6; }
17717 if test x
"$pgac_cv_gcc_sync_int32_tas" = x
"yes"; then
17719 $as_echo "#define HAVE_GCC__SYNC_INT32_TAS 1" >>confdefs.h
17722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int32 atomic operations" >&5
17723 $as_echo_n "checking for builtin __sync int32 atomic operations... " >&6; }
17724 if ${pgac_cv_gcc_sync_int32_cas+:} false
; then :
17725 $as_echo_n "(cached) " >&6
17727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17728 /* end confdefs.h. */
17734 __sync_val_compare_and_swap(&val, 0, 37);
17739 if ac_fn_c_try_link
"$LINENO"; then :
17740 pgac_cv_gcc_sync_int32_cas
="yes"
17742 pgac_cv_gcc_sync_int32_cas
="no"
17744 rm -f core conftest.err conftest.
$ac_objext \
17745 conftest
$ac_exeext conftest.
$ac_ext
17747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int32_cas" >&5
17748 $as_echo "$pgac_cv_gcc_sync_int32_cas" >&6; }
17749 if test x
"$pgac_cv_gcc_sync_int32_cas" = x
"yes"; then
17751 $as_echo "#define HAVE_GCC__SYNC_INT32_CAS 1" >>confdefs.h
17754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int64 atomic operations" >&5
17755 $as_echo_n "checking for builtin __sync int64 atomic operations... " >&6; }
17756 if ${pgac_cv_gcc_sync_int64_cas+:} false
; then :
17757 $as_echo_n "(cached) " >&6
17759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17760 /* end confdefs.h. */
17765 PG_INT64_TYPE lock = 0;
17766 __sync_val_compare_and_swap(&lock, 0, (PG_INT64_TYPE) 37);
17771 if ac_fn_c_try_link
"$LINENO"; then :
17772 pgac_cv_gcc_sync_int64_cas
="yes"
17774 pgac_cv_gcc_sync_int64_cas
="no"
17776 rm -f core conftest.err conftest.
$ac_objext \
17777 conftest
$ac_exeext conftest.
$ac_ext
17779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int64_cas" >&5
17780 $as_echo "$pgac_cv_gcc_sync_int64_cas" >&6; }
17781 if test x
"$pgac_cv_gcc_sync_int64_cas" = x
"yes"; then
17783 $as_echo "#define HAVE_GCC__SYNC_INT64_CAS 1" >>confdefs.h
17786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __atomic int32 atomic operations" >&5
17787 $as_echo_n "checking for builtin __atomic int32 atomic operations... " >&6; }
17788 if ${pgac_cv_gcc_atomic_int32_cas+:} false
; then :
17789 $as_echo_n "(cached) " >&6
17791 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17792 /* end confdefs.h. */
17799 __atomic_compare_exchange_n(&val, &expect, 37, 0, __ATOMIC_SEQ_CST, __ATOMIC_RELAXED);
17804 if ac_fn_c_try_link
"$LINENO"; then :
17805 pgac_cv_gcc_atomic_int32_cas
="yes"
17807 pgac_cv_gcc_atomic_int32_cas
="no"
17809 rm -f core conftest.err conftest.
$ac_objext \
17810 conftest
$ac_exeext conftest.
$ac_ext
17812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_atomic_int32_cas" >&5
17813 $as_echo "$pgac_cv_gcc_atomic_int32_cas" >&6; }
17814 if test x
"$pgac_cv_gcc_atomic_int32_cas" = x
"yes"; then
17816 $as_echo "#define HAVE_GCC__ATOMIC_INT32_CAS 1" >>confdefs.h
17819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __atomic int64 atomic operations" >&5
17820 $as_echo_n "checking for builtin __atomic int64 atomic operations... " >&6; }
17821 if ${pgac_cv_gcc_atomic_int64_cas+:} false
; then :
17822 $as_echo_n "(cached) " >&6
17824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17825 /* end confdefs.h. */
17830 PG_INT64_TYPE val = 0;
17831 PG_INT64_TYPE expect = 0;
17832 __atomic_compare_exchange_n(&val, &expect, 37, 0, __ATOMIC_SEQ_CST, __ATOMIC_RELAXED);
17837 if ac_fn_c_try_link
"$LINENO"; then :
17838 pgac_cv_gcc_atomic_int64_cas
="yes"
17840 pgac_cv_gcc_atomic_int64_cas
="no"
17842 rm -f core conftest.err conftest.
$ac_objext \
17843 conftest
$ac_exeext conftest.
$ac_ext
17845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_atomic_int64_cas" >&5
17846 $as_echo "$pgac_cv_gcc_atomic_int64_cas" >&6; }
17847 if test x
"$pgac_cv_gcc_atomic_int64_cas" = x
"yes"; then
17849 $as_echo "#define HAVE_GCC__ATOMIC_INT64_CAS 1" >>confdefs.h
17854 # Check for x86 cpuid instruction
17855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __get_cpuid" >&5
17856 $as_echo_n "checking for __get_cpuid... " >&6; }
17857 if ${pgac_cv__get_cpuid+:} false
; then :
17858 $as_echo_n "(cached) " >&6
17860 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17861 /* end confdefs.h. */
17866 unsigned int exx[4] = {0, 0, 0, 0};
17867 __get_cpuid(1, &exx[0], &exx[1], &exx[2], &exx[3]);
17873 if ac_fn_c_try_link
"$LINENO"; then :
17874 pgac_cv__get_cpuid
="yes"
17876 pgac_cv__get_cpuid
="no"
17878 rm -f core conftest.err conftest.
$ac_objext \
17879 conftest
$ac_exeext conftest.
$ac_ext
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__get_cpuid" >&5
17882 $as_echo "$pgac_cv__get_cpuid" >&6; }
17883 if test x
"$pgac_cv__get_cpuid" = x
"yes"; then
17885 $as_echo "#define HAVE__GET_CPUID 1" >>confdefs.h
17889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __cpuid" >&5
17890 $as_echo_n "checking for __cpuid... " >&6; }
17891 if ${pgac_cv__cpuid+:} false
; then :
17892 $as_echo_n "(cached) " >&6
17894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17895 /* end confdefs.h. */
17896 #include <intrin.h>
17900 unsigned int exx[4] = {0, 0, 0, 0};
17901 __get_cpuid(exx[0], 1);
17907 if ac_fn_c_try_link
"$LINENO"; then :
17908 pgac_cv__cpuid
="yes"
17910 pgac_cv__cpuid
="no"
17912 rm -f core conftest.err conftest.
$ac_objext \
17913 conftest
$ac_exeext conftest.
$ac_ext
17915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__cpuid" >&5
17916 $as_echo "$pgac_cv__cpuid" >&6; }
17917 if test x
"$pgac_cv__cpuid" = x
"yes"; then
17919 $as_echo "#define HAVE__CPUID 1" >>confdefs.h
17923 # Check for Intel SSE 4.2 intrinsics to do CRC calculations.
17925 # First check if the _mm_crc32_u8 and _mm_crc32_u64 intrinsics can be used
17926 # with the default compiler flags. If not, check if adding the -msse4.2
17927 # flag helps. CFLAGS_CRC is set to -msse4.2 if that's required.
17928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=" >&5
17929 $as_echo_n "checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=... " >&6; }
17930 if ${pgac_cv_sse42_crc32_intrinsics_+:} false
; then :
17931 $as_echo_n "(cached) " >&6
17933 pgac_save_CFLAGS
=$CFLAGS
17934 CFLAGS
="$pgac_save_CFLAGS "
17935 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17936 /* end confdefs.h. */
17937 #include <nmmintrin.h>
17941 unsigned int crc = 0;
17942 crc = _mm_crc32_u8(crc, 0);
17943 crc = _mm_crc32_u32(crc, 0);
17944 /* return computed value, to prevent the above being optimized away */
17950 if ac_fn_c_try_link
"$LINENO"; then :
17951 pgac_cv_sse42_crc32_intrinsics_
=yes
17953 pgac_cv_sse42_crc32_intrinsics_
=no
17955 rm -f core conftest.err conftest.
$ac_objext \
17956 conftest
$ac_exeext conftest.
$ac_ext
17957 CFLAGS
="$pgac_save_CFLAGS"
17959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_sse42_crc32_intrinsics_" >&5
17960 $as_echo "$pgac_cv_sse42_crc32_intrinsics_" >&6; }
17961 if test x
"$pgac_cv_sse42_crc32_intrinsics_" = x
"yes"; then
17963 pgac_sse42_crc32_intrinsics
=yes
17966 if test x
"$pgac_sse42_crc32_intrinsics" != x
"yes"; then
17967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=-msse4.2" >&5
17968 $as_echo_n "checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=-msse4.2... " >&6; }
17969 if ${pgac_cv_sse42_crc32_intrinsics__msse4_2+:} false
; then :
17970 $as_echo_n "(cached) " >&6
17972 pgac_save_CFLAGS
=$CFLAGS
17973 CFLAGS
="$pgac_save_CFLAGS -msse4.2"
17974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17975 /* end confdefs.h. */
17976 #include <nmmintrin.h>
17980 unsigned int crc = 0;
17981 crc = _mm_crc32_u8(crc, 0);
17982 crc = _mm_crc32_u32(crc, 0);
17983 /* return computed value, to prevent the above being optimized away */
17989 if ac_fn_c_try_link
"$LINENO"; then :
17990 pgac_cv_sse42_crc32_intrinsics__msse4_2
=yes
17992 pgac_cv_sse42_crc32_intrinsics__msse4_2
=no
17994 rm -f core conftest.err conftest.
$ac_objext \
17995 conftest
$ac_exeext conftest.
$ac_ext
17996 CFLAGS
="$pgac_save_CFLAGS"
17998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_sse42_crc32_intrinsics__msse4_2" >&5
17999 $as_echo "$pgac_cv_sse42_crc32_intrinsics__msse4_2" >&6; }
18000 if test x
"$pgac_cv_sse42_crc32_intrinsics__msse4_2" = x
"yes"; then
18001 CFLAGS_CRC
="-msse4.2"
18002 pgac_sse42_crc32_intrinsics
=yes
18007 # Are we targeting a processor that supports SSE 4.2? gcc, clang and icc all
18008 # define __SSE4_2__ in that case.
18009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18010 /* end confdefs.h. */
18017 #error __SSE4_2__ not defined
18024 if ac_fn_c_try_compile
"$LINENO"; then :
18027 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18029 # Check for ARMv8 CRC Extension intrinsics to do CRC calculations.
18031 # First check if __crc32c* intrinsics can be used with the default compiler
18032 # flags. If not, check if adding -march=armv8-a+crc flag helps.
18033 # CFLAGS_CRC is set if the extra flag is required.
18034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=" >&5
18035 $as_echo_n "checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=... " >&6; }
18036 if ${pgac_cv_armv8_crc32c_intrinsics_+:} false
; then :
18037 $as_echo_n "(cached) " >&6
18039 pgac_save_CFLAGS
=$CFLAGS
18040 CFLAGS
="$pgac_save_CFLAGS "
18041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18042 /* end confdefs.h. */
18043 #include <arm_acle.h>
18047 unsigned int crc = 0;
18048 crc = __crc32cb(crc, 0);
18049 crc = __crc32ch(crc, 0);
18050 crc = __crc32cw(crc, 0);
18051 crc = __crc32cd(crc, 0);
18052 /* return computed value, to prevent the above being optimized away */
18058 if ac_fn_c_try_link
"$LINENO"; then :
18059 pgac_cv_armv8_crc32c_intrinsics_
=yes
18061 pgac_cv_armv8_crc32c_intrinsics_
=no
18063 rm -f core conftest.err conftest.
$ac_objext \
18064 conftest
$ac_exeext conftest.
$ac_ext
18065 CFLAGS
="$pgac_save_CFLAGS"
18067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_armv8_crc32c_intrinsics_" >&5
18068 $as_echo "$pgac_cv_armv8_crc32c_intrinsics_" >&6; }
18069 if test x
"$pgac_cv_armv8_crc32c_intrinsics_" = x
"yes"; then
18071 pgac_armv8_crc32c_intrinsics
=yes
18074 if test x
"$pgac_armv8_crc32c_intrinsics" != x
"yes"; then
18075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=-march=armv8-a+crc" >&5
18076 $as_echo_n "checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=-march=armv8-a+crc... " >&6; }
18077 if ${pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc+:} false
; then :
18078 $as_echo_n "(cached) " >&6
18080 pgac_save_CFLAGS
=$CFLAGS
18081 CFLAGS
="$pgac_save_CFLAGS -march=armv8-a+crc"
18082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18083 /* end confdefs.h. */
18084 #include <arm_acle.h>
18088 unsigned int crc = 0;
18089 crc = __crc32cb(crc, 0);
18090 crc = __crc32ch(crc, 0);
18091 crc = __crc32cw(crc, 0);
18092 crc = __crc32cd(crc, 0);
18093 /* return computed value, to prevent the above being optimized away */
18099 if ac_fn_c_try_link
"$LINENO"; then :
18100 pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc
=yes
18102 pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc
=no
18104 rm -f core conftest.err conftest.
$ac_objext \
18105 conftest
$ac_exeext conftest.
$ac_ext
18106 CFLAGS
="$pgac_save_CFLAGS"
18108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc" >&5
18109 $as_echo "$pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc" >&6; }
18110 if test x
"$pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc" = x
"yes"; then
18111 CFLAGS_CRC
="-march=armv8-a+crc"
18112 pgac_armv8_crc32c_intrinsics
=yes
18119 # Select CRC-32C implementation.
18121 # If we are targeting a processor that has Intel SSE 4.2 instructions, we can
18122 # use the special CRC instructions for calculating CRC-32C. If we're not
18123 # targeting such a processor, but we can nevertheless produce code that uses
18124 # the SSE intrinsics, perhaps with some extra CFLAGS, compile both
18125 # implementations and select which one to use at runtime, depending on whether
18126 # SSE 4.2 is supported by the processor we're running on.
18128 # Similarly, if we are targeting an ARM processor that has the CRC
18129 # instructions that are part of the ARMv8 CRC Extension, use them. And if
18130 # we're not targeting such a processor, but can nevertheless produce code that
18131 # uses the CRC instructions, compile both, and select at runtime.
18133 # You can override this logic by setting the appropriate USE_*_CRC32 flag to 1
18134 # in the template or configure command line.
18135 if test x
"$USE_SLICING_BY_8_CRC32C" = x
"" && test x
"$USE_SSE42_CRC32C" = x
"" && test x
"$USE_SSE42_CRC32C_WITH_RUNTIME_CHECK" = x
"" && test x
"$USE_ARMV8_CRC32C" = x
"" && test x
"$USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK" = x
""; then
18136 # Use Intel SSE 4.2 if available.
18137 if test x
"$pgac_sse42_crc32_intrinsics" = x
"yes" && test x
"$SSE4_2_TARGETED" = x
"1" ; then
18140 # Intel SSE 4.2, with runtime check? The CPUID instruction is needed for
18141 # the runtime check.
18142 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
18143 USE_SSE42_CRC32C_WITH_RUNTIME_CHECK
=1
18145 # Use ARM CRC Extension if available.
18146 if test x
"$pgac_armv8_crc32c_intrinsics" = x
"yes" && test x
"$CFLAGS_CRC" = x
""; then
18149 # ARM CRC Extension, with runtime check?
18150 if test x
"$pgac_armv8_crc32c_intrinsics" = x
"yes"; then
18151 USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK
=1
18153 # fall back to slicing-by-8 algorithm, which doesn't require any
18154 # special CPU support.
18155 USE_SLICING_BY_8_CRC32C
=1
18162 # Set PG_CRC32C_OBJS appropriately depending on the selected implementation.
18163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which CRC-32C implementation to use" >&5
18164 $as_echo_n "checking which CRC-32C implementation to use... " >&6; }
18165 if test x
"$USE_SSE42_CRC32C" = x
"1"; then
18167 $as_echo "#define USE_SSE42_CRC32C 1" >>confdefs.h
18169 PG_CRC32C_OBJS
="pg_crc32c_sse42.o"
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SSE 4.2" >&5
18171 $as_echo "SSE 4.2" >&6; }
18173 if test x
"$USE_SSE42_CRC32C_WITH_RUNTIME_CHECK" = x
"1"; then
18175 $as_echo "#define USE_SSE42_CRC32C_WITH_RUNTIME_CHECK 1" >>confdefs.h
18177 PG_CRC32C_OBJS
="pg_crc32c_sse42.o pg_crc32c_sb8.o pg_crc32c_sse42_choose.o"
18178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SSE 4.2 with runtime check" >&5
18179 $as_echo "SSE 4.2 with runtime check" >&6; }
18181 if test x
"$USE_ARMV8_CRC32C" = x
"1"; then
18183 $as_echo "#define USE_ARMV8_CRC32C 1" >>confdefs.h
18185 PG_CRC32C_OBJS
="pg_crc32c_armv8.o"
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ARMv8 CRC instructions" >&5
18187 $as_echo "ARMv8 CRC instructions" >&6; }
18189 if test x
"$USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK" = x
"1"; then
18191 $as_echo "#define USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK 1" >>confdefs.h
18193 PG_CRC32C_OBJS
="pg_crc32c_armv8.o pg_crc32c_sb8.o pg_crc32c_armv8_choose.o"
18194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ARMv8 CRC instructions with runtime check" >&5
18195 $as_echo "ARMv8 CRC instructions with runtime check" >&6; }
18198 $as_echo "#define USE_SLICING_BY_8_CRC32C 1" >>confdefs.h
18200 PG_CRC32C_OBJS
="pg_crc32c_sb8.o"
18201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: slicing-by-8" >&5
18202 $as_echo "slicing-by-8" >&6; }
18210 # Select semaphore implementation type.
18211 if test "$PORTNAME" != "win32"; then
18212 if test x
"$PREFERRED_SEMAPHORES" = x
"NAMED_POSIX" ; then
18213 # Need sem_open for this
18214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_open" >&5
18215 $as_echo_n "checking for library containing sem_open... " >&6; }
18216 if ${ac_cv_search_sem_open+:} false
; then :
18217 $as_echo_n "(cached) " >&6
18219 ac_func_search_save_LIBS
=$LIBS
18220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18221 /* end confdefs.h. */
18223 /* Override any GCC internal prototype to avoid an error.
18224 Use char because int might match the return type of a GCC
18225 builtin and then its argument prototype would still apply. */
18233 return sem_open ();
18238 for ac_lib
in '' rt pthread
; do
18239 if test -z "$ac_lib"; then
18240 ac_res
="none required"
18243 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
18245 if ac_fn_c_try_link
"$LINENO"; then :
18246 ac_cv_search_sem_open
=$ac_res
18248 rm -f core conftest.err conftest.
$ac_objext \
18250 if ${ac_cv_search_sem_open+:} false
; then :
18254 if ${ac_cv_search_sem_open+:} false
; then :
18257 ac_cv_search_sem_open
=no
18259 rm conftest.
$ac_ext
18260 LIBS
=$ac_func_search_save_LIBS
18262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_open" >&5
18263 $as_echo "$ac_cv_search_sem_open" >&6; }
18264 ac_res
=$ac_cv_search_sem_open
18265 if test "$ac_res" != no
; then :
18266 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
18267 USE_NAMED_POSIX_SEMAPHORES
=1
18271 if test x
"$PREFERRED_SEMAPHORES" = x
"UNNAMED_POSIX" ; then
18272 # Need sem_init for this
18273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
18274 $as_echo_n "checking for library containing sem_init... " >&6; }
18275 if ${ac_cv_search_sem_init+:} false
; then :
18276 $as_echo_n "(cached) " >&6
18278 ac_func_search_save_LIBS
=$LIBS
18279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18280 /* end confdefs.h. */
18282 /* Override any GCC internal prototype to avoid an error.
18283 Use char because int might match the return type of a GCC
18284 builtin and then its argument prototype would still apply. */
18292 return sem_init ();
18297 for ac_lib
in '' rt pthread
; do
18298 if test -z "$ac_lib"; then
18299 ac_res
="none required"
18302 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
18304 if ac_fn_c_try_link
"$LINENO"; then :
18305 ac_cv_search_sem_init
=$ac_res
18307 rm -f core conftest.err conftest.
$ac_objext \
18309 if ${ac_cv_search_sem_init+:} false
; then :
18313 if ${ac_cv_search_sem_init+:} false
; then :
18316 ac_cv_search_sem_init
=no
18318 rm conftest.
$ac_ext
18319 LIBS
=$ac_func_search_save_LIBS
18321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
18322 $as_echo "$ac_cv_search_sem_init" >&6; }
18323 ac_res
=$ac_cv_search_sem_init
18324 if test "$ac_res" != no
; then :
18325 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
18326 USE_UNNAMED_POSIX_SEMAPHORES
=1
18330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which semaphore API to use" >&5
18331 $as_echo_n "checking which semaphore API to use... " >&6; }
18332 if test x
"$USE_NAMED_POSIX_SEMAPHORES" = x
"1" ; then
18334 $as_echo "#define USE_NAMED_POSIX_SEMAPHORES 1" >>confdefs.h
18336 SEMA_IMPLEMENTATION
="src/backend/port/posix_sema.c"
18337 sematype
="named POSIX"
18339 if test x
"$USE_UNNAMED_POSIX_SEMAPHORES" = x
"1" ; then
18341 $as_echo "#define USE_UNNAMED_POSIX_SEMAPHORES 1" >>confdefs.h
18343 SEMA_IMPLEMENTATION
="src/backend/port/posix_sema.c"
18344 sematype
="unnamed POSIX"
18347 $as_echo "#define USE_SYSV_SEMAPHORES 1" >>confdefs.h
18349 SEMA_IMPLEMENTATION
="src/backend/port/sysv_sema.c"
18350 sematype
="System V"
18353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sematype" >&5
18354 $as_echo "$sematype" >&6; }
18357 $as_echo "#define USE_WIN32_SEMAPHORES 1" >>confdefs.h
18359 SEMA_IMPLEMENTATION
="src/backend/port/win32_sema.c"
18363 # Select shared-memory implementation type.
18364 if test "$PORTNAME" != "win32"; then
18366 $as_echo "#define USE_SYSV_SHARED_MEMORY 1" >>confdefs.h
18368 SHMEM_IMPLEMENTATION
="src/backend/port/sysv_shmem.c"
18371 $as_echo "#define USE_WIN32_SHARED_MEMORY 1" >>confdefs.h
18373 SHMEM_IMPLEMENTATION
="src/backend/port/win32_shmem.c"
18376 # Select random number source. If a TLS library is used then it will be the
18377 # first choice, else the native platform sources (Windows API or /dev/urandom)
18379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which random number source to use" >&5
18380 $as_echo_n "checking which random number source to use... " >&6; }
18381 if test x
"$with_ssl" = x
"openssl" ; then
18382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenSSL" >&5
18383 $as_echo "OpenSSL" >&6; }
18384 elif test x
"$PORTNAME" = x
"win32" ; then
18385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows native" >&5
18386 $as_echo "Windows native" >&6; }
18387 elif test x
"$cross_compiling" = x
"yes"; then
18388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming /dev/urandom" >&5
18389 $as_echo "assuming /dev/urandom" >&6; }
18391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /dev/urandom" >&5
18392 $as_echo "/dev/urandom" >&6; }
18393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/urandom" >&5
18394 $as_echo_n "checking for /dev/urandom... " >&6; }
18395 if ${ac_cv_file__dev_urandom+:} false
; then :
18396 $as_echo_n "(cached) " >&6
18398 test "$cross_compiling" = yes &&
18399 as_fn_error $?
"cannot check for file existence when cross compiling" "$LINENO" 5
18400 if test -r "/dev/urandom"; then
18401 ac_cv_file__dev_urandom
=yes
18403 ac_cv_file__dev_urandom
=no
18406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_urandom" >&5
18407 $as_echo "$ac_cv_file__dev_urandom" >&6; }
18408 if test "x$ac_cv_file__dev_urandom" = xyes
; then :
18413 if test x
"$ac_cv_file__dev_urandom" = x
"no" ; then
18415 no source of strong random numbers was found
18416 PostgreSQL can use OpenSSL, native Windows API or /dev/urandom as a source of random numbers." "$LINENO" 5
18420 # If not set in template file, set bytes to use libc memset()
18421 if test x
"$MEMSET_LOOP_LIMIT" = x
"" ; then
18422 MEMSET_LOOP_LIMIT
=1024
18425 cat >>confdefs.h
<<_ACEOF
18426 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
18431 if test "$enable_nls" = yes ; then
18433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind_textdomain_codeset" >&5
18434 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
18435 if ${ac_cv_search_bind_textdomain_codeset+:} false
; then :
18436 $as_echo_n "(cached) " >&6
18438 ac_func_search_save_LIBS
=$LIBS
18439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18440 /* end confdefs.h. */
18442 /* Override any GCC internal prototype to avoid an error.
18443 Use char because int might match the return type of a GCC
18444 builtin and then its argument prototype would still apply. */
18448 char bind_textdomain_codeset ();
18452 return bind_textdomain_codeset ();
18457 for ac_lib
in '' intl
; do
18458 if test -z "$ac_lib"; then
18459 ac_res
="none required"
18462 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
18464 if ac_fn_c_try_link
"$LINENO"; then :
18465 ac_cv_search_bind_textdomain_codeset
=$ac_res
18467 rm -f core conftest.err conftest.
$ac_objext \
18469 if ${ac_cv_search_bind_textdomain_codeset+:} false
; then :
18473 if ${ac_cv_search_bind_textdomain_codeset+:} false
; then :
18476 ac_cv_search_bind_textdomain_codeset
=no
18478 rm conftest.
$ac_ext
18479 LIBS
=$ac_func_search_save_LIBS
18481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind_textdomain_codeset" >&5
18482 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
18483 ac_res
=$ac_cv_search_bind_textdomain_codeset
18484 if test "$ac_res" != no
; then :
18485 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
18488 as_fn_error $?
"a gettext implementation is required for NLS" "$LINENO" 5
18491 ac_fn_c_check_header_mongrel
"$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
18492 if test "x$ac_cv_header_libintl_h" = xyes
; then :
18495 as_fn_error $?
"header file <libintl.h> is required for NLS" "$LINENO" 5
18499 if test -z "$MSGFMT"; then
18500 for ac_prog
in msgfmt
18502 # Extract the first word of "$ac_prog", so it can be a program name with args.
18503 set dummy
$ac_prog; ac_word
=$2
18504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18505 $as_echo_n "checking for $ac_word... " >&6; }
18506 if ${ac_cv_path_MSGFMT+:} false
; then :
18507 $as_echo_n "(cached) " >&6
18511 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
18514 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18515 for as_dir
in $PATH
18518 test -z "$as_dir" && as_dir
=.
18519 for ac_exec_ext
in '' $ac_executable_extensions; do
18520 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18521 ac_cv_path_MSGFMT
="$as_dir/$ac_word$ac_exec_ext"
18522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18532 MSGFMT
=$ac_cv_path_MSGFMT
18533 if test -n "$MSGFMT"; then
18534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18535 $as_echo "$MSGFMT" >&6; }
18537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18538 $as_echo "no" >&6; }
18542 test -n "$MSGFMT" && break
18546 # Report the value of MSGFMT in configure's output in all cases.
18547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSGFMT" >&5
18548 $as_echo_n "checking for MSGFMT... " >&6; }
18549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18550 $as_echo "$MSGFMT" >&6; }
18553 if test -z "$MSGFMT"; then
18554 as_fn_error $?
"msgfmt is required for NLS" "$LINENO" 5
18556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msgfmt flags" >&5
18557 $as_echo_n "checking for msgfmt flags... " >&6; }
18558 if ${pgac_cv_msgfmt_flags+:} false
; then :
18559 $as_echo_n "(cached) " >&6
18561 if test x
"$MSGFMT" != x
"" && "$MSGFMT" --version 2>&1 |
grep "GNU" >/dev
/null
; then
18562 pgac_cv_msgfmt_flags
=-c
18565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_msgfmt_flags" >&5
18566 $as_echo "$pgac_cv_msgfmt_flags" >&6; }
18567 MSGFMT_FLAGS
=$pgac_cv_msgfmt_flags
18569 if test -z "$MSGMERGE"; then
18570 for ac_prog
in msgmerge
18572 # Extract the first word of "$ac_prog", so it can be a program name with args.
18573 set dummy
$ac_prog; ac_word
=$2
18574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18575 $as_echo_n "checking for $ac_word... " >&6; }
18576 if ${ac_cv_path_MSGMERGE+:} false
; then :
18577 $as_echo_n "(cached) " >&6
18581 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
18584 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18585 for as_dir
in $PATH
18588 test -z "$as_dir" && as_dir
=.
18589 for ac_exec_ext
in '' $ac_executable_extensions; do
18590 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18591 ac_cv_path_MSGMERGE
="$as_dir/$ac_word$ac_exec_ext"
18592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18602 MSGMERGE
=$ac_cv_path_MSGMERGE
18603 if test -n "$MSGMERGE"; then
18604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
18605 $as_echo "$MSGMERGE" >&6; }
18607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18608 $as_echo "no" >&6; }
18612 test -n "$MSGMERGE" && break
18616 # Report the value of MSGMERGE in configure's output in all cases.
18617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSGMERGE" >&5
18618 $as_echo_n "checking for MSGMERGE... " >&6; }
18619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
18620 $as_echo "$MSGMERGE" >&6; }
18623 if test -z "$XGETTEXT"; then
18624 for ac_prog
in xgettext
18626 # Extract the first word of "$ac_prog", so it can be a program name with args.
18627 set dummy
$ac_prog; ac_word
=$2
18628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18629 $as_echo_n "checking for $ac_word... " >&6; }
18630 if ${ac_cv_path_XGETTEXT+:} false
; then :
18631 $as_echo_n "(cached) " >&6
18635 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
18638 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18639 for as_dir
in $PATH
18642 test -z "$as_dir" && as_dir
=.
18643 for ac_exec_ext
in '' $ac_executable_extensions; do
18644 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18645 ac_cv_path_XGETTEXT
="$as_dir/$ac_word$ac_exec_ext"
18646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18656 XGETTEXT
=$ac_cv_path_XGETTEXT
18657 if test -n "$XGETTEXT"; then
18658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
18659 $as_echo "$XGETTEXT" >&6; }
18661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18662 $as_echo "no" >&6; }
18666 test -n "$XGETTEXT" && break
18670 # Report the value of XGETTEXT in configure's output in all cases.
18671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGETTEXT" >&5
18672 $as_echo_n "checking for XGETTEXT... " >&6; }
18673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
18674 $as_echo "$XGETTEXT" >&6; }
18680 # Check for Tcl configuration script tclConfig.sh
18681 if test "$with_tcl" = yes; then
18682 if test -z "$TCLSH"; then
18683 for ac_prog
in tclsh tcl tclsh8.6 tclsh86 tclsh8.5 tclsh85 tclsh8.4 tclsh84
18685 # Extract the first word of "$ac_prog", so it can be a program name with args.
18686 set dummy
$ac_prog; ac_word
=$2
18687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18688 $as_echo_n "checking for $ac_word... " >&6; }
18689 if ${ac_cv_path_TCLSH+:} false
; then :
18690 $as_echo_n "(cached) " >&6
18694 ac_cv_path_TCLSH
="$TCLSH" # Let the user override the test with a path.
18697 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18698 for as_dir
in $PATH
18701 test -z "$as_dir" && as_dir
=.
18702 for ac_exec_ext
in '' $ac_executable_extensions; do
18703 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18704 ac_cv_path_TCLSH
="$as_dir/$ac_word$ac_exec_ext"
18705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18715 TCLSH
=$ac_cv_path_TCLSH
18716 if test -n "$TCLSH"; then
18717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
18718 $as_echo "$TCLSH" >&6; }
18720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18721 $as_echo "no" >&6; }
18725 test -n "$TCLSH" && break
18729 # Report the value of TCLSH in configure's output in all cases.
18730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCLSH" >&5
18731 $as_echo_n "checking for TCLSH... " >&6; }
18732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
18733 $as_echo "$TCLSH" >&6; }
18736 if test x
"$TCLSH" = x
""; then
18737 as_fn_error $?
"Tcl shell not found" "$LINENO" 5
18740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclConfig.sh" >&5
18741 $as_echo_n "checking for tclConfig.sh... " >&6; }
18742 # Let user override test
18743 if test -z "$TCL_CONFIG_SH"; then
18744 pgac_test_dirs
="$with_tclconfig"
18746 set X
$pgac_test_dirs; shift
18747 if test $# -eq 0; then
18748 test -z "$TCLSH" && as_fn_error $?
"unable to locate tclConfig.sh because no Tcl shell was found" "$LINENO" 5
18749 pgac_test_dirs
=`echo 'puts $auto_path' | $TCLSH`
18750 # On newer macOS, $auto_path frequently doesn't include the place
18751 # where tclConfig.sh actually lives. Append that to the end, so as not
18752 # to break cases where a non-default Tcl installation is being used.
18753 if test -d "$PG_SYSROOT/System/Library/Frameworks/Tcl.framework" ; then
18754 pgac_test_dirs
="$pgac_test_dirs $PG_SYSROOT/System/Library/Frameworks/Tcl.framework"
18756 set X
$pgac_test_dirs; shift
18760 if test -r "$pgac_dir/tclConfig.sh"; then
18761 TCL_CONFIG_SH
=$pgac_dir/tclConfig.sh
18767 if test -z "$TCL_CONFIG_SH"; then
18768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18769 $as_echo "no" >&6; }
18770 as_fn_error $?
"file 'tclConfig.sh' is required for Tcl" "$LINENO" 5
18772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCL_CONFIG_SH" >&5
18773 $as_echo "$TCL_CONFIG_SH" >&6; }
18779 eval TCL_INCLUDE_SPEC
=\"$TCL_INCLUDE_SPEC\"
18780 eval TCL_LIBS
=\"$TCL_LIBS\"
18781 eval TCL_LIB_SPEC
=\"$TCL_LIB_SPEC\"
18782 eval TCL_SHARED_BUILD
=\"$TCL_SHARED_BUILD\"
18784 if test "$TCL_SHARED_BUILD" != 1; then
18785 as_fn_error $?
"cannot build PL/Tcl because Tcl is not a shared library
18786 Use --without-tcl to disable building PL/Tcl." "$LINENO" 5
18788 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
18789 ac_save_CPPFLAGS
=$CPPFLAGS
18790 CPPFLAGS
="$TCL_INCLUDE_SPEC $CPPFLAGS"
18791 ac_fn_c_check_header_mongrel
"$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
18792 if test "x$ac_cv_header_tcl_h" = xyes
; then :
18795 as_fn_error $?
"header file <tcl.h> is required for Tcl" "$LINENO" 5
18799 CPPFLAGS
=$ac_save_CPPFLAGS
18802 # check for <perl.h>
18803 if test "$with_perl" = yes; then
18804 ac_save_CPPFLAGS
=$CPPFLAGS
18805 CPPFLAGS
="$CPPFLAGS $perl_includespec"
18806 ac_fn_c_check_header_compile
"$LINENO" "perl.h" "ac_cv_header_perl_h" "#include <EXTERN.h>
18808 if test "x$ac_cv_header_perl_h" = xyes
; then :
18811 as_fn_error $?
"header file <perl.h> is required for Perl" "$LINENO" 5
18815 # While we're at it, check that we can link to libperl.
18816 # On most platforms, if perl.h is there then libperl.so will be too, but at
18817 # this writing Debian packages them separately. There is no known reason to
18818 # waste cycles on separate probes for the Tcl or Python libraries, though.
18819 # On some Red Hat platforms, the link attempt can fail if we don't use
18820 # CFLAGS_SL while building the test program.
18821 ac_save_CFLAGS
=$CFLAGS
18822 CFLAGS
="$CFLAGS $CFLAGS_SL"
18823 pgac_save_LIBS
=$LIBS
18824 LIBS
="$perl_embed_ldflags"
18825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libperl" >&5
18826 $as_echo_n "checking for libperl... " >&6; }
18827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18828 /* end confdefs.h. */
18830 #include <EXTERN.h>
18841 if ac_fn_c_try_link
"$LINENO"; then :
18842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18843 $as_echo "yes" >&6; }
18845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18846 $as_echo "no" >&6; }
18847 as_fn_error $?
"libperl library is required for Perl" "$LINENO" 5
18849 rm -f core conftest.err conftest.
$ac_objext \
18850 conftest
$ac_exeext conftest.
$ac_ext
18851 LIBS
=$pgac_save_LIBS
18852 CFLAGS
=$ac_save_CFLAGS
18853 CPPFLAGS
=$ac_save_CPPFLAGS
18856 # check for <Python.h>
18857 if test "$with_python" = yes; then
18858 ac_save_CPPFLAGS
=$CPPFLAGS
18859 CPPFLAGS
="$python_includespec $CPPFLAGS"
18860 ac_fn_c_check_header_mongrel
"$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
18861 if test "x$ac_cv_header_Python_h" = xyes
; then :
18864 as_fn_error $?
"header file <Python.h> is required for Python" "$LINENO" 5
18868 CPPFLAGS
=$ac_save_CPPFLAGS
18872 # Check for documentation-building tools
18874 if test -z "$XMLLINT"; then
18875 for ac_prog
in xmllint
18877 # Extract the first word of "$ac_prog", so it can be a program name with args.
18878 set dummy
$ac_prog; ac_word
=$2
18879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18880 $as_echo_n "checking for $ac_word... " >&6; }
18881 if ${ac_cv_path_XMLLINT+:} false
; then :
18882 $as_echo_n "(cached) " >&6
18886 ac_cv_path_XMLLINT
="$XMLLINT" # Let the user override the test with a path.
18889 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18890 for as_dir
in $PATH
18893 test -z "$as_dir" && as_dir
=.
18894 for ac_exec_ext
in '' $ac_executable_extensions; do
18895 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18896 ac_cv_path_XMLLINT
="$as_dir/$ac_word$ac_exec_ext"
18897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18907 XMLLINT
=$ac_cv_path_XMLLINT
18908 if test -n "$XMLLINT"; then
18909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
18910 $as_echo "$XMLLINT" >&6; }
18912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18913 $as_echo "no" >&6; }
18917 test -n "$XMLLINT" && break
18921 # Report the value of XMLLINT in configure's output in all cases.
18922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMLLINT" >&5
18923 $as_echo_n "checking for XMLLINT... " >&6; }
18924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
18925 $as_echo "$XMLLINT" >&6; }
18928 if test -z "$XSLTPROC"; then
18929 for ac_prog
in xsltproc
18931 # Extract the first word of "$ac_prog", so it can be a program name with args.
18932 set dummy
$ac_prog; ac_word
=$2
18933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18934 $as_echo_n "checking for $ac_word... " >&6; }
18935 if ${ac_cv_path_XSLTPROC+:} false
; then :
18936 $as_echo_n "(cached) " >&6
18940 ac_cv_path_XSLTPROC
="$XSLTPROC" # Let the user override the test with a path.
18943 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18944 for as_dir
in $PATH
18947 test -z "$as_dir" && as_dir
=.
18948 for ac_exec_ext
in '' $ac_executable_extensions; do
18949 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18950 ac_cv_path_XSLTPROC
="$as_dir/$ac_word$ac_exec_ext"
18951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18961 XSLTPROC
=$ac_cv_path_XSLTPROC
18962 if test -n "$XSLTPROC"; then
18963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
18964 $as_echo "$XSLTPROC" >&6; }
18966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18967 $as_echo "no" >&6; }
18971 test -n "$XSLTPROC" && break
18975 # Report the value of XSLTPROC in configure's output in all cases.
18976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSLTPROC" >&5
18977 $as_echo_n "checking for XSLTPROC... " >&6; }
18978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
18979 $as_echo "$XSLTPROC" >&6; }
18982 if test -z "$FOP"; then
18985 # Extract the first word of "$ac_prog", so it can be a program name with args.
18986 set dummy
$ac_prog; ac_word
=$2
18987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18988 $as_echo_n "checking for $ac_word... " >&6; }
18989 if ${ac_cv_path_FOP+:} false
; then :
18990 $as_echo_n "(cached) " >&6
18994 ac_cv_path_FOP
="$FOP" # Let the user override the test with a path.
18997 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18998 for as_dir
in $PATH
19001 test -z "$as_dir" && as_dir
=.
19002 for ac_exec_ext
in '' $ac_executable_extensions; do
19003 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19004 ac_cv_path_FOP
="$as_dir/$ac_word$ac_exec_ext"
19005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19015 FOP
=$ac_cv_path_FOP
19016 if test -n "$FOP"; then
19017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
19018 $as_echo "$FOP" >&6; }
19020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19021 $as_echo "no" >&6; }
19025 test -n "$FOP" && break
19029 # Report the value of FOP in configure's output in all cases.
19030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FOP" >&5
19031 $as_echo_n "checking for FOP... " >&6; }
19032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
19033 $as_echo "$FOP" >&6; }
19036 if test -z "$DBTOEPUB"; then
19037 for ac_prog
in dbtoepub
19039 # Extract the first word of "$ac_prog", so it can be a program name with args.
19040 set dummy
$ac_prog; ac_word
=$2
19041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19042 $as_echo_n "checking for $ac_word... " >&6; }
19043 if ${ac_cv_path_DBTOEPUB+:} false
; then :
19044 $as_echo_n "(cached) " >&6
19048 ac_cv_path_DBTOEPUB
="$DBTOEPUB" # Let the user override the test with a path.
19051 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19052 for as_dir
in $PATH
19055 test -z "$as_dir" && as_dir
=.
19056 for ac_exec_ext
in '' $ac_executable_extensions; do
19057 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19058 ac_cv_path_DBTOEPUB
="$as_dir/$ac_word$ac_exec_ext"
19059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19069 DBTOEPUB
=$ac_cv_path_DBTOEPUB
19070 if test -n "$DBTOEPUB"; then
19071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBTOEPUB" >&5
19072 $as_echo "$DBTOEPUB" >&6; }
19074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19075 $as_echo "no" >&6; }
19079 test -n "$DBTOEPUB" && break
19083 # Report the value of DBTOEPUB in configure's output in all cases.
19084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBTOEPUB" >&5
19085 $as_echo_n "checking for DBTOEPUB... " >&6; }
19086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBTOEPUB" >&5
19087 $as_echo "$DBTOEPUB" >&6; }
19092 # Check for test tools
19094 if test "$enable_tap_tests" = yes; then
19095 # Make sure we know where prove is.
19096 if test -z "$PROVE"; then
19097 for ac_prog
in prove
19099 # Extract the first word of "$ac_prog", so it can be a program name with args.
19100 set dummy
$ac_prog; ac_word
=$2
19101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19102 $as_echo_n "checking for $ac_word... " >&6; }
19103 if ${ac_cv_path_PROVE+:} false
; then :
19104 $as_echo_n "(cached) " >&6
19108 ac_cv_path_PROVE
="$PROVE" # Let the user override the test with a path.
19111 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19112 for as_dir
in $PATH
19115 test -z "$as_dir" && as_dir
=.
19116 for ac_exec_ext
in '' $ac_executable_extensions; do
19117 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
19118 ac_cv_path_PROVE
="$as_dir/$ac_word$ac_exec_ext"
19119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19129 PROVE
=$ac_cv_path_PROVE
19130 if test -n "$PROVE"; then
19131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROVE" >&5
19132 $as_echo "$PROVE" >&6; }
19134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19135 $as_echo "no" >&6; }
19139 test -n "$PROVE" && break
19143 # Report the value of PROVE in configure's output in all cases.
19144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PROVE" >&5
19145 $as_echo_n "checking for PROVE... " >&6; }
19146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROVE" >&5
19147 $as_echo "$PROVE" >&6; }
19150 if test -z "$PROVE"; then
19151 as_fn_error $?
"prove not found" "$LINENO" 5
19153 # Check for necessary Perl modules. You might think we should use
19154 # AX_PROG_PERL_MODULES here, but prove might be part of a different Perl
19155 # installation than perl, eg on MSys, so we have to check using prove.
19156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl modules required for TAP tests" >&5
19157 $as_echo_n "checking for Perl modules required for TAP tests... " >&6; }
19158 __CONFIG_HOST_OS__
=$host_os; export __CONFIG_HOST_OS__
19159 modulestderr
=`"$PROVE" "$srcdir/config/check_modules.pl" 2>&1 >/dev/null`
19160 if test $?
-eq 0; then
19161 # log the module version details, but don't show them interactively
19162 echo "$modulestderr" >&5
19163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19164 $as_echo "yes" >&6; }
19166 # on failure, though, show the results to the user
19167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $modulestderr" >&5
19168 $as_echo "$modulestderr" >&6; }
19169 as_fn_error $?
"Additional Perl modules are required to run TAP tests" "$LINENO" 5
19173 # If compiler will take -Wl,--as-needed (or various platform-specific
19174 # spellings thereof) then add that to LDFLAGS. This is much easier than
19175 # trying to filter LIBS to the minimum for each executable.
19176 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
19177 # libreadline; therefore we postpone testing it until we know what library
19178 # dependencies readline has. The test code will try to link with $LIBS.
19179 if test "$with_readline" = yes; then
19180 link_test_func
=readline
19182 link_test_func
=exit
19185 if test "$PORTNAME" = "darwin"; then
19186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,-dead_strip_dylibs, for LDFLAGS" >&5
19187 $as_echo_n "checking whether $CC supports -Wl,-dead_strip_dylibs, for LDFLAGS... " >&6; }
19188 if ${pgac_cv_prog_cc_LDFLAGS__Wl__dead_strip_dylibs+:} false
; then :
19189 $as_echo_n "(cached) " >&6
19191 pgac_save_LDFLAGS
=$LDFLAGS
19192 LDFLAGS
="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
19193 if test "$cross_compiling" = yes; then :
19194 pgac_cv_prog_cc_LDFLAGS__Wl__dead_strip_dylibs
="assuming no"
19196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19197 /* end confdefs.h. */
19198 extern void $link_test_func (); void (*fptr) () = $link_test_func;
19207 if ac_fn_c_try_run
"$LINENO"; then :
19208 pgac_cv_prog_cc_LDFLAGS__Wl__dead_strip_dylibs
=yes
19210 pgac_cv_prog_cc_LDFLAGS__Wl__dead_strip_dylibs
=no
19212 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19213 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19216 LDFLAGS
="$pgac_save_LDFLAGS"
19218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_LDFLAGS__Wl__dead_strip_dylibs" >&5
19219 $as_echo "$pgac_cv_prog_cc_LDFLAGS__Wl__dead_strip_dylibs" >&6; }
19220 if test x
"$pgac_cv_prog_cc_LDFLAGS__Wl__dead_strip_dylibs" = x
"yes"; then
19221 LDFLAGS
="${LDFLAGS} -Wl,-dead_strip_dylibs"
19225 elif test "$PORTNAME" = "openbsd"; then
19226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,-Bdynamic, for LDFLAGS" >&5
19227 $as_echo_n "checking whether $CC supports -Wl,-Bdynamic, for LDFLAGS... " >&6; }
19228 if ${pgac_cv_prog_cc_LDFLAGS__Wl__Bdynamic+:} false
; then :
19229 $as_echo_n "(cached) " >&6
19231 pgac_save_LDFLAGS
=$LDFLAGS
19232 LDFLAGS
="$pgac_save_LDFLAGS -Wl,-Bdynamic"
19233 if test "$cross_compiling" = yes; then :
19234 pgac_cv_prog_cc_LDFLAGS__Wl__Bdynamic
="assuming no"
19236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19237 /* end confdefs.h. */
19238 extern void $link_test_func (); void (*fptr) () = $link_test_func;
19247 if ac_fn_c_try_run
"$LINENO"; then :
19248 pgac_cv_prog_cc_LDFLAGS__Wl__Bdynamic
=yes
19250 pgac_cv_prog_cc_LDFLAGS__Wl__Bdynamic
=no
19252 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19253 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19256 LDFLAGS
="$pgac_save_LDFLAGS"
19258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_LDFLAGS__Wl__Bdynamic" >&5
19259 $as_echo "$pgac_cv_prog_cc_LDFLAGS__Wl__Bdynamic" >&6; }
19260 if test x
"$pgac_cv_prog_cc_LDFLAGS__Wl__Bdynamic" = x
"yes"; then
19261 LDFLAGS
="${LDFLAGS} -Wl,-Bdynamic"
19266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,--as-needed, for LDFLAGS" >&5
19267 $as_echo_n "checking whether $CC supports -Wl,--as-needed, for LDFLAGS... " >&6; }
19268 if ${pgac_cv_prog_cc_LDFLAGS__Wl___as_needed+:} false
; then :
19269 $as_echo_n "(cached) " >&6
19271 pgac_save_LDFLAGS
=$LDFLAGS
19272 LDFLAGS
="$pgac_save_LDFLAGS -Wl,--as-needed"
19273 if test "$cross_compiling" = yes; then :
19274 pgac_cv_prog_cc_LDFLAGS__Wl___as_needed
="assuming no"
19276 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19277 /* end confdefs.h. */
19278 extern void $link_test_func (); void (*fptr) () = $link_test_func;
19287 if ac_fn_c_try_run
"$LINENO"; then :
19288 pgac_cv_prog_cc_LDFLAGS__Wl___as_needed
=yes
19290 pgac_cv_prog_cc_LDFLAGS__Wl___as_needed
=no
19292 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19293 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19296 LDFLAGS
="$pgac_save_LDFLAGS"
19298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_LDFLAGS__Wl___as_needed" >&5
19299 $as_echo "$pgac_cv_prog_cc_LDFLAGS__Wl___as_needed" >&6; }
19300 if test x
"$pgac_cv_prog_cc_LDFLAGS__Wl___as_needed" = x
"yes"; then
19301 LDFLAGS
="${LDFLAGS} -Wl,--as-needed"
19307 # For linkers that understand --export-dynamic, add that to the LDFLAGS_EX_BE
19308 # (backend specific ldflags). One some platforms this will always fail (e.g.,
19309 # windows), but on others it depends on the choice of linker (e.g., solaris).
19310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,--export-dynamic, for LDFLAGS_EX_BE" >&5
19311 $as_echo_n "checking whether $CC supports -Wl,--export-dynamic, for LDFLAGS_EX_BE... " >&6; }
19312 if ${pgac_cv_prog_cc_LDFLAGS_EX_BE__Wl___export_dynamic+:} false
; then :
19313 $as_echo_n "(cached) " >&6
19315 pgac_save_LDFLAGS
=$LDFLAGS
19316 LDFLAGS
="$pgac_save_LDFLAGS -Wl,--export-dynamic"
19317 if test "$cross_compiling" = yes; then :
19318 pgac_cv_prog_cc_LDFLAGS_EX_BE__Wl___export_dynamic
="assuming no"
19320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19321 /* end confdefs.h. */
19322 extern void $link_test_func (); void (*fptr) () = $link_test_func;
19331 if ac_fn_c_try_run
"$LINENO"; then :
19332 pgac_cv_prog_cc_LDFLAGS_EX_BE__Wl___export_dynamic
=yes
19334 pgac_cv_prog_cc_LDFLAGS_EX_BE__Wl___export_dynamic
=no
19336 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19337 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19340 LDFLAGS
="$pgac_save_LDFLAGS"
19342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_LDFLAGS_EX_BE__Wl___export_dynamic" >&5
19343 $as_echo "$pgac_cv_prog_cc_LDFLAGS_EX_BE__Wl___export_dynamic" >&6; }
19344 if test x
"$pgac_cv_prog_cc_LDFLAGS_EX_BE__Wl___export_dynamic" = x
"yes"; then
19345 LDFLAGS_EX_BE
="${LDFLAGS_EX_BE} -Wl,--export-dynamic"
19350 # Create compiler version string
19351 if test x
"$GCC" = x
"yes" ; then
19352 cc_string
=`${CC} --version | sed q`
19353 case $cc_string in [A-Za-z
]*) ;; *) cc_string
="GCC $cc_string";; esac
19354 elif test x
"$SUN_STUDIO_CC" = x
"yes" ; then
19355 cc_string
=`${CC} -V 2>&1 | sed q`
19361 cat >>confdefs.h
<<_ACEOF
19362 #define PG_VERSION_STR "PostgreSQL $PG_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
19366 # Supply a numeric version string for use by 3rd party add-ons
19367 # awk -F is a regex on some platforms, and not on others, so make "." a tab
19368 PG_VERSION_NUM
="`echo $PG_MAJORVERSION $PG_MINORVERSION |
19369 $AWK '{printf "%d
%04d
", $1, $2}'`"
19371 cat >>confdefs.h
<<_ACEOF
19372 #define PG_VERSION_NUM $PG_VERSION_NUM
19377 # If we are inserting PG_SYSROOT into CPPFLAGS, do so symbolically not
19378 # literally, so that it's possible to override it at build time using
19379 # a command like "make ... PG_SYSROOT=path". This has to be done after
19380 # we've finished all configure checks that depend on CPPFLAGS.
19381 # The same for LDFLAGS, too.
19382 if test x
"$PG_SYSROOT" != x
; then
19383 CPPFLAGS
=`echo "$CPPFLAGS" | sed -e "s| $PG_SYSROOT | \\\$(PG_SYSROOT) |"`
19384 LDFLAGS
=`echo "$LDFLAGS" | sed -e "s| $PG_SYSROOT | \\\$(PG_SYSROOT) |"`
19389 # Begin output steps
19391 { $as_echo "$as_me:${as_lineno-$LINENO}: using compiler=$cc_string" >&5
19392 $as_echo "$as_me: using compiler=$cc_string" >&6;}
19393 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS=$CFLAGS" >&5
19394 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
19395 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS=$CPPFLAGS" >&5
19396 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
19397 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS=$LDFLAGS" >&5
19398 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
19399 # Currently only used when LLVM is used
19400 if test "$with_llvm" = yes ; then
19401 { $as_echo "$as_me:${as_lineno-$LINENO}: using CXX=$CXX" >&5
19402 $as_echo "$as_me: using CXX=$CXX" >&6;}
19403 { $as_echo "$as_me:${as_lineno-$LINENO}: using CXXFLAGS=$CXXFLAGS" >&5
19404 $as_echo "$as_me: using CXXFLAGS=$CXXFLAGS" >&6;}
19405 { $as_echo "$as_me:${as_lineno-$LINENO}: using CLANG=$CLANG" >&5
19406 $as_echo "$as_me: using CLANG=$CLANG" >&6;}
19407 { $as_echo "$as_me:${as_lineno-$LINENO}: using BITCODE_CFLAGS=$BITCODE_CFLAGS" >&5
19408 $as_echo "$as_me: using BITCODE_CFLAGS=$BITCODE_CFLAGS" >&6;}
19409 { $as_echo "$as_me:${as_lineno-$LINENO}: using BITCODE_CXXFLAGS=$BITCODE_CXXFLAGS" >&5
19410 $as_echo "$as_me: using BITCODE_CXXFLAGS=$BITCODE_CXXFLAGS" >&6;}
19413 # prepare build tree if outside source tree
19414 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
19415 # Note 2: /bin/pwd might be better than shell's built-in at getting
19416 # a symlink-free name.
19417 if ( test "$srcdir" -ef .
) >/dev
/null
2>&1 ||
test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
19421 if test "$no_create" != yes; then
19422 $as_echo_n "preparing build tree... " >&6
19423 pgac_abs_top_srcdir
=`cd "$srcdir" && pwd`
19424 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
19425 || as_fn_error $?
"failed" "$LINENO" 5
19426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19427 $as_echo "done" >&6; }
19433 ac_config_files
="$ac_config_files GNUmakefile src/Makefile.global"
19436 ac_config_links
="$ac_config_links src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION} src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION} src/include/pg_config_os.h:src/include/port/${template}.h src/Makefile.port:src/makefiles/Makefile.${template}"
19439 if test "$PORTNAME" = "win32"; then
19440 ac_config_commands
="$ac_config_commands check_win32_symlinks"
19444 ac_config_headers
="$ac_config_headers src/include/pg_config.h"
19447 ac_config_headers
="$ac_config_headers src/include/pg_config_ext.h"
19450 ac_config_headers
="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
19453 cat >confcache
<<\_ACEOF
19454 # This file is a shell script that caches the results of configure
19455 # tests run on this system so they can be shared between configure
19456 # scripts and configure runs, see configure's option --config-cache.
19457 # It is not useful on other systems. If it contains results you don't
19458 # want to keep, you may remove or edit it.
19460 # config.status only pays attention to the cache file if you give it
19461 # the --recheck option to rerun configure.
19463 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19464 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19465 # following values.
19469 # The following way of writing the cache mishandles newlines in values,
19470 # but we know of no workaround that is simple, portable, and efficient.
19471 # So, we kill variables containing newlines.
19472 # Ultrix sh set writes to stderr and can't be redirected directly,
19473 # and sets the high bit in the cache file unless we assign to the vars.
19475 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19476 eval ac_val
=\$
$ac_var
19480 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19481 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19484 _ | IFS | as_nl
) ;; #(
19485 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
19486 *) { eval $ac_var=; unset $ac_var;} ;;
19492 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19493 *${as_nl}ac_space
=\
*)
19494 # `set' does not quote correctly, so add quotes: double-quote
19495 # substitution turns \\\\ into \\, and sed turns \\ into \.
19498 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19501 # `set' quotes correctly as required by POSIX, so do not add quotes.
19502 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19511 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19513 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19515 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
19516 if test -w "$cache_file"; then
19517 if test "x$cache_file" != "x/dev/null"; then
19518 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19519 $as_echo "$as_me: updating cache $cache_file" >&6;}
19520 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
19521 cat confcache
>"$cache_file"
19523 case $cache_file in #(
19525 mv -f confcache
"$cache_file"$$
&&
19526 mv -f "$cache_file"$$
"$cache_file" ;; #(
19528 mv -f confcache
"$cache_file" ;;
19533 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19534 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19539 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
19540 # Let make expand exec_prefix.
19541 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19543 DEFS
=-DHAVE_CONFIG_H
19548 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
19549 # 1. Remove the extension, and $U if already installed.
19550 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
19551 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
19552 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19553 # will be set to the directory where LIBOBJS objects are built.
19554 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19555 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
19557 LIBOBJS
=$ac_libobjs
19559 LTLIBOBJS
=$ac_ltlibobjs
19564 : "${CONFIG_STATUS=./config.status}"
19566 ac_clean_files_save
=$ac_clean_files
19567 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
19568 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19569 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19571 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19573 # Generated by $as_me.
19574 # Run this file to recreate the current configuration.
19575 # Compiler output produced by configure, useful for debugging
19576 # configure, is in config.log if it exists.
19579 ac_cs_recheck=false
19582 SHELL=\${CONFIG_SHELL-$SHELL}
19585 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
19586 ## -------------------- ##
19587 ## M4sh Initialization. ##
19588 ## -------------------- ##
19590 # Be more Bourne compatible
19591 DUALCASE
=1; export DUALCASE
# for MKS sh
19592 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
19595 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19596 # is contrary to our usage. Disable this feature.
19597 alias -g '${1+"$@"}'='"$@"'
19598 setopt NO_GLOB_SUBST
19600 case `(set -o) 2>/dev/null` in #(
19612 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19613 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19614 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19615 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19616 # Prefer a ksh shell builtin over an external printf program on Solaris,
19617 # but without wasting forks for bash or zsh.
19618 if test -z "$BASH_VERSION$ZSH_VERSION" \
19619 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19620 as_echo='print
-r --'
19621 as_echo_n='print
-rn --'
19622 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19623 as_echo='printf %s
\n'
19624 as_echo_n='printf %s
'
19626 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19627 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
19628 as_echo_n='/usr
/ucb
/echo -n'
19630 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19631 as_echo_n_body='eval
19635 expr "X$arg" : "X\\(.*\\)$as_nl";
19636 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19638 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
19640 export as_echo_n_body
19641 as_echo_n='sh
-c $as_echo_n_body as_echo
'
19643 export as_echo_body
19644 as_echo='sh
-c $as_echo_body as_echo
'
19647 # The user is always right.
19648 if test "${PATH_SEPARATOR+set}" != set; then
19650 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19651 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19658 # We need space, tab and new line, in precisely that order. Quoting is
19659 # there to prevent editors from complaining about space-tab.
19660 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19661 # splitting by setting IFS to empty value.)
19664 # Find who we are. Look in the path if we contain no directory separator.
19667 *[\\/]* ) as_myself=$0 ;;
19668 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19669 for as_dir in $PATH
19672 test -z "$as_dir" && as_dir=.
19673 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19679 # We did not find ourselves, most probably we were run as `sh COMMAND'
19680 # in which case we are not to be found in the path.
19681 if test "x$as_myself" = x
; then
19684 if test ! -f "$as_myself"; then
19685 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19689 # Unset variables that we do not need and which cause bugs (e.g. in
19690 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19691 # suppresses any "Segmentation fault" message there. '((' could
19692 # trigger a bug in pdksh 5.2.14.
19693 for as_var
in BASH_ENV ENV MAIL MAILPATH
19694 do eval test x\
${$as_var+set} = xset \
19695 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
19708 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
19711 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19712 # ----------------------------------------
19713 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19714 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19715 # script with STATUS, using 1 if that was 0.
19718 as_status
=$1; test $as_status -eq 0 && as_status
=1
19720 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
19721 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19723 $as_echo "$as_me: error: $2" >&2
19724 as_fn_exit
$as_status
19728 # as_fn_set_status STATUS
19729 # -----------------------
19730 # Set $? to STATUS, without forking.
19731 as_fn_set_status
()
19734 } # as_fn_set_status
19736 # as_fn_exit STATUS
19737 # -----------------
19738 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19742 as_fn_set_status
$1
19748 # Portably unset VAR.
19751 { eval $1=; unset $1;}
19753 as_unset
=as_fn_unset
19754 # as_fn_append VAR VALUE
19755 # ----------------------
19756 # Append the text in VALUE to the end of the definition contained in VAR. Take
19757 # advantage of any shell optimizations that allow amortized linear growth over
19758 # repeated appends, instead of the typical quadratic growth present in naive
19760 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
19761 eval 'as_fn_append ()
19772 # as_fn_arith ARG...
19773 # ------------------
19774 # Perform arithmetic evaluation on the ARGs, and store the result in the
19775 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19776 # must be portable across $(()) and expr.
19777 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
19778 eval 'as_fn_arith ()
19785 as_val
=`expr "$@" || test $? -eq 1`
19790 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
19791 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
19797 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19798 as_basename
=basename
19803 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
19809 as_me
=`$as_basename -- "$0" ||
19810 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19811 X"$0" : 'X\(//\)$' \| \
19812 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19814 sed '/^.*\/\([^/][^/]*\)\/*$/{
19828 # Avoid depending upon Character Ranges.
19829 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
19830 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19831 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
19832 as_cr_digits
='0123456789'
19833 as_cr_alnum
=$as_cr_Letters$as_cr_digits
19835 ECHO_C
= ECHO_N
= ECHO_T
=
19836 case `echo -n x` in #(((((
19838 case `echo 'xy\c'` in
19839 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
19841 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
19848 rm -f conf$$ conf$$.exe conf$$.
file
19849 if test -d conf$$.dir
; then
19850 rm -f conf$$.dir
/conf$$.
file
19853 mkdir conf$$.dir
2>/dev
/null
19855 if (echo >conf$$.
file) 2>/dev
/null
; then
19856 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
19858 # ... but there are two gotchas:
19859 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19860 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19861 # In both cases, we have to default to `cp -pR'.
19862 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
19864 elif ln conf$$.
file conf$$
2>/dev
/null
; then
19872 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
19873 rmdir conf$$.dir
2>/dev
/null
19878 # Create "$as_dir" as a directory, including parents if necessary.
19883 -*) as_dir
=.
/$as_dir;;
19885 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
19889 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19890 *) as_qdir
=$as_dir;;
19892 as_dirs
="'$as_qdir' $as_dirs"
19893 as_dir
=`$as_dirname -- "$as_dir" ||
19894 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19895 X"$as_dir" : 'X\(//\)[^/]' \| \
19896 X"$as_dir" : 'X\(//\)$' \| \
19897 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19898 $as_echo X"$as_dir" |
19899 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19903 /^X\(\/\/\)[^/].*/{
19916 test -d "$as_dir" && break
19918 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
19919 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
19923 if mkdir
-p .
2>/dev
/null
; then
19924 as_mkdir_p
='mkdir -p "$as_dir"'
19926 test -d .
/-p && rmdir .
/-p
19931 # as_fn_executable_p FILE
19932 # -----------------------
19933 # Test if FILE is an executable regular file.
19934 as_fn_executable_p
()
19936 test -f "$1" && test -x "$1"
19937 } # as_fn_executable_p
19938 as_test_x
='test -x'
19939 as_executable_p
=as_fn_executable_p
19941 # Sed expression to map a string onto a valid CPP name.
19942 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19944 # Sed expression to map a string onto a valid variable name.
19945 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19949 ## ----------------------------------- ##
19950 ## Main body of $CONFIG_STATUS script. ##
19951 ## ----------------------------------- ##
19953 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
19955 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19956 # Save the log message, to keep $0 and so on meaningful, and to
19957 # report actual input values of CONFIG_FILES etc. instead of their
19958 # values after options handling.
19960 This file was extended by PostgreSQL $as_me 16.0, which was
19961 generated by GNU Autoconf 2.69. Invocation command line was
19963 CONFIG_FILES = $CONFIG_FILES
19964 CONFIG_HEADERS = $CONFIG_HEADERS
19965 CONFIG_LINKS = $CONFIG_LINKS
19966 CONFIG_COMMANDS = $CONFIG_COMMANDS
19969 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19974 case $ac_config_files in *"
19975 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
19978 case $ac_config_headers in *"
19979 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
19983 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19984 # Files that config.status was made for.
19985 config_files="$ac_config_files"
19986 config_headers="$ac_config_headers"
19987 config_links="$ac_config_links"
19988 config_commands="$ac_config_commands"
19992 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19994 \`$as_me' instantiates files and other configuration actions
19995 from templates according to the current configuration. Unless the files
19996 and actions are specified as TAGs, all are instantiated by default.
19998 Usage: $0 [OPTION]... [TAG]...
20000 -h, --help print this help, then exit
20001 -V, --version print version number and configuration settings, then exit
20002 --config print configuration, then exit
20003 -q, --quiet, --silent
20004 do not print progress messages
20005 -d, --debug don't remove temporary files
20006 --recheck update $as_me by reconfiguring in the same conditions
20007 --file=FILE[:TEMPLATE]
20008 instantiate the configuration file FILE
20009 --header=FILE[:TEMPLATE]
20010 instantiate the configuration header FILE
20012 Configuration files:
20015 Configuration headers:
20018 Configuration links:
20021 Configuration commands:
20024 Report bugs to <pgsql-bugs@lists.postgresql.org>.
20025 PostgreSQL home page: <https://www.postgresql.org/>."
20028 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20029 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20031 PostgreSQL config.status 16.0
20032 configured by $0, generated by GNU Autoconf 2.69,
20033 with options \\"\$ac_cs_config\\"
20035 Copyright (C) 2012 Free Software Foundation, Inc.
20036 This config.status script is free software; the Free Software Foundation
20037 gives unlimited permission to copy, distribute and modify it."
20044 test -n "\$AWK" || AWK=awk
20047 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20048 # The default lists apply if the user does not specify any file.
20054 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20055 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
20059 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20071 # Handling of the options.
20072 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
20074 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
20075 $as_echo "$ac_cs_version"; exit ;;
20076 --config |
--confi |
--conf |
--con |
--co |
--c )
20077 $as_echo "$ac_cs_config"; exit ;;
20078 --debug |
--debu |
--deb |
--de |
--d |
-d )
20080 --file |
--fil |
--fi |
--f )
20083 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20084 '') as_fn_error $?
"missing file argument" ;;
20086 as_fn_append CONFIG_FILES
" '$ac_optarg'"
20087 ac_need_defaults
=false
;;
20088 --header |
--heade |
--head |
--hea )
20091 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20093 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
20094 ac_need_defaults
=false
;;
20096 # Conflict between --help and --header
20097 as_fn_error $?
"ambiguous option: \`$1'
20098 Try \`$0 --help' for more information.";;
20099 --help |
--hel |
-h )
20100 $as_echo "$ac_cs_usage"; exit ;;
20101 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
20102 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
20105 # This is an error.
20106 -*) as_fn_error $?
"unrecognized option: \`$1'
20107 Try \`$0 --help' for more information." ;;
20109 *) as_fn_append ac_config_targets
" $1"
20110 ac_need_defaults
=false
;;
20116 ac_configure_extra_args
=
20118 if $ac_cs_silent; then
20120 ac_configure_extra_args
="$ac_configure_extra_args --silent"
20124 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20125 if \$ac_cs_recheck; then
20126 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20128 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20129 CONFIG_SHELL='$SHELL'
20130 export CONFIG_SHELL
20135 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20139 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20140 ## Running $as_me. ##
20146 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20149 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20151 # Handling of arguments.
20152 for ac_config_target
in $ac_config_targets
20154 case $ac_config_target in
20155 "src/backend/port/tas.s") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
20156 "GNUmakefile") CONFIG_FILES
="$CONFIG_FILES GNUmakefile" ;;
20157 "src/Makefile.global") CONFIG_FILES
="$CONFIG_FILES src/Makefile.global" ;;
20158 "src/backend/port/pg_sema.c") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
20159 "src/backend/port/pg_shmem.c") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
20160 "src/include/pg_config_os.h") CONFIG_LINKS
="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
20161 "src/Makefile.port") CONFIG_LINKS
="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
20162 "check_win32_symlinks") CONFIG_COMMANDS
="$CONFIG_COMMANDS check_win32_symlinks" ;;
20163 "src/include/pg_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/include/pg_config.h" ;;
20164 "src/include/pg_config_ext.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/include/pg_config_ext.h" ;;
20165 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
20167 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20172 # If the user did not use the arguments to specify the items to instantiate,
20173 # then the envvar interface is used. Set only those that are not.
20174 # We use the long form for the default assignment because of an extremely
20175 # bizarre bug on SunOS 4.1.3.
20176 if $ac_need_defaults; then
20177 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
20178 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
20179 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
20180 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
20183 # Have a temporary directory for convenience. Make it in the build tree
20184 # simply because there is no reason against having it here, and in addition,
20185 # creating and moving files from /tmp can sometimes cause problems.
20186 # Hook for its removal unless debugging.
20187 # Note that there is a small window in which the directory will not be cleaned:
20188 # after its creation but before its name has been assigned to `$tmp'.
20192 trap 'exit_status=$?
20193 : "${ac_tmp:=$tmp}"
20194 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20196 trap 'as_fn_exit 1' 1 2 13 15
20198 # Create a (secure) tmp directory for tmp files.
20201 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20205 tmp
=.
/conf$$
-$RANDOM
20206 (umask 077 && mkdir
"$tmp")
20207 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
20210 # Set up the scripts for CONFIG_FILES section.
20211 # No need to generate them if there are no CONFIG_FILES.
20212 # This happens for instance with `./config.status config.h'.
20213 if test -n "$CONFIG_FILES"; then
20216 ac_cr
=`echo X | tr X '\015'`
20217 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20218 # But we know of no other shell where ac_cr would be empty at this
20219 # point, so we can use a bashism as a fallback.
20220 if test "x$ac_cr" = x
; then
20221 eval ac_cr
=\$
\'\\r
\'
20223 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20224 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20227 ac_cs_awk_cr
=$ac_cr
20230 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20235 echo "cat >conf$$subs.awk <<_ACEOF" &&
20236 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20238 } >conf$$subs.sh ||
20239 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20240 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20242 for ac_last_try in false false false false false :; do
20243 . ./conf$$subs.sh ||
20244 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20246 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
20247 if test $ac_delim_n = $ac_delim_num; then
20249 elif $ac_last_try; then
20250 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20252 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20255 rm -f conf$$subs.sh
20257 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20258 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
20262 s/^/S["/; s
/!.
*/"]=/
20272 s/\(.\{148\}\)..*/\1/
20274 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
20279 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20286 s/\(.\{148\}\)..*/\1/
20288 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
20292 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20297 ' <conf$$subs.awk | sed '
20302 ' >>$CONFIG_STATUS || ac_write_fail=1
20303 rm -f conf$$subs.awk
20304 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20306 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
20307 for (key in S) S_is_set[key] = 1
20313 nfields = split(line, field, "@
")
20315 len = length(field[1])
20316 for (i = 2; i < nfields; i++) {
20318 keylen = length(key)
20319 if (S_is_set[key]) {
20321 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20322 len += length(value) + length(field[++i])
20333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20334 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20335 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
20338 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
20339 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
20342 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20343 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
20344 # trailing colons and then remove the whole line if VPATH becomes empty
20345 # (actually we leave an empty line to preserve line numbers).
20346 if test "x
$srcdir" = x.; then
20347 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20365 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20366 fi # test -n "$CONFIG_FILES"
20368 # Set up the scripts for CONFIG_HEADERS section.
20369 # No need to generate them if there are no CONFIG_HEADERS.
20370 # This happens for instance with `./config.status Makefile'.
20371 if test -n "$CONFIG_HEADERS"; then
20372 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
20376 # Transform confdefs.h into an awk script `defines.awk', embedded as
20377 # here-document in config.status, that substitutes the proper values into
20378 # config.h.in to produce config.h.
20380 # Create a delimiter string that does not exist in confdefs.h, to ease
20381 # handling of long lines.
20383 for ac_last_try in false false :; do
20384 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
20385 if test -z "$ac_tt"; then
20387 elif $ac_last_try; then
20388 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
20390 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20394 # For the awk script, D is an array of macro values keyed by name,
20395 # likewise P contains macro parameters if any. Preserve backslash
20396 # newline sequences.
20398 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20400 s/.\{148\}/&'"$ac_delim"'/g
20403 s/^[ ]*#[ ]*define[ ][ ]*/ /
20410 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
20412 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
20416 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
20417 D["\
1"]=" \
3\\\\\\n
"\\/p
20419 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
20424 s/.\{148\}/&'"$ac_delim"'/g
20429 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
20432 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
20434 ' <confdefs.h | sed '
20435 s/'"$ac_delim"'/"\\\
20436 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20438 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20439 for (key in D) D_is_set[key] = 1
20442 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20444 split(line, arg, " ")
20445 if (arg[1] == "#") {
20449 defundef
= substr
(arg
[1], 2)
20452 split(mac1
, mac2
, "(") #)
20454 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
20455 if (D_is_set
[macro
]) {
20456 # Preserve the white space surrounding the "#".
20457 print prefix
"define", macro P
[macro
] D
[macro
]
20460 # Replace #undef with comments. This is necessary, for example,
20461 # in the case of _POSIX_SOURCE, which is predefined and required
20462 # on some systems where configure will not decide to define it.
20463 if (defundef
== "undef") {
20464 print
"/*", prefix defundef
, macro
, "*/"
20472 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20473 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
20474 fi # test -n "$CONFIG_HEADERS"
20477 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
20482 :[FHLC
]) ac_mode
=$ac_tag; continue;;
20484 case $ac_mode$ac_tag in
20486 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
20487 :[FH
]-) ac_tag
=-:-;;
20488 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
20505 -) ac_f
="$ac_tmp/stdin";;
20506 *) # Look for the file first in the build tree, then in the source tree
20507 # (if the path is not absolute). The absolute path cannot be DOS-style,
20508 # because $ac_f cannot contain `:'.
20512 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
20514 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20516 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20517 as_fn_append ac_file_inputs
" '$ac_f'"
20520 # Let's still pretend it is `configure' which instantiates (i.e., don't
20521 # use $as_me), people would be surprised to read:
20522 # /* config.h. Generated by config.status. */
20523 configure_input
='Generated from '`
20524 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20526 if test x
"$ac_file" != x-
; then
20527 configure_input
="$ac_file. $configure_input"
20528 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20529 $as_echo "$as_me: creating $ac_file" >&6;}
20531 # Neutralize special characters interpreted by sed in replacement strings.
20532 case $configure_input in #(
20533 *\
&* |
*\|
* |
*\\* )
20534 ac_sed_conf_input
=`$as_echo "$configure_input" |
20535 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20536 *) ac_sed_conf_input
=$configure_input;;
20540 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
20541 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
20546 ac_dir
=`$as_dirname -- "$ac_file" ||
20547 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20548 X"$ac_file" : 'X\(//\)[^/]' \| \
20549 X"$ac_file" : 'X\(//\)$' \| \
20550 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20551 $as_echo X"$ac_file" |
20552 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20556 /^X\(\/\/\)[^/].*/{
20569 as_dir
="$ac_dir"; as_fn_mkdir_p
20573 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20575 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20576 # A ".." for each directory in $ac_dir_suffix.
20577 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20578 case $ac_top_builddir_sub in
20579 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20580 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
20583 ac_abs_top_builddir
=$ac_pwd
20584 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
20585 # for backward compatibility:
20586 ac_top_builddir
=$ac_top_build_prefix
20589 .
) # We are building in place.
20591 ac_top_srcdir
=$ac_top_builddir_sub
20592 ac_abs_top_srcdir
=$ac_pwd ;;
20593 [\\/]* | ?
:[\\/]* ) # Absolute name.
20594 ac_srcdir
=$srcdir$ac_dir_suffix;
20595 ac_top_srcdir
=$srcdir
20596 ac_abs_top_srcdir
=$srcdir ;;
20597 *) # Relative name.
20598 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
20599 ac_top_srcdir
=$ac_top_build_prefix$srcdir
20600 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
20602 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
20612 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
20613 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
20615 ac_MKDIR_P
=$MKDIR_P
20617 [\\/$
]* | ?
:[\\/]* ) ;;
20618 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
20622 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20623 # If the template does not know about datarootdir, expand it.
20624 # FIXME: This hack should be removed a few years after 2.60.
20625 ac_datarootdir_hack
=; ac_datarootdir_seen
=
20636 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20637 *datarootdir
*) ac_datarootdir_seen
=yes;;
20638 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
20639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20640 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20642 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20643 ac_datarootdir_hack='
20644 s&@datadir@&$datadir&g
20645 s&@docdir@&$docdir&g
20646 s&@infodir@&$infodir&g
20647 s&@localedir@&$localedir&g
20648 s&@mandir@&$mandir&g
20649 s&\\\${datarootdir}&$datarootdir&g' ;;
20653 # Neutralize VPATH when `$srcdir' = `.'.
20654 # Shell code in configure.ac might set extrasub.
20655 # FIXME: do we really want to maintain this feature?
20656 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20657 ac_sed_extra="$ac_vpsub
20660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20662 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
20663 s|@configure_input@|
$ac_sed_conf_input|
;t t
20664 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
20665 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
20666 s
&@srcdir@
&$ac_srcdir&;t t
20667 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
20668 s
&@top_srcdir@
&$ac_top_srcdir&;t t
20669 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
20670 s
&@builddir@
&$ac_builddir&;t t
20671 s
&@abs_builddir@
&$ac_abs_builddir&;t t
20672 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
20673 s
&@INSTALL@
&$ac_INSTALL&;t t
20674 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
20675 $ac_datarootdir_hack
20677 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
20678 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
20680 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20681 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
20682 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20683 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
20684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
20685 which seems to be undefined. Please make sure it is defined" >&5
20686 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
20687 which seems to be undefined. Please make sure it is defined" >&2;}
20689 rm -f "$ac_tmp/stdin"
20691 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20692 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20694 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20700 if test x"$ac_file" != x-; then
20702 $as_echo "/* $configure_input */" \
20703 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20704 } >"$ac_tmp/config.h" \
20705 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20706 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20707 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20708 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20711 mv "$ac_tmp/config.h" "$ac_file" \
20712 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20715 $as_echo "/* $configure_input */" \
20716 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20717 || as_fn_error $? "could not create -" "$LINENO" 5
20725 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
20728 # Prefer the file from the source tree if names are identical.
20729 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
20730 ac_source=$srcdir/$ac_source
20733 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
20734 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
20736 if test ! -r "$ac_source"; then
20737 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
20741 # Try a relative symlink, then a hard link, then a copy.
20743 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
20744 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
20746 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
20747 ln "$ac_source" "$ac_file" 2>/dev/null ||
20748 cp -p "$ac_source" "$ac_file" ||
20749 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
20752 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20753 $as_echo "$as_me: executing $ac_file commands" >&6;}
20758 case $ac_file$ac_mode in
20759 "check_win32_symlinks":C)
20760 # Links sometimes fail undetected on Mingw -
20761 # so here we detect it and warn the user
20762 for FILE in $CONFIG_LINKS
20764 # test -e works for symlinks in the MinGW console
20765 test -e `expr "$FILE" : '\
([^
:]*\
)'` || { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** link for $FILE -- please fix by hand" >&5
20766 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
20769 "src/include/pg_config.h":H)
20770 # Update timestamp for pg_config.h (see Makefile.global)
20771 echo >src/include/stamp-h
20773 "src/include/pg_config_ext.h":H)
20774 # Update timestamp for pg_config_ext.h (see Makefile.global)
20775 echo >src/include/stamp-ext-h
20777 "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
20785 ac_clean_files=$ac_clean_files_save
20787 test $ac_write_fail = 0 ||
20788 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20791 # configure is writing to config.log, and then calls config.status.
20792 # config.status does its own redirection, appending to config.log.
20793 # Unfortunately, on DOS this fails, as config.log is still kept open
20794 # by configure, so config.status won't be able to
write to it
; its
20795 # output is simply discarded. So we exec the FD to /dev/null,
20796 # effectively closing config.log, so it can be properly (re)opened and
20797 # appended to by config.status. When coming back to configure, we
20798 # need to make the FD available again.
20799 if test "$no_create" != yes; then
20801 ac_config_status_args
=
20802 test "$silent" = yes &&
20803 ac_config_status_args
="$ac_config_status_args --quiet"
20805 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
20807 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20808 # would make configure fail if this is the last instruction.
20809 $ac_cs_success || as_fn_exit
1
20811 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
20812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20813 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20817 # Ensure that any meson build directories would reconfigure and see that
20818 # there's a conflicting in-tree build and can error out.
20819 if test "$vpath_build"="no"; then