2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for PostgreSQL 17devel.
5 # Report bugs to <pgsql-bugs@lists.postgresql.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
14 # Copyright (c) 1996-2023, PostgreSQL Global Development Group
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE
=1; export DUALCASE
# for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print
-rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
57 as_echo_n='/usr
/ucb
/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
70 as_echo_n='sh
-c $as_echo_n_body as_echo
'
73 as_echo='sh
-c $as_echo_body as_echo
'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x
; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var
in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\
${$as_var+set} = xset \
124 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
137 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
139 # Use a proper internal environment variable to ensure we don't fall
140 # into an infinite loop, continuously re-executing ourselves.
141 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
142 _as_can_reexec
=no
; export _as_can_reexec
;
143 # We cannot yet assume a decent shell, so we have to provide a
144 # neutralization value for shells without unset; and this also
145 # works around shells that cannot unset nonexistent variables.
146 # Preserve -v and -x to the replacement shell.
149 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
151 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
156 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
157 # Admittedly, this is quite paranoid, since all the known shells bail
158 # out after a failed `exec'.
159 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
162 # We don't want this to propagate to other subprocesses.
163 { _as_can_reexec
=; unset _as_can_reexec
;}
164 if test "x$CONFIG_SHELL" = x
; then
165 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
168 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
169 # is contrary to our usage. Disable this feature.
170 alias -g '\${1+\"\$@\"}'='\"\$@\"'
173 case \`(set -o) 2>/dev/null\` in #(
181 as_required
="as_fn_return () { (exit \$1); }
182 as_fn_success () { as_fn_return 0; }
183 as_fn_failure () { as_fn_return 1; }
184 as_fn_ret_success () { return 0; }
185 as_fn_ret_failure () { return 1; }
188 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
189 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
190 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
191 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
192 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
195 exitcode=1; echo positional parameters were not saved.
197 test x\$exitcode = x0 || exit 1
199 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
200 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
201 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
202 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
203 test \$(( 1 + 1 )) = 2 || exit 1"
204 if (eval "$as_required") 2>/dev
/null
; then :
209 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
212 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
214 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
217 test -z "$as_dir" && as_dir
=.
221 for as_base
in sh bash ksh sh5
; do
222 # Try only shells that exist, to save several forks.
223 as_shell
=$as_dir/$as_base
224 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
225 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
226 CONFIG_SHELL
=$as_shell as_have_required
=yes
227 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
235 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
236 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
237 CONFIG_SHELL
=$SHELL as_have_required
=yes
242 if test "x$CONFIG_SHELL" != x
; then :
244 # We cannot yet assume a decent shell, so we have to provide a
245 # neutralization value for shells without unset; and this also
246 # works around shells that cannot unset nonexistent variables.
247 # Preserve -v and -x to the replacement shell.
250 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
252 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
257 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
258 # Admittedly, this is quite paranoid, since all the known shells bail
259 # out after a failed `exec'.
260 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
264 if test x
$as_have_required = xno
; then :
265 $as_echo "$0: This script requires a shell more modern than all"
266 $as_echo "$0: the shells that I found on your system."
267 if test x
${ZSH_VERSION+set} = xset
; then
268 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
269 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
271 $as_echo "$0: Please tell bug-autoconf@gnu.org and
272 $0: pgsql-bugs@lists.postgresql.org about your system,
273 $0: including any error possibly output before this
274 $0: message. Then install a modern shell, or manually run
275 $0: the script under such a shell if you do have one."
281 SHELL
=${CONFIG_SHELL-/bin/sh}
283 # Unset more variables known to interfere with behavior of common tools.
284 CLICOLOR_FORCE
= GREP_OPTIONS
=
285 unset CLICOLOR_FORCE GREP_OPTIONS
287 ## --------------------- ##
288 ## M4sh Shell Functions. ##
289 ## --------------------- ##
292 # Portably unset VAR.
295 { eval $1=; unset $1;}
299 # as_fn_set_status STATUS
300 # -----------------------
301 # Set $? to STATUS, without forking.
309 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319 # Create "$as_dir" as a directory, including parents if necessary.
324 -*) as_dir
=.
/$as_dir;;
326 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
330 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
333 as_dirs
="'$as_qdir' $as_dirs"
334 as_dir
=`$as_dirname -- "$as_dir" ||
335 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
336 X"$as_dir" : 'X\(//\)[^/]' \| \
337 X"$as_dir" : 'X\(//\)$' \| \
338 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
339 $as_echo X"$as_dir" |
340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357 test -d "$as_dir" && break
359 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
360 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
365 # as_fn_executable_p FILE
366 # -----------------------
367 # Test if FILE is an executable regular file.
368 as_fn_executable_p
()
370 test -f "$1" && test -x "$1"
371 } # as_fn_executable_p
372 # as_fn_append VAR VALUE
373 # ----------------------
374 # Append the text in VALUE to the end of the definition contained in VAR. Take
375 # advantage of any shell optimizations that allow amortized linear growth over
376 # repeated appends, instead of the typical quadratic growth present in naive
378 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
379 eval 'as_fn_append ()
392 # Perform arithmetic evaluation on the ARGs, and store the result in the
393 # global $as_val. Take advantage of shells that can avoid forks. The arguments
394 # must be portable across $(()) and expr.
395 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
403 as_val
=`expr "$@" || test $? -eq 1`
408 # as_fn_error STATUS ERROR [LINENO LOG_FD]
409 # ----------------------------------------
410 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
411 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
412 # script with STATUS, using 1 if that was 0.
415 as_status
=$1; test $as_status -eq 0 && as_status
=1
417 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
418 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
420 $as_echo "$as_me: error: $2" >&2
421 as_fn_exit
$as_status
424 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
425 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
431 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
437 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
443 as_me
=`$as_basename -- "$0" ||
444 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
445 X"$0" : 'X\(//\)$' \| \
446 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
448 sed '/^.*\/\([^/][^/]*\)\/*$/{
462 # Avoid depending upon Character Ranges.
463 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
464 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
465 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
466 as_cr_digits
='0123456789'
467 as_cr_alnum
=$as_cr_Letters$as_cr_digits
470 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
471 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
472 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
473 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
474 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
486 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 chmod +x
"$as_me.lineno" ||
491 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
493 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
494 # already done that, so ensure we don't try to do so again and fall
495 # in an infinite loop. This has already happened in practice.
496 _as_can_reexec
=no
; export _as_can_reexec
497 # Don't try to exec as it changes $[0], causing all sort of problems
498 # (the dirname of $[0] is not the place where we might find the
499 # original and so on. Autoconf is especially sensitive to this).
501 # Exit status is that of the last command.
505 ECHO_C
= ECHO_N
= ECHO_T
=
506 case `echo -n x` in #(((((
508 case `echo 'xy\c'` in
509 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
511 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
518 rm -f conf$$ conf$$.exe conf$$.
file
519 if test -d conf$$.dir
; then
520 rm -f conf$$.dir
/conf$$.
file
523 mkdir conf$$.dir
2>/dev
/null
525 if (echo >conf$$.
file) 2>/dev
/null
; then
526 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
528 # ... but there are two gotchas:
529 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
530 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
531 # In both cases, we have to default to `cp -pR'.
532 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
534 elif ln conf$$.
file conf$$
2>/dev
/null
; then
542 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
543 rmdir conf$$.dir
2>/dev
/null
545 if mkdir
-p .
2>/dev
/null
; then
546 as_mkdir_p
='mkdir -p "$as_dir"'
548 test -d .
/-p && rmdir .
/-p
553 as_executable_p
=as_fn_executable_p
555 # Sed expression to map a string onto a valid CPP name.
556 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
558 # Sed expression to map a string onto a valid variable name.
559 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
562 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
566 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
567 # so uname gets run too.
568 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
573 ac_default_prefix
=/usr
/local
575 ac_config_libobj_dir
=.
582 # Identity of this package.
583 PACKAGE_NAME
='PostgreSQL'
584 PACKAGE_TARNAME
='postgresql'
585 PACKAGE_VERSION
='17devel'
586 PACKAGE_STRING
='PostgreSQL 17devel'
587 PACKAGE_BUGREPORT
='pgsql-bugs@lists.postgresql.org'
588 PACKAGE_URL
='https://www.postgresql.org/'
590 ac_unique_file
="src/backend/access/common/heaptuple.c"
591 ac_default_prefix
=/usr
/local
/pgsql
592 # Factoring default headers for most tests.
593 ac_includes_default
="\
595 #ifdef HAVE_SYS_TYPES_H
596 # include <sys/types.h>
598 #ifdef HAVE_SYS_STAT_H
599 # include <sys/stat.h>
605 # ifdef HAVE_STDLIB_H
610 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 #ifdef HAVE_STRINGS_H
616 # include <strings.h>
618 #ifdef HAVE_INTTYPES_H
619 # include <inttypes.h>
628 ac_subst_vars
='LTLIBOBJS
666 python_additional_libs
741 PERMIT_DECLARATION_AFTER_STATEMENT
812 program_transform_name
825 enable_option_checking
831 enable_integer_datetimes
864 with_libedit_preferred
877 ac_precious_vars
='build_alias
911 # Initialize some variables set by options.
913 ac_init_version
=false
914 ac_unrecognized_opts
=
916 # The variables have the same names as the options, with
917 # dashes changed to underlines.
925 program_transform_name
=s
,x
,x
,
933 # Installation directory options.
934 # These are left unexpanded so users can "make install exec_prefix=/foo"
935 # and all the variables that are supposed to be based on exec_prefix
936 # by default will actually change.
937 # Use braces instead of parens because sh, perl, etc. also accept them.
938 # (The list follows the same order as the GNU Coding Standards.)
939 bindir
='${exec_prefix}/bin'
940 sbindir
='${exec_prefix}/sbin'
941 libexecdir
='${exec_prefix}/libexec'
942 datarootdir
='${prefix}/share'
943 datadir
='${datarootdir}'
944 sysconfdir
='${prefix}/etc'
945 sharedstatedir
='${prefix}/com'
946 localstatedir
='${prefix}/var'
947 includedir
='${prefix}/include'
948 oldincludedir
='/usr/include'
949 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
950 infodir
='${datarootdir}/info'
955 libdir
='${exec_prefix}/lib'
956 localedir
='${datarootdir}/locale'
957 mandir
='${datarootdir}/man'
963 # If the previous option needs an argument, assign it.
964 if test -n "$ac_prev"; then
965 eval $ac_prev=\
$ac_option
971 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
976 # Accept the important Cygnus configure options, so we can diagnose typos.
978 case $ac_dashdash$ac_option in
982 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
984 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
987 -build |
--build |
--buil |
--bui |
--bu)
988 ac_prev
=build_alias
;;
989 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
990 build_alias
=$ac_optarg ;;
992 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
993 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
994 ac_prev
=cache_file
;;
995 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
996 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
997 cache_file
=$ac_optarg ;;
1000 cache_file
=config.cache
;;
1002 -datadir |
--datadir |
--datadi |
--datad)
1004 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1005 datadir
=$ac_optarg ;;
1007 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1008 |
--dataroo |
--dataro |
--datar)
1009 ac_prev
=datarootdir
;;
1010 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1011 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1012 datarootdir
=$ac_optarg ;;
1014 -disable-* |
--disable-*)
1015 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1016 # Reject names that are not valid shell variable names.
1017 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1018 as_fn_error $?
"invalid feature name: $ac_useropt"
1019 ac_useropt_orig
=$ac_useropt
1020 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1021 case $ac_user_opts in
1023 "enable_
$ac_useropt"
1025 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1026 ac_unrecognized_sep
=', ';;
1028 eval enable_
$ac_useropt=no
;;
1030 -docdir |
--docdir |
--docdi |
--doc |
--do)
1032 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1033 docdir
=$ac_optarg ;;
1035 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1037 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1038 dvidir
=$ac_optarg ;;
1040 -enable-* |
--enable-*)
1041 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1042 # Reject names that are not valid shell variable names.
1043 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1044 as_fn_error $?
"invalid feature name: $ac_useropt"
1045 ac_useropt_orig
=$ac_useropt
1046 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1047 case $ac_user_opts in
1049 "enable_
$ac_useropt"
1051 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1052 ac_unrecognized_sep
=', ';;
1054 eval enable_
$ac_useropt=\
$ac_optarg ;;
1056 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1057 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1058 |
--exec |
--exe |
--ex)
1059 ac_prev
=exec_prefix
;;
1060 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1061 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1062 |
--exec=* |
--exe=* |
--ex=*)
1063 exec_prefix
=$ac_optarg ;;
1065 -gas |
--gas |
--ga |
--g)
1066 # Obsolete; use --with-gas.
1069 -help |
--help |
--hel |
--he |
-h)
1070 ac_init_help
=long
;;
1071 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1072 ac_init_help
=recursive
;;
1073 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1074 ac_init_help
=short
;;
1076 -host |
--host |
--hos |
--ho)
1077 ac_prev
=host_alias
;;
1078 -host=* |
--host=* |
--hos=* |
--ho=*)
1079 host_alias
=$ac_optarg ;;
1081 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1083 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1085 htmldir
=$ac_optarg ;;
1087 -includedir |
--includedir |
--includedi |
--included |
--include \
1088 |
--includ |
--inclu |
--incl |
--inc)
1089 ac_prev
=includedir
;;
1090 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1091 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1092 includedir
=$ac_optarg ;;
1094 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1096 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1097 infodir
=$ac_optarg ;;
1099 -libdir |
--libdir |
--libdi |
--libd)
1101 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1102 libdir
=$ac_optarg ;;
1104 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1105 |
--libexe |
--libex |
--libe)
1106 ac_prev
=libexecdir
;;
1107 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1108 |
--libexe=* |
--libex=* |
--libe=*)
1109 libexecdir
=$ac_optarg ;;
1111 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1112 ac_prev
=localedir
;;
1113 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1114 localedir
=$ac_optarg ;;
1116 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1117 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1118 ac_prev
=localstatedir
;;
1119 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1120 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1121 localstatedir
=$ac_optarg ;;
1123 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1125 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1126 mandir
=$ac_optarg ;;
1128 -nfp |
--nfp |
--nf)
1129 # Obsolete; use --without-fp.
1132 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1133 |
--no-cr |
--no-c |
-n)
1136 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1137 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1140 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1141 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1142 |
--oldin |
--oldi |
--old |
--ol |
--o)
1143 ac_prev
=oldincludedir
;;
1144 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1145 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1146 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1147 oldincludedir
=$ac_optarg ;;
1149 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1151 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1152 prefix
=$ac_optarg ;;
1154 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1155 |
--program-pre |
--program-pr |
--program-p)
1156 ac_prev
=program_prefix
;;
1157 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1158 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1159 program_prefix
=$ac_optarg ;;
1161 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1162 |
--program-suf |
--program-su |
--program-s)
1163 ac_prev
=program_suffix
;;
1164 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1165 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1166 program_suffix
=$ac_optarg ;;
1168 -program-transform-name |
--program-transform-name \
1169 |
--program-transform-nam |
--program-transform-na \
1170 |
--program-transform-n |
--program-transform- \
1171 |
--program-transform |
--program-transfor \
1172 |
--program-transfo |
--program-transf \
1173 |
--program-trans |
--program-tran \
1174 |
--progr-tra |
--program-tr |
--program-t)
1175 ac_prev
=program_transform_name
;;
1176 -program-transform-name=* |
--program-transform-name=* \
1177 |
--program-transform-nam=* |
--program-transform-na=* \
1178 |
--program-transform-n=* |
--program-transform-=* \
1179 |
--program-transform=* |
--program-transfor=* \
1180 |
--program-transfo=* |
--program-transf=* \
1181 |
--program-trans=* |
--program-tran=* \
1182 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1183 program_transform_name
=$ac_optarg ;;
1185 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1187 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1188 pdfdir
=$ac_optarg ;;
1190 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1192 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1195 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1196 |
-silent |
--silent |
--silen |
--sile |
--sil)
1199 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1201 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1203 sbindir
=$ac_optarg ;;
1205 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1206 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1207 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1209 ac_prev
=sharedstatedir
;;
1210 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1211 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1212 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1214 sharedstatedir
=$ac_optarg ;;
1216 -site |
--site |
--sit)
1218 -site=* |
--site=* |
--sit=*)
1221 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1223 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1224 srcdir
=$ac_optarg ;;
1226 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1227 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1228 ac_prev
=sysconfdir
;;
1229 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1230 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1231 sysconfdir
=$ac_optarg ;;
1233 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1234 ac_prev
=target_alias
;;
1235 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1236 target_alias
=$ac_optarg ;;
1238 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1241 -version |
--version |
--versio |
--versi |
--vers |
-V)
1242 ac_init_version
=: ;;
1245 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1246 # Reject names that are not valid shell variable names.
1247 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1248 as_fn_error $?
"invalid package name: $ac_useropt"
1249 ac_useropt_orig
=$ac_useropt
1250 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1251 case $ac_user_opts in
1255 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1256 ac_unrecognized_sep
=', ';;
1258 eval with_
$ac_useropt=\
$ac_optarg ;;
1260 -without-* |
--without-*)
1261 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1262 # Reject names that are not valid shell variable names.
1263 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1264 as_fn_error $?
"invalid package name: $ac_useropt"
1265 ac_useropt_orig
=$ac_useropt
1266 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1267 case $ac_user_opts in
1271 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1272 ac_unrecognized_sep
=', ';;
1274 eval with_
$ac_useropt=no
;;
1277 # Obsolete; use --with-x.
1280 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1281 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1282 ac_prev
=x_includes
;;
1283 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1284 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1285 x_includes
=$ac_optarg ;;
1287 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1288 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1289 ac_prev
=x_libraries
;;
1290 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1291 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1292 x_libraries
=$ac_optarg ;;
1294 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1295 Try \`$0 --help' for more information"
1299 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1300 # Reject names that are not valid shell variable names.
1301 case $ac_envvar in #(
1302 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1303 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1305 eval $ac_envvar=\
$ac_optarg
1306 export $ac_envvar ;;
1309 # FIXME: should be removed in autoconf 3.0.
1310 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1311 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1312 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1313 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1319 if test -n "$ac_prev"; then
1320 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1321 as_fn_error $?
"missing argument to $ac_option"
1324 if test -n "$ac_unrecognized_opts"; then
1325 case $enable_option_checking in
1327 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1328 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1332 # Check all directory arguments for consistency.
1333 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1334 datadir sysconfdir sharedstatedir localstatedir includedir \
1335 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1336 libdir localedir mandir
1338 eval ac_val
=\$
$ac_var
1339 # Remove trailing slashes.
1342 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1343 eval $ac_var=\
$ac_val;;
1345 # Be sure to have absolute directory names.
1347 [\\/$
]* | ?
:[\\/]* ) continue;;
1348 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1350 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1353 # There might be people who depend on the old broken behavior: `$host'
1354 # used to hold the argument of --host etc.
1355 # FIXME: To remove some day.
1358 target
=$target_alias
1360 # FIXME: To remove some day.
1361 if test "x$host_alias" != x
; then
1362 if test "x$build_alias" = x
; then
1363 cross_compiling
=maybe
1364 elif test "x$build_alias" != "x$host_alias"; then
1370 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1372 test "$silent" = yes && exec 6>/dev
/null
1375 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1376 ac_ls_di
=`ls -di .` &&
1377 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1378 as_fn_error $?
"working directory cannot be determined"
1379 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1380 as_fn_error $?
"pwd does not report name of working directory"
1383 # Find the source files, if location was not specified.
1384 if test -z "$srcdir"; then
1385 ac_srcdir_defaulted
=yes
1386 # Try the directory containing this script, then the parent directory.
1387 ac_confdir
=`$as_dirname -- "$as_myself" ||
1388 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1389 X"$as_myself" : 'X\(//\)[^/]' \| \
1390 X"$as_myself" : 'X\(//\)$' \| \
1391 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1392 $as_echo X"$as_myself" |
1393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1411 if test ! -r "$srcdir/$ac_unique_file"; then
1415 ac_srcdir_defaulted
=no
1417 if test ! -r "$srcdir/$ac_unique_file"; then
1418 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1419 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1421 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1423 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1425 # When building in place, set srcdir=.
1426 if test "$ac_abs_confdir" = "$ac_pwd"; then
1429 # Remove unnecessary trailing slashes from srcdir.
1430 # Double slashes in file names in object file debugging info
1431 # mess up M-x gdb in Emacs.
1433 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1435 for ac_var
in $ac_precious_vars; do
1436 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1437 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1438 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1439 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1443 # Report the --help message.
1445 if test "$ac_init_help" = "long"; then
1446 # Omit some internal or obsolete options to make the list less imposing.
1447 # This message is too long to be a string in the A/UX 3.1 sh.
1449 \`configure' configures PostgreSQL 17devel to adapt to many kinds of systems.
1451 Usage: $0 [OPTION]... [VAR=VALUE]...
1453 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1454 VAR=VALUE. See below for descriptions of some of the useful variables.
1456 Defaults for the options are specified in brackets.
1459 -h, --help display this help and exit
1460 --help=short display options specific to this package
1461 --help=recursive display the short help of all the included packages
1462 -V, --version display version information and exit
1463 -q, --quiet, --silent do not print \`checking ...' messages
1464 --cache-file=FILE cache test results in FILE [disabled]
1465 -C, --config-cache alias for \`--cache-file=config.cache'
1466 -n, --no-create do not create output files
1467 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1469 Installation directories:
1470 --prefix=PREFIX install architecture-independent files in PREFIX
1471 [$ac_default_prefix]
1472 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1475 By default, \`make install' will install all the files in
1476 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1477 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1478 for instance \`--prefix=\$HOME'.
1480 For better control, use the options below.
1482 Fine tuning of the installation directories:
1483 --bindir=DIR user executables [EPREFIX/bin]
1484 --sbindir=DIR system admin executables [EPREFIX/sbin]
1485 --libexecdir=DIR program executables [EPREFIX/libexec]
1486 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1487 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1488 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1489 --libdir=DIR object code libraries [EPREFIX/lib]
1490 --includedir=DIR C header files [PREFIX/include]
1491 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1492 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1493 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1494 --infodir=DIR info documentation [DATAROOTDIR/info]
1495 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1496 --mandir=DIR man documentation [DATAROOTDIR/man]
1497 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1498 --htmldir=DIR html documentation [DOCDIR]
1499 --dvidir=DIR dvi documentation [DOCDIR]
1500 --pdfdir=DIR pdf documentation [DOCDIR]
1501 --psdir=DIR ps documentation [DOCDIR]
1507 --build=BUILD configure
for building on BUILD
[guessed
]
1508 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1512 if test -n "$ac_init_help"; then
1513 case $ac_init_help in
1514 short | recursive
) echo "Configuration of PostgreSQL 17devel:";;
1519 --disable-option-checking ignore unrecognized
--enable/--with options
1520 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1521 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1522 --disable-integer-datetimes
1523 obsolete option
, no longer supported
1524 --enable-nls[=LANGUAGES
]
1525 enable Native Language Support
1526 --disable-rpath do not embed shared library search path
in
1528 --disable-spinlocks do not use spinlocks
1529 --disable-atomics do not use atomic operations
1530 --enable-debug build with debugging symbols
(-g)
1531 --enable-profiling build with profiling enabled
1532 --enable-coverage build with coverage testing instrumentation
1533 --enable-dtrace build with DTrace support
1534 --enable-tap-tests enable TAP tests
(requires Perl and IPC
::Run
)
1535 --enable-depend turn on automatic dependency tracking
1536 --enable-cassert enable assertion checks
(for debugging
)
1537 --disable-largefile omit support
for large files
1540 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1541 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1542 --with-extra-version=STRING
1543 append STRING to version
1544 --with-template=NAME override operating system template
1545 --with-includes=DIRS
look for additional header files
in DIRS
1546 --with-libraries=DIRS
look for additional libraries
in DIRS
1547 --with-libs=DIRS alternative spelling of
--with-libraries
1548 --with-pgport=PORTNUM
set default port number
[5432]
1549 --with-blocksize=BLOCKSIZE
1550 set table block size
in kB
[8]
1551 --with-segsize=SEGSIZE
set table segment size
in GB
[1]
1552 --with-segsize-blocks=SEGSIZE_BLOCKS
1553 set table segment size
in blocks
[0]
1554 --with-wal-blocksize=BLOCKSIZE
1555 set WAL block size
in kB
[8]
1556 --with-CC=CMD
set compiler
(deprecated
)
1557 --with-llvm build with LLVM based JIT support
1558 --without-icu build without ICU support
1559 --with-tcl build Tcl modules
(PL
/Tcl
)
1560 --with-tclconfig=DIR tclConfig.sh is
in DIR
1561 --with-perl build Perl modules
(PL
/Perl
)
1562 --with-python build Python modules
(PL
/Python
)
1563 --with-gssapi build with GSSAPI support
1564 --with-krb-srvnam=NAME default service principal name
in Kerberos
(GSSAPI
)
1566 --with-pam build with PAM support
1567 --with-bsd-auth build with BSD Authentication support
1568 --with-ldap build with LDAP support
1569 --with-bonjour build with Bonjour support
1570 --with-selinux build with SELinux support
1571 --with-systemd build with systemd support
1572 --without-readline do not use GNU Readline nor BSD Libedit
for editing
1573 --with-libedit-preferred
1574 prefer BSD Libedit over GNU Readline
1575 --with-uuid=LIB build contrib
/uuid-ossp using LIB
(bsd
,e2fs
,ossp
)
1576 --with-ossp-uuid obsolete spelling of
--with-uuid=ossp
1577 --with-libxml build with XML support
1578 --with-libxslt use XSLT support when building contrib
/xml2
1579 --with-system-tzdata=DIR
1580 use system
time zone data
in DIR
1581 --without-zlib do not use Zlib
1582 --with-lz4 build with LZ4 support
1583 --with-zstd build with ZSTD support
1584 --with-ssl=LIB use LIB
for SSL
/TLS support
(openssl
)
1585 --with-openssl obsolete spelling of
--with-ssl=openssl
1587 Some influential environment variables
:
1588 CC C compiler
command
1589 CFLAGS C compiler flags
1590 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1591 nonstandard directory
<lib dir
>
1592 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1593 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1594 you have headers
in a nonstandard directory
<include dir
>
1595 CXX C
++ compiler
command
1596 CXXFLAGS C
++ compiler flags
1597 LLVM_CONFIG path to llvm-config
command
1598 CLANG path to clang compiler to generate bitcode
1600 PKG_CONFIG path to pkg-config utility
1602 directories to add to pkg-config
's search path
1604 path overriding pkg-config's built-in search path
1605 ICU_CFLAGS C compiler flags
for ICU
, overriding pkg-config
1606 ICU_LIBS linker flags
for ICU
, overriding pkg-config
1607 XML2_CONFIG path to xml2-config utility
1608 XML2_CFLAGS C compiler flags
for XML2
, overriding pkg-config
1609 XML2_LIBS linker flags
for XML2
, overriding pkg-config
1610 LZ4_CFLAGS C compiler flags
for LZ4
, overriding pkg-config
1611 LZ4_LIBS linker flags
for LZ4
, overriding pkg-config
1612 ZSTD_CFLAGS C compiler flags
for ZSTD
, overriding pkg-config
1613 ZSTD_LIBS linker flags
for ZSTD
, overriding pkg-config
1614 LDFLAGS_EX extra linker flags
for linking executables only
1615 LDFLAGS_SL extra linker flags
for linking shared libraries only
1617 PYTHON Python program
1618 MSGFMT msgfmt program
for NLS
1619 TCLSH Tcl interpreter program
(tclsh
)
1621 Use these variables to override the choices made by
`configure' or to help
1622 it to find libraries and programs with nonstandard names/locations.
1624 Report bugs to <pgsql-bugs@lists.postgresql.org>.
1625 PostgreSQL home page: <https://www.postgresql.org/>.
1630 if test "$ac_init_help" = "recursive"; then
1631 # If there are subdirs, report their specific --help.
1632 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1633 test -d "$ac_dir" ||
1634 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1639 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1641 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1642 # A ".." for each directory in $ac_dir_suffix.
1643 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1644 case $ac_top_builddir_sub in
1645 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1646 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1649 ac_abs_top_builddir=$ac_pwd
1650 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1651 # for backward compatibility:
1652 ac_top_builddir=$ac_top_build_prefix
1655 .) # We are building in place.
1657 ac_top_srcdir=$ac_top_builddir_sub
1658 ac_abs_top_srcdir=$ac_pwd ;;
1659 [\\/]* | ?:[\\/]* ) # Absolute name.
1660 ac_srcdir=$srcdir$ac_dir_suffix;
1661 ac_top_srcdir=$srcdir
1662 ac_abs_top_srcdir=$srcdir ;;
1664 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1665 ac_top_srcdir=$ac_top_build_prefix$srcdir
1666 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1668 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1670 cd "$ac_dir" || { ac_status=$?; continue; }
1671 # Check for guested configure.
1672 if test -f "$ac_srcdir/configure.gnu"; then
1674 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1675 elif test -f "$ac_srcdir/configure"; then
1677 $SHELL "$ac_srcdir/configure" --help=recursive
1679 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1681 cd "$ac_pwd" || { ac_status=$?; break; }
1685 test -n "$ac_init_help" && exit $ac_status
1686 if $ac_init_version; then
1688 PostgreSQL configure 17devel
1689 generated by GNU Autoconf 2.69
1691 Copyright (C) 2012 Free Software Foundation, Inc.
1692 This configure script is free software; the Free Software Foundation
1693 gives unlimited permission to copy, distribute and modify it.
1695 Copyright (c) 1996-2023, PostgreSQL Global Development Group
1700 ## ------------------------ ##
1701 ## Autoconf initialization. ##
1702 ## ------------------------ ##
1704 # ac_fn_c_try_compile LINENO
1705 # --------------------------
1706 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1707 ac_fn_c_try_compile ()
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 rm -f conftest.$ac_objext
1711 if { { ac_try="$ac_compile"
1713 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1714 *) ac_try_echo
=$ac_try;;
1716 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717 $as_echo "$ac_try_echo"; } >&5
1718 (eval "$ac_compile") 2>conftest.err
1720 if test -s conftest.err
; then
1721 grep -v '^ *+' conftest.err
>conftest.er1
1722 cat conftest.er1
>&5
1723 mv -f conftest.er1 conftest.err
1725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726 test $ac_status = 0; } && {
1727 test -z "$ac_c_werror_flag" ||
1728 test ! -s conftest.err
1729 } && test -s conftest.
$ac_objext; then :
1732 $as_echo "$as_me: failed program was:" >&5
1733 sed 's/^/| /' conftest.
$ac_ext >&5
1737 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1738 as_fn_set_status
$ac_retval
1740 } # ac_fn_c_try_compile
1742 # ac_fn_cxx_try_compile LINENO
1743 # ----------------------------
1744 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1745 ac_fn_cxx_try_compile
()
1747 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1748 rm -f conftest.
$ac_objext
1749 if { { ac_try
="$ac_compile"
1751 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1752 *) ac_try_echo=$ac_try;;
1754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1755 $as_echo "$ac_try_echo"; } >&5
1756 (eval "$ac_compile") 2>conftest.err
1758 if test -s conftest.err; then
1759 grep -v '^ *+' conftest.err >conftest.er1
1760 cat conftest.er1 >&5
1761 mv -f conftest.er1 conftest.err
1763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1764 test $ac_status = 0; } && {
1765 test -z "$ac_cxx_werror_flag" ||
1766 test ! -s conftest.err
1767 } && test -s conftest.$ac_objext; then :
1770 $as_echo "$as_me: failed program was:" >&5
1771 sed 's/^/| /' conftest.$ac_ext >&5
1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776 as_fn_set_status $ac_retval
1778 } # ac_fn_cxx_try_compile
1780 # ac_fn_c_try_link LINENO
1781 # -----------------------
1782 # Try to link conftest.$ac_ext, and return whether this succeeded.
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 rm -f conftest.$ac_objext conftest$ac_exeext
1787 if { { ac_try="$ac_link"
1789 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1790 *) ac_try_echo
=$ac_try;;
1792 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793 $as_echo "$ac_try_echo"; } >&5
1794 (eval "$ac_link") 2>conftest.err
1796 if test -s conftest.err
; then
1797 grep -v '^ *+' conftest.err
>conftest.er1
1798 cat conftest.er1
>&5
1799 mv -f conftest.er1 conftest.err
1801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1802 test $ac_status = 0; } && {
1803 test -z "$ac_c_werror_flag" ||
1804 test ! -s conftest.err
1805 } && test -s conftest
$ac_exeext && {
1806 test "$cross_compiling" = yes ||
1807 test -x conftest
$ac_exeext
1811 $as_echo "$as_me: failed program was:" >&5
1812 sed 's/^/| /' conftest.
$ac_ext >&5
1816 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1817 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1818 # interfere with the next link command; also delete a directory that is
1819 # left behind by Apple's compiler. We do this before executing the actions.
1820 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822 as_fn_set_status
$ac_retval
1824 } # ac_fn_c_try_link
1826 # ac_fn_c_try_cpp LINENO
1827 # ----------------------
1828 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1831 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1832 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1834 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1835 *) ac_try_echo=$ac_try;;
1837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838 $as_echo "$ac_try_echo"; } >&5
1839 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1841 if test -s conftest.err; then
1842 grep -v '^ *+' conftest.err >conftest.er1
1843 cat conftest.er1 >&5
1844 mv -f conftest.er1 conftest.err
1846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847 test $ac_status = 0; } > conftest.i && {
1848 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1849 test ! -s conftest.err
1853 $as_echo "$as_me: failed program was:" >&5
1854 sed 's/^/| /' conftest.$ac_ext >&5
1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859 as_fn_set_status $ac_retval
1863 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1864 # -------------------------------------------------------
1865 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1866 # the include files in INCLUDES and setting the cache variable VAR
1868 ac_fn_c_check_header_mongrel ()
1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871 if eval \${$3+:} false; then :
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1873 $as_echo_n "checking for $2... " >&6; }
1874 if eval \${$3+:} false; then :
1875 $as_echo_n "(cached) " >&6
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1879 $as_echo "$ac_res" >&6; }
1881 # Is the header compilable?
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1883 $as_echo_n "checking $2 usability... " >&6; }
1884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1885 /* end confdefs.h. */
1889 if ac_fn_c_try_compile "$LINENO"; then :
1890 ac_header_compiler=yes
1892 ac_header_compiler=no
1894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1896 $as_echo "$ac_header_compiler" >&6; }
1898 # Is the header present?
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1900 $as_echo_n "checking $2 presence... " >&6; }
1901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1902 /* end confdefs.h. */
1905 if ac_fn_c_try_cpp "$LINENO"; then :
1906 ac_header_preproc=yes
1908 ac_header_preproc=no
1910 rm -f conftest.err conftest.i conftest.$ac_ext
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1912 $as_echo "$ac_header_preproc" >&6; }
1914 # So? What about this header?
1915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1918 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1920 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1924 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1926 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1928 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1930 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1932 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1933 ( $as_echo "## ---------------------------------------------- ##
1934 ## Report this to pgsql-bugs@lists.postgresql.org ##
1935 ## ---------------------------------------------- ##"
1936 ) | sed "s/^/$as_me: WARNING: /" >&2
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1940 $as_echo_n "checking for $2... " >&6; }
1941 if eval \${$3+:} false; then :
1942 $as_echo_n "(cached) " >&6
1944 eval "$3=\$ac_header_compiler"
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1948 $as_echo "$ac_res" >&6; }
1950 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1952 } # ac_fn_c_check_header_mongrel
1954 # ac_fn_c_try_run LINENO
1955 # ----------------------
1956 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1957 # that executables *can* be run.
1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961 if { { ac_try="$ac_link"
1963 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1964 *) ac_try_echo
=$ac_try;;
1966 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1967 $as_echo "$ac_try_echo"; } >&5
1968 (eval "$ac_link") 2>&5
1970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1971 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1972 { { case "(($ac_try" in
1973 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1974 *) ac_try_echo=$ac_try;;
1976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1977 $as_echo "$ac_try_echo"; } >&5
1978 (eval "$ac_try") 2>&5
1980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1981 test $ac_status = 0; }; }; then :
1984 $as_echo "$as_me: program exited with status $ac_status" >&5
1985 $as_echo "$as_me: failed program was:" >&5
1986 sed 's/^/| /' conftest.$ac_ext >&5
1988 ac_retval=$ac_status
1990 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1991 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1992 as_fn_set_status $ac_retval
1996 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1997 # -------------------------------------------------------
1998 # Tests whether HEADER exists and can be compiled using the include files in
1999 # INCLUDES, setting the cache variable VAR accordingly.
2000 ac_fn_c_check_header_compile ()
2002 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2004 $as_echo_n "checking for $2... " >&6; }
2005 if eval \${$3+:} false; then :
2006 $as_echo_n "(cached) " >&6
2008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009 /* end confdefs.h. */
2013 if ac_fn_c_try_compile "$LINENO"; then :
2018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2022 $as_echo "$ac_res" >&6; }
2023 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2025 } # ac_fn_c_check_header_compile
2027 # ac_fn_c_check_func LINENO FUNC VAR
2028 # ----------------------------------
2029 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2030 ac_fn_c_check_func ()
2032 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2034 $as_echo_n "checking for $2... " >&6; }
2035 if eval \${$3+:} false; then :
2036 $as_echo_n "(cached) " >&6
2038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039 /* end confdefs.h. */
2040 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2041 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2042 #define $2 innocuous_$2
2044 /* System header to define __stub macros and hopefully few prototypes,
2045 which can conflict with char $2 (); below.
2046 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2047 <limits.h> exists even on freestanding compilers. */
2050 # include <limits.h>
2052 # include <assert.h>
2057 /* Override any GCC internal prototype to avoid an error.
2058 Use char because int might match the return type of a GCC
2059 builtin and then its argument prototype would still apply. */
2064 /* The GNU C library defines this for functions which it implements
2065 to always fail with ENOSYS. Some functions are actually named
2066 something starting with __ and the normal name is an alias. */
2067 #if defined __stub_$2 || defined __stub___$2
2079 if ac_fn_c_try_link "$LINENO"; then :
2084 rm -f core conftest.err conftest.$ac_objext \
2085 conftest$ac_exeext conftest.$ac_ext
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2089 $as_echo "$ac_res" >&6; }
2090 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2092 } # ac_fn_c_check_func
2094 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2095 # -------------------------------------------
2096 # Tests whether TYPE exists after having included INCLUDES, setting cache
2097 # variable VAR accordingly.
2098 ac_fn_c_check_type ()
2100 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2102 $as_echo_n "checking for $2... " >&6; }
2103 if eval \${$3+:} false; then :
2104 $as_echo_n "(cached) " >&6
2107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108 /* end confdefs.h. */
2119 if ac_fn_c_try_compile "$LINENO"; then :
2120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2121 /* end confdefs.h. */
2132 if ac_fn_c_try_compile "$LINENO"; then :
2137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2143 $as_echo "$ac_res" >&6; }
2144 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2146 } # ac_fn_c_check_type
2148 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2149 # ----------------------------------------------------
2150 # Tries to find if the field MEMBER exists in type AGGR, after including
2151 # INCLUDES, setting cache variable VAR accordingly.
2152 ac_fn_c_check_member ()
2154 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2156 $as_echo_n "checking for $2.$3... " >&6; }
2157 if eval \${$4+:} false; then :
2158 $as_echo_n "(cached) " >&6
2160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161 /* end confdefs.h. */
2173 if ac_fn_c_try_compile "$LINENO"; then :
2176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177 /* end confdefs.h. */
2183 if (sizeof ac_aggr.$3)
2189 if ac_fn_c_try_compile "$LINENO"; then :
2194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2200 $as_echo "$ac_res" >&6; }
2201 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2203 } # ac_fn_c_check_member
2205 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2206 # --------------------------------------------
2207 # Tries to find the compile-time value of EXPR in a program that includes
2208 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2210 ac_fn_c_compute_int ()
2212 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2213 if test "$cross_compiling" = yes; then
2214 # Depending upon the size, compute the lo and hi bounds.
2215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2216 /* end confdefs.h. */
2221 static int test_array [1 - 2 * !(($2) >= 0)];
2223 return test_array [0];
2229 if ac_fn_c_try_compile "$LINENO"; then :
2232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233 /* end confdefs.h. */
2238 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2240 return test_array [0];
2246 if ac_fn_c_try_compile "$LINENO"; then :
2247 ac_hi=$ac_mid; break
2249 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2250 if test $ac_lo -le $ac_mid; then
2254 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2260 /* end confdefs.h. */
2265 static int test_array [1 - 2 * !(($2) < 0)];
2267 return test_array [0];
2273 if ac_fn_c_try_compile "$LINENO"; then :
2276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2277 /* end confdefs.h. */
2282 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2284 return test_array [0];
2290 if ac_fn_c_try_compile "$LINENO"; then :
2291 ac_lo=$ac_mid; break
2293 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2294 if test $ac_mid -le $ac_hi; then
2298 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2308 # Binary search between lo and hi bounds.
2309 while test "x$ac_lo" != "x$ac_hi"; do
2310 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2312 /* end confdefs.h. */
2317 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2319 return test_array [0];
2325 if ac_fn_c_try_compile "$LINENO"; then :
2328 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2333 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2338 /* end confdefs.h. */
2340 static long int longval () { return $2; }
2341 static unsigned long int ulongval () { return $2; }
2348 FILE *f = fopen ("conftest.val", "w");
2353 long int i = longval ();
2356 fprintf (f, "%ld", i);
2360 unsigned long int i = ulongval ();
2363 fprintf (f, "%lu", i);
2365 /* Do not output a trailing newline, as this causes \r\n confusion
2366 on some platforms. */
2367 return ferror (f) || fclose (f) != 0;
2373 if ac_fn_c_try_run "$LINENO"; then :
2374 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2378 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2379 conftest.$ac_objext conftest.beam conftest.$ac_ext
2383 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2384 as_fn_set_status $ac_retval
2386 } # ac_fn_c_compute_int
2388 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2389 # ---------------------------------------------
2390 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2392 ac_fn_c_check_decl ()
2394 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2395 # Initialize each $ac_[]_AC_LANG_ABBREV[]_decl_warn_flag once.
2396 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2397 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2399 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2400 if eval \${$3+:} false; then :
2401 $as_echo_n "(cached) " >&6
2403 ac_save_werror_flag=$ac_c_werror_flag
2404 ac_c_werror_flag="$ac_c_decl_warn_flag$ac_c_werror_flag"
2405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2406 /* end confdefs.h. */
2411 #ifndef $as_decl_name
2413 (void) $as_decl_use;
2415 (void) $as_decl_name;
2423 if ac_fn_c_try_compile "$LINENO"; then :
2428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2429 ac_c_werror_flag=$ac_save_werror_flag
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2433 $as_echo "$ac_res" >&6; }
2434 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2436 } # ac_fn_c_check_decl
2437 cat >config.log <<_ACEOF
2438 This file contains any messages produced by compilers while
2439 running configure, to aid debugging if configure makes a mistake.
2441 It was created by PostgreSQL $as_me 17devel, which was
2442 generated by GNU Autoconf 2.69. Invocation command line was
2454 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2455 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2456 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2457 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2458 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2460 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2461 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2463 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2464 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2465 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2466 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2467 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2468 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2469 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477 test -z "$as_dir" && as_dir=.
2478 $as_echo "PATH: $as_dir"
2494 # Keep a trace of the command line.
2495 # Strip out --no-create and --no-recursion so they do not pile up.
2496 # Strip out --silent because we don't want to record it for future runs.
2497 # Also quote any args containing shell meta-characters.
2498 # Make two passes to allow for proper duplicate-argument suppression.
2502 ac_must_keep_next=false
2508 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2509 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2510 | -silent | --silent | --silen | --sile | --sil)
2513 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2516 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2518 as_fn_append ac_configure_args1 " '$ac_arg'"
2519 if test $ac_must_keep_next = true; then
2520 ac_must_keep_next=false # Got value, back to normal.
2523 *=* | --config-cache | -C | -disable-* | --disable-* \
2524 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2525 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2526 | -with-* | --with-* | -without-* | --without-* | --x)
2527 case "$ac_configure_args0 " in
2528 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2531 -* ) ac_must_keep_next=true ;;
2534 as_fn_append ac_configure_args " '$ac_arg'"
2539 { ac_configure_args0=; unset ac_configure_args0;}
2540 { ac_configure_args1=; unset ac_configure_args1;}
2542 # When interrupted or exit'd, cleanup temporary files, and complete
2543 # config.log. We remove comments because anyway the quotes in there
2544 # would cause problems or look ugly.
2545 # WARNING: Use '\'' to represent an apostrophe within the trap.
2546 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2547 trap 'exit_status=$?
2548 # Save into config.log some information that might help in debugging.
2552 $as_echo "## ---------------- ##
2553 ## Cache variables. ##
2554 ## ---------------- ##"
2556 # The following way of writing the cache mishandles newlines in values,
2558 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2559 eval ac_val=\$$ac_var
2563 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2564 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2567 _ | IFS | as_nl) ;; #(
2568 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2569 *) { eval $ac_var=; unset $ac_var;} ;;
2574 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2575 *${as_nl}ac_space=\ *)
2577 "s/'\''/'\''\\\\'\'''\''/g;
2578 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2581 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2588 $as_echo "## ----------------- ##
2589 ## Output variables. ##
2590 ## ----------------- ##"
2592 for ac_var in $ac_subst_vars
2594 eval ac_val=\$$ac_var
2596 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2598 $as_echo "$ac_var='\''$ac_val'\''"
2602 if test -n "$ac_subst_files"; then
2603 $as_echo "## ------------------- ##
2604 ## File substitutions. ##
2605 ## ------------------- ##"
2607 for ac_var in $ac_subst_files
2609 eval ac_val=\$$ac_var
2611 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2613 $as_echo "$ac_var='\''$ac_val'\''"
2618 if test -s confdefs.h; then
2619 $as_echo "## ----------- ##
2626 test "$ac_signal" != 0 &&
2627 $as_echo "$as_me: caught signal $ac_signal"
2628 $as_echo "$as_me: exit $exit_status"
2630 rm -f core *.core core.conftest.* &&
2631 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2634 for ac_signal in 1 2 13 15; do
2635 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2639 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2640 rm -f -r conftest* confdefs.h
2642 $as_echo "/* confdefs.h */" > confdefs.h
2644 # Predefined preprocessor variables.
2646 cat >>confdefs.h <<_ACEOF
2647 #define PACKAGE_NAME "$PACKAGE_NAME"
2650 cat >>confdefs.h <<_ACEOF
2651 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2654 cat >>confdefs.h <<_ACEOF
2655 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2658 cat >>confdefs.h <<_ACEOF
2659 #define PACKAGE_STRING "$PACKAGE_STRING"
2662 cat >>confdefs.h <<_ACEOF
2663 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2666 cat >>confdefs.h <<_ACEOF
2667 #define PACKAGE_URL "$PACKAGE_URL"
2671 # Let the site file select an alternate cache file if it wants to.
2672 # Prefer an explicitly selected file to automatically selected ones.
2675 if test -n "$CONFIG_SITE"; then
2676 # We do not want a PATH search for config.site.
2677 case $CONFIG_SITE in #((
2678 -*) ac_site_file1=./$CONFIG_SITE;;
2679 */*) ac_site_file1=$CONFIG_SITE;;
2680 *) ac_site_file1=./$CONFIG_SITE;;
2682 elif test "x$prefix" != xNONE; then
2683 ac_site_file1=$prefix/share/config.site
2684 ac_site_file2=$prefix/etc/config.site
2686 ac_site_file1=$ac_default_prefix/share/config.site
2687 ac_site_file2=$ac_default_prefix/etc/config.site
2689 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2691 test "x$ac_site_file" = xNONE && continue
2692 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2694 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2695 sed 's/^/| /' "$ac_site_file" >&5
2697 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2698 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2699 as_fn_error $? "failed to load site
script $ac_site_file
2700 See \
`config.log' for more details" "$LINENO" 5; }
2704 if test -r "$cache_file"; then
2705 # Some versions of bash will fail to source /dev/null (special files
2706 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2707 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2709 $as_echo "$as_me: loading cache $cache_file" >&6;}
2711 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2712 *) . "./$cache_file";;
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2717 $as_echo "$as_me: creating cache $cache_file" >&6;}
2721 # Check that the precious variables saved in the cache have kept the same
2723 ac_cache_corrupted=false
2724 for ac_var in $ac_precious_vars; do
2725 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2726 eval ac_new_set=\$ac_env_${ac_var}_set
2727 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2728 eval ac_new_val=\$ac_env_${ac_var}_value
2729 case $ac_old_set,$ac_new_set in
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2732 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2733 ac_cache_corrupted=: ;;
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2736 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2737 ac_cache_corrupted=: ;;
2740 if test "x$ac_old_val" != "x$ac_new_val"; then
2741 # differences in whitespace do not lead to failure.
2742 ac_old_val_w=`echo x
$ac_old_val`
2743 ac_new_val_w=`echo x
$ac_new_val`
2744 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2746 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2747 ac_cache_corrupted=:
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2750 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2751 eval $ac_var=\$ac_old_val
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2754 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2756 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2759 # Pass precious variables to config.status.
2760 if test "$ac_new_set" = set; then
2762 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2763 *) ac_arg=$ac_var=$ac_new_val ;;
2765 case " $ac_configure_args " in
2766 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2767 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2771 if $ac_cache_corrupted; then
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2773 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2775 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2776 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2778 ## -------------------- ##
2779 ## Main body of script. ##
2780 ## -------------------- ##
2783 ac_cpp='$CPP $CPPFLAGS'
2784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2794 for ac_dir in config "$srcdir"/config; do
2795 if test -f "$ac_dir/install-sh"; then
2797 ac_install_sh="$ac_aux_dir/install-sh -c"
2799 elif test -f "$ac_dir/install.sh"; then
2801 ac_install_sh="$ac_aux_dir/install.sh -c"
2803 elif test -f "$ac_dir/shtool"; then
2805 ac_install_sh="$ac_aux_dir/shtool install -c"
2809 if test -z "$ac_aux_dir"; then
2810 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2813 # These three variables are undocumented and unsupported,
2814 # and are intended to be withdrawn in a future Autoconf release.
2815 # They can cause serious problems if a builder's source tree is in a directory
2816 # whose full name contains unusual characters.
2817 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2818 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2819 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2824 cat >>confdefs.h <<_ACEOF
2825 #define CONFIGURE_ARGS "$ac_configure_args"
2829 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\)'`
2830 PG_MINORVERSION=`expr "$PACKAGE_VERSION" : '.*\.\([0-9][0-9]*\)'`
2831 test -n "$PG_MINORVERSION" || PG_MINORVERSION=0
2834 cat >>confdefs.h <<_ACEOF
2835 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2839 cat >>confdefs.h <<_ACEOF
2840 #define PG_MAJORVERSION_NUM $PG_MAJORVERSION
2844 cat >>confdefs.h <<_ACEOF
2845 #define PG_MINORVERSION_NUM $PG_MINORVERSION
2852 # Check whether --with-extra-version was given.
2853 if test "${with_extra_version+set}" = set; then :
2854 withval=$with_extra_version;
2857 as_fn_error $? "argument required for --with-extra-version option" "$LINENO" 5
2860 as_fn_error $? "argument required for --with-extra-version option" "$LINENO" 5
2863 PG_VERSION="$PACKAGE_VERSION$withval"
2868 PG_VERSION="$PACKAGE_VERSION"
2873 cat >>confdefs.h <<_ACEOF
2874 #define PG_VERSION "$PG_VERSION"
2878 # Make sure we can run config.sub.
2879 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2880 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2883 $as_echo_n "checking build system type... " >&6; }
2884 if ${ac_cv_build+:} false; then :
2885 $as_echo_n "(cached) " >&6
2887 ac_build_alias=$build_alias
2888 test "x$ac_build_alias" = x &&
2889 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2890 test "x$ac_build_alias" = x &&
2891 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2892 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2893 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2897 $as_echo "$ac_cv_build" >&6; }
2898 case $ac_cv_build in
2900 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2903 ac_save_IFS=$IFS; IFS='-'
2909 # Remember, the first character of IFS is used to create $*,
2910 # except with old shells:
2913 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2917 $as_echo_n "checking host system type... " >&6; }
2918 if ${ac_cv_host+:} false; then :
2919 $as_echo_n "(cached) " >&6
2921 if test "x$host_alias" = x; then
2922 ac_cv_host=$ac_cv_build
2924 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2925 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2930 $as_echo "$ac_cv_host" >&6; }
2933 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2936 ac_save_IFS=$IFS; IFS='-'
2942 # Remember, the first character of IFS is used to create $*,
2943 # except with old shells:
2946 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which template to use" >&5
2952 $as_echo_n "checking which template to use... " >&6; }
2957 # Check whether --with-template was given.
2958 if test "${with_template+set}" = set; then :
2959 withval=$with_template;
2962 as_fn_error $? "argument required for --with-template option" "$LINENO" 5
2965 as_fn_error $? "argument required for --with-template option" "$LINENO" 5
2970 list) echo; ls "$srcdir/src/template"; exit;;
2971 *) if test -f "$srcdir/src/template/$with_template" ; then
2974 as_fn_error $? "'$withval' is not a valid template name. Use 'list' for a list." "$LINENO" 5
2983 # --with-template not given
2986 aix*) template=aix ;;
2987 cygwin*|msys*) template=cygwin ;;
2988 darwin*) template=darwin ;;
2989 dragonfly*) template=netbsd ;;
2990 freebsd*) template=freebsd ;;
2991 linux*|gnu*|k*bsd*-gnu)
2993 mingw*) template=win32 ;;
2994 netbsd*) template=netbsd ;;
2995 openbsd*) template=openbsd ;;
2996 solaris*) template=solaris ;;
2999 if test x"$template" = x"" ; then
3001 *******************************************************************
3002 PostgreSQL has apparently not been ported to your platform yet.
3003 To try a manual configuration, look into the src/template directory
3004 for a similar platform and use the '--with-template=' option.
3006 Please also contact <pgsql-bugs@lists.postgresql.org> to see about
3007 rectifying this. Include the above 'checking host system type...'
3009 *******************************************************************
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $template" >&5
3019 $as_echo "$template" >&6; }
3024 # Initialize default assumption that we do not need separate assembly code
3025 # for TAS (test-and-set). This can be overridden by the template file
3026 # when it's executed.
3030 # Default, works for most platforms, override in template file if needed
3036 ## Command line options
3040 # Add non-standard directories to the include path
3045 # Check whether --with-includes was given.
3046 if test "${with_includes+set}" = set; then :
3047 withval=$with_includes;
3050 as_fn_error $? "argument required for --with-includes option" "$LINENO" 5
3053 as_fn_error $? "argument required for --with-includes option" "$LINENO" 5
3066 # Add non-standard directories to the library search path
3071 # Check whether --with-libraries was given.
3072 if test "${with_libraries+set}" = set; then :
3073 withval=$with_libraries;
3076 as_fn_error $? "argument required for --with-libraries option" "$LINENO" 5
3079 as_fn_error $? "argument required for --with-libraries option" "$LINENO" 5
3082 LIBRARY_DIRS=$withval
3093 # Check whether --with-libs was given.
3094 if test "${with_libs+set}" = set; then :
3098 as_fn_error $? "argument required for --with-libs option" "$LINENO" 5
3101 as_fn_error $? "argument required for --with-libs option" "$LINENO" 5
3104 LIBRARY_DIRS=$withval
3114 # 64-bit integer date/time storage is now the only option, but to avoid
3115 # unnecessary breakage of build scripts, continue to accept an explicit
3116 # "--enable-integer-datetimes" switch.
3120 # Check whether --enable-integer-datetimes was given.
3121 if test "${enable_integer_datetimes+set}" = set; then :
3122 enableval=$enable_integer_datetimes;
3128 as_fn_error $? "--disable-integer-datetimes is no longer supported" "$LINENO" 5
3131 as_fn_error $? "no argument expected for --enable-integer-datetimes option" "$LINENO" 5
3136 enable_integer_datetimes=yes
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is wanted" >&5
3147 $as_echo_n "checking whether NLS is wanted... " >&6; }
3150 # Check whether --enable-nls was given.
3151 if test "${enable_nls+set}" = set; then :
3152 enableval=$enable_nls;
3162 WANTED_LANGUAGES=$enableval
3172 if test "$enable_nls" = yes; then
3174 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nls" >&5
3179 $as_echo "$enable_nls" >&6; }
3184 # Default port number (--with-pgport), default 5432
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default port number" >&5
3187 $as_echo_n "checking for default port number... " >&6; }
3191 # Check whether --with-pgport was given.
3192 if test "${with_pgport+set}" = set; then :
3193 withval=$with_pgport;
3196 as_fn_error $? "argument required for --with-pgport option" "$LINENO" 5
3199 as_fn_error $? "argument required for --with-pgport option" "$LINENO" 5
3202 default_port=$withval
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $default_port" >&5
3212 $as_echo "$default_port" >&6; }
3213 # Need both of these because some places want an integer and some a string
3215 cat >>confdefs.h <<_ACEOF
3216 #define DEF_PGPORT ${default_port}
3220 cat >>confdefs.h <<_ACEOF
3221 #define DEF_PGPORT_STR "${default_port}"
3226 # It's worth validating port; you can get very confusing errors otherwise
3227 if test x"$default_port" = x""; then
3228 as_fn_error $? "invalid --with-pgport specification: empty string" "$LINENO" 5
3229 elif test ! x`echo "$default_port" |
sed -e 's/[0-9]*//'` = x""; then
3230 as_fn_error $? "invalid --with-pgport specification: must be a number" "$LINENO" 5
3231 elif test ! x`echo "$default_port" |
sed -e 's/^0.//'` = x"$default_port"; then
3232 as_fn_error $? "invalid --with-pgport specification: must not have leading 0" "$LINENO" 5
3233 elif test "$default_port" -lt "1" -o "$default_port" -gt "65535"; then
3234 as_fn_error $? "invalid --with-pgport specification: must be between 1 and 65535" "$LINENO" 5
3238 # '-rpath'-like feature can be disabled
3242 # Check whether --enable-rpath was given.
3243 if test "${enable_rpath+set}" = set; then :
3244 enableval=$enable_rpath;
3253 as_fn_error $? "no argument expected for --enable-rpath option" "$LINENO" 5
3270 # Check whether --enable-spinlocks was given.
3271 if test "${enable_spinlocks+set}" = set; then :
3272 enableval=$enable_spinlocks;
3281 as_fn_error $? "no argument expected for --enable-spinlocks option" "$LINENO" 5
3286 enable_spinlocks=yes
3297 # Check whether --enable-atomics was given.
3298 if test "${enable_atomics+set}" = set; then :
3299 enableval=$enable_atomics;
3308 as_fn_error $? "no argument expected for --enable-atomics option" "$LINENO" 5
3320 # --enable-debug adds -g to compiler flags
3324 # Check whether --enable-debug was given.
3325 if test "${enable_debug+set}" = set; then :
3326 enableval=$enable_debug;
3335 as_fn_error $? "no argument expected for --enable-debug option" "$LINENO" 5
3348 # --enable-profiling enables gcc profiling
3352 # Check whether --enable-profiling was given.
3353 if test "${enable_profiling+set}" = set; then :
3354 enableval=$enable_profiling;
3363 as_fn_error $? "no argument expected for --enable-profiling option" "$LINENO" 5
3375 # --enable-coverage enables generation of code coverage metrics with gcov
3379 # Check whether --enable-coverage was given.
3380 if test "${enable_coverage+set}" = set; then :
3381 enableval=$enable_coverage;
3384 if test -z "$GCOV"; then
3387 # Extract the first word of "$ac_prog", so it can be a program name with args.
3388 set dummy $ac_prog; ac_word=$2
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3390 $as_echo_n "checking for $ac_word... " >&6; }
3391 if ${ac_cv_path_GCOV+:} false; then :
3392 $as_echo_n "(cached) " >&6
3396 ac_cv_path_GCOV="$GCOV" # Let the user override the test with a path.
3399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3403 test -z "$as_dir" && as_dir=.
3404 for ac_exec_ext in '' $ac_executable_extensions; do
3405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3406 ac_cv_path_GCOV="$as_dir/$ac_word$ac_exec_ext"
3407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3417 GCOV=$ac_cv_path_GCOV
3418 if test -n "$GCOV"; then
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3420 $as_echo "$GCOV" >&6; }
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3423 $as_echo "no" >&6; }
3427 test -n "$GCOV" && break
3431 # Report the value of GCOV in configure's output in all cases.
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCOV" >&5
3433 $as_echo_n "checking for GCOV... " >&6; }
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3435 $as_echo "$GCOV" >&6; }
3438 if test -z "$GCOV"; then
3439 as_fn_error $? "gcov not found" "$LINENO" 5
3441 if test -z "$LCOV"; then
3444 # Extract the first word of "$ac_prog", so it can be a program name with args.
3445 set dummy $ac_prog; ac_word=$2
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3447 $as_echo_n "checking for $ac_word... " >&6; }
3448 if ${ac_cv_path_LCOV+:} false; then :
3449 $as_echo_n "(cached) " >&6
3453 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
3456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3460 test -z "$as_dir" && as_dir=.
3461 for ac_exec_ext in '' $ac_executable_extensions; do
3462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3463 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
3464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3474 LCOV=$ac_cv_path_LCOV
3475 if test -n "$LCOV"; then
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3477 $as_echo "$LCOV" >&6; }
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3480 $as_echo "no" >&6; }
3484 test -n "$LCOV" && break
3488 # Report the value of LCOV in configure's output in all cases.
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCOV" >&5
3490 $as_echo_n "checking for LCOV... " >&6; }
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3492 $as_echo "$LCOV" >&6; }
3495 if test -z "$LCOV"; then
3496 as_fn_error $? "lcov not found" "$LINENO" 5
3498 if test -z "$GENHTML"; then
3499 for ac_prog in genhtml
3501 # Extract the first word of "$ac_prog", so it can be a program name with args.
3502 set dummy $ac_prog; ac_word=$2
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3504 $as_echo_n "checking for $ac_word... " >&6; }
3505 if ${ac_cv_path_GENHTML+:} false; then :
3506 $as_echo_n "(cached) " >&6
3510 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
3513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3517 test -z "$as_dir" && as_dir=.
3518 for ac_exec_ext in '' $ac_executable_extensions; do
3519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3520 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
3521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3531 GENHTML=$ac_cv_path_GENHTML
3532 if test -n "$GENHTML"; then
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3534 $as_echo "$GENHTML" >&6; }
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3537 $as_echo "no" >&6; }
3541 test -n "$GENHTML" && break
3545 # Report the value of GENHTML in configure's output in all cases.
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GENHTML" >&5
3547 $as_echo_n "checking for GENHTML... " >&6; }
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3549 $as_echo "$GENHTML" >&6; }
3552 if test -z "$GENHTML"; then
3553 as_fn_error $? "genhtml not found" "$LINENO" 5
3560 as_fn_error $? "no argument expected for --enable-coverage option" "$LINENO" 5
3577 # Check whether --enable-dtrace was given.
3578 if test "${enable_dtrace+set}" = set; then :
3579 enableval=$enable_dtrace;
3582 if test -z "$DTRACE"; then
3583 for ac_prog in dtrace
3585 # Extract the first word of "$ac_prog", so it can be a program name with args.
3586 set dummy $ac_prog; ac_word=$2
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3588 $as_echo_n "checking for $ac_word... " >&6; }
3589 if ${ac_cv_path_DTRACE+:} false; then :
3590 $as_echo_n "(cached) " >&6
3594 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
3597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3601 test -z "$as_dir" && as_dir=.
3602 for ac_exec_ext in '' $ac_executable_extensions; do
3603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3604 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
3605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3615 DTRACE=$ac_cv_path_DTRACE
3616 if test -n "$DTRACE"; then
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
3618 $as_echo "$DTRACE" >&6; }
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3621 $as_echo "no" >&6; }
3625 test -n "$DTRACE" && break
3629 # Report the value of DTRACE in configure's output in all cases.
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5
3631 $as_echo_n "checking for DTRACE... " >&6; }
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
3633 $as_echo "$DTRACE" >&6; }
3636 if test -z "$DTRACE"; then
3637 as_fn_error $? "dtrace not found" "$LINENO" 5
3645 as_fn_error $? "no argument expected for --enable-dtrace option" "$LINENO" 5
3662 # Check whether --enable-tap-tests was given.
3663 if test "${enable_tap_tests+set}" = set; then :
3664 enableval=$enable_tap_tests;
3673 as_fn_error $? "no argument expected for --enable-tap-tests option" "$LINENO" 5
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for block size" >&5
3689 $as_echo_n "checking for block size... " >&6; }
3693 # Check whether --with-blocksize was given.
3694 if test "${with_blocksize+set}" = set; then :
3695 withval=$with_blocksize;
3698 as_fn_error $? "argument required for --with-blocksize option" "$LINENO" 5
3701 as_fn_error $? "argument required for --with-blocksize option" "$LINENO" 5
3713 case ${blocksize} in
3720 *) as_fn_error $? "Invalid block size. Allowed values are 1,2,4,8,16,32." "$LINENO" 5
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${blocksize}kB" >&5
3723 $as_echo "${blocksize}kB" >&6; }
3726 cat >>confdefs.h <<_ACEOF
3727 #define BLCKSZ ${BLCKSZ}
3732 # Relation segment size
3737 # Check whether --with-segsize was given.
3738 if test "${with_segsize+set}" = set; then :
3739 withval=$with_segsize;
3742 as_fn_error $? "argument required for --with-segsize option" "$LINENO" 5
3745 as_fn_error $? "argument required for --with-segsize option" "$LINENO" 5
3760 # Check whether --with-segsize-blocks was given.
3761 if test "${with_segsize_blocks+set}" = set; then :
3762 withval=$with_segsize_blocks;
3765 as_fn_error $? "argument required for --with-segsize-blocks option" "$LINENO" 5
3768 as_fn_error $? "argument required for --with-segsize-blocks option" "$LINENO" 5
3771 segsize_blocks=$withval
3781 # If --with-segsize-blocks is non-zero, it is used, --with-segsize
3782 # otherwise. segsize-blocks is only really useful for developers wanting to
3783 # test segment related code. Warn if both are used.
3784 if test $segsize_blocks -ne 0 -a $segsize -ne 1; then
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: both --with-segsize and --with-segsize-blocks specified, --with-segsize-blocks wins" >&5
3786 $as_echo "$as_me: WARNING: both --with-segsize and --with-segsize-blocks specified, --with-segsize-blocks wins" >&2;}
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for segment size" >&5
3790 $as_echo_n "checking for segment size... " >&6; }
3791 if test $segsize_blocks -eq 0; then
3792 # this expression is set up to avoid unnecessary integer overflow
3793 # blocksize is already guaranteed to be a factor of 1024
3794 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
3795 test $? -eq 0 || exit 1
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${segsize}GB" >&5
3797 $as_echo "${segsize}GB" >&6; }
3799 RELSEG_SIZE=$segsize_blocks
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${RELSEG_SIZE} blocks" >&5
3801 $as_echo "${RELSEG_SIZE} blocks" >&6; }
3805 cat >>confdefs.h <<_ACEOF
3806 #define RELSEG_SIZE ${RELSEG_SIZE}
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAL block size" >&5
3814 $as_echo_n "checking for WAL block size... " >&6; }
3818 # Check whether --with-wal-blocksize was given.
3819 if test "${with_wal_blocksize+set}" = set; then :
3820 withval=$with_wal_blocksize;
3823 as_fn_error $? "argument required for --with-wal-blocksize option" "$LINENO" 5
3826 as_fn_error $? "argument required for --with-wal-blocksize option" "$LINENO" 5
3829 wal_blocksize=$withval
3838 case ${wal_blocksize} in
3839 1) XLOG_BLCKSZ=1024;;
3840 2) XLOG_BLCKSZ=2048;;
3841 4) XLOG_BLCKSZ=4096;;
3842 8) XLOG_BLCKSZ=8192;;
3843 16) XLOG_BLCKSZ=16384;;
3844 32) XLOG_BLCKSZ=32768;;
3845 64) XLOG_BLCKSZ=65536;;
3846 *) as_fn_error $? "Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." "$LINENO" 5
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${wal_blocksize}kB" >&5
3849 $as_echo "${wal_blocksize}kB" >&6; }
3852 cat >>confdefs.h <<_ACEOF
3853 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
3861 # For historical reasons you can also use --with-CC to specify the C compiler
3862 # to use, although the standard way to do this is to set the CC environment
3867 # Check whether --with-CC was given.
3868 if test "${with_CC+set}" = set; then :
3872 as_fn_error $? "argument required for --with-CC option" "$LINENO" 5
3875 as_fn_error $? "argument required for --with-CC option" "$LINENO" 5
3887 aix) pgac_cc_list="gcc xlc"; pgac_cxx_list="g++ xlC";;
3888 *) pgac_cc_list="gcc cc"; pgac_cxx_list="g++ c++";;
3892 ac_cpp='$CPP $CPPFLAGS'
3893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3896 if test -n "$ac_tool_prefix"; then
3897 for ac_prog in $pgac_cc_list
3899 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3900 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3902 $as_echo_n "checking for $ac_word... " >&6; }
3903 if ${ac_cv_prog_CC+:} false; then :
3904 $as_echo_n "(cached) " >&6
3906 if test -n "$CC"; then
3907 ac_cv_prog_CC="$CC" # Let the user override the test.
3909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913 test -z "$as_dir" && as_dir=.
3914 for ac_exec_ext in '' $ac_executable_extensions; do
3915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3916 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3927 if test -n "$CC"; then
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3929 $as_echo "$CC" >&6; }
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3932 $as_echo "no" >&6; }
3936 test -n "$CC" && break
3939 if test -z "$CC"; then
3941 for ac_prog in $pgac_cc_list
3943 # Extract the first word of "$ac_prog", so it can be a program name with args.
3944 set dummy $ac_prog; ac_word=$2
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3946 $as_echo_n "checking for $ac_word... " >&6; }
3947 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3948 $as_echo_n "(cached) " >&6
3950 if test -n "$ac_ct_CC"; then
3951 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957 test -z "$as_dir" && as_dir=.
3958 for ac_exec_ext in '' $ac_executable_extensions; do
3959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3960 ac_cv_prog_ac_ct_CC="$ac_prog"
3961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3970 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3971 if test -n "$ac_ct_CC"; then
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3973 $as_echo "$ac_ct_CC" >&6; }
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3976 $as_echo "no" >&6; }
3980 test -n "$ac_ct_CC" && break
3983 if test "x$ac_ct_CC" = x; then
3986 case $cross_compiling:$ac_tool_warned in
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3989 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3990 ac_tool_warned=yes ;;
3997 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3998 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3999 as_fn_error $? "no acceptable C compiler found
in \
$PATH
4000 See \
`config.log' for more details" "$LINENO" 5; }
4002 # Provide some information about the compiler.
4003 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4006 for ac_option in --version -v -V -qversion; do
4007 { { ac_try="$ac_compiler $ac_option >&5"
4009 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4010 *) ac_try_echo
=$ac_try;;
4012 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4013 $as_echo "$ac_try_echo"; } >&5
4014 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4016 if test -s conftest.err
; then
4018 ... rest of stderr output deleted ...
4019 10q' conftest.err
>conftest.er1
4020 cat conftest.er1
>&5
4022 rm -f conftest.er1 conftest.err
4023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4024 test $ac_status = 0; }
4027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4028 /* end confdefs.h. */
4038 ac_clean_files_save
=$ac_clean_files
4039 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4040 # Try to create an executable without -o first, disregard a.out.
4041 # It will help us diagnose broken compilers, and finding out an intuition
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4044 $as_echo_n "checking whether the C compiler works... " >&6; }
4045 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4047 # The possible output files:
4048 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4051 for ac_file
in $ac_files
4054 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4055 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
4060 if { { ac_try
="$ac_link_default"
4062 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4063 *) ac_try_echo=$ac_try;;
4065 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4066 $as_echo "$ac_try_echo"; } >&5
4067 (eval "$ac_link_default") 2>&5
4069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4070 test $ac_status = 0; }; then :
4071 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
4072 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
4073 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4074 # so that the user can short-circuit this test for compilers unknown to
4076 for ac_file in $ac_files ''
4078 test -f "$ac_file" || continue
4080 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4083 # We found the default executable, but exeext='' is most
4087 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4089 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4091 # We set ac_cv_exeext here because the later test for it is not
4092 # safe: cross compilers may not add the suffix if given an `-o'
4093 # argument, so we may need to know it at that point already.
4094 # Even if this section looks crufty: it has the advantage of
4101 test "$ac_cv_exeext" = no && ac_cv_exeext=
4106 if test -z "$ac_file"; then :
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4108 $as_echo "no" >&6; }
4109 $as_echo "$as_me: failed program was:" >&5
4110 sed 's
/^
/|
/' conftest.$ac_ext >&5
4112 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4113 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
4114 as_fn_error 77 "C compiler cannot create executables
4115 See \`config.log
' for more details" "$LINENO" 5; }
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4118 $as_echo "yes" >&6; }
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4121 $as_echo_n "checking for C compiler default output file name... " >&6; }
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4123 $as_echo "$ac_file" >&6; }
4124 ac_exeext=$ac_cv_exeext
4126 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4127 ac_clean_files=$ac_clean_files_save
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4129 $as_echo_n "checking for suffix of executables... " >&6; }
4130 if { { ac_try="$ac_link"
4132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4133 *) ac_try_echo=$ac_try;;
4135 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4136 $as_echo "$ac_try_echo"; } >&5
4137 (eval "$ac_link") 2>&5
4139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4140 test $ac_status = 0; }; then :
4141 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
4142 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
4143 # work properly (i.e., refer to `conftest.exe
'), while it won't with
4145 for ac_file
in conftest.exe conftest conftest.
*; do
4146 test -f "$ac_file" ||
continue
4148 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4149 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4155 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4157 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4158 See \`config.log' for more details" "$LINENO" 5; }
4160 rm -f conftest conftest
$ac_cv_exeext
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4162 $as_echo "$ac_cv_exeext" >&6; }
4164 rm -f conftest.
$ac_ext
4165 EXEEXT
=$ac_cv_exeext
4167 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4168 /* end confdefs.h. */
4173 FILE *f = fopen ("conftest.out", "w");
4174 return ferror (f) || fclose (f) != 0;
4180 ac_clean_files
="$ac_clean_files conftest.out"
4181 # Check that the compiler produces executables we can run. If not, either
4182 # the compiler is broken, or we cross compile.
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4184 $as_echo_n "checking whether we are cross compiling... " >&6; }
4185 if test "$cross_compiling" != yes; then
4186 { { ac_try
="$ac_link"
4188 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4189 *) ac_try_echo=$ac_try;;
4191 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4192 $as_echo "$ac_try_echo"; } >&5
4193 (eval "$ac_link") 2>&5
4195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4196 test $ac_status = 0; }
4197 if { ac_try='./conftest$ac_cv_exeext'
4198 { { case "(($ac_try" in
4199 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4200 *) ac_try_echo
=$ac_try;;
4202 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4203 $as_echo "$ac_try_echo"; } >&5
4204 (eval "$ac_try") 2>&5
4206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4207 test $ac_status = 0; }; }; then
4210 if test "$cross_compiling" = maybe
; then
4213 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4215 as_fn_error $?
"cannot run C compiled programs.
4216 If you meant to cross compile, use \`--host'.
4217 See \`config.log' for more details" "$LINENO" 5; }
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4222 $as_echo "$cross_compiling" >&6; }
4224 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4225 ac_clean_files
=$ac_clean_files_save
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4227 $as_echo_n "checking for suffix of object files... " >&6; }
4228 if ${ac_cv_objext+:} false
; then :
4229 $as_echo_n "(cached) " >&6
4231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4232 /* end confdefs.h. */
4242 rm -f conftest.o conftest.obj
4243 if { { ac_try
="$ac_compile"
4245 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4246 *) ac_try_echo=$ac_try;;
4248 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4249 $as_echo "$ac_try_echo"; } >&5
4250 (eval "$ac_compile") 2>&5
4252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4253 test $ac_status = 0; }; then :
4254 for ac_file in conftest.o conftest.obj conftest.*; do
4255 test -f "$ac_file" || continue;
4257 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4258 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4263 $as_echo "$as_me: failed program was:" >&5
4264 sed 's/^/| /' conftest.$ac_ext >&5
4266 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4268 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4269 See \
`config.log' for more details" "$LINENO" 5; }
4271 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4274 $as_echo "$ac_cv_objext" >&6; }
4275 OBJEXT=$ac_cv_objext
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4278 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4279 if ${ac_cv_c_compiler_gnu+:} false; then :
4280 $as_echo_n "(cached) " >&6
4282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283 /* end confdefs.h. */
4296 if ac_fn_c_try_compile "$LINENO"; then :
4301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4302 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4306 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4307 if test $ac_compiler_gnu = yes; then
4312 ac_test_CFLAGS=${CFLAGS+set}
4313 ac_save_CFLAGS=$CFLAGS
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4315 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4316 if ${ac_cv_prog_cc_g+:} false; then :
4317 $as_echo_n "(cached) " >&6
4319 ac_save_c_werror_flag=$ac_c_werror_flag
4320 ac_c_werror_flag=yes
4323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4324 /* end confdefs.h. */
4334 if ac_fn_c_try_compile "$LINENO"; then :
4338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4339 /* end confdefs.h. */
4349 if ac_fn_c_try_compile "$LINENO"; then :
4352 ac_c_werror_flag=$ac_save_c_werror_flag
4354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4355 /* end confdefs.h. */
4365 if ac_fn_c_try_compile "$LINENO"; then :
4368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4373 ac_c_werror_flag=$ac_save_c_werror_flag
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4376 $as_echo "$ac_cv_prog_cc_g" >&6; }
4377 if test "$ac_test_CFLAGS" = set; then
4378 CFLAGS=$ac_save_CFLAGS
4379 elif test $ac_cv_prog_cc_g = yes; then
4380 if test "$GCC" = yes; then
4386 if test "$GCC" = yes; then
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4393 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4394 if ${ac_cv_prog_cc_c89+:} false; then :
4395 $as_echo_n "(cached) " >&6
4397 ac_cv_prog_cc_c89=no
4399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4400 /* end confdefs.h. */
4404 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4405 struct buf { int x; };
4406 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4407 static char *e (p, i)
4413 static char *f (char * (*g) (char **, int), char **p, ...)
4418 s = g (p, va_arg (v,int));
4423 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4424 function prototypes and stuff, but not '\xHH' hex character constants.
4425 These don't provoke an error unfortunately, instead are silently treated
4426 as 'x'. The following induces an error, until -std is added to get
4427 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4428 array size at least. It's necessary to write '\x00'==0 to get something
4429 that's true only with -std. */
4430 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4432 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4433 inside strings and character constants. */
4435 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4437 int test (int i, double x);
4438 struct s1 {int (*f) (int a);};
4439 struct s2 {int (*f) (double a);};
4440 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4446 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4451 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4452 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4454 CC="$ac_save_CC $ac_arg"
4455 if ac_fn_c_try_compile "$LINENO"; then :
4456 ac_cv_prog_cc_c89=$ac_arg
4458 rm -f core conftest.err conftest.$ac_objext
4459 test "x$ac_cv_prog_cc_c89" != "xno" && break
4461 rm -f conftest.$ac_ext
4466 case "x$ac_cv_prog_cc_c89" in
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4469 $as_echo "none needed" >&6; } ;;
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4472 $as_echo "unsupported" >&6; } ;;
4474 CC="$CC $ac_cv_prog_cc_c89"
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4476 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4478 if test "x$ac_cv_prog_cc_c89" != xno; then :
4483 ac_cpp='$CPP $CPPFLAGS'
4484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4489 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4490 if ${ac_cv_prog_cc_c99+:} false; then :
4491 $as_echo_n "(cached) " >&6
4493 ac_cv_prog_cc_c99=no
4495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4496 /* end confdefs.h. */
4498 #include <stdbool.h>
4503 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4504 #define debug(...) fprintf (stderr, __VA_ARGS__)
4505 #define showlist(...) puts (#__VA_ARGS__)
4506 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4508 test_varargs_macros (void)
4513 debug ("X = %d\n", x);
4514 showlist (The first, second, and third items.);
4515 report (x>y, "x is %d but y is %d", x, y);
4518 // Check long long types.
4519 #define BIG64 18446744073709551615ull
4520 #define BIG32 4294967295ul
4521 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4523 your preprocessor is broken;
4527 your preprocessor is broken;
4529 static long long int bignum = -9223372036854775807LL;
4530 static unsigned long long int ubignum = BIG64;
4532 struct incomplete_array
4540 const wchar_t *name;
4544 typedef const char *ccp;
4547 test_restrict (ccp restrict text)
4549 // See if C++-style comments work.
4550 // Iterate through items via the restricted pointer.
4551 // Also check for declarations in for loops.
4552 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4557 // Check varargs and va_copy.
4559 test_varargs (const char *format, ...)
4562 va_start (args, format);
4564 va_copy (args_copy, args);
4575 str = va_arg (args_copy, const char *);
4578 number = va_arg (args_copy, int);
4581 fnumber = va_arg (args_copy, double);
4596 _Bool success = false;
4599 if (test_restrict ("String literal") == 0)
4601 char *restrict newvar = "Another string";
4604 test_varargs ("s, d' f .", "string", 65, 34.234);
4605 test_varargs_macros ();
4607 // Check flexible array members.
4608 struct incomplete_array *ia =
4609 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4611 for (int i = 0; i < ia->datasize; ++i)
4612 ia->data[i] = i * 1.234;
4614 // Check named initializers.
4615 struct named_init ni = {
4617 .name = L"Test wide string",
4618 .average = 543.34343,
4623 int dynamic_array[ni.number];
4624 dynamic_array[ni.number - 1] = 543;
4626 // work around unused variable warnings
4627 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4628 || dynamic_array[ni.number - 1] != 543);
4634 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4636 CC="$ac_save_CC $ac_arg"
4637 if ac_fn_c_try_compile "$LINENO"; then :
4638 ac_cv_prog_cc_c99=$ac_arg
4640 rm -f core conftest.err conftest.$ac_objext
4641 test "x$ac_cv_prog_cc_c99" != "xno" && break
4643 rm -f conftest.$ac_ext
4648 case "x$ac_cv_prog_cc_c99" in
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4651 $as_echo "none needed" >&6; } ;;
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4654 $as_echo "unsupported" >&6; } ;;
4656 CC="$CC $ac_cv_prog_cc_c99"
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4658 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4660 if test "x$ac_cv_prog_cc_c99" != xno; then :
4666 # Error out if the compiler does not support C99, as the codebase
4668 if test "$ac_cv_prog_cc_c99" = no; then
4669 as_fn_error $? "C compiler \"$CC\" does not support C99" "$LINENO" 5
4673 ac_cpp='$CXXCPP $CPPFLAGS'
4674 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4675 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4676 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4677 if test -z "$CXX"; then
4678 if test -n "$CCC"; then
4681 if test -n "$ac_tool_prefix"; then
4682 for ac_prog in $pgac_cxx_list
4684 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4685 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4687 $as_echo_n "checking for $ac_word... " >&6; }
4688 if ${ac_cv_prog_CXX+:} false; then :
4689 $as_echo_n "(cached) " >&6
4691 if test -n "$CXX"; then
4692 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 test -z "$as_dir" && as_dir=.
4699 for ac_exec_ext in '' $ac_executable_extensions; do
4700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4701 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4712 if test -n "$CXX"; then
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4714 $as_echo "$CXX" >&6; }
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717 $as_echo "no" >&6; }
4721 test -n "$CXX" && break
4724 if test -z "$CXX"; then
4726 for ac_prog in $pgac_cxx_list
4728 # Extract the first word of "$ac_prog", so it can be a program name with args.
4729 set dummy $ac_prog; ac_word=$2
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4731 $as_echo_n "checking for $ac_word... " >&6; }
4732 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4733 $as_echo_n "(cached) " >&6
4735 if test -n "$ac_ct_CXX"; then
4736 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742 test -z "$as_dir" && as_dir=.
4743 for ac_exec_ext in '' $ac_executable_extensions; do
4744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4745 ac_cv_prog_ac_ct_CXX="$ac_prog"
4746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4755 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4756 if test -n "$ac_ct_CXX"; then
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4758 $as_echo "$ac_ct_CXX" >&6; }
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4761 $as_echo "no" >&6; }
4765 test -n "$ac_ct_CXX" && break
4768 if test "x$ac_ct_CXX" = x; then
4771 case $cross_compiling:$ac_tool_warned in
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4775 ac_tool_warned=yes ;;
4783 # Provide some information about the compiler.
4784 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4787 for ac_option in --version -v -V -qversion; do
4788 { { ac_try="$ac_compiler $ac_option >&5"
4790 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4791 *) ac_try_echo
=$ac_try;;
4793 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4794 $as_echo "$ac_try_echo"; } >&5
4795 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4797 if test -s conftest.err
; then
4799 ... rest of stderr output deleted ...
4800 10q' conftest.err
>conftest.er1
4801 cat conftest.er1
>&5
4803 rm -f conftest.er1 conftest.err
4804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4805 test $ac_status = 0; }
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4809 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4810 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
4811 $as_echo_n "(cached) " >&6
4813 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4814 /* end confdefs.h. */
4827 if ac_fn_cxx_try_compile
"$LINENO"; then :
4832 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4833 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4837 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4838 if test $ac_compiler_gnu = yes; then
4843 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4844 ac_save_CXXFLAGS
=$CXXFLAGS
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4846 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4847 if ${ac_cv_prog_cxx_g+:} false
; then :
4848 $as_echo_n "(cached) " >&6
4850 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4851 ac_cxx_werror_flag
=yes
4854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4855 /* end confdefs.h. */
4865 if ac_fn_cxx_try_compile
"$LINENO"; then :
4866 ac_cv_prog_cxx_g
=yes
4869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4870 /* end confdefs.h. */
4880 if ac_fn_cxx_try_compile
"$LINENO"; then :
4883 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4886 /* end confdefs.h. */
4896 if ac_fn_cxx_try_compile
"$LINENO"; then :
4897 ac_cv_prog_cxx_g
=yes
4899 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4901 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4903 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4904 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4907 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4908 if test "$ac_test_CXXFLAGS" = set; then
4909 CXXFLAGS
=$ac_save_CXXFLAGS
4910 elif test $ac_cv_prog_cxx_g = yes; then
4911 if test "$GXX" = yes; then
4917 if test "$GXX" = yes; then
4924 ac_cpp
='$CPP $CPPFLAGS'
4925 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4926 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4927 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4930 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
4931 # but has idiosyncrasies of its own. We assume icc will define
4932 # __INTEL_COMPILER regardless of CFLAGS.
4934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4935 /* end confdefs.h. */
4940 #ifndef __INTEL_COMPILER
4947 if ac_fn_c_try_compile
"$LINENO"; then :
4952 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4954 # Check if it's Sun Studio compiler. We assume that
4955 # __SUNPRO_C will be defined for Sun Studio compilers
4956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4957 /* end confdefs.h. */
4969 if ac_fn_c_try_compile
"$LINENO"; then :
4974 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4982 # Checked early because subsequent tests depend on it.
4986 # Check whether --with-llvm was given.
4987 if test "${with_llvm+set}" = set; then :
4992 $as_echo "#define USE_LLVM 1" >>confdefs.h
4999 as_fn_error $?
"no argument expected for --with-llvm option" "$LINENO" 5
5010 for ac_prog
in gawk mawk nawk
awk
5012 # Extract the first word of "$ac_prog", so it can be a program name with args.
5013 set dummy
$ac_prog; ac_word
=$2
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5015 $as_echo_n "checking for $ac_word... " >&6; }
5016 if ${ac_cv_prog_AWK+:} false
; then :
5017 $as_echo_n "(cached) " >&6
5019 if test -n "$AWK"; then
5020 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
5022 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5026 test -z "$as_dir" && as_dir
=.
5027 for ac_exec_ext
in '' $ac_executable_extensions; do
5028 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5029 ac_cv_prog_AWK
="$ac_prog"
5030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5040 if test -n "$AWK"; then
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5042 $as_echo "$AWK" >&6; }
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5045 $as_echo "no" >&6; }
5049 test -n "$AWK" && break
5052 if test "$with_llvm" = yes; then :
5058 if test -z "$LLVM_CONFIG"; then
5059 for ac_prog
in llvm-config llvm-config-7 llvm-config-6.0 llvm-config-5.0 llvm-config-4.0 llvm-config-3.9
5061 # Extract the first word of "$ac_prog", so it can be a program name with args.
5062 set dummy
$ac_prog; ac_word
=$2
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5064 $as_echo_n "checking for $ac_word... " >&6; }
5065 if ${ac_cv_path_LLVM_CONFIG+:} false
; then :
5066 $as_echo_n "(cached) " >&6
5068 case $LLVM_CONFIG in
5070 ac_cv_path_LLVM_CONFIG
="$LLVM_CONFIG" # Let the user override the test with a path.
5073 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5077 test -z "$as_dir" && as_dir
=.
5078 for ac_exec_ext
in '' $ac_executable_extensions; do
5079 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5080 ac_cv_path_LLVM_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5091 LLVM_CONFIG
=$ac_cv_path_LLVM_CONFIG
5092 if test -n "$LLVM_CONFIG"; then
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5
5094 $as_echo "$LLVM_CONFIG" >&6; }
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5097 $as_echo "no" >&6; }
5101 test -n "$LLVM_CONFIG" && break
5105 # Report the value of LLVM_CONFIG in configure's output in all cases.
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LLVM_CONFIG" >&5
5107 $as_echo_n "checking for LLVM_CONFIG... " >&6; }
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5
5109 $as_echo "$LLVM_CONFIG" >&6; }
5113 # no point continuing if llvm wasn't found
5114 if test -z "$LLVM_CONFIG"; then
5115 as_fn_error $?
"llvm-config not found, but required when compiling --with-llvm, specify with LLVM_CONFIG=" "$LINENO" 5
5117 # check if detected $LLVM_CONFIG is executable
5118 pgac_llvm_version
="$($LLVM_CONFIG --version 2> /dev/null || echo no)"
5119 if test "x$pgac_llvm_version" = "xno"; then
5120 as_fn_error $?
"$LLVM_CONFIG does not work" "$LINENO" 5
5122 # and whether the version is supported
5123 if echo $pgac_llvm_version |
$AWK -F '.' '{ if ($1 >= 4 || ($1 == 3 && $2 >= 9)) exit 1; else exit 0;}';then
5124 as_fn_error $?
"$LLVM_CONFIG version is $pgac_llvm_version but at least 3.9 is required" "$LINENO" 5
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: using llvm $pgac_llvm_version" >&5
5127 $as_echo "$as_me: using llvm $pgac_llvm_version" >&6;}
5129 # need clang to create some bitcode files
5131 if test -z "$CLANG"; then
5132 for ac_prog
in clang clang-7 clang-6.0 clang-5.0 clang-4.0 clang-3.9
5134 # Extract the first word of "$ac_prog", so it can be a program name with args.
5135 set dummy
$ac_prog; ac_word
=$2
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5137 $as_echo_n "checking for $ac_word... " >&6; }
5138 if ${ac_cv_path_CLANG+:} false
; then :
5139 $as_echo_n "(cached) " >&6
5143 ac_cv_path_CLANG
="$CLANG" # Let the user override the test with a path.
5146 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5150 test -z "$as_dir" && as_dir
=.
5151 for ac_exec_ext
in '' $ac_executable_extensions; do
5152 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5153 ac_cv_path_CLANG
="$as_dir/$ac_word$ac_exec_ext"
5154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5164 CLANG
=$ac_cv_path_CLANG
5165 if test -n "$CLANG"; then
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG" >&5
5167 $as_echo "$CLANG" >&6; }
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5170 $as_echo "no" >&6; }
5174 test -n "$CLANG" && break
5178 # Report the value of CLANG in configure's output in all cases.
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CLANG" >&5
5180 $as_echo_n "checking for CLANG... " >&6; }
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG" >&5
5182 $as_echo "$CLANG" >&6; }
5185 if test -z "$CLANG"; then
5186 as_fn_error $?
"clang not found, but required when compiling --with-llvm, specify with CLANG=" "$LINENO" 5
5188 # make sure clang is executable
5189 if test "x$($CLANG --version 2> /dev/null || echo no)" = "xno"; then
5190 as_fn_error $?
"$CLANG does not work" "$LINENO" 5
5192 # Could check clang version, but it doesn't seem that
5193 # important. Systems with a new enough LLVM version are usually
5194 # going to have a decent clang version too. It's also not entirely
5195 # clear what the minimum version is.
5197 # Collect compiler flags necessary to build the LLVM dependent
5199 for pgac_option
in `$LLVM_CONFIG --cppflags`; do
5200 case $pgac_option in
5201 -I*|
-D*) LLVM_CPPFLAGS
="$pgac_option $LLVM_CPPFLAGS";;
5205 for pgac_option
in `$LLVM_CONFIG --ldflags`; do
5206 case $pgac_option in
5207 -L*) LDFLAGS
="$LDFLAGS $pgac_option";;
5211 # ABI influencing options, standard influencing options
5212 for pgac_option
in `$LLVM_CONFIG --cxxflags`; do
5213 case $pgac_option in
5214 -fno-rtti*) LLVM_CXXFLAGS
="$LLVM_CXXFLAGS $pgac_option";;
5215 -std=*) LLVM_CXXFLAGS
="$LLVM_CXXFLAGS $pgac_option";;
5219 # Look for components we're interested in, collect necessary
5220 # libs. As some components are optional, we can't just list all of
5221 # them as it'd raise an error.
5223 for pgac_component
in `$LLVM_CONFIG --components`; do
5224 case $pgac_component in
5225 engine
) pgac_components
="$pgac_components $pgac_component";;
5226 debuginfodwarf
) pgac_components
="$pgac_components $pgac_component";;
5227 orcjit
) pgac_components
="$pgac_components $pgac_component";;
5228 passes
) pgac_components
="$pgac_components $pgac_component";;
5229 native
) pgac_components
="$pgac_components $pgac_component";;
5230 perfjitevents
) pgac_components
="$pgac_components $pgac_component";;
5234 # And then get the libraries that need to be linked in for the
5235 # selected components. They're large libraries, we only want to
5236 # link them into the LLVM using shared library.
5237 for pgac_option
in `$LLVM_CONFIG --libs --system-libs $pgac_components`; do
5238 case $pgac_option in
5239 -l*) LLVM_LIBS
="$LLVM_LIBS $pgac_option";;
5243 LLVM_BINPATH
=`$LLVM_CONFIG --bindir`
5262 .
"$srcdir/src/template/$template" ||
exit
5264 # C[XX]FLAGS are selected so:
5265 # If the user specifies something in the environment, that is used.
5266 # else: If the template file set something, that is used.
5267 # else: If coverage was enabled, don't set anything.
5268 # else: If the compiler is GCC, then we use -O2.
5269 # else: If the compiler is something else, then we use -O, unless debugging.
5271 if test "$ac_env_CFLAGS_set" = set; then
5272 CFLAGS
=$ac_env_CFLAGS_value
5273 elif test "${CFLAGS+set}" = set; then
5274 : # (keep what template set)
5275 elif test "$enable_coverage" = yes; then
5276 : # no optimization by default
5277 elif test "$GCC" = yes; then
5280 # if the user selected debug mode, don't use -O
5281 if test "$enable_debug" != yes; then
5286 if test "$ac_env_CXXFLAGS_set" = set; then
5287 CXXFLAGS
=$ac_env_CXXFLAGS_value
5288 elif test "${CXXFLAGS+set}" = set; then
5289 : # (keep what template set)
5290 elif test "$enable_coverage" = yes; then
5291 : # no optimization by default
5292 elif test "$GCC" = yes; then
5295 # if the user selected debug mode, don't use -O
5296 if test "$enable_debug" != yes; then
5301 # When generating bitcode (for inlining) we always want to use -O2
5302 # even when --enable-debug is specified. The bitcode is not going to
5303 # be used for line-by-line debugging, and JIT inlining doesn't work
5304 # without at least -O1 (otherwise clang will emit 'noinline'
5305 # attributes everywhere), which is bad for testing. Still allow the
5306 # environment to override if done explicitly.
5307 if test "$ac_env_BITCODE_CFLAGS_set" = set; then
5308 BITCODE_CFLAGS
=$ac_env_BITCODE_CFLAGS_value
5310 BITCODE_CFLAGS
="-O2 $BITCODE_CFLAGS"
5312 if test "$ac_env_BITCODE_CXXFLAGS_set" = set; then
5313 BITCODE_CXXFLAGS
=$ac_env_BITCODE_CXXFLAGS_value
5315 BITCODE_CXXFLAGS
="-O2 $BITCODE_CXXFLAGS"
5318 # C[XX]FLAGS we determined above will be added back at the end
5321 user_CXXFLAGS
=$CXXFLAGS
5323 user_BITCODE_CFLAGS
=$BITCODE_CFLAGS
5325 user_BITCODE_CXXFLAGS
=$BITCODE_CXXFLAGS
5328 # set CFLAGS_UNROLL_LOOPS and CFLAGS_VECTORIZE from the environment, if present
5329 if test "$ac_env_CFLAGS_UNROLL_LOOPS_set" = set; then
5330 CFLAGS_UNROLL_LOOPS
=$ac_env_CFLAGS_UNROLL_LOOPS_value
5332 if test "$ac_env_CFLAGS_VECTORIZE_set" = set; then
5333 CFLAGS_VECTORIZE
=$ac_env_CFLAGS_VECTORIZE_value
5336 # Some versions of GCC support some additional useful warning flags.
5337 # Check whether they are supported, and add them to CFLAGS if so.
5338 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
5339 # but has its own. Also check other compiler-specific flags here.
5341 if test "$GCC" = yes -a "$ICC" = no
; then
5342 CFLAGS
="-Wall -Wmissing-prototypes -Wpointer-arith"
5343 CXXFLAGS
="-Wall -Wpointer-arith"
5344 # These work in some but not all gcc versions
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wdeclaration-after-statement, for CFLAGS" >&5
5348 $as_echo_n "checking whether ${CC} supports -Wdeclaration-after-statement, for CFLAGS... " >&6; }
5349 if ${pgac_cv_prog_CC_cflags__Wdeclaration_after_statement+:} false
; then :
5350 $as_echo_n "(cached) " >&6
5352 pgac_save_CFLAGS
=$CFLAGS
5355 CFLAGS
="${CFLAGS} -Wdeclaration-after-statement"
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__Wdeclaration_after_statement
=yes
5372 pgac_cv_prog_CC_cflags__Wdeclaration_after_statement
=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__Wdeclaration_after_statement" >&5
5380 $as_echo "$pgac_cv_prog_CC_cflags__Wdeclaration_after_statement" >&6; }
5381 if test x
"$pgac_cv_prog_CC_cflags__Wdeclaration_after_statement" = x
"yes"; then
5382 CFLAGS
="${CFLAGS} -Wdeclaration-after-statement"
5386 # -Wdeclaration-after-statement isn't applicable for C++. Specific C files
5387 # disable it, so AC_SUBST the negative form.
5388 PERMIT_DECLARATION_AFTER_STATEMENT
=
5389 if test x
"$save_CFLAGS" != x
"$CFLAGS"; then
5390 PERMIT_DECLARATION_AFTER_STATEMENT
=-Wno-declaration-after-statement
5393 # Really don't want VLAs to be used in our dialect of C
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Werror=vla, for CFLAGS" >&5
5396 $as_echo_n "checking whether ${CC} supports -Werror=vla, for CFLAGS... " >&6; }
5397 if ${pgac_cv_prog_CC_cflags__Werror_vla+:} false
; then :
5398 $as_echo_n "(cached) " >&6
5400 pgac_save_CFLAGS
=$CFLAGS
5403 CFLAGS
="${CFLAGS} -Werror=vla"
5404 ac_save_c_werror_flag
=$ac_c_werror_flag
5405 ac_c_werror_flag
=yes
5406 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5407 /* end confdefs.h. */
5417 if ac_fn_c_try_compile
"$LINENO"; then :
5418 pgac_cv_prog_CC_cflags__Werror_vla
=yes
5420 pgac_cv_prog_CC_cflags__Werror_vla
=no
5422 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5423 ac_c_werror_flag
=$ac_save_c_werror_flag
5424 CFLAGS
="$pgac_save_CFLAGS"
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Werror_vla" >&5
5428 $as_echo "$pgac_cv_prog_CC_cflags__Werror_vla" >&6; }
5429 if test x
"$pgac_cv_prog_CC_cflags__Werror_vla" = x
"yes"; then
5430 CFLAGS
="${CFLAGS} -Werror=vla"
5434 # On macOS, complain about usage of symbols newer than the deployment target
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Werror=unguarded-availability-new, for CFLAGS" >&5
5437 $as_echo_n "checking whether ${CC} supports -Werror=unguarded-availability-new, for CFLAGS... " >&6; }
5438 if ${pgac_cv_prog_CC_cflags__Werror_unguarded_availability_new+:} false
; then :
5439 $as_echo_n "(cached) " >&6
5441 pgac_save_CFLAGS
=$CFLAGS
5444 CFLAGS
="${CFLAGS} -Werror=unguarded-availability-new"
5445 ac_save_c_werror_flag
=$ac_c_werror_flag
5446 ac_c_werror_flag
=yes
5447 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5448 /* end confdefs.h. */
5458 if ac_fn_c_try_compile
"$LINENO"; then :
5459 pgac_cv_prog_CC_cflags__Werror_unguarded_availability_new
=yes
5461 pgac_cv_prog_CC_cflags__Werror_unguarded_availability_new
=no
5463 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5464 ac_c_werror_flag
=$ac_save_c_werror_flag
5465 CFLAGS
="$pgac_save_CFLAGS"
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Werror_unguarded_availability_new" >&5
5469 $as_echo "$pgac_cv_prog_CC_cflags__Werror_unguarded_availability_new" >&6; }
5470 if test x
"$pgac_cv_prog_CC_cflags__Werror_unguarded_availability_new" = x
"yes"; then
5471 CFLAGS
="${CFLAGS} -Werror=unguarded-availability-new"
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Werror=unguarded-availability-new, for CXXFLAGS" >&5
5476 $as_echo_n "checking whether ${CXX} supports -Werror=unguarded-availability-new, for CXXFLAGS... " >&6; }
5477 if ${pgac_cv_prog_CXX_cxxflags__Werror_unguarded_availability_new+:} false
; then :
5478 $as_echo_n "(cached) " >&6
5480 pgac_save_CXXFLAGS
=$CXXFLAGS
5483 CXXFLAGS
="${CXXFLAGS} -Werror=unguarded-availability-new"
5484 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5485 ac_cxx_werror_flag
=yes
5487 ac_cpp
='$CXXCPP $CPPFLAGS'
5488 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5489 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5490 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5492 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5493 /* end confdefs.h. */
5503 if ac_fn_cxx_try_compile
"$LINENO"; then :
5504 pgac_cv_prog_CXX_cxxflags__Werror_unguarded_availability_new
=yes
5506 pgac_cv_prog_CXX_cxxflags__Werror_unguarded_availability_new
=no
5508 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5510 ac_cpp
='$CPP $CPPFLAGS'
5511 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5512 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5513 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5515 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5516 CXXFLAGS
="$pgac_save_CXXFLAGS"
5517 CXX
="$pgac_save_CXX"
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Werror_unguarded_availability_new" >&5
5520 $as_echo "$pgac_cv_prog_CXX_cxxflags__Werror_unguarded_availability_new" >&6; }
5521 if test x
"$pgac_cv_prog_CXX_cxxflags__Werror_unguarded_availability_new" = x
"yes"; then
5522 CXXFLAGS
="${CXXFLAGS} -Werror=unguarded-availability-new"
5526 # -Wvla is not applicable for C++
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wendif-labels, for CFLAGS" >&5
5529 $as_echo_n "checking whether ${CC} supports -Wendif-labels, for CFLAGS... " >&6; }
5530 if ${pgac_cv_prog_CC_cflags__Wendif_labels+:} false
; then :
5531 $as_echo_n "(cached) " >&6
5533 pgac_save_CFLAGS
=$CFLAGS
5536 CFLAGS
="${CFLAGS} -Wendif-labels"
5537 ac_save_c_werror_flag
=$ac_c_werror_flag
5538 ac_c_werror_flag
=yes
5539 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5540 /* end confdefs.h. */
5550 if ac_fn_c_try_compile
"$LINENO"; then :
5551 pgac_cv_prog_CC_cflags__Wendif_labels
=yes
5553 pgac_cv_prog_CC_cflags__Wendif_labels
=no
5555 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5556 ac_c_werror_flag
=$ac_save_c_werror_flag
5557 CFLAGS
="$pgac_save_CFLAGS"
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wendif_labels" >&5
5561 $as_echo "$pgac_cv_prog_CC_cflags__Wendif_labels" >&6; }
5562 if test x
"$pgac_cv_prog_CC_cflags__Wendif_labels" = x
"yes"; then
5563 CFLAGS
="${CFLAGS} -Wendif-labels"
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wendif-labels, for CXXFLAGS" >&5
5568 $as_echo_n "checking whether ${CXX} supports -Wendif-labels, for CXXFLAGS... " >&6; }
5569 if ${pgac_cv_prog_CXX_cxxflags__Wendif_labels+:} false
; then :
5570 $as_echo_n "(cached) " >&6
5572 pgac_save_CXXFLAGS
=$CXXFLAGS
5575 CXXFLAGS
="${CXXFLAGS} -Wendif-labels"
5576 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5577 ac_cxx_werror_flag
=yes
5579 ac_cpp
='$CXXCPP $CPPFLAGS'
5580 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5581 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5582 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5585 /* end confdefs.h. */
5595 if ac_fn_cxx_try_compile
"$LINENO"; then :
5596 pgac_cv_prog_CXX_cxxflags__Wendif_labels
=yes
5598 pgac_cv_prog_CXX_cxxflags__Wendif_labels
=no
5600 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5602 ac_cpp
='$CPP $CPPFLAGS'
5603 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5604 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5605 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5607 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5608 CXXFLAGS
="$pgac_save_CXXFLAGS"
5609 CXX
="$pgac_save_CXX"
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wendif_labels" >&5
5612 $as_echo "$pgac_cv_prog_CXX_cxxflags__Wendif_labels" >&6; }
5613 if test x
"$pgac_cv_prog_CXX_cxxflags__Wendif_labels" = x
"yes"; then
5614 CXXFLAGS
="${CXXFLAGS} -Wendif-labels"
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wmissing-format-attribute, for CFLAGS" >&5
5620 $as_echo_n "checking whether ${CC} supports -Wmissing-format-attribute, for CFLAGS... " >&6; }
5621 if ${pgac_cv_prog_CC_cflags__Wmissing_format_attribute+:} false
; then :
5622 $as_echo_n "(cached) " >&6
5624 pgac_save_CFLAGS
=$CFLAGS
5627 CFLAGS
="${CFLAGS} -Wmissing-format-attribute"
5628 ac_save_c_werror_flag
=$ac_c_werror_flag
5629 ac_c_werror_flag
=yes
5630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5631 /* end confdefs.h. */
5641 if ac_fn_c_try_compile
"$LINENO"; then :
5642 pgac_cv_prog_CC_cflags__Wmissing_format_attribute
=yes
5644 pgac_cv_prog_CC_cflags__Wmissing_format_attribute
=no
5646 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5647 ac_c_werror_flag
=$ac_save_c_werror_flag
5648 CFLAGS
="$pgac_save_CFLAGS"
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wmissing_format_attribute" >&5
5652 $as_echo "$pgac_cv_prog_CC_cflags__Wmissing_format_attribute" >&6; }
5653 if test x
"$pgac_cv_prog_CC_cflags__Wmissing_format_attribute" = x
"yes"; then
5654 CFLAGS
="${CFLAGS} -Wmissing-format-attribute"
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wmissing-format-attribute, for CXXFLAGS" >&5
5659 $as_echo_n "checking whether ${CXX} supports -Wmissing-format-attribute, for CXXFLAGS... " >&6; }
5660 if ${pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute+:} false
; then :
5661 $as_echo_n "(cached) " >&6
5663 pgac_save_CXXFLAGS
=$CXXFLAGS
5666 CXXFLAGS
="${CXXFLAGS} -Wmissing-format-attribute"
5667 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5668 ac_cxx_werror_flag
=yes
5670 ac_cpp
='$CXXCPP $CPPFLAGS'
5671 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5672 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5673 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5676 /* end confdefs.h. */
5686 if ac_fn_cxx_try_compile
"$LINENO"; then :
5687 pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute
=yes
5689 pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute
=no
5691 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5693 ac_cpp
='$CPP $CPPFLAGS'
5694 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5695 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5696 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5698 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5699 CXXFLAGS
="$pgac_save_CXXFLAGS"
5700 CXX
="$pgac_save_CXX"
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute" >&5
5703 $as_echo "$pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute" >&6; }
5704 if test x
"$pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute" = x
"yes"; then
5705 CXXFLAGS
="${CXXFLAGS} -Wmissing-format-attribute"
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wimplicit-fallthrough=3, for CFLAGS" >&5
5711 $as_echo_n "checking whether ${CC} supports -Wimplicit-fallthrough=3, for CFLAGS... " >&6; }
5712 if ${pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_3+:} false
; then :
5713 $as_echo_n "(cached) " >&6
5715 pgac_save_CFLAGS
=$CFLAGS
5718 CFLAGS
="${CFLAGS} -Wimplicit-fallthrough=3"
5719 ac_save_c_werror_flag
=$ac_c_werror_flag
5720 ac_c_werror_flag
=yes
5721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5722 /* end confdefs.h. */
5732 if ac_fn_c_try_compile
"$LINENO"; then :
5733 pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_3
=yes
5735 pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_3
=no
5737 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5738 ac_c_werror_flag
=$ac_save_c_werror_flag
5739 CFLAGS
="$pgac_save_CFLAGS"
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_3" >&5
5743 $as_echo "$pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_3" >&6; }
5744 if test x
"$pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_3" = x
"yes"; then
5745 CFLAGS
="${CFLAGS} -Wimplicit-fallthrough=3"
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wimplicit-fallthrough=3, for CXXFLAGS" >&5
5750 $as_echo_n "checking whether ${CXX} supports -Wimplicit-fallthrough=3, for CXXFLAGS... " >&6; }
5751 if ${pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_3+:} false
; then :
5752 $as_echo_n "(cached) " >&6
5754 pgac_save_CXXFLAGS
=$CXXFLAGS
5757 CXXFLAGS
="${CXXFLAGS} -Wimplicit-fallthrough=3"
5758 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5759 ac_cxx_werror_flag
=yes
5761 ac_cpp
='$CXXCPP $CPPFLAGS'
5762 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5763 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5764 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5767 /* end confdefs.h. */
5777 if ac_fn_cxx_try_compile
"$LINENO"; then :
5778 pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_3
=yes
5780 pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_3
=no
5782 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5784 ac_cpp
='$CPP $CPPFLAGS'
5785 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5786 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5787 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5789 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5790 CXXFLAGS
="$pgac_save_CXXFLAGS"
5791 CXX
="$pgac_save_CXX"
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_3" >&5
5794 $as_echo "$pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_3" >&6; }
5795 if test x
"$pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_3" = x
"yes"; then
5796 CXXFLAGS
="${CXXFLAGS} -Wimplicit-fallthrough=3"
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wcast-function-type, for CFLAGS" >&5
5802 $as_echo_n "checking whether ${CC} supports -Wcast-function-type, for CFLAGS... " >&6; }
5803 if ${pgac_cv_prog_CC_cflags__Wcast_function_type+:} false
; then :
5804 $as_echo_n "(cached) " >&6
5806 pgac_save_CFLAGS
=$CFLAGS
5809 CFLAGS
="${CFLAGS} -Wcast-function-type"
5810 ac_save_c_werror_flag
=$ac_c_werror_flag
5811 ac_c_werror_flag
=yes
5812 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5813 /* end confdefs.h. */
5823 if ac_fn_c_try_compile
"$LINENO"; then :
5824 pgac_cv_prog_CC_cflags__Wcast_function_type
=yes
5826 pgac_cv_prog_CC_cflags__Wcast_function_type
=no
5828 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5829 ac_c_werror_flag
=$ac_save_c_werror_flag
5830 CFLAGS
="$pgac_save_CFLAGS"
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wcast_function_type" >&5
5834 $as_echo "$pgac_cv_prog_CC_cflags__Wcast_function_type" >&6; }
5835 if test x
"$pgac_cv_prog_CC_cflags__Wcast_function_type" = x
"yes"; then
5836 CFLAGS
="${CFLAGS} -Wcast-function-type"
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wcast-function-type, for CXXFLAGS" >&5
5841 $as_echo_n "checking whether ${CXX} supports -Wcast-function-type, for CXXFLAGS... " >&6; }
5842 if ${pgac_cv_prog_CXX_cxxflags__Wcast_function_type+:} false
; then :
5843 $as_echo_n "(cached) " >&6
5845 pgac_save_CXXFLAGS
=$CXXFLAGS
5848 CXXFLAGS
="${CXXFLAGS} -Wcast-function-type"
5849 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5850 ac_cxx_werror_flag
=yes
5852 ac_cpp
='$CXXCPP $CPPFLAGS'
5853 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5854 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5855 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5858 /* end confdefs.h. */
5868 if ac_fn_cxx_try_compile
"$LINENO"; then :
5869 pgac_cv_prog_CXX_cxxflags__Wcast_function_type
=yes
5871 pgac_cv_prog_CXX_cxxflags__Wcast_function_type
=no
5873 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5875 ac_cpp
='$CPP $CPPFLAGS'
5876 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5877 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5878 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5880 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5881 CXXFLAGS
="$pgac_save_CXXFLAGS"
5882 CXX
="$pgac_save_CXX"
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wcast_function_type" >&5
5885 $as_echo "$pgac_cv_prog_CXX_cxxflags__Wcast_function_type" >&6; }
5886 if test x
"$pgac_cv_prog_CXX_cxxflags__Wcast_function_type" = x
"yes"; then
5887 CXXFLAGS
="${CXXFLAGS} -Wcast-function-type"
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wshadow=compatible-local, for CFLAGS" >&5
5893 $as_echo_n "checking whether ${CC} supports -Wshadow=compatible-local, for CFLAGS... " >&6; }
5894 if ${pgac_cv_prog_CC_cflags__Wshadow_compatible_local+:} false
; then :
5895 $as_echo_n "(cached) " >&6
5897 pgac_save_CFLAGS
=$CFLAGS
5900 CFLAGS
="${CFLAGS} -Wshadow=compatible-local"
5901 ac_save_c_werror_flag
=$ac_c_werror_flag
5902 ac_c_werror_flag
=yes
5903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5904 /* end confdefs.h. */
5914 if ac_fn_c_try_compile
"$LINENO"; then :
5915 pgac_cv_prog_CC_cflags__Wshadow_compatible_local
=yes
5917 pgac_cv_prog_CC_cflags__Wshadow_compatible_local
=no
5919 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5920 ac_c_werror_flag
=$ac_save_c_werror_flag
5921 CFLAGS
="$pgac_save_CFLAGS"
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wshadow_compatible_local" >&5
5925 $as_echo "$pgac_cv_prog_CC_cflags__Wshadow_compatible_local" >&6; }
5926 if test x
"$pgac_cv_prog_CC_cflags__Wshadow_compatible_local" = x
"yes"; then
5927 CFLAGS
="${CFLAGS} -Wshadow=compatible-local"
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wshadow=compatible-local, for CXXFLAGS" >&5
5932 $as_echo_n "checking whether ${CXX} supports -Wshadow=compatible-local, for CXXFLAGS... " >&6; }
5933 if ${pgac_cv_prog_CXX_cxxflags__Wshadow_compatible_local+:} false
; then :
5934 $as_echo_n "(cached) " >&6
5936 pgac_save_CXXFLAGS
=$CXXFLAGS
5939 CXXFLAGS
="${CXXFLAGS} -Wshadow=compatible-local"
5940 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5941 ac_cxx_werror_flag
=yes
5943 ac_cpp
='$CXXCPP $CPPFLAGS'
5944 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5945 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5946 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5949 /* end confdefs.h. */
5959 if ac_fn_cxx_try_compile
"$LINENO"; then :
5960 pgac_cv_prog_CXX_cxxflags__Wshadow_compatible_local
=yes
5962 pgac_cv_prog_CXX_cxxflags__Wshadow_compatible_local
=no
5964 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5966 ac_cpp
='$CPP $CPPFLAGS'
5967 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5968 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5969 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5971 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5972 CXXFLAGS
="$pgac_save_CXXFLAGS"
5973 CXX
="$pgac_save_CXX"
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wshadow_compatible_local" >&5
5976 $as_echo "$pgac_cv_prog_CXX_cxxflags__Wshadow_compatible_local" >&6; }
5977 if test x
"$pgac_cv_prog_CXX_cxxflags__Wshadow_compatible_local" = x
"yes"; then
5978 CXXFLAGS
="${CXXFLAGS} -Wshadow=compatible-local"
5982 # This was included in -Wall/-Wformat in older GCC versions
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wformat-security, for CFLAGS" >&5
5985 $as_echo_n "checking whether ${CC} supports -Wformat-security, for CFLAGS... " >&6; }
5986 if ${pgac_cv_prog_CC_cflags__Wformat_security+:} false
; then :
5987 $as_echo_n "(cached) " >&6
5989 pgac_save_CFLAGS
=$CFLAGS
5992 CFLAGS
="${CFLAGS} -Wformat-security"
5993 ac_save_c_werror_flag
=$ac_c_werror_flag
5994 ac_c_werror_flag
=yes
5995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5996 /* end confdefs.h. */
6006 if ac_fn_c_try_compile
"$LINENO"; then :
6007 pgac_cv_prog_CC_cflags__Wformat_security
=yes
6009 pgac_cv_prog_CC_cflags__Wformat_security
=no
6011 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6012 ac_c_werror_flag
=$ac_save_c_werror_flag
6013 CFLAGS
="$pgac_save_CFLAGS"
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wformat_security" >&5
6017 $as_echo "$pgac_cv_prog_CC_cflags__Wformat_security" >&6; }
6018 if test x
"$pgac_cv_prog_CC_cflags__Wformat_security" = x
"yes"; then
6019 CFLAGS
="${CFLAGS} -Wformat-security"
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wformat-security, for CXXFLAGS" >&5
6024 $as_echo_n "checking whether ${CXX} supports -Wformat-security, for CXXFLAGS... " >&6; }
6025 if ${pgac_cv_prog_CXX_cxxflags__Wformat_security+:} false
; then :
6026 $as_echo_n "(cached) " >&6
6028 pgac_save_CXXFLAGS
=$CXXFLAGS
6031 CXXFLAGS
="${CXXFLAGS} -Wformat-security"
6032 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6033 ac_cxx_werror_flag
=yes
6035 ac_cpp
='$CXXCPP $CPPFLAGS'
6036 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6037 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6038 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6040 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6041 /* end confdefs.h. */
6051 if ac_fn_cxx_try_compile
"$LINENO"; then :
6052 pgac_cv_prog_CXX_cxxflags__Wformat_security
=yes
6054 pgac_cv_prog_CXX_cxxflags__Wformat_security
=no
6056 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6058 ac_cpp
='$CPP $CPPFLAGS'
6059 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6060 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6061 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6063 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6064 CXXFLAGS
="$pgac_save_CXXFLAGS"
6065 CXX
="$pgac_save_CXX"
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wformat_security" >&5
6068 $as_echo "$pgac_cv_prog_CXX_cxxflags__Wformat_security" >&6; }
6069 if test x
"$pgac_cv_prog_CXX_cxxflags__Wformat_security" = x
"yes"; then
6070 CXXFLAGS
="${CXXFLAGS} -Wformat-security"
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"
6843 elif test "$PORTNAME" = "aix"; then
6844 # AIX's xlc has to have strict aliasing turned off too
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -qnoansialias, for CFLAGS" >&5
6847 $as_echo_n "checking whether ${CC} supports -qnoansialias, for CFLAGS... " >&6; }
6848 if ${pgac_cv_prog_CC_cflags__qnoansialias+:} false
; then :
6849 $as_echo_n "(cached) " >&6
6851 pgac_save_CFLAGS
=$CFLAGS
6854 CFLAGS
="${CFLAGS} -qnoansialias"
6855 ac_save_c_werror_flag
=$ac_c_werror_flag
6856 ac_c_werror_flag
=yes
6857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6858 /* end confdefs.h. */
6868 if ac_fn_c_try_compile
"$LINENO"; then :
6869 pgac_cv_prog_CC_cflags__qnoansialias
=yes
6871 pgac_cv_prog_CC_cflags__qnoansialias
=no
6873 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6874 ac_c_werror_flag
=$ac_save_c_werror_flag
6875 CFLAGS
="$pgac_save_CFLAGS"
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__qnoansialias" >&5
6879 $as_echo "$pgac_cv_prog_CC_cflags__qnoansialias" >&6; }
6880 if test x
"$pgac_cv_prog_CC_cflags__qnoansialias" = x
"yes"; then
6881 CFLAGS
="${CFLAGS} -qnoansialias"
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -qnoansialias, for CXXFLAGS" >&5
6886 $as_echo_n "checking whether ${CXX} supports -qnoansialias, for CXXFLAGS... " >&6; }
6887 if ${pgac_cv_prog_CXX_cxxflags__qnoansialias+:} false
; then :
6888 $as_echo_n "(cached) " >&6
6890 pgac_save_CXXFLAGS
=$CXXFLAGS
6893 CXXFLAGS
="${CXXFLAGS} -qnoansialias"
6894 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6895 ac_cxx_werror_flag
=yes
6897 ac_cpp
='$CXXCPP $CPPFLAGS'
6898 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6899 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6900 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6903 /* end confdefs.h. */
6913 if ac_fn_cxx_try_compile
"$LINENO"; then :
6914 pgac_cv_prog_CXX_cxxflags__qnoansialias
=yes
6916 pgac_cv_prog_CXX_cxxflags__qnoansialias
=no
6918 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6920 ac_cpp
='$CPP $CPPFLAGS'
6921 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6922 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6923 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6925 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6926 CXXFLAGS
="$pgac_save_CXXFLAGS"
6927 CXX
="$pgac_save_CXX"
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__qnoansialias" >&5
6930 $as_echo "$pgac_cv_prog_CXX_cxxflags__qnoansialias" >&6; }
6931 if test x
"$pgac_cv_prog_CXX_cxxflags__qnoansialias" = x
"yes"; then
6932 CXXFLAGS
="${CXXFLAGS} -qnoansialias"
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -qlonglong, for CFLAGS" >&5
6938 $as_echo_n "checking whether ${CC} supports -qlonglong, for CFLAGS... " >&6; }
6939 if ${pgac_cv_prog_CC_cflags__qlonglong+:} false
; then :
6940 $as_echo_n "(cached) " >&6
6942 pgac_save_CFLAGS
=$CFLAGS
6945 CFLAGS
="${CFLAGS} -qlonglong"
6946 ac_save_c_werror_flag
=$ac_c_werror_flag
6947 ac_c_werror_flag
=yes
6948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6949 /* end confdefs.h. */
6959 if ac_fn_c_try_compile
"$LINENO"; then :
6960 pgac_cv_prog_CC_cflags__qlonglong
=yes
6962 pgac_cv_prog_CC_cflags__qlonglong
=no
6964 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6965 ac_c_werror_flag
=$ac_save_c_werror_flag
6966 CFLAGS
="$pgac_save_CFLAGS"
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__qlonglong" >&5
6970 $as_echo "$pgac_cv_prog_CC_cflags__qlonglong" >&6; }
6971 if test x
"$pgac_cv_prog_CC_cflags__qlonglong" = x
"yes"; then
6972 CFLAGS
="${CFLAGS} -qlonglong"
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -qlonglong, for CXXFLAGS" >&5
6977 $as_echo_n "checking whether ${CXX} supports -qlonglong, for CXXFLAGS... " >&6; }
6978 if ${pgac_cv_prog_CXX_cxxflags__qlonglong+:} false
; then :
6979 $as_echo_n "(cached) " >&6
6981 pgac_save_CXXFLAGS
=$CXXFLAGS
6984 CXXFLAGS
="${CXXFLAGS} -qlonglong"
6985 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6986 ac_cxx_werror_flag
=yes
6988 ac_cpp
='$CXXCPP $CPPFLAGS'
6989 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6990 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6991 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6994 /* end confdefs.h. */
7004 if ac_fn_cxx_try_compile
"$LINENO"; then :
7005 pgac_cv_prog_CXX_cxxflags__qlonglong
=yes
7007 pgac_cv_prog_CXX_cxxflags__qlonglong
=no
7009 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7011 ac_cpp
='$CPP $CPPFLAGS'
7012 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7013 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7014 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7016 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
7017 CXXFLAGS
="$pgac_save_CXXFLAGS"
7018 CXX
="$pgac_save_CXX"
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__qlonglong" >&5
7021 $as_echo "$pgac_cv_prog_CXX_cxxflags__qlonglong" >&6; }
7022 if test x
"$pgac_cv_prog_CXX_cxxflags__qlonglong" = x
"yes"; then
7023 CXXFLAGS
="${CXXFLAGS} -qlonglong"
7029 # If the compiler knows how to hide symbols, add the switch needed for that to
7030 # CFLAGS_SL_MODULE and define HAVE_VISIBILITY_ATTRIBUTE.
7032 # This is done separately from the above because -fvisibility is supported by
7033 # quite a few different compilers, making the required repetition bothersome.
7035 # We might need to add a separate test to check if
7036 # __attribute__((visibility("hidden"))) is supported, if we encounter a
7037 # compiler that supports one of the supported variants of -fvisibility=hidden
7038 # but uses a different syntax to mark a symbol as exported.
7039 if test "$GCC" = yes -o "$SUN_STUDIO_CC" = yes ; then
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fvisibility=hidden, for CFLAGS_SL_MODULE" >&5
7041 $as_echo_n "checking whether ${CC} supports -fvisibility=hidden, for CFLAGS_SL_MODULE... " >&6; }
7042 if ${pgac_cv_prog_CC_cflags__fvisibility_hidden+:} false
; then :
7043 $as_echo_n "(cached) " >&6
7045 pgac_save_CFLAGS
=$CFLAGS
7048 CFLAGS
="${CFLAGS_SL_MODULE} -fvisibility=hidden"
7049 ac_save_c_werror_flag
=$ac_c_werror_flag
7050 ac_c_werror_flag
=yes
7051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7052 /* end confdefs.h. */
7062 if ac_fn_c_try_compile
"$LINENO"; then :
7063 pgac_cv_prog_CC_cflags__fvisibility_hidden
=yes
7065 pgac_cv_prog_CC_cflags__fvisibility_hidden
=no
7067 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7068 ac_c_werror_flag
=$ac_save_c_werror_flag
7069 CFLAGS
="$pgac_save_CFLAGS"
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fvisibility_hidden" >&5
7073 $as_echo "$pgac_cv_prog_CC_cflags__fvisibility_hidden" >&6; }
7074 if test x
"$pgac_cv_prog_CC_cflags__fvisibility_hidden" = x
"yes"; then
7075 CFLAGS_SL_MODULE
="${CFLAGS_SL_MODULE} -fvisibility=hidden"
7079 # For C++ we additionally want -fvisibility-inlines-hidden
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fvisibility=hidden, for CXXFLAGS_SL_MODULE" >&5
7081 $as_echo_n "checking whether ${CXX} supports -fvisibility=hidden, for CXXFLAGS_SL_MODULE... " >&6; }
7082 if ${pgac_cv_prog_CXX_cxxflags__fvisibility_hidden+:} false
; then :
7083 $as_echo_n "(cached) " >&6
7085 pgac_save_CXXFLAGS
=$CXXFLAGS
7088 CXXFLAGS
="${CXXFLAGS_SL_MODULE} -fvisibility=hidden"
7089 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
7090 ac_cxx_werror_flag
=yes
7092 ac_cpp
='$CXXCPP $CPPFLAGS'
7093 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7094 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7095 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7098 /* end confdefs.h. */
7108 if ac_fn_cxx_try_compile
"$LINENO"; then :
7109 pgac_cv_prog_CXX_cxxflags__fvisibility_hidden
=yes
7111 pgac_cv_prog_CXX_cxxflags__fvisibility_hidden
=no
7113 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7115 ac_cpp
='$CPP $CPPFLAGS'
7116 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7117 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7118 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7120 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
7121 CXXFLAGS
="$pgac_save_CXXFLAGS"
7122 CXX
="$pgac_save_CXX"
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fvisibility_hidden" >&5
7125 $as_echo "$pgac_cv_prog_CXX_cxxflags__fvisibility_hidden" >&6; }
7126 if test x
"$pgac_cv_prog_CXX_cxxflags__fvisibility_hidden" = x
"yes"; then
7127 CXXFLAGS_SL_MODULE
="${CXXFLAGS_SL_MODULE} -fvisibility=hidden"
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fvisibility-inlines-hidden, for CXXFLAGS_SL_MODULE" >&5
7131 $as_echo_n "checking whether ${CXX} supports -fvisibility-inlines-hidden, for CXXFLAGS_SL_MODULE... " >&6; }
7132 if ${pgac_cv_prog_CXX_cxxflags__fvisibility_inlines_hidden+:} false
; then :
7133 $as_echo_n "(cached) " >&6
7135 pgac_save_CXXFLAGS
=$CXXFLAGS
7138 CXXFLAGS
="${CXXFLAGS_SL_MODULE} -fvisibility-inlines-hidden"
7139 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
7140 ac_cxx_werror_flag
=yes
7142 ac_cpp
='$CXXCPP $CPPFLAGS'
7143 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7144 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7145 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7148 /* end confdefs.h. */
7158 if ac_fn_cxx_try_compile
"$LINENO"; then :
7159 pgac_cv_prog_CXX_cxxflags__fvisibility_inlines_hidden
=yes
7161 pgac_cv_prog_CXX_cxxflags__fvisibility_inlines_hidden
=no
7163 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7165 ac_cpp
='$CPP $CPPFLAGS'
7166 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7167 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7168 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7170 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
7171 CXXFLAGS
="$pgac_save_CXXFLAGS"
7172 CXX
="$pgac_save_CXX"
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fvisibility_inlines_hidden" >&5
7175 $as_echo "$pgac_cv_prog_CXX_cxxflags__fvisibility_inlines_hidden" >&6; }
7176 if test x
"$pgac_cv_prog_CXX_cxxflags__fvisibility_inlines_hidden" = x
"yes"; then
7177 CXXFLAGS_SL_MODULE
="${CXXFLAGS_SL_MODULE} -fvisibility-inlines-hidden"
7180 have_visibility_attribute
=$pgac_cv_prog_CC_cflags__fvisibility_hidden
7181 elif test "$PORTNAME" = "aix"; then
7182 # Note that xlc accepts -fvisibility=hidden as a file.
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -qvisibility=hidden, for CFLAGS_SL_MODULE" >&5
7184 $as_echo_n "checking whether ${CC} supports -qvisibility=hidden, for CFLAGS_SL_MODULE... " >&6; }
7185 if ${pgac_cv_prog_CC_cflags__qvisibility_hidden+:} false
; then :
7186 $as_echo_n "(cached) " >&6
7188 pgac_save_CFLAGS
=$CFLAGS
7191 CFLAGS
="${CFLAGS_SL_MODULE} -qvisibility=hidden"
7192 ac_save_c_werror_flag
=$ac_c_werror_flag
7193 ac_c_werror_flag
=yes
7194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7195 /* end confdefs.h. */
7205 if ac_fn_c_try_compile
"$LINENO"; then :
7206 pgac_cv_prog_CC_cflags__qvisibility_hidden
=yes
7208 pgac_cv_prog_CC_cflags__qvisibility_hidden
=no
7210 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7211 ac_c_werror_flag
=$ac_save_c_werror_flag
7212 CFLAGS
="$pgac_save_CFLAGS"
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__qvisibility_hidden" >&5
7216 $as_echo "$pgac_cv_prog_CC_cflags__qvisibility_hidden" >&6; }
7217 if test x
"$pgac_cv_prog_CC_cflags__qvisibility_hidden" = x
"yes"; then
7218 CFLAGS_SL_MODULE
="${CFLAGS_SL_MODULE} -qvisibility=hidden"
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -qvisibility=hidden, for CXXFLAGS_SL_MODULE" >&5
7223 $as_echo_n "checking whether ${CXX} supports -qvisibility=hidden, for CXXFLAGS_SL_MODULE... " >&6; }
7224 if ${pgac_cv_prog_CXX_cxxflags__qvisibility_hidden+:} false
; then :
7225 $as_echo_n "(cached) " >&6
7227 pgac_save_CXXFLAGS
=$CXXFLAGS
7230 CXXFLAGS
="${CXXFLAGS_SL_MODULE} -qvisibility=hidden"
7231 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
7232 ac_cxx_werror_flag
=yes
7234 ac_cpp
='$CXXCPP $CPPFLAGS'
7235 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7236 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7237 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7240 /* end confdefs.h. */
7250 if ac_fn_cxx_try_compile
"$LINENO"; then :
7251 pgac_cv_prog_CXX_cxxflags__qvisibility_hidden
=yes
7253 pgac_cv_prog_CXX_cxxflags__qvisibility_hidden
=no
7255 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7257 ac_cpp
='$CPP $CPPFLAGS'
7258 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7259 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7260 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7262 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
7263 CXXFLAGS
="$pgac_save_CXXFLAGS"
7264 CXX
="$pgac_save_CXX"
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__qvisibility_hidden" >&5
7267 $as_echo "$pgac_cv_prog_CXX_cxxflags__qvisibility_hidden" >&6; }
7268 if test x
"$pgac_cv_prog_CXX_cxxflags__qvisibility_hidden" = x
"yes"; then
7269 CXXFLAGS_SL_MODULE
="${CXXFLAGS_SL_MODULE} -qvisibility=hidden"
7272 have_visibility_attribute
=$pgac_cv_prog_CC_cflags__qvisibility_hidden
7273 # Old xlc versions (<13.1) don't have support for -qvisibility. Use expfull to force
7274 # all extension module symbols to be exported.
7275 if test "$pgac_cv_prog_CC_cflags__qvisibility_hidden" != "yes"; then
7276 CFLAGS_SL_MODULE
="$CFLAGS_SL_MODULE -Wl,-b,expfull"
7280 if test "$have_visibility_attribute" = "yes"; then
7282 $as_echo "#define HAVE_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
7291 # Determine flags used to emit bitcode for JIT inlining.
7292 # 1. We must duplicate any behaviour-changing compiler flags used above,
7293 # to keep compatibility with the compiler used for normal Postgres code.
7294 # 2. We don't bother to duplicate extra-warnings switches --- seeing a
7295 # warning in the main build is enough.
7296 # 3. But we must duplicate -Wno-warning flags, else we'll see those anyway.
7297 if test "$with_llvm" = yes ; then
7298 CLANGXX
="$CLANG -xc++"
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -fno-strict-aliasing, for BITCODE_CFLAGS" >&5
7301 $as_echo_n "checking whether ${CLANG} supports -fno-strict-aliasing, for BITCODE_CFLAGS... " >&6; }
7302 if ${pgac_cv_prog_CLANG_cflags__fno_strict_aliasing+:} false
; then :
7303 $as_echo_n "(cached) " >&6
7305 pgac_save_CFLAGS
=$CFLAGS
7308 CFLAGS
="${BITCODE_CFLAGS} -fno-strict-aliasing"
7309 ac_save_c_werror_flag
=$ac_c_werror_flag
7310 ac_c_werror_flag
=yes
7311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7312 /* end confdefs.h. */
7322 if ac_fn_c_try_compile
"$LINENO"; then :
7323 pgac_cv_prog_CLANG_cflags__fno_strict_aliasing
=yes
7325 pgac_cv_prog_CLANG_cflags__fno_strict_aliasing
=no
7327 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7328 ac_c_werror_flag
=$ac_save_c_werror_flag
7329 CFLAGS
="$pgac_save_CFLAGS"
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__fno_strict_aliasing" >&5
7333 $as_echo "$pgac_cv_prog_CLANG_cflags__fno_strict_aliasing" >&6; }
7334 if test x
"$pgac_cv_prog_CLANG_cflags__fno_strict_aliasing" = x
"yes"; then
7335 BITCODE_CFLAGS
="${BITCODE_CFLAGS} -fno-strict-aliasing"
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANGXX} supports -fno-strict-aliasing, for BITCODE_CXXFLAGS" >&5
7339 $as_echo_n "checking whether ${CLANGXX} supports -fno-strict-aliasing, for BITCODE_CXXFLAGS... " >&6; }
7340 if ${pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing+:} false
; then :
7341 $as_echo_n "(cached) " >&6
7343 pgac_save_CXXFLAGS
=$CXXFLAGS
7346 CXXFLAGS
="${BITCODE_CXXFLAGS} -fno-strict-aliasing"
7347 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
7348 ac_cxx_werror_flag
=yes
7350 ac_cpp
='$CXXCPP $CPPFLAGS'
7351 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7352 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7353 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7356 /* end confdefs.h. */
7366 if ac_fn_cxx_try_compile
"$LINENO"; then :
7367 pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing
=yes
7369 pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing
=no
7371 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7373 ac_cpp
='$CPP $CPPFLAGS'
7374 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7375 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7376 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7378 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
7379 CXXFLAGS
="$pgac_save_CXXFLAGS"
7380 CXX
="$pgac_save_CXX"
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing" >&5
7383 $as_echo "$pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing" >&6; }
7384 if test x
"$pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing" = x
"yes"; then
7385 BITCODE_CXXFLAGS
="${BITCODE_CXXFLAGS} -fno-strict-aliasing"
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -fwrapv, for BITCODE_CFLAGS" >&5
7389 $as_echo_n "checking whether ${CLANG} supports -fwrapv, for BITCODE_CFLAGS... " >&6; }
7390 if ${pgac_cv_prog_CLANG_cflags__fwrapv+:} false
; then :
7391 $as_echo_n "(cached) " >&6
7393 pgac_save_CFLAGS
=$CFLAGS
7396 CFLAGS
="${BITCODE_CFLAGS} -fwrapv"
7397 ac_save_c_werror_flag
=$ac_c_werror_flag
7398 ac_c_werror_flag
=yes
7399 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7400 /* end confdefs.h. */
7410 if ac_fn_c_try_compile
"$LINENO"; then :
7411 pgac_cv_prog_CLANG_cflags__fwrapv
=yes
7413 pgac_cv_prog_CLANG_cflags__fwrapv
=no
7415 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7416 ac_c_werror_flag
=$ac_save_c_werror_flag
7417 CFLAGS
="$pgac_save_CFLAGS"
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__fwrapv" >&5
7421 $as_echo "$pgac_cv_prog_CLANG_cflags__fwrapv" >&6; }
7422 if test x
"$pgac_cv_prog_CLANG_cflags__fwrapv" = x
"yes"; then
7423 BITCODE_CFLAGS
="${BITCODE_CFLAGS} -fwrapv"
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANGXX} supports -fwrapv, for BITCODE_CXXFLAGS" >&5
7427 $as_echo_n "checking whether ${CLANGXX} supports -fwrapv, for BITCODE_CXXFLAGS... " >&6; }
7428 if ${pgac_cv_prog_CLANGXX_cxxflags__fwrapv+:} false
; then :
7429 $as_echo_n "(cached) " >&6
7431 pgac_save_CXXFLAGS
=$CXXFLAGS
7434 CXXFLAGS
="${BITCODE_CXXFLAGS} -fwrapv"
7435 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
7436 ac_cxx_werror_flag
=yes
7438 ac_cpp
='$CXXCPP $CPPFLAGS'
7439 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7440 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7441 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7444 /* end confdefs.h. */
7454 if ac_fn_cxx_try_compile
"$LINENO"; then :
7455 pgac_cv_prog_CLANGXX_cxxflags__fwrapv
=yes
7457 pgac_cv_prog_CLANGXX_cxxflags__fwrapv
=no
7459 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7461 ac_cpp
='$CPP $CPPFLAGS'
7462 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7463 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7464 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7466 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
7467 CXXFLAGS
="$pgac_save_CXXFLAGS"
7468 CXX
="$pgac_save_CXX"
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANGXX_cxxflags__fwrapv" >&5
7471 $as_echo "$pgac_cv_prog_CLANGXX_cxxflags__fwrapv" >&6; }
7472 if test x
"$pgac_cv_prog_CLANGXX_cxxflags__fwrapv" = x
"yes"; then
7473 BITCODE_CXXFLAGS
="${BITCODE_CXXFLAGS} -fwrapv"
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -fexcess-precision=standard, for BITCODE_CFLAGS" >&5
7477 $as_echo_n "checking whether ${CLANG} supports -fexcess-precision=standard, for BITCODE_CFLAGS... " >&6; }
7478 if ${pgac_cv_prog_CLANG_cflags__fexcess_precision_standard+:} false
; then :
7479 $as_echo_n "(cached) " >&6
7481 pgac_save_CFLAGS
=$CFLAGS
7484 CFLAGS
="${BITCODE_CFLAGS} -fexcess-precision=standard"
7485 ac_save_c_werror_flag
=$ac_c_werror_flag
7486 ac_c_werror_flag
=yes
7487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7488 /* end confdefs.h. */
7498 if ac_fn_c_try_compile
"$LINENO"; then :
7499 pgac_cv_prog_CLANG_cflags__fexcess_precision_standard
=yes
7501 pgac_cv_prog_CLANG_cflags__fexcess_precision_standard
=no
7503 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7504 ac_c_werror_flag
=$ac_save_c_werror_flag
7505 CFLAGS
="$pgac_save_CFLAGS"
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__fexcess_precision_standard" >&5
7509 $as_echo "$pgac_cv_prog_CLANG_cflags__fexcess_precision_standard" >&6; }
7510 if test x
"$pgac_cv_prog_CLANG_cflags__fexcess_precision_standard" = x
"yes"; then
7511 BITCODE_CFLAGS
="${BITCODE_CFLAGS} -fexcess-precision=standard"
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANGXX} supports -fexcess-precision=standard, for BITCODE_CXXFLAGS" >&5
7515 $as_echo_n "checking whether ${CLANGXX} supports -fexcess-precision=standard, for BITCODE_CXXFLAGS... " >&6; }
7516 if ${pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard+:} false
; then :
7517 $as_echo_n "(cached) " >&6
7519 pgac_save_CXXFLAGS
=$CXXFLAGS
7522 CXXFLAGS
="${BITCODE_CXXFLAGS} -fexcess-precision=standard"
7523 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
7524 ac_cxx_werror_flag
=yes
7526 ac_cpp
='$CXXCPP $CPPFLAGS'
7527 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7528 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7529 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7532 /* end confdefs.h. */
7542 if ac_fn_cxx_try_compile
"$LINENO"; then :
7543 pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard
=yes
7545 pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard
=no
7547 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7549 ac_cpp
='$CPP $CPPFLAGS'
7550 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7551 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7552 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7554 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
7555 CXXFLAGS
="$pgac_save_CXXFLAGS"
7556 CXX
="$pgac_save_CXX"
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard" >&5
7559 $as_echo "$pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard" >&6; }
7560 if test x
"$pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard" = x
"yes"; then
7561 BITCODE_CXXFLAGS
="${BITCODE_CXXFLAGS} -fexcess-precision=standard"
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -Xclang -no-opaque-pointers, for BITCODE_CFLAGS" >&5
7566 $as_echo_n "checking whether ${CLANG} supports -Xclang -no-opaque-pointers, for BITCODE_CFLAGS... " >&6; }
7567 if ${pgac_cv_prog_CLANG_cflags__Xclang__no_opaque_pointers+:} false
; then :
7568 $as_echo_n "(cached) " >&6
7570 pgac_save_CFLAGS
=$CFLAGS
7573 CFLAGS
="${BITCODE_CFLAGS} -Xclang -no-opaque-pointers"
7574 ac_save_c_werror_flag
=$ac_c_werror_flag
7575 ac_c_werror_flag
=yes
7576 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7577 /* end confdefs.h. */
7587 if ac_fn_c_try_compile
"$LINENO"; then :
7588 pgac_cv_prog_CLANG_cflags__Xclang__no_opaque_pointers
=yes
7590 pgac_cv_prog_CLANG_cflags__Xclang__no_opaque_pointers
=no
7592 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7593 ac_c_werror_flag
=$ac_save_c_werror_flag
7594 CFLAGS
="$pgac_save_CFLAGS"
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__Xclang__no_opaque_pointers" >&5
7598 $as_echo "$pgac_cv_prog_CLANG_cflags__Xclang__no_opaque_pointers" >&6; }
7599 if test x
"$pgac_cv_prog_CLANG_cflags__Xclang__no_opaque_pointers" = x
"yes"; then
7600 BITCODE_CFLAGS
="${BITCODE_CFLAGS} -Xclang -no-opaque-pointers"
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANGXX} supports -Xclang -no-opaque-pointers, for BITCODE_CXXFLAGS" >&5
7604 $as_echo_n "checking whether ${CLANGXX} supports -Xclang -no-opaque-pointers, for BITCODE_CXXFLAGS... " >&6; }
7605 if ${pgac_cv_prog_CLANGXX_cxxflags__Xclang__no_opaque_pointers+:} false
; then :
7606 $as_echo_n "(cached) " >&6
7608 pgac_save_CXXFLAGS
=$CXXFLAGS
7611 CXXFLAGS
="${BITCODE_CXXFLAGS} -Xclang -no-opaque-pointers"
7612 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
7613 ac_cxx_werror_flag
=yes
7615 ac_cpp
='$CXXCPP $CPPFLAGS'
7616 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7617 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7618 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7621 /* end confdefs.h. */
7631 if ac_fn_cxx_try_compile
"$LINENO"; then :
7632 pgac_cv_prog_CLANGXX_cxxflags__Xclang__no_opaque_pointers
=yes
7634 pgac_cv_prog_CLANGXX_cxxflags__Xclang__no_opaque_pointers
=no
7636 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7638 ac_cpp
='$CPP $CPPFLAGS'
7639 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7640 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7641 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7643 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
7644 CXXFLAGS
="$pgac_save_CXXFLAGS"
7645 CXX
="$pgac_save_CXX"
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANGXX_cxxflags__Xclang__no_opaque_pointers" >&5
7648 $as_echo "$pgac_cv_prog_CLANGXX_cxxflags__Xclang__no_opaque_pointers" >&6; }
7649 if test x
"$pgac_cv_prog_CLANGXX_cxxflags__Xclang__no_opaque_pointers" = x
"yes"; then
7650 BITCODE_CXXFLAGS
="${BITCODE_CXXFLAGS} -Xclang -no-opaque-pointers"
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -Wunused-command-line-argument, for NOT_THE_CFLAGS" >&5
7656 $as_echo_n "checking whether ${CLANG} supports -Wunused-command-line-argument, for NOT_THE_CFLAGS... " >&6; }
7657 if ${pgac_cv_prog_CLANG_cflags__Wunused_command_line_argument+:} false
; then :
7658 $as_echo_n "(cached) " >&6
7660 pgac_save_CFLAGS
=$CFLAGS
7663 CFLAGS
="${NOT_THE_CFLAGS} -Wunused-command-line-argument"
7664 ac_save_c_werror_flag
=$ac_c_werror_flag
7665 ac_c_werror_flag
=yes
7666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7667 /* end confdefs.h. */
7677 if ac_fn_c_try_compile
"$LINENO"; then :
7678 pgac_cv_prog_CLANG_cflags__Wunused_command_line_argument
=yes
7680 pgac_cv_prog_CLANG_cflags__Wunused_command_line_argument
=no
7682 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7683 ac_c_werror_flag
=$ac_save_c_werror_flag
7684 CFLAGS
="$pgac_save_CFLAGS"
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__Wunused_command_line_argument" >&5
7688 $as_echo "$pgac_cv_prog_CLANG_cflags__Wunused_command_line_argument" >&6; }
7689 if test x
"$pgac_cv_prog_CLANG_cflags__Wunused_command_line_argument" = x
"yes"; then
7690 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wunused-command-line-argument"
7693 if test -n "$NOT_THE_CFLAGS"; then
7694 BITCODE_CFLAGS
="$BITCODE_CFLAGS -Wno-unused-command-line-argument"
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -Wcompound-token-split-by-macro, for NOT_THE_CFLAGS" >&5
7698 $as_echo_n "checking whether ${CLANG} supports -Wcompound-token-split-by-macro, for NOT_THE_CFLAGS... " >&6; }
7699 if ${pgac_cv_prog_CLANG_cflags__Wcompound_token_split_by_macro+:} false
; then :
7700 $as_echo_n "(cached) " >&6
7702 pgac_save_CFLAGS
=$CFLAGS
7705 CFLAGS
="${NOT_THE_CFLAGS} -Wcompound-token-split-by-macro"
7706 ac_save_c_werror_flag
=$ac_c_werror_flag
7707 ac_c_werror_flag
=yes
7708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7709 /* end confdefs.h. */
7719 if ac_fn_c_try_compile
"$LINENO"; then :
7720 pgac_cv_prog_CLANG_cflags__Wcompound_token_split_by_macro
=yes
7722 pgac_cv_prog_CLANG_cflags__Wcompound_token_split_by_macro
=no
7724 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7725 ac_c_werror_flag
=$ac_save_c_werror_flag
7726 CFLAGS
="$pgac_save_CFLAGS"
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__Wcompound_token_split_by_macro" >&5
7730 $as_echo "$pgac_cv_prog_CLANG_cflags__Wcompound_token_split_by_macro" >&6; }
7731 if test x
"$pgac_cv_prog_CLANG_cflags__Wcompound_token_split_by_macro" = x
"yes"; then
7732 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wcompound-token-split-by-macro"
7735 if test -n "$NOT_THE_CFLAGS"; then
7736 BITCODE_CFLAGS
="$BITCODE_CFLAGS -Wno-compound-token-split-by-macro"
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -Wformat-truncation, for NOT_THE_CFLAGS" >&5
7740 $as_echo_n "checking whether ${CLANG} supports -Wformat-truncation, for NOT_THE_CFLAGS... " >&6; }
7741 if ${pgac_cv_prog_CLANG_cflags__Wformat_truncation+:} false
; then :
7742 $as_echo_n "(cached) " >&6
7744 pgac_save_CFLAGS
=$CFLAGS
7747 CFLAGS
="${NOT_THE_CFLAGS} -Wformat-truncation"
7748 ac_save_c_werror_flag
=$ac_c_werror_flag
7749 ac_c_werror_flag
=yes
7750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7751 /* end confdefs.h. */
7761 if ac_fn_c_try_compile
"$LINENO"; then :
7762 pgac_cv_prog_CLANG_cflags__Wformat_truncation
=yes
7764 pgac_cv_prog_CLANG_cflags__Wformat_truncation
=no
7766 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7767 ac_c_werror_flag
=$ac_save_c_werror_flag
7768 CFLAGS
="$pgac_save_CFLAGS"
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__Wformat_truncation" >&5
7772 $as_echo "$pgac_cv_prog_CLANG_cflags__Wformat_truncation" >&6; }
7773 if test x
"$pgac_cv_prog_CLANG_cflags__Wformat_truncation" = x
"yes"; then
7774 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wformat-truncation"
7777 if test -n "$NOT_THE_CFLAGS"; then
7778 BITCODE_CFLAGS
="$BITCODE_CFLAGS -Wno-format-truncation"
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -Wstringop-truncation, for NOT_THE_CFLAGS" >&5
7782 $as_echo_n "checking whether ${CLANG} supports -Wstringop-truncation, for NOT_THE_CFLAGS... " >&6; }
7783 if ${pgac_cv_prog_CLANG_cflags__Wstringop_truncation+:} false
; then :
7784 $as_echo_n "(cached) " >&6
7786 pgac_save_CFLAGS
=$CFLAGS
7789 CFLAGS
="${NOT_THE_CFLAGS} -Wstringop-truncation"
7790 ac_save_c_werror_flag
=$ac_c_werror_flag
7791 ac_c_werror_flag
=yes
7792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7793 /* end confdefs.h. */
7803 if ac_fn_c_try_compile
"$LINENO"; then :
7804 pgac_cv_prog_CLANG_cflags__Wstringop_truncation
=yes
7806 pgac_cv_prog_CLANG_cflags__Wstringop_truncation
=no
7808 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7809 ac_c_werror_flag
=$ac_save_c_werror_flag
7810 CFLAGS
="$pgac_save_CFLAGS"
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__Wstringop_truncation" >&5
7814 $as_echo "$pgac_cv_prog_CLANG_cflags__Wstringop_truncation" >&6; }
7815 if test x
"$pgac_cv_prog_CLANG_cflags__Wstringop_truncation" = x
"yes"; then
7816 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wstringop-truncation"
7819 if test -n "$NOT_THE_CFLAGS"; then
7820 BITCODE_CFLAGS
="$BITCODE_CFLAGS -Wno-stringop-truncation"
7824 # supply -g if --enable-debug
7825 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
7829 if test "$enable_debug" = yes && test "$ac_cv_prog_cxx_g" = yes; then
7830 CXXFLAGS
="$CXXFLAGS -g"
7833 # enable code coverage if --enable-coverage
7834 if test "$enable_coverage" = yes; then
7835 if test "$GCC" = yes; then
7836 CFLAGS
="$CFLAGS -fprofile-arcs -ftest-coverage"
7837 CXXFLAGS
="$CXXFLAGS -fprofile-arcs -ftest-coverage"
7839 as_fn_error $?
"--enable-coverage is supported only when using GCC" "$LINENO" 5
7843 # enable profiling if --enable-profiling
7844 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
7845 if test "$GCC" = yes; then
7847 $as_echo "#define PROFILE_PID_DIR 1" >>confdefs.h
7849 CFLAGS
="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
7850 CXXFLAGS
="$CXXFLAGS -pg $PLATFORM_PROFILE_FLAGS"
7852 as_fn_error $?
"--enable-profiling is supported only when using GCC" "$LINENO" 5
7856 # On Solaris, we need this #define to get POSIX-conforming versions
7857 # of many interfaces (sigwait, getpwuid_r, ...).
7858 if test "$PORTNAME" = "solaris"; then
7859 CPPFLAGS
="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS"
7862 # We already have this in Makefile.win32, but configure needs it too
7863 if test "$PORTNAME" = "win32"; then
7864 CPPFLAGS
="$CPPFLAGS -I$srcdir/src/include/port/win32"
7867 # Now that we're done automatically adding stuff to C[XX]FLAGS, put back the
7868 # user-specified flags (if any) at the end. This lets users override
7869 # the automatic additions.
7870 CFLAGS
="$CFLAGS $user_CFLAGS"
7871 CXXFLAGS
="$CXXFLAGS $user_CXXFLAGS"
7872 BITCODE_CFLAGS
="$BITCODE_CFLAGS $user_BITCODE_CFLAGS"
7873 BITCODE_CXXFLAGS
="$BITCODE_CXXFLAGS $user_BITCODE_CXXFLAGS"
7878 # The template file must set up CFLAGS_SL; we don't support user override
7881 # Check if the compiler still works with the final flag settings
7882 # (note, we're not checking that for CXX, which is optional)
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler still works" >&5
7884 $as_echo_n "checking whether the C compiler still works... " >&6; }
7885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7886 /* end confdefs.h. */
7896 if ac_fn_c_try_link
"$LINENO"; then :
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7898 $as_echo "yes" >&6; }
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7901 $as_echo "no" >&6; }
7902 as_fn_error $?
"cannot proceed" "$LINENO" 5
7904 rm -f core conftest.err conftest.
$ac_objext \
7905 conftest
$ac_exeext conftest.
$ac_ext
7907 # Defend against gcc -ffast-math
7908 if test "$GCC" = yes; then
7909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7910 /* end confdefs.h. */
7915 #ifdef __FAST_MATH__
7922 if ac_fn_c_try_compile
"$LINENO"; then :
7925 as_fn_error $?
"do not put -ffast-math in CFLAGS" "$LINENO" 5
7927 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7930 # Defend against clang being used on x86-32 without SSE2 enabled. As current
7931 # versions of clang do not understand -fexcess-precision=standard, the use of
7932 # x87 floating point operations leads to problems like isinf possibly returning
7933 # false for a value that is infinite when converted from the 80bit register to
7934 # the 8byte memory representation.
7936 # Only perform the test if the compiler doesn't understand
7937 # -fexcess-precision=standard, that way a potentially fixed compiler will work
7939 if test "$pgac_cv_prog_CC_cflags__fexcess_precision_standard" = no
; then
7940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7941 /* end confdefs.h. */
7947 #if defined(__clang__) && defined(__i386__) && !defined(__SSE2_MATH__)
7955 if ac_fn_c_try_compile
"$LINENO"; then :
7958 as_fn_error $?
"Compiling PostgreSQL with clang, on 32bit x86, requires SSE2 support. Use -msse2 or use gcc." "$LINENO" 5
7960 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7964 ac_cpp
='$CPP $CPPFLAGS'
7965 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7966 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7967 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7969 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7970 # On Suns, sometimes $CPP names a directory.
7971 if test -n "$CPP" && test -d "$CPP"; then
7974 if test -z "$CPP"; then
7975 if ${ac_cv_prog_CPP+:} false
; then :
7976 $as_echo_n "(cached) " >&6
7978 # Double quotes because CPP needs to be expanded
7979 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7982 for ac_c_preproc_warn_flag
in '' yes
7984 # Use a header file that comes with gcc, so configuring glibc
7985 # with a fresh cross-compiler works.
7986 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7987 # <limits.h> exists even on freestanding compilers.
7988 # On the NeXT, cc -E runs the code through the compiler's parser,
7989 # not just through cpp. "Syntax error" is here to catch this case.
7990 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7991 /* end confdefs.h. */
7993 # include <limits.h>
7995 # include <assert.h>
7999 if ac_fn_c_try_cpp
"$LINENO"; then :
8002 # Broken: fails on valid input.
8005 rm -f conftest.err conftest.i conftest.
$ac_ext
8007 # OK, works on sane cases. Now check whether nonexistent headers
8008 # can be detected and how.
8009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8010 /* end confdefs.h. */
8011 #include <ac_nonexistent.h>
8013 if ac_fn_c_try_cpp
"$LINENO"; then :
8014 # Broken: success on invalid input.
8017 # Passes both tests.
8021 rm -f conftest.err conftest.i conftest.
$ac_ext
8024 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8025 rm -f conftest.i conftest.err conftest.
$ac_ext
8026 if $ac_preproc_ok; then :
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8039 $as_echo "$CPP" >&6; }
8041 for ac_c_preproc_warn_flag
in '' yes
8043 # Use a header file that comes with gcc, so configuring glibc
8044 # with a fresh cross-compiler works.
8045 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8046 # <limits.h> exists even on freestanding compilers.
8047 # On the NeXT, cc -E runs the code through the compiler's parser,
8048 # not just through cpp. "Syntax error" is here to catch this case.
8049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8050 /* end confdefs.h. */
8052 # include <limits.h>
8054 # include <assert.h>
8058 if ac_fn_c_try_cpp
"$LINENO"; then :
8061 # Broken: fails on valid input.
8064 rm -f conftest.err conftest.i conftest.
$ac_ext
8066 # OK, works on sane cases. Now check whether nonexistent headers
8067 # can be detected and how.
8068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8069 /* end confdefs.h. */
8070 #include <ac_nonexistent.h>
8072 if ac_fn_c_try_cpp
"$LINENO"; then :
8073 # Broken: success on invalid input.
8076 # Passes both tests.
8080 rm -f conftest.err conftest.i conftest.
$ac_ext
8083 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8084 rm -f conftest.i conftest.err conftest.
$ac_ext
8085 if $ac_preproc_ok; then :
8088 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8089 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8090 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
8091 See \`config.log' for more details" "$LINENO" 5; }
8095 ac_cpp
='$CPP $CPPFLAGS'
8096 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8097 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8098 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8104 # Set up TAS assembly code if needed; the template file has now had its
8105 # chance to request this.
8107 ac_config_links
="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
8110 if test "$need_tas" = yes ; then
8118 cat >>confdefs.h
<<_ACEOF
8119 #define DLSUFFIX "$DLSUFFIX"
8124 # Set up pkg_config in case we need it below
8133 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8134 if test -n "$ac_tool_prefix"; then
8135 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8136 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8138 $as_echo_n "checking for $ac_word... " >&6; }
8139 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
8140 $as_echo_n "(cached) " >&6
8144 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
8147 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8151 test -z "$as_dir" && as_dir
=.
8152 for ac_exec_ext
in '' $ac_executable_extensions; do
8153 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8154 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8165 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
8166 if test -n "$PKG_CONFIG"; then
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8168 $as_echo "$PKG_CONFIG" >&6; }
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8171 $as_echo "no" >&6; }
8176 if test -z "$ac_cv_path_PKG_CONFIG"; then
8177 ac_pt_PKG_CONFIG
=$PKG_CONFIG
8178 # Extract the first word of "pkg-config", so it can be a program name with args.
8179 set dummy pkg-config
; ac_word
=$2
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8181 $as_echo_n "checking for $ac_word... " >&6; }
8182 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
8183 $as_echo_n "(cached) " >&6
8185 case $ac_pt_PKG_CONFIG in
8187 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8190 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8194 test -z "$as_dir" && as_dir
=.
8195 for ac_exec_ext
in '' $ac_executable_extensions; do
8196 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8197 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8208 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
8209 if test -n "$ac_pt_PKG_CONFIG"; then
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8211 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8214 $as_echo "no" >&6; }
8217 if test "x$ac_pt_PKG_CONFIG" = x
; then
8220 case $cross_compiling:$ac_tool_warned in
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8224 ac_tool_warned
=yes ;;
8226 PKG_CONFIG
=$ac_pt_PKG_CONFIG
8229 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
8233 if test -n "$PKG_CONFIG"; then
8234 _pkg_min_version
=0.9.0
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8236 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8237 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8239 $as_echo "yes" >&6; }
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8242 $as_echo "no" >&6; }
8248 # Automatic dependency tracking
8252 # Check whether --enable-depend was given.
8253 if test "${enable_depend+set}" = set; then :
8254 enableval
=$enable_depend;
8263 as_fn_error $?
"no argument expected for --enable-depend option" "$LINENO" 5
8277 # Enable assert checks
8281 # Check whether --enable-cassert was given.
8282 if test "${enable_cassert+set}" = set; then :
8283 enableval
=$enable_cassert;
8287 $as_echo "#define USE_ASSERT_CHECKING 1" >>confdefs.h
8294 as_fn_error $?
"no argument expected for --enable-cassert option" "$LINENO" 5
8307 # Include directories
8310 IFS
="${IFS}${PATH_SEPARATOR}"
8311 # SRCH_INC comes from the template file
8312 for dir
in $with_includes $SRCH_INC; do
8313 if test -d "$dir"; then
8314 INCLUDES
="$INCLUDES -I$dir"
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Include directory $dir does not exist." >&5
8317 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
8325 # Library directories
8328 IFS
="${IFS}${PATH_SEPARATOR}"
8329 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
8330 for dir
in $LIBRARY_DIRS $SRCH_LIB; do
8331 if test -d "$dir"; then
8332 LIBDIRS
="$LIBDIRS -L$dir"
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Library directory $dir does not exist." >&5
8335 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with ICU support" >&5
8344 $as_echo_n "checking whether to build with ICU support... " >&6; }
8348 # Check whether --with-icu was given.
8349 if test "${with_icu+set}" = set; then :
8354 $as_echo "#define USE_ICU 1" >>confdefs.h
8361 as_fn_error $?
"no argument expected for --with-icu option" "$LINENO" 5
8368 $as_echo "#define USE_ICU 1" >>confdefs.h
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_icu" >&5
8374 $as_echo "$with_icu" >&6; }
8377 if test "$with_icu" = yes; then
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icu-uc icu-i18n" >&5
8381 $as_echo_n "checking for icu-uc icu-i18n... " >&6; }
8383 if test -n "$ICU_CFLAGS"; then
8384 pkg_cv_ICU_CFLAGS
="$ICU_CFLAGS"
8385 elif test -n "$PKG_CONFIG"; then
8386 if test -n "$PKG_CONFIG" && \
8387 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc icu-i18n\""; } >&5
8388 ($PKG_CONFIG --exists --print-errors "icu-uc icu-i18n") 2>&5
8390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8391 test $ac_status = 0; }; then
8392 pkg_cv_ICU_CFLAGS
=`$PKG_CONFIG --cflags "icu-uc icu-i18n" 2>/dev/null`
8393 test "x$?" != "x0" && pkg_failed
=yes
8400 if test -n "$ICU_LIBS"; then
8401 pkg_cv_ICU_LIBS
="$ICU_LIBS"
8402 elif test -n "$PKG_CONFIG"; then
8403 if test -n "$PKG_CONFIG" && \
8404 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc icu-i18n\""; } >&5
8405 ($PKG_CONFIG --exists --print-errors "icu-uc icu-i18n") 2>&5
8407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8408 test $ac_status = 0; }; then
8409 pkg_cv_ICU_LIBS
=`$PKG_CONFIG --libs "icu-uc icu-i18n" 2>/dev/null`
8410 test "x$?" != "x0" && pkg_failed
=yes
8420 if test $pkg_failed = yes; then
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8422 $as_echo "no" >&6; }
8424 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8425 _pkg_short_errors_supported
=yes
8427 _pkg_short_errors_supported
=no
8429 if test $_pkg_short_errors_supported = yes; then
8430 ICU_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "icu-uc icu-i18n" 2>&1`
8432 ICU_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "icu-uc icu-i18n" 2>&1`
8434 # Put the nasty error message in config.log where it belongs
8435 echo "$ICU_PKG_ERRORS" >&5
8437 as_fn_error $?
"ICU library not found
8438 If you have ICU already installed, see config.log for details on the
8439 failure. It is possible the compiler isn't looking in the proper directory.
8440 Use --without-icu to disable ICU support." "$LINENO" 5
8441 elif test $pkg_failed = untried
; then
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8443 $as_echo "no" >&6; }
8444 as_fn_error $?
"ICU library not found
8445 If you have ICU already installed, see config.log for details on the
8446 failure. It is possible the compiler isn't looking in the proper directory.
8447 Use --without-icu to disable ICU support." "$LINENO" 5
8449 ICU_CFLAGS
=$pkg_cv_ICU_CFLAGS
8450 ICU_LIBS
=$pkg_cv_ICU_LIBS
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8452 $as_echo "yes" >&6; }
8458 # Optionally build Tcl modules (PL/Tcl)
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with Tcl" >&5
8461 $as_echo_n "checking whether to build with Tcl... " >&6; }
8465 # Check whether --with-tcl was given.
8466 if test "${with_tcl+set}" = set; then :
8476 as_fn_error $?
"no argument expected for --with-tcl option" "$LINENO" 5
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcl" >&5
8487 $as_echo "$with_tcl" >&6; }
8490 # We see if the path to the Tcl/Tk configuration scripts is specified.
8491 # This will override the use of tclsh to find the paths to search.
8496 # Check whether --with-tclconfig was given.
8497 if test "${with_tclconfig+set}" = set; then :
8498 withval
=$with_tclconfig;
8501 as_fn_error $?
"argument required for --with-tclconfig option" "$LINENO" 5
8504 as_fn_error $?
"argument required for --with-tclconfig option" "$LINENO" 5
8516 # Optionally build Perl modules (PL/Perl)
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Perl modules" >&5
8519 $as_echo_n "checking whether to build Perl modules... " >&6; }
8523 # Check whether --with-perl was given.
8524 if test "${with_perl+set}" = set; then :
8534 as_fn_error $?
"no argument expected for --with-perl option" "$LINENO" 5
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_perl" >&5
8545 $as_echo "$with_perl" >&6; }
8549 # Optionally build Python modules (PL/Python)
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Python modules" >&5
8552 $as_echo_n "checking whether to build Python modules... " >&6; }
8556 # Check whether --with-python was given.
8557 if test "${with_python+set}" = set; then :
8558 withval
=$with_python;
8567 as_fn_error $?
"no argument expected for --with-python option" "$LINENO" 5
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
8578 $as_echo "$with_python" >&6; }
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with GSSAPI support" >&5
8585 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
8589 # Check whether --with-gssapi was given.
8590 if test "${with_gssapi+set}" = set; then :
8591 withval
=$with_gssapi;
8596 $as_echo "#define ENABLE_GSS 1" >>confdefs.h
8598 krb_srvtab
="FILE:\$(sysconfdir)/krb5.keytab"
8605 as_fn_error $?
"no argument expected for --with-gssapi option" "$LINENO" 5
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_gssapi" >&5
8616 $as_echo "$with_gssapi" >&6; }
8624 # Kerberos configuration parameters
8629 # Check whether --with-krb-srvnam was given.
8630 if test "${with_krb_srvnam+set}" = set; then :
8631 withval
=$with_krb_srvnam;
8634 as_fn_error $?
"argument required for --with-krb-srvnam option" "$LINENO" 5
8637 as_fn_error $?
"argument required for --with-krb-srvnam option" "$LINENO" 5
8645 with_krb_srvnam
="postgres"
8651 cat >>confdefs.h
<<_ACEOF
8652 #define PG_KRB_SRVNAM "$with_krb_srvnam"
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with PAM support" >&5
8661 $as_echo_n "checking whether to build with PAM support... " >&6; }
8665 # Check whether --with-pam was given.
8666 if test "${with_pam+set}" = set; then :
8671 $as_echo "#define USE_PAM 1" >>confdefs.h
8678 as_fn_error $?
"no argument expected for --with-pam option" "$LINENO" 5
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pam" >&5
8689 $as_echo "$with_pam" >&6; }
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with BSD Authentication support" >&5
8696 $as_echo_n "checking whether to build with BSD Authentication support... " >&6; }
8700 # Check whether --with-bsd-auth was given.
8701 if test "${with_bsd_auth+set}" = set; then :
8702 withval
=$with_bsd_auth;
8706 $as_echo "#define USE_BSD_AUTH 1" >>confdefs.h
8713 as_fn_error $?
"no argument expected for --with-bsd-auth option" "$LINENO" 5
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_bsd_auth" >&5
8724 $as_echo "$with_bsd_auth" >&6; }
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with LDAP support" >&5
8731 $as_echo_n "checking whether to build with LDAP support... " >&6; }
8735 # Check whether --with-ldap was given.
8736 if test "${with_ldap+set}" = set; then :
8741 $as_echo "#define USE_LDAP 1" >>confdefs.h
8748 as_fn_error $?
"no argument expected for --with-ldap option" "$LINENO" 5
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ldap" >&5
8759 $as_echo "$with_ldap" >&6; }
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with Bonjour support" >&5
8767 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
8771 # Check whether --with-bonjour was given.
8772 if test "${with_bonjour+set}" = set; then :
8773 withval
=$with_bonjour;
8777 $as_echo "#define USE_BONJOUR 1" >>confdefs.h
8784 as_fn_error $?
"no argument expected for --with-bonjour option" "$LINENO" 5
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_bonjour" >&5
8795 $as_echo "$with_bonjour" >&6; }
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with SELinux support" >&5
8802 $as_echo_n "checking whether to build with SELinux support... " >&6; }
8806 # Check whether --with-selinux was given.
8807 if test "${with_selinux+set}" = set; then :
8808 withval
=$with_selinux;
8817 as_fn_error $?
"no argument expected for --with-selinux option" "$LINENO" 5
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_selinux" >&5
8829 $as_echo "$with_selinux" >&6; }
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with systemd support" >&5
8835 $as_echo_n "checking whether to build with systemd support... " >&6; }
8839 # Check whether --with-systemd was given.
8840 if test "${with_systemd+set}" = set; then :
8841 withval
=$with_systemd;
8845 $as_echo "#define USE_SYSTEMD 1" >>confdefs.h
8852 as_fn_error $?
"no argument expected for --with-systemd option" "$LINENO" 5
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemd" >&5
8864 $as_echo "$with_systemd" >&6; }
8872 # Check whether --with-readline was given.
8873 if test "${with_readline+set}" = set; then :
8874 withval
=$with_readline;
8883 as_fn_error $?
"no argument expected for --with-readline option" "$LINENO" 5
8893 # readline on MinGW has problems with backslashes in psql and other bugs.
8894 # This is particularly a problem with non-US code pages.
8895 # Therefore disable its use until we understand the cause. 2004-07-20
8896 if test "$PORTNAME" = "win32"; then
8897 if test "$with_readline" = yes; then
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Readline does not work on MinGW --- disabling" >&5
8899 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
8912 # Check whether --with-libedit-preferred was given.
8913 if test "${with_libedit_preferred+set}" = set; then :
8914 withval
=$with_libedit_preferred;
8923 as_fn_error $?
"no argument expected for --with-libedit-preferred option" "$LINENO" 5
8928 with_libedit_preferred
=no
8938 # There are at least three UUID libraries in common use: the FreeBSD/NetBSD
8939 # library, the e2fsprogs libuuid (now part of util-linux-ng), and the OSSP
8940 # UUID library. More than one of these might be present on a given platform,
8941 # so we make the user say which one she wants.
8946 # Check whether --with-uuid was given.
8947 if test "${with_uuid+set}" = set; then :
8951 as_fn_error $?
"argument required for --with-uuid option" "$LINENO" 5
8954 as_fn_error $?
"argument required for --with-uuid option" "$LINENO" 5
8964 if test x
"$with_uuid" = x
"" ; then
8970 # Check whether --with-ossp-uuid was given.
8971 if test "${with_ossp_uuid+set}" = set; then :
8972 withval
=$with_ossp_uuid;
8981 as_fn_error $?
"no argument expected for --with-ossp-uuid option" "$LINENO" 5
8991 if test "$with_ossp_uuid" = yes ; then
8995 if test "$with_uuid" != no
; then
8996 if test "$with_uuid" = bsd
; then
8998 $as_echo "#define HAVE_UUID_BSD 1" >>confdefs.h
9000 elif test "$with_uuid" = e2fs
; then
9002 $as_echo "#define HAVE_UUID_E2FS 1" >>confdefs.h
9004 elif test "$with_uuid" = ossp
; then
9006 $as_echo "#define HAVE_UUID_OSSP 1" >>confdefs.h
9009 as_fn_error $?
"--with-uuid must specify one of bsd, e2fs, or ossp" "$LINENO" 5
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with XML support" >&5
9019 $as_echo_n "checking whether to build with XML support... " >&6; }
9023 # Check whether --with-libxml was given.
9024 if test "${with_libxml+set}" = set; then :
9025 withval
=$with_libxml;
9029 $as_echo "#define USE_LIBXML 1" >>confdefs.h
9036 as_fn_error $?
"no argument expected for --with-libxml option" "$LINENO" 5
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_libxml" >&5
9047 $as_echo "$with_libxml" >&6; }
9050 if test "$with_libxml" = yes ; then
9051 # Check pkg-config, then xml2-config. But for backwards compatibility,
9052 # setting XML2_CONFIG overrides pkg-config.
9053 have_libxml2_pkg_config
=no
9054 if test -z "$XML2_CONFIG" -a -n "$PKG_CONFIG"; then
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.6.23" >&5
9058 $as_echo_n "checking for libxml-2.0 >= 2.6.23... " >&6; }
9060 if test -n "$XML2_CFLAGS"; then
9061 pkg_cv_XML2_CFLAGS
="$XML2_CFLAGS"
9062 elif test -n "$PKG_CONFIG"; then
9063 if test -n "$PKG_CONFIG" && \
9064 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.23\""; } >&5
9065 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.23") 2>&5
9067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9068 test $ac_status = 0; }; then
9069 pkg_cv_XML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.23" 2>/dev/null`
9070 test "x$?" != "x0" && pkg_failed
=yes
9077 if test -n "$XML2_LIBS"; then
9078 pkg_cv_XML2_LIBS
="$XML2_LIBS"
9079 elif test -n "$PKG_CONFIG"; then
9080 if test -n "$PKG_CONFIG" && \
9081 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.23\""; } >&5
9082 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.23") 2>&5
9084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9085 test $ac_status = 0; }; then
9086 pkg_cv_XML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.23" 2>/dev/null`
9087 test "x$?" != "x0" && pkg_failed
=yes
9097 if test $pkg_failed = yes; then
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9099 $as_echo "no" >&6; }
9101 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9102 _pkg_short_errors_supported
=yes
9104 _pkg_short_errors_supported
=no
9106 if test $_pkg_short_errors_supported = yes; then
9107 XML2_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6.23" 2>&1`
9109 XML2_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6.23" 2>&1`
9111 # Put the nasty error message in config.log where it belongs
9112 echo "$XML2_PKG_ERRORS" >&5
9115 elif test $pkg_failed = untried
; then
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9117 $as_echo "no" >&6; }
9120 XML2_CFLAGS
=$pkg_cv_XML2_CFLAGS
9121 XML2_LIBS
=$pkg_cv_XML2_LIBS
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9123 $as_echo "yes" >&6; }
9124 have_libxml2_pkg_config
=yes
9127 if test "$have_libxml2_pkg_config" = no
; then
9128 if test -z "$XML2_CONFIG"; then
9129 for ac_prog
in xml2-config
9131 # Extract the first word of "$ac_prog", so it can be a program name with args.
9132 set dummy
$ac_prog; ac_word
=$2
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9134 $as_echo_n "checking for $ac_word... " >&6; }
9135 if ${ac_cv_path_XML2_CONFIG+:} false
; then :
9136 $as_echo_n "(cached) " >&6
9138 case $XML2_CONFIG in
9140 ac_cv_path_XML2_CONFIG
="$XML2_CONFIG" # Let the user override the test with a path.
9143 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9147 test -z "$as_dir" && as_dir
=.
9148 for ac_exec_ext
in '' $ac_executable_extensions; do
9149 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9150 ac_cv_path_XML2_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9161 XML2_CONFIG
=$ac_cv_path_XML2_CONFIG
9162 if test -n "$XML2_CONFIG"; then
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
9164 $as_echo "$XML2_CONFIG" >&6; }
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9167 $as_echo "no" >&6; }
9171 test -n "$XML2_CONFIG" && break
9175 # Report the value of XML2_CONFIG in configure's output in all cases.
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML2_CONFIG" >&5
9177 $as_echo_n "checking for XML2_CONFIG... " >&6; }
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
9179 $as_echo "$XML2_CONFIG" >&6; }
9182 if test -n "$XML2_CONFIG"; then
9183 XML2_CFLAGS
=`$XML2_CONFIG --cflags`
9184 XML2_LIBS
=`$XML2_CONFIG --libs`
9187 # Note the user could also set XML2_CFLAGS/XML2_LIBS directly
9188 for pgac_option
in $XML2_CFLAGS; do
9189 case $pgac_option in
9190 -I*|
-D*) CPPFLAGS
="$CPPFLAGS $pgac_option";;
9193 for pgac_option
in $XML2_LIBS; do
9194 case $pgac_option in
9195 -L*) LDFLAGS
="$LDFLAGS $pgac_option";;
9207 # Check whether --with-libxslt was given.
9208 if test "${with_libxslt+set}" = set; then :
9209 withval
=$with_libxslt;
9213 $as_echo "#define USE_LIBXSLT 1" >>confdefs.h
9220 as_fn_error $?
"no argument expected for --with-libxslt option" "$LINENO" 5
9240 # Check whether --with-system-tzdata was given.
9241 if test "${with_system_tzdata+set}" = set; then :
9242 withval
=$with_system_tzdata;
9245 as_fn_error $?
"argument required for --with-system-tzdata option" "$LINENO" 5
9248 as_fn_error $?
"argument required for --with-system-tzdata option" "$LINENO" 5
9266 # Check whether --with-zlib was given.
9267 if test "${with_zlib+set}" = set; then :
9277 as_fn_error $?
"no argument expected for --with-zlib option" "$LINENO" 5
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with LZ4 support" >&5
9293 $as_echo_n "checking whether to build with LZ4 support... " >&6; }
9297 # Check whether --with-lz4 was given.
9298 if test "${with_lz4+set}" = set; then :
9303 $as_echo "#define USE_LZ4 1" >>confdefs.h
9310 as_fn_error $?
"no argument expected for --with-lz4 option" "$LINENO" 5
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lz4" >&5
9321 $as_echo "$with_lz4" >&6; }
9324 if test "$with_lz4" = yes; then
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblz4" >&5
9328 $as_echo_n "checking for liblz4... " >&6; }
9330 if test -n "$LZ4_CFLAGS"; then
9331 pkg_cv_LZ4_CFLAGS
="$LZ4_CFLAGS"
9332 elif test -n "$PKG_CONFIG"; then
9333 if test -n "$PKG_CONFIG" && \
9334 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblz4\""; } >&5
9335 ($PKG_CONFIG --exists --print-errors "liblz4") 2>&5
9337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9338 test $ac_status = 0; }; then
9339 pkg_cv_LZ4_CFLAGS
=`$PKG_CONFIG --cflags "liblz4" 2>/dev/null`
9340 test "x$?" != "x0" && pkg_failed
=yes
9347 if test -n "$LZ4_LIBS"; then
9348 pkg_cv_LZ4_LIBS
="$LZ4_LIBS"
9349 elif test -n "$PKG_CONFIG"; then
9350 if test -n "$PKG_CONFIG" && \
9351 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblz4\""; } >&5
9352 ($PKG_CONFIG --exists --print-errors "liblz4") 2>&5
9354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9355 test $ac_status = 0; }; then
9356 pkg_cv_LZ4_LIBS
=`$PKG_CONFIG --libs "liblz4" 2>/dev/null`
9357 test "x$?" != "x0" && pkg_failed
=yes
9367 if test $pkg_failed = yes; then
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9369 $as_echo "no" >&6; }
9371 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9372 _pkg_short_errors_supported
=yes
9374 _pkg_short_errors_supported
=no
9376 if test $_pkg_short_errors_supported = yes; then
9377 LZ4_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblz4" 2>&1`
9379 LZ4_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "liblz4" 2>&1`
9381 # Put the nasty error message in config.log where it belongs
9382 echo "$LZ4_PKG_ERRORS" >&5
9384 as_fn_error $?
"Package requirements (liblz4) were not met:
9388 Consider adjusting the PKG_CONFIG_PATH environment variable if you
9389 installed software in a non-standard prefix.
9391 Alternatively, you may set the environment variables LZ4_CFLAGS
9392 and LZ4_LIBS to avoid the need to call pkg-config.
9393 See the pkg-config man page for more details." "$LINENO" 5
9394 elif test $pkg_failed = untried
; then
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9396 $as_echo "no" >&6; }
9397 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9399 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
9400 is in your PATH or set the PKG_CONFIG environment variable to the full
9403 Alternatively, you may set the environment variables LZ4_CFLAGS
9404 and LZ4_LIBS to avoid the need to call pkg-config.
9405 See the pkg-config man page for more details.
9407 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
9408 See \`config.log' for more details" "$LINENO" 5; }
9410 LZ4_CFLAGS
=$pkg_cv_LZ4_CFLAGS
9411 LZ4_LIBS
=$pkg_cv_LZ4_LIBS
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9413 $as_echo "yes" >&6; }
9416 # We only care about -I, -D, and -L switches;
9417 # note that -llz4 will be added by AC_CHECK_LIB below.
9418 for pgac_option
in $LZ4_CFLAGS; do
9419 case $pgac_option in
9420 -I*|
-D*) CPPFLAGS
="$CPPFLAGS $pgac_option";;
9423 for pgac_option
in $LZ4_LIBS; do
9424 case $pgac_option in
9425 -L*) LDFLAGS
="$LDFLAGS $pgac_option";;
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with ZSTD support" >&5
9434 $as_echo_n "checking whether to build with ZSTD support... " >&6; }
9438 # Check whether --with-zstd was given.
9439 if test "${with_zstd+set}" = set; then :
9444 $as_echo "#define USE_ZSTD 1" >>confdefs.h
9451 as_fn_error $?
"no argument expected for --with-zstd option" "$LINENO" 5
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_zstd" >&5
9462 $as_echo "$with_zstd" >&6; }
9465 if test "$with_zstd" = yes; then
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.4.0" >&5
9469 $as_echo_n "checking for libzstd >= 1.4.0... " >&6; }
9471 if test -n "$ZSTD_CFLAGS"; then
9472 pkg_cv_ZSTD_CFLAGS
="$ZSTD_CFLAGS"
9473 elif test -n "$PKG_CONFIG"; then
9474 if test -n "$PKG_CONFIG" && \
9475 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
9476 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
9478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9479 test $ac_status = 0; }; then
9480 pkg_cv_ZSTD_CFLAGS
=`$PKG_CONFIG --cflags "libzstd >= 1.4.0" 2>/dev/null`
9481 test "x$?" != "x0" && pkg_failed
=yes
9488 if test -n "$ZSTD_LIBS"; then
9489 pkg_cv_ZSTD_LIBS
="$ZSTD_LIBS"
9490 elif test -n "$PKG_CONFIG"; then
9491 if test -n "$PKG_CONFIG" && \
9492 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
9493 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
9495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9496 test $ac_status = 0; }; then
9497 pkg_cv_ZSTD_LIBS
=`$PKG_CONFIG --libs "libzstd >= 1.4.0" 2>/dev/null`
9498 test "x$?" != "x0" && pkg_failed
=yes
9508 if test $pkg_failed = yes; then
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9510 $as_echo "no" >&6; }
9512 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9513 _pkg_short_errors_supported
=yes
9515 _pkg_short_errors_supported
=no
9517 if test $_pkg_short_errors_supported = yes; then
9518 ZSTD_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
9520 ZSTD_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
9522 # Put the nasty error message in config.log where it belongs
9523 echo "$ZSTD_PKG_ERRORS" >&5
9525 as_fn_error $?
"Package requirements (libzstd >= 1.4.0) were not met:
9529 Consider adjusting the PKG_CONFIG_PATH environment variable if you
9530 installed software in a non-standard prefix.
9532 Alternatively, you may set the environment variables ZSTD_CFLAGS
9533 and ZSTD_LIBS to avoid the need to call pkg-config.
9534 See the pkg-config man page for more details." "$LINENO" 5
9535 elif test $pkg_failed = untried
; then
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9537 $as_echo "no" >&6; }
9538 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9539 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9540 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
9541 is in your PATH or set the PKG_CONFIG environment variable to the full
9544 Alternatively, you may set the environment variables ZSTD_CFLAGS
9545 and ZSTD_LIBS to avoid the need to call pkg-config.
9546 See the pkg-config man page for more details.
9548 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
9549 See \`config.log' for more details" "$LINENO" 5; }
9551 ZSTD_CFLAGS
=$pkg_cv_ZSTD_CFLAGS
9552 ZSTD_LIBS
=$pkg_cv_ZSTD_LIBS
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9554 $as_echo "yes" >&6; }
9557 # We only care about -I, -D, and -L switches;
9558 # note that -lzstd will be added by AC_CHECK_LIB below.
9559 for pgac_option
in $ZSTD_CFLAGS; do
9560 case $pgac_option in
9561 -I*|
-D*) CPPFLAGS
="$CPPFLAGS $pgac_option";;
9564 for pgac_option
in $ZSTD_LIBS; do
9565 case $pgac_option in
9566 -L*) LDFLAGS
="$LDFLAGS $pgac_option";;
9574 CPPFLAGS
="$CPPFLAGS $INCLUDES"
9575 LDFLAGS
="$LDFLAGS $LIBDIRS"
9581 if test -n "$ac_tool_prefix"; then
9582 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9583 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9585 $as_echo_n "checking for $ac_word... " >&6; }
9586 if ${ac_cv_prog_STRIP+:} false
; then :
9587 $as_echo_n "(cached) " >&6
9589 if test -n "$STRIP"; then
9590 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
9592 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9596 test -z "$as_dir" && as_dir
=.
9597 for ac_exec_ext
in '' $ac_executable_extensions; do
9598 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9599 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
9600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9609 STRIP
=$ac_cv_prog_STRIP
9610 if test -n "$STRIP"; then
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9612 $as_echo "$STRIP" >&6; }
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9615 $as_echo "no" >&6; }
9620 if test -z "$ac_cv_prog_STRIP"; then
9622 # Extract the first word of "strip", so it can be a program name with args.
9623 set dummy strip
; ac_word
=$2
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9625 $as_echo_n "checking for $ac_word... " >&6; }
9626 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
9627 $as_echo_n "(cached) " >&6
9629 if test -n "$ac_ct_STRIP"; then
9630 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
9632 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9636 test -z "$as_dir" && as_dir
=.
9637 for ac_exec_ext
in '' $ac_executable_extensions; do
9638 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9639 ac_cv_prog_ac_ct_STRIP
="strip"
9640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9649 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
9650 if test -n "$ac_ct_STRIP"; then
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9652 $as_echo "$ac_ct_STRIP" >&6; }
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9655 $as_echo "no" >&6; }
9658 if test "x$ac_ct_STRIP" = x
; then
9661 case $cross_compiling:$ac_tool_warned in
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9664 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9665 ac_tool_warned
=yes ;;
9670 STRIP
="$ac_cv_prog_STRIP"
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is possible to strip libraries" >&5
9675 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
9676 if test x
"$STRIP" != x
"" && "$STRIP" -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
9677 STRIP_STATIC_LIB
="$STRIP --strip-unneeded"
9678 STRIP_SHARED_LIB
="$STRIP --strip-unneeded"
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9680 $as_echo "yes" >&6; }
9685 STRIP_STATIC_LIB
=$STRIP
9686 STRIP_SHARED_LIB
=$STRIP
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9688 $as_echo "yes" >&6; }
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9694 $as_echo "no" >&6; }
9701 if test -n "$ac_tool_prefix"; then
9702 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9703 set dummy
${ac_tool_prefix}ar; ac_word
=$2
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9705 $as_echo_n "checking for $ac_word... " >&6; }
9706 if ${ac_cv_prog_AR+:} false
; then :
9707 $as_echo_n "(cached) " >&6
9709 if test -n "$AR"; then
9710 ac_cv_prog_AR
="$AR" # Let the user override the test.
9712 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9716 test -z "$as_dir" && as_dir
=.
9717 for ac_exec_ext
in '' $ac_executable_extensions; do
9718 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9719 ac_cv_prog_AR
="${ac_tool_prefix}ar"
9720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9730 if test -n "$AR"; then
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9732 $as_echo "$AR" >&6; }
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9735 $as_echo "no" >&6; }
9740 if test -z "$ac_cv_prog_AR"; then
9742 # Extract the first word of "ar", so it can be a program name with args.
9743 set dummy
ar; ac_word
=$2
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9745 $as_echo_n "checking for $ac_word... " >&6; }
9746 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
9747 $as_echo_n "(cached) " >&6
9749 if test -n "$ac_ct_AR"; then
9750 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
9752 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9756 test -z "$as_dir" && as_dir
=.
9757 for ac_exec_ext
in '' $ac_executable_extensions; do
9758 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9759 ac_cv_prog_ac_ct_AR
="ar"
9760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9769 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
9770 if test -n "$ac_ct_AR"; then
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9772 $as_echo "$ac_ct_AR" >&6; }
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9775 $as_echo "no" >&6; }
9778 if test "x$ac_ct_AR" = x
; then
9781 case $cross_compiling:$ac_tool_warned in
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9784 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9785 ac_tool_warned
=yes ;;
9793 if test "$PORTNAME" = "win32"; then
9794 if test -n "$ac_tool_prefix"; then
9795 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
9796 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9798 $as_echo_n "checking for $ac_word... " >&6; }
9799 if ${ac_cv_prog_WINDRES+:} false
; then :
9800 $as_echo_n "(cached) " >&6
9802 if test -n "$WINDRES"; then
9803 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
9805 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9809 test -z "$as_dir" && as_dir
=.
9810 for ac_exec_ext
in '' $ac_executable_extensions; do
9811 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9812 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
9813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9822 WINDRES
=$ac_cv_prog_WINDRES
9823 if test -n "$WINDRES"; then
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9825 $as_echo "$WINDRES" >&6; }
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9828 $as_echo "no" >&6; }
9833 if test -z "$ac_cv_prog_WINDRES"; then
9834 ac_ct_WINDRES
=$WINDRES
9835 # Extract the first word of "windres", so it can be a program name with args.
9836 set dummy windres
; ac_word
=$2
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9838 $as_echo_n "checking for $ac_word... " >&6; }
9839 if ${ac_cv_prog_ac_ct_WINDRES+:} false
; then :
9840 $as_echo_n "(cached) " >&6
9842 if test -n "$ac_ct_WINDRES"; then
9843 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
9845 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9849 test -z "$as_dir" && as_dir
=.
9850 for ac_exec_ext
in '' $ac_executable_extensions; do
9851 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9852 ac_cv_prog_ac_ct_WINDRES
="windres"
9853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9862 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
9863 if test -n "$ac_ct_WINDRES"; then
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
9865 $as_echo "$ac_ct_WINDRES" >&6; }
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9868 $as_echo "no" >&6; }
9871 if test "x$ac_ct_WINDRES" = x
; then
9874 case $cross_compiling:$ac_tool_warned in
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9878 ac_tool_warned
=yes ;;
9880 WINDRES
=$ac_ct_WINDRES
9883 WINDRES
="$ac_cv_prog_WINDRES"
9888 # Find a good install program. We prefer a C program (faster),
9889 # so one script is as good as another. But avoid the broken or
9890 # incompatible versions:
9891 # SysV /etc/install, /usr/sbin/install
9892 # SunOS /usr/etc/install
9893 # IRIX /sbin/install
9895 # AmigaOS /C/install, which installs bootblocks on floppy discs
9896 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9897 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9898 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9899 # OS/2's system install, which has a completely different semantic
9900 # ./install, which can be erroneously created by make from ./install.sh.
9901 # Reject install programs that cannot install multiple files.
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
9903 $as_echo_n "checking for a BSD-compatible install... " >&6; }
9904 if test -z "$INSTALL"; then
9905 if ${ac_cv_path_install+:} false
; then :
9906 $as_echo_n "(cached) " >&6
9908 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9912 test -z "$as_dir" && as_dir
=.
9913 # Account for people who put trailing slashes in PATH elements.
9914 case $as_dir/ in #((
9915 .
/ | .
// |
/[cC
]/* | \
9916 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
9917 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
9920 # OSF1 and SCO ODT 3.0 have their own names for install.
9921 # Don't use installbsd from OSF since it installs stuff as root
9923 for ac_prog
in ginstall scoinst
install; do
9924 for ac_exec_ext
in '' $ac_executable_extensions; do
9925 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
9926 if test $ac_prog = install &&
9927 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
9928 # AIX install. It has an incompatible calling convention.
9930 elif test $ac_prog = install &&
9931 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
9932 # program-specific install script used by HP pwplus--don't use.
9935 rm -rf conftest.one conftest.two conftest.dir
9936 echo one
> conftest.one
9937 echo two
> conftest.two
9939 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
9940 test -s conftest.one
&& test -s conftest.two
&&
9941 test -s conftest.dir
/conftest.one
&&
9942 test -s conftest.dir
/conftest.two
9944 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
9957 rm -rf conftest.one conftest.two conftest.dir
9960 if test "${ac_cv_path_install+set}" = set; then
9961 INSTALL
=$ac_cv_path_install
9963 # As a last resort, use the slow shell script. Don't cache a
9964 # value for INSTALL within a source directory, because that will
9965 # break other packages using the cache if that directory is
9966 # removed, or if the value is a relative name.
9967 INSTALL
=$ac_install_sh
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
9971 $as_echo "$INSTALL" >&6; }
9973 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9974 # It thinks the first close brace ends the variable substitution.
9975 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
9977 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
9979 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
9981 # When Autoconf chooses install-sh as install program it tries to generate
9982 # a relative path to it in each makefile where it substitutes it. This clashes
9983 # with our Makefile.global concept. This workaround helps.
9985 *install-sh
*) install_bin
='';;
9986 *) install_bin
=$INSTALL;;
9990 if test -z "$TAR"; then
9993 # Extract the first word of "$ac_prog", so it can be a program name with args.
9994 set dummy
$ac_prog; ac_word
=$2
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9996 $as_echo_n "checking for $ac_word... " >&6; }
9997 if ${ac_cv_path_TAR+:} false
; then :
9998 $as_echo_n "(cached) " >&6
10002 ac_cv_path_TAR
="$TAR" # Let the user override the test with a path.
10005 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10006 for as_dir
in $PATH
10009 test -z "$as_dir" && as_dir
=.
10010 for ac_exec_ext
in '' $ac_executable_extensions; do
10011 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10012 ac_cv_path_TAR
="$as_dir/$ac_word$ac_exec_ext"
10013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10023 TAR
=$ac_cv_path_TAR
10024 if test -n "$TAR"; then
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
10026 $as_echo "$TAR" >&6; }
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10029 $as_echo "no" >&6; }
10033 test -n "$TAR" && break
10037 # Report the value of TAR in configure's output in all cases.
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
10039 $as_echo_n "checking for TAR... " >&6; }
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
10041 $as_echo "$TAR" >&6; }
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
10045 $as_echo_n "checking whether ln -s works... " >&6; }
10047 if test "$LN_S" = "ln -s"; then
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10049 $as_echo "yes" >&6; }
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
10052 $as_echo "no, using $LN_S" >&6; }
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
10056 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
10057 if test -z "$MKDIR_P"; then
10058 if ${ac_cv_path_mkdir+:} false
; then :
10059 $as_echo_n "(cached) " >&6
10061 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10062 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
10065 test -z "$as_dir" && as_dir
=.
10066 for ac_prog
in mkdir gmkdir
; do
10067 for ac_exec_ext
in '' $ac_executable_extensions; do
10068 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
10069 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
10070 'mkdir (GNU coreutils) '* | \
10071 'mkdir (coreutils) '* | \
10072 'mkdir (fileutils) '4.1*)
10073 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
10083 test -d .
/--version && rmdir .
/--version
10084 if test "${ac_cv_path_mkdir+set}" = set; then
10085 MKDIR_P
="$ac_cv_path_mkdir -p"
10087 # As a last resort, use the slow shell script. Don't cache a
10088 # value for MKDIR_P within a source directory, because that will
10089 # break other packages using the cache if that directory is
10090 # removed, or if the value is a relative name.
10091 MKDIR_P
="$ac_install_sh -d"
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
10095 $as_echo "$MKDIR_P" >&6; }
10097 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
10098 # a relative path to it in each makefile where it substitutes it. This clashes
10099 # with our Makefile.global concept. This workaround helps.
10101 *install-sh
*) MKDIR_P
='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
10104 if test -z "$BISON"; then
10105 for ac_prog
in bison
10107 # Extract the first word of "$ac_prog", so it can be a program name with args.
10108 set dummy
$ac_prog; ac_word
=$2
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10110 $as_echo_n "checking for $ac_word... " >&6; }
10111 if ${ac_cv_path_BISON+:} false
; then :
10112 $as_echo_n "(cached) " >&6
10116 ac_cv_path_BISON
="$BISON" # Let the user override the test with a path.
10119 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10120 for as_dir
in $PATH
10123 test -z "$as_dir" && as_dir
=.
10124 for ac_exec_ext
in '' $ac_executable_extensions; do
10125 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10126 ac_cv_path_BISON
="$as_dir/$ac_word$ac_exec_ext"
10127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10137 BISON
=$ac_cv_path_BISON
10138 if test -n "$BISON"; then
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10140 $as_echo "$BISON" >&6; }
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10143 $as_echo "no" >&6; }
10147 test -n "$BISON" && break
10151 # Report the value of BISON in configure's output in all cases.
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BISON" >&5
10153 $as_echo_n "checking for BISON... " >&6; }
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10155 $as_echo "$BISON" >&6; }
10159 if test "$BISON"; then
10160 pgac_bison_version
=`$BISON --version 2>/dev/null | sed q`
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: using $pgac_bison_version" >&5
10162 $as_echo "$as_me: using $pgac_bison_version" >&6;}
10163 if echo "$pgac_bison_version" |
$AWK '{ if ($4 < 2.3) exit 0; else exit 1;}'
10166 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
10167 *** Bison version 2.3 or later is required, but this is $pgac_bison_version." "$LINENO" 5
10169 # Bison >=3.0 issues warnings about %name-prefix="base_yy", instead
10170 # of the now preferred %name-prefix "base_yy", but the latter
10171 # doesn't work with Bison 2.3 or less. So for now we silence the
10172 # deprecation warnings.
10173 if echo "$pgac_bison_version" |
$AWK '{ if ($4 >= 3) exit 0; else exit 1;}'
10175 BISONFLAGS
="$BISONFLAGS -Wno-deprecated"
10179 if test -z "$BISON"; then
10180 as_fn_error $?
"bison not found" "$LINENO" 5
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex" >&5
10185 $as_echo_n "checking for flex... " >&6; }
10186 if ${pgac_cv_path_flex+:} false
; then :
10187 $as_echo_n "(cached) " >&6
10189 # Let the user override the test
10190 if test -n "$FLEX"; then
10191 pgac_cv_path_flex
=$FLEX
10194 IFS
=$PATH_SEPARATOR
10195 for pgac_dir
in $PATH; do
10197 if test -z "$pgac_dir" ||
test x
"$pgac_dir" = x
"."; then
10200 for pgac_prog
in flex
lex; do
10201 pgac_candidate
="$pgac_dir/$pgac_prog"
10202 if test -f "$pgac_candidate" \
10203 && $pgac_candidate --version </dev
/null
>/dev
/null
2>&1
10205 echo '%%' > conftest.l
10206 if $pgac_candidate -t conftest.l
2>/dev
/null |
grep FLEX_SCANNER
>/dev
/null
2>&1; then
10207 pgac_flex_version
=`$pgac_candidate --version 2>/dev/null`
10208 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;}'
10210 pgac_cv_path_flex
=$pgac_candidate
10214 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
10215 *** Flex version 2.5.35 or later is required, but this is $pgac_flex_version." "$LINENO" 5
10221 rm -f conftest.l
lex.yy.c
10222 : ${pgac_cv_path_flex=no}
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_path_flex" >&5
10227 $as_echo "$pgac_cv_path_flex" >&6; }
10228 if test x
"$pgac_cv_path_flex" = x
"no"; then
10229 as_fn_error $?
"flex not found" "$LINENO" 5
10231 FLEX
=$pgac_cv_path_flex
10232 pgac_flex_version
=`$FLEX --version 2>/dev/null`
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: using $pgac_flex_version" >&5
10234 $as_echo "$as_me: using $pgac_flex_version" >&6;}
10241 if test -z "$PERL"; then
10242 for ac_prog
in perl
10244 # Extract the first word of "$ac_prog", so it can be a program name with args.
10245 set dummy
$ac_prog; ac_word
=$2
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10247 $as_echo_n "checking for $ac_word... " >&6; }
10248 if ${ac_cv_path_PERL+:} false
; then :
10249 $as_echo_n "(cached) " >&6
10253 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
10256 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10257 for as_dir
in $PATH
10260 test -z "$as_dir" && as_dir
=.
10261 for ac_exec_ext
in '' $ac_executable_extensions; do
10262 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10263 ac_cv_path_PERL
="$as_dir/$ac_word$ac_exec_ext"
10264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10274 PERL
=$ac_cv_path_PERL
10275 if test -n "$PERL"; then
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
10277 $as_echo "$PERL" >&6; }
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10280 $as_echo "no" >&6; }
10284 test -n "$PERL" && break
10288 # Report the value of PERL in configure's output in all cases.
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PERL" >&5
10290 $as_echo_n "checking for PERL... " >&6; }
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
10292 $as_echo "$PERL" >&6; }
10296 if test "$PERL"; then
10297 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'`
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: using perl $pgac_perl_version" >&5
10299 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
10300 if echo "$pgac_perl_version" |
sed 's/[.a-z_]/ /g' | \
10301 $AWK '{ if ($1 == 5 && ($2 >= 14)) exit 1; else exit 0;}'
10304 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
10305 *** Perl version 5.14 or later is required, but this is $pgac_perl_version." "$LINENO" 5
10309 if test -z "$PERL"; then
10310 as_fn_error $?
"Perl not found" "$LINENO" 5
10313 if test "$with_perl" = yes; then
10314 if test -z "$PERL"; then
10315 as_fn_error $?
"Perl not found" "$LINENO" 5
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl archlibexp" >&5
10319 $as_echo_n "checking for Perl archlibexp... " >&6; }
10320 perl_archlibexp
=`$PERL -MConfig -e 'print $Config{archlibexp}'`
10321 test "$PORTNAME" = "win32" && perl_archlibexp
=`echo $perl_archlibexp | sed 's,\\\\,/,g'`
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_archlibexp" >&5
10323 $as_echo "$perl_archlibexp" >&6; }
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl privlibexp" >&5
10325 $as_echo_n "checking for Perl privlibexp... " >&6; }
10326 perl_privlibexp
=`$PERL -MConfig -e 'print $Config{privlibexp}'`
10327 test "$PORTNAME" = "win32" && perl_privlibexp
=`echo $perl_privlibexp | sed 's,\\\\,/,g'`
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_privlibexp" >&5
10329 $as_echo "$perl_privlibexp" >&6; }
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl useshrplib" >&5
10331 $as_echo_n "checking for Perl useshrplib... " >&6; }
10332 perl_useshrplib
=`$PERL -MConfig -e 'print $Config{useshrplib}'`
10333 test "$PORTNAME" = "win32" && perl_useshrplib
=`echo $perl_useshrplib | sed 's,\\\\,/,g'`
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_useshrplib" >&5
10335 $as_echo "$perl_useshrplib" >&6; }
10336 if test "$perl_useshrplib" != yes && test "$perl_useshrplib" != true
; then
10337 as_fn_error $?
"cannot build PL/Perl because libperl is not a shared library
10338 You might have to rebuild your Perl installation. Refer to the
10339 documentation for details. Use --without-perl to disable building
10340 PL/Perl." "$LINENO" 5
10342 # On most platforms, archlibexp is also where the Perl include files live ...
10343 perl_includespec
="-I$perl_archlibexp/CORE"
10344 # ... but on newer macOS versions, we must use -iwithsysroot to look
10345 # under $PG_SYSROOT
10346 if test \
! -f "$perl_archlibexp/CORE/perl.h" ; then
10347 if test -f "$PG_SYSROOT$perl_archlibexp/CORE/perl.h" ; then
10348 perl_includespec
="-iwithsysroot $perl_archlibexp/CORE"
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS recommended by Perl" >&5
10353 $as_echo_n "checking for CFLAGS recommended by Perl... " >&6; }
10354 perl_ccflags
=`$PERL -MConfig -e 'print $Config{ccflags}'`
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_ccflags" >&5
10356 $as_echo "$perl_ccflags" >&6; }
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS to compile embedded Perl" >&5
10358 $as_echo_n "checking for CFLAGS to compile embedded Perl... " >&6; }
10359 perl_embed_ccflags
=`$PERL -MConfig -e 'foreach $f (split(" ",$Config{ccflags})) {print $f, " " if ($f =~ /^-D[^_]/ || $f =~ /^-D_USE_32BIT_TIME_T/)}'`
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_embed_ccflags" >&5
10361 $as_echo "$perl_embed_ccflags" >&6; }
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flags to link embedded Perl" >&5
10365 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
10366 if test "$PORTNAME" = "win32" ; then
10367 perl_lib
=`basename $perl_archlibexp/CORE/perl[5-9]*.lib .lib`
10368 if test -e "$perl_archlibexp/CORE/$perl_lib.lib"; then
10369 perl_embed_ldflags
="-L$perl_archlibexp/CORE -l$perl_lib"
10371 perl_lib
=`basename $perl_archlibexp/CORE/libperl[5-9]*.a .a | sed 's/^lib//'`
10372 if test -e "$perl_archlibexp/CORE/lib$perl_lib.a"; then
10373 perl_embed_ldflags
="-L$perl_archlibexp/CORE -l$perl_lib"
10377 pgac_tmp1
=`$PERL -MExtUtils::Embed -e ldopts`
10378 pgac_tmp2
=`$PERL -MConfig -e 'print "$Config{ccdlflags} $Config{ldflags}"'`
10379 perl_embed_ldflags
=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%"`
10381 if test -z "$perl_embed_ldflags" ; then
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10383 $as_echo "no" >&6; }
10384 as_fn_error $?
"could not determine flags for linking embedded Perl.
10385 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
10386 installed." "$LINENO" 5
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_embed_ldflags" >&5
10389 $as_echo "$perl_embed_ldflags" >&6; }
10394 if test "$with_python" = yes; then
10395 if test -z "$PYTHON"; then
10396 for ac_prog
in python3 python
10398 # Extract the first word of "$ac_prog", so it can be a program name with args.
10399 set dummy
$ac_prog; ac_word
=$2
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10401 $as_echo_n "checking for $ac_word... " >&6; }
10402 if ${ac_cv_path_PYTHON+:} false
; then :
10403 $as_echo_n "(cached) " >&6
10407 ac_cv_path_PYTHON
="$PYTHON" # Let the user override the test with a path.
10410 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10411 for as_dir
in $PATH
10414 test -z "$as_dir" && as_dir
=.
10415 for ac_exec_ext
in '' $ac_executable_extensions; do
10416 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10417 ac_cv_path_PYTHON
="$as_dir/$ac_word$ac_exec_ext"
10418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10428 PYTHON
=$ac_cv_path_PYTHON
10429 if test -n "$PYTHON"; then
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
10431 $as_echo "$PYTHON" >&6; }
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10434 $as_echo "no" >&6; }
10438 test -n "$PYTHON" && break
10442 # Report the value of PYTHON in configure's output in all cases.
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYTHON" >&5
10444 $as_echo_n "checking for PYTHON... " >&6; }
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
10446 $as_echo "$PYTHON" >&6; }
10449 if test x
"$PYTHON" = x
""; then
10450 as_fn_error $?
"Python not found" "$LINENO" 5
10454 python_fullversion
=`${PYTHON} -c "import sys; print(sys.version)" | sed q`
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: using python $python_fullversion" >&5
10456 $as_echo "$as_me: using python $python_fullversion" >&6;}
10457 # python_fullversion is typically n.n.n plus some trailing junk
10458 python_majorversion
=`echo "$python_fullversion" | sed 's/^\([0-9]*\).*/\1/'`
10459 python_minorversion
=`echo "$python_fullversion" | sed 's/^[0-9]*\.\([0-9]*\).*/\1/'`
10460 python_version
=`echo "$python_fullversion" | sed 's/^\([0-9]*\.[0-9]*\).*/\1/'`
10461 # Reject unsupported Python versions as soon as practical.
10462 if test "$python_majorversion" -lt 3; then
10463 as_fn_error $?
"Python version $python_version is too old (version 3 or later is required)" "$LINENO" 5
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python sysconfig module" >&5
10467 $as_echo_n "checking for Python sysconfig module... " >&6; }
10468 if "${PYTHON}" -c 'import sysconfig' 2>&5
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10471 $as_echo "yes" >&6; }
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10474 $as_echo "no" >&6; }
10475 as_fn_error $?
"sysconfig module not found" "$LINENO" 5
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python configuration directory" >&5
10479 $as_echo_n "checking Python configuration directory... " >&6; }
10480 python_configdir
=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('LIBPL'))))"`
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_configdir" >&5
10482 $as_echo "$python_configdir" >&6; }
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python include directory" >&5
10485 $as_echo_n "checking Python include directory... " >&6; }
10486 python_includespec
=`${PYTHON} -c "import sysconfig; print('-I' + sysconfig.get_config_var('INCLUDEPY'))"`
10487 if test "$PORTNAME" = win32
; then
10488 python_includespec
=`echo $python_includespec | sed 's,[\],/,g'`
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_includespec" >&5
10491 $as_echo "$python_includespec" >&6; }
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link an embedded Python application" >&5
10496 $as_echo_n "checking how to link an embedded Python application... " >&6; }
10498 python_libdir
=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('LIBDIR'))))"`
10499 python_ldlibrary
=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('LDLIBRARY'))))"`
10501 # If LDLIBRARY exists and has a shlib extension, use it verbatim.
10502 ldlibrary
=`echo "${python_ldlibrary}" | sed -e 's/\.so$//' -e 's/\.dll$//' -e 's/\.dylib$//' -e 's/\.sl$//'`
10503 if test -e "${python_libdir}/${python_ldlibrary}" -a x"${python_ldlibrary}" != x"${ldlibrary}"
10505 ldlibrary
=`echo "${ldlibrary}" | sed "s/^lib//"`
10508 # Otherwise, guess the base name of the shlib.
10509 # LDVERSION was added in Python 3.2, before that use VERSION,
10510 # or failing that, $python_version from _PGAC_CHECK_PYTHON_DIRS.
10511 python_ldversion
=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('LDVERSION'))))"`
10512 if test x
"${python_ldversion}" != x
""; then
10513 ldlibrary
="python${python_ldversion}"
10515 python_version_var
=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('VERSION'))))"`
10516 if test x
"${python_version_var}" != x
""; then
10517 ldlibrary
="python${python_version_var}"
10519 ldlibrary
="python${python_version}"
10522 # Search for a likely-looking file.
10524 for d
in "${python_libdir}" "${python_configdir}" /usr
/lib64
/usr
/lib
10526 if test -e "$d/lib${ldlibrary}${DLSUFFIX}"; then
10532 # Some platforms (OpenBSD) require us to accept a bare versioned shlib
10533 # (".so.n.n") as well. However, check this only after failing to find
10534 # ".so" anywhere, because yet other platforms (Debian) put the .so
10535 # symlink in a different directory from the underlying versioned shlib.
10536 if test "$found_shlib" != 1; then
10537 for d
in "${python_libdir}" "${python_configdir}" /usr
/lib64
/usr
/lib
10539 for f
in "$d/lib${ldlibrary}.so."* ; do
10540 if test -e "$f"; then
10548 # As usual, Windows has its own ideas. Possible default library
10549 # locations include c:/Windows/System32 and (for Cygwin) /usr/bin,
10550 # and the "lib" prefix might not be there.
10551 if test "$found_shlib" != 1 -a \
( "$PORTNAME" = win32
-o "$PORTNAME" = cygwin \
); then
10552 for d
in "${python_libdir}" "${python_configdir}" c
:/Windows
/System32
/usr
/bin
10554 for f
in "$d/lib${ldlibrary}.dll" "$d/${ldlibrary}.dll" ; do
10555 if test -e "$f"; then
10564 if test "$found_shlib" != 1; then
10565 as_fn_error $?
"could not find shared library for Python
10566 You might have to rebuild your Python installation. Refer to the
10567 documentation for details. Use --without-python to disable building
10568 PL/Python." "$LINENO" 5
10570 python_libspec
="-L${python_libdir} -l${ldlibrary}"
10572 python_additional_libs
=`${PYTHON} -c "import sysconfig; print(' '.join(filter(None,sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_libspec} ${python_additional_libs}" >&5
10575 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
10581 if test x"$cross_compiling" = x"yes" && test -z "$with_system_tzdata"; then
10582 if test -z "$ZIC"; then
10585 # Extract the first word of "$ac_prog", so it can be a program name with args.
10586 set dummy $ac_prog; ac_word=$2
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10588 $as_echo_n "checking
for $ac_word...
" >&6; }
10589 if ${ac_cv_path_ZIC+:} false; then :
10590 $as_echo_n "(cached
) " >&6
10594 ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
10597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10598 for as_dir in $PATH
10601 test -z "$as_dir" && as_dir=.
10602 for ac_exec_ext in '' $ac_executable_extensions; do
10603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10604 ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
10605 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10615 ZIC=$ac_cv_path_ZIC
10616 if test -n "$ZIC"; then
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ZIC" >&5
10618 $as_echo "$ZIC" >&6; }
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10621 $as_echo "no
" >&6; }
10625 test -n "$ZIC" && break
10629 # Report the value of ZIC in configure's output in all cases.
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ZIC
" >&5
10631 $as_echo_n "checking
for ZIC...
" >&6; }
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ZIC" >&5
10633 $as_echo "$ZIC" >&6; }
10636 if test -z "$ZIC"; then
10638 When cross-compiling
, either use the option
--with-system-tzdata to use
10639 existing time-zone data
, or
set the environment variable ZIC to a zic
10640 program to use during the build.
" "$LINENO" 5
10647 # For each platform, we need to know about any special compile and link
10648 # libraries, and whether the normal C function names are thread-safe.
10649 # WIN32 doesn't need the pthread tests; it always uses threads
10651 # These tests are run before the library-tests, because linking with the
10652 # other libraries can pull in the pthread functions as a side-effect. We
10653 # want to use the -pthread or similar flags directly, and not rely on
10654 # the side-effects of linking with some other library.
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for a
sed that does not truncate output
" >&5
10657 $as_echo_n "checking
for a
sed that does not truncate output...
" >&6; }
10658 if ${ac_cv_path_SED+:} false; then :
10659 $as_echo_n "(cached
) " >&6
10661 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10662 for ac_i in 1 2 3 4 5 6 7; do
10663 ac_script="$ac_script$as_nl$ac_script"
10665 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10666 { ac_script=; unset ac_script;}
10667 if test -z "$SED"; then
10668 ac_path_SED_found=false
10669 # Loop through the user's path and test for each of PROGNAME-LIST
10670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10671 for as_dir in $PATH
10674 test -z "$as_dir" && as_dir=.
10675 for ac_prog in sed gsed; do
10676 for ac_exec_ext in '' $ac_executable_extensions; do
10677 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10678 as_fn_executable_p "$ac_path_SED" || continue
10679 # Check for GNU ac_path_SED and select it if it is found.
10680 # Check for GNU $ac_path_SED
10681 case `"$ac_path_SED" --version 2>&1` in
10683 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10686 $as_echo_n 0123456789 >"conftest.
in"
10689 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
10690 mv "conftest.tmp
" "conftest.
in"
10691 cp "conftest.
in" "conftest.
nl"
10692 $as_echo '' >> "conftest.
nl"
10693 "$ac_path_SED" -f conftest.sed < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
10694 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
10695 as_fn_arith $ac_count + 1 && ac_count=$as_val
10696 if test $ac_count -gt ${ac_path_SED_max-0}; then
10697 # Best one so far, save it but keep looking for a better one
10698 ac_cv_path_SED="$ac_path_SED"
10699 ac_path_SED_max=$ac_count
10701 # 10*(2^10) chars as input seems more than enough
10702 test $ac_count -gt 10 && break
10704 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10707 $ac_path_SED_found && break 3
10712 if test -z "$ac_cv_path_SED"; then
10713 as_fn_error $? "no acceptable
sed could be found
in \
$PATH" "$LINENO" 5
10716 ac_cv_path_SED=$SED
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_SED" >&5
10721 $as_echo "$ac_cv_path_SED" >&6; }
10722 SED="$ac_cv_path_SED"
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
10727 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
10728 if ${ac_cv_path_GREP+:} false; then :
10729 $as_echo_n "(cached
) " >&6
10731 if test -z "$GREP"; then
10732 ac_path_GREP_found=false
10733 # Loop through the user's path and test for each of PROGNAME-LIST
10734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10735 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10738 test -z "$as_dir" && as_dir=.
10739 for ac_prog in grep ggrep; do
10740 for ac_exec_ext in '' $ac_executable_extensions; do
10741 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
10742 as_fn_executable_p "$ac_path_GREP" || continue
10743 # Check for GNU ac_path_GREP and select it if it is found.
10744 # Check for GNU $ac_path_GREP
10745 case `"$ac_path_GREP" --version 2>&1` in
10747 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
10750 $as_echo_n 0123456789 >"conftest.
in"
10753 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
10754 mv "conftest.tmp
" "conftest.
in"
10755 cp "conftest.
in" "conftest.
nl"
10756 $as_echo 'GREP' >> "conftest.
nl"
10757 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
10758 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
10759 as_fn_arith $ac_count + 1 && ac_count=$as_val
10760 if test $ac_count -gt ${ac_path_GREP_max-0}; then
10761 # Best one so far, save it but keep looking for a better one
10762 ac_cv_path_GREP="$ac_path_GREP"
10763 ac_path_GREP_max=$ac_count
10765 # 10*(2^10) chars as input seems more than enough
10766 test $ac_count -gt 10 && break
10768 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10771 $ac_path_GREP_found && break 3
10776 if test -z "$ac_cv_path_GREP"; then
10777 as_fn_error $? "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
10780 ac_cv_path_GREP=$GREP
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
10785 $as_echo "$ac_cv_path_GREP" >&6; }
10786 GREP="$ac_cv_path_GREP"
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
10790 $as_echo_n "checking
for egrep...
" >&6; }
10791 if ${ac_cv_path_EGREP+:} false; then :
10792 $as_echo_n "(cached
) " >&6
10794 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
10795 then ac_cv_path_EGREP="$GREP -E"
10797 if test -z "$EGREP"; then
10798 ac_path_EGREP_found=false
10799 # Loop through the user's path and test for each of PROGNAME-LIST
10800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10801 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10804 test -z "$as_dir" && as_dir=.
10805 for ac_prog in egrep; do
10806 for ac_exec_ext in '' $ac_executable_extensions; do
10807 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
10808 as_fn_executable_p "$ac_path_EGREP" || continue
10809 # Check for GNU ac_path_EGREP and select it if it is found.
10810 # Check for GNU $ac_path_EGREP
10811 case `"$ac_path_EGREP" --version 2>&1` in
10813 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
10816 $as_echo_n 0123456789 >"conftest.
in"
10819 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
10820 mv "conftest.tmp
" "conftest.
in"
10821 cp "conftest.
in" "conftest.
nl"
10822 $as_echo 'EGREP' >> "conftest.
nl"
10823 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
10824 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
10825 as_fn_arith $ac_count + 1 && ac_count=$as_val
10826 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
10827 # Best one so far, save it but keep looking for a better one
10828 ac_cv_path_EGREP="$ac_path_EGREP"
10829 ac_path_EGREP_max=$ac_count
10831 # 10*(2^10) chars as input seems more than enough
10832 test $ac_count -gt 10 && break
10834 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10837 $ac_path_EGREP_found && break 3
10842 if test -z "$ac_cv_path_EGREP"; then
10843 as_fn_error $? "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
10846 ac_cv_path_EGREP=$EGREP
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
10852 $as_echo "$ac_cv_path_EGREP" >&6; }
10853 EGREP="$ac_cv_path_EGREP"
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
10857 $as_echo_n "checking
for ANSI C header files...
" >&6; }
10858 if ${ac_cv_header_stdc+:} false; then :
10859 $as_echo_n "(cached
) " >&6
10861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10862 /* end confdefs.h. */
10863 #include <stdlib.h>
10864 #include <stdarg.h>
10865 #include <string.h>
10876 if ac_fn_c_try_compile "$LINENO"; then :
10877 ac_cv_header_stdc=yes
10879 ac_cv_header_stdc=no
10881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10883 if test $ac_cv_header_stdc = yes; then
10884 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10886 /* end confdefs.h. */
10887 #include <string.h>
10890 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
10891 $EGREP "memchr
" >/dev/null 2>&1; then :
10894 ac_cv_header_stdc=no
10900 if test $ac_cv_header_stdc = yes; then
10901 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10903 /* end confdefs.h. */
10904 #include <stdlib.h>
10907 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
10908 $EGREP "free
" >/dev/null 2>&1; then :
10911 ac_cv_header_stdc=no
10917 if test $ac_cv_header_stdc = yes; then
10918 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10919 if test "$cross_compiling" = yes; then :
10922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10923 /* end confdefs.h. */
10925 #include <stdlib.h>
10926 #if ((' ' & 0x0FF) == 0x020)
10927 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10928 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10930 # define ISLOWER(c) \
10931 (('a' <= (c) && (c) <= 'i') \
10932 || ('j' <= (c) && (c) <= 'r') \
10933 || ('s' <= (c) && (c) <= 'z'))
10934 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10937 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10942 for (i = 0; i < 256; i++)
10943 if (XOR (islower (i), ISLOWER (i))
10944 || toupper (i) != TOUPPER (i))
10949 if ac_fn_c_try_run "$LINENO"; then :
10952 ac_cv_header_stdc=no
10954 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10955 conftest.$ac_objext conftest.beam conftest.$ac_ext
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
10961 $as_echo "$ac_cv_header_stdc" >&6; }
10962 if test $ac_cv_header_stdc = yes; then
10964 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10968 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10969 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
10970 inttypes.h stdint.h unistd.h
10972 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10973 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10975 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
10976 cat >>confdefs.h
<<_ACEOF
10977 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10985 if test "$PORTNAME" != "win32"; then :
10992 ac_cpp
='$CPP $CPPFLAGS'
10993 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10994 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10995 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10999 # We used to check for pthread.h first, but this fails if pthread.h
11000 # requires special compiler flags (e.g. on Tru64 or Sequent).
11001 # It gets checked for in the link test anyway.
11003 # First of all, check if the user has set any of the PTHREAD_LIBS,
11004 # etcetera environment variables, and if threads linking works using
11006 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
11007 ax_pthread_save_CC
="$CC"
11008 ax_pthread_save_CFLAGS
="$CFLAGS"
11009 ax_pthread_save_LIBS
="$LIBS"
11010 if test "x$PTHREAD_CC" != "x"; then :
11013 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
11014 LIBS
="$PTHREAD_LIBS $LIBS"
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
11016 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
11017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11018 /* end confdefs.h. */
11020 /* Override any GCC internal prototype to avoid an error.
11021 Use char because int might match the return type of a GCC
11022 builtin and then its argument prototype would still apply. */
11026 char pthread_join ();
11030 return pthread_join ();
11035 if ac_fn_c_try_link
"$LINENO"; then :
11038 rm -f core conftest.err conftest.
$ac_objext \
11039 conftest
$ac_exeext conftest.
$ac_ext
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
11041 $as_echo "$ax_pthread_ok" >&6; }
11042 if test "x$ax_pthread_ok" = "xno"; then
11046 CC
="$ax_pthread_save_CC"
11047 CFLAGS
="$ax_pthread_save_CFLAGS"
11048 LIBS
="$ax_pthread_save_LIBS"
11051 # We must check for the threads library under a number of different
11052 # names; the ordering is very important because some systems
11053 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
11054 # libraries is broken (non-POSIX).
11056 # Create a list of thread flags to try. Items starting with a "-" are
11057 # C compiler flags, and other items are library names, except for "none"
11058 # which indicates that we try without any flags at all, and "pthread-config"
11059 # which is a program returning the flags for the Pth emulation library.
11061 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
11063 # The ordering *is* (sometimes) important. Some notes on the
11064 # individual items follow:
11066 # pthreads: AIX (must check this before -lpthread)
11067 # none: in case threads are in libc; should be tried before -Kthread and
11068 # other compiler flags to prevent continual compiler warnings
11069 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
11070 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
11071 # (Note: HP C rejects this with "bad form for `-t' option")
11072 # -pthreads: Solaris/gcc (Note: HP C also rejects)
11073 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
11074 # doesn't hurt to check since this sometimes defines pthreads and
11075 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
11076 # is present but should not be used directly; and before -mthreads,
11077 # because the compiler interprets this as "-mt" + "-hreads")
11078 # -mthreads: Mingw32/gcc, Lynx/gcc
11079 # pthread: Linux, etcetera
11080 # --thread-safe: KAI C++
11081 # pthread-config: use pthread-config program (for GNU Pth library)
11087 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
11088 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
11090 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
11095 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
11096 # multi-threading and also sets -lpthread."
11098 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
11103 # IBM z/OS requires a feature-test macro to be defined in order to
11104 # enable POSIX threads at all, so give the user a hint if this is
11105 # not set. (We don't define these ourselves, as they can affect
11106 # other portions of the system API in unpredictable ways.)
11108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11109 /* end confdefs.h. */
11111 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
11112 AX_PTHREAD_ZOS_MISSING
11116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11117 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
11119 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
11127 # On Solaris (at least, for some versions), libc contains stubbed
11128 # (non-functional) versions of the pthreads routines, so link-based
11129 # tests will erroneously succeed. (N.B.: The stubs are missing
11130 # pthread_cleanup_push, or rather a function called by this macro,
11131 # so we could check for that, but who knows whether they'll stub
11132 # that too in a future libc.) So we'll check first for the
11133 # standard Solaris way of linking pthreads (-mt -lpthread).
11135 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
11139 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
11141 if test "x$GCC" = "xyes"; then :
11142 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
11145 # The presence of a feature test macro requesting re-entrant function
11146 # definitions is, on some systems, a strong hint that pthreads support is
11147 # correctly enabled
11150 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
11151 ax_pthread_check_macro
="_REENTRANT"
11155 ax_pthread_check_macro
="_THREAD_SAFE"
11159 ax_pthread_check_macro
="--"
11162 if test "x$ax_pthread_check_macro" = "x--"; then :
11163 ax_pthread_check_cond
=0
11165 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
11168 # Are we compiling with Clang?
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
11171 $as_echo_n "checking whether $CC is Clang... " >&6; }
11172 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
11173 $as_echo_n "(cached) " >&6
11175 ax_cv_PTHREAD_CLANG
=no
11176 # Note that Autoconf sets GCC=yes for Clang as well as GCC
11177 if test "x$GCC" = "xyes"; then
11178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11179 /* end confdefs.h. */
11180 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
11181 # if defined(__clang__) && defined(__llvm__)
11182 AX_PTHREAD_CC_IS_CLANG
11186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11187 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
11188 ax_cv_PTHREAD_CLANG
=yes
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
11196 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
11197 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
11199 ax_pthread_clang_warning
=no
11201 # Clang needs special handling, because older versions handle the -pthread
11202 # option in a rather... idiosyncratic way
11204 if test "x$ax_pthread_clang" = "xyes"; then
11206 # Clang takes -pthread; it has never supported any other flag
11208 # (Note 1: This will need to be revisited if a system that Clang
11209 # supports has POSIX threads in a separate library. This tends not
11210 # to be the way of modern systems, but it's conceivable.)
11212 # (Note 2: On some systems, notably Darwin, -pthread is not needed
11213 # to get POSIX threads support; the API is always present and
11214 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
11215 # -pthread does define _REENTRANT, and while the Darwin headers
11216 # ignore this macro, third-party headers might not.)
11218 PTHREAD_CFLAGS
="-pthread"
11223 # However, older versions of Clang make a point of warning the user
11224 # that, in an invocation where only linking and no compilation is
11225 # taking place, the -pthread option has no effect ("argument unused
11226 # during compilation"). They expect -pthread to be passed in only
11227 # when source code is being compiled.
11229 # Problem is, this is at odds with the way Automake and most other
11230 # C build frameworks function, which is that the same flags used in
11231 # compilation (CFLAGS) are also used in linking. Many systems
11232 # supported by AX_PTHREAD require exactly this for POSIX threads
11233 # support, and in fact it is often not straightforward to specify a
11234 # flag that is used only in the compilation phase and not in
11235 # linking. Such a scenario is extremely rare in practice.
11237 # Even though use of the -pthread flag in linking would only print
11238 # a warning, this can be a nuisance for well-run software projects
11239 # that build with -Werror. So if the active version of Clang has
11240 # this misfeature, we search for an option to squash it.
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
11243 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
11244 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
11245 $as_echo_n "(cached) " >&6
11247 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
11248 # Create an alternate version of $ac_link that compiles and
11249 # links in two steps (.c -> .o, .o -> exe) instead of one
11250 # (.c -> exe), because the warning occurs only in the second
11252 ax_pthread_save_ac_link
="$ac_link"
11253 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
11254 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
11255 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
11256 ax_pthread_save_CFLAGS
="$CFLAGS"
11257 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
11258 if test "x$ax_pthread_try" = "xunknown"; then :
11261 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
11262 ac_link
="$ax_pthread_save_ac_link"
11263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11264 /* end confdefs.h. */
11265 int main(void){return 0;}
11267 if ac_fn_c_try_link
"$LINENO"; then :
11268 ac_link
="$ax_pthread_2step_ac_link"
11269 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11270 /* end confdefs.h. */
11271 int main(void){return 0;}
11273 if ac_fn_c_try_link
"$LINENO"; then :
11276 rm -f core conftest.err conftest.
$ac_objext \
11277 conftest
$ac_exeext conftest.
$ac_ext
11280 rm -f core conftest.err conftest.
$ac_objext \
11281 conftest
$ac_exeext conftest.
$ac_ext
11283 ac_link
="$ax_pthread_save_ac_link"
11284 CFLAGS
="$ax_pthread_save_CFLAGS"
11285 if test "x$ax_pthread_try" = "x"; then :
11288 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
11292 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
11294 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
11296 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
11299 fi # $ax_pthread_clang = yes
11301 if test "x$ax_pthread_ok" = "xno"; then
11302 for ax_pthread_try_flag
in $ax_pthread_flags; do
11304 case $ax_pthread_try_flag in
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
11307 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
11312 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
11313 PTHREAD_CFLAGS
="-mt"
11314 PTHREAD_LIBS
="-lpthread"
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
11319 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
11320 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
11324 # Extract the first word of "pthread-config", so it can be a program name with args.
11325 set dummy pthread-config
; ac_word
=$2
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11327 $as_echo_n "checking for $ac_word... " >&6; }
11328 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
11329 $as_echo_n "(cached) " >&6
11331 if test -n "$ax_pthread_config"; then
11332 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
11334 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11335 for as_dir
in $PATH
11338 test -z "$as_dir" && as_dir
=.
11339 for ac_exec_ext
in '' $ac_executable_extensions; do
11340 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11341 ac_cv_prog_ax_pthread_config
="yes"
11342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11349 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
11352 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
11353 if test -n "$ax_pthread_config"; then
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
11355 $as_echo "$ax_pthread_config" >&6; }
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11358 $as_echo "no" >&6; }
11362 if test "x$ax_pthread_config" = "xno"; then :
11365 PTHREAD_CFLAGS
="`pthread-config --cflags`"
11366 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
11371 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
11372 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
11376 ax_pthread_save_CFLAGS
="$CFLAGS"
11377 ax_pthread_save_LIBS
="$LIBS"
11378 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
11379 LIBS
="$PTHREAD_LIBS $LIBS"
11381 # Check for various functions. We must include pthread.h,
11382 # since some functions may be macros. (On the Sequent, we
11383 # need a special flag -Kthread to make this header compile.)
11384 # We check for pthread_join because it is in -lpthread on IRIX
11385 # while pthread_create is in libc. We check for pthread_attr_init
11386 # due to DEC craziness with -lpthreads. We check for
11387 # pthread_cleanup_push because it is one of the few pthread
11388 # functions on Solaris that doesn't have a non-functional libc stub.
11389 # We try pthread_create on general principles.
11391 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11392 /* end confdefs.h. */
11393 #include <pthread.h>
11394 # if $ax_pthread_check_cond
11395 # error "$ax_pthread_check_macro must be defined"
11397 static void routine(void *a) { a = 0; }
11398 static void *start_routine(void *a) { return a; }
11402 pthread_t th; pthread_attr_t attr;
11403 pthread_create(&th, 0, start_routine, 0);
11404 pthread_join(th, 0);
11405 pthread_attr_init(&attr);
11406 pthread_cleanup_push(routine, 0);
11407 pthread_cleanup_pop(0) /* ; */
11412 if ac_fn_c_try_link
"$LINENO"; then :
11415 rm -f core conftest.err conftest.
$ac_objext \
11416 conftest
$ac_exeext conftest.
$ac_ext
11418 CFLAGS
="$ax_pthread_save_CFLAGS"
11419 LIBS
="$ax_pthread_save_LIBS"
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
11422 $as_echo "$ax_pthread_ok" >&6; }
11423 if test "x$ax_pthread_ok" = "xyes"; then :
11432 # Various other checks:
11433 if test "x$ax_pthread_ok" = "xyes"; then
11434 ax_pthread_save_CFLAGS
="$CFLAGS"
11435 ax_pthread_save_LIBS
="$LIBS"
11436 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
11437 LIBS
="$PTHREAD_LIBS $LIBS"
11439 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
11441 $as_echo_n "checking for joinable pthread attribute... " >&6; }
11442 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
11443 $as_echo_n "(cached) " >&6
11445 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
11446 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
11447 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11448 /* end confdefs.h. */
11449 #include <pthread.h>
11453 int attr = $ax_pthread_attr; return attr /* ; */
11458 if ac_fn_c_try_link
"$LINENO"; then :
11459 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
11461 rm -f core conftest.err conftest.
$ac_objext \
11462 conftest
$ac_exeext conftest.
$ac_ext
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
11467 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
11468 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
11469 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
11470 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
11472 cat >>confdefs.h
<<_ACEOF
11473 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
11476 ax_pthread_joinable_attr_defined
=yes
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
11481 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
11482 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
11483 $as_echo_n "(cached) " >&6
11485 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
11488 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
11494 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
11495 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
11496 test "x$ax_pthread_special_flags_added" != "xyes"; then :
11497 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
11498 ax_pthread_special_flags_added
=yes
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
11502 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
11503 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
11504 $as_echo_n "(cached) " >&6
11506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11507 /* end confdefs.h. */
11508 #include <pthread.h>
11512 int i = PTHREAD_PRIO_INHERIT;
11517 if ac_fn_c_try_link
"$LINENO"; then :
11518 ax_cv_PTHREAD_PRIO_INHERIT
=yes
11520 ax_cv_PTHREAD_PRIO_INHERIT
=no
11522 rm -f core conftest.err conftest.
$ac_objext \
11523 conftest
$ac_exeext conftest.
$ac_ext
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
11527 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
11528 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
11529 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
11531 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
11533 ax_pthread_prio_inherit_defined
=yes
11537 CFLAGS
="$ax_pthread_save_CFLAGS"
11538 LIBS
="$ax_pthread_save_LIBS"
11540 # More AIX lossage: compile with *_r variant
11541 if test "x$GCC" != "xyes"; then
11545 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
11546 #handle absolute path differently from PATH based program lookup
11549 if as_fn_executable_p
${CC}_r
; then :
11550 PTHREAD_CC
="${CC}_r"
11553 for ac_prog
in ${CC}_r
11555 # Extract the first word of "$ac_prog", so it can be a program name with args.
11556 set dummy
$ac_prog; ac_word
=$2
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11558 $as_echo_n "checking for $ac_word... " >&6; }
11559 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
11560 $as_echo_n "(cached) " >&6
11562 if test -n "$PTHREAD_CC"; then
11563 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
11565 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11566 for as_dir
in $PATH
11569 test -z "$as_dir" && as_dir
=.
11570 for ac_exec_ext
in '' $ac_executable_extensions; do
11571 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11572 ac_cv_prog_PTHREAD_CC
="$ac_prog"
11573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11582 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
11583 if test -n "$PTHREAD_CC"; then
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
11585 $as_echo "$PTHREAD_CC" >&6; }
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11588 $as_echo "no" >&6; }
11592 test -n "$PTHREAD_CC" && break
11594 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
11605 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
11611 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
11612 if test "x$ax_pthread_ok" = "xyes"; then
11614 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
11622 ac_cpp
='$CPP $CPPFLAGS'
11623 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11624 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11625 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11629 # Some platforms use these, so just define them. They can't hurt if they
11630 # are not supported.
11631 PTHREAD_CFLAGS
="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE"
11633 # Check for *_r functions
11636 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
11637 LIBS
="$LIBS $PTHREAD_LIBS"
11639 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
11640 if test "x$ac_cv_header_pthread_h" = xyes
; then :
11644 pthread.h not found" "$LINENO" 5
11649 for ac_func
in strerror_r
11651 ac_fn_c_check_func
"$LINENO" "strerror_r" "ac_cv_func_strerror_r"
11652 if test "x$ac_cv_func_strerror_r" = xyes
; then :
11653 cat >>confdefs.h
<<_ACEOF
11654 #define HAVE_STRERROR_R 1
11661 # Do test here with the proper thread flags
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns int" >&5
11663 $as_echo_n "checking whether strerror_r returns int... " >&6; }
11664 if ${pgac_cv_func_strerror_r_int+:} false
; then :
11665 $as_echo_n "(cached) " >&6
11667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11668 /* end confdefs.h. */
11669 #include <string.h>
11674 switch (strerror_r(1, buf, sizeof(buf)))
11675 { case 0: break; default: break; }
11681 if ac_fn_c_try_compile
"$LINENO"; then :
11682 pgac_cv_func_strerror_r_int
=yes
11684 pgac_cv_func_strerror_r_int
=no
11686 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_strerror_r_int" >&5
11689 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
11690 if test x
"$pgac_cv_func_strerror_r_int" = xyes
; then
11692 $as_echo "#define STRERROR_R_INT 1" >>confdefs.h
11703 # do not use values from template file
11716 ## Most libraries are included only if they demonstrably provide a function
11717 ## we need, but libm is an exception: always include it, because there are
11718 ## too many compilers that play cute optimization games that will break
11719 ## probes for standard functions such as pow().
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
11723 $as_echo_n "checking for main in -lm... " >&6; }
11724 if ${ac_cv_lib_m_main+:} false
; then :
11725 $as_echo_n "(cached) " >&6
11727 ac_check_lib_save_LIBS
=$LIBS
11729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11730 /* end confdefs.h. */
11741 if ac_fn_c_try_link
"$LINENO"; then :
11742 ac_cv_lib_m_main
=yes
11744 ac_cv_lib_m_main
=no
11746 rm -f core conftest.err conftest.
$ac_objext \
11747 conftest
$ac_exeext conftest.
$ac_ext
11748 LIBS
=$ac_check_lib_save_LIBS
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
11751 $as_echo "$ac_cv_lib_m_main" >&6; }
11752 if test "x$ac_cv_lib_m_main" = xyes
; then :
11753 cat >>confdefs.h
<<_ACEOF
11754 #define HAVE_LIBM 1
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setproctitle" >&5
11762 $as_echo_n "checking for library containing setproctitle... " >&6; }
11763 if ${ac_cv_search_setproctitle+:} false
; then :
11764 $as_echo_n "(cached) " >&6
11766 ac_func_search_save_LIBS
=$LIBS
11767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11768 /* end confdefs.h. */
11770 /* Override any GCC internal prototype to avoid an error.
11771 Use char because int might match the return type of a GCC
11772 builtin and then its argument prototype would still apply. */
11776 char setproctitle ();
11780 return setproctitle ();
11785 for ac_lib
in '' util
; do
11786 if test -z "$ac_lib"; then
11787 ac_res
="none required"
11790 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11792 if ac_fn_c_try_link
"$LINENO"; then :
11793 ac_cv_search_setproctitle
=$ac_res
11795 rm -f core conftest.err conftest.
$ac_objext \
11797 if ${ac_cv_search_setproctitle+:} false
; then :
11801 if ${ac_cv_search_setproctitle+:} false
; then :
11804 ac_cv_search_setproctitle
=no
11806 rm conftest.
$ac_ext
11807 LIBS
=$ac_func_search_save_LIBS
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setproctitle" >&5
11810 $as_echo "$ac_cv_search_setproctitle" >&6; }
11811 ac_res
=$ac_cv_search_setproctitle
11812 if test "$ac_res" != no
; then :
11813 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11817 # gcc/clang's sanitizer helper library provides dlopen but not dlsym, thus
11818 # when enabling asan the dlopen check doesn't notice that -ldl is actually
11819 # required. Just checking for dlsym() ought to suffice.
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
11821 $as_echo_n "checking for library containing dlsym... " >&6; }
11822 if ${ac_cv_search_dlsym+:} false
; then :
11823 $as_echo_n "(cached) " >&6
11825 ac_func_search_save_LIBS
=$LIBS
11826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11827 /* end confdefs.h. */
11829 /* Override any GCC internal prototype to avoid an error.
11830 Use char because int might match the return type of a GCC
11831 builtin and then its argument prototype would still apply. */
11844 for ac_lib
in '' dl
; do
11845 if test -z "$ac_lib"; then
11846 ac_res
="none required"
11849 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11851 if ac_fn_c_try_link
"$LINENO"; then :
11852 ac_cv_search_dlsym
=$ac_res
11854 rm -f core conftest.err conftest.
$ac_objext \
11856 if ${ac_cv_search_dlsym+:} false
; then :
11860 if ${ac_cv_search_dlsym+:} false
; then :
11863 ac_cv_search_dlsym
=no
11865 rm conftest.
$ac_ext
11866 LIBS
=$ac_func_search_save_LIBS
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
11869 $as_echo "$ac_cv_search_dlsym" >&6; }
11870 ac_res
=$ac_cv_search_dlsym
11871 if test "$ac_res" != no
; then :
11872 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
11877 $as_echo_n "checking for library containing socket... " >&6; }
11878 if ${ac_cv_search_socket+:} false
; then :
11879 $as_echo_n "(cached) " >&6
11881 ac_func_search_save_LIBS
=$LIBS
11882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11883 /* end confdefs.h. */
11885 /* Override any GCC internal prototype to avoid an error.
11886 Use char because int might match the return type of a GCC
11887 builtin and then its argument prototype would still apply. */
11900 for ac_lib
in '' socket ws2_32
; do
11901 if test -z "$ac_lib"; then
11902 ac_res
="none required"
11905 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11907 if ac_fn_c_try_link
"$LINENO"; then :
11908 ac_cv_search_socket
=$ac_res
11910 rm -f core conftest.err conftest.
$ac_objext \
11912 if ${ac_cv_search_socket+:} false
; then :
11916 if ${ac_cv_search_socket+:} false
; then :
11919 ac_cv_search_socket
=no
11921 rm conftest.
$ac_ext
11922 LIBS
=$ac_func_search_save_LIBS
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
11925 $as_echo "$ac_cv_search_socket" >&6; }
11926 ac_res
=$ac_cv_search_socket
11927 if test "$ac_res" != no
; then :
11928 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getopt_long" >&5
11933 $as_echo_n "checking for library containing getopt_long... " >&6; }
11934 if ${ac_cv_search_getopt_long+:} false
; then :
11935 $as_echo_n "(cached) " >&6
11937 ac_func_search_save_LIBS
=$LIBS
11938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11939 /* end confdefs.h. */
11941 /* Override any GCC internal prototype to avoid an error.
11942 Use char because int might match the return type of a GCC
11943 builtin and then its argument prototype would still apply. */
11947 char getopt_long ();
11951 return getopt_long ();
11956 for ac_lib
in '' getopt gnugetopt
; do
11957 if test -z "$ac_lib"; then
11958 ac_res
="none required"
11961 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11963 if ac_fn_c_try_link
"$LINENO"; then :
11964 ac_cv_search_getopt_long
=$ac_res
11966 rm -f core conftest.err conftest.
$ac_objext \
11968 if ${ac_cv_search_getopt_long+:} false
; then :
11972 if ${ac_cv_search_getopt_long+:} false
; then :
11975 ac_cv_search_getopt_long
=no
11977 rm conftest.
$ac_ext
11978 LIBS
=$ac_func_search_save_LIBS
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getopt_long" >&5
11981 $as_echo "$ac_cv_search_getopt_long" >&6; }
11982 ac_res
=$ac_cv_search_getopt_long
11983 if test "$ac_res" != no
; then :
11984 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
11989 $as_echo_n "checking for library containing shm_open... " >&6; }
11990 if ${ac_cv_search_shm_open+:} false
; then :
11991 $as_echo_n "(cached) " >&6
11993 ac_func_search_save_LIBS
=$LIBS
11994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11995 /* end confdefs.h. */
11997 /* Override any GCC internal prototype to avoid an error.
11998 Use char because int might match the return type of a GCC
11999 builtin and then its argument prototype would still apply. */
12007 return shm_open ();
12012 for ac_lib
in '' rt
; do
12013 if test -z "$ac_lib"; then
12014 ac_res
="none required"
12017 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12019 if ac_fn_c_try_link
"$LINENO"; then :
12020 ac_cv_search_shm_open
=$ac_res
12022 rm -f core conftest.err conftest.
$ac_objext \
12024 if ${ac_cv_search_shm_open+:} false
; then :
12028 if ${ac_cv_search_shm_open+:} false
; then :
12031 ac_cv_search_shm_open
=no
12033 rm conftest.
$ac_ext
12034 LIBS
=$ac_func_search_save_LIBS
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
12037 $as_echo "$ac_cv_search_shm_open" >&6; }
12038 ac_res
=$ac_cv_search_shm_open
12039 if test "$ac_res" != no
; then :
12040 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_unlink" >&5
12045 $as_echo_n "checking for library containing shm_unlink... " >&6; }
12046 if ${ac_cv_search_shm_unlink+:} false
; then :
12047 $as_echo_n "(cached) " >&6
12049 ac_func_search_save_LIBS
=$LIBS
12050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12051 /* end confdefs.h. */
12053 /* Override any GCC internal prototype to avoid an error.
12054 Use char because int might match the return type of a GCC
12055 builtin and then its argument prototype would still apply. */
12059 char shm_unlink ();
12063 return shm_unlink ();
12068 for ac_lib
in '' rt
; do
12069 if test -z "$ac_lib"; then
12070 ac_res
="none required"
12073 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12075 if ac_fn_c_try_link
"$LINENO"; then :
12076 ac_cv_search_shm_unlink
=$ac_res
12078 rm -f core conftest.err conftest.
$ac_objext \
12080 if ${ac_cv_search_shm_unlink+:} false
; then :
12084 if ${ac_cv_search_shm_unlink+:} false
; then :
12087 ac_cv_search_shm_unlink
=no
12089 rm conftest.
$ac_ext
12090 LIBS
=$ac_func_search_save_LIBS
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_unlink" >&5
12093 $as_echo "$ac_cv_search_shm_unlink" >&6; }
12094 ac_res
=$ac_cv_search_shm_unlink
12095 if test "$ac_res" != no
; then :
12096 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
12101 $as_echo_n "checking for library containing clock_gettime... " >&6; }
12102 if ${ac_cv_search_clock_gettime+:} false
; then :
12103 $as_echo_n "(cached) " >&6
12105 ac_func_search_save_LIBS
=$LIBS
12106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12107 /* end confdefs.h. */
12109 /* Override any GCC internal prototype to avoid an error.
12110 Use char because int might match the return type of a GCC
12111 builtin and then its argument prototype would still apply. */
12115 char clock_gettime ();
12119 return clock_gettime ();
12124 for ac_lib
in '' rt
; do
12125 if test -z "$ac_lib"; then
12126 ac_res
="none required"
12129 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12131 if ac_fn_c_try_link
"$LINENO"; then :
12132 ac_cv_search_clock_gettime
=$ac_res
12134 rm -f core conftest.err conftest.
$ac_objext \
12136 if ${ac_cv_search_clock_gettime+:} false
; then :
12140 if ${ac_cv_search_clock_gettime+:} false
; then :
12143 ac_cv_search_clock_gettime
=no
12145 rm conftest.
$ac_ext
12146 LIBS
=$ac_func_search_save_LIBS
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
12149 $as_echo "$ac_cv_search_clock_gettime" >&6; }
12150 ac_res
=$ac_cv_search_clock_gettime
12151 if test "$ac_res" != no
; then :
12152 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shmget" >&5
12158 $as_echo_n "checking for library containing shmget... " >&6; }
12159 if ${ac_cv_search_shmget+:} false
; then :
12160 $as_echo_n "(cached) " >&6
12162 ac_func_search_save_LIBS
=$LIBS
12163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12164 /* end confdefs.h. */
12166 /* Override any GCC internal prototype to avoid an error.
12167 Use char because int might match the return type of a GCC
12168 builtin and then its argument prototype would still apply. */
12181 for ac_lib
in '' cygipc
; do
12182 if test -z "$ac_lib"; then
12183 ac_res
="none required"
12186 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12188 if ac_fn_c_try_link
"$LINENO"; then :
12189 ac_cv_search_shmget
=$ac_res
12191 rm -f core conftest.err conftest.
$ac_objext \
12193 if ${ac_cv_search_shmget+:} false
; then :
12197 if ${ac_cv_search_shmget+:} false
; then :
12200 ac_cv_search_shmget
=no
12202 rm conftest.
$ac_ext
12203 LIBS
=$ac_func_search_save_LIBS
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shmget" >&5
12206 $as_echo "$ac_cv_search_shmget" >&6; }
12207 ac_res
=$ac_cv_search_shmget
12208 if test "$ac_res" != no
; then :
12209 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols" >&5
12215 $as_echo_n "checking for library containing backtrace_symbols... " >&6; }
12216 if ${ac_cv_search_backtrace_symbols+:} false
; then :
12217 $as_echo_n "(cached) " >&6
12219 ac_func_search_save_LIBS
=$LIBS
12220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12221 /* end confdefs.h. */
12223 /* Override any GCC internal prototype to avoid an error.
12224 Use char because int might match the return type of a GCC
12225 builtin and then its argument prototype would still apply. */
12229 char backtrace_symbols ();
12233 return backtrace_symbols ();
12238 for ac_lib
in '' execinfo
; do
12239 if test -z "$ac_lib"; then
12240 ac_res
="none required"
12243 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12245 if ac_fn_c_try_link
"$LINENO"; then :
12246 ac_cv_search_backtrace_symbols
=$ac_res
12248 rm -f core conftest.err conftest.
$ac_objext \
12250 if ${ac_cv_search_backtrace_symbols+:} false
; then :
12254 if ${ac_cv_search_backtrace_symbols+:} false
; then :
12257 ac_cv_search_backtrace_symbols
=no
12259 rm conftest.
$ac_ext
12260 LIBS
=$ac_func_search_save_LIBS
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols" >&5
12263 $as_echo "$ac_cv_search_backtrace_symbols" >&6; }
12264 ac_res
=$ac_cv_search_backtrace_symbols
12265 if test "$ac_res" != no
; then :
12266 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_barrier_wait" >&5
12272 $as_echo_n "checking for library containing pthread_barrier_wait... " >&6; }
12273 if ${ac_cv_search_pthread_barrier_wait+:} false
; then :
12274 $as_echo_n "(cached) " >&6
12276 ac_func_search_save_LIBS
=$LIBS
12277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12278 /* end confdefs.h. */
12280 /* Override any GCC internal prototype to avoid an error.
12281 Use char because int might match the return type of a GCC
12282 builtin and then its argument prototype would still apply. */
12286 char pthread_barrier_wait ();
12290 return pthread_barrier_wait ();
12295 for ac_lib
in '' pthread
; do
12296 if test -z "$ac_lib"; then
12297 ac_res
="none required"
12300 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12302 if ac_fn_c_try_link
"$LINENO"; then :
12303 ac_cv_search_pthread_barrier_wait
=$ac_res
12305 rm -f core conftest.err conftest.
$ac_objext \
12307 if ${ac_cv_search_pthread_barrier_wait+:} false
; then :
12311 if ${ac_cv_search_pthread_barrier_wait+:} false
; then :
12314 ac_cv_search_pthread_barrier_wait
=no
12316 rm conftest.
$ac_ext
12317 LIBS
=$ac_func_search_save_LIBS
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_barrier_wait" >&5
12320 $as_echo "$ac_cv_search_pthread_barrier_wait" >&6; }
12321 ac_res
=$ac_cv_search_pthread_barrier_wait
12322 if test "$ac_res" != no
; then :
12323 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12328 if test "$with_readline" = yes; then
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
12332 $as_echo_n "checking for library containing readline... " >&6; }
12333 if ${pgac_cv_check_readline+:} false
; then :
12334 $as_echo_n "(cached) " >&6
12336 pgac_cv_check_readline
=no
12337 pgac_save_LIBS
=$LIBS
12338 if test x
"$with_libedit_preferred" != x
"yes"
12339 then READLINE_ORDER
="-lreadline -ledit"
12340 else READLINE_ORDER
="-ledit -lreadline"
12342 for pgac_rllib
in $READLINE_ORDER ; do
12343 for pgac_lib
in "" " -ltermcap" " -lncurses" " -lcurses" ; do
12344 LIBS
="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
12345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12346 /* end confdefs.h. */
12348 /* Override any GCC internal prototype to avoid an error.
12349 Use char because int might match the return type of a GCC
12350 builtin and then its argument prototype would still apply. */
12358 return readline ();
12363 if ac_fn_c_try_link
"$LINENO"; then :
12365 # Older NetBSD and OpenBSD have a broken linker that does not
12366 # recognize dependent libraries; assume curses is needed if we didn't
12367 # find any dependency.
12369 netbsd
* | openbsd
*)
12370 if test x
"$pgac_lib" = x
"" ; then
12371 pgac_lib
=" -lcurses"
12375 pgac_cv_check_readline
="${pgac_rllib}${pgac_lib}"
12379 rm -f core conftest.err conftest.
$ac_objext \
12380 conftest
$ac_exeext conftest.
$ac_ext
12382 if test "$pgac_cv_check_readline" != no
; then
12386 LIBS
=$pgac_save_LIBS
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_check_readline" >&5
12390 $as_echo "$pgac_cv_check_readline" >&6; }
12391 if test "$pgac_cv_check_readline" != no
; then
12392 LIBS
="$pgac_cv_check_readline $LIBS"
12394 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
12399 if test x
"$pgac_cv_check_readline" = x
"no"; then
12400 as_fn_error $?
"readline library not found
12401 If you have readline already installed, see config.log for details on the
12402 failure. It is possible the compiler isn't looking in the proper directory.
12403 Use --without-readline to disable readline support." "$LINENO" 5
12407 if test "$with_zlib" = yes; then
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
12409 $as_echo_n "checking for inflate in -lz... " >&6; }
12410 if ${ac_cv_lib_z_inflate+:} false
; then :
12411 $as_echo_n "(cached) " >&6
12413 ac_check_lib_save_LIBS
=$LIBS
12415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12416 /* end confdefs.h. */
12418 /* Override any GCC internal prototype to avoid an error.
12419 Use char because int might match the return type of a GCC
12420 builtin and then its argument prototype would still apply. */
12433 if ac_fn_c_try_link
"$LINENO"; then :
12434 ac_cv_lib_z_inflate
=yes
12436 ac_cv_lib_z_inflate
=no
12438 rm -f core conftest.err conftest.
$ac_objext \
12439 conftest
$ac_exeext conftest.
$ac_ext
12440 LIBS
=$ac_check_lib_save_LIBS
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
12443 $as_echo "$ac_cv_lib_z_inflate" >&6; }
12444 if test "x$ac_cv_lib_z_inflate" = xyes
; then :
12445 cat >>confdefs.h
<<_ACEOF
12446 #define HAVE_LIBZ 1
12452 as_fn_error $?
"zlib library not found
12453 If you have zlib already installed, see config.log for details on the
12454 failure. It is possible the compiler isn't looking in the proper directory.
12455 Use --without-zlib to disable zlib support." "$LINENO" 5
12460 if test "$enable_spinlocks" = yes; then
12462 $as_echo "#define HAVE_SPINLOCKS 1" >>confdefs.h
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12466 *** Not using spinlocks will cause poor performance." >&5
12467 $as_echo "$as_me: WARNING:
12468 *** Not using spinlocks will cause poor performance." >&2;}
12471 if test "$enable_atomics" = yes; then
12473 $as_echo "#define HAVE_ATOMICS 1" >>confdefs.h
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12477 *** Not using atomic operations will cause poor performance." >&5
12478 $as_echo "$as_me: WARNING:
12479 *** Not using atomic operations will cause poor performance." >&2;}
12482 if test "$with_gssapi" = yes ; then
12483 if test "$PORTNAME" != "win32"; then
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_store_cred_into" >&5
12485 $as_echo_n "checking for library containing gss_store_cred_into... " >&6; }
12486 if ${ac_cv_search_gss_store_cred_into+:} false
; then :
12487 $as_echo_n "(cached) " >&6
12489 ac_func_search_save_LIBS
=$LIBS
12490 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12491 /* end confdefs.h. */
12493 /* Override any GCC internal prototype to avoid an error.
12494 Use char because int might match the return type of a GCC
12495 builtin and then its argument prototype would still apply. */
12499 char gss_store_cred_into ();
12503 return gss_store_cred_into ();
12508 for ac_lib
in '' gssapi_krb5 gss
'gssapi -lkrb5 -lcrypto'; do
12509 if test -z "$ac_lib"; then
12510 ac_res
="none required"
12513 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12515 if ac_fn_c_try_link
"$LINENO"; then :
12516 ac_cv_search_gss_store_cred_into
=$ac_res
12518 rm -f core conftest.err conftest.
$ac_objext \
12520 if ${ac_cv_search_gss_store_cred_into+:} false
; then :
12524 if ${ac_cv_search_gss_store_cred_into+:} false
; then :
12527 ac_cv_search_gss_store_cred_into
=no
12529 rm conftest.
$ac_ext
12530 LIBS
=$ac_func_search_save_LIBS
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_store_cred_into" >&5
12533 $as_echo "$ac_cv_search_gss_store_cred_into" >&6; }
12534 ac_res
=$ac_cv_search_gss_store_cred_into
12535 if test "$ac_res" != no
; then :
12536 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12539 as_fn_error $?
"could not find function 'gss_store_cred_into' required for GSSAPI" "$LINENO" 5
12543 LIBS
="$LIBS -lgssapi32"
12550 # There is currently only one supported SSL/TLS library: OpenSSL.
12555 # Check whether --with-ssl was given.
12556 if test "${with_ssl+set}" = set; then :
12560 as_fn_error $?
"argument required for --with-ssl option" "$LINENO" 5
12563 as_fn_error $?
"argument required for --with-ssl option" "$LINENO" 5
12573 if test x
"$with_ssl" = x
"" ; then
12579 # Check whether --with-openssl was given.
12580 if test "${with_openssl+set}" = set; then :
12581 withval
=$with_openssl;
12590 as_fn_error $?
"no argument expected for --with-openssl option" "$LINENO" 5
12600 if test "$with_openssl" = yes ; then
12604 if test "$with_ssl" = openssl
; then
12605 # Minimum required OpenSSL version is 1.0.2
12607 $as_echo "#define OPENSSL_API_COMPAT 0x10002000L" >>confdefs.h
12609 if test "$PORTNAME" != "win32"; then
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_new_ex_data in -lcrypto" >&5
12611 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
12612 if ${ac_cv_lib_crypto_CRYPTO_new_ex_data+:} false
; then :
12613 $as_echo_n "(cached) " >&6
12615 ac_check_lib_save_LIBS
=$LIBS
12616 LIBS
="-lcrypto $LIBS"
12617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12618 /* end confdefs.h. */
12620 /* Override any GCC internal prototype to avoid an error.
12621 Use char because int might match the return type of a GCC
12622 builtin and then its argument prototype would still apply. */
12626 char CRYPTO_new_ex_data ();
12630 return CRYPTO_new_ex_data ();
12635 if ac_fn_c_try_link
"$LINENO"; then :
12636 ac_cv_lib_crypto_CRYPTO_new_ex_data
=yes
12638 ac_cv_lib_crypto_CRYPTO_new_ex_data
=no
12640 rm -f core conftest.err conftest.
$ac_objext \
12641 conftest
$ac_exeext conftest.
$ac_ext
12642 LIBS
=$ac_check_lib_save_LIBS
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
12645 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
12646 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = xyes
; then :
12647 cat >>confdefs.h
<<_ACEOF
12648 #define HAVE_LIBCRYPTO 1
12651 LIBS
="-lcrypto $LIBS"
12654 as_fn_error $?
"library 'crypto' is required for OpenSSL" "$LINENO" 5
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
12658 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
12659 if ${ac_cv_lib_ssl_SSL_new+:} false
; then :
12660 $as_echo_n "(cached) " >&6
12662 ac_check_lib_save_LIBS
=$LIBS
12664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12665 /* end confdefs.h. */
12667 /* Override any GCC internal prototype to avoid an error.
12668 Use char because int might match the return type of a GCC
12669 builtin and then its argument prototype would still apply. */
12682 if ac_fn_c_try_link
"$LINENO"; then :
12683 ac_cv_lib_ssl_SSL_new
=yes
12685 ac_cv_lib_ssl_SSL_new
=no
12687 rm -f core conftest.err conftest.
$ac_objext \
12688 conftest
$ac_exeext conftest.
$ac_ext
12689 LIBS
=$ac_check_lib_save_LIBS
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
12692 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
12693 if test "x$ac_cv_lib_ssl_SSL_new" = xyes
; then :
12694 cat >>confdefs.h
<<_ACEOF
12695 #define HAVE_LIBSSL 1
12701 as_fn_error $?
"library 'ssl' is required for OpenSSL" "$LINENO" 5
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing CRYPTO_new_ex_data" >&5
12706 $as_echo_n "checking for library containing CRYPTO_new_ex_data... " >&6; }
12707 if ${ac_cv_search_CRYPTO_new_ex_data+:} false
; then :
12708 $as_echo_n "(cached) " >&6
12710 ac_func_search_save_LIBS
=$LIBS
12711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12712 /* end confdefs.h. */
12714 /* Override any GCC internal prototype to avoid an error.
12715 Use char because int might match the return type of a GCC
12716 builtin and then its argument prototype would still apply. */
12720 char CRYPTO_new_ex_data ();
12724 return CRYPTO_new_ex_data ();
12729 for ac_lib
in '' eay32 crypto
; do
12730 if test -z "$ac_lib"; then
12731 ac_res
="none required"
12734 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12736 if ac_fn_c_try_link
"$LINENO"; then :
12737 ac_cv_search_CRYPTO_new_ex_data
=$ac_res
12739 rm -f core conftest.err conftest.
$ac_objext \
12741 if ${ac_cv_search_CRYPTO_new_ex_data+:} false
; then :
12745 if ${ac_cv_search_CRYPTO_new_ex_data+:} false
; then :
12748 ac_cv_search_CRYPTO_new_ex_data
=no
12750 rm conftest.
$ac_ext
12751 LIBS
=$ac_func_search_save_LIBS
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_CRYPTO_new_ex_data" >&5
12754 $as_echo "$ac_cv_search_CRYPTO_new_ex_data" >&6; }
12755 ac_res
=$ac_cv_search_CRYPTO_new_ex_data
12756 if test "$ac_res" != no
; then :
12757 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12760 as_fn_error $?
"library 'eay32' or 'crypto' is required for OpenSSL" "$LINENO" 5
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_new" >&5
12764 $as_echo_n "checking for library containing SSL_new... " >&6; }
12765 if ${ac_cv_search_SSL_new+:} false
; then :
12766 $as_echo_n "(cached) " >&6
12768 ac_func_search_save_LIBS
=$LIBS
12769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12770 /* end confdefs.h. */
12772 /* Override any GCC internal prototype to avoid an error.
12773 Use char because int might match the return type of a GCC
12774 builtin and then its argument prototype would still apply. */
12787 for ac_lib
in '' ssleay32 ssl
; do
12788 if test -z "$ac_lib"; then
12789 ac_res
="none required"
12792 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12794 if ac_fn_c_try_link
"$LINENO"; then :
12795 ac_cv_search_SSL_new
=$ac_res
12797 rm -f core conftest.err conftest.
$ac_objext \
12799 if ${ac_cv_search_SSL_new+:} false
; then :
12803 if ${ac_cv_search_SSL_new+:} false
; then :
12806 ac_cv_search_SSL_new
=no
12808 rm conftest.
$ac_ext
12809 LIBS
=$ac_func_search_save_LIBS
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_new" >&5
12812 $as_echo "$ac_cv_search_SSL_new" >&6; }
12813 ac_res
=$ac_cv_search_SSL_new
12814 if test "$ac_res" != no
; then :
12815 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12818 as_fn_error $?
"library 'ssleay32' or 'ssl' is required for OpenSSL" "$LINENO" 5
12822 # Function introduced in OpenSSL 1.0.2, not in LibreSSL.
12823 for ac_func
in SSL_CTX_set_cert_cb
12825 ac_fn_c_check_func
"$LINENO" "SSL_CTX_set_cert_cb" "ac_cv_func_SSL_CTX_set_cert_cb"
12826 if test "x$ac_cv_func_SSL_CTX_set_cert_cb" = xyes
; then :
12827 cat >>confdefs.h
<<_ACEOF
12828 #define HAVE_SSL_CTX_SET_CERT_CB 1
12834 # Functions introduced in OpenSSL 1.1.0. We used to check for
12835 # OPENSSL_VERSION_NUMBER, but that didn't work with 1.1.0, because LibreSSL
12836 # defines OPENSSL_VERSION_NUMBER to claim version 2.0.0, even though it
12837 # doesn't have these OpenSSL 1.1.0 functions. So check for individual
12839 for ac_func
in OPENSSL_init_ssl BIO_meth_new ASN1_STRING_get0_data HMAC_CTX_new HMAC_CTX_free
12841 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12842 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12843 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12844 cat >>confdefs.h
<<_ACEOF
12845 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12851 # OpenSSL versions before 1.1.0 required setting callback functions, for
12852 # thread-safety. In 1.1.0, it's no longer required, and CRYPTO_lock()
12853 # function was removed.
12854 for ac_func
in CRYPTO_lock
12856 ac_fn_c_check_func
"$LINENO" "CRYPTO_lock" "ac_cv_func_CRYPTO_lock"
12857 if test "x$ac_cv_func_CRYPTO_lock" = xyes
; then :
12858 cat >>confdefs.h
<<_ACEOF
12859 #define HAVE_CRYPTO_LOCK 1
12865 # Function introduced in OpenSSL 1.1.1.
12866 for ac_func
in X509_get_signature_info
12868 ac_fn_c_check_func
"$LINENO" "X509_get_signature_info" "ac_cv_func_X509_get_signature_info"
12869 if test "x$ac_cv_func_X509_get_signature_info" = xyes
; then :
12870 cat >>confdefs.h
<<_ACEOF
12871 #define HAVE_X509_GET_SIGNATURE_INFO 1
12878 $as_echo "#define USE_OPENSSL 1" >>confdefs.h
12880 elif test "$with_ssl" != no
; then
12881 as_fn_error $?
"--with-ssl must specify openssl" "$LINENO" 5
12885 if test "$with_pam" = yes ; then
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
12887 $as_echo_n "checking for pam_start in -lpam... " >&6; }
12888 if ${ac_cv_lib_pam_pam_start+:} false
; then :
12889 $as_echo_n "(cached) " >&6
12891 ac_check_lib_save_LIBS
=$LIBS
12893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12894 /* end confdefs.h. */
12896 /* Override any GCC internal prototype to avoid an error.
12897 Use char because int might match the return type of a GCC
12898 builtin and then its argument prototype would still apply. */
12906 return pam_start ();
12911 if ac_fn_c_try_link
"$LINENO"; then :
12912 ac_cv_lib_pam_pam_start
=yes
12914 ac_cv_lib_pam_pam_start
=no
12916 rm -f core conftest.err conftest.
$ac_objext \
12917 conftest
$ac_exeext conftest.
$ac_ext
12918 LIBS
=$ac_check_lib_save_LIBS
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
12921 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
12922 if test "x$ac_cv_lib_pam_pam_start" = xyes
; then :
12923 cat >>confdefs.h
<<_ACEOF
12924 #define HAVE_LIBPAM 1
12930 as_fn_error $?
"library 'pam' is required for PAM" "$LINENO" 5
12935 if test "$with_libxml" = yes ; then
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSaveToBuffer in -lxml2" >&5
12937 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
12938 if ${ac_cv_lib_xml2_xmlSaveToBuffer+:} false
; then :
12939 $as_echo_n "(cached) " >&6
12941 ac_check_lib_save_LIBS
=$LIBS
12942 LIBS
="-lxml2 $LIBS"
12943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12944 /* end confdefs.h. */
12946 /* Override any GCC internal prototype to avoid an error.
12947 Use char because int might match the return type of a GCC
12948 builtin and then its argument prototype would still apply. */
12952 char xmlSaveToBuffer ();
12956 return xmlSaveToBuffer ();
12961 if ac_fn_c_try_link
"$LINENO"; then :
12962 ac_cv_lib_xml2_xmlSaveToBuffer
=yes
12964 ac_cv_lib_xml2_xmlSaveToBuffer
=no
12966 rm -f core conftest.err conftest.
$ac_objext \
12967 conftest
$ac_exeext conftest.
$ac_ext
12968 LIBS
=$ac_check_lib_save_LIBS
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
12971 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
12972 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = xyes
; then :
12973 cat >>confdefs.h
<<_ACEOF
12974 #define HAVE_LIBXML2 1
12977 LIBS
="-lxml2 $LIBS"
12980 as_fn_error $?
"library 'xml2' (version >= 2.6.23) is required for XML support" "$LINENO" 5
12985 if test "$with_libxslt" = yes ; then
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xsltCleanupGlobals in -lxslt" >&5
12987 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
12988 if ${ac_cv_lib_xslt_xsltCleanupGlobals+:} false
; then :
12989 $as_echo_n "(cached) " >&6
12991 ac_check_lib_save_LIBS
=$LIBS
12992 LIBS
="-lxslt $LIBS"
12993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12994 /* end confdefs.h. */
12996 /* Override any GCC internal prototype to avoid an error.
12997 Use char because int might match the return type of a GCC
12998 builtin and then its argument prototype would still apply. */
13002 char xsltCleanupGlobals ();
13006 return xsltCleanupGlobals ();
13011 if ac_fn_c_try_link
"$LINENO"; then :
13012 ac_cv_lib_xslt_xsltCleanupGlobals
=yes
13014 ac_cv_lib_xslt_xsltCleanupGlobals
=no
13016 rm -f core conftest.err conftest.
$ac_objext \
13017 conftest
$ac_exeext conftest.
$ac_ext
13018 LIBS
=$ac_check_lib_save_LIBS
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
13021 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
13022 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = xyes
; then :
13023 cat >>confdefs.h
<<_ACEOF
13024 #define HAVE_LIBXSLT 1
13027 LIBS
="-lxslt $LIBS"
13030 as_fn_error $?
"library 'xslt' is required for XSLT support" "$LINENO" 5
13035 if test "$with_lz4" = yes ; then
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZ4_compress_default in -llz4" >&5
13037 $as_echo_n "checking for LZ4_compress_default in -llz4... " >&6; }
13038 if ${ac_cv_lib_lz4_LZ4_compress_default+:} false
; then :
13039 $as_echo_n "(cached) " >&6
13041 ac_check_lib_save_LIBS
=$LIBS
13043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13044 /* end confdefs.h. */
13046 /* Override any GCC internal prototype to avoid an error.
13047 Use char because int might match the return type of a GCC
13048 builtin and then its argument prototype would still apply. */
13052 char LZ4_compress_default ();
13056 return LZ4_compress_default ();
13061 if ac_fn_c_try_link
"$LINENO"; then :
13062 ac_cv_lib_lz4_LZ4_compress_default
=yes
13064 ac_cv_lib_lz4_LZ4_compress_default
=no
13066 rm -f core conftest.err conftest.
$ac_objext \
13067 conftest
$ac_exeext conftest.
$ac_ext
13068 LIBS
=$ac_check_lib_save_LIBS
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lz4_LZ4_compress_default" >&5
13071 $as_echo "$ac_cv_lib_lz4_LZ4_compress_default" >&6; }
13072 if test "x$ac_cv_lib_lz4_LZ4_compress_default" = xyes
; then :
13073 cat >>confdefs.h
<<_ACEOF
13074 #define HAVE_LIBLZ4 1
13080 as_fn_error $?
"library 'lz4' is required for LZ4 support" "$LINENO" 5
13085 if test "$with_zstd" = yes ; then
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZSTD_compress in -lzstd" >&5
13087 $as_echo_n "checking for ZSTD_compress in -lzstd... " >&6; }
13088 if ${ac_cv_lib_zstd_ZSTD_compress+:} false
; then :
13089 $as_echo_n "(cached) " >&6
13091 ac_check_lib_save_LIBS
=$LIBS
13092 LIBS
="-lzstd $LIBS"
13093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13094 /* end confdefs.h. */
13096 /* Override any GCC internal prototype to avoid an error.
13097 Use char because int might match the return type of a GCC
13098 builtin and then its argument prototype would still apply. */
13102 char ZSTD_compress ();
13106 return ZSTD_compress ();
13111 if ac_fn_c_try_link
"$LINENO"; then :
13112 ac_cv_lib_zstd_ZSTD_compress
=yes
13114 ac_cv_lib_zstd_ZSTD_compress
=no
13116 rm -f core conftest.err conftest.
$ac_objext \
13117 conftest
$ac_exeext conftest.
$ac_ext
13118 LIBS
=$ac_check_lib_save_LIBS
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_compress" >&5
13121 $as_echo "$ac_cv_lib_zstd_ZSTD_compress" >&6; }
13122 if test "x$ac_cv_lib_zstd_ZSTD_compress" = xyes
; then :
13123 cat >>confdefs.h
<<_ACEOF
13124 #define HAVE_LIBZSTD 1
13127 LIBS
="-lzstd $LIBS"
13130 as_fn_error $?
"library 'zstd' is required for ZSTD support" "$LINENO" 5
13135 # Note: We can test for libldap_r only after we know PTHREAD_LIBS;
13136 # also, on AIX, we may need to have openssl in LIBS for this step.
13137 if test "$with_ldap" = yes ; then
13139 if test "$PORTNAME" != "win32"; then
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lldap" >&5
13141 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
13142 if ${ac_cv_lib_ldap_ldap_bind+:} false
; then :
13143 $as_echo_n "(cached) " >&6
13145 ac_check_lib_save_LIBS
=$LIBS
13146 LIBS
="-lldap $EXTRA_LDAP_LIBS $LIBS"
13147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13148 /* end confdefs.h. */
13150 /* Override any GCC internal prototype to avoid an error.
13151 Use char because int might match the return type of a GCC
13152 builtin and then its argument prototype would still apply. */
13160 return ldap_bind ();
13165 if ac_fn_c_try_link
"$LINENO"; then :
13166 ac_cv_lib_ldap_ldap_bind
=yes
13168 ac_cv_lib_ldap_ldap_bind
=no
13170 rm -f core conftest.err conftest.
$ac_objext \
13171 conftest
$ac_exeext conftest.
$ac_ext
13172 LIBS
=$ac_check_lib_save_LIBS
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_bind" >&5
13175 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
13176 if test "x$ac_cv_lib_ldap_ldap_bind" = xyes
; then :
13177 cat >>confdefs.h
<<_ACEOF
13178 #define HAVE_LIBLDAP 1
13181 LIBS
="-lldap $LIBS"
13184 as_fn_error $?
"library 'ldap' is required for LDAP" "$LINENO" 5
13187 LDAP_LIBS_BE
="-lldap $EXTRA_LDAP_LIBS"
13188 # This test is carried out against libldap.
13189 for ac_func
in ldap_initialize
13191 ac_fn_c_check_func
"$LINENO" "ldap_initialize" "ac_cv_func_ldap_initialize"
13192 if test "x$ac_cv_func_ldap_initialize" = xyes
; then :
13193 cat >>confdefs.h
<<_ACEOF
13194 #define HAVE_LDAP_INITIALIZE 1
13200 # The separate ldap_r library only exists in OpenLDAP < 2.5, and if we
13201 # have 2.5 or later, we shouldn't even probe for ldap_r (we might find a
13202 # library from a separate OpenLDAP installation). The most reliable
13203 # way to check that is to check for a function introduced in 2.5.
13204 ac_fn_c_check_func
"$LINENO" "ldap_verify_credentials" "ac_cv_func_ldap_verify_credentials"
13205 if test "x$ac_cv_func_ldap_verify_credentials" = xyes
; then :
13206 thread_safe_libldap
=yes
13208 thread_safe_libldap
=no
13211 if test "$thread_safe_libldap" = no
; then
13212 # Use ldap_r for FE if available, else assume ldap is thread-safe.
13213 # On some platforms ldap_r fails to link without PTHREAD_LIBS.
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lldap_r" >&5
13216 $as_echo_n "checking for ldap_bind in -lldap_r... " >&6; }
13217 if ${ac_cv_lib_ldap_r_ldap_bind+:} false
; then :
13218 $as_echo_n "(cached) " >&6
13220 ac_check_lib_save_LIBS
=$LIBS
13221 LIBS
="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
13222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13223 /* end confdefs.h. */
13225 /* Override any GCC internal prototype to avoid an error.
13226 Use char because int might match the return type of a GCC
13227 builtin and then its argument prototype would still apply. */
13235 return ldap_bind ();
13240 if ac_fn_c_try_link
"$LINENO"; then :
13241 ac_cv_lib_ldap_r_ldap_bind
=yes
13243 ac_cv_lib_ldap_r_ldap_bind
=no
13245 rm -f core conftest.err conftest.
$ac_objext \
13246 conftest
$ac_exeext conftest.
$ac_ext
13247 LIBS
=$ac_check_lib_save_LIBS
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_bind" >&5
13250 $as_echo "$ac_cv_lib_ldap_r_ldap_bind" >&6; }
13251 if test "x$ac_cv_lib_ldap_r_ldap_bind" = xyes
; then :
13252 LDAP_LIBS_FE
="-lldap_r $EXTRA_LDAP_LIBS"
13254 LDAP_LIBS_FE
="-lldap $EXTRA_LDAP_LIBS"
13258 LDAP_LIBS_FE
="-lldap $EXTRA_LDAP_LIBS"
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lwldap32" >&5
13262 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
13263 if ${ac_cv_lib_wldap32_ldap_bind+:} false
; then :
13264 $as_echo_n "(cached) " >&6
13266 ac_check_lib_save_LIBS
=$LIBS
13267 LIBS
="-lwldap32 $LIBS"
13268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13269 /* end confdefs.h. */
13271 /* Override any GCC internal prototype to avoid an error.
13272 Use char because int might match the return type of a GCC
13273 builtin and then its argument prototype would still apply. */
13281 return ldap_bind ();
13286 if ac_fn_c_try_link
"$LINENO"; then :
13287 ac_cv_lib_wldap32_ldap_bind
=yes
13289 ac_cv_lib_wldap32_ldap_bind
=no
13291 rm -f core conftest.err conftest.
$ac_objext \
13292 conftest
$ac_exeext conftest.
$ac_ext
13293 LIBS
=$ac_check_lib_save_LIBS
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wldap32_ldap_bind" >&5
13296 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
13297 if test "x$ac_cv_lib_wldap32_ldap_bind" = xyes
; then :
13298 cat >>confdefs.h
<<_ACEOF
13299 #define HAVE_LIBWLDAP32 1
13302 LIBS
="-lwldap32 $LIBS"
13305 as_fn_error $?
"library 'wldap32' is required for LDAP" "$LINENO" 5
13308 LDAP_LIBS_FE
="-lwldap32"
13309 LDAP_LIBS_BE
="-lwldap32"
13316 # for contrib/sepgsql
13317 if test "$with_selinux" = yes; then
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for security_compute_create_name in -lselinux" >&5
13319 $as_echo_n "checking for security_compute_create_name in -lselinux... " >&6; }
13320 if ${ac_cv_lib_selinux_security_compute_create_name+:} false
; then :
13321 $as_echo_n "(cached) " >&6
13323 ac_check_lib_save_LIBS
=$LIBS
13324 LIBS
="-lselinux $LIBS"
13325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13326 /* end confdefs.h. */
13328 /* Override any GCC internal prototype to avoid an error.
13329 Use char because int might match the return type of a GCC
13330 builtin and then its argument prototype would still apply. */
13334 char security_compute_create_name ();
13338 return security_compute_create_name ();
13343 if ac_fn_c_try_link
"$LINENO"; then :
13344 ac_cv_lib_selinux_security_compute_create_name
=yes
13346 ac_cv_lib_selinux_security_compute_create_name
=no
13348 rm -f core conftest.err conftest.
$ac_objext \
13349 conftest
$ac_exeext conftest.
$ac_ext
13350 LIBS
=$ac_check_lib_save_LIBS
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_security_compute_create_name" >&5
13353 $as_echo "$ac_cv_lib_selinux_security_compute_create_name" >&6; }
13354 if test "x$ac_cv_lib_selinux_security_compute_create_name" = xyes
; then :
13355 cat >>confdefs.h
<<_ACEOF
13356 #define HAVE_LIBSELINUX 1
13359 LIBS
="-lselinux $LIBS"
13362 as_fn_error $?
"library 'libselinux', version 2.1.10 or newer, is required for SELinux support" "$LINENO" 5
13367 # for contrib/uuid-ossp
13368 if test "$with_uuid" = bsd
; then
13369 # On BSD, the UUID functions are in libc
13370 ac_fn_c_check_func
"$LINENO" "uuid_to_string" "ac_cv_func_uuid_to_string"
13371 if test "x$ac_cv_func_uuid_to_string" = xyes
; then :
13374 as_fn_error $?
"BSD UUID functions are not present" "$LINENO" 5
13377 elif test "$with_uuid" = e2fs
; then
13378 # On macOS, the UUID functions are in libc
13379 ac_fn_c_check_func
"$LINENO" "uuid_generate" "ac_cv_func_uuid_generate"
13380 if test "x$ac_cv_func_uuid_generate" = xyes
; then :
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
13384 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
13385 if ${ac_cv_lib_uuid_uuid_generate+:} false
; then :
13386 $as_echo_n "(cached) " >&6
13388 ac_check_lib_save_LIBS
=$LIBS
13389 LIBS
="-luuid $LIBS"
13390 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13391 /* end confdefs.h. */
13393 /* Override any GCC internal prototype to avoid an error.
13394 Use char because int might match the return type of a GCC
13395 builtin and then its argument prototype would still apply. */
13399 char uuid_generate ();
13403 return uuid_generate ();
13408 if ac_fn_c_try_link
"$LINENO"; then :
13409 ac_cv_lib_uuid_uuid_generate
=yes
13411 ac_cv_lib_uuid_uuid_generate
=no
13413 rm -f core conftest.err conftest.
$ac_objext \
13414 conftest
$ac_exeext conftest.
$ac_ext
13415 LIBS
=$ac_check_lib_save_LIBS
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
13418 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
13419 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
; then :
13422 as_fn_error $?
"library 'uuid' is required for E2FS UUID" "$LINENO" 5
13427 elif test "$with_uuid" = ossp
; then
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_export in -lossp-uuid" >&5
13429 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
13430 if ${ac_cv_lib_ossp_uuid_uuid_export+:} false
; then :
13431 $as_echo_n "(cached) " >&6
13433 ac_check_lib_save_LIBS
=$LIBS
13434 LIBS
="-lossp-uuid $LIBS"
13435 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13436 /* end confdefs.h. */
13438 /* Override any GCC internal prototype to avoid an error.
13439 Use char because int might match the return type of a GCC
13440 builtin and then its argument prototype would still apply. */
13444 char uuid_export ();
13448 return uuid_export ();
13453 if ac_fn_c_try_link
"$LINENO"; then :
13454 ac_cv_lib_ossp_uuid_uuid_export
=yes
13456 ac_cv_lib_ossp_uuid_uuid_export
=no
13458 rm -f core conftest.err conftest.
$ac_objext \
13459 conftest
$ac_exeext conftest.
$ac_ext
13460 LIBS
=$ac_check_lib_save_LIBS
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
13463 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
13464 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = xyes
; then :
13465 UUID_LIBS
="-lossp-uuid"
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_export in -luuid" >&5
13468 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
13469 if ${ac_cv_lib_uuid_uuid_export+:} false
; then :
13470 $as_echo_n "(cached) " >&6
13472 ac_check_lib_save_LIBS
=$LIBS
13473 LIBS
="-luuid $LIBS"
13474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13475 /* end confdefs.h. */
13477 /* Override any GCC internal prototype to avoid an error.
13478 Use char because int might match the return type of a GCC
13479 builtin and then its argument prototype would still apply. */
13483 char uuid_export ();
13487 return uuid_export ();
13492 if ac_fn_c_try_link
"$LINENO"; then :
13493 ac_cv_lib_uuid_uuid_export
=yes
13495 ac_cv_lib_uuid_uuid_export
=no
13497 rm -f core conftest.err conftest.
$ac_objext \
13498 conftest
$ac_exeext conftest.
$ac_ext
13499 LIBS
=$ac_check_lib_save_LIBS
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_export" >&5
13502 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
13503 if test "x$ac_cv_lib_uuid_uuid_export" = xyes
; then :
13506 as_fn_error $?
"library 'ossp-uuid' or 'uuid' is required for OSSP UUID" "$LINENO" 5
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
13520 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
13521 if ${ac_cv_header_stdbool_h+:} false
; then :
13522 $as_echo_n "(cached) " >&6
13524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13525 /* end confdefs.h. */
13527 #include <stdbool.h>
13529 "error: bool is not defined"
13532 "error: false is not defined"
13535 "error: false is not 0"
13538 "error: true is not defined"
13541 "error: true is not 1"
13543 #ifndef __bool_true_false_are_defined
13544 "error: __bool_true_false_are_defined is not defined"
13547 struct s { _Bool s: 1; _Bool t; } s;
13549 char a[true == 1 ? 1 : -1];
13550 char b[false == 0 ? 1 : -1];
13551 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
13552 char d[(bool) 0.5 == true ? 1 : -1];
13553 /* See body of main program for 'e'. */
13554 char f[(_Bool) 0.0 == false ? 1 : -1];
13556 char h[sizeof (_Bool)];
13557 char i[sizeof s.t];
13558 enum { j = false, k = true, l = false * true, m = true * 256 };
13559 /* The following fails for
13560 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
13562 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
13563 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
13564 /* Catch a bug in an HP-UX C compiler. See
13565 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
13566 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
13578 /* Refer to every declared value, to avoid compiler optimizations. */
13579 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
13580 + !m + !n + !o + !p + !q + !pq);
13586 if ac_fn_c_try_compile
"$LINENO"; then :
13587 ac_cv_header_stdbool_h
=yes
13589 ac_cv_header_stdbool_h
=no
13591 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
13594 $as_echo "$ac_cv_header_stdbool_h" >&6; }
13595 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
13596 if test "x$ac_cv_type__Bool" = xyes
; then :
13598 cat >>confdefs.h
<<_ACEOF
13599 #define HAVE__BOOL 1
13606 if test $ac_cv_header_stdbool_h = yes; then
13608 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
13613 for ac_header
in atomic.h copyfile.h execinfo.h getopt.h ifaddrs.h langinfo.h mbarrier.h sys
/epoll.h sys
/event.h sys
/personality.h sys
/prctl.h sys
/procctl.h sys
/signalfd.h sys
/ucred.h termios.h ucred.h
13615 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13616 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13617 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13618 cat >>confdefs.h
<<_ACEOF
13619 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13627 if expr x
"$pgac_cv_check_readline" : 'x-lreadline' >/dev
/null
; then
13628 for ac_header
in readline
/readline.h
13630 ac_fn_c_check_header_mongrel
"$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
13631 if test "x$ac_cv_header_readline_readline_h" = xyes
; then :
13632 cat >>confdefs.h
<<_ACEOF
13633 #define HAVE_READLINE_READLINE_H 1
13637 for ac_header
in readline.h
13639 ac_fn_c_check_header_mongrel
"$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
13640 if test "x$ac_cv_header_readline_h" = xyes
; then :
13641 cat >>confdefs.h
<<_ACEOF
13642 #define HAVE_READLINE_H 1
13646 as_fn_error $?
"readline header not found
13647 If you have readline already installed, see config.log for details on the
13648 failure. It is possible the compiler isn't looking in the proper directory.
13649 Use --without-readline to disable readline support." "$LINENO" 5
13658 for ac_header
in readline
/history.h
13660 ac_fn_c_check_header_mongrel
"$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
13661 if test "x$ac_cv_header_readline_history_h" = xyes
; then :
13662 cat >>confdefs.h
<<_ACEOF
13663 #define HAVE_READLINE_HISTORY_H 1
13667 for ac_header
in history.h
13669 ac_fn_c_check_header_mongrel
"$LINENO" "history.h" "ac_cv_header_history_h" "$ac_includes_default"
13670 if test "x$ac_cv_header_history_h" = xyes
; then :
13671 cat >>confdefs.h
<<_ACEOF
13672 #define HAVE_HISTORY_H 1
13676 as_fn_error $?
"history header not found
13677 If you have readline already installed, see config.log for details on the
13678 failure. It is possible the compiler isn't looking in the proper directory.
13679 Use --without-readline to disable readline support." "$LINENO" 5
13690 if expr x
"$pgac_cv_check_readline" : 'x-ledit' >/dev
/null
; then
13691 # Some installations of libedit usurp /usr/include/readline/, which seems
13692 # bad practice, since in combined installations readline will have its headers
13693 # there. We might have to resort to AC_EGREP checks to make sure we found
13694 # the proper header...
13695 for ac_header
in editline
/readline.h
13697 ac_fn_c_check_header_mongrel
"$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
13698 if test "x$ac_cv_header_editline_readline_h" = xyes
; then :
13699 cat >>confdefs.h
<<_ACEOF
13700 #define HAVE_EDITLINE_READLINE_H 1
13704 for ac_header
in readline.h
13706 ac_fn_c_check_header_mongrel
"$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
13707 if test "x$ac_cv_header_readline_h" = xyes
; then :
13708 cat >>confdefs.h
<<_ACEOF
13709 #define HAVE_READLINE_H 1
13713 for ac_header
in readline
/readline.h
13715 ac_fn_c_check_header_mongrel
"$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
13716 if test "x$ac_cv_header_readline_readline_h" = xyes
; then :
13717 cat >>confdefs.h
<<_ACEOF
13718 #define HAVE_READLINE_READLINE_H 1
13722 as_fn_error $?
"readline header not found
13723 If you have libedit already installed, see config.log for details on the
13724 failure. It is possible the compiler isn't looking in the proper directory.
13725 Use --without-readline to disable libedit support." "$LINENO" 5
13738 # Note: in a libedit installation, history.h is sometimes a dummy, and may
13739 # not be there at all. Hence, don't complain if not found. We must check
13740 # though, since in yet other versions it is an independent header.
13741 for ac_header
in editline
/history.h
13743 ac_fn_c_check_header_mongrel
"$LINENO" "editline/history.h" "ac_cv_header_editline_history_h" "$ac_includes_default"
13744 if test "x$ac_cv_header_editline_history_h" = xyes
; then :
13745 cat >>confdefs.h
<<_ACEOF
13746 #define HAVE_EDITLINE_HISTORY_H 1
13750 for ac_header
in history.h
13752 ac_fn_c_check_header_mongrel
"$LINENO" "history.h" "ac_cv_header_history_h" "$ac_includes_default"
13753 if test "x$ac_cv_header_history_h" = xyes
; then :
13754 cat >>confdefs.h
<<_ACEOF
13755 #define HAVE_HISTORY_H 1
13759 for ac_header
in readline
/history.h
13761 ac_fn_c_check_header_mongrel
"$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
13762 if test "x$ac_cv_header_readline_history_h" = xyes
; then :
13763 cat >>confdefs.h
<<_ACEOF
13764 #define HAVE_READLINE_HISTORY_H 1
13781 if test "$with_zlib" = yes; then
13782 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13783 if test "x$ac_cv_header_zlib_h" = xyes
; then :
13786 as_fn_error $?
"zlib header not found
13787 If you have zlib already installed, see config.log for details on the
13788 failure. It is possible the compiler isn't looking in the proper directory.
13789 Use --without-zlib to disable zlib support." "$LINENO" 5
13795 if test -z "$LZ4"; then
13798 # Extract the first word of "$ac_prog", so it can be a program name with args.
13799 set dummy
$ac_prog; ac_word
=$2
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13801 $as_echo_n "checking for $ac_word... " >&6; }
13802 if ${ac_cv_path_LZ4+:} false
; then :
13803 $as_echo_n "(cached) " >&6
13807 ac_cv_path_LZ4
="$LZ4" # Let the user override the test with a path.
13810 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13811 for as_dir
in $PATH
13814 test -z "$as_dir" && as_dir
=.
13815 for ac_exec_ext
in '' $ac_executable_extensions; do
13816 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13817 ac_cv_path_LZ4
="$as_dir/$ac_word$ac_exec_ext"
13818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13828 LZ4
=$ac_cv_path_LZ4
13829 if test -n "$LZ4"; then
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZ4" >&5
13831 $as_echo "$LZ4" >&6; }
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13834 $as_echo "no" >&6; }
13838 test -n "$LZ4" && break
13842 # Report the value of LZ4 in configure's output in all cases.
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZ4" >&5
13844 $as_echo_n "checking for LZ4... " >&6; }
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZ4" >&5
13846 $as_echo "$LZ4" >&6; }
13849 if test "$with_lz4" = yes; then
13850 ac_fn_c_check_header_mongrel
"$LINENO" "lz4.h" "ac_cv_header_lz4_h" "$ac_includes_default"
13851 if test "x$ac_cv_header_lz4_h" = xyes
; then :
13854 as_fn_error $?
"lz4.h header file is required for LZ4" "$LINENO" 5
13860 if test -z "$ZSTD"; then
13861 for ac_prog
in zstd
13863 # Extract the first word of "$ac_prog", so it can be a program name with args.
13864 set dummy
$ac_prog; ac_word
=$2
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13866 $as_echo_n "checking for $ac_word... " >&6; }
13867 if ${ac_cv_path_ZSTD+:} false
; then :
13868 $as_echo_n "(cached) " >&6
13872 ac_cv_path_ZSTD
="$ZSTD" # Let the user override the test with a path.
13875 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13876 for as_dir
in $PATH
13879 test -z "$as_dir" && as_dir
=.
13880 for ac_exec_ext
in '' $ac_executable_extensions; do
13881 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13882 ac_cv_path_ZSTD
="$as_dir/$ac_word$ac_exec_ext"
13883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13893 ZSTD
=$ac_cv_path_ZSTD
13894 if test -n "$ZSTD"; then
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZSTD" >&5
13896 $as_echo "$ZSTD" >&6; }
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13899 $as_echo "no" >&6; }
13903 test -n "$ZSTD" && break
13907 # Report the value of ZSTD in configure's output in all cases.
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZSTD" >&5
13909 $as_echo_n "checking for ZSTD... " >&6; }
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZSTD" >&5
13911 $as_echo "$ZSTD" >&6; }
13914 if test "$with_zstd" = yes; then
13915 ac_fn_c_check_header_mongrel
"$LINENO" "zstd.h" "ac_cv_header_zstd_h" "$ac_includes_default"
13916 if test "x$ac_cv_header_zstd_h" = xyes
; then :
13919 as_fn_error $?
"zstd.h header file is required for ZSTD" "$LINENO" 5
13925 if test "$with_gssapi" = yes ; then
13926 for ac_header
in gssapi
/gssapi.h
13928 ac_fn_c_check_header_mongrel
"$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
13929 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes
; then :
13930 cat >>confdefs.h
<<_ACEOF
13931 #define HAVE_GSSAPI_GSSAPI_H 1
13935 for ac_header
in gssapi.h
13937 ac_fn_c_check_header_mongrel
"$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
13938 if test "x$ac_cv_header_gssapi_h" = xyes
; then :
13939 cat >>confdefs.h
<<_ACEOF
13940 #define HAVE_GSSAPI_H 1
13944 as_fn_error $?
"gssapi.h header file is required for GSSAPI" "$LINENO" 5
13953 for ac_header
in gssapi
/gssapi_ext.h
13955 ac_fn_c_check_header_mongrel
"$LINENO" "gssapi/gssapi_ext.h" "ac_cv_header_gssapi_gssapi_ext_h" "$ac_includes_default"
13956 if test "x$ac_cv_header_gssapi_gssapi_ext_h" = xyes
; then :
13957 cat >>confdefs.h
<<_ACEOF
13958 #define HAVE_GSSAPI_GSSAPI_EXT_H 1
13962 for ac_header
in gssapi_ext.h
13964 ac_fn_c_check_header_mongrel
"$LINENO" "gssapi_ext.h" "ac_cv_header_gssapi_ext_h" "$ac_includes_default"
13965 if test "x$ac_cv_header_gssapi_ext_h" = xyes
; then :
13966 cat >>confdefs.h
<<_ACEOF
13967 #define HAVE_GSSAPI_EXT_H 1
13971 as_fn_error $?
"gssapi_ext.h header file is required for GSSAPI" "$LINENO" 5
13982 if test -z "$OPENSSL"; then
13983 for ac_prog
in openssl
13985 # Extract the first word of "$ac_prog", so it can be a program name with args.
13986 set dummy
$ac_prog; ac_word
=$2
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13988 $as_echo_n "checking for $ac_word... " >&6; }
13989 if ${ac_cv_path_OPENSSL+:} false
; then :
13990 $as_echo_n "(cached) " >&6
13994 ac_cv_path_OPENSSL
="$OPENSSL" # Let the user override the test with a path.
13997 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13998 for as_dir
in $PATH
14001 test -z "$as_dir" && as_dir
=.
14002 for ac_exec_ext
in '' $ac_executable_extensions; do
14003 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14004 ac_cv_path_OPENSSL
="$as_dir/$ac_word$ac_exec_ext"
14005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14015 OPENSSL
=$ac_cv_path_OPENSSL
14016 if test -n "$OPENSSL"; then
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
14018 $as_echo "$OPENSSL" >&6; }
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14021 $as_echo "no" >&6; }
14025 test -n "$OPENSSL" && break
14029 # Report the value of OPENSSL in configure's output in all cases.
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
14031 $as_echo_n "checking for OPENSSL... " >&6; }
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
14033 $as_echo "$OPENSSL" >&6; }
14036 pgac_openssl_version
="$($OPENSSL version 2> /dev/null || echo openssl not found)"
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: using openssl: $pgac_openssl_version" >&5
14038 $as_echo "$as_me: using openssl: $pgac_openssl_version" >&6;}
14039 if test "$with_ssl" = openssl
; then
14040 ac_fn_c_check_header_mongrel
"$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
14041 if test "x$ac_cv_header_openssl_ssl_h" = xyes
; then :
14044 as_fn_error $?
"header file <openssl/ssl.h> is required for OpenSSL" "$LINENO" 5
14048 ac_fn_c_check_header_mongrel
"$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default"
14049 if test "x$ac_cv_header_openssl_err_h" = xyes
; then :
14052 as_fn_error $?
"header file <openssl/err.h> is required for OpenSSL" "$LINENO" 5
14058 if test "$with_pam" = yes ; then
14059 for ac_header
in security
/pam_appl.h
14061 ac_fn_c_check_header_mongrel
"$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
14062 if test "x$ac_cv_header_security_pam_appl_h" = xyes
; then :
14063 cat >>confdefs.h
<<_ACEOF
14064 #define HAVE_SECURITY_PAM_APPL_H 1
14068 for ac_header
in pam
/pam_appl.h
14070 ac_fn_c_check_header_mongrel
"$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
14071 if test "x$ac_cv_header_pam_pam_appl_h" = xyes
; then :
14072 cat >>confdefs.h
<<_ACEOF
14073 #define HAVE_PAM_PAM_APPL_H 1
14077 as_fn_error $?
"header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." "$LINENO" 5
14088 if test "$with_bsd_auth" = yes ; then
14089 ac_fn_c_check_header_mongrel
"$LINENO" "bsd_auth.h" "ac_cv_header_bsd_auth_h" "$ac_includes_default"
14090 if test "x$ac_cv_header_bsd_auth_h" = xyes
; then :
14093 as_fn_error $?
"header file <bsd_auth.h> is required for BSD Authentication support" "$LINENO" 5
14099 if test "$with_systemd" = yes ; then
14100 ac_fn_c_check_header_mongrel
"$LINENO" "systemd/sd-daemon.h" "ac_cv_header_systemd_sd_daemon_h" "$ac_includes_default"
14101 if test "x$ac_cv_header_systemd_sd_daemon_h" = xyes
; then :
14104 as_fn_error $?
"header file <systemd/sd-daemon.h> is required for systemd support" "$LINENO" 5
14110 if test "$with_libxml" = yes ; then
14111 ac_fn_c_check_header_mongrel
"$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
14112 if test "x$ac_cv_header_libxml_parser_h" = xyes
; then :
14115 as_fn_error $?
"header file <libxml/parser.h> is required for XML support" "$LINENO" 5
14121 if test "$with_libxslt" = yes ; then
14122 ac_fn_c_check_header_mongrel
"$LINENO" "libxslt/xslt.h" "ac_cv_header_libxslt_xslt_h" "$ac_includes_default"
14123 if test "x$ac_cv_header_libxslt_xslt_h" = xyes
; then :
14126 as_fn_error $?
"header file <libxslt/xslt.h> is required for XSLT support" "$LINENO" 5
14132 if test "$with_ldap" = yes ; then
14133 if test "$PORTNAME" != "win32"; then
14134 ac_fn_c_check_header_mongrel
"$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
14135 if test "x$ac_cv_header_ldap_h" = xyes
; then :
14138 as_fn_error $?
"header file <ldap.h> is required for LDAP" "$LINENO" 5
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible LDAP implementation" >&5
14143 $as_echo_n "checking for compatible LDAP implementation... " >&6; }
14144 if ${pgac_cv_ldap_safe+:} false
; then :
14145 $as_echo_n "(cached) " >&6
14147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14148 /* end confdefs.h. */
14150 #if !defined(LDAP_VENDOR_VERSION) || \
14151 (defined(LDAP_API_FEATURE_X_OPENLDAP) && \
14152 LDAP_VENDOR_VERSION >= 20424 && LDAP_VENDOR_VERSION <= 20431)
14163 if ac_fn_c_try_compile
"$LINENO"; then :
14164 pgac_cv_ldap_safe
=yes
14166 pgac_cv_ldap_safe
=no
14168 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_ldap_safe" >&5
14171 $as_echo "$pgac_cv_ldap_safe" >&6; }
14173 if test "$pgac_cv_ldap_safe" != yes; then
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
14175 *** With OpenLDAP versions 2.4.24 through 2.4.31, inclusive, each backend
14176 *** process that loads libpq (via WAL receiver, dblink, or postgres_fdw) and
14177 *** also uses LDAP will crash on exit." >&5
14178 $as_echo "$as_me: WARNING:
14179 *** With OpenLDAP versions 2.4.24 through 2.4.31, inclusive, each backend
14180 *** process that loads libpq (via WAL receiver, dblink, or postgres_fdw) and
14181 *** also uses LDAP will crash on exit." >&2;}
14184 ac_fn_c_check_header_compile
"$LINENO" "winldap.h" "ac_cv_header_winldap_h" "$ac_includes_default
14185 #include <windows.h>
14188 if test "x$ac_cv_header_winldap_h" = xyes
; then :
14191 as_fn_error $?
"header file <winldap.h> is required for LDAP" "$LINENO" 5
14198 if test "$with_bonjour" = yes ; then
14199 ac_fn_c_check_header_mongrel
"$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
14200 if test "x$ac_cv_header_dns_sd_h" = xyes
; then :
14203 as_fn_error $?
"header file <dns_sd.h> is required for Bonjour" "$LINENO" 5
14209 # for contrib/uuid-ossp
14210 if test "$with_uuid" = bsd
; then
14211 for ac_header
in uuid.h
14213 ac_fn_c_check_header_mongrel
"$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
14214 if test "x$ac_cv_header_uuid_h" = xyes
; then :
14215 cat >>confdefs.h
<<_ACEOF
14216 #define HAVE_UUID_H 1
14218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14219 /* end confdefs.h. */
14223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14224 $EGREP "uuid_to_string" >/dev
/null
2>&1; then :
14227 as_fn_error $?
"header file <uuid.h> does not match BSD UUID library" "$LINENO" 5
14232 as_fn_error $?
"header file <uuid.h> is required for BSD UUID" "$LINENO" 5
14237 elif test "$with_uuid" = e2fs
; then
14238 for ac_header
in uuid
/uuid.h
14240 ac_fn_c_check_header_mongrel
"$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
14241 if test "x$ac_cv_header_uuid_uuid_h" = xyes
; then :
14242 cat >>confdefs.h
<<_ACEOF
14243 #define HAVE_UUID_UUID_H 1
14245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14246 /* end confdefs.h. */
14247 #include <uuid/uuid.h>
14250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14251 $EGREP "uuid_generate" >/dev
/null
2>&1; then :
14254 as_fn_error $?
"header file <uuid/uuid.h> does not match E2FS UUID library" "$LINENO" 5
14259 for ac_header
in uuid.h
14261 ac_fn_c_check_header_mongrel
"$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
14262 if test "x$ac_cv_header_uuid_h" = xyes
; then :
14263 cat >>confdefs.h
<<_ACEOF
14264 #define HAVE_UUID_H 1
14266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14267 /* end confdefs.h. */
14271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14272 $EGREP "uuid_generate" >/dev
/null
2>&1; then :
14275 as_fn_error $?
"header file <uuid.h> does not match E2FS UUID library" "$LINENO" 5
14280 as_fn_error $?
"header file <uuid/uuid.h> or <uuid.h> is required for E2FS UUID" "$LINENO" 5
14289 elif test "$with_uuid" = ossp
; then
14290 for ac_header
in ossp
/uuid.h
14292 ac_fn_c_check_header_mongrel
"$LINENO" "ossp/uuid.h" "ac_cv_header_ossp_uuid_h" "$ac_includes_default"
14293 if test "x$ac_cv_header_ossp_uuid_h" = xyes
; then :
14294 cat >>confdefs.h
<<_ACEOF
14295 #define HAVE_OSSP_UUID_H 1
14297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14298 /* end confdefs.h. */
14299 #include <ossp/uuid.h>
14302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14303 $EGREP "uuid_export" >/dev
/null
2>&1; then :
14306 as_fn_error $?
"header file <ossp/uuid.h> does not match OSSP UUID library" "$LINENO" 5
14311 for ac_header
in uuid.h
14313 ac_fn_c_check_header_mongrel
"$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
14314 if test "x$ac_cv_header_uuid_h" = xyes
; then :
14315 cat >>confdefs.h
<<_ACEOF
14316 #define HAVE_UUID_H 1
14318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14319 /* end confdefs.h. */
14323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14324 $EGREP "uuid_export" >/dev
/null
2>&1; then :
14327 as_fn_error $?
"header file <uuid.h> does not match OSSP UUID library" "$LINENO" 5
14332 as_fn_error $?
"header file <ossp/uuid.h> or <uuid.h> is required for OSSP UUID" "$LINENO" 5
14343 if test "$PORTNAME" = "win32" ; then
14344 for ac_header
in crtdefs.h
14346 ac_fn_c_check_header_mongrel
"$LINENO" "crtdefs.h" "ac_cv_header_crtdefs_h" "$ac_includes_default"
14347 if test "x$ac_cv_header_crtdefs_h" = xyes
; then :
14348 cat >>confdefs.h
<<_ACEOF
14349 #define HAVE_CRTDEFS_H 1
14359 ## Types, structures, compiler characteristics
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14363 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14364 if ${ac_cv_c_bigendian+:} false
; then :
14365 $as_echo_n "(cached) " >&6
14367 ac_cv_c_bigendian
=unknown
14368 # See if we're dealing with a universal compiler.
14369 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14370 /* end confdefs.h. */
14371 #ifndef __APPLE_CC__
14372 not a universal capable compiler
14377 if ac_fn_c_try_compile
"$LINENO"; then :
14379 # Check for potential -arch flags. It is not universal unless
14380 # there are at least two -arch flags with different values.
14383 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14384 if test -n "$ac_prev"; then
14386 i?
86 | x86_64 | ppc | ppc64
)
14387 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
14390 ac_cv_c_bigendian
=universal
14396 elif test "x$ac_word" = "x-arch"; then
14401 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14402 if test $ac_cv_c_bigendian = unknown
; then
14403 # See if sys/param.h defines the BYTE_ORDER macro.
14404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14405 /* end confdefs.h. */
14406 #include <sys/types.h>
14407 #include <sys/param.h>
14412 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14413 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14415 bogus endian macros
14422 if ac_fn_c_try_compile
"$LINENO"; then :
14423 # It does; now see whether it defined to BIG_ENDIAN or not.
14424 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14425 /* end confdefs.h. */
14426 #include <sys/types.h>
14427 #include <sys/param.h>
14432 #if BYTE_ORDER != BIG_ENDIAN
14440 if ac_fn_c_try_compile
"$LINENO"; then :
14441 ac_cv_c_bigendian
=yes
14443 ac_cv_c_bigendian
=no
14445 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14447 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14449 if test $ac_cv_c_bigendian = unknown
; then
14450 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14452 /* end confdefs.h. */
14453 #include <limits.h>
14458 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14459 bogus endian macros
14466 if ac_fn_c_try_compile
"$LINENO"; then :
14467 # It does; now see whether it defined to _BIG_ENDIAN or not.
14468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14469 /* end confdefs.h. */
14470 #include <limits.h>
14475 #ifndef _BIG_ENDIAN
14483 if ac_fn_c_try_compile
"$LINENO"; then :
14484 ac_cv_c_bigendian
=yes
14486 ac_cv_c_bigendian
=no
14488 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14490 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14492 if test $ac_cv_c_bigendian = unknown
; then
14493 # Compile a test program.
14494 if test "$cross_compiling" = yes; then :
14495 # Try to guess by grepping values from an object file.
14496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14497 /* end confdefs.h. */
14498 short int ascii_mm[] =
14499 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14500 short int ascii_ii[] =
14501 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14502 int use_ascii (int i) {
14503 return ascii_mm[i] + ascii_ii[i];
14505 short int ebcdic_ii[] =
14506 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14507 short int ebcdic_mm[] =
14508 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14509 int use_ebcdic (int i) {
14510 return ebcdic_mm[i] + ebcdic_ii[i];
14517 return use_ascii (foo) == use_ebcdic (foo);
14522 if ac_fn_c_try_compile
"$LINENO"; then :
14523 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
14524 ac_cv_c_bigendian
=yes
14526 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
14527 if test "$ac_cv_c_bigendian" = unknown
; then
14528 ac_cv_c_bigendian
=no
14530 # finding both strings is unlikely to happen, but who knows?
14531 ac_cv_c_bigendian
=unknown
14535 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14537 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14538 /* end confdefs.h. */
14539 $ac_includes_default
14544 /* Are we little or big endian? From Harbison&Steele. */
14548 char c[sizeof (long int)];
14551 return u.c[sizeof (long int) - 1] == 1;
14557 if ac_fn_c_try_run
"$LINENO"; then :
14558 ac_cv_c_bigendian
=no
14560 ac_cv_c_bigendian
=yes
14562 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14563 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14569 $as_echo "$ac_cv_c_bigendian" >&6; }
14570 case $ac_cv_c_bigendian in #(
14572 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14578 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14582 as_fn_error $?
"unknown endianness
14583 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14587 $as_echo_n "checking for inline... " >&6; }
14588 if ${ac_cv_c_inline+:} false
; then :
14589 $as_echo_n "(cached) " >&6
14592 for ac_kw
in inline __inline__ __inline
; do
14593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14594 /* end confdefs.h. */
14595 #ifndef __cplusplus
14597 static $ac_kw foo_t static_foo () {return 0; }
14598 $ac_kw foo_t foo () {return 0; }
14602 if ac_fn_c_try_compile
"$LINENO"; then :
14603 ac_cv_c_inline
=$ac_kw
14605 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14606 test "$ac_cv_c_inline" != no
&& break
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14611 $as_echo "$ac_cv_c_inline" >&6; }
14613 case $ac_cv_c_inline in
14616 case $ac_cv_c_inline in
14618 *) ac_val
=$ac_cv_c_inline;;
14620 cat >>confdefs.h
<<_ACEOF
14621 #ifndef __cplusplus
14622 #define inline $ac_val
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf format archetype" >&5
14629 $as_echo_n "checking for printf format archetype... " >&6; }
14630 if ${pgac_cv_printf_archetype+:} false
; then :
14631 $as_echo_n "(cached) " >&6
14633 pgac_cv_printf_archetype
=gnu_printf
14634 ac_save_c_werror_flag
=$ac_c_werror_flag
14635 ac_c_werror_flag
=yes
14636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14637 /* end confdefs.h. */
14638 extern void pgac_write(int ignore, const char *fmt,...)
14639 __attribute__((format($pgac_cv_printf_archetype, 2, 3)));
14643 pgac_write(0, "error %s: %m", "foo");
14648 if ac_fn_c_try_compile
"$LINENO"; then :
14649 ac_archetype_ok
=yes
14653 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14654 ac_c_werror_flag
=$ac_save_c_werror_flag
14656 if [ "$ac_archetype_ok" = no
]; then
14657 pgac_cv_printf_archetype
=__syslog__
14658 ac_save_c_werror_flag
=$ac_c_werror_flag
14659 ac_c_werror_flag
=yes
14660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14661 /* end confdefs.h. */
14662 extern void pgac_write(int ignore, const char *fmt,...)
14663 __attribute__((format($pgac_cv_printf_archetype, 2, 3)));
14667 pgac_write(0, "error %s: %m", "foo");
14672 if ac_fn_c_try_compile
"$LINENO"; then :
14673 ac_archetype_ok
=yes
14677 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14678 ac_c_werror_flag
=$ac_save_c_werror_flag
14680 if [ "$ac_archetype_ok" = no
]; then
14681 pgac_cv_printf_archetype
=printf
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_printf_archetype" >&5
14686 $as_echo "$pgac_cv_printf_archetype" >&6; }
14688 cat >>confdefs.h
<<_ACEOF
14689 #define PG_PRINTF_ATTRIBUTE $pgac_cv_printf_archetype
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Static_assert" >&5
14694 $as_echo_n "checking for _Static_assert... " >&6; }
14695 if ${pgac_cv__static_assert+:} false
; then :
14696 $as_echo_n "(cached) " >&6
14698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14699 /* end confdefs.h. */
14704 ({ _Static_assert(1, "foo"); })
14709 if ac_fn_c_try_link
"$LINENO"; then :
14710 pgac_cv__static_assert
=yes
14712 pgac_cv__static_assert
=no
14714 rm -f core conftest.err conftest.
$ac_objext \
14715 conftest
$ac_exeext conftest.
$ac_ext
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__static_assert" >&5
14718 $as_echo "$pgac_cv__static_assert" >&6; }
14719 if test x
"$pgac_cv__static_assert" = xyes
; then
14721 $as_echo "#define HAVE__STATIC_ASSERT 1" >>confdefs.h
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
14725 $as_echo_n "checking for typeof... " >&6; }
14726 if ${pgac_cv_c_typeof+:} false
; then :
14727 $as_echo_n "(cached) " >&6
14729 pgac_cv_c_typeof
=no
14730 for pgac_kw
in typeof __typeof__ decltype
; do
14731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14732 /* end confdefs.h. */
14745 if ac_fn_c_try_compile
"$LINENO"; then :
14746 pgac_cv_c_typeof
=$pgac_kw
14748 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14749 test "$pgac_cv_c_typeof" != no
&& break
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_c_typeof" >&5
14753 $as_echo "$pgac_cv_c_typeof" >&6; }
14754 if test "$pgac_cv_c_typeof" != no
; then
14756 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
14758 if test "$pgac_cv_c_typeof" != typeof
; then
14760 cat >>confdefs.h
<<_ACEOF
14761 #define typeof $pgac_cv_c_typeof
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_types_compatible_p" >&5
14767 $as_echo_n "checking for __builtin_types_compatible_p... " >&6; }
14768 if ${pgac_cv__types_compatible+:} false
; then :
14769 $as_echo_n "(cached) " >&6
14771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14772 /* end confdefs.h. */
14777 int x; static int y[__builtin_types_compatible_p(__typeof__(x), int)];
14782 if ac_fn_c_try_compile
"$LINENO"; then :
14783 pgac_cv__types_compatible
=yes
14785 pgac_cv__types_compatible
=no
14787 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__types_compatible" >&5
14790 $as_echo "$pgac_cv__types_compatible" >&6; }
14791 if test x
"$pgac_cv__types_compatible" = xyes
; then
14793 $as_echo "#define HAVE__BUILTIN_TYPES_COMPATIBLE_P 1" >>confdefs.h
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_constant_p" >&5
14797 $as_echo_n "checking for __builtin_constant_p... " >&6; }
14798 if ${pgac_cv__builtin_constant_p+:} false
; then :
14799 $as_echo_n "(cached) " >&6
14801 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14802 /* end confdefs.h. */
14804 static int y[__builtin_constant_p(x) ? x : 1];
14805 static int z[__builtin_constant_p("string literal") ? 1 : x];
14809 if ac_fn_c_try_compile
"$LINENO"; then :
14810 pgac_cv__builtin_constant_p
=yes
14812 pgac_cv__builtin_constant_p
=no
14814 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_constant_p" >&5
14817 $as_echo "$pgac_cv__builtin_constant_p" >&6; }
14818 if test x
"$pgac_cv__builtin_constant_p" = xyes
; then
14820 $as_echo "#define HAVE__BUILTIN_CONSTANT_P 1" >>confdefs.h
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unreachable" >&5
14824 $as_echo_n "checking for __builtin_unreachable... " >&6; }
14825 if ${pgac_cv__builtin_unreachable+:} false
; then :
14826 $as_echo_n "(cached) " >&6
14828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14829 /* end confdefs.h. */
14834 __builtin_unreachable();
14839 if ac_fn_c_try_link
"$LINENO"; then :
14840 pgac_cv__builtin_unreachable
=yes
14842 pgac_cv__builtin_unreachable
=no
14844 rm -f core conftest.err conftest.
$ac_objext \
14845 conftest
$ac_exeext conftest.
$ac_ext
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_unreachable" >&5
14848 $as_echo "$pgac_cv__builtin_unreachable" >&6; }
14849 if test x
"$pgac_cv__builtin_unreachable" = xyes
; then
14851 $as_echo "#define HAVE__BUILTIN_UNREACHABLE 1" >>confdefs.h
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for computed goto support" >&5
14855 $as_echo_n "checking for computed goto support... " >&6; }
14856 if ${pgac_cv_computed_goto+:} false
; then :
14857 $as_echo_n "(cached) " >&6
14859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14860 /* end confdefs.h. */
14865 void *labeladdrs[] = {&&my_label};
14866 goto *labeladdrs[0];
14874 if ac_fn_c_try_compile
"$LINENO"; then :
14875 pgac_cv_computed_goto
=yes
14877 pgac_cv_computed_goto
=no
14879 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_computed_goto" >&5
14882 $as_echo "$pgac_cv_computed_goto" >&6; }
14883 if test x
"$pgac_cv_computed_goto" = xyes
; then
14885 $as_echo "#define HAVE_COMPUTED_GOTO 1" >>confdefs.h
14888 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
14892 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
; then :
14894 cat >>confdefs.h
<<_ACEOF
14895 #define HAVE_STRUCT_TM_TM_ZONE 1
14902 ac_fn_c_check_type
"$LINENO" "union semun" "ac_cv_type_union_semun" "#include <sys/types.h>
14903 #include <sys/ipc.h>
14904 #include <sys/sem.h>
14907 if test "x$ac_cv_type_union_semun" = xyes
; then :
14909 cat >>confdefs.h
<<_ACEOF
14910 #define HAVE_UNION_SEMUN 1
14916 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/socket.h>
14918 if test "x$ac_cv_type_socklen_t" = xyes
; then :
14920 cat >>confdefs.h
<<_ACEOF
14921 #define HAVE_SOCKLEN_T 1
14927 ac_fn_c_check_member
"$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
14928 #include <sys/socket.h>
14931 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes
; then :
14933 cat >>confdefs.h
<<_ACEOF
14934 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale_t" >&5
14942 $as_echo_n "checking for locale_t... " >&6; }
14943 if ${pgac_cv_type_locale_t+:} false
; then :
14944 $as_echo_n "(cached) " >&6
14946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14947 /* end confdefs.h. */
14948 #include <locale.h>
14958 if ac_fn_c_try_compile
"$LINENO"; then :
14959 pgac_cv_type_locale_t
=yes
14961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14962 /* end confdefs.h. */
14963 #include <xlocale.h>
14973 if ac_fn_c_try_compile
"$LINENO"; then :
14974 pgac_cv_type_locale_t
='yes (in xlocale.h)'
14976 pgac_cv_type_locale_t
=no
14978 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14980 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_locale_t" >&5
14983 $as_echo "$pgac_cv_type_locale_t" >&6; }
14984 if test "$pgac_cv_type_locale_t" = 'yes (in xlocale.h)'; then
14986 $as_echo "#define LOCALE_T_IN_XLOCALE 1" >>confdefs.h
14990 # MSVC doesn't cope well with defining restrict to __restrict, the
14991 # spelling it understands, because it conflicts with
14992 # __declspec(restrict). Therefore we define pg_restrict to the
14993 # appropriate definition, which presumably won't conflict.
14995 # Allow platforms with buggy compilers to force restrict to not be
14996 # used by setting $FORCE_DISABLE_RESTRICT=yes in the relevant
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
14999 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
15000 if ${ac_cv_c_restrict+:} false
; then :
15001 $as_echo_n "(cached) " >&6
15003 ac_cv_c_restrict
=no
15004 # The order here caters to the fact that C++ does not require restrict.
15005 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
15006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15007 /* end confdefs.h. */
15008 typedef int * int_ptr;
15009 int foo (int_ptr $ac_kw ip) {
15016 int * $ac_kw t = s;
15023 if ac_fn_c_try_compile
"$LINENO"; then :
15024 ac_cv_c_restrict
=$ac_kw
15026 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15027 test "$ac_cv_c_restrict" != no
&& break
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
15032 $as_echo "$ac_cv_c_restrict" >&6; }
15034 case $ac_cv_c_restrict in
15036 no
) $as_echo "#define restrict /**/" >>confdefs.h
15038 *) cat >>confdefs.h
<<_ACEOF
15039 #define restrict $ac_cv_c_restrict
15044 if test "$ac_cv_c_restrict" = "no" -o "x$FORCE_DISABLE_RESTRICT" = "xyes"; then
15047 pg_restrict
="$ac_cv_c_restrict"
15050 cat >>confdefs.h
<<_ACEOF
15051 #define pg_restrict $pg_restrict
15055 ac_fn_c_check_type
"$LINENO" "struct option" "ac_cv_type_struct_option" "#ifdef HAVE_GETOPT_H
15056 #include <getopt.h>
15059 if test "x$ac_cv_type_struct_option" = xyes
; then :
15061 cat >>confdefs.h
<<_ACEOF
15062 #define HAVE_STRUCT_OPTION 1
15071 # On x86_64, check if we can compile a popcntq instruction
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports x86_64 popcntq" >&5
15073 $as_echo_n "checking whether assembler supports x86_64 popcntq... " >&6; }
15074 if ${pgac_cv_have_x86_64_popcntq+:} false
; then :
15075 $as_echo_n "(cached) " >&6
15077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15078 /* end confdefs.h. */
15083 long long x = 1; long long r;
15084 __asm__ __volatile__ (" popcntq %1,%0\n" : "=q"(r) : "rm"(x));
15089 if ac_fn_c_try_compile
"$LINENO"; then :
15090 pgac_cv_have_x86_64_popcntq
=yes
15092 pgac_cv_have_x86_64_popcntq
=no
15094 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_have_x86_64_popcntq" >&5
15097 $as_echo "$pgac_cv_have_x86_64_popcntq" >&6; }
15098 if test x
"$pgac_cv_have_x86_64_popcntq" = xyes
; then
15100 $as_echo "#define HAVE_X86_64_POPCNTQ 1" >>confdefs.h
15105 # On PPC, check if compiler accepts "i"(x) when __builtin_constant_p(x).
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __builtin_constant_p(x) implies \"i\"(x) acceptance" >&5
15107 $as_echo_n "checking whether __builtin_constant_p(x) implies \"i\"(x) acceptance... " >&6; }
15108 if ${pgac_cv_have_i_constraint__builtin_constant_p+:} false
; then :
15109 $as_echo_n "(cached) " >&6
15111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15112 /* end confdefs.h. */
15114 addi(int ra, int si)
15117 if (__builtin_constant_p(si))
15118 __asm__ __volatile__(
15119 " addi %0,%1,%2\n" : "=r"(res) : "b"(ra), "i"(si));
15122 int test_adds(int x) { return addi(3, x) + addi(x, 5); }
15131 if ac_fn_c_try_compile
"$LINENO"; then :
15132 pgac_cv_have_i_constraint__builtin_constant_p
=yes
15134 pgac_cv_have_i_constraint__builtin_constant_p
=no
15136 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_have_i_constraint__builtin_constant_p" >&5
15139 $as_echo "$pgac_cv_have_i_constraint__builtin_constant_p" >&6; }
15140 if test x
"$pgac_cv_have_i_constraint__builtin_constant_p" = xyes
; then
15142 $as_echo "#define HAVE_I_CONSTRAINT__BUILTIN_CONSTANT_P 1" >>confdefs.h
15148 # Check largefile support. You might think this is a system service not a
15149 # compiler characteristic, but you'd be wrong. We must check this before
15150 # probing existence of related functions such as fseeko, since the largefile
15151 # defines can affect what is generated for that.
15152 if test "$PORTNAME" != "win32"; then
15153 # Check whether --enable-largefile was given.
15154 if test "${enable_largefile+set}" = set; then :
15155 enableval
=$enable_largefile;
15158 if test "$enable_largefile" != no
; then
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15161 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15162 if ${ac_cv_sys_largefile_CC+:} false
; then :
15163 $as_echo_n "(cached) " >&6
15165 ac_cv_sys_largefile_CC
=no
15166 if test "$GCC" != yes; then
15169 # IRIX 6.2 and later do not support large files by default,
15170 # so use the C compiler's -n32 option if that helps.
15171 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15172 /* end confdefs.h. */
15173 #include <sys/types.h>
15174 /* Check that off_t can represent 2**63 - 1 correctly.
15175 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15176 since some C++ compilers masquerading as C compilers
15177 incorrectly reject 9223372036854775807. */
15178 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15179 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15180 && LARGE_OFF_T % 2147483647 == 1)
15190 if ac_fn_c_try_compile
"$LINENO"; then :
15193 rm -f core conftest.err conftest.
$ac_objext
15195 if ac_fn_c_try_compile
"$LINENO"; then :
15196 ac_cv_sys_largefile_CC
=' -n32'; break
15198 rm -f core conftest.err conftest.
$ac_objext
15202 rm -f conftest.
$ac_ext
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15206 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15207 if test "$ac_cv_sys_largefile_CC" != no
; then
15208 CC
=$CC$ac_cv_sys_largefile_CC
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15212 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15213 if ${ac_cv_sys_file_offset_bits+:} false
; then :
15214 $as_echo_n "(cached) " >&6
15217 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15218 /* end confdefs.h. */
15219 #include <sys/types.h>
15220 /* Check that off_t can represent 2**63 - 1 correctly.
15221 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15222 since some C++ compilers masquerading as C compilers
15223 incorrectly reject 9223372036854775807. */
15224 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15225 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15226 && LARGE_OFF_T % 2147483647 == 1)
15236 if ac_fn_c_try_compile
"$LINENO"; then :
15237 ac_cv_sys_file_offset_bits
=no
; break
15239 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15241 /* end confdefs.h. */
15242 #define _FILE_OFFSET_BITS 64
15243 #include <sys/types.h>
15244 /* Check that off_t can represent 2**63 - 1 correctly.
15245 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15246 since some C++ compilers masquerading as C compilers
15247 incorrectly reject 9223372036854775807. */
15248 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15249 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15250 && LARGE_OFF_T % 2147483647 == 1)
15260 if ac_fn_c_try_compile
"$LINENO"; then :
15261 ac_cv_sys_file_offset_bits
=64; break
15263 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15264 ac_cv_sys_file_offset_bits
=unknown
15268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15269 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15270 case $ac_cv_sys_file_offset_bits in #(
15273 cat >>confdefs.h
<<_ACEOF
15274 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15279 if test $ac_cv_sys_file_offset_bits = unknown
; then
15280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15281 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15282 if ${ac_cv_sys_large_files+:} false
; then :
15283 $as_echo_n "(cached) " >&6
15286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15287 /* end confdefs.h. */
15288 #include <sys/types.h>
15289 /* Check that off_t can represent 2**63 - 1 correctly.
15290 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15291 since some C++ compilers masquerading as C compilers
15292 incorrectly reject 9223372036854775807. */
15293 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15294 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15295 && LARGE_OFF_T % 2147483647 == 1)
15305 if ac_fn_c_try_compile
"$LINENO"; then :
15306 ac_cv_sys_large_files
=no
; break
15308 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15310 /* end confdefs.h. */
15311 #define _LARGE_FILES 1
15312 #include <sys/types.h>
15313 /* Check that off_t can represent 2**63 - 1 correctly.
15314 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15315 since some C++ compilers masquerading as C compilers
15316 incorrectly reject 9223372036854775807. */
15317 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15318 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15319 && LARGE_OFF_T % 2147483647 == 1)
15329 if ac_fn_c_try_compile
"$LINENO"; then :
15330 ac_cv_sys_large_files
=1; break
15332 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15333 ac_cv_sys_large_files
=unknown
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15338 $as_echo "$ac_cv_sys_large_files" >&6; }
15339 case $ac_cv_sys_large_files in #(
15342 cat >>confdefs.h
<<_ACEOF
15343 #define _LARGE_FILES $ac_cv_sys_large_files
15356 # The cast to long int works around a bug in the HP C Compiler
15357 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15358 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15359 # This bug is HP SR number 8606223364.
15360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
15361 $as_echo_n "checking size of off_t... " >&6; }
15362 if ${ac_cv_sizeof_off_t+:} false
; then :
15363 $as_echo_n "(cached) " >&6
15365 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
15368 if test "$ac_cv_type_off_t" = yes; then
15369 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15370 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15371 as_fn_error
77 "cannot compute sizeof (off_t)
15372 See \`config.log' for more details" "$LINENO" 5; }
15374 ac_cv_sizeof_off_t
=0
15379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
15380 $as_echo "$ac_cv_sizeof_off_t" >&6; }
15384 cat >>confdefs.h
<<_ACEOF
15385 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
15390 # If we don't have largefile support, can't handle segment size >= 2GB.
15391 if test "$ac_cv_sizeof_off_t" -lt 8; then
15392 if expr $RELSEG_SIZE '*' $blocksize '>=' 2 '*' 1024 '*' 1024; then
15393 as_fn_error $?
"Large file support is not enabled. Segment size cannot be larger than 1GB." "$LINENO" 5
15397 # The cast to long int works around a bug in the HP C Compiler
15398 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15399 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15400 # This bug is HP SR number 8606223364.
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of bool" >&5
15402 $as_echo_n "checking size of bool... " >&6; }
15403 if ${ac_cv_sizeof_bool+:} false
; then :
15404 $as_echo_n "(cached) " >&6
15406 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (bool))" "ac_cv_sizeof_bool" "#ifdef HAVE_STDBOOL_H
15407 #include <stdbool.h>
15412 if test "$ac_cv_type_bool" = yes; then
15413 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15414 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15415 as_fn_error
77 "cannot compute sizeof (bool)
15416 See \`config.log' for more details" "$LINENO" 5; }
15418 ac_cv_sizeof_bool
=0
15423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_bool" >&5
15424 $as_echo "$ac_cv_sizeof_bool" >&6; }
15428 cat >>confdefs.h
<<_ACEOF
15429 #define SIZEOF_BOOL $ac_cv_sizeof_bool
15434 if test "$ac_cv_header_stdbool_h" = yes -a "$ac_cv_sizeof_bool" = 1; then
15436 $as_echo "#define PG_USE_STDBOOL 1" >>confdefs.h
15442 ## Functions, global variables
15445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int timezone" >&5
15446 $as_echo_n "checking for int timezone... " >&6; }
15447 if ${pgac_cv_var_int_timezone+:} false
; then :
15448 $as_echo_n "(cached) " >&6
15450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15451 /* end confdefs.h. */
15458 res = timezone / 60;
15460 res = _timezone / 60;
15466 if ac_fn_c_try_link
"$LINENO"; then :
15467 pgac_cv_var_int_timezone
=yes
15469 pgac_cv_var_int_timezone
=no
15471 rm -f core conftest.err conftest.
$ac_objext \
15472 conftest
$ac_exeext conftest.
$ac_ext
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_timezone" >&5
15475 $as_echo "$pgac_cv_var_int_timezone" >&6; }
15476 if test x
"$pgac_cv_var_int_timezone" = xyes
; then
15478 $as_echo "#define HAVE_INT_TIMEZONE 1" >>confdefs.h
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wcstombs_l declaration" >&5
15482 $as_echo_n "checking for wcstombs_l declaration... " >&6; }
15483 if ${pgac_cv_func_wcstombs_l+:} false
; then :
15484 $as_echo_n "(cached) " >&6
15486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15487 /* end confdefs.h. */
15488 #include <stdlib.h>
15489 #include <locale.h>
15500 if ac_fn_c_try_compile
"$LINENO"; then :
15501 pgac_cv_func_wcstombs_l
='yes'
15503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15504 /* end confdefs.h. */
15505 #include <stdlib.h>
15506 #include <locale.h>
15507 #include <xlocale.h>
15518 if ac_fn_c_try_compile
"$LINENO"; then :
15519 pgac_cv_func_wcstombs_l
='yes (in xlocale.h)'
15521 pgac_cv_func_wcstombs_l
='no'
15523 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15525 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_wcstombs_l" >&5
15528 $as_echo "$pgac_cv_func_wcstombs_l" >&6; }
15529 if test "$pgac_cv_func_wcstombs_l" = 'yes (in xlocale.h)'; then
15531 $as_echo "#define WCSTOMBS_L_IN_XLOCALE 1" >>confdefs.h
15535 # Some versions of libedit contain strlcpy(), setproctitle(), and other
15536 # symbols that that library has no business exposing to the world. Pending
15537 # acquisition of a clue by those developers, ignore libedit (including its
15538 # possible alias of libreadline) while checking for everything else.
15539 LIBS_including_readline
="$LIBS"
15540 LIBS
=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
15542 for ac_func
in backtrace_symbols copyfile getifaddrs getpeerucred inet_pton kqueue mbstowcs_l memset_s posix_fallocate ppoll pthread_is_threaded_np setproctitle setproctitle_fast strchrnul strsignal syncfs sync_file_range uselocale wcstombs_l
15544 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15545 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15546 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15547 cat >>confdefs.h
<<_ACEOF
15548 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15555 # These typically are compiler builtins, for which AC_CHECK_FUNCS fails.
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap16" >&5
15557 $as_echo_n "checking for __builtin_bswap16... " >&6; }
15558 if ${pgac_cv__builtin_bswap16+:} false
; then :
15559 $as_echo_n "(cached) " >&6
15561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15562 /* end confdefs.h. */
15565 call__builtin_bswap16(int x)
15567 return __builtin_bswap16(x);
15577 if ac_fn_c_try_link
"$LINENO"; then :
15578 pgac_cv__builtin_bswap16
=yes
15580 pgac_cv__builtin_bswap16
=no
15582 rm -f core conftest.err conftest.
$ac_objext \
15583 conftest
$ac_exeext conftest.
$ac_ext
15585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_bswap16" >&5
15586 $as_echo "$pgac_cv__builtin_bswap16" >&6; }
15587 if test x
"${pgac_cv__builtin_bswap16}" = xyes
; then
15589 cat >>confdefs.h
<<_ACEOF
15590 #define HAVE__BUILTIN_BSWAP16 1
15594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap32" >&5
15595 $as_echo_n "checking for __builtin_bswap32... " >&6; }
15596 if ${pgac_cv__builtin_bswap32+:} false
; then :
15597 $as_echo_n "(cached) " >&6
15599 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15600 /* end confdefs.h. */
15603 call__builtin_bswap32(int x)
15605 return __builtin_bswap32(x);
15615 if ac_fn_c_try_link
"$LINENO"; then :
15616 pgac_cv__builtin_bswap32
=yes
15618 pgac_cv__builtin_bswap32
=no
15620 rm -f core conftest.err conftest.
$ac_objext \
15621 conftest
$ac_exeext conftest.
$ac_ext
15623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_bswap32" >&5
15624 $as_echo "$pgac_cv__builtin_bswap32" >&6; }
15625 if test x
"${pgac_cv__builtin_bswap32}" = xyes
; then
15627 cat >>confdefs.h
<<_ACEOF
15628 #define HAVE__BUILTIN_BSWAP32 1
15632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap64" >&5
15633 $as_echo_n "checking for __builtin_bswap64... " >&6; }
15634 if ${pgac_cv__builtin_bswap64+:} false
; then :
15635 $as_echo_n "(cached) " >&6
15637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15638 /* end confdefs.h. */
15641 call__builtin_bswap64(long int x)
15643 return __builtin_bswap64(x);
15653 if ac_fn_c_try_link
"$LINENO"; then :
15654 pgac_cv__builtin_bswap64
=yes
15656 pgac_cv__builtin_bswap64
=no
15658 rm -f core conftest.err conftest.
$ac_objext \
15659 conftest
$ac_exeext conftest.
$ac_ext
15661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_bswap64" >&5
15662 $as_echo "$pgac_cv__builtin_bswap64" >&6; }
15663 if test x
"${pgac_cv__builtin_bswap64}" = xyes
; then
15665 cat >>confdefs.h
<<_ACEOF
15666 #define HAVE__BUILTIN_BSWAP64 1
15670 # We assume that we needn't test all widths of these explicitly:
15671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5
15672 $as_echo_n "checking for __builtin_clz... " >&6; }
15673 if ${pgac_cv__builtin_clz+:} false
; then :
15674 $as_echo_n "(cached) " >&6
15676 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15677 /* end confdefs.h. */
15680 call__builtin_clz(unsigned int x)
15682 return __builtin_clz(x);
15692 if ac_fn_c_try_link
"$LINENO"; then :
15693 pgac_cv__builtin_clz
=yes
15695 pgac_cv__builtin_clz
=no
15697 rm -f core conftest.err conftest.
$ac_objext \
15698 conftest
$ac_exeext conftest.
$ac_ext
15700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_clz" >&5
15701 $as_echo "$pgac_cv__builtin_clz" >&6; }
15702 if test x
"${pgac_cv__builtin_clz}" = xyes
; then
15704 cat >>confdefs.h
<<_ACEOF
15705 #define HAVE__BUILTIN_CLZ 1
15709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_ctz" >&5
15710 $as_echo_n "checking for __builtin_ctz... " >&6; }
15711 if ${pgac_cv__builtin_ctz+:} false
; then :
15712 $as_echo_n "(cached) " >&6
15714 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15715 /* end confdefs.h. */
15718 call__builtin_ctz(unsigned int x)
15720 return __builtin_ctz(x);
15730 if ac_fn_c_try_link
"$LINENO"; then :
15731 pgac_cv__builtin_ctz
=yes
15733 pgac_cv__builtin_ctz
=no
15735 rm -f core conftest.err conftest.
$ac_objext \
15736 conftest
$ac_exeext conftest.
$ac_ext
15738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_ctz" >&5
15739 $as_echo "$pgac_cv__builtin_ctz" >&6; }
15740 if test x
"${pgac_cv__builtin_ctz}" = xyes
; then
15742 cat >>confdefs.h
<<_ACEOF
15743 #define HAVE__BUILTIN_CTZ 1
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_popcount" >&5
15748 $as_echo_n "checking for __builtin_popcount... " >&6; }
15749 if ${pgac_cv__builtin_popcount+:} false
; then :
15750 $as_echo_n "(cached) " >&6
15752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15753 /* end confdefs.h. */
15756 call__builtin_popcount(unsigned int x)
15758 return __builtin_popcount(x);
15768 if ac_fn_c_try_link
"$LINENO"; then :
15769 pgac_cv__builtin_popcount
=yes
15771 pgac_cv__builtin_popcount
=no
15773 rm -f core conftest.err conftest.
$ac_objext \
15774 conftest
$ac_exeext conftest.
$ac_ext
15776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_popcount" >&5
15777 $as_echo "$pgac_cv__builtin_popcount" >&6; }
15778 if test x
"${pgac_cv__builtin_popcount}" = xyes
; then
15780 cat >>confdefs.h
<<_ACEOF
15781 #define HAVE__BUILTIN_POPCOUNT 1
15785 # __builtin_frame_address may draw a diagnostic for non-constant argument,
15786 # so it needs a different test function.
15787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_frame_address" >&5
15788 $as_echo_n "checking for __builtin_frame_address... " >&6; }
15789 if ${pgac_cv__builtin_frame_address+:} false
; then :
15790 $as_echo_n "(cached) " >&6
15792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15793 /* end confdefs.h. */
15796 call__builtin_frame_address(void)
15798 return __builtin_frame_address(0);
15808 if ac_fn_c_try_link
"$LINENO"; then :
15809 pgac_cv__builtin_frame_address
=yes
15811 pgac_cv__builtin_frame_address
=no
15813 rm -f core conftest.err conftest.
$ac_objext \
15814 conftest
$ac_exeext conftest.
$ac_ext
15816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_frame_address" >&5
15817 $as_echo "$pgac_cv__builtin_frame_address" >&6; }
15818 if test x
"${pgac_cv__builtin_frame_address}" = xyes
; then
15820 cat >>confdefs.h
<<_ACEOF
15821 #define HAVE__BUILTIN_FRAME_ADDRESS 1
15826 # We require 64-bit fseeko() to be available, but run this check anyway
15827 # in case it finds that _LARGEFILE_SOURCE has to be #define'd for that.
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15829 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
15830 if ${ac_cv_sys_largefile_source+:} false
; then :
15831 $as_echo_n "(cached) " >&6
15834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15835 /* end confdefs.h. */
15836 #include <sys/types.h> /* for off_t */
15841 int (*fp) (FILE *, off_t, int) = fseeko;
15842 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15847 if ac_fn_c_try_link
"$LINENO"; then :
15848 ac_cv_sys_largefile_source
=no
; break
15850 rm -f core conftest.err conftest.
$ac_objext \
15851 conftest
$ac_exeext conftest.
$ac_ext
15852 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15853 /* end confdefs.h. */
15854 #define _LARGEFILE_SOURCE 1
15855 #include <sys/types.h> /* for off_t */
15860 int (*fp) (FILE *, off_t, int) = fseeko;
15861 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15866 if ac_fn_c_try_link
"$LINENO"; then :
15867 ac_cv_sys_largefile_source
=1; break
15869 rm -f core conftest.err conftest.
$ac_objext \
15870 conftest
$ac_exeext conftest.
$ac_ext
15871 ac_cv_sys_largefile_source
=unknown
15875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
15876 $as_echo "$ac_cv_sys_largefile_source" >&6; }
15877 case $ac_cv_sys_largefile_source in #(
15880 cat >>confdefs.h
<<_ACEOF
15881 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
15887 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
15888 # in glibc 2.1.3, but that breaks too many other things.
15889 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
15890 if test $ac_cv_sys_largefile_source != unknown
; then
15892 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
15897 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
15898 # by calling it, 2009-04-02
15899 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
15900 # The Clang compiler raises a warning for an undeclared identifier that matches
15901 # a compiler builtin function. All extant Clang versions are affected, as of
15902 # Clang 3.6.0. Test a builtin known to every version. This problem affects the
15903 # C and Objective C languages, but Clang does report an error under C++ and
15906 # Passing -fno-builtin to the compiler would suppress this problem. That
15907 # strategy would have the advantage of being insensitive to stray warnings, but
15908 # it would make tests less realistic.
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how $CC reports undeclared, standard C functions" >&5
15910 $as_echo_n "checking how $CC reports undeclared, standard C functions... " >&6; }
15911 if ${ac_cv_c_decl_report+:} false
; then :
15912 $as_echo_n "(cached) " >&6
15914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15915 /* end confdefs.h. */
15925 if ac_fn_c_try_compile
"$LINENO"; then :
15926 if test -s conftest.err
; then :
15927 # For AC_CHECK_DECL to react to warnings, the compiler must be silent on
15928 # valid AC_CHECK_DECL input. No library function is consistently available
15929 # on freestanding implementations, so test against a dummy declaration.
15930 # Include always-available headers on the off chance that they somehow
15932 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15933 /* end confdefs.h. */
15935 #include <limits.h>
15936 #include <stdarg.h>
15937 #include <stddef.h>
15938 extern void ac_decl (int, char *);
15943 (void) ac_decl ((int) 0, (char *) 0);
15953 if ac_fn_c_try_compile
"$LINENO"; then :
15954 if test -s conftest.err
; then :
15955 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15957 as_fn_error $?
"cannot detect from compiler exit status or warnings
15958 See \`config.log' for more details" "$LINENO" 5; }
15960 ac_cv_c_decl_report
=warning
15963 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15964 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15965 as_fn_error $?
"cannot compile a simple declaration test
15966 See \`config.log' for more details" "$LINENO" 5; }
15968 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15970 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15972 as_fn_error $?
"compiler does not report undeclared identifiers
15973 See \`config.log' for more details" "$LINENO" 5; }
15976 ac_cv_c_decl_report
=error
15978 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_decl_report" >&5
15981 $as_echo "$ac_cv_c_decl_report" >&6; }
15983 case $ac_cv_c_decl_report in
15984 warning
) ac_c_decl_warn_flag
=yes ;;
15985 *) ac_c_decl_warn_flag
= ;;
15988 if test "$PORTNAME" != "solaris"; then :
15990 for ac_func
in posix_fadvise
15992 ac_fn_c_check_func
"$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
15993 if test "x$ac_cv_func_posix_fadvise" = xyes
; then :
15994 cat >>confdefs.h
<<_ACEOF
15995 #define HAVE_POSIX_FADVISE 1
16001 ac_fn_c_check_decl
"$LINENO" "posix_fadvise" "ac_cv_have_decl_posix_fadvise" "#include <fcntl.h>
16003 if test "x$ac_cv_have_decl_posix_fadvise" = xyes
; then :
16009 cat >>confdefs.h
<<_ACEOF
16010 #define HAVE_DECL_POSIX_FADVISE $ac_have_decl
16016 ac_fn_c_check_decl
"$LINENO" "fdatasync" "ac_cv_have_decl_fdatasync" "#include <unistd.h>
16018 if test "x$ac_cv_have_decl_fdatasync" = xyes
; then :
16024 cat >>confdefs.h
<<_ACEOF
16025 #define HAVE_DECL_FDATASYNC $ac_have_decl
16028 ac_fn_c_check_decl
"$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default"
16029 if test "x$ac_cv_have_decl_strlcat" = xyes
; then :
16035 cat >>confdefs.h
<<_ACEOF
16036 #define HAVE_DECL_STRLCAT $ac_have_decl
16038 ac_fn_c_check_decl
"$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default"
16039 if test "x$ac_cv_have_decl_strlcpy" = xyes
; then :
16045 cat >>confdefs.h
<<_ACEOF
16046 #define HAVE_DECL_STRLCPY $ac_have_decl
16048 ac_fn_c_check_decl
"$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
16049 if test "x$ac_cv_have_decl_strnlen" = xyes
; then :
16055 cat >>confdefs.h
<<_ACEOF
16056 #define HAVE_DECL_STRNLEN $ac_have_decl
16060 # We can't use AC_CHECK_FUNCS to detect these functions, because it
16061 # won't handle deployment target restrictions on macOS
16062 ac_fn_c_check_decl
"$LINENO" "preadv" "ac_cv_have_decl_preadv" "#include <sys/uio.h>
16064 if test "x$ac_cv_have_decl_preadv" = xyes
; then :
16070 cat >>confdefs.h
<<_ACEOF
16071 #define HAVE_DECL_PREADV $ac_have_decl
16074 ac_fn_c_check_decl
"$LINENO" "pwritev" "ac_cv_have_decl_pwritev" "#include <sys/uio.h>
16076 if test "x$ac_cv_have_decl_pwritev" = xyes
; then :
16082 cat >>confdefs.h
<<_ACEOF
16083 #define HAVE_DECL_PWRITEV $ac_have_decl
16087 # This is probably only present on macOS, but may as well check always
16088 ac_fn_c_check_decl
"$LINENO" "F_FULLFSYNC" "ac_cv_have_decl_F_FULLFSYNC" "#include <fcntl.h>
16090 if test "x$ac_cv_have_decl_F_FULLFSYNC" = xyes
; then :
16096 cat >>confdefs.h
<<_ACEOF
16097 #define HAVE_DECL_F_FULLFSYNC $ac_have_decl
16101 ac_fn_c_check_func
"$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
16102 if test "x$ac_cv_func_explicit_bzero" = xyes
; then :
16103 $as_echo "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
16106 case " $LIBOBJS " in
16107 *" explicit_bzero.$ac_objext "* ) ;;
16108 *) LIBOBJS
="$LIBOBJS explicit_bzero.$ac_objext"
16114 ac_fn_c_check_func
"$LINENO" "getopt" "ac_cv_func_getopt"
16115 if test "x$ac_cv_func_getopt" = xyes
; then :
16116 $as_echo "#define HAVE_GETOPT 1" >>confdefs.h
16119 case " $LIBOBJS " in
16120 *" getopt.$ac_objext "* ) ;;
16121 *) LIBOBJS
="$LIBOBJS getopt.$ac_objext"
16127 ac_fn_c_check_func
"$LINENO" "getpeereid" "ac_cv_func_getpeereid"
16128 if test "x$ac_cv_func_getpeereid" = xyes
; then :
16129 $as_echo "#define HAVE_GETPEEREID 1" >>confdefs.h
16132 case " $LIBOBJS " in
16133 *" getpeereid.$ac_objext "* ) ;;
16134 *) LIBOBJS
="$LIBOBJS getpeereid.$ac_objext"
16140 ac_fn_c_check_func
"$LINENO" "inet_aton" "ac_cv_func_inet_aton"
16141 if test "x$ac_cv_func_inet_aton" = xyes
; then :
16142 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
16145 case " $LIBOBJS " in
16146 *" inet_aton.$ac_objext "* ) ;;
16147 *) LIBOBJS
="$LIBOBJS inet_aton.$ac_objext"
16153 ac_fn_c_check_func
"$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
16154 if test "x$ac_cv_func_mkdtemp" = xyes
; then :
16155 $as_echo "#define HAVE_MKDTEMP 1" >>confdefs.h
16158 case " $LIBOBJS " in
16159 *" mkdtemp.$ac_objext "* ) ;;
16160 *) LIBOBJS
="$LIBOBJS mkdtemp.$ac_objext"
16166 ac_fn_c_check_func
"$LINENO" "strlcat" "ac_cv_func_strlcat"
16167 if test "x$ac_cv_func_strlcat" = xyes
; then :
16168 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
16171 case " $LIBOBJS " in
16172 *" strlcat.$ac_objext "* ) ;;
16173 *) LIBOBJS
="$LIBOBJS strlcat.$ac_objext"
16179 ac_fn_c_check_func
"$LINENO" "strlcpy" "ac_cv_func_strlcpy"
16180 if test "x$ac_cv_func_strlcpy" = xyes
; then :
16181 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
16184 case " $LIBOBJS " in
16185 *" strlcpy.$ac_objext "* ) ;;
16186 *) LIBOBJS
="$LIBOBJS strlcpy.$ac_objext"
16192 ac_fn_c_check_func
"$LINENO" "strnlen" "ac_cv_func_strnlen"
16193 if test "x$ac_cv_func_strnlen" = xyes
; then :
16194 $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h
16197 case " $LIBOBJS " in
16198 *" strnlen.$ac_objext "* ) ;;
16199 *) LIBOBJS
="$LIBOBJS strnlen.$ac_objext"
16207 ac_fn_c_check_func
"$LINENO" "pthread_barrier_wait" "ac_cv_func_pthread_barrier_wait"
16208 if test "x$ac_cv_func_pthread_barrier_wait" = xyes
; then :
16209 $as_echo "#define HAVE_PTHREAD_BARRIER_WAIT 1" >>confdefs.h
16212 case " $LIBOBJS " in
16213 *" pthread_barrier_wait.$ac_objext "* ) ;;
16214 *) LIBOBJS
="$LIBOBJS pthread_barrier_wait.$ac_objext"
16222 if test "$PORTNAME" = "win32" -o "$PORTNAME" = "cygwin"; then
16223 # Cygwin and (apparently, based on test results) Mingw both
16224 # have a broken strtof(), so substitute its implementation.
16225 # That's not a perfect fix, since it doesn't avoid double-rounding,
16226 # but we have no better options.
16227 case " $LIBOBJS " in
16228 *" strtof.$ac_objext "* ) ;;
16229 *) LIBOBJS
="$LIBOBJS strtof.$ac_objext"
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: On $host_os we will use our strtof wrapper." >&5
16234 $as_echo "$as_me: On $host_os we will use our strtof wrapper." >&6;}
16237 # Similarly, use system's getopt_long() only if system provides struct option.
16238 if test x
"$ac_cv_type_struct_option" = xyes
; then
16239 ac_fn_c_check_func
"$LINENO" "getopt_long" "ac_cv_func_getopt_long"
16240 if test "x$ac_cv_func_getopt_long" = xyes
; then :
16241 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
16244 case " $LIBOBJS " in
16245 *" getopt_long.$ac_objext "* ) ;;
16246 *) LIBOBJS
="$LIBOBJS getopt_long.$ac_objext"
16254 case " $LIBOBJS " in
16255 *" getopt_long.$ac_objext "* ) ;;
16256 *) LIBOBJS
="$LIBOBJS getopt_long.$ac_objext"
16262 # On OpenBSD and Solaris, getopt() doesn't do what we want for long options
16263 # (i.e., allow '-' as a flag character), so use our version on those platforms.
16264 if test "$PORTNAME" = "openbsd" -o "$PORTNAME" = "solaris"; then
16265 case " $LIBOBJS " in
16266 *" getopt.$ac_objext "* ) ;;
16267 *) LIBOBJS
="$LIBOBJS getopt.$ac_objext"
16273 # mingw has adopted a GNU-centric interpretation of optind/optreset,
16274 # so always use our version on Windows.
16275 if test "$PORTNAME" = "win32"; then
16276 case " $LIBOBJS " in
16277 *" getopt.$ac_objext "* ) ;;
16278 *) LIBOBJS
="$LIBOBJS getopt.$ac_objext"
16282 case " $LIBOBJS " in
16283 *" getopt_long.$ac_objext "* ) ;;
16284 *) LIBOBJS
="$LIBOBJS getopt_long.$ac_objext"
16290 # Win32 (really MinGW) support
16291 if test "$PORTNAME" = "win32"; then
16292 for ac_func
in _configthreadlocale
16294 ac_fn_c_check_func
"$LINENO" "_configthreadlocale" "ac_cv_func__configthreadlocale"
16295 if test "x$ac_cv_func__configthreadlocale" = xyes
; then :
16296 cat >>confdefs.h
<<_ACEOF
16297 #define HAVE__CONFIGTHREADLOCALE 1
16303 case " $LIBOBJS " in
16304 *" dirmod.$ac_objext "* ) ;;
16305 *) LIBOBJS
="$LIBOBJS dirmod.$ac_objext"
16309 case " $LIBOBJS " in
16310 *" kill.$ac_objext "* ) ;;
16311 *) LIBOBJS
="$LIBOBJS kill.$ac_objext"
16315 case " $LIBOBJS " in
16316 *" open.$ac_objext "* ) ;;
16317 *) LIBOBJS
="$LIBOBJS open.$ac_objext"
16321 case " $LIBOBJS " in
16322 *" system.$ac_objext "* ) ;;
16323 *) LIBOBJS
="$LIBOBJS system.$ac_objext"
16327 case " $LIBOBJS " in
16328 *" win32common.$ac_objext "* ) ;;
16329 *) LIBOBJS
="$LIBOBJS win32common.$ac_objext"
16333 case " $LIBOBJS " in
16334 *" win32dlopen.$ac_objext "* ) ;;
16335 *) LIBOBJS
="$LIBOBJS win32dlopen.$ac_objext"
16339 case " $LIBOBJS " in
16340 *" win32env.$ac_objext "* ) ;;
16341 *) LIBOBJS
="$LIBOBJS win32env.$ac_objext"
16345 case " $LIBOBJS " in
16346 *" win32error.$ac_objext "* ) ;;
16347 *) LIBOBJS
="$LIBOBJS win32error.$ac_objext"
16351 case " $LIBOBJS " in
16352 *" win32fdatasync.$ac_objext "* ) ;;
16353 *) LIBOBJS
="$LIBOBJS win32fdatasync.$ac_objext"
16357 case " $LIBOBJS " in
16358 *" win32getrusage.$ac_objext "* ) ;;
16359 *) LIBOBJS
="$LIBOBJS win32getrusage.$ac_objext"
16363 case " $LIBOBJS " in
16364 *" win32link.$ac_objext "* ) ;;
16365 *) LIBOBJS
="$LIBOBJS win32link.$ac_objext"
16369 case " $LIBOBJS " in
16370 *" win32ntdll.$ac_objext "* ) ;;
16371 *) LIBOBJS
="$LIBOBJS win32ntdll.$ac_objext"
16375 case " $LIBOBJS " in
16376 *" win32pread.$ac_objext "* ) ;;
16377 *) LIBOBJS
="$LIBOBJS win32pread.$ac_objext"
16381 case " $LIBOBJS " in
16382 *" win32pwrite.$ac_objext "* ) ;;
16383 *) LIBOBJS
="$LIBOBJS win32pwrite.$ac_objext"
16387 case " $LIBOBJS " in
16388 *" win32security.$ac_objext "* ) ;;
16389 *) LIBOBJS
="$LIBOBJS win32security.$ac_objext"
16393 case " $LIBOBJS " in
16394 *" win32setlocale.$ac_objext "* ) ;;
16395 *) LIBOBJS
="$LIBOBJS win32setlocale.$ac_objext"
16399 case " $LIBOBJS " in
16400 *" win32stat.$ac_objext "* ) ;;
16401 *) LIBOBJS
="$LIBOBJS win32stat.$ac_objext"
16406 # Cygwin needs only a bit of that
16407 if test "$PORTNAME" = "cygwin"; then
16408 case " $LIBOBJS " in
16409 *" dirmod.$ac_objext "* ) ;;
16410 *) LIBOBJS
="$LIBOBJS dirmod.$ac_objext"
16416 ac_fn_c_check_func
"$LINENO" "syslog" "ac_cv_func_syslog"
16417 if test "x$ac_cv_func_syslog" = xyes
; then :
16418 ac_fn_c_check_header_mongrel
"$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
16419 if test "x$ac_cv_header_syslog_h" = xyes
; then :
16421 $as_echo "#define HAVE_SYSLOG 1" >>confdefs.h
16429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opterr" >&5
16430 $as_echo_n "checking for opterr... " >&6; }
16431 if ${pgac_cv_var_int_opterr+:} false
; then :
16432 $as_echo_n "(cached) " >&6
16434 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16435 /* end confdefs.h. */
16436 #include <unistd.h>
16440 extern int opterr; opterr = 1;
16445 if ac_fn_c_try_link
"$LINENO"; then :
16446 pgac_cv_var_int_opterr
=yes
16448 pgac_cv_var_int_opterr
=no
16450 rm -f core conftest.err conftest.
$ac_objext \
16451 conftest
$ac_exeext conftest.
$ac_ext
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_opterr" >&5
16454 $as_echo "$pgac_cv_var_int_opterr" >&6; }
16455 if test x
"$pgac_cv_var_int_opterr" = x
"yes"; then
16457 $as_echo "#define HAVE_INT_OPTERR 1" >>confdefs.h
16461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
16462 $as_echo_n "checking for optreset... " >&6; }
16463 if ${pgac_cv_var_int_optreset+:} false
; then :
16464 $as_echo_n "(cached) " >&6
16466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16467 /* end confdefs.h. */
16468 #include <unistd.h>
16472 extern int optreset; optreset = 1;
16477 if ac_fn_c_try_link
"$LINENO"; then :
16478 pgac_cv_var_int_optreset
=yes
16480 pgac_cv_var_int_optreset
=no
16482 rm -f core conftest.err conftest.
$ac_objext \
16483 conftest
$ac_exeext conftest.
$ac_ext
16485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_optreset" >&5
16486 $as_echo "$pgac_cv_var_int_optreset" >&6; }
16487 if test x
"$pgac_cv_var_int_optreset" = x
"yes"; then
16489 $as_echo "#define HAVE_INT_OPTRESET 1" >>confdefs.h
16493 if test "$with_icu" = yes; then
16494 ac_save_CPPFLAGS
=$CPPFLAGS
16495 CPPFLAGS
="$ICU_CFLAGS $CPPFLAGS"
16497 # Verify we have ICU's header files
16498 ac_fn_c_check_header_mongrel
"$LINENO" "unicode/ucol.h" "ac_cv_header_unicode_ucol_h" "$ac_includes_default"
16499 if test "x$ac_cv_header_unicode_ucol_h" = xyes
; then :
16502 as_fn_error $?
"header file <unicode/ucol.h> is required for ICU" "$LINENO" 5
16507 CPPFLAGS
=$ac_save_CPPFLAGS
16510 if test "$with_llvm" = yes; then
16512 # Check which functionality is present
16513 SAVE_CPPFLAGS
="$CPPFLAGS"
16514 CPPFLAGS
="$CPPFLAGS $LLVM_CPPFLAGS"
16515 ac_fn_c_check_decl
"$LINENO" "LLVMOrcGetSymbolAddressIn" "ac_cv_have_decl_LLVMOrcGetSymbolAddressIn" "#include <llvm-c/OrcBindings.h>
16517 if test "x$ac_cv_have_decl_LLVMOrcGetSymbolAddressIn" = xyes
; then :
16523 cat >>confdefs.h
<<_ACEOF
16524 #define HAVE_DECL_LLVMORCGETSYMBOLADDRESSIN $ac_have_decl
16527 ac_fn_c_check_decl
"$LINENO" "LLVMGetHostCPUName" "ac_cv_have_decl_LLVMGetHostCPUName" "#include <llvm-c/TargetMachine.h>
16529 if test "x$ac_cv_have_decl_LLVMGetHostCPUName" = xyes
; then :
16535 cat >>confdefs.h
<<_ACEOF
16536 #define HAVE_DECL_LLVMGETHOSTCPUNAME $ac_have_decl
16538 ac_fn_c_check_decl
"$LINENO" "LLVMGetHostCPUFeatures" "ac_cv_have_decl_LLVMGetHostCPUFeatures" "#include <llvm-c/TargetMachine.h>
16540 if test "x$ac_cv_have_decl_LLVMGetHostCPUFeatures" = xyes
; then :
16546 cat >>confdefs.h
<<_ACEOF
16547 #define HAVE_DECL_LLVMGETHOSTCPUFEATURES $ac_have_decl
16550 ac_fn_c_check_decl
"$LINENO" "LLVMCreateGDBRegistrationListener" "ac_cv_have_decl_LLVMCreateGDBRegistrationListener" "#include <llvm-c/ExecutionEngine.h>
16552 if test "x$ac_cv_have_decl_LLVMCreateGDBRegistrationListener" = xyes
; then :
16558 cat >>confdefs.h
<<_ACEOF
16559 #define HAVE_DECL_LLVMCREATEGDBREGISTRATIONLISTENER $ac_have_decl
16561 ac_fn_c_check_decl
"$LINENO" "LLVMCreatePerfJITEventListener" "ac_cv_have_decl_LLVMCreatePerfJITEventListener" "#include <llvm-c/ExecutionEngine.h>
16563 if test "x$ac_cv_have_decl_LLVMCreatePerfJITEventListener" = xyes
; then :
16569 cat >>confdefs.h
<<_ACEOF
16570 #define HAVE_DECL_LLVMCREATEPERFJITEVENTLISTENER $ac_have_decl
16573 CPPFLAGS
="$SAVE_CPPFLAGS"
16577 # Lastly, restore full LIBS list and check for readline/libedit symbols
16578 LIBS
="$LIBS_including_readline"
16580 if test "$with_readline" = yes; then
16581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_suppress_quote" >&5
16582 $as_echo_n "checking for rl_completion_suppress_quote... " >&6; }
16583 if ${pgac_cv_var_rl_completion_suppress_quote+:} false
; then :
16584 $as_echo_n "(cached) " >&6
16586 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16587 /* end confdefs.h. */
16589 #if defined(HAVE_READLINE_READLINE_H)
16590 #include <readline/readline.h>
16591 #elif defined(HAVE_EDITLINE_READLINE_H)
16592 #include <editline/readline.h>
16593 #elif defined(HAVE_READLINE_H)
16594 #include <readline.h>
16600 rl_completion_suppress_quote = 1;
16605 if ac_fn_c_try_link
"$LINENO"; then :
16606 pgac_cv_var_rl_completion_suppress_quote
=yes
16608 pgac_cv_var_rl_completion_suppress_quote
=no
16610 rm -f core conftest.err conftest.
$ac_objext \
16611 conftest
$ac_exeext conftest.
$ac_ext
16613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_rl_completion_suppress_quote" >&5
16614 $as_echo "$pgac_cv_var_rl_completion_suppress_quote" >&6; }
16615 if test x
"$pgac_cv_var_rl_completion_suppress_quote" = x
"yes"; then
16617 $as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_QUOTE 1" >>confdefs.h
16620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_filename_quote_characters" >&5
16621 $as_echo_n "checking for rl_filename_quote_characters... " >&6; }
16622 if ${pgac_cv_var_rl_filename_quote_characters+:} false
; then :
16623 $as_echo_n "(cached) " >&6
16625 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16626 /* end confdefs.h. */
16628 #if defined(HAVE_READLINE_READLINE_H)
16629 #include <readline/readline.h>
16630 #elif defined(HAVE_EDITLINE_READLINE_H)
16631 #include <editline/readline.h>
16632 #elif defined(HAVE_READLINE_H)
16633 #include <readline.h>
16639 rl_filename_quote_characters = "x";
16644 if ac_fn_c_try_link
"$LINENO"; then :
16645 pgac_cv_var_rl_filename_quote_characters
=yes
16647 pgac_cv_var_rl_filename_quote_characters
=no
16649 rm -f core conftest.err conftest.
$ac_objext \
16650 conftest
$ac_exeext conftest.
$ac_ext
16652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_rl_filename_quote_characters" >&5
16653 $as_echo "$pgac_cv_var_rl_filename_quote_characters" >&6; }
16654 if test x
"$pgac_cv_var_rl_filename_quote_characters" = x
"yes"; then
16656 $as_echo "#define HAVE_RL_FILENAME_QUOTE_CHARACTERS 1" >>confdefs.h
16659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_filename_quoting_function" >&5
16660 $as_echo_n "checking for rl_filename_quoting_function... " >&6; }
16661 if ${pgac_cv_var_rl_filename_quoting_function+:} false
; then :
16662 $as_echo_n "(cached) " >&6
16664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16665 /* end confdefs.h. */
16667 #if defined(HAVE_READLINE_READLINE_H)
16668 #include <readline/readline.h>
16669 #elif defined(HAVE_EDITLINE_READLINE_H)
16670 #include <editline/readline.h>
16671 #elif defined(HAVE_READLINE_H)
16672 #include <readline.h>
16678 rl_filename_quoting_function = 0;
16683 if ac_fn_c_try_link
"$LINENO"; then :
16684 pgac_cv_var_rl_filename_quoting_function
=yes
16686 pgac_cv_var_rl_filename_quoting_function
=no
16688 rm -f core conftest.err conftest.
$ac_objext \
16689 conftest
$ac_exeext conftest.
$ac_ext
16691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_rl_filename_quoting_function" >&5
16692 $as_echo "$pgac_cv_var_rl_filename_quoting_function" >&6; }
16693 if test x
"$pgac_cv_var_rl_filename_quoting_function" = x
"yes"; then
16695 $as_echo "#define HAVE_RL_FILENAME_QUOTING_FUNCTION 1" >>confdefs.h
16699 for ac_func
in append_history history_truncate_file rl_completion_matches rl_filename_completion_function rl_reset_screen_size rl_variable_bind
16701 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16702 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16703 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
16704 cat >>confdefs.h
<<_ACEOF
16705 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16714 # This test makes sure that run tests work at all. Sometimes a shared
16715 # library is found by the linker, but the runtime linker can't find it.
16716 # This check should come after all modifications of compiler or linker
16717 # variables, and before any other run tests.
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking test program" >&5
16719 $as_echo_n "checking test program... " >&6; }
16720 if test "$cross_compiling" = yes; then :
16721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
16722 $as_echo "cross-compiling" >&6; }
16724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16725 /* end confdefs.h. */
16726 int main() { return 0; }
16728 if ac_fn_c_try_run
"$LINENO"; then :
16729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
16730 $as_echo "ok" >&6; }
16732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
16733 $as_echo "failed" >&6; }
16735 Could not execute a simple test program. This may be a problem
16736 related to locating shared libraries. Check the file 'config.log'
16737 for the exact reason." "$LINENO" 5
16739 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16740 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16744 # --------------------
16745 # Run tests below here
16746 # --------------------
16749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long int is 64 bits" >&5
16750 $as_echo_n "checking whether long int is 64 bits... " >&6; }
16751 if ${pgac_cv_type_long_int_64+:} false
; then :
16752 $as_echo_n "(cached) " >&6
16754 if test "$cross_compiling" = yes; then :
16755 # If cross-compiling, check the size reported by the compiler and
16756 # trust that the arithmetic works.
16757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16758 /* end confdefs.h. */
16763 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
16764 test_array [0] = 0;
16765 return test_array [0];
16771 if ac_fn_c_try_compile
"$LINENO"; then :
16772 pgac_cv_type_long_int_64
=yes
16774 pgac_cv_type_long_int_64
=no
16776 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16779 /* end confdefs.h. */
16780 typedef long int ac_int64;
16783 * These are globals to discourage the compiler from folding all the
16784 * arithmetic tests down to compile-time constants.
16786 ac_int64 a = 20000001;
16787 ac_int64 b = 40000005;
16789 int does_int64_work()
16793 if (sizeof(ac_int64) != 8)
16794 return 0; /* definitely not the right size */
16796 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
16806 return (! does_int64_work());
16809 if ac_fn_c_try_run
"$LINENO"; then :
16810 pgac_cv_type_long_int_64
=yes
16812 pgac_cv_type_long_int_64
=no
16814 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16815 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_long_int_64" >&5
16820 $as_echo "$pgac_cv_type_long_int_64" >&6; }
16822 HAVE_LONG_INT_64
=$pgac_cv_type_long_int_64
16823 if test x
"$pgac_cv_type_long_int_64" = xyes
; then
16825 $as_echo "#define HAVE_LONG_INT_64 1" >>confdefs.h
16830 if test x
"$HAVE_LONG_INT_64" = x
"yes" ; then
16831 pg_int64_type
="long int"
16833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long long int is 64 bits" >&5
16834 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
16835 if ${pgac_cv_type_long_long_int_64+:} false
; then :
16836 $as_echo_n "(cached) " >&6
16838 if test "$cross_compiling" = yes; then :
16839 # If cross-compiling, check the size reported by the compiler and
16840 # trust that the arithmetic works.
16841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16842 /* end confdefs.h. */
16847 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
16848 test_array [0] = 0;
16849 return test_array [0];
16855 if ac_fn_c_try_compile
"$LINENO"; then :
16856 pgac_cv_type_long_long_int_64
=yes
16858 pgac_cv_type_long_long_int_64
=no
16860 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16863 /* end confdefs.h. */
16864 typedef long long int ac_int64;
16867 * These are globals to discourage the compiler from folding all the
16868 * arithmetic tests down to compile-time constants.
16870 ac_int64 a = 20000001;
16871 ac_int64 b = 40000005;
16873 int does_int64_work()
16877 if (sizeof(ac_int64) != 8)
16878 return 0; /* definitely not the right size */
16880 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
16890 return (! does_int64_work());
16893 if ac_fn_c_try_run
"$LINENO"; then :
16894 pgac_cv_type_long_long_int_64
=yes
16896 pgac_cv_type_long_long_int_64
=no
16898 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16899 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_long_long_int_64" >&5
16904 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
16906 HAVE_LONG_LONG_INT_64
=$pgac_cv_type_long_long_int_64
16907 if test x
"$pgac_cv_type_long_long_int_64" = xyes
; then
16909 $as_echo "#define HAVE_LONG_LONG_INT_64 1" >>confdefs.h
16913 if test x
"$HAVE_LONG_LONG_INT_64" = x
"yes" ; then
16914 pg_int64_type
="long long int"
16916 as_fn_error $?
"Cannot find a working 64-bit integer type." "$LINENO" 5
16921 cat >>confdefs.h
<<_ACEOF
16922 #define PG_INT64_TYPE $pg_int64_type
16926 # Select the printf length modifier that goes with that, too.
16927 if test x
"$pg_int64_type" = x
"long long int" ; then
16928 INT64_MODIFIER
='"ll"'
16930 INT64_MODIFIER
='"l"'
16934 cat >>confdefs.h
<<_ACEOF
16935 #define INT64_MODIFIER $INT64_MODIFIER
16939 # has to be down here, rather than with the other builtins, because
16940 # the test uses PG_INT64_TYPE.
16941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_mul_overflow" >&5
16942 $as_echo_n "checking for __builtin_mul_overflow... " >&6; }
16943 if ${pgac_cv__builtin_op_overflow+:} false
; then :
16944 $as_echo_n "(cached) " >&6
16946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16947 /* end confdefs.h. */
16949 PG_INT64_TYPE a = 1;
16950 PG_INT64_TYPE b = 1;
16951 PG_INT64_TYPE result;
16957 oflo = __builtin_mul_overflow(a, b, &result);
16962 if ac_fn_c_try_link
"$LINENO"; then :
16963 pgac_cv__builtin_op_overflow
=yes
16965 pgac_cv__builtin_op_overflow
=no
16967 rm -f core conftest.err conftest.
$ac_objext \
16968 conftest
$ac_exeext conftest.
$ac_ext
16970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_op_overflow" >&5
16971 $as_echo "$pgac_cv__builtin_op_overflow" >&6; }
16972 if test x
"$pgac_cv__builtin_op_overflow" = xyes
; then
16974 $as_echo "#define HAVE__BUILTIN_OP_OVERFLOW 1" >>confdefs.h
16978 # Check size of void *, size_t (enables tweaks for > 32bit address space)
16979 # The cast to long int works around a bug in the HP C Compiler
16980 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16981 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16982 # This bug is HP SR number 8606223364.
16983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16984 $as_echo_n "checking size of void *... " >&6; }
16985 if ${ac_cv_sizeof_void_p+:} false
; then :
16986 $as_echo_n "(cached) " >&6
16988 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
16991 if test "$ac_cv_type_void_p" = yes; then
16992 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16994 as_fn_error
77 "cannot compute sizeof (void *)
16995 See \`config.log' for more details" "$LINENO" 5; }
16997 ac_cv_sizeof_void_p
=0
17002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
17003 $as_echo "$ac_cv_sizeof_void_p" >&6; }
17007 cat >>confdefs.h
<<_ACEOF
17008 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
17012 # The cast to long int works around a bug in the HP C Compiler
17013 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17014 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17015 # This bug is HP SR number 8606223364.
17016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
17017 $as_echo_n "checking size of size_t... " >&6; }
17018 if ${ac_cv_sizeof_size_t+:} false
; then :
17019 $as_echo_n "(cached) " >&6
17021 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
17024 if test "$ac_cv_type_size_t" = yes; then
17025 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17026 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17027 as_fn_error
77 "cannot compute sizeof (size_t)
17028 See \`config.log' for more details" "$LINENO" 5; }
17030 ac_cv_sizeof_size_t
=0
17035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
17036 $as_echo "$ac_cv_sizeof_size_t" >&6; }
17040 cat >>confdefs.h
<<_ACEOF
17041 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
17045 # The cast to long int works around a bug in the HP C Compiler
17046 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17047 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17048 # This bug is HP SR number 8606223364.
17049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
17050 $as_echo_n "checking size of long... " >&6; }
17051 if ${ac_cv_sizeof_long+:} false
; then :
17052 $as_echo_n "(cached) " >&6
17054 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
17057 if test "$ac_cv_type_long" = yes; then
17058 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17059 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17060 as_fn_error
77 "cannot compute sizeof (long)
17061 See \`config.log' for more details" "$LINENO" 5; }
17063 ac_cv_sizeof_long
=0
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
17069 $as_echo "$ac_cv_sizeof_long" >&6; }
17073 cat >>confdefs.h
<<_ACEOF
17074 #define SIZEOF_LONG $ac_cv_sizeof_long
17079 # Determine memory alignment requirements for the basic C data types.
17081 # The cast to long int works around a bug in the HP C Compiler,
17082 # see AC_CHECK_SIZEOF for more information.
17083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of short" >&5
17084 $as_echo_n "checking alignment of short... " >&6; }
17085 if ${ac_cv_alignof_short+:} false
; then :
17086 $as_echo_n "(cached) " >&6
17088 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_short" "$ac_includes_default
17090 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17092 typedef struct { char x; short y; } ac__type_alignof_;"; then :
17095 if test "$ac_cv_type_short" = yes; then
17096 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17097 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17098 as_fn_error
77 "cannot compute alignment of short
17099 See \`config.log' for more details" "$LINENO" 5; }
17101 ac_cv_alignof_short
=0
17106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_short" >&5
17107 $as_echo "$ac_cv_alignof_short" >&6; }
17111 cat >>confdefs.h
<<_ACEOF
17112 #define ALIGNOF_SHORT $ac_cv_alignof_short
17116 # The cast to long int works around a bug in the HP C Compiler,
17117 # see AC_CHECK_SIZEOF for more information.
17118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int" >&5
17119 $as_echo_n "checking alignment of int... " >&6; }
17120 if ${ac_cv_alignof_int+:} false
; then :
17121 $as_echo_n "(cached) " >&6
17123 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_int" "$ac_includes_default
17125 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17127 typedef struct { char x; int y; } ac__type_alignof_;"; then :
17130 if test "$ac_cv_type_int" = yes; then
17131 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17133 as_fn_error
77 "cannot compute alignment of int
17134 See \`config.log' for more details" "$LINENO" 5; }
17136 ac_cv_alignof_int
=0
17141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_int" >&5
17142 $as_echo "$ac_cv_alignof_int" >&6; }
17146 cat >>confdefs.h
<<_ACEOF
17147 #define ALIGNOF_INT $ac_cv_alignof_int
17151 # The cast to long int works around a bug in the HP C Compiler,
17152 # see AC_CHECK_SIZEOF for more information.
17153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long" >&5
17154 $as_echo_n "checking alignment of long... " >&6; }
17155 if ${ac_cv_alignof_long+:} false
; then :
17156 $as_echo_n "(cached) " >&6
17158 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long" "$ac_includes_default
17160 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17162 typedef struct { char x; long y; } ac__type_alignof_;"; then :
17165 if test "$ac_cv_type_long" = yes; then
17166 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17168 as_fn_error
77 "cannot compute alignment of long
17169 See \`config.log' for more details" "$LINENO" 5; }
17171 ac_cv_alignof_long
=0
17176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long" >&5
17177 $as_echo "$ac_cv_alignof_long" >&6; }
17181 cat >>confdefs.h
<<_ACEOF
17182 #define ALIGNOF_LONG $ac_cv_alignof_long
17186 if test x
"$HAVE_LONG_LONG_INT_64" = x
"yes" ; then
17187 # The cast to long int works around a bug in the HP C Compiler,
17188 # see AC_CHECK_SIZEOF for more information.
17189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long long int" >&5
17190 $as_echo_n "checking alignment of long long int... " >&6; }
17191 if ${ac_cv_alignof_long_long_int+:} false
; then :
17192 $as_echo_n "(cached) " >&6
17194 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long_long_int" "$ac_includes_default
17196 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17198 typedef struct { char x; long long int y; } ac__type_alignof_;"; then :
17201 if test "$ac_cv_type_long_long_int" = yes; then
17202 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17203 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17204 as_fn_error
77 "cannot compute alignment of long long int
17205 See \`config.log' for more details" "$LINENO" 5; }
17207 ac_cv_alignof_long_long_int
=0
17212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long_long_int" >&5
17213 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
17217 cat >>confdefs.h
<<_ACEOF
17218 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
17223 # The cast to long int works around a bug in the HP C Compiler,
17224 # see AC_CHECK_SIZEOF for more information.
17225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of double" >&5
17226 $as_echo_n "checking alignment of double... " >&6; }
17227 if ${ac_cv_alignof_double+:} false
; then :
17228 $as_echo_n "(cached) " >&6
17230 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_double" "$ac_includes_default
17232 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17234 typedef struct { char x; double y; } ac__type_alignof_;"; then :
17237 if test "$ac_cv_type_double" = yes; then
17238 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17239 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17240 as_fn_error
77 "cannot compute alignment of double
17241 See \`config.log' for more details" "$LINENO" 5; }
17243 ac_cv_alignof_double
=0
17248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_double" >&5
17249 $as_echo "$ac_cv_alignof_double" >&6; }
17253 cat >>confdefs.h
<<_ACEOF
17254 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
17259 # Compute maximum alignment of any basic type.
17260 # We assume long's alignment is at least as strong as char, short, or int;
17261 # but we must check long long (if it is being used for int64) and double.
17262 # Note that we intentionally do not consider any types wider than 64 bits,
17263 # as allowing MAXIMUM_ALIGNOF to exceed 8 would be too much of a penalty
17264 # for disk and memory space.
17266 MAX_ALIGNOF
=$ac_cv_alignof_long
17267 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
17268 MAX_ALIGNOF
=$ac_cv_alignof_double
17270 if test x
"$HAVE_LONG_LONG_INT_64" = xyes
&& test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
17271 MAX_ALIGNOF
="$ac_cv_alignof_long_long_int"
17274 cat >>confdefs.h
<<_ACEOF
17275 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
17280 # Some platforms predefine the types int8, int16, etc. Only check
17281 # a (hopefully) representative subset.
17282 ac_fn_c_check_type
"$LINENO" "int8" "ac_cv_type_int8" "#include <stdio.h>
17284 if test "x$ac_cv_type_int8" = xyes
; then :
17286 cat >>confdefs.h
<<_ACEOF
17287 #define HAVE_INT8 1
17292 ac_fn_c_check_type
"$LINENO" "uint8" "ac_cv_type_uint8" "#include <stdio.h>
17294 if test "x$ac_cv_type_uint8" = xyes
; then :
17296 cat >>confdefs.h
<<_ACEOF
17297 #define HAVE_UINT8 1
17302 ac_fn_c_check_type
"$LINENO" "int64" "ac_cv_type_int64" "#include <stdio.h>
17304 if test "x$ac_cv_type_int64" = xyes
; then :
17306 cat >>confdefs.h
<<_ACEOF
17307 #define HAVE_INT64 1
17312 ac_fn_c_check_type
"$LINENO" "uint64" "ac_cv_type_uint64" "#include <stdio.h>
17314 if test "x$ac_cv_type_uint64" = xyes
; then :
17316 cat >>confdefs.h
<<_ACEOF
17317 #define HAVE_UINT64 1
17324 # Some compilers offer a 128-bit integer scalar type.
17325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __int128" >&5
17326 $as_echo_n "checking for __int128... " >&6; }
17327 if ${pgac_cv__128bit_int+:} false
; then :
17328 $as_echo_n "(cached) " >&6
17330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17331 /* end confdefs.h. */
17334 * We don't actually run this test, just link it to verify that any support
17335 * functions needed for __int128 are present.
17337 * These are globals to discourage the compiler from folding all the
17338 * arithmetic tests down to compile-time constants. We do not have
17339 * convenient support for 128bit literals at this point...
17341 __int128 a = 48828125;
17342 __int128 b = 97656250;
17349 a = (a << 12) + 1; /* 200000000001 */
17350 b = (b << 12) + 5; /* 400000000005 */
17351 /* try the most relevant arithmetic ops */
17354 /* must use the results, else compiler may optimize arithmetic away */
17362 if ac_fn_c_try_link
"$LINENO"; then :
17363 pgac_cv__128bit_int
=yes
17365 pgac_cv__128bit_int
=no
17367 rm -f core conftest.err conftest.
$ac_objext \
17368 conftest
$ac_exeext conftest.
$ac_ext
17370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__128bit_int" >&5
17371 $as_echo "$pgac_cv__128bit_int" >&6; }
17372 if test x
"$pgac_cv__128bit_int" = xyes
; then
17373 # Use of non-default alignment with __int128 tickles bugs in some compilers.
17374 # If not cross-compiling, we can test for bugs and disable use of __int128
17375 # with buggy compilers. If cross-compiling, hope for the best.
17376 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83925
17377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __int128 alignment bug" >&5
17378 $as_echo_n "checking for __int128 alignment bug... " >&6; }
17379 if ${pgac_cv__128bit_int_bug+:} false
; then :
17380 $as_echo_n "(cached) " >&6
17382 if test "$cross_compiling" = yes; then :
17383 pgac_cv__128bit_int_bug
="assuming ok"
17385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17386 /* end confdefs.h. */
17388 /* This must match the corresponding code in c.h: */
17389 #if defined(__GNUC__) || defined(__SUNPRO_C) || defined(__IBMC__)
17390 #define pg_attribute_aligned(a) __attribute__((aligned(a)))
17391 #elif defined(_MSC_VER)
17392 #define pg_attribute_aligned(a) __declspec(align(a))
17394 typedef __int128 int128a
17395 #if defined(pg_attribute_aligned)
17396 pg_attribute_aligned(8)
17400 void pass_by_val(void *buffer, int128a par) { holder = par; }
17406 long int i64 = 97656225L << 12;
17408 pass_by_val(main, (int128a) i64);
17417 if ac_fn_c_try_run
"$LINENO"; then :
17418 pgac_cv__128bit_int_bug
=ok
17420 pgac_cv__128bit_int_bug
=broken
17422 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17423 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__128bit_int_bug" >&5
17428 $as_echo "$pgac_cv__128bit_int_bug" >&6; }
17429 if test x
"$pgac_cv__128bit_int_bug" != xbroken
; then
17431 $as_echo "#define PG_INT128_TYPE __int128" >>confdefs.h
17433 # The cast to long int works around a bug in the HP C Compiler,
17434 # see AC_CHECK_SIZEOF for more information.
17435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of PG_INT128_TYPE" >&5
17436 $as_echo_n "checking alignment of PG_INT128_TYPE... " >&6; }
17437 if ${ac_cv_alignof_PG_INT128_TYPE+:} false
; then :
17438 $as_echo_n "(cached) " >&6
17440 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_PG_INT128_TYPE" "$ac_includes_default
17442 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17444 typedef struct { char x; PG_INT128_TYPE y; } ac__type_alignof_;"; then :
17447 if test "$ac_cv_type_PG_INT128_TYPE" = yes; then
17448 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17450 as_fn_error
77 "cannot compute alignment of PG_INT128_TYPE
17451 See \`config.log' for more details" "$LINENO" 5; }
17453 ac_cv_alignof_PG_INT128_TYPE
=0
17458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_PG_INT128_TYPE" >&5
17459 $as_echo "$ac_cv_alignof_PG_INT128_TYPE" >&6; }
17463 cat >>confdefs.h
<<_ACEOF
17464 #define ALIGNOF_PG_INT128_TYPE $ac_cv_alignof_PG_INT128_TYPE
17471 # Check for various atomic operations now that we have checked how to declare
17473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync char locking functions" >&5
17474 $as_echo_n "checking for builtin __sync char locking functions... " >&6; }
17475 if ${pgac_cv_gcc_sync_char_tas+:} false
; then :
17476 $as_echo_n "(cached) " >&6
17478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17479 /* end confdefs.h. */
17485 __sync_lock_test_and_set(&lock, 1);
17486 __sync_lock_release(&lock);
17491 if ac_fn_c_try_link
"$LINENO"; then :
17492 pgac_cv_gcc_sync_char_tas
="yes"
17494 pgac_cv_gcc_sync_char_tas
="no"
17496 rm -f core conftest.err conftest.
$ac_objext \
17497 conftest
$ac_exeext conftest.
$ac_ext
17499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_char_tas" >&5
17500 $as_echo "$pgac_cv_gcc_sync_char_tas" >&6; }
17501 if test x
"$pgac_cv_gcc_sync_char_tas" = x
"yes"; then
17503 $as_echo "#define HAVE_GCC__SYNC_CHAR_TAS 1" >>confdefs.h
17506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int32 locking functions" >&5
17507 $as_echo_n "checking for builtin __sync int32 locking functions... " >&6; }
17508 if ${pgac_cv_gcc_sync_int32_tas+:} false
; then :
17509 $as_echo_n "(cached) " >&6
17511 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17512 /* end confdefs.h. */
17518 __sync_lock_test_and_set(&lock, 1);
17519 __sync_lock_release(&lock);
17524 if ac_fn_c_try_link
"$LINENO"; then :
17525 pgac_cv_gcc_sync_int32_tas
="yes"
17527 pgac_cv_gcc_sync_int32_tas
="no"
17529 rm -f core conftest.err conftest.
$ac_objext \
17530 conftest
$ac_exeext conftest.
$ac_ext
17532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int32_tas" >&5
17533 $as_echo "$pgac_cv_gcc_sync_int32_tas" >&6; }
17534 if test x
"$pgac_cv_gcc_sync_int32_tas" = x
"yes"; then
17536 $as_echo "#define HAVE_GCC__SYNC_INT32_TAS 1" >>confdefs.h
17539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int32 atomic operations" >&5
17540 $as_echo_n "checking for builtin __sync int32 atomic operations... " >&6; }
17541 if ${pgac_cv_gcc_sync_int32_cas+:} false
; then :
17542 $as_echo_n "(cached) " >&6
17544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17545 /* end confdefs.h. */
17551 __sync_val_compare_and_swap(&val, 0, 37);
17556 if ac_fn_c_try_link
"$LINENO"; then :
17557 pgac_cv_gcc_sync_int32_cas
="yes"
17559 pgac_cv_gcc_sync_int32_cas
="no"
17561 rm -f core conftest.err conftest.
$ac_objext \
17562 conftest
$ac_exeext conftest.
$ac_ext
17564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int32_cas" >&5
17565 $as_echo "$pgac_cv_gcc_sync_int32_cas" >&6; }
17566 if test x
"$pgac_cv_gcc_sync_int32_cas" = x
"yes"; then
17568 $as_echo "#define HAVE_GCC__SYNC_INT32_CAS 1" >>confdefs.h
17571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int64 atomic operations" >&5
17572 $as_echo_n "checking for builtin __sync int64 atomic operations... " >&6; }
17573 if ${pgac_cv_gcc_sync_int64_cas+:} false
; then :
17574 $as_echo_n "(cached) " >&6
17576 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17577 /* end confdefs.h. */
17582 PG_INT64_TYPE lock = 0;
17583 __sync_val_compare_and_swap(&lock, 0, (PG_INT64_TYPE) 37);
17588 if ac_fn_c_try_link
"$LINENO"; then :
17589 pgac_cv_gcc_sync_int64_cas
="yes"
17591 pgac_cv_gcc_sync_int64_cas
="no"
17593 rm -f core conftest.err conftest.
$ac_objext \
17594 conftest
$ac_exeext conftest.
$ac_ext
17596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int64_cas" >&5
17597 $as_echo "$pgac_cv_gcc_sync_int64_cas" >&6; }
17598 if test x
"$pgac_cv_gcc_sync_int64_cas" = x
"yes"; then
17600 $as_echo "#define HAVE_GCC__SYNC_INT64_CAS 1" >>confdefs.h
17603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __atomic int32 atomic operations" >&5
17604 $as_echo_n "checking for builtin __atomic int32 atomic operations... " >&6; }
17605 if ${pgac_cv_gcc_atomic_int32_cas+:} false
; then :
17606 $as_echo_n "(cached) " >&6
17608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17609 /* end confdefs.h. */
17616 __atomic_compare_exchange_n(&val, &expect, 37, 0, __ATOMIC_SEQ_CST, __ATOMIC_RELAXED);
17621 if ac_fn_c_try_link
"$LINENO"; then :
17622 pgac_cv_gcc_atomic_int32_cas
="yes"
17624 pgac_cv_gcc_atomic_int32_cas
="no"
17626 rm -f core conftest.err conftest.
$ac_objext \
17627 conftest
$ac_exeext conftest.
$ac_ext
17629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_atomic_int32_cas" >&5
17630 $as_echo "$pgac_cv_gcc_atomic_int32_cas" >&6; }
17631 if test x
"$pgac_cv_gcc_atomic_int32_cas" = x
"yes"; then
17633 $as_echo "#define HAVE_GCC__ATOMIC_INT32_CAS 1" >>confdefs.h
17636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __atomic int64 atomic operations" >&5
17637 $as_echo_n "checking for builtin __atomic int64 atomic operations... " >&6; }
17638 if ${pgac_cv_gcc_atomic_int64_cas+:} false
; then :
17639 $as_echo_n "(cached) " >&6
17641 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17642 /* end confdefs.h. */
17647 PG_INT64_TYPE val = 0;
17648 PG_INT64_TYPE expect = 0;
17649 __atomic_compare_exchange_n(&val, &expect, 37, 0, __ATOMIC_SEQ_CST, __ATOMIC_RELAXED);
17654 if ac_fn_c_try_link
"$LINENO"; then :
17655 pgac_cv_gcc_atomic_int64_cas
="yes"
17657 pgac_cv_gcc_atomic_int64_cas
="no"
17659 rm -f core conftest.err conftest.
$ac_objext \
17660 conftest
$ac_exeext conftest.
$ac_ext
17662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_atomic_int64_cas" >&5
17663 $as_echo "$pgac_cv_gcc_atomic_int64_cas" >&6; }
17664 if test x
"$pgac_cv_gcc_atomic_int64_cas" = x
"yes"; then
17666 $as_echo "#define HAVE_GCC__ATOMIC_INT64_CAS 1" >>confdefs.h
17671 # Check for x86 cpuid instruction
17672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __get_cpuid" >&5
17673 $as_echo_n "checking for __get_cpuid... " >&6; }
17674 if ${pgac_cv__get_cpuid+:} false
; then :
17675 $as_echo_n "(cached) " >&6
17677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17678 /* end confdefs.h. */
17683 unsigned int exx[4] = {0, 0, 0, 0};
17684 __get_cpuid(1, &exx[0], &exx[1], &exx[2], &exx[3]);
17690 if ac_fn_c_try_link
"$LINENO"; then :
17691 pgac_cv__get_cpuid
="yes"
17693 pgac_cv__get_cpuid
="no"
17695 rm -f core conftest.err conftest.
$ac_objext \
17696 conftest
$ac_exeext conftest.
$ac_ext
17698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__get_cpuid" >&5
17699 $as_echo "$pgac_cv__get_cpuid" >&6; }
17700 if test x
"$pgac_cv__get_cpuid" = x
"yes"; then
17702 $as_echo "#define HAVE__GET_CPUID 1" >>confdefs.h
17706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __cpuid" >&5
17707 $as_echo_n "checking for __cpuid... " >&6; }
17708 if ${pgac_cv__cpuid+:} false
; then :
17709 $as_echo_n "(cached) " >&6
17711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17712 /* end confdefs.h. */
17713 #include <intrin.h>
17717 unsigned int exx[4] = {0, 0, 0, 0};
17718 __get_cpuid(exx[0], 1);
17724 if ac_fn_c_try_link
"$LINENO"; then :
17725 pgac_cv__cpuid
="yes"
17727 pgac_cv__cpuid
="no"
17729 rm -f core conftest.err conftest.
$ac_objext \
17730 conftest
$ac_exeext conftest.
$ac_ext
17732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__cpuid" >&5
17733 $as_echo "$pgac_cv__cpuid" >&6; }
17734 if test x
"$pgac_cv__cpuid" = x
"yes"; then
17736 $as_echo "#define HAVE__CPUID 1" >>confdefs.h
17740 # Check for Intel SSE 4.2 intrinsics to do CRC calculations.
17742 # First check if the _mm_crc32_u8 and _mm_crc32_u64 intrinsics can be used
17743 # with the default compiler flags. If not, check if adding the -msse4.2
17744 # flag helps. CFLAGS_CRC is set to -msse4.2 if that's required.
17745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=" >&5
17746 $as_echo_n "checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=... " >&6; }
17747 if ${pgac_cv_sse42_crc32_intrinsics_+:} false
; then :
17748 $as_echo_n "(cached) " >&6
17750 pgac_save_CFLAGS
=$CFLAGS
17751 CFLAGS
="$pgac_save_CFLAGS "
17752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17753 /* end confdefs.h. */
17754 #include <nmmintrin.h>
17758 unsigned int crc = 0;
17759 crc = _mm_crc32_u8(crc, 0);
17760 crc = _mm_crc32_u32(crc, 0);
17761 /* return computed value, to prevent the above being optimized away */
17767 if ac_fn_c_try_link
"$LINENO"; then :
17768 pgac_cv_sse42_crc32_intrinsics_
=yes
17770 pgac_cv_sse42_crc32_intrinsics_
=no
17772 rm -f core conftest.err conftest.
$ac_objext \
17773 conftest
$ac_exeext conftest.
$ac_ext
17774 CFLAGS
="$pgac_save_CFLAGS"
17776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_sse42_crc32_intrinsics_" >&5
17777 $as_echo "$pgac_cv_sse42_crc32_intrinsics_" >&6; }
17778 if test x
"$pgac_cv_sse42_crc32_intrinsics_" = x
"yes"; then
17780 pgac_sse42_crc32_intrinsics
=yes
17783 if test x
"$pgac_sse42_crc32_intrinsics" != x
"yes"; then
17784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=-msse4.2" >&5
17785 $as_echo_n "checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=-msse4.2... " >&6; }
17786 if ${pgac_cv_sse42_crc32_intrinsics__msse4_2+:} false
; then :
17787 $as_echo_n "(cached) " >&6
17789 pgac_save_CFLAGS
=$CFLAGS
17790 CFLAGS
="$pgac_save_CFLAGS -msse4.2"
17791 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17792 /* end confdefs.h. */
17793 #include <nmmintrin.h>
17797 unsigned int crc = 0;
17798 crc = _mm_crc32_u8(crc, 0);
17799 crc = _mm_crc32_u32(crc, 0);
17800 /* return computed value, to prevent the above being optimized away */
17806 if ac_fn_c_try_link
"$LINENO"; then :
17807 pgac_cv_sse42_crc32_intrinsics__msse4_2
=yes
17809 pgac_cv_sse42_crc32_intrinsics__msse4_2
=no
17811 rm -f core conftest.err conftest.
$ac_objext \
17812 conftest
$ac_exeext conftest.
$ac_ext
17813 CFLAGS
="$pgac_save_CFLAGS"
17815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_sse42_crc32_intrinsics__msse4_2" >&5
17816 $as_echo "$pgac_cv_sse42_crc32_intrinsics__msse4_2" >&6; }
17817 if test x
"$pgac_cv_sse42_crc32_intrinsics__msse4_2" = x
"yes"; then
17818 CFLAGS_CRC
="-msse4.2"
17819 pgac_sse42_crc32_intrinsics
=yes
17824 # Are we targeting a processor that supports SSE 4.2? gcc, clang and icc all
17825 # define __SSE4_2__ in that case.
17826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17827 /* end confdefs.h. */
17834 #error __SSE4_2__ not defined
17841 if ac_fn_c_try_compile
"$LINENO"; then :
17844 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17846 # Check for ARMv8 CRC Extension intrinsics to do CRC calculations.
17848 # First check if __crc32c* intrinsics can be used with the default compiler
17849 # flags. If not, check if adding -march=armv8-a+crc flag helps.
17850 # CFLAGS_CRC is set if the extra flag is required.
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=" >&5
17852 $as_echo_n "checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=... " >&6; }
17853 if ${pgac_cv_armv8_crc32c_intrinsics_+:} false
; then :
17854 $as_echo_n "(cached) " >&6
17856 pgac_save_CFLAGS
=$CFLAGS
17857 CFLAGS
="$pgac_save_CFLAGS "
17858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17859 /* end confdefs.h. */
17860 #include <arm_acle.h>
17864 unsigned int crc = 0;
17865 crc = __crc32cb(crc, 0);
17866 crc = __crc32ch(crc, 0);
17867 crc = __crc32cw(crc, 0);
17868 crc = __crc32cd(crc, 0);
17869 /* return computed value, to prevent the above being optimized away */
17875 if ac_fn_c_try_link
"$LINENO"; then :
17876 pgac_cv_armv8_crc32c_intrinsics_
=yes
17878 pgac_cv_armv8_crc32c_intrinsics_
=no
17880 rm -f core conftest.err conftest.
$ac_objext \
17881 conftest
$ac_exeext conftest.
$ac_ext
17882 CFLAGS
="$pgac_save_CFLAGS"
17884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_armv8_crc32c_intrinsics_" >&5
17885 $as_echo "$pgac_cv_armv8_crc32c_intrinsics_" >&6; }
17886 if test x
"$pgac_cv_armv8_crc32c_intrinsics_" = x
"yes"; then
17888 pgac_armv8_crc32c_intrinsics
=yes
17891 if test x
"$pgac_armv8_crc32c_intrinsics" != x
"yes"; then
17892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=-march=armv8-a+crc" >&5
17893 $as_echo_n "checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=-march=armv8-a+crc... " >&6; }
17894 if ${pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc+:} false
; then :
17895 $as_echo_n "(cached) " >&6
17897 pgac_save_CFLAGS
=$CFLAGS
17898 CFLAGS
="$pgac_save_CFLAGS -march=armv8-a+crc"
17899 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17900 /* end confdefs.h. */
17901 #include <arm_acle.h>
17905 unsigned int crc = 0;
17906 crc = __crc32cb(crc, 0);
17907 crc = __crc32ch(crc, 0);
17908 crc = __crc32cw(crc, 0);
17909 crc = __crc32cd(crc, 0);
17910 /* return computed value, to prevent the above being optimized away */
17916 if ac_fn_c_try_link
"$LINENO"; then :
17917 pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc
=yes
17919 pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc
=no
17921 rm -f core conftest.err conftest.
$ac_objext \
17922 conftest
$ac_exeext conftest.
$ac_ext
17923 CFLAGS
="$pgac_save_CFLAGS"
17925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc" >&5
17926 $as_echo "$pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc" >&6; }
17927 if test x
"$pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc" = x
"yes"; then
17928 CFLAGS_CRC
="-march=armv8-a+crc"
17929 pgac_armv8_crc32c_intrinsics
=yes
17934 # Check for LoongArch CRC intrinsics to do CRC calculations.
17936 # Check if __builtin_loongarch_crcc_* intrinsics can be used
17937 # with the default compiler flags.
17938 { $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
17939 $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; }
17940 if ${pgac_cv_loongarch_crc32c_intrinsics+:} false
; then :
17941 $as_echo_n "(cached) " >&6
17943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17944 /* end confdefs.h. */
17949 unsigned int crc = 0;
17950 crc = __builtin_loongarch_crcc_w_b_w(0, crc);
17951 crc = __builtin_loongarch_crcc_w_h_w(0, crc);
17952 crc = __builtin_loongarch_crcc_w_w_w(0, crc);
17953 crc = __builtin_loongarch_crcc_w_d_w(0, crc);
17954 /* return computed value, to prevent the above being optimized away */
17960 if ac_fn_c_try_link
"$LINENO"; then :
17961 pgac_cv_loongarch_crc32c_intrinsics
=yes
17963 pgac_cv_loongarch_crc32c_intrinsics
=no
17965 rm -f core conftest.err conftest.
$ac_objext \
17966 conftest
$ac_exeext conftest.
$ac_ext
17968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_loongarch_crc32c_intrinsics" >&5
17969 $as_echo "$pgac_cv_loongarch_crc32c_intrinsics" >&6; }
17970 if test x
"$pgac_cv_loongarch_crc32c_intrinsics" = x
"yes"; then
17971 pgac_loongarch_crc32c_intrinsics
=yes
17977 # Select CRC-32C implementation.
17979 # If we are targeting a processor that has Intel SSE 4.2 instructions, we can
17980 # use the special CRC instructions for calculating CRC-32C. If we're not
17981 # targeting such a processor, but we can nevertheless produce code that uses
17982 # the SSE intrinsics, perhaps with some extra CFLAGS, compile both
17983 # implementations and select which one to use at runtime, depending on whether
17984 # SSE 4.2 is supported by the processor we're running on.
17986 # Similarly, if we are targeting an ARM processor that has the CRC
17987 # instructions that are part of the ARMv8 CRC Extension, use them. And if
17988 # we're not targeting such a processor, but can nevertheless produce code that
17989 # uses the CRC instructions, compile both, and select at runtime.
17991 # You can skip the runtime check by setting the appropriate USE_*_CRC32 flag to 1
17992 # in the template or configure command line.
17994 # If we are targeting a LoongArch processor, CRC instructions are
17995 # always available (at least on 64 bit), so no runtime check is needed.
17996 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
17997 # Use Intel SSE 4.2 if available.
17998 if test x
"$pgac_sse42_crc32_intrinsics" = x
"yes" && test x
"$SSE4_2_TARGETED" = x
"1" ; then
18001 # Intel SSE 4.2, with runtime check? The CPUID instruction is needed for
18002 # the runtime check.
18003 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
18004 USE_SSE42_CRC32C_WITH_RUNTIME_CHECK
=1
18006 # Use ARM CRC Extension if available.
18007 if test x
"$pgac_armv8_crc32c_intrinsics" = x
"yes" && test x
"$CFLAGS_CRC" = x
""; then
18010 # ARM CRC Extension, with runtime check?
18011 if test x
"$pgac_armv8_crc32c_intrinsics" = x
"yes"; then
18012 USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK
=1
18014 # LoongArch CRCC instructions.
18015 if test x
"$pgac_loongarch_crc32c_intrinsics" = x
"yes"; then
18016 USE_LOONGARCH_CRC32C
=1
18018 # fall back to slicing-by-8 algorithm, which doesn't require any
18019 # special CPU support.
18020 USE_SLICING_BY_8_CRC32C
=1
18028 # Set PG_CRC32C_OBJS appropriately depending on the selected implementation.
18029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which CRC-32C implementation to use" >&5
18030 $as_echo_n "checking which CRC-32C implementation to use... " >&6; }
18031 if test x
"$USE_SSE42_CRC32C" = x
"1"; then
18033 $as_echo "#define USE_SSE42_CRC32C 1" >>confdefs.h
18035 PG_CRC32C_OBJS
="pg_crc32c_sse42.o"
18036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SSE 4.2" >&5
18037 $as_echo "SSE 4.2" >&6; }
18039 if test x
"$USE_SSE42_CRC32C_WITH_RUNTIME_CHECK" = x
"1"; then
18041 $as_echo "#define USE_SSE42_CRC32C_WITH_RUNTIME_CHECK 1" >>confdefs.h
18043 PG_CRC32C_OBJS
="pg_crc32c_sse42.o pg_crc32c_sb8.o pg_crc32c_sse42_choose.o"
18044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SSE 4.2 with runtime check" >&5
18045 $as_echo "SSE 4.2 with runtime check" >&6; }
18047 if test x
"$USE_ARMV8_CRC32C" = x
"1"; then
18049 $as_echo "#define USE_ARMV8_CRC32C 1" >>confdefs.h
18051 PG_CRC32C_OBJS
="pg_crc32c_armv8.o"
18052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ARMv8 CRC instructions" >&5
18053 $as_echo "ARMv8 CRC instructions" >&6; }
18055 if test x
"$USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK" = x
"1"; then
18057 $as_echo "#define USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK 1" >>confdefs.h
18059 PG_CRC32C_OBJS
="pg_crc32c_armv8.o pg_crc32c_sb8.o pg_crc32c_armv8_choose.o"
18060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ARMv8 CRC instructions with runtime check" >&5
18061 $as_echo "ARMv8 CRC instructions with runtime check" >&6; }
18063 if test x
"$USE_LOONGARCH_CRC32C" = x
"1"; then
18065 $as_echo "#define USE_LOONGARCH_CRC32C 1" >>confdefs.h
18067 PG_CRC32C_OBJS
="pg_crc32c_loongarch.o"
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LoongArch CRCC instructions" >&5
18069 $as_echo "LoongArch CRCC instructions" >&6; }
18072 $as_echo "#define USE_SLICING_BY_8_CRC32C 1" >>confdefs.h
18074 PG_CRC32C_OBJS
="pg_crc32c_sb8.o"
18075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: slicing-by-8" >&5
18076 $as_echo "slicing-by-8" >&6; }
18085 # Select semaphore implementation type.
18086 if test "$PORTNAME" != "win32"; then
18087 if test x
"$PREFERRED_SEMAPHORES" = x
"NAMED_POSIX" ; then
18088 # Need sem_open for this
18089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_open" >&5
18090 $as_echo_n "checking for library containing sem_open... " >&6; }
18091 if ${ac_cv_search_sem_open+:} false
; then :
18092 $as_echo_n "(cached) " >&6
18094 ac_func_search_save_LIBS
=$LIBS
18095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18096 /* end confdefs.h. */
18098 /* Override any GCC internal prototype to avoid an error.
18099 Use char because int might match the return type of a GCC
18100 builtin and then its argument prototype would still apply. */
18108 return sem_open ();
18113 for ac_lib
in '' rt pthread
; do
18114 if test -z "$ac_lib"; then
18115 ac_res
="none required"
18118 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
18120 if ac_fn_c_try_link
"$LINENO"; then :
18121 ac_cv_search_sem_open
=$ac_res
18123 rm -f core conftest.err conftest.
$ac_objext \
18125 if ${ac_cv_search_sem_open+:} false
; then :
18129 if ${ac_cv_search_sem_open+:} false
; then :
18132 ac_cv_search_sem_open
=no
18134 rm conftest.
$ac_ext
18135 LIBS
=$ac_func_search_save_LIBS
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_open" >&5
18138 $as_echo "$ac_cv_search_sem_open" >&6; }
18139 ac_res
=$ac_cv_search_sem_open
18140 if test "$ac_res" != no
; then :
18141 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
18142 USE_NAMED_POSIX_SEMAPHORES
=1
18146 if test x
"$PREFERRED_SEMAPHORES" = x
"UNNAMED_POSIX" ; then
18147 # Need sem_init for this
18148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
18149 $as_echo_n "checking for library containing sem_init... " >&6; }
18150 if ${ac_cv_search_sem_init+:} false
; then :
18151 $as_echo_n "(cached) " >&6
18153 ac_func_search_save_LIBS
=$LIBS
18154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18155 /* end confdefs.h. */
18157 /* Override any GCC internal prototype to avoid an error.
18158 Use char because int might match the return type of a GCC
18159 builtin and then its argument prototype would still apply. */
18167 return sem_init ();
18172 for ac_lib
in '' rt pthread
; do
18173 if test -z "$ac_lib"; then
18174 ac_res
="none required"
18177 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
18179 if ac_fn_c_try_link
"$LINENO"; then :
18180 ac_cv_search_sem_init
=$ac_res
18182 rm -f core conftest.err conftest.
$ac_objext \
18184 if ${ac_cv_search_sem_init+:} false
; then :
18188 if ${ac_cv_search_sem_init+:} false
; then :
18191 ac_cv_search_sem_init
=no
18193 rm conftest.
$ac_ext
18194 LIBS
=$ac_func_search_save_LIBS
18196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
18197 $as_echo "$ac_cv_search_sem_init" >&6; }
18198 ac_res
=$ac_cv_search_sem_init
18199 if test "$ac_res" != no
; then :
18200 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
18201 USE_UNNAMED_POSIX_SEMAPHORES
=1
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which semaphore API to use" >&5
18206 $as_echo_n "checking which semaphore API to use... " >&6; }
18207 if test x
"$USE_NAMED_POSIX_SEMAPHORES" = x
"1" ; then
18209 $as_echo "#define USE_NAMED_POSIX_SEMAPHORES 1" >>confdefs.h
18211 SEMA_IMPLEMENTATION
="src/backend/port/posix_sema.c"
18212 sematype
="named POSIX"
18214 if test x
"$USE_UNNAMED_POSIX_SEMAPHORES" = x
"1" ; then
18216 $as_echo "#define USE_UNNAMED_POSIX_SEMAPHORES 1" >>confdefs.h
18218 SEMA_IMPLEMENTATION
="src/backend/port/posix_sema.c"
18219 sematype
="unnamed POSIX"
18222 $as_echo "#define USE_SYSV_SEMAPHORES 1" >>confdefs.h
18224 SEMA_IMPLEMENTATION
="src/backend/port/sysv_sema.c"
18225 sematype
="System V"
18228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sematype" >&5
18229 $as_echo "$sematype" >&6; }
18232 $as_echo "#define USE_WIN32_SEMAPHORES 1" >>confdefs.h
18234 SEMA_IMPLEMENTATION
="src/backend/port/win32_sema.c"
18238 # Select shared-memory implementation type.
18239 if test "$PORTNAME" != "win32"; then
18241 $as_echo "#define USE_SYSV_SHARED_MEMORY 1" >>confdefs.h
18243 SHMEM_IMPLEMENTATION
="src/backend/port/sysv_shmem.c"
18246 $as_echo "#define USE_WIN32_SHARED_MEMORY 1" >>confdefs.h
18248 SHMEM_IMPLEMENTATION
="src/backend/port/win32_shmem.c"
18251 # Select random number source. If a TLS library is used then it will be the
18252 # first choice, else the native platform sources (Windows API or /dev/urandom)
18254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which random number source to use" >&5
18255 $as_echo_n "checking which random number source to use... " >&6; }
18256 if test x
"$with_ssl" = x
"openssl" ; then
18257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenSSL" >&5
18258 $as_echo "OpenSSL" >&6; }
18259 elif test x
"$PORTNAME" = x
"win32" ; then
18260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows native" >&5
18261 $as_echo "Windows native" >&6; }
18262 elif test x
"$cross_compiling" = x
"yes"; then
18263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming /dev/urandom" >&5
18264 $as_echo "assuming /dev/urandom" >&6; }
18266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /dev/urandom" >&5
18267 $as_echo "/dev/urandom" >&6; }
18268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/urandom" >&5
18269 $as_echo_n "checking for /dev/urandom... " >&6; }
18270 if ${ac_cv_file__dev_urandom+:} false
; then :
18271 $as_echo_n "(cached) " >&6
18273 test "$cross_compiling" = yes &&
18274 as_fn_error $?
"cannot check for file existence when cross compiling" "$LINENO" 5
18275 if test -r "/dev/urandom"; then
18276 ac_cv_file__dev_urandom
=yes
18278 ac_cv_file__dev_urandom
=no
18281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_urandom" >&5
18282 $as_echo "$ac_cv_file__dev_urandom" >&6; }
18283 if test "x$ac_cv_file__dev_urandom" = xyes
; then :
18288 if test x
"$ac_cv_file__dev_urandom" = x
"no" ; then
18290 no source of strong random numbers was found
18291 PostgreSQL can use OpenSSL, native Windows API or /dev/urandom as a source of random numbers." "$LINENO" 5
18295 # If not set in template file, set bytes to use libc memset()
18296 if test x
"$MEMSET_LOOP_LIMIT" = x
"" ; then
18297 MEMSET_LOOP_LIMIT
=1024
18300 cat >>confdefs.h
<<_ACEOF
18301 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
18306 if test "$enable_nls" = yes ; then
18308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind_textdomain_codeset" >&5
18309 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
18310 if ${ac_cv_search_bind_textdomain_codeset+:} false
; then :
18311 $as_echo_n "(cached) " >&6
18313 ac_func_search_save_LIBS
=$LIBS
18314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18315 /* end confdefs.h. */
18317 /* Override any GCC internal prototype to avoid an error.
18318 Use char because int might match the return type of a GCC
18319 builtin and then its argument prototype would still apply. */
18323 char bind_textdomain_codeset ();
18327 return bind_textdomain_codeset ();
18332 for ac_lib
in '' intl
; do
18333 if test -z "$ac_lib"; then
18334 ac_res
="none required"
18337 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
18339 if ac_fn_c_try_link
"$LINENO"; then :
18340 ac_cv_search_bind_textdomain_codeset
=$ac_res
18342 rm -f core conftest.err conftest.
$ac_objext \
18344 if ${ac_cv_search_bind_textdomain_codeset+:} false
; then :
18348 if ${ac_cv_search_bind_textdomain_codeset+:} false
; then :
18351 ac_cv_search_bind_textdomain_codeset
=no
18353 rm conftest.
$ac_ext
18354 LIBS
=$ac_func_search_save_LIBS
18356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind_textdomain_codeset" >&5
18357 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
18358 ac_res
=$ac_cv_search_bind_textdomain_codeset
18359 if test "$ac_res" != no
; then :
18360 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
18363 as_fn_error $?
"a gettext implementation is required for NLS" "$LINENO" 5
18366 ac_fn_c_check_header_mongrel
"$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
18367 if test "x$ac_cv_header_libintl_h" = xyes
; then :
18370 as_fn_error $?
"header file <libintl.h> is required for NLS" "$LINENO" 5
18374 if test -z "$MSGFMT"; then
18375 for ac_prog
in msgfmt
18377 # Extract the first word of "$ac_prog", so it can be a program name with args.
18378 set dummy
$ac_prog; ac_word
=$2
18379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18380 $as_echo_n "checking for $ac_word... " >&6; }
18381 if ${ac_cv_path_MSGFMT+:} false
; then :
18382 $as_echo_n "(cached) " >&6
18386 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
18389 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18390 for as_dir
in $PATH
18393 test -z "$as_dir" && as_dir
=.
18394 for ac_exec_ext
in '' $ac_executable_extensions; do
18395 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18396 ac_cv_path_MSGFMT
="$as_dir/$ac_word$ac_exec_ext"
18397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18407 MSGFMT
=$ac_cv_path_MSGFMT
18408 if test -n "$MSGFMT"; then
18409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18410 $as_echo "$MSGFMT" >&6; }
18412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18413 $as_echo "no" >&6; }
18417 test -n "$MSGFMT" && break
18421 # Report the value of MSGFMT in configure's output in all cases.
18422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSGFMT" >&5
18423 $as_echo_n "checking for MSGFMT... " >&6; }
18424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18425 $as_echo "$MSGFMT" >&6; }
18428 if test -z "$MSGFMT"; then
18429 as_fn_error $?
"msgfmt is required for NLS" "$LINENO" 5
18431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msgfmt flags" >&5
18432 $as_echo_n "checking for msgfmt flags... " >&6; }
18433 if ${pgac_cv_msgfmt_flags+:} false
; then :
18434 $as_echo_n "(cached) " >&6
18436 if test x
"$MSGFMT" != x
"" && "$MSGFMT" --version 2>&1 |
grep "GNU" >/dev
/null
; then
18437 pgac_cv_msgfmt_flags
=-c
18440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_msgfmt_flags" >&5
18441 $as_echo "$pgac_cv_msgfmt_flags" >&6; }
18442 MSGFMT_FLAGS
=$pgac_cv_msgfmt_flags
18444 if test -z "$MSGMERGE"; then
18445 for ac_prog
in msgmerge
18447 # Extract the first word of "$ac_prog", so it can be a program name with args.
18448 set dummy
$ac_prog; ac_word
=$2
18449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18450 $as_echo_n "checking for $ac_word... " >&6; }
18451 if ${ac_cv_path_MSGMERGE+:} false
; then :
18452 $as_echo_n "(cached) " >&6
18456 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
18459 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18460 for as_dir
in $PATH
18463 test -z "$as_dir" && as_dir
=.
18464 for ac_exec_ext
in '' $ac_executable_extensions; do
18465 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18466 ac_cv_path_MSGMERGE
="$as_dir/$ac_word$ac_exec_ext"
18467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18477 MSGMERGE
=$ac_cv_path_MSGMERGE
18478 if test -n "$MSGMERGE"; then
18479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
18480 $as_echo "$MSGMERGE" >&6; }
18482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18483 $as_echo "no" >&6; }
18487 test -n "$MSGMERGE" && break
18491 # Report the value of MSGMERGE in configure's output in all cases.
18492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSGMERGE" >&5
18493 $as_echo_n "checking for MSGMERGE... " >&6; }
18494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
18495 $as_echo "$MSGMERGE" >&6; }
18498 if test -z "$XGETTEXT"; then
18499 for ac_prog
in xgettext
18501 # Extract the first word of "$ac_prog", so it can be a program name with args.
18502 set dummy
$ac_prog; ac_word
=$2
18503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18504 $as_echo_n "checking for $ac_word... " >&6; }
18505 if ${ac_cv_path_XGETTEXT+:} false
; then :
18506 $as_echo_n "(cached) " >&6
18510 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
18513 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18514 for as_dir
in $PATH
18517 test -z "$as_dir" && as_dir
=.
18518 for ac_exec_ext
in '' $ac_executable_extensions; do
18519 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18520 ac_cv_path_XGETTEXT
="$as_dir/$ac_word$ac_exec_ext"
18521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18531 XGETTEXT
=$ac_cv_path_XGETTEXT
18532 if test -n "$XGETTEXT"; then
18533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
18534 $as_echo "$XGETTEXT" >&6; }
18536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18537 $as_echo "no" >&6; }
18541 test -n "$XGETTEXT" && break
18545 # Report the value of XGETTEXT in configure's output in all cases.
18546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGETTEXT" >&5
18547 $as_echo_n "checking for XGETTEXT... " >&6; }
18548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
18549 $as_echo "$XGETTEXT" >&6; }
18555 # Check for Tcl configuration script tclConfig.sh
18556 if test "$with_tcl" = yes; then
18557 if test -z "$TCLSH"; then
18558 for ac_prog
in tclsh tcl tclsh8.6 tclsh86 tclsh8.5 tclsh85 tclsh8.4 tclsh84
18560 # Extract the first word of "$ac_prog", so it can be a program name with args.
18561 set dummy
$ac_prog; ac_word
=$2
18562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18563 $as_echo_n "checking for $ac_word... " >&6; }
18564 if ${ac_cv_path_TCLSH+:} false
; then :
18565 $as_echo_n "(cached) " >&6
18569 ac_cv_path_TCLSH
="$TCLSH" # Let the user override the test with a path.
18572 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18573 for as_dir
in $PATH
18576 test -z "$as_dir" && as_dir
=.
18577 for ac_exec_ext
in '' $ac_executable_extensions; do
18578 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18579 ac_cv_path_TCLSH
="$as_dir/$ac_word$ac_exec_ext"
18580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18590 TCLSH
=$ac_cv_path_TCLSH
18591 if test -n "$TCLSH"; then
18592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
18593 $as_echo "$TCLSH" >&6; }
18595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18596 $as_echo "no" >&6; }
18600 test -n "$TCLSH" && break
18604 # Report the value of TCLSH in configure's output in all cases.
18605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCLSH" >&5
18606 $as_echo_n "checking for TCLSH... " >&6; }
18607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
18608 $as_echo "$TCLSH" >&6; }
18611 if test x
"$TCLSH" = x
""; then
18612 as_fn_error $?
"Tcl shell not found" "$LINENO" 5
18615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclConfig.sh" >&5
18616 $as_echo_n "checking for tclConfig.sh... " >&6; }
18617 # Let user override test
18618 if test -z "$TCL_CONFIG_SH"; then
18619 pgac_test_dirs
="$with_tclconfig"
18621 set X
$pgac_test_dirs; shift
18622 if test $# -eq 0; then
18623 test -z "$TCLSH" && as_fn_error $?
"unable to locate tclConfig.sh because no Tcl shell was found" "$LINENO" 5
18624 pgac_test_dirs
=`echo 'puts $auto_path' | $TCLSH`
18625 # On newer macOS, $auto_path frequently doesn't include the place
18626 # where tclConfig.sh actually lives. Append that to the end, so as not
18627 # to break cases where a non-default Tcl installation is being used.
18628 if test -d "$PG_SYSROOT/System/Library/Frameworks/Tcl.framework" ; then
18629 pgac_test_dirs
="$pgac_test_dirs $PG_SYSROOT/System/Library/Frameworks/Tcl.framework"
18631 set X
$pgac_test_dirs; shift
18635 if test -r "$pgac_dir/tclConfig.sh"; then
18636 TCL_CONFIG_SH
=$pgac_dir/tclConfig.sh
18642 if test -z "$TCL_CONFIG_SH"; then
18643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18644 $as_echo "no" >&6; }
18645 as_fn_error $?
"file 'tclConfig.sh' is required for Tcl" "$LINENO" 5
18647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCL_CONFIG_SH" >&5
18648 $as_echo "$TCL_CONFIG_SH" >&6; }
18654 eval TCL_INCLUDE_SPEC
=\"$TCL_INCLUDE_SPEC\"
18655 eval TCL_LIBS
=\"$TCL_LIBS\"
18656 eval TCL_LIB_SPEC
=\"$TCL_LIB_SPEC\"
18657 eval TCL_SHARED_BUILD
=\"$TCL_SHARED_BUILD\"
18659 if test "$TCL_SHARED_BUILD" != 1; then
18660 as_fn_error $?
"cannot build PL/Tcl because Tcl is not a shared library
18661 Use --without-tcl to disable building PL/Tcl." "$LINENO" 5
18663 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
18664 ac_save_CPPFLAGS
=$CPPFLAGS
18665 CPPFLAGS
="$TCL_INCLUDE_SPEC $CPPFLAGS"
18666 ac_fn_c_check_header_mongrel
"$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
18667 if test "x$ac_cv_header_tcl_h" = xyes
; then :
18670 as_fn_error $?
"header file <tcl.h> is required for Tcl" "$LINENO" 5
18674 CPPFLAGS
=$ac_save_CPPFLAGS
18677 # check for <perl.h>
18678 if test "$with_perl" = yes; then
18679 ac_save_CPPFLAGS
=$CPPFLAGS
18680 CPPFLAGS
="$CPPFLAGS $perl_includespec"
18681 ac_fn_c_check_header_compile
"$LINENO" "perl.h" "ac_cv_header_perl_h" "#include <EXTERN.h>
18683 if test "x$ac_cv_header_perl_h" = xyes
; then :
18686 as_fn_error $?
"header file <perl.h> is required for Perl" "$LINENO" 5
18690 # While we're at it, check that we can link to libperl.
18691 # On most platforms, if perl.h is there then libperl.so will be too, but at
18692 # this writing Debian packages them separately. There is no known reason to
18693 # waste cycles on separate probes for the Tcl or Python libraries, though.
18694 # On some Red Hat platforms, the link attempt can fail if we don't use
18695 # CFLAGS_SL while building the test program.
18696 ac_save_CFLAGS
=$CFLAGS
18697 CFLAGS
="$CFLAGS $CFLAGS_SL"
18698 pgac_save_LIBS
=$LIBS
18699 LIBS
="$perl_embed_ldflags"
18700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libperl" >&5
18701 $as_echo_n "checking for libperl... " >&6; }
18702 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18703 /* end confdefs.h. */
18705 #include <EXTERN.h>
18716 if ac_fn_c_try_link
"$LINENO"; then :
18717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18718 $as_echo "yes" >&6; }
18720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18721 $as_echo "no" >&6; }
18722 as_fn_error $?
"libperl library is required for Perl" "$LINENO" 5
18724 rm -f core conftest.err conftest.
$ac_objext \
18725 conftest
$ac_exeext conftest.
$ac_ext
18726 LIBS
=$pgac_save_LIBS
18727 CFLAGS
=$ac_save_CFLAGS
18728 CPPFLAGS
=$ac_save_CPPFLAGS
18731 # check for <Python.h>
18732 if test "$with_python" = yes; then
18733 ac_save_CPPFLAGS
=$CPPFLAGS
18734 CPPFLAGS
="$python_includespec $CPPFLAGS"
18735 ac_fn_c_check_header_mongrel
"$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
18736 if test "x$ac_cv_header_Python_h" = xyes
; then :
18739 as_fn_error $?
"header file <Python.h> is required for Python" "$LINENO" 5
18743 CPPFLAGS
=$ac_save_CPPFLAGS
18747 # Check for documentation-building tools
18749 if test -z "$XMLLINT"; then
18750 for ac_prog
in xmllint
18752 # Extract the first word of "$ac_prog", so it can be a program name with args.
18753 set dummy
$ac_prog; ac_word
=$2
18754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18755 $as_echo_n "checking for $ac_word... " >&6; }
18756 if ${ac_cv_path_XMLLINT+:} false
; then :
18757 $as_echo_n "(cached) " >&6
18761 ac_cv_path_XMLLINT
="$XMLLINT" # Let the user override the test with a path.
18764 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18765 for as_dir
in $PATH
18768 test -z "$as_dir" && as_dir
=.
18769 for ac_exec_ext
in '' $ac_executable_extensions; do
18770 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18771 ac_cv_path_XMLLINT
="$as_dir/$ac_word$ac_exec_ext"
18772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18782 XMLLINT
=$ac_cv_path_XMLLINT
18783 if test -n "$XMLLINT"; then
18784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
18785 $as_echo "$XMLLINT" >&6; }
18787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18788 $as_echo "no" >&6; }
18792 test -n "$XMLLINT" && break
18796 # Report the value of XMLLINT in configure's output in all cases.
18797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMLLINT" >&5
18798 $as_echo_n "checking for XMLLINT... " >&6; }
18799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
18800 $as_echo "$XMLLINT" >&6; }
18803 if test -z "$XSLTPROC"; then
18804 for ac_prog
in xsltproc
18806 # Extract the first word of "$ac_prog", so it can be a program name with args.
18807 set dummy
$ac_prog; ac_word
=$2
18808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18809 $as_echo_n "checking for $ac_word... " >&6; }
18810 if ${ac_cv_path_XSLTPROC+:} false
; then :
18811 $as_echo_n "(cached) " >&6
18815 ac_cv_path_XSLTPROC
="$XSLTPROC" # Let the user override the test with a path.
18818 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18819 for as_dir
in $PATH
18822 test -z "$as_dir" && as_dir
=.
18823 for ac_exec_ext
in '' $ac_executable_extensions; do
18824 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18825 ac_cv_path_XSLTPROC
="$as_dir/$ac_word$ac_exec_ext"
18826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18836 XSLTPROC
=$ac_cv_path_XSLTPROC
18837 if test -n "$XSLTPROC"; then
18838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
18839 $as_echo "$XSLTPROC" >&6; }
18841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18842 $as_echo "no" >&6; }
18846 test -n "$XSLTPROC" && break
18850 # Report the value of XSLTPROC in configure's output in all cases.
18851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSLTPROC" >&5
18852 $as_echo_n "checking for XSLTPROC... " >&6; }
18853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
18854 $as_echo "$XSLTPROC" >&6; }
18857 if test -z "$FOP"; then
18860 # Extract the first word of "$ac_prog", so it can be a program name with args.
18861 set dummy
$ac_prog; ac_word
=$2
18862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18863 $as_echo_n "checking for $ac_word... " >&6; }
18864 if ${ac_cv_path_FOP+:} false
; then :
18865 $as_echo_n "(cached) " >&6
18869 ac_cv_path_FOP
="$FOP" # Let the user override the test with a path.
18872 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18873 for as_dir
in $PATH
18876 test -z "$as_dir" && as_dir
=.
18877 for ac_exec_ext
in '' $ac_executable_extensions; do
18878 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18879 ac_cv_path_FOP
="$as_dir/$ac_word$ac_exec_ext"
18880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18890 FOP
=$ac_cv_path_FOP
18891 if test -n "$FOP"; then
18892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
18893 $as_echo "$FOP" >&6; }
18895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18896 $as_echo "no" >&6; }
18900 test -n "$FOP" && break
18904 # Report the value of FOP in configure's output in all cases.
18905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FOP" >&5
18906 $as_echo_n "checking for FOP... " >&6; }
18907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
18908 $as_echo "$FOP" >&6; }
18911 if test -z "$DBTOEPUB"; then
18912 for ac_prog
in dbtoepub
18914 # Extract the first word of "$ac_prog", so it can be a program name with args.
18915 set dummy
$ac_prog; ac_word
=$2
18916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18917 $as_echo_n "checking for $ac_word... " >&6; }
18918 if ${ac_cv_path_DBTOEPUB+:} false
; then :
18919 $as_echo_n "(cached) " >&6
18923 ac_cv_path_DBTOEPUB
="$DBTOEPUB" # Let the user override the test with a path.
18926 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18927 for as_dir
in $PATH
18930 test -z "$as_dir" && as_dir
=.
18931 for ac_exec_ext
in '' $ac_executable_extensions; do
18932 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18933 ac_cv_path_DBTOEPUB
="$as_dir/$ac_word$ac_exec_ext"
18934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18944 DBTOEPUB
=$ac_cv_path_DBTOEPUB
18945 if test -n "$DBTOEPUB"; then
18946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBTOEPUB" >&5
18947 $as_echo "$DBTOEPUB" >&6; }
18949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18950 $as_echo "no" >&6; }
18954 test -n "$DBTOEPUB" && break
18958 # Report the value of DBTOEPUB in configure's output in all cases.
18959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBTOEPUB" >&5
18960 $as_echo_n "checking for DBTOEPUB... " >&6; }
18961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBTOEPUB" >&5
18962 $as_echo "$DBTOEPUB" >&6; }
18967 # Check for test tools
18969 if test "$enable_tap_tests" = yes; then
18970 # Make sure we know where prove is.
18971 if test -z "$PROVE"; then
18972 for ac_prog
in prove
18974 # Extract the first word of "$ac_prog", so it can be a program name with args.
18975 set dummy
$ac_prog; ac_word
=$2
18976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18977 $as_echo_n "checking for $ac_word... " >&6; }
18978 if ${ac_cv_path_PROVE+:} false
; then :
18979 $as_echo_n "(cached) " >&6
18983 ac_cv_path_PROVE
="$PROVE" # Let the user override the test with a path.
18986 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18987 for as_dir
in $PATH
18990 test -z "$as_dir" && as_dir
=.
18991 for ac_exec_ext
in '' $ac_executable_extensions; do
18992 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18993 ac_cv_path_PROVE
="$as_dir/$ac_word$ac_exec_ext"
18994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19004 PROVE
=$ac_cv_path_PROVE
19005 if test -n "$PROVE"; then
19006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROVE" >&5
19007 $as_echo "$PROVE" >&6; }
19009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19010 $as_echo "no" >&6; }
19014 test -n "$PROVE" && break
19018 # Report the value of PROVE in configure's output in all cases.
19019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PROVE" >&5
19020 $as_echo_n "checking for PROVE... " >&6; }
19021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROVE" >&5
19022 $as_echo "$PROVE" >&6; }
19025 if test -z "$PROVE"; then
19026 as_fn_error $?
"prove not found" "$LINENO" 5
19028 # Check for necessary Perl modules. You might think we should use
19029 # AX_PROG_PERL_MODULES here, but prove might be part of a different Perl
19030 # installation than perl, eg on MSys, so we have to check using prove.
19031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl modules required for TAP tests" >&5
19032 $as_echo_n "checking for Perl modules required for TAP tests... " >&6; }
19033 __CONFIG_HOST_OS__
=$host_os; export __CONFIG_HOST_OS__
19034 modulestderr
=`"$PROVE" "$srcdir/config/check_modules.pl" 2>&1 >/dev/null`
19035 if test $?
-eq 0; then
19036 # log the module version details, but don't show them interactively
19037 echo "$modulestderr" >&5
19038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19039 $as_echo "yes" >&6; }
19041 # on failure, though, show the results to the user
19042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $modulestderr" >&5
19043 $as_echo "$modulestderr" >&6; }
19044 as_fn_error $?
"Additional Perl modules are required to run TAP tests" "$LINENO" 5
19048 # If compiler will take -Wl,--as-needed (or various platform-specific
19049 # spellings thereof) then add that to LDFLAGS. This is much easier than
19050 # trying to filter LIBS to the minimum for each executable.
19051 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
19052 # libreadline; therefore we postpone testing it until we know what library
19053 # dependencies readline has. The test code will try to link with $LIBS.
19054 if test "$with_readline" = yes; then
19055 link_test_func
=readline
19057 link_test_func
=exit
19060 if test "$PORTNAME" = "darwin"; then
19061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,-dead_strip_dylibs, for LDFLAGS" >&5
19062 $as_echo_n "checking whether $CC supports -Wl,-dead_strip_dylibs, for LDFLAGS... " >&6; }
19063 if ${pgac_cv_prog_cc_LDFLAGS__Wl__dead_strip_dylibs+:} false
; then :
19064 $as_echo_n "(cached) " >&6
19066 pgac_save_LDFLAGS
=$LDFLAGS
19067 LDFLAGS
="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
19068 if test "$cross_compiling" = yes; then :
19069 pgac_cv_prog_cc_LDFLAGS__Wl__dead_strip_dylibs
="assuming no"
19071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19072 /* end confdefs.h. */
19073 extern void $link_test_func (); void (*fptr) () = $link_test_func;
19082 if ac_fn_c_try_run
"$LINENO"; then :
19083 pgac_cv_prog_cc_LDFLAGS__Wl__dead_strip_dylibs
=yes
19085 pgac_cv_prog_cc_LDFLAGS__Wl__dead_strip_dylibs
=no
19087 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19088 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19091 LDFLAGS
="$pgac_save_LDFLAGS"
19093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_LDFLAGS__Wl__dead_strip_dylibs" >&5
19094 $as_echo "$pgac_cv_prog_cc_LDFLAGS__Wl__dead_strip_dylibs" >&6; }
19095 if test x
"$pgac_cv_prog_cc_LDFLAGS__Wl__dead_strip_dylibs" = x
"yes"; then
19096 LDFLAGS
="${LDFLAGS} -Wl,-dead_strip_dylibs"
19100 elif test "$PORTNAME" = "openbsd"; then
19101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,-Bdynamic, for LDFLAGS" >&5
19102 $as_echo_n "checking whether $CC supports -Wl,-Bdynamic, for LDFLAGS... " >&6; }
19103 if ${pgac_cv_prog_cc_LDFLAGS__Wl__Bdynamic+:} false
; then :
19104 $as_echo_n "(cached) " >&6
19106 pgac_save_LDFLAGS
=$LDFLAGS
19107 LDFLAGS
="$pgac_save_LDFLAGS -Wl,-Bdynamic"
19108 if test "$cross_compiling" = yes; then :
19109 pgac_cv_prog_cc_LDFLAGS__Wl__Bdynamic
="assuming no"
19111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19112 /* end confdefs.h. */
19113 extern void $link_test_func (); void (*fptr) () = $link_test_func;
19122 if ac_fn_c_try_run
"$LINENO"; then :
19123 pgac_cv_prog_cc_LDFLAGS__Wl__Bdynamic
=yes
19125 pgac_cv_prog_cc_LDFLAGS__Wl__Bdynamic
=no
19127 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19128 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19131 LDFLAGS
="$pgac_save_LDFLAGS"
19133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_LDFLAGS__Wl__Bdynamic" >&5
19134 $as_echo "$pgac_cv_prog_cc_LDFLAGS__Wl__Bdynamic" >&6; }
19135 if test x
"$pgac_cv_prog_cc_LDFLAGS__Wl__Bdynamic" = x
"yes"; then
19136 LDFLAGS
="${LDFLAGS} -Wl,-Bdynamic"
19141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,--as-needed, for LDFLAGS" >&5
19142 $as_echo_n "checking whether $CC supports -Wl,--as-needed, for LDFLAGS... " >&6; }
19143 if ${pgac_cv_prog_cc_LDFLAGS__Wl___as_needed+:} false
; then :
19144 $as_echo_n "(cached) " >&6
19146 pgac_save_LDFLAGS
=$LDFLAGS
19147 LDFLAGS
="$pgac_save_LDFLAGS -Wl,--as-needed"
19148 if test "$cross_compiling" = yes; then :
19149 pgac_cv_prog_cc_LDFLAGS__Wl___as_needed
="assuming no"
19151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19152 /* end confdefs.h. */
19153 extern void $link_test_func (); void (*fptr) () = $link_test_func;
19162 if ac_fn_c_try_run
"$LINENO"; then :
19163 pgac_cv_prog_cc_LDFLAGS__Wl___as_needed
=yes
19165 pgac_cv_prog_cc_LDFLAGS__Wl___as_needed
=no
19167 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19168 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19171 LDFLAGS
="$pgac_save_LDFLAGS"
19173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_LDFLAGS__Wl___as_needed" >&5
19174 $as_echo "$pgac_cv_prog_cc_LDFLAGS__Wl___as_needed" >&6; }
19175 if test x
"$pgac_cv_prog_cc_LDFLAGS__Wl___as_needed" = x
"yes"; then
19176 LDFLAGS
="${LDFLAGS} -Wl,--as-needed"
19182 # For linkers that understand --export-dynamic, add that to the LDFLAGS_EX_BE
19183 # (backend specific ldflags). One some platforms this will always fail (e.g.,
19184 # windows), but on others it depends on the choice of linker (e.g., solaris).
19185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,--export-dynamic, for LDFLAGS_EX_BE" >&5
19186 $as_echo_n "checking whether $CC supports -Wl,--export-dynamic, for LDFLAGS_EX_BE... " >&6; }
19187 if ${pgac_cv_prog_cc_LDFLAGS_EX_BE__Wl___export_dynamic+:} false
; then :
19188 $as_echo_n "(cached) " >&6
19190 pgac_save_LDFLAGS
=$LDFLAGS
19191 LDFLAGS
="$pgac_save_LDFLAGS -Wl,--export-dynamic"
19192 if test "$cross_compiling" = yes; then :
19193 pgac_cv_prog_cc_LDFLAGS_EX_BE__Wl___export_dynamic
="assuming no"
19195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19196 /* end confdefs.h. */
19197 extern void $link_test_func (); void (*fptr) () = $link_test_func;
19206 if ac_fn_c_try_run
"$LINENO"; then :
19207 pgac_cv_prog_cc_LDFLAGS_EX_BE__Wl___export_dynamic
=yes
19209 pgac_cv_prog_cc_LDFLAGS_EX_BE__Wl___export_dynamic
=no
19211 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19212 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19215 LDFLAGS
="$pgac_save_LDFLAGS"
19217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_LDFLAGS_EX_BE__Wl___export_dynamic" >&5
19218 $as_echo "$pgac_cv_prog_cc_LDFLAGS_EX_BE__Wl___export_dynamic" >&6; }
19219 if test x
"$pgac_cv_prog_cc_LDFLAGS_EX_BE__Wl___export_dynamic" = x
"yes"; then
19220 LDFLAGS_EX_BE
="${LDFLAGS_EX_BE} -Wl,--export-dynamic"
19225 # Create compiler version string
19226 if test x
"$GCC" = x
"yes" ; then
19227 cc_string
=`${CC} --version | sed q`
19228 case $cc_string in [A-Za-z
]*) ;; *) cc_string
="GCC $cc_string";; esac
19229 elif test x
"$SUN_STUDIO_CC" = x
"yes" ; then
19230 cc_string
=`${CC} -V 2>&1 | sed q`
19236 cat >>confdefs.h
<<_ACEOF
19237 #define PG_VERSION_STR "PostgreSQL $PG_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
19241 # Supply a numeric version string for use by 3rd party add-ons
19242 # awk -F is a regex on some platforms, and not on others, so make "." a tab
19243 PG_VERSION_NUM
="`echo $PG_MAJORVERSION $PG_MINORVERSION |
19244 $AWK '{printf "%d
%04d
", $1, $2}'`"
19246 cat >>confdefs.h
<<_ACEOF
19247 #define PG_VERSION_NUM $PG_VERSION_NUM
19252 # If we are inserting PG_SYSROOT into CPPFLAGS, do so symbolically not
19253 # literally, so that it's possible to override it at build time using
19254 # a command like "make ... PG_SYSROOT=path". This has to be done after
19255 # we've finished all configure checks that depend on CPPFLAGS.
19256 # The same for LDFLAGS, too.
19257 if test x
"$PG_SYSROOT" != x
; then
19258 CPPFLAGS
=`echo "$CPPFLAGS" | sed -e "s| $PG_SYSROOT | \\\$(PG_SYSROOT) |"`
19259 LDFLAGS
=`echo "$LDFLAGS" | sed -e "s| $PG_SYSROOT | \\\$(PG_SYSROOT) |"`
19264 # Begin output steps
19266 { $as_echo "$as_me:${as_lineno-$LINENO}: using compiler=$cc_string" >&5
19267 $as_echo "$as_me: using compiler=$cc_string" >&6;}
19268 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS=$CFLAGS" >&5
19269 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
19270 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS=$CPPFLAGS" >&5
19271 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
19272 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS=$LDFLAGS" >&5
19273 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
19274 # Currently only used when LLVM is used
19275 if test "$with_llvm" = yes ; then
19276 { $as_echo "$as_me:${as_lineno-$LINENO}: using CXX=$CXX" >&5
19277 $as_echo "$as_me: using CXX=$CXX" >&6;}
19278 { $as_echo "$as_me:${as_lineno-$LINENO}: using CXXFLAGS=$CXXFLAGS" >&5
19279 $as_echo "$as_me: using CXXFLAGS=$CXXFLAGS" >&6;}
19280 { $as_echo "$as_me:${as_lineno-$LINENO}: using CLANG=$CLANG" >&5
19281 $as_echo "$as_me: using CLANG=$CLANG" >&6;}
19282 { $as_echo "$as_me:${as_lineno-$LINENO}: using BITCODE_CFLAGS=$BITCODE_CFLAGS" >&5
19283 $as_echo "$as_me: using BITCODE_CFLAGS=$BITCODE_CFLAGS" >&6;}
19284 { $as_echo "$as_me:${as_lineno-$LINENO}: using BITCODE_CXXFLAGS=$BITCODE_CXXFLAGS" >&5
19285 $as_echo "$as_me: using BITCODE_CXXFLAGS=$BITCODE_CXXFLAGS" >&6;}
19288 # prepare build tree if outside source tree
19289 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
19290 # Note 2: /bin/pwd might be better than shell's built-in at getting
19291 # a symlink-free name.
19292 if ( test "$srcdir" -ef .
) >/dev
/null
2>&1 ||
test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
19296 if test "$no_create" != yes; then
19297 $as_echo_n "preparing build tree... " >&6
19298 pgac_abs_top_srcdir
=`cd "$srcdir" && pwd`
19299 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
19300 || as_fn_error $?
"failed" "$LINENO" 5
19301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19302 $as_echo "done" >&6; }
19308 ac_config_files
="$ac_config_files GNUmakefile src/Makefile.global"
19311 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}"
19314 if test "$PORTNAME" = "win32"; then
19315 ac_config_commands
="$ac_config_commands check_win32_symlinks"
19319 ac_config_headers
="$ac_config_headers src/include/pg_config.h"
19322 ac_config_headers
="$ac_config_headers src/include/pg_config_ext.h"
19325 ac_config_headers
="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
19328 cat >confcache
<<\_ACEOF
19329 # This file is a shell script that caches the results of configure
19330 # tests run on this system so they can be shared between configure
19331 # scripts and configure runs, see configure's option --config-cache.
19332 # It is not useful on other systems. If it contains results you don't
19333 # want to keep, you may remove or edit it.
19335 # config.status only pays attention to the cache file if you give it
19336 # the --recheck option to rerun configure.
19338 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19339 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19340 # following values.
19344 # The following way of writing the cache mishandles newlines in values,
19345 # but we know of no workaround that is simple, portable, and efficient.
19346 # So, we kill variables containing newlines.
19347 # Ultrix sh set writes to stderr and can't be redirected directly,
19348 # and sets the high bit in the cache file unless we assign to the vars.
19350 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19351 eval ac_val
=\$
$ac_var
19355 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19356 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19359 _ | IFS | as_nl
) ;; #(
19360 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
19361 *) { eval $ac_var=; unset $ac_var;} ;;
19367 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19368 *${as_nl}ac_space
=\
*)
19369 # `set' does not quote correctly, so add quotes: double-quote
19370 # substitution turns \\\\ into \\, and sed turns \\ into \.
19373 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19376 # `set' quotes correctly as required by POSIX, so do not add quotes.
19377 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19386 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19388 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19390 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
19391 if test -w "$cache_file"; then
19392 if test "x$cache_file" != "x/dev/null"; then
19393 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19394 $as_echo "$as_me: updating cache $cache_file" >&6;}
19395 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
19396 cat confcache
>"$cache_file"
19398 case $cache_file in #(
19400 mv -f confcache
"$cache_file"$$
&&
19401 mv -f "$cache_file"$$
"$cache_file" ;; #(
19403 mv -f confcache
"$cache_file" ;;
19408 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19409 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19414 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
19415 # Let make expand exec_prefix.
19416 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19418 DEFS
=-DHAVE_CONFIG_H
19423 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
19424 # 1. Remove the extension, and $U if already installed.
19425 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
19426 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
19427 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19428 # will be set to the directory where LIBOBJS objects are built.
19429 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19430 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
19432 LIBOBJS
=$ac_libobjs
19434 LTLIBOBJS
=$ac_ltlibobjs
19439 : "${CONFIG_STATUS=./config.status}"
19441 ac_clean_files_save
=$ac_clean_files
19442 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
19443 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19444 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19446 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19448 # Generated by $as_me.
19449 # Run this file to recreate the current configuration.
19450 # Compiler output produced by configure, useful for debugging
19451 # configure, is in config.log if it exists.
19454 ac_cs_recheck=false
19457 SHELL=\${CONFIG_SHELL-$SHELL}
19460 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
19461 ## -------------------- ##
19462 ## M4sh Initialization. ##
19463 ## -------------------- ##
19465 # Be more Bourne compatible
19466 DUALCASE
=1; export DUALCASE
# for MKS sh
19467 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
19470 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19471 # is contrary to our usage. Disable this feature.
19472 alias -g '${1+"$@"}'='"$@"'
19473 setopt NO_GLOB_SUBST
19475 case `(set -o) 2>/dev/null` in #(
19487 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19488 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19489 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19490 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19491 # Prefer a ksh shell builtin over an external printf program on Solaris,
19492 # but without wasting forks for bash or zsh.
19493 if test -z "$BASH_VERSION$ZSH_VERSION" \
19494 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19495 as_echo='print
-r --'
19496 as_echo_n='print
-rn --'
19497 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19498 as_echo='printf %s
\n'
19499 as_echo_n='printf %s
'
19501 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19502 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
19503 as_echo_n='/usr
/ucb
/echo -n'
19505 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19506 as_echo_n_body='eval
19510 expr "X$arg" : "X\\(.*\\)$as_nl";
19511 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19513 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
19515 export as_echo_n_body
19516 as_echo_n='sh
-c $as_echo_n_body as_echo
'
19518 export as_echo_body
19519 as_echo='sh
-c $as_echo_body as_echo
'
19522 # The user is always right.
19523 if test "${PATH_SEPARATOR+set}" != set; then
19525 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19526 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19533 # We need space, tab and new line, in precisely that order. Quoting is
19534 # there to prevent editors from complaining about space-tab.
19535 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19536 # splitting by setting IFS to empty value.)
19539 # Find who we are. Look in the path if we contain no directory separator.
19542 *[\\/]* ) as_myself=$0 ;;
19543 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19544 for as_dir in $PATH
19547 test -z "$as_dir" && as_dir=.
19548 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19554 # We did not find ourselves, most probably we were run as `sh COMMAND'
19555 # in which case we are not to be found in the path.
19556 if test "x$as_myself" = x
; then
19559 if test ! -f "$as_myself"; then
19560 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19564 # Unset variables that we do not need and which cause bugs (e.g. in
19565 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19566 # suppresses any "Segmentation fault" message there. '((' could
19567 # trigger a bug in pdksh 5.2.14.
19568 for as_var
in BASH_ENV ENV MAIL MAILPATH
19569 do eval test x\
${$as_var+set} = xset \
19570 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
19583 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
19586 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19587 # ----------------------------------------
19588 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19589 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19590 # script with STATUS, using 1 if that was 0.
19593 as_status
=$1; test $as_status -eq 0 && as_status
=1
19595 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
19596 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19598 $as_echo "$as_me: error: $2" >&2
19599 as_fn_exit
$as_status
19603 # as_fn_set_status STATUS
19604 # -----------------------
19605 # Set $? to STATUS, without forking.
19606 as_fn_set_status
()
19609 } # as_fn_set_status
19611 # as_fn_exit STATUS
19612 # -----------------
19613 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19617 as_fn_set_status
$1
19623 # Portably unset VAR.
19626 { eval $1=; unset $1;}
19628 as_unset
=as_fn_unset
19629 # as_fn_append VAR VALUE
19630 # ----------------------
19631 # Append the text in VALUE to the end of the definition contained in VAR. Take
19632 # advantage of any shell optimizations that allow amortized linear growth over
19633 # repeated appends, instead of the typical quadratic growth present in naive
19635 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
19636 eval 'as_fn_append ()
19647 # as_fn_arith ARG...
19648 # ------------------
19649 # Perform arithmetic evaluation on the ARGs, and store the result in the
19650 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19651 # must be portable across $(()) and expr.
19652 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
19653 eval 'as_fn_arith ()
19660 as_val
=`expr "$@" || test $? -eq 1`
19665 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
19666 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
19672 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19673 as_basename
=basename
19678 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
19684 as_me
=`$as_basename -- "$0" ||
19685 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19686 X"$0" : 'X\(//\)$' \| \
19687 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19689 sed '/^.*\/\([^/][^/]*\)\/*$/{
19703 # Avoid depending upon Character Ranges.
19704 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
19705 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19706 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
19707 as_cr_digits
='0123456789'
19708 as_cr_alnum
=$as_cr_Letters$as_cr_digits
19710 ECHO_C
= ECHO_N
= ECHO_T
=
19711 case `echo -n x` in #(((((
19713 case `echo 'xy\c'` in
19714 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
19716 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
19723 rm -f conf$$ conf$$.exe conf$$.
file
19724 if test -d conf$$.dir
; then
19725 rm -f conf$$.dir
/conf$$.
file
19728 mkdir conf$$.dir
2>/dev
/null
19730 if (echo >conf$$.
file) 2>/dev
/null
; then
19731 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
19733 # ... but there are two gotchas:
19734 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19735 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19736 # In both cases, we have to default to `cp -pR'.
19737 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
19739 elif ln conf$$.
file conf$$
2>/dev
/null
; then
19747 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
19748 rmdir conf$$.dir
2>/dev
/null
19753 # Create "$as_dir" as a directory, including parents if necessary.
19758 -*) as_dir
=.
/$as_dir;;
19760 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
19764 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19765 *) as_qdir
=$as_dir;;
19767 as_dirs
="'$as_qdir' $as_dirs"
19768 as_dir
=`$as_dirname -- "$as_dir" ||
19769 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19770 X"$as_dir" : 'X\(//\)[^/]' \| \
19771 X"$as_dir" : 'X\(//\)$' \| \
19772 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19773 $as_echo X"$as_dir" |
19774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19778 /^X\(\/\/\)[^/].*/{
19791 test -d "$as_dir" && break
19793 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
19794 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
19798 if mkdir
-p .
2>/dev
/null
; then
19799 as_mkdir_p
='mkdir -p "$as_dir"'
19801 test -d .
/-p && rmdir .
/-p
19806 # as_fn_executable_p FILE
19807 # -----------------------
19808 # Test if FILE is an executable regular file.
19809 as_fn_executable_p
()
19811 test -f "$1" && test -x "$1"
19812 } # as_fn_executable_p
19813 as_test_x
='test -x'
19814 as_executable_p
=as_fn_executable_p
19816 # Sed expression to map a string onto a valid CPP name.
19817 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19819 # Sed expression to map a string onto a valid variable name.
19820 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19824 ## ----------------------------------- ##
19825 ## Main body of $CONFIG_STATUS script. ##
19826 ## ----------------------------------- ##
19828 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
19830 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19831 # Save the log message, to keep $0 and so on meaningful, and to
19832 # report actual input values of CONFIG_FILES etc. instead of their
19833 # values after options handling.
19835 This file was extended by PostgreSQL $as_me 17devel, which was
19836 generated by GNU Autoconf 2.69. Invocation command line was
19838 CONFIG_FILES = $CONFIG_FILES
19839 CONFIG_HEADERS = $CONFIG_HEADERS
19840 CONFIG_LINKS = $CONFIG_LINKS
19841 CONFIG_COMMANDS = $CONFIG_COMMANDS
19844 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19849 case $ac_config_files in *"
19850 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
19853 case $ac_config_headers in *"
19854 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
19858 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19859 # Files that config.status was made for.
19860 config_files="$ac_config_files"
19861 config_headers="$ac_config_headers"
19862 config_links="$ac_config_links"
19863 config_commands="$ac_config_commands"
19867 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19869 \`$as_me' instantiates files and other configuration actions
19870 from templates according to the current configuration. Unless the files
19871 and actions are specified as TAGs, all are instantiated by default.
19873 Usage: $0 [OPTION]... [TAG]...
19875 -h, --help print this help, then exit
19876 -V, --version print version number and configuration settings, then exit
19877 --config print configuration, then exit
19878 -q, --quiet, --silent
19879 do not print progress messages
19880 -d, --debug don't remove temporary files
19881 --recheck update $as_me by reconfiguring in the same conditions
19882 --file=FILE[:TEMPLATE]
19883 instantiate the configuration file FILE
19884 --header=FILE[:TEMPLATE]
19885 instantiate the configuration header FILE
19887 Configuration files:
19890 Configuration headers:
19893 Configuration links:
19896 Configuration commands:
19899 Report bugs to <pgsql-bugs@lists.postgresql.org>.
19900 PostgreSQL home page: <https://www.postgresql.org/>."
19903 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19904 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19906 PostgreSQL config.status 17devel
19907 configured by $0, generated by GNU Autoconf 2.69,
19908 with options \\"\$ac_cs_config\\"
19910 Copyright (C) 2012 Free Software Foundation, Inc.
19911 This config.status script is free software; the Free Software Foundation
19912 gives unlimited permission to copy, distribute and modify it."
19919 test -n "\$AWK" || AWK=awk
19922 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19923 # The default lists apply if the user does not specify any file.
19929 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19930 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
19934 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19946 # Handling of the options.
19947 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
19949 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
19950 $as_echo "$ac_cs_version"; exit ;;
19951 --config |
--confi |
--conf |
--con |
--co |
--c )
19952 $as_echo "$ac_cs_config"; exit ;;
19953 --debug |
--debu |
--deb |
--de |
--d |
-d )
19955 --file |
--fil |
--fi |
--f )
19958 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19959 '') as_fn_error $?
"missing file argument" ;;
19961 as_fn_append CONFIG_FILES
" '$ac_optarg'"
19962 ac_need_defaults
=false
;;
19963 --header |
--heade |
--head |
--hea )
19966 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19968 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
19969 ac_need_defaults
=false
;;
19971 # Conflict between --help and --header
19972 as_fn_error $?
"ambiguous option: \`$1'
19973 Try \`$0 --help' for more information.";;
19974 --help |
--hel |
-h )
19975 $as_echo "$ac_cs_usage"; exit ;;
19976 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
19977 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
19980 # This is an error.
19981 -*) as_fn_error $?
"unrecognized option: \`$1'
19982 Try \`$0 --help' for more information." ;;
19984 *) as_fn_append ac_config_targets
" $1"
19985 ac_need_defaults
=false
;;
19991 ac_configure_extra_args
=
19993 if $ac_cs_silent; then
19995 ac_configure_extra_args
="$ac_configure_extra_args --silent"
19999 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20000 if \$ac_cs_recheck; then
20001 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20003 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20004 CONFIG_SHELL='$SHELL'
20005 export CONFIG_SHELL
20010 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20014 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20015 ## Running $as_me. ##
20021 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20026 # Handling of arguments.
20027 for ac_config_target
in $ac_config_targets
20029 case $ac_config_target in
20030 "src/backend/port/tas.s") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
20031 "GNUmakefile") CONFIG_FILES
="$CONFIG_FILES GNUmakefile" ;;
20032 "src/Makefile.global") CONFIG_FILES
="$CONFIG_FILES src/Makefile.global" ;;
20033 "src/backend/port/pg_sema.c") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
20034 "src/backend/port/pg_shmem.c") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
20035 "src/include/pg_config_os.h") CONFIG_LINKS
="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
20036 "src/Makefile.port") CONFIG_LINKS
="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
20037 "check_win32_symlinks") CONFIG_COMMANDS
="$CONFIG_COMMANDS check_win32_symlinks" ;;
20038 "src/include/pg_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/include/pg_config.h" ;;
20039 "src/include/pg_config_ext.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/include/pg_config_ext.h" ;;
20040 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
20042 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20047 # If the user did not use the arguments to specify the items to instantiate,
20048 # then the envvar interface is used. Set only those that are not.
20049 # We use the long form for the default assignment because of an extremely
20050 # bizarre bug on SunOS 4.1.3.
20051 if $ac_need_defaults; then
20052 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
20053 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
20054 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
20055 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
20058 # Have a temporary directory for convenience. Make it in the build tree
20059 # simply because there is no reason against having it here, and in addition,
20060 # creating and moving files from /tmp can sometimes cause problems.
20061 # Hook for its removal unless debugging.
20062 # Note that there is a small window in which the directory will not be cleaned:
20063 # after its creation but before its name has been assigned to `$tmp'.
20067 trap 'exit_status=$?
20068 : "${ac_tmp:=$tmp}"
20069 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20071 trap 'as_fn_exit 1' 1 2 13 15
20073 # Create a (secure) tmp directory for tmp files.
20076 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20080 tmp
=.
/conf$$
-$RANDOM
20081 (umask 077 && mkdir
"$tmp")
20082 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
20085 # Set up the scripts for CONFIG_FILES section.
20086 # No need to generate them if there are no CONFIG_FILES.
20087 # This happens for instance with `./config.status config.h'.
20088 if test -n "$CONFIG_FILES"; then
20091 ac_cr
=`echo X | tr X '\015'`
20092 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20093 # But we know of no other shell where ac_cr would be empty at this
20094 # point, so we can use a bashism as a fallback.
20095 if test "x$ac_cr" = x
; then
20096 eval ac_cr
=\$
\'\\r
\'
20098 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20099 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20102 ac_cs_awk_cr
=$ac_cr
20105 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20110 echo "cat >conf$$subs.awk <<_ACEOF" &&
20111 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20113 } >conf$$subs.sh ||
20114 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20115 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20117 for ac_last_try in false false false false false :; do
20118 . ./conf$$subs.sh ||
20119 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20121 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
20122 if test $ac_delim_n = $ac_delim_num; then
20124 elif $ac_last_try; then
20125 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20127 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20130 rm -f conf$$subs.sh
20132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20133 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
20137 s/^/S["/; s
/!.
*/"]=/
20147 s/\(.\{148\}\)..*/\1/
20149 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
20154 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20161 s/\(.\{148\}\)..*/\1/
20163 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
20167 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20172 ' <conf$$subs.awk | sed '
20177 ' >>$CONFIG_STATUS || ac_write_fail=1
20178 rm -f conf$$subs.awk
20179 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20181 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
20182 for (key in S) S_is_set[key] = 1
20188 nfields = split(line, field, "@
")
20190 len = length(field[1])
20191 for (i = 2; i < nfields; i++) {
20193 keylen = length(key)
20194 if (S_is_set[key]) {
20196 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20197 len += length(value) + length(field[++i])
20208 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20209 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20210 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
20213 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
20214 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
20217 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20218 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
20219 # trailing colons and then remove the whole line if VPATH becomes empty
20220 # (actually we leave an empty line to preserve line numbers).
20221 if test "x
$srcdir" = x.; then
20222 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20241 fi # test -n "$CONFIG_FILES"
20243 # Set up the scripts for CONFIG_HEADERS section.
20244 # No need to generate them if there are no CONFIG_HEADERS.
20245 # This happens for instance with `./config.status Makefile'.
20246 if test -n "$CONFIG_HEADERS"; then
20247 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
20251 # Transform confdefs.h into an awk script `defines.awk', embedded as
20252 # here-document in config.status, that substitutes the proper values into
20253 # config.h.in to produce config.h.
20255 # Create a delimiter string that does not exist in confdefs.h, to ease
20256 # handling of long lines.
20258 for ac_last_try in false false :; do
20259 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
20260 if test -z "$ac_tt"; then
20262 elif $ac_last_try; then
20263 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
20265 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20269 # For the awk script, D is an array of macro values keyed by name,
20270 # likewise P contains macro parameters if any. Preserve backslash
20271 # newline sequences.
20273 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20275 s/.\{148\}/&'"$ac_delim"'/g
20278 s/^[ ]*#[ ]*define[ ][ ]*/ /
20285 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
20287 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
20291 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
20292 D["\
1"]=" \
3\\\\\\n
"\\/p
20294 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
20299 s/.\{148\}/&'"$ac_delim"'/g
20304 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
20307 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
20309 ' <confdefs.h | sed '
20310 s/'"$ac_delim"'/"\\\
20311 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20313 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20314 for (key in D) D_is_set[key] = 1
20317 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20319 split(line, arg, " ")
20320 if (arg[1] == "#") {
20324 defundef
= substr
(arg
[1], 2)
20327 split(mac1
, mac2
, "(") #)
20329 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
20330 if (D_is_set
[macro
]) {
20331 # Preserve the white space surrounding the "#".
20332 print prefix
"define", macro P
[macro
] D
[macro
]
20335 # Replace #undef with comments. This is necessary, for example,
20336 # in the case of _POSIX_SOURCE, which is predefined and required
20337 # on some systems where configure will not decide to define it.
20338 if (defundef
== "undef") {
20339 print
"/*", prefix defundef
, macro
, "*/"
20347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20348 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
20349 fi # test -n "$CONFIG_HEADERS"
20352 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
20357 :[FHLC
]) ac_mode
=$ac_tag; continue;;
20359 case $ac_mode$ac_tag in
20361 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
20362 :[FH
]-) ac_tag
=-:-;;
20363 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
20380 -) ac_f
="$ac_tmp/stdin";;
20381 *) # Look for the file first in the build tree, then in the source tree
20382 # (if the path is not absolute). The absolute path cannot be DOS-style,
20383 # because $ac_f cannot contain `:'.
20387 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
20389 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20391 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20392 as_fn_append ac_file_inputs
" '$ac_f'"
20395 # Let's still pretend it is `configure' which instantiates (i.e., don't
20396 # use $as_me), people would be surprised to read:
20397 # /* config.h. Generated by config.status. */
20398 configure_input
='Generated from '`
20399 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20401 if test x
"$ac_file" != x-
; then
20402 configure_input
="$ac_file. $configure_input"
20403 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20404 $as_echo "$as_me: creating $ac_file" >&6;}
20406 # Neutralize special characters interpreted by sed in replacement strings.
20407 case $configure_input in #(
20408 *\
&* |
*\|
* |
*\\* )
20409 ac_sed_conf_input
=`$as_echo "$configure_input" |
20410 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20411 *) ac_sed_conf_input
=$configure_input;;
20415 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
20416 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
20421 ac_dir
=`$as_dirname -- "$ac_file" ||
20422 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20423 X"$ac_file" : 'X\(//\)[^/]' \| \
20424 X"$ac_file" : 'X\(//\)$' \| \
20425 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20426 $as_echo X"$ac_file" |
20427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20431 /^X\(\/\/\)[^/].*/{
20444 as_dir
="$ac_dir"; as_fn_mkdir_p
20448 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20450 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20451 # A ".." for each directory in $ac_dir_suffix.
20452 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20453 case $ac_top_builddir_sub in
20454 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20455 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
20458 ac_abs_top_builddir
=$ac_pwd
20459 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
20460 # for backward compatibility:
20461 ac_top_builddir
=$ac_top_build_prefix
20464 .
) # We are building in place.
20466 ac_top_srcdir
=$ac_top_builddir_sub
20467 ac_abs_top_srcdir
=$ac_pwd ;;
20468 [\\/]* | ?
:[\\/]* ) # Absolute name.
20469 ac_srcdir
=$srcdir$ac_dir_suffix;
20470 ac_top_srcdir
=$srcdir
20471 ac_abs_top_srcdir
=$srcdir ;;
20472 *) # Relative name.
20473 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
20474 ac_top_srcdir
=$ac_top_build_prefix$srcdir
20475 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
20477 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
20487 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
20488 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
20490 ac_MKDIR_P
=$MKDIR_P
20492 [\\/$
]* | ?
:[\\/]* ) ;;
20493 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
20497 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20498 # If the template does not know about datarootdir, expand it.
20499 # FIXME: This hack should be removed a few years after 2.60.
20500 ac_datarootdir_hack
=; ac_datarootdir_seen
=
20511 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20512 *datarootdir
*) ac_datarootdir_seen
=yes;;
20513 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
20514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20515 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20517 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20518 ac_datarootdir_hack='
20519 s&@datadir@&$datadir&g
20520 s&@docdir@&$docdir&g
20521 s&@infodir@&$infodir&g
20522 s&@localedir@&$localedir&g
20523 s&@mandir@&$mandir&g
20524 s&\\\${datarootdir}&$datarootdir&g' ;;
20528 # Neutralize VPATH when `$srcdir' = `.'.
20529 # Shell code in configure.ac might set extrasub.
20530 # FIXME: do we really want to maintain this feature?
20531 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20532 ac_sed_extra="$ac_vpsub
20535 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20537 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
20538 s|@configure_input@|
$ac_sed_conf_input|
;t t
20539 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
20540 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
20541 s
&@srcdir@
&$ac_srcdir&;t t
20542 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
20543 s
&@top_srcdir@
&$ac_top_srcdir&;t t
20544 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
20545 s
&@builddir@
&$ac_builddir&;t t
20546 s
&@abs_builddir@
&$ac_abs_builddir&;t t
20547 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
20548 s
&@INSTALL@
&$ac_INSTALL&;t t
20549 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
20550 $ac_datarootdir_hack
20552 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
20553 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
20555 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20556 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
20557 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20558 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
20559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
20560 which seems to be undefined. Please make sure it is defined" >&5
20561 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
20562 which seems to be undefined. Please make sure it is defined" >&2;}
20564 rm -f "$ac_tmp/stdin"
20566 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20567 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20569 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20575 if test x"$ac_file" != x-; then
20577 $as_echo "/* $configure_input */" \
20578 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20579 } >"$ac_tmp/config.h" \
20580 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20581 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20582 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20583 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20586 mv "$ac_tmp/config.h" "$ac_file" \
20587 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20590 $as_echo "/* $configure_input */" \
20591 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20592 || as_fn_error $? "could not create -" "$LINENO" 5
20600 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
20603 # Prefer the file from the source tree if names are identical.
20604 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
20605 ac_source=$srcdir/$ac_source
20608 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
20609 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
20611 if test ! -r "$ac_source"; then
20612 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
20616 # Try a relative symlink, then a hard link, then a copy.
20618 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
20619 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
20621 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
20622 ln "$ac_source" "$ac_file" 2>/dev/null ||
20623 cp -p "$ac_source" "$ac_file" ||
20624 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
20627 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20628 $as_echo "$as_me: executing $ac_file commands" >&6;}
20633 case $ac_file$ac_mode in
20634 "check_win32_symlinks":C)
20635 # Links sometimes fail undetected on Mingw -
20636 # so here we detect it and warn the user
20637 for FILE in $CONFIG_LINKS
20639 # test -e works for symlinks in the MinGW console
20640 test -e `expr "$FILE" : '\
([^
:]*\
)'` || { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** link for $FILE -- please fix by hand" >&5
20641 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
20644 "src/include/pg_config.h":H)
20645 # Update timestamp for pg_config.h (see Makefile.global)
20646 echo >src/include/stamp-h
20648 "src/include/pg_config_ext.h":H)
20649 # Update timestamp for pg_config_ext.h (see Makefile.global)
20650 echo >src/include/stamp-ext-h
20652 "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
20660 ac_clean_files=$ac_clean_files_save
20662 test $ac_write_fail = 0 ||
20663 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20666 # configure is writing to config.log, and then calls config.status.
20667 # config.status does its own redirection, appending to config.log.
20668 # Unfortunately, on DOS this fails, as config.log is still kept open
20669 # by configure, so config.status won't be able to
write to it
; its
20670 # output is simply discarded. So we exec the FD to /dev/null,
20671 # effectively closing config.log, so it can be properly (re)opened and
20672 # appended to by config.status. When coming back to configure, we
20673 # need to make the FD available again.
20674 if test "$no_create" != yes; then
20676 ac_config_status_args
=
20677 test "$silent" = yes &&
20678 ac_config_status_args
="$ac_config_status_args --quiet"
20680 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
20682 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20683 # would make configure fail if this is the last instruction.
20684 $ac_cs_success || as_fn_exit
1
20686 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
20687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20688 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20692 # Ensure that any meson build directories would reconfigure and see that
20693 # there's a conflicting in-tree build and can error out.
20694 if test "$vpath_build"="no"; then