2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for PostgreSQL 18devel.
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-2024, 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
='18devel'
586 PACKAGE_STRING
='PostgreSQL 18devel'
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
669 python_additional_libs
744 PERMIT_MISSING_VARIABLE_DECLARATIONS
745 PERMIT_DECLARATION_AFTER_STATEMENT
766 enable_injection_points
817 program_transform_name
830 enable_option_checking
836 enable_integer_datetimes
845 enable_injection_points
867 with_libedit_preferred
880 ac_precious_vars
='build_alias
914 # Initialize some variables set by options.
916 ac_init_version
=false
917 ac_unrecognized_opts
=
919 # The variables have the same names as the options, with
920 # dashes changed to underlines.
928 program_transform_name
=s
,x
,x
,
936 # Installation directory options.
937 # These are left unexpanded so users can "make install exec_prefix=/foo"
938 # and all the variables that are supposed to be based on exec_prefix
939 # by default will actually change.
940 # Use braces instead of parens because sh, perl, etc. also accept them.
941 # (The list follows the same order as the GNU Coding Standards.)
942 bindir
='${exec_prefix}/bin'
943 sbindir
='${exec_prefix}/sbin'
944 libexecdir
='${exec_prefix}/libexec'
945 datarootdir
='${prefix}/share'
946 datadir
='${datarootdir}'
947 sysconfdir
='${prefix}/etc'
948 sharedstatedir
='${prefix}/com'
949 localstatedir
='${prefix}/var'
950 includedir
='${prefix}/include'
951 oldincludedir
='/usr/include'
952 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
953 infodir
='${datarootdir}/info'
958 libdir
='${exec_prefix}/lib'
959 localedir
='${datarootdir}/locale'
960 mandir
='${datarootdir}/man'
966 # If the previous option needs an argument, assign it.
967 if test -n "$ac_prev"; then
968 eval $ac_prev=\
$ac_option
974 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
979 # Accept the important Cygnus configure options, so we can diagnose typos.
981 case $ac_dashdash$ac_option in
985 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
987 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
990 -build |
--build |
--buil |
--bui |
--bu)
991 ac_prev
=build_alias
;;
992 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
993 build_alias
=$ac_optarg ;;
995 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
996 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
997 ac_prev
=cache_file
;;
998 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
999 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1000 cache_file
=$ac_optarg ;;
1002 --config-cache |
-C)
1003 cache_file
=config.cache
;;
1005 -datadir |
--datadir |
--datadi |
--datad)
1007 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1008 datadir
=$ac_optarg ;;
1010 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1011 |
--dataroo |
--dataro |
--datar)
1012 ac_prev
=datarootdir
;;
1013 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1014 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1015 datarootdir
=$ac_optarg ;;
1017 -disable-* |
--disable-*)
1018 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1019 # Reject names that are not valid shell variable names.
1020 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1021 as_fn_error $?
"invalid feature name: $ac_useropt"
1022 ac_useropt_orig
=$ac_useropt
1023 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1024 case $ac_user_opts in
1026 "enable_
$ac_useropt"
1028 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1029 ac_unrecognized_sep
=', ';;
1031 eval enable_
$ac_useropt=no
;;
1033 -docdir |
--docdir |
--docdi |
--doc |
--do)
1035 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1036 docdir
=$ac_optarg ;;
1038 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1040 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1041 dvidir
=$ac_optarg ;;
1043 -enable-* |
--enable-*)
1044 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1045 # Reject names that are not valid shell variable names.
1046 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1047 as_fn_error $?
"invalid feature name: $ac_useropt"
1048 ac_useropt_orig
=$ac_useropt
1049 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1050 case $ac_user_opts in
1052 "enable_
$ac_useropt"
1054 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1055 ac_unrecognized_sep
=', ';;
1057 eval enable_
$ac_useropt=\
$ac_optarg ;;
1059 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1060 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1061 |
--exec |
--exe |
--ex)
1062 ac_prev
=exec_prefix
;;
1063 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1064 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1065 |
--exec=* |
--exe=* |
--ex=*)
1066 exec_prefix
=$ac_optarg ;;
1068 -gas |
--gas |
--ga |
--g)
1069 # Obsolete; use --with-gas.
1072 -help |
--help |
--hel |
--he |
-h)
1073 ac_init_help
=long
;;
1074 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1075 ac_init_help
=recursive
;;
1076 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1077 ac_init_help
=short
;;
1079 -host |
--host |
--hos |
--ho)
1080 ac_prev
=host_alias
;;
1081 -host=* |
--host=* |
--hos=* |
--ho=*)
1082 host_alias
=$ac_optarg ;;
1084 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1086 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1088 htmldir
=$ac_optarg ;;
1090 -includedir |
--includedir |
--includedi |
--included |
--include \
1091 |
--includ |
--inclu |
--incl |
--inc)
1092 ac_prev
=includedir
;;
1093 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1094 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1095 includedir
=$ac_optarg ;;
1097 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1099 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1100 infodir
=$ac_optarg ;;
1102 -libdir |
--libdir |
--libdi |
--libd)
1104 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1105 libdir
=$ac_optarg ;;
1107 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1108 |
--libexe |
--libex |
--libe)
1109 ac_prev
=libexecdir
;;
1110 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1111 |
--libexe=* |
--libex=* |
--libe=*)
1112 libexecdir
=$ac_optarg ;;
1114 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1115 ac_prev
=localedir
;;
1116 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1117 localedir
=$ac_optarg ;;
1119 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1120 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1121 ac_prev
=localstatedir
;;
1122 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1123 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1124 localstatedir
=$ac_optarg ;;
1126 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1128 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1129 mandir
=$ac_optarg ;;
1131 -nfp |
--nfp |
--nf)
1132 # Obsolete; use --without-fp.
1135 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1136 |
--no-cr |
--no-c |
-n)
1139 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1140 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1143 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1144 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1145 |
--oldin |
--oldi |
--old |
--ol |
--o)
1146 ac_prev
=oldincludedir
;;
1147 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1148 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1149 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1150 oldincludedir
=$ac_optarg ;;
1152 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1154 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1155 prefix
=$ac_optarg ;;
1157 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1158 |
--program-pre |
--program-pr |
--program-p)
1159 ac_prev
=program_prefix
;;
1160 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1161 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1162 program_prefix
=$ac_optarg ;;
1164 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1165 |
--program-suf |
--program-su |
--program-s)
1166 ac_prev
=program_suffix
;;
1167 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1168 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1169 program_suffix
=$ac_optarg ;;
1171 -program-transform-name |
--program-transform-name \
1172 |
--program-transform-nam |
--program-transform-na \
1173 |
--program-transform-n |
--program-transform- \
1174 |
--program-transform |
--program-transfor \
1175 |
--program-transfo |
--program-transf \
1176 |
--program-trans |
--program-tran \
1177 |
--progr-tra |
--program-tr |
--program-t)
1178 ac_prev
=program_transform_name
;;
1179 -program-transform-name=* |
--program-transform-name=* \
1180 |
--program-transform-nam=* |
--program-transform-na=* \
1181 |
--program-transform-n=* |
--program-transform-=* \
1182 |
--program-transform=* |
--program-transfor=* \
1183 |
--program-transfo=* |
--program-transf=* \
1184 |
--program-trans=* |
--program-tran=* \
1185 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1186 program_transform_name
=$ac_optarg ;;
1188 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1190 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1191 pdfdir
=$ac_optarg ;;
1193 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1195 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1198 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1199 |
-silent |
--silent |
--silen |
--sile |
--sil)
1202 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1204 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1206 sbindir
=$ac_optarg ;;
1208 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1209 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1210 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1212 ac_prev
=sharedstatedir
;;
1213 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1214 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1215 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1217 sharedstatedir
=$ac_optarg ;;
1219 -site |
--site |
--sit)
1221 -site=* |
--site=* |
--sit=*)
1224 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1226 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1227 srcdir
=$ac_optarg ;;
1229 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1230 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1231 ac_prev
=sysconfdir
;;
1232 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1233 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1234 sysconfdir
=$ac_optarg ;;
1236 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1237 ac_prev
=target_alias
;;
1238 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1239 target_alias
=$ac_optarg ;;
1241 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1244 -version |
--version |
--versio |
--versi |
--vers |
-V)
1245 ac_init_version
=: ;;
1248 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1249 # Reject names that are not valid shell variable names.
1250 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1251 as_fn_error $?
"invalid package name: $ac_useropt"
1252 ac_useropt_orig
=$ac_useropt
1253 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1254 case $ac_user_opts in
1258 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1259 ac_unrecognized_sep
=', ';;
1261 eval with_
$ac_useropt=\
$ac_optarg ;;
1263 -without-* |
--without-*)
1264 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1265 # Reject names that are not valid shell variable names.
1266 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1267 as_fn_error $?
"invalid package name: $ac_useropt"
1268 ac_useropt_orig
=$ac_useropt
1269 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1270 case $ac_user_opts in
1274 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1275 ac_unrecognized_sep
=', ';;
1277 eval with_
$ac_useropt=no
;;
1280 # Obsolete; use --with-x.
1283 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1284 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1285 ac_prev
=x_includes
;;
1286 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1287 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1288 x_includes
=$ac_optarg ;;
1290 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1291 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1292 ac_prev
=x_libraries
;;
1293 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1294 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1295 x_libraries
=$ac_optarg ;;
1297 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1298 Try \`$0 --help' for more information"
1302 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1303 # Reject names that are not valid shell variable names.
1304 case $ac_envvar in #(
1305 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1306 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1308 eval $ac_envvar=\
$ac_optarg
1309 export $ac_envvar ;;
1312 # FIXME: should be removed in autoconf 3.0.
1313 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1314 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1315 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1316 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1322 if test -n "$ac_prev"; then
1323 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1324 as_fn_error $?
"missing argument to $ac_option"
1327 if test -n "$ac_unrecognized_opts"; then
1328 case $enable_option_checking in
1330 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1331 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1335 # Check all directory arguments for consistency.
1336 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1337 datadir sysconfdir sharedstatedir localstatedir includedir \
1338 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1339 libdir localedir mandir
1341 eval ac_val
=\$
$ac_var
1342 # Remove trailing slashes.
1345 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1346 eval $ac_var=\
$ac_val;;
1348 # Be sure to have absolute directory names.
1350 [\\/$
]* | ?
:[\\/]* ) continue;;
1351 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1353 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1356 # There might be people who depend on the old broken behavior: `$host'
1357 # used to hold the argument of --host etc.
1358 # FIXME: To remove some day.
1361 target
=$target_alias
1363 # FIXME: To remove some day.
1364 if test "x$host_alias" != x
; then
1365 if test "x$build_alias" = x
; then
1366 cross_compiling
=maybe
1367 elif test "x$build_alias" != "x$host_alias"; then
1373 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1375 test "$silent" = yes && exec 6>/dev
/null
1378 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1379 ac_ls_di
=`ls -di .` &&
1380 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1381 as_fn_error $?
"working directory cannot be determined"
1382 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1383 as_fn_error $?
"pwd does not report name of working directory"
1386 # Find the source files, if location was not specified.
1387 if test -z "$srcdir"; then
1388 ac_srcdir_defaulted
=yes
1389 # Try the directory containing this script, then the parent directory.
1390 ac_confdir
=`$as_dirname -- "$as_myself" ||
1391 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1392 X"$as_myself" : 'X\(//\)[^/]' \| \
1393 X"$as_myself" : 'X\(//\)$' \| \
1394 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1395 $as_echo X"$as_myself" |
1396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1414 if test ! -r "$srcdir/$ac_unique_file"; then
1418 ac_srcdir_defaulted
=no
1420 if test ! -r "$srcdir/$ac_unique_file"; then
1421 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1422 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1424 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1426 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1428 # When building in place, set srcdir=.
1429 if test "$ac_abs_confdir" = "$ac_pwd"; then
1432 # Remove unnecessary trailing slashes from srcdir.
1433 # Double slashes in file names in object file debugging info
1434 # mess up M-x gdb in Emacs.
1436 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1438 for ac_var
in $ac_precious_vars; do
1439 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1440 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1441 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1442 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1446 # Report the --help message.
1448 if test "$ac_init_help" = "long"; then
1449 # Omit some internal or obsolete options to make the list less imposing.
1450 # This message is too long to be a string in the A/UX 3.1 sh.
1452 \`configure' configures PostgreSQL 18devel to adapt to many kinds of systems.
1454 Usage: $0 [OPTION]... [VAR=VALUE]...
1456 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1457 VAR=VALUE. See below for descriptions of some of the useful variables.
1459 Defaults for the options are specified in brackets.
1462 -h, --help display this help and exit
1463 --help=short display options specific to this package
1464 --help=recursive display the short help of all the included packages
1465 -V, --version display version information and exit
1466 -q, --quiet, --silent do not print \`checking ...' messages
1467 --cache-file=FILE cache test results in FILE [disabled]
1468 -C, --config-cache alias for \`--cache-file=config.cache'
1469 -n, --no-create do not create output files
1470 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1472 Installation directories:
1473 --prefix=PREFIX install architecture-independent files in PREFIX
1474 [$ac_default_prefix]
1475 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1478 By default, \`make install' will install all the files in
1479 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1480 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1481 for instance \`--prefix=\$HOME'.
1483 For better control, use the options below.
1485 Fine tuning of the installation directories:
1486 --bindir=DIR user executables [EPREFIX/bin]
1487 --sbindir=DIR system admin executables [EPREFIX/sbin]
1488 --libexecdir=DIR program executables [EPREFIX/libexec]
1489 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1490 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1491 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1492 --libdir=DIR object code libraries [EPREFIX/lib]
1493 --includedir=DIR C header files [PREFIX/include]
1494 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1495 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1496 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1497 --infodir=DIR info documentation [DATAROOTDIR/info]
1498 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1499 --mandir=DIR man documentation [DATAROOTDIR/man]
1500 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1501 --htmldir=DIR html documentation [DOCDIR]
1502 --dvidir=DIR dvi documentation [DOCDIR]
1503 --pdfdir=DIR pdf documentation [DOCDIR]
1504 --psdir=DIR ps documentation [DOCDIR]
1510 --build=BUILD configure
for building on BUILD
[guessed
]
1511 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1515 if test -n "$ac_init_help"; then
1516 case $ac_init_help in
1517 short | recursive
) echo "Configuration of PostgreSQL 18devel:";;
1522 --disable-option-checking ignore unrecognized
--enable/--with options
1523 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1524 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1525 --disable-integer-datetimes
1526 obsolete option
, no longer supported
1527 --enable-nls[=LANGUAGES
]
1528 enable Native Language Support
1529 --disable-rpath do not embed shared library search path
in
1531 --enable-debug build with debugging symbols
(-g)
1532 --enable-profiling build with profiling enabled
1533 --enable-coverage build with coverage testing instrumentation
1534 --enable-dtrace build with DTrace support
1535 --enable-tap-tests enable TAP tests
(requires Perl and IPC
::Run
)
1536 --enable-injection-points
1537 enable injection points
(for testing
)
1538 --enable-depend turn on automatic dependency tracking
1539 --enable-cassert enable assertion checks
(for debugging
)
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-llvm build with LLVM based JIT support
1560 --without-icu build without ICU support
1561 --with-tcl build Tcl modules
(PL
/Tcl
)
1562 --with-tclconfig=DIR tclConfig.sh is
in DIR
1563 --with-perl build Perl modules
(PL
/Perl
)
1564 --with-python build Python modules
(PL
/Python
)
1565 --with-gssapi build with GSSAPI support
1566 --with-krb-srvnam=NAME default service principal name
in Kerberos
(GSSAPI
)
1568 --with-pam build with PAM support
1569 --with-bsd-auth build with BSD Authentication support
1570 --with-ldap build with LDAP support
1571 --with-bonjour build with Bonjour support
1572 --with-selinux build with SELinux support
1573 --with-systemd build with systemd support
1574 --without-readline do not use GNU Readline nor BSD Libedit
for editing
1575 --with-libedit-preferred
1576 prefer BSD Libedit over GNU Readline
1577 --with-uuid=LIB build contrib
/uuid-ossp using LIB
(bsd
,e2fs
,ossp
)
1578 --with-ossp-uuid obsolete spelling of
--with-uuid=ossp
1579 --with-libxml build with XML support
1580 --with-libxslt use XSLT support when building contrib
/xml2
1581 --with-system-tzdata=DIR
1582 use system
time zone data
in DIR
1583 --without-zlib do not use Zlib
1584 --with-lz4 build with LZ4 support
1585 --with-zstd build with ZSTD support
1586 --with-ssl=LIB use LIB
for SSL
/TLS support
(openssl
)
1587 --with-openssl obsolete spelling of
--with-ssl=openssl
1589 Some influential environment variables
:
1590 CC C compiler
command
1591 CFLAGS C compiler flags
1592 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1593 nonstandard directory
<lib dir
>
1594 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1595 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1596 you have headers
in a nonstandard directory
<include dir
>
1597 CXX C
++ compiler
command
1598 CXXFLAGS C
++ compiler flags
1599 LLVM_CONFIG path to llvm-config
command
1600 CLANG path to clang compiler to generate bitcode
1602 PKG_CONFIG path to pkg-config utility
1604 directories to add to pkg-config
's search path
1606 path overriding pkg-config's built-in search path
1607 ICU_CFLAGS C compiler flags
for ICU
, overriding pkg-config
1608 ICU_LIBS linker flags
for ICU
, overriding pkg-config
1609 XML2_CONFIG path to xml2-config utility
1610 XML2_CFLAGS C compiler flags
for XML2
, overriding pkg-config
1611 XML2_LIBS linker flags
for XML2
, overriding pkg-config
1612 LZ4_CFLAGS C compiler flags
for LZ4
, overriding pkg-config
1613 LZ4_LIBS linker flags
for LZ4
, overriding pkg-config
1614 ZSTD_CFLAGS C compiler flags
for ZSTD
, overriding pkg-config
1615 ZSTD_LIBS linker flags
for ZSTD
, overriding pkg-config
1616 LDFLAGS_EX extra linker flags
for linking executables only
1617 LDFLAGS_SL extra linker flags
for linking shared libraries only
1619 PYTHON Python program
1620 MSGFMT msgfmt program
for NLS
1621 TCLSH Tcl interpreter program
(tclsh
)
1623 Use these variables to override the choices made by
`configure' or to help
1624 it to find libraries and programs with nonstandard names/locations.
1626 Report bugs to <pgsql-bugs@lists.postgresql.org>.
1627 PostgreSQL home page: <https://www.postgresql.org/>.
1632 if test "$ac_init_help" = "recursive"; then
1633 # If there are subdirs, report their specific --help.
1634 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1635 test -d "$ac_dir" ||
1636 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1641 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1643 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1644 # A ".." for each directory in $ac_dir_suffix.
1645 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1646 case $ac_top_builddir_sub in
1647 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1648 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1651 ac_abs_top_builddir=$ac_pwd
1652 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1653 # for backward compatibility:
1654 ac_top_builddir=$ac_top_build_prefix
1657 .) # We are building in place.
1659 ac_top_srcdir=$ac_top_builddir_sub
1660 ac_abs_top_srcdir=$ac_pwd ;;
1661 [\\/]* | ?:[\\/]* ) # Absolute name.
1662 ac_srcdir=$srcdir$ac_dir_suffix;
1663 ac_top_srcdir=$srcdir
1664 ac_abs_top_srcdir=$srcdir ;;
1666 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1667 ac_top_srcdir=$ac_top_build_prefix$srcdir
1668 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1670 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1672 cd "$ac_dir" || { ac_status=$?; continue; }
1673 # Check for guested configure.
1674 if test -f "$ac_srcdir/configure.gnu"; then
1676 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1677 elif test -f "$ac_srcdir/configure"; then
1679 $SHELL "$ac_srcdir/configure" --help=recursive
1681 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1683 cd "$ac_pwd" || { ac_status=$?; break; }
1687 test -n "$ac_init_help" && exit $ac_status
1688 if $ac_init_version; then
1690 PostgreSQL configure 18devel
1691 generated by GNU Autoconf 2.69
1693 Copyright (C) 2012 Free Software Foundation, Inc.
1694 This configure script is free software; the Free Software Foundation
1695 gives unlimited permission to copy, distribute and modify it.
1697 Copyright (c) 1996-2024, PostgreSQL Global Development Group
1702 ## ------------------------ ##
1703 ## Autoconf initialization. ##
1704 ## ------------------------ ##
1706 # ac_fn_c_try_compile LINENO
1707 # --------------------------
1708 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1709 ac_fn_c_try_compile ()
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 rm -f conftest.$ac_objext
1713 if { { ac_try="$ac_compile"
1715 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1716 *) ac_try_echo
=$ac_try;;
1718 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719 $as_echo "$ac_try_echo"; } >&5
1720 (eval "$ac_compile") 2>conftest.err
1722 if test -s conftest.err
; then
1723 grep -v '^ *+' conftest.err
>conftest.er1
1724 cat conftest.er1
>&5
1725 mv -f conftest.er1 conftest.err
1727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728 test $ac_status = 0; } && {
1729 test -z "$ac_c_werror_flag" ||
1730 test ! -s conftest.err
1731 } && test -s conftest.
$ac_objext; then :
1734 $as_echo "$as_me: failed program was:" >&5
1735 sed 's/^/| /' conftest.
$ac_ext >&5
1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740 as_fn_set_status
$ac_retval
1742 } # ac_fn_c_try_compile
1744 # ac_fn_cxx_try_compile LINENO
1745 # ----------------------------
1746 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1747 ac_fn_cxx_try_compile
()
1749 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1750 rm -f conftest.
$ac_objext
1751 if { { ac_try
="$ac_compile"
1753 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1754 *) ac_try_echo=$ac_try;;
1756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757 $as_echo "$ac_try_echo"; } >&5
1758 (eval "$ac_compile") 2>conftest.err
1760 if test -s conftest.err; then
1761 grep -v '^ *+' conftest.err >conftest.er1
1762 cat conftest.er1 >&5
1763 mv -f conftest.er1 conftest.err
1765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1766 test $ac_status = 0; } && {
1767 test -z "$ac_cxx_werror_flag" ||
1768 test ! -s conftest.err
1769 } && test -s conftest.$ac_objext; then :
1772 $as_echo "$as_me: failed program was:" >&5
1773 sed 's/^/| /' conftest.$ac_ext >&5
1777 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1778 as_fn_set_status $ac_retval
1780 } # ac_fn_cxx_try_compile
1782 # ac_fn_c_try_link LINENO
1783 # -----------------------
1784 # Try to link conftest.$ac_ext, and return whether this succeeded.
1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788 rm -f conftest.$ac_objext conftest$ac_exeext
1789 if { { ac_try="$ac_link"
1791 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1792 *) ac_try_echo
=$ac_try;;
1794 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795 $as_echo "$ac_try_echo"; } >&5
1796 (eval "$ac_link") 2>conftest.err
1798 if test -s conftest.err
; then
1799 grep -v '^ *+' conftest.err
>conftest.er1
1800 cat conftest.er1
>&5
1801 mv -f conftest.er1 conftest.err
1803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1804 test $ac_status = 0; } && {
1805 test -z "$ac_c_werror_flag" ||
1806 test ! -s conftest.err
1807 } && test -s conftest
$ac_exeext && {
1808 test "$cross_compiling" = yes ||
1809 test -x conftest
$ac_exeext
1813 $as_echo "$as_me: failed program was:" >&5
1814 sed 's/^/| /' conftest.
$ac_ext >&5
1818 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1819 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1820 # interfere with the next link command; also delete a directory that is
1821 # left behind by Apple's compiler. We do this before executing the actions.
1822 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1823 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1824 as_fn_set_status
$ac_retval
1826 } # ac_fn_c_try_link
1828 # ac_fn_c_try_cpp LINENO
1829 # ----------------------
1830 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1833 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1834 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1836 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1837 *) ac_try_echo=$ac_try;;
1839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1840 $as_echo "$ac_try_echo"; } >&5
1841 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1843 if test -s conftest.err; then
1844 grep -v '^ *+' conftest.err >conftest.er1
1845 cat conftest.er1 >&5
1846 mv -f conftest.er1 conftest.err
1848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849 test $ac_status = 0; } > conftest.i && {
1850 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1851 test ! -s conftest.err
1855 $as_echo "$as_me: failed program was:" >&5
1856 sed 's/^/| /' conftest.$ac_ext >&5
1860 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1861 as_fn_set_status $ac_retval
1865 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1866 # -------------------------------------------------------
1867 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1868 # the include files in INCLUDES and setting the cache variable VAR
1870 ac_fn_c_check_header_mongrel ()
1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873 if eval \${$3+:} false; then :
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1875 $as_echo_n "checking for $2... " >&6; }
1876 if eval \${$3+:} false; then :
1877 $as_echo_n "(cached) " >&6
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1881 $as_echo "$ac_res" >&6; }
1883 # Is the header compilable?
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1885 $as_echo_n "checking $2 usability... " >&6; }
1886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1887 /* end confdefs.h. */
1891 if ac_fn_c_try_compile "$LINENO"; then :
1892 ac_header_compiler=yes
1894 ac_header_compiler=no
1896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1898 $as_echo "$ac_header_compiler" >&6; }
1900 # Is the header present?
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1902 $as_echo_n "checking $2 presence... " >&6; }
1903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904 /* end confdefs.h. */
1907 if ac_fn_c_try_cpp "$LINENO"; then :
1908 ac_header_preproc=yes
1910 ac_header_preproc=no
1912 rm -f conftest.err conftest.i conftest.$ac_ext
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1914 $as_echo "$ac_header_preproc" >&6; }
1916 # So? What about this header?
1917 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1920 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1922 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1926 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1928 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1930 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1932 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1934 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1935 ( $as_echo "## ---------------------------------------------- ##
1936 ## Report this to pgsql-bugs@lists.postgresql.org ##
1937 ## ---------------------------------------------- ##"
1938 ) | sed "s/^/$as_me: WARNING: /" >&2
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1942 $as_echo_n "checking for $2... " >&6; }
1943 if eval \${$3+:} false; then :
1944 $as_echo_n "(cached) " >&6
1946 eval "$3=\$ac_header_compiler"
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1950 $as_echo "$ac_res" >&6; }
1952 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1954 } # ac_fn_c_check_header_mongrel
1956 # ac_fn_c_try_run LINENO
1957 # ----------------------
1958 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1959 # that executables *can* be run.
1962 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1963 if { { ac_try="$ac_link"
1965 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1966 *) ac_try_echo
=$ac_try;;
1968 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1969 $as_echo "$ac_try_echo"; } >&5
1970 (eval "$ac_link") 2>&5
1972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1973 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1974 { { case "(($ac_try" in
1975 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1976 *) ac_try_echo=$ac_try;;
1978 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1979 $as_echo "$ac_try_echo"; } >&5
1980 (eval "$ac_try") 2>&5
1982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1983 test $ac_status = 0; }; }; then :
1986 $as_echo "$as_me: program exited with status $ac_status" >&5
1987 $as_echo "$as_me: failed program was:" >&5
1988 sed 's/^/| /' conftest.$ac_ext >&5
1990 ac_retval=$ac_status
1992 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1993 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1994 as_fn_set_status $ac_retval
1998 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1999 # -------------------------------------------------------
2000 # Tests whether HEADER exists and can be compiled using the include files in
2001 # INCLUDES, setting the cache variable VAR accordingly.
2002 ac_fn_c_check_header_compile ()
2004 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2006 $as_echo_n "checking for $2... " >&6; }
2007 if eval \${$3+:} false; then :
2008 $as_echo_n "(cached) " >&6
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h. */
2015 if ac_fn_c_try_compile "$LINENO"; then :
2020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2024 $as_echo "$ac_res" >&6; }
2025 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2027 } # ac_fn_c_check_header_compile
2029 # ac_fn_c_check_func LINENO FUNC VAR
2030 # ----------------------------------
2031 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2032 ac_fn_c_check_func ()
2034 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2036 $as_echo_n "checking for $2... " >&6; }
2037 if eval \${$3+:} false; then :
2038 $as_echo_n "(cached) " >&6
2040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041 /* end confdefs.h. */
2042 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2044 #define $2 innocuous_$2
2046 /* System header to define __stub macros and hopefully few prototypes,
2047 which can conflict with char $2 (); below.
2048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2049 <limits.h> exists even on freestanding compilers. */
2052 # include <limits.h>
2054 # include <assert.h>
2059 /* Override any GCC internal prototype to avoid an error.
2060 Use char because int might match the return type of a GCC
2061 builtin and then its argument prototype would still apply. */
2066 /* The GNU C library defines this for functions which it implements
2067 to always fail with ENOSYS. Some functions are actually named
2068 something starting with __ and the normal name is an alias. */
2069 #if defined __stub_$2 || defined __stub___$2
2081 if ac_fn_c_try_link "$LINENO"; then :
2086 rm -f core conftest.err conftest.$ac_objext \
2087 conftest$ac_exeext conftest.$ac_ext
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2091 $as_echo "$ac_res" >&6; }
2092 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2094 } # ac_fn_c_check_func
2096 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2097 # -------------------------------------------
2098 # Tests whether TYPE exists after having included INCLUDES, setting cache
2099 # variable VAR accordingly.
2100 ac_fn_c_check_type ()
2102 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2104 $as_echo_n "checking for $2... " >&6; }
2105 if eval \${$3+:} false; then :
2106 $as_echo_n "(cached) " >&6
2109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2110 /* end confdefs.h. */
2121 if ac_fn_c_try_compile "$LINENO"; then :
2122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2123 /* end confdefs.h. */
2134 if ac_fn_c_try_compile "$LINENO"; then :
2139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2145 $as_echo "$ac_res" >&6; }
2146 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2148 } # ac_fn_c_check_type
2150 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2151 # ----------------------------------------------------
2152 # Tries to find if the field MEMBER exists in type AGGR, after including
2153 # INCLUDES, setting cache variable VAR accordingly.
2154 ac_fn_c_check_member ()
2156 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2158 $as_echo_n "checking for $2.$3... " >&6; }
2159 if eval \${$4+:} false; then :
2160 $as_echo_n "(cached) " >&6
2162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2163 /* end confdefs.h. */
2175 if ac_fn_c_try_compile "$LINENO"; then :
2178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2179 /* end confdefs.h. */
2185 if (sizeof ac_aggr.$3)
2191 if ac_fn_c_try_compile "$LINENO"; then :
2196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2202 $as_echo "$ac_res" >&6; }
2203 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2205 } # ac_fn_c_check_member
2207 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2208 # --------------------------------------------
2209 # Tries to find the compile-time value of EXPR in a program that includes
2210 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2212 ac_fn_c_compute_int ()
2214 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2215 if test "$cross_compiling" = yes; then
2216 # Depending upon the size, compute the lo and hi bounds.
2217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218 /* end confdefs.h. */
2223 static int test_array [1 - 2 * !(($2) >= 0)];
2225 return test_array [0];
2231 if ac_fn_c_try_compile "$LINENO"; then :
2234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2235 /* end confdefs.h. */
2240 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2242 return test_array [0];
2248 if ac_fn_c_try_compile "$LINENO"; then :
2249 ac_hi=$ac_mid; break
2251 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2252 if test $ac_lo -le $ac_mid; then
2256 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2262 /* end confdefs.h. */
2267 static int test_array [1 - 2 * !(($2) < 0)];
2269 return test_array [0];
2275 if ac_fn_c_try_compile "$LINENO"; then :
2278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2279 /* end confdefs.h. */
2284 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2286 return test_array [0];
2292 if ac_fn_c_try_compile "$LINENO"; then :
2293 ac_lo=$ac_mid; break
2295 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2296 if test $ac_mid -le $ac_hi; then
2300 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2310 # Binary search between lo and hi bounds.
2311 while test "x$ac_lo" != "x$ac_hi"; do
2312 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2314 /* end confdefs.h. */
2319 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2321 return test_array [0];
2327 if ac_fn_c_try_compile "$LINENO"; then :
2330 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2335 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2340 /* end confdefs.h. */
2342 static long int longval () { return $2; }
2343 static unsigned long int ulongval () { return $2; }
2350 FILE *f = fopen ("conftest.val", "w");
2355 long int i = longval ();
2358 fprintf (f, "%ld", i);
2362 unsigned long int i = ulongval ();
2365 fprintf (f, "%lu", i);
2367 /* Do not output a trailing newline, as this causes \r\n confusion
2368 on some platforms. */
2369 return ferror (f) || fclose (f) != 0;
2375 if ac_fn_c_try_run "$LINENO"; then :
2376 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2380 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2381 conftest.$ac_objext conftest.beam conftest.$ac_ext
2385 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2386 as_fn_set_status $ac_retval
2388 } # ac_fn_c_compute_int
2390 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2391 # ---------------------------------------------
2392 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2394 ac_fn_c_check_decl ()
2396 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2397 # Initialize each $ac_[]_AC_LANG_ABBREV[]_decl_warn_flag once.
2398 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2399 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2401 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2402 if eval \${$3+:} false; then :
2403 $as_echo_n "(cached) " >&6
2405 ac_save_werror_flag=$ac_c_werror_flag
2406 ac_c_werror_flag="$ac_c_decl_warn_flag$ac_c_werror_flag"
2407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2408 /* end confdefs.h. */
2413 #ifndef $as_decl_name
2415 (void) $as_decl_use;
2417 (void) $as_decl_name;
2425 if ac_fn_c_try_compile "$LINENO"; then :
2430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2431 ac_c_werror_flag=$ac_save_werror_flag
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2435 $as_echo "$ac_res" >&6; }
2436 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2438 } # ac_fn_c_check_decl
2439 cat >config.log <<_ACEOF
2440 This file contains any messages produced by compilers while
2441 running configure, to aid debugging if configure makes a mistake.
2443 It was created by PostgreSQL $as_me 18devel, which was
2444 generated by GNU Autoconf 2.69. Invocation command line was
2456 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2457 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2458 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2459 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2460 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2462 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2463 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2465 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2466 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2467 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2468 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2469 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2470 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2471 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479 test -z "$as_dir" && as_dir=.
2480 $as_echo "PATH: $as_dir"
2496 # Keep a trace of the command line.
2497 # Strip out --no-create and --no-recursion so they do not pile up.
2498 # Strip out --silent because we don't want to record it for future runs.
2499 # Also quote any args containing shell meta-characters.
2500 # Make two passes to allow for proper duplicate-argument suppression.
2504 ac_must_keep_next=false
2510 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2511 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2512 | -silent | --silent | --silen | --sile | --sil)
2515 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2518 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2520 as_fn_append ac_configure_args1 " '$ac_arg'"
2521 if test $ac_must_keep_next = true; then
2522 ac_must_keep_next=false # Got value, back to normal.
2525 *=* | --config-cache | -C | -disable-* | --disable-* \
2526 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2527 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2528 | -with-* | --with-* | -without-* | --without-* | --x)
2529 case "$ac_configure_args0 " in
2530 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2533 -* ) ac_must_keep_next=true ;;
2536 as_fn_append ac_configure_args " '$ac_arg'"
2541 { ac_configure_args0=; unset ac_configure_args0;}
2542 { ac_configure_args1=; unset ac_configure_args1;}
2544 # When interrupted or exit'd, cleanup temporary files, and complete
2545 # config.log. We remove comments because anyway the quotes in there
2546 # would cause problems or look ugly.
2547 # WARNING: Use '\'' to represent an apostrophe within the trap.
2548 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2549 trap 'exit_status=$?
2550 # Save into config.log some information that might help in debugging.
2554 $as_echo "## ---------------- ##
2555 ## Cache variables. ##
2556 ## ---------------- ##"
2558 # The following way of writing the cache mishandles newlines in values,
2560 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2561 eval ac_val=\$$ac_var
2565 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2566 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2569 _ | IFS | as_nl) ;; #(
2570 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2571 *) { eval $ac_var=; unset $ac_var;} ;;
2576 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2577 *${as_nl}ac_space=\ *)
2579 "s/'\''/'\''\\\\'\'''\''/g;
2580 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2583 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2590 $as_echo "## ----------------- ##
2591 ## Output variables. ##
2592 ## ----------------- ##"
2594 for ac_var in $ac_subst_vars
2596 eval ac_val=\$$ac_var
2598 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2600 $as_echo "$ac_var='\''$ac_val'\''"
2604 if test -n "$ac_subst_files"; then
2605 $as_echo "## ------------------- ##
2606 ## File substitutions. ##
2607 ## ------------------- ##"
2609 for ac_var in $ac_subst_files
2611 eval ac_val=\$$ac_var
2613 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2615 $as_echo "$ac_var='\''$ac_val'\''"
2620 if test -s confdefs.h; then
2621 $as_echo "## ----------- ##
2628 test "$ac_signal" != 0 &&
2629 $as_echo "$as_me: caught signal $ac_signal"
2630 $as_echo "$as_me: exit $exit_status"
2632 rm -f core *.core core.conftest.* &&
2633 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2636 for ac_signal in 1 2 13 15; do
2637 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2641 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2642 rm -f -r conftest* confdefs.h
2644 $as_echo "/* confdefs.h */" > confdefs.h
2646 # Predefined preprocessor variables.
2648 cat >>confdefs.h <<_ACEOF
2649 #define PACKAGE_NAME "$PACKAGE_NAME"
2652 cat >>confdefs.h <<_ACEOF
2653 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2656 cat >>confdefs.h <<_ACEOF
2657 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2660 cat >>confdefs.h <<_ACEOF
2661 #define PACKAGE_STRING "$PACKAGE_STRING"
2664 cat >>confdefs.h <<_ACEOF
2665 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2668 cat >>confdefs.h <<_ACEOF
2669 #define PACKAGE_URL "$PACKAGE_URL"
2673 # Let the site file select an alternate cache file if it wants to.
2674 # Prefer an explicitly selected file to automatically selected ones.
2677 if test -n "$CONFIG_SITE"; then
2678 # We do not want a PATH search for config.site.
2679 case $CONFIG_SITE in #((
2680 -*) ac_site_file1=./$CONFIG_SITE;;
2681 */*) ac_site_file1=$CONFIG_SITE;;
2682 *) ac_site_file1=./$CONFIG_SITE;;
2684 elif test "x$prefix" != xNONE; then
2685 ac_site_file1=$prefix/share/config.site
2686 ac_site_file2=$prefix/etc/config.site
2688 ac_site_file1=$ac_default_prefix/share/config.site
2689 ac_site_file2=$ac_default_prefix/etc/config.site
2691 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2693 test "x$ac_site_file" = xNONE && continue
2694 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2696 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2697 sed 's/^/| /' "$ac_site_file" >&5
2699 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2701 as_fn_error $? "failed to load site
script $ac_site_file
2702 See \
`config.log' for more details" "$LINENO" 5; }
2706 if test -r "$cache_file"; then
2707 # Some versions of bash will fail to source /dev/null (special files
2708 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2709 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2711 $as_echo "$as_me: loading cache $cache_file" >&6;}
2713 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2714 *) . "./$cache_file";;
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2719 $as_echo "$as_me: creating cache $cache_file" >&6;}
2723 # Check that the precious variables saved in the cache have kept the same
2725 ac_cache_corrupted=false
2726 for ac_var in $ac_precious_vars; do
2727 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2728 eval ac_new_set=\$ac_env_${ac_var}_set
2729 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2730 eval ac_new_val=\$ac_env_${ac_var}_value
2731 case $ac_old_set,$ac_new_set in
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2734 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2735 ac_cache_corrupted=: ;;
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2738 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2739 ac_cache_corrupted=: ;;
2742 if test "x$ac_old_val" != "x$ac_new_val"; then
2743 # differences in whitespace do not lead to failure.
2744 ac_old_val_w=`echo x
$ac_old_val`
2745 ac_new_val_w=`echo x
$ac_new_val`
2746 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2748 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2749 ac_cache_corrupted=:
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2752 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2753 eval $ac_var=\$ac_old_val
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2756 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2758 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2761 # Pass precious variables to config.status.
2762 if test "$ac_new_set" = set; then
2764 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2765 *) ac_arg=$ac_var=$ac_new_val ;;
2767 case " $ac_configure_args " in
2768 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2769 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2773 if $ac_cache_corrupted; then
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2775 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2777 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2778 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2780 ## -------------------- ##
2781 ## Main body of script. ##
2782 ## -------------------- ##
2785 ac_cpp='$CPP $CPPFLAGS'
2786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2796 for ac_dir in config "$srcdir"/config; do
2797 if test -f "$ac_dir/install-sh"; then
2799 ac_install_sh="$ac_aux_dir/install-sh -c"
2801 elif test -f "$ac_dir/install.sh"; then
2803 ac_install_sh="$ac_aux_dir/install.sh -c"
2805 elif test -f "$ac_dir/shtool"; then
2807 ac_install_sh="$ac_aux_dir/shtool install -c"
2811 if test -z "$ac_aux_dir"; then
2812 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2815 # These three variables are undocumented and unsupported,
2816 # and are intended to be withdrawn in a future Autoconf release.
2817 # They can cause serious problems if a builder's source tree is in a directory
2818 # whose full name contains unusual characters.
2819 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2820 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2821 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2826 cat >>confdefs.h <<_ACEOF
2827 #define CONFIGURE_ARGS "$ac_configure_args"
2831 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\)'`
2832 PG_MINORVERSION=`expr "$PACKAGE_VERSION" : '.*\.\([0-9][0-9]*\)'`
2833 test -n "$PG_MINORVERSION" || PG_MINORVERSION=0
2836 cat >>confdefs.h <<_ACEOF
2837 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2841 cat >>confdefs.h <<_ACEOF
2842 #define PG_MAJORVERSION_NUM $PG_MAJORVERSION
2846 cat >>confdefs.h <<_ACEOF
2847 #define PG_MINORVERSION_NUM $PG_MINORVERSION
2854 # Check whether --with-extra-version was given.
2855 if test "${with_extra_version+set}" = set; then :
2856 withval=$with_extra_version;
2859 as_fn_error $? "argument required for --with-extra-version option" "$LINENO" 5
2862 as_fn_error $? "argument required for --with-extra-version option" "$LINENO" 5
2865 PG_VERSION="$PACKAGE_VERSION$withval"
2870 PG_VERSION="$PACKAGE_VERSION"
2875 cat >>confdefs.h <<_ACEOF
2876 #define PG_VERSION "$PG_VERSION"
2880 # Make sure we can run config.sub.
2881 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2882 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2885 $as_echo_n "checking build system type... " >&6; }
2886 if ${ac_cv_build+:} false; then :
2887 $as_echo_n "(cached) " >&6
2889 ac_build_alias=$build_alias
2890 test "x$ac_build_alias" = x &&
2891 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2892 test "x$ac_build_alias" = x &&
2893 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2894 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2895 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2899 $as_echo "$ac_cv_build" >&6; }
2900 case $ac_cv_build in
2902 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2905 ac_save_IFS=$IFS; IFS='-'
2911 # Remember, the first character of IFS is used to create $*,
2912 # except with old shells:
2915 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2919 $as_echo_n "checking host system type... " >&6; }
2920 if ${ac_cv_host+:} false; then :
2921 $as_echo_n "(cached) " >&6
2923 if test "x$host_alias" = x; then
2924 ac_cv_host=$ac_cv_build
2926 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2927 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2932 $as_echo "$ac_cv_host" >&6; }
2935 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2938 ac_save_IFS=$IFS; IFS='-'
2944 # Remember, the first character of IFS is used to create $*,
2945 # except with old shells:
2948 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which template to use" >&5
2954 $as_echo_n "checking which template to use... " >&6; }
2959 # Check whether --with-template was given.
2960 if test "${with_template+set}" = set; then :
2961 withval=$with_template;
2964 as_fn_error $? "argument required for --with-template option" "$LINENO" 5
2967 as_fn_error $? "argument required for --with-template option" "$LINENO" 5
2972 list) echo; ls "$srcdir/src/template"; exit;;
2973 *) if test -f "$srcdir/src/template/$with_template" ; then
2976 as_fn_error $? "'$withval' is not a valid template name. Use 'list' for a list." "$LINENO" 5
2985 # --with-template not given
2988 cygwin*|msys*) template=cygwin ;;
2989 darwin*) template=darwin ;;
2990 dragonfly*) template=netbsd ;;
2991 freebsd*) template=freebsd ;;
2992 linux*|gnu*|k*bsd*-gnu)
2994 mingw*) template=win32 ;;
2995 netbsd*) template=netbsd ;;
2996 openbsd*) template=openbsd ;;
2997 solaris*) template=solaris ;;
3000 if test x"$template" = x"" ; then
3002 *******************************************************************
3003 PostgreSQL has apparently not been ported to your platform yet.
3004 To try a manual configuration, look into the src/template directory
3005 for a similar platform and use the '--with-template=' option.
3007 Please also contact <pgsql-bugs@lists.postgresql.org> to see about
3008 rectifying this. Include the above 'checking host system type...'
3010 *******************************************************************
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $template" >&5
3020 $as_echo "$template" >&6; }
3025 # Initialize default assumption that we do not need separate assembly code
3026 # for TAS (test-and-set). This can be overridden by the template file
3027 # when it's executed.
3031 # Default, works for most platforms, override in template file if needed
3037 ## Command line options
3041 # Add non-standard directories to the include path
3046 # Check whether --with-includes was given.
3047 if test "${with_includes+set}" = set; then :
3048 withval=$with_includes;
3051 as_fn_error $? "argument required for --with-includes option" "$LINENO" 5
3054 as_fn_error $? "argument required for --with-includes option" "$LINENO" 5
3067 # Add non-standard directories to the library search path
3072 # Check whether --with-libraries was given.
3073 if test "${with_libraries+set}" = set; then :
3074 withval=$with_libraries;
3077 as_fn_error $? "argument required for --with-libraries option" "$LINENO" 5
3080 as_fn_error $? "argument required for --with-libraries option" "$LINENO" 5
3083 LIBRARY_DIRS=$withval
3094 # Check whether --with-libs was given.
3095 if test "${with_libs+set}" = set; then :
3099 as_fn_error $? "argument required for --with-libs option" "$LINENO" 5
3102 as_fn_error $? "argument required for --with-libs option" "$LINENO" 5
3105 LIBRARY_DIRS=$withval
3115 # 64-bit integer date/time storage is now the only option, but to avoid
3116 # unnecessary breakage of build scripts, continue to accept an explicit
3117 # "--enable-integer-datetimes" switch.
3121 # Check whether --enable-integer-datetimes was given.
3122 if test "${enable_integer_datetimes+set}" = set; then :
3123 enableval=$enable_integer_datetimes;
3129 as_fn_error $? "--disable-integer-datetimes is no longer supported" "$LINENO" 5
3132 as_fn_error $? "no argument expected for --enable-integer-datetimes option" "$LINENO" 5
3137 enable_integer_datetimes=yes
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is wanted" >&5
3148 $as_echo_n "checking whether NLS is wanted... " >&6; }
3151 # Check whether --enable-nls was given.
3152 if test "${enable_nls+set}" = set; then :
3153 enableval=$enable_nls;
3163 WANTED_LANGUAGES=$enableval
3173 if test "$enable_nls" = yes; then
3175 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nls" >&5
3180 $as_echo "$enable_nls" >&6; }
3185 # Default port number (--with-pgport), default 5432
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default port number" >&5
3188 $as_echo_n "checking for default port number... " >&6; }
3192 # Check whether --with-pgport was given.
3193 if test "${with_pgport+set}" = set; then :
3194 withval=$with_pgport;
3197 as_fn_error $? "argument required for --with-pgport option" "$LINENO" 5
3200 as_fn_error $? "argument required for --with-pgport option" "$LINENO" 5
3203 default_port=$withval
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $default_port" >&5
3213 $as_echo "$default_port" >&6; }
3214 # Need both of these because some places want an integer and some a string
3216 cat >>confdefs.h <<_ACEOF
3217 #define DEF_PGPORT ${default_port}
3221 cat >>confdefs.h <<_ACEOF
3222 #define DEF_PGPORT_STR "${default_port}"
3227 # It's worth validating port; you can get very confusing errors otherwise
3228 if test x"$default_port" = x""; then
3229 as_fn_error $? "invalid --with-pgport specification: empty string" "$LINENO" 5
3230 elif test ! x`echo "$default_port" |
sed -e 's/[0-9]*//'` = x""; then
3231 as_fn_error $? "invalid --with-pgport specification: must be a number" "$LINENO" 5
3232 elif test ! x`echo "$default_port" |
sed -e 's/^0.//'` = x"$default_port"; then
3233 as_fn_error $? "invalid --with-pgport specification: must not have leading 0" "$LINENO" 5
3234 elif test "$default_port" -lt "1" -o "$default_port" -gt "65535"; then
3235 as_fn_error $? "invalid --with-pgport specification: must be between 1 and 65535" "$LINENO" 5
3239 # '-rpath'-like feature can be disabled
3243 # Check whether --enable-rpath was given.
3244 if test "${enable_rpath+set}" = set; then :
3245 enableval=$enable_rpath;
3254 as_fn_error $? "no argument expected for --enable-rpath option" "$LINENO" 5
3267 # --enable-debug adds -g to compiler flags
3271 # Check whether --enable-debug was given.
3272 if test "${enable_debug+set}" = set; then :
3273 enableval=$enable_debug;
3282 as_fn_error $? "no argument expected for --enable-debug option" "$LINENO" 5
3295 # --enable-profiling enables gcc profiling
3299 # Check whether --enable-profiling was given.
3300 if test "${enable_profiling+set}" = set; then :
3301 enableval=$enable_profiling;
3310 as_fn_error $? "no argument expected for --enable-profiling option" "$LINENO" 5
3322 # --enable-coverage enables generation of code coverage metrics with gcov
3326 # Check whether --enable-coverage was given.
3327 if test "${enable_coverage+set}" = set; then :
3328 enableval=$enable_coverage;
3331 if test -z "$GCOV"; then
3334 # Extract the first word of "$ac_prog", so it can be a program name with args.
3335 set dummy $ac_prog; ac_word=$2
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3337 $as_echo_n "checking for $ac_word... " >&6; }
3338 if ${ac_cv_path_GCOV+:} false; then :
3339 $as_echo_n "(cached) " >&6
3343 ac_cv_path_GCOV="$GCOV" # Let the user override the test with a path.
3346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350 test -z "$as_dir" && as_dir=.
3351 for ac_exec_ext in '' $ac_executable_extensions; do
3352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3353 ac_cv_path_GCOV="$as_dir/$ac_word$ac_exec_ext"
3354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3364 GCOV=$ac_cv_path_GCOV
3365 if test -n "$GCOV"; then
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3367 $as_echo "$GCOV" >&6; }
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3370 $as_echo "no" >&6; }
3374 test -n "$GCOV" && break
3378 # Report the value of GCOV in configure's output in all cases.
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCOV" >&5
3380 $as_echo_n "checking for GCOV... " >&6; }
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3382 $as_echo "$GCOV" >&6; }
3385 if test -z "$GCOV"; then
3386 as_fn_error $? "gcov not found" "$LINENO" 5
3388 if test -z "$LCOV"; then
3391 # Extract the first word of "$ac_prog", so it can be a program name with args.
3392 set dummy $ac_prog; ac_word=$2
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3394 $as_echo_n "checking for $ac_word... " >&6; }
3395 if ${ac_cv_path_LCOV+:} false; then :
3396 $as_echo_n "(cached) " >&6
3400 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
3403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3407 test -z "$as_dir" && as_dir=.
3408 for ac_exec_ext in '' $ac_executable_extensions; do
3409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3410 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
3411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3421 LCOV=$ac_cv_path_LCOV
3422 if test -n "$LCOV"; then
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3424 $as_echo "$LCOV" >&6; }
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3427 $as_echo "no" >&6; }
3431 test -n "$LCOV" && break
3435 # Report the value of LCOV in configure's output in all cases.
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCOV" >&5
3437 $as_echo_n "checking for LCOV... " >&6; }
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3439 $as_echo "$LCOV" >&6; }
3442 if test -z "$LCOV"; then
3443 as_fn_error $? "lcov not found" "$LINENO" 5
3445 if test -z "$GENHTML"; then
3446 for ac_prog in genhtml
3448 # Extract the first word of "$ac_prog", so it can be a program name with args.
3449 set dummy $ac_prog; ac_word=$2
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3451 $as_echo_n "checking for $ac_word... " >&6; }
3452 if ${ac_cv_path_GENHTML+:} false; then :
3453 $as_echo_n "(cached) " >&6
3457 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
3460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3464 test -z "$as_dir" && as_dir=.
3465 for ac_exec_ext in '' $ac_executable_extensions; do
3466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3467 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
3468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3478 GENHTML=$ac_cv_path_GENHTML
3479 if test -n "$GENHTML"; then
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3481 $as_echo "$GENHTML" >&6; }
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3484 $as_echo "no" >&6; }
3488 test -n "$GENHTML" && break
3492 # Report the value of GENHTML in configure's output in all cases.
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GENHTML" >&5
3494 $as_echo_n "checking for GENHTML... " >&6; }
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3496 $as_echo "$GENHTML" >&6; }
3499 if test -z "$GENHTML"; then
3500 as_fn_error $? "genhtml not found" "$LINENO" 5
3507 as_fn_error $? "no argument expected for --enable-coverage option" "$LINENO" 5
3524 # Check whether --enable-dtrace was given.
3525 if test "${enable_dtrace+set}" = set; then :
3526 enableval=$enable_dtrace;
3529 if test -z "$DTRACE"; then
3530 for ac_prog in dtrace
3532 # Extract the first word of "$ac_prog", so it can be a program name with args.
3533 set dummy $ac_prog; ac_word=$2
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3535 $as_echo_n "checking for $ac_word... " >&6; }
3536 if ${ac_cv_path_DTRACE+:} false; then :
3537 $as_echo_n "(cached) " >&6
3541 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
3544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3548 test -z "$as_dir" && as_dir=.
3549 for ac_exec_ext in '' $ac_executable_extensions; do
3550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3551 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
3552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3562 DTRACE=$ac_cv_path_DTRACE
3563 if test -n "$DTRACE"; then
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
3565 $as_echo "$DTRACE" >&6; }
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568 $as_echo "no" >&6; }
3572 test -n "$DTRACE" && break
3576 # Report the value of DTRACE in configure's output in all cases.
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5
3578 $as_echo_n "checking for DTRACE... " >&6; }
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
3580 $as_echo "$DTRACE" >&6; }
3583 if test -z "$DTRACE"; then
3584 as_fn_error $? "dtrace not found" "$LINENO" 5
3592 as_fn_error $? "no argument expected for --enable-dtrace option" "$LINENO" 5
3609 # Check whether --enable-tap-tests was given.
3610 if test "${enable_tap_tests+set}" = set; then :
3611 enableval=$enable_tap_tests;
3620 as_fn_error $? "no argument expected for --enable-tap-tests option" "$LINENO" 5
3637 # Check whether --enable-injection-points was given.
3638 if test "${enable_injection_points+set}" = set; then :
3639 enableval=$enable_injection_points;
3643 $as_echo "#define USE_INJECTION_POINTS 1" >>confdefs.h
3650 as_fn_error $? "no argument expected for --enable-injection-points option" "$LINENO" 5
3655 enable_injection_points=no
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for block size" >&5
3666 $as_echo_n "checking for block size... " >&6; }
3670 # Check whether --with-blocksize was given.
3671 if test "${with_blocksize+set}" = set; then :
3672 withval=$with_blocksize;
3675 as_fn_error $? "argument required for --with-blocksize option" "$LINENO" 5
3678 as_fn_error $? "argument required for --with-blocksize option" "$LINENO" 5
3690 case ${blocksize} in
3697 *) as_fn_error $? "Invalid block size. Allowed values are 1,2,4,8,16,32." "$LINENO" 5
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${blocksize}kB" >&5
3700 $as_echo "${blocksize}kB" >&6; }
3703 cat >>confdefs.h <<_ACEOF
3704 #define BLCKSZ ${BLCKSZ}
3709 # Relation segment size
3714 # Check whether --with-segsize was given.
3715 if test "${with_segsize+set}" = set; then :
3716 withval=$with_segsize;
3719 as_fn_error $? "argument required for --with-segsize option" "$LINENO" 5
3722 as_fn_error $? "argument required for --with-segsize option" "$LINENO" 5
3737 # Check whether --with-segsize-blocks was given.
3738 if test "${with_segsize_blocks+set}" = set; then :
3739 withval=$with_segsize_blocks;
3742 as_fn_error $? "argument required for --with-segsize-blocks option" "$LINENO" 5
3745 as_fn_error $? "argument required for --with-segsize-blocks option" "$LINENO" 5
3748 segsize_blocks=$withval
3758 # If --with-segsize-blocks is non-zero, it is used, --with-segsize
3759 # otherwise. segsize-blocks is only really useful for developers wanting to
3760 # test segment related code. Warn if both are used.
3761 if test $segsize_blocks -ne 0 -a $segsize -ne 1; then
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: both --with-segsize and --with-segsize-blocks specified, --with-segsize-blocks wins" >&5
3763 $as_echo "$as_me: WARNING: both --with-segsize and --with-segsize-blocks specified, --with-segsize-blocks wins" >&2;}
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for segment size" >&5
3767 $as_echo_n "checking for segment size... " >&6; }
3768 if test $segsize_blocks -eq 0; then
3769 # this expression is set up to avoid unnecessary integer overflow
3770 # blocksize is already guaranteed to be a factor of 1024
3771 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
3772 test $? -eq 0 || exit 1
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${segsize}GB" >&5
3774 $as_echo "${segsize}GB" >&6; }
3776 RELSEG_SIZE=$segsize_blocks
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${RELSEG_SIZE} blocks" >&5
3778 $as_echo "${RELSEG_SIZE} blocks" >&6; }
3782 cat >>confdefs.h <<_ACEOF
3783 #define RELSEG_SIZE ${RELSEG_SIZE}
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAL block size" >&5
3791 $as_echo_n "checking for WAL block size... " >&6; }
3795 # Check whether --with-wal-blocksize was given.
3796 if test "${with_wal_blocksize+set}" = set; then :
3797 withval=$with_wal_blocksize;
3800 as_fn_error $? "argument required for --with-wal-blocksize option" "$LINENO" 5
3803 as_fn_error $? "argument required for --with-wal-blocksize option" "$LINENO" 5
3806 wal_blocksize=$withval
3815 case ${wal_blocksize} in
3816 1) XLOG_BLCKSZ=1024;;
3817 2) XLOG_BLCKSZ=2048;;
3818 4) XLOG_BLCKSZ=4096;;
3819 8) XLOG_BLCKSZ=8192;;
3820 16) XLOG_BLCKSZ=16384;;
3821 32) XLOG_BLCKSZ=32768;;
3822 64) XLOG_BLCKSZ=65536;;
3823 *) as_fn_error $? "Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." "$LINENO" 5
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${wal_blocksize}kB" >&5
3826 $as_echo "${wal_blocksize}kB" >&6; }
3829 cat >>confdefs.h <<_ACEOF
3830 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
3838 # If you don't specify a list of compilers to test, the AC_PROG_CC and
3839 # AC_PROG_CXX macros test for a long list of unsupported compilers.
3840 pgac_cc_list="gcc cc"
3841 pgac_cxx_list="g++ c++"
3844 ac_cpp='$CPP $CPPFLAGS'
3845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3848 if test -n "$ac_tool_prefix"; then
3849 for ac_prog in $pgac_cc_list
3851 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3852 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3854 $as_echo_n "checking for $ac_word... " >&6; }
3855 if ${ac_cv_prog_CC+:} false; then :
3856 $as_echo_n "(cached) " >&6
3858 if test -n "$CC"; then
3859 ac_cv_prog_CC="$CC" # Let the user override the test.
3861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865 test -z "$as_dir" && as_dir=.
3866 for ac_exec_ext in '' $ac_executable_extensions; do
3867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3868 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3879 if test -n "$CC"; then
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3881 $as_echo "$CC" >&6; }
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3884 $as_echo "no" >&6; }
3888 test -n "$CC" && break
3891 if test -z "$CC"; then
3893 for ac_prog in $pgac_cc_list
3895 # Extract the first word of "$ac_prog", so it can be a program name with args.
3896 set dummy $ac_prog; ac_word=$2
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3898 $as_echo_n "checking for $ac_word... " >&6; }
3899 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3900 $as_echo_n "(cached) " >&6
3902 if test -n "$ac_ct_CC"; then
3903 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3909 test -z "$as_dir" && as_dir=.
3910 for ac_exec_ext in '' $ac_executable_extensions; do
3911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3912 ac_cv_prog_ac_ct_CC="$ac_prog"
3913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3922 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3923 if test -n "$ac_ct_CC"; then
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3925 $as_echo "$ac_ct_CC" >&6; }
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3928 $as_echo "no" >&6; }
3932 test -n "$ac_ct_CC" && break
3935 if test "x$ac_ct_CC" = x; then
3938 case $cross_compiling:$ac_tool_warned in
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3941 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3942 ac_tool_warned=yes ;;
3949 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3951 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3952 See \
`config.log' for more details" "$LINENO" 5; }
3954 # Provide some information about the compiler.
3955 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3958 for ac_option in --version -v -V -qversion; do
3959 { { ac_try="$ac_compiler $ac_option >&5"
3961 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3962 *) ac_try_echo
=$ac_try;;
3964 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3965 $as_echo "$ac_try_echo"; } >&5
3966 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3968 if test -s conftest.err
; then
3970 ... rest of stderr output deleted ...
3971 10q' conftest.err
>conftest.er1
3972 cat conftest.er1
>&5
3974 rm -f conftest.er1 conftest.err
3975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3976 test $ac_status = 0; }
3979 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3980 /* end confdefs.h. */
3990 ac_clean_files_save
=$ac_clean_files
3991 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3992 # Try to create an executable without -o first, disregard a.out.
3993 # It will help us diagnose broken compilers, and finding out an intuition
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3996 $as_echo_n "checking whether the C compiler works... " >&6; }
3997 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3999 # The possible output files:
4000 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4003 for ac_file
in $ac_files
4006 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4007 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
4012 if { { ac_try
="$ac_link_default"
4014 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4015 *) ac_try_echo=$ac_try;;
4017 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4018 $as_echo "$ac_try_echo"; } >&5
4019 (eval "$ac_link_default") 2>&5
4021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4022 test $ac_status = 0; }; then :
4023 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
4024 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
4025 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4026 # so that the user can short-circuit this test for compilers unknown to
4028 for ac_file in $ac_files ''
4030 test -f "$ac_file" || continue
4032 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4035 # We found the default executable, but exeext='' is most
4039 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4041 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4043 # We set ac_cv_exeext here because the later test for it is not
4044 # safe: cross compilers may not add the suffix if given an `-o'
4045 # argument, so we may need to know it at that point already.
4046 # Even if this section looks crufty: it has the advantage of
4053 test "$ac_cv_exeext" = no && ac_cv_exeext=
4058 if test -z "$ac_file"; then :
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4060 $as_echo "no" >&6; }
4061 $as_echo "$as_me: failed program was:" >&5
4062 sed 's
/^
/|
/' conftest.$ac_ext >&5
4064 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4065 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
4066 as_fn_error 77 "C compiler cannot create executables
4067 See \`config.log
' for more details" "$LINENO" 5; }
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4070 $as_echo "yes" >&6; }
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4073 $as_echo_n "checking for C compiler default output file name... " >&6; }
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4075 $as_echo "$ac_file" >&6; }
4076 ac_exeext=$ac_cv_exeext
4078 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4079 ac_clean_files=$ac_clean_files_save
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4081 $as_echo_n "checking for suffix of executables... " >&6; }
4082 if { { ac_try="$ac_link"
4084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4085 *) ac_try_echo=$ac_try;;
4087 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4088 $as_echo "$ac_try_echo"; } >&5
4089 (eval "$ac_link") 2>&5
4091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4092 test $ac_status = 0; }; then :
4093 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
4094 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
4095 # work properly (i.e., refer to `conftest.exe
'), while it won't with
4097 for ac_file
in conftest.exe conftest conftest.
*; do
4098 test -f "$ac_file" ||
continue
4100 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4101 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4107 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4108 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4109 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4110 See \`config.log' for more details" "$LINENO" 5; }
4112 rm -f conftest conftest
$ac_cv_exeext
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4114 $as_echo "$ac_cv_exeext" >&6; }
4116 rm -f conftest.
$ac_ext
4117 EXEEXT
=$ac_cv_exeext
4119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4120 /* end confdefs.h. */
4125 FILE *f = fopen ("conftest.out", "w");
4126 return ferror (f) || fclose (f) != 0;
4132 ac_clean_files
="$ac_clean_files conftest.out"
4133 # Check that the compiler produces executables we can run. If not, either
4134 # the compiler is broken, or we cross compile.
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4136 $as_echo_n "checking whether we are cross compiling... " >&6; }
4137 if test "$cross_compiling" != yes; then
4138 { { ac_try
="$ac_link"
4140 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4141 *) ac_try_echo=$ac_try;;
4143 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4144 $as_echo "$ac_try_echo"; } >&5
4145 (eval "$ac_link") 2>&5
4147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4148 test $ac_status = 0; }
4149 if { ac_try='./conftest$ac_cv_exeext'
4150 { { case "(($ac_try" in
4151 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4152 *) ac_try_echo
=$ac_try;;
4154 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4155 $as_echo "$ac_try_echo"; } >&5
4156 (eval "$ac_try") 2>&5
4158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4159 test $ac_status = 0; }; }; then
4162 if test "$cross_compiling" = maybe
; then
4165 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4166 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4167 as_fn_error $?
"cannot run C compiled programs.
4168 If you meant to cross compile, use \`--host'.
4169 See \`config.log' for more details" "$LINENO" 5; }
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4174 $as_echo "$cross_compiling" >&6; }
4176 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4177 ac_clean_files
=$ac_clean_files_save
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4179 $as_echo_n "checking for suffix of object files... " >&6; }
4180 if ${ac_cv_objext+:} false
; then :
4181 $as_echo_n "(cached) " >&6
4183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4184 /* end confdefs.h. */
4194 rm -f conftest.o conftest.obj
4195 if { { ac_try
="$ac_compile"
4197 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4198 *) ac_try_echo=$ac_try;;
4200 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4201 $as_echo "$ac_try_echo"; } >&5
4202 (eval "$ac_compile") 2>&5
4204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4205 test $ac_status = 0; }; then :
4206 for ac_file in conftest.o conftest.obj conftest.*; do
4207 test -f "$ac_file" || continue;
4209 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4210 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4215 $as_echo "$as_me: failed program was:" >&5
4216 sed 's/^/| /' conftest.$ac_ext >&5
4218 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4220 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4221 See \
`config.log' for more details" "$LINENO" 5; }
4223 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4226 $as_echo "$ac_cv_objext" >&6; }
4227 OBJEXT=$ac_cv_objext
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4230 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4231 if ${ac_cv_c_compiler_gnu+:} false; then :
4232 $as_echo_n "(cached) " >&6
4234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4235 /* end confdefs.h. */
4248 if ac_fn_c_try_compile "$LINENO"; then :
4253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4254 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4258 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4259 if test $ac_compiler_gnu = yes; then
4264 ac_test_CFLAGS=${CFLAGS+set}
4265 ac_save_CFLAGS=$CFLAGS
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4267 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4268 if ${ac_cv_prog_cc_g+:} false; then :
4269 $as_echo_n "(cached) " >&6
4271 ac_save_c_werror_flag=$ac_c_werror_flag
4272 ac_c_werror_flag=yes
4275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4276 /* end confdefs.h. */
4286 if ac_fn_c_try_compile "$LINENO"; then :
4290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4291 /* end confdefs.h. */
4301 if ac_fn_c_try_compile "$LINENO"; then :
4304 ac_c_werror_flag=$ac_save_c_werror_flag
4306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4307 /* end confdefs.h. */
4317 if ac_fn_c_try_compile "$LINENO"; then :
4320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4325 ac_c_werror_flag=$ac_save_c_werror_flag
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4328 $as_echo "$ac_cv_prog_cc_g" >&6; }
4329 if test "$ac_test_CFLAGS" = set; then
4330 CFLAGS=$ac_save_CFLAGS
4331 elif test $ac_cv_prog_cc_g = yes; then
4332 if test "$GCC" = yes; then
4338 if test "$GCC" = yes; then
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4345 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4346 if ${ac_cv_prog_cc_c89+:} false; then :
4347 $as_echo_n "(cached) " >&6
4349 ac_cv_prog_cc_c89=no
4351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352 /* end confdefs.h. */
4356 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4357 struct buf { int x; };
4358 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4359 static char *e (p, i)
4365 static char *f (char * (*g) (char **, int), char **p, ...)
4370 s = g (p, va_arg (v,int));
4375 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4376 function prototypes and stuff, but not '\xHH' hex character constants.
4377 These don't provoke an error unfortunately, instead are silently treated
4378 as 'x'. The following induces an error, until -std is added to get
4379 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4380 array size at least. It's necessary to write '\x00'==0 to get something
4381 that's true only with -std. */
4382 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4384 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4385 inside strings and character constants. */
4387 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4389 int test (int i, double x);
4390 struct s1 {int (*f) (int a);};
4391 struct s2 {int (*f) (double a);};
4392 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4398 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4403 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4404 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4406 CC="$ac_save_CC $ac_arg"
4407 if ac_fn_c_try_compile "$LINENO"; then :
4408 ac_cv_prog_cc_c89=$ac_arg
4410 rm -f core conftest.err conftest.$ac_objext
4411 test "x$ac_cv_prog_cc_c89" != "xno" && break
4413 rm -f conftest.$ac_ext
4418 case "x$ac_cv_prog_cc_c89" in
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4421 $as_echo "none needed" >&6; } ;;
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4424 $as_echo "unsupported" >&6; } ;;
4426 CC="$CC $ac_cv_prog_cc_c89"
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4428 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4430 if test "x$ac_cv_prog_cc_c89" != xno; then :
4435 ac_cpp='$CPP $CPPFLAGS'
4436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4441 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4442 if ${ac_cv_prog_cc_c99+:} false; then :
4443 $as_echo_n "(cached) " >&6
4445 ac_cv_prog_cc_c99=no
4447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4448 /* end confdefs.h. */
4450 #include <stdbool.h>
4455 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4456 #define debug(...) fprintf (stderr, __VA_ARGS__)
4457 #define showlist(...) puts (#__VA_ARGS__)
4458 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4460 test_varargs_macros (void)
4465 debug ("X = %d\n", x);
4466 showlist (The first, second, and third items.);
4467 report (x>y, "x is %d but y is %d", x, y);
4470 // Check long long types.
4471 #define BIG64 18446744073709551615ull
4472 #define BIG32 4294967295ul
4473 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4475 your preprocessor is broken;
4479 your preprocessor is broken;
4481 static long long int bignum = -9223372036854775807LL;
4482 static unsigned long long int ubignum = BIG64;
4484 struct incomplete_array
4492 const wchar_t *name;
4496 typedef const char *ccp;
4499 test_restrict (ccp restrict text)
4501 // See if C++-style comments work.
4502 // Iterate through items via the restricted pointer.
4503 // Also check for declarations in for loops.
4504 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4509 // Check varargs and va_copy.
4511 test_varargs (const char *format, ...)
4514 va_start (args, format);
4516 va_copy (args_copy, args);
4527 str = va_arg (args_copy, const char *);
4530 number = va_arg (args_copy, int);
4533 fnumber = va_arg (args_copy, double);
4548 _Bool success = false;
4551 if (test_restrict ("String literal") == 0)
4553 char *restrict newvar = "Another string";
4556 test_varargs ("s, d' f .", "string", 65, 34.234);
4557 test_varargs_macros ();
4559 // Check flexible array members.
4560 struct incomplete_array *ia =
4561 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4563 for (int i = 0; i < ia->datasize; ++i)
4564 ia->data[i] = i * 1.234;
4566 // Check named initializers.
4567 struct named_init ni = {
4569 .name = L"Test wide string",
4570 .average = 543.34343,
4575 int dynamic_array[ni.number];
4576 dynamic_array[ni.number - 1] = 543;
4578 // work around unused variable warnings
4579 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4580 || dynamic_array[ni.number - 1] != 543);
4586 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4588 CC="$ac_save_CC $ac_arg"
4589 if ac_fn_c_try_compile "$LINENO"; then :
4590 ac_cv_prog_cc_c99=$ac_arg
4592 rm -f core conftest.err conftest.$ac_objext
4593 test "x$ac_cv_prog_cc_c99" != "xno" && break
4595 rm -f conftest.$ac_ext
4600 case "x$ac_cv_prog_cc_c99" in
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4603 $as_echo "none needed" >&6; } ;;
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4606 $as_echo "unsupported" >&6; } ;;
4608 CC="$CC $ac_cv_prog_cc_c99"
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4610 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4612 if test "x$ac_cv_prog_cc_c99" != xno; then :
4618 # Error out if the compiler does not support C99, as the codebase
4620 if test "$ac_cv_prog_cc_c99" = no; then
4621 as_fn_error $? "C compiler \"$CC\" does not support C99" "$LINENO" 5
4625 ac_cpp='$CXXCPP $CPPFLAGS'
4626 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4627 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4628 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4629 if test -z "$CXX"; then
4630 if test -n "$CCC"; then
4633 if test -n "$ac_tool_prefix"; then
4634 for ac_prog in $pgac_cxx_list
4636 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4637 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4639 $as_echo_n "checking for $ac_word... " >&6; }
4640 if ${ac_cv_prog_CXX+:} false; then :
4641 $as_echo_n "(cached) " >&6
4643 if test -n "$CXX"; then
4644 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650 test -z "$as_dir" && as_dir=.
4651 for ac_exec_ext in '' $ac_executable_extensions; do
4652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4653 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4664 if test -n "$CXX"; then
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4666 $as_echo "$CXX" >&6; }
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4669 $as_echo "no" >&6; }
4673 test -n "$CXX" && break
4676 if test -z "$CXX"; then
4678 for ac_prog in $pgac_cxx_list
4680 # Extract the first word of "$ac_prog", so it can be a program name with args.
4681 set dummy $ac_prog; ac_word=$2
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4683 $as_echo_n "checking for $ac_word... " >&6; }
4684 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4685 $as_echo_n "(cached) " >&6
4687 if test -n "$ac_ct_CXX"; then
4688 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694 test -z "$as_dir" && as_dir=.
4695 for ac_exec_ext in '' $ac_executable_extensions; do
4696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4697 ac_cv_prog_ac_ct_CXX="$ac_prog"
4698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4707 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4708 if test -n "$ac_ct_CXX"; then
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4710 $as_echo "$ac_ct_CXX" >&6; }
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4713 $as_echo "no" >&6; }
4717 test -n "$ac_ct_CXX" && break
4720 if test "x$ac_ct_CXX" = x; then
4723 case $cross_compiling:$ac_tool_warned in
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4727 ac_tool_warned=yes ;;
4735 # Provide some information about the compiler.
4736 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4739 for ac_option in --version -v -V -qversion; do
4740 { { ac_try="$ac_compiler $ac_option >&5"
4742 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4743 *) ac_try_echo
=$ac_try;;
4745 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4746 $as_echo "$ac_try_echo"; } >&5
4747 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4749 if test -s conftest.err
; then
4751 ... rest of stderr output deleted ...
4752 10q' conftest.err
>conftest.er1
4753 cat conftest.er1
>&5
4755 rm -f conftest.er1 conftest.err
4756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4757 test $ac_status = 0; }
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4761 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4762 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
4763 $as_echo_n "(cached) " >&6
4765 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4766 /* end confdefs.h. */
4779 if ac_fn_cxx_try_compile
"$LINENO"; then :
4784 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4785 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4789 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4790 if test $ac_compiler_gnu = yes; then
4795 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4796 ac_save_CXXFLAGS
=$CXXFLAGS
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4798 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4799 if ${ac_cv_prog_cxx_g+:} false
; then :
4800 $as_echo_n "(cached) " >&6
4802 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4803 ac_cxx_werror_flag
=yes
4806 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4807 /* end confdefs.h. */
4817 if ac_fn_cxx_try_compile
"$LINENO"; then :
4818 ac_cv_prog_cxx_g
=yes
4821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4822 /* end confdefs.h. */
4832 if ac_fn_cxx_try_compile
"$LINENO"; then :
4835 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4837 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4838 /* end confdefs.h. */
4848 if ac_fn_cxx_try_compile
"$LINENO"; then :
4849 ac_cv_prog_cxx_g
=yes
4851 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4853 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4855 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4856 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4859 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4860 if test "$ac_test_CXXFLAGS" = set; then
4861 CXXFLAGS
=$ac_save_CXXFLAGS
4862 elif test $ac_cv_prog_cxx_g = yes; then
4863 if test "$GXX" = yes; then
4869 if test "$GXX" = yes; then
4876 ac_cpp
='$CPP $CPPFLAGS'
4877 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4878 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4879 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4882 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
4883 # but has idiosyncrasies of its own. We assume icc will define
4884 # __INTEL_COMPILER regardless of CFLAGS.
4886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4887 /* end confdefs.h. */
4892 #ifndef __INTEL_COMPILER
4899 if ac_fn_c_try_compile
"$LINENO"; then :
4904 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4906 # Check if it's Sun Studio compiler. We assume that
4907 # __SUNPRO_C will be defined for Sun Studio compilers
4908 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4909 /* end confdefs.h. */
4921 if ac_fn_c_try_compile
"$LINENO"; then :
4926 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4934 # Checked early because subsequent tests depend on it.
4938 # Check whether --with-llvm was given.
4939 if test "${with_llvm+set}" = set; then :
4944 $as_echo "#define USE_LLVM 1" >>confdefs.h
4951 as_fn_error $?
"no argument expected for --with-llvm option" "$LINENO" 5
4962 for ac_prog
in gawk mawk nawk
awk
4964 # Extract the first word of "$ac_prog", so it can be a program name with args.
4965 set dummy
$ac_prog; ac_word
=$2
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4967 $as_echo_n "checking for $ac_word... " >&6; }
4968 if ${ac_cv_prog_AWK+:} false
; then :
4969 $as_echo_n "(cached) " >&6
4971 if test -n "$AWK"; then
4972 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4974 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4978 test -z "$as_dir" && as_dir
=.
4979 for ac_exec_ext
in '' $ac_executable_extensions; do
4980 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4981 ac_cv_prog_AWK
="$ac_prog"
4982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4992 if test -n "$AWK"; then
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4994 $as_echo "$AWK" >&6; }
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4997 $as_echo "no" >&6; }
5001 test -n "$AWK" && break
5004 if test "$with_llvm" = yes; then :
5010 if test -z "$LLVM_CONFIG"; then
5011 for ac_prog
in llvm-config
5013 # Extract the first word of "$ac_prog", so it can be a program name with args.
5014 set dummy
$ac_prog; ac_word
=$2
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5016 $as_echo_n "checking for $ac_word... " >&6; }
5017 if ${ac_cv_path_LLVM_CONFIG+:} false
; then :
5018 $as_echo_n "(cached) " >&6
5020 case $LLVM_CONFIG in
5022 ac_cv_path_LLVM_CONFIG
="$LLVM_CONFIG" # Let the user override the test with a path.
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_path_LLVM_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5043 LLVM_CONFIG
=$ac_cv_path_LLVM_CONFIG
5044 if test -n "$LLVM_CONFIG"; then
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5
5046 $as_echo "$LLVM_CONFIG" >&6; }
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5049 $as_echo "no" >&6; }
5053 test -n "$LLVM_CONFIG" && break
5057 # Report the value of LLVM_CONFIG in configure's output in all cases.
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LLVM_CONFIG" >&5
5059 $as_echo_n "checking for LLVM_CONFIG... " >&6; }
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5
5061 $as_echo "$LLVM_CONFIG" >&6; }
5065 # no point continuing if llvm wasn't found
5066 if test -z "$LLVM_CONFIG"; then
5067 as_fn_error $?
"llvm-config not found, but required when compiling --with-llvm, specify with LLVM_CONFIG=" "$LINENO" 5
5069 # check if detected $LLVM_CONFIG is executable
5070 pgac_llvm_version
="$($LLVM_CONFIG --version 2> /dev/null || echo no)"
5071 if test "x$pgac_llvm_version" = "xno"; then
5072 as_fn_error $?
"$LLVM_CONFIG does not work" "$LINENO" 5
5074 # and whether the version is supported
5075 if echo $pgac_llvm_version |
$AWK -F '.' '{ if ($1 >= 14) exit 1; else exit 0;}';then
5076 as_fn_error $?
"$LLVM_CONFIG version is $pgac_llvm_version but at least 14 is required" "$LINENO" 5
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: using llvm $pgac_llvm_version" >&5
5079 $as_echo "$as_me: using llvm $pgac_llvm_version" >&6;}
5081 # need clang to create some bitcode files
5083 if test -z "$CLANG"; then
5084 for ac_prog
in clang
5086 # Extract the first word of "$ac_prog", so it can be a program name with args.
5087 set dummy
$ac_prog; ac_word
=$2
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5089 $as_echo_n "checking for $ac_word... " >&6; }
5090 if ${ac_cv_path_CLANG+:} false
; then :
5091 $as_echo_n "(cached) " >&6
5095 ac_cv_path_CLANG
="$CLANG" # Let the user override the test with a path.
5098 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5102 test -z "$as_dir" && as_dir
=.
5103 for ac_exec_ext
in '' $ac_executable_extensions; do
5104 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5105 ac_cv_path_CLANG
="$as_dir/$ac_word$ac_exec_ext"
5106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5116 CLANG
=$ac_cv_path_CLANG
5117 if test -n "$CLANG"; then
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG" >&5
5119 $as_echo "$CLANG" >&6; }
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5122 $as_echo "no" >&6; }
5126 test -n "$CLANG" && break
5130 # Report the value of CLANG in configure's output in all cases.
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CLANG" >&5
5132 $as_echo_n "checking for CLANG... " >&6; }
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG" >&5
5134 $as_echo "$CLANG" >&6; }
5137 if test -z "$CLANG"; then
5138 as_fn_error $?
"clang not found, but required when compiling --with-llvm, specify with CLANG=" "$LINENO" 5
5140 # make sure clang is executable
5141 if test "x$($CLANG --version 2> /dev/null || echo no)" = "xno"; then
5142 as_fn_error $?
"$CLANG does not work" "$LINENO" 5
5144 # Could check clang version, but it doesn't seem that
5145 # important. Systems with a new enough LLVM version are usually
5146 # going to have a decent clang version too. It's also not entirely
5147 # clear what the minimum version is.
5149 # Collect compiler flags necessary to build the LLVM dependent
5151 for pgac_option
in `$LLVM_CONFIG --cppflags`; do
5152 case $pgac_option in
5153 -I*|
-D*) LLVM_CPPFLAGS
="$pgac_option $LLVM_CPPFLAGS";;
5157 for pgac_option
in `$LLVM_CONFIG --ldflags`; do
5158 case $pgac_option in
5159 -L*) LDFLAGS
="$LDFLAGS $pgac_option";;
5163 # ABI influencing options, standard influencing options
5164 for pgac_option
in `$LLVM_CONFIG --cxxflags`; do
5165 case $pgac_option in
5166 -fno-rtti*) LLVM_CXXFLAGS
="$LLVM_CXXFLAGS $pgac_option";;
5167 -std=*) LLVM_CXXFLAGS
="$LLVM_CXXFLAGS $pgac_option";;
5171 # Look for components we're interested in, collect necessary
5172 # libs. As some components are optional, we can't just list all of
5173 # them as it'd raise an error.
5175 for pgac_component
in `$LLVM_CONFIG --components`; do
5176 case $pgac_component in
5177 engine
) pgac_components
="$pgac_components $pgac_component";;
5178 debuginfodwarf
) pgac_components
="$pgac_components $pgac_component";;
5179 orcjit
) pgac_components
="$pgac_components $pgac_component";;
5180 passes
) pgac_components
="$pgac_components $pgac_component";;
5181 native
) pgac_components
="$pgac_components $pgac_component";;
5182 perfjitevents
) pgac_components
="$pgac_components $pgac_component";;
5186 # And then get the libraries that need to be linked in for the
5187 # selected components. They're large libraries, we only want to
5188 # link them into the LLVM using shared library.
5189 for pgac_option
in `$LLVM_CONFIG --libs --system-libs $pgac_components`; do
5190 case $pgac_option in
5191 -l*) LLVM_LIBS
="$LLVM_LIBS $pgac_option";;
5195 LLVM_BINPATH
=`$LLVM_CONFIG --bindir`
5214 .
"$srcdir/src/template/$template" ||
exit
5216 # C[XX]FLAGS are selected so:
5217 # If the user specifies something in the environment, that is used.
5218 # else: If the template file set something, that is used.
5219 # else: If coverage was enabled, don't set anything.
5220 # else: If the compiler is GCC, then we use -O2.
5221 # else: If the compiler is something else, then we use -O, unless debugging.
5223 if test "$ac_env_CFLAGS_set" = set; then
5224 CFLAGS
=$ac_env_CFLAGS_value
5225 elif test "${CFLAGS+set}" = set; then
5226 : # (keep what template set)
5227 elif test "$enable_coverage" = yes; then
5228 : # no optimization by default
5229 elif test "$GCC" = yes; then
5232 # if the user selected debug mode, don't use -O
5233 if test "$enable_debug" != yes; then
5238 if test "$ac_env_CXXFLAGS_set" = set; then
5239 CXXFLAGS
=$ac_env_CXXFLAGS_value
5240 elif test "${CXXFLAGS+set}" = set; then
5241 : # (keep what template set)
5242 elif test "$enable_coverage" = yes; then
5243 : # no optimization by default
5244 elif test "$GCC" = yes; then
5247 # if the user selected debug mode, don't use -O
5248 if test "$enable_debug" != yes; then
5253 # When generating bitcode (for inlining) we always want to use -O2
5254 # even when --enable-debug is specified. The bitcode is not going to
5255 # be used for line-by-line debugging, and JIT inlining doesn't work
5256 # without at least -O1 (otherwise clang will emit 'noinline'
5257 # attributes everywhere), which is bad for testing. Still allow the
5258 # environment to override if done explicitly.
5259 if test "$ac_env_BITCODE_CFLAGS_set" = set; then
5260 BITCODE_CFLAGS
=$ac_env_BITCODE_CFLAGS_value
5262 BITCODE_CFLAGS
="-O2 $BITCODE_CFLAGS"
5264 if test "$ac_env_BITCODE_CXXFLAGS_set" = set; then
5265 BITCODE_CXXFLAGS
=$ac_env_BITCODE_CXXFLAGS_value
5267 BITCODE_CXXFLAGS
="-O2 $BITCODE_CXXFLAGS"
5270 # C[XX]FLAGS we determined above will be added back at the end
5273 user_CXXFLAGS
=$CXXFLAGS
5275 user_BITCODE_CFLAGS
=$BITCODE_CFLAGS
5277 user_BITCODE_CXXFLAGS
=$BITCODE_CXXFLAGS
5280 # set CFLAGS_UNROLL_LOOPS and CFLAGS_VECTORIZE from the environment, if present
5281 if test "$ac_env_CFLAGS_UNROLL_LOOPS_set" = set; then
5282 CFLAGS_UNROLL_LOOPS
=$ac_env_CFLAGS_UNROLL_LOOPS_value
5284 if test "$ac_env_CFLAGS_VECTORIZE_set" = set; then
5285 CFLAGS_VECTORIZE
=$ac_env_CFLAGS_VECTORIZE_value
5288 # Some versions of GCC support some additional useful warning flags.
5289 # Check whether they are supported, and add them to CFLAGS if so.
5290 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
5291 # but has its own. Also check other compiler-specific flags here.
5293 if test "$GCC" = yes -a "$ICC" = no
; then
5294 CFLAGS
="-Wall -Wmissing-prototypes -Wpointer-arith"
5295 CXXFLAGS
="-Wall -Wpointer-arith"
5296 # These work in some but not all gcc versions
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wdeclaration-after-statement, for CFLAGS" >&5
5300 $as_echo_n "checking whether ${CC} supports -Wdeclaration-after-statement, for CFLAGS... " >&6; }
5301 if ${pgac_cv_prog_CC_cflags__Wdeclaration_after_statement+:} false
; then :
5302 $as_echo_n "(cached) " >&6
5304 pgac_save_CFLAGS
=$CFLAGS
5307 CFLAGS
="${CFLAGS} -Wdeclaration-after-statement"
5308 ac_save_c_werror_flag
=$ac_c_werror_flag
5309 ac_c_werror_flag
=yes
5310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5311 /* end confdefs.h. */
5321 if ac_fn_c_try_compile
"$LINENO"; then :
5322 pgac_cv_prog_CC_cflags__Wdeclaration_after_statement
=yes
5324 pgac_cv_prog_CC_cflags__Wdeclaration_after_statement
=no
5326 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5327 ac_c_werror_flag
=$ac_save_c_werror_flag
5328 CFLAGS
="$pgac_save_CFLAGS"
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wdeclaration_after_statement" >&5
5332 $as_echo "$pgac_cv_prog_CC_cflags__Wdeclaration_after_statement" >&6; }
5333 if test x
"$pgac_cv_prog_CC_cflags__Wdeclaration_after_statement" = x
"yes"; then
5334 CFLAGS
="${CFLAGS} -Wdeclaration-after-statement"
5338 # -Wdeclaration-after-statement isn't applicable for C++. Specific C files
5339 # disable it, so AC_SUBST the negative form.
5340 PERMIT_DECLARATION_AFTER_STATEMENT
=
5341 if test x
"$save_CFLAGS" != x
"$CFLAGS"; then
5342 PERMIT_DECLARATION_AFTER_STATEMENT
=-Wno-declaration-after-statement
5345 # Really don't want VLAs to be used in our dialect of C
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Werror=vla, for CFLAGS" >&5
5348 $as_echo_n "checking whether ${CC} supports -Werror=vla, for CFLAGS... " >&6; }
5349 if ${pgac_cv_prog_CC_cflags__Werror_vla+:} false
; then :
5350 $as_echo_n "(cached) " >&6
5352 pgac_save_CFLAGS
=$CFLAGS
5355 CFLAGS
="${CFLAGS} -Werror=vla"
5356 ac_save_c_werror_flag
=$ac_c_werror_flag
5357 ac_c_werror_flag
=yes
5358 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5359 /* end confdefs.h. */
5369 if ac_fn_c_try_compile
"$LINENO"; then :
5370 pgac_cv_prog_CC_cflags__Werror_vla
=yes
5372 pgac_cv_prog_CC_cflags__Werror_vla
=no
5374 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5375 ac_c_werror_flag
=$ac_save_c_werror_flag
5376 CFLAGS
="$pgac_save_CFLAGS"
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Werror_vla" >&5
5380 $as_echo "$pgac_cv_prog_CC_cflags__Werror_vla" >&6; }
5381 if test x
"$pgac_cv_prog_CC_cflags__Werror_vla" = x
"yes"; then
5382 CFLAGS
="${CFLAGS} -Werror=vla"
5386 # On macOS, complain about usage of symbols newer than the deployment target
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Werror=unguarded-availability-new, for CFLAGS" >&5
5389 $as_echo_n "checking whether ${CC} supports -Werror=unguarded-availability-new, for CFLAGS... " >&6; }
5390 if ${pgac_cv_prog_CC_cflags__Werror_unguarded_availability_new+:} false
; then :
5391 $as_echo_n "(cached) " >&6
5393 pgac_save_CFLAGS
=$CFLAGS
5396 CFLAGS
="${CFLAGS} -Werror=unguarded-availability-new"
5397 ac_save_c_werror_flag
=$ac_c_werror_flag
5398 ac_c_werror_flag
=yes
5399 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5400 /* end confdefs.h. */
5410 if ac_fn_c_try_compile
"$LINENO"; then :
5411 pgac_cv_prog_CC_cflags__Werror_unguarded_availability_new
=yes
5413 pgac_cv_prog_CC_cflags__Werror_unguarded_availability_new
=no
5415 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5416 ac_c_werror_flag
=$ac_save_c_werror_flag
5417 CFLAGS
="$pgac_save_CFLAGS"
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Werror_unguarded_availability_new" >&5
5421 $as_echo "$pgac_cv_prog_CC_cflags__Werror_unguarded_availability_new" >&6; }
5422 if test x
"$pgac_cv_prog_CC_cflags__Werror_unguarded_availability_new" = x
"yes"; then
5423 CFLAGS
="${CFLAGS} -Werror=unguarded-availability-new"
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Werror=unguarded-availability-new, for CXXFLAGS" >&5
5428 $as_echo_n "checking whether ${CXX} supports -Werror=unguarded-availability-new, for CXXFLAGS... " >&6; }
5429 if ${pgac_cv_prog_CXX_cxxflags__Werror_unguarded_availability_new+:} false
; then :
5430 $as_echo_n "(cached) " >&6
5432 pgac_save_CXXFLAGS
=$CXXFLAGS
5435 CXXFLAGS
="${CXXFLAGS} -Werror=unguarded-availability-new"
5436 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5437 ac_cxx_werror_flag
=yes
5439 ac_cpp
='$CXXCPP $CPPFLAGS'
5440 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5441 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5442 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5445 /* end confdefs.h. */
5455 if ac_fn_cxx_try_compile
"$LINENO"; then :
5456 pgac_cv_prog_CXX_cxxflags__Werror_unguarded_availability_new
=yes
5458 pgac_cv_prog_CXX_cxxflags__Werror_unguarded_availability_new
=no
5460 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5462 ac_cpp
='$CPP $CPPFLAGS'
5463 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5464 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5465 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5467 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5468 CXXFLAGS
="$pgac_save_CXXFLAGS"
5469 CXX
="$pgac_save_CXX"
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Werror_unguarded_availability_new" >&5
5472 $as_echo "$pgac_cv_prog_CXX_cxxflags__Werror_unguarded_availability_new" >&6; }
5473 if test x
"$pgac_cv_prog_CXX_cxxflags__Werror_unguarded_availability_new" = x
"yes"; then
5474 CXXFLAGS
="${CXXFLAGS} -Werror=unguarded-availability-new"
5478 # -Wvla is not applicable for C++
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wendif-labels, for CFLAGS" >&5
5481 $as_echo_n "checking whether ${CC} supports -Wendif-labels, for CFLAGS... " >&6; }
5482 if ${pgac_cv_prog_CC_cflags__Wendif_labels+:} false
; then :
5483 $as_echo_n "(cached) " >&6
5485 pgac_save_CFLAGS
=$CFLAGS
5488 CFLAGS
="${CFLAGS} -Wendif-labels"
5489 ac_save_c_werror_flag
=$ac_c_werror_flag
5490 ac_c_werror_flag
=yes
5491 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5492 /* end confdefs.h. */
5502 if ac_fn_c_try_compile
"$LINENO"; then :
5503 pgac_cv_prog_CC_cflags__Wendif_labels
=yes
5505 pgac_cv_prog_CC_cflags__Wendif_labels
=no
5507 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5508 ac_c_werror_flag
=$ac_save_c_werror_flag
5509 CFLAGS
="$pgac_save_CFLAGS"
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wendif_labels" >&5
5513 $as_echo "$pgac_cv_prog_CC_cflags__Wendif_labels" >&6; }
5514 if test x
"$pgac_cv_prog_CC_cflags__Wendif_labels" = x
"yes"; then
5515 CFLAGS
="${CFLAGS} -Wendif-labels"
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wendif-labels, for CXXFLAGS" >&5
5520 $as_echo_n "checking whether ${CXX} supports -Wendif-labels, for CXXFLAGS... " >&6; }
5521 if ${pgac_cv_prog_CXX_cxxflags__Wendif_labels+:} false
; then :
5522 $as_echo_n "(cached) " >&6
5524 pgac_save_CXXFLAGS
=$CXXFLAGS
5527 CXXFLAGS
="${CXXFLAGS} -Wendif-labels"
5528 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5529 ac_cxx_werror_flag
=yes
5531 ac_cpp
='$CXXCPP $CPPFLAGS'
5532 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5533 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5534 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5536 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5537 /* end confdefs.h. */
5547 if ac_fn_cxx_try_compile
"$LINENO"; then :
5548 pgac_cv_prog_CXX_cxxflags__Wendif_labels
=yes
5550 pgac_cv_prog_CXX_cxxflags__Wendif_labels
=no
5552 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5554 ac_cpp
='$CPP $CPPFLAGS'
5555 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5556 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5557 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5559 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5560 CXXFLAGS
="$pgac_save_CXXFLAGS"
5561 CXX
="$pgac_save_CXX"
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wendif_labels" >&5
5564 $as_echo "$pgac_cv_prog_CXX_cxxflags__Wendif_labels" >&6; }
5565 if test x
"$pgac_cv_prog_CXX_cxxflags__Wendif_labels" = x
"yes"; then
5566 CXXFLAGS
="${CXXFLAGS} -Wendif-labels"
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wmissing-format-attribute, for CFLAGS" >&5
5572 $as_echo_n "checking whether ${CC} supports -Wmissing-format-attribute, for CFLAGS... " >&6; }
5573 if ${pgac_cv_prog_CC_cflags__Wmissing_format_attribute+:} false
; then :
5574 $as_echo_n "(cached) " >&6
5576 pgac_save_CFLAGS
=$CFLAGS
5579 CFLAGS
="${CFLAGS} -Wmissing-format-attribute"
5580 ac_save_c_werror_flag
=$ac_c_werror_flag
5581 ac_c_werror_flag
=yes
5582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5583 /* end confdefs.h. */
5593 if ac_fn_c_try_compile
"$LINENO"; then :
5594 pgac_cv_prog_CC_cflags__Wmissing_format_attribute
=yes
5596 pgac_cv_prog_CC_cflags__Wmissing_format_attribute
=no
5598 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5599 ac_c_werror_flag
=$ac_save_c_werror_flag
5600 CFLAGS
="$pgac_save_CFLAGS"
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wmissing_format_attribute" >&5
5604 $as_echo "$pgac_cv_prog_CC_cflags__Wmissing_format_attribute" >&6; }
5605 if test x
"$pgac_cv_prog_CC_cflags__Wmissing_format_attribute" = x
"yes"; then
5606 CFLAGS
="${CFLAGS} -Wmissing-format-attribute"
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wmissing-format-attribute, for CXXFLAGS" >&5
5611 $as_echo_n "checking whether ${CXX} supports -Wmissing-format-attribute, for CXXFLAGS... " >&6; }
5612 if ${pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute+:} false
; then :
5613 $as_echo_n "(cached) " >&6
5615 pgac_save_CXXFLAGS
=$CXXFLAGS
5618 CXXFLAGS
="${CXXFLAGS} -Wmissing-format-attribute"
5619 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5620 ac_cxx_werror_flag
=yes
5622 ac_cpp
='$CXXCPP $CPPFLAGS'
5623 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5624 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5625 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5628 /* end confdefs.h. */
5638 if ac_fn_cxx_try_compile
"$LINENO"; then :
5639 pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute
=yes
5641 pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute
=no
5643 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5645 ac_cpp
='$CPP $CPPFLAGS'
5646 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5647 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5648 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5650 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5651 CXXFLAGS
="$pgac_save_CXXFLAGS"
5652 CXX
="$pgac_save_CXX"
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute" >&5
5655 $as_echo "$pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute" >&6; }
5656 if test x
"$pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute" = x
"yes"; then
5657 CXXFLAGS
="${CXXFLAGS} -Wmissing-format-attribute"
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wimplicit-fallthrough=3, for CFLAGS" >&5
5663 $as_echo_n "checking whether ${CC} supports -Wimplicit-fallthrough=3, for CFLAGS... " >&6; }
5664 if ${pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_3+:} false
; then :
5665 $as_echo_n "(cached) " >&6
5667 pgac_save_CFLAGS
=$CFLAGS
5670 CFLAGS
="${CFLAGS} -Wimplicit-fallthrough=3"
5671 ac_save_c_werror_flag
=$ac_c_werror_flag
5672 ac_c_werror_flag
=yes
5673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5674 /* end confdefs.h. */
5684 if ac_fn_c_try_compile
"$LINENO"; then :
5685 pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_3
=yes
5687 pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_3
=no
5689 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5690 ac_c_werror_flag
=$ac_save_c_werror_flag
5691 CFLAGS
="$pgac_save_CFLAGS"
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_3" >&5
5695 $as_echo "$pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_3" >&6; }
5696 if test x
"$pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_3" = x
"yes"; then
5697 CFLAGS
="${CFLAGS} -Wimplicit-fallthrough=3"
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wimplicit-fallthrough=3, for CXXFLAGS" >&5
5702 $as_echo_n "checking whether ${CXX} supports -Wimplicit-fallthrough=3, for CXXFLAGS... " >&6; }
5703 if ${pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_3+:} false
; then :
5704 $as_echo_n "(cached) " >&6
5706 pgac_save_CXXFLAGS
=$CXXFLAGS
5709 CXXFLAGS
="${CXXFLAGS} -Wimplicit-fallthrough=3"
5710 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5711 ac_cxx_werror_flag
=yes
5713 ac_cpp
='$CXXCPP $CPPFLAGS'
5714 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5715 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5716 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5719 /* end confdefs.h. */
5729 if ac_fn_cxx_try_compile
"$LINENO"; then :
5730 pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_3
=yes
5732 pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_3
=no
5734 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5736 ac_cpp
='$CPP $CPPFLAGS'
5737 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5738 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5739 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5741 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5742 CXXFLAGS
="$pgac_save_CXXFLAGS"
5743 CXX
="$pgac_save_CXX"
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_3" >&5
5746 $as_echo "$pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_3" >&6; }
5747 if test x
"$pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_3" = x
"yes"; then
5748 CXXFLAGS
="${CXXFLAGS} -Wimplicit-fallthrough=3"
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wcast-function-type, for CFLAGS" >&5
5754 $as_echo_n "checking whether ${CC} supports -Wcast-function-type, for CFLAGS... " >&6; }
5755 if ${pgac_cv_prog_CC_cflags__Wcast_function_type+:} false
; then :
5756 $as_echo_n "(cached) " >&6
5758 pgac_save_CFLAGS
=$CFLAGS
5761 CFLAGS
="${CFLAGS} -Wcast-function-type"
5762 ac_save_c_werror_flag
=$ac_c_werror_flag
5763 ac_c_werror_flag
=yes
5764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5765 /* end confdefs.h. */
5775 if ac_fn_c_try_compile
"$LINENO"; then :
5776 pgac_cv_prog_CC_cflags__Wcast_function_type
=yes
5778 pgac_cv_prog_CC_cflags__Wcast_function_type
=no
5780 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5781 ac_c_werror_flag
=$ac_save_c_werror_flag
5782 CFLAGS
="$pgac_save_CFLAGS"
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wcast_function_type" >&5
5786 $as_echo "$pgac_cv_prog_CC_cflags__Wcast_function_type" >&6; }
5787 if test x
"$pgac_cv_prog_CC_cflags__Wcast_function_type" = x
"yes"; then
5788 CFLAGS
="${CFLAGS} -Wcast-function-type"
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wcast-function-type, for CXXFLAGS" >&5
5793 $as_echo_n "checking whether ${CXX} supports -Wcast-function-type, for CXXFLAGS... " >&6; }
5794 if ${pgac_cv_prog_CXX_cxxflags__Wcast_function_type+:} false
; then :
5795 $as_echo_n "(cached) " >&6
5797 pgac_save_CXXFLAGS
=$CXXFLAGS
5800 CXXFLAGS
="${CXXFLAGS} -Wcast-function-type"
5801 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5802 ac_cxx_werror_flag
=yes
5804 ac_cpp
='$CXXCPP $CPPFLAGS'
5805 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5806 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5807 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5810 /* end confdefs.h. */
5820 if ac_fn_cxx_try_compile
"$LINENO"; then :
5821 pgac_cv_prog_CXX_cxxflags__Wcast_function_type
=yes
5823 pgac_cv_prog_CXX_cxxflags__Wcast_function_type
=no
5825 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5827 ac_cpp
='$CPP $CPPFLAGS'
5828 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5829 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5830 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5832 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5833 CXXFLAGS
="$pgac_save_CXXFLAGS"
5834 CXX
="$pgac_save_CXX"
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wcast_function_type" >&5
5837 $as_echo "$pgac_cv_prog_CXX_cxxflags__Wcast_function_type" >&6; }
5838 if test x
"$pgac_cv_prog_CXX_cxxflags__Wcast_function_type" = x
"yes"; then
5839 CXXFLAGS
="${CXXFLAGS} -Wcast-function-type"
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wshadow=compatible-local, for CFLAGS" >&5
5845 $as_echo_n "checking whether ${CC} supports -Wshadow=compatible-local, for CFLAGS... " >&6; }
5846 if ${pgac_cv_prog_CC_cflags__Wshadow_compatible_local+:} false
; then :
5847 $as_echo_n "(cached) " >&6
5849 pgac_save_CFLAGS
=$CFLAGS
5852 CFLAGS
="${CFLAGS} -Wshadow=compatible-local"
5853 ac_save_c_werror_flag
=$ac_c_werror_flag
5854 ac_c_werror_flag
=yes
5855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5856 /* end confdefs.h. */
5866 if ac_fn_c_try_compile
"$LINENO"; then :
5867 pgac_cv_prog_CC_cflags__Wshadow_compatible_local
=yes
5869 pgac_cv_prog_CC_cflags__Wshadow_compatible_local
=no
5871 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5872 ac_c_werror_flag
=$ac_save_c_werror_flag
5873 CFLAGS
="$pgac_save_CFLAGS"
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wshadow_compatible_local" >&5
5877 $as_echo "$pgac_cv_prog_CC_cflags__Wshadow_compatible_local" >&6; }
5878 if test x
"$pgac_cv_prog_CC_cflags__Wshadow_compatible_local" = x
"yes"; then
5879 CFLAGS
="${CFLAGS} -Wshadow=compatible-local"
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wshadow=compatible-local, for CXXFLAGS" >&5
5884 $as_echo_n "checking whether ${CXX} supports -Wshadow=compatible-local, for CXXFLAGS... " >&6; }
5885 if ${pgac_cv_prog_CXX_cxxflags__Wshadow_compatible_local+:} false
; then :
5886 $as_echo_n "(cached) " >&6
5888 pgac_save_CXXFLAGS
=$CXXFLAGS
5891 CXXFLAGS
="${CXXFLAGS} -Wshadow=compatible-local"
5892 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5893 ac_cxx_werror_flag
=yes
5895 ac_cpp
='$CXXCPP $CPPFLAGS'
5896 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5897 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5898 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5901 /* end confdefs.h. */
5911 if ac_fn_cxx_try_compile
"$LINENO"; then :
5912 pgac_cv_prog_CXX_cxxflags__Wshadow_compatible_local
=yes
5914 pgac_cv_prog_CXX_cxxflags__Wshadow_compatible_local
=no
5916 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5918 ac_cpp
='$CPP $CPPFLAGS'
5919 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5920 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5921 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5923 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5924 CXXFLAGS
="$pgac_save_CXXFLAGS"
5925 CXX
="$pgac_save_CXX"
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wshadow_compatible_local" >&5
5928 $as_echo "$pgac_cv_prog_CXX_cxxflags__Wshadow_compatible_local" >&6; }
5929 if test x
"$pgac_cv_prog_CXX_cxxflags__Wshadow_compatible_local" = x
"yes"; then
5930 CXXFLAGS
="${CXXFLAGS} -Wshadow=compatible-local"
5934 # This was included in -Wall/-Wformat in older GCC versions
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wformat-security, for CFLAGS" >&5
5937 $as_echo_n "checking whether ${CC} supports -Wformat-security, for CFLAGS... " >&6; }
5938 if ${pgac_cv_prog_CC_cflags__Wformat_security+:} false
; then :
5939 $as_echo_n "(cached) " >&6
5941 pgac_save_CFLAGS
=$CFLAGS
5944 CFLAGS
="${CFLAGS} -Wformat-security"
5945 ac_save_c_werror_flag
=$ac_c_werror_flag
5946 ac_c_werror_flag
=yes
5947 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5948 /* end confdefs.h. */
5958 if ac_fn_c_try_compile
"$LINENO"; then :
5959 pgac_cv_prog_CC_cflags__Wformat_security
=yes
5961 pgac_cv_prog_CC_cflags__Wformat_security
=no
5963 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5964 ac_c_werror_flag
=$ac_save_c_werror_flag
5965 CFLAGS
="$pgac_save_CFLAGS"
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wformat_security" >&5
5969 $as_echo "$pgac_cv_prog_CC_cflags__Wformat_security" >&6; }
5970 if test x
"$pgac_cv_prog_CC_cflags__Wformat_security" = x
"yes"; then
5971 CFLAGS
="${CFLAGS} -Wformat-security"
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wformat-security, for CXXFLAGS" >&5
5976 $as_echo_n "checking whether ${CXX} supports -Wformat-security, for CXXFLAGS... " >&6; }
5977 if ${pgac_cv_prog_CXX_cxxflags__Wformat_security+:} false
; then :
5978 $as_echo_n "(cached) " >&6
5980 pgac_save_CXXFLAGS
=$CXXFLAGS
5983 CXXFLAGS
="${CXXFLAGS} -Wformat-security"
5984 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5985 ac_cxx_werror_flag
=yes
5987 ac_cpp
='$CXXCPP $CPPFLAGS'
5988 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5989 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5990 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5992 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5993 /* end confdefs.h. */
6003 if ac_fn_cxx_try_compile
"$LINENO"; then :
6004 pgac_cv_prog_CXX_cxxflags__Wformat_security
=yes
6006 pgac_cv_prog_CXX_cxxflags__Wformat_security
=no
6008 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6010 ac_cpp
='$CPP $CPPFLAGS'
6011 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6012 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6013 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6015 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6016 CXXFLAGS
="$pgac_save_CXXFLAGS"
6017 CXX
="$pgac_save_CXX"
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wformat_security" >&5
6020 $as_echo "$pgac_cv_prog_CXX_cxxflags__Wformat_security" >&6; }
6021 if test x
"$pgac_cv_prog_CXX_cxxflags__Wformat_security" = x
"yes"; then
6022 CXXFLAGS
="${CXXFLAGS} -Wformat-security"
6026 # gcc 14+, clang for a while
6027 # (Supported in C++ by clang but not gcc. For consistency, omit in C++.)
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wmissing-variable-declarations, for CFLAGS" >&5
6031 $as_echo_n "checking whether ${CC} supports -Wmissing-variable-declarations, for CFLAGS... " >&6; }
6032 if ${pgac_cv_prog_CC_cflags__Wmissing_variable_declarations+:} false
; then :
6033 $as_echo_n "(cached) " >&6
6035 pgac_save_CFLAGS
=$CFLAGS
6038 CFLAGS
="${CFLAGS} -Wmissing-variable-declarations"
6039 ac_save_c_werror_flag
=$ac_c_werror_flag
6040 ac_c_werror_flag
=yes
6041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6042 /* end confdefs.h. */
6052 if ac_fn_c_try_compile
"$LINENO"; then :
6053 pgac_cv_prog_CC_cflags__Wmissing_variable_declarations
=yes
6055 pgac_cv_prog_CC_cflags__Wmissing_variable_declarations
=no
6057 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6058 ac_c_werror_flag
=$ac_save_c_werror_flag
6059 CFLAGS
="$pgac_save_CFLAGS"
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wmissing_variable_declarations" >&5
6063 $as_echo "$pgac_cv_prog_CC_cflags__Wmissing_variable_declarations" >&6; }
6064 if test x
"$pgac_cv_prog_CC_cflags__Wmissing_variable_declarations" = x
"yes"; then
6065 CFLAGS
="${CFLAGS} -Wmissing-variable-declarations"
6069 PERMIT_MISSING_VARIABLE_DECLARATIONS
=
6070 if test x
"$save_CFLAGS" != x
"$CFLAGS"; then
6071 PERMIT_MISSING_VARIABLE_DECLARATIONS
=-Wno-missing-variable-declarations
6074 # Disable strict-aliasing rules; needed for gcc 3.3+
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fno-strict-aliasing, for CFLAGS" >&5
6077 $as_echo_n "checking whether ${CC} supports -fno-strict-aliasing, for CFLAGS... " >&6; }
6078 if ${pgac_cv_prog_CC_cflags__fno_strict_aliasing+:} false
; then :
6079 $as_echo_n "(cached) " >&6
6081 pgac_save_CFLAGS
=$CFLAGS
6084 CFLAGS
="${CFLAGS} -fno-strict-aliasing"
6085 ac_save_c_werror_flag
=$ac_c_werror_flag
6086 ac_c_werror_flag
=yes
6087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6088 /* end confdefs.h. */
6098 if ac_fn_c_try_compile
"$LINENO"; then :
6099 pgac_cv_prog_CC_cflags__fno_strict_aliasing
=yes
6101 pgac_cv_prog_CC_cflags__fno_strict_aliasing
=no
6103 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6104 ac_c_werror_flag
=$ac_save_c_werror_flag
6105 CFLAGS
="$pgac_save_CFLAGS"
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fno_strict_aliasing" >&5
6109 $as_echo "$pgac_cv_prog_CC_cflags__fno_strict_aliasing" >&6; }
6110 if test x
"$pgac_cv_prog_CC_cflags__fno_strict_aliasing" = x
"yes"; then
6111 CFLAGS
="${CFLAGS} -fno-strict-aliasing"
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fno-strict-aliasing, for CXXFLAGS" >&5
6116 $as_echo_n "checking whether ${CXX} supports -fno-strict-aliasing, for CXXFLAGS... " >&6; }
6117 if ${pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing+:} false
; then :
6118 $as_echo_n "(cached) " >&6
6120 pgac_save_CXXFLAGS
=$CXXFLAGS
6123 CXXFLAGS
="${CXXFLAGS} -fno-strict-aliasing"
6124 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6125 ac_cxx_werror_flag
=yes
6127 ac_cpp
='$CXXCPP $CPPFLAGS'
6128 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6129 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6130 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6133 /* end confdefs.h. */
6143 if ac_fn_cxx_try_compile
"$LINENO"; then :
6144 pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing
=yes
6146 pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing
=no
6148 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6150 ac_cpp
='$CPP $CPPFLAGS'
6151 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6152 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6153 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6155 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6156 CXXFLAGS
="$pgac_save_CXXFLAGS"
6157 CXX
="$pgac_save_CXX"
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" >&5
6160 $as_echo "$pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" >&6; }
6161 if test x
"$pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" = x
"yes"; then
6162 CXXFLAGS
="${CXXFLAGS} -fno-strict-aliasing"
6166 # Disable optimizations that assume no overflow; needed for gcc 4.3+
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fwrapv, for CFLAGS" >&5
6169 $as_echo_n "checking whether ${CC} supports -fwrapv, for CFLAGS... " >&6; }
6170 if ${pgac_cv_prog_CC_cflags__fwrapv+:} false
; then :
6171 $as_echo_n "(cached) " >&6
6173 pgac_save_CFLAGS
=$CFLAGS
6176 CFLAGS
="${CFLAGS} -fwrapv"
6177 ac_save_c_werror_flag
=$ac_c_werror_flag
6178 ac_c_werror_flag
=yes
6179 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6180 /* end confdefs.h. */
6190 if ac_fn_c_try_compile
"$LINENO"; then :
6191 pgac_cv_prog_CC_cflags__fwrapv
=yes
6193 pgac_cv_prog_CC_cflags__fwrapv
=no
6195 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6196 ac_c_werror_flag
=$ac_save_c_werror_flag
6197 CFLAGS
="$pgac_save_CFLAGS"
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fwrapv" >&5
6201 $as_echo "$pgac_cv_prog_CC_cflags__fwrapv" >&6; }
6202 if test x
"$pgac_cv_prog_CC_cflags__fwrapv" = x
"yes"; then
6203 CFLAGS
="${CFLAGS} -fwrapv"
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fwrapv, for CXXFLAGS" >&5
6208 $as_echo_n "checking whether ${CXX} supports -fwrapv, for CXXFLAGS... " >&6; }
6209 if ${pgac_cv_prog_CXX_cxxflags__fwrapv+:} false
; then :
6210 $as_echo_n "(cached) " >&6
6212 pgac_save_CXXFLAGS
=$CXXFLAGS
6215 CXXFLAGS
="${CXXFLAGS} -fwrapv"
6216 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6217 ac_cxx_werror_flag
=yes
6219 ac_cpp
='$CXXCPP $CPPFLAGS'
6220 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6221 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6222 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6224 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6225 /* end confdefs.h. */
6235 if ac_fn_cxx_try_compile
"$LINENO"; then :
6236 pgac_cv_prog_CXX_cxxflags__fwrapv
=yes
6238 pgac_cv_prog_CXX_cxxflags__fwrapv
=no
6240 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6242 ac_cpp
='$CPP $CPPFLAGS'
6243 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6244 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6245 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6247 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6248 CXXFLAGS
="$pgac_save_CXXFLAGS"
6249 CXX
="$pgac_save_CXX"
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fwrapv" >&5
6252 $as_echo "$pgac_cv_prog_CXX_cxxflags__fwrapv" >&6; }
6253 if test x
"$pgac_cv_prog_CXX_cxxflags__fwrapv" = x
"yes"; then
6254 CXXFLAGS
="${CXXFLAGS} -fwrapv"
6258 # Disable FP optimizations that cause various errors on gcc 4.5+ or maybe 4.6+
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fexcess-precision=standard, for CFLAGS" >&5
6261 $as_echo_n "checking whether ${CC} supports -fexcess-precision=standard, for CFLAGS... " >&6; }
6262 if ${pgac_cv_prog_CC_cflags__fexcess_precision_standard+:} false
; then :
6263 $as_echo_n "(cached) " >&6
6265 pgac_save_CFLAGS
=$CFLAGS
6268 CFLAGS
="${CFLAGS} -fexcess-precision=standard"
6269 ac_save_c_werror_flag
=$ac_c_werror_flag
6270 ac_c_werror_flag
=yes
6271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6272 /* end confdefs.h. */
6282 if ac_fn_c_try_compile
"$LINENO"; then :
6283 pgac_cv_prog_CC_cflags__fexcess_precision_standard
=yes
6285 pgac_cv_prog_CC_cflags__fexcess_precision_standard
=no
6287 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6288 ac_c_werror_flag
=$ac_save_c_werror_flag
6289 CFLAGS
="$pgac_save_CFLAGS"
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fexcess_precision_standard" >&5
6293 $as_echo "$pgac_cv_prog_CC_cflags__fexcess_precision_standard" >&6; }
6294 if test x
"$pgac_cv_prog_CC_cflags__fexcess_precision_standard" = x
"yes"; then
6295 CFLAGS
="${CFLAGS} -fexcess-precision=standard"
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fexcess-precision=standard, for CXXFLAGS" >&5
6300 $as_echo_n "checking whether ${CXX} supports -fexcess-precision=standard, for CXXFLAGS... " >&6; }
6301 if ${pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard+:} false
; then :
6302 $as_echo_n "(cached) " >&6
6304 pgac_save_CXXFLAGS
=$CXXFLAGS
6307 CXXFLAGS
="${CXXFLAGS} -fexcess-precision=standard"
6308 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6309 ac_cxx_werror_flag
=yes
6311 ac_cpp
='$CXXCPP $CPPFLAGS'
6312 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6313 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6314 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6317 /* end confdefs.h. */
6327 if ac_fn_cxx_try_compile
"$LINENO"; then :
6328 pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard
=yes
6330 pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard
=no
6332 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6334 ac_cpp
='$CPP $CPPFLAGS'
6335 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6336 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6337 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6339 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6340 CXXFLAGS
="$pgac_save_CXXFLAGS"
6341 CXX
="$pgac_save_CXX"
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard" >&5
6344 $as_echo "$pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard" >&6; }
6345 if test x
"$pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard" = x
"yes"; then
6346 CXXFLAGS
="${CXXFLAGS} -fexcess-precision=standard"
6350 # Optimization flags for specific files that benefit from loop unrolling
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -funroll-loops, for CFLAGS_UNROLL_LOOPS" >&5
6352 $as_echo_n "checking whether ${CC} supports -funroll-loops, for CFLAGS_UNROLL_LOOPS... " >&6; }
6353 if ${pgac_cv_prog_CC_cflags__funroll_loops+:} false
; then :
6354 $as_echo_n "(cached) " >&6
6356 pgac_save_CFLAGS
=$CFLAGS
6359 CFLAGS
="${CFLAGS_UNROLL_LOOPS} -funroll-loops"
6360 ac_save_c_werror_flag
=$ac_c_werror_flag
6361 ac_c_werror_flag
=yes
6362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6363 /* end confdefs.h. */
6373 if ac_fn_c_try_compile
"$LINENO"; then :
6374 pgac_cv_prog_CC_cflags__funroll_loops
=yes
6376 pgac_cv_prog_CC_cflags__funroll_loops
=no
6378 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6379 ac_c_werror_flag
=$ac_save_c_werror_flag
6380 CFLAGS
="$pgac_save_CFLAGS"
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__funroll_loops" >&5
6384 $as_echo "$pgac_cv_prog_CC_cflags__funroll_loops" >&6; }
6385 if test x
"$pgac_cv_prog_CC_cflags__funroll_loops" = x
"yes"; then
6386 CFLAGS_UNROLL_LOOPS
="${CFLAGS_UNROLL_LOOPS} -funroll-loops"
6390 # Optimization flags for specific files that benefit from vectorization
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -ftree-vectorize, for CFLAGS_VECTORIZE" >&5
6392 $as_echo_n "checking whether ${CC} supports -ftree-vectorize, for CFLAGS_VECTORIZE... " >&6; }
6393 if ${pgac_cv_prog_CC_cflags__ftree_vectorize+:} false
; then :
6394 $as_echo_n "(cached) " >&6
6396 pgac_save_CFLAGS
=$CFLAGS
6399 CFLAGS
="${CFLAGS_VECTORIZE} -ftree-vectorize"
6400 ac_save_c_werror_flag
=$ac_c_werror_flag
6401 ac_c_werror_flag
=yes
6402 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6403 /* end confdefs.h. */
6413 if ac_fn_c_try_compile
"$LINENO"; then :
6414 pgac_cv_prog_CC_cflags__ftree_vectorize
=yes
6416 pgac_cv_prog_CC_cflags__ftree_vectorize
=no
6418 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6419 ac_c_werror_flag
=$ac_save_c_werror_flag
6420 CFLAGS
="$pgac_save_CFLAGS"
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__ftree_vectorize" >&5
6424 $as_echo "$pgac_cv_prog_CC_cflags__ftree_vectorize" >&6; }
6425 if test x
"$pgac_cv_prog_CC_cflags__ftree_vectorize" = x
"yes"; then
6426 CFLAGS_VECTORIZE
="${CFLAGS_VECTORIZE} -ftree-vectorize"
6431 # The following tests want to suppress various unhelpful warnings by adding
6432 # -Wno-foo switches. But gcc won't complain about unrecognized -Wno-foo
6433 # switches, so we have to test for the positive form and if that works,
6434 # add the negative form. Note that tests of this form typically need to
6435 # be duplicated in the BITCODE_CFLAGS setup stanza below.
6437 # Suppress clang's unhelpful unused-command-line-argument warnings.
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wunused-command-line-argument, for NOT_THE_CFLAGS" >&5
6440 $as_echo_n "checking whether ${CC} supports -Wunused-command-line-argument, for NOT_THE_CFLAGS... " >&6; }
6441 if ${pgac_cv_prog_CC_cflags__Wunused_command_line_argument+:} false
; then :
6442 $as_echo_n "(cached) " >&6
6444 pgac_save_CFLAGS
=$CFLAGS
6447 CFLAGS
="${NOT_THE_CFLAGS} -Wunused-command-line-argument"
6448 ac_save_c_werror_flag
=$ac_c_werror_flag
6449 ac_c_werror_flag
=yes
6450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6451 /* end confdefs.h. */
6461 if ac_fn_c_try_compile
"$LINENO"; then :
6462 pgac_cv_prog_CC_cflags__Wunused_command_line_argument
=yes
6464 pgac_cv_prog_CC_cflags__Wunused_command_line_argument
=no
6466 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6467 ac_c_werror_flag
=$ac_save_c_werror_flag
6468 CFLAGS
="$pgac_save_CFLAGS"
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wunused_command_line_argument" >&5
6472 $as_echo "$pgac_cv_prog_CC_cflags__Wunused_command_line_argument" >&6; }
6473 if test x
"$pgac_cv_prog_CC_cflags__Wunused_command_line_argument" = x
"yes"; then
6474 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wunused-command-line-argument"
6478 if test -n "$NOT_THE_CFLAGS"; then
6479 CFLAGS
="$CFLAGS -Wno-unused-command-line-argument"
6481 # Remove clang 12+'s compound-token-split-by-macro, as this causes a lot
6482 # of warnings when building plperl because of usages in the Perl headers.
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wcompound-token-split-by-macro, for NOT_THE_CFLAGS" >&5
6485 $as_echo_n "checking whether ${CC} supports -Wcompound-token-split-by-macro, for NOT_THE_CFLAGS... " >&6; }
6486 if ${pgac_cv_prog_CC_cflags__Wcompound_token_split_by_macro+:} false
; then :
6487 $as_echo_n "(cached) " >&6
6489 pgac_save_CFLAGS
=$CFLAGS
6492 CFLAGS
="${NOT_THE_CFLAGS} -Wcompound-token-split-by-macro"
6493 ac_save_c_werror_flag
=$ac_c_werror_flag
6494 ac_c_werror_flag
=yes
6495 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6496 /* end confdefs.h. */
6506 if ac_fn_c_try_compile
"$LINENO"; then :
6507 pgac_cv_prog_CC_cflags__Wcompound_token_split_by_macro
=yes
6509 pgac_cv_prog_CC_cflags__Wcompound_token_split_by_macro
=no
6511 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6512 ac_c_werror_flag
=$ac_save_c_werror_flag
6513 CFLAGS
="$pgac_save_CFLAGS"
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wcompound_token_split_by_macro" >&5
6517 $as_echo "$pgac_cv_prog_CC_cflags__Wcompound_token_split_by_macro" >&6; }
6518 if test x
"$pgac_cv_prog_CC_cflags__Wcompound_token_split_by_macro" = x
"yes"; then
6519 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wcompound-token-split-by-macro"
6523 if test -n "$NOT_THE_CFLAGS"; then
6524 CFLAGS
="$CFLAGS -Wno-compound-token-split-by-macro"
6526 # Similarly disable useless truncation warnings from gcc 8+
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wformat-truncation, for NOT_THE_CFLAGS" >&5
6529 $as_echo_n "checking whether ${CC} supports -Wformat-truncation, for NOT_THE_CFLAGS... " >&6; }
6530 if ${pgac_cv_prog_CC_cflags__Wformat_truncation+:} false
; then :
6531 $as_echo_n "(cached) " >&6
6533 pgac_save_CFLAGS
=$CFLAGS
6536 CFLAGS
="${NOT_THE_CFLAGS} -Wformat-truncation"
6537 ac_save_c_werror_flag
=$ac_c_werror_flag
6538 ac_c_werror_flag
=yes
6539 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6540 /* end confdefs.h. */
6550 if ac_fn_c_try_compile
"$LINENO"; then :
6551 pgac_cv_prog_CC_cflags__Wformat_truncation
=yes
6553 pgac_cv_prog_CC_cflags__Wformat_truncation
=no
6555 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6556 ac_c_werror_flag
=$ac_save_c_werror_flag
6557 CFLAGS
="$pgac_save_CFLAGS"
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wformat_truncation" >&5
6561 $as_echo "$pgac_cv_prog_CC_cflags__Wformat_truncation" >&6; }
6562 if test x
"$pgac_cv_prog_CC_cflags__Wformat_truncation" = x
"yes"; then
6563 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wformat-truncation"
6567 if test -n "$NOT_THE_CFLAGS"; then
6568 CFLAGS
="$CFLAGS -Wno-format-truncation"
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wstringop-truncation, for NOT_THE_CFLAGS" >&5
6572 $as_echo_n "checking whether ${CC} supports -Wstringop-truncation, for NOT_THE_CFLAGS... " >&6; }
6573 if ${pgac_cv_prog_CC_cflags__Wstringop_truncation+:} false
; then :
6574 $as_echo_n "(cached) " >&6
6576 pgac_save_CFLAGS
=$CFLAGS
6579 CFLAGS
="${NOT_THE_CFLAGS} -Wstringop-truncation"
6580 ac_save_c_werror_flag
=$ac_c_werror_flag
6581 ac_c_werror_flag
=yes
6582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6583 /* end confdefs.h. */
6593 if ac_fn_c_try_compile
"$LINENO"; then :
6594 pgac_cv_prog_CC_cflags__Wstringop_truncation
=yes
6596 pgac_cv_prog_CC_cflags__Wstringop_truncation
=no
6598 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6599 ac_c_werror_flag
=$ac_save_c_werror_flag
6600 CFLAGS
="$pgac_save_CFLAGS"
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wstringop_truncation" >&5
6604 $as_echo "$pgac_cv_prog_CC_cflags__Wstringop_truncation" >&6; }
6605 if test x
"$pgac_cv_prog_CC_cflags__Wstringop_truncation" = x
"yes"; then
6606 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wstringop-truncation"
6610 if test -n "$NOT_THE_CFLAGS"; then
6611 CFLAGS
="$CFLAGS -Wno-stringop-truncation"
6613 # Suppress clang 16's strict warnings about function casts
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wcast-function-type-strict, for NOT_THE_CFLAGS" >&5
6616 $as_echo_n "checking whether ${CC} supports -Wcast-function-type-strict, for NOT_THE_CFLAGS... " >&6; }
6617 if ${pgac_cv_prog_CC_cflags__Wcast_function_type_strict+:} false
; then :
6618 $as_echo_n "(cached) " >&6
6620 pgac_save_CFLAGS
=$CFLAGS
6623 CFLAGS
="${NOT_THE_CFLAGS} -Wcast-function-type-strict"
6624 ac_save_c_werror_flag
=$ac_c_werror_flag
6625 ac_c_werror_flag
=yes
6626 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6627 /* end confdefs.h. */
6637 if ac_fn_c_try_compile
"$LINENO"; then :
6638 pgac_cv_prog_CC_cflags__Wcast_function_type_strict
=yes
6640 pgac_cv_prog_CC_cflags__Wcast_function_type_strict
=no
6642 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6643 ac_c_werror_flag
=$ac_save_c_werror_flag
6644 CFLAGS
="$pgac_save_CFLAGS"
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wcast_function_type_strict" >&5
6648 $as_echo "$pgac_cv_prog_CC_cflags__Wcast_function_type_strict" >&6; }
6649 if test x
"$pgac_cv_prog_CC_cflags__Wcast_function_type_strict" = x
"yes"; then
6650 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wcast-function-type-strict"
6654 if test -n "$NOT_THE_CFLAGS"; then
6655 CFLAGS
="$CFLAGS -Wno-cast-function-type-strict"
6657 elif test "$ICC" = yes; then
6658 # Intel's compiler has a bug/misoptimization in checking for
6659 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -mp1, for CFLAGS" >&5
6662 $as_echo_n "checking whether ${CC} supports -mp1, for CFLAGS... " >&6; }
6663 if ${pgac_cv_prog_CC_cflags__mp1+:} false
; then :
6664 $as_echo_n "(cached) " >&6
6666 pgac_save_CFLAGS
=$CFLAGS
6669 CFLAGS
="${CFLAGS} -mp1"
6670 ac_save_c_werror_flag
=$ac_c_werror_flag
6671 ac_c_werror_flag
=yes
6672 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6673 /* end confdefs.h. */
6683 if ac_fn_c_try_compile
"$LINENO"; then :
6684 pgac_cv_prog_CC_cflags__mp1
=yes
6686 pgac_cv_prog_CC_cflags__mp1
=no
6688 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6689 ac_c_werror_flag
=$ac_save_c_werror_flag
6690 CFLAGS
="$pgac_save_CFLAGS"
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__mp1" >&5
6694 $as_echo "$pgac_cv_prog_CC_cflags__mp1" >&6; }
6695 if test x
"$pgac_cv_prog_CC_cflags__mp1" = x
"yes"; then
6696 CFLAGS
="${CFLAGS} -mp1"
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -mp1, for CXXFLAGS" >&5
6701 $as_echo_n "checking whether ${CXX} supports -mp1, for CXXFLAGS... " >&6; }
6702 if ${pgac_cv_prog_CXX_cxxflags__mp1+:} false
; then :
6703 $as_echo_n "(cached) " >&6
6705 pgac_save_CXXFLAGS
=$CXXFLAGS
6708 CXXFLAGS
="${CXXFLAGS} -mp1"
6709 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6710 ac_cxx_werror_flag
=yes
6712 ac_cpp
='$CXXCPP $CPPFLAGS'
6713 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6714 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6715 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6718 /* end confdefs.h. */
6728 if ac_fn_cxx_try_compile
"$LINENO"; then :
6729 pgac_cv_prog_CXX_cxxflags__mp1
=yes
6731 pgac_cv_prog_CXX_cxxflags__mp1
=no
6733 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6735 ac_cpp
='$CPP $CPPFLAGS'
6736 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6737 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6738 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6740 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6741 CXXFLAGS
="$pgac_save_CXXFLAGS"
6742 CXX
="$pgac_save_CXX"
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__mp1" >&5
6745 $as_echo "$pgac_cv_prog_CXX_cxxflags__mp1" >&6; }
6746 if test x
"$pgac_cv_prog_CXX_cxxflags__mp1" = x
"yes"; then
6747 CXXFLAGS
="${CXXFLAGS} -mp1"
6751 # Make sure strict aliasing is off (though this is said to be the default)
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fno-strict-aliasing, for CFLAGS" >&5
6754 $as_echo_n "checking whether ${CC} supports -fno-strict-aliasing, for CFLAGS... " >&6; }
6755 if ${pgac_cv_prog_CC_cflags__fno_strict_aliasing+:} false
; then :
6756 $as_echo_n "(cached) " >&6
6758 pgac_save_CFLAGS
=$CFLAGS
6761 CFLAGS
="${CFLAGS} -fno-strict-aliasing"
6762 ac_save_c_werror_flag
=$ac_c_werror_flag
6763 ac_c_werror_flag
=yes
6764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6765 /* end confdefs.h. */
6775 if ac_fn_c_try_compile
"$LINENO"; then :
6776 pgac_cv_prog_CC_cflags__fno_strict_aliasing
=yes
6778 pgac_cv_prog_CC_cflags__fno_strict_aliasing
=no
6780 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6781 ac_c_werror_flag
=$ac_save_c_werror_flag
6782 CFLAGS
="$pgac_save_CFLAGS"
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fno_strict_aliasing" >&5
6786 $as_echo "$pgac_cv_prog_CC_cflags__fno_strict_aliasing" >&6; }
6787 if test x
"$pgac_cv_prog_CC_cflags__fno_strict_aliasing" = x
"yes"; then
6788 CFLAGS
="${CFLAGS} -fno-strict-aliasing"
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fno-strict-aliasing, for CXXFLAGS" >&5
6793 $as_echo_n "checking whether ${CXX} supports -fno-strict-aliasing, for CXXFLAGS... " >&6; }
6794 if ${pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing+:} false
; then :
6795 $as_echo_n "(cached) " >&6
6797 pgac_save_CXXFLAGS
=$CXXFLAGS
6800 CXXFLAGS
="${CXXFLAGS} -fno-strict-aliasing"
6801 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6802 ac_cxx_werror_flag
=yes
6804 ac_cpp
='$CXXCPP $CPPFLAGS'
6805 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6806 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6807 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6810 /* end confdefs.h. */
6820 if ac_fn_cxx_try_compile
"$LINENO"; then :
6821 pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing
=yes
6823 pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing
=no
6825 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6827 ac_cpp
='$CPP $CPPFLAGS'
6828 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6829 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6830 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6832 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6833 CXXFLAGS
="$pgac_save_CXXFLAGS"
6834 CXX
="$pgac_save_CXX"
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" >&5
6837 $as_echo "$pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" >&6; }
6838 if test x
"$pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" = x
"yes"; then
6839 CXXFLAGS
="${CXXFLAGS} -fno-strict-aliasing"
6845 # If the compiler knows how to hide symbols, add the switch needed for that to
6846 # CFLAGS_SL_MODULE and define HAVE_VISIBILITY_ATTRIBUTE.
6848 # This is done separately from the above because -fvisibility is supported by
6849 # quite a few different compilers, making the required repetition bothersome.
6851 # We might need to add a separate test to check if
6852 # __attribute__((visibility("hidden"))) is supported, if we encounter a
6853 # compiler that supports one of the supported variants of -fvisibility=hidden
6854 # but uses a different syntax to mark a symbol as exported.
6855 if test "$GCC" = yes -o "$SUN_STUDIO_CC" = yes ; then
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fvisibility=hidden, for CFLAGS_SL_MODULE" >&5
6857 $as_echo_n "checking whether ${CC} supports -fvisibility=hidden, for CFLAGS_SL_MODULE... " >&6; }
6858 if ${pgac_cv_prog_CC_cflags__fvisibility_hidden+:} false
; then :
6859 $as_echo_n "(cached) " >&6
6861 pgac_save_CFLAGS
=$CFLAGS
6864 CFLAGS
="${CFLAGS_SL_MODULE} -fvisibility=hidden"
6865 ac_save_c_werror_flag
=$ac_c_werror_flag
6866 ac_c_werror_flag
=yes
6867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6868 /* end confdefs.h. */
6878 if ac_fn_c_try_compile
"$LINENO"; then :
6879 pgac_cv_prog_CC_cflags__fvisibility_hidden
=yes
6881 pgac_cv_prog_CC_cflags__fvisibility_hidden
=no
6883 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6884 ac_c_werror_flag
=$ac_save_c_werror_flag
6885 CFLAGS
="$pgac_save_CFLAGS"
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fvisibility_hidden" >&5
6889 $as_echo "$pgac_cv_prog_CC_cflags__fvisibility_hidden" >&6; }
6890 if test x
"$pgac_cv_prog_CC_cflags__fvisibility_hidden" = x
"yes"; then
6891 CFLAGS_SL_MODULE
="${CFLAGS_SL_MODULE} -fvisibility=hidden"
6895 # For C++ we additionally want -fvisibility-inlines-hidden
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fvisibility=hidden, for CXXFLAGS_SL_MODULE" >&5
6897 $as_echo_n "checking whether ${CXX} supports -fvisibility=hidden, for CXXFLAGS_SL_MODULE... " >&6; }
6898 if ${pgac_cv_prog_CXX_cxxflags__fvisibility_hidden+:} false
; then :
6899 $as_echo_n "(cached) " >&6
6901 pgac_save_CXXFLAGS
=$CXXFLAGS
6904 CXXFLAGS
="${CXXFLAGS_SL_MODULE} -fvisibility=hidden"
6905 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6906 ac_cxx_werror_flag
=yes
6908 ac_cpp
='$CXXCPP $CPPFLAGS'
6909 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6910 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6911 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6914 /* end confdefs.h. */
6924 if ac_fn_cxx_try_compile
"$LINENO"; then :
6925 pgac_cv_prog_CXX_cxxflags__fvisibility_hidden
=yes
6927 pgac_cv_prog_CXX_cxxflags__fvisibility_hidden
=no
6929 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6931 ac_cpp
='$CPP $CPPFLAGS'
6932 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6933 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6934 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6936 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6937 CXXFLAGS
="$pgac_save_CXXFLAGS"
6938 CXX
="$pgac_save_CXX"
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fvisibility_hidden" >&5
6941 $as_echo "$pgac_cv_prog_CXX_cxxflags__fvisibility_hidden" >&6; }
6942 if test x
"$pgac_cv_prog_CXX_cxxflags__fvisibility_hidden" = x
"yes"; then
6943 CXXFLAGS_SL_MODULE
="${CXXFLAGS_SL_MODULE} -fvisibility=hidden"
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fvisibility-inlines-hidden, for CXXFLAGS_SL_MODULE" >&5
6947 $as_echo_n "checking whether ${CXX} supports -fvisibility-inlines-hidden, for CXXFLAGS_SL_MODULE... " >&6; }
6948 if ${pgac_cv_prog_CXX_cxxflags__fvisibility_inlines_hidden+:} false
; then :
6949 $as_echo_n "(cached) " >&6
6951 pgac_save_CXXFLAGS
=$CXXFLAGS
6954 CXXFLAGS
="${CXXFLAGS_SL_MODULE} -fvisibility-inlines-hidden"
6955 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6956 ac_cxx_werror_flag
=yes
6958 ac_cpp
='$CXXCPP $CPPFLAGS'
6959 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6960 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6961 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6963 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6964 /* end confdefs.h. */
6974 if ac_fn_cxx_try_compile
"$LINENO"; then :
6975 pgac_cv_prog_CXX_cxxflags__fvisibility_inlines_hidden
=yes
6977 pgac_cv_prog_CXX_cxxflags__fvisibility_inlines_hidden
=no
6979 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6981 ac_cpp
='$CPP $CPPFLAGS'
6982 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6983 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6984 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6986 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6987 CXXFLAGS
="$pgac_save_CXXFLAGS"
6988 CXX
="$pgac_save_CXX"
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fvisibility_inlines_hidden" >&5
6991 $as_echo "$pgac_cv_prog_CXX_cxxflags__fvisibility_inlines_hidden" >&6; }
6992 if test x
"$pgac_cv_prog_CXX_cxxflags__fvisibility_inlines_hidden" = x
"yes"; then
6993 CXXFLAGS_SL_MODULE
="${CXXFLAGS_SL_MODULE} -fvisibility-inlines-hidden"
6996 have_visibility_attribute
=$pgac_cv_prog_CC_cflags__fvisibility_hidden
6999 if test "$have_visibility_attribute" = "yes"; then
7001 $as_echo "#define HAVE_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
7010 # Determine flags used to emit bitcode for JIT inlining.
7011 # 1. We must duplicate any behaviour-changing compiler flags used above,
7012 # to keep compatibility with the compiler used for normal Postgres code.
7013 # 2. We don't bother to duplicate extra-warnings switches --- seeing a
7014 # warning in the main build is enough.
7015 # 3. But we must duplicate -Wno-warning flags, else we'll see those anyway.
7016 if test "$with_llvm" = yes ; then
7017 CLANGXX
="$CLANG -xc++"
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -fno-strict-aliasing, for BITCODE_CFLAGS" >&5
7020 $as_echo_n "checking whether ${CLANG} supports -fno-strict-aliasing, for BITCODE_CFLAGS... " >&6; }
7021 if ${pgac_cv_prog_CLANG_cflags__fno_strict_aliasing+:} false
; then :
7022 $as_echo_n "(cached) " >&6
7024 pgac_save_CFLAGS
=$CFLAGS
7027 CFLAGS
="${BITCODE_CFLAGS} -fno-strict-aliasing"
7028 ac_save_c_werror_flag
=$ac_c_werror_flag
7029 ac_c_werror_flag
=yes
7030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7031 /* end confdefs.h. */
7041 if ac_fn_c_try_compile
"$LINENO"; then :
7042 pgac_cv_prog_CLANG_cflags__fno_strict_aliasing
=yes
7044 pgac_cv_prog_CLANG_cflags__fno_strict_aliasing
=no
7046 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7047 ac_c_werror_flag
=$ac_save_c_werror_flag
7048 CFLAGS
="$pgac_save_CFLAGS"
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__fno_strict_aliasing" >&5
7052 $as_echo "$pgac_cv_prog_CLANG_cflags__fno_strict_aliasing" >&6; }
7053 if test x
"$pgac_cv_prog_CLANG_cflags__fno_strict_aliasing" = x
"yes"; then
7054 BITCODE_CFLAGS
="${BITCODE_CFLAGS} -fno-strict-aliasing"
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANGXX} supports -fno-strict-aliasing, for BITCODE_CXXFLAGS" >&5
7058 $as_echo_n "checking whether ${CLANGXX} supports -fno-strict-aliasing, for BITCODE_CXXFLAGS... " >&6; }
7059 if ${pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing+:} false
; then :
7060 $as_echo_n "(cached) " >&6
7062 pgac_save_CXXFLAGS
=$CXXFLAGS
7065 CXXFLAGS
="${BITCODE_CXXFLAGS} -fno-strict-aliasing"
7066 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
7067 ac_cxx_werror_flag
=yes
7069 ac_cpp
='$CXXCPP $CPPFLAGS'
7070 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7071 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7072 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7075 /* end confdefs.h. */
7085 if ac_fn_cxx_try_compile
"$LINENO"; then :
7086 pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing
=yes
7088 pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing
=no
7090 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7092 ac_cpp
='$CPP $CPPFLAGS'
7093 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7094 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7095 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7097 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
7098 CXXFLAGS
="$pgac_save_CXXFLAGS"
7099 CXX
="$pgac_save_CXX"
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing" >&5
7102 $as_echo "$pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing" >&6; }
7103 if test x
"$pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing" = x
"yes"; then
7104 BITCODE_CXXFLAGS
="${BITCODE_CXXFLAGS} -fno-strict-aliasing"
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -fwrapv, for BITCODE_CFLAGS" >&5
7108 $as_echo_n "checking whether ${CLANG} supports -fwrapv, for BITCODE_CFLAGS... " >&6; }
7109 if ${pgac_cv_prog_CLANG_cflags__fwrapv+:} false
; then :
7110 $as_echo_n "(cached) " >&6
7112 pgac_save_CFLAGS
=$CFLAGS
7115 CFLAGS
="${BITCODE_CFLAGS} -fwrapv"
7116 ac_save_c_werror_flag
=$ac_c_werror_flag
7117 ac_c_werror_flag
=yes
7118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7119 /* end confdefs.h. */
7129 if ac_fn_c_try_compile
"$LINENO"; then :
7130 pgac_cv_prog_CLANG_cflags__fwrapv
=yes
7132 pgac_cv_prog_CLANG_cflags__fwrapv
=no
7134 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7135 ac_c_werror_flag
=$ac_save_c_werror_flag
7136 CFLAGS
="$pgac_save_CFLAGS"
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__fwrapv" >&5
7140 $as_echo "$pgac_cv_prog_CLANG_cflags__fwrapv" >&6; }
7141 if test x
"$pgac_cv_prog_CLANG_cflags__fwrapv" = x
"yes"; then
7142 BITCODE_CFLAGS
="${BITCODE_CFLAGS} -fwrapv"
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANGXX} supports -fwrapv, for BITCODE_CXXFLAGS" >&5
7146 $as_echo_n "checking whether ${CLANGXX} supports -fwrapv, for BITCODE_CXXFLAGS... " >&6; }
7147 if ${pgac_cv_prog_CLANGXX_cxxflags__fwrapv+:} false
; then :
7148 $as_echo_n "(cached) " >&6
7150 pgac_save_CXXFLAGS
=$CXXFLAGS
7153 CXXFLAGS
="${BITCODE_CXXFLAGS} -fwrapv"
7154 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
7155 ac_cxx_werror_flag
=yes
7157 ac_cpp
='$CXXCPP $CPPFLAGS'
7158 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7159 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7160 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7163 /* end confdefs.h. */
7173 if ac_fn_cxx_try_compile
"$LINENO"; then :
7174 pgac_cv_prog_CLANGXX_cxxflags__fwrapv
=yes
7176 pgac_cv_prog_CLANGXX_cxxflags__fwrapv
=no
7178 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7180 ac_cpp
='$CPP $CPPFLAGS'
7181 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7182 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7183 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7185 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
7186 CXXFLAGS
="$pgac_save_CXXFLAGS"
7187 CXX
="$pgac_save_CXX"
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANGXX_cxxflags__fwrapv" >&5
7190 $as_echo "$pgac_cv_prog_CLANGXX_cxxflags__fwrapv" >&6; }
7191 if test x
"$pgac_cv_prog_CLANGXX_cxxflags__fwrapv" = x
"yes"; then
7192 BITCODE_CXXFLAGS
="${BITCODE_CXXFLAGS} -fwrapv"
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -fexcess-precision=standard, for BITCODE_CFLAGS" >&5
7196 $as_echo_n "checking whether ${CLANG} supports -fexcess-precision=standard, for BITCODE_CFLAGS... " >&6; }
7197 if ${pgac_cv_prog_CLANG_cflags__fexcess_precision_standard+:} false
; then :
7198 $as_echo_n "(cached) " >&6
7200 pgac_save_CFLAGS
=$CFLAGS
7203 CFLAGS
="${BITCODE_CFLAGS} -fexcess-precision=standard"
7204 ac_save_c_werror_flag
=$ac_c_werror_flag
7205 ac_c_werror_flag
=yes
7206 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7207 /* end confdefs.h. */
7217 if ac_fn_c_try_compile
"$LINENO"; then :
7218 pgac_cv_prog_CLANG_cflags__fexcess_precision_standard
=yes
7220 pgac_cv_prog_CLANG_cflags__fexcess_precision_standard
=no
7222 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7223 ac_c_werror_flag
=$ac_save_c_werror_flag
7224 CFLAGS
="$pgac_save_CFLAGS"
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__fexcess_precision_standard" >&5
7228 $as_echo "$pgac_cv_prog_CLANG_cflags__fexcess_precision_standard" >&6; }
7229 if test x
"$pgac_cv_prog_CLANG_cflags__fexcess_precision_standard" = x
"yes"; then
7230 BITCODE_CFLAGS
="${BITCODE_CFLAGS} -fexcess-precision=standard"
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANGXX} supports -fexcess-precision=standard, for BITCODE_CXXFLAGS" >&5
7234 $as_echo_n "checking whether ${CLANGXX} supports -fexcess-precision=standard, for BITCODE_CXXFLAGS... " >&6; }
7235 if ${pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard+:} false
; then :
7236 $as_echo_n "(cached) " >&6
7238 pgac_save_CXXFLAGS
=$CXXFLAGS
7241 CXXFLAGS
="${BITCODE_CXXFLAGS} -fexcess-precision=standard"
7242 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
7243 ac_cxx_werror_flag
=yes
7245 ac_cpp
='$CXXCPP $CPPFLAGS'
7246 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7247 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7248 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7251 /* end confdefs.h. */
7261 if ac_fn_cxx_try_compile
"$LINENO"; then :
7262 pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard
=yes
7264 pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard
=no
7266 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7268 ac_cpp
='$CPP $CPPFLAGS'
7269 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7270 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7271 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7273 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
7274 CXXFLAGS
="$pgac_save_CXXFLAGS"
7275 CXX
="$pgac_save_CXX"
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard" >&5
7278 $as_echo "$pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard" >&6; }
7279 if test x
"$pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard" = x
"yes"; then
7280 BITCODE_CXXFLAGS
="${BITCODE_CXXFLAGS} -fexcess-precision=standard"
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -Wunused-command-line-argument, for NOT_THE_CFLAGS" >&5
7286 $as_echo_n "checking whether ${CLANG} supports -Wunused-command-line-argument, for NOT_THE_CFLAGS... " >&6; }
7287 if ${pgac_cv_prog_CLANG_cflags__Wunused_command_line_argument+:} false
; then :
7288 $as_echo_n "(cached) " >&6
7290 pgac_save_CFLAGS
=$CFLAGS
7293 CFLAGS
="${NOT_THE_CFLAGS} -Wunused-command-line-argument"
7294 ac_save_c_werror_flag
=$ac_c_werror_flag
7295 ac_c_werror_flag
=yes
7296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7297 /* end confdefs.h. */
7307 if ac_fn_c_try_compile
"$LINENO"; then :
7308 pgac_cv_prog_CLANG_cflags__Wunused_command_line_argument
=yes
7310 pgac_cv_prog_CLANG_cflags__Wunused_command_line_argument
=no
7312 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7313 ac_c_werror_flag
=$ac_save_c_werror_flag
7314 CFLAGS
="$pgac_save_CFLAGS"
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__Wunused_command_line_argument" >&5
7318 $as_echo "$pgac_cv_prog_CLANG_cflags__Wunused_command_line_argument" >&6; }
7319 if test x
"$pgac_cv_prog_CLANG_cflags__Wunused_command_line_argument" = x
"yes"; then
7320 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wunused-command-line-argument"
7323 if test -n "$NOT_THE_CFLAGS"; then
7324 BITCODE_CFLAGS
="$BITCODE_CFLAGS -Wno-unused-command-line-argument"
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -Wcompound-token-split-by-macro, for NOT_THE_CFLAGS" >&5
7328 $as_echo_n "checking whether ${CLANG} supports -Wcompound-token-split-by-macro, for NOT_THE_CFLAGS... " >&6; }
7329 if ${pgac_cv_prog_CLANG_cflags__Wcompound_token_split_by_macro+:} false
; then :
7330 $as_echo_n "(cached) " >&6
7332 pgac_save_CFLAGS
=$CFLAGS
7335 CFLAGS
="${NOT_THE_CFLAGS} -Wcompound-token-split-by-macro"
7336 ac_save_c_werror_flag
=$ac_c_werror_flag
7337 ac_c_werror_flag
=yes
7338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7339 /* end confdefs.h. */
7349 if ac_fn_c_try_compile
"$LINENO"; then :
7350 pgac_cv_prog_CLANG_cflags__Wcompound_token_split_by_macro
=yes
7352 pgac_cv_prog_CLANG_cflags__Wcompound_token_split_by_macro
=no
7354 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7355 ac_c_werror_flag
=$ac_save_c_werror_flag
7356 CFLAGS
="$pgac_save_CFLAGS"
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__Wcompound_token_split_by_macro" >&5
7360 $as_echo "$pgac_cv_prog_CLANG_cflags__Wcompound_token_split_by_macro" >&6; }
7361 if test x
"$pgac_cv_prog_CLANG_cflags__Wcompound_token_split_by_macro" = x
"yes"; then
7362 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wcompound-token-split-by-macro"
7365 if test -n "$NOT_THE_CFLAGS"; then
7366 BITCODE_CFLAGS
="$BITCODE_CFLAGS -Wno-compound-token-split-by-macro"
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -Wformat-truncation, for NOT_THE_CFLAGS" >&5
7370 $as_echo_n "checking whether ${CLANG} supports -Wformat-truncation, for NOT_THE_CFLAGS... " >&6; }
7371 if ${pgac_cv_prog_CLANG_cflags__Wformat_truncation+:} false
; then :
7372 $as_echo_n "(cached) " >&6
7374 pgac_save_CFLAGS
=$CFLAGS
7377 CFLAGS
="${NOT_THE_CFLAGS} -Wformat-truncation"
7378 ac_save_c_werror_flag
=$ac_c_werror_flag
7379 ac_c_werror_flag
=yes
7380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7381 /* end confdefs.h. */
7391 if ac_fn_c_try_compile
"$LINENO"; then :
7392 pgac_cv_prog_CLANG_cflags__Wformat_truncation
=yes
7394 pgac_cv_prog_CLANG_cflags__Wformat_truncation
=no
7396 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7397 ac_c_werror_flag
=$ac_save_c_werror_flag
7398 CFLAGS
="$pgac_save_CFLAGS"
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__Wformat_truncation" >&5
7402 $as_echo "$pgac_cv_prog_CLANG_cflags__Wformat_truncation" >&6; }
7403 if test x
"$pgac_cv_prog_CLANG_cflags__Wformat_truncation" = x
"yes"; then
7404 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wformat-truncation"
7407 if test -n "$NOT_THE_CFLAGS"; then
7408 BITCODE_CFLAGS
="$BITCODE_CFLAGS -Wno-format-truncation"
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -Wstringop-truncation, for NOT_THE_CFLAGS" >&5
7412 $as_echo_n "checking whether ${CLANG} supports -Wstringop-truncation, for NOT_THE_CFLAGS... " >&6; }
7413 if ${pgac_cv_prog_CLANG_cflags__Wstringop_truncation+:} false
; then :
7414 $as_echo_n "(cached) " >&6
7416 pgac_save_CFLAGS
=$CFLAGS
7419 CFLAGS
="${NOT_THE_CFLAGS} -Wstringop-truncation"
7420 ac_save_c_werror_flag
=$ac_c_werror_flag
7421 ac_c_werror_flag
=yes
7422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7423 /* end confdefs.h. */
7433 if ac_fn_c_try_compile
"$LINENO"; then :
7434 pgac_cv_prog_CLANG_cflags__Wstringop_truncation
=yes
7436 pgac_cv_prog_CLANG_cflags__Wstringop_truncation
=no
7438 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7439 ac_c_werror_flag
=$ac_save_c_werror_flag
7440 CFLAGS
="$pgac_save_CFLAGS"
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__Wstringop_truncation" >&5
7444 $as_echo "$pgac_cv_prog_CLANG_cflags__Wstringop_truncation" >&6; }
7445 if test x
"$pgac_cv_prog_CLANG_cflags__Wstringop_truncation" = x
"yes"; then
7446 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wstringop-truncation"
7449 if test -n "$NOT_THE_CFLAGS"; then
7450 BITCODE_CFLAGS
="$BITCODE_CFLAGS -Wno-stringop-truncation"
7454 # supply -g if --enable-debug
7455 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
7459 if test "$enable_debug" = yes && test "$ac_cv_prog_cxx_g" = yes; then
7460 CXXFLAGS
="$CXXFLAGS -g"
7463 # enable code coverage if --enable-coverage
7464 if test "$enable_coverage" = yes; then
7465 if test "$GCC" = yes; then
7466 CFLAGS
="$CFLAGS -fprofile-arcs -ftest-coverage"
7467 CXXFLAGS
="$CXXFLAGS -fprofile-arcs -ftest-coverage"
7469 as_fn_error $?
"--enable-coverage is supported only when using GCC" "$LINENO" 5
7473 # enable profiling if --enable-profiling
7474 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
7475 if test "$GCC" = yes; then
7477 $as_echo "#define PROFILE_PID_DIR 1" >>confdefs.h
7479 CFLAGS
="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
7480 CXXFLAGS
="$CXXFLAGS -pg $PLATFORM_PROFILE_FLAGS"
7482 as_fn_error $?
"--enable-profiling is supported only when using GCC" "$LINENO" 5
7486 # On Solaris, we need this #define to get POSIX-conforming versions
7487 # of many interfaces (sigwait, getpwuid_r, ...).
7488 if test "$PORTNAME" = "solaris"; then
7489 CPPFLAGS
="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS"
7492 # We already have this in Makefile.win32, but configure needs it too
7493 if test "$PORTNAME" = "win32"; then
7494 CPPFLAGS
="$CPPFLAGS -I$srcdir/src/include/port/win32"
7497 # Now that we're done automatically adding stuff to C[XX]FLAGS, put back the
7498 # user-specified flags (if any) at the end. This lets users override
7499 # the automatic additions.
7500 CFLAGS
="$CFLAGS $user_CFLAGS"
7501 CXXFLAGS
="$CXXFLAGS $user_CXXFLAGS"
7502 BITCODE_CFLAGS
="$BITCODE_CFLAGS $user_BITCODE_CFLAGS"
7503 BITCODE_CXXFLAGS
="$BITCODE_CXXFLAGS $user_BITCODE_CXXFLAGS"
7508 # The template file must set up CFLAGS_SL; we don't support user override
7511 # Check if the compiler still works with the final flag settings
7512 # (note, we're not checking that for CXX, which is optional)
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler still works" >&5
7514 $as_echo_n "checking whether the C compiler still works... " >&6; }
7515 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7516 /* end confdefs.h. */
7526 if ac_fn_c_try_link
"$LINENO"; then :
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7528 $as_echo "yes" >&6; }
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7531 $as_echo "no" >&6; }
7532 as_fn_error $?
"cannot proceed" "$LINENO" 5
7534 rm -f core conftest.err conftest.
$ac_objext \
7535 conftest
$ac_exeext conftest.
$ac_ext
7537 # Defend against gcc -ffast-math
7538 if test "$GCC" = yes; then
7539 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7540 /* end confdefs.h. */
7545 #ifdef __FAST_MATH__
7552 if ac_fn_c_try_compile
"$LINENO"; then :
7555 as_fn_error $?
"do not put -ffast-math in CFLAGS" "$LINENO" 5
7557 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7560 # Defend against clang being used on x86-32 without SSE2 enabled. As current
7561 # versions of clang do not understand -fexcess-precision=standard, the use of
7562 # x87 floating point operations leads to problems like isinf possibly returning
7563 # false for a value that is infinite when converted from the 80bit register to
7564 # the 8byte memory representation.
7566 # Only perform the test if the compiler doesn't understand
7567 # -fexcess-precision=standard, that way a potentially fixed compiler will work
7569 if test "$pgac_cv_prog_CC_cflags__fexcess_precision_standard" = no
; then
7570 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7571 /* end confdefs.h. */
7577 #if defined(__clang__) && defined(__i386__) && !defined(__SSE2_MATH__)
7585 if ac_fn_c_try_compile
"$LINENO"; then :
7588 as_fn_error $?
"Compiling PostgreSQL with clang, on 32bit x86, requires SSE2 support. Use -msse2 or use gcc." "$LINENO" 5
7590 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7594 ac_cpp
='$CPP $CPPFLAGS'
7595 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7596 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7597 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7599 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7600 # On Suns, sometimes $CPP names a directory.
7601 if test -n "$CPP" && test -d "$CPP"; then
7604 if test -z "$CPP"; then
7605 if ${ac_cv_prog_CPP+:} false
; then :
7606 $as_echo_n "(cached) " >&6
7608 # Double quotes because CPP needs to be expanded
7609 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7612 for ac_c_preproc_warn_flag
in '' yes
7614 # Use a header file that comes with gcc, so configuring glibc
7615 # with a fresh cross-compiler works.
7616 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7617 # <limits.h> exists even on freestanding compilers.
7618 # On the NeXT, cc -E runs the code through the compiler's parser,
7619 # not just through cpp. "Syntax error" is here to catch this case.
7620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7621 /* end confdefs.h. */
7623 # include <limits.h>
7625 # include <assert.h>
7629 if ac_fn_c_try_cpp
"$LINENO"; then :
7632 # Broken: fails on valid input.
7635 rm -f conftest.err conftest.i conftest.
$ac_ext
7637 # OK, works on sane cases. Now check whether nonexistent headers
7638 # can be detected and how.
7639 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7640 /* end confdefs.h. */
7641 #include <ac_nonexistent.h>
7643 if ac_fn_c_try_cpp
"$LINENO"; then :
7644 # Broken: success on invalid input.
7647 # Passes both tests.
7651 rm -f conftest.err conftest.i conftest.
$ac_ext
7654 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7655 rm -f conftest.i conftest.err conftest.
$ac_ext
7656 if $ac_preproc_ok; then :
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7669 $as_echo "$CPP" >&6; }
7671 for ac_c_preproc_warn_flag
in '' yes
7673 # Use a header file that comes with gcc, so configuring glibc
7674 # with a fresh cross-compiler works.
7675 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7676 # <limits.h> exists even on freestanding compilers.
7677 # On the NeXT, cc -E runs the code through the compiler's parser,
7678 # not just through cpp. "Syntax error" is here to catch this case.
7679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7680 /* end confdefs.h. */
7682 # include <limits.h>
7684 # include <assert.h>
7688 if ac_fn_c_try_cpp
"$LINENO"; then :
7691 # Broken: fails on valid input.
7694 rm -f conftest.err conftest.i conftest.
$ac_ext
7696 # OK, works on sane cases. Now check whether nonexistent headers
7697 # can be detected and how.
7698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7699 /* end confdefs.h. */
7700 #include <ac_nonexistent.h>
7702 if ac_fn_c_try_cpp
"$LINENO"; then :
7703 # Broken: success on invalid input.
7706 # Passes both tests.
7710 rm -f conftest.err conftest.i conftest.
$ac_ext
7713 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7714 rm -f conftest.i conftest.err conftest.
$ac_ext
7715 if $ac_preproc_ok; then :
7718 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7719 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7720 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
7721 See \`config.log' for more details" "$LINENO" 5; }
7725 ac_cpp
='$CPP $CPPFLAGS'
7726 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7727 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7728 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7734 # Set up TAS assembly code if needed; the template file has now had its
7735 # chance to request this.
7737 ac_config_links
="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
7740 if test "$need_tas" = yes ; then
7748 cat >>confdefs.h
<<_ACEOF
7749 #define DLSUFFIX "$DLSUFFIX"
7754 # Set up pkg_config in case we need it below
7763 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7764 if test -n "$ac_tool_prefix"; then
7765 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7766 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7768 $as_echo_n "checking for $ac_word... " >&6; }
7769 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
7770 $as_echo_n "(cached) " >&6
7774 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
7777 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7781 test -z "$as_dir" && as_dir
=.
7782 for ac_exec_ext
in '' $ac_executable_extensions; do
7783 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7784 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7795 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
7796 if test -n "$PKG_CONFIG"; then
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7798 $as_echo "$PKG_CONFIG" >&6; }
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7801 $as_echo "no" >&6; }
7806 if test -z "$ac_cv_path_PKG_CONFIG"; then
7807 ac_pt_PKG_CONFIG
=$PKG_CONFIG
7808 # Extract the first word of "pkg-config", so it can be a program name with args.
7809 set dummy pkg-config
; ac_word
=$2
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7811 $as_echo_n "checking for $ac_word... " >&6; }
7812 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
7813 $as_echo_n "(cached) " >&6
7815 case $ac_pt_PKG_CONFIG in
7817 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7820 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7824 test -z "$as_dir" && as_dir
=.
7825 for ac_exec_ext
in '' $ac_executable_extensions; do
7826 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7827 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7838 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
7839 if test -n "$ac_pt_PKG_CONFIG"; then
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7841 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7844 $as_echo "no" >&6; }
7847 if test "x$ac_pt_PKG_CONFIG" = x
; then
7850 case $cross_compiling:$ac_tool_warned in
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7853 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7854 ac_tool_warned
=yes ;;
7856 PKG_CONFIG
=$ac_pt_PKG_CONFIG
7859 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
7863 if test -n "$PKG_CONFIG"; then
7864 _pkg_min_version
=0.9.0
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7866 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7867 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7869 $as_echo "yes" >&6; }
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7872 $as_echo "no" >&6; }
7878 # Automatic dependency tracking
7882 # Check whether --enable-depend was given.
7883 if test "${enable_depend+set}" = set; then :
7884 enableval
=$enable_depend;
7893 as_fn_error $?
"no argument expected for --enable-depend option" "$LINENO" 5
7907 # Enable assert checks
7911 # Check whether --enable-cassert was given.
7912 if test "${enable_cassert+set}" = set; then :
7913 enableval
=$enable_cassert;
7917 $as_echo "#define USE_ASSERT_CHECKING 1" >>confdefs.h
7924 as_fn_error $?
"no argument expected for --enable-cassert option" "$LINENO" 5
7937 # Include directories
7940 IFS
="${IFS}${PATH_SEPARATOR}"
7941 # SRCH_INC comes from the template file
7942 for dir
in $with_includes $SRCH_INC; do
7943 if test -d "$dir"; then
7944 INCLUDES
="$INCLUDES -I$dir"
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Include directory $dir does not exist." >&5
7947 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
7955 # Library directories
7958 IFS
="${IFS}${PATH_SEPARATOR}"
7959 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
7960 for dir
in $LIBRARY_DIRS $SRCH_LIB; do
7961 if test -d "$dir"; then
7962 LIBDIRS
="$LIBDIRS -L$dir"
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Library directory $dir does not exist." >&5
7965 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with ICU support" >&5
7974 $as_echo_n "checking whether to build with ICU support... " >&6; }
7978 # Check whether --with-icu was given.
7979 if test "${with_icu+set}" = set; then :
7984 $as_echo "#define USE_ICU 1" >>confdefs.h
7991 as_fn_error $?
"no argument expected for --with-icu option" "$LINENO" 5
7998 $as_echo "#define USE_ICU 1" >>confdefs.h
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_icu" >&5
8004 $as_echo "$with_icu" >&6; }
8007 if test "$with_icu" = yes; then
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icu-uc icu-i18n" >&5
8011 $as_echo_n "checking for icu-uc icu-i18n... " >&6; }
8013 if test -n "$ICU_CFLAGS"; then
8014 pkg_cv_ICU_CFLAGS
="$ICU_CFLAGS"
8015 elif test -n "$PKG_CONFIG"; then
8016 if test -n "$PKG_CONFIG" && \
8017 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc icu-i18n\""; } >&5
8018 ($PKG_CONFIG --exists --print-errors "icu-uc icu-i18n") 2>&5
8020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8021 test $ac_status = 0; }; then
8022 pkg_cv_ICU_CFLAGS
=`$PKG_CONFIG --cflags "icu-uc icu-i18n" 2>/dev/null`
8023 test "x$?" != "x0" && pkg_failed
=yes
8030 if test -n "$ICU_LIBS"; then
8031 pkg_cv_ICU_LIBS
="$ICU_LIBS"
8032 elif test -n "$PKG_CONFIG"; then
8033 if test -n "$PKG_CONFIG" && \
8034 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc icu-i18n\""; } >&5
8035 ($PKG_CONFIG --exists --print-errors "icu-uc icu-i18n") 2>&5
8037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8038 test $ac_status = 0; }; then
8039 pkg_cv_ICU_LIBS
=`$PKG_CONFIG --libs "icu-uc icu-i18n" 2>/dev/null`
8040 test "x$?" != "x0" && pkg_failed
=yes
8050 if test $pkg_failed = yes; then
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8052 $as_echo "no" >&6; }
8054 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8055 _pkg_short_errors_supported
=yes
8057 _pkg_short_errors_supported
=no
8059 if test $_pkg_short_errors_supported = yes; then
8060 ICU_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "icu-uc icu-i18n" 2>&1`
8062 ICU_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "icu-uc icu-i18n" 2>&1`
8064 # Put the nasty error message in config.log where it belongs
8065 echo "$ICU_PKG_ERRORS" >&5
8067 as_fn_error $?
"Package requirements (icu-uc icu-i18n) were not met:
8071 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8072 installed software in a non-standard prefix.
8074 Alternatively, you may set the environment variables ICU_CFLAGS
8075 and ICU_LIBS to avoid the need to call pkg-config.
8076 See the pkg-config man page for more details." "$LINENO" 5
8077 elif test $pkg_failed = untried
; then
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8079 $as_echo "no" >&6; }
8080 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8081 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8082 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
8083 is in your PATH or set the PKG_CONFIG environment variable to the full
8086 Alternatively, you may set the environment variables ICU_CFLAGS
8087 and ICU_LIBS to avoid the need to call pkg-config.
8088 See the pkg-config man page for more details.
8090 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8091 See \`config.log' for more details" "$LINENO" 5; }
8093 ICU_CFLAGS
=$pkg_cv_ICU_CFLAGS
8094 ICU_LIBS
=$pkg_cv_ICU_LIBS
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8096 $as_echo "yes" >&6; }
8102 # Optionally build Tcl modules (PL/Tcl)
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with Tcl" >&5
8105 $as_echo_n "checking whether to build with Tcl... " >&6; }
8109 # Check whether --with-tcl was given.
8110 if test "${with_tcl+set}" = set; then :
8120 as_fn_error $?
"no argument expected for --with-tcl option" "$LINENO" 5
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcl" >&5
8131 $as_echo "$with_tcl" >&6; }
8134 # We see if the path to the Tcl/Tk configuration scripts is specified.
8135 # This will override the use of tclsh to find the paths to search.
8140 # Check whether --with-tclconfig was given.
8141 if test "${with_tclconfig+set}" = set; then :
8142 withval
=$with_tclconfig;
8145 as_fn_error $?
"argument required for --with-tclconfig option" "$LINENO" 5
8148 as_fn_error $?
"argument required for --with-tclconfig option" "$LINENO" 5
8160 # Optionally build Perl modules (PL/Perl)
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Perl modules" >&5
8163 $as_echo_n "checking whether to build Perl modules... " >&6; }
8167 # Check whether --with-perl was given.
8168 if test "${with_perl+set}" = set; then :
8178 as_fn_error $?
"no argument expected for --with-perl option" "$LINENO" 5
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_perl" >&5
8189 $as_echo "$with_perl" >&6; }
8193 # Optionally build Python modules (PL/Python)
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Python modules" >&5
8196 $as_echo_n "checking whether to build Python modules... " >&6; }
8200 # Check whether --with-python was given.
8201 if test "${with_python+set}" = set; then :
8202 withval
=$with_python;
8211 as_fn_error $?
"no argument expected for --with-python option" "$LINENO" 5
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
8222 $as_echo "$with_python" >&6; }
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with GSSAPI support" >&5
8229 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
8233 # Check whether --with-gssapi was given.
8234 if test "${with_gssapi+set}" = set; then :
8235 withval
=$with_gssapi;
8240 $as_echo "#define ENABLE_GSS 1" >>confdefs.h
8242 krb_srvtab
="FILE:\$(sysconfdir)/krb5.keytab"
8249 as_fn_error $?
"no argument expected for --with-gssapi option" "$LINENO" 5
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_gssapi" >&5
8260 $as_echo "$with_gssapi" >&6; }
8268 # Kerberos configuration parameters
8273 # Check whether --with-krb-srvnam was given.
8274 if test "${with_krb_srvnam+set}" = set; then :
8275 withval
=$with_krb_srvnam;
8278 as_fn_error $?
"argument required for --with-krb-srvnam option" "$LINENO" 5
8281 as_fn_error $?
"argument required for --with-krb-srvnam option" "$LINENO" 5
8289 with_krb_srvnam
="postgres"
8295 cat >>confdefs.h
<<_ACEOF
8296 #define PG_KRB_SRVNAM "$with_krb_srvnam"
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with PAM support" >&5
8305 $as_echo_n "checking whether to build with PAM support... " >&6; }
8309 # Check whether --with-pam was given.
8310 if test "${with_pam+set}" = set; then :
8315 $as_echo "#define USE_PAM 1" >>confdefs.h
8322 as_fn_error $?
"no argument expected for --with-pam option" "$LINENO" 5
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pam" >&5
8333 $as_echo "$with_pam" >&6; }
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with BSD Authentication support" >&5
8340 $as_echo_n "checking whether to build with BSD Authentication support... " >&6; }
8344 # Check whether --with-bsd-auth was given.
8345 if test "${with_bsd_auth+set}" = set; then :
8346 withval
=$with_bsd_auth;
8350 $as_echo "#define USE_BSD_AUTH 1" >>confdefs.h
8357 as_fn_error $?
"no argument expected for --with-bsd-auth option" "$LINENO" 5
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_bsd_auth" >&5
8368 $as_echo "$with_bsd_auth" >&6; }
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with LDAP support" >&5
8375 $as_echo_n "checking whether to build with LDAP support... " >&6; }
8379 # Check whether --with-ldap was given.
8380 if test "${with_ldap+set}" = set; then :
8385 $as_echo "#define USE_LDAP 1" >>confdefs.h
8392 as_fn_error $?
"no argument expected for --with-ldap option" "$LINENO" 5
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ldap" >&5
8403 $as_echo "$with_ldap" >&6; }
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with Bonjour support" >&5
8411 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
8415 # Check whether --with-bonjour was given.
8416 if test "${with_bonjour+set}" = set; then :
8417 withval
=$with_bonjour;
8421 $as_echo "#define USE_BONJOUR 1" >>confdefs.h
8428 as_fn_error $?
"no argument expected for --with-bonjour option" "$LINENO" 5
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_bonjour" >&5
8439 $as_echo "$with_bonjour" >&6; }
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with SELinux support" >&5
8446 $as_echo_n "checking whether to build with SELinux support... " >&6; }
8450 # Check whether --with-selinux was given.
8451 if test "${with_selinux+set}" = set; then :
8452 withval
=$with_selinux;
8461 as_fn_error $?
"no argument expected for --with-selinux option" "$LINENO" 5
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_selinux" >&5
8473 $as_echo "$with_selinux" >&6; }
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with systemd support" >&5
8479 $as_echo_n "checking whether to build with systemd support... " >&6; }
8483 # Check whether --with-systemd was given.
8484 if test "${with_systemd+set}" = set; then :
8485 withval
=$with_systemd;
8489 $as_echo "#define USE_SYSTEMD 1" >>confdefs.h
8496 as_fn_error $?
"no argument expected for --with-systemd option" "$LINENO" 5
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemd" >&5
8508 $as_echo "$with_systemd" >&6; }
8516 # Check whether --with-readline was given.
8517 if test "${with_readline+set}" = set; then :
8518 withval
=$with_readline;
8527 as_fn_error $?
"no argument expected for --with-readline option" "$LINENO" 5
8537 # readline on MinGW has problems with backslashes in psql and other bugs.
8538 # This is particularly a problem with non-US code pages.
8539 # Therefore disable its use until we understand the cause. 2004-07-20
8540 if test "$PORTNAME" = "win32"; then
8541 if test "$with_readline" = yes; then
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Readline does not work on MinGW --- disabling" >&5
8543 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
8556 # Check whether --with-libedit-preferred was given.
8557 if test "${with_libedit_preferred+set}" = set; then :
8558 withval
=$with_libedit_preferred;
8567 as_fn_error $?
"no argument expected for --with-libedit-preferred option" "$LINENO" 5
8572 with_libedit_preferred
=no
8582 # There are at least three UUID libraries in common use: the FreeBSD/NetBSD
8583 # library, the e2fsprogs libuuid (now part of util-linux-ng), and the OSSP
8584 # UUID library. More than one of these might be present on a given platform,
8585 # so we make the user say which one she wants.
8590 # Check whether --with-uuid was given.
8591 if test "${with_uuid+set}" = set; then :
8595 as_fn_error $?
"argument required for --with-uuid option" "$LINENO" 5
8598 as_fn_error $?
"argument required for --with-uuid option" "$LINENO" 5
8608 if test x
"$with_uuid" = x
"" ; then
8614 # Check whether --with-ossp-uuid was given.
8615 if test "${with_ossp_uuid+set}" = set; then :
8616 withval
=$with_ossp_uuid;
8625 as_fn_error $?
"no argument expected for --with-ossp-uuid option" "$LINENO" 5
8635 if test "$with_ossp_uuid" = yes ; then
8639 if test "$with_uuid" != no
; then
8640 if test "$with_uuid" = bsd
; then
8642 $as_echo "#define HAVE_UUID_BSD 1" >>confdefs.h
8644 elif test "$with_uuid" = e2fs
; then
8646 $as_echo "#define HAVE_UUID_E2FS 1" >>confdefs.h
8648 elif test "$with_uuid" = ossp
; then
8650 $as_echo "#define HAVE_UUID_OSSP 1" >>confdefs.h
8653 as_fn_error $?
"--with-uuid must specify one of bsd, e2fs, or ossp" "$LINENO" 5
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with XML support" >&5
8663 $as_echo_n "checking whether to build with XML support... " >&6; }
8667 # Check whether --with-libxml was given.
8668 if test "${with_libxml+set}" = set; then :
8669 withval
=$with_libxml;
8673 $as_echo "#define USE_LIBXML 1" >>confdefs.h
8680 as_fn_error $?
"no argument expected for --with-libxml option" "$LINENO" 5
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_libxml" >&5
8691 $as_echo "$with_libxml" >&6; }
8694 if test "$with_libxml" = yes ; then
8695 # Check pkg-config, then xml2-config. But for backwards compatibility,
8696 # setting XML2_CONFIG overrides pkg-config.
8697 have_libxml2_pkg_config
=no
8698 if test -z "$XML2_CONFIG" -a -n "$PKG_CONFIG"; then
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.6.23" >&5
8702 $as_echo_n "checking for libxml-2.0 >= 2.6.23... " >&6; }
8704 if test -n "$XML2_CFLAGS"; then
8705 pkg_cv_XML2_CFLAGS
="$XML2_CFLAGS"
8706 elif test -n "$PKG_CONFIG"; then
8707 if test -n "$PKG_CONFIG" && \
8708 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.23\""; } >&5
8709 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.23") 2>&5
8711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8712 test $ac_status = 0; }; then
8713 pkg_cv_XML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.23" 2>/dev/null`
8714 test "x$?" != "x0" && pkg_failed
=yes
8721 if test -n "$XML2_LIBS"; then
8722 pkg_cv_XML2_LIBS
="$XML2_LIBS"
8723 elif test -n "$PKG_CONFIG"; then
8724 if test -n "$PKG_CONFIG" && \
8725 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.23\""; } >&5
8726 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.23") 2>&5
8728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8729 test $ac_status = 0; }; then
8730 pkg_cv_XML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.23" 2>/dev/null`
8731 test "x$?" != "x0" && pkg_failed
=yes
8741 if test $pkg_failed = yes; then
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8743 $as_echo "no" >&6; }
8745 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8746 _pkg_short_errors_supported
=yes
8748 _pkg_short_errors_supported
=no
8750 if test $_pkg_short_errors_supported = yes; then
8751 XML2_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6.23" 2>&1`
8753 XML2_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6.23" 2>&1`
8755 # Put the nasty error message in config.log where it belongs
8756 echo "$XML2_PKG_ERRORS" >&5
8759 elif test $pkg_failed = untried
; then
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8761 $as_echo "no" >&6; }
8764 XML2_CFLAGS
=$pkg_cv_XML2_CFLAGS
8765 XML2_LIBS
=$pkg_cv_XML2_LIBS
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8767 $as_echo "yes" >&6; }
8768 have_libxml2_pkg_config
=yes
8771 if test "$have_libxml2_pkg_config" = no
; then
8772 if test -z "$XML2_CONFIG"; then
8773 for ac_prog
in xml2-config
8775 # Extract the first word of "$ac_prog", so it can be a program name with args.
8776 set dummy
$ac_prog; ac_word
=$2
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8778 $as_echo_n "checking for $ac_word... " >&6; }
8779 if ${ac_cv_path_XML2_CONFIG+:} false
; then :
8780 $as_echo_n "(cached) " >&6
8782 case $XML2_CONFIG in
8784 ac_cv_path_XML2_CONFIG
="$XML2_CONFIG" # Let the user override the test with a path.
8787 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8791 test -z "$as_dir" && as_dir
=.
8792 for ac_exec_ext
in '' $ac_executable_extensions; do
8793 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8794 ac_cv_path_XML2_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8805 XML2_CONFIG
=$ac_cv_path_XML2_CONFIG
8806 if test -n "$XML2_CONFIG"; then
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
8808 $as_echo "$XML2_CONFIG" >&6; }
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8811 $as_echo "no" >&6; }
8815 test -n "$XML2_CONFIG" && break
8819 # Report the value of XML2_CONFIG in configure's output in all cases.
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML2_CONFIG" >&5
8821 $as_echo_n "checking for XML2_CONFIG... " >&6; }
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
8823 $as_echo "$XML2_CONFIG" >&6; }
8826 if test -n "$XML2_CONFIG"; then
8827 XML2_CFLAGS
=`$XML2_CONFIG --cflags`
8828 XML2_LIBS
=`$XML2_CONFIG --libs`
8831 # Note the user could also set XML2_CFLAGS/XML2_LIBS directly
8832 for pgac_option
in $XML2_CFLAGS; do
8833 case $pgac_option in
8834 -I*|
-D*) CPPFLAGS
="$CPPFLAGS $pgac_option";;
8837 for pgac_option
in $XML2_LIBS; do
8838 case $pgac_option in
8839 -L*) LDFLAGS
="$LDFLAGS $pgac_option";;
8851 # Check whether --with-libxslt was given.
8852 if test "${with_libxslt+set}" = set; then :
8853 withval
=$with_libxslt;
8857 $as_echo "#define USE_LIBXSLT 1" >>confdefs.h
8864 as_fn_error $?
"no argument expected for --with-libxslt option" "$LINENO" 5
8884 # Check whether --with-system-tzdata was given.
8885 if test "${with_system_tzdata+set}" = set; then :
8886 withval
=$with_system_tzdata;
8889 as_fn_error $?
"argument required for --with-system-tzdata option" "$LINENO" 5
8892 as_fn_error $?
"argument required for --with-system-tzdata option" "$LINENO" 5
8910 # Check whether --with-zlib was given.
8911 if test "${with_zlib+set}" = set; then :
8921 as_fn_error $?
"no argument expected for --with-zlib option" "$LINENO" 5
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with LZ4 support" >&5
8937 $as_echo_n "checking whether to build with LZ4 support... " >&6; }
8941 # Check whether --with-lz4 was given.
8942 if test "${with_lz4+set}" = set; then :
8947 $as_echo "#define USE_LZ4 1" >>confdefs.h
8954 as_fn_error $?
"no argument expected for --with-lz4 option" "$LINENO" 5
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lz4" >&5
8965 $as_echo "$with_lz4" >&6; }
8968 if test "$with_lz4" = yes; then
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblz4" >&5
8972 $as_echo_n "checking for liblz4... " >&6; }
8974 if test -n "$LZ4_CFLAGS"; then
8975 pkg_cv_LZ4_CFLAGS
="$LZ4_CFLAGS"
8976 elif test -n "$PKG_CONFIG"; then
8977 if test -n "$PKG_CONFIG" && \
8978 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblz4\""; } >&5
8979 ($PKG_CONFIG --exists --print-errors "liblz4") 2>&5
8981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8982 test $ac_status = 0; }; then
8983 pkg_cv_LZ4_CFLAGS
=`$PKG_CONFIG --cflags "liblz4" 2>/dev/null`
8984 test "x$?" != "x0" && pkg_failed
=yes
8991 if test -n "$LZ4_LIBS"; then
8992 pkg_cv_LZ4_LIBS
="$LZ4_LIBS"
8993 elif test -n "$PKG_CONFIG"; then
8994 if test -n "$PKG_CONFIG" && \
8995 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblz4\""; } >&5
8996 ($PKG_CONFIG --exists --print-errors "liblz4") 2>&5
8998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8999 test $ac_status = 0; }; then
9000 pkg_cv_LZ4_LIBS
=`$PKG_CONFIG --libs "liblz4" 2>/dev/null`
9001 test "x$?" != "x0" && pkg_failed
=yes
9011 if test $pkg_failed = yes; then
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9013 $as_echo "no" >&6; }
9015 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9016 _pkg_short_errors_supported
=yes
9018 _pkg_short_errors_supported
=no
9020 if test $_pkg_short_errors_supported = yes; then
9021 LZ4_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblz4" 2>&1`
9023 LZ4_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "liblz4" 2>&1`
9025 # Put the nasty error message in config.log where it belongs
9026 echo "$LZ4_PKG_ERRORS" >&5
9028 as_fn_error $?
"Package requirements (liblz4) were not met:
9032 Consider adjusting the PKG_CONFIG_PATH environment variable if you
9033 installed software in a non-standard prefix.
9035 Alternatively, you may set the environment variables LZ4_CFLAGS
9036 and LZ4_LIBS to avoid the need to call pkg-config.
9037 See the pkg-config man page for more details." "$LINENO" 5
9038 elif test $pkg_failed = untried
; then
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9040 $as_echo "no" >&6; }
9041 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9042 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9043 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
9044 is in your PATH or set the PKG_CONFIG environment variable to the full
9047 Alternatively, you may set the environment variables LZ4_CFLAGS
9048 and LZ4_LIBS to avoid the need to call pkg-config.
9049 See the pkg-config man page for more details.
9051 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
9052 See \`config.log' for more details" "$LINENO" 5; }
9054 LZ4_CFLAGS
=$pkg_cv_LZ4_CFLAGS
9055 LZ4_LIBS
=$pkg_cv_LZ4_LIBS
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9057 $as_echo "yes" >&6; }
9060 # We only care about -I, -D, and -L switches;
9061 # note that -llz4 will be added by AC_CHECK_LIB below.
9062 for pgac_option
in $LZ4_CFLAGS; do
9063 case $pgac_option in
9064 -I*|
-D*) CPPFLAGS
="$CPPFLAGS $pgac_option";;
9067 for pgac_option
in $LZ4_LIBS; do
9068 case $pgac_option in
9069 -L*) LDFLAGS
="$LDFLAGS $pgac_option";;
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with ZSTD support" >&5
9078 $as_echo_n "checking whether to build with ZSTD support... " >&6; }
9082 # Check whether --with-zstd was given.
9083 if test "${with_zstd+set}" = set; then :
9088 $as_echo "#define USE_ZSTD 1" >>confdefs.h
9095 as_fn_error $?
"no argument expected for --with-zstd option" "$LINENO" 5
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_zstd" >&5
9106 $as_echo "$with_zstd" >&6; }
9109 if test "$with_zstd" = yes; then
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.4.0" >&5
9113 $as_echo_n "checking for libzstd >= 1.4.0... " >&6; }
9115 if test -n "$ZSTD_CFLAGS"; then
9116 pkg_cv_ZSTD_CFLAGS
="$ZSTD_CFLAGS"
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 \"libzstd >= 1.4.0\""; } >&5
9120 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
9122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9123 test $ac_status = 0; }; then
9124 pkg_cv_ZSTD_CFLAGS
=`$PKG_CONFIG --cflags "libzstd >= 1.4.0" 2>/dev/null`
9125 test "x$?" != "x0" && pkg_failed
=yes
9132 if test -n "$ZSTD_LIBS"; then
9133 pkg_cv_ZSTD_LIBS
="$ZSTD_LIBS"
9134 elif test -n "$PKG_CONFIG"; then
9135 if test -n "$PKG_CONFIG" && \
9136 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
9137 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
9139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9140 test $ac_status = 0; }; then
9141 pkg_cv_ZSTD_LIBS
=`$PKG_CONFIG --libs "libzstd >= 1.4.0" 2>/dev/null`
9142 test "x$?" != "x0" && pkg_failed
=yes
9152 if test $pkg_failed = yes; then
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9154 $as_echo "no" >&6; }
9156 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9157 _pkg_short_errors_supported
=yes
9159 _pkg_short_errors_supported
=no
9161 if test $_pkg_short_errors_supported = yes; then
9162 ZSTD_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
9164 ZSTD_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
9166 # Put the nasty error message in config.log where it belongs
9167 echo "$ZSTD_PKG_ERRORS" >&5
9169 as_fn_error $?
"Package requirements (libzstd >= 1.4.0) were not met:
9173 Consider adjusting the PKG_CONFIG_PATH environment variable if you
9174 installed software in a non-standard prefix.
9176 Alternatively, you may set the environment variables ZSTD_CFLAGS
9177 and ZSTD_LIBS to avoid the need to call pkg-config.
9178 See the pkg-config man page for more details." "$LINENO" 5
9179 elif test $pkg_failed = untried
; then
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9181 $as_echo "no" >&6; }
9182 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9184 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
9185 is in your PATH or set the PKG_CONFIG environment variable to the full
9188 Alternatively, you may set the environment variables ZSTD_CFLAGS
9189 and ZSTD_LIBS to avoid the need to call pkg-config.
9190 See the pkg-config man page for more details.
9192 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
9193 See \`config.log' for more details" "$LINENO" 5; }
9195 ZSTD_CFLAGS
=$pkg_cv_ZSTD_CFLAGS
9196 ZSTD_LIBS
=$pkg_cv_ZSTD_LIBS
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9198 $as_echo "yes" >&6; }
9201 # We only care about -I, -D, and -L switches;
9202 # note that -lzstd will be added by AC_CHECK_LIB below.
9203 for pgac_option
in $ZSTD_CFLAGS; do
9204 case $pgac_option in
9205 -I*|
-D*) CPPFLAGS
="$CPPFLAGS $pgac_option";;
9208 for pgac_option
in $ZSTD_LIBS; do
9209 case $pgac_option in
9210 -L*) LDFLAGS
="$LDFLAGS $pgac_option";;
9218 CPPFLAGS
="$CPPFLAGS $INCLUDES"
9219 LDFLAGS
="$LDFLAGS $LIBDIRS"
9225 if test -n "$ac_tool_prefix"; then
9226 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9227 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9229 $as_echo_n "checking for $ac_word... " >&6; }
9230 if ${ac_cv_prog_STRIP+:} false
; then :
9231 $as_echo_n "(cached) " >&6
9233 if test -n "$STRIP"; then
9234 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
9236 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9240 test -z "$as_dir" && as_dir
=.
9241 for ac_exec_ext
in '' $ac_executable_extensions; do
9242 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9243 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
9244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9253 STRIP
=$ac_cv_prog_STRIP
9254 if test -n "$STRIP"; then
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9256 $as_echo "$STRIP" >&6; }
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9259 $as_echo "no" >&6; }
9264 if test -z "$ac_cv_prog_STRIP"; then
9266 # Extract the first word of "strip", so it can be a program name with args.
9267 set dummy strip
; ac_word
=$2
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9269 $as_echo_n "checking for $ac_word... " >&6; }
9270 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
9271 $as_echo_n "(cached) " >&6
9273 if test -n "$ac_ct_STRIP"; then
9274 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
9276 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9280 test -z "$as_dir" && as_dir
=.
9281 for ac_exec_ext
in '' $ac_executable_extensions; do
9282 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9283 ac_cv_prog_ac_ct_STRIP
="strip"
9284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9293 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
9294 if test -n "$ac_ct_STRIP"; then
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9296 $as_echo "$ac_ct_STRIP" >&6; }
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9299 $as_echo "no" >&6; }
9302 if test "x$ac_ct_STRIP" = x
; then
9305 case $cross_compiling:$ac_tool_warned in
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9309 ac_tool_warned
=yes ;;
9314 STRIP
="$ac_cv_prog_STRIP"
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is possible to strip libraries" >&5
9319 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
9320 if test x
"$STRIP" != x
"" && "$STRIP" -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
9321 STRIP_STATIC_LIB
="$STRIP --strip-unneeded"
9322 STRIP_SHARED_LIB
="$STRIP --strip-unneeded"
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9324 $as_echo "yes" >&6; }
9329 STRIP_STATIC_LIB
=$STRIP
9330 STRIP_SHARED_LIB
=$STRIP
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9332 $as_echo "yes" >&6; }
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9338 $as_echo "no" >&6; }
9345 if test -n "$ac_tool_prefix"; then
9346 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9347 set dummy
${ac_tool_prefix}ar; ac_word
=$2
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9349 $as_echo_n "checking for $ac_word... " >&6; }
9350 if ${ac_cv_prog_AR+:} false
; then :
9351 $as_echo_n "(cached) " >&6
9353 if test -n "$AR"; then
9354 ac_cv_prog_AR
="$AR" # Let the user override the test.
9356 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9360 test -z "$as_dir" && as_dir
=.
9361 for ac_exec_ext
in '' $ac_executable_extensions; do
9362 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9363 ac_cv_prog_AR
="${ac_tool_prefix}ar"
9364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9374 if test -n "$AR"; then
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9376 $as_echo "$AR" >&6; }
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9379 $as_echo "no" >&6; }
9384 if test -z "$ac_cv_prog_AR"; then
9386 # Extract the first word of "ar", so it can be a program name with args.
9387 set dummy
ar; ac_word
=$2
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9389 $as_echo_n "checking for $ac_word... " >&6; }
9390 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
9391 $as_echo_n "(cached) " >&6
9393 if test -n "$ac_ct_AR"; then
9394 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
9396 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9400 test -z "$as_dir" && as_dir
=.
9401 for ac_exec_ext
in '' $ac_executable_extensions; do
9402 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9403 ac_cv_prog_ac_ct_AR
="ar"
9404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9413 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
9414 if test -n "$ac_ct_AR"; then
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9416 $as_echo "$ac_ct_AR" >&6; }
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9419 $as_echo "no" >&6; }
9422 if test "x$ac_ct_AR" = x
; then
9425 case $cross_compiling:$ac_tool_warned in
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9429 ac_tool_warned
=yes ;;
9437 if test "$PORTNAME" = "win32"; then
9438 if test -n "$ac_tool_prefix"; then
9439 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
9440 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9442 $as_echo_n "checking for $ac_word... " >&6; }
9443 if ${ac_cv_prog_WINDRES+:} false
; then :
9444 $as_echo_n "(cached) " >&6
9446 if test -n "$WINDRES"; then
9447 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
9449 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9453 test -z "$as_dir" && as_dir
=.
9454 for ac_exec_ext
in '' $ac_executable_extensions; do
9455 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9456 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
9457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9466 WINDRES
=$ac_cv_prog_WINDRES
9467 if test -n "$WINDRES"; then
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9469 $as_echo "$WINDRES" >&6; }
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9472 $as_echo "no" >&6; }
9477 if test -z "$ac_cv_prog_WINDRES"; then
9478 ac_ct_WINDRES
=$WINDRES
9479 # Extract the first word of "windres", so it can be a program name with args.
9480 set dummy windres
; ac_word
=$2
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9482 $as_echo_n "checking for $ac_word... " >&6; }
9483 if ${ac_cv_prog_ac_ct_WINDRES+:} false
; then :
9484 $as_echo_n "(cached) " >&6
9486 if test -n "$ac_ct_WINDRES"; then
9487 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
9489 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9493 test -z "$as_dir" && as_dir
=.
9494 for ac_exec_ext
in '' $ac_executable_extensions; do
9495 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9496 ac_cv_prog_ac_ct_WINDRES
="windres"
9497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9506 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
9507 if test -n "$ac_ct_WINDRES"; then
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
9509 $as_echo "$ac_ct_WINDRES" >&6; }
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9512 $as_echo "no" >&6; }
9515 if test "x$ac_ct_WINDRES" = x
; then
9518 case $cross_compiling:$ac_tool_warned in
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9522 ac_tool_warned
=yes ;;
9524 WINDRES
=$ac_ct_WINDRES
9527 WINDRES
="$ac_cv_prog_WINDRES"
9532 # Find a good install program. We prefer a C program (faster),
9533 # so one script is as good as another. But avoid the broken or
9534 # incompatible versions:
9535 # SysV /etc/install, /usr/sbin/install
9536 # SunOS /usr/etc/install
9537 # IRIX /sbin/install
9539 # AmigaOS /C/install, which installs bootblocks on floppy discs
9540 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9541 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9542 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9543 # OS/2's system install, which has a completely different semantic
9544 # ./install, which can be erroneously created by make from ./install.sh.
9545 # Reject install programs that cannot install multiple files.
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
9547 $as_echo_n "checking for a BSD-compatible install... " >&6; }
9548 if test -z "$INSTALL"; then
9549 if ${ac_cv_path_install+:} false
; then :
9550 $as_echo_n "(cached) " >&6
9552 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9556 test -z "$as_dir" && as_dir
=.
9557 # Account for people who put trailing slashes in PATH elements.
9558 case $as_dir/ in #((
9559 .
/ | .
// |
/[cC
]/* | \
9560 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
9561 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
9564 # OSF1 and SCO ODT 3.0 have their own names for install.
9565 # Don't use installbsd from OSF since it installs stuff as root
9567 for ac_prog
in ginstall scoinst
install; do
9568 for ac_exec_ext
in '' $ac_executable_extensions; do
9569 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
9570 if test $ac_prog = install &&
9571 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
9572 # AIX install. It has an incompatible calling convention.
9574 elif test $ac_prog = install &&
9575 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
9576 # program-specific install script used by HP pwplus--don't use.
9579 rm -rf conftest.one conftest.two conftest.dir
9580 echo one
> conftest.one
9581 echo two
> conftest.two
9583 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
9584 test -s conftest.one
&& test -s conftest.two
&&
9585 test -s conftest.dir
/conftest.one
&&
9586 test -s conftest.dir
/conftest.two
9588 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
9601 rm -rf conftest.one conftest.two conftest.dir
9604 if test "${ac_cv_path_install+set}" = set; then
9605 INSTALL
=$ac_cv_path_install
9607 # As a last resort, use the slow shell script. Don't cache a
9608 # value for INSTALL within a source directory, because that will
9609 # break other packages using the cache if that directory is
9610 # removed, or if the value is a relative name.
9611 INSTALL
=$ac_install_sh
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
9615 $as_echo "$INSTALL" >&6; }
9617 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9618 # It thinks the first close brace ends the variable substitution.
9619 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
9621 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
9623 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
9625 # When Autoconf chooses install-sh as install program it tries to generate
9626 # a relative path to it in each makefile where it substitutes it. This clashes
9627 # with our Makefile.global concept. This workaround helps.
9629 *install-sh
*) install_bin
='';;
9630 *) install_bin
=$INSTALL;;
9634 if test -z "$TAR"; then
9637 # Extract the first word of "$ac_prog", so it can be a program name with args.
9638 set dummy
$ac_prog; ac_word
=$2
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9640 $as_echo_n "checking for $ac_word... " >&6; }
9641 if ${ac_cv_path_TAR+:} false
; then :
9642 $as_echo_n "(cached) " >&6
9646 ac_cv_path_TAR
="$TAR" # Let the user override the test with a path.
9649 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9653 test -z "$as_dir" && as_dir
=.
9654 for ac_exec_ext
in '' $ac_executable_extensions; do
9655 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9656 ac_cv_path_TAR
="$as_dir/$ac_word$ac_exec_ext"
9657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9668 if test -n "$TAR"; then
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9670 $as_echo "$TAR" >&6; }
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9673 $as_echo "no" >&6; }
9677 test -n "$TAR" && break
9681 # Report the value of TAR in configure's output in all cases.
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
9683 $as_echo_n "checking for TAR... " >&6; }
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9685 $as_echo "$TAR" >&6; }
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9689 $as_echo_n "checking whether ln -s works... " >&6; }
9691 if test "$LN_S" = "ln -s"; then
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9693 $as_echo "yes" >&6; }
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9696 $as_echo "no, using $LN_S" >&6; }
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
9700 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
9701 if test -z "$MKDIR_P"; then
9702 if ${ac_cv_path_mkdir+:} false
; then :
9703 $as_echo_n "(cached) " >&6
9705 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9706 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
9709 test -z "$as_dir" && as_dir
=.
9710 for ac_prog
in mkdir gmkdir
; do
9711 for ac_exec_ext
in '' $ac_executable_extensions; do
9712 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
9713 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
9714 'mkdir (GNU coreutils) '* | \
9715 'mkdir (coreutils) '* | \
9716 'mkdir (fileutils) '4.1*)
9717 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
9727 test -d .
/--version && rmdir .
/--version
9728 if test "${ac_cv_path_mkdir+set}" = set; then
9729 MKDIR_P
="$ac_cv_path_mkdir -p"
9731 # As a last resort, use the slow shell script. Don't cache a
9732 # value for MKDIR_P within a source directory, because that will
9733 # break other packages using the cache if that directory is
9734 # removed, or if the value is a relative name.
9735 MKDIR_P
="$ac_install_sh -d"
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
9739 $as_echo "$MKDIR_P" >&6; }
9741 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
9742 # a relative path to it in each makefile where it substitutes it. This clashes
9743 # with our Makefile.global concept. This workaround helps.
9745 *install-sh
*) MKDIR_P
='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
9748 if test -z "$BISON"; then
9749 for ac_prog
in bison
9751 # Extract the first word of "$ac_prog", so it can be a program name with args.
9752 set dummy
$ac_prog; ac_word
=$2
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9754 $as_echo_n "checking for $ac_word... " >&6; }
9755 if ${ac_cv_path_BISON+:} false
; then :
9756 $as_echo_n "(cached) " >&6
9760 ac_cv_path_BISON
="$BISON" # Let the user override the test with a path.
9763 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9767 test -z "$as_dir" && as_dir
=.
9768 for ac_exec_ext
in '' $ac_executable_extensions; do
9769 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9770 ac_cv_path_BISON
="$as_dir/$ac_word$ac_exec_ext"
9771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9781 BISON
=$ac_cv_path_BISON
9782 if test -n "$BISON"; then
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
9784 $as_echo "$BISON" >&6; }
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9787 $as_echo "no" >&6; }
9791 test -n "$BISON" && break
9795 # Report the value of BISON in configure's output in all cases.
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BISON" >&5
9797 $as_echo_n "checking for BISON... " >&6; }
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
9799 $as_echo "$BISON" >&6; }
9803 if test "$BISON"; then
9804 pgac_bison_version
=`$BISON --version 2>/dev/null | sed q`
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: using $pgac_bison_version" >&5
9806 $as_echo "$as_me: using $pgac_bison_version" >&6;}
9807 if echo "$pgac_bison_version" |
$AWK '{ if ($4 < 2.3) exit 0; else exit 1;}'
9810 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
9811 *** Bison version 2.3 or later is required, but this is $pgac_bison_version." "$LINENO" 5
9813 # Bison >=3.0 issues warnings about %name-prefix="base_yy", instead
9814 # of the now preferred %name-prefix "base_yy", but the latter
9815 # doesn't work with Bison 2.3 or less. So for now we silence the
9816 # deprecation warnings.
9817 if echo "$pgac_bison_version" |
$AWK '{ if ($4 >= 3) exit 0; else exit 1;}'
9819 BISONFLAGS
="$BISONFLAGS -Wno-deprecated"
9823 if test -z "$BISON"; then
9824 as_fn_error $?
"bison not found" "$LINENO" 5
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex" >&5
9829 $as_echo_n "checking for flex... " >&6; }
9830 if ${pgac_cv_path_flex+:} false
; then :
9831 $as_echo_n "(cached) " >&6
9833 # Let the user override the test
9834 if test -n "$FLEX"; then
9835 pgac_cv_path_flex
=$FLEX
9839 for pgac_dir
in $PATH; do
9841 if test -z "$pgac_dir" ||
test x
"$pgac_dir" = x
"."; then
9844 for pgac_prog
in flex
lex; do
9845 pgac_candidate
="$pgac_dir/$pgac_prog"
9846 if test -f "$pgac_candidate" \
9847 && $pgac_candidate --version </dev
/null
>/dev
/null
2>&1
9849 echo '%%' > conftest.l
9850 if $pgac_candidate -t conftest.l
2>/dev
/null |
grep FLEX_SCANNER
>/dev
/null
2>&1; then
9851 pgac_flex_version
=`$pgac_candidate --version 2>/dev/null`
9852 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;}'
9854 pgac_cv_path_flex
=$pgac_candidate
9858 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
9859 *** Flex version 2.5.35 or later is required, but this is $pgac_flex_version." "$LINENO" 5
9865 rm -f conftest.l
lex.yy.c
9866 : ${pgac_cv_path_flex=no}
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_path_flex" >&5
9871 $as_echo "$pgac_cv_path_flex" >&6; }
9872 if test x
"$pgac_cv_path_flex" = x
"no"; then
9873 as_fn_error $?
"flex not found" "$LINENO" 5
9875 FLEX
=$pgac_cv_path_flex
9876 pgac_flex_version
=`$FLEX --version 2>/dev/null`
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: using $pgac_flex_version" >&5
9878 $as_echo "$as_me: using $pgac_flex_version" >&6;}
9885 if test -z "$PERL"; then
9888 # Extract the first word of "$ac_prog", so it can be a program name with args.
9889 set dummy
$ac_prog; ac_word
=$2
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9891 $as_echo_n "checking for $ac_word... " >&6; }
9892 if ${ac_cv_path_PERL+:} false
; then :
9893 $as_echo_n "(cached) " >&6
9897 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
9900 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9904 test -z "$as_dir" && as_dir
=.
9905 for ac_exec_ext
in '' $ac_executable_extensions; do
9906 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9907 ac_cv_path_PERL
="$as_dir/$ac_word$ac_exec_ext"
9908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9918 PERL
=$ac_cv_path_PERL
9919 if test -n "$PERL"; then
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
9921 $as_echo "$PERL" >&6; }
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9924 $as_echo "no" >&6; }
9928 test -n "$PERL" && break
9932 # Report the value of PERL in configure's output in all cases.
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PERL" >&5
9934 $as_echo_n "checking for PERL... " >&6; }
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
9936 $as_echo "$PERL" >&6; }
9940 if test "$PERL"; then
9941 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'`
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: using perl $pgac_perl_version" >&5
9943 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
9944 if echo "$pgac_perl_version" |
sed 's/[.a-z_]/ /g' | \
9945 $AWK '{ if ($1 == 5 && ($2 >= 14)) exit 1; else exit 0;}'
9948 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
9949 *** Perl version 5.14 or later is required, but this is $pgac_perl_version." "$LINENO" 5
9953 if test -z "$PERL"; then
9954 as_fn_error $?
"Perl not found" "$LINENO" 5
9957 if test "$with_perl" = yes; then
9958 if test -z "$PERL"; then
9959 as_fn_error $?
"Perl not found" "$LINENO" 5
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl archlibexp" >&5
9963 $as_echo_n "checking for Perl archlibexp... " >&6; }
9964 perl_archlibexp
=`$PERL -MConfig -e 'print $Config{archlibexp}'`
9965 test "$PORTNAME" = "win32" && perl_archlibexp
=`echo $perl_archlibexp | sed 's,\\\\,/,g'`
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_archlibexp" >&5
9967 $as_echo "$perl_archlibexp" >&6; }
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl privlibexp" >&5
9969 $as_echo_n "checking for Perl privlibexp... " >&6; }
9970 perl_privlibexp
=`$PERL -MConfig -e 'print $Config{privlibexp}'`
9971 test "$PORTNAME" = "win32" && perl_privlibexp
=`echo $perl_privlibexp | sed 's,\\\\,/,g'`
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_privlibexp" >&5
9973 $as_echo "$perl_privlibexp" >&6; }
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl useshrplib" >&5
9975 $as_echo_n "checking for Perl useshrplib... " >&6; }
9976 perl_useshrplib
=`$PERL -MConfig -e 'print $Config{useshrplib}'`
9977 test "$PORTNAME" = "win32" && perl_useshrplib
=`echo $perl_useshrplib | sed 's,\\\\,/,g'`
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_useshrplib" >&5
9979 $as_echo "$perl_useshrplib" >&6; }
9980 if test "$perl_useshrplib" != yes && test "$perl_useshrplib" != true
; then
9981 as_fn_error $?
"cannot build PL/Perl because libperl is not a shared library
9982 You might have to rebuild your Perl installation. Refer to the
9983 documentation for details. Use --without-perl to disable building
9984 PL/Perl." "$LINENO" 5
9986 # On most platforms, archlibexp is also where the Perl include files live ...
9987 perl_includespec
="-I$perl_archlibexp/CORE"
9988 # ... but on newer macOS versions, we must use -iwithsysroot to look
9990 if test \
! -f "$perl_archlibexp/CORE/perl.h" ; then
9991 if test -f "$PG_SYSROOT$perl_archlibexp/CORE/perl.h" ; then
9992 perl_includespec
="-iwithsysroot $perl_archlibexp/CORE"
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS recommended by Perl" >&5
9997 $as_echo_n "checking for CFLAGS recommended by Perl... " >&6; }
9998 perl_ccflags
=`$PERL -MConfig -e 'print $Config{ccflags}'`
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_ccflags" >&5
10000 $as_echo "$perl_ccflags" >&6; }
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS to compile embedded Perl" >&5
10002 $as_echo_n "checking for CFLAGS to compile embedded Perl... " >&6; }
10003 perl_embed_ccflags
=`$PERL -MConfig -e 'foreach $f (split(" ",$Config{ccflags})) {print $f, " " if ($f =~ /^-D[^_]/ || $f =~ /^-D_USE_32BIT_TIME_T/)}'`
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_embed_ccflags" >&5
10005 $as_echo "$perl_embed_ccflags" >&6; }
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flags to link embedded Perl" >&5
10009 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
10010 if test "$PORTNAME" = "win32" ; then
10011 perl_lib
=`basename $perl_archlibexp/CORE/perl[5-9]*.lib .lib`
10012 if test -e "$perl_archlibexp/CORE/$perl_lib.lib"; then
10013 perl_embed_ldflags
="-L$perl_archlibexp/CORE -l$perl_lib"
10015 perl_lib
=`basename $perl_archlibexp/CORE/libperl[5-9]*.a .a | sed 's/^lib//'`
10016 if test -e "$perl_archlibexp/CORE/lib$perl_lib.a"; then
10017 perl_embed_ldflags
="-L$perl_archlibexp/CORE -l$perl_lib"
10021 pgac_tmp1
=`$PERL -MExtUtils::Embed -e ldopts`
10022 pgac_tmp2
=`$PERL -MConfig -e 'print "$Config{ccdlflags} $Config{ldflags}"'`
10023 perl_embed_ldflags
=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%"`
10025 if test -z "$perl_embed_ldflags" ; then
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10027 $as_echo "no" >&6; }
10028 as_fn_error $?
"could not determine flags for linking embedded Perl.
10029 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
10030 installed." "$LINENO" 5
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_embed_ldflags" >&5
10033 $as_echo "$perl_embed_ldflags" >&6; }
10038 if test "$with_python" = yes; then
10039 if test -z "$PYTHON"; then
10040 for ac_prog
in python3 python
10042 # Extract the first word of "$ac_prog", so it can be a program name with args.
10043 set dummy
$ac_prog; ac_word
=$2
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10045 $as_echo_n "checking for $ac_word... " >&6; }
10046 if ${ac_cv_path_PYTHON+:} false
; then :
10047 $as_echo_n "(cached) " >&6
10051 ac_cv_path_PYTHON
="$PYTHON" # Let the user override the test with a path.
10054 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10055 for as_dir
in $PATH
10058 test -z "$as_dir" && as_dir
=.
10059 for ac_exec_ext
in '' $ac_executable_extensions; do
10060 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10061 ac_cv_path_PYTHON
="$as_dir/$ac_word$ac_exec_ext"
10062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10072 PYTHON
=$ac_cv_path_PYTHON
10073 if test -n "$PYTHON"; then
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
10075 $as_echo "$PYTHON" >&6; }
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10078 $as_echo "no" >&6; }
10082 test -n "$PYTHON" && break
10086 # Report the value of PYTHON in configure's output in all cases.
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYTHON" >&5
10088 $as_echo_n "checking for PYTHON... " >&6; }
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
10090 $as_echo "$PYTHON" >&6; }
10093 if test x
"$PYTHON" = x
""; then
10094 as_fn_error $?
"Python not found" "$LINENO" 5
10098 python_fullversion
=`${PYTHON} -c "import sys; print(sys.version)" | sed q`
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: using python $python_fullversion" >&5
10100 $as_echo "$as_me: using python $python_fullversion" >&6;}
10101 # python_fullversion is typically n.n.n plus some trailing junk
10102 python_majorversion
=`echo "$python_fullversion" | sed 's/^\([0-9]*\).*/\1/'`
10103 python_minorversion
=`echo "$python_fullversion" | sed 's/^[0-9]*\.\([0-9]*\).*/\1/'`
10104 python_version
=`echo "$python_fullversion" | sed 's/^\([0-9]*\.[0-9]*\).*/\1/'`
10105 # Reject unsupported Python versions as soon as practical.
10106 if test "$python_majorversion" -lt 3; then
10107 as_fn_error $?
"Python version $python_version is too old (version 3 or later is required)" "$LINENO" 5
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python sysconfig module" >&5
10111 $as_echo_n "checking for Python sysconfig module... " >&6; }
10112 if "${PYTHON}" -c 'import sysconfig' 2>&5
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10115 $as_echo "yes" >&6; }
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10118 $as_echo "no" >&6; }
10119 as_fn_error $?
"sysconfig module not found" "$LINENO" 5
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python configuration directory" >&5
10123 $as_echo_n "checking Python configuration directory... " >&6; }
10124 python_configdir
=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('LIBPL'))))"`
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_configdir" >&5
10126 $as_echo "$python_configdir" >&6; }
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python include directory" >&5
10129 $as_echo_n "checking Python include directory... " >&6; }
10130 python_includespec
=`${PYTHON} -c "import sysconfig; print('-I' + sysconfig.get_config_var('INCLUDEPY'))"`
10131 if test "$PORTNAME" = win32
; then
10132 python_includespec
=`echo $python_includespec | sed 's,[\],/,g'`
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_includespec" >&5
10135 $as_echo "$python_includespec" >&6; }
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link an embedded Python application" >&5
10140 $as_echo_n "checking how to link an embedded Python application... " >&6; }
10142 python_libdir
=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('LIBDIR'))))"`
10143 python_ldlibrary
=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('LDLIBRARY'))))"`
10145 # If LDLIBRARY exists and has a shlib extension, use it verbatim.
10146 ldlibrary
=`echo "${python_ldlibrary}" | sed -e 's/\.so$//' -e 's/\.dll$//' -e 's/\.dylib$//' -e 's/\.sl$//'`
10147 if test -e "${python_libdir}/${python_ldlibrary}" -a x"${python_ldlibrary}" != x"${ldlibrary}"
10149 ldlibrary
=`echo "${ldlibrary}" | sed "s/^lib//"`
10152 # Otherwise, guess the base name of the shlib.
10153 # LDVERSION was added in Python 3.2, before that use VERSION,
10154 # or failing that, $python_version from _PGAC_CHECK_PYTHON_DIRS.
10155 python_ldversion
=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('LDVERSION'))))"`
10156 if test x
"${python_ldversion}" != x
""; then
10157 ldlibrary
="python${python_ldversion}"
10159 python_version_var
=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('VERSION'))))"`
10160 if test x
"${python_version_var}" != x
""; then
10161 ldlibrary
="python${python_version_var}"
10163 ldlibrary
="python${python_version}"
10166 # Search for a likely-looking file.
10168 for d
in "${python_libdir}" "${python_configdir}" /usr
/lib64
/usr
/lib
10170 if test -e "$d/lib${ldlibrary}${DLSUFFIX}"; then
10176 # Some platforms (OpenBSD) require us to accept a bare versioned shlib
10177 # (".so.n.n") as well. However, check this only after failing to find
10178 # ".so" anywhere, because yet other platforms (Debian) put the .so
10179 # symlink in a different directory from the underlying versioned shlib.
10180 if test "$found_shlib" != 1; then
10181 for d
in "${python_libdir}" "${python_configdir}" /usr
/lib64
/usr
/lib
10183 for f
in "$d/lib${ldlibrary}.so."* ; do
10184 if test -e "$f"; then
10192 # As usual, Windows has its own ideas. Possible default library
10193 # locations include c:/Windows/System32 and (for Cygwin) /usr/bin,
10194 # and the "lib" prefix might not be there.
10195 if test "$found_shlib" != 1 -a \
( "$PORTNAME" = win32
-o "$PORTNAME" = cygwin \
); then
10196 for d
in "${python_libdir}" "${python_configdir}" c
:/Windows
/System32
/usr
/bin
10198 for f
in "$d/lib${ldlibrary}.dll" "$d/${ldlibrary}.dll" ; do
10199 if test -e "$f"; then
10208 if test "$found_shlib" != 1; then
10209 as_fn_error $?
"could not find shared library for Python
10210 You might have to rebuild your Python installation. Refer to the
10211 documentation for details. Use --without-python to disable building
10212 PL/Python." "$LINENO" 5
10214 python_libspec
="-L${python_libdir} -l${ldlibrary}"
10216 python_additional_libs
=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_libspec} ${python_additional_libs}" >&5
10219 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
10225 if test x"$cross_compiling" = x"yes" && test -z "$with_system_tzdata"; then
10226 if test -z "$ZIC"; then
10229 # Extract the first word of "$ac_prog", so it can be a program name with args.
10230 set dummy $ac_prog; ac_word=$2
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10232 $as_echo_n "checking
for $ac_word...
" >&6; }
10233 if ${ac_cv_path_ZIC+:} false; then :
10234 $as_echo_n "(cached
) " >&6
10238 ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
10241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10242 for as_dir in $PATH
10245 test -z "$as_dir" && as_dir=.
10246 for ac_exec_ext in '' $ac_executable_extensions; do
10247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10248 ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
10249 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10259 ZIC=$ac_cv_path_ZIC
10260 if test -n "$ZIC"; then
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ZIC" >&5
10262 $as_echo "$ZIC" >&6; }
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10265 $as_echo "no
" >&6; }
10269 test -n "$ZIC" && break
10273 # Report the value of ZIC in configure's output in all cases.
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ZIC
" >&5
10275 $as_echo_n "checking
for ZIC...
" >&6; }
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ZIC" >&5
10277 $as_echo "$ZIC" >&6; }
10280 if test -z "$ZIC"; then
10282 When cross-compiling
, either use the option
--with-system-tzdata to use
10283 existing time-zone data
, or
set the environment variable ZIC to a zic
10284 program to use during the build.
" "$LINENO" 5
10291 # For each platform, we need to know about any special compile and link
10292 # libraries, and whether the normal C function names are thread-safe.
10293 # WIN32 doesn't need the pthread tests; it always uses threads
10295 # These tests are run before the library-tests, because linking with the
10296 # other libraries can pull in the pthread functions as a side-effect. We
10297 # want to use the -pthread or similar flags directly, and not rely on
10298 # the side-effects of linking with some other library.
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for a
sed that does not truncate output
" >&5
10301 $as_echo_n "checking
for a
sed that does not truncate output...
" >&6; }
10302 if ${ac_cv_path_SED+:} false; then :
10303 $as_echo_n "(cached
) " >&6
10305 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10306 for ac_i in 1 2 3 4 5 6 7; do
10307 ac_script="$ac_script$as_nl$ac_script"
10309 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10310 { ac_script=; unset ac_script;}
10311 if test -z "$SED"; then
10312 ac_path_SED_found=false
10313 # Loop through the user's path and test for each of PROGNAME-LIST
10314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10315 for as_dir in $PATH
10318 test -z "$as_dir" && as_dir=.
10319 for ac_prog in sed gsed; do
10320 for ac_exec_ext in '' $ac_executable_extensions; do
10321 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10322 as_fn_executable_p "$ac_path_SED" || continue
10323 # Check for GNU ac_path_SED and select it if it is found.
10324 # Check for GNU $ac_path_SED
10325 case `"$ac_path_SED" --version 2>&1` in
10327 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10330 $as_echo_n 0123456789 >"conftest.
in"
10333 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
10334 mv "conftest.tmp
" "conftest.
in"
10335 cp "conftest.
in" "conftest.
nl"
10336 $as_echo '' >> "conftest.
nl"
10337 "$ac_path_SED" -f conftest.sed < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
10338 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
10339 as_fn_arith $ac_count + 1 && ac_count=$as_val
10340 if test $ac_count -gt ${ac_path_SED_max-0}; then
10341 # Best one so far, save it but keep looking for a better one
10342 ac_cv_path_SED="$ac_path_SED"
10343 ac_path_SED_max=$ac_count
10345 # 10*(2^10) chars as input seems more than enough
10346 test $ac_count -gt 10 && break
10348 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10351 $ac_path_SED_found && break 3
10356 if test -z "$ac_cv_path_SED"; then
10357 as_fn_error $? "no acceptable
sed could be found
in \
$PATH" "$LINENO" 5
10360 ac_cv_path_SED=$SED
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_SED" >&5
10365 $as_echo "$ac_cv_path_SED" >&6; }
10366 SED="$ac_cv_path_SED"
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
10371 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
10372 if ${ac_cv_path_GREP+:} false; then :
10373 $as_echo_n "(cached
) " >&6
10375 if test -z "$GREP"; then
10376 ac_path_GREP_found=false
10377 # Loop through the user's path and test for each of PROGNAME-LIST
10378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10379 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10382 test -z "$as_dir" && as_dir=.
10383 for ac_prog in grep ggrep; do
10384 for ac_exec_ext in '' $ac_executable_extensions; do
10385 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
10386 as_fn_executable_p "$ac_path_GREP" || continue
10387 # Check for GNU ac_path_GREP and select it if it is found.
10388 # Check for GNU $ac_path_GREP
10389 case `"$ac_path_GREP" --version 2>&1` in
10391 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
10394 $as_echo_n 0123456789 >"conftest.
in"
10397 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
10398 mv "conftest.tmp
" "conftest.
in"
10399 cp "conftest.
in" "conftest.
nl"
10400 $as_echo 'GREP' >> "conftest.
nl"
10401 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
10402 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
10403 as_fn_arith $ac_count + 1 && ac_count=$as_val
10404 if test $ac_count -gt ${ac_path_GREP_max-0}; then
10405 # Best one so far, save it but keep looking for a better one
10406 ac_cv_path_GREP="$ac_path_GREP"
10407 ac_path_GREP_max=$ac_count
10409 # 10*(2^10) chars as input seems more than enough
10410 test $ac_count -gt 10 && break
10412 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10415 $ac_path_GREP_found && break 3
10420 if test -z "$ac_cv_path_GREP"; then
10421 as_fn_error $? "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
10424 ac_cv_path_GREP=$GREP
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
10429 $as_echo "$ac_cv_path_GREP" >&6; }
10430 GREP="$ac_cv_path_GREP"
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
10434 $as_echo_n "checking
for egrep...
" >&6; }
10435 if ${ac_cv_path_EGREP+:} false; then :
10436 $as_echo_n "(cached
) " >&6
10438 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
10439 then ac_cv_path_EGREP="$GREP -E"
10441 if test -z "$EGREP"; then
10442 ac_path_EGREP_found=false
10443 # Loop through the user's path and test for each of PROGNAME-LIST
10444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10445 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10448 test -z "$as_dir" && as_dir=.
10449 for ac_prog in egrep; do
10450 for ac_exec_ext in '' $ac_executable_extensions; do
10451 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
10452 as_fn_executable_p "$ac_path_EGREP" || continue
10453 # Check for GNU ac_path_EGREP and select it if it is found.
10454 # Check for GNU $ac_path_EGREP
10455 case `"$ac_path_EGREP" --version 2>&1` in
10457 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
10460 $as_echo_n 0123456789 >"conftest.
in"
10463 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
10464 mv "conftest.tmp
" "conftest.
in"
10465 cp "conftest.
in" "conftest.
nl"
10466 $as_echo 'EGREP' >> "conftest.
nl"
10467 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
10468 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
10469 as_fn_arith $ac_count + 1 && ac_count=$as_val
10470 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
10471 # Best one so far, save it but keep looking for a better one
10472 ac_cv_path_EGREP="$ac_path_EGREP"
10473 ac_path_EGREP_max=$ac_count
10475 # 10*(2^10) chars as input seems more than enough
10476 test $ac_count -gt 10 && break
10478 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10481 $ac_path_EGREP_found && break 3
10486 if test -z "$ac_cv_path_EGREP"; then
10487 as_fn_error $? "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
10490 ac_cv_path_EGREP=$EGREP
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
10496 $as_echo "$ac_cv_path_EGREP" >&6; }
10497 EGREP="$ac_cv_path_EGREP"
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
10501 $as_echo_n "checking
for ANSI C header files...
" >&6; }
10502 if ${ac_cv_header_stdc+:} false; then :
10503 $as_echo_n "(cached
) " >&6
10505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10506 /* end confdefs.h. */
10507 #include <stdlib.h>
10508 #include <stdarg.h>
10509 #include <string.h>
10520 if ac_fn_c_try_compile "$LINENO"; then :
10521 ac_cv_header_stdc=yes
10523 ac_cv_header_stdc=no
10525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10527 if test $ac_cv_header_stdc = yes; then
10528 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10530 /* end confdefs.h. */
10531 #include <string.h>
10534 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
10535 $EGREP "memchr
" >/dev/null 2>&1; then :
10538 ac_cv_header_stdc=no
10544 if test $ac_cv_header_stdc = yes; then
10545 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10547 /* end confdefs.h. */
10548 #include <stdlib.h>
10551 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
10552 $EGREP "free
" >/dev/null 2>&1; then :
10555 ac_cv_header_stdc=no
10561 if test $ac_cv_header_stdc = yes; then
10562 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10563 if test "$cross_compiling" = yes; then :
10566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10567 /* end confdefs.h. */
10569 #include <stdlib.h>
10570 #if ((' ' & 0x0FF) == 0x020)
10571 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10572 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10574 # define ISLOWER(c) \
10575 (('a' <= (c) && (c) <= 'i') \
10576 || ('j' <= (c) && (c) <= 'r') \
10577 || ('s' <= (c) && (c) <= 'z'))
10578 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10581 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10586 for (i = 0; i < 256; i++)
10587 if (XOR (islower (i), ISLOWER (i))
10588 || toupper (i) != TOUPPER (i))
10593 if ac_fn_c_try_run "$LINENO"; then :
10596 ac_cv_header_stdc=no
10598 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10599 conftest.$ac_objext conftest.beam conftest.$ac_ext
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
10605 $as_echo "$ac_cv_header_stdc" >&6; }
10606 if test $ac_cv_header_stdc = yes; then
10608 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10612 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10613 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
10614 inttypes.h stdint.h unistd.h
10616 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10617 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10619 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
10620 cat >>confdefs.h
<<_ACEOF
10621 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10629 if test "$PORTNAME" != "win32"; then :
10636 ac_cpp
='$CPP $CPPFLAGS'
10637 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10638 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10639 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10643 # We used to check for pthread.h first, but this fails if pthread.h
10644 # requires special compiler flags (e.g. on Tru64 or Sequent).
10645 # It gets checked for in the link test anyway.
10647 # First of all, check if the user has set any of the PTHREAD_LIBS,
10648 # etcetera environment variables, and if threads linking works using
10650 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
10651 ax_pthread_save_CC
="$CC"
10652 ax_pthread_save_CFLAGS
="$CFLAGS"
10653 ax_pthread_save_LIBS
="$LIBS"
10654 if test "x$PTHREAD_CC" != "x"; then :
10657 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
10658 LIBS
="$PTHREAD_LIBS $LIBS"
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
10660 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
10661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10662 /* end confdefs.h. */
10664 /* Override any GCC internal prototype to avoid an error.
10665 Use char because int might match the return type of a GCC
10666 builtin and then its argument prototype would still apply. */
10670 char pthread_join ();
10674 return pthread_join ();
10679 if ac_fn_c_try_link
"$LINENO"; then :
10682 rm -f core conftest.err conftest.
$ac_objext \
10683 conftest
$ac_exeext conftest.
$ac_ext
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10685 $as_echo "$ax_pthread_ok" >&6; }
10686 if test "x$ax_pthread_ok" = "xno"; then
10690 CC
="$ax_pthread_save_CC"
10691 CFLAGS
="$ax_pthread_save_CFLAGS"
10692 LIBS
="$ax_pthread_save_LIBS"
10695 # We must check for the threads library under a number of different
10696 # names; the ordering is very important because some systems
10697 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
10698 # libraries is broken (non-POSIX).
10700 # Create a list of thread flags to try. Items starting with a "-" are
10701 # C compiler flags, and other items are library names, except for "none"
10702 # which indicates that we try without any flags at all, and "pthread-config"
10703 # which is a program returning the flags for the Pth emulation library.
10705 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
10707 # The ordering *is* (sometimes) important. Some notes on the
10708 # individual items follow:
10710 # pthreads: AIX (must check this before -lpthread)
10711 # none: in case threads are in libc; should be tried before -Kthread and
10712 # other compiler flags to prevent continual compiler warnings
10713 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
10714 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
10715 # (Note: HP C rejects this with "bad form for `-t' option")
10716 # -pthreads: Solaris/gcc (Note: HP C also rejects)
10717 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
10718 # doesn't hurt to check since this sometimes defines pthreads and
10719 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
10720 # is present but should not be used directly; and before -mthreads,
10721 # because the compiler interprets this as "-mt" + "-hreads")
10722 # -mthreads: Mingw32/gcc, Lynx/gcc
10723 # pthread: Linux, etcetera
10724 # --thread-safe: KAI C++
10725 # pthread-config: use pthread-config program (for GNU Pth library)
10731 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
10732 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
10734 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
10739 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
10740 # multi-threading and also sets -lpthread."
10742 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
10747 # IBM z/OS requires a feature-test macro to be defined in order to
10748 # enable POSIX threads at all, so give the user a hint if this is
10749 # not set. (We don't define these ourselves, as they can affect
10750 # other portions of the system API in unpredictable ways.)
10752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10753 /* end confdefs.h. */
10755 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
10756 AX_PTHREAD_ZOS_MISSING
10760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10761 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
10763 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
10771 # On Solaris (at least, for some versions), libc contains stubbed
10772 # (non-functional) versions of the pthreads routines, so link-based
10773 # tests will erroneously succeed. (N.B.: The stubs are missing
10774 # pthread_cleanup_push, or rather a function called by this macro,
10775 # so we could check for that, but who knows whether they'll stub
10776 # that too in a future libc.) So we'll check first for the
10777 # standard Solaris way of linking pthreads (-mt -lpthread).
10779 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
10783 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
10785 if test "x$GCC" = "xyes"; then :
10786 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
10789 # The presence of a feature test macro requesting re-entrant function
10790 # definitions is, on some systems, a strong hint that pthreads support is
10791 # correctly enabled
10794 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
10795 ax_pthread_check_macro
="_REENTRANT"
10799 ax_pthread_check_macro
="_THREAD_SAFE"
10803 ax_pthread_check_macro
="--"
10806 if test "x$ax_pthread_check_macro" = "x--"; then :
10807 ax_pthread_check_cond
=0
10809 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
10812 # Are we compiling with Clang?
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
10815 $as_echo_n "checking whether $CC is Clang... " >&6; }
10816 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
10817 $as_echo_n "(cached) " >&6
10819 ax_cv_PTHREAD_CLANG
=no
10820 # Note that Autoconf sets GCC=yes for Clang as well as GCC
10821 if test "x$GCC" = "xyes"; then
10822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10823 /* end confdefs.h. */
10824 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
10825 # if defined(__clang__) && defined(__llvm__)
10826 AX_PTHREAD_CC_IS_CLANG
10830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10831 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
10832 ax_cv_PTHREAD_CLANG
=yes
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
10840 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
10841 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
10843 ax_pthread_clang_warning
=no
10845 # Clang needs special handling, because older versions handle the -pthread
10846 # option in a rather... idiosyncratic way
10848 if test "x$ax_pthread_clang" = "xyes"; then
10850 # Clang takes -pthread; it has never supported any other flag
10852 # (Note 1: This will need to be revisited if a system that Clang
10853 # supports has POSIX threads in a separate library. This tends not
10854 # to be the way of modern systems, but it's conceivable.)
10856 # (Note 2: On some systems, notably Darwin, -pthread is not needed
10857 # to get POSIX threads support; the API is always present and
10858 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
10859 # -pthread does define _REENTRANT, and while the Darwin headers
10860 # ignore this macro, third-party headers might not.)
10862 PTHREAD_CFLAGS
="-pthread"
10867 # However, older versions of Clang make a point of warning the user
10868 # that, in an invocation where only linking and no compilation is
10869 # taking place, the -pthread option has no effect ("argument unused
10870 # during compilation"). They expect -pthread to be passed in only
10871 # when source code is being compiled.
10873 # Problem is, this is at odds with the way Automake and most other
10874 # C build frameworks function, which is that the same flags used in
10875 # compilation (CFLAGS) are also used in linking. Many systems
10876 # supported by AX_PTHREAD require exactly this for POSIX threads
10877 # support, and in fact it is often not straightforward to specify a
10878 # flag that is used only in the compilation phase and not in
10879 # linking. Such a scenario is extremely rare in practice.
10881 # Even though use of the -pthread flag in linking would only print
10882 # a warning, this can be a nuisance for well-run software projects
10883 # that build with -Werror. So if the active version of Clang has
10884 # this misfeature, we search for an option to squash it.
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
10887 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
10888 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
10889 $as_echo_n "(cached) " >&6
10891 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
10892 # Create an alternate version of $ac_link that compiles and
10893 # links in two steps (.c -> .o, .o -> exe) instead of one
10894 # (.c -> exe), because the warning occurs only in the second
10896 ax_pthread_save_ac_link
="$ac_link"
10897 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
10898 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
10899 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
10900 ax_pthread_save_CFLAGS
="$CFLAGS"
10901 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
10902 if test "x$ax_pthread_try" = "xunknown"; then :
10905 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
10906 ac_link
="$ax_pthread_save_ac_link"
10907 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10908 /* end confdefs.h. */
10909 int main(void){return 0;}
10911 if ac_fn_c_try_link
"$LINENO"; then :
10912 ac_link
="$ax_pthread_2step_ac_link"
10913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10914 /* end confdefs.h. */
10915 int main(void){return 0;}
10917 if ac_fn_c_try_link
"$LINENO"; then :
10920 rm -f core conftest.err conftest.
$ac_objext \
10921 conftest
$ac_exeext conftest.
$ac_ext
10924 rm -f core conftest.err conftest.
$ac_objext \
10925 conftest
$ac_exeext conftest.
$ac_ext
10927 ac_link
="$ax_pthread_save_ac_link"
10928 CFLAGS
="$ax_pthread_save_CFLAGS"
10929 if test "x$ax_pthread_try" = "x"; then :
10932 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
10936 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
10938 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
10940 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
10943 fi # $ax_pthread_clang = yes
10945 if test "x$ax_pthread_ok" = "xno"; then
10946 for ax_pthread_try_flag
in $ax_pthread_flags; do
10948 case $ax_pthread_try_flag in
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
10951 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
10956 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
10957 PTHREAD_CFLAGS
="-mt"
10958 PTHREAD_LIBS
="-lpthread"
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
10963 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
10964 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
10968 # Extract the first word of "pthread-config", so it can be a program name with args.
10969 set dummy pthread-config
; ac_word
=$2
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10971 $as_echo_n "checking for $ac_word... " >&6; }
10972 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
10973 $as_echo_n "(cached) " >&6
10975 if test -n "$ax_pthread_config"; then
10976 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
10978 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10979 for as_dir
in $PATH
10982 test -z "$as_dir" && as_dir
=.
10983 for ac_exec_ext
in '' $ac_executable_extensions; do
10984 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10985 ac_cv_prog_ax_pthread_config
="yes"
10986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10993 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
10996 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
10997 if test -n "$ax_pthread_config"; then
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
10999 $as_echo "$ax_pthread_config" >&6; }
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11002 $as_echo "no" >&6; }
11006 if test "x$ax_pthread_config" = "xno"; then :
11009 PTHREAD_CFLAGS
="`pthread-config --cflags`"
11010 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
11015 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
11016 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
11020 ax_pthread_save_CFLAGS
="$CFLAGS"
11021 ax_pthread_save_LIBS
="$LIBS"
11022 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
11023 LIBS
="$PTHREAD_LIBS $LIBS"
11025 # Check for various functions. We must include pthread.h,
11026 # since some functions may be macros. (On the Sequent, we
11027 # need a special flag -Kthread to make this header compile.)
11028 # We check for pthread_join because it is in -lpthread on IRIX
11029 # while pthread_create is in libc. We check for pthread_attr_init
11030 # due to DEC craziness with -lpthreads. We check for
11031 # pthread_cleanup_push because it is one of the few pthread
11032 # functions on Solaris that doesn't have a non-functional libc stub.
11033 # We try pthread_create on general principles.
11035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11036 /* end confdefs.h. */
11037 #include <pthread.h>
11038 # if $ax_pthread_check_cond
11039 # error "$ax_pthread_check_macro must be defined"
11041 static void routine(void *a) { a = 0; }
11042 static void *start_routine(void *a) { return a; }
11046 pthread_t th; pthread_attr_t attr;
11047 pthread_create(&th, 0, start_routine, 0);
11048 pthread_join(th, 0);
11049 pthread_attr_init(&attr);
11050 pthread_cleanup_push(routine, 0);
11051 pthread_cleanup_pop(0) /* ; */
11056 if ac_fn_c_try_link
"$LINENO"; then :
11059 rm -f core conftest.err conftest.
$ac_objext \
11060 conftest
$ac_exeext conftest.
$ac_ext
11062 CFLAGS
="$ax_pthread_save_CFLAGS"
11063 LIBS
="$ax_pthread_save_LIBS"
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
11066 $as_echo "$ax_pthread_ok" >&6; }
11067 if test "x$ax_pthread_ok" = "xyes"; then :
11076 # Various other checks:
11077 if test "x$ax_pthread_ok" = "xyes"; then
11078 ax_pthread_save_CFLAGS
="$CFLAGS"
11079 ax_pthread_save_LIBS
="$LIBS"
11080 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
11081 LIBS
="$PTHREAD_LIBS $LIBS"
11083 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
11085 $as_echo_n "checking for joinable pthread attribute... " >&6; }
11086 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
11087 $as_echo_n "(cached) " >&6
11089 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
11090 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
11091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11092 /* end confdefs.h. */
11093 #include <pthread.h>
11097 int attr = $ax_pthread_attr; return attr /* ; */
11102 if ac_fn_c_try_link
"$LINENO"; then :
11103 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
11105 rm -f core conftest.err conftest.
$ac_objext \
11106 conftest
$ac_exeext conftest.
$ac_ext
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
11111 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
11112 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
11113 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
11114 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
11116 cat >>confdefs.h
<<_ACEOF
11117 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
11120 ax_pthread_joinable_attr_defined
=yes
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
11125 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
11126 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
11127 $as_echo_n "(cached) " >&6
11129 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
11132 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
11138 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
11139 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
11140 test "x$ax_pthread_special_flags_added" != "xyes"; then :
11141 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
11142 ax_pthread_special_flags_added
=yes
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
11146 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
11147 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
11148 $as_echo_n "(cached) " >&6
11150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11151 /* end confdefs.h. */
11152 #include <pthread.h>
11156 int i = PTHREAD_PRIO_INHERIT;
11161 if ac_fn_c_try_link
"$LINENO"; then :
11162 ax_cv_PTHREAD_PRIO_INHERIT
=yes
11164 ax_cv_PTHREAD_PRIO_INHERIT
=no
11166 rm -f core conftest.err conftest.
$ac_objext \
11167 conftest
$ac_exeext conftest.
$ac_ext
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
11171 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
11172 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
11173 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
11175 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
11177 ax_pthread_prio_inherit_defined
=yes
11181 CFLAGS
="$ax_pthread_save_CFLAGS"
11182 LIBS
="$ax_pthread_save_LIBS"
11184 # More AIX lossage: compile with *_r variant
11185 if test "x$GCC" != "xyes"; then
11189 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
11190 #handle absolute path differently from PATH based program lookup
11193 if as_fn_executable_p
${CC}_r
; then :
11194 PTHREAD_CC
="${CC}_r"
11197 for ac_prog
in ${CC}_r
11199 # Extract the first word of "$ac_prog", so it can be a program name with args.
11200 set dummy
$ac_prog; ac_word
=$2
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11202 $as_echo_n "checking for $ac_word... " >&6; }
11203 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
11204 $as_echo_n "(cached) " >&6
11206 if test -n "$PTHREAD_CC"; then
11207 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
11209 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11210 for as_dir
in $PATH
11213 test -z "$as_dir" && as_dir
=.
11214 for ac_exec_ext
in '' $ac_executable_extensions; do
11215 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11216 ac_cv_prog_PTHREAD_CC
="$ac_prog"
11217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11226 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
11227 if test -n "$PTHREAD_CC"; then
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
11229 $as_echo "$PTHREAD_CC" >&6; }
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11232 $as_echo "no" >&6; }
11236 test -n "$PTHREAD_CC" && break
11238 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
11249 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
11255 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
11256 if test "x$ax_pthread_ok" = "xyes"; then
11258 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
11266 ac_cpp
='$CPP $CPPFLAGS'
11267 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11268 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11269 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11273 # Some platforms use these, so just define them. They can't hurt if they
11274 # are not supported.
11275 PTHREAD_CFLAGS
="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE"
11277 # Check for *_r functions
11280 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
11281 LIBS
="$LIBS $PTHREAD_LIBS"
11283 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
11284 if test "x$ac_cv_header_pthread_h" = xyes
; then :
11288 pthread.h not found" "$LINENO" 5
11293 for ac_func
in strerror_r
11295 ac_fn_c_check_func
"$LINENO" "strerror_r" "ac_cv_func_strerror_r"
11296 if test "x$ac_cv_func_strerror_r" = xyes
; then :
11297 cat >>confdefs.h
<<_ACEOF
11298 #define HAVE_STRERROR_R 1
11305 # Do test here with the proper thread flags
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns int" >&5
11307 $as_echo_n "checking whether strerror_r returns int... " >&6; }
11308 if ${pgac_cv_func_strerror_r_int+:} false
; then :
11309 $as_echo_n "(cached) " >&6
11311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11312 /* end confdefs.h. */
11313 #include <string.h>
11318 switch (strerror_r(1, buf, sizeof(buf)))
11319 { case 0: break; default: break; }
11325 if ac_fn_c_try_compile
"$LINENO"; then :
11326 pgac_cv_func_strerror_r_int
=yes
11328 pgac_cv_func_strerror_r_int
=no
11330 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_strerror_r_int" >&5
11333 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
11334 if test x
"$pgac_cv_func_strerror_r_int" = xyes
; then
11336 $as_echo "#define STRERROR_R_INT 1" >>confdefs.h
11347 # do not use values from template file
11360 ## Most libraries are included only if they demonstrably provide a function
11361 ## we need, but libm is an exception: always include it, because there are
11362 ## too many compilers that play cute optimization games that will break
11363 ## probes for standard functions such as pow().
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
11367 $as_echo_n "checking for main in -lm... " >&6; }
11368 if ${ac_cv_lib_m_main+:} false
; then :
11369 $as_echo_n "(cached) " >&6
11371 ac_check_lib_save_LIBS
=$LIBS
11373 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11374 /* end confdefs.h. */
11385 if ac_fn_c_try_link
"$LINENO"; then :
11386 ac_cv_lib_m_main
=yes
11388 ac_cv_lib_m_main
=no
11390 rm -f core conftest.err conftest.
$ac_objext \
11391 conftest
$ac_exeext conftest.
$ac_ext
11392 LIBS
=$ac_check_lib_save_LIBS
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
11395 $as_echo "$ac_cv_lib_m_main" >&6; }
11396 if test "x$ac_cv_lib_m_main" = xyes
; then :
11397 cat >>confdefs.h
<<_ACEOF
11398 #define HAVE_LIBM 1
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setproctitle" >&5
11406 $as_echo_n "checking for library containing setproctitle... " >&6; }
11407 if ${ac_cv_search_setproctitle+:} false
; then :
11408 $as_echo_n "(cached) " >&6
11410 ac_func_search_save_LIBS
=$LIBS
11411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11412 /* end confdefs.h. */
11414 /* Override any GCC internal prototype to avoid an error.
11415 Use char because int might match the return type of a GCC
11416 builtin and then its argument prototype would still apply. */
11420 char setproctitle ();
11424 return setproctitle ();
11429 for ac_lib
in '' util
; do
11430 if test -z "$ac_lib"; then
11431 ac_res
="none required"
11434 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11436 if ac_fn_c_try_link
"$LINENO"; then :
11437 ac_cv_search_setproctitle
=$ac_res
11439 rm -f core conftest.err conftest.
$ac_objext \
11441 if ${ac_cv_search_setproctitle+:} false
; then :
11445 if ${ac_cv_search_setproctitle+:} false
; then :
11448 ac_cv_search_setproctitle
=no
11450 rm conftest.
$ac_ext
11451 LIBS
=$ac_func_search_save_LIBS
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setproctitle" >&5
11454 $as_echo "$ac_cv_search_setproctitle" >&6; }
11455 ac_res
=$ac_cv_search_setproctitle
11456 if test "$ac_res" != no
; then :
11457 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11461 # gcc/clang's sanitizer helper library provides dlopen but not dlsym, thus
11462 # when enabling asan the dlopen check doesn't notice that -ldl is actually
11463 # required. Just checking for dlsym() ought to suffice.
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
11465 $as_echo_n "checking for library containing dlsym... " >&6; }
11466 if ${ac_cv_search_dlsym+:} false
; then :
11467 $as_echo_n "(cached) " >&6
11469 ac_func_search_save_LIBS
=$LIBS
11470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11471 /* end confdefs.h. */
11473 /* Override any GCC internal prototype to avoid an error.
11474 Use char because int might match the return type of a GCC
11475 builtin and then its argument prototype would still apply. */
11488 for ac_lib
in '' dl
; do
11489 if test -z "$ac_lib"; then
11490 ac_res
="none required"
11493 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11495 if ac_fn_c_try_link
"$LINENO"; then :
11496 ac_cv_search_dlsym
=$ac_res
11498 rm -f core conftest.err conftest.
$ac_objext \
11500 if ${ac_cv_search_dlsym+:} false
; then :
11504 if ${ac_cv_search_dlsym+:} false
; then :
11507 ac_cv_search_dlsym
=no
11509 rm conftest.
$ac_ext
11510 LIBS
=$ac_func_search_save_LIBS
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
11513 $as_echo "$ac_cv_search_dlsym" >&6; }
11514 ac_res
=$ac_cv_search_dlsym
11515 if test "$ac_res" != no
; then :
11516 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
11521 $as_echo_n "checking for library containing socket... " >&6; }
11522 if ${ac_cv_search_socket+:} false
; then :
11523 $as_echo_n "(cached) " >&6
11525 ac_func_search_save_LIBS
=$LIBS
11526 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11527 /* end confdefs.h. */
11529 /* Override any GCC internal prototype to avoid an error.
11530 Use char because int might match the return type of a GCC
11531 builtin and then its argument prototype would still apply. */
11544 for ac_lib
in '' socket ws2_32
; do
11545 if test -z "$ac_lib"; then
11546 ac_res
="none required"
11549 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11551 if ac_fn_c_try_link
"$LINENO"; then :
11552 ac_cv_search_socket
=$ac_res
11554 rm -f core conftest.err conftest.
$ac_objext \
11556 if ${ac_cv_search_socket+:} false
; then :
11560 if ${ac_cv_search_socket+:} false
; then :
11563 ac_cv_search_socket
=no
11565 rm conftest.
$ac_ext
11566 LIBS
=$ac_func_search_save_LIBS
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
11569 $as_echo "$ac_cv_search_socket" >&6; }
11570 ac_res
=$ac_cv_search_socket
11571 if test "$ac_res" != no
; then :
11572 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getopt_long" >&5
11577 $as_echo_n "checking for library containing getopt_long... " >&6; }
11578 if ${ac_cv_search_getopt_long+:} false
; then :
11579 $as_echo_n "(cached) " >&6
11581 ac_func_search_save_LIBS
=$LIBS
11582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11583 /* end confdefs.h. */
11585 /* Override any GCC internal prototype to avoid an error.
11586 Use char because int might match the return type of a GCC
11587 builtin and then its argument prototype would still apply. */
11591 char getopt_long ();
11595 return getopt_long ();
11600 for ac_lib
in '' getopt gnugetopt
; do
11601 if test -z "$ac_lib"; then
11602 ac_res
="none required"
11605 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11607 if ac_fn_c_try_link
"$LINENO"; then :
11608 ac_cv_search_getopt_long
=$ac_res
11610 rm -f core conftest.err conftest.
$ac_objext \
11612 if ${ac_cv_search_getopt_long+:} false
; then :
11616 if ${ac_cv_search_getopt_long+:} false
; then :
11619 ac_cv_search_getopt_long
=no
11621 rm conftest.
$ac_ext
11622 LIBS
=$ac_func_search_save_LIBS
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getopt_long" >&5
11625 $as_echo "$ac_cv_search_getopt_long" >&6; }
11626 ac_res
=$ac_cv_search_getopt_long
11627 if test "$ac_res" != no
; then :
11628 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
11633 $as_echo_n "checking for library containing shm_open... " >&6; }
11634 if ${ac_cv_search_shm_open+:} false
; then :
11635 $as_echo_n "(cached) " >&6
11637 ac_func_search_save_LIBS
=$LIBS
11638 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11639 /* end confdefs.h. */
11641 /* Override any GCC internal prototype to avoid an error.
11642 Use char because int might match the return type of a GCC
11643 builtin and then its argument prototype would still apply. */
11651 return shm_open ();
11656 for ac_lib
in '' rt
; do
11657 if test -z "$ac_lib"; then
11658 ac_res
="none required"
11661 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11663 if ac_fn_c_try_link
"$LINENO"; then :
11664 ac_cv_search_shm_open
=$ac_res
11666 rm -f core conftest.err conftest.
$ac_objext \
11668 if ${ac_cv_search_shm_open+:} false
; then :
11672 if ${ac_cv_search_shm_open+:} false
; then :
11675 ac_cv_search_shm_open
=no
11677 rm conftest.
$ac_ext
11678 LIBS
=$ac_func_search_save_LIBS
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
11681 $as_echo "$ac_cv_search_shm_open" >&6; }
11682 ac_res
=$ac_cv_search_shm_open
11683 if test "$ac_res" != no
; then :
11684 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_unlink" >&5
11689 $as_echo_n "checking for library containing shm_unlink... " >&6; }
11690 if ${ac_cv_search_shm_unlink+:} false
; then :
11691 $as_echo_n "(cached) " >&6
11693 ac_func_search_save_LIBS
=$LIBS
11694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11695 /* end confdefs.h. */
11697 /* Override any GCC internal prototype to avoid an error.
11698 Use char because int might match the return type of a GCC
11699 builtin and then its argument prototype would still apply. */
11703 char shm_unlink ();
11707 return shm_unlink ();
11712 for ac_lib
in '' rt
; do
11713 if test -z "$ac_lib"; then
11714 ac_res
="none required"
11717 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11719 if ac_fn_c_try_link
"$LINENO"; then :
11720 ac_cv_search_shm_unlink
=$ac_res
11722 rm -f core conftest.err conftest.
$ac_objext \
11724 if ${ac_cv_search_shm_unlink+:} false
; then :
11728 if ${ac_cv_search_shm_unlink+:} false
; then :
11731 ac_cv_search_shm_unlink
=no
11733 rm conftest.
$ac_ext
11734 LIBS
=$ac_func_search_save_LIBS
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_unlink" >&5
11737 $as_echo "$ac_cv_search_shm_unlink" >&6; }
11738 ac_res
=$ac_cv_search_shm_unlink
11739 if test "$ac_res" != no
; then :
11740 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
11745 $as_echo_n "checking for library containing clock_gettime... " >&6; }
11746 if ${ac_cv_search_clock_gettime+:} false
; then :
11747 $as_echo_n "(cached) " >&6
11749 ac_func_search_save_LIBS
=$LIBS
11750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11751 /* end confdefs.h. */
11753 /* Override any GCC internal prototype to avoid an error.
11754 Use char because int might match the return type of a GCC
11755 builtin and then its argument prototype would still apply. */
11759 char clock_gettime ();
11763 return clock_gettime ();
11768 for ac_lib
in '' rt
; do
11769 if test -z "$ac_lib"; then
11770 ac_res
="none required"
11773 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11775 if ac_fn_c_try_link
"$LINENO"; then :
11776 ac_cv_search_clock_gettime
=$ac_res
11778 rm -f core conftest.err conftest.
$ac_objext \
11780 if ${ac_cv_search_clock_gettime+:} false
; then :
11784 if ${ac_cv_search_clock_gettime+:} false
; then :
11787 ac_cv_search_clock_gettime
=no
11789 rm conftest.
$ac_ext
11790 LIBS
=$ac_func_search_save_LIBS
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
11793 $as_echo "$ac_cv_search_clock_gettime" >&6; }
11794 ac_res
=$ac_cv_search_clock_gettime
11795 if test "$ac_res" != no
; then :
11796 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shmget" >&5
11802 $as_echo_n "checking for library containing shmget... " >&6; }
11803 if ${ac_cv_search_shmget+:} false
; then :
11804 $as_echo_n "(cached) " >&6
11806 ac_func_search_save_LIBS
=$LIBS
11807 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11808 /* end confdefs.h. */
11810 /* Override any GCC internal prototype to avoid an error.
11811 Use char because int might match the return type of a GCC
11812 builtin and then its argument prototype would still apply. */
11825 for ac_lib
in '' cygipc
; do
11826 if test -z "$ac_lib"; then
11827 ac_res
="none required"
11830 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11832 if ac_fn_c_try_link
"$LINENO"; then :
11833 ac_cv_search_shmget
=$ac_res
11835 rm -f core conftest.err conftest.
$ac_objext \
11837 if ${ac_cv_search_shmget+:} false
; then :
11841 if ${ac_cv_search_shmget+:} false
; then :
11844 ac_cv_search_shmget
=no
11846 rm conftest.
$ac_ext
11847 LIBS
=$ac_func_search_save_LIBS
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shmget" >&5
11850 $as_echo "$ac_cv_search_shmget" >&6; }
11851 ac_res
=$ac_cv_search_shmget
11852 if test "$ac_res" != no
; then :
11853 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols" >&5
11859 $as_echo_n "checking for library containing backtrace_symbols... " >&6; }
11860 if ${ac_cv_search_backtrace_symbols+:} false
; then :
11861 $as_echo_n "(cached) " >&6
11863 ac_func_search_save_LIBS
=$LIBS
11864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11865 /* end confdefs.h. */
11867 /* Override any GCC internal prototype to avoid an error.
11868 Use char because int might match the return type of a GCC
11869 builtin and then its argument prototype would still apply. */
11873 char backtrace_symbols ();
11877 return backtrace_symbols ();
11882 for ac_lib
in '' execinfo
; do
11883 if test -z "$ac_lib"; then
11884 ac_res
="none required"
11887 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11889 if ac_fn_c_try_link
"$LINENO"; then :
11890 ac_cv_search_backtrace_symbols
=$ac_res
11892 rm -f core conftest.err conftest.
$ac_objext \
11894 if ${ac_cv_search_backtrace_symbols+:} false
; then :
11898 if ${ac_cv_search_backtrace_symbols+:} false
; then :
11901 ac_cv_search_backtrace_symbols
=no
11903 rm conftest.
$ac_ext
11904 LIBS
=$ac_func_search_save_LIBS
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols" >&5
11907 $as_echo "$ac_cv_search_backtrace_symbols" >&6; }
11908 ac_res
=$ac_cv_search_backtrace_symbols
11909 if test "$ac_res" != no
; then :
11910 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_barrier_wait" >&5
11916 $as_echo_n "checking for library containing pthread_barrier_wait... " >&6; }
11917 if ${ac_cv_search_pthread_barrier_wait+:} false
; then :
11918 $as_echo_n "(cached) " >&6
11920 ac_func_search_save_LIBS
=$LIBS
11921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11922 /* end confdefs.h. */
11924 /* Override any GCC internal prototype to avoid an error.
11925 Use char because int might match the return type of a GCC
11926 builtin and then its argument prototype would still apply. */
11930 char pthread_barrier_wait ();
11934 return pthread_barrier_wait ();
11939 for ac_lib
in '' pthread
; do
11940 if test -z "$ac_lib"; then
11941 ac_res
="none required"
11944 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11946 if ac_fn_c_try_link
"$LINENO"; then :
11947 ac_cv_search_pthread_barrier_wait
=$ac_res
11949 rm -f core conftest.err conftest.
$ac_objext \
11951 if ${ac_cv_search_pthread_barrier_wait+:} false
; then :
11955 if ${ac_cv_search_pthread_barrier_wait+:} false
; then :
11958 ac_cv_search_pthread_barrier_wait
=no
11960 rm conftest.
$ac_ext
11961 LIBS
=$ac_func_search_save_LIBS
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_barrier_wait" >&5
11964 $as_echo "$ac_cv_search_pthread_barrier_wait" >&6; }
11965 ac_res
=$ac_cv_search_pthread_barrier_wait
11966 if test "$ac_res" != no
; then :
11967 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11972 if test "$with_readline" = yes; then
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
11976 $as_echo_n "checking for library containing readline... " >&6; }
11977 if ${pgac_cv_check_readline+:} false
; then :
11978 $as_echo_n "(cached) " >&6
11980 pgac_cv_check_readline
=no
11981 pgac_save_LIBS
=$LIBS
11982 if test x
"$with_libedit_preferred" != x
"yes"
11983 then READLINE_ORDER
="-lreadline -ledit"
11984 else READLINE_ORDER
="-ledit -lreadline"
11986 for pgac_rllib
in $READLINE_ORDER ; do
11987 for pgac_lib
in "" " -ltermcap" " -lncurses" " -lcurses" ; do
11988 LIBS
="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
11989 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11990 /* end confdefs.h. */
11992 /* Override any GCC internal prototype to avoid an error.
11993 Use char because int might match the return type of a GCC
11994 builtin and then its argument prototype would still apply. */
12002 return readline ();
12007 if ac_fn_c_try_link
"$LINENO"; then :
12009 # Older NetBSD and OpenBSD have a broken linker that does not
12010 # recognize dependent libraries; assume curses is needed if we didn't
12011 # find any dependency.
12013 netbsd
* | openbsd
*)
12014 if test x
"$pgac_lib" = x
"" ; then
12015 pgac_lib
=" -lcurses"
12019 pgac_cv_check_readline
="${pgac_rllib}${pgac_lib}"
12023 rm -f core conftest.err conftest.
$ac_objext \
12024 conftest
$ac_exeext conftest.
$ac_ext
12026 if test "$pgac_cv_check_readline" != no
; then
12030 LIBS
=$pgac_save_LIBS
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_check_readline" >&5
12034 $as_echo "$pgac_cv_check_readline" >&6; }
12035 if test "$pgac_cv_check_readline" != no
; then
12036 LIBS
="$pgac_cv_check_readline $LIBS"
12038 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
12043 if test x
"$pgac_cv_check_readline" = x
"no"; then
12044 as_fn_error $?
"readline library not found
12045 If you have readline already installed, see config.log for details on the
12046 failure. It is possible the compiler isn't looking in the proper directory.
12047 Use --without-readline to disable readline support." "$LINENO" 5
12051 if test "$with_zlib" = yes; then
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
12053 $as_echo_n "checking for inflate in -lz... " >&6; }
12054 if ${ac_cv_lib_z_inflate+:} false
; then :
12055 $as_echo_n "(cached) " >&6
12057 ac_check_lib_save_LIBS
=$LIBS
12059 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12060 /* end confdefs.h. */
12062 /* Override any GCC internal prototype to avoid an error.
12063 Use char because int might match the return type of a GCC
12064 builtin and then its argument prototype would still apply. */
12077 if ac_fn_c_try_link
"$LINENO"; then :
12078 ac_cv_lib_z_inflate
=yes
12080 ac_cv_lib_z_inflate
=no
12082 rm -f core conftest.err conftest.
$ac_objext \
12083 conftest
$ac_exeext conftest.
$ac_ext
12084 LIBS
=$ac_check_lib_save_LIBS
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
12087 $as_echo "$ac_cv_lib_z_inflate" >&6; }
12088 if test "x$ac_cv_lib_z_inflate" = xyes
; then :
12089 cat >>confdefs.h
<<_ACEOF
12090 #define HAVE_LIBZ 1
12096 as_fn_error $?
"zlib library not found
12097 If you have zlib already installed, see config.log for details on the
12098 failure. It is possible the compiler isn't looking in the proper directory.
12099 Use --without-zlib to disable zlib support." "$LINENO" 5
12104 if test "$with_gssapi" = yes ; then
12105 if test "$PORTNAME" != "win32"; then
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_store_cred_into" >&5
12107 $as_echo_n "checking for library containing gss_store_cred_into... " >&6; }
12108 if ${ac_cv_search_gss_store_cred_into+:} false
; then :
12109 $as_echo_n "(cached) " >&6
12111 ac_func_search_save_LIBS
=$LIBS
12112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12113 /* end confdefs.h. */
12115 /* Override any GCC internal prototype to avoid an error.
12116 Use char because int might match the return type of a GCC
12117 builtin and then its argument prototype would still apply. */
12121 char gss_store_cred_into ();
12125 return gss_store_cred_into ();
12130 for ac_lib
in '' gssapi_krb5 gss
'gssapi -lkrb5 -lcrypto'; do
12131 if test -z "$ac_lib"; then
12132 ac_res
="none required"
12135 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12137 if ac_fn_c_try_link
"$LINENO"; then :
12138 ac_cv_search_gss_store_cred_into
=$ac_res
12140 rm -f core conftest.err conftest.
$ac_objext \
12142 if ${ac_cv_search_gss_store_cred_into+:} false
; then :
12146 if ${ac_cv_search_gss_store_cred_into+:} false
; then :
12149 ac_cv_search_gss_store_cred_into
=no
12151 rm conftest.
$ac_ext
12152 LIBS
=$ac_func_search_save_LIBS
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_store_cred_into" >&5
12155 $as_echo "$ac_cv_search_gss_store_cred_into" >&6; }
12156 ac_res
=$ac_cv_search_gss_store_cred_into
12157 if test "$ac_res" != no
; then :
12158 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12161 as_fn_error $?
"could not find function 'gss_store_cred_into' required for GSSAPI" "$LINENO" 5
12165 LIBS
="$LIBS -lgssapi32"
12172 # There is currently only one supported SSL/TLS library: OpenSSL.
12177 # Check whether --with-ssl was given.
12178 if test "${with_ssl+set}" = set; then :
12182 as_fn_error $?
"argument required for --with-ssl option" "$LINENO" 5
12185 as_fn_error $?
"argument required for --with-ssl option" "$LINENO" 5
12195 if test x
"$with_ssl" = x
"" ; then
12201 # Check whether --with-openssl was given.
12202 if test "${with_openssl+set}" = set; then :
12203 withval
=$with_openssl;
12212 as_fn_error $?
"no argument expected for --with-openssl option" "$LINENO" 5
12222 if test "$with_openssl" = yes ; then
12226 if test "$with_ssl" = openssl
; then
12227 # Minimum required OpenSSL version is 1.1.0
12229 $as_echo "#define OPENSSL_API_COMPAT 0x10100000L" >>confdefs.h
12231 if test "$PORTNAME" != "win32"; then
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_new_ex_data in -lcrypto" >&5
12233 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
12234 if ${ac_cv_lib_crypto_CRYPTO_new_ex_data+:} false
; then :
12235 $as_echo_n "(cached) " >&6
12237 ac_check_lib_save_LIBS
=$LIBS
12238 LIBS
="-lcrypto $LIBS"
12239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12240 /* end confdefs.h. */
12242 /* Override any GCC internal prototype to avoid an error.
12243 Use char because int might match the return type of a GCC
12244 builtin and then its argument prototype would still apply. */
12248 char CRYPTO_new_ex_data ();
12252 return CRYPTO_new_ex_data ();
12257 if ac_fn_c_try_link
"$LINENO"; then :
12258 ac_cv_lib_crypto_CRYPTO_new_ex_data
=yes
12260 ac_cv_lib_crypto_CRYPTO_new_ex_data
=no
12262 rm -f core conftest.err conftest.
$ac_objext \
12263 conftest
$ac_exeext conftest.
$ac_ext
12264 LIBS
=$ac_check_lib_save_LIBS
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
12267 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
12268 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = xyes
; then :
12269 cat >>confdefs.h
<<_ACEOF
12270 #define HAVE_LIBCRYPTO 1
12273 LIBS
="-lcrypto $LIBS"
12276 as_fn_error $?
"library 'crypto' is required for OpenSSL" "$LINENO" 5
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
12280 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
12281 if ${ac_cv_lib_ssl_SSL_new+:} false
; then :
12282 $as_echo_n "(cached) " >&6
12284 ac_check_lib_save_LIBS
=$LIBS
12286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12287 /* end confdefs.h. */
12289 /* Override any GCC internal prototype to avoid an error.
12290 Use char because int might match the return type of a GCC
12291 builtin and then its argument prototype would still apply. */
12304 if ac_fn_c_try_link
"$LINENO"; then :
12305 ac_cv_lib_ssl_SSL_new
=yes
12307 ac_cv_lib_ssl_SSL_new
=no
12309 rm -f core conftest.err conftest.
$ac_objext \
12310 conftest
$ac_exeext conftest.
$ac_ext
12311 LIBS
=$ac_check_lib_save_LIBS
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
12314 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
12315 if test "x$ac_cv_lib_ssl_SSL_new" = xyes
; then :
12316 cat >>confdefs.h
<<_ACEOF
12317 #define HAVE_LIBSSL 1
12323 as_fn_error $?
"library 'ssl' is required for OpenSSL" "$LINENO" 5
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing CRYPTO_new_ex_data" >&5
12328 $as_echo_n "checking for library containing CRYPTO_new_ex_data... " >&6; }
12329 if ${ac_cv_search_CRYPTO_new_ex_data+:} false
; then :
12330 $as_echo_n "(cached) " >&6
12332 ac_func_search_save_LIBS
=$LIBS
12333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12334 /* end confdefs.h. */
12336 /* Override any GCC internal prototype to avoid an error.
12337 Use char because int might match the return type of a GCC
12338 builtin and then its argument prototype would still apply. */
12342 char CRYPTO_new_ex_data ();
12346 return CRYPTO_new_ex_data ();
12351 for ac_lib
in '' eay32 crypto
; do
12352 if test -z "$ac_lib"; then
12353 ac_res
="none required"
12356 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12358 if ac_fn_c_try_link
"$LINENO"; then :
12359 ac_cv_search_CRYPTO_new_ex_data
=$ac_res
12361 rm -f core conftest.err conftest.
$ac_objext \
12363 if ${ac_cv_search_CRYPTO_new_ex_data+:} false
; then :
12367 if ${ac_cv_search_CRYPTO_new_ex_data+:} false
; then :
12370 ac_cv_search_CRYPTO_new_ex_data
=no
12372 rm conftest.
$ac_ext
12373 LIBS
=$ac_func_search_save_LIBS
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_CRYPTO_new_ex_data" >&5
12376 $as_echo "$ac_cv_search_CRYPTO_new_ex_data" >&6; }
12377 ac_res
=$ac_cv_search_CRYPTO_new_ex_data
12378 if test "$ac_res" != no
; then :
12379 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12382 as_fn_error $?
"library 'eay32' or 'crypto' is required for OpenSSL" "$LINENO" 5
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_new" >&5
12386 $as_echo_n "checking for library containing SSL_new... " >&6; }
12387 if ${ac_cv_search_SSL_new+:} false
; then :
12388 $as_echo_n "(cached) " >&6
12390 ac_func_search_save_LIBS
=$LIBS
12391 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12392 /* end confdefs.h. */
12394 /* Override any GCC internal prototype to avoid an error.
12395 Use char because int might match the return type of a GCC
12396 builtin and then its argument prototype would still apply. */
12409 for ac_lib
in '' ssleay32 ssl
; do
12410 if test -z "$ac_lib"; then
12411 ac_res
="none required"
12414 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12416 if ac_fn_c_try_link
"$LINENO"; then :
12417 ac_cv_search_SSL_new
=$ac_res
12419 rm -f core conftest.err conftest.
$ac_objext \
12421 if ${ac_cv_search_SSL_new+:} false
; then :
12425 if ${ac_cv_search_SSL_new+:} false
; then :
12428 ac_cv_search_SSL_new
=no
12430 rm conftest.
$ac_ext
12431 LIBS
=$ac_func_search_save_LIBS
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_new" >&5
12434 $as_echo "$ac_cv_search_SSL_new" >&6; }
12435 ac_res
=$ac_cv_search_SSL_new
12436 if test "$ac_res" != no
; then :
12437 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12440 as_fn_error $?
"library 'ssleay32' or 'ssl' is required for OpenSSL" "$LINENO" 5
12444 # Function introduced in OpenSSL 1.0.2, not in LibreSSL.
12445 for ac_func
in SSL_CTX_set_cert_cb
12447 ac_fn_c_check_func
"$LINENO" "SSL_CTX_set_cert_cb" "ac_cv_func_SSL_CTX_set_cert_cb"
12448 if test "x$ac_cv_func_SSL_CTX_set_cert_cb" = xyes
; then :
12449 cat >>confdefs.h
<<_ACEOF
12450 #define HAVE_SSL_CTX_SET_CERT_CB 1
12456 # Functions introduced in OpenSSL 1.1.0. We used to check for
12457 # OPENSSL_VERSION_NUMBER, but that didn't work with 1.1.0, because LibreSSL
12458 # defines OPENSSL_VERSION_NUMBER to claim version 2.0.0, even though it
12459 # doesn't have these OpenSSL 1.1.0 functions. So check for individual
12461 for ac_func
in OPENSSL_init_ssl
12463 ac_fn_c_check_func
"$LINENO" "OPENSSL_init_ssl" "ac_cv_func_OPENSSL_init_ssl"
12464 if test "x$ac_cv_func_OPENSSL_init_ssl" = xyes
; then :
12465 cat >>confdefs.h
<<_ACEOF
12466 #define HAVE_OPENSSL_INIT_SSL 1
12470 as_fn_error $?
"OpenSSL version >= 1.1.0 is required for SSL support" "$LINENO" 5
12474 # Function introduced in OpenSSL 1.1.1, not in LibreSSL.
12475 for ac_func
in X509_get_signature_info SSL_CTX_set_num_tickets
12477 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12478 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12479 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12480 cat >>confdefs.h
<<_ACEOF
12481 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12488 $as_echo "#define USE_OPENSSL 1" >>confdefs.h
12490 elif test "$with_ssl" != no
; then
12491 as_fn_error $?
"--with-ssl must specify openssl" "$LINENO" 5
12495 if test "$with_pam" = yes ; then
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
12497 $as_echo_n "checking for pam_start in -lpam... " >&6; }
12498 if ${ac_cv_lib_pam_pam_start+:} false
; then :
12499 $as_echo_n "(cached) " >&6
12501 ac_check_lib_save_LIBS
=$LIBS
12503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12504 /* end confdefs.h. */
12506 /* Override any GCC internal prototype to avoid an error.
12507 Use char because int might match the return type of a GCC
12508 builtin and then its argument prototype would still apply. */
12516 return pam_start ();
12521 if ac_fn_c_try_link
"$LINENO"; then :
12522 ac_cv_lib_pam_pam_start
=yes
12524 ac_cv_lib_pam_pam_start
=no
12526 rm -f core conftest.err conftest.
$ac_objext \
12527 conftest
$ac_exeext conftest.
$ac_ext
12528 LIBS
=$ac_check_lib_save_LIBS
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
12531 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
12532 if test "x$ac_cv_lib_pam_pam_start" = xyes
; then :
12533 cat >>confdefs.h
<<_ACEOF
12534 #define HAVE_LIBPAM 1
12540 as_fn_error $?
"library 'pam' is required for PAM" "$LINENO" 5
12545 if test "$with_libxml" = yes ; then
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSaveToBuffer in -lxml2" >&5
12547 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
12548 if ${ac_cv_lib_xml2_xmlSaveToBuffer+:} false
; then :
12549 $as_echo_n "(cached) " >&6
12551 ac_check_lib_save_LIBS
=$LIBS
12552 LIBS
="-lxml2 $LIBS"
12553 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12554 /* end confdefs.h. */
12556 /* Override any GCC internal prototype to avoid an error.
12557 Use char because int might match the return type of a GCC
12558 builtin and then its argument prototype would still apply. */
12562 char xmlSaveToBuffer ();
12566 return xmlSaveToBuffer ();
12571 if ac_fn_c_try_link
"$LINENO"; then :
12572 ac_cv_lib_xml2_xmlSaveToBuffer
=yes
12574 ac_cv_lib_xml2_xmlSaveToBuffer
=no
12576 rm -f core conftest.err conftest.
$ac_objext \
12577 conftest
$ac_exeext conftest.
$ac_ext
12578 LIBS
=$ac_check_lib_save_LIBS
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
12581 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
12582 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = xyes
; then :
12583 cat >>confdefs.h
<<_ACEOF
12584 #define HAVE_LIBXML2 1
12587 LIBS
="-lxml2 $LIBS"
12590 as_fn_error $?
"library 'xml2' (version >= 2.6.23) is required for XML support" "$LINENO" 5
12595 if test "$with_libxslt" = yes ; then
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xsltCleanupGlobals in -lxslt" >&5
12597 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
12598 if ${ac_cv_lib_xslt_xsltCleanupGlobals+:} false
; then :
12599 $as_echo_n "(cached) " >&6
12601 ac_check_lib_save_LIBS
=$LIBS
12602 LIBS
="-lxslt $LIBS"
12603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12604 /* end confdefs.h. */
12606 /* Override any GCC internal prototype to avoid an error.
12607 Use char because int might match the return type of a GCC
12608 builtin and then its argument prototype would still apply. */
12612 char xsltCleanupGlobals ();
12616 return xsltCleanupGlobals ();
12621 if ac_fn_c_try_link
"$LINENO"; then :
12622 ac_cv_lib_xslt_xsltCleanupGlobals
=yes
12624 ac_cv_lib_xslt_xsltCleanupGlobals
=no
12626 rm -f core conftest.err conftest.
$ac_objext \
12627 conftest
$ac_exeext conftest.
$ac_ext
12628 LIBS
=$ac_check_lib_save_LIBS
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
12631 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
12632 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = xyes
; then :
12633 cat >>confdefs.h
<<_ACEOF
12634 #define HAVE_LIBXSLT 1
12637 LIBS
="-lxslt $LIBS"
12640 as_fn_error $?
"library 'xslt' is required for XSLT support" "$LINENO" 5
12645 if test "$with_lz4" = yes ; then
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZ4_compress_default in -llz4" >&5
12647 $as_echo_n "checking for LZ4_compress_default in -llz4... " >&6; }
12648 if ${ac_cv_lib_lz4_LZ4_compress_default+:} false
; then :
12649 $as_echo_n "(cached) " >&6
12651 ac_check_lib_save_LIBS
=$LIBS
12653 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12654 /* end confdefs.h. */
12656 /* Override any GCC internal prototype to avoid an error.
12657 Use char because int might match the return type of a GCC
12658 builtin and then its argument prototype would still apply. */
12662 char LZ4_compress_default ();
12666 return LZ4_compress_default ();
12671 if ac_fn_c_try_link
"$LINENO"; then :
12672 ac_cv_lib_lz4_LZ4_compress_default
=yes
12674 ac_cv_lib_lz4_LZ4_compress_default
=no
12676 rm -f core conftest.err conftest.
$ac_objext \
12677 conftest
$ac_exeext conftest.
$ac_ext
12678 LIBS
=$ac_check_lib_save_LIBS
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lz4_LZ4_compress_default" >&5
12681 $as_echo "$ac_cv_lib_lz4_LZ4_compress_default" >&6; }
12682 if test "x$ac_cv_lib_lz4_LZ4_compress_default" = xyes
; then :
12683 cat >>confdefs.h
<<_ACEOF
12684 #define HAVE_LIBLZ4 1
12690 as_fn_error $?
"library 'lz4' is required for LZ4 support" "$LINENO" 5
12695 if test "$with_zstd" = yes ; then
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZSTD_compress in -lzstd" >&5
12697 $as_echo_n "checking for ZSTD_compress in -lzstd... " >&6; }
12698 if ${ac_cv_lib_zstd_ZSTD_compress+:} false
; then :
12699 $as_echo_n "(cached) " >&6
12701 ac_check_lib_save_LIBS
=$LIBS
12702 LIBS
="-lzstd $LIBS"
12703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12704 /* end confdefs.h. */
12706 /* Override any GCC internal prototype to avoid an error.
12707 Use char because int might match the return type of a GCC
12708 builtin and then its argument prototype would still apply. */
12712 char ZSTD_compress ();
12716 return ZSTD_compress ();
12721 if ac_fn_c_try_link
"$LINENO"; then :
12722 ac_cv_lib_zstd_ZSTD_compress
=yes
12724 ac_cv_lib_zstd_ZSTD_compress
=no
12726 rm -f core conftest.err conftest.
$ac_objext \
12727 conftest
$ac_exeext conftest.
$ac_ext
12728 LIBS
=$ac_check_lib_save_LIBS
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_compress" >&5
12731 $as_echo "$ac_cv_lib_zstd_ZSTD_compress" >&6; }
12732 if test "x$ac_cv_lib_zstd_ZSTD_compress" = xyes
; then :
12733 cat >>confdefs.h
<<_ACEOF
12734 #define HAVE_LIBZSTD 1
12737 LIBS
="-lzstd $LIBS"
12740 as_fn_error $?
"library 'zstd' is required for ZSTD support" "$LINENO" 5
12745 # Note: We can test for libldap_r only after we know PTHREAD_LIBS
12746 if test "$with_ldap" = yes ; then
12748 if test "$PORTNAME" != "win32"; then
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lldap" >&5
12750 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
12751 if ${ac_cv_lib_ldap_ldap_bind+:} false
; then :
12752 $as_echo_n "(cached) " >&6
12754 ac_check_lib_save_LIBS
=$LIBS
12755 LIBS
="-lldap $EXTRA_LDAP_LIBS $LIBS"
12756 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12757 /* end confdefs.h. */
12759 /* Override any GCC internal prototype to avoid an error.
12760 Use char because int might match the return type of a GCC
12761 builtin and then its argument prototype would still apply. */
12769 return ldap_bind ();
12774 if ac_fn_c_try_link
"$LINENO"; then :
12775 ac_cv_lib_ldap_ldap_bind
=yes
12777 ac_cv_lib_ldap_ldap_bind
=no
12779 rm -f core conftest.err conftest.
$ac_objext \
12780 conftest
$ac_exeext conftest.
$ac_ext
12781 LIBS
=$ac_check_lib_save_LIBS
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_bind" >&5
12784 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
12785 if test "x$ac_cv_lib_ldap_ldap_bind" = xyes
; then :
12786 cat >>confdefs.h
<<_ACEOF
12787 #define HAVE_LIBLDAP 1
12790 LIBS
="-lldap $LIBS"
12793 as_fn_error $?
"library 'ldap' is required for LDAP" "$LINENO" 5
12796 LDAP_LIBS_BE
="-lldap $EXTRA_LDAP_LIBS"
12797 # This test is carried out against libldap.
12798 for ac_func
in ldap_initialize
12800 ac_fn_c_check_func
"$LINENO" "ldap_initialize" "ac_cv_func_ldap_initialize"
12801 if test "x$ac_cv_func_ldap_initialize" = xyes
; then :
12802 cat >>confdefs.h
<<_ACEOF
12803 #define HAVE_LDAP_INITIALIZE 1
12809 # The separate ldap_r library only exists in OpenLDAP < 2.5, and if we
12810 # have 2.5 or later, we shouldn't even probe for ldap_r (we might find a
12811 # library from a separate OpenLDAP installation). The most reliable
12812 # way to check that is to check for a function introduced in 2.5.
12813 ac_fn_c_check_func
"$LINENO" "ldap_verify_credentials" "ac_cv_func_ldap_verify_credentials"
12814 if test "x$ac_cv_func_ldap_verify_credentials" = xyes
; then :
12815 thread_safe_libldap
=yes
12817 thread_safe_libldap
=no
12820 if test "$thread_safe_libldap" = no
; then
12821 # Use ldap_r for FE if available, else assume ldap is thread-safe.
12822 # On some platforms ldap_r fails to link without PTHREAD_LIBS.
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lldap_r" >&5
12825 $as_echo_n "checking for ldap_bind in -lldap_r... " >&6; }
12826 if ${ac_cv_lib_ldap_r_ldap_bind+:} false
; then :
12827 $as_echo_n "(cached) " >&6
12829 ac_check_lib_save_LIBS
=$LIBS
12830 LIBS
="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
12831 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12832 /* end confdefs.h. */
12834 /* Override any GCC internal prototype to avoid an error.
12835 Use char because int might match the return type of a GCC
12836 builtin and then its argument prototype would still apply. */
12844 return ldap_bind ();
12849 if ac_fn_c_try_link
"$LINENO"; then :
12850 ac_cv_lib_ldap_r_ldap_bind
=yes
12852 ac_cv_lib_ldap_r_ldap_bind
=no
12854 rm -f core conftest.err conftest.
$ac_objext \
12855 conftest
$ac_exeext conftest.
$ac_ext
12856 LIBS
=$ac_check_lib_save_LIBS
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_bind" >&5
12859 $as_echo "$ac_cv_lib_ldap_r_ldap_bind" >&6; }
12860 if test "x$ac_cv_lib_ldap_r_ldap_bind" = xyes
; then :
12861 LDAP_LIBS_FE
="-lldap_r $EXTRA_LDAP_LIBS"
12863 LDAP_LIBS_FE
="-lldap $EXTRA_LDAP_LIBS"
12867 LDAP_LIBS_FE
="-lldap $EXTRA_LDAP_LIBS"
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lwldap32" >&5
12871 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
12872 if ${ac_cv_lib_wldap32_ldap_bind+:} false
; then :
12873 $as_echo_n "(cached) " >&6
12875 ac_check_lib_save_LIBS
=$LIBS
12876 LIBS
="-lwldap32 $LIBS"
12877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12878 /* end confdefs.h. */
12880 /* Override any GCC internal prototype to avoid an error.
12881 Use char because int might match the return type of a GCC
12882 builtin and then its argument prototype would still apply. */
12890 return ldap_bind ();
12895 if ac_fn_c_try_link
"$LINENO"; then :
12896 ac_cv_lib_wldap32_ldap_bind
=yes
12898 ac_cv_lib_wldap32_ldap_bind
=no
12900 rm -f core conftest.err conftest.
$ac_objext \
12901 conftest
$ac_exeext conftest.
$ac_ext
12902 LIBS
=$ac_check_lib_save_LIBS
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wldap32_ldap_bind" >&5
12905 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
12906 if test "x$ac_cv_lib_wldap32_ldap_bind" = xyes
; then :
12907 cat >>confdefs.h
<<_ACEOF
12908 #define HAVE_LIBWLDAP32 1
12911 LIBS
="-lwldap32 $LIBS"
12914 as_fn_error $?
"library 'wldap32' is required for LDAP" "$LINENO" 5
12917 LDAP_LIBS_FE
="-lwldap32"
12918 LDAP_LIBS_BE
="-lwldap32"
12925 # for contrib/sepgsql
12926 if test "$with_selinux" = yes; then
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for security_compute_create_name in -lselinux" >&5
12928 $as_echo_n "checking for security_compute_create_name in -lselinux... " >&6; }
12929 if ${ac_cv_lib_selinux_security_compute_create_name+:} false
; then :
12930 $as_echo_n "(cached) " >&6
12932 ac_check_lib_save_LIBS
=$LIBS
12933 LIBS
="-lselinux $LIBS"
12934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12935 /* end confdefs.h. */
12937 /* Override any GCC internal prototype to avoid an error.
12938 Use char because int might match the return type of a GCC
12939 builtin and then its argument prototype would still apply. */
12943 char security_compute_create_name ();
12947 return security_compute_create_name ();
12952 if ac_fn_c_try_link
"$LINENO"; then :
12953 ac_cv_lib_selinux_security_compute_create_name
=yes
12955 ac_cv_lib_selinux_security_compute_create_name
=no
12957 rm -f core conftest.err conftest.
$ac_objext \
12958 conftest
$ac_exeext conftest.
$ac_ext
12959 LIBS
=$ac_check_lib_save_LIBS
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_security_compute_create_name" >&5
12962 $as_echo "$ac_cv_lib_selinux_security_compute_create_name" >&6; }
12963 if test "x$ac_cv_lib_selinux_security_compute_create_name" = xyes
; then :
12964 cat >>confdefs.h
<<_ACEOF
12965 #define HAVE_LIBSELINUX 1
12968 LIBS
="-lselinux $LIBS"
12971 as_fn_error $?
"library 'libselinux', version 2.1.10 or newer, is required for SELinux support" "$LINENO" 5
12976 # for contrib/uuid-ossp
12977 if test "$with_uuid" = bsd
; then
12978 # On BSD, the UUID functions are in libc
12979 ac_fn_c_check_func
"$LINENO" "uuid_to_string" "ac_cv_func_uuid_to_string"
12980 if test "x$ac_cv_func_uuid_to_string" = xyes
; then :
12983 as_fn_error $?
"BSD UUID functions are not present" "$LINENO" 5
12986 elif test "$with_uuid" = e2fs
; then
12987 # On macOS, the UUID functions are in libc
12988 ac_fn_c_check_func
"$LINENO" "uuid_generate" "ac_cv_func_uuid_generate"
12989 if test "x$ac_cv_func_uuid_generate" = xyes
; then :
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
12993 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
12994 if ${ac_cv_lib_uuid_uuid_generate+:} false
; then :
12995 $as_echo_n "(cached) " >&6
12997 ac_check_lib_save_LIBS
=$LIBS
12998 LIBS
="-luuid $LIBS"
12999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13000 /* end confdefs.h. */
13002 /* Override any GCC internal prototype to avoid an error.
13003 Use char because int might match the return type of a GCC
13004 builtin and then its argument prototype would still apply. */
13008 char uuid_generate ();
13012 return uuid_generate ();
13017 if ac_fn_c_try_link
"$LINENO"; then :
13018 ac_cv_lib_uuid_uuid_generate
=yes
13020 ac_cv_lib_uuid_uuid_generate
=no
13022 rm -f core conftest.err conftest.
$ac_objext \
13023 conftest
$ac_exeext conftest.
$ac_ext
13024 LIBS
=$ac_check_lib_save_LIBS
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
13027 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
13028 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
; then :
13031 as_fn_error $?
"library 'uuid' is required for E2FS UUID" "$LINENO" 5
13036 elif test "$with_uuid" = ossp
; then
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_export in -lossp-uuid" >&5
13038 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
13039 if ${ac_cv_lib_ossp_uuid_uuid_export+:} false
; then :
13040 $as_echo_n "(cached) " >&6
13042 ac_check_lib_save_LIBS
=$LIBS
13043 LIBS
="-lossp-uuid $LIBS"
13044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13045 /* end confdefs.h. */
13047 /* Override any GCC internal prototype to avoid an error.
13048 Use char because int might match the return type of a GCC
13049 builtin and then its argument prototype would still apply. */
13053 char uuid_export ();
13057 return uuid_export ();
13062 if ac_fn_c_try_link
"$LINENO"; then :
13063 ac_cv_lib_ossp_uuid_uuid_export
=yes
13065 ac_cv_lib_ossp_uuid_uuid_export
=no
13067 rm -f core conftest.err conftest.
$ac_objext \
13068 conftest
$ac_exeext conftest.
$ac_ext
13069 LIBS
=$ac_check_lib_save_LIBS
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
13072 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
13073 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = xyes
; then :
13074 UUID_LIBS
="-lossp-uuid"
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_export in -luuid" >&5
13077 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
13078 if ${ac_cv_lib_uuid_uuid_export+:} false
; then :
13079 $as_echo_n "(cached) " >&6
13081 ac_check_lib_save_LIBS
=$LIBS
13082 LIBS
="-luuid $LIBS"
13083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13084 /* end confdefs.h. */
13086 /* Override any GCC internal prototype to avoid an error.
13087 Use char because int might match the return type of a GCC
13088 builtin and then its argument prototype would still apply. */
13092 char uuid_export ();
13096 return uuid_export ();
13101 if ac_fn_c_try_link
"$LINENO"; then :
13102 ac_cv_lib_uuid_uuid_export
=yes
13104 ac_cv_lib_uuid_uuid_export
=no
13106 rm -f core conftest.err conftest.
$ac_objext \
13107 conftest
$ac_exeext conftest.
$ac_ext
13108 LIBS
=$ac_check_lib_save_LIBS
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_export" >&5
13111 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
13112 if test "x$ac_cv_lib_uuid_uuid_export" = xyes
; then :
13115 as_fn_error $?
"library 'ossp-uuid' or 'uuid' is required for OSSP UUID" "$LINENO" 5
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
13129 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
13130 if ${ac_cv_header_stdbool_h+:} false
; then :
13131 $as_echo_n "(cached) " >&6
13133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13134 /* end confdefs.h. */
13136 #include <stdbool.h>
13138 "error: bool is not defined"
13141 "error: false is not defined"
13144 "error: false is not 0"
13147 "error: true is not defined"
13150 "error: true is not 1"
13152 #ifndef __bool_true_false_are_defined
13153 "error: __bool_true_false_are_defined is not defined"
13156 struct s { _Bool s: 1; _Bool t; } s;
13158 char a[true == 1 ? 1 : -1];
13159 char b[false == 0 ? 1 : -1];
13160 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
13161 char d[(bool) 0.5 == true ? 1 : -1];
13162 /* See body of main program for 'e'. */
13163 char f[(_Bool) 0.0 == false ? 1 : -1];
13165 char h[sizeof (_Bool)];
13166 char i[sizeof s.t];
13167 enum { j = false, k = true, l = false * true, m = true * 256 };
13168 /* The following fails for
13169 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
13171 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
13172 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
13173 /* Catch a bug in an HP-UX C compiler. See
13174 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
13175 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
13187 /* Refer to every declared value, to avoid compiler optimizations. */
13188 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
13189 + !m + !n + !o + !p + !q + !pq);
13195 if ac_fn_c_try_compile
"$LINENO"; then :
13196 ac_cv_header_stdbool_h
=yes
13198 ac_cv_header_stdbool_h
=no
13200 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
13203 $as_echo "$ac_cv_header_stdbool_h" >&6; }
13204 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
13205 if test "x$ac_cv_type__Bool" = xyes
; then :
13207 cat >>confdefs.h
<<_ACEOF
13208 #define HAVE__BOOL 1
13215 if test $ac_cv_header_stdbool_h = yes; then
13217 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
13222 for ac_header
in atomic.h copyfile.h execinfo.h getopt.h ifaddrs.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 xlocale.h
13224 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13225 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13226 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13227 cat >>confdefs.h
<<_ACEOF
13228 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13236 if expr x
"$pgac_cv_check_readline" : 'x-lreadline' >/dev
/null
; then
13237 for ac_header
in readline
/readline.h
13239 ac_fn_c_check_header_mongrel
"$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
13240 if test "x$ac_cv_header_readline_readline_h" = xyes
; then :
13241 cat >>confdefs.h
<<_ACEOF
13242 #define HAVE_READLINE_READLINE_H 1
13246 for ac_header
in readline.h
13248 ac_fn_c_check_header_mongrel
"$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
13249 if test "x$ac_cv_header_readline_h" = xyes
; then :
13250 cat >>confdefs.h
<<_ACEOF
13251 #define HAVE_READLINE_H 1
13255 as_fn_error $?
"readline header not found
13256 If you have readline already installed, see config.log for details on the
13257 failure. It is possible the compiler isn't looking in the proper directory.
13258 Use --without-readline to disable readline support." "$LINENO" 5
13267 for ac_header
in readline
/history.h
13269 ac_fn_c_check_header_mongrel
"$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
13270 if test "x$ac_cv_header_readline_history_h" = xyes
; then :
13271 cat >>confdefs.h
<<_ACEOF
13272 #define HAVE_READLINE_HISTORY_H 1
13276 for ac_header
in history.h
13278 ac_fn_c_check_header_mongrel
"$LINENO" "history.h" "ac_cv_header_history_h" "$ac_includes_default"
13279 if test "x$ac_cv_header_history_h" = xyes
; then :
13280 cat >>confdefs.h
<<_ACEOF
13281 #define HAVE_HISTORY_H 1
13285 as_fn_error $?
"history header not found
13286 If you have readline already installed, see config.log for details on the
13287 failure. It is possible the compiler isn't looking in the proper directory.
13288 Use --without-readline to disable readline support." "$LINENO" 5
13299 if expr x
"$pgac_cv_check_readline" : 'x-ledit' >/dev
/null
; then
13300 # Some installations of libedit usurp /usr/include/readline/, which seems
13301 # bad practice, since in combined installations readline will have its headers
13302 # there. We might have to resort to AC_EGREP checks to make sure we found
13303 # the proper header...
13304 for ac_header
in editline
/readline.h
13306 ac_fn_c_check_header_mongrel
"$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
13307 if test "x$ac_cv_header_editline_readline_h" = xyes
; then :
13308 cat >>confdefs.h
<<_ACEOF
13309 #define HAVE_EDITLINE_READLINE_H 1
13313 for ac_header
in readline.h
13315 ac_fn_c_check_header_mongrel
"$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
13316 if test "x$ac_cv_header_readline_h" = xyes
; then :
13317 cat >>confdefs.h
<<_ACEOF
13318 #define HAVE_READLINE_H 1
13322 for ac_header
in readline
/readline.h
13324 ac_fn_c_check_header_mongrel
"$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
13325 if test "x$ac_cv_header_readline_readline_h" = xyes
; then :
13326 cat >>confdefs.h
<<_ACEOF
13327 #define HAVE_READLINE_READLINE_H 1
13331 as_fn_error $?
"readline header not found
13332 If you have libedit already installed, see config.log for details on the
13333 failure. It is possible the compiler isn't looking in the proper directory.
13334 Use --without-readline to disable libedit support." "$LINENO" 5
13347 # Note: in a libedit installation, history.h is sometimes a dummy, and may
13348 # not be there at all. Hence, don't complain if not found. We must check
13349 # though, since in yet other versions it is an independent header.
13350 for ac_header
in editline
/history.h
13352 ac_fn_c_check_header_mongrel
"$LINENO" "editline/history.h" "ac_cv_header_editline_history_h" "$ac_includes_default"
13353 if test "x$ac_cv_header_editline_history_h" = xyes
; then :
13354 cat >>confdefs.h
<<_ACEOF
13355 #define HAVE_EDITLINE_HISTORY_H 1
13359 for ac_header
in history.h
13361 ac_fn_c_check_header_mongrel
"$LINENO" "history.h" "ac_cv_header_history_h" "$ac_includes_default"
13362 if test "x$ac_cv_header_history_h" = xyes
; then :
13363 cat >>confdefs.h
<<_ACEOF
13364 #define HAVE_HISTORY_H 1
13368 for ac_header
in readline
/history.h
13370 ac_fn_c_check_header_mongrel
"$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
13371 if test "x$ac_cv_header_readline_history_h" = xyes
; then :
13372 cat >>confdefs.h
<<_ACEOF
13373 #define HAVE_READLINE_HISTORY_H 1
13390 if test "$with_zlib" = yes; then
13391 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13392 if test "x$ac_cv_header_zlib_h" = xyes
; then :
13395 as_fn_error $?
"zlib header not found
13396 If you have zlib already installed, see config.log for details on the
13397 failure. It is possible the compiler isn't looking in the proper directory.
13398 Use --without-zlib to disable zlib support." "$LINENO" 5
13404 if test -z "$LZ4"; then
13407 # Extract the first word of "$ac_prog", so it can be a program name with args.
13408 set dummy
$ac_prog; ac_word
=$2
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13410 $as_echo_n "checking for $ac_word... " >&6; }
13411 if ${ac_cv_path_LZ4+:} false
; then :
13412 $as_echo_n "(cached) " >&6
13416 ac_cv_path_LZ4
="$LZ4" # Let the user override the test with a path.
13419 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13420 for as_dir
in $PATH
13423 test -z "$as_dir" && as_dir
=.
13424 for ac_exec_ext
in '' $ac_executable_extensions; do
13425 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13426 ac_cv_path_LZ4
="$as_dir/$ac_word$ac_exec_ext"
13427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13437 LZ4
=$ac_cv_path_LZ4
13438 if test -n "$LZ4"; then
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZ4" >&5
13440 $as_echo "$LZ4" >&6; }
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13443 $as_echo "no" >&6; }
13447 test -n "$LZ4" && break
13451 # Report the value of LZ4 in configure's output in all cases.
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZ4" >&5
13453 $as_echo_n "checking for LZ4... " >&6; }
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZ4" >&5
13455 $as_echo "$LZ4" >&6; }
13458 if test "$with_lz4" = yes; then
13459 ac_fn_c_check_header_mongrel
"$LINENO" "lz4.h" "ac_cv_header_lz4_h" "$ac_includes_default"
13460 if test "x$ac_cv_header_lz4_h" = xyes
; then :
13463 as_fn_error $?
"lz4.h header file is required for LZ4" "$LINENO" 5
13469 if test -z "$ZSTD"; then
13470 for ac_prog
in zstd
13472 # Extract the first word of "$ac_prog", so it can be a program name with args.
13473 set dummy
$ac_prog; ac_word
=$2
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13475 $as_echo_n "checking for $ac_word... " >&6; }
13476 if ${ac_cv_path_ZSTD+:} false
; then :
13477 $as_echo_n "(cached) " >&6
13481 ac_cv_path_ZSTD
="$ZSTD" # Let the user override the test with a path.
13484 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13485 for as_dir
in $PATH
13488 test -z "$as_dir" && as_dir
=.
13489 for ac_exec_ext
in '' $ac_executable_extensions; do
13490 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13491 ac_cv_path_ZSTD
="$as_dir/$ac_word$ac_exec_ext"
13492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13502 ZSTD
=$ac_cv_path_ZSTD
13503 if test -n "$ZSTD"; then
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZSTD" >&5
13505 $as_echo "$ZSTD" >&6; }
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13508 $as_echo "no" >&6; }
13512 test -n "$ZSTD" && break
13516 # Report the value of ZSTD in configure's output in all cases.
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZSTD" >&5
13518 $as_echo_n "checking for ZSTD... " >&6; }
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZSTD" >&5
13520 $as_echo "$ZSTD" >&6; }
13523 if test "$with_zstd" = yes; then
13524 ac_fn_c_check_header_mongrel
"$LINENO" "zstd.h" "ac_cv_header_zstd_h" "$ac_includes_default"
13525 if test "x$ac_cv_header_zstd_h" = xyes
; then :
13528 as_fn_error $?
"zstd.h header file is required for ZSTD" "$LINENO" 5
13534 if test "$with_gssapi" = yes ; then
13535 for ac_header
in gssapi
/gssapi.h
13537 ac_fn_c_check_header_mongrel
"$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
13538 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes
; then :
13539 cat >>confdefs.h
<<_ACEOF
13540 #define HAVE_GSSAPI_GSSAPI_H 1
13544 for ac_header
in gssapi.h
13546 ac_fn_c_check_header_mongrel
"$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
13547 if test "x$ac_cv_header_gssapi_h" = xyes
; then :
13548 cat >>confdefs.h
<<_ACEOF
13549 #define HAVE_GSSAPI_H 1
13553 as_fn_error $?
"gssapi.h header file is required for GSSAPI" "$LINENO" 5
13562 for ac_header
in gssapi
/gssapi_ext.h
13564 ac_fn_c_check_header_mongrel
"$LINENO" "gssapi/gssapi_ext.h" "ac_cv_header_gssapi_gssapi_ext_h" "$ac_includes_default"
13565 if test "x$ac_cv_header_gssapi_gssapi_ext_h" = xyes
; then :
13566 cat >>confdefs.h
<<_ACEOF
13567 #define HAVE_GSSAPI_GSSAPI_EXT_H 1
13571 for ac_header
in gssapi_ext.h
13573 ac_fn_c_check_header_mongrel
"$LINENO" "gssapi_ext.h" "ac_cv_header_gssapi_ext_h" "$ac_includes_default"
13574 if test "x$ac_cv_header_gssapi_ext_h" = xyes
; then :
13575 cat >>confdefs.h
<<_ACEOF
13576 #define HAVE_GSSAPI_EXT_H 1
13580 as_fn_error $?
"gssapi_ext.h header file is required for GSSAPI" "$LINENO" 5
13591 if test -z "$OPENSSL"; then
13592 for ac_prog
in openssl
13594 # Extract the first word of "$ac_prog", so it can be a program name with args.
13595 set dummy
$ac_prog; ac_word
=$2
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13597 $as_echo_n "checking for $ac_word... " >&6; }
13598 if ${ac_cv_path_OPENSSL+:} false
; then :
13599 $as_echo_n "(cached) " >&6
13603 ac_cv_path_OPENSSL
="$OPENSSL" # Let the user override the test with a path.
13606 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13607 for as_dir
in $PATH
13610 test -z "$as_dir" && as_dir
=.
13611 for ac_exec_ext
in '' $ac_executable_extensions; do
13612 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13613 ac_cv_path_OPENSSL
="$as_dir/$ac_word$ac_exec_ext"
13614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13624 OPENSSL
=$ac_cv_path_OPENSSL
13625 if test -n "$OPENSSL"; then
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
13627 $as_echo "$OPENSSL" >&6; }
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13630 $as_echo "no" >&6; }
13634 test -n "$OPENSSL" && break
13638 # Report the value of OPENSSL in configure's output in all cases.
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
13640 $as_echo_n "checking for OPENSSL... " >&6; }
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
13642 $as_echo "$OPENSSL" >&6; }
13645 pgac_openssl_version
="$($OPENSSL version 2> /dev/null || echo openssl not found)"
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: using openssl: $pgac_openssl_version" >&5
13647 $as_echo "$as_me: using openssl: $pgac_openssl_version" >&6;}
13648 if test "$with_ssl" = openssl
; then
13649 ac_fn_c_check_header_mongrel
"$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
13650 if test "x$ac_cv_header_openssl_ssl_h" = xyes
; then :
13653 as_fn_error $?
"header file <openssl/ssl.h> is required for OpenSSL" "$LINENO" 5
13657 ac_fn_c_check_header_mongrel
"$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default"
13658 if test "x$ac_cv_header_openssl_err_h" = xyes
; then :
13661 as_fn_error $?
"header file <openssl/err.h> is required for OpenSSL" "$LINENO" 5
13667 if test "$with_pam" = yes ; then
13668 for ac_header
in security
/pam_appl.h
13670 ac_fn_c_check_header_mongrel
"$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
13671 if test "x$ac_cv_header_security_pam_appl_h" = xyes
; then :
13672 cat >>confdefs.h
<<_ACEOF
13673 #define HAVE_SECURITY_PAM_APPL_H 1
13677 for ac_header
in pam
/pam_appl.h
13679 ac_fn_c_check_header_mongrel
"$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
13680 if test "x$ac_cv_header_pam_pam_appl_h" = xyes
; then :
13681 cat >>confdefs.h
<<_ACEOF
13682 #define HAVE_PAM_PAM_APPL_H 1
13686 as_fn_error $?
"header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." "$LINENO" 5
13697 if test "$with_bsd_auth" = yes ; then
13698 ac_fn_c_check_header_mongrel
"$LINENO" "bsd_auth.h" "ac_cv_header_bsd_auth_h" "$ac_includes_default"
13699 if test "x$ac_cv_header_bsd_auth_h" = xyes
; then :
13702 as_fn_error $?
"header file <bsd_auth.h> is required for BSD Authentication support" "$LINENO" 5
13708 if test "$with_systemd" = yes ; then
13709 ac_fn_c_check_header_mongrel
"$LINENO" "systemd/sd-daemon.h" "ac_cv_header_systemd_sd_daemon_h" "$ac_includes_default"
13710 if test "x$ac_cv_header_systemd_sd_daemon_h" = xyes
; then :
13713 as_fn_error $?
"header file <systemd/sd-daemon.h> is required for systemd support" "$LINENO" 5
13719 if test "$with_libxml" = yes ; then
13720 ac_fn_c_check_header_mongrel
"$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
13721 if test "x$ac_cv_header_libxml_parser_h" = xyes
; then :
13724 as_fn_error $?
"header file <libxml/parser.h> is required for XML support" "$LINENO" 5
13730 if test "$with_libxslt" = yes ; then
13731 ac_fn_c_check_header_mongrel
"$LINENO" "libxslt/xslt.h" "ac_cv_header_libxslt_xslt_h" "$ac_includes_default"
13732 if test "x$ac_cv_header_libxslt_xslt_h" = xyes
; then :
13735 as_fn_error $?
"header file <libxslt/xslt.h> is required for XSLT support" "$LINENO" 5
13741 if test "$with_ldap" = yes ; then
13742 if test "$PORTNAME" != "win32"; then
13743 ac_fn_c_check_header_mongrel
"$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
13744 if test "x$ac_cv_header_ldap_h" = xyes
; then :
13747 as_fn_error $?
"header file <ldap.h> is required for LDAP" "$LINENO" 5
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible LDAP implementation" >&5
13752 $as_echo_n "checking for compatible LDAP implementation... " >&6; }
13753 if ${pgac_cv_ldap_safe+:} false
; then :
13754 $as_echo_n "(cached) " >&6
13756 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13757 /* end confdefs.h. */
13759 #if !defined(LDAP_VENDOR_VERSION) || \
13760 (defined(LDAP_API_FEATURE_X_OPENLDAP) && \
13761 LDAP_VENDOR_VERSION >= 20424 && LDAP_VENDOR_VERSION <= 20431)
13772 if ac_fn_c_try_compile
"$LINENO"; then :
13773 pgac_cv_ldap_safe
=yes
13775 pgac_cv_ldap_safe
=no
13777 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_ldap_safe" >&5
13780 $as_echo "$pgac_cv_ldap_safe" >&6; }
13782 if test "$pgac_cv_ldap_safe" != yes; then
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
13784 *** With OpenLDAP versions 2.4.24 through 2.4.31, inclusive, each backend
13785 *** process that loads libpq (via WAL receiver, dblink, or postgres_fdw) and
13786 *** also uses LDAP will crash on exit." >&5
13787 $as_echo "$as_me: WARNING:
13788 *** With OpenLDAP versions 2.4.24 through 2.4.31, inclusive, each backend
13789 *** process that loads libpq (via WAL receiver, dblink, or postgres_fdw) and
13790 *** also uses LDAP will crash on exit." >&2;}
13793 ac_fn_c_check_header_compile
"$LINENO" "winldap.h" "ac_cv_header_winldap_h" "$ac_includes_default
13794 #include <windows.h>
13797 if test "x$ac_cv_header_winldap_h" = xyes
; then :
13800 as_fn_error $?
"header file <winldap.h> is required for LDAP" "$LINENO" 5
13807 if test "$with_bonjour" = yes ; then
13808 ac_fn_c_check_header_mongrel
"$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
13809 if test "x$ac_cv_header_dns_sd_h" = xyes
; then :
13812 as_fn_error $?
"header file <dns_sd.h> is required for Bonjour" "$LINENO" 5
13818 # for contrib/uuid-ossp
13819 if test "$with_uuid" = bsd
; then
13820 for ac_header
in uuid.h
13822 ac_fn_c_check_header_mongrel
"$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
13823 if test "x$ac_cv_header_uuid_h" = xyes
; then :
13824 cat >>confdefs.h
<<_ACEOF
13825 #define HAVE_UUID_H 1
13827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13828 /* end confdefs.h. */
13832 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13833 $EGREP "uuid_to_string" >/dev
/null
2>&1; then :
13836 as_fn_error $?
"header file <uuid.h> does not match BSD UUID library" "$LINENO" 5
13841 as_fn_error $?
"header file <uuid.h> is required for BSD UUID" "$LINENO" 5
13846 elif test "$with_uuid" = e2fs
; then
13847 for ac_header
in uuid
/uuid.h
13849 ac_fn_c_check_header_mongrel
"$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
13850 if test "x$ac_cv_header_uuid_uuid_h" = xyes
; then :
13851 cat >>confdefs.h
<<_ACEOF
13852 #define HAVE_UUID_UUID_H 1
13854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13855 /* end confdefs.h. */
13856 #include <uuid/uuid.h>
13859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13860 $EGREP "uuid_generate" >/dev
/null
2>&1; then :
13863 as_fn_error $?
"header file <uuid/uuid.h> does not match E2FS UUID library" "$LINENO" 5
13868 for ac_header
in uuid.h
13870 ac_fn_c_check_header_mongrel
"$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
13871 if test "x$ac_cv_header_uuid_h" = xyes
; then :
13872 cat >>confdefs.h
<<_ACEOF
13873 #define HAVE_UUID_H 1
13875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13876 /* end confdefs.h. */
13880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13881 $EGREP "uuid_generate" >/dev
/null
2>&1; then :
13884 as_fn_error $?
"header file <uuid.h> does not match E2FS UUID library" "$LINENO" 5
13889 as_fn_error $?
"header file <uuid/uuid.h> or <uuid.h> is required for E2FS UUID" "$LINENO" 5
13898 elif test "$with_uuid" = ossp
; then
13899 for ac_header
in ossp
/uuid.h
13901 ac_fn_c_check_header_mongrel
"$LINENO" "ossp/uuid.h" "ac_cv_header_ossp_uuid_h" "$ac_includes_default"
13902 if test "x$ac_cv_header_ossp_uuid_h" = xyes
; then :
13903 cat >>confdefs.h
<<_ACEOF
13904 #define HAVE_OSSP_UUID_H 1
13906 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13907 /* end confdefs.h. */
13908 #include <ossp/uuid.h>
13911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13912 $EGREP "uuid_export" >/dev
/null
2>&1; then :
13915 as_fn_error $?
"header file <ossp/uuid.h> does not match OSSP UUID library" "$LINENO" 5
13920 for ac_header
in uuid.h
13922 ac_fn_c_check_header_mongrel
"$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
13923 if test "x$ac_cv_header_uuid_h" = xyes
; then :
13924 cat >>confdefs.h
<<_ACEOF
13925 #define HAVE_UUID_H 1
13927 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13928 /* end confdefs.h. */
13932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13933 $EGREP "uuid_export" >/dev
/null
2>&1; then :
13936 as_fn_error $?
"header file <uuid.h> does not match OSSP UUID library" "$LINENO" 5
13941 as_fn_error $?
"header file <ossp/uuid.h> or <uuid.h> is required for OSSP UUID" "$LINENO" 5
13952 if test "$PORTNAME" = "win32" ; then
13953 for ac_header
in crtdefs.h
13955 ac_fn_c_check_header_mongrel
"$LINENO" "crtdefs.h" "ac_cv_header_crtdefs_h" "$ac_includes_default"
13956 if test "x$ac_cv_header_crtdefs_h" = xyes
; then :
13957 cat >>confdefs.h
<<_ACEOF
13958 #define HAVE_CRTDEFS_H 1
13968 ## Types, structures, compiler characteristics
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13972 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13973 if ${ac_cv_c_bigendian+:} false
; then :
13974 $as_echo_n "(cached) " >&6
13976 ac_cv_c_bigendian
=unknown
13977 # See if we're dealing with a universal compiler.
13978 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13979 /* end confdefs.h. */
13980 #ifndef __APPLE_CC__
13981 not a universal capable compiler
13986 if ac_fn_c_try_compile
"$LINENO"; then :
13988 # Check for potential -arch flags. It is not universal unless
13989 # there are at least two -arch flags with different values.
13992 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13993 if test -n "$ac_prev"; then
13995 i?
86 | x86_64 | ppc | ppc64
)
13996 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
13999 ac_cv_c_bigendian
=universal
14005 elif test "x$ac_word" = "x-arch"; then
14010 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14011 if test $ac_cv_c_bigendian = unknown
; then
14012 # See if sys/param.h defines the BYTE_ORDER macro.
14013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14014 /* end confdefs.h. */
14015 #include <sys/types.h>
14016 #include <sys/param.h>
14021 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14022 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14024 bogus endian macros
14031 if ac_fn_c_try_compile
"$LINENO"; then :
14032 # It does; now see whether it defined to BIG_ENDIAN or not.
14033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14034 /* end confdefs.h. */
14035 #include <sys/types.h>
14036 #include <sys/param.h>
14041 #if BYTE_ORDER != BIG_ENDIAN
14049 if ac_fn_c_try_compile
"$LINENO"; then :
14050 ac_cv_c_bigendian
=yes
14052 ac_cv_c_bigendian
=no
14054 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14056 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14058 if test $ac_cv_c_bigendian = unknown
; then
14059 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14061 /* end confdefs.h. */
14062 #include <limits.h>
14067 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14068 bogus endian macros
14075 if ac_fn_c_try_compile
"$LINENO"; then :
14076 # It does; now see whether it defined to _BIG_ENDIAN or not.
14077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14078 /* end confdefs.h. */
14079 #include <limits.h>
14084 #ifndef _BIG_ENDIAN
14092 if ac_fn_c_try_compile
"$LINENO"; then :
14093 ac_cv_c_bigendian
=yes
14095 ac_cv_c_bigendian
=no
14097 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14099 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14101 if test $ac_cv_c_bigendian = unknown
; then
14102 # Compile a test program.
14103 if test "$cross_compiling" = yes; then :
14104 # Try to guess by grepping values from an object file.
14105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14106 /* end confdefs.h. */
14107 short int ascii_mm[] =
14108 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14109 short int ascii_ii[] =
14110 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14111 int use_ascii (int i) {
14112 return ascii_mm[i] + ascii_ii[i];
14114 short int ebcdic_ii[] =
14115 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14116 short int ebcdic_mm[] =
14117 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14118 int use_ebcdic (int i) {
14119 return ebcdic_mm[i] + ebcdic_ii[i];
14126 return use_ascii (foo) == use_ebcdic (foo);
14131 if ac_fn_c_try_compile
"$LINENO"; then :
14132 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
14133 ac_cv_c_bigendian
=yes
14135 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
14136 if test "$ac_cv_c_bigendian" = unknown
; then
14137 ac_cv_c_bigendian
=no
14139 # finding both strings is unlikely to happen, but who knows?
14140 ac_cv_c_bigendian
=unknown
14144 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14146 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14147 /* end confdefs.h. */
14148 $ac_includes_default
14153 /* Are we little or big endian? From Harbison&Steele. */
14157 char c[sizeof (long int)];
14160 return u.c[sizeof (long int) - 1] == 1;
14166 if ac_fn_c_try_run
"$LINENO"; then :
14167 ac_cv_c_bigendian
=no
14169 ac_cv_c_bigendian
=yes
14171 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14172 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14178 $as_echo "$ac_cv_c_bigendian" >&6; }
14179 case $ac_cv_c_bigendian in #(
14181 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14187 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14191 as_fn_error $?
"unknown endianness
14192 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14196 $as_echo_n "checking for inline... " >&6; }
14197 if ${ac_cv_c_inline+:} false
; then :
14198 $as_echo_n "(cached) " >&6
14201 for ac_kw
in inline __inline__ __inline
; do
14202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14203 /* end confdefs.h. */
14204 #ifndef __cplusplus
14206 static $ac_kw foo_t static_foo () {return 0; }
14207 $ac_kw foo_t foo () {return 0; }
14211 if ac_fn_c_try_compile
"$LINENO"; then :
14212 ac_cv_c_inline
=$ac_kw
14214 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14215 test "$ac_cv_c_inline" != no
&& break
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14220 $as_echo "$ac_cv_c_inline" >&6; }
14222 case $ac_cv_c_inline in
14225 case $ac_cv_c_inline in
14227 *) ac_val
=$ac_cv_c_inline;;
14229 cat >>confdefs.h
<<_ACEOF
14230 #ifndef __cplusplus
14231 #define inline $ac_val
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf format archetype" >&5
14238 $as_echo_n "checking for printf format archetype... " >&6; }
14239 if ${pgac_cv_printf_archetype+:} false
; then :
14240 $as_echo_n "(cached) " >&6
14242 pgac_cv_printf_archetype
=gnu_printf
14243 ac_save_c_werror_flag
=$ac_c_werror_flag
14244 ac_c_werror_flag
=yes
14245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14246 /* end confdefs.h. */
14247 extern void pgac_write(int ignore, const char *fmt,...)
14248 __attribute__((format($pgac_cv_printf_archetype, 2, 3)));
14252 pgac_write(0, "error %s: %m", "foo");
14257 if ac_fn_c_try_compile
"$LINENO"; then :
14258 ac_archetype_ok
=yes
14262 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14263 ac_c_werror_flag
=$ac_save_c_werror_flag
14265 if [ "$ac_archetype_ok" = no
]; then
14266 pgac_cv_printf_archetype
=__syslog__
14267 ac_save_c_werror_flag
=$ac_c_werror_flag
14268 ac_c_werror_flag
=yes
14269 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14270 /* end confdefs.h. */
14271 extern void pgac_write(int ignore, const char *fmt,...)
14272 __attribute__((format($pgac_cv_printf_archetype, 2, 3)));
14276 pgac_write(0, "error %s: %m", "foo");
14281 if ac_fn_c_try_compile
"$LINENO"; then :
14282 ac_archetype_ok
=yes
14286 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14287 ac_c_werror_flag
=$ac_save_c_werror_flag
14289 if [ "$ac_archetype_ok" = no
]; then
14290 pgac_cv_printf_archetype
=printf
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_printf_archetype" >&5
14295 $as_echo "$pgac_cv_printf_archetype" >&6; }
14297 cat >>confdefs.h
<<_ACEOF
14298 #define PG_PRINTF_ATTRIBUTE $pgac_cv_printf_archetype
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Static_assert" >&5
14303 $as_echo_n "checking for _Static_assert... " >&6; }
14304 if ${pgac_cv__static_assert+:} false
; then :
14305 $as_echo_n "(cached) " >&6
14307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14308 /* end confdefs.h. */
14313 ({ _Static_assert(1, "foo"); })
14318 if ac_fn_c_try_link
"$LINENO"; then :
14319 pgac_cv__static_assert
=yes
14321 pgac_cv__static_assert
=no
14323 rm -f core conftest.err conftest.
$ac_objext \
14324 conftest
$ac_exeext conftest.
$ac_ext
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__static_assert" >&5
14327 $as_echo "$pgac_cv__static_assert" >&6; }
14328 if test x
"$pgac_cv__static_assert" = xyes
; then
14330 $as_echo "#define HAVE__STATIC_ASSERT 1" >>confdefs.h
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
14334 $as_echo_n "checking for typeof... " >&6; }
14335 if ${pgac_cv_c_typeof+:} false
; then :
14336 $as_echo_n "(cached) " >&6
14338 pgac_cv_c_typeof
=no
14339 for pgac_kw
in typeof __typeof__ decltype
; do
14340 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14341 /* end confdefs.h. */
14354 if ac_fn_c_try_compile
"$LINENO"; then :
14355 pgac_cv_c_typeof
=$pgac_kw
14357 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14358 test "$pgac_cv_c_typeof" != no
&& break
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_c_typeof" >&5
14362 $as_echo "$pgac_cv_c_typeof" >&6; }
14363 if test "$pgac_cv_c_typeof" != no
; then
14365 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
14367 if test "$pgac_cv_c_typeof" != typeof
; then
14369 cat >>confdefs.h
<<_ACEOF
14370 #define typeof $pgac_cv_c_typeof
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_types_compatible_p" >&5
14376 $as_echo_n "checking for __builtin_types_compatible_p... " >&6; }
14377 if ${pgac_cv__types_compatible+:} false
; then :
14378 $as_echo_n "(cached) " >&6
14380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14381 /* end confdefs.h. */
14386 int x; static int y[__builtin_types_compatible_p(__typeof__(x), int)];
14391 if ac_fn_c_try_compile
"$LINENO"; then :
14392 pgac_cv__types_compatible
=yes
14394 pgac_cv__types_compatible
=no
14396 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__types_compatible" >&5
14399 $as_echo "$pgac_cv__types_compatible" >&6; }
14400 if test x
"$pgac_cv__types_compatible" = xyes
; then
14402 $as_echo "#define HAVE__BUILTIN_TYPES_COMPATIBLE_P 1" >>confdefs.h
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_constant_p" >&5
14406 $as_echo_n "checking for __builtin_constant_p... " >&6; }
14407 if ${pgac_cv__builtin_constant_p+:} false
; then :
14408 $as_echo_n "(cached) " >&6
14410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14411 /* end confdefs.h. */
14413 static int y[__builtin_constant_p(x) ? x : 1];
14414 static int z[__builtin_constant_p("string literal") ? 1 : x];
14418 if ac_fn_c_try_compile
"$LINENO"; then :
14419 pgac_cv__builtin_constant_p
=yes
14421 pgac_cv__builtin_constant_p
=no
14423 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_constant_p" >&5
14426 $as_echo "$pgac_cv__builtin_constant_p" >&6; }
14427 if test x
"$pgac_cv__builtin_constant_p" = xyes
; then
14429 $as_echo "#define HAVE__BUILTIN_CONSTANT_P 1" >>confdefs.h
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unreachable" >&5
14433 $as_echo_n "checking for __builtin_unreachable... " >&6; }
14434 if ${pgac_cv__builtin_unreachable+:} false
; then :
14435 $as_echo_n "(cached) " >&6
14437 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14438 /* end confdefs.h. */
14443 __builtin_unreachable();
14448 if ac_fn_c_try_link
"$LINENO"; then :
14449 pgac_cv__builtin_unreachable
=yes
14451 pgac_cv__builtin_unreachable
=no
14453 rm -f core conftest.err conftest.
$ac_objext \
14454 conftest
$ac_exeext conftest.
$ac_ext
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_unreachable" >&5
14457 $as_echo "$pgac_cv__builtin_unreachable" >&6; }
14458 if test x
"$pgac_cv__builtin_unreachable" = xyes
; then
14460 $as_echo "#define HAVE__BUILTIN_UNREACHABLE 1" >>confdefs.h
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for computed goto support" >&5
14464 $as_echo_n "checking for computed goto support... " >&6; }
14465 if ${pgac_cv_computed_goto+:} false
; then :
14466 $as_echo_n "(cached) " >&6
14468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14469 /* end confdefs.h. */
14474 void *labeladdrs[] = {&&my_label};
14475 goto *labeladdrs[0];
14483 if ac_fn_c_try_compile
"$LINENO"; then :
14484 pgac_cv_computed_goto
=yes
14486 pgac_cv_computed_goto
=no
14488 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_computed_goto" >&5
14491 $as_echo "$pgac_cv_computed_goto" >&6; }
14492 if test x
"$pgac_cv_computed_goto" = xyes
; then
14494 $as_echo "#define HAVE_COMPUTED_GOTO 1" >>confdefs.h
14497 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
14501 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
; then :
14503 cat >>confdefs.h
<<_ACEOF
14504 #define HAVE_STRUCT_TM_TM_ZONE 1
14511 ac_fn_c_check_type
"$LINENO" "union semun" "ac_cv_type_union_semun" "#include <sys/types.h>
14512 #include <sys/ipc.h>
14513 #include <sys/sem.h>
14516 if test "x$ac_cv_type_union_semun" = xyes
; then :
14518 cat >>confdefs.h
<<_ACEOF
14519 #define HAVE_UNION_SEMUN 1
14525 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/socket.h>
14527 if test "x$ac_cv_type_socklen_t" = xyes
; then :
14529 cat >>confdefs.h
<<_ACEOF
14530 #define HAVE_SOCKLEN_T 1
14536 ac_fn_c_check_member
"$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
14537 #include <sys/socket.h>
14540 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes
; then :
14542 cat >>confdefs.h
<<_ACEOF
14543 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
14550 # MSVC doesn't cope well with defining restrict to __restrict, the
14551 # spelling it understands, because it conflicts with
14552 # __declspec(restrict). Therefore we define pg_restrict to the
14553 # appropriate definition, which presumably won't conflict.
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
14555 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
14556 if ${ac_cv_c_restrict+:} false
; then :
14557 $as_echo_n "(cached) " >&6
14559 ac_cv_c_restrict
=no
14560 # The order here caters to the fact that C++ does not require restrict.
14561 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
14562 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14563 /* end confdefs.h. */
14564 typedef int * int_ptr;
14565 int foo (int_ptr $ac_kw ip) {
14572 int * $ac_kw t = s;
14579 if ac_fn_c_try_compile
"$LINENO"; then :
14580 ac_cv_c_restrict
=$ac_kw
14582 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14583 test "$ac_cv_c_restrict" != no
&& break
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
14588 $as_echo "$ac_cv_c_restrict" >&6; }
14590 case $ac_cv_c_restrict in
14592 no
) $as_echo "#define restrict /**/" >>confdefs.h
14594 *) cat >>confdefs.h
<<_ACEOF
14595 #define restrict $ac_cv_c_restrict
14600 if test "$ac_cv_c_restrict" = "no"; then
14603 pg_restrict
="$ac_cv_c_restrict"
14606 cat >>confdefs.h
<<_ACEOF
14607 #define pg_restrict $pg_restrict
14611 ac_fn_c_check_type
"$LINENO" "struct option" "ac_cv_type_struct_option" "#ifdef HAVE_GETOPT_H
14612 #include <getopt.h>
14615 if test "x$ac_cv_type_struct_option" = xyes
; then :
14617 cat >>confdefs.h
<<_ACEOF
14618 #define HAVE_STRUCT_OPTION 1
14627 # On x86_64, check if we can compile a popcntq instruction
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports x86_64 popcntq" >&5
14629 $as_echo_n "checking whether assembler supports x86_64 popcntq... " >&6; }
14630 if ${pgac_cv_have_x86_64_popcntq+:} false
; then :
14631 $as_echo_n "(cached) " >&6
14633 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14634 /* end confdefs.h. */
14639 long long x = 1; long long r;
14640 __asm__ __volatile__ (" popcntq %1,%0\n" : "=q"(r) : "rm"(x));
14645 if ac_fn_c_try_compile
"$LINENO"; then :
14646 pgac_cv_have_x86_64_popcntq
=yes
14648 pgac_cv_have_x86_64_popcntq
=no
14650 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_have_x86_64_popcntq" >&5
14653 $as_echo "$pgac_cv_have_x86_64_popcntq" >&6; }
14654 if test x
"$pgac_cv_have_x86_64_popcntq" = xyes
; then
14656 $as_echo "#define HAVE_X86_64_POPCNTQ 1" >>confdefs.h
14661 # On PPC, check if compiler accepts "i"(x) when __builtin_constant_p(x).
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __builtin_constant_p(x) implies \"i\"(x) acceptance" >&5
14663 $as_echo_n "checking whether __builtin_constant_p(x) implies \"i\"(x) acceptance... " >&6; }
14664 if ${pgac_cv_have_i_constraint__builtin_constant_p+:} false
; then :
14665 $as_echo_n "(cached) " >&6
14667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14668 /* end confdefs.h. */
14670 addi(int ra, int si)
14673 if (__builtin_constant_p(si))
14674 __asm__ __volatile__(
14675 " addi %0,%1,%2\n" : "=r"(res) : "b"(ra), "i"(si));
14678 int test_adds(int x) { return addi(3, x) + addi(x, 5); }
14687 if ac_fn_c_try_compile
"$LINENO"; then :
14688 pgac_cv_have_i_constraint__builtin_constant_p
=yes
14690 pgac_cv_have_i_constraint__builtin_constant_p
=no
14692 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_have_i_constraint__builtin_constant_p" >&5
14695 $as_echo "$pgac_cv_have_i_constraint__builtin_constant_p" >&6; }
14696 if test x
"$pgac_cv_have_i_constraint__builtin_constant_p" = xyes
; then
14698 $as_echo "#define HAVE_I_CONSTRAINT__BUILTIN_CONSTANT_P 1" >>confdefs.h
14704 # Check largefile support. You might think this is a system service not a
14705 # compiler characteristic, but you'd be wrong. We must check this before
14706 # probing existence of related functions such as fseeko, since the largefile
14707 # defines can affect what is generated for that.
14708 if test "$PORTNAME" != "win32"; then
14709 # Check whether --enable-largefile was given.
14710 if test "${enable_largefile+set}" = set; then :
14711 enableval
=$enable_largefile;
14714 if test "$enable_largefile" != no
; then
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
14717 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
14718 if ${ac_cv_sys_largefile_CC+:} false
; then :
14719 $as_echo_n "(cached) " >&6
14721 ac_cv_sys_largefile_CC
=no
14722 if test "$GCC" != yes; then
14725 # IRIX 6.2 and later do not support large files by default,
14726 # so use the C compiler's -n32 option if that helps.
14727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14728 /* end confdefs.h. */
14729 #include <sys/types.h>
14730 /* Check that off_t can represent 2**63 - 1 correctly.
14731 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14732 since some C++ compilers masquerading as C compilers
14733 incorrectly reject 9223372036854775807. */
14734 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14735 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14736 && LARGE_OFF_T % 2147483647 == 1)
14746 if ac_fn_c_try_compile
"$LINENO"; then :
14749 rm -f core conftest.err conftest.
$ac_objext
14751 if ac_fn_c_try_compile
"$LINENO"; then :
14752 ac_cv_sys_largefile_CC
=' -n32'; break
14754 rm -f core conftest.err conftest.
$ac_objext
14758 rm -f conftest.
$ac_ext
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
14762 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
14763 if test "$ac_cv_sys_largefile_CC" != no
; then
14764 CC
=$CC$ac_cv_sys_largefile_CC
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14768 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14769 if ${ac_cv_sys_file_offset_bits+:} false
; then :
14770 $as_echo_n "(cached) " >&6
14773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14774 /* end confdefs.h. */
14775 #include <sys/types.h>
14776 /* Check that off_t can represent 2**63 - 1 correctly.
14777 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14778 since some C++ compilers masquerading as C compilers
14779 incorrectly reject 9223372036854775807. */
14780 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14781 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14782 && LARGE_OFF_T % 2147483647 == 1)
14792 if ac_fn_c_try_compile
"$LINENO"; then :
14793 ac_cv_sys_file_offset_bits
=no
; break
14795 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14796 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14797 /* end confdefs.h. */
14798 #define _FILE_OFFSET_BITS 64
14799 #include <sys/types.h>
14800 /* Check that off_t can represent 2**63 - 1 correctly.
14801 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14802 since some C++ compilers masquerading as C compilers
14803 incorrectly reject 9223372036854775807. */
14804 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14805 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14806 && LARGE_OFF_T % 2147483647 == 1)
14816 if ac_fn_c_try_compile
"$LINENO"; then :
14817 ac_cv_sys_file_offset_bits
=64; break
14819 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14820 ac_cv_sys_file_offset_bits
=unknown
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
14825 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
14826 case $ac_cv_sys_file_offset_bits in #(
14829 cat >>confdefs.h
<<_ACEOF
14830 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14835 if test $ac_cv_sys_file_offset_bits = unknown
; then
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
14837 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
14838 if ${ac_cv_sys_large_files+:} false
; then :
14839 $as_echo_n "(cached) " >&6
14842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14843 /* end confdefs.h. */
14844 #include <sys/types.h>
14845 /* Check that off_t can represent 2**63 - 1 correctly.
14846 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14847 since some C++ compilers masquerading as C compilers
14848 incorrectly reject 9223372036854775807. */
14849 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14850 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14851 && LARGE_OFF_T % 2147483647 == 1)
14861 if ac_fn_c_try_compile
"$LINENO"; then :
14862 ac_cv_sys_large_files
=no
; break
14864 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14866 /* end confdefs.h. */
14867 #define _LARGE_FILES 1
14868 #include <sys/types.h>
14869 /* Check that off_t can represent 2**63 - 1 correctly.
14870 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14871 since some C++ compilers masquerading as C compilers
14872 incorrectly reject 9223372036854775807. */
14873 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14874 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14875 && LARGE_OFF_T % 2147483647 == 1)
14885 if ac_fn_c_try_compile
"$LINENO"; then :
14886 ac_cv_sys_large_files
=1; break
14888 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14889 ac_cv_sys_large_files
=unknown
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
14894 $as_echo "$ac_cv_sys_large_files" >&6; }
14895 case $ac_cv_sys_large_files in #(
14898 cat >>confdefs.h
<<_ACEOF
14899 #define _LARGE_FILES $ac_cv_sys_large_files
14912 # The cast to long int works around a bug in the HP C Compiler
14913 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14914 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14915 # This bug is HP SR number 8606223364.
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
14917 $as_echo_n "checking size of off_t... " >&6; }
14918 if ${ac_cv_sizeof_off_t+:} false
; then :
14919 $as_echo_n "(cached) " >&6
14921 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
14924 if test "$ac_cv_type_off_t" = yes; then
14925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14927 as_fn_error
77 "cannot compute sizeof (off_t)
14928 See \`config.log' for more details" "$LINENO" 5; }
14930 ac_cv_sizeof_off_t
=0
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
14936 $as_echo "$ac_cv_sizeof_off_t" >&6; }
14940 cat >>confdefs.h
<<_ACEOF
14941 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
14946 # If we don't have largefile support, can't handle segment size >= 2GB.
14947 if test "$ac_cv_sizeof_off_t" -lt 8; then
14948 if expr $RELSEG_SIZE '*' $blocksize '>=' 2 '*' 1024 '*' 1024; then
14949 as_fn_error $?
"Large file support is not enabled. Segment size cannot be larger than 1GB." "$LINENO" 5
14953 # The cast to long int works around a bug in the HP C Compiler
14954 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14955 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14956 # This bug is HP SR number 8606223364.
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of bool" >&5
14958 $as_echo_n "checking size of bool... " >&6; }
14959 if ${ac_cv_sizeof_bool+:} false
; then :
14960 $as_echo_n "(cached) " >&6
14962 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (bool))" "ac_cv_sizeof_bool" "#ifdef HAVE_STDBOOL_H
14963 #include <stdbool.h>
14968 if test "$ac_cv_type_bool" = yes; then
14969 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14971 as_fn_error
77 "cannot compute sizeof (bool)
14972 See \`config.log' for more details" "$LINENO" 5; }
14974 ac_cv_sizeof_bool
=0
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_bool" >&5
14980 $as_echo "$ac_cv_sizeof_bool" >&6; }
14984 cat >>confdefs.h
<<_ACEOF
14985 #define SIZEOF_BOOL $ac_cv_sizeof_bool
14990 if test "$ac_cv_header_stdbool_h" = yes -a "$ac_cv_sizeof_bool" = 1; then
14992 $as_echo "#define PG_USE_STDBOOL 1" >>confdefs.h
14998 ## Functions, global variables
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int timezone" >&5
15002 $as_echo_n "checking for int timezone... " >&6; }
15003 if ${pgac_cv_var_int_timezone+:} false
; then :
15004 $as_echo_n "(cached) " >&6
15006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15007 /* end confdefs.h. */
15014 res = timezone / 60;
15016 res = _timezone / 60;
15022 if ac_fn_c_try_link
"$LINENO"; then :
15023 pgac_cv_var_int_timezone
=yes
15025 pgac_cv_var_int_timezone
=no
15027 rm -f core conftest.err conftest.
$ac_objext \
15028 conftest
$ac_exeext conftest.
$ac_ext
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_timezone" >&5
15031 $as_echo "$pgac_cv_var_int_timezone" >&6; }
15032 if test x
"$pgac_cv_var_int_timezone" = xyes
; then
15034 $as_echo "#define HAVE_INT_TIMEZONE 1" >>confdefs.h
15038 # Some versions of libedit contain strlcpy(), setproctitle(), and other
15039 # symbols that that library has no business exposing to the world. Pending
15040 # acquisition of a clue by those developers, ignore libedit (including its
15041 # possible alias of libreadline) while checking for everything else.
15042 LIBS_including_readline
="$LIBS"
15043 LIBS
=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
15045 for ac_func
in backtrace_symbols copyfile copy_file_range 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
15047 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15048 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15049 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15050 cat >>confdefs.h
<<_ACEOF
15051 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15058 # These typically are compiler builtins, for which AC_CHECK_FUNCS fails.
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap16" >&5
15060 $as_echo_n "checking for __builtin_bswap16... " >&6; }
15061 if ${pgac_cv__builtin_bswap16+:} false
; then :
15062 $as_echo_n "(cached) " >&6
15064 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15065 /* end confdefs.h. */
15068 call__builtin_bswap16(int x)
15070 return __builtin_bswap16(x);
15080 if ac_fn_c_try_link
"$LINENO"; then :
15081 pgac_cv__builtin_bswap16
=yes
15083 pgac_cv__builtin_bswap16
=no
15085 rm -f core conftest.err conftest.
$ac_objext \
15086 conftest
$ac_exeext conftest.
$ac_ext
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_bswap16" >&5
15089 $as_echo "$pgac_cv__builtin_bswap16" >&6; }
15090 if test x
"${pgac_cv__builtin_bswap16}" = xyes
; then
15092 cat >>confdefs.h
<<_ACEOF
15093 #define HAVE__BUILTIN_BSWAP16 1
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap32" >&5
15098 $as_echo_n "checking for __builtin_bswap32... " >&6; }
15099 if ${pgac_cv__builtin_bswap32+:} false
; then :
15100 $as_echo_n "(cached) " >&6
15102 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15103 /* end confdefs.h. */
15106 call__builtin_bswap32(int x)
15108 return __builtin_bswap32(x);
15118 if ac_fn_c_try_link
"$LINENO"; then :
15119 pgac_cv__builtin_bswap32
=yes
15121 pgac_cv__builtin_bswap32
=no
15123 rm -f core conftest.err conftest.
$ac_objext \
15124 conftest
$ac_exeext conftest.
$ac_ext
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_bswap32" >&5
15127 $as_echo "$pgac_cv__builtin_bswap32" >&6; }
15128 if test x
"${pgac_cv__builtin_bswap32}" = xyes
; then
15130 cat >>confdefs.h
<<_ACEOF
15131 #define HAVE__BUILTIN_BSWAP32 1
15135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap64" >&5
15136 $as_echo_n "checking for __builtin_bswap64... " >&6; }
15137 if ${pgac_cv__builtin_bswap64+:} false
; then :
15138 $as_echo_n "(cached) " >&6
15140 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15141 /* end confdefs.h. */
15144 call__builtin_bswap64(long int x)
15146 return __builtin_bswap64(x);
15156 if ac_fn_c_try_link
"$LINENO"; then :
15157 pgac_cv__builtin_bswap64
=yes
15159 pgac_cv__builtin_bswap64
=no
15161 rm -f core conftest.err conftest.
$ac_objext \
15162 conftest
$ac_exeext conftest.
$ac_ext
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_bswap64" >&5
15165 $as_echo "$pgac_cv__builtin_bswap64" >&6; }
15166 if test x
"${pgac_cv__builtin_bswap64}" = xyes
; then
15168 cat >>confdefs.h
<<_ACEOF
15169 #define HAVE__BUILTIN_BSWAP64 1
15173 # We assume that we needn't test all widths of these explicitly:
15174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5
15175 $as_echo_n "checking for __builtin_clz... " >&6; }
15176 if ${pgac_cv__builtin_clz+:} false
; then :
15177 $as_echo_n "(cached) " >&6
15179 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15180 /* end confdefs.h. */
15183 call__builtin_clz(unsigned int x)
15185 return __builtin_clz(x);
15195 if ac_fn_c_try_link
"$LINENO"; then :
15196 pgac_cv__builtin_clz
=yes
15198 pgac_cv__builtin_clz
=no
15200 rm -f core conftest.err conftest.
$ac_objext \
15201 conftest
$ac_exeext conftest.
$ac_ext
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_clz" >&5
15204 $as_echo "$pgac_cv__builtin_clz" >&6; }
15205 if test x
"${pgac_cv__builtin_clz}" = xyes
; then
15207 cat >>confdefs.h
<<_ACEOF
15208 #define HAVE__BUILTIN_CLZ 1
15212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_ctz" >&5
15213 $as_echo_n "checking for __builtin_ctz... " >&6; }
15214 if ${pgac_cv__builtin_ctz+:} false
; then :
15215 $as_echo_n "(cached) " >&6
15217 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15218 /* end confdefs.h. */
15221 call__builtin_ctz(unsigned int x)
15223 return __builtin_ctz(x);
15233 if ac_fn_c_try_link
"$LINENO"; then :
15234 pgac_cv__builtin_ctz
=yes
15236 pgac_cv__builtin_ctz
=no
15238 rm -f core conftest.err conftest.
$ac_objext \
15239 conftest
$ac_exeext conftest.
$ac_ext
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_ctz" >&5
15242 $as_echo "$pgac_cv__builtin_ctz" >&6; }
15243 if test x
"${pgac_cv__builtin_ctz}" = xyes
; then
15245 cat >>confdefs.h
<<_ACEOF
15246 #define HAVE__BUILTIN_CTZ 1
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_popcount" >&5
15251 $as_echo_n "checking for __builtin_popcount... " >&6; }
15252 if ${pgac_cv__builtin_popcount+:} false
; then :
15253 $as_echo_n "(cached) " >&6
15255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15256 /* end confdefs.h. */
15259 call__builtin_popcount(unsigned int x)
15261 return __builtin_popcount(x);
15271 if ac_fn_c_try_link
"$LINENO"; then :
15272 pgac_cv__builtin_popcount
=yes
15274 pgac_cv__builtin_popcount
=no
15276 rm -f core conftest.err conftest.
$ac_objext \
15277 conftest
$ac_exeext conftest.
$ac_ext
15279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_popcount" >&5
15280 $as_echo "$pgac_cv__builtin_popcount" >&6; }
15281 if test x
"${pgac_cv__builtin_popcount}" = xyes
; then
15283 cat >>confdefs.h
<<_ACEOF
15284 #define HAVE__BUILTIN_POPCOUNT 1
15288 # __builtin_frame_address may draw a diagnostic for non-constant argument,
15289 # so it needs a different test function.
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_frame_address" >&5
15291 $as_echo_n "checking for __builtin_frame_address... " >&6; }
15292 if ${pgac_cv__builtin_frame_address+:} false
; then :
15293 $as_echo_n "(cached) " >&6
15295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15296 /* end confdefs.h. */
15299 call__builtin_frame_address(void)
15301 return __builtin_frame_address(0);
15311 if ac_fn_c_try_link
"$LINENO"; then :
15312 pgac_cv__builtin_frame_address
=yes
15314 pgac_cv__builtin_frame_address
=no
15316 rm -f core conftest.err conftest.
$ac_objext \
15317 conftest
$ac_exeext conftest.
$ac_ext
15319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_frame_address" >&5
15320 $as_echo "$pgac_cv__builtin_frame_address" >&6; }
15321 if test x
"${pgac_cv__builtin_frame_address}" = xyes
; then
15323 cat >>confdefs.h
<<_ACEOF
15324 #define HAVE__BUILTIN_FRAME_ADDRESS 1
15329 # We require 64-bit fseeko() to be available, but run this check anyway
15330 # in case it finds that _LARGEFILE_SOURCE has to be #define'd for that.
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15332 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
15333 if ${ac_cv_sys_largefile_source+:} false
; then :
15334 $as_echo_n "(cached) " >&6
15337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15338 /* end confdefs.h. */
15339 #include <sys/types.h> /* for off_t */
15344 int (*fp) (FILE *, off_t, int) = fseeko;
15345 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15350 if ac_fn_c_try_link
"$LINENO"; then :
15351 ac_cv_sys_largefile_source
=no
; break
15353 rm -f core conftest.err conftest.
$ac_objext \
15354 conftest
$ac_exeext conftest.
$ac_ext
15355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15356 /* end confdefs.h. */
15357 #define _LARGEFILE_SOURCE 1
15358 #include <sys/types.h> /* for off_t */
15363 int (*fp) (FILE *, off_t, int) = fseeko;
15364 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15369 if ac_fn_c_try_link
"$LINENO"; then :
15370 ac_cv_sys_largefile_source
=1; break
15372 rm -f core conftest.err conftest.
$ac_objext \
15373 conftest
$ac_exeext conftest.
$ac_ext
15374 ac_cv_sys_largefile_source
=unknown
15378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
15379 $as_echo "$ac_cv_sys_largefile_source" >&6; }
15380 case $ac_cv_sys_largefile_source in #(
15383 cat >>confdefs.h
<<_ACEOF
15384 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
15390 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
15391 # in glibc 2.1.3, but that breaks too many other things.
15392 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
15393 if test $ac_cv_sys_largefile_source != unknown
; then
15395 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
15400 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
15401 # by calling it, 2009-04-02
15402 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
15403 # The Clang compiler raises a warning for an undeclared identifier that matches
15404 # a compiler builtin function. All extant Clang versions are affected, as of
15405 # Clang 3.6.0. Test a builtin known to every version. This problem affects the
15406 # C and Objective C languages, but Clang does report an error under C++ and
15409 # Passing -fno-builtin to the compiler would suppress this problem. That
15410 # strategy would have the advantage of being insensitive to stray warnings, but
15411 # it would make tests less realistic.
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how $CC reports undeclared, standard C functions" >&5
15413 $as_echo_n "checking how $CC reports undeclared, standard C functions... " >&6; }
15414 if ${ac_cv_c_decl_report+:} false
; then :
15415 $as_echo_n "(cached) " >&6
15417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15418 /* end confdefs.h. */
15428 if ac_fn_c_try_compile
"$LINENO"; then :
15429 if test -s conftest.err
; then :
15430 # For AC_CHECK_DECL to react to warnings, the compiler must be silent on
15431 # valid AC_CHECK_DECL input. No library function is consistently available
15432 # on freestanding implementations, so test against a dummy declaration.
15433 # Include always-available headers on the off chance that they somehow
15435 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15436 /* end confdefs.h. */
15438 #include <limits.h>
15439 #include <stdarg.h>
15440 #include <stddef.h>
15441 extern void ac_decl (int, char *);
15446 (void) ac_decl ((int) 0, (char *) 0);
15456 if ac_fn_c_try_compile
"$LINENO"; then :
15457 if test -s conftest.err
; then :
15458 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15459 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15460 as_fn_error $?
"cannot detect from compiler exit status or warnings
15461 See \`config.log' for more details" "$LINENO" 5; }
15463 ac_cv_c_decl_report
=warning
15466 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15467 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15468 as_fn_error $?
"cannot compile a simple declaration test
15469 See \`config.log' for more details" "$LINENO" 5; }
15471 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15473 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15474 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15475 as_fn_error $?
"compiler does not report undeclared identifiers
15476 See \`config.log' for more details" "$LINENO" 5; }
15479 ac_cv_c_decl_report
=error
15481 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_decl_report" >&5
15484 $as_echo "$ac_cv_c_decl_report" >&6; }
15486 case $ac_cv_c_decl_report in
15487 warning
) ac_c_decl_warn_flag
=yes ;;
15488 *) ac_c_decl_warn_flag
= ;;
15491 if test "$PORTNAME" != "solaris"; then :
15493 for ac_func
in posix_fadvise
15495 ac_fn_c_check_func
"$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
15496 if test "x$ac_cv_func_posix_fadvise" = xyes
; then :
15497 cat >>confdefs.h
<<_ACEOF
15498 #define HAVE_POSIX_FADVISE 1
15504 ac_fn_c_check_decl
"$LINENO" "posix_fadvise" "ac_cv_have_decl_posix_fadvise" "#include <fcntl.h>
15506 if test "x$ac_cv_have_decl_posix_fadvise" = xyes
; then :
15512 cat >>confdefs.h
<<_ACEOF
15513 #define HAVE_DECL_POSIX_FADVISE $ac_have_decl
15519 ac_fn_c_check_decl
"$LINENO" "fdatasync" "ac_cv_have_decl_fdatasync" "#include <unistd.h>
15521 if test "x$ac_cv_have_decl_fdatasync" = xyes
; then :
15527 cat >>confdefs.h
<<_ACEOF
15528 #define HAVE_DECL_FDATASYNC $ac_have_decl
15531 ac_fn_c_check_decl
"$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default"
15532 if test "x$ac_cv_have_decl_strlcat" = xyes
; then :
15538 cat >>confdefs.h
<<_ACEOF
15539 #define HAVE_DECL_STRLCAT $ac_have_decl
15541 ac_fn_c_check_decl
"$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default"
15542 if test "x$ac_cv_have_decl_strlcpy" = xyes
; then :
15548 cat >>confdefs.h
<<_ACEOF
15549 #define HAVE_DECL_STRLCPY $ac_have_decl
15551 ac_fn_c_check_decl
"$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
15552 if test "x$ac_cv_have_decl_strnlen" = xyes
; then :
15558 cat >>confdefs.h
<<_ACEOF
15559 #define HAVE_DECL_STRNLEN $ac_have_decl
15561 ac_fn_c_check_decl
"$LINENO" "strsep" "ac_cv_have_decl_strsep" "$ac_includes_default"
15562 if test "x$ac_cv_have_decl_strsep" = xyes
; then :
15568 cat >>confdefs.h
<<_ACEOF
15569 #define HAVE_DECL_STRSEP $ac_have_decl
15573 # We can't use AC_CHECK_FUNCS to detect these functions, because it
15574 # won't handle deployment target restrictions on macOS
15575 ac_fn_c_check_decl
"$LINENO" "preadv" "ac_cv_have_decl_preadv" "#include <sys/uio.h>
15577 if test "x$ac_cv_have_decl_preadv" = xyes
; then :
15583 cat >>confdefs.h
<<_ACEOF
15584 #define HAVE_DECL_PREADV $ac_have_decl
15587 ac_fn_c_check_decl
"$LINENO" "pwritev" "ac_cv_have_decl_pwritev" "#include <sys/uio.h>
15589 if test "x$ac_cv_have_decl_pwritev" = xyes
; then :
15595 cat >>confdefs.h
<<_ACEOF
15596 #define HAVE_DECL_PWRITEV $ac_have_decl
15600 # This is probably only present on macOS, but may as well check always
15601 ac_fn_c_check_decl
"$LINENO" "F_FULLFSYNC" "ac_cv_have_decl_F_FULLFSYNC" "#include <fcntl.h>
15603 if test "x$ac_cv_have_decl_F_FULLFSYNC" = xyes
; then :
15609 cat >>confdefs.h
<<_ACEOF
15610 #define HAVE_DECL_F_FULLFSYNC $ac_have_decl
15614 ac_fn_c_check_func
"$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
15615 if test "x$ac_cv_func_explicit_bzero" = xyes
; then :
15616 $as_echo "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
15619 case " $LIBOBJS " in
15620 *" explicit_bzero.$ac_objext "* ) ;;
15621 *) LIBOBJS
="$LIBOBJS explicit_bzero.$ac_objext"
15627 ac_fn_c_check_func
"$LINENO" "getopt" "ac_cv_func_getopt"
15628 if test "x$ac_cv_func_getopt" = xyes
; then :
15629 $as_echo "#define HAVE_GETOPT 1" >>confdefs.h
15632 case " $LIBOBJS " in
15633 *" getopt.$ac_objext "* ) ;;
15634 *) LIBOBJS
="$LIBOBJS getopt.$ac_objext"
15640 ac_fn_c_check_func
"$LINENO" "getpeereid" "ac_cv_func_getpeereid"
15641 if test "x$ac_cv_func_getpeereid" = xyes
; then :
15642 $as_echo "#define HAVE_GETPEEREID 1" >>confdefs.h
15645 case " $LIBOBJS " in
15646 *" getpeereid.$ac_objext "* ) ;;
15647 *) LIBOBJS
="$LIBOBJS getpeereid.$ac_objext"
15653 ac_fn_c_check_func
"$LINENO" "inet_aton" "ac_cv_func_inet_aton"
15654 if test "x$ac_cv_func_inet_aton" = xyes
; then :
15655 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
15658 case " $LIBOBJS " in
15659 *" inet_aton.$ac_objext "* ) ;;
15660 *) LIBOBJS
="$LIBOBJS inet_aton.$ac_objext"
15666 ac_fn_c_check_func
"$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
15667 if test "x$ac_cv_func_mkdtemp" = xyes
; then :
15668 $as_echo "#define HAVE_MKDTEMP 1" >>confdefs.h
15671 case " $LIBOBJS " in
15672 *" mkdtemp.$ac_objext "* ) ;;
15673 *) LIBOBJS
="$LIBOBJS mkdtemp.$ac_objext"
15679 ac_fn_c_check_func
"$LINENO" "strlcat" "ac_cv_func_strlcat"
15680 if test "x$ac_cv_func_strlcat" = xyes
; then :
15681 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
15684 case " $LIBOBJS " in
15685 *" strlcat.$ac_objext "* ) ;;
15686 *) LIBOBJS
="$LIBOBJS strlcat.$ac_objext"
15692 ac_fn_c_check_func
"$LINENO" "strlcpy" "ac_cv_func_strlcpy"
15693 if test "x$ac_cv_func_strlcpy" = xyes
; then :
15694 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
15697 case " $LIBOBJS " in
15698 *" strlcpy.$ac_objext "* ) ;;
15699 *) LIBOBJS
="$LIBOBJS strlcpy.$ac_objext"
15705 ac_fn_c_check_func
"$LINENO" "strnlen" "ac_cv_func_strnlen"
15706 if test "x$ac_cv_func_strnlen" = xyes
; then :
15707 $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h
15710 case " $LIBOBJS " in
15711 *" strnlen.$ac_objext "* ) ;;
15712 *) LIBOBJS
="$LIBOBJS strnlen.$ac_objext"
15718 ac_fn_c_check_func
"$LINENO" "strsep" "ac_cv_func_strsep"
15719 if test "x$ac_cv_func_strsep" = xyes
; then :
15720 $as_echo "#define HAVE_STRSEP 1" >>confdefs.h
15723 case " $LIBOBJS " in
15724 *" strsep.$ac_objext "* ) ;;
15725 *) LIBOBJS
="$LIBOBJS strsep.$ac_objext"
15733 ac_fn_c_check_func
"$LINENO" "pthread_barrier_wait" "ac_cv_func_pthread_barrier_wait"
15734 if test "x$ac_cv_func_pthread_barrier_wait" = xyes
; then :
15735 $as_echo "#define HAVE_PTHREAD_BARRIER_WAIT 1" >>confdefs.h
15738 case " $LIBOBJS " in
15739 *" pthread_barrier_wait.$ac_objext "* ) ;;
15740 *) LIBOBJS
="$LIBOBJS pthread_barrier_wait.$ac_objext"
15748 if test "$PORTNAME" = "win32" -o "$PORTNAME" = "cygwin"; then
15749 # Cygwin and (apparently, based on test results) Mingw both
15750 # have a broken strtof(), so substitute its implementation.
15751 # That's not a perfect fix, since it doesn't avoid double-rounding,
15752 # but we have no better options.
15753 case " $LIBOBJS " in
15754 *" strtof.$ac_objext "* ) ;;
15755 *) LIBOBJS
="$LIBOBJS strtof.$ac_objext"
15759 { $as_echo "$as_me:${as_lineno-$LINENO}: On $host_os we will use our strtof wrapper." >&5
15760 $as_echo "$as_me: On $host_os we will use our strtof wrapper." >&6;}
15763 # Similarly, use system's getopt_long() only if system provides struct option.
15764 if test x
"$ac_cv_type_struct_option" = xyes
; then
15765 ac_fn_c_check_func
"$LINENO" "getopt_long" "ac_cv_func_getopt_long"
15766 if test "x$ac_cv_func_getopt_long" = xyes
; then :
15767 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
15770 case " $LIBOBJS " in
15771 *" getopt_long.$ac_objext "* ) ;;
15772 *) LIBOBJS
="$LIBOBJS getopt_long.$ac_objext"
15780 case " $LIBOBJS " in
15781 *" getopt_long.$ac_objext "* ) ;;
15782 *) LIBOBJS
="$LIBOBJS getopt_long.$ac_objext"
15788 # On OpenBSD and Solaris, getopt() doesn't do what we want for long options
15789 # (i.e., allow '-' as a flag character), so use our version on those platforms.
15790 if test "$PORTNAME" = "openbsd" -o "$PORTNAME" = "solaris"; then
15791 case " $LIBOBJS " in
15792 *" getopt.$ac_objext "* ) ;;
15793 *) LIBOBJS
="$LIBOBJS getopt.$ac_objext"
15799 # mingw has adopted a GNU-centric interpretation of optind/optreset,
15800 # so always use our version on Windows.
15801 if test "$PORTNAME" = "win32"; then
15802 case " $LIBOBJS " in
15803 *" getopt.$ac_objext "* ) ;;
15804 *) LIBOBJS
="$LIBOBJS getopt.$ac_objext"
15808 case " $LIBOBJS " in
15809 *" getopt_long.$ac_objext "* ) ;;
15810 *) LIBOBJS
="$LIBOBJS getopt_long.$ac_objext"
15816 # Win32 (really MinGW) support
15817 if test "$PORTNAME" = "win32"; then
15818 for ac_func
in _configthreadlocale
15820 ac_fn_c_check_func
"$LINENO" "_configthreadlocale" "ac_cv_func__configthreadlocale"
15821 if test "x$ac_cv_func__configthreadlocale" = xyes
; then :
15822 cat >>confdefs.h
<<_ACEOF
15823 #define HAVE__CONFIGTHREADLOCALE 1
15829 case " $LIBOBJS " in
15830 *" dirmod.$ac_objext "* ) ;;
15831 *) LIBOBJS
="$LIBOBJS dirmod.$ac_objext"
15835 case " $LIBOBJS " in
15836 *" kill.$ac_objext "* ) ;;
15837 *) LIBOBJS
="$LIBOBJS kill.$ac_objext"
15841 case " $LIBOBJS " in
15842 *" open.$ac_objext "* ) ;;
15843 *) LIBOBJS
="$LIBOBJS open.$ac_objext"
15847 case " $LIBOBJS " in
15848 *" system.$ac_objext "* ) ;;
15849 *) LIBOBJS
="$LIBOBJS system.$ac_objext"
15853 case " $LIBOBJS " in
15854 *" win32common.$ac_objext "* ) ;;
15855 *) LIBOBJS
="$LIBOBJS win32common.$ac_objext"
15859 case " $LIBOBJS " in
15860 *" win32dlopen.$ac_objext "* ) ;;
15861 *) LIBOBJS
="$LIBOBJS win32dlopen.$ac_objext"
15865 case " $LIBOBJS " in
15866 *" win32env.$ac_objext "* ) ;;
15867 *) LIBOBJS
="$LIBOBJS win32env.$ac_objext"
15871 case " $LIBOBJS " in
15872 *" win32error.$ac_objext "* ) ;;
15873 *) LIBOBJS
="$LIBOBJS win32error.$ac_objext"
15877 case " $LIBOBJS " in
15878 *" win32fdatasync.$ac_objext "* ) ;;
15879 *) LIBOBJS
="$LIBOBJS win32fdatasync.$ac_objext"
15883 case " $LIBOBJS " in
15884 *" win32gai_strerror.$ac_objext "* ) ;;
15885 *) LIBOBJS
="$LIBOBJS win32gai_strerror.$ac_objext"
15889 case " $LIBOBJS " in
15890 *" win32getrusage.$ac_objext "* ) ;;
15891 *) LIBOBJS
="$LIBOBJS win32getrusage.$ac_objext"
15895 case " $LIBOBJS " in
15896 *" win32link.$ac_objext "* ) ;;
15897 *) LIBOBJS
="$LIBOBJS win32link.$ac_objext"
15901 case " $LIBOBJS " in
15902 *" win32ntdll.$ac_objext "* ) ;;
15903 *) LIBOBJS
="$LIBOBJS win32ntdll.$ac_objext"
15907 case " $LIBOBJS " in
15908 *" win32pread.$ac_objext "* ) ;;
15909 *) LIBOBJS
="$LIBOBJS win32pread.$ac_objext"
15913 case " $LIBOBJS " in
15914 *" win32pwrite.$ac_objext "* ) ;;
15915 *) LIBOBJS
="$LIBOBJS win32pwrite.$ac_objext"
15919 case " $LIBOBJS " in
15920 *" win32security.$ac_objext "* ) ;;
15921 *) LIBOBJS
="$LIBOBJS win32security.$ac_objext"
15925 case " $LIBOBJS " in
15926 *" win32setlocale.$ac_objext "* ) ;;
15927 *) LIBOBJS
="$LIBOBJS win32setlocale.$ac_objext"
15931 case " $LIBOBJS " in
15932 *" win32stat.$ac_objext "* ) ;;
15933 *) LIBOBJS
="$LIBOBJS win32stat.$ac_objext"
15938 # Cygwin needs only a bit of that
15939 if test "$PORTNAME" = "cygwin"; then
15940 case " $LIBOBJS " in
15941 *" dirmod.$ac_objext "* ) ;;
15942 *) LIBOBJS
="$LIBOBJS dirmod.$ac_objext"
15948 ac_fn_c_check_func
"$LINENO" "syslog" "ac_cv_func_syslog"
15949 if test "x$ac_cv_func_syslog" = xyes
; then :
15950 ac_fn_c_check_header_mongrel
"$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
15951 if test "x$ac_cv_header_syslog_h" = xyes
; then :
15953 $as_echo "#define HAVE_SYSLOG 1" >>confdefs.h
15961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opterr" >&5
15962 $as_echo_n "checking for opterr... " >&6; }
15963 if ${pgac_cv_var_int_opterr+:} false
; then :
15964 $as_echo_n "(cached) " >&6
15966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15967 /* end confdefs.h. */
15968 #include <unistd.h>
15972 extern int opterr; opterr = 1;
15977 if ac_fn_c_try_link
"$LINENO"; then :
15978 pgac_cv_var_int_opterr
=yes
15980 pgac_cv_var_int_opterr
=no
15982 rm -f core conftest.err conftest.
$ac_objext \
15983 conftest
$ac_exeext conftest.
$ac_ext
15985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_opterr" >&5
15986 $as_echo "$pgac_cv_var_int_opterr" >&6; }
15987 if test x
"$pgac_cv_var_int_opterr" = x
"yes"; then
15989 $as_echo "#define HAVE_INT_OPTERR 1" >>confdefs.h
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
15994 $as_echo_n "checking for optreset... " >&6; }
15995 if ${pgac_cv_var_int_optreset+:} false
; then :
15996 $as_echo_n "(cached) " >&6
15998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15999 /* end confdefs.h. */
16000 #include <unistd.h>
16004 extern int optreset; optreset = 1;
16009 if ac_fn_c_try_link
"$LINENO"; then :
16010 pgac_cv_var_int_optreset
=yes
16012 pgac_cv_var_int_optreset
=no
16014 rm -f core conftest.err conftest.
$ac_objext \
16015 conftest
$ac_exeext conftest.
$ac_ext
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_optreset" >&5
16018 $as_echo "$pgac_cv_var_int_optreset" >&6; }
16019 if test x
"$pgac_cv_var_int_optreset" = x
"yes"; then
16021 $as_echo "#define HAVE_INT_OPTRESET 1" >>confdefs.h
16025 if test "$with_icu" = yes; then
16026 ac_save_CPPFLAGS
=$CPPFLAGS
16027 CPPFLAGS
="$ICU_CFLAGS $CPPFLAGS"
16029 # Verify we have ICU's header files
16030 ac_fn_c_check_header_mongrel
"$LINENO" "unicode/ucol.h" "ac_cv_header_unicode_ucol_h" "$ac_includes_default"
16031 if test "x$ac_cv_header_unicode_ucol_h" = xyes
; then :
16034 as_fn_error $?
"header file <unicode/ucol.h> is required for ICU" "$LINENO" 5
16039 CPPFLAGS
=$ac_save_CPPFLAGS
16042 if test "$with_llvm" = yes; then
16044 # Check which functionality is present
16045 SAVE_CPPFLAGS
="$CPPFLAGS"
16046 CPPFLAGS
="$CPPFLAGS $LLVM_CPPFLAGS"
16047 ac_fn_c_check_decl
"$LINENO" "LLVMCreateGDBRegistrationListener" "ac_cv_have_decl_LLVMCreateGDBRegistrationListener" "#include <llvm-c/ExecutionEngine.h>
16049 if test "x$ac_cv_have_decl_LLVMCreateGDBRegistrationListener" = xyes
; then :
16055 cat >>confdefs.h
<<_ACEOF
16056 #define HAVE_DECL_LLVMCREATEGDBREGISTRATIONLISTENER $ac_have_decl
16058 ac_fn_c_check_decl
"$LINENO" "LLVMCreatePerfJITEventListener" "ac_cv_have_decl_LLVMCreatePerfJITEventListener" "#include <llvm-c/ExecutionEngine.h>
16060 if test "x$ac_cv_have_decl_LLVMCreatePerfJITEventListener" = xyes
; then :
16066 cat >>confdefs.h
<<_ACEOF
16067 #define HAVE_DECL_LLVMCREATEPERFJITEVENTLISTENER $ac_have_decl
16070 CPPFLAGS
="$SAVE_CPPFLAGS"
16074 # Lastly, restore full LIBS list and check for readline/libedit symbols
16075 LIBS
="$LIBS_including_readline"
16077 if test "$with_readline" = yes; then
16078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_suppress_quote" >&5
16079 $as_echo_n "checking for rl_completion_suppress_quote... " >&6; }
16080 if ${pgac_cv_var_rl_completion_suppress_quote+:} false
; then :
16081 $as_echo_n "(cached) " >&6
16083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16084 /* end confdefs.h. */
16086 #if defined(HAVE_READLINE_READLINE_H)
16087 #include <readline/readline.h>
16088 #elif defined(HAVE_EDITLINE_READLINE_H)
16089 #include <editline/readline.h>
16090 #elif defined(HAVE_READLINE_H)
16091 #include <readline.h>
16097 rl_completion_suppress_quote = 1;
16102 if ac_fn_c_try_link
"$LINENO"; then :
16103 pgac_cv_var_rl_completion_suppress_quote
=yes
16105 pgac_cv_var_rl_completion_suppress_quote
=no
16107 rm -f core conftest.err conftest.
$ac_objext \
16108 conftest
$ac_exeext conftest.
$ac_ext
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_rl_completion_suppress_quote" >&5
16111 $as_echo "$pgac_cv_var_rl_completion_suppress_quote" >&6; }
16112 if test x
"$pgac_cv_var_rl_completion_suppress_quote" = x
"yes"; then
16114 $as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_QUOTE 1" >>confdefs.h
16117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_filename_quote_characters" >&5
16118 $as_echo_n "checking for rl_filename_quote_characters... " >&6; }
16119 if ${pgac_cv_var_rl_filename_quote_characters+:} false
; then :
16120 $as_echo_n "(cached) " >&6
16122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16123 /* end confdefs.h. */
16125 #if defined(HAVE_READLINE_READLINE_H)
16126 #include <readline/readline.h>
16127 #elif defined(HAVE_EDITLINE_READLINE_H)
16128 #include <editline/readline.h>
16129 #elif defined(HAVE_READLINE_H)
16130 #include <readline.h>
16136 rl_filename_quote_characters = "x";
16141 if ac_fn_c_try_link
"$LINENO"; then :
16142 pgac_cv_var_rl_filename_quote_characters
=yes
16144 pgac_cv_var_rl_filename_quote_characters
=no
16146 rm -f core conftest.err conftest.
$ac_objext \
16147 conftest
$ac_exeext conftest.
$ac_ext
16149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_rl_filename_quote_characters" >&5
16150 $as_echo "$pgac_cv_var_rl_filename_quote_characters" >&6; }
16151 if test x
"$pgac_cv_var_rl_filename_quote_characters" = x
"yes"; then
16153 $as_echo "#define HAVE_RL_FILENAME_QUOTE_CHARACTERS 1" >>confdefs.h
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_filename_quoting_function" >&5
16157 $as_echo_n "checking for rl_filename_quoting_function... " >&6; }
16158 if ${pgac_cv_var_rl_filename_quoting_function+:} false
; then :
16159 $as_echo_n "(cached) " >&6
16161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16162 /* end confdefs.h. */
16164 #if defined(HAVE_READLINE_READLINE_H)
16165 #include <readline/readline.h>
16166 #elif defined(HAVE_EDITLINE_READLINE_H)
16167 #include <editline/readline.h>
16168 #elif defined(HAVE_READLINE_H)
16169 #include <readline.h>
16175 rl_filename_quoting_function = 0;
16180 if ac_fn_c_try_link
"$LINENO"; then :
16181 pgac_cv_var_rl_filename_quoting_function
=yes
16183 pgac_cv_var_rl_filename_quoting_function
=no
16185 rm -f core conftest.err conftest.
$ac_objext \
16186 conftest
$ac_exeext conftest.
$ac_ext
16188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_rl_filename_quoting_function" >&5
16189 $as_echo "$pgac_cv_var_rl_filename_quoting_function" >&6; }
16190 if test x
"$pgac_cv_var_rl_filename_quoting_function" = x
"yes"; then
16192 $as_echo "#define HAVE_RL_FILENAME_QUOTING_FUNCTION 1" >>confdefs.h
16196 for ac_func
in append_history history_truncate_file rl_completion_matches rl_filename_completion_function rl_reset_screen_size rl_variable_bind
16198 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16199 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16200 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
16201 cat >>confdefs.h
<<_ACEOF
16202 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16211 # This test makes sure that run tests work at all. Sometimes a shared
16212 # library is found by the linker, but the runtime linker can't find it.
16213 # This check should come after all modifications of compiler or linker
16214 # variables, and before any other run tests.
16215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking test program" >&5
16216 $as_echo_n "checking test program... " >&6; }
16217 if test "$cross_compiling" = yes; then :
16218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
16219 $as_echo "cross-compiling" >&6; }
16221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16222 /* end confdefs.h. */
16223 int main() { return 0; }
16225 if ac_fn_c_try_run
"$LINENO"; then :
16226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
16227 $as_echo "ok" >&6; }
16229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
16230 $as_echo "failed" >&6; }
16232 Could not execute a simple test program. This may be a problem
16233 related to locating shared libraries. Check the file 'config.log'
16234 for the exact reason." "$LINENO" 5
16236 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16237 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16241 # --------------------
16242 # Run tests below here
16243 # --------------------
16246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long int is 64 bits" >&5
16247 $as_echo_n "checking whether long int is 64 bits... " >&6; }
16248 if ${pgac_cv_type_long_int_64+:} false
; then :
16249 $as_echo_n "(cached) " >&6
16251 if test "$cross_compiling" = yes; then :
16252 # If cross-compiling, check the size reported by the compiler and
16253 # trust that the arithmetic works.
16254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16255 /* end confdefs.h. */
16260 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
16261 test_array [0] = 0;
16262 return test_array [0];
16268 if ac_fn_c_try_compile
"$LINENO"; then :
16269 pgac_cv_type_long_int_64
=yes
16271 pgac_cv_type_long_int_64
=no
16273 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16276 /* end confdefs.h. */
16277 typedef long int ac_int64;
16280 * These are globals to discourage the compiler from folding all the
16281 * arithmetic tests down to compile-time constants.
16283 ac_int64 a = 20000001;
16284 ac_int64 b = 40000005;
16286 int does_int64_work()
16290 if (sizeof(ac_int64) != 8)
16291 return 0; /* definitely not the right size */
16293 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
16303 return (! does_int64_work());
16306 if ac_fn_c_try_run
"$LINENO"; then :
16307 pgac_cv_type_long_int_64
=yes
16309 pgac_cv_type_long_int_64
=no
16311 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16312 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_long_int_64" >&5
16317 $as_echo "$pgac_cv_type_long_int_64" >&6; }
16319 HAVE_LONG_INT_64
=$pgac_cv_type_long_int_64
16320 if test x
"$pgac_cv_type_long_int_64" = xyes
; then
16322 $as_echo "#define HAVE_LONG_INT_64 1" >>confdefs.h
16327 if test x
"$HAVE_LONG_INT_64" = x
"yes" ; then
16328 pg_int64_type
="long int"
16330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long long int is 64 bits" >&5
16331 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
16332 if ${pgac_cv_type_long_long_int_64+:} false
; then :
16333 $as_echo_n "(cached) " >&6
16335 if test "$cross_compiling" = yes; then :
16336 # If cross-compiling, check the size reported by the compiler and
16337 # trust that the arithmetic works.
16338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16339 /* end confdefs.h. */
16344 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
16345 test_array [0] = 0;
16346 return test_array [0];
16352 if ac_fn_c_try_compile
"$LINENO"; then :
16353 pgac_cv_type_long_long_int_64
=yes
16355 pgac_cv_type_long_long_int_64
=no
16357 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16360 /* end confdefs.h. */
16361 typedef long long int ac_int64;
16364 * These are globals to discourage the compiler from folding all the
16365 * arithmetic tests down to compile-time constants.
16367 ac_int64 a = 20000001;
16368 ac_int64 b = 40000005;
16370 int does_int64_work()
16374 if (sizeof(ac_int64) != 8)
16375 return 0; /* definitely not the right size */
16377 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
16387 return (! does_int64_work());
16390 if ac_fn_c_try_run
"$LINENO"; then :
16391 pgac_cv_type_long_long_int_64
=yes
16393 pgac_cv_type_long_long_int_64
=no
16395 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16396 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_long_long_int_64" >&5
16401 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
16403 HAVE_LONG_LONG_INT_64
=$pgac_cv_type_long_long_int_64
16404 if test x
"$pgac_cv_type_long_long_int_64" = xyes
; then
16406 $as_echo "#define HAVE_LONG_LONG_INT_64 1" >>confdefs.h
16410 if test x
"$HAVE_LONG_LONG_INT_64" = x
"yes" ; then
16411 pg_int64_type
="long long int"
16413 as_fn_error $?
"Cannot find a working 64-bit integer type." "$LINENO" 5
16418 cat >>confdefs.h
<<_ACEOF
16419 #define PG_INT64_TYPE $pg_int64_type
16423 # Select the printf length modifier that goes with that, too.
16424 if test x
"$pg_int64_type" = x
"long long int" ; then
16425 INT64_MODIFIER
='"ll"'
16427 INT64_MODIFIER
='"l"'
16431 cat >>confdefs.h
<<_ACEOF
16432 #define INT64_MODIFIER $INT64_MODIFIER
16436 # has to be down here, rather than with the other builtins, because
16437 # the test uses PG_INT64_TYPE.
16438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_mul_overflow" >&5
16439 $as_echo_n "checking for __builtin_mul_overflow... " >&6; }
16440 if ${pgac_cv__builtin_op_overflow+:} false
; then :
16441 $as_echo_n "(cached) " >&6
16443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16444 /* end confdefs.h. */
16446 PG_INT64_TYPE a = 1;
16447 PG_INT64_TYPE b = 1;
16448 PG_INT64_TYPE result;
16454 oflo = __builtin_mul_overflow(a, b, &result);
16459 if ac_fn_c_try_link
"$LINENO"; then :
16460 pgac_cv__builtin_op_overflow
=yes
16462 pgac_cv__builtin_op_overflow
=no
16464 rm -f core conftest.err conftest.
$ac_objext \
16465 conftest
$ac_exeext conftest.
$ac_ext
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_op_overflow" >&5
16468 $as_echo "$pgac_cv__builtin_op_overflow" >&6; }
16469 if test x
"$pgac_cv__builtin_op_overflow" = xyes
; then
16471 $as_echo "#define HAVE__BUILTIN_OP_OVERFLOW 1" >>confdefs.h
16475 # Check size of void *, size_t (enables tweaks for > 32bit address space)
16476 # The cast to long int works around a bug in the HP C Compiler
16477 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16478 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16479 # This bug is HP SR number 8606223364.
16480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16481 $as_echo_n "checking size of void *... " >&6; }
16482 if ${ac_cv_sizeof_void_p+:} false
; then :
16483 $as_echo_n "(cached) " >&6
16485 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
16488 if test "$ac_cv_type_void_p" = yes; then
16489 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16490 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16491 as_fn_error
77 "cannot compute sizeof (void *)
16492 See \`config.log' for more details" "$LINENO" 5; }
16494 ac_cv_sizeof_void_p
=0
16499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16500 $as_echo "$ac_cv_sizeof_void_p" >&6; }
16504 cat >>confdefs.h
<<_ACEOF
16505 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16509 # The cast to long int works around a bug in the HP C Compiler
16510 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16511 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16512 # This bug is HP SR number 8606223364.
16513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
16514 $as_echo_n "checking size of size_t... " >&6; }
16515 if ${ac_cv_sizeof_size_t+:} false
; then :
16516 $as_echo_n "(cached) " >&6
16518 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
16521 if test "$ac_cv_type_size_t" = yes; then
16522 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16523 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16524 as_fn_error
77 "cannot compute sizeof (size_t)
16525 See \`config.log' for more details" "$LINENO" 5; }
16527 ac_cv_sizeof_size_t
=0
16532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
16533 $as_echo "$ac_cv_sizeof_size_t" >&6; }
16537 cat >>confdefs.h
<<_ACEOF
16538 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
16542 # The cast to long int works around a bug in the HP C Compiler
16543 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16544 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16545 # This bug is HP SR number 8606223364.
16546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16547 $as_echo_n "checking size of long... " >&6; }
16548 if ${ac_cv_sizeof_long+:} false
; then :
16549 $as_echo_n "(cached) " >&6
16551 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16554 if test "$ac_cv_type_long" = yes; then
16555 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16556 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16557 as_fn_error
77 "cannot compute sizeof (long)
16558 See \`config.log' for more details" "$LINENO" 5; }
16560 ac_cv_sizeof_long
=0
16565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16566 $as_echo "$ac_cv_sizeof_long" >&6; }
16570 cat >>confdefs.h
<<_ACEOF
16571 #define SIZEOF_LONG $ac_cv_sizeof_long
16576 # Determine memory alignment requirements for the basic C data types.
16578 # The cast to long int works around a bug in the HP C Compiler,
16579 # see AC_CHECK_SIZEOF for more information.
16580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of short" >&5
16581 $as_echo_n "checking alignment of short... " >&6; }
16582 if ${ac_cv_alignof_short+:} false
; then :
16583 $as_echo_n "(cached) " >&6
16585 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_short" "$ac_includes_default
16587 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16589 typedef struct { char x; short y; } ac__type_alignof_;"; then :
16592 if test "$ac_cv_type_short" = yes; then
16593 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16594 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16595 as_fn_error
77 "cannot compute alignment of short
16596 See \`config.log' for more details" "$LINENO" 5; }
16598 ac_cv_alignof_short
=0
16603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_short" >&5
16604 $as_echo "$ac_cv_alignof_short" >&6; }
16608 cat >>confdefs.h
<<_ACEOF
16609 #define ALIGNOF_SHORT $ac_cv_alignof_short
16613 # The cast to long int works around a bug in the HP C Compiler,
16614 # see AC_CHECK_SIZEOF for more information.
16615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int" >&5
16616 $as_echo_n "checking alignment of int... " >&6; }
16617 if ${ac_cv_alignof_int+:} false
; then :
16618 $as_echo_n "(cached) " >&6
16620 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_int" "$ac_includes_default
16622 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16624 typedef struct { char x; int y; } ac__type_alignof_;"; then :
16627 if test "$ac_cv_type_int" = yes; then
16628 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16629 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16630 as_fn_error
77 "cannot compute alignment of int
16631 See \`config.log' for more details" "$LINENO" 5; }
16633 ac_cv_alignof_int
=0
16638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_int" >&5
16639 $as_echo "$ac_cv_alignof_int" >&6; }
16643 cat >>confdefs.h
<<_ACEOF
16644 #define ALIGNOF_INT $ac_cv_alignof_int
16648 # The cast to long int works around a bug in the HP C Compiler,
16649 # see AC_CHECK_SIZEOF for more information.
16650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long" >&5
16651 $as_echo_n "checking alignment of long... " >&6; }
16652 if ${ac_cv_alignof_long+:} false
; then :
16653 $as_echo_n "(cached) " >&6
16655 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long" "$ac_includes_default
16657 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16659 typedef struct { char x; long y; } ac__type_alignof_;"; then :
16662 if test "$ac_cv_type_long" = yes; then
16663 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16665 as_fn_error
77 "cannot compute alignment of long
16666 See \`config.log' for more details" "$LINENO" 5; }
16668 ac_cv_alignof_long
=0
16673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long" >&5
16674 $as_echo "$ac_cv_alignof_long" >&6; }
16678 cat >>confdefs.h
<<_ACEOF
16679 #define ALIGNOF_LONG $ac_cv_alignof_long
16683 if test x
"$HAVE_LONG_LONG_INT_64" = x
"yes" ; then
16684 # The cast to long int works around a bug in the HP C Compiler,
16685 # see AC_CHECK_SIZEOF for more information.
16686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long long int" >&5
16687 $as_echo_n "checking alignment of long long int... " >&6; }
16688 if ${ac_cv_alignof_long_long_int+:} false
; then :
16689 $as_echo_n "(cached) " >&6
16691 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long_long_int" "$ac_includes_default
16693 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16695 typedef struct { char x; long long int y; } ac__type_alignof_;"; then :
16698 if test "$ac_cv_type_long_long_int" = yes; then
16699 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16701 as_fn_error
77 "cannot compute alignment of long long int
16702 See \`config.log' for more details" "$LINENO" 5; }
16704 ac_cv_alignof_long_long_int
=0
16709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long_long_int" >&5
16710 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
16714 cat >>confdefs.h
<<_ACEOF
16715 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
16720 # The cast to long int works around a bug in the HP C Compiler,
16721 # see AC_CHECK_SIZEOF for more information.
16722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of double" >&5
16723 $as_echo_n "checking alignment of double... " >&6; }
16724 if ${ac_cv_alignof_double+:} false
; then :
16725 $as_echo_n "(cached) " >&6
16727 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_double" "$ac_includes_default
16729 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16731 typedef struct { char x; double y; } ac__type_alignof_;"; then :
16734 if test "$ac_cv_type_double" = yes; then
16735 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16736 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16737 as_fn_error
77 "cannot compute alignment of double
16738 See \`config.log' for more details" "$LINENO" 5; }
16740 ac_cv_alignof_double
=0
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_double" >&5
16746 $as_echo "$ac_cv_alignof_double" >&6; }
16750 cat >>confdefs.h
<<_ACEOF
16751 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
16756 # Compute maximum alignment of any basic type.
16758 # We require 'double' to have the strictest alignment among the basic types,
16759 # because otherwise the C ABI might impose 8-byte alignment on some of the
16760 # other C types that correspond to TYPALIGN_DOUBLE SQL types. That could
16761 # cause a mismatch between the tuple layout and the C struct layout of a
16762 # catalog tuple. We used to carefully order catalog columns such that any
16763 # fixed-width, attalign=4 columns were at offsets divisible by 8 regardless
16764 # of MAXIMUM_ALIGNOF to avoid that, but we no longer support any platforms
16765 # where TYPALIGN_DOUBLE != MAXIMUM_ALIGNOF.
16767 # We assume without checking that long's alignment is at least as strong as
16768 # char, short, or int. Note that we intentionally do not consider any types
16769 # wider than 64 bits, as allowing MAXIMUM_ALIGNOF to exceed 8 would be too
16770 # much of a penalty for disk and memory space.
16772 MAX_ALIGNOF
=$ac_cv_alignof_double
16774 if test $ac_cv_alignof_long -gt $MAX_ALIGNOF ; then
16775 as_fn_error $?
"alignment of 'long' is greater than the alignment of 'double'" "$LINENO" 5
16777 if test x
"$HAVE_LONG_LONG_INT_64" = xyes
&& test $ac_cv_alignof_long_long_int -gt $MAX_ALIGNOF ; then
16778 as_fn_error $?
"alignment of 'long long int' is greater than the alignment of 'double'" "$LINENO" 5
16781 cat >>confdefs.h
<<_ACEOF
16782 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
16787 # Some compilers offer a 128-bit integer scalar type.
16788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __int128" >&5
16789 $as_echo_n "checking for __int128... " >&6; }
16790 if ${pgac_cv__128bit_int+:} false
; then :
16791 $as_echo_n "(cached) " >&6
16793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16794 /* end confdefs.h. */
16797 * We don't actually run this test, just link it to verify that any support
16798 * functions needed for __int128 are present.
16800 * These are globals to discourage the compiler from folding all the
16801 * arithmetic tests down to compile-time constants. We do not have
16802 * convenient support for 128bit literals at this point...
16804 __int128 a = 48828125;
16805 __int128 b = 97656250;
16812 a = (a << 12) + 1; /* 200000000001 */
16813 b = (b << 12) + 5; /* 400000000005 */
16814 /* try the most relevant arithmetic ops */
16817 /* must use the results, else compiler may optimize arithmetic away */
16825 if ac_fn_c_try_link
"$LINENO"; then :
16826 pgac_cv__128bit_int
=yes
16828 pgac_cv__128bit_int
=no
16830 rm -f core conftest.err conftest.
$ac_objext \
16831 conftest
$ac_exeext conftest.
$ac_ext
16833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__128bit_int" >&5
16834 $as_echo "$pgac_cv__128bit_int" >&6; }
16835 if test x
"$pgac_cv__128bit_int" = xyes
; then
16836 # Use of non-default alignment with __int128 tickles bugs in some compilers.
16837 # If not cross-compiling, we can test for bugs and disable use of __int128
16838 # with buggy compilers. If cross-compiling, hope for the best.
16839 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83925
16840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __int128 alignment bug" >&5
16841 $as_echo_n "checking for __int128 alignment bug... " >&6; }
16842 if ${pgac_cv__128bit_int_bug+:} false
; then :
16843 $as_echo_n "(cached) " >&6
16845 if test "$cross_compiling" = yes; then :
16846 pgac_cv__128bit_int_bug
="assuming ok"
16848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16849 /* end confdefs.h. */
16851 /* This must match the corresponding code in c.h: */
16852 #if defined(__GNUC__) || defined(__SUNPRO_C)
16853 #define pg_attribute_aligned(a) __attribute__((aligned(a)))
16854 #elif defined(_MSC_VER)
16855 #define pg_attribute_aligned(a) __declspec(align(a))
16857 typedef __int128 int128a
16858 #if defined(pg_attribute_aligned)
16859 pg_attribute_aligned(8)
16863 void pass_by_val(void *buffer, int128a par) { holder = par; }
16869 long int i64 = 97656225L << 12;
16871 pass_by_val(main, (int128a) i64);
16880 if ac_fn_c_try_run
"$LINENO"; then :
16881 pgac_cv__128bit_int_bug
=ok
16883 pgac_cv__128bit_int_bug
=broken
16885 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16886 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__128bit_int_bug" >&5
16891 $as_echo "$pgac_cv__128bit_int_bug" >&6; }
16892 if test x
"$pgac_cv__128bit_int_bug" != xbroken
; then
16894 $as_echo "#define PG_INT128_TYPE __int128" >>confdefs.h
16896 # The cast to long int works around a bug in the HP C Compiler,
16897 # see AC_CHECK_SIZEOF for more information.
16898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of PG_INT128_TYPE" >&5
16899 $as_echo_n "checking alignment of PG_INT128_TYPE... " >&6; }
16900 if ${ac_cv_alignof_PG_INT128_TYPE+:} false
; then :
16901 $as_echo_n "(cached) " >&6
16903 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_PG_INT128_TYPE" "$ac_includes_default
16905 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16907 typedef struct { char x; PG_INT128_TYPE y; } ac__type_alignof_;"; then :
16910 if test "$ac_cv_type_PG_INT128_TYPE" = yes; then
16911 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16912 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16913 as_fn_error
77 "cannot compute alignment of PG_INT128_TYPE
16914 See \`config.log' for more details" "$LINENO" 5; }
16916 ac_cv_alignof_PG_INT128_TYPE
=0
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_PG_INT128_TYPE" >&5
16922 $as_echo "$ac_cv_alignof_PG_INT128_TYPE" >&6; }
16926 cat >>confdefs.h
<<_ACEOF
16927 #define ALIGNOF_PG_INT128_TYPE $ac_cv_alignof_PG_INT128_TYPE
16934 # Check for various atomic operations now that we have checked how to declare
16936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync char locking functions" >&5
16937 $as_echo_n "checking for builtin __sync char locking functions... " >&6; }
16938 if ${pgac_cv_gcc_sync_char_tas+:} false
; then :
16939 $as_echo_n "(cached) " >&6
16941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16942 /* end confdefs.h. */
16948 __sync_lock_test_and_set(&lock, 1);
16949 __sync_lock_release(&lock);
16954 if ac_fn_c_try_link
"$LINENO"; then :
16955 pgac_cv_gcc_sync_char_tas
="yes"
16957 pgac_cv_gcc_sync_char_tas
="no"
16959 rm -f core conftest.err conftest.
$ac_objext \
16960 conftest
$ac_exeext conftest.
$ac_ext
16962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_char_tas" >&5
16963 $as_echo "$pgac_cv_gcc_sync_char_tas" >&6; }
16964 if test x
"$pgac_cv_gcc_sync_char_tas" = x
"yes"; then
16966 $as_echo "#define HAVE_GCC__SYNC_CHAR_TAS 1" >>confdefs.h
16969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int32 locking functions" >&5
16970 $as_echo_n "checking for builtin __sync int32 locking functions... " >&6; }
16971 if ${pgac_cv_gcc_sync_int32_tas+:} false
; then :
16972 $as_echo_n "(cached) " >&6
16974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16975 /* end confdefs.h. */
16981 __sync_lock_test_and_set(&lock, 1);
16982 __sync_lock_release(&lock);
16987 if ac_fn_c_try_link
"$LINENO"; then :
16988 pgac_cv_gcc_sync_int32_tas
="yes"
16990 pgac_cv_gcc_sync_int32_tas
="no"
16992 rm -f core conftest.err conftest.
$ac_objext \
16993 conftest
$ac_exeext conftest.
$ac_ext
16995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int32_tas" >&5
16996 $as_echo "$pgac_cv_gcc_sync_int32_tas" >&6; }
16997 if test x
"$pgac_cv_gcc_sync_int32_tas" = x
"yes"; then
16999 $as_echo "#define HAVE_GCC__SYNC_INT32_TAS 1" >>confdefs.h
17002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int32 atomic operations" >&5
17003 $as_echo_n "checking for builtin __sync int32 atomic operations... " >&6; }
17004 if ${pgac_cv_gcc_sync_int32_cas+:} false
; then :
17005 $as_echo_n "(cached) " >&6
17007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17008 /* end confdefs.h. */
17014 __sync_val_compare_and_swap(&val, 0, 37);
17019 if ac_fn_c_try_link
"$LINENO"; then :
17020 pgac_cv_gcc_sync_int32_cas
="yes"
17022 pgac_cv_gcc_sync_int32_cas
="no"
17024 rm -f core conftest.err conftest.
$ac_objext \
17025 conftest
$ac_exeext conftest.
$ac_ext
17027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int32_cas" >&5
17028 $as_echo "$pgac_cv_gcc_sync_int32_cas" >&6; }
17029 if test x
"$pgac_cv_gcc_sync_int32_cas" = x
"yes"; then
17031 $as_echo "#define HAVE_GCC__SYNC_INT32_CAS 1" >>confdefs.h
17034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int64 atomic operations" >&5
17035 $as_echo_n "checking for builtin __sync int64 atomic operations... " >&6; }
17036 if ${pgac_cv_gcc_sync_int64_cas+:} false
; then :
17037 $as_echo_n "(cached) " >&6
17039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17040 /* end confdefs.h. */
17045 PG_INT64_TYPE lock = 0;
17046 __sync_val_compare_and_swap(&lock, 0, (PG_INT64_TYPE) 37);
17051 if ac_fn_c_try_link
"$LINENO"; then :
17052 pgac_cv_gcc_sync_int64_cas
="yes"
17054 pgac_cv_gcc_sync_int64_cas
="no"
17056 rm -f core conftest.err conftest.
$ac_objext \
17057 conftest
$ac_exeext conftest.
$ac_ext
17059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int64_cas" >&5
17060 $as_echo "$pgac_cv_gcc_sync_int64_cas" >&6; }
17061 if test x
"$pgac_cv_gcc_sync_int64_cas" = x
"yes"; then
17063 $as_echo "#define HAVE_GCC__SYNC_INT64_CAS 1" >>confdefs.h
17066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __atomic int32 atomic operations" >&5
17067 $as_echo_n "checking for builtin __atomic int32 atomic operations... " >&6; }
17068 if ${pgac_cv_gcc_atomic_int32_cas+:} false
; then :
17069 $as_echo_n "(cached) " >&6
17071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17072 /* end confdefs.h. */
17079 __atomic_compare_exchange_n(&val, &expect, 37, 0, __ATOMIC_SEQ_CST, __ATOMIC_RELAXED);
17084 if ac_fn_c_try_link
"$LINENO"; then :
17085 pgac_cv_gcc_atomic_int32_cas
="yes"
17087 pgac_cv_gcc_atomic_int32_cas
="no"
17089 rm -f core conftest.err conftest.
$ac_objext \
17090 conftest
$ac_exeext conftest.
$ac_ext
17092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_atomic_int32_cas" >&5
17093 $as_echo "$pgac_cv_gcc_atomic_int32_cas" >&6; }
17094 if test x
"$pgac_cv_gcc_atomic_int32_cas" = x
"yes"; then
17096 $as_echo "#define HAVE_GCC__ATOMIC_INT32_CAS 1" >>confdefs.h
17099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __atomic int64 atomic operations" >&5
17100 $as_echo_n "checking for builtin __atomic int64 atomic operations... " >&6; }
17101 if ${pgac_cv_gcc_atomic_int64_cas+:} false
; then :
17102 $as_echo_n "(cached) " >&6
17104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17105 /* end confdefs.h. */
17110 PG_INT64_TYPE val = 0;
17111 PG_INT64_TYPE expect = 0;
17112 __atomic_compare_exchange_n(&val, &expect, 37, 0, __ATOMIC_SEQ_CST, __ATOMIC_RELAXED);
17117 if ac_fn_c_try_link
"$LINENO"; then :
17118 pgac_cv_gcc_atomic_int64_cas
="yes"
17120 pgac_cv_gcc_atomic_int64_cas
="no"
17122 rm -f core conftest.err conftest.
$ac_objext \
17123 conftest
$ac_exeext conftest.
$ac_ext
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_atomic_int64_cas" >&5
17126 $as_echo "$pgac_cv_gcc_atomic_int64_cas" >&6; }
17127 if test x
"$pgac_cv_gcc_atomic_int64_cas" = x
"yes"; then
17129 $as_echo "#define HAVE_GCC__ATOMIC_INT64_CAS 1" >>confdefs.h
17134 # Check for x86 cpuid instruction
17135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __get_cpuid" >&5
17136 $as_echo_n "checking for __get_cpuid... " >&6; }
17137 if ${pgac_cv__get_cpuid+:} false
; then :
17138 $as_echo_n "(cached) " >&6
17140 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17141 /* end confdefs.h. */
17146 unsigned int exx[4] = {0, 0, 0, 0};
17147 __get_cpuid(1, &exx[0], &exx[1], &exx[2], &exx[3]);
17153 if ac_fn_c_try_link
"$LINENO"; then :
17154 pgac_cv__get_cpuid
="yes"
17156 pgac_cv__get_cpuid
="no"
17158 rm -f core conftest.err conftest.
$ac_objext \
17159 conftest
$ac_exeext conftest.
$ac_ext
17161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__get_cpuid" >&5
17162 $as_echo "$pgac_cv__get_cpuid" >&6; }
17163 if test x
"$pgac_cv__get_cpuid" = x
"yes"; then
17165 $as_echo "#define HAVE__GET_CPUID 1" >>confdefs.h
17169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __get_cpuid_count" >&5
17170 $as_echo_n "checking for __get_cpuid_count... " >&6; }
17171 if ${pgac_cv__get_cpuid_count+:} false
; then :
17172 $as_echo_n "(cached) " >&6
17174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17175 /* end confdefs.h. */
17180 unsigned int exx[4] = {0, 0, 0, 0};
17181 __get_cpuid_count(7, 0, &exx[0], &exx[1], &exx[2], &exx[3]);
17187 if ac_fn_c_try_link
"$LINENO"; then :
17188 pgac_cv__get_cpuid_count
="yes"
17190 pgac_cv__get_cpuid_count
="no"
17192 rm -f core conftest.err conftest.
$ac_objext \
17193 conftest
$ac_exeext conftest.
$ac_ext
17195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__get_cpuid_count" >&5
17196 $as_echo "$pgac_cv__get_cpuid_count" >&6; }
17197 if test x
"$pgac_cv__get_cpuid_count" = x
"yes"; then
17199 $as_echo "#define HAVE__GET_CPUID_COUNT 1" >>confdefs.h
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __cpuid" >&5
17204 $as_echo_n "checking for __cpuid... " >&6; }
17205 if ${pgac_cv__cpuid+:} false
; then :
17206 $as_echo_n "(cached) " >&6
17208 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17209 /* end confdefs.h. */
17210 #include <intrin.h>
17214 unsigned int exx[4] = {0, 0, 0, 0};
17215 __get_cpuid(exx[0], 1);
17221 if ac_fn_c_try_link
"$LINENO"; then :
17222 pgac_cv__cpuid
="yes"
17224 pgac_cv__cpuid
="no"
17226 rm -f core conftest.err conftest.
$ac_objext \
17227 conftest
$ac_exeext conftest.
$ac_ext
17229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__cpuid" >&5
17230 $as_echo "$pgac_cv__cpuid" >&6; }
17231 if test x
"$pgac_cv__cpuid" = x
"yes"; then
17233 $as_echo "#define HAVE__CPUID 1" >>confdefs.h
17237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __cpuidex" >&5
17238 $as_echo_n "checking for __cpuidex... " >&6; }
17239 if ${pgac_cv__cpuidex+:} false
; then :
17240 $as_echo_n "(cached) " >&6
17242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17243 /* end confdefs.h. */
17244 #include <intrin.h>
17248 unsigned int exx[4] = {0, 0, 0, 0};
17249 __get_cpuidex(exx[0], 7, 0);
17255 if ac_fn_c_try_link
"$LINENO"; then :
17256 pgac_cv__cpuidex
="yes"
17258 pgac_cv__cpuidex
="no"
17260 rm -f core conftest.err conftest.
$ac_objext \
17261 conftest
$ac_exeext conftest.
$ac_ext
17263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__cpuidex" >&5
17264 $as_echo "$pgac_cv__cpuidex" >&6; }
17265 if test x
"$pgac_cv__cpuidex" = x
"yes"; then
17267 $as_echo "#define HAVE__CPUIDEX 1" >>confdefs.h
17271 # Check for XSAVE intrinsics
17274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xgetbv with CFLAGS=" >&5
17275 $as_echo_n "checking for _xgetbv with CFLAGS=... " >&6; }
17276 if ${pgac_cv_xsave_intrinsics_+:} false
; then :
17277 $as_echo_n "(cached) " >&6
17279 pgac_save_CFLAGS
=$CFLAGS
17280 CFLAGS
="$pgac_save_CFLAGS "
17281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17282 /* end confdefs.h. */
17283 #include <immintrin.h>
17287 return _xgetbv(0) & 0xe0;
17292 if ac_fn_c_try_link
"$LINENO"; then :
17293 pgac_cv_xsave_intrinsics_
=yes
17295 pgac_cv_xsave_intrinsics_
=no
17297 rm -f core conftest.err conftest.
$ac_objext \
17298 conftest
$ac_exeext conftest.
$ac_ext
17299 CFLAGS
="$pgac_save_CFLAGS"
17301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_xsave_intrinsics_" >&5
17302 $as_echo "$pgac_cv_xsave_intrinsics_" >&6; }
17303 if test x
"$pgac_cv_xsave_intrinsics_" = x
"yes"; then
17305 pgac_xsave_intrinsics
=yes
17308 if test x
"$pgac_xsave_intrinsics" != x
"yes"; then
17309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xgetbv with CFLAGS=-mxsave" >&5
17310 $as_echo_n "checking for _xgetbv with CFLAGS=-mxsave... " >&6; }
17311 if ${pgac_cv_xsave_intrinsics__mxsave+:} false
; then :
17312 $as_echo_n "(cached) " >&6
17314 pgac_save_CFLAGS
=$CFLAGS
17315 CFLAGS
="$pgac_save_CFLAGS -mxsave"
17316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17317 /* end confdefs.h. */
17318 #include <immintrin.h>
17322 return _xgetbv(0) & 0xe0;
17327 if ac_fn_c_try_link
"$LINENO"; then :
17328 pgac_cv_xsave_intrinsics__mxsave
=yes
17330 pgac_cv_xsave_intrinsics__mxsave
=no
17332 rm -f core conftest.err conftest.
$ac_objext \
17333 conftest
$ac_exeext conftest.
$ac_ext
17334 CFLAGS
="$pgac_save_CFLAGS"
17336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_xsave_intrinsics__mxsave" >&5
17337 $as_echo "$pgac_cv_xsave_intrinsics__mxsave" >&6; }
17338 if test x
"$pgac_cv_xsave_intrinsics__mxsave" = x
"yes"; then
17339 CFLAGS_XSAVE
="-mxsave"
17340 pgac_xsave_intrinsics
=yes
17344 if test x
"$pgac_xsave_intrinsics" = x
"yes"; then
17346 $as_echo "#define HAVE_XSAVE_INTRINSICS 1" >>confdefs.h
17351 # Check for AVX-512 popcount intrinsics
17355 if test x
"$host_cpu" = x
"x86_64"; then
17356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm512_popcnt_epi64 with CFLAGS=" >&5
17357 $as_echo_n "checking for _mm512_popcnt_epi64 with CFLAGS=... " >&6; }
17358 if ${pgac_cv_avx512_popcnt_intrinsics_+:} false
; then :
17359 $as_echo_n "(cached) " >&6
17361 pgac_save_CFLAGS
=$CFLAGS
17362 CFLAGS
="$pgac_save_CFLAGS "
17363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17364 /* end confdefs.h. */
17365 #include <immintrin.h>
17369 const char buf[sizeof(__m512i)];
17370 PG_INT64_TYPE popcnt = 0;
17371 __m512i accum = _mm512_setzero_si512();
17372 const __m512i val = _mm512_maskz_loadu_epi8((__mmask64) 0xf0f0f0f0f0f0f0f0, (const __m512i *) buf);
17373 const __m512i cnt = _mm512_popcnt_epi64(val);
17374 accum = _mm512_add_epi64(accum, cnt);
17375 popcnt = _mm512_reduce_add_epi64(accum);
17376 /* return computed value, to prevent the above being optimized away */
17377 return popcnt == 0;
17382 if ac_fn_c_try_link
"$LINENO"; then :
17383 pgac_cv_avx512_popcnt_intrinsics_
=yes
17385 pgac_cv_avx512_popcnt_intrinsics_
=no
17387 rm -f core conftest.err conftest.
$ac_objext \
17388 conftest
$ac_exeext conftest.
$ac_ext
17389 CFLAGS
="$pgac_save_CFLAGS"
17391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_avx512_popcnt_intrinsics_" >&5
17392 $as_echo "$pgac_cv_avx512_popcnt_intrinsics_" >&6; }
17393 if test x
"$pgac_cv_avx512_popcnt_intrinsics_" = x
"yes"; then
17395 pgac_avx512_popcnt_intrinsics
=yes
17398 if test x
"$pgac_avx512_popcnt_intrinsics" != x
"yes"; then
17399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm512_popcnt_epi64 with CFLAGS=-mavx512vpopcntdq -mavx512bw" >&5
17400 $as_echo_n "checking for _mm512_popcnt_epi64 with CFLAGS=-mavx512vpopcntdq -mavx512bw... " >&6; }
17401 if ${pgac_cv_avx512_popcnt_intrinsics__mavx512vpopcntdq__mavx512bw+:} false
; then :
17402 $as_echo_n "(cached) " >&6
17404 pgac_save_CFLAGS
=$CFLAGS
17405 CFLAGS
="$pgac_save_CFLAGS -mavx512vpopcntdq -mavx512bw"
17406 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17407 /* end confdefs.h. */
17408 #include <immintrin.h>
17412 const char buf[sizeof(__m512i)];
17413 PG_INT64_TYPE popcnt = 0;
17414 __m512i accum = _mm512_setzero_si512();
17415 const __m512i val = _mm512_maskz_loadu_epi8((__mmask64) 0xf0f0f0f0f0f0f0f0, (const __m512i *) buf);
17416 const __m512i cnt = _mm512_popcnt_epi64(val);
17417 accum = _mm512_add_epi64(accum, cnt);
17418 popcnt = _mm512_reduce_add_epi64(accum);
17419 /* return computed value, to prevent the above being optimized away */
17420 return popcnt == 0;
17425 if ac_fn_c_try_link
"$LINENO"; then :
17426 pgac_cv_avx512_popcnt_intrinsics__mavx512vpopcntdq__mavx512bw
=yes
17428 pgac_cv_avx512_popcnt_intrinsics__mavx512vpopcntdq__mavx512bw
=no
17430 rm -f core conftest.err conftest.
$ac_objext \
17431 conftest
$ac_exeext conftest.
$ac_ext
17432 CFLAGS
="$pgac_save_CFLAGS"
17434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_avx512_popcnt_intrinsics__mavx512vpopcntdq__mavx512bw" >&5
17435 $as_echo "$pgac_cv_avx512_popcnt_intrinsics__mavx512vpopcntdq__mavx512bw" >&6; }
17436 if test x
"$pgac_cv_avx512_popcnt_intrinsics__mavx512vpopcntdq__mavx512bw" = x
"yes"; then
17437 CFLAGS_POPCNT
="-mavx512vpopcntdq -mavx512bw"
17438 pgac_avx512_popcnt_intrinsics
=yes
17442 if test x
"$pgac_avx512_popcnt_intrinsics" = x
"yes"; then
17443 PG_POPCNT_OBJS
="pg_popcount_avx512.o pg_popcount_avx512_choose.o"
17445 $as_echo "#define USE_AVX512_POPCNT_WITH_RUNTIME_CHECK 1" >>confdefs.h
17452 # Check for Intel SSE 4.2 intrinsics to do CRC calculations.
17454 # First check if the _mm_crc32_u8 and _mm_crc32_u64 intrinsics can be used
17455 # with the default compiler flags. If not, check if adding the -msse4.2
17456 # flag helps. CFLAGS_CRC is set to -msse4.2 if that's required.
17457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=" >&5
17458 $as_echo_n "checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=... " >&6; }
17459 if ${pgac_cv_sse42_crc32_intrinsics_+:} false
; then :
17460 $as_echo_n "(cached) " >&6
17462 pgac_save_CFLAGS
=$CFLAGS
17463 CFLAGS
="$pgac_save_CFLAGS "
17464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17465 /* end confdefs.h. */
17466 #include <nmmintrin.h>
17470 unsigned int crc = 0;
17471 crc = _mm_crc32_u8(crc, 0);
17472 crc = _mm_crc32_u32(crc, 0);
17473 /* return computed value, to prevent the above being optimized away */
17479 if ac_fn_c_try_link
"$LINENO"; then :
17480 pgac_cv_sse42_crc32_intrinsics_
=yes
17482 pgac_cv_sse42_crc32_intrinsics_
=no
17484 rm -f core conftest.err conftest.
$ac_objext \
17485 conftest
$ac_exeext conftest.
$ac_ext
17486 CFLAGS
="$pgac_save_CFLAGS"
17488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_sse42_crc32_intrinsics_" >&5
17489 $as_echo "$pgac_cv_sse42_crc32_intrinsics_" >&6; }
17490 if test x
"$pgac_cv_sse42_crc32_intrinsics_" = x
"yes"; then
17492 pgac_sse42_crc32_intrinsics
=yes
17495 if test x
"$pgac_sse42_crc32_intrinsics" != x
"yes"; then
17496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=-msse4.2" >&5
17497 $as_echo_n "checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=-msse4.2... " >&6; }
17498 if ${pgac_cv_sse42_crc32_intrinsics__msse4_2+:} false
; then :
17499 $as_echo_n "(cached) " >&6
17501 pgac_save_CFLAGS
=$CFLAGS
17502 CFLAGS
="$pgac_save_CFLAGS -msse4.2"
17503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17504 /* end confdefs.h. */
17505 #include <nmmintrin.h>
17509 unsigned int crc = 0;
17510 crc = _mm_crc32_u8(crc, 0);
17511 crc = _mm_crc32_u32(crc, 0);
17512 /* return computed value, to prevent the above being optimized away */
17518 if ac_fn_c_try_link
"$LINENO"; then :
17519 pgac_cv_sse42_crc32_intrinsics__msse4_2
=yes
17521 pgac_cv_sse42_crc32_intrinsics__msse4_2
=no
17523 rm -f core conftest.err conftest.
$ac_objext \
17524 conftest
$ac_exeext conftest.
$ac_ext
17525 CFLAGS
="$pgac_save_CFLAGS"
17527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_sse42_crc32_intrinsics__msse4_2" >&5
17528 $as_echo "$pgac_cv_sse42_crc32_intrinsics__msse4_2" >&6; }
17529 if test x
"$pgac_cv_sse42_crc32_intrinsics__msse4_2" = x
"yes"; then
17530 CFLAGS_CRC
="-msse4.2"
17531 pgac_sse42_crc32_intrinsics
=yes
17536 # Are we targeting a processor that supports SSE 4.2? gcc, clang and icc all
17537 # define __SSE4_2__ in that case.
17538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17539 /* end confdefs.h. */
17546 #error __SSE4_2__ not defined
17553 if ac_fn_c_try_compile
"$LINENO"; then :
17556 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17558 # Check for ARMv8 CRC Extension intrinsics to do CRC calculations.
17560 # First check if __crc32c* intrinsics can be used with the default compiler
17561 # flags. If not, check if adding -march=armv8-a+crc flag helps.
17562 # CFLAGS_CRC is set if the extra flag is required.
17563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=" >&5
17564 $as_echo_n "checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=... " >&6; }
17565 if ${pgac_cv_armv8_crc32c_intrinsics_+:} false
; then :
17566 $as_echo_n "(cached) " >&6
17568 pgac_save_CFLAGS
=$CFLAGS
17569 CFLAGS
="$pgac_save_CFLAGS "
17570 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17571 /* end confdefs.h. */
17572 #include <arm_acle.h>
17576 unsigned int crc = 0;
17577 crc = __crc32cb(crc, 0);
17578 crc = __crc32ch(crc, 0);
17579 crc = __crc32cw(crc, 0);
17580 crc = __crc32cd(crc, 0);
17581 /* return computed value, to prevent the above being optimized away */
17587 if ac_fn_c_try_link
"$LINENO"; then :
17588 pgac_cv_armv8_crc32c_intrinsics_
=yes
17590 pgac_cv_armv8_crc32c_intrinsics_
=no
17592 rm -f core conftest.err conftest.
$ac_objext \
17593 conftest
$ac_exeext conftest.
$ac_ext
17594 CFLAGS
="$pgac_save_CFLAGS"
17596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_armv8_crc32c_intrinsics_" >&5
17597 $as_echo "$pgac_cv_armv8_crc32c_intrinsics_" >&6; }
17598 if test x
"$pgac_cv_armv8_crc32c_intrinsics_" = x
"yes"; then
17600 pgac_armv8_crc32c_intrinsics
=yes
17603 if test x
"$pgac_armv8_crc32c_intrinsics" != x
"yes"; then
17604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=-march=armv8-a+crc" >&5
17605 $as_echo_n "checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=-march=armv8-a+crc... " >&6; }
17606 if ${pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc+:} false
; then :
17607 $as_echo_n "(cached) " >&6
17609 pgac_save_CFLAGS
=$CFLAGS
17610 CFLAGS
="$pgac_save_CFLAGS -march=armv8-a+crc"
17611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17612 /* end confdefs.h. */
17613 #include <arm_acle.h>
17617 unsigned int crc = 0;
17618 crc = __crc32cb(crc, 0);
17619 crc = __crc32ch(crc, 0);
17620 crc = __crc32cw(crc, 0);
17621 crc = __crc32cd(crc, 0);
17622 /* return computed value, to prevent the above being optimized away */
17628 if ac_fn_c_try_link
"$LINENO"; then :
17629 pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc
=yes
17631 pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc
=no
17633 rm -f core conftest.err conftest.
$ac_objext \
17634 conftest
$ac_exeext conftest.
$ac_ext
17635 CFLAGS
="$pgac_save_CFLAGS"
17637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc" >&5
17638 $as_echo "$pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc" >&6; }
17639 if test x
"$pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc" = x
"yes"; then
17640 CFLAGS_CRC
="-march=armv8-a+crc"
17641 pgac_armv8_crc32c_intrinsics
=yes
17646 # Check for LoongArch CRC intrinsics to do CRC calculations.
17648 # Check if __builtin_loongarch_crcc_* intrinsics can be used
17649 # with the default compiler flags.
17650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_loongarch_crcc_w_b_w, __builtin_loongarch_crcc_w_h_w, __builtin_loongarch_crcc_w_w_w and __builtin_loongarch_crcc_w_d_w" >&5
17651 $as_echo_n "checking for __builtin_loongarch_crcc_w_b_w, __builtin_loongarch_crcc_w_h_w, __builtin_loongarch_crcc_w_w_w and __builtin_loongarch_crcc_w_d_w... " >&6; }
17652 if ${pgac_cv_loongarch_crc32c_intrinsics+:} false
; then :
17653 $as_echo_n "(cached) " >&6
17655 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17656 /* end confdefs.h. */
17661 unsigned int crc = 0;
17662 crc = __builtin_loongarch_crcc_w_b_w(0, crc);
17663 crc = __builtin_loongarch_crcc_w_h_w(0, crc);
17664 crc = __builtin_loongarch_crcc_w_w_w(0, crc);
17665 crc = __builtin_loongarch_crcc_w_d_w(0, crc);
17666 /* return computed value, to prevent the above being optimized away */
17672 if ac_fn_c_try_link
"$LINENO"; then :
17673 pgac_cv_loongarch_crc32c_intrinsics
=yes
17675 pgac_cv_loongarch_crc32c_intrinsics
=no
17677 rm -f core conftest.err conftest.
$ac_objext \
17678 conftest
$ac_exeext conftest.
$ac_ext
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_loongarch_crc32c_intrinsics" >&5
17681 $as_echo "$pgac_cv_loongarch_crc32c_intrinsics" >&6; }
17682 if test x
"$pgac_cv_loongarch_crc32c_intrinsics" = x
"yes"; then
17683 pgac_loongarch_crc32c_intrinsics
=yes
17689 # Select CRC-32C implementation.
17691 # If we are targeting a processor that has Intel SSE 4.2 instructions, we can
17692 # use the special CRC instructions for calculating CRC-32C. If we're not
17693 # targeting such a processor, but we can nevertheless produce code that uses
17694 # the SSE intrinsics, perhaps with some extra CFLAGS, compile both
17695 # implementations and select which one to use at runtime, depending on whether
17696 # SSE 4.2 is supported by the processor we're running on.
17698 # Similarly, if we are targeting an ARM processor that has the CRC
17699 # instructions that are part of the ARMv8 CRC Extension, use them. And if
17700 # we're not targeting such a processor, but can nevertheless produce code that
17701 # uses the CRC instructions, compile both, and select at runtime.
17703 # You can skip the runtime check by setting the appropriate USE_*_CRC32 flag to 1
17704 # in the template or configure command line.
17706 # If we are targeting a LoongArch processor, CRC instructions are
17707 # always available (at least on 64 bit), so no runtime check is needed.
17708 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
"" && test x
"$USE_LOONGARCH_CRC32C" = x
""; then
17709 # Use Intel SSE 4.2 if available.
17710 if test x
"$pgac_sse42_crc32_intrinsics" = x
"yes" && test x
"$SSE4_2_TARGETED" = x
"1" ; then
17713 # Intel SSE 4.2, with runtime check? The CPUID instruction is needed for
17714 # the runtime check.
17715 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
17716 USE_SSE42_CRC32C_WITH_RUNTIME_CHECK
=1
17718 # Use ARM CRC Extension if available.
17719 if test x
"$pgac_armv8_crc32c_intrinsics" = x
"yes" && test x
"$CFLAGS_CRC" = x
""; then
17722 # ARM CRC Extension, with runtime check?
17723 if test x
"$pgac_armv8_crc32c_intrinsics" = x
"yes"; then
17724 USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK
=1
17726 # LoongArch CRCC instructions.
17727 if test x
"$pgac_loongarch_crc32c_intrinsics" = x
"yes"; then
17728 USE_LOONGARCH_CRC32C
=1
17730 # fall back to slicing-by-8 algorithm, which doesn't require any
17731 # special CPU support.
17732 USE_SLICING_BY_8_CRC32C
=1
17740 # Set PG_CRC32C_OBJS appropriately depending on the selected implementation.
17741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which CRC-32C implementation to use" >&5
17742 $as_echo_n "checking which CRC-32C implementation to use... " >&6; }
17743 if test x
"$USE_SSE42_CRC32C" = x
"1"; then
17745 $as_echo "#define USE_SSE42_CRC32C 1" >>confdefs.h
17747 PG_CRC32C_OBJS
="pg_crc32c_sse42.o"
17748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SSE 4.2" >&5
17749 $as_echo "SSE 4.2" >&6; }
17751 if test x
"$USE_SSE42_CRC32C_WITH_RUNTIME_CHECK" = x
"1"; then
17753 $as_echo "#define USE_SSE42_CRC32C_WITH_RUNTIME_CHECK 1" >>confdefs.h
17755 PG_CRC32C_OBJS
="pg_crc32c_sse42.o pg_crc32c_sb8.o pg_crc32c_sse42_choose.o"
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SSE 4.2 with runtime check" >&5
17757 $as_echo "SSE 4.2 with runtime check" >&6; }
17759 if test x
"$USE_ARMV8_CRC32C" = x
"1"; then
17761 $as_echo "#define USE_ARMV8_CRC32C 1" >>confdefs.h
17763 PG_CRC32C_OBJS
="pg_crc32c_armv8.o"
17764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ARMv8 CRC instructions" >&5
17765 $as_echo "ARMv8 CRC instructions" >&6; }
17767 if test x
"$USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK" = x
"1"; then
17769 $as_echo "#define USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK 1" >>confdefs.h
17771 PG_CRC32C_OBJS
="pg_crc32c_armv8.o pg_crc32c_sb8.o pg_crc32c_armv8_choose.o"
17772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ARMv8 CRC instructions with runtime check" >&5
17773 $as_echo "ARMv8 CRC instructions with runtime check" >&6; }
17775 if test x
"$USE_LOONGARCH_CRC32C" = x
"1"; then
17777 $as_echo "#define USE_LOONGARCH_CRC32C 1" >>confdefs.h
17779 PG_CRC32C_OBJS
="pg_crc32c_loongarch.o"
17780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LoongArch CRCC instructions" >&5
17781 $as_echo "LoongArch CRCC instructions" >&6; }
17784 $as_echo "#define USE_SLICING_BY_8_CRC32C 1" >>confdefs.h
17786 PG_CRC32C_OBJS
="pg_crc32c_sb8.o"
17787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: slicing-by-8" >&5
17788 $as_echo "slicing-by-8" >&6; }
17797 # Select semaphore implementation type.
17798 if test "$PORTNAME" != "win32"; then
17799 if test x
"$PREFERRED_SEMAPHORES" = x
"NAMED_POSIX" ; then
17800 # Need sem_open for this
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_open" >&5
17802 $as_echo_n "checking for library containing sem_open... " >&6; }
17803 if ${ac_cv_search_sem_open+:} false
; then :
17804 $as_echo_n "(cached) " >&6
17806 ac_func_search_save_LIBS
=$LIBS
17807 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17808 /* end confdefs.h. */
17810 /* Override any GCC internal prototype to avoid an error.
17811 Use char because int might match the return type of a GCC
17812 builtin and then its argument prototype would still apply. */
17820 return sem_open ();
17825 for ac_lib
in '' rt pthread
; do
17826 if test -z "$ac_lib"; then
17827 ac_res
="none required"
17830 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
17832 if ac_fn_c_try_link
"$LINENO"; then :
17833 ac_cv_search_sem_open
=$ac_res
17835 rm -f core conftest.err conftest.
$ac_objext \
17837 if ${ac_cv_search_sem_open+:} false
; then :
17841 if ${ac_cv_search_sem_open+:} false
; then :
17844 ac_cv_search_sem_open
=no
17846 rm conftest.
$ac_ext
17847 LIBS
=$ac_func_search_save_LIBS
17849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_open" >&5
17850 $as_echo "$ac_cv_search_sem_open" >&6; }
17851 ac_res
=$ac_cv_search_sem_open
17852 if test "$ac_res" != no
; then :
17853 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
17854 USE_NAMED_POSIX_SEMAPHORES
=1
17858 if test x
"$PREFERRED_SEMAPHORES" = x
"UNNAMED_POSIX" ; then
17859 # Need sem_init for this
17860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
17861 $as_echo_n "checking for library containing sem_init... " >&6; }
17862 if ${ac_cv_search_sem_init+:} false
; then :
17863 $as_echo_n "(cached) " >&6
17865 ac_func_search_save_LIBS
=$LIBS
17866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17867 /* end confdefs.h. */
17869 /* Override any GCC internal prototype to avoid an error.
17870 Use char because int might match the return type of a GCC
17871 builtin and then its argument prototype would still apply. */
17879 return sem_init ();
17884 for ac_lib
in '' rt pthread
; do
17885 if test -z "$ac_lib"; then
17886 ac_res
="none required"
17889 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
17891 if ac_fn_c_try_link
"$LINENO"; then :
17892 ac_cv_search_sem_init
=$ac_res
17894 rm -f core conftest.err conftest.
$ac_objext \
17896 if ${ac_cv_search_sem_init+:} false
; then :
17900 if ${ac_cv_search_sem_init+:} false
; then :
17903 ac_cv_search_sem_init
=no
17905 rm conftest.
$ac_ext
17906 LIBS
=$ac_func_search_save_LIBS
17908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
17909 $as_echo "$ac_cv_search_sem_init" >&6; }
17910 ac_res
=$ac_cv_search_sem_init
17911 if test "$ac_res" != no
; then :
17912 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
17913 USE_UNNAMED_POSIX_SEMAPHORES
=1
17917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which semaphore API to use" >&5
17918 $as_echo_n "checking which semaphore API to use... " >&6; }
17919 if test x
"$USE_NAMED_POSIX_SEMAPHORES" = x
"1" ; then
17921 $as_echo "#define USE_NAMED_POSIX_SEMAPHORES 1" >>confdefs.h
17923 SEMA_IMPLEMENTATION
="src/backend/port/posix_sema.c"
17924 sematype
="named POSIX"
17926 if test x
"$USE_UNNAMED_POSIX_SEMAPHORES" = x
"1" ; then
17928 $as_echo "#define USE_UNNAMED_POSIX_SEMAPHORES 1" >>confdefs.h
17930 SEMA_IMPLEMENTATION
="src/backend/port/posix_sema.c"
17931 sematype
="unnamed POSIX"
17934 $as_echo "#define USE_SYSV_SEMAPHORES 1" >>confdefs.h
17936 SEMA_IMPLEMENTATION
="src/backend/port/sysv_sema.c"
17937 sematype
="System V"
17940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sematype" >&5
17941 $as_echo "$sematype" >&6; }
17944 $as_echo "#define USE_WIN32_SEMAPHORES 1" >>confdefs.h
17946 SEMA_IMPLEMENTATION
="src/backend/port/win32_sema.c"
17950 # Select shared-memory implementation type.
17951 if test "$PORTNAME" != "win32"; then
17953 $as_echo "#define USE_SYSV_SHARED_MEMORY 1" >>confdefs.h
17955 SHMEM_IMPLEMENTATION
="src/backend/port/sysv_shmem.c"
17958 $as_echo "#define USE_WIN32_SHARED_MEMORY 1" >>confdefs.h
17960 SHMEM_IMPLEMENTATION
="src/backend/port/win32_shmem.c"
17963 # Select random number source. If a TLS library is used then it will be the
17964 # first choice, else the native platform sources (Windows API or /dev/urandom)
17966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which random number source to use" >&5
17967 $as_echo_n "checking which random number source to use... " >&6; }
17968 if test x
"$with_ssl" = x
"openssl" ; then
17969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenSSL" >&5
17970 $as_echo "OpenSSL" >&6; }
17971 elif test x
"$PORTNAME" = x
"win32" ; then
17972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows native" >&5
17973 $as_echo "Windows native" >&6; }
17974 elif test x
"$cross_compiling" = x
"yes"; then
17975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming /dev/urandom" >&5
17976 $as_echo "assuming /dev/urandom" >&6; }
17978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /dev/urandom" >&5
17979 $as_echo "/dev/urandom" >&6; }
17980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/urandom" >&5
17981 $as_echo_n "checking for /dev/urandom... " >&6; }
17982 if ${ac_cv_file__dev_urandom+:} false
; then :
17983 $as_echo_n "(cached) " >&6
17985 test "$cross_compiling" = yes &&
17986 as_fn_error $?
"cannot check for file existence when cross compiling" "$LINENO" 5
17987 if test -r "/dev/urandom"; then
17988 ac_cv_file__dev_urandom
=yes
17990 ac_cv_file__dev_urandom
=no
17993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_urandom" >&5
17994 $as_echo "$ac_cv_file__dev_urandom" >&6; }
17995 if test "x$ac_cv_file__dev_urandom" = xyes
; then :
18000 if test x
"$ac_cv_file__dev_urandom" = x
"no" ; then
18002 no source of strong random numbers was found
18003 PostgreSQL can use OpenSSL, native Windows API or /dev/urandom as a source of random numbers." "$LINENO" 5
18007 # If not set in template file, set bytes to use libc memset()
18008 if test x
"$MEMSET_LOOP_LIMIT" = x
"" ; then
18009 MEMSET_LOOP_LIMIT
=1024
18012 cat >>confdefs.h
<<_ACEOF
18013 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
18018 if test "$enable_nls" = yes ; then
18020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind_textdomain_codeset" >&5
18021 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
18022 if ${ac_cv_search_bind_textdomain_codeset+:} false
; then :
18023 $as_echo_n "(cached) " >&6
18025 ac_func_search_save_LIBS
=$LIBS
18026 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18027 /* end confdefs.h. */
18029 /* Override any GCC internal prototype to avoid an error.
18030 Use char because int might match the return type of a GCC
18031 builtin and then its argument prototype would still apply. */
18035 char bind_textdomain_codeset ();
18039 return bind_textdomain_codeset ();
18044 for ac_lib
in '' intl
; do
18045 if test -z "$ac_lib"; then
18046 ac_res
="none required"
18049 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
18051 if ac_fn_c_try_link
"$LINENO"; then :
18052 ac_cv_search_bind_textdomain_codeset
=$ac_res
18054 rm -f core conftest.err conftest.
$ac_objext \
18056 if ${ac_cv_search_bind_textdomain_codeset+:} false
; then :
18060 if ${ac_cv_search_bind_textdomain_codeset+:} false
; then :
18063 ac_cv_search_bind_textdomain_codeset
=no
18065 rm conftest.
$ac_ext
18066 LIBS
=$ac_func_search_save_LIBS
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind_textdomain_codeset" >&5
18069 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
18070 ac_res
=$ac_cv_search_bind_textdomain_codeset
18071 if test "$ac_res" != no
; then :
18072 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
18075 as_fn_error $?
"a gettext implementation is required for NLS" "$LINENO" 5
18078 ac_fn_c_check_header_mongrel
"$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
18079 if test "x$ac_cv_header_libintl_h" = xyes
; then :
18082 as_fn_error $?
"header file <libintl.h> is required for NLS" "$LINENO" 5
18086 if test -z "$MSGFMT"; then
18087 for ac_prog
in msgfmt
18089 # Extract the first word of "$ac_prog", so it can be a program name with args.
18090 set dummy
$ac_prog; ac_word
=$2
18091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18092 $as_echo_n "checking for $ac_word... " >&6; }
18093 if ${ac_cv_path_MSGFMT+:} false
; then :
18094 $as_echo_n "(cached) " >&6
18098 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
18101 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18102 for as_dir
in $PATH
18105 test -z "$as_dir" && as_dir
=.
18106 for ac_exec_ext
in '' $ac_executable_extensions; do
18107 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18108 ac_cv_path_MSGFMT
="$as_dir/$ac_word$ac_exec_ext"
18109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18119 MSGFMT
=$ac_cv_path_MSGFMT
18120 if test -n "$MSGFMT"; then
18121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18122 $as_echo "$MSGFMT" >&6; }
18124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18125 $as_echo "no" >&6; }
18129 test -n "$MSGFMT" && break
18133 # Report the value of MSGFMT in configure's output in all cases.
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSGFMT" >&5
18135 $as_echo_n "checking for MSGFMT... " >&6; }
18136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18137 $as_echo "$MSGFMT" >&6; }
18140 if test -z "$MSGFMT"; then
18141 as_fn_error $?
"msgfmt is required for NLS" "$LINENO" 5
18143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msgfmt flags" >&5
18144 $as_echo_n "checking for msgfmt flags... " >&6; }
18145 if ${pgac_cv_msgfmt_flags+:} false
; then :
18146 $as_echo_n "(cached) " >&6
18148 if test x
"$MSGFMT" != x
"" && "$MSGFMT" --version 2>&1 |
grep "GNU" >/dev
/null
; then
18149 pgac_cv_msgfmt_flags
=-c
18152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_msgfmt_flags" >&5
18153 $as_echo "$pgac_cv_msgfmt_flags" >&6; }
18154 MSGFMT_FLAGS
=$pgac_cv_msgfmt_flags
18156 if test -z "$MSGMERGE"; then
18157 for ac_prog
in msgmerge
18159 # Extract the first word of "$ac_prog", so it can be a program name with args.
18160 set dummy
$ac_prog; ac_word
=$2
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18162 $as_echo_n "checking for $ac_word... " >&6; }
18163 if ${ac_cv_path_MSGMERGE+:} false
; then :
18164 $as_echo_n "(cached) " >&6
18168 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
18171 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18172 for as_dir
in $PATH
18175 test -z "$as_dir" && as_dir
=.
18176 for ac_exec_ext
in '' $ac_executable_extensions; do
18177 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18178 ac_cv_path_MSGMERGE
="$as_dir/$ac_word$ac_exec_ext"
18179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18189 MSGMERGE
=$ac_cv_path_MSGMERGE
18190 if test -n "$MSGMERGE"; then
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
18192 $as_echo "$MSGMERGE" >&6; }
18194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18195 $as_echo "no" >&6; }
18199 test -n "$MSGMERGE" && break
18203 # Report the value of MSGMERGE in configure's output in all cases.
18204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSGMERGE" >&5
18205 $as_echo_n "checking for MSGMERGE... " >&6; }
18206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
18207 $as_echo "$MSGMERGE" >&6; }
18210 if test -z "$XGETTEXT"; then
18211 for ac_prog
in xgettext
18213 # Extract the first word of "$ac_prog", so it can be a program name with args.
18214 set dummy
$ac_prog; ac_word
=$2
18215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18216 $as_echo_n "checking for $ac_word... " >&6; }
18217 if ${ac_cv_path_XGETTEXT+:} false
; then :
18218 $as_echo_n "(cached) " >&6
18222 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
18225 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18226 for as_dir
in $PATH
18229 test -z "$as_dir" && as_dir
=.
18230 for ac_exec_ext
in '' $ac_executable_extensions; do
18231 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18232 ac_cv_path_XGETTEXT
="$as_dir/$ac_word$ac_exec_ext"
18233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18243 XGETTEXT
=$ac_cv_path_XGETTEXT
18244 if test -n "$XGETTEXT"; then
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
18246 $as_echo "$XGETTEXT" >&6; }
18248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18249 $as_echo "no" >&6; }
18253 test -n "$XGETTEXT" && break
18257 # Report the value of XGETTEXT in configure's output in all cases.
18258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGETTEXT" >&5
18259 $as_echo_n "checking for XGETTEXT... " >&6; }
18260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
18261 $as_echo "$XGETTEXT" >&6; }
18267 # Check for Tcl configuration script tclConfig.sh
18268 if test "$with_tcl" = yes; then
18269 if test -z "$TCLSH"; then
18270 for ac_prog
in tclsh tcl tclsh8.6 tclsh86 tclsh8.5 tclsh85 tclsh8.4 tclsh84
18272 # Extract the first word of "$ac_prog", so it can be a program name with args.
18273 set dummy
$ac_prog; ac_word
=$2
18274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18275 $as_echo_n "checking for $ac_word... " >&6; }
18276 if ${ac_cv_path_TCLSH+:} false
; then :
18277 $as_echo_n "(cached) " >&6
18281 ac_cv_path_TCLSH
="$TCLSH" # Let the user override the test with a path.
18284 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18285 for as_dir
in $PATH
18288 test -z "$as_dir" && as_dir
=.
18289 for ac_exec_ext
in '' $ac_executable_extensions; do
18290 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18291 ac_cv_path_TCLSH
="$as_dir/$ac_word$ac_exec_ext"
18292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18302 TCLSH
=$ac_cv_path_TCLSH
18303 if test -n "$TCLSH"; then
18304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
18305 $as_echo "$TCLSH" >&6; }
18307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18308 $as_echo "no" >&6; }
18312 test -n "$TCLSH" && break
18316 # Report the value of TCLSH in configure's output in all cases.
18317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCLSH" >&5
18318 $as_echo_n "checking for TCLSH... " >&6; }
18319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
18320 $as_echo "$TCLSH" >&6; }
18323 if test x
"$TCLSH" = x
""; then
18324 as_fn_error $?
"Tcl shell not found" "$LINENO" 5
18327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclConfig.sh" >&5
18328 $as_echo_n "checking for tclConfig.sh... " >&6; }
18329 # Let user override test
18330 if test -z "$TCL_CONFIG_SH"; then
18331 pgac_test_dirs
="$with_tclconfig"
18333 set X
$pgac_test_dirs; shift
18334 if test $# -eq 0; then
18335 test -z "$TCLSH" && as_fn_error $?
"unable to locate tclConfig.sh because no Tcl shell was found" "$LINENO" 5
18336 pgac_test_dirs
=`echo 'puts $auto_path' | $TCLSH`
18337 # On newer macOS, $auto_path frequently doesn't include the place
18338 # where tclConfig.sh actually lives. Append that to the end, so as not
18339 # to break cases where a non-default Tcl installation is being used.
18340 if test -d "$PG_SYSROOT/System/Library/Frameworks/Tcl.framework" ; then
18341 pgac_test_dirs
="$pgac_test_dirs $PG_SYSROOT/System/Library/Frameworks/Tcl.framework"
18343 set X
$pgac_test_dirs; shift
18347 if test -r "$pgac_dir/tclConfig.sh"; then
18348 TCL_CONFIG_SH
=$pgac_dir/tclConfig.sh
18354 if test -z "$TCL_CONFIG_SH"; then
18355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18356 $as_echo "no" >&6; }
18357 as_fn_error $?
"file 'tclConfig.sh' is required for Tcl" "$LINENO" 5
18359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCL_CONFIG_SH" >&5
18360 $as_echo "$TCL_CONFIG_SH" >&6; }
18366 eval TCL_INCLUDE_SPEC
=\"$TCL_INCLUDE_SPEC\"
18367 eval TCL_LIBS
=\"$TCL_LIBS\"
18368 eval TCL_LIB_SPEC
=\"$TCL_LIB_SPEC\"
18369 eval TCL_SHARED_BUILD
=\"$TCL_SHARED_BUILD\"
18371 if test "$TCL_SHARED_BUILD" != 1; then
18372 as_fn_error $?
"cannot build PL/Tcl because Tcl is not a shared library
18373 Use --without-tcl to disable building PL/Tcl." "$LINENO" 5
18375 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
18376 ac_save_CPPFLAGS
=$CPPFLAGS
18377 CPPFLAGS
="$TCL_INCLUDE_SPEC $CPPFLAGS"
18378 ac_fn_c_check_header_mongrel
"$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
18379 if test "x$ac_cv_header_tcl_h" = xyes
; then :
18382 as_fn_error $?
"header file <tcl.h> is required for Tcl" "$LINENO" 5
18386 CPPFLAGS
=$ac_save_CPPFLAGS
18389 # check for <perl.h>
18390 if test "$with_perl" = yes; then
18391 ac_save_CPPFLAGS
=$CPPFLAGS
18392 CPPFLAGS
="$CPPFLAGS $perl_includespec"
18393 ac_fn_c_check_header_compile
"$LINENO" "perl.h" "ac_cv_header_perl_h" "#include <EXTERN.h>
18395 if test "x$ac_cv_header_perl_h" = xyes
; then :
18398 as_fn_error $?
"header file <perl.h> is required for Perl" "$LINENO" 5
18402 # While we're at it, check that we can link to libperl.
18403 # On most platforms, if perl.h is there then libperl.so will be too, but at
18404 # this writing Debian packages them separately. There is no known reason to
18405 # waste cycles on separate probes for the Tcl or Python libraries, though.
18406 # On some Red Hat platforms, the link attempt can fail if we don't use
18407 # CFLAGS_SL while building the test program.
18408 ac_save_CFLAGS
=$CFLAGS
18409 CFLAGS
="$CFLAGS $CFLAGS_SL"
18410 pgac_save_LIBS
=$LIBS
18411 LIBS
="$perl_embed_ldflags"
18412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libperl" >&5
18413 $as_echo_n "checking for libperl... " >&6; }
18414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18415 /* end confdefs.h. */
18417 #include <EXTERN.h>
18428 if ac_fn_c_try_link
"$LINENO"; then :
18429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18430 $as_echo "yes" >&6; }
18432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18433 $as_echo "no" >&6; }
18434 as_fn_error $?
"libperl library is required for Perl" "$LINENO" 5
18436 rm -f core conftest.err conftest.
$ac_objext \
18437 conftest
$ac_exeext conftest.
$ac_ext
18438 LIBS
=$pgac_save_LIBS
18439 CFLAGS
=$ac_save_CFLAGS
18440 CPPFLAGS
=$ac_save_CPPFLAGS
18443 # check for <Python.h>
18444 if test "$with_python" = yes; then
18445 ac_save_CPPFLAGS
=$CPPFLAGS
18446 CPPFLAGS
="$python_includespec $CPPFLAGS"
18447 ac_fn_c_check_header_mongrel
"$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
18448 if test "x$ac_cv_header_Python_h" = xyes
; then :
18451 as_fn_error $?
"header file <Python.h> is required for Python" "$LINENO" 5
18455 CPPFLAGS
=$ac_save_CPPFLAGS
18459 # Check for documentation-building tools
18461 if test -z "$XMLLINT"; then
18462 for ac_prog
in xmllint
18464 # Extract the first word of "$ac_prog", so it can be a program name with args.
18465 set dummy
$ac_prog; ac_word
=$2
18466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18467 $as_echo_n "checking for $ac_word... " >&6; }
18468 if ${ac_cv_path_XMLLINT+:} false
; then :
18469 $as_echo_n "(cached) " >&6
18473 ac_cv_path_XMLLINT
="$XMLLINT" # Let the user override the test with a path.
18476 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18477 for as_dir
in $PATH
18480 test -z "$as_dir" && as_dir
=.
18481 for ac_exec_ext
in '' $ac_executable_extensions; do
18482 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18483 ac_cv_path_XMLLINT
="$as_dir/$ac_word$ac_exec_ext"
18484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18494 XMLLINT
=$ac_cv_path_XMLLINT
18495 if test -n "$XMLLINT"; then
18496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
18497 $as_echo "$XMLLINT" >&6; }
18499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18500 $as_echo "no" >&6; }
18504 test -n "$XMLLINT" && break
18508 # Report the value of XMLLINT in configure's output in all cases.
18509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMLLINT" >&5
18510 $as_echo_n "checking for XMLLINT... " >&6; }
18511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
18512 $as_echo "$XMLLINT" >&6; }
18515 if test -z "$XSLTPROC"; then
18516 for ac_prog
in xsltproc
18518 # Extract the first word of "$ac_prog", so it can be a program name with args.
18519 set dummy
$ac_prog; ac_word
=$2
18520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18521 $as_echo_n "checking for $ac_word... " >&6; }
18522 if ${ac_cv_path_XSLTPROC+:} false
; then :
18523 $as_echo_n "(cached) " >&6
18527 ac_cv_path_XSLTPROC
="$XSLTPROC" # Let the user override the test with a path.
18530 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18531 for as_dir
in $PATH
18534 test -z "$as_dir" && as_dir
=.
18535 for ac_exec_ext
in '' $ac_executable_extensions; do
18536 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18537 ac_cv_path_XSLTPROC
="$as_dir/$ac_word$ac_exec_ext"
18538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18548 XSLTPROC
=$ac_cv_path_XSLTPROC
18549 if test -n "$XSLTPROC"; then
18550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
18551 $as_echo "$XSLTPROC" >&6; }
18553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18554 $as_echo "no" >&6; }
18558 test -n "$XSLTPROC" && break
18562 # Report the value of XSLTPROC in configure's output in all cases.
18563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSLTPROC" >&5
18564 $as_echo_n "checking for XSLTPROC... " >&6; }
18565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
18566 $as_echo "$XSLTPROC" >&6; }
18569 if test -z "$FOP"; then
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_FOP+:} false
; then :
18577 $as_echo_n "(cached) " >&6
18581 ac_cv_path_FOP
="$FOP" # 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_FOP
="$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 FOP
=$ac_cv_path_FOP
18603 if test -n "$FOP"; then
18604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
18605 $as_echo "$FOP" >&6; }
18607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18608 $as_echo "no" >&6; }
18612 test -n "$FOP" && break
18616 # Report the value of FOP in configure's output in all cases.
18617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FOP" >&5
18618 $as_echo_n "checking for FOP... " >&6; }
18619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
18620 $as_echo "$FOP" >&6; }
18623 if test -z "$DBTOEPUB"; then
18624 for ac_prog
in dbtoepub
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_DBTOEPUB+:} false
; then :
18631 $as_echo_n "(cached) " >&6
18635 ac_cv_path_DBTOEPUB
="$DBTOEPUB" # 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_DBTOEPUB
="$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 DBTOEPUB
=$ac_cv_path_DBTOEPUB
18657 if test -n "$DBTOEPUB"; then
18658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBTOEPUB" >&5
18659 $as_echo "$DBTOEPUB" >&6; }
18661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18662 $as_echo "no" >&6; }
18666 test -n "$DBTOEPUB" && break
18670 # Report the value of DBTOEPUB in configure's output in all cases.
18671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBTOEPUB" >&5
18672 $as_echo_n "checking for DBTOEPUB... " >&6; }
18673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBTOEPUB" >&5
18674 $as_echo "$DBTOEPUB" >&6; }
18679 # Check for test tools
18681 if test "$enable_tap_tests" = yes; then
18682 # Make sure we know where prove is.
18683 if test -z "$PROVE"; then
18684 for ac_prog
in prove
18686 # Extract the first word of "$ac_prog", so it can be a program name with args.
18687 set dummy
$ac_prog; ac_word
=$2
18688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18689 $as_echo_n "checking for $ac_word... " >&6; }
18690 if ${ac_cv_path_PROVE+:} false
; then :
18691 $as_echo_n "(cached) " >&6
18695 ac_cv_path_PROVE
="$PROVE" # Let the user override the test with a path.
18698 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18699 for as_dir
in $PATH
18702 test -z "$as_dir" && as_dir
=.
18703 for ac_exec_ext
in '' $ac_executable_extensions; do
18704 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18705 ac_cv_path_PROVE
="$as_dir/$ac_word$ac_exec_ext"
18706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18716 PROVE
=$ac_cv_path_PROVE
18717 if test -n "$PROVE"; then
18718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROVE" >&5
18719 $as_echo "$PROVE" >&6; }
18721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18722 $as_echo "no" >&6; }
18726 test -n "$PROVE" && break
18730 # Report the value of PROVE in configure's output in all cases.
18731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PROVE" >&5
18732 $as_echo_n "checking for PROVE... " >&6; }
18733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROVE" >&5
18734 $as_echo "$PROVE" >&6; }
18737 if test -z "$PROVE"; then
18738 as_fn_error $?
"prove not found" "$LINENO" 5
18740 # Check for necessary Perl modules. You might think we should use
18741 # AX_PROG_PERL_MODULES here, but prove might be part of a different Perl
18742 # installation than perl, eg on MSys, so we have to check using prove.
18743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl modules required for TAP tests" >&5
18744 $as_echo_n "checking for Perl modules required for TAP tests... " >&6; }
18745 __CONFIG_HOST_OS__
=$host_os; export __CONFIG_HOST_OS__
18746 modulestderr
=`"$PROVE" "$srcdir/config/check_modules.pl" 2>&1 >/dev/null`
18747 if test $?
-eq 0; then
18748 # log the module version details, but don't show them interactively
18749 echo "$modulestderr" >&5
18750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18751 $as_echo "yes" >&6; }
18753 # on failure, though, show the results to the user
18754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $modulestderr" >&5
18755 $as_echo "$modulestderr" >&6; }
18756 as_fn_error $?
"Additional Perl modules are required to run TAP tests" "$LINENO" 5
18760 # If compiler will take -Wl,--as-needed (or various platform-specific
18761 # spellings thereof) then add that to LDFLAGS. This is much easier than
18762 # trying to filter LIBS to the minimum for each executable.
18763 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
18764 # libreadline; therefore we postpone testing it until we know what library
18765 # dependencies readline has. The test code will try to link with $LIBS.
18766 if test "$with_readline" = yes; then
18767 link_test_func
=readline
18769 link_test_func
=exit
18772 if test "$PORTNAME" = "darwin"; then
18773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,-dead_strip_dylibs, for LDFLAGS" >&5
18774 $as_echo_n "checking whether $CC supports -Wl,-dead_strip_dylibs, for LDFLAGS... " >&6; }
18775 if ${pgac_cv_prog_cc_LDFLAGS__Wl__dead_strip_dylibs+:} false
; then :
18776 $as_echo_n "(cached) " >&6
18778 pgac_save_LDFLAGS
=$LDFLAGS
18779 LDFLAGS
="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
18780 if test "$cross_compiling" = yes; then :
18781 pgac_cv_prog_cc_LDFLAGS__Wl__dead_strip_dylibs
="assuming no"
18783 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18784 /* end confdefs.h. */
18785 extern void $link_test_func (); void (*fptr) () = $link_test_func;
18794 if ac_fn_c_try_run
"$LINENO"; then :
18795 pgac_cv_prog_cc_LDFLAGS__Wl__dead_strip_dylibs
=yes
18797 pgac_cv_prog_cc_LDFLAGS__Wl__dead_strip_dylibs
=no
18799 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18800 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18803 LDFLAGS
="$pgac_save_LDFLAGS"
18805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_LDFLAGS__Wl__dead_strip_dylibs" >&5
18806 $as_echo "$pgac_cv_prog_cc_LDFLAGS__Wl__dead_strip_dylibs" >&6; }
18807 if test x
"$pgac_cv_prog_cc_LDFLAGS__Wl__dead_strip_dylibs" = x
"yes"; then
18808 LDFLAGS
="${LDFLAGS} -Wl,-dead_strip_dylibs"
18812 elif test "$PORTNAME" = "openbsd"; then
18813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,-Bdynamic, for LDFLAGS" >&5
18814 $as_echo_n "checking whether $CC supports -Wl,-Bdynamic, for LDFLAGS... " >&6; }
18815 if ${pgac_cv_prog_cc_LDFLAGS__Wl__Bdynamic+:} false
; then :
18816 $as_echo_n "(cached) " >&6
18818 pgac_save_LDFLAGS
=$LDFLAGS
18819 LDFLAGS
="$pgac_save_LDFLAGS -Wl,-Bdynamic"
18820 if test "$cross_compiling" = yes; then :
18821 pgac_cv_prog_cc_LDFLAGS__Wl__Bdynamic
="assuming no"
18823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18824 /* end confdefs.h. */
18825 extern void $link_test_func (); void (*fptr) () = $link_test_func;
18834 if ac_fn_c_try_run
"$LINENO"; then :
18835 pgac_cv_prog_cc_LDFLAGS__Wl__Bdynamic
=yes
18837 pgac_cv_prog_cc_LDFLAGS__Wl__Bdynamic
=no
18839 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18840 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18843 LDFLAGS
="$pgac_save_LDFLAGS"
18845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_LDFLAGS__Wl__Bdynamic" >&5
18846 $as_echo "$pgac_cv_prog_cc_LDFLAGS__Wl__Bdynamic" >&6; }
18847 if test x
"$pgac_cv_prog_cc_LDFLAGS__Wl__Bdynamic" = x
"yes"; then
18848 LDFLAGS
="${LDFLAGS} -Wl,-Bdynamic"
18853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,--as-needed, for LDFLAGS" >&5
18854 $as_echo_n "checking whether $CC supports -Wl,--as-needed, for LDFLAGS... " >&6; }
18855 if ${pgac_cv_prog_cc_LDFLAGS__Wl___as_needed+:} false
; then :
18856 $as_echo_n "(cached) " >&6
18858 pgac_save_LDFLAGS
=$LDFLAGS
18859 LDFLAGS
="$pgac_save_LDFLAGS -Wl,--as-needed"
18860 if test "$cross_compiling" = yes; then :
18861 pgac_cv_prog_cc_LDFLAGS__Wl___as_needed
="assuming no"
18863 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18864 /* end confdefs.h. */
18865 extern void $link_test_func (); void (*fptr) () = $link_test_func;
18874 if ac_fn_c_try_run
"$LINENO"; then :
18875 pgac_cv_prog_cc_LDFLAGS__Wl___as_needed
=yes
18877 pgac_cv_prog_cc_LDFLAGS__Wl___as_needed
=no
18879 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18880 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18883 LDFLAGS
="$pgac_save_LDFLAGS"
18885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_LDFLAGS__Wl___as_needed" >&5
18886 $as_echo "$pgac_cv_prog_cc_LDFLAGS__Wl___as_needed" >&6; }
18887 if test x
"$pgac_cv_prog_cc_LDFLAGS__Wl___as_needed" = x
"yes"; then
18888 LDFLAGS
="${LDFLAGS} -Wl,--as-needed"
18894 # For linkers that understand --export-dynamic, add that to the LDFLAGS_EX_BE
18895 # (backend specific ldflags). One some platforms this will always fail (e.g.,
18896 # windows), but on others it depends on the choice of linker (e.g., solaris).
18897 # macOS uses -export_dynamic instead. (On macOS, the option is only
18898 # needed when also using -flto, but we add it anyway since it's
18900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,--export-dynamic, for LDFLAGS_EX_BE" >&5
18901 $as_echo_n "checking whether $CC supports -Wl,--export-dynamic, for LDFLAGS_EX_BE... " >&6; }
18902 if ${pgac_cv_prog_cc_LDFLAGS_EX_BE__Wl___export_dynamic+:} false
; then :
18903 $as_echo_n "(cached) " >&6
18905 pgac_save_LDFLAGS
=$LDFLAGS
18906 LDFLAGS
="$pgac_save_LDFLAGS -Wl,--export-dynamic"
18907 if test "$cross_compiling" = yes; then :
18908 pgac_cv_prog_cc_LDFLAGS_EX_BE__Wl___export_dynamic
="assuming no"
18910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18911 /* end confdefs.h. */
18912 extern void $link_test_func (); void (*fptr) () = $link_test_func;
18921 if ac_fn_c_try_run
"$LINENO"; then :
18922 pgac_cv_prog_cc_LDFLAGS_EX_BE__Wl___export_dynamic
=yes
18924 pgac_cv_prog_cc_LDFLAGS_EX_BE__Wl___export_dynamic
=no
18926 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18927 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18930 LDFLAGS
="$pgac_save_LDFLAGS"
18932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_LDFLAGS_EX_BE__Wl___export_dynamic" >&5
18933 $as_echo "$pgac_cv_prog_cc_LDFLAGS_EX_BE__Wl___export_dynamic" >&6; }
18934 if test x
"$pgac_cv_prog_cc_LDFLAGS_EX_BE__Wl___export_dynamic" = x
"yes"; then
18935 LDFLAGS_EX_BE
="${LDFLAGS_EX_BE} -Wl,--export-dynamic"
18938 if test x
"$LDFLAGS_EX_BE" = x
""; then
18939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,-export_dynamic, for LDFLAGS_EX_BE" >&5
18940 $as_echo_n "checking whether $CC supports -Wl,-export_dynamic, for LDFLAGS_EX_BE... " >&6; }
18941 if ${pgac_cv_prog_cc_LDFLAGS_EX_BE__Wl__export_dynamic+:} false
; then :
18942 $as_echo_n "(cached) " >&6
18944 pgac_save_LDFLAGS
=$LDFLAGS
18945 LDFLAGS
="$pgac_save_LDFLAGS -Wl,-export_dynamic"
18946 if test "$cross_compiling" = yes; then :
18947 pgac_cv_prog_cc_LDFLAGS_EX_BE__Wl__export_dynamic
="assuming no"
18949 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18950 /* end confdefs.h. */
18951 extern void $link_test_func (); void (*fptr) () = $link_test_func;
18960 if ac_fn_c_try_run
"$LINENO"; then :
18961 pgac_cv_prog_cc_LDFLAGS_EX_BE__Wl__export_dynamic
=yes
18963 pgac_cv_prog_cc_LDFLAGS_EX_BE__Wl__export_dynamic
=no
18965 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18966 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18969 LDFLAGS
="$pgac_save_LDFLAGS"
18971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_LDFLAGS_EX_BE__Wl__export_dynamic" >&5
18972 $as_echo "$pgac_cv_prog_cc_LDFLAGS_EX_BE__Wl__export_dynamic" >&6; }
18973 if test x
"$pgac_cv_prog_cc_LDFLAGS_EX_BE__Wl__export_dynamic" = x
"yes"; then
18974 LDFLAGS_EX_BE
="${LDFLAGS_EX_BE} -Wl,-export_dynamic"
18980 # Create compiler version string
18981 if test x
"$GCC" = x
"yes" ; then
18982 cc_string
=`${CC} --version | sed q`
18983 case $cc_string in [A-Za-z
]*) ;; *) cc_string
="GCC $cc_string";; esac
18984 elif test x
"$SUN_STUDIO_CC" = x
"yes" ; then
18985 cc_string
=`${CC} -V 2>&1 | sed q`
18991 cat >>confdefs.h
<<_ACEOF
18992 #define PG_VERSION_STR "PostgreSQL $PG_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
18996 # Supply a numeric version string for use by 3rd party add-ons
18997 # awk -F is a regex on some platforms, and not on others, so make "." a tab
18998 PG_VERSION_NUM
="`echo $PG_MAJORVERSION $PG_MINORVERSION |
18999 $AWK '{printf "%d
%04d
", $1, $2}'`"
19001 cat >>confdefs.h
<<_ACEOF
19002 #define PG_VERSION_NUM $PG_VERSION_NUM
19007 # If we are inserting PG_SYSROOT into CPPFLAGS, do so symbolically not
19008 # literally, so that it's possible to override it at build time using
19009 # a command like "make ... PG_SYSROOT=path". This has to be done after
19010 # we've finished all configure checks that depend on CPPFLAGS.
19011 # The same for LDFLAGS, too.
19012 if test x
"$PG_SYSROOT" != x
; then
19013 CPPFLAGS
=`echo "$CPPFLAGS" | sed -e "s| $PG_SYSROOT | \\\$(PG_SYSROOT) |"`
19014 LDFLAGS
=`echo "$LDFLAGS" | sed -e "s| $PG_SYSROOT | \\\$(PG_SYSROOT) |"`
19019 # Begin output steps
19021 { $as_echo "$as_me:${as_lineno-$LINENO}: using compiler=$cc_string" >&5
19022 $as_echo "$as_me: using compiler=$cc_string" >&6;}
19023 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS=$CFLAGS" >&5
19024 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
19025 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS=$CPPFLAGS" >&5
19026 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
19027 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS=$LDFLAGS" >&5
19028 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
19029 # Currently only used when LLVM is used
19030 if test "$with_llvm" = yes ; then
19031 { $as_echo "$as_me:${as_lineno-$LINENO}: using CXX=$CXX" >&5
19032 $as_echo "$as_me: using CXX=$CXX" >&6;}
19033 { $as_echo "$as_me:${as_lineno-$LINENO}: using CXXFLAGS=$CXXFLAGS" >&5
19034 $as_echo "$as_me: using CXXFLAGS=$CXXFLAGS" >&6;}
19035 { $as_echo "$as_me:${as_lineno-$LINENO}: using CLANG=$CLANG" >&5
19036 $as_echo "$as_me: using CLANG=$CLANG" >&6;}
19037 { $as_echo "$as_me:${as_lineno-$LINENO}: using BITCODE_CFLAGS=$BITCODE_CFLAGS" >&5
19038 $as_echo "$as_me: using BITCODE_CFLAGS=$BITCODE_CFLAGS" >&6;}
19039 { $as_echo "$as_me:${as_lineno-$LINENO}: using BITCODE_CXXFLAGS=$BITCODE_CXXFLAGS" >&5
19040 $as_echo "$as_me: using BITCODE_CXXFLAGS=$BITCODE_CXXFLAGS" >&6;}
19043 # prepare build tree if outside source tree
19044 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
19045 # Note 2: /bin/pwd might be better than shell's built-in at getting
19046 # a symlink-free name.
19047 if ( test "$srcdir" -ef .
) >/dev
/null
2>&1 ||
test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
19051 if test "$no_create" != yes; then
19052 $as_echo_n "preparing build tree... " >&6
19053 pgac_abs_top_srcdir
=`cd "$srcdir" && pwd`
19054 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
19055 || as_fn_error $?
"failed" "$LINENO" 5
19056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19057 $as_echo "done" >&6; }
19063 ac_config_files
="$ac_config_files GNUmakefile src/Makefile.global"
19066 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}"
19069 if test "$PORTNAME" = "win32"; then
19070 ac_config_commands
="$ac_config_commands check_win32_symlinks"
19074 ac_config_headers
="$ac_config_headers src/include/pg_config.h"
19077 ac_config_headers
="$ac_config_headers src/include/pg_config_ext.h"
19080 ac_config_headers
="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
19083 cat >confcache
<<\_ACEOF
19084 # This file is a shell script that caches the results of configure
19085 # tests run on this system so they can be shared between configure
19086 # scripts and configure runs, see configure's option --config-cache.
19087 # It is not useful on other systems. If it contains results you don't
19088 # want to keep, you may remove or edit it.
19090 # config.status only pays attention to the cache file if you give it
19091 # the --recheck option to rerun configure.
19093 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19094 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19095 # following values.
19099 # The following way of writing the cache mishandles newlines in values,
19100 # but we know of no workaround that is simple, portable, and efficient.
19101 # So, we kill variables containing newlines.
19102 # Ultrix sh set writes to stderr and can't be redirected directly,
19103 # and sets the high bit in the cache file unless we assign to the vars.
19105 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19106 eval ac_val
=\$
$ac_var
19110 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19111 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19114 _ | IFS | as_nl
) ;; #(
19115 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
19116 *) { eval $ac_var=; unset $ac_var;} ;;
19122 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19123 *${as_nl}ac_space
=\
*)
19124 # `set' does not quote correctly, so add quotes: double-quote
19125 # substitution turns \\\\ into \\, and sed turns \\ into \.
19128 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19131 # `set' quotes correctly as required by POSIX, so do not add quotes.
19132 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19141 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19143 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19145 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
19146 if test -w "$cache_file"; then
19147 if test "x$cache_file" != "x/dev/null"; then
19148 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19149 $as_echo "$as_me: updating cache $cache_file" >&6;}
19150 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
19151 cat confcache
>"$cache_file"
19153 case $cache_file in #(
19155 mv -f confcache
"$cache_file"$$
&&
19156 mv -f "$cache_file"$$
"$cache_file" ;; #(
19158 mv -f confcache
"$cache_file" ;;
19163 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19164 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19169 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
19170 # Let make expand exec_prefix.
19171 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19173 DEFS
=-DHAVE_CONFIG_H
19178 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
19179 # 1. Remove the extension, and $U if already installed.
19180 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
19181 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
19182 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19183 # will be set to the directory where LIBOBJS objects are built.
19184 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19185 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
19187 LIBOBJS
=$ac_libobjs
19189 LTLIBOBJS
=$ac_ltlibobjs
19194 : "${CONFIG_STATUS=./config.status}"
19196 ac_clean_files_save
=$ac_clean_files
19197 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
19198 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19199 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19201 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19203 # Generated by $as_me.
19204 # Run this file to recreate the current configuration.
19205 # Compiler output produced by configure, useful for debugging
19206 # configure, is in config.log if it exists.
19209 ac_cs_recheck=false
19212 SHELL=\${CONFIG_SHELL-$SHELL}
19215 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
19216 ## -------------------- ##
19217 ## M4sh Initialization. ##
19218 ## -------------------- ##
19220 # Be more Bourne compatible
19221 DUALCASE
=1; export DUALCASE
# for MKS sh
19222 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
19225 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19226 # is contrary to our usage. Disable this feature.
19227 alias -g '${1+"$@"}'='"$@"'
19228 setopt NO_GLOB_SUBST
19230 case `(set -o) 2>/dev/null` in #(
19242 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19243 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19244 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19245 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19246 # Prefer a ksh shell builtin over an external printf program on Solaris,
19247 # but without wasting forks for bash or zsh.
19248 if test -z "$BASH_VERSION$ZSH_VERSION" \
19249 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19250 as_echo='print
-r --'
19251 as_echo_n='print
-rn --'
19252 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19253 as_echo='printf %s
\n'
19254 as_echo_n='printf %s
'
19256 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19257 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
19258 as_echo_n='/usr
/ucb
/echo -n'
19260 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19261 as_echo_n_body='eval
19265 expr "X$arg" : "X\\(.*\\)$as_nl";
19266 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19268 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
19270 export as_echo_n_body
19271 as_echo_n='sh
-c $as_echo_n_body as_echo
'
19273 export as_echo_body
19274 as_echo='sh
-c $as_echo_body as_echo
'
19277 # The user is always right.
19278 if test "${PATH_SEPARATOR+set}" != set; then
19280 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19281 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19288 # We need space, tab and new line, in precisely that order. Quoting is
19289 # there to prevent editors from complaining about space-tab.
19290 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19291 # splitting by setting IFS to empty value.)
19294 # Find who we are. Look in the path if we contain no directory separator.
19297 *[\\/]* ) as_myself=$0 ;;
19298 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19299 for as_dir in $PATH
19302 test -z "$as_dir" && as_dir=.
19303 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19309 # We did not find ourselves, most probably we were run as `sh COMMAND'
19310 # in which case we are not to be found in the path.
19311 if test "x$as_myself" = x
; then
19314 if test ! -f "$as_myself"; then
19315 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19319 # Unset variables that we do not need and which cause bugs (e.g. in
19320 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19321 # suppresses any "Segmentation fault" message there. '((' could
19322 # trigger a bug in pdksh 5.2.14.
19323 for as_var
in BASH_ENV ENV MAIL MAILPATH
19324 do eval test x\
${$as_var+set} = xset \
19325 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
19338 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
19341 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19342 # ----------------------------------------
19343 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19344 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19345 # script with STATUS, using 1 if that was 0.
19348 as_status
=$1; test $as_status -eq 0 && as_status
=1
19350 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
19351 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19353 $as_echo "$as_me: error: $2" >&2
19354 as_fn_exit
$as_status
19358 # as_fn_set_status STATUS
19359 # -----------------------
19360 # Set $? to STATUS, without forking.
19361 as_fn_set_status
()
19364 } # as_fn_set_status
19366 # as_fn_exit STATUS
19367 # -----------------
19368 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19372 as_fn_set_status
$1
19378 # Portably unset VAR.
19381 { eval $1=; unset $1;}
19383 as_unset
=as_fn_unset
19384 # as_fn_append VAR VALUE
19385 # ----------------------
19386 # Append the text in VALUE to the end of the definition contained in VAR. Take
19387 # advantage of any shell optimizations that allow amortized linear growth over
19388 # repeated appends, instead of the typical quadratic growth present in naive
19390 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
19391 eval 'as_fn_append ()
19402 # as_fn_arith ARG...
19403 # ------------------
19404 # Perform arithmetic evaluation on the ARGs, and store the result in the
19405 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19406 # must be portable across $(()) and expr.
19407 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
19408 eval 'as_fn_arith ()
19415 as_val
=`expr "$@" || test $? -eq 1`
19420 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
19421 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
19427 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19428 as_basename
=basename
19433 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
19439 as_me
=`$as_basename -- "$0" ||
19440 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19441 X"$0" : 'X\(//\)$' \| \
19442 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19444 sed '/^.*\/\([^/][^/]*\)\/*$/{
19458 # Avoid depending upon Character Ranges.
19459 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
19460 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19461 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
19462 as_cr_digits
='0123456789'
19463 as_cr_alnum
=$as_cr_Letters$as_cr_digits
19465 ECHO_C
= ECHO_N
= ECHO_T
=
19466 case `echo -n x` in #(((((
19468 case `echo 'xy\c'` in
19469 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
19471 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
19478 rm -f conf$$ conf$$.exe conf$$.
file
19479 if test -d conf$$.dir
; then
19480 rm -f conf$$.dir
/conf$$.
file
19483 mkdir conf$$.dir
2>/dev
/null
19485 if (echo >conf$$.
file) 2>/dev
/null
; then
19486 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
19488 # ... but there are two gotchas:
19489 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19490 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19491 # In both cases, we have to default to `cp -pR'.
19492 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
19494 elif ln conf$$.
file conf$$
2>/dev
/null
; then
19502 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
19503 rmdir conf$$.dir
2>/dev
/null
19508 # Create "$as_dir" as a directory, including parents if necessary.
19513 -*) as_dir
=.
/$as_dir;;
19515 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
19519 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19520 *) as_qdir
=$as_dir;;
19522 as_dirs
="'$as_qdir' $as_dirs"
19523 as_dir
=`$as_dirname -- "$as_dir" ||
19524 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19525 X"$as_dir" : 'X\(//\)[^/]' \| \
19526 X"$as_dir" : 'X\(//\)$' \| \
19527 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19528 $as_echo X"$as_dir" |
19529 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19533 /^X\(\/\/\)[^/].*/{
19546 test -d "$as_dir" && break
19548 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
19549 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
19553 if mkdir
-p .
2>/dev
/null
; then
19554 as_mkdir_p
='mkdir -p "$as_dir"'
19556 test -d .
/-p && rmdir .
/-p
19561 # as_fn_executable_p FILE
19562 # -----------------------
19563 # Test if FILE is an executable regular file.
19564 as_fn_executable_p
()
19566 test -f "$1" && test -x "$1"
19567 } # as_fn_executable_p
19568 as_test_x
='test -x'
19569 as_executable_p
=as_fn_executable_p
19571 # Sed expression to map a string onto a valid CPP name.
19572 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19574 # Sed expression to map a string onto a valid variable name.
19575 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19579 ## ----------------------------------- ##
19580 ## Main body of $CONFIG_STATUS script. ##
19581 ## ----------------------------------- ##
19583 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
19585 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19586 # Save the log message, to keep $0 and so on meaningful, and to
19587 # report actual input values of CONFIG_FILES etc. instead of their
19588 # values after options handling.
19590 This file was extended by PostgreSQL $as_me 18devel, which was
19591 generated by GNU Autoconf 2.69. Invocation command line was
19593 CONFIG_FILES = $CONFIG_FILES
19594 CONFIG_HEADERS = $CONFIG_HEADERS
19595 CONFIG_LINKS = $CONFIG_LINKS
19596 CONFIG_COMMANDS = $CONFIG_COMMANDS
19599 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19604 case $ac_config_files in *"
19605 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
19608 case $ac_config_headers in *"
19609 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
19613 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19614 # Files that config.status was made for.
19615 config_files="$ac_config_files"
19616 config_headers="$ac_config_headers"
19617 config_links="$ac_config_links"
19618 config_commands="$ac_config_commands"
19622 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19624 \`$as_me' instantiates files and other configuration actions
19625 from templates according to the current configuration. Unless the files
19626 and actions are specified as TAGs, all are instantiated by default.
19628 Usage: $0 [OPTION]... [TAG]...
19630 -h, --help print this help, then exit
19631 -V, --version print version number and configuration settings, then exit
19632 --config print configuration, then exit
19633 -q, --quiet, --silent
19634 do not print progress messages
19635 -d, --debug don't remove temporary files
19636 --recheck update $as_me by reconfiguring in the same conditions
19637 --file=FILE[:TEMPLATE]
19638 instantiate the configuration file FILE
19639 --header=FILE[:TEMPLATE]
19640 instantiate the configuration header FILE
19642 Configuration files:
19645 Configuration headers:
19648 Configuration links:
19651 Configuration commands:
19654 Report bugs to <pgsql-bugs@lists.postgresql.org>.
19655 PostgreSQL home page: <https://www.postgresql.org/>."
19658 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19659 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19661 PostgreSQL config.status 18devel
19662 configured by $0, generated by GNU Autoconf 2.69,
19663 with options \\"\$ac_cs_config\\"
19665 Copyright (C) 2012 Free Software Foundation, Inc.
19666 This config.status script is free software; the Free Software Foundation
19667 gives unlimited permission to copy, distribute and modify it."
19674 test -n "\$AWK" || AWK=awk
19677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19678 # The default lists apply if the user does not specify any file.
19684 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19685 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
19689 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19701 # Handling of the options.
19702 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
19704 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
19705 $as_echo "$ac_cs_version"; exit ;;
19706 --config |
--confi |
--conf |
--con |
--co |
--c )
19707 $as_echo "$ac_cs_config"; exit ;;
19708 --debug |
--debu |
--deb |
--de |
--d |
-d )
19710 --file |
--fil |
--fi |
--f )
19713 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19714 '') as_fn_error $?
"missing file argument" ;;
19716 as_fn_append CONFIG_FILES
" '$ac_optarg'"
19717 ac_need_defaults
=false
;;
19718 --header |
--heade |
--head |
--hea )
19721 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19723 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
19724 ac_need_defaults
=false
;;
19726 # Conflict between --help and --header
19727 as_fn_error $?
"ambiguous option: \`$1'
19728 Try \`$0 --help' for more information.";;
19729 --help |
--hel |
-h )
19730 $as_echo "$ac_cs_usage"; exit ;;
19731 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
19732 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
19735 # This is an error.
19736 -*) as_fn_error $?
"unrecognized option: \`$1'
19737 Try \`$0 --help' for more information." ;;
19739 *) as_fn_append ac_config_targets
" $1"
19740 ac_need_defaults
=false
;;
19746 ac_configure_extra_args
=
19748 if $ac_cs_silent; then
19750 ac_configure_extra_args
="$ac_configure_extra_args --silent"
19754 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19755 if \$ac_cs_recheck; then
19756 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19758 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19759 CONFIG_SHELL='$SHELL'
19760 export CONFIG_SHELL
19765 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19769 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19770 ## Running $as_me. ##
19776 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19779 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19781 # Handling of arguments.
19782 for ac_config_target
in $ac_config_targets
19784 case $ac_config_target in
19785 "src/backend/port/tas.s") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
19786 "GNUmakefile") CONFIG_FILES
="$CONFIG_FILES GNUmakefile" ;;
19787 "src/Makefile.global") CONFIG_FILES
="$CONFIG_FILES src/Makefile.global" ;;
19788 "src/backend/port/pg_sema.c") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
19789 "src/backend/port/pg_shmem.c") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
19790 "src/include/pg_config_os.h") CONFIG_LINKS
="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
19791 "src/Makefile.port") CONFIG_LINKS
="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
19792 "check_win32_symlinks") CONFIG_COMMANDS
="$CONFIG_COMMANDS check_win32_symlinks" ;;
19793 "src/include/pg_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/include/pg_config.h" ;;
19794 "src/include/pg_config_ext.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/include/pg_config_ext.h" ;;
19795 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
19797 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19802 # If the user did not use the arguments to specify the items to instantiate,
19803 # then the envvar interface is used. Set only those that are not.
19804 # We use the long form for the default assignment because of an extremely
19805 # bizarre bug on SunOS 4.1.3.
19806 if $ac_need_defaults; then
19807 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
19808 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
19809 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
19810 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
19813 # Have a temporary directory for convenience. Make it in the build tree
19814 # simply because there is no reason against having it here, and in addition,
19815 # creating and moving files from /tmp can sometimes cause problems.
19816 # Hook for its removal unless debugging.
19817 # Note that there is a small window in which the directory will not be cleaned:
19818 # after its creation but before its name has been assigned to `$tmp'.
19822 trap 'exit_status=$?
19823 : "${ac_tmp:=$tmp}"
19824 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19826 trap 'as_fn_exit 1' 1 2 13 15
19828 # Create a (secure) tmp directory for tmp files.
19831 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19835 tmp
=.
/conf$$
-$RANDOM
19836 (umask 077 && mkdir
"$tmp")
19837 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
19840 # Set up the scripts for CONFIG_FILES section.
19841 # No need to generate them if there are no CONFIG_FILES.
19842 # This happens for instance with `./config.status config.h'.
19843 if test -n "$CONFIG_FILES"; then
19846 ac_cr
=`echo X | tr X '\015'`
19847 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19848 # But we know of no other shell where ac_cr would be empty at this
19849 # point, so we can use a bashism as a fallback.
19850 if test "x$ac_cr" = x
; then
19851 eval ac_cr
=\$
\'\\r
\'
19853 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19854 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19857 ac_cs_awk_cr
=$ac_cr
19860 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19865 echo "cat >conf$$subs.awk <<_ACEOF" &&
19866 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19868 } >conf$$subs.sh ||
19869 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19870 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19872 for ac_last_try in false false false false false :; do
19873 . ./conf$$subs.sh ||
19874 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19876 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
19877 if test $ac_delim_n = $ac_delim_num; then
19879 elif $ac_last_try; then
19880 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19882 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
19885 rm -f conf$$subs.sh
19887 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19888 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
19892 s/^/S["/; s
/!.
*/"]=/
19902 s/\(.\{148\}\)..*/\1/
19904 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
19909 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19916 s/\(.\{148\}\)..*/\1/
19918 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
19922 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19927 ' <conf$$subs.awk | sed '
19932 ' >>$CONFIG_STATUS || ac_write_fail=1
19933 rm -f conf$$subs.awk
19934 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19936 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
19937 for (key in S) S_is_set[key] = 1
19943 nfields = split(line, field, "@
")
19945 len = length(field[1])
19946 for (i = 2; i < nfields; i++) {
19948 keylen = length(key)
19949 if (S_is_set[key]) {
19951 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19952 len += length(value) + length(field[++i])
19963 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19964 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19965 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
19968 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
19969 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
19972 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19973 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
19974 # trailing colons and then remove the whole line if VPATH becomes empty
19975 # (actually we leave an empty line to preserve line numbers).
19976 if test "x
$srcdir" = x.; then
19977 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19996 fi # test -n "$CONFIG_FILES"
19998 # Set up the scripts for CONFIG_HEADERS section.
19999 # No need to generate them if there are no CONFIG_HEADERS.
20000 # This happens for instance with `./config.status Makefile'.
20001 if test -n "$CONFIG_HEADERS"; then
20002 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
20006 # Transform confdefs.h into an awk script `defines.awk', embedded as
20007 # here-document in config.status, that substitutes the proper values into
20008 # config.h.in to produce config.h.
20010 # Create a delimiter string that does not exist in confdefs.h, to ease
20011 # handling of long lines.
20013 for ac_last_try in false false :; do
20014 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
20015 if test -z "$ac_tt"; then
20017 elif $ac_last_try; then
20018 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
20020 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20024 # For the awk script, D is an array of macro values keyed by name,
20025 # likewise P contains macro parameters if any. Preserve backslash
20026 # newline sequences.
20028 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20030 s/.\{148\}/&'"$ac_delim"'/g
20033 s/^[ ]*#[ ]*define[ ][ ]*/ /
20040 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
20042 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
20046 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
20047 D["\
1"]=" \
3\\\\\\n
"\\/p
20049 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
20054 s/.\{148\}/&'"$ac_delim"'/g
20059 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
20062 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
20064 ' <confdefs.h | sed '
20065 s/'"$ac_delim"'/"\\\
20066 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20068 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20069 for (key in D) D_is_set[key] = 1
20072 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20074 split(line, arg, " ")
20075 if (arg[1] == "#") {
20079 defundef
= substr
(arg
[1], 2)
20082 split(mac1
, mac2
, "(") #)
20084 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
20085 if (D_is_set
[macro
]) {
20086 # Preserve the white space surrounding the "#".
20087 print prefix
"define", macro P
[macro
] D
[macro
]
20090 # Replace #undef with comments. This is necessary, for example,
20091 # in the case of _POSIX_SOURCE, which is predefined and required
20092 # on some systems where configure will not decide to define it.
20093 if (defundef
== "undef") {
20094 print
"/*", prefix defundef
, macro
, "*/"
20102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20103 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
20104 fi # test -n "$CONFIG_HEADERS"
20107 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
20112 :[FHLC
]) ac_mode
=$ac_tag; continue;;
20114 case $ac_mode$ac_tag in
20116 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
20117 :[FH
]-) ac_tag
=-:-;;
20118 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
20135 -) ac_f
="$ac_tmp/stdin";;
20136 *) # Look for the file first in the build tree, then in the source tree
20137 # (if the path is not absolute). The absolute path cannot be DOS-style,
20138 # because $ac_f cannot contain `:'.
20142 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
20144 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20146 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20147 as_fn_append ac_file_inputs
" '$ac_f'"
20150 # Let's still pretend it is `configure' which instantiates (i.e., don't
20151 # use $as_me), people would be surprised to read:
20152 # /* config.h. Generated by config.status. */
20153 configure_input
='Generated from '`
20154 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20156 if test x
"$ac_file" != x-
; then
20157 configure_input
="$ac_file. $configure_input"
20158 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20159 $as_echo "$as_me: creating $ac_file" >&6;}
20161 # Neutralize special characters interpreted by sed in replacement strings.
20162 case $configure_input in #(
20163 *\
&* |
*\|
* |
*\\* )
20164 ac_sed_conf_input
=`$as_echo "$configure_input" |
20165 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20166 *) ac_sed_conf_input
=$configure_input;;
20170 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
20171 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
20176 ac_dir
=`$as_dirname -- "$ac_file" ||
20177 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20178 X"$ac_file" : 'X\(//\)[^/]' \| \
20179 X"$ac_file" : 'X\(//\)$' \| \
20180 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20181 $as_echo X"$ac_file" |
20182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20186 /^X\(\/\/\)[^/].*/{
20199 as_dir
="$ac_dir"; as_fn_mkdir_p
20203 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20205 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20206 # A ".." for each directory in $ac_dir_suffix.
20207 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20208 case $ac_top_builddir_sub in
20209 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20210 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
20213 ac_abs_top_builddir
=$ac_pwd
20214 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
20215 # for backward compatibility:
20216 ac_top_builddir
=$ac_top_build_prefix
20219 .
) # We are building in place.
20221 ac_top_srcdir
=$ac_top_builddir_sub
20222 ac_abs_top_srcdir
=$ac_pwd ;;
20223 [\\/]* | ?
:[\\/]* ) # Absolute name.
20224 ac_srcdir
=$srcdir$ac_dir_suffix;
20225 ac_top_srcdir
=$srcdir
20226 ac_abs_top_srcdir
=$srcdir ;;
20227 *) # Relative name.
20228 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
20229 ac_top_srcdir
=$ac_top_build_prefix$srcdir
20230 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
20232 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
20242 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
20243 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
20245 ac_MKDIR_P
=$MKDIR_P
20247 [\\/$
]* | ?
:[\\/]* ) ;;
20248 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
20252 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20253 # If the template does not know about datarootdir, expand it.
20254 # FIXME: This hack should be removed a few years after 2.60.
20255 ac_datarootdir_hack
=; ac_datarootdir_seen
=
20266 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20267 *datarootdir
*) ac_datarootdir_seen
=yes;;
20268 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
20269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20270 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20272 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20273 ac_datarootdir_hack='
20274 s&@datadir@&$datadir&g
20275 s&@docdir@&$docdir&g
20276 s&@infodir@&$infodir&g
20277 s&@localedir@&$localedir&g
20278 s&@mandir@&$mandir&g
20279 s&\\\${datarootdir}&$datarootdir&g' ;;
20283 # Neutralize VPATH when `$srcdir' = `.'.
20284 # Shell code in configure.ac might set extrasub.
20285 # FIXME: do we really want to maintain this feature?
20286 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20287 ac_sed_extra="$ac_vpsub
20290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20292 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
20293 s|@configure_input@|
$ac_sed_conf_input|
;t t
20294 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
20295 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
20296 s
&@srcdir@
&$ac_srcdir&;t t
20297 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
20298 s
&@top_srcdir@
&$ac_top_srcdir&;t t
20299 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
20300 s
&@builddir@
&$ac_builddir&;t t
20301 s
&@abs_builddir@
&$ac_abs_builddir&;t t
20302 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
20303 s
&@INSTALL@
&$ac_INSTALL&;t t
20304 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
20305 $ac_datarootdir_hack
20307 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
20308 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
20310 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20311 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
20312 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20313 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
20314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
20315 which seems to be undefined. Please make sure it is defined" >&5
20316 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
20317 which seems to be undefined. Please make sure it is defined" >&2;}
20319 rm -f "$ac_tmp/stdin"
20321 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20322 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20324 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20330 if test x"$ac_file" != x-; then
20332 $as_echo "/* $configure_input */" \
20333 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20334 } >"$ac_tmp/config.h" \
20335 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20336 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20337 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20338 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20341 mv "$ac_tmp/config.h" "$ac_file" \
20342 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20345 $as_echo "/* $configure_input */" \
20346 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20347 || as_fn_error $? "could not create -" "$LINENO" 5
20355 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
20358 # Prefer the file from the source tree if names are identical.
20359 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
20360 ac_source=$srcdir/$ac_source
20363 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
20364 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
20366 if test ! -r "$ac_source"; then
20367 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
20371 # Try a relative symlink, then a hard link, then a copy.
20373 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
20374 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
20376 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
20377 ln "$ac_source" "$ac_file" 2>/dev/null ||
20378 cp -p "$ac_source" "$ac_file" ||
20379 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
20382 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20383 $as_echo "$as_me: executing $ac_file commands" >&6;}
20388 case $ac_file$ac_mode in
20389 "check_win32_symlinks":C)
20390 # Links sometimes fail undetected on Mingw -
20391 # so here we detect it and warn the user
20392 for FILE in $CONFIG_LINKS
20394 # test -e works for symlinks in the MinGW console
20395 test -e `expr "$FILE" : '\
([^
:]*\
)'` || { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** link for $FILE -- please fix by hand" >&5
20396 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
20399 "src/include/pg_config.h":H)
20400 # Update timestamp for pg_config.h (see Makefile.global)
20401 echo >src/include/stamp-h
20403 "src/include/pg_config_ext.h":H)
20404 # Update timestamp for pg_config_ext.h (see Makefile.global)
20405 echo >src/include/stamp-ext-h
20407 "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
20415 ac_clean_files=$ac_clean_files_save
20417 test $ac_write_fail = 0 ||
20418 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20421 # configure is writing to config.log, and then calls config.status.
20422 # config.status does its own redirection, appending to config.log.
20423 # Unfortunately, on DOS this fails, as config.log is still kept open
20424 # by configure, so config.status won't be able to
write to it
; its
20425 # output is simply discarded. So we exec the FD to /dev/null,
20426 # effectively closing config.log, so it can be properly (re)opened and
20427 # appended to by config.status. When coming back to configure, we
20428 # need to make the FD available again.
20429 if test "$no_create" != yes; then
20431 ac_config_status_args
=
20432 test "$silent" = yes &&
20433 ac_config_status_args
="$ac_config_status_args --quiet"
20435 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
20437 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20438 # would make configure fail if this is the last instruction.
20439 $ac_cs_success || as_fn_exit
1
20441 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
20442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20443 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20447 # Ensure that any meson build directories would reconfigure and see that
20448 # there's a conflicting in-tree build and can error out.
20449 if test "$vpath_build" = "no"; then