2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for PostgreSQL 13devel.
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-2020, 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
='13devel'
586 PACKAGE_STRING
='PostgreSQL 13devel'
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
665 python_additional_libs
738 PERMIT_DECLARATION_AFTER_STATEMENT
809 program_transform_name
822 enable_option_checking
828 enable_integer_datetimes
862 with_libedit_preferred
872 ac_precious_vars
='build_alias
902 # Initialize some variables set by options.
904 ac_init_version
=false
905 ac_unrecognized_opts
=
907 # The variables have the same names as the options, with
908 # dashes changed to underlines.
916 program_transform_name
=s
,x
,x
,
924 # Installation directory options.
925 # These are left unexpanded so users can "make install exec_prefix=/foo"
926 # and all the variables that are supposed to be based on exec_prefix
927 # by default will actually change.
928 # Use braces instead of parens because sh, perl, etc. also accept them.
929 # (The list follows the same order as the GNU Coding Standards.)
930 bindir
='${exec_prefix}/bin'
931 sbindir
='${exec_prefix}/sbin'
932 libexecdir
='${exec_prefix}/libexec'
933 datarootdir
='${prefix}/share'
934 datadir
='${datarootdir}'
935 sysconfdir
='${prefix}/etc'
936 sharedstatedir
='${prefix}/com'
937 localstatedir
='${prefix}/var'
938 includedir
='${prefix}/include'
939 oldincludedir
='/usr/include'
940 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
941 infodir
='${datarootdir}/info'
946 libdir
='${exec_prefix}/lib'
947 localedir
='${datarootdir}/locale'
948 mandir
='${datarootdir}/man'
954 # If the previous option needs an argument, assign it.
955 if test -n "$ac_prev"; then
956 eval $ac_prev=\
$ac_option
962 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
967 # Accept the important Cygnus configure options, so we can diagnose typos.
969 case $ac_dashdash$ac_option in
973 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
975 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
978 -build |
--build |
--buil |
--bui |
--bu)
979 ac_prev
=build_alias
;;
980 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
981 build_alias
=$ac_optarg ;;
983 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
984 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
985 ac_prev
=cache_file
;;
986 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
987 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
988 cache_file
=$ac_optarg ;;
991 cache_file
=config.cache
;;
993 -datadir |
--datadir |
--datadi |
--datad)
995 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
996 datadir
=$ac_optarg ;;
998 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
999 |
--dataroo |
--dataro |
--datar)
1000 ac_prev
=datarootdir
;;
1001 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1002 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1003 datarootdir
=$ac_optarg ;;
1005 -disable-* |
--disable-*)
1006 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1007 # Reject names that are not valid shell variable names.
1008 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1009 as_fn_error $?
"invalid feature name: $ac_useropt"
1010 ac_useropt_orig
=$ac_useropt
1011 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1012 case $ac_user_opts in
1014 "enable_
$ac_useropt"
1016 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1017 ac_unrecognized_sep
=', ';;
1019 eval enable_
$ac_useropt=no
;;
1021 -docdir |
--docdir |
--docdi |
--doc |
--do)
1023 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1024 docdir
=$ac_optarg ;;
1026 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1028 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1029 dvidir
=$ac_optarg ;;
1031 -enable-* |
--enable-*)
1032 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1033 # Reject names that are not valid shell variable names.
1034 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1035 as_fn_error $?
"invalid feature name: $ac_useropt"
1036 ac_useropt_orig
=$ac_useropt
1037 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1038 case $ac_user_opts in
1040 "enable_
$ac_useropt"
1042 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1043 ac_unrecognized_sep
=', ';;
1045 eval enable_
$ac_useropt=\
$ac_optarg ;;
1047 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1048 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1049 |
--exec |
--exe |
--ex)
1050 ac_prev
=exec_prefix
;;
1051 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1052 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1053 |
--exec=* |
--exe=* |
--ex=*)
1054 exec_prefix
=$ac_optarg ;;
1056 -gas |
--gas |
--ga |
--g)
1057 # Obsolete; use --with-gas.
1060 -help |
--help |
--hel |
--he |
-h)
1061 ac_init_help
=long
;;
1062 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1063 ac_init_help
=recursive
;;
1064 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1065 ac_init_help
=short
;;
1067 -host |
--host |
--hos |
--ho)
1068 ac_prev
=host_alias
;;
1069 -host=* |
--host=* |
--hos=* |
--ho=*)
1070 host_alias
=$ac_optarg ;;
1072 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1074 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1076 htmldir
=$ac_optarg ;;
1078 -includedir |
--includedir |
--includedi |
--included |
--include \
1079 |
--includ |
--inclu |
--incl |
--inc)
1080 ac_prev
=includedir
;;
1081 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1082 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1083 includedir
=$ac_optarg ;;
1085 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1087 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1088 infodir
=$ac_optarg ;;
1090 -libdir |
--libdir |
--libdi |
--libd)
1092 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1093 libdir
=$ac_optarg ;;
1095 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1096 |
--libexe |
--libex |
--libe)
1097 ac_prev
=libexecdir
;;
1098 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1099 |
--libexe=* |
--libex=* |
--libe=*)
1100 libexecdir
=$ac_optarg ;;
1102 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1103 ac_prev
=localedir
;;
1104 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1105 localedir
=$ac_optarg ;;
1107 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1108 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1109 ac_prev
=localstatedir
;;
1110 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1111 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1112 localstatedir
=$ac_optarg ;;
1114 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1116 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1117 mandir
=$ac_optarg ;;
1119 -nfp |
--nfp |
--nf)
1120 # Obsolete; use --without-fp.
1123 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1124 |
--no-cr |
--no-c |
-n)
1127 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1128 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1131 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1132 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1133 |
--oldin |
--oldi |
--old |
--ol |
--o)
1134 ac_prev
=oldincludedir
;;
1135 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1136 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1137 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1138 oldincludedir
=$ac_optarg ;;
1140 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1142 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1143 prefix
=$ac_optarg ;;
1145 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1146 |
--program-pre |
--program-pr |
--program-p)
1147 ac_prev
=program_prefix
;;
1148 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1149 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1150 program_prefix
=$ac_optarg ;;
1152 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1153 |
--program-suf |
--program-su |
--program-s)
1154 ac_prev
=program_suffix
;;
1155 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1156 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1157 program_suffix
=$ac_optarg ;;
1159 -program-transform-name |
--program-transform-name \
1160 |
--program-transform-nam |
--program-transform-na \
1161 |
--program-transform-n |
--program-transform- \
1162 |
--program-transform |
--program-transfor \
1163 |
--program-transfo |
--program-transf \
1164 |
--program-trans |
--program-tran \
1165 |
--progr-tra |
--program-tr |
--program-t)
1166 ac_prev
=program_transform_name
;;
1167 -program-transform-name=* |
--program-transform-name=* \
1168 |
--program-transform-nam=* |
--program-transform-na=* \
1169 |
--program-transform-n=* |
--program-transform-=* \
1170 |
--program-transform=* |
--program-transfor=* \
1171 |
--program-transfo=* |
--program-transf=* \
1172 |
--program-trans=* |
--program-tran=* \
1173 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1174 program_transform_name
=$ac_optarg ;;
1176 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1178 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1179 pdfdir
=$ac_optarg ;;
1181 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1183 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1186 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1187 |
-silent |
--silent |
--silen |
--sile |
--sil)
1190 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1192 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1194 sbindir
=$ac_optarg ;;
1196 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1197 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1198 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1200 ac_prev
=sharedstatedir
;;
1201 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1202 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1203 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1205 sharedstatedir
=$ac_optarg ;;
1207 -site |
--site |
--sit)
1209 -site=* |
--site=* |
--sit=*)
1212 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1214 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1215 srcdir
=$ac_optarg ;;
1217 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1218 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1219 ac_prev
=sysconfdir
;;
1220 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1221 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1222 sysconfdir
=$ac_optarg ;;
1224 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1225 ac_prev
=target_alias
;;
1226 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1227 target_alias
=$ac_optarg ;;
1229 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1232 -version |
--version |
--versio |
--versi |
--vers |
-V)
1233 ac_init_version
=: ;;
1236 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1237 # Reject names that are not valid shell variable names.
1238 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1239 as_fn_error $?
"invalid package name: $ac_useropt"
1240 ac_useropt_orig
=$ac_useropt
1241 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1242 case $ac_user_opts in
1246 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1247 ac_unrecognized_sep
=', ';;
1249 eval with_
$ac_useropt=\
$ac_optarg ;;
1251 -without-* |
--without-*)
1252 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1253 # Reject names that are not valid shell variable names.
1254 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1255 as_fn_error $?
"invalid package name: $ac_useropt"
1256 ac_useropt_orig
=$ac_useropt
1257 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1258 case $ac_user_opts in
1262 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1263 ac_unrecognized_sep
=', ';;
1265 eval with_
$ac_useropt=no
;;
1268 # Obsolete; use --with-x.
1271 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1272 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1273 ac_prev
=x_includes
;;
1274 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1275 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1276 x_includes
=$ac_optarg ;;
1278 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1279 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1280 ac_prev
=x_libraries
;;
1281 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1282 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1283 x_libraries
=$ac_optarg ;;
1285 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1286 Try \`$0 --help' for more information"
1290 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1291 # Reject names that are not valid shell variable names.
1292 case $ac_envvar in #(
1293 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1294 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1296 eval $ac_envvar=\
$ac_optarg
1297 export $ac_envvar ;;
1300 # FIXME: should be removed in autoconf 3.0.
1301 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1302 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1303 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1304 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1310 if test -n "$ac_prev"; then
1311 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1312 as_fn_error $?
"missing argument to $ac_option"
1315 if test -n "$ac_unrecognized_opts"; then
1316 case $enable_option_checking in
1318 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1319 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1323 # Check all directory arguments for consistency.
1324 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1325 datadir sysconfdir sharedstatedir localstatedir includedir \
1326 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1327 libdir localedir mandir
1329 eval ac_val
=\$
$ac_var
1330 # Remove trailing slashes.
1333 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1334 eval $ac_var=\
$ac_val;;
1336 # Be sure to have absolute directory names.
1338 [\\/$
]* | ?
:[\\/]* ) continue;;
1339 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1341 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1344 # There might be people who depend on the old broken behavior: `$host'
1345 # used to hold the argument of --host etc.
1346 # FIXME: To remove some day.
1349 target
=$target_alias
1351 # FIXME: To remove some day.
1352 if test "x$host_alias" != x
; then
1353 if test "x$build_alias" = x
; then
1354 cross_compiling
=maybe
1355 elif test "x$build_alias" != "x$host_alias"; then
1361 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1363 test "$silent" = yes && exec 6>/dev
/null
1366 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1367 ac_ls_di
=`ls -di .` &&
1368 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1369 as_fn_error $?
"working directory cannot be determined"
1370 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1371 as_fn_error $?
"pwd does not report name of working directory"
1374 # Find the source files, if location was not specified.
1375 if test -z "$srcdir"; then
1376 ac_srcdir_defaulted
=yes
1377 # Try the directory containing this script, then the parent directory.
1378 ac_confdir
=`$as_dirname -- "$as_myself" ||
1379 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1380 X"$as_myself" : 'X\(//\)[^/]' \| \
1381 X"$as_myself" : 'X\(//\)$' \| \
1382 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1383 $as_echo X"$as_myself" |
1384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1402 if test ! -r "$srcdir/$ac_unique_file"; then
1406 ac_srcdir_defaulted
=no
1408 if test ! -r "$srcdir/$ac_unique_file"; then
1409 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1410 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1412 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1414 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1416 # When building in place, set srcdir=.
1417 if test "$ac_abs_confdir" = "$ac_pwd"; then
1420 # Remove unnecessary trailing slashes from srcdir.
1421 # Double slashes in file names in object file debugging info
1422 # mess up M-x gdb in Emacs.
1424 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1426 for ac_var
in $ac_precious_vars; do
1427 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1428 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1429 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1430 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1434 # Report the --help message.
1436 if test "$ac_init_help" = "long"; then
1437 # Omit some internal or obsolete options to make the list less imposing.
1438 # This message is too long to be a string in the A/UX 3.1 sh.
1440 \`configure' configures PostgreSQL 13devel to adapt to many kinds of systems.
1442 Usage: $0 [OPTION]... [VAR=VALUE]...
1444 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1445 VAR=VALUE. See below for descriptions of some of the useful variables.
1447 Defaults for the options are specified in brackets.
1450 -h, --help display this help and exit
1451 --help=short display options specific to this package
1452 --help=recursive display the short help of all the included packages
1453 -V, --version display version information and exit
1454 -q, --quiet, --silent do not print \`checking ...' messages
1455 --cache-file=FILE cache test results in FILE [disabled]
1456 -C, --config-cache alias for \`--cache-file=config.cache'
1457 -n, --no-create do not create output files
1458 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1460 Installation directories:
1461 --prefix=PREFIX install architecture-independent files in PREFIX
1462 [$ac_default_prefix]
1463 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1466 By default, \`make install' will install all the files in
1467 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1468 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1469 for instance \`--prefix=\$HOME'.
1471 For better control, use the options below.
1473 Fine tuning of the installation directories:
1474 --bindir=DIR user executables [EPREFIX/bin]
1475 --sbindir=DIR system admin executables [EPREFIX/sbin]
1476 --libexecdir=DIR program executables [EPREFIX/libexec]
1477 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1478 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1479 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1480 --libdir=DIR object code libraries [EPREFIX/lib]
1481 --includedir=DIR C header files [PREFIX/include]
1482 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1483 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1484 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1485 --infodir=DIR info documentation [DATAROOTDIR/info]
1486 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1487 --mandir=DIR man documentation [DATAROOTDIR/man]
1488 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1489 --htmldir=DIR html documentation [DOCDIR]
1490 --dvidir=DIR dvi documentation [DOCDIR]
1491 --pdfdir=DIR pdf documentation [DOCDIR]
1492 --psdir=DIR ps documentation [DOCDIR]
1498 --build=BUILD configure
for building on BUILD
[guessed
]
1499 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1503 if test -n "$ac_init_help"; then
1504 case $ac_init_help in
1505 short | recursive
) echo "Configuration of PostgreSQL 13devel:";;
1510 --disable-option-checking ignore unrecognized
--enable/--with options
1511 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1512 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1513 --disable-integer-datetimes
1514 obsolete option
, no longer supported
1515 --enable-nls[=LANGUAGES
]
1516 enable Native Language Support
1517 --disable-rpath do not embed shared library search path
in
1519 --disable-spinlocks do not use spinlocks
1520 --disable-atomics do not use atomic operations
1521 --enable-debug build with debugging symbols
(-g)
1522 --enable-profiling build with profiling enabled
1523 --enable-coverage build with coverage testing instrumentation
1524 --enable-dtrace build with DTrace support
1525 --enable-tap-tests enable TAP tests
(requires Perl and IPC
::Run
)
1526 --enable-depend turn on automatic dependency tracking
1527 --enable-cassert enable assertion checks
(for debugging
)
1528 --disable-thread-safety disable thread-safety
in client libraries
1529 --disable-largefile omit support
for large files
1532 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1533 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1534 --with-extra-version=STRING
1535 append STRING to version
1536 --with-template=NAME override operating system template
1537 --with-includes=DIRS
look for additional header files
in DIRS
1538 --with-libraries=DIRS
look for additional libraries
in DIRS
1539 --with-libs=DIRS alternative spelling of
--with-libraries
1540 --with-pgport=PORTNUM
set default port number
[5432]
1541 --with-blocksize=BLOCKSIZE
1542 set table block size
in kB
[8]
1543 --with-segsize=SEGSIZE
set table segment size
in GB
[1]
1544 --with-wal-blocksize=BLOCKSIZE
1545 set WAL block size
in kB
[8]
1546 --with-CC=CMD
set compiler
(deprecated
)
1547 --with-llvm build with LLVM based JIT support
1548 --with-icu build with ICU support
1549 --with-tcl build Tcl modules
(PL
/Tcl
)
1550 --with-tclconfig=DIR tclConfig.sh is
in DIR
1551 --with-perl build Perl modules
(PL
/Perl
)
1552 --with-python build Python modules
(PL
/Python
)
1553 --with-gssapi build with GSSAPI support
1554 --with-krb-srvnam=NAME default service principal name
in Kerberos
(GSSAPI
)
1556 --with-pam build with PAM support
1557 --with-bsd-auth build with BSD Authentication support
1558 --with-ldap build with LDAP support
1559 --with-bonjour build with Bonjour support
1560 --with-openssl build with OpenSSL support
1561 --with-selinux build with SELinux support
1562 --with-systemd build with systemd support
1563 --without-readline do not use GNU Readline nor BSD Libedit
for editing
1564 --with-libedit-preferred
1565 prefer BSD Libedit over GNU Readline
1566 --with-uuid=LIB build contrib
/uuid-ossp using LIB
(bsd
,e2fs
,ossp
)
1567 --with-ossp-uuid obsolete spelling of
--with-uuid=ossp
1568 --with-libxml build with XML support
1569 --with-libxslt use XSLT support when building contrib
/xml2
1570 --with-system-tzdata=DIR
1571 use system
time zone data
in DIR
1572 --without-zlib do not use Zlib
1573 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1575 Some influential environment variables
:
1576 CC C compiler
command
1577 CFLAGS C compiler flags
1578 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1579 nonstandard directory
<lib dir
>
1580 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1581 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1582 you have headers
in a nonstandard directory
<include dir
>
1583 CXX C
++ compiler
command
1584 CXXFLAGS C
++ compiler flags
1585 LLVM_CONFIG path to llvm-config
command
1586 CLANG path to clang compiler to generate bitcode
1588 PKG_CONFIG path to pkg-config utility
1590 directories to add to pkg-config
's search path
1592 path overriding pkg-config's built-in search path
1593 ICU_CFLAGS C compiler flags
for ICU
, overriding pkg-config
1594 ICU_LIBS linker flags
for ICU
, overriding pkg-config
1595 XML2_CONFIG path to xml2-config utility
1596 XML2_CFLAGS C compiler flags
for XML2
, overriding pkg-config
1597 XML2_LIBS linker flags
for XML2
, overriding pkg-config
1598 LDFLAGS_EX extra linker flags
for linking executables only
1599 LDFLAGS_SL extra linker flags
for linking shared libraries only
1601 PYTHON Python program
1602 MSGFMT msgfmt program
for NLS
1603 TCLSH Tcl interpreter program
(tclsh
)
1605 Use these variables to override the choices made by
`configure' or to help
1606 it to find libraries and programs with nonstandard names/locations.
1608 Report bugs to <pgsql-bugs@lists.postgresql.org>.
1609 PostgreSQL home page: <https://www.postgresql.org/>.
1614 if test "$ac_init_help" = "recursive"; then
1615 # If there are subdirs, report their specific --help.
1616 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1617 test -d "$ac_dir" ||
1618 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1623 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1625 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1626 # A ".." for each directory in $ac_dir_suffix.
1627 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1628 case $ac_top_builddir_sub in
1629 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1630 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1633 ac_abs_top_builddir=$ac_pwd
1634 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1635 # for backward compatibility:
1636 ac_top_builddir=$ac_top_build_prefix
1639 .) # We are building in place.
1641 ac_top_srcdir=$ac_top_builddir_sub
1642 ac_abs_top_srcdir=$ac_pwd ;;
1643 [\\/]* | ?:[\\/]* ) # Absolute name.
1644 ac_srcdir=$srcdir$ac_dir_suffix;
1645 ac_top_srcdir=$srcdir
1646 ac_abs_top_srcdir=$srcdir ;;
1648 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1649 ac_top_srcdir=$ac_top_build_prefix$srcdir
1650 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1652 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1654 cd "$ac_dir" || { ac_status=$?; continue; }
1655 # Check for guested configure.
1656 if test -f "$ac_srcdir/configure.gnu"; then
1658 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1659 elif test -f "$ac_srcdir/configure"; then
1661 $SHELL "$ac_srcdir/configure" --help=recursive
1663 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1665 cd "$ac_pwd" || { ac_status=$?; break; }
1669 test -n "$ac_init_help" && exit $ac_status
1670 if $ac_init_version; then
1672 PostgreSQL configure 13devel
1673 generated by GNU Autoconf 2.69
1675 Copyright (C) 2012 Free Software Foundation, Inc.
1676 This configure script is free software; the Free Software Foundation
1677 gives unlimited permission to copy, distribute and modify it.
1679 Copyright (c) 1996-2020, PostgreSQL Global Development Group
1684 ## ------------------------ ##
1685 ## Autoconf initialization. ##
1686 ## ------------------------ ##
1688 # ac_fn_c_try_compile LINENO
1689 # --------------------------
1690 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1691 ac_fn_c_try_compile ()
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 rm -f conftest.$ac_objext
1695 if { { ac_try="$ac_compile"
1697 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1698 *) ac_try_echo
=$ac_try;;
1700 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702 (eval "$ac_compile") 2>conftest.err
1704 if test -s conftest.err
; then
1705 grep -v '^ *+' conftest.err
>conftest.er1
1706 cat conftest.er1
>&5
1707 mv -f conftest.er1 conftest.err
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; } && {
1711 test -z "$ac_c_werror_flag" ||
1712 test ! -s conftest.err
1713 } && test -s conftest.
$ac_objext; then :
1716 $as_echo "$as_me: failed program was:" >&5
1717 sed 's/^/| /' conftest.
$ac_ext >&5
1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722 as_fn_set_status
$ac_retval
1724 } # ac_fn_c_try_compile
1726 # ac_fn_cxx_try_compile LINENO
1727 # ----------------------------
1728 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1729 ac_fn_cxx_try_compile
()
1731 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1732 rm -f conftest.
$ac_objext
1733 if { { ac_try
="$ac_compile"
1735 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_compile") 2>conftest.err
1742 if test -s conftest.err; then
1743 grep -v '^ *+' conftest.err >conftest.er1
1744 cat conftest.er1 >&5
1745 mv -f conftest.er1 conftest.err
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; } && {
1749 test -z "$ac_cxx_werror_flag" ||
1750 test ! -s conftest.err
1751 } && test -s conftest.$ac_objext; then :
1754 $as_echo "$as_me: failed program was:" >&5
1755 sed 's/^/| /' conftest.$ac_ext >&5
1759 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760 as_fn_set_status $ac_retval
1762 } # ac_fn_cxx_try_compile
1764 # ac_fn_c_try_link LINENO
1765 # -----------------------
1766 # Try to link conftest.$ac_ext, and return whether this succeeded.
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 rm -f conftest.$ac_objext conftest$ac_exeext
1771 if { { ac_try="$ac_link"
1773 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1774 *) ac_try_echo
=$ac_try;;
1776 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777 $as_echo "$ac_try_echo"; } >&5
1778 (eval "$ac_link") 2>conftest.err
1780 if test -s conftest.err
; then
1781 grep -v '^ *+' conftest.err
>conftest.er1
1782 cat conftest.er1
>&5
1783 mv -f conftest.er1 conftest.err
1785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786 test $ac_status = 0; } && {
1787 test -z "$ac_c_werror_flag" ||
1788 test ! -s conftest.err
1789 } && test -s conftest
$ac_exeext && {
1790 test "$cross_compiling" = yes ||
1791 test -x conftest
$ac_exeext
1795 $as_echo "$as_me: failed program was:" >&5
1796 sed 's/^/| /' conftest.
$ac_ext >&5
1800 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1801 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1802 # interfere with the next link command; also delete a directory that is
1803 # left behind by Apple's compiler. We do this before executing the actions.
1804 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1805 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1806 as_fn_set_status
$ac_retval
1808 } # ac_fn_c_try_link
1810 # ac_fn_c_try_cpp LINENO
1811 # ----------------------
1812 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1815 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1816 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1818 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1819 *) ac_try_echo=$ac_try;;
1821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1822 $as_echo "$ac_try_echo"; } >&5
1823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1825 if test -s conftest.err; then
1826 grep -v '^ *+' conftest.err >conftest.er1
1827 cat conftest.er1 >&5
1828 mv -f conftest.er1 conftest.err
1830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1831 test $ac_status = 0; } > conftest.i && {
1832 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1833 test ! -s conftest.err
1837 $as_echo "$as_me: failed program was:" >&5
1838 sed 's/^/| /' conftest.$ac_ext >&5
1842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1843 as_fn_set_status $ac_retval
1847 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1848 # -------------------------------------------------------
1849 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1850 # the include files in INCLUDES and setting the cache variable VAR
1852 ac_fn_c_check_header_mongrel ()
1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855 if eval \${$3+:} false; then :
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1857 $as_echo_n "checking for $2... " >&6; }
1858 if eval \${$3+:} false; then :
1859 $as_echo_n "(cached) " >&6
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1863 $as_echo "$ac_res" >&6; }
1865 # Is the header compilable?
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1867 $as_echo_n "checking $2 usability... " >&6; }
1868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869 /* end confdefs.h. */
1873 if ac_fn_c_try_compile "$LINENO"; then :
1874 ac_header_compiler=yes
1876 ac_header_compiler=no
1878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1880 $as_echo "$ac_header_compiler" >&6; }
1882 # Is the header present?
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1884 $as_echo_n "checking $2 presence... " >&6; }
1885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1886 /* end confdefs.h. */
1889 if ac_fn_c_try_cpp "$LINENO"; then :
1890 ac_header_preproc=yes
1892 ac_header_preproc=no
1894 rm -f conftest.err conftest.i conftest.$ac_ext
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1896 $as_echo "$ac_header_preproc" >&6; }
1898 # So? What about this header?
1899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1902 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1904 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1908 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1910 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1912 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1914 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1916 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1917 ( $as_echo "## ---------------------------------------------- ##
1918 ## Report this to pgsql-bugs@lists.postgresql.org ##
1919 ## ---------------------------------------------- ##"
1920 ) | sed "s/^/$as_me: WARNING: /" >&2
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1924 $as_echo_n "checking for $2... " >&6; }
1925 if eval \${$3+:} false; then :
1926 $as_echo_n "(cached) " >&6
1928 eval "$3=\$ac_header_compiler"
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1932 $as_echo "$ac_res" >&6; }
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936 } # ac_fn_c_check_header_mongrel
1938 # ac_fn_c_try_run LINENO
1939 # ----------------------
1940 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1941 # that executables *can* be run.
1944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945 if { { ac_try="$ac_link"
1947 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1948 *) ac_try_echo
=$ac_try;;
1950 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1951 $as_echo "$ac_try_echo"; } >&5
1952 (eval "$ac_link") 2>&5
1954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1955 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1956 { { case "(($ac_try" in
1957 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1958 *) ac_try_echo=$ac_try;;
1960 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1961 $as_echo "$ac_try_echo"; } >&5
1962 (eval "$ac_try") 2>&5
1964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1965 test $ac_status = 0; }; }; then :
1968 $as_echo "$as_me: program exited with status $ac_status" >&5
1969 $as_echo "$as_me: failed program was:" >&5
1970 sed 's/^/| /' conftest.$ac_ext >&5
1972 ac_retval=$ac_status
1974 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1975 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1976 as_fn_set_status $ac_retval
1980 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1981 # -------------------------------------------------------
1982 # Tests whether HEADER exists and can be compiled using the include files in
1983 # INCLUDES, setting the cache variable VAR accordingly.
1984 ac_fn_c_check_header_compile ()
1986 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1988 $as_echo_n "checking for $2... " >&6; }
1989 if eval \${$3+:} false; then :
1990 $as_echo_n "(cached) " >&6
1992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1993 /* end confdefs.h. */
1997 if ac_fn_c_try_compile "$LINENO"; then :
2002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2006 $as_echo "$ac_res" >&6; }
2007 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2009 } # ac_fn_c_check_header_compile
2011 # ac_fn_c_check_func LINENO FUNC VAR
2012 # ----------------------------------
2013 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2014 ac_fn_c_check_func ()
2016 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2018 $as_echo_n "checking for $2... " >&6; }
2019 if eval \${$3+:} false; then :
2020 $as_echo_n "(cached) " >&6
2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023 /* end confdefs.h. */
2024 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2026 #define $2 innocuous_$2
2028 /* System header to define __stub macros and hopefully few prototypes,
2029 which can conflict with char $2 (); below.
2030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2031 <limits.h> exists even on freestanding compilers. */
2034 # include <limits.h>
2036 # include <assert.h>
2041 /* Override any GCC internal prototype to avoid an error.
2042 Use char because int might match the return type of a GCC
2043 builtin and then its argument prototype would still apply. */
2048 /* The GNU C library defines this for functions which it implements
2049 to always fail with ENOSYS. Some functions are actually named
2050 something starting with __ and the normal name is an alias. */
2051 #if defined __stub_$2 || defined __stub___$2
2063 if ac_fn_c_try_link "$LINENO"; then :
2068 rm -f core conftest.err conftest.$ac_objext \
2069 conftest$ac_exeext conftest.$ac_ext
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2073 $as_echo "$ac_res" >&6; }
2074 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2076 } # ac_fn_c_check_func
2078 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2079 # -------------------------------------------
2080 # Tests whether TYPE exists after having included INCLUDES, setting cache
2081 # variable VAR accordingly.
2082 ac_fn_c_check_type ()
2084 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2086 $as_echo_n "checking for $2... " >&6; }
2087 if eval \${$3+:} false; then :
2088 $as_echo_n "(cached) " >&6
2091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092 /* end confdefs.h. */
2103 if ac_fn_c_try_compile "$LINENO"; then :
2104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2105 /* end confdefs.h. */
2116 if ac_fn_c_try_compile "$LINENO"; then :
2121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2127 $as_echo "$ac_res" >&6; }
2128 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2130 } # ac_fn_c_check_type
2132 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2133 # ----------------------------------------------------
2134 # Tries to find if the field MEMBER exists in type AGGR, after including
2135 # INCLUDES, setting cache variable VAR accordingly.
2136 ac_fn_c_check_member ()
2138 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2140 $as_echo_n "checking for $2.$3... " >&6; }
2141 if eval \${$4+:} false; then :
2142 $as_echo_n "(cached) " >&6
2144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2145 /* end confdefs.h. */
2157 if ac_fn_c_try_compile "$LINENO"; then :
2160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161 /* end confdefs.h. */
2167 if (sizeof ac_aggr.$3)
2173 if ac_fn_c_try_compile "$LINENO"; then :
2178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2184 $as_echo "$ac_res" >&6; }
2185 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2187 } # ac_fn_c_check_member
2189 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2190 # --------------------------------------------
2191 # Tries to find the compile-time value of EXPR in a program that includes
2192 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2194 ac_fn_c_compute_int ()
2196 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2197 if test "$cross_compiling" = yes; then
2198 # Depending upon the size, compute the lo and hi bounds.
2199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200 /* end confdefs.h. */
2205 static int test_array [1 - 2 * !(($2) >= 0)];
2207 return test_array [0];
2213 if ac_fn_c_try_compile "$LINENO"; then :
2216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2217 /* end confdefs.h. */
2222 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2224 return test_array [0];
2230 if ac_fn_c_try_compile "$LINENO"; then :
2231 ac_hi=$ac_mid; break
2233 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2234 if test $ac_lo -le $ac_mid; then
2238 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244 /* end confdefs.h. */
2249 static int test_array [1 - 2 * !(($2) < 0)];
2251 return test_array [0];
2257 if ac_fn_c_try_compile "$LINENO"; then :
2260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2261 /* end confdefs.h. */
2266 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2268 return test_array [0];
2274 if ac_fn_c_try_compile "$LINENO"; then :
2275 ac_lo=$ac_mid; break
2277 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2278 if test $ac_mid -le $ac_hi; then
2282 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2292 # Binary search between lo and hi bounds.
2293 while test "x$ac_lo" != "x$ac_hi"; do
2294 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2296 /* end confdefs.h. */
2301 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2303 return test_array [0];
2309 if ac_fn_c_try_compile "$LINENO"; then :
2312 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2317 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2322 /* end confdefs.h. */
2324 static long int longval () { return $2; }
2325 static unsigned long int ulongval () { return $2; }
2332 FILE *f = fopen ("conftest.val", "w");
2337 long int i = longval ();
2340 fprintf (f, "%ld", i);
2344 unsigned long int i = ulongval ();
2347 fprintf (f, "%lu", i);
2349 /* Do not output a trailing newline, as this causes \r\n confusion
2350 on some platforms. */
2351 return ferror (f) || fclose (f) != 0;
2357 if ac_fn_c_try_run "$LINENO"; then :
2358 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2362 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2363 conftest.$ac_objext conftest.beam conftest.$ac_ext
2367 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2368 as_fn_set_status $ac_retval
2370 } # ac_fn_c_compute_int
2372 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2373 # ---------------------------------------------
2374 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2376 ac_fn_c_check_decl ()
2378 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2379 # Initialize each $ac_[]_AC_LANG_ABBREV[]_decl_warn_flag once.
2380 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2381 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2383 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2384 if eval \${$3+:} false; then :
2385 $as_echo_n "(cached) " >&6
2387 ac_save_werror_flag=$ac_c_werror_flag
2388 ac_c_werror_flag="$ac_c_decl_warn_flag$ac_c_werror_flag"
2389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2390 /* end confdefs.h. */
2395 #ifndef $as_decl_name
2397 (void) $as_decl_use;
2399 (void) $as_decl_name;
2407 if ac_fn_c_try_compile "$LINENO"; then :
2412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2413 ac_c_werror_flag=$ac_save_werror_flag
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2417 $as_echo "$ac_res" >&6; }
2418 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2420 } # ac_fn_c_check_decl
2421 cat >config.log <<_ACEOF
2422 This file contains any messages produced by compilers while
2423 running configure, to aid debugging if configure makes a mistake.
2425 It was created by PostgreSQL $as_me 13devel, which was
2426 generated by GNU Autoconf 2.69. Invocation command line was
2438 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2439 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2440 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2441 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2442 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2444 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2445 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2447 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2448 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2449 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2450 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2451 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2452 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2453 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461 test -z "$as_dir" && as_dir=.
2462 $as_echo "PATH: $as_dir"
2478 # Keep a trace of the command line.
2479 # Strip out --no-create and --no-recursion so they do not pile up.
2480 # Strip out --silent because we don't want to record it for future runs.
2481 # Also quote any args containing shell meta-characters.
2482 # Make two passes to allow for proper duplicate-argument suppression.
2486 ac_must_keep_next=false
2492 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2493 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2494 | -silent | --silent | --silen | --sile | --sil)
2497 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2500 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2502 as_fn_append ac_configure_args1 " '$ac_arg'"
2503 if test $ac_must_keep_next = true; then
2504 ac_must_keep_next=false # Got value, back to normal.
2507 *=* | --config-cache | -C | -disable-* | --disable-* \
2508 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2509 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2510 | -with-* | --with-* | -without-* | --without-* | --x)
2511 case "$ac_configure_args0 " in
2512 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2515 -* ) ac_must_keep_next=true ;;
2518 as_fn_append ac_configure_args " '$ac_arg'"
2523 { ac_configure_args0=; unset ac_configure_args0;}
2524 { ac_configure_args1=; unset ac_configure_args1;}
2526 # When interrupted or exit'd, cleanup temporary files, and complete
2527 # config.log. We remove comments because anyway the quotes in there
2528 # would cause problems or look ugly.
2529 # WARNING: Use '\'' to represent an apostrophe within the trap.
2530 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2531 trap 'exit_status=$?
2532 # Save into config.log some information that might help in debugging.
2536 $as_echo "## ---------------- ##
2537 ## Cache variables. ##
2538 ## ---------------- ##"
2540 # The following way of writing the cache mishandles newlines in values,
2542 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2543 eval ac_val=\$$ac_var
2547 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2548 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2551 _ | IFS | as_nl) ;; #(
2552 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2553 *) { eval $ac_var=; unset $ac_var;} ;;
2558 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2559 *${as_nl}ac_space=\ *)
2561 "s/'\''/'\''\\\\'\'''\''/g;
2562 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2565 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2572 $as_echo "## ----------------- ##
2573 ## Output variables. ##
2574 ## ----------------- ##"
2576 for ac_var in $ac_subst_vars
2578 eval ac_val=\$$ac_var
2580 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2582 $as_echo "$ac_var='\''$ac_val'\''"
2586 if test -n "$ac_subst_files"; then
2587 $as_echo "## ------------------- ##
2588 ## File substitutions. ##
2589 ## ------------------- ##"
2591 for ac_var in $ac_subst_files
2593 eval ac_val=\$$ac_var
2595 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2597 $as_echo "$ac_var='\''$ac_val'\''"
2602 if test -s confdefs.h; then
2603 $as_echo "## ----------- ##
2610 test "$ac_signal" != 0 &&
2611 $as_echo "$as_me: caught signal $ac_signal"
2612 $as_echo "$as_me: exit $exit_status"
2614 rm -f core *.core core.conftest.* &&
2615 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2618 for ac_signal in 1 2 13 15; do
2619 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2623 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2624 rm -f -r conftest* confdefs.h
2626 $as_echo "/* confdefs.h */" > confdefs.h
2628 # Predefined preprocessor variables.
2630 cat >>confdefs.h <<_ACEOF
2631 #define PACKAGE_NAME "$PACKAGE_NAME"
2634 cat >>confdefs.h <<_ACEOF
2635 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2638 cat >>confdefs.h <<_ACEOF
2639 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2642 cat >>confdefs.h <<_ACEOF
2643 #define PACKAGE_STRING "$PACKAGE_STRING"
2646 cat >>confdefs.h <<_ACEOF
2647 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2650 cat >>confdefs.h <<_ACEOF
2651 #define PACKAGE_URL "$PACKAGE_URL"
2655 # Let the site file select an alternate cache file if it wants to.
2656 # Prefer an explicitly selected file to automatically selected ones.
2659 if test -n "$CONFIG_SITE"; then
2660 # We do not want a PATH search for config.site.
2661 case $CONFIG_SITE in #((
2662 -*) ac_site_file1=./$CONFIG_SITE;;
2663 */*) ac_site_file1=$CONFIG_SITE;;
2664 *) ac_site_file1=./$CONFIG_SITE;;
2666 elif test "x$prefix" != xNONE; then
2667 ac_site_file1=$prefix/share/config.site
2668 ac_site_file2=$prefix/etc/config.site
2670 ac_site_file1=$ac_default_prefix/share/config.site
2671 ac_site_file2=$ac_default_prefix/etc/config.site
2673 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2675 test "x$ac_site_file" = xNONE && continue
2676 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2678 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2679 sed 's/^/| /' "$ac_site_file" >&5
2681 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2682 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2683 as_fn_error $? "failed to load site
script $ac_site_file
2684 See \
`config.log' for more details" "$LINENO" 5; }
2688 if test -r "$cache_file"; then
2689 # Some versions of bash will fail to source /dev/null (special files
2690 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2691 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2693 $as_echo "$as_me: loading cache $cache_file" >&6;}
2695 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2696 *) . "./$cache_file";;
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2701 $as_echo "$as_me: creating cache $cache_file" >&6;}
2705 # Check that the precious variables saved in the cache have kept the same
2707 ac_cache_corrupted=false
2708 for ac_var in $ac_precious_vars; do
2709 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2710 eval ac_new_set=\$ac_env_${ac_var}_set
2711 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2712 eval ac_new_val=\$ac_env_${ac_var}_value
2713 case $ac_old_set,$ac_new_set in
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2716 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2717 ac_cache_corrupted=: ;;
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2720 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2721 ac_cache_corrupted=: ;;
2724 if test "x$ac_old_val" != "x$ac_new_val"; then
2725 # differences in whitespace do not lead to failure.
2726 ac_old_val_w=`echo x
$ac_old_val`
2727 ac_new_val_w=`echo x
$ac_new_val`
2728 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2730 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2731 ac_cache_corrupted=:
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2734 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2735 eval $ac_var=\$ac_old_val
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2738 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2740 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2743 # Pass precious variables to config.status.
2744 if test "$ac_new_set" = set; then
2746 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2747 *) ac_arg=$ac_var=$ac_new_val ;;
2749 case " $ac_configure_args " in
2750 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2751 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2755 if $ac_cache_corrupted; then
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2757 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2759 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2760 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2762 ## -------------------- ##
2763 ## Main body of script. ##
2764 ## -------------------- ##
2767 ac_cpp='$CPP $CPPFLAGS'
2768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2778 for ac_dir in config "$srcdir"/config; do
2779 if test -f "$ac_dir/install-sh"; then
2781 ac_install_sh="$ac_aux_dir/install-sh -c"
2783 elif test -f "$ac_dir/install.sh"; then
2785 ac_install_sh="$ac_aux_dir/install.sh -c"
2787 elif test -f "$ac_dir/shtool"; then
2789 ac_install_sh="$ac_aux_dir/shtool install -c"
2793 if test -z "$ac_aux_dir"; then
2794 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2797 # These three variables are undocumented and unsupported,
2798 # and are intended to be withdrawn in a future Autoconf release.
2799 # They can cause serious problems if a builder's source tree is in a directory
2800 # whose full name contains unusual characters.
2801 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2802 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2803 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2808 cat >>confdefs.h <<_ACEOF
2809 #define CONFIGURE_ARGS "$ac_configure_args"
2813 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\)'`
2814 PG_MINORVERSION=`expr "$PACKAGE_VERSION" : '.*\.\([0-9][0-9]*\)'`
2815 test -n "$PG_MINORVERSION" || PG_MINORVERSION=0
2818 cat >>confdefs.h <<_ACEOF
2819 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2823 cat >>confdefs.h <<_ACEOF
2824 #define PG_MAJORVERSION_NUM $PG_MAJORVERSION
2828 cat >>confdefs.h <<_ACEOF
2829 #define PG_MINORVERSION_NUM $PG_MINORVERSION
2836 # Check whether --with-extra-version was given.
2837 if test "${with_extra_version+set}" = set; then :
2838 withval=$with_extra_version;
2841 as_fn_error $? "argument required for --with-extra-version option" "$LINENO" 5
2844 as_fn_error $? "argument required for --with-extra-version option" "$LINENO" 5
2847 PG_VERSION="$PACKAGE_VERSION$withval"
2852 PG_VERSION="$PACKAGE_VERSION"
2857 cat >>confdefs.h <<_ACEOF
2858 #define PG_VERSION "$PG_VERSION"
2862 # Make sure we can run config.sub.
2863 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2864 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2867 $as_echo_n "checking build system type... " >&6; }
2868 if ${ac_cv_build+:} false; then :
2869 $as_echo_n "(cached) " >&6
2871 ac_build_alias=$build_alias
2872 test "x$ac_build_alias" = x &&
2873 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2874 test "x$ac_build_alias" = x &&
2875 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2876 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2877 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2881 $as_echo "$ac_cv_build" >&6; }
2882 case $ac_cv_build in
2884 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2887 ac_save_IFS=$IFS; IFS='-'
2893 # Remember, the first character of IFS is used to create $*,
2894 # except with old shells:
2897 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2901 $as_echo_n "checking host system type... " >&6; }
2902 if ${ac_cv_host+:} false; then :
2903 $as_echo_n "(cached) " >&6
2905 if test "x$host_alias" = x; then
2906 ac_cv_host=$ac_cv_build
2908 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2909 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2914 $as_echo "$ac_cv_host" >&6; }
2917 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2920 ac_save_IFS=$IFS; IFS='-'
2926 # Remember, the first character of IFS is used to create $*,
2927 # except with old shells:
2930 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which template to use" >&5
2936 $as_echo_n "checking which template to use... " >&6; }
2941 # Check whether --with-template was given.
2942 if test "${with_template+set}" = set; then :
2943 withval=$with_template;
2946 as_fn_error $? "argument required for --with-template option" "$LINENO" 5
2949 as_fn_error $? "argument required for --with-template option" "$LINENO" 5
2954 list) echo; ls "$srcdir/src/template"; exit;;
2955 *) if test -f "$srcdir/src/template/$with_template" ; then
2958 as_fn_error $? "'$withval' is not a valid template name. Use 'list' for a list." "$LINENO" 5
2967 # --with-template not given
2970 aix*) template=aix ;;
2971 cygwin*|msys*) template=cygwin ;;
2972 darwin*) template=darwin ;;
2973 dragonfly*) template=netbsd ;;
2974 freebsd*) template=freebsd ;;
2975 hpux*) template=hpux ;;
2976 linux*|gnu*|k*bsd*-gnu)
2978 mingw*) template=win32 ;;
2979 netbsd*) template=netbsd ;;
2980 openbsd*) template=openbsd ;;
2981 solaris*) template=solaris ;;
2984 if test x"$template" = x"" ; then
2986 *******************************************************************
2987 PostgreSQL has apparently not been ported to your platform yet.
2988 To try a manual configuration, look into the src/template directory
2989 for a similar platform and use the '--with-template=' option.
2991 Please also contact <pgsql-bugs@lists.postgresql.org> to see about
2992 rectifying this. Include the above 'checking host system type...'
2994 *******************************************************************
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $template" >&5
3004 $as_echo "$template" >&6; }
3009 # Initialize default assumption that we do not need separate assembly code
3010 # for TAS (test-and-set). This can be overridden by the template file
3011 # when it's executed.
3018 ## Command line options
3022 # Add non-standard directories to the include path
3027 # Check whether --with-includes was given.
3028 if test "${with_includes+set}" = set; then :
3029 withval=$with_includes;
3032 as_fn_error $? "argument required for --with-includes option" "$LINENO" 5
3035 as_fn_error $? "argument required for --with-includes option" "$LINENO" 5
3048 # Add non-standard directories to the library search path
3053 # Check whether --with-libraries was given.
3054 if test "${with_libraries+set}" = set; then :
3055 withval=$with_libraries;
3058 as_fn_error $? "argument required for --with-libraries option" "$LINENO" 5
3061 as_fn_error $? "argument required for --with-libraries option" "$LINENO" 5
3064 LIBRARY_DIRS=$withval
3075 # Check whether --with-libs was given.
3076 if test "${with_libs+set}" = set; then :
3080 as_fn_error $? "argument required for --with-libs option" "$LINENO" 5
3083 as_fn_error $? "argument required for --with-libs option" "$LINENO" 5
3086 LIBRARY_DIRS=$withval
3096 # 64-bit integer date/time storage is now the only option, but to avoid
3097 # unnecessary breakage of build scripts, continue to accept an explicit
3098 # "--enable-integer-datetimes" switch.
3102 # Check whether --enable-integer-datetimes was given.
3103 if test "${enable_integer_datetimes+set}" = set; then :
3104 enableval=$enable_integer_datetimes;
3110 as_fn_error $? "--disable-integer-datetimes is no longer supported" "$LINENO" 5
3113 as_fn_error $? "no argument expected for --enable-integer-datetimes option" "$LINENO" 5
3118 enable_integer_datetimes=yes
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is wanted" >&5
3129 $as_echo_n "checking whether NLS is wanted... " >&6; }
3132 # Check whether --enable-nls was given.
3133 if test "${enable_nls+set}" = set; then :
3134 enableval=$enable_nls;
3144 WANTED_LANGUAGES=$enableval
3154 if test "$enable_nls" = yes; then
3156 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nls" >&5
3161 $as_echo "$enable_nls" >&6; }
3166 # Default port number (--with-pgport), default 5432
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default port number" >&5
3169 $as_echo_n "checking for default port number... " >&6; }
3173 # Check whether --with-pgport was given.
3174 if test "${with_pgport+set}" = set; then :
3175 withval=$with_pgport;
3178 as_fn_error $? "argument required for --with-pgport option" "$LINENO" 5
3181 as_fn_error $? "argument required for --with-pgport option" "$LINENO" 5
3184 default_port=$withval
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $default_port" >&5
3194 $as_echo "$default_port" >&6; }
3195 # Need both of these because some places want an integer and some a string
3197 cat >>confdefs.h <<_ACEOF
3198 #define DEF_PGPORT ${default_port}
3202 cat >>confdefs.h <<_ACEOF
3203 #define DEF_PGPORT_STR "${default_port}"
3208 # It's worth validating port; you can get very confusing errors otherwise
3209 if test x"$default_port" = x""; then
3210 as_fn_error $? "invalid --with-pgport specification: empty string" "$LINENO" 5
3211 elif test ! x`echo "$default_port" |
sed -e 's/[0-9]*//'` = x""; then
3212 as_fn_error $? "invalid --with-pgport specification: must be a number" "$LINENO" 5
3213 elif test ! x`echo "$default_port" |
sed -e 's/^0.//'` = x"$default_port"; then
3214 as_fn_error $? "invalid --with-pgport specification: must not have leading 0" "$LINENO" 5
3215 elif test "$default_port" -lt "1" -o "$default_port" -gt "65535"; then
3216 as_fn_error $? "invalid --with-pgport specification: must be between 1 and 65535" "$LINENO" 5
3220 # '-rpath'-like feature can be disabled
3224 # Check whether --enable-rpath was given.
3225 if test "${enable_rpath+set}" = set; then :
3226 enableval=$enable_rpath;
3235 as_fn_error $? "no argument expected for --enable-rpath option" "$LINENO" 5
3252 # Check whether --enable-spinlocks was given.
3253 if test "${enable_spinlocks+set}" = set; then :
3254 enableval=$enable_spinlocks;
3263 as_fn_error $? "no argument expected for --enable-spinlocks option" "$LINENO" 5
3268 enable_spinlocks=yes
3279 # Check whether --enable-atomics was given.
3280 if test "${enable_atomics+set}" = set; then :
3281 enableval=$enable_atomics;
3290 as_fn_error $? "no argument expected for --enable-atomics option" "$LINENO" 5
3302 # --enable-debug adds -g to compiler flags
3306 # Check whether --enable-debug was given.
3307 if test "${enable_debug+set}" = set; then :
3308 enableval=$enable_debug;
3317 as_fn_error $? "no argument expected for --enable-debug option" "$LINENO" 5
3330 # --enable-profiling enables gcc profiling
3334 # Check whether --enable-profiling was given.
3335 if test "${enable_profiling+set}" = set; then :
3336 enableval=$enable_profiling;
3345 as_fn_error $? "no argument expected for --enable-profiling option" "$LINENO" 5
3357 # --enable-coverage enables generation of code coverage metrics with gcov
3361 # Check whether --enable-coverage was given.
3362 if test "${enable_coverage+set}" = set; then :
3363 enableval=$enable_coverage;
3366 if test -z "$GCOV"; then
3369 # Extract the first word of "$ac_prog", so it can be a program name with args.
3370 set dummy $ac_prog; ac_word=$2
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3372 $as_echo_n "checking for $ac_word... " >&6; }
3373 if ${ac_cv_path_GCOV+:} false; then :
3374 $as_echo_n "(cached) " >&6
3378 ac_cv_path_GCOV="$GCOV" # Let the user override the test with a path.
3381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3385 test -z "$as_dir" && as_dir=.
3386 for ac_exec_ext in '' $ac_executable_extensions; do
3387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3388 ac_cv_path_GCOV="$as_dir/$ac_word$ac_exec_ext"
3389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3399 GCOV=$ac_cv_path_GCOV
3400 if test -n "$GCOV"; then
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3402 $as_echo "$GCOV" >&6; }
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3405 $as_echo "no" >&6; }
3409 test -n "$GCOV" && break
3413 # Report the value of GCOV in configure's output in all cases.
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCOV" >&5
3415 $as_echo_n "checking for GCOV... " >&6; }
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3417 $as_echo "$GCOV" >&6; }
3420 if test -z "$GCOV"; then
3421 as_fn_error $? "gcov not found" "$LINENO" 5
3423 if test -z "$LCOV"; then
3426 # Extract the first word of "$ac_prog", so it can be a program name with args.
3427 set dummy $ac_prog; ac_word=$2
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3429 $as_echo_n "checking for $ac_word... " >&6; }
3430 if ${ac_cv_path_LCOV+:} false; then :
3431 $as_echo_n "(cached) " >&6
3435 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
3438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442 test -z "$as_dir" && as_dir=.
3443 for ac_exec_ext in '' $ac_executable_extensions; do
3444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3445 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
3446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3456 LCOV=$ac_cv_path_LCOV
3457 if test -n "$LCOV"; then
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3459 $as_echo "$LCOV" >&6; }
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3462 $as_echo "no" >&6; }
3466 test -n "$LCOV" && break
3470 # Report the value of LCOV in configure's output in all cases.
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCOV" >&5
3472 $as_echo_n "checking for LCOV... " >&6; }
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3474 $as_echo "$LCOV" >&6; }
3477 if test -z "$LCOV"; then
3478 as_fn_error $? "lcov not found" "$LINENO" 5
3480 if test -z "$GENHTML"; then
3481 for ac_prog in genhtml
3483 # Extract the first word of "$ac_prog", so it can be a program name with args.
3484 set dummy $ac_prog; ac_word=$2
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3486 $as_echo_n "checking for $ac_word... " >&6; }
3487 if ${ac_cv_path_GENHTML+:} false; then :
3488 $as_echo_n "(cached) " >&6
3492 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
3495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3499 test -z "$as_dir" && as_dir=.
3500 for ac_exec_ext in '' $ac_executable_extensions; do
3501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3502 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
3503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3513 GENHTML=$ac_cv_path_GENHTML
3514 if test -n "$GENHTML"; then
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3516 $as_echo "$GENHTML" >&6; }
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3519 $as_echo "no" >&6; }
3523 test -n "$GENHTML" && break
3527 # Report the value of GENHTML in configure's output in all cases.
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GENHTML" >&5
3529 $as_echo_n "checking for GENHTML... " >&6; }
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3531 $as_echo "$GENHTML" >&6; }
3534 if test -z "$GENHTML"; then
3535 as_fn_error $? "genhtml not found" "$LINENO" 5
3542 as_fn_error $? "no argument expected for --enable-coverage option" "$LINENO" 5
3559 # Check whether --enable-dtrace was given.
3560 if test "${enable_dtrace+set}" = set; then :
3561 enableval=$enable_dtrace;
3564 if test -z "$DTRACE"; then
3565 for ac_prog in dtrace
3567 # Extract the first word of "$ac_prog", so it can be a program name with args.
3568 set dummy $ac_prog; ac_word=$2
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3570 $as_echo_n "checking for $ac_word... " >&6; }
3571 if ${ac_cv_path_DTRACE+:} false; then :
3572 $as_echo_n "(cached) " >&6
3576 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
3579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3583 test -z "$as_dir" && as_dir=.
3584 for ac_exec_ext in '' $ac_executable_extensions; do
3585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3586 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
3587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3597 DTRACE=$ac_cv_path_DTRACE
3598 if test -n "$DTRACE"; then
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
3600 $as_echo "$DTRACE" >&6; }
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3603 $as_echo "no" >&6; }
3607 test -n "$DTRACE" && break
3611 # Report the value of DTRACE in configure's output in all cases.
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5
3613 $as_echo_n "checking for DTRACE... " >&6; }
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
3615 $as_echo "$DTRACE" >&6; }
3618 if test -z "$DTRACE"; then
3619 as_fn_error $? "dtrace not found" "$LINENO" 5
3627 as_fn_error $? "no argument expected for --enable-dtrace option" "$LINENO" 5
3644 # Check whether --enable-tap-tests was given.
3645 if test "${enable_tap_tests+set}" = set; then :
3646 enableval=$enable_tap_tests;
3655 as_fn_error $? "no argument expected for --enable-tap-tests option" "$LINENO" 5
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for block size" >&5
3671 $as_echo_n "checking for block size... " >&6; }
3675 # Check whether --with-blocksize was given.
3676 if test "${with_blocksize+set}" = set; then :
3677 withval=$with_blocksize;
3680 as_fn_error $? "argument required for --with-blocksize option" "$LINENO" 5
3683 as_fn_error $? "argument required for --with-blocksize option" "$LINENO" 5
3695 case ${blocksize} in
3702 *) as_fn_error $? "Invalid block size. Allowed values are 1,2,4,8,16,32." "$LINENO" 5
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${blocksize}kB" >&5
3705 $as_echo "${blocksize}kB" >&6; }
3708 cat >>confdefs.h <<_ACEOF
3709 #define BLCKSZ ${BLCKSZ}
3714 # Relation segment size
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for segment size" >&5
3717 $as_echo_n "checking for segment size... " >&6; }
3721 # Check whether --with-segsize was given.
3722 if test "${with_segsize+set}" = set; then :
3723 withval=$with_segsize;
3726 as_fn_error $? "argument required for --with-segsize option" "$LINENO" 5
3729 as_fn_error $? "argument required for --with-segsize option" "$LINENO" 5
3741 # this expression is set up to avoid unnecessary integer overflow
3742 # blocksize is already guaranteed to be a factor of 1024
3743 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
3744 test $? -eq 0 || exit 1
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${segsize}GB" >&5
3746 $as_echo "${segsize}GB" >&6; }
3749 cat >>confdefs.h <<_ACEOF
3750 #define RELSEG_SIZE ${RELSEG_SIZE}
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAL block size" >&5
3758 $as_echo_n "checking for WAL block size... " >&6; }
3762 # Check whether --with-wal-blocksize was given.
3763 if test "${with_wal_blocksize+set}" = set; then :
3764 withval=$with_wal_blocksize;
3767 as_fn_error $? "argument required for --with-wal-blocksize option" "$LINENO" 5
3770 as_fn_error $? "argument required for --with-wal-blocksize option" "$LINENO" 5
3773 wal_blocksize=$withval
3782 case ${wal_blocksize} in
3783 1) XLOG_BLCKSZ=1024;;
3784 2) XLOG_BLCKSZ=2048;;
3785 4) XLOG_BLCKSZ=4096;;
3786 8) XLOG_BLCKSZ=8192;;
3787 16) XLOG_BLCKSZ=16384;;
3788 32) XLOG_BLCKSZ=32768;;
3789 64) XLOG_BLCKSZ=65536;;
3790 *) as_fn_error $? "Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." "$LINENO" 5
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${wal_blocksize}kB" >&5
3793 $as_echo "${wal_blocksize}kB" >&6; }
3796 cat >>confdefs.h <<_ACEOF
3797 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
3805 # For historical reasons you can also use --with-CC to specify the C compiler
3806 # to use, although the standard way to do this is to set the CC environment
3811 # Check whether --with-CC was given.
3812 if test "${with_CC+set}" = set; then :
3816 as_fn_error $? "argument required for --with-CC option" "$LINENO" 5
3819 as_fn_error $? "argument required for --with-CC option" "$LINENO" 5
3831 aix) pgac_cc_list="gcc xlc"; pgac_cxx_list="g++ xlC";;
3832 *) pgac_cc_list="gcc cc"; pgac_cxx_list="g++ c++";;
3836 ac_cpp='$CPP $CPPFLAGS'
3837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3840 if test -n "$ac_tool_prefix"; then
3841 for ac_prog in $pgac_cc_list
3843 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3844 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3846 $as_echo_n "checking for $ac_word... " >&6; }
3847 if ${ac_cv_prog_CC+:} false; then :
3848 $as_echo_n "(cached) " >&6
3850 if test -n "$CC"; then
3851 ac_cv_prog_CC="$CC" # Let the user override the test.
3853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3857 test -z "$as_dir" && as_dir=.
3858 for ac_exec_ext in '' $ac_executable_extensions; do
3859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3860 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3871 if test -n "$CC"; then
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3873 $as_echo "$CC" >&6; }
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3876 $as_echo "no" >&6; }
3880 test -n "$CC" && break
3883 if test -z "$CC"; then
3885 for ac_prog in $pgac_cc_list
3887 # Extract the first word of "$ac_prog", so it can be a program name with args.
3888 set dummy $ac_prog; ac_word=$2
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3890 $as_echo_n "checking for $ac_word... " >&6; }
3891 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3892 $as_echo_n "(cached) " >&6
3894 if test -n "$ac_ct_CC"; then
3895 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3901 test -z "$as_dir" && as_dir=.
3902 for ac_exec_ext in '' $ac_executable_extensions; do
3903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3904 ac_cv_prog_ac_ct_CC="$ac_prog"
3905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3914 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3915 if test -n "$ac_ct_CC"; then
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3917 $as_echo "$ac_ct_CC" >&6; }
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3920 $as_echo "no" >&6; }
3924 test -n "$ac_ct_CC" && break
3927 if test "x$ac_ct_CC" = x; then
3930 case $cross_compiling:$ac_tool_warned in
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3933 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3934 ac_tool_warned=yes ;;
3941 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3943 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3944 See \
`config.log' for more details" "$LINENO" 5; }
3946 # Provide some information about the compiler.
3947 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3950 for ac_option in --version -v -V -qversion; do
3951 { { ac_try="$ac_compiler $ac_option >&5"
3953 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3954 *) ac_try_echo
=$ac_try;;
3956 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3957 $as_echo "$ac_try_echo"; } >&5
3958 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3960 if test -s conftest.err
; then
3962 ... rest of stderr output deleted ...
3963 10q' conftest.err
>conftest.er1
3964 cat conftest.er1
>&5
3966 rm -f conftest.er1 conftest.err
3967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3968 test $ac_status = 0; }
3971 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3972 /* end confdefs.h. */
3982 ac_clean_files_save
=$ac_clean_files
3983 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3984 # Try to create an executable without -o first, disregard a.out.
3985 # It will help us diagnose broken compilers, and finding out an intuition
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3988 $as_echo_n "checking whether the C compiler works... " >&6; }
3989 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3991 # The possible output files:
3992 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3995 for ac_file
in $ac_files
3998 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3999 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
4004 if { { ac_try
="$ac_link_default"
4006 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4007 *) ac_try_echo=$ac_try;;
4009 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4010 $as_echo "$ac_try_echo"; } >&5
4011 (eval "$ac_link_default") 2>&5
4013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4014 test $ac_status = 0; }; then :
4015 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
4016 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
4017 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4018 # so that the user can short-circuit this test for compilers unknown to
4020 for ac_file in $ac_files ''
4022 test -f "$ac_file" || continue
4024 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4027 # We found the default executable, but exeext='' is most
4031 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4033 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4035 # We set ac_cv_exeext here because the later test for it is not
4036 # safe: cross compilers may not add the suffix if given an `-o'
4037 # argument, so we may need to know it at that point already.
4038 # Even if this section looks crufty: it has the advantage of
4045 test "$ac_cv_exeext" = no && ac_cv_exeext=
4050 if test -z "$ac_file"; then :
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4052 $as_echo "no" >&6; }
4053 $as_echo "$as_me: failed program was:" >&5
4054 sed 's
/^
/|
/' conftest.$ac_ext >&5
4056 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4057 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
4058 as_fn_error 77 "C compiler cannot create executables
4059 See \`config.log
' for more details" "$LINENO" 5; }
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4062 $as_echo "yes" >&6; }
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4065 $as_echo_n "checking for C compiler default output file name... " >&6; }
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4067 $as_echo "$ac_file" >&6; }
4068 ac_exeext=$ac_cv_exeext
4070 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4071 ac_clean_files=$ac_clean_files_save
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4073 $as_echo_n "checking for suffix of executables... " >&6; }
4074 if { { ac_try="$ac_link"
4076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077 *) ac_try_echo=$ac_try;;
4079 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4080 $as_echo "$ac_try_echo"; } >&5
4081 (eval "$ac_link") 2>&5
4083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4084 test $ac_status = 0; }; then :
4085 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
4086 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
4087 # work properly (i.e., refer to `conftest.exe
'), while it won't with
4089 for ac_file
in conftest.exe conftest conftest.
*; do
4090 test -f "$ac_file" ||
continue
4092 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4093 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4099 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4100 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4101 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4102 See \`config.log' for more details" "$LINENO" 5; }
4104 rm -f conftest conftest
$ac_cv_exeext
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4106 $as_echo "$ac_cv_exeext" >&6; }
4108 rm -f conftest.
$ac_ext
4109 EXEEXT
=$ac_cv_exeext
4111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h. */
4117 FILE *f = fopen ("conftest.out", "w");
4118 return ferror (f) || fclose (f) != 0;
4124 ac_clean_files
="$ac_clean_files conftest.out"
4125 # Check that the compiler produces executables we can run. If not, either
4126 # the compiler is broken, or we cross compile.
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4128 $as_echo_n "checking whether we are cross compiling... " >&6; }
4129 if test "$cross_compiling" != yes; then
4130 { { 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; }
4141 if { ac_try='./conftest$ac_cv_exeext'
4142 { { case "(($ac_try" in
4143 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4144 *) ac_try_echo
=$ac_try;;
4146 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4147 $as_echo "$ac_try_echo"; } >&5
4148 (eval "$ac_try") 2>&5
4150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4151 test $ac_status = 0; }; }; then
4154 if test "$cross_compiling" = maybe
; then
4157 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4158 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4159 as_fn_error $?
"cannot run C compiled programs.
4160 If you meant to cross compile, use \`--host'.
4161 See \`config.log' for more details" "$LINENO" 5; }
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4166 $as_echo "$cross_compiling" >&6; }
4168 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4169 ac_clean_files
=$ac_clean_files_save
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4171 $as_echo_n "checking for suffix of object files... " >&6; }
4172 if ${ac_cv_objext+:} false
; then :
4173 $as_echo_n "(cached) " >&6
4175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4176 /* end confdefs.h. */
4186 rm -f conftest.o conftest.obj
4187 if { { ac_try
="$ac_compile"
4189 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4190 *) ac_try_echo=$ac_try;;
4192 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4193 $as_echo "$ac_try_echo"; } >&5
4194 (eval "$ac_compile") 2>&5
4196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4197 test $ac_status = 0; }; then :
4198 for ac_file in conftest.o conftest.obj conftest.*; do
4199 test -f "$ac_file" || continue;
4201 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4202 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4207 $as_echo "$as_me: failed program was:" >&5
4208 sed 's/^/| /' conftest.$ac_ext >&5
4210 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4211 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4212 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4213 See \
`config.log' for more details" "$LINENO" 5; }
4215 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4218 $as_echo "$ac_cv_objext" >&6; }
4219 OBJEXT=$ac_cv_objext
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4222 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4223 if ${ac_cv_c_compiler_gnu+:} false; then :
4224 $as_echo_n "(cached) " >&6
4226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4227 /* end confdefs.h. */
4240 if ac_fn_c_try_compile "$LINENO"; then :
4245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4246 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4250 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4251 if test $ac_compiler_gnu = yes; then
4256 ac_test_CFLAGS=${CFLAGS+set}
4257 ac_save_CFLAGS=$CFLAGS
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4259 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4260 if ${ac_cv_prog_cc_g+:} false; then :
4261 $as_echo_n "(cached) " >&6
4263 ac_save_c_werror_flag=$ac_c_werror_flag
4264 ac_c_werror_flag=yes
4267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4268 /* end confdefs.h. */
4278 if ac_fn_c_try_compile "$LINENO"; then :
4282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283 /* end confdefs.h. */
4293 if ac_fn_c_try_compile "$LINENO"; then :
4296 ac_c_werror_flag=$ac_save_c_werror_flag
4298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4299 /* end confdefs.h. */
4309 if ac_fn_c_try_compile "$LINENO"; then :
4312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4317 ac_c_werror_flag=$ac_save_c_werror_flag
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4320 $as_echo "$ac_cv_prog_cc_g" >&6; }
4321 if test "$ac_test_CFLAGS" = set; then
4322 CFLAGS=$ac_save_CFLAGS
4323 elif test $ac_cv_prog_cc_g = yes; then
4324 if test "$GCC" = yes; then
4330 if test "$GCC" = yes; then
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4337 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4338 if ${ac_cv_prog_cc_c89+:} false; then :
4339 $as_echo_n "(cached) " >&6
4341 ac_cv_prog_cc_c89=no
4343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4344 /* end confdefs.h. */
4348 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4349 struct buf { int x; };
4350 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4351 static char *e (p, i)
4357 static char *f (char * (*g) (char **, int), char **p, ...)
4362 s = g (p, va_arg (v,int));
4367 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4368 function prototypes and stuff, but not '\xHH' hex character constants.
4369 These don't provoke an error unfortunately, instead are silently treated
4370 as 'x'. The following induces an error, until -std is added to get
4371 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4372 array size at least. It's necessary to write '\x00'==0 to get something
4373 that's true only with -std. */
4374 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4376 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4377 inside strings and character constants. */
4379 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4381 int test (int i, double x);
4382 struct s1 {int (*f) (int a);};
4383 struct s2 {int (*f) (double a);};
4384 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4390 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4395 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4396 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4398 CC="$ac_save_CC $ac_arg"
4399 if ac_fn_c_try_compile "$LINENO"; then :
4400 ac_cv_prog_cc_c89=$ac_arg
4402 rm -f core conftest.err conftest.$ac_objext
4403 test "x$ac_cv_prog_cc_c89" != "xno" && break
4405 rm -f conftest.$ac_ext
4410 case "x$ac_cv_prog_cc_c89" in
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4413 $as_echo "none needed" >&6; } ;;
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4416 $as_echo "unsupported" >&6; } ;;
4418 CC="$CC $ac_cv_prog_cc_c89"
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4420 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4422 if test "x$ac_cv_prog_cc_c89" != xno; then :
4427 ac_cpp='$CPP $CPPFLAGS'
4428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4433 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4434 if ${ac_cv_prog_cc_c99+:} false; then :
4435 $as_echo_n "(cached) " >&6
4437 ac_cv_prog_cc_c99=no
4439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4440 /* end confdefs.h. */
4442 #include <stdbool.h>
4447 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4448 #define debug(...) fprintf (stderr, __VA_ARGS__)
4449 #define showlist(...) puts (#__VA_ARGS__)
4450 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4452 test_varargs_macros (void)
4457 debug ("X = %d\n", x);
4458 showlist (The first, second, and third items.);
4459 report (x>y, "x is %d but y is %d", x, y);
4462 // Check long long types.
4463 #define BIG64 18446744073709551615ull
4464 #define BIG32 4294967295ul
4465 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4467 your preprocessor is broken;
4471 your preprocessor is broken;
4473 static long long int bignum = -9223372036854775807LL;
4474 static unsigned long long int ubignum = BIG64;
4476 struct incomplete_array
4484 const wchar_t *name;
4488 typedef const char *ccp;
4491 test_restrict (ccp restrict text)
4493 // See if C++-style comments work.
4494 // Iterate through items via the restricted pointer.
4495 // Also check for declarations in for loops.
4496 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4501 // Check varargs and va_copy.
4503 test_varargs (const char *format, ...)
4506 va_start (args, format);
4508 va_copy (args_copy, args);
4519 str = va_arg (args_copy, const char *);
4522 number = va_arg (args_copy, int);
4525 fnumber = va_arg (args_copy, double);
4540 _Bool success = false;
4543 if (test_restrict ("String literal") == 0)
4545 char *restrict newvar = "Another string";
4548 test_varargs ("s, d' f .", "string", 65, 34.234);
4549 test_varargs_macros ();
4551 // Check flexible array members.
4552 struct incomplete_array *ia =
4553 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4555 for (int i = 0; i < ia->datasize; ++i)
4556 ia->data[i] = i * 1.234;
4558 // Check named initializers.
4559 struct named_init ni = {
4561 .name = L"Test wide string",
4562 .average = 543.34343,
4567 int dynamic_array[ni.number];
4568 dynamic_array[ni.number - 1] = 543;
4570 // work around unused variable warnings
4571 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4572 || dynamic_array[ni.number - 1] != 543);
4578 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4580 CC="$ac_save_CC $ac_arg"
4581 if ac_fn_c_try_compile "$LINENO"; then :
4582 ac_cv_prog_cc_c99=$ac_arg
4584 rm -f core conftest.err conftest.$ac_objext
4585 test "x$ac_cv_prog_cc_c99" != "xno" && break
4587 rm -f conftest.$ac_ext
4592 case "x$ac_cv_prog_cc_c99" in
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4595 $as_echo "none needed" >&6; } ;;
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4598 $as_echo "unsupported" >&6; } ;;
4600 CC="$CC $ac_cv_prog_cc_c99"
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4602 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4604 if test "x$ac_cv_prog_cc_c99" != xno; then :
4610 # Error out if the compiler does not support C99, as the codebase
4612 if test "$ac_cv_prog_cc_c99" = no; then
4613 as_fn_error $? "C compiler \"$CC\" does not support C99" "$LINENO" 5
4617 ac_cpp='$CXXCPP $CPPFLAGS'
4618 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4619 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4620 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4621 if test -z "$CXX"; then
4622 if test -n "$CCC"; then
4625 if test -n "$ac_tool_prefix"; then
4626 for ac_prog in $pgac_cxx_list
4628 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4629 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4631 $as_echo_n "checking for $ac_word... " >&6; }
4632 if ${ac_cv_prog_CXX+:} false; then :
4633 $as_echo_n "(cached) " >&6
4635 if test -n "$CXX"; then
4636 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642 test -z "$as_dir" && as_dir=.
4643 for ac_exec_ext in '' $ac_executable_extensions; do
4644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4645 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4656 if test -n "$CXX"; then
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4658 $as_echo "$CXX" >&6; }
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4661 $as_echo "no" >&6; }
4665 test -n "$CXX" && break
4668 if test -z "$CXX"; then
4670 for ac_prog in $pgac_cxx_list
4672 # Extract the first word of "$ac_prog", so it can be a program name with args.
4673 set dummy $ac_prog; ac_word=$2
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4675 $as_echo_n "checking for $ac_word... " >&6; }
4676 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4677 $as_echo_n "(cached) " >&6
4679 if test -n "$ac_ct_CXX"; then
4680 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686 test -z "$as_dir" && as_dir=.
4687 for ac_exec_ext in '' $ac_executable_extensions; do
4688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4689 ac_cv_prog_ac_ct_CXX="$ac_prog"
4690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4699 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4700 if test -n "$ac_ct_CXX"; then
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4702 $as_echo "$ac_ct_CXX" >&6; }
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4705 $as_echo "no" >&6; }
4709 test -n "$ac_ct_CXX" && break
4712 if test "x$ac_ct_CXX" = x; then
4715 case $cross_compiling:$ac_tool_warned in
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4718 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4719 ac_tool_warned=yes ;;
4727 # Provide some information about the compiler.
4728 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4731 for ac_option in --version -v -V -qversion; do
4732 { { ac_try="$ac_compiler $ac_option >&5"
4734 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4735 *) ac_try_echo
=$ac_try;;
4737 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4738 $as_echo "$ac_try_echo"; } >&5
4739 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4741 if test -s conftest.err
; then
4743 ... rest of stderr output deleted ...
4744 10q' conftest.err
>conftest.er1
4745 cat conftest.er1
>&5
4747 rm -f conftest.er1 conftest.err
4748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4749 test $ac_status = 0; }
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4753 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4754 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
4755 $as_echo_n "(cached) " >&6
4757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4758 /* end confdefs.h. */
4771 if ac_fn_cxx_try_compile
"$LINENO"; then :
4776 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4777 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4781 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4782 if test $ac_compiler_gnu = yes; then
4787 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4788 ac_save_CXXFLAGS
=$CXXFLAGS
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4790 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4791 if ${ac_cv_prog_cxx_g+:} false
; then :
4792 $as_echo_n "(cached) " >&6
4794 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4795 ac_cxx_werror_flag
=yes
4798 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4799 /* end confdefs.h. */
4809 if ac_fn_cxx_try_compile
"$LINENO"; then :
4810 ac_cv_prog_cxx_g
=yes
4813 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4814 /* end confdefs.h. */
4824 if ac_fn_cxx_try_compile
"$LINENO"; then :
4827 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4830 /* end confdefs.h. */
4840 if ac_fn_cxx_try_compile
"$LINENO"; then :
4841 ac_cv_prog_cxx_g
=yes
4843 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4845 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4847 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4848 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4851 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4852 if test "$ac_test_CXXFLAGS" = set; then
4853 CXXFLAGS
=$ac_save_CXXFLAGS
4854 elif test $ac_cv_prog_cxx_g = yes; then
4855 if test "$GXX" = yes; then
4861 if test "$GXX" = yes; then
4868 ac_cpp
='$CPP $CPPFLAGS'
4869 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4870 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4871 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4874 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
4875 # but has idiosyncrasies of its own. We assume icc will define
4876 # __INTEL_COMPILER regardless of CFLAGS.
4878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4879 /* end confdefs.h. */
4884 #ifndef __INTEL_COMPILER
4891 if ac_fn_c_try_compile
"$LINENO"; then :
4896 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4898 # Check if it's Sun Studio compiler. We assume that
4899 # __SUNPRO_C will be defined for Sun Studio compilers
4900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4901 /* end confdefs.h. */
4913 if ac_fn_c_try_compile
"$LINENO"; then :
4918 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4926 # Checked early because subsequent tests depend on it.
4930 # Check whether --with-llvm was given.
4931 if test "${with_llvm+set}" = set; then :
4936 $as_echo "#define USE_LLVM 1" >>confdefs.h
4943 as_fn_error $?
"no argument expected for --with-llvm option" "$LINENO" 5
4954 for ac_prog
in gawk mawk nawk
awk
4956 # Extract the first word of "$ac_prog", so it can be a program name with args.
4957 set dummy
$ac_prog; ac_word
=$2
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4959 $as_echo_n "checking for $ac_word... " >&6; }
4960 if ${ac_cv_prog_AWK+:} false
; then :
4961 $as_echo_n "(cached) " >&6
4963 if test -n "$AWK"; then
4964 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4966 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4970 test -z "$as_dir" && as_dir
=.
4971 for ac_exec_ext
in '' $ac_executable_extensions; do
4972 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4973 ac_cv_prog_AWK
="$ac_prog"
4974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4984 if test -n "$AWK"; then
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4986 $as_echo "$AWK" >&6; }
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4989 $as_echo "no" >&6; }
4993 test -n "$AWK" && break
4996 if test "$with_llvm" = yes; then :
5002 if test -z "$LLVM_CONFIG"; then
5003 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
5005 # Extract the first word of "$ac_prog", so it can be a program name with args.
5006 set dummy
$ac_prog; ac_word
=$2
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5008 $as_echo_n "checking for $ac_word... " >&6; }
5009 if ${ac_cv_path_LLVM_CONFIG+:} false
; then :
5010 $as_echo_n "(cached) " >&6
5012 case $LLVM_CONFIG in
5014 ac_cv_path_LLVM_CONFIG
="$LLVM_CONFIG" # Let the user override the test with a path.
5017 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5021 test -z "$as_dir" && as_dir
=.
5022 for ac_exec_ext
in '' $ac_executable_extensions; do
5023 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5024 ac_cv_path_LLVM_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5035 LLVM_CONFIG
=$ac_cv_path_LLVM_CONFIG
5036 if test -n "$LLVM_CONFIG"; then
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5
5038 $as_echo "$LLVM_CONFIG" >&6; }
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5041 $as_echo "no" >&6; }
5045 test -n "$LLVM_CONFIG" && break
5049 # Report the value of LLVM_CONFIG in configure's output in all cases.
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LLVM_CONFIG" >&5
5051 $as_echo_n "checking for LLVM_CONFIG... " >&6; }
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5
5053 $as_echo "$LLVM_CONFIG" >&6; }
5057 # no point continuing if llvm wasn't found
5058 if test -z "$LLVM_CONFIG"; then
5059 as_fn_error $?
"llvm-config not found, but required when compiling --with-llvm, specify with LLVM_CONFIG=" "$LINENO" 5
5061 # check if detected $LLVM_CONFIG is executable
5062 pgac_llvm_version
="$($LLVM_CONFIG --version 2> /dev/null || echo no)"
5063 if test "x$pgac_llvm_version" = "xno"; then
5064 as_fn_error $?
"$LLVM_CONFIG does not work" "$LINENO" 5
5066 # and whether the version is supported
5067 if echo $pgac_llvm_version |
$AWK -F '.' '{ if ($1 >= 4 || ($1 == 3 && $2 >= 9)) exit 1; else exit 0;}';then
5068 as_fn_error $?
"$LLVM_CONFIG version is $pgac_llvm_version but at least 3.9 is required" "$LINENO" 5
5071 # need clang to create some bitcode files
5073 if test -z "$CLANG"; then
5074 for ac_prog
in clang clang-7 clang-6.0 clang-5.0 clang-4.0 clang-3.9
5076 # Extract the first word of "$ac_prog", so it can be a program name with args.
5077 set dummy
$ac_prog; ac_word
=$2
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5079 $as_echo_n "checking for $ac_word... " >&6; }
5080 if ${ac_cv_path_CLANG+:} false
; then :
5081 $as_echo_n "(cached) " >&6
5085 ac_cv_path_CLANG
="$CLANG" # Let the user override the test with a path.
5088 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5092 test -z "$as_dir" && as_dir
=.
5093 for ac_exec_ext
in '' $ac_executable_extensions; do
5094 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5095 ac_cv_path_CLANG
="$as_dir/$ac_word$ac_exec_ext"
5096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5106 CLANG
=$ac_cv_path_CLANG
5107 if test -n "$CLANG"; then
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG" >&5
5109 $as_echo "$CLANG" >&6; }
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5112 $as_echo "no" >&6; }
5116 test -n "$CLANG" && break
5120 # Report the value of CLANG in configure's output in all cases.
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CLANG" >&5
5122 $as_echo_n "checking for CLANG... " >&6; }
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG" >&5
5124 $as_echo "$CLANG" >&6; }
5127 if test -z "$CLANG"; then
5128 as_fn_error $?
"clang not found, but required when compiling --with-llvm, specify with CLANG=" "$LINENO" 5
5130 # make sure clang is executable
5131 if test "x$($CLANG --version 2> /dev/null || echo no)" = "xno"; then
5132 as_fn_error $?
"$CLANG does not work" "$LINENO" 5
5134 # Could check clang version, but it doesn't seem that
5135 # important. Systems with a new enough LLVM version are usually
5136 # going to have a decent clang version too. It's also not entirely
5137 # clear what the minimum version is.
5139 # Collect compiler flags necessary to build the LLVM dependent
5141 for pgac_option
in `$LLVM_CONFIG --cppflags`; do
5142 case $pgac_option in
5143 -I*|
-D*) LLVM_CPPFLAGS
="$pgac_option $LLVM_CPPFLAGS";;
5147 for pgac_option
in `$LLVM_CONFIG --ldflags`; do
5148 case $pgac_option in
5149 -L*) LDFLAGS
="$LDFLAGS $pgac_option";;
5153 # ABI influencing options, standard influencing options
5154 for pgac_option
in `$LLVM_CONFIG --cxxflags`; do
5155 case $pgac_option in
5156 -fno-rtti*) LLVM_CXXFLAGS
="$LLVM_CXXFLAGS $pgac_option";;
5157 -std=*) LLVM_CXXFLAGS
="$LLVM_CXXFLAGS $pgac_option";;
5161 # Look for components we're interested in, collect necessary
5162 # libs. As some components are optional, we can't just list all of
5163 # them as it'd raise an error.
5165 for pgac_component
in `$LLVM_CONFIG --components`; do
5166 case $pgac_component in
5167 engine
) pgac_components
="$pgac_components $pgac_component";;
5168 debuginfodwarf
) pgac_components
="$pgac_components $pgac_component";;
5169 orcjit
) pgac_components
="$pgac_components $pgac_component";;
5170 passes
) pgac_components
="$pgac_components $pgac_component";;
5171 perfjitevents
) pgac_components
="$pgac_components $pgac_component";;
5175 # And then get the libraries that need to be linked in for the
5176 # selected components. They're large libraries, we only want to
5177 # link them into the LLVM using shared library.
5178 for pgac_option
in `$LLVM_CONFIG --libs --system-libs $pgac_components`; do
5179 case $pgac_option in
5180 -l*) LLVM_LIBS
="$LLVM_LIBS $pgac_option";;
5184 LLVM_BINPATH
=`$LLVM_CONFIG --bindir`
5203 .
"$srcdir/src/template/$template" ||
exit
5205 # C[XX]FLAGS are selected so:
5206 # If the user specifies something in the environment, that is used.
5207 # else: If the template file set something, that is used.
5208 # else: If coverage was enabled, don't set anything.
5209 # else: If the compiler is GCC, then we use -O2.
5210 # else: If the compiler is something else, then we use -O, unless debugging.
5212 if test "$ac_env_CFLAGS_set" = set; then
5213 CFLAGS
=$ac_env_CFLAGS_value
5214 elif test "${CFLAGS+set}" = set; then
5215 : # (keep what template set)
5216 elif test "$enable_coverage" = yes; then
5217 : # no optimization by default
5218 elif test "$GCC" = yes; then
5221 # if the user selected debug mode, don't use -O
5222 if test "$enable_debug" != yes; then
5227 if test "$ac_env_CXXFLAGS_set" = set; then
5228 CXXFLAGS
=$ac_env_CXXFLAGS_value
5229 elif test "${CXXFLAGS+set}" = set; then
5230 : # (keep what template set)
5231 elif test "$enable_coverage" = yes; then
5232 : # no optimization by default
5233 elif test "$GCC" = yes; then
5236 # if the user selected debug mode, don't use -O
5237 if test "$enable_debug" != yes; then
5242 # When generating bitcode (for inlining) we always want to use -O2
5243 # even when --enable-debug is specified. The bitcode it's not going to
5244 # be used for line-by-line debugging, and JIT inlining doesn't work
5245 # without at least -O1 (otherwise clang will emit 'noinline'
5246 # attributes everywhere), which is bad for testing. Still allow the
5247 # environment to override if done explicitly.
5248 if test "$ac_env_BITCODE_CFLAGS_set" = set; then
5249 BITCODE_CFLAGS
=$ac_env_BITCODE_CFLAGS_value
5251 BITCODE_CFLAGS
="-O2 $BITCODE_CFLAGS"
5253 if test "$ac_env_BITCODE_CXXFLAGS_set" = set; then
5254 BITCODE_CXXFLAGS
=$ac_env_BITCODE_CXXFLAGS_value
5256 BITCODE_CXXFLAGS
="-O2 $BITCODE_CXXFLAGS"
5259 # C[XX]FLAGS we determined above will be added back at the end
5262 user_CXXFLAGS
=$CXXFLAGS
5264 user_BITCODE_CFLAGS
=$BITCODE_CFLAGS
5266 user_BITCODE_CXXFLAGS
=$BITCODE_CXXFLAGS
5269 # set CFLAGS_VECTOR from the environment, if available
5270 if test "$ac_env_CFLAGS_VECTOR_set" = set; then
5271 CFLAGS_VECTOR
=$ac_env_CFLAGS_VECTOR_value
5274 # Some versions of GCC support some additional useful warning flags.
5275 # Check whether they are supported, and add them to CFLAGS if so.
5276 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
5277 # but has its own. Also check other compiler-specific flags here.
5279 if test "$GCC" = yes -a "$ICC" = no
; then
5280 CFLAGS
="-Wall -Wmissing-prototypes -Wpointer-arith"
5281 CXXFLAGS
="-Wall -Wpointer-arith"
5282 # These work in some but not all gcc versions
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wdeclaration-after-statement, for CFLAGS" >&5
5286 $as_echo_n "checking whether ${CC} supports -Wdeclaration-after-statement, for CFLAGS... " >&6; }
5287 if ${pgac_cv_prog_CC_cflags__Wdeclaration_after_statement+:} false
; then :
5288 $as_echo_n "(cached) " >&6
5290 pgac_save_CFLAGS
=$CFLAGS
5293 CFLAGS
="${CFLAGS} -Wdeclaration-after-statement"
5294 ac_save_c_werror_flag
=$ac_c_werror_flag
5295 ac_c_werror_flag
=yes
5296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5297 /* end confdefs.h. */
5307 if ac_fn_c_try_compile
"$LINENO"; then :
5308 pgac_cv_prog_CC_cflags__Wdeclaration_after_statement
=yes
5310 pgac_cv_prog_CC_cflags__Wdeclaration_after_statement
=no
5312 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5313 ac_c_werror_flag
=$ac_save_c_werror_flag
5314 CFLAGS
="$pgac_save_CFLAGS"
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wdeclaration_after_statement" >&5
5318 $as_echo "$pgac_cv_prog_CC_cflags__Wdeclaration_after_statement" >&6; }
5319 if test x
"$pgac_cv_prog_CC_cflags__Wdeclaration_after_statement" = x
"yes"; then
5320 CFLAGS
="${CFLAGS} -Wdeclaration-after-statement"
5324 # -Wdeclaration-after-statement isn't applicable for C++. Specific C files
5325 # disable it, so AC_SUBST the negative form.
5326 PERMIT_DECLARATION_AFTER_STATEMENT
=
5327 if test x
"$save_CFLAGS" != x
"$CFLAGS"; then
5328 PERMIT_DECLARATION_AFTER_STATEMENT
=-Wno-declaration-after-statement
5331 # Really don't want VLAs to be used in our dialect of C
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Werror=vla, for CFLAGS" >&5
5334 $as_echo_n "checking whether ${CC} supports -Werror=vla, for CFLAGS... " >&6; }
5335 if ${pgac_cv_prog_CC_cflags__Werror_vla+:} false
; then :
5336 $as_echo_n "(cached) " >&6
5338 pgac_save_CFLAGS
=$CFLAGS
5341 CFLAGS
="${CFLAGS} -Werror=vla"
5342 ac_save_c_werror_flag
=$ac_c_werror_flag
5343 ac_c_werror_flag
=yes
5344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5345 /* end confdefs.h. */
5355 if ac_fn_c_try_compile
"$LINENO"; then :
5356 pgac_cv_prog_CC_cflags__Werror_vla
=yes
5358 pgac_cv_prog_CC_cflags__Werror_vla
=no
5360 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5361 ac_c_werror_flag
=$ac_save_c_werror_flag
5362 CFLAGS
="$pgac_save_CFLAGS"
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Werror_vla" >&5
5366 $as_echo "$pgac_cv_prog_CC_cflags__Werror_vla" >&6; }
5367 if test x
"$pgac_cv_prog_CC_cflags__Werror_vla" = x
"yes"; then
5368 CFLAGS
="${CFLAGS} -Werror=vla"
5372 # -Wvla is not applicable for C++
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wendif-labels, for CFLAGS" >&5
5375 $as_echo_n "checking whether ${CC} supports -Wendif-labels, for CFLAGS... " >&6; }
5376 if ${pgac_cv_prog_CC_cflags__Wendif_labels+:} false
; then :
5377 $as_echo_n "(cached) " >&6
5379 pgac_save_CFLAGS
=$CFLAGS
5382 CFLAGS
="${CFLAGS} -Wendif-labels"
5383 ac_save_c_werror_flag
=$ac_c_werror_flag
5384 ac_c_werror_flag
=yes
5385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5386 /* end confdefs.h. */
5396 if ac_fn_c_try_compile
"$LINENO"; then :
5397 pgac_cv_prog_CC_cflags__Wendif_labels
=yes
5399 pgac_cv_prog_CC_cflags__Wendif_labels
=no
5401 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5402 ac_c_werror_flag
=$ac_save_c_werror_flag
5403 CFLAGS
="$pgac_save_CFLAGS"
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wendif_labels" >&5
5407 $as_echo "$pgac_cv_prog_CC_cflags__Wendif_labels" >&6; }
5408 if test x
"$pgac_cv_prog_CC_cflags__Wendif_labels" = x
"yes"; then
5409 CFLAGS
="${CFLAGS} -Wendif-labels"
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wendif-labels, for CXXFLAGS" >&5
5414 $as_echo_n "checking whether ${CXX} supports -Wendif-labels, for CXXFLAGS... " >&6; }
5415 if ${pgac_cv_prog_CXX_cxxflags__Wendif_labels+:} false
; then :
5416 $as_echo_n "(cached) " >&6
5418 pgac_save_CXXFLAGS
=$CXXFLAGS
5421 CXXFLAGS
="${CXXFLAGS} -Wendif-labels"
5422 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5423 ac_cxx_werror_flag
=yes
5425 ac_cpp
='$CXXCPP $CPPFLAGS'
5426 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5427 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5428 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5431 /* end confdefs.h. */
5441 if ac_fn_cxx_try_compile
"$LINENO"; then :
5442 pgac_cv_prog_CXX_cxxflags__Wendif_labels
=yes
5444 pgac_cv_prog_CXX_cxxflags__Wendif_labels
=no
5446 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5448 ac_cpp
='$CPP $CPPFLAGS'
5449 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5450 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5451 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5453 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5454 CXXFLAGS
="$pgac_save_CXXFLAGS"
5455 CXX
="$pgac_save_CXX"
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wendif_labels" >&5
5458 $as_echo "$pgac_cv_prog_CXX_cxxflags__Wendif_labels" >&6; }
5459 if test x
"$pgac_cv_prog_CXX_cxxflags__Wendif_labels" = x
"yes"; then
5460 CXXFLAGS
="${CXXFLAGS} -Wendif-labels"
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wmissing-format-attribute, for CFLAGS" >&5
5466 $as_echo_n "checking whether ${CC} supports -Wmissing-format-attribute, for CFLAGS... " >&6; }
5467 if ${pgac_cv_prog_CC_cflags__Wmissing_format_attribute+:} false
; then :
5468 $as_echo_n "(cached) " >&6
5470 pgac_save_CFLAGS
=$CFLAGS
5473 CFLAGS
="${CFLAGS} -Wmissing-format-attribute"
5474 ac_save_c_werror_flag
=$ac_c_werror_flag
5475 ac_c_werror_flag
=yes
5476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5477 /* end confdefs.h. */
5487 if ac_fn_c_try_compile
"$LINENO"; then :
5488 pgac_cv_prog_CC_cflags__Wmissing_format_attribute
=yes
5490 pgac_cv_prog_CC_cflags__Wmissing_format_attribute
=no
5492 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5493 ac_c_werror_flag
=$ac_save_c_werror_flag
5494 CFLAGS
="$pgac_save_CFLAGS"
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wmissing_format_attribute" >&5
5498 $as_echo "$pgac_cv_prog_CC_cflags__Wmissing_format_attribute" >&6; }
5499 if test x
"$pgac_cv_prog_CC_cflags__Wmissing_format_attribute" = x
"yes"; then
5500 CFLAGS
="${CFLAGS} -Wmissing-format-attribute"
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wmissing-format-attribute, for CXXFLAGS" >&5
5505 $as_echo_n "checking whether ${CXX} supports -Wmissing-format-attribute, for CXXFLAGS... " >&6; }
5506 if ${pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute+:} false
; then :
5507 $as_echo_n "(cached) " >&6
5509 pgac_save_CXXFLAGS
=$CXXFLAGS
5512 CXXFLAGS
="${CXXFLAGS} -Wmissing-format-attribute"
5513 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5514 ac_cxx_werror_flag
=yes
5516 ac_cpp
='$CXXCPP $CPPFLAGS'
5517 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5518 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5519 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5522 /* end confdefs.h. */
5532 if ac_fn_cxx_try_compile
"$LINENO"; then :
5533 pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute
=yes
5535 pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute
=no
5537 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5539 ac_cpp
='$CPP $CPPFLAGS'
5540 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5541 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5542 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5544 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5545 CXXFLAGS
="$pgac_save_CXXFLAGS"
5546 CXX
="$pgac_save_CXX"
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute" >&5
5549 $as_echo "$pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute" >&6; }
5550 if test x
"$pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute" = x
"yes"; then
5551 CXXFLAGS
="${CXXFLAGS} -Wmissing-format-attribute"
5555 # This was included in -Wall/-Wformat in older GCC versions
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wformat-security, for CFLAGS" >&5
5558 $as_echo_n "checking whether ${CC} supports -Wformat-security, for CFLAGS... " >&6; }
5559 if ${pgac_cv_prog_CC_cflags__Wformat_security+:} false
; then :
5560 $as_echo_n "(cached) " >&6
5562 pgac_save_CFLAGS
=$CFLAGS
5565 CFLAGS
="${CFLAGS} -Wformat-security"
5566 ac_save_c_werror_flag
=$ac_c_werror_flag
5567 ac_c_werror_flag
=yes
5568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5569 /* end confdefs.h. */
5579 if ac_fn_c_try_compile
"$LINENO"; then :
5580 pgac_cv_prog_CC_cflags__Wformat_security
=yes
5582 pgac_cv_prog_CC_cflags__Wformat_security
=no
5584 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5585 ac_c_werror_flag
=$ac_save_c_werror_flag
5586 CFLAGS
="$pgac_save_CFLAGS"
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wformat_security" >&5
5590 $as_echo "$pgac_cv_prog_CC_cflags__Wformat_security" >&6; }
5591 if test x
"$pgac_cv_prog_CC_cflags__Wformat_security" = x
"yes"; then
5592 CFLAGS
="${CFLAGS} -Wformat-security"
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wformat-security, for CXXFLAGS" >&5
5597 $as_echo_n "checking whether ${CXX} supports -Wformat-security, for CXXFLAGS... " >&6; }
5598 if ${pgac_cv_prog_CXX_cxxflags__Wformat_security+:} false
; then :
5599 $as_echo_n "(cached) " >&6
5601 pgac_save_CXXFLAGS
=$CXXFLAGS
5604 CXXFLAGS
="${CXXFLAGS} -Wformat-security"
5605 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5606 ac_cxx_werror_flag
=yes
5608 ac_cpp
='$CXXCPP $CPPFLAGS'
5609 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5610 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5611 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5613 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5614 /* end confdefs.h. */
5624 if ac_fn_cxx_try_compile
"$LINENO"; then :
5625 pgac_cv_prog_CXX_cxxflags__Wformat_security
=yes
5627 pgac_cv_prog_CXX_cxxflags__Wformat_security
=no
5629 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5631 ac_cpp
='$CPP $CPPFLAGS'
5632 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5633 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5634 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5636 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5637 CXXFLAGS
="$pgac_save_CXXFLAGS"
5638 CXX
="$pgac_save_CXX"
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wformat_security" >&5
5641 $as_echo "$pgac_cv_prog_CXX_cxxflags__Wformat_security" >&6; }
5642 if test x
"$pgac_cv_prog_CXX_cxxflags__Wformat_security" = x
"yes"; then
5643 CXXFLAGS
="${CXXFLAGS} -Wformat-security"
5647 # Disable strict-aliasing rules; needed for gcc 3.3+
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fno-strict-aliasing, for CFLAGS" >&5
5650 $as_echo_n "checking whether ${CC} supports -fno-strict-aliasing, for CFLAGS... " >&6; }
5651 if ${pgac_cv_prog_CC_cflags__fno_strict_aliasing+:} false
; then :
5652 $as_echo_n "(cached) " >&6
5654 pgac_save_CFLAGS
=$CFLAGS
5657 CFLAGS
="${CFLAGS} -fno-strict-aliasing"
5658 ac_save_c_werror_flag
=$ac_c_werror_flag
5659 ac_c_werror_flag
=yes
5660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5661 /* end confdefs.h. */
5671 if ac_fn_c_try_compile
"$LINENO"; then :
5672 pgac_cv_prog_CC_cflags__fno_strict_aliasing
=yes
5674 pgac_cv_prog_CC_cflags__fno_strict_aliasing
=no
5676 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5677 ac_c_werror_flag
=$ac_save_c_werror_flag
5678 CFLAGS
="$pgac_save_CFLAGS"
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fno_strict_aliasing" >&5
5682 $as_echo "$pgac_cv_prog_CC_cflags__fno_strict_aliasing" >&6; }
5683 if test x
"$pgac_cv_prog_CC_cflags__fno_strict_aliasing" = x
"yes"; then
5684 CFLAGS
="${CFLAGS} -fno-strict-aliasing"
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fno-strict-aliasing, for CXXFLAGS" >&5
5689 $as_echo_n "checking whether ${CXX} supports -fno-strict-aliasing, for CXXFLAGS... " >&6; }
5690 if ${pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing+:} false
; then :
5691 $as_echo_n "(cached) " >&6
5693 pgac_save_CXXFLAGS
=$CXXFLAGS
5696 CXXFLAGS
="${CXXFLAGS} -fno-strict-aliasing"
5697 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5698 ac_cxx_werror_flag
=yes
5700 ac_cpp
='$CXXCPP $CPPFLAGS'
5701 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5702 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5703 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5705 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5706 /* end confdefs.h. */
5716 if ac_fn_cxx_try_compile
"$LINENO"; then :
5717 pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing
=yes
5719 pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing
=no
5721 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5723 ac_cpp
='$CPP $CPPFLAGS'
5724 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5725 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5726 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5728 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5729 CXXFLAGS
="$pgac_save_CXXFLAGS"
5730 CXX
="$pgac_save_CXX"
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" >&5
5733 $as_echo "$pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" >&6; }
5734 if test x
"$pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" = x
"yes"; then
5735 CXXFLAGS
="${CXXFLAGS} -fno-strict-aliasing"
5739 # Disable optimizations that assume no overflow; needed for gcc 4.3+
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fwrapv, for CFLAGS" >&5
5742 $as_echo_n "checking whether ${CC} supports -fwrapv, for CFLAGS... " >&6; }
5743 if ${pgac_cv_prog_CC_cflags__fwrapv+:} false
; then :
5744 $as_echo_n "(cached) " >&6
5746 pgac_save_CFLAGS
=$CFLAGS
5749 CFLAGS
="${CFLAGS} -fwrapv"
5750 ac_save_c_werror_flag
=$ac_c_werror_flag
5751 ac_c_werror_flag
=yes
5752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5753 /* end confdefs.h. */
5763 if ac_fn_c_try_compile
"$LINENO"; then :
5764 pgac_cv_prog_CC_cflags__fwrapv
=yes
5766 pgac_cv_prog_CC_cflags__fwrapv
=no
5768 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5769 ac_c_werror_flag
=$ac_save_c_werror_flag
5770 CFLAGS
="$pgac_save_CFLAGS"
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fwrapv" >&5
5774 $as_echo "$pgac_cv_prog_CC_cflags__fwrapv" >&6; }
5775 if test x
"$pgac_cv_prog_CC_cflags__fwrapv" = x
"yes"; then
5776 CFLAGS
="${CFLAGS} -fwrapv"
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fwrapv, for CXXFLAGS" >&5
5781 $as_echo_n "checking whether ${CXX} supports -fwrapv, for CXXFLAGS... " >&6; }
5782 if ${pgac_cv_prog_CXX_cxxflags__fwrapv+:} false
; then :
5783 $as_echo_n "(cached) " >&6
5785 pgac_save_CXXFLAGS
=$CXXFLAGS
5788 CXXFLAGS
="${CXXFLAGS} -fwrapv"
5789 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5790 ac_cxx_werror_flag
=yes
5792 ac_cpp
='$CXXCPP $CPPFLAGS'
5793 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5794 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5795 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5798 /* end confdefs.h. */
5808 if ac_fn_cxx_try_compile
"$LINENO"; then :
5809 pgac_cv_prog_CXX_cxxflags__fwrapv
=yes
5811 pgac_cv_prog_CXX_cxxflags__fwrapv
=no
5813 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5815 ac_cpp
='$CPP $CPPFLAGS'
5816 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5817 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5818 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5820 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5821 CXXFLAGS
="$pgac_save_CXXFLAGS"
5822 CXX
="$pgac_save_CXX"
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fwrapv" >&5
5825 $as_echo "$pgac_cv_prog_CXX_cxxflags__fwrapv" >&6; }
5826 if test x
"$pgac_cv_prog_CXX_cxxflags__fwrapv" = x
"yes"; then
5827 CXXFLAGS
="${CXXFLAGS} -fwrapv"
5831 # Disable FP optimizations that cause various errors on gcc 4.5+ or maybe 4.6+
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fexcess-precision=standard, for CFLAGS" >&5
5834 $as_echo_n "checking whether ${CC} supports -fexcess-precision=standard, for CFLAGS... " >&6; }
5835 if ${pgac_cv_prog_CC_cflags__fexcess_precision_standard+:} false
; then :
5836 $as_echo_n "(cached) " >&6
5838 pgac_save_CFLAGS
=$CFLAGS
5841 CFLAGS
="${CFLAGS} -fexcess-precision=standard"
5842 ac_save_c_werror_flag
=$ac_c_werror_flag
5843 ac_c_werror_flag
=yes
5844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5845 /* end confdefs.h. */
5855 if ac_fn_c_try_compile
"$LINENO"; then :
5856 pgac_cv_prog_CC_cflags__fexcess_precision_standard
=yes
5858 pgac_cv_prog_CC_cflags__fexcess_precision_standard
=no
5860 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5861 ac_c_werror_flag
=$ac_save_c_werror_flag
5862 CFLAGS
="$pgac_save_CFLAGS"
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fexcess_precision_standard" >&5
5866 $as_echo "$pgac_cv_prog_CC_cflags__fexcess_precision_standard" >&6; }
5867 if test x
"$pgac_cv_prog_CC_cflags__fexcess_precision_standard" = x
"yes"; then
5868 CFLAGS
="${CFLAGS} -fexcess-precision=standard"
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fexcess-precision=standard, for CXXFLAGS" >&5
5873 $as_echo_n "checking whether ${CXX} supports -fexcess-precision=standard, for CXXFLAGS... " >&6; }
5874 if ${pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard+:} false
; then :
5875 $as_echo_n "(cached) " >&6
5877 pgac_save_CXXFLAGS
=$CXXFLAGS
5880 CXXFLAGS
="${CXXFLAGS} -fexcess-precision=standard"
5881 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5882 ac_cxx_werror_flag
=yes
5884 ac_cpp
='$CXXCPP $CPPFLAGS'
5885 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5886 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5887 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5890 /* end confdefs.h. */
5900 if ac_fn_cxx_try_compile
"$LINENO"; then :
5901 pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard
=yes
5903 pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard
=no
5905 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5907 ac_cpp
='$CPP $CPPFLAGS'
5908 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5909 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5910 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5912 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5913 CXXFLAGS
="$pgac_save_CXXFLAGS"
5914 CXX
="$pgac_save_CXX"
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard" >&5
5917 $as_echo "$pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard" >&6; }
5918 if test x
"$pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard" = x
"yes"; then
5919 CXXFLAGS
="${CXXFLAGS} -fexcess-precision=standard"
5923 # Optimization flags for specific files that benefit from vectorization
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -funroll-loops, for CFLAGS_VECTOR" >&5
5925 $as_echo_n "checking whether ${CC} supports -funroll-loops, for CFLAGS_VECTOR... " >&6; }
5926 if ${pgac_cv_prog_CC_cflags__funroll_loops+:} false
; then :
5927 $as_echo_n "(cached) " >&6
5929 pgac_save_CFLAGS
=$CFLAGS
5932 CFLAGS
="${CFLAGS_VECTOR} -funroll-loops"
5933 ac_save_c_werror_flag
=$ac_c_werror_flag
5934 ac_c_werror_flag
=yes
5935 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5936 /* end confdefs.h. */
5946 if ac_fn_c_try_compile
"$LINENO"; then :
5947 pgac_cv_prog_CC_cflags__funroll_loops
=yes
5949 pgac_cv_prog_CC_cflags__funroll_loops
=no
5951 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5952 ac_c_werror_flag
=$ac_save_c_werror_flag
5953 CFLAGS
="$pgac_save_CFLAGS"
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__funroll_loops" >&5
5957 $as_echo "$pgac_cv_prog_CC_cflags__funroll_loops" >&6; }
5958 if test x
"$pgac_cv_prog_CC_cflags__funroll_loops" = x
"yes"; then
5959 CFLAGS_VECTOR
="${CFLAGS_VECTOR} -funroll-loops"
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -ftree-vectorize, for CFLAGS_VECTOR" >&5
5964 $as_echo_n "checking whether ${CC} supports -ftree-vectorize, for CFLAGS_VECTOR... " >&6; }
5965 if ${pgac_cv_prog_CC_cflags__ftree_vectorize+:} false
; then :
5966 $as_echo_n "(cached) " >&6
5968 pgac_save_CFLAGS
=$CFLAGS
5971 CFLAGS
="${CFLAGS_VECTOR} -ftree-vectorize"
5972 ac_save_c_werror_flag
=$ac_c_werror_flag
5973 ac_c_werror_flag
=yes
5974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5975 /* end confdefs.h. */
5985 if ac_fn_c_try_compile
"$LINENO"; then :
5986 pgac_cv_prog_CC_cflags__ftree_vectorize
=yes
5988 pgac_cv_prog_CC_cflags__ftree_vectorize
=no
5990 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5991 ac_c_werror_flag
=$ac_save_c_werror_flag
5992 CFLAGS
="$pgac_save_CFLAGS"
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__ftree_vectorize" >&5
5996 $as_echo "$pgac_cv_prog_CC_cflags__ftree_vectorize" >&6; }
5997 if test x
"$pgac_cv_prog_CC_cflags__ftree_vectorize" = x
"yes"; then
5998 CFLAGS_VECTOR
="${CFLAGS_VECTOR} -ftree-vectorize"
6002 # We want to suppress clang's unhelpful unused-command-line-argument warnings
6003 # but gcc won't complain about unrecognized -Wno-foo switches, so we have to
6004 # test for the positive form and if that works, add the negative form
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wunused-command-line-argument, for NOT_THE_CFLAGS" >&5
6007 $as_echo_n "checking whether ${CC} supports -Wunused-command-line-argument, for NOT_THE_CFLAGS... " >&6; }
6008 if ${pgac_cv_prog_CC_cflags__Wunused_command_line_argument+:} false
; then :
6009 $as_echo_n "(cached) " >&6
6011 pgac_save_CFLAGS
=$CFLAGS
6014 CFLAGS
="${NOT_THE_CFLAGS} -Wunused-command-line-argument"
6015 ac_save_c_werror_flag
=$ac_c_werror_flag
6016 ac_c_werror_flag
=yes
6017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6018 /* end confdefs.h. */
6028 if ac_fn_c_try_compile
"$LINENO"; then :
6029 pgac_cv_prog_CC_cflags__Wunused_command_line_argument
=yes
6031 pgac_cv_prog_CC_cflags__Wunused_command_line_argument
=no
6033 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6034 ac_c_werror_flag
=$ac_save_c_werror_flag
6035 CFLAGS
="$pgac_save_CFLAGS"
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wunused_command_line_argument" >&5
6039 $as_echo "$pgac_cv_prog_CC_cflags__Wunused_command_line_argument" >&6; }
6040 if test x
"$pgac_cv_prog_CC_cflags__Wunused_command_line_argument" = x
"yes"; then
6041 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wunused-command-line-argument"
6045 if test -n "$NOT_THE_CFLAGS"; then
6046 CFLAGS
="$CFLAGS -Wno-unused-command-line-argument"
6048 # Similarly disable useless truncation warnings from gcc 8+
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wformat-truncation, for NOT_THE_CFLAGS" >&5
6051 $as_echo_n "checking whether ${CC} supports -Wformat-truncation, for NOT_THE_CFLAGS... " >&6; }
6052 if ${pgac_cv_prog_CC_cflags__Wformat_truncation+:} false
; then :
6053 $as_echo_n "(cached) " >&6
6055 pgac_save_CFLAGS
=$CFLAGS
6058 CFLAGS
="${NOT_THE_CFLAGS} -Wformat-truncation"
6059 ac_save_c_werror_flag
=$ac_c_werror_flag
6060 ac_c_werror_flag
=yes
6061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6062 /* end confdefs.h. */
6072 if ac_fn_c_try_compile
"$LINENO"; then :
6073 pgac_cv_prog_CC_cflags__Wformat_truncation
=yes
6075 pgac_cv_prog_CC_cflags__Wformat_truncation
=no
6077 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6078 ac_c_werror_flag
=$ac_save_c_werror_flag
6079 CFLAGS
="$pgac_save_CFLAGS"
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wformat_truncation" >&5
6083 $as_echo "$pgac_cv_prog_CC_cflags__Wformat_truncation" >&6; }
6084 if test x
"$pgac_cv_prog_CC_cflags__Wformat_truncation" = x
"yes"; then
6085 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wformat-truncation"
6089 if test -n "$NOT_THE_CFLAGS"; then
6090 CFLAGS
="$CFLAGS -Wno-format-truncation"
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wstringop-truncation, for NOT_THE_CFLAGS" >&5
6094 $as_echo_n "checking whether ${CC} supports -Wstringop-truncation, for NOT_THE_CFLAGS... " >&6; }
6095 if ${pgac_cv_prog_CC_cflags__Wstringop_truncation+:} false
; then :
6096 $as_echo_n "(cached) " >&6
6098 pgac_save_CFLAGS
=$CFLAGS
6101 CFLAGS
="${NOT_THE_CFLAGS} -Wstringop-truncation"
6102 ac_save_c_werror_flag
=$ac_c_werror_flag
6103 ac_c_werror_flag
=yes
6104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6105 /* end confdefs.h. */
6115 if ac_fn_c_try_compile
"$LINENO"; then :
6116 pgac_cv_prog_CC_cflags__Wstringop_truncation
=yes
6118 pgac_cv_prog_CC_cflags__Wstringop_truncation
=no
6120 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6121 ac_c_werror_flag
=$ac_save_c_werror_flag
6122 CFLAGS
="$pgac_save_CFLAGS"
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wstringop_truncation" >&5
6126 $as_echo "$pgac_cv_prog_CC_cflags__Wstringop_truncation" >&6; }
6127 if test x
"$pgac_cv_prog_CC_cflags__Wstringop_truncation" = x
"yes"; then
6128 NOT_THE_CFLAGS
="${NOT_THE_CFLAGS} -Wstringop-truncation"
6132 if test -n "$NOT_THE_CFLAGS"; then
6133 CFLAGS
="$CFLAGS -Wno-stringop-truncation"
6135 elif test "$ICC" = yes; then
6136 # Intel's compiler has a bug/misoptimization in checking for
6137 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -mp1, for CFLAGS" >&5
6140 $as_echo_n "checking whether ${CC} supports -mp1, for CFLAGS... " >&6; }
6141 if ${pgac_cv_prog_CC_cflags__mp1+:} false
; then :
6142 $as_echo_n "(cached) " >&6
6144 pgac_save_CFLAGS
=$CFLAGS
6147 CFLAGS
="${CFLAGS} -mp1"
6148 ac_save_c_werror_flag
=$ac_c_werror_flag
6149 ac_c_werror_flag
=yes
6150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6151 /* end confdefs.h. */
6161 if ac_fn_c_try_compile
"$LINENO"; then :
6162 pgac_cv_prog_CC_cflags__mp1
=yes
6164 pgac_cv_prog_CC_cflags__mp1
=no
6166 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6167 ac_c_werror_flag
=$ac_save_c_werror_flag
6168 CFLAGS
="$pgac_save_CFLAGS"
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__mp1" >&5
6172 $as_echo "$pgac_cv_prog_CC_cflags__mp1" >&6; }
6173 if test x
"$pgac_cv_prog_CC_cflags__mp1" = x
"yes"; then
6174 CFLAGS
="${CFLAGS} -mp1"
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -mp1, for CXXFLAGS" >&5
6179 $as_echo_n "checking whether ${CXX} supports -mp1, for CXXFLAGS... " >&6; }
6180 if ${pgac_cv_prog_CXX_cxxflags__mp1+:} false
; then :
6181 $as_echo_n "(cached) " >&6
6183 pgac_save_CXXFLAGS
=$CXXFLAGS
6186 CXXFLAGS
="${CXXFLAGS} -mp1"
6187 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6188 ac_cxx_werror_flag
=yes
6190 ac_cpp
='$CXXCPP $CPPFLAGS'
6191 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6192 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6193 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6196 /* end confdefs.h. */
6206 if ac_fn_cxx_try_compile
"$LINENO"; then :
6207 pgac_cv_prog_CXX_cxxflags__mp1
=yes
6209 pgac_cv_prog_CXX_cxxflags__mp1
=no
6211 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6213 ac_cpp
='$CPP $CPPFLAGS'
6214 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6215 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6216 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6218 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6219 CXXFLAGS
="$pgac_save_CXXFLAGS"
6220 CXX
="$pgac_save_CXX"
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__mp1" >&5
6223 $as_echo "$pgac_cv_prog_CXX_cxxflags__mp1" >&6; }
6224 if test x
"$pgac_cv_prog_CXX_cxxflags__mp1" = x
"yes"; then
6225 CXXFLAGS
="${CXXFLAGS} -mp1"
6229 # Make sure strict aliasing is off (though this is said to be the default)
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fno-strict-aliasing, for CFLAGS" >&5
6232 $as_echo_n "checking whether ${CC} supports -fno-strict-aliasing, for CFLAGS... " >&6; }
6233 if ${pgac_cv_prog_CC_cflags__fno_strict_aliasing+:} false
; then :
6234 $as_echo_n "(cached) " >&6
6236 pgac_save_CFLAGS
=$CFLAGS
6239 CFLAGS
="${CFLAGS} -fno-strict-aliasing"
6240 ac_save_c_werror_flag
=$ac_c_werror_flag
6241 ac_c_werror_flag
=yes
6242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6243 /* end confdefs.h. */
6253 if ac_fn_c_try_compile
"$LINENO"; then :
6254 pgac_cv_prog_CC_cflags__fno_strict_aliasing
=yes
6256 pgac_cv_prog_CC_cflags__fno_strict_aliasing
=no
6258 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6259 ac_c_werror_flag
=$ac_save_c_werror_flag
6260 CFLAGS
="$pgac_save_CFLAGS"
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fno_strict_aliasing" >&5
6264 $as_echo "$pgac_cv_prog_CC_cflags__fno_strict_aliasing" >&6; }
6265 if test x
"$pgac_cv_prog_CC_cflags__fno_strict_aliasing" = x
"yes"; then
6266 CFLAGS
="${CFLAGS} -fno-strict-aliasing"
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fno-strict-aliasing, for CXXFLAGS" >&5
6271 $as_echo_n "checking whether ${CXX} supports -fno-strict-aliasing, for CXXFLAGS... " >&6; }
6272 if ${pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing+:} false
; then :
6273 $as_echo_n "(cached) " >&6
6275 pgac_save_CXXFLAGS
=$CXXFLAGS
6278 CXXFLAGS
="${CXXFLAGS} -fno-strict-aliasing"
6279 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6280 ac_cxx_werror_flag
=yes
6282 ac_cpp
='$CXXCPP $CPPFLAGS'
6283 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6284 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6285 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6288 /* end confdefs.h. */
6298 if ac_fn_cxx_try_compile
"$LINENO"; then :
6299 pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing
=yes
6301 pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing
=no
6303 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6305 ac_cpp
='$CPP $CPPFLAGS'
6306 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6307 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6308 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6310 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6311 CXXFLAGS
="$pgac_save_CXXFLAGS"
6312 CXX
="$pgac_save_CXX"
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" >&5
6315 $as_echo "$pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" >&6; }
6316 if test x
"$pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" = x
"yes"; then
6317 CXXFLAGS
="${CXXFLAGS} -fno-strict-aliasing"
6321 elif test "$PORTNAME" = "aix"; then
6322 # AIX's xlc has to have strict aliasing turned off too
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -qnoansialias, for CFLAGS" >&5
6325 $as_echo_n "checking whether ${CC} supports -qnoansialias, for CFLAGS... " >&6; }
6326 if ${pgac_cv_prog_CC_cflags__qnoansialias+:} false
; then :
6327 $as_echo_n "(cached) " >&6
6329 pgac_save_CFLAGS
=$CFLAGS
6332 CFLAGS
="${CFLAGS} -qnoansialias"
6333 ac_save_c_werror_flag
=$ac_c_werror_flag
6334 ac_c_werror_flag
=yes
6335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6336 /* end confdefs.h. */
6346 if ac_fn_c_try_compile
"$LINENO"; then :
6347 pgac_cv_prog_CC_cflags__qnoansialias
=yes
6349 pgac_cv_prog_CC_cflags__qnoansialias
=no
6351 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6352 ac_c_werror_flag
=$ac_save_c_werror_flag
6353 CFLAGS
="$pgac_save_CFLAGS"
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__qnoansialias" >&5
6357 $as_echo "$pgac_cv_prog_CC_cflags__qnoansialias" >&6; }
6358 if test x
"$pgac_cv_prog_CC_cflags__qnoansialias" = x
"yes"; then
6359 CFLAGS
="${CFLAGS} -qnoansialias"
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -qnoansialias, for CXXFLAGS" >&5
6364 $as_echo_n "checking whether ${CXX} supports -qnoansialias, for CXXFLAGS... " >&6; }
6365 if ${pgac_cv_prog_CXX_cxxflags__qnoansialias+:} false
; then :
6366 $as_echo_n "(cached) " >&6
6368 pgac_save_CXXFLAGS
=$CXXFLAGS
6371 CXXFLAGS
="${CXXFLAGS} -qnoansialias"
6372 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6373 ac_cxx_werror_flag
=yes
6375 ac_cpp
='$CXXCPP $CPPFLAGS'
6376 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6377 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6378 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6381 /* end confdefs.h. */
6391 if ac_fn_cxx_try_compile
"$LINENO"; then :
6392 pgac_cv_prog_CXX_cxxflags__qnoansialias
=yes
6394 pgac_cv_prog_CXX_cxxflags__qnoansialias
=no
6396 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6398 ac_cpp
='$CPP $CPPFLAGS'
6399 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6400 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6401 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6403 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6404 CXXFLAGS
="$pgac_save_CXXFLAGS"
6405 CXX
="$pgac_save_CXX"
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__qnoansialias" >&5
6408 $as_echo "$pgac_cv_prog_CXX_cxxflags__qnoansialias" >&6; }
6409 if test x
"$pgac_cv_prog_CXX_cxxflags__qnoansialias" = x
"yes"; then
6410 CXXFLAGS
="${CXXFLAGS} -qnoansialias"
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -qlonglong, for CFLAGS" >&5
6416 $as_echo_n "checking whether ${CC} supports -qlonglong, for CFLAGS... " >&6; }
6417 if ${pgac_cv_prog_CC_cflags__qlonglong+:} false
; then :
6418 $as_echo_n "(cached) " >&6
6420 pgac_save_CFLAGS
=$CFLAGS
6423 CFLAGS
="${CFLAGS} -qlonglong"
6424 ac_save_c_werror_flag
=$ac_c_werror_flag
6425 ac_c_werror_flag
=yes
6426 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6427 /* end confdefs.h. */
6437 if ac_fn_c_try_compile
"$LINENO"; then :
6438 pgac_cv_prog_CC_cflags__qlonglong
=yes
6440 pgac_cv_prog_CC_cflags__qlonglong
=no
6442 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6443 ac_c_werror_flag
=$ac_save_c_werror_flag
6444 CFLAGS
="$pgac_save_CFLAGS"
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__qlonglong" >&5
6448 $as_echo "$pgac_cv_prog_CC_cflags__qlonglong" >&6; }
6449 if test x
"$pgac_cv_prog_CC_cflags__qlonglong" = x
"yes"; then
6450 CFLAGS
="${CFLAGS} -qlonglong"
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -qlonglong, for CXXFLAGS" >&5
6455 $as_echo_n "checking whether ${CXX} supports -qlonglong, for CXXFLAGS... " >&6; }
6456 if ${pgac_cv_prog_CXX_cxxflags__qlonglong+:} false
; then :
6457 $as_echo_n "(cached) " >&6
6459 pgac_save_CXXFLAGS
=$CXXFLAGS
6462 CXXFLAGS
="${CXXFLAGS} -qlonglong"
6463 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6464 ac_cxx_werror_flag
=yes
6466 ac_cpp
='$CXXCPP $CPPFLAGS'
6467 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6468 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6469 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6472 /* end confdefs.h. */
6482 if ac_fn_cxx_try_compile
"$LINENO"; then :
6483 pgac_cv_prog_CXX_cxxflags__qlonglong
=yes
6485 pgac_cv_prog_CXX_cxxflags__qlonglong
=no
6487 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6489 ac_cpp
='$CPP $CPPFLAGS'
6490 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6491 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6492 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6494 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6495 CXXFLAGS
="$pgac_save_CXXFLAGS"
6496 CXX
="$pgac_save_CXX"
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__qlonglong" >&5
6499 $as_echo "$pgac_cv_prog_CXX_cxxflags__qlonglong" >&6; }
6500 if test x
"$pgac_cv_prog_CXX_cxxflags__qlonglong" = x
"yes"; then
6501 CXXFLAGS
="${CXXFLAGS} -qlonglong"
6505 elif test "$PORTNAME" = "hpux"; then
6506 # On some versions of HP-UX, libm functions do not set errno by default.
6507 # Fix that by using +Olibmerrno if the compiler recognizes it.
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports +Olibmerrno, for CFLAGS" >&5
6510 $as_echo_n "checking whether ${CC} supports +Olibmerrno, for CFLAGS... " >&6; }
6511 if ${pgac_cv_prog_CC_cflags_pOlibmerrno+:} false
; then :
6512 $as_echo_n "(cached) " >&6
6514 pgac_save_CFLAGS
=$CFLAGS
6517 CFLAGS
="${CFLAGS} +Olibmerrno"
6518 ac_save_c_werror_flag
=$ac_c_werror_flag
6519 ac_c_werror_flag
=yes
6520 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6521 /* end confdefs.h. */
6531 if ac_fn_c_try_compile
"$LINENO"; then :
6532 pgac_cv_prog_CC_cflags_pOlibmerrno
=yes
6534 pgac_cv_prog_CC_cflags_pOlibmerrno
=no
6536 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6537 ac_c_werror_flag
=$ac_save_c_werror_flag
6538 CFLAGS
="$pgac_save_CFLAGS"
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags_pOlibmerrno" >&5
6542 $as_echo "$pgac_cv_prog_CC_cflags_pOlibmerrno" >&6; }
6543 if test x
"$pgac_cv_prog_CC_cflags_pOlibmerrno" = x
"yes"; then
6544 CFLAGS
="${CFLAGS} +Olibmerrno"
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports +Olibmerrno, for CXXFLAGS" >&5
6549 $as_echo_n "checking whether ${CXX} supports +Olibmerrno, for CXXFLAGS... " >&6; }
6550 if ${pgac_cv_prog_CXX_cxxflags_pOlibmerrno+:} false
; then :
6551 $as_echo_n "(cached) " >&6
6553 pgac_save_CXXFLAGS
=$CXXFLAGS
6556 CXXFLAGS
="${CXXFLAGS} +Olibmerrno"
6557 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6558 ac_cxx_werror_flag
=yes
6560 ac_cpp
='$CXXCPP $CPPFLAGS'
6561 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6562 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6563 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6565 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6566 /* end confdefs.h. */
6576 if ac_fn_cxx_try_compile
"$LINENO"; then :
6577 pgac_cv_prog_CXX_cxxflags_pOlibmerrno
=yes
6579 pgac_cv_prog_CXX_cxxflags_pOlibmerrno
=no
6581 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6583 ac_cpp
='$CPP $CPPFLAGS'
6584 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6585 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6586 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6588 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6589 CXXFLAGS
="$pgac_save_CXXFLAGS"
6590 CXX
="$pgac_save_CXX"
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags_pOlibmerrno" >&5
6593 $as_echo "$pgac_cv_prog_CXX_cxxflags_pOlibmerrno" >&6; }
6594 if test x
"$pgac_cv_prog_CXX_cxxflags_pOlibmerrno" = x
"yes"; then
6595 CXXFLAGS
="${CXXFLAGS} +Olibmerrno"
6603 # Determine flags used to emit bitcode for JIT inlining. Need to test
6604 # for behaviour changing compiler flags, to keep compatibility with
6605 # compiler used for normal postgres code.
6606 if test "$with_llvm" = yes ; then
6607 CLANGXX
="$CLANG -xc++"
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -fno-strict-aliasing, for BITCODE_CFLAGS" >&5
6610 $as_echo_n "checking whether ${CLANG} supports -fno-strict-aliasing, for BITCODE_CFLAGS... " >&6; }
6611 if ${pgac_cv_prog_CLANG_cflags__fno_strict_aliasing+:} false
; then :
6612 $as_echo_n "(cached) " >&6
6614 pgac_save_CFLAGS
=$CFLAGS
6617 CFLAGS
="${BITCODE_CFLAGS} -fno-strict-aliasing"
6618 ac_save_c_werror_flag
=$ac_c_werror_flag
6619 ac_c_werror_flag
=yes
6620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6621 /* end confdefs.h. */
6631 if ac_fn_c_try_compile
"$LINENO"; then :
6632 pgac_cv_prog_CLANG_cflags__fno_strict_aliasing
=yes
6634 pgac_cv_prog_CLANG_cflags__fno_strict_aliasing
=no
6636 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6637 ac_c_werror_flag
=$ac_save_c_werror_flag
6638 CFLAGS
="$pgac_save_CFLAGS"
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__fno_strict_aliasing" >&5
6642 $as_echo "$pgac_cv_prog_CLANG_cflags__fno_strict_aliasing" >&6; }
6643 if test x
"$pgac_cv_prog_CLANG_cflags__fno_strict_aliasing" = x
"yes"; then
6644 BITCODE_CFLAGS
="${BITCODE_CFLAGS} -fno-strict-aliasing"
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANGXX} supports -fno-strict-aliasing, for BITCODE_CXXFLAGS" >&5
6648 $as_echo_n "checking whether ${CLANGXX} supports -fno-strict-aliasing, for BITCODE_CXXFLAGS... " >&6; }
6649 if ${pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing+:} false
; then :
6650 $as_echo_n "(cached) " >&6
6652 pgac_save_CXXFLAGS
=$CXXFLAGS
6655 CXXFLAGS
="${BITCODE_CXXFLAGS} -fno-strict-aliasing"
6656 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6657 ac_cxx_werror_flag
=yes
6659 ac_cpp
='$CXXCPP $CPPFLAGS'
6660 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6661 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6662 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6665 /* end confdefs.h. */
6675 if ac_fn_cxx_try_compile
"$LINENO"; then :
6676 pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing
=yes
6678 pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing
=no
6680 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6682 ac_cpp
='$CPP $CPPFLAGS'
6683 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6684 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6685 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6687 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6688 CXXFLAGS
="$pgac_save_CXXFLAGS"
6689 CXX
="$pgac_save_CXX"
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing" >&5
6692 $as_echo "$pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing" >&6; }
6693 if test x
"$pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing" = x
"yes"; then
6694 BITCODE_CXXFLAGS
="${BITCODE_CXXFLAGS} -fno-strict-aliasing"
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -fwrapv, for BITCODE_CFLAGS" >&5
6698 $as_echo_n "checking whether ${CLANG} supports -fwrapv, for BITCODE_CFLAGS... " >&6; }
6699 if ${pgac_cv_prog_CLANG_cflags__fwrapv+:} false
; then :
6700 $as_echo_n "(cached) " >&6
6702 pgac_save_CFLAGS
=$CFLAGS
6705 CFLAGS
="${BITCODE_CFLAGS} -fwrapv"
6706 ac_save_c_werror_flag
=$ac_c_werror_flag
6707 ac_c_werror_flag
=yes
6708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6709 /* end confdefs.h. */
6719 if ac_fn_c_try_compile
"$LINENO"; then :
6720 pgac_cv_prog_CLANG_cflags__fwrapv
=yes
6722 pgac_cv_prog_CLANG_cflags__fwrapv
=no
6724 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6725 ac_c_werror_flag
=$ac_save_c_werror_flag
6726 CFLAGS
="$pgac_save_CFLAGS"
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__fwrapv" >&5
6730 $as_echo "$pgac_cv_prog_CLANG_cflags__fwrapv" >&6; }
6731 if test x
"$pgac_cv_prog_CLANG_cflags__fwrapv" = x
"yes"; then
6732 BITCODE_CFLAGS
="${BITCODE_CFLAGS} -fwrapv"
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANGXX} supports -fwrapv, for BITCODE_CXXFLAGS" >&5
6736 $as_echo_n "checking whether ${CLANGXX} supports -fwrapv, for BITCODE_CXXFLAGS... " >&6; }
6737 if ${pgac_cv_prog_CLANGXX_cxxflags__fwrapv+:} false
; then :
6738 $as_echo_n "(cached) " >&6
6740 pgac_save_CXXFLAGS
=$CXXFLAGS
6743 CXXFLAGS
="${BITCODE_CXXFLAGS} -fwrapv"
6744 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6745 ac_cxx_werror_flag
=yes
6747 ac_cpp
='$CXXCPP $CPPFLAGS'
6748 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6749 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6750 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6753 /* end confdefs.h. */
6763 if ac_fn_cxx_try_compile
"$LINENO"; then :
6764 pgac_cv_prog_CLANGXX_cxxflags__fwrapv
=yes
6766 pgac_cv_prog_CLANGXX_cxxflags__fwrapv
=no
6768 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6770 ac_cpp
='$CPP $CPPFLAGS'
6771 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6772 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6773 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6775 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6776 CXXFLAGS
="$pgac_save_CXXFLAGS"
6777 CXX
="$pgac_save_CXX"
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANGXX_cxxflags__fwrapv" >&5
6780 $as_echo "$pgac_cv_prog_CLANGXX_cxxflags__fwrapv" >&6; }
6781 if test x
"$pgac_cv_prog_CLANGXX_cxxflags__fwrapv" = x
"yes"; then
6782 BITCODE_CXXFLAGS
="${BITCODE_CXXFLAGS} -fwrapv"
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -fexcess-precision=standard, for BITCODE_CFLAGS" >&5
6786 $as_echo_n "checking whether ${CLANG} supports -fexcess-precision=standard, for BITCODE_CFLAGS... " >&6; }
6787 if ${pgac_cv_prog_CLANG_cflags__fexcess_precision_standard+:} false
; then :
6788 $as_echo_n "(cached) " >&6
6790 pgac_save_CFLAGS
=$CFLAGS
6793 CFLAGS
="${BITCODE_CFLAGS} -fexcess-precision=standard"
6794 ac_save_c_werror_flag
=$ac_c_werror_flag
6795 ac_c_werror_flag
=yes
6796 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6797 /* end confdefs.h. */
6807 if ac_fn_c_try_compile
"$LINENO"; then :
6808 pgac_cv_prog_CLANG_cflags__fexcess_precision_standard
=yes
6810 pgac_cv_prog_CLANG_cflags__fexcess_precision_standard
=no
6812 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6813 ac_c_werror_flag
=$ac_save_c_werror_flag
6814 CFLAGS
="$pgac_save_CFLAGS"
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__fexcess_precision_standard" >&5
6818 $as_echo "$pgac_cv_prog_CLANG_cflags__fexcess_precision_standard" >&6; }
6819 if test x
"$pgac_cv_prog_CLANG_cflags__fexcess_precision_standard" = x
"yes"; then
6820 BITCODE_CFLAGS
="${BITCODE_CFLAGS} -fexcess-precision=standard"
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANGXX} supports -fexcess-precision=standard, for BITCODE_CXXFLAGS" >&5
6824 $as_echo_n "checking whether ${CLANGXX} supports -fexcess-precision=standard, for BITCODE_CXXFLAGS... " >&6; }
6825 if ${pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard+:} false
; then :
6826 $as_echo_n "(cached) " >&6
6828 pgac_save_CXXFLAGS
=$CXXFLAGS
6831 CXXFLAGS
="${BITCODE_CXXFLAGS} -fexcess-precision=standard"
6832 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6833 ac_cxx_werror_flag
=yes
6835 ac_cpp
='$CXXCPP $CPPFLAGS'
6836 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6837 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6838 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6841 /* end confdefs.h. */
6851 if ac_fn_cxx_try_compile
"$LINENO"; then :
6852 pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard
=yes
6854 pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard
=no
6856 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6858 ac_cpp
='$CPP $CPPFLAGS'
6859 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6860 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6861 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6863 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6864 CXXFLAGS
="$pgac_save_CXXFLAGS"
6865 CXX
="$pgac_save_CXX"
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard" >&5
6868 $as_echo "$pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard" >&6; }
6869 if test x
"$pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard" = x
"yes"; then
6870 BITCODE_CXXFLAGS
="${BITCODE_CXXFLAGS} -fexcess-precision=standard"
6875 # supply -g if --enable-debug
6876 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
6880 if test "$enable_debug" = yes && test "$ac_cv_prog_cxx_g" = yes; then
6881 CXXFLAGS
="$CXXFLAGS -g"
6884 # enable code coverage if --enable-coverage
6885 if test "$enable_coverage" = yes; then
6886 if test "$GCC" = yes; then
6887 CFLAGS
="$CFLAGS -fprofile-arcs -ftest-coverage"
6888 CXXFLAGS
="$CXXFLAGS -fprofile-arcs -ftest-coverage"
6890 as_fn_error $?
"--enable-coverage is supported only when using GCC" "$LINENO" 5
6894 # enable profiling if --enable-profiling
6895 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
6896 if test "$GCC" = yes; then
6898 $as_echo "#define PROFILE_PID_DIR 1" >>confdefs.h
6900 CFLAGS
="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
6901 CXXFLAGS
="$CXXFLAGS -pg $PLATFORM_PROFILE_FLAGS"
6903 as_fn_error $?
"--enable-profiling is supported only when using GCC" "$LINENO" 5
6907 # We already have this in Makefile.win32, but configure needs it too
6908 if test "$PORTNAME" = "win32"; then
6909 CPPFLAGS
="$CPPFLAGS -I$srcdir/src/include/port/win32"
6912 # Now that we're done automatically adding stuff to C[XX]FLAGS, put back the
6913 # user-specified flags (if any) at the end. This lets users override
6914 # the automatic additions.
6915 CFLAGS
="$CFLAGS $user_CFLAGS"
6916 CXXFLAGS
="$CXXFLAGS $user_CXXFLAGS"
6917 BITCODE_CFLAGS
="$BITCODE_CFLAGS $user_BITCODE_CFLAGS"
6918 BITCODE_CXXFLAGS
="$BITCODE_CXXFLAGS $user_BITCODE_CXXFLAGS"
6923 # The template file must set up CFLAGS_SL; we don't support user override
6926 # Check if the compiler still works with the final flag settings
6927 # (note, we're not checking that for CXX, which is optional)
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler still works" >&5
6929 $as_echo_n "checking whether the C compiler still works... " >&6; }
6930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6931 /* end confdefs.h. */
6941 if ac_fn_c_try_link
"$LINENO"; then :
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6943 $as_echo "yes" >&6; }
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6946 $as_echo "no" >&6; }
6947 as_fn_error $?
"cannot proceed" "$LINENO" 5
6949 rm -f core conftest.err conftest.
$ac_objext \
6950 conftest
$ac_exeext conftest.
$ac_ext
6952 # Defend against gcc -ffast-math
6953 if test "$GCC" = yes; then
6954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6955 /* end confdefs.h. */
6960 #ifdef __FAST_MATH__
6967 if ac_fn_c_try_compile
"$LINENO"; then :
6970 as_fn_error $?
"do not put -ffast-math in CFLAGS" "$LINENO" 5
6972 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6975 # Defend against clang being used on x86-32 without SSE2 enabled. As current
6976 # versions of clang do not understand -fexcess-precision=standard, the use of
6977 # x87 floating point operations leads to problems like isinf possibly returning
6978 # false for a value that is infinite when converted from the 80bit register to
6979 # the 8byte memory representation.
6981 # Only perform the test if the compiler doesn't understand
6982 # -fexcess-precision=standard, that way a potentially fixed compiler will work
6984 if test "$pgac_cv_prog_CC_cflags__fexcess_precision_standard" = no
; then
6985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6986 /* end confdefs.h. */
6992 #if defined(__clang__) && defined(__i386__) && !defined(__SSE2_MATH__)
7000 if ac_fn_c_try_compile
"$LINENO"; then :
7003 as_fn_error $?
"Compiling PostgreSQL with clang, on 32bit x86, requires SSE2 support. Use -msse2 or use gcc." "$LINENO" 5
7005 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7009 ac_cpp
='$CPP $CPPFLAGS'
7010 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7011 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7012 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7014 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7015 # On Suns, sometimes $CPP names a directory.
7016 if test -n "$CPP" && test -d "$CPP"; then
7019 if test -z "$CPP"; then
7020 if ${ac_cv_prog_CPP+:} false
; then :
7021 $as_echo_n "(cached) " >&6
7023 # Double quotes because CPP needs to be expanded
7024 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7027 for ac_c_preproc_warn_flag
in '' yes
7029 # Use a header file that comes with gcc, so configuring glibc
7030 # with a fresh cross-compiler works.
7031 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7032 # <limits.h> exists even on freestanding compilers.
7033 # On the NeXT, cc -E runs the code through the compiler's parser,
7034 # not just through cpp. "Syntax error" is here to catch this case.
7035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7036 /* end confdefs.h. */
7038 # include <limits.h>
7040 # include <assert.h>
7044 if ac_fn_c_try_cpp
"$LINENO"; then :
7047 # Broken: fails on valid input.
7050 rm -f conftest.err conftest.i conftest.
$ac_ext
7052 # OK, works on sane cases. Now check whether nonexistent headers
7053 # can be detected and how.
7054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7055 /* end confdefs.h. */
7056 #include <ac_nonexistent.h>
7058 if ac_fn_c_try_cpp
"$LINENO"; then :
7059 # Broken: success on invalid input.
7062 # Passes both tests.
7066 rm -f conftest.err conftest.i conftest.
$ac_ext
7069 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7070 rm -f conftest.i conftest.err conftest.
$ac_ext
7071 if $ac_preproc_ok; then :
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7084 $as_echo "$CPP" >&6; }
7086 for ac_c_preproc_warn_flag
in '' yes
7088 # Use a header file that comes with gcc, so configuring glibc
7089 # with a fresh cross-compiler works.
7090 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7091 # <limits.h> exists even on freestanding compilers.
7092 # On the NeXT, cc -E runs the code through the compiler's parser,
7093 # not just through cpp. "Syntax error" is here to catch this case.
7094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7095 /* end confdefs.h. */
7097 # include <limits.h>
7099 # include <assert.h>
7103 if ac_fn_c_try_cpp
"$LINENO"; then :
7106 # Broken: fails on valid input.
7109 rm -f conftest.err conftest.i conftest.
$ac_ext
7111 # OK, works on sane cases. Now check whether nonexistent headers
7112 # can be detected and how.
7113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7114 /* end confdefs.h. */
7115 #include <ac_nonexistent.h>
7117 if ac_fn_c_try_cpp
"$LINENO"; then :
7118 # Broken: success on invalid input.
7121 # Passes both tests.
7125 rm -f conftest.err conftest.i conftest.
$ac_ext
7128 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7129 rm -f conftest.i conftest.err conftest.
$ac_ext
7130 if $ac_preproc_ok; then :
7133 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7134 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7135 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
7136 See \`config.log' for more details" "$LINENO" 5; }
7140 ac_cpp
='$CPP $CPPFLAGS'
7141 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7142 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7143 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7149 # Set up TAS assembly code if needed; the template file has now had its
7150 # chance to request this.
7152 ac_config_links
="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
7155 if test "$need_tas" = yes ; then
7163 # Set up pkg_config in case we need it below
7172 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7173 if test -n "$ac_tool_prefix"; then
7174 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7175 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7177 $as_echo_n "checking for $ac_word... " >&6; }
7178 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
7179 $as_echo_n "(cached) " >&6
7183 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
7186 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7190 test -z "$as_dir" && as_dir
=.
7191 for ac_exec_ext
in '' $ac_executable_extensions; do
7192 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7193 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7204 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
7205 if test -n "$PKG_CONFIG"; then
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7207 $as_echo "$PKG_CONFIG" >&6; }
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7210 $as_echo "no" >&6; }
7215 if test -z "$ac_cv_path_PKG_CONFIG"; then
7216 ac_pt_PKG_CONFIG
=$PKG_CONFIG
7217 # Extract the first word of "pkg-config", so it can be a program name with args.
7218 set dummy pkg-config
; ac_word
=$2
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7220 $as_echo_n "checking for $ac_word... " >&6; }
7221 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
7222 $as_echo_n "(cached) " >&6
7224 case $ac_pt_PKG_CONFIG in
7226 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7229 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7233 test -z "$as_dir" && as_dir
=.
7234 for ac_exec_ext
in '' $ac_executable_extensions; do
7235 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7236 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7247 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
7248 if test -n "$ac_pt_PKG_CONFIG"; then
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7250 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7253 $as_echo "no" >&6; }
7256 if test "x$ac_pt_PKG_CONFIG" = x
; then
7259 case $cross_compiling:$ac_tool_warned in
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7262 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7263 ac_tool_warned
=yes ;;
7265 PKG_CONFIG
=$ac_pt_PKG_CONFIG
7268 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
7272 if test -n "$PKG_CONFIG"; then
7273 _pkg_min_version
=0.9.0
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7275 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7276 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7278 $as_echo "yes" >&6; }
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7281 $as_echo "no" >&6; }
7287 # Automatic dependency tracking
7291 # Check whether --enable-depend was given.
7292 if test "${enable_depend+set}" = set; then :
7293 enableval
=$enable_depend;
7302 as_fn_error $?
"no argument expected for --enable-depend option" "$LINENO" 5
7316 # Enable assert checks
7320 # Check whether --enable-cassert was given.
7321 if test "${enable_cassert+set}" = set; then :
7322 enableval
=$enable_cassert;
7326 $as_echo "#define USE_ASSERT_CHECKING 1" >>confdefs.h
7333 as_fn_error $?
"no argument expected for --enable-cassert option" "$LINENO" 5
7346 # Include directories
7349 IFS
="${IFS}${PATH_SEPARATOR}"
7350 # SRCH_INC comes from the template file
7351 for dir
in $with_includes $SRCH_INC; do
7352 if test -d "$dir"; then
7353 INCLUDES
="$INCLUDES -I$dir"
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Include directory $dir does not exist." >&5
7356 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
7364 # Library directories
7367 IFS
="${IFS}${PATH_SEPARATOR}"
7368 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
7369 for dir
in $LIBRARY_DIRS $SRCH_LIB; do
7370 if test -d "$dir"; then
7371 LIBDIRS
="$LIBDIRS -L$dir"
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Library directory $dir does not exist." >&5
7374 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
7380 # Enable thread-safe client libraries
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking allow thread-safe client libraries" >&5
7383 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
7386 # Check whether --enable-thread-safety was given.
7387 if test "${enable_thread_safety+set}" = set; then :
7388 enableval
=$enable_thread_safety;
7397 as_fn_error $?
"no argument expected for --enable-thread-safety option" "$LINENO" 5
7402 enable_thread_safety
=yes
7407 if test "$enable_thread_safety" = yes; then
7409 $as_echo "#define ENABLE_THREAD_SAFETY 1" >>confdefs.h
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_thread_safety" >&5
7413 $as_echo "$enable_thread_safety" >&6; }
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with ICU support" >&5
7420 $as_echo_n "checking whether to build with ICU support... " >&6; }
7424 # Check whether --with-icu was given.
7425 if test "${with_icu+set}" = set; then :
7430 $as_echo "#define USE_ICU 1" >>confdefs.h
7437 as_fn_error $?
"no argument expected for --with-icu option" "$LINENO" 5
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_icu" >&5
7448 $as_echo "$with_icu" >&6; }
7451 if test "$with_icu" = yes; then
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icu-uc icu-i18n" >&5
7455 $as_echo_n "checking for icu-uc icu-i18n... " >&6; }
7457 if test -n "$ICU_CFLAGS"; then
7458 pkg_cv_ICU_CFLAGS
="$ICU_CFLAGS"
7459 elif test -n "$PKG_CONFIG"; then
7460 if test -n "$PKG_CONFIG" && \
7461 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc icu-i18n\""; } >&5
7462 ($PKG_CONFIG --exists --print-errors "icu-uc icu-i18n") 2>&5
7464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7465 test $ac_status = 0; }; then
7466 pkg_cv_ICU_CFLAGS
=`$PKG_CONFIG --cflags "icu-uc icu-i18n" 2>/dev/null`
7467 test "x$?" != "x0" && pkg_failed
=yes
7474 if test -n "$ICU_LIBS"; then
7475 pkg_cv_ICU_LIBS
="$ICU_LIBS"
7476 elif test -n "$PKG_CONFIG"; then
7477 if test -n "$PKG_CONFIG" && \
7478 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc icu-i18n\""; } >&5
7479 ($PKG_CONFIG --exists --print-errors "icu-uc icu-i18n") 2>&5
7481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7482 test $ac_status = 0; }; then
7483 pkg_cv_ICU_LIBS
=`$PKG_CONFIG --libs "icu-uc icu-i18n" 2>/dev/null`
7484 test "x$?" != "x0" && pkg_failed
=yes
7494 if test $pkg_failed = yes; then
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7496 $as_echo "no" >&6; }
7498 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7499 _pkg_short_errors_supported
=yes
7501 _pkg_short_errors_supported
=no
7503 if test $_pkg_short_errors_supported = yes; then
7504 ICU_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "icu-uc icu-i18n" 2>&1`
7506 ICU_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "icu-uc icu-i18n" 2>&1`
7508 # Put the nasty error message in config.log where it belongs
7509 echo "$ICU_PKG_ERRORS" >&5
7511 as_fn_error $?
"Package requirements (icu-uc icu-i18n) were not met:
7515 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7516 installed software in a non-standard prefix.
7518 Alternatively, you may set the environment variables ICU_CFLAGS
7519 and ICU_LIBS to avoid the need to call pkg-config.
7520 See the pkg-config man page for more details." "$LINENO" 5
7521 elif test $pkg_failed = untried
; then
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7523 $as_echo "no" >&6; }
7524 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7526 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
7527 is in your PATH or set the PKG_CONFIG environment variable to the full
7530 Alternatively, you may set the environment variables ICU_CFLAGS
7531 and ICU_LIBS to avoid the need to call pkg-config.
7532 See the pkg-config man page for more details.
7534 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7535 See \`config.log' for more details" "$LINENO" 5; }
7537 ICU_CFLAGS
=$pkg_cv_ICU_CFLAGS
7538 ICU_LIBS
=$pkg_cv_ICU_LIBS
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7540 $as_echo "yes" >&6; }
7546 # Optionally build Tcl modules (PL/Tcl)
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with Tcl" >&5
7549 $as_echo_n "checking whether to build with Tcl... " >&6; }
7553 # Check whether --with-tcl was given.
7554 if test "${with_tcl+set}" = set; then :
7564 as_fn_error $?
"no argument expected for --with-tcl option" "$LINENO" 5
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcl" >&5
7575 $as_echo "$with_tcl" >&6; }
7578 # We see if the path to the Tcl/Tk configuration scripts is specified.
7579 # This will override the use of tclsh to find the paths to search.
7584 # Check whether --with-tclconfig was given.
7585 if test "${with_tclconfig+set}" = set; then :
7586 withval
=$with_tclconfig;
7589 as_fn_error $?
"argument required for --with-tclconfig option" "$LINENO" 5
7592 as_fn_error $?
"argument required for --with-tclconfig option" "$LINENO" 5
7604 # Optionally build Perl modules (PL/Perl)
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Perl modules" >&5
7607 $as_echo_n "checking whether to build Perl modules... " >&6; }
7611 # Check whether --with-perl was given.
7612 if test "${with_perl+set}" = set; then :
7622 as_fn_error $?
"no argument expected for --with-perl option" "$LINENO" 5
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_perl" >&5
7633 $as_echo "$with_perl" >&6; }
7637 # Optionally build Python modules (PL/Python)
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Python modules" >&5
7640 $as_echo_n "checking whether to build Python modules... " >&6; }
7644 # Check whether --with-python was given.
7645 if test "${with_python+set}" = set; then :
7646 withval
=$with_python;
7655 as_fn_error $?
"no argument expected for --with-python option" "$LINENO" 5
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
7666 $as_echo "$with_python" >&6; }
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with GSSAPI support" >&5
7673 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
7677 # Check whether --with-gssapi was given.
7678 if test "${with_gssapi+set}" = set; then :
7679 withval
=$with_gssapi;
7684 $as_echo "#define ENABLE_GSS 1" >>confdefs.h
7686 krb_srvtab
="FILE:\$(sysconfdir)/krb5.keytab"
7693 as_fn_error $?
"no argument expected for --with-gssapi option" "$LINENO" 5
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_gssapi" >&5
7704 $as_echo "$with_gssapi" >&6; }
7712 # Kerberos configuration parameters
7717 # Check whether --with-krb-srvnam was given.
7718 if test "${with_krb_srvnam+set}" = set; then :
7719 withval
=$with_krb_srvnam;
7722 as_fn_error $?
"argument required for --with-krb-srvnam option" "$LINENO" 5
7725 as_fn_error $?
"argument required for --with-krb-srvnam option" "$LINENO" 5
7733 with_krb_srvnam
="postgres"
7739 cat >>confdefs.h
<<_ACEOF
7740 #define PG_KRB_SRVNAM "$with_krb_srvnam"
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with PAM support" >&5
7749 $as_echo_n "checking whether to build with PAM support... " >&6; }
7753 # Check whether --with-pam was given.
7754 if test "${with_pam+set}" = set; then :
7759 $as_echo "#define USE_PAM 1" >>confdefs.h
7766 as_fn_error $?
"no argument expected for --with-pam option" "$LINENO" 5
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pam" >&5
7777 $as_echo "$with_pam" >&6; }
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with BSD Authentication support" >&5
7784 $as_echo_n "checking whether to build with BSD Authentication support... " >&6; }
7788 # Check whether --with-bsd-auth was given.
7789 if test "${with_bsd_auth+set}" = set; then :
7790 withval
=$with_bsd_auth;
7794 $as_echo "#define USE_BSD_AUTH 1" >>confdefs.h
7801 as_fn_error $?
"no argument expected for --with-bsd-auth option" "$LINENO" 5
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_bsd_auth" >&5
7812 $as_echo "$with_bsd_auth" >&6; }
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with LDAP support" >&5
7819 $as_echo_n "checking whether to build with LDAP support... " >&6; }
7823 # Check whether --with-ldap was given.
7824 if test "${with_ldap+set}" = set; then :
7829 $as_echo "#define USE_LDAP 1" >>confdefs.h
7836 as_fn_error $?
"no argument expected for --with-ldap option" "$LINENO" 5
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ldap" >&5
7847 $as_echo "$with_ldap" >&6; }
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with Bonjour support" >&5
7855 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
7859 # Check whether --with-bonjour was given.
7860 if test "${with_bonjour+set}" = set; then :
7861 withval
=$with_bonjour;
7865 $as_echo "#define USE_BONJOUR 1" >>confdefs.h
7872 as_fn_error $?
"no argument expected for --with-bonjour option" "$LINENO" 5
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_bonjour" >&5
7883 $as_echo "$with_bonjour" >&6; }
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with OpenSSL support" >&5
7890 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
7894 # Check whether --with-openssl was given.
7895 if test "${with_openssl+set}" = set; then :
7896 withval
=$with_openssl;
7900 $as_echo "#define USE_OPENSSL 1" >>confdefs.h
7907 as_fn_error $?
"no argument expected for --with-openssl option" "$LINENO" 5
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_openssl" >&5
7918 $as_echo "$with_openssl" >&6; }
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with SELinux support" >&5
7925 $as_echo_n "checking whether to build with SELinux support... " >&6; }
7929 # Check whether --with-selinux was given.
7930 if test "${with_selinux+set}" = set; then :
7931 withval
=$with_selinux;
7940 as_fn_error $?
"no argument expected for --with-selinux option" "$LINENO" 5
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_selinux" >&5
7952 $as_echo "$with_selinux" >&6; }
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with systemd support" >&5
7958 $as_echo_n "checking whether to build with systemd support... " >&6; }
7962 # Check whether --with-systemd was given.
7963 if test "${with_systemd+set}" = set; then :
7964 withval
=$with_systemd;
7968 $as_echo "#define USE_SYSTEMD 1" >>confdefs.h
7975 as_fn_error $?
"no argument expected for --with-systemd option" "$LINENO" 5
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemd" >&5
7987 $as_echo "$with_systemd" >&6; }
7995 # Check whether --with-readline was given.
7996 if test "${with_readline+set}" = set; then :
7997 withval
=$with_readline;
8006 as_fn_error $?
"no argument expected for --with-readline option" "$LINENO" 5
8016 # readline on MinGW has problems with backslashes in psql and other bugs.
8017 # This is particularly a problem with non-US code pages.
8018 # Therefore disable its use until we understand the cause. 2004-07-20
8019 if test "$PORTNAME" = "win32"; then
8020 if test "$with_readline" = yes; then
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Readline does not work on MinGW --- disabling" >&5
8022 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
8035 # Check whether --with-libedit-preferred was given.
8036 if test "${with_libedit_preferred+set}" = set; then :
8037 withval
=$with_libedit_preferred;
8046 as_fn_error $?
"no argument expected for --with-libedit-preferred option" "$LINENO" 5
8051 with_libedit_preferred
=no
8061 # There are at least three UUID libraries in common use: the FreeBSD/NetBSD
8062 # library, the e2fsprogs libuuid (now part of util-linux-ng), and the OSSP
8063 # UUID library. More than one of these might be present on a given platform,
8064 # so we make the user say which one she wants.
8069 # Check whether --with-uuid was given.
8070 if test "${with_uuid+set}" = set; then :
8074 as_fn_error $?
"argument required for --with-uuid option" "$LINENO" 5
8077 as_fn_error $?
"argument required for --with-uuid option" "$LINENO" 5
8087 if test x
"$with_uuid" = x
"" ; then
8093 # Check whether --with-ossp-uuid was given.
8094 if test "${with_ossp_uuid+set}" = set; then :
8095 withval
=$with_ossp_uuid;
8104 as_fn_error $?
"no argument expected for --with-ossp-uuid option" "$LINENO" 5
8114 if test "$with_ossp_uuid" = yes ; then
8118 if test "$with_uuid" = bsd
; then
8120 $as_echo "#define HAVE_UUID_BSD 1" >>confdefs.h
8122 UUID_EXTRA_OBJS
="md5.o sha1.o"
8123 elif test "$with_uuid" = e2fs
; then
8125 $as_echo "#define HAVE_UUID_E2FS 1" >>confdefs.h
8127 UUID_EXTRA_OBJS
="md5.o sha1.o"
8128 elif test "$with_uuid" = ossp
; then
8130 $as_echo "#define HAVE_UUID_OSSP 1" >>confdefs.h
8133 elif test "$with_uuid" = no
; then
8136 as_fn_error $?
"--with-uuid must specify one of bsd, e2fs, or ossp" "$LINENO" 5
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with XML support" >&5
8146 $as_echo_n "checking whether to build with XML support... " >&6; }
8150 # Check whether --with-libxml was given.
8151 if test "${with_libxml+set}" = set; then :
8152 withval
=$with_libxml;
8156 $as_echo "#define USE_LIBXML 1" >>confdefs.h
8163 as_fn_error $?
"no argument expected for --with-libxml option" "$LINENO" 5
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_libxml" >&5
8174 $as_echo "$with_libxml" >&6; }
8177 if test "$with_libxml" = yes ; then
8178 # Check pkg-config, then xml2-config. But for backwards compatibility,
8179 # setting XML2_CONFIG overrides pkg-config.
8180 have_libxml2_pkg_config
=no
8181 if test -z "$XML2_CONFIG" -a -n "$PKG_CONFIG"; then
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.6.23" >&5
8185 $as_echo_n "checking for libxml-2.0 >= 2.6.23... " >&6; }
8187 if test -n "$XML2_CFLAGS"; then
8188 pkg_cv_XML2_CFLAGS
="$XML2_CFLAGS"
8189 elif test -n "$PKG_CONFIG"; then
8190 if test -n "$PKG_CONFIG" && \
8191 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.23\""; } >&5
8192 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.23") 2>&5
8194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8195 test $ac_status = 0; }; then
8196 pkg_cv_XML2_CFLAGS
=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.23" 2>/dev/null`
8197 test "x$?" != "x0" && pkg_failed
=yes
8204 if test -n "$XML2_LIBS"; then
8205 pkg_cv_XML2_LIBS
="$XML2_LIBS"
8206 elif test -n "$PKG_CONFIG"; then
8207 if test -n "$PKG_CONFIG" && \
8208 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.23\""; } >&5
8209 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.23") 2>&5
8211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8212 test $ac_status = 0; }; then
8213 pkg_cv_XML2_LIBS
=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.23" 2>/dev/null`
8214 test "x$?" != "x0" && pkg_failed
=yes
8224 if test $pkg_failed = yes; then
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8226 $as_echo "no" >&6; }
8228 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8229 _pkg_short_errors_supported
=yes
8231 _pkg_short_errors_supported
=no
8233 if test $_pkg_short_errors_supported = yes; then
8234 XML2_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6.23" 2>&1`
8236 XML2_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6.23" 2>&1`
8238 # Put the nasty error message in config.log where it belongs
8239 echo "$XML2_PKG_ERRORS" >&5
8242 elif test $pkg_failed = untried
; then
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8244 $as_echo "no" >&6; }
8247 XML2_CFLAGS
=$pkg_cv_XML2_CFLAGS
8248 XML2_LIBS
=$pkg_cv_XML2_LIBS
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8250 $as_echo "yes" >&6; }
8251 have_libxml2_pkg_config
=yes
8254 if test "$have_libxml2_pkg_config" = no
; then
8255 if test -z "$XML2_CONFIG"; then
8256 for ac_prog
in xml2-config
8258 # Extract the first word of "$ac_prog", so it can be a program name with args.
8259 set dummy
$ac_prog; ac_word
=$2
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8261 $as_echo_n "checking for $ac_word... " >&6; }
8262 if ${ac_cv_path_XML2_CONFIG+:} false
; then :
8263 $as_echo_n "(cached) " >&6
8265 case $XML2_CONFIG in
8267 ac_cv_path_XML2_CONFIG
="$XML2_CONFIG" # Let the user override the test with a path.
8270 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8274 test -z "$as_dir" && as_dir
=.
8275 for ac_exec_ext
in '' $ac_executable_extensions; do
8276 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8277 ac_cv_path_XML2_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
8278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8288 XML2_CONFIG
=$ac_cv_path_XML2_CONFIG
8289 if test -n "$XML2_CONFIG"; then
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
8291 $as_echo "$XML2_CONFIG" >&6; }
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8294 $as_echo "no" >&6; }
8298 test -n "$XML2_CONFIG" && break
8302 # Report the value of XML2_CONFIG in configure's output in all cases.
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML2_CONFIG" >&5
8304 $as_echo_n "checking for XML2_CONFIG... " >&6; }
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
8306 $as_echo "$XML2_CONFIG" >&6; }
8309 if test -n "$XML2_CONFIG"; then
8310 XML2_CFLAGS
=`$XML2_CONFIG --cflags`
8311 XML2_LIBS
=`$XML2_CONFIG --libs`
8314 # Note the user could also set XML2_CFLAGS/XML2_LIBS directly
8315 for pgac_option
in $XML2_CFLAGS; do
8316 case $pgac_option in
8317 -I*|
-D*) CPPFLAGS
="$CPPFLAGS $pgac_option";;
8320 for pgac_option
in $XML2_LIBS; do
8321 case $pgac_option in
8322 -L*) LDFLAGS
="$LDFLAGS $pgac_option";;
8334 # Check whether --with-libxslt was given.
8335 if test "${with_libxslt+set}" = set; then :
8336 withval
=$with_libxslt;
8340 $as_echo "#define USE_LIBXSLT 1" >>confdefs.h
8347 as_fn_error $?
"no argument expected for --with-libxslt option" "$LINENO" 5
8367 # Check whether --with-system-tzdata was given.
8368 if test "${with_system_tzdata+set}" = set; then :
8369 withval
=$with_system_tzdata;
8372 as_fn_error $?
"argument required for --with-system-tzdata option" "$LINENO" 5
8375 as_fn_error $?
"argument required for --with-system-tzdata option" "$LINENO" 5
8393 # Check whether --with-zlib was given.
8394 if test "${with_zlib+set}" = set; then :
8404 as_fn_error $?
"no argument expected for --with-zlib option" "$LINENO" 5
8420 CPPFLAGS
="$CPPFLAGS $INCLUDES"
8421 LDFLAGS
="$LDFLAGS $LIBDIRS"
8427 # Check whether --with-gnu-ld was given.
8428 if test "${with_gnu_ld+set}" = set; then :
8429 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
8435 if test "$GCC" = yes; then
8436 # Check if gcc -print-prog-name=ld gives a path.
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8438 $as_echo_n "checking for ld used by GCC... " >&6; }
8441 # gcc leaves a trailing carriage return which upsets mingw
8442 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8444 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
8447 # Accept absolute paths.
8448 [\\/]* |
[A-Za-z
]:[\\/]*)
8449 re_direlt
='/[^/][^/]*/\.\./'
8450 # Canonicalize the path of ld
8451 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
8452 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
8453 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
8455 test -z "$LD" && LD
="$ac_prog"
8458 # If it fails, then pretend we aren't using GCC.
8462 # If it is relative, then search for the first ld in PATH.
8466 elif test "$with_gnu_ld" = yes; then
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8468 $as_echo_n "checking for GNU ld... " >&6; }
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8471 $as_echo_n "checking for non-GNU ld... " >&6; }
8473 if ${ac_cv_path_LD+:} false
; then :
8474 $as_echo_n "(cached) " >&6
8476 if test -z "$LD"; then
8477 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8478 for ac_dir
in $PATH; do
8479 test -z "$ac_dir" && ac_dir
=.
8480 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
8481 ac_cv_path_LD
="$ac_dir/$ac_prog"
8482 # Check to see if the program is GNU ld. I'd rather use --version,
8483 # but apparently some GNU ld's only accept -v.
8484 # Break only if it was the GNU/non-GNU ld that we prefer.
8485 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
8486 test "$with_gnu_ld" != no
&& break
8488 test "$with_gnu_ld" != yes && break
8494 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
8499 if test -n "$LD"; then
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8501 $as_echo "$LD" >&6; }
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8504 $as_echo "no" >&6; }
8506 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8508 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8509 if ${ac_cv_prog_gnu_ld+:} false
; then :
8510 $as_echo_n "(cached) " >&6
8512 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8513 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
8514 ac_cv_prog_gnu_ld
=yes
8516 ac_cv_prog_gnu_ld
=no
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gnu_ld" >&5
8520 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
8521 with_gnu_ld
=$ac_cv_prog_gnu_ld
8526 if test -n "$ac_tool_prefix"; then
8527 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8528 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8530 $as_echo_n "checking for $ac_word... " >&6; }
8531 if ${ac_cv_prog_RANLIB+:} false
; then :
8532 $as_echo_n "(cached) " >&6
8534 if test -n "$RANLIB"; then
8535 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
8537 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8541 test -z "$as_dir" && as_dir
=.
8542 for ac_exec_ext
in '' $ac_executable_extensions; do
8543 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8544 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
8545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8554 RANLIB
=$ac_cv_prog_RANLIB
8555 if test -n "$RANLIB"; then
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8557 $as_echo "$RANLIB" >&6; }
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8560 $as_echo "no" >&6; }
8565 if test -z "$ac_cv_prog_RANLIB"; then
8566 ac_ct_RANLIB
=$RANLIB
8567 # Extract the first word of "ranlib", so it can be a program name with args.
8568 set dummy ranlib
; ac_word
=$2
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8570 $as_echo_n "checking for $ac_word... " >&6; }
8571 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
8572 $as_echo_n "(cached) " >&6
8574 if test -n "$ac_ct_RANLIB"; then
8575 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8577 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8581 test -z "$as_dir" && as_dir
=.
8582 for ac_exec_ext
in '' $ac_executable_extensions; do
8583 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8584 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8594 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8595 if test -n "$ac_ct_RANLIB"; then
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8597 $as_echo "$ac_ct_RANLIB" >&6; }
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8600 $as_echo "no" >&6; }
8603 if test "x$ac_ct_RANLIB" = x
; then
8606 case $cross_compiling:$ac_tool_warned in
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8610 ac_tool_warned
=yes ;;
8612 RANLIB
=$ac_ct_RANLIB
8615 RANLIB
="$ac_cv_prog_RANLIB"
8619 if test -n "$ac_tool_prefix"; then
8620 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8621 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8623 $as_echo_n "checking for $ac_word... " >&6; }
8624 if ${ac_cv_prog_STRIP+:} false
; then :
8625 $as_echo_n "(cached) " >&6
8627 if test -n "$STRIP"; then
8628 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
8630 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8634 test -z "$as_dir" && as_dir
=.
8635 for ac_exec_ext
in '' $ac_executable_extensions; do
8636 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8637 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
8638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8647 STRIP
=$ac_cv_prog_STRIP
8648 if test -n "$STRIP"; then
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8650 $as_echo "$STRIP" >&6; }
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8653 $as_echo "no" >&6; }
8658 if test -z "$ac_cv_prog_STRIP"; then
8660 # Extract the first word of "strip", so it can be a program name with args.
8661 set dummy strip
; ac_word
=$2
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8663 $as_echo_n "checking for $ac_word... " >&6; }
8664 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
8665 $as_echo_n "(cached) " >&6
8667 if test -n "$ac_ct_STRIP"; then
8668 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
8670 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8674 test -z "$as_dir" && as_dir
=.
8675 for ac_exec_ext
in '' $ac_executable_extensions; do
8676 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8677 ac_cv_prog_ac_ct_STRIP
="strip"
8678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8687 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
8688 if test -n "$ac_ct_STRIP"; then
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8690 $as_echo "$ac_ct_STRIP" >&6; }
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8693 $as_echo "no" >&6; }
8696 if test "x$ac_ct_STRIP" = x
; then
8699 case $cross_compiling:$ac_tool_warned in
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8702 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8703 ac_tool_warned
=yes ;;
8708 STRIP
="$ac_cv_prog_STRIP"
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is possible to strip libraries" >&5
8713 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
8714 if test x
"$STRIP" != x
"" && "$STRIP" -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
8715 STRIP_STATIC_LIB
="$STRIP -x"
8716 STRIP_SHARED_LIB
="$STRIP --strip-unneeded"
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8718 $as_echo "yes" >&6; }
8723 STRIP_STATIC_LIB
=$STRIP
8724 STRIP_SHARED_LIB
=$STRIP
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8726 $as_echo "yes" >&6; }
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8732 $as_echo "no" >&6; }
8739 if test -n "$ac_tool_prefix"; then
8740 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8741 set dummy
${ac_tool_prefix}ar; ac_word
=$2
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8743 $as_echo_n "checking for $ac_word... " >&6; }
8744 if ${ac_cv_prog_AR+:} false
; then :
8745 $as_echo_n "(cached) " >&6
8747 if test -n "$AR"; then
8748 ac_cv_prog_AR
="$AR" # Let the user override the test.
8750 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8754 test -z "$as_dir" && as_dir
=.
8755 for ac_exec_ext
in '' $ac_executable_extensions; do
8756 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8757 ac_cv_prog_AR
="${ac_tool_prefix}ar"
8758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8768 if test -n "$AR"; then
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8770 $as_echo "$AR" >&6; }
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8773 $as_echo "no" >&6; }
8778 if test -z "$ac_cv_prog_AR"; then
8780 # Extract the first word of "ar", so it can be a program name with args.
8781 set dummy
ar; ac_word
=$2
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8783 $as_echo_n "checking for $ac_word... " >&6; }
8784 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
8785 $as_echo_n "(cached) " >&6
8787 if test -n "$ac_ct_AR"; then
8788 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
8790 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8794 test -z "$as_dir" && as_dir
=.
8795 for ac_exec_ext
in '' $ac_executable_extensions; do
8796 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8797 ac_cv_prog_ac_ct_AR
="ar"
8798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8807 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
8808 if test -n "$ac_ct_AR"; then
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8810 $as_echo "$ac_ct_AR" >&6; }
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8813 $as_echo "no" >&6; }
8816 if test "x$ac_ct_AR" = x
; then
8819 case $cross_compiling:$ac_tool_warned in
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8822 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8823 ac_tool_warned
=yes ;;
8831 if test "$PORTNAME" = "win32"; then
8832 if test -n "$ac_tool_prefix"; then
8833 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8834 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8836 $as_echo_n "checking for $ac_word... " >&6; }
8837 if ${ac_cv_prog_DLLTOOL+:} false
; then :
8838 $as_echo_n "(cached) " >&6
8840 if test -n "$DLLTOOL"; then
8841 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
8843 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8847 test -z "$as_dir" && as_dir
=.
8848 for ac_exec_ext
in '' $ac_executable_extensions; do
8849 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8850 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
8851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8860 DLLTOOL
=$ac_cv_prog_DLLTOOL
8861 if test -n "$DLLTOOL"; then
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8863 $as_echo "$DLLTOOL" >&6; }
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8866 $as_echo "no" >&6; }
8871 if test -z "$ac_cv_prog_DLLTOOL"; then
8872 ac_ct_DLLTOOL
=$DLLTOOL
8873 # Extract the first word of "dlltool", so it can be a program name with args.
8874 set dummy dlltool
; ac_word
=$2
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8876 $as_echo_n "checking for $ac_word... " >&6; }
8877 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false
; then :
8878 $as_echo_n "(cached) " >&6
8880 if test -n "$ac_ct_DLLTOOL"; then
8881 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
8883 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8887 test -z "$as_dir" && as_dir
=.
8888 for ac_exec_ext
in '' $ac_executable_extensions; do
8889 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8890 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
8891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8900 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
8901 if test -n "$ac_ct_DLLTOOL"; then
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8903 $as_echo "$ac_ct_DLLTOOL" >&6; }
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8906 $as_echo "no" >&6; }
8909 if test "x$ac_ct_DLLTOOL" = x
; then
8912 case $cross_compiling:$ac_tool_warned in
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8915 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8916 ac_tool_warned
=yes ;;
8918 DLLTOOL
=$ac_ct_DLLTOOL
8921 DLLTOOL
="$ac_cv_prog_DLLTOOL"
8924 if test -n "$ac_tool_prefix"; then
8925 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
8926 set dummy
${ac_tool_prefix}dllwrap
; ac_word
=$2
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8928 $as_echo_n "checking for $ac_word... " >&6; }
8929 if ${ac_cv_prog_DLLWRAP+:} false
; then :
8930 $as_echo_n "(cached) " >&6
8932 if test -n "$DLLWRAP"; then
8933 ac_cv_prog_DLLWRAP
="$DLLWRAP" # Let the user override the test.
8935 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8939 test -z "$as_dir" && as_dir
=.
8940 for ac_exec_ext
in '' $ac_executable_extensions; do
8941 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8942 ac_cv_prog_DLLWRAP
="${ac_tool_prefix}dllwrap"
8943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8952 DLLWRAP
=$ac_cv_prog_DLLWRAP
8953 if test -n "$DLLWRAP"; then
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
8955 $as_echo "$DLLWRAP" >&6; }
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8958 $as_echo "no" >&6; }
8963 if test -z "$ac_cv_prog_DLLWRAP"; then
8964 ac_ct_DLLWRAP
=$DLLWRAP
8965 # Extract the first word of "dllwrap", so it can be a program name with args.
8966 set dummy dllwrap
; ac_word
=$2
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8968 $as_echo_n "checking for $ac_word... " >&6; }
8969 if ${ac_cv_prog_ac_ct_DLLWRAP+:} false
; then :
8970 $as_echo_n "(cached) " >&6
8972 if test -n "$ac_ct_DLLWRAP"; then
8973 ac_cv_prog_ac_ct_DLLWRAP
="$ac_ct_DLLWRAP" # Let the user override the test.
8975 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8979 test -z "$as_dir" && as_dir
=.
8980 for ac_exec_ext
in '' $ac_executable_extensions; do
8981 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8982 ac_cv_prog_ac_ct_DLLWRAP
="dllwrap"
8983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8992 ac_ct_DLLWRAP
=$ac_cv_prog_ac_ct_DLLWRAP
8993 if test -n "$ac_ct_DLLWRAP"; then
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
8995 $as_echo "$ac_ct_DLLWRAP" >&6; }
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8998 $as_echo "no" >&6; }
9001 if test "x$ac_ct_DLLWRAP" = x
; then
9004 case $cross_compiling:$ac_tool_warned in
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9007 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9008 ac_tool_warned
=yes ;;
9010 DLLWRAP
=$ac_ct_DLLWRAP
9013 DLLWRAP
="$ac_cv_prog_DLLWRAP"
9016 if test -n "$ac_tool_prefix"; then
9017 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
9018 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9020 $as_echo_n "checking for $ac_word... " >&6; }
9021 if ${ac_cv_prog_WINDRES+:} false
; then :
9022 $as_echo_n "(cached) " >&6
9024 if test -n "$WINDRES"; then
9025 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
9027 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9031 test -z "$as_dir" && as_dir
=.
9032 for ac_exec_ext
in '' $ac_executable_extensions; do
9033 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9034 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
9035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9044 WINDRES
=$ac_cv_prog_WINDRES
9045 if test -n "$WINDRES"; then
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9047 $as_echo "$WINDRES" >&6; }
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9050 $as_echo "no" >&6; }
9055 if test -z "$ac_cv_prog_WINDRES"; then
9056 ac_ct_WINDRES
=$WINDRES
9057 # Extract the first word of "windres", so it can be a program name with args.
9058 set dummy windres
; ac_word
=$2
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9060 $as_echo_n "checking for $ac_word... " >&6; }
9061 if ${ac_cv_prog_ac_ct_WINDRES+:} false
; then :
9062 $as_echo_n "(cached) " >&6
9064 if test -n "$ac_ct_WINDRES"; then
9065 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
9067 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9071 test -z "$as_dir" && as_dir
=.
9072 for ac_exec_ext
in '' $ac_executable_extensions; do
9073 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9074 ac_cv_prog_ac_ct_WINDRES
="windres"
9075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9084 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
9085 if test -n "$ac_ct_WINDRES"; then
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
9087 $as_echo "$ac_ct_WINDRES" >&6; }
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9090 $as_echo "no" >&6; }
9093 if test "x$ac_ct_WINDRES" = x
; then
9096 case $cross_compiling:$ac_tool_warned in
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9099 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9100 ac_tool_warned
=yes ;;
9102 WINDRES
=$ac_ct_WINDRES
9105 WINDRES
="$ac_cv_prog_WINDRES"
9110 # Find a good install program. We prefer a C program (faster),
9111 # so one script is as good as another. But avoid the broken or
9112 # incompatible versions:
9113 # SysV /etc/install, /usr/sbin/install
9114 # SunOS /usr/etc/install
9115 # IRIX /sbin/install
9117 # AmigaOS /C/install, which installs bootblocks on floppy discs
9118 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9119 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9120 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9121 # OS/2's system install, which has a completely different semantic
9122 # ./install, which can be erroneously created by make from ./install.sh.
9123 # Reject install programs that cannot install multiple files.
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
9125 $as_echo_n "checking for a BSD-compatible install... " >&6; }
9126 if test -z "$INSTALL"; then
9127 if ${ac_cv_path_install+:} false
; then :
9128 $as_echo_n "(cached) " >&6
9130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9134 test -z "$as_dir" && as_dir
=.
9135 # Account for people who put trailing slashes in PATH elements.
9136 case $as_dir/ in #((
9137 .
/ | .
// |
/[cC
]/* | \
9138 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
9139 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
9142 # OSF1 and SCO ODT 3.0 have their own names for install.
9143 # Don't use installbsd from OSF since it installs stuff as root
9145 for ac_prog
in ginstall scoinst
install; do
9146 for ac_exec_ext
in '' $ac_executable_extensions; do
9147 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
9148 if test $ac_prog = install &&
9149 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
9150 # AIX install. It has an incompatible calling convention.
9152 elif test $ac_prog = install &&
9153 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
9154 # program-specific install script used by HP pwplus--don't use.
9157 rm -rf conftest.one conftest.two conftest.dir
9158 echo one
> conftest.one
9159 echo two
> conftest.two
9161 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
9162 test -s conftest.one
&& test -s conftest.two
&&
9163 test -s conftest.dir
/conftest.one
&&
9164 test -s conftest.dir
/conftest.two
9166 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
9179 rm -rf conftest.one conftest.two conftest.dir
9182 if test "${ac_cv_path_install+set}" = set; then
9183 INSTALL
=$ac_cv_path_install
9185 # As a last resort, use the slow shell script. Don't cache a
9186 # value for INSTALL within a source directory, because that will
9187 # break other packages using the cache if that directory is
9188 # removed, or if the value is a relative name.
9189 INSTALL
=$ac_install_sh
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
9193 $as_echo "$INSTALL" >&6; }
9195 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9196 # It thinks the first close brace ends the variable substitution.
9197 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
9199 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
9201 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
9203 # When Autoconf chooses install-sh as install program it tries to generate
9204 # a relative path to it in each makefile where it substitutes it. This clashes
9205 # with our Makefile.global concept. This workaround helps.
9207 *install-sh
*) install_bin
='';;
9208 *) install_bin
=$INSTALL;;
9212 if test -z "$TAR"; then
9215 # Extract the first word of "$ac_prog", so it can be a program name with args.
9216 set dummy
$ac_prog; ac_word
=$2
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9218 $as_echo_n "checking for $ac_word... " >&6; }
9219 if ${ac_cv_path_TAR+:} false
; then :
9220 $as_echo_n "(cached) " >&6
9224 ac_cv_path_TAR
="$TAR" # Let the user override the test with a path.
9227 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9231 test -z "$as_dir" && as_dir
=.
9232 for ac_exec_ext
in '' $ac_executable_extensions; do
9233 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9234 ac_cv_path_TAR
="$as_dir/$ac_word$ac_exec_ext"
9235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9246 if test -n "$TAR"; then
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9248 $as_echo "$TAR" >&6; }
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9251 $as_echo "no" >&6; }
9255 test -n "$TAR" && break
9259 # Report the value of TAR in configure's output in all cases.
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
9261 $as_echo_n "checking for TAR... " >&6; }
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9263 $as_echo "$TAR" >&6; }
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9267 $as_echo_n "checking whether ln -s works... " >&6; }
9269 if test "$LN_S" = "ln -s"; then
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9271 $as_echo "yes" >&6; }
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9274 $as_echo "no, using $LN_S" >&6; }
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
9278 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
9279 if test -z "$MKDIR_P"; then
9280 if ${ac_cv_path_mkdir+:} false
; then :
9281 $as_echo_n "(cached) " >&6
9283 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9284 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
9287 test -z "$as_dir" && as_dir
=.
9288 for ac_prog
in mkdir gmkdir
; do
9289 for ac_exec_ext
in '' $ac_executable_extensions; do
9290 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
9291 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
9292 'mkdir (GNU coreutils) '* | \
9293 'mkdir (coreutils) '* | \
9294 'mkdir (fileutils) '4.1*)
9295 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
9305 test -d .
/--version && rmdir .
/--version
9306 if test "${ac_cv_path_mkdir+set}" = set; then
9307 MKDIR_P
="$ac_cv_path_mkdir -p"
9309 # As a last resort, use the slow shell script. Don't cache a
9310 # value for MKDIR_P within a source directory, because that will
9311 # break other packages using the cache if that directory is
9312 # removed, or if the value is a relative name.
9313 MKDIR_P
="$ac_install_sh -d"
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
9317 $as_echo "$MKDIR_P" >&6; }
9319 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
9320 # a relative path to it in each makefile where it substitutes it. This clashes
9321 # with our Makefile.global concept. This workaround helps.
9323 *install-sh
*) MKDIR_P
='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
9326 if test -z "$BISON"; then
9327 for ac_prog
in bison
9329 # Extract the first word of "$ac_prog", so it can be a program name with args.
9330 set dummy
$ac_prog; ac_word
=$2
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9332 $as_echo_n "checking for $ac_word... " >&6; }
9333 if ${ac_cv_path_BISON+:} false
; then :
9334 $as_echo_n "(cached) " >&6
9338 ac_cv_path_BISON
="$BISON" # Let the user override the test with a path.
9341 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9345 test -z "$as_dir" && as_dir
=.
9346 for ac_exec_ext
in '' $ac_executable_extensions; do
9347 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9348 ac_cv_path_BISON
="$as_dir/$ac_word$ac_exec_ext"
9349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9359 BISON
=$ac_cv_path_BISON
9360 if test -n "$BISON"; then
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
9362 $as_echo "$BISON" >&6; }
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9365 $as_echo "no" >&6; }
9369 test -n "$BISON" && break
9373 # Report the value of BISON in configure's output in all cases.
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BISON" >&5
9375 $as_echo_n "checking for BISON... " >&6; }
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
9377 $as_echo "$BISON" >&6; }
9381 if test "$BISON"; then
9382 pgac_bison_version
=`$BISON --version 2>/dev/null | sed q`
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: using $pgac_bison_version" >&5
9384 $as_echo "$as_me: using $pgac_bison_version" >&6;}
9385 if echo "$pgac_bison_version" |
$AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9388 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
9389 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
9390 $as_echo "$as_me: WARNING:
9391 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
9392 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
9395 # Bison >=3.0 issues warnings about %name-prefix="base_yy", instead
9396 # of the now preferred %name-prefix "base_yy", but the latter
9397 # doesn't work with Bison 2.3 or less. So for now we silence the
9398 # deprecation warnings.
9399 if echo "$pgac_bison_version" |
$AWK '{ if ($4 >= 3) exit 0; else exit 1;}'
9401 BISONFLAGS
="$BISONFLAGS -Wno-deprecated"
9405 if test -z "$BISON"; then
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9407 *** Without Bison you will not be able to build PostgreSQL from Git nor
9408 *** change any of the parser definition files. You can obtain Bison from
9409 *** a GNU mirror site. (If you are using the official distribution of
9410 *** PostgreSQL then you do not need to worry about this, because the Bison
9411 *** output is pre-generated.)" >&5
9412 $as_echo "$as_me: WARNING:
9413 *** Without Bison you will not be able to build PostgreSQL from Git nor
9414 *** change any of the parser definition files. You can obtain Bison from
9415 *** a GNU mirror site. (If you are using the official distribution of
9416 *** PostgreSQL then you do not need to worry about this, because the Bison
9417 *** output is pre-generated.)" >&2;}
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex" >&5
9422 $as_echo_n "checking for flex... " >&6; }
9423 if ${pgac_cv_path_flex+:} false
; then :
9424 $as_echo_n "(cached) " >&6
9426 # Let the user override the test
9427 if test -n "$FLEX"; then
9428 pgac_cv_path_flex
=$FLEX
9432 for pgac_dir
in $PATH; do
9434 if test -z "$pgac_dir" ||
test x
"$pgac_dir" = x
"."; then
9437 for pgac_prog
in flex
lex; do
9438 pgac_candidate
="$pgac_dir/$pgac_prog"
9439 if test -f "$pgac_candidate" \
9440 && $pgac_candidate --version </dev
/null
>/dev
/null
2>&1
9442 echo '%%' > conftest.l
9443 if $pgac_candidate -t conftest.l
2>/dev
/null |
grep FLEX_SCANNER
>/dev
/null
2>&1; then
9444 pgac_flex_version
=`$pgac_candidate --version 2>/dev/null`
9445 if echo "$pgac_flex_version" |
sed 's/[.a-z]/ /g' |
$AWK '{ if ($1 == 2 && ($2 > 5 || ($2 == 5 && $3 >= 31))) exit 0; else exit 1;}'
9447 pgac_cv_path_flex
=$pgac_candidate
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9451 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
9452 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
9453 $as_echo "$as_me: WARNING:
9454 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
9455 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
9461 rm -f conftest.l
lex.yy.c
9462 : ${pgac_cv_path_flex=no}
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_path_flex" >&5
9467 $as_echo "$pgac_cv_path_flex" >&6; }
9468 if test x
"$pgac_cv_path_flex" = x
"no"; then
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9470 *** Without Flex you will not be able to build PostgreSQL from Git nor
9471 *** change any of the scanner definition files. You can obtain Flex from
9472 *** a GNU mirror site. (If you are using the official distribution of
9473 *** PostgreSQL then you do not need to worry about this because the Flex
9474 *** output is pre-generated.)" >&5
9475 $as_echo "$as_me: WARNING:
9476 *** Without Flex you will not be able to build PostgreSQL from Git nor
9477 *** change any of the scanner definition files. You can obtain Flex from
9478 *** a GNU mirror site. (If you are using the official distribution of
9479 *** PostgreSQL then you do not need to worry about this because the Flex
9480 *** output is pre-generated.)" >&2;}
9484 FLEX
=$pgac_cv_path_flex
9485 pgac_flex_version
=`$FLEX --version 2>/dev/null`
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: using $pgac_flex_version" >&5
9487 $as_echo "$as_me: using $pgac_flex_version" >&6;}
9494 if test -z "$PERL"; then
9497 # Extract the first word of "$ac_prog", so it can be a program name with args.
9498 set dummy
$ac_prog; ac_word
=$2
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9500 $as_echo_n "checking for $ac_word... " >&6; }
9501 if ${ac_cv_path_PERL+:} false
; then :
9502 $as_echo_n "(cached) " >&6
9506 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
9509 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9513 test -z "$as_dir" && as_dir
=.
9514 for ac_exec_ext
in '' $ac_executable_extensions; do
9515 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9516 ac_cv_path_PERL
="$as_dir/$ac_word$ac_exec_ext"
9517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9527 PERL
=$ac_cv_path_PERL
9528 if test -n "$PERL"; then
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
9530 $as_echo "$PERL" >&6; }
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9533 $as_echo "no" >&6; }
9537 test -n "$PERL" && break
9541 # Report the value of PERL in configure's output in all cases.
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PERL" >&5
9543 $as_echo_n "checking for PERL... " >&6; }
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
9545 $as_echo "$PERL" >&6; }
9549 if test "$PERL"; then
9550 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'`
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: using perl $pgac_perl_version" >&5
9552 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
9553 if echo "$pgac_perl_version" |
sed 's/[.a-z_]/ /g' | \
9554 $AWK '{ if ($1 == 5 && $2 >= 8) exit 1; else exit 0;}'
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9557 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
9558 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&5
9559 $as_echo "$as_me: WARNING:
9560 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
9561 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&2;}
9566 if test -z "$PERL"; then
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9568 *** Without Perl you will not be able to build PostgreSQL from Git.
9569 *** You can obtain Perl from any CPAN mirror site.
9570 *** (If you are using the official distribution of PostgreSQL then you do not
9571 *** need to worry about this, because the Perl output is pre-generated.)" >&5
9572 $as_echo "$as_me: WARNING:
9573 *** Without Perl you will not be able to build PostgreSQL from Git.
9574 *** You can obtain Perl from any CPAN mirror site.
9575 *** (If you are using the official distribution of PostgreSQL then you do not
9576 *** need to worry about this, because the Perl output is pre-generated.)" >&2;}
9579 if test "$with_perl" = yes; then
9580 if test -z "$PERL"; then
9581 as_fn_error $?
"Perl not found" "$LINENO" 5
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl archlibexp" >&5
9585 $as_echo_n "checking for Perl archlibexp... " >&6; }
9586 perl_archlibexp
=`$PERL -MConfig -e 'print $Config{archlibexp}'`
9587 test "$PORTNAME" = "win32" && perl_archlibexp
=`echo $perl_archlibexp | sed 's,\\\\,/,g'`
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_archlibexp" >&5
9589 $as_echo "$perl_archlibexp" >&6; }
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl privlibexp" >&5
9591 $as_echo_n "checking for Perl privlibexp... " >&6; }
9592 perl_privlibexp
=`$PERL -MConfig -e 'print $Config{privlibexp}'`
9593 test "$PORTNAME" = "win32" && perl_privlibexp
=`echo $perl_privlibexp | sed 's,\\\\,/,g'`
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_privlibexp" >&5
9595 $as_echo "$perl_privlibexp" >&6; }
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl useshrplib" >&5
9597 $as_echo_n "checking for Perl useshrplib... " >&6; }
9598 perl_useshrplib
=`$PERL -MConfig -e 'print $Config{useshrplib}'`
9599 test "$PORTNAME" = "win32" && perl_useshrplib
=`echo $perl_useshrplib | sed 's,\\\\,/,g'`
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_useshrplib" >&5
9601 $as_echo "$perl_useshrplib" >&6; }
9602 if test "$perl_useshrplib" != yes && test "$perl_useshrplib" != true
; then
9603 as_fn_error $?
"cannot build PL/Perl because libperl is not a shared library
9604 You might have to rebuild your Perl installation. Refer to the
9605 documentation for details. Use --without-perl to disable building
9606 PL/Perl." "$LINENO" 5
9608 # On most platforms, archlibexp is also where the Perl include files live ...
9609 perl_includespec
="-I$perl_archlibexp/CORE"
9610 # ... but on newer macOS versions, we must use -iwithsysroot to look
9612 if test \
! -f "$perl_archlibexp/CORE/perl.h" ; then
9613 if test -f "$PG_SYSROOT$perl_archlibexp/CORE/perl.h" ; then
9614 perl_includespec
="-iwithsysroot $perl_archlibexp/CORE"
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS recommended by Perl" >&5
9619 $as_echo_n "checking for CFLAGS recommended by Perl... " >&6; }
9620 perl_ccflags
=`$PERL -MConfig -e 'print $Config{ccflags}'`
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_ccflags" >&5
9622 $as_echo "$perl_ccflags" >&6; }
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS to compile embedded Perl" >&5
9624 $as_echo_n "checking for CFLAGS to compile embedded Perl... " >&6; }
9625 perl_embed_ccflags
=`$PERL -MConfig -e 'foreach $f (split(" ",$Config{ccflags})) {print $f, " " if ($f =~ /^-D[^_]/ || $f =~ /^-D_USE_32BIT_TIME_T/)}'`
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_embed_ccflags" >&5
9627 $as_echo "$perl_embed_ccflags" >&6; }
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flags to link embedded Perl" >&5
9631 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
9632 if test "$PORTNAME" = "win32" ; then
9633 perl_lib
=`basename $perl_archlibexp/CORE/perl[5-9]*.lib .lib`
9634 if test -e "$perl_archlibexp/CORE/$perl_lib.lib"; then
9635 perl_embed_ldflags
="-L$perl_archlibexp/CORE -l$perl_lib"
9637 perl_lib
=`basename $perl_archlibexp/CORE/libperl[5-9]*.a .a | sed 's/^lib//'`
9638 if test -e "$perl_archlibexp/CORE/lib$perl_lib.a"; then
9639 perl_embed_ldflags
="-L$perl_archlibexp/CORE -l$perl_lib"
9643 pgac_tmp1
=`$PERL -MExtUtils::Embed -e ldopts`
9644 pgac_tmp2
=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
9645 perl_embed_ldflags
=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
9647 if test -z "$perl_embed_ldflags" ; then
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9649 $as_echo "no" >&6; }
9650 as_fn_error $?
"could not determine flags for linking embedded Perl.
9651 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
9652 installed." "$LINENO" 5
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_embed_ldflags" >&5
9655 $as_echo "$perl_embed_ldflags" >&6; }
9660 if test "$with_python" = yes; then
9661 if test -z "$PYTHON"; then
9662 for ac_prog
in python python3 python2
9664 # Extract the first word of "$ac_prog", so it can be a program name with args.
9665 set dummy
$ac_prog; ac_word
=$2
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9667 $as_echo_n "checking for $ac_word... " >&6; }
9668 if ${ac_cv_path_PYTHON+:} false
; then :
9669 $as_echo_n "(cached) " >&6
9673 ac_cv_path_PYTHON
="$PYTHON" # Let the user override the test with a path.
9676 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9680 test -z "$as_dir" && as_dir
=.
9681 for ac_exec_ext
in '' $ac_executable_extensions; do
9682 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9683 ac_cv_path_PYTHON
="$as_dir/$ac_word$ac_exec_ext"
9684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9694 PYTHON
=$ac_cv_path_PYTHON
9695 if test -n "$PYTHON"; then
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
9697 $as_echo "$PYTHON" >&6; }
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9700 $as_echo "no" >&6; }
9704 test -n "$PYTHON" && break
9708 # Report the value of PYTHON in configure's output in all cases.
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYTHON" >&5
9710 $as_echo_n "checking for PYTHON... " >&6; }
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
9712 $as_echo "$PYTHON" >&6; }
9715 if test x
"$PYTHON" = x
""; then
9716 as_fn_error $?
"Python not found" "$LINENO" 5
9720 python_fullversion
=`${PYTHON} -c "import sys; print(sys.version)" | sed q`
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: using python $python_fullversion" >&5
9722 $as_echo "$as_me: using python $python_fullversion" >&6;}
9723 # python_fullversion is typically n.n.n plus some trailing junk
9724 python_majorversion
=`echo "$python_fullversion" | sed 's/^\([0-9]*\).*/\1/'`
9725 python_minorversion
=`echo "$python_fullversion" | sed 's/^[0-9]*\.\([0-9]*\).*/\1/'`
9726 python_version
=`echo "$python_fullversion" | sed 's/^\([0-9]*\.[0-9]*\).*/\1/'`
9727 # Reject unsupported Python versions as soon as practical.
9728 if test "$python_majorversion" -lt 3 -a "$python_minorversion" -lt 6; then
9729 as_fn_error $?
"Python version $python_version is too old (version 2.6 or later is required)" "$LINENO" 5
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python distutils module" >&5
9733 $as_echo_n "checking for Python distutils module... " >&6; }
9734 if "${PYTHON}" -c 'import distutils' 2>&5
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9737 $as_echo "yes" >&6; }
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9740 $as_echo "no" >&6; }
9741 as_fn_error $?
"distutils module not found" "$LINENO" 5
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python configuration directory" >&5
9745 $as_echo_n "checking Python configuration directory... " >&6; }
9746 python_configdir
=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBPL'))))"`
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_configdir" >&5
9748 $as_echo "$python_configdir" >&6; }
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python include directories" >&5
9751 $as_echo_n "checking Python include directories... " >&6; }
9752 python_includespec
=`${PYTHON} -c "
9753 import distutils.sysconfig
9754 a = '-I' + distutils.sysconfig.get_python_inc(False)
9755 b = '-I' + distutils.sysconfig.get_python_inc(True)
9759 print(a + ' ' + b)"`
9760 if test "$PORTNAME" = win32
; then
9761 python_includespec
=`echo $python_includespec | sed 's,[\],/,g'`
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_includespec" >&5
9764 $as_echo "$python_includespec" >&6; }
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link an embedded Python application" >&5
9769 $as_echo_n "checking how to link an embedded Python application... " >&6; }
9771 python_libdir
=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
9772 python_ldlibrary
=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
9774 # If LDLIBRARY exists and has a shlib extension, use it verbatim.
9775 ldlibrary
=`echo "${python_ldlibrary}" | sed -e 's/\.so$//' -e 's/\.dll$//' -e 's/\.dylib$//' -e 's/\.sl$//'`
9776 if test -e "${python_libdir}/${python_ldlibrary}" -a x"${python_ldlibrary}" != x"${ldlibrary}"
9778 ldlibrary
=`echo "${ldlibrary}" | sed "s/^lib//"`
9781 # Otherwise, guess the base name of the shlib.
9782 # LDVERSION was added in Python 3.2, before that use VERSION,
9783 # or failing that, $python_version from _PGAC_CHECK_PYTHON_DIRS.
9784 python_ldversion
=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDVERSION'))))"`
9785 if test x
"${python_ldversion}" != x
""; then
9786 ldlibrary
="python${python_ldversion}"
9788 python_version_var
=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('VERSION'))))"`
9789 if test x
"${python_version_var}" != x
""; then
9790 ldlibrary
="python${python_version_var}"
9792 ldlibrary
="python${python_version}"
9795 # Search for a likely-looking file.
9797 for d
in "${python_libdir}" "${python_configdir}" /usr
/lib64
/usr
/lib
9799 # We don't know the platform DLSUFFIX here, so check 'em all.
9800 for e
in .so .dll .dylib .sl
; do
9801 if test -e "$d/lib${ldlibrary}$e"; then
9808 # Some platforms (OpenBSD) require us to accept a bare versioned shlib
9809 # (".so.n.n") as well. However, check this only after failing to find
9810 # ".so" anywhere, because yet other platforms (Debian) put the .so
9811 # symlink in a different directory from the underlying versioned shlib.
9812 if test "$found_shlib" != 1; then
9813 for d
in "${python_libdir}" "${python_configdir}" /usr
/lib64
/usr
/lib
9815 for f
in "$d/lib${ldlibrary}.so."* ; do
9816 if test -e "$f"; then
9824 # As usual, Windows has its own ideas. Possible default library
9825 # locations include c:/Windows/System32 and (for Cygwin) /usr/bin,
9826 # and the "lib" prefix might not be there.
9827 if test "$found_shlib" != 1 -a \
( "$PORTNAME" = win32
-o "$PORTNAME" = cygwin \
); then
9828 for d
in "${python_libdir}" "${python_configdir}" c
:/Windows
/System32
/usr
/bin
9830 for f
in "$d/lib${ldlibrary}.dll" "$d/${ldlibrary}.dll" ; do
9831 if test -e "$f"; then
9840 if test "$found_shlib" != 1; then
9841 as_fn_error $?
"could not find shared library for Python
9842 You might have to rebuild your Python installation. Refer to the
9843 documentation for details. Use --without-python to disable building
9844 PL/Python." "$LINENO" 5
9846 python_libspec
="-L${python_libdir} -l${ldlibrary}"
9848 python_additional_libs
=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_libspec} ${python_additional_libs}" >&5
9851 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
9857 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
9858 if test -z "$ZIC"; then
9861 # Extract the first word of "$ac_prog", so it can be a program name with args.
9862 set dummy $ac_prog; ac_word=$2
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9864 $as_echo_n "checking
for $ac_word...
" >&6; }
9865 if ${ac_cv_path_ZIC+:} false; then :
9866 $as_echo_n "(cached
) " >&6
9870 ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
9873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9877 test -z "$as_dir" && as_dir=.
9878 for ac_exec_ext in '' $ac_executable_extensions; do
9879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9880 ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
9881 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9892 if test -n "$ZIC"; then
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ZIC" >&5
9894 $as_echo "$ZIC" >&6; }
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9897 $as_echo "no
" >&6; }
9901 test -n "$ZIC" && break
9905 # Report the value of ZIC in configure's output in all cases.
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ZIC
" >&5
9907 $as_echo_n "checking
for ZIC...
" >&6; }
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ZIC" >&5
9909 $as_echo "$ZIC" >&6; }
9912 if test -z "$ZIC"; then
9914 When cross-compiling
, either use the option
--with-system-tzdata to use
9915 existing time-zone data
, or
set the environment variable ZIC to a zic
9916 program to use during the build.
" "$LINENO" 5
9923 # For each platform, we need to know about any special compile and link
9924 # libraries, and whether the normal C function names are thread-safe.
9925 # See the comment at the top of src/port/thread.c for more information.
9926 # WIN32 doesn't need the pthread tests; it always uses threads
9928 # These tests are run before the library-tests, because linking with the
9929 # other libraries can pull in the pthread functions as a side-effect. We
9930 # want to use the -pthread or similar flags directly, and not rely on
9931 # the side-effects of linking with some other library.
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for a
sed that does not truncate output
" >&5
9934 $as_echo_n "checking
for a
sed that does not truncate output...
" >&6; }
9935 if ${ac_cv_path_SED+:} false; then :
9936 $as_echo_n "(cached
) " >&6
9938 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
9939 for ac_i in 1 2 3 4 5 6 7; do
9940 ac_script="$ac_script$as_nl$ac_script"
9942 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
9943 { ac_script=; unset ac_script;}
9944 if test -z "$SED"; then
9945 ac_path_SED_found=false
9946 # Loop through the user's path and test for each of PROGNAME-LIST
9947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9951 test -z "$as_dir" && as_dir=.
9952 for ac_prog in sed gsed; do
9953 for ac_exec_ext in '' $ac_executable_extensions; do
9954 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
9955 as_fn_executable_p "$ac_path_SED" || continue
9956 # Check for GNU ac_path_SED and select it if it is found.
9957 # Check for GNU $ac_path_SED
9958 case `"$ac_path_SED" --version 2>&1` in
9960 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
9963 $as_echo_n 0123456789 >"conftest.
in"
9966 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
9967 mv "conftest.tmp
" "conftest.
in"
9968 cp "conftest.
in" "conftest.
nl"
9969 $as_echo '' >> "conftest.
nl"
9970 "$ac_path_SED" -f conftest.sed < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
9971 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
9972 as_fn_arith $ac_count + 1 && ac_count=$as_val
9973 if test $ac_count -gt ${ac_path_SED_max-0}; then
9974 # Best one so far, save it but keep looking for a better one
9975 ac_cv_path_SED="$ac_path_SED"
9976 ac_path_SED_max=$ac_count
9978 # 10*(2^10) chars as input seems more than enough
9979 test $ac_count -gt 10 && break
9981 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9984 $ac_path_SED_found && break 3
9989 if test -z "$ac_cv_path_SED"; then
9990 as_fn_error $? "no acceptable
sed could be found
in \
$PATH" "$LINENO" 5
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_SED" >&5
9998 $as_echo "$ac_cv_path_SED" >&6; }
9999 SED="$ac_cv_path_SED"
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
10004 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
10005 if ${ac_cv_path_GREP+:} false; then :
10006 $as_echo_n "(cached
) " >&6
10008 if test -z "$GREP"; then
10009 ac_path_GREP_found=false
10010 # Loop through the user's path and test for each of PROGNAME-LIST
10011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10012 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10015 test -z "$as_dir" && as_dir=.
10016 for ac_prog in grep ggrep; do
10017 for ac_exec_ext in '' $ac_executable_extensions; do
10018 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
10019 as_fn_executable_p "$ac_path_GREP" || continue
10020 # Check for GNU ac_path_GREP and select it if it is found.
10021 # Check for GNU $ac_path_GREP
10022 case `"$ac_path_GREP" --version 2>&1` in
10024 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
10027 $as_echo_n 0123456789 >"conftest.
in"
10030 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
10031 mv "conftest.tmp
" "conftest.
in"
10032 cp "conftest.
in" "conftest.
nl"
10033 $as_echo 'GREP' >> "conftest.
nl"
10034 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
10035 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
10036 as_fn_arith $ac_count + 1 && ac_count=$as_val
10037 if test $ac_count -gt ${ac_path_GREP_max-0}; then
10038 # Best one so far, save it but keep looking for a better one
10039 ac_cv_path_GREP="$ac_path_GREP"
10040 ac_path_GREP_max=$ac_count
10042 # 10*(2^10) chars as input seems more than enough
10043 test $ac_count -gt 10 && break
10045 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10048 $ac_path_GREP_found && break 3
10053 if test -z "$ac_cv_path_GREP"; then
10054 as_fn_error $? "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
10057 ac_cv_path_GREP=$GREP
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
10062 $as_echo "$ac_cv_path_GREP" >&6; }
10063 GREP="$ac_cv_path_GREP"
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
10067 $as_echo_n "checking
for egrep...
" >&6; }
10068 if ${ac_cv_path_EGREP+:} false; then :
10069 $as_echo_n "(cached
) " >&6
10071 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
10072 then ac_cv_path_EGREP="$GREP -E"
10074 if test -z "$EGREP"; then
10075 ac_path_EGREP_found=false
10076 # Loop through the user's path and test for each of PROGNAME-LIST
10077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10078 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10081 test -z "$as_dir" && as_dir=.
10082 for ac_prog in egrep; do
10083 for ac_exec_ext in '' $ac_executable_extensions; do
10084 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
10085 as_fn_executable_p "$ac_path_EGREP" || continue
10086 # Check for GNU ac_path_EGREP and select it if it is found.
10087 # Check for GNU $ac_path_EGREP
10088 case `"$ac_path_EGREP" --version 2>&1` in
10090 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
10093 $as_echo_n 0123456789 >"conftest.
in"
10096 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
10097 mv "conftest.tmp
" "conftest.
in"
10098 cp "conftest.
in" "conftest.
nl"
10099 $as_echo 'EGREP' >> "conftest.
nl"
10100 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
10101 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
10102 as_fn_arith $ac_count + 1 && ac_count=$as_val
10103 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
10104 # Best one so far, save it but keep looking for a better one
10105 ac_cv_path_EGREP="$ac_path_EGREP"
10106 ac_path_EGREP_max=$ac_count
10108 # 10*(2^10) chars as input seems more than enough
10109 test $ac_count -gt 10 && break
10111 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10114 $ac_path_EGREP_found && break 3
10119 if test -z "$ac_cv_path_EGREP"; then
10120 as_fn_error $? "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
10123 ac_cv_path_EGREP=$EGREP
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
10129 $as_echo "$ac_cv_path_EGREP" >&6; }
10130 EGREP="$ac_cv_path_EGREP"
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
10134 $as_echo_n "checking
for ANSI C header files...
" >&6; }
10135 if ${ac_cv_header_stdc+:} false; then :
10136 $as_echo_n "(cached
) " >&6
10138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10139 /* end confdefs.h. */
10140 #include <stdlib.h>
10141 #include <stdarg.h>
10142 #include <string.h>
10153 if ac_fn_c_try_compile "$LINENO"; then :
10154 ac_cv_header_stdc=yes
10156 ac_cv_header_stdc=no
10158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10160 if test $ac_cv_header_stdc = yes; then
10161 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10163 /* end confdefs.h. */
10164 #include <string.h>
10167 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
10168 $EGREP "memchr
" >/dev/null 2>&1; then :
10171 ac_cv_header_stdc=no
10177 if test $ac_cv_header_stdc = yes; then
10178 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10180 /* end confdefs.h. */
10181 #include <stdlib.h>
10184 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
10185 $EGREP "free
" >/dev/null 2>&1; then :
10188 ac_cv_header_stdc=no
10194 if test $ac_cv_header_stdc = yes; then
10195 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10196 if test "$cross_compiling" = yes; then :
10199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10200 /* end confdefs.h. */
10202 #include <stdlib.h>
10203 #if ((' ' & 0x0FF) == 0x020)
10204 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10205 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10207 # define ISLOWER(c) \
10208 (('a' <= (c) && (c) <= 'i') \
10209 || ('j' <= (c) && (c) <= 'r') \
10210 || ('s' <= (c) && (c) <= 'z'))
10211 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10214 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10219 for (i = 0; i < 256; i++)
10220 if (XOR (islower (i), ISLOWER (i))
10221 || toupper (i) != TOUPPER (i))
10226 if ac_fn_c_try_run "$LINENO"; then :
10229 ac_cv_header_stdc=no
10231 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10232 conftest.$ac_objext conftest.beam conftest.$ac_ext
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
10238 $as_echo "$ac_cv_header_stdc" >&6; }
10239 if test $ac_cv_header_stdc = yes; then
10241 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10245 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10246 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
10247 inttypes.h stdint.h unistd.h
10249 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10250 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10252 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
10253 cat >>confdefs.h
<<_ACEOF
10254 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10262 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then :
10269 ac_cpp
='$CPP $CPPFLAGS'
10270 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10271 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10272 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10276 # We used to check for pthread.h first, but this fails if pthread.h
10277 # requires special compiler flags (e.g. on Tru64 or Sequent).
10278 # It gets checked for in the link test anyway.
10280 # First of all, check if the user has set any of the PTHREAD_LIBS,
10281 # etcetera environment variables, and if threads linking works using
10283 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
10284 ax_pthread_save_CC
="$CC"
10285 ax_pthread_save_CFLAGS
="$CFLAGS"
10286 ax_pthread_save_LIBS
="$LIBS"
10287 if test "x$PTHREAD_CC" != "x"; then :
10290 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
10291 LIBS
="$PTHREAD_LIBS $LIBS"
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
10293 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
10294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10295 /* end confdefs.h. */
10297 /* Override any GCC internal prototype to avoid an error.
10298 Use char because int might match the return type of a GCC
10299 builtin and then its argument prototype would still apply. */
10303 char pthread_join ();
10307 return pthread_join ();
10312 if ac_fn_c_try_link
"$LINENO"; then :
10315 rm -f core conftest.err conftest.
$ac_objext \
10316 conftest
$ac_exeext conftest.
$ac_ext
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10318 $as_echo "$ax_pthread_ok" >&6; }
10319 if test "x$ax_pthread_ok" = "xno"; then
10323 CC
="$ax_pthread_save_CC"
10324 CFLAGS
="$ax_pthread_save_CFLAGS"
10325 LIBS
="$ax_pthread_save_LIBS"
10328 # We must check for the threads library under a number of different
10329 # names; the ordering is very important because some systems
10330 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
10331 # libraries is broken (non-POSIX).
10333 # Create a list of thread flags to try. Items starting with a "-" are
10334 # C compiler flags, and other items are library names, except for "none"
10335 # which indicates that we try without any flags at all, and "pthread-config"
10336 # which is a program returning the flags for the Pth emulation library.
10338 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
10340 # The ordering *is* (sometimes) important. Some notes on the
10341 # individual items follow:
10343 # pthreads: AIX (must check this before -lpthread)
10344 # none: in case threads are in libc; should be tried before -Kthread and
10345 # other compiler flags to prevent continual compiler warnings
10346 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
10347 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
10348 # (Note: HP C rejects this with "bad form for `-t' option")
10349 # -pthreads: Solaris/gcc (Note: HP C also rejects)
10350 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
10351 # doesn't hurt to check since this sometimes defines pthreads and
10352 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
10353 # is present but should not be used directly; and before -mthreads,
10354 # because the compiler interprets this as "-mt" + "-hreads")
10355 # -mthreads: Mingw32/gcc, Lynx/gcc
10356 # pthread: Linux, etcetera
10357 # --thread-safe: KAI C++
10358 # pthread-config: use pthread-config program (for GNU Pth library)
10364 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
10365 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
10367 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
10372 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
10373 # multi-threading and also sets -lpthread."
10375 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
10380 # IBM z/OS requires a feature-test macro to be defined in order to
10381 # enable POSIX threads at all, so give the user a hint if this is
10382 # not set. (We don't define these ourselves, as they can affect
10383 # other portions of the system API in unpredictable ways.)
10385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10386 /* end confdefs.h. */
10388 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
10389 AX_PTHREAD_ZOS_MISSING
10393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10394 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
10396 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
10404 # On Solaris (at least, for some versions), libc contains stubbed
10405 # (non-functional) versions of the pthreads routines, so link-based
10406 # tests will erroneously succeed. (N.B.: The stubs are missing
10407 # pthread_cleanup_push, or rather a function called by this macro,
10408 # so we could check for that, but who knows whether they'll stub
10409 # that too in a future libc.) So we'll check first for the
10410 # standard Solaris way of linking pthreads (-mt -lpthread).
10412 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
10416 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
10418 if test "x$GCC" = "xyes"; then :
10419 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
10422 # The presence of a feature test macro requesting re-entrant function
10423 # definitions is, on some systems, a strong hint that pthreads support is
10424 # correctly enabled
10427 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
10428 ax_pthread_check_macro
="_REENTRANT"
10432 ax_pthread_check_macro
="_THREAD_SAFE"
10436 ax_pthread_check_macro
="--"
10439 if test "x$ax_pthread_check_macro" = "x--"; then :
10440 ax_pthread_check_cond
=0
10442 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
10445 # Are we compiling with Clang?
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
10448 $as_echo_n "checking whether $CC is Clang... " >&6; }
10449 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
10450 $as_echo_n "(cached) " >&6
10452 ax_cv_PTHREAD_CLANG
=no
10453 # Note that Autoconf sets GCC=yes for Clang as well as GCC
10454 if test "x$GCC" = "xyes"; then
10455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10456 /* end confdefs.h. */
10457 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
10458 # if defined(__clang__) && defined(__llvm__)
10459 AX_PTHREAD_CC_IS_CLANG
10463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10464 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
10465 ax_cv_PTHREAD_CLANG
=yes
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
10473 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
10474 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
10476 ax_pthread_clang_warning
=no
10478 # Clang needs special handling, because older versions handle the -pthread
10479 # option in a rather... idiosyncratic way
10481 if test "x$ax_pthread_clang" = "xyes"; then
10483 # Clang takes -pthread; it has never supported any other flag
10485 # (Note 1: This will need to be revisited if a system that Clang
10486 # supports has POSIX threads in a separate library. This tends not
10487 # to be the way of modern systems, but it's conceivable.)
10489 # (Note 2: On some systems, notably Darwin, -pthread is not needed
10490 # to get POSIX threads support; the API is always present and
10491 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
10492 # -pthread does define _REENTRANT, and while the Darwin headers
10493 # ignore this macro, third-party headers might not.)
10495 PTHREAD_CFLAGS
="-pthread"
10500 # However, older versions of Clang make a point of warning the user
10501 # that, in an invocation where only linking and no compilation is
10502 # taking place, the -pthread option has no effect ("argument unused
10503 # during compilation"). They expect -pthread to be passed in only
10504 # when source code is being compiled.
10506 # Problem is, this is at odds with the way Automake and most other
10507 # C build frameworks function, which is that the same flags used in
10508 # compilation (CFLAGS) are also used in linking. Many systems
10509 # supported by AX_PTHREAD require exactly this for POSIX threads
10510 # support, and in fact it is often not straightforward to specify a
10511 # flag that is used only in the compilation phase and not in
10512 # linking. Such a scenario is extremely rare in practice.
10514 # Even though use of the -pthread flag in linking would only print
10515 # a warning, this can be a nuisance for well-run software projects
10516 # that build with -Werror. So if the active version of Clang has
10517 # this misfeature, we search for an option to squash it.
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
10520 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
10521 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
10522 $as_echo_n "(cached) " >&6
10524 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
10525 # Create an alternate version of $ac_link that compiles and
10526 # links in two steps (.c -> .o, .o -> exe) instead of one
10527 # (.c -> exe), because the warning occurs only in the second
10529 ax_pthread_save_ac_link
="$ac_link"
10530 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
10531 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
10532 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
10533 ax_pthread_save_CFLAGS
="$CFLAGS"
10534 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
10535 if test "x$ax_pthread_try" = "xunknown"; then :
10538 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
10539 ac_link
="$ax_pthread_save_ac_link"
10540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10541 /* end confdefs.h. */
10542 int main(void){return 0;}
10544 if ac_fn_c_try_link
"$LINENO"; then :
10545 ac_link
="$ax_pthread_2step_ac_link"
10546 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10547 /* end confdefs.h. */
10548 int main(void){return 0;}
10550 if ac_fn_c_try_link
"$LINENO"; then :
10553 rm -f core conftest.err conftest.
$ac_objext \
10554 conftest
$ac_exeext conftest.
$ac_ext
10557 rm -f core conftest.err conftest.
$ac_objext \
10558 conftest
$ac_exeext conftest.
$ac_ext
10560 ac_link
="$ax_pthread_save_ac_link"
10561 CFLAGS
="$ax_pthread_save_CFLAGS"
10562 if test "x$ax_pthread_try" = "x"; then :
10565 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
10569 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
10571 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
10573 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
10576 fi # $ax_pthread_clang = yes
10578 if test "x$ax_pthread_ok" = "xno"; then
10579 for ax_pthread_try_flag
in $ax_pthread_flags; do
10581 case $ax_pthread_try_flag in
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
10584 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
10589 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
10590 PTHREAD_CFLAGS
="-mt"
10591 PTHREAD_LIBS
="-lpthread"
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
10596 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
10597 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
10601 # Extract the first word of "pthread-config", so it can be a program name with args.
10602 set dummy pthread-config
; ac_word
=$2
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10604 $as_echo_n "checking for $ac_word... " >&6; }
10605 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
10606 $as_echo_n "(cached) " >&6
10608 if test -n "$ax_pthread_config"; then
10609 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
10611 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10612 for as_dir
in $PATH
10615 test -z "$as_dir" && as_dir
=.
10616 for ac_exec_ext
in '' $ac_executable_extensions; do
10617 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10618 ac_cv_prog_ax_pthread_config
="yes"
10619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10626 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
10629 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
10630 if test -n "$ax_pthread_config"; then
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
10632 $as_echo "$ax_pthread_config" >&6; }
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10635 $as_echo "no" >&6; }
10639 if test "x$ax_pthread_config" = "xno"; then :
10642 PTHREAD_CFLAGS
="`pthread-config --cflags`"
10643 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
10648 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
10649 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
10653 ax_pthread_save_CFLAGS
="$CFLAGS"
10654 ax_pthread_save_LIBS
="$LIBS"
10655 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
10656 LIBS
="$PTHREAD_LIBS $LIBS"
10658 # Check for various functions. We must include pthread.h,
10659 # since some functions may be macros. (On the Sequent, we
10660 # need a special flag -Kthread to make this header compile.)
10661 # We check for pthread_join because it is in -lpthread on IRIX
10662 # while pthread_create is in libc. We check for pthread_attr_init
10663 # due to DEC craziness with -lpthreads. We check for
10664 # pthread_cleanup_push because it is one of the few pthread
10665 # functions on Solaris that doesn't have a non-functional libc stub.
10666 # We try pthread_create on general principles.
10668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10669 /* end confdefs.h. */
10670 #include <pthread.h>
10671 # if $ax_pthread_check_cond
10672 # error "$ax_pthread_check_macro must be defined"
10674 static void routine(void *a) { a = 0; }
10675 static void *start_routine(void *a) { return a; }
10679 pthread_t th; pthread_attr_t attr;
10680 pthread_create(&th, 0, start_routine, 0);
10681 pthread_join(th, 0);
10682 pthread_attr_init(&attr);
10683 pthread_cleanup_push(routine, 0);
10684 pthread_cleanup_pop(0) /* ; */
10689 if ac_fn_c_try_link
"$LINENO"; then :
10692 rm -f core conftest.err conftest.
$ac_objext \
10693 conftest
$ac_exeext conftest.
$ac_ext
10695 CFLAGS
="$ax_pthread_save_CFLAGS"
10696 LIBS
="$ax_pthread_save_LIBS"
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10699 $as_echo "$ax_pthread_ok" >&6; }
10700 if test "x$ax_pthread_ok" = "xyes"; then :
10709 # Various other checks:
10710 if test "x$ax_pthread_ok" = "xyes"; then
10711 ax_pthread_save_CFLAGS
="$CFLAGS"
10712 ax_pthread_save_LIBS
="$LIBS"
10713 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
10714 LIBS
="$PTHREAD_LIBS $LIBS"
10716 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
10718 $as_echo_n "checking for joinable pthread attribute... " >&6; }
10719 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
10720 $as_echo_n "(cached) " >&6
10722 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
10723 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
10724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10725 /* end confdefs.h. */
10726 #include <pthread.h>
10730 int attr = $ax_pthread_attr; return attr /* ; */
10735 if ac_fn_c_try_link
"$LINENO"; then :
10736 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
10738 rm -f core conftest.err conftest.
$ac_objext \
10739 conftest
$ac_exeext conftest.
$ac_ext
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
10744 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
10745 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
10746 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
10747 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
10749 cat >>confdefs.h
<<_ACEOF
10750 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
10753 ax_pthread_joinable_attr_defined
=yes
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
10758 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
10759 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
10760 $as_echo_n "(cached) " >&6
10762 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
10765 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
10771 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
10772 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
10773 test "x$ax_pthread_special_flags_added" != "xyes"; then :
10774 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
10775 ax_pthread_special_flags_added
=yes
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
10779 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
10780 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
10781 $as_echo_n "(cached) " >&6
10783 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10784 /* end confdefs.h. */
10785 #include <pthread.h>
10789 int i = PTHREAD_PRIO_INHERIT;
10794 if ac_fn_c_try_link
"$LINENO"; then :
10795 ax_cv_PTHREAD_PRIO_INHERIT
=yes
10797 ax_cv_PTHREAD_PRIO_INHERIT
=no
10799 rm -f core conftest.err conftest.
$ac_objext \
10800 conftest
$ac_exeext conftest.
$ac_ext
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
10804 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
10805 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
10806 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
10808 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
10810 ax_pthread_prio_inherit_defined
=yes
10814 CFLAGS
="$ax_pthread_save_CFLAGS"
10815 LIBS
="$ax_pthread_save_LIBS"
10817 # More AIX lossage: compile with *_r variant
10818 if test "x$GCC" != "xyes"; then
10822 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
10823 #handle absolute path differently from PATH based program lookup
10826 if as_fn_executable_p
${CC}_r
; then :
10827 PTHREAD_CC
="${CC}_r"
10830 for ac_prog
in ${CC}_r
10832 # Extract the first word of "$ac_prog", so it can be a program name with args.
10833 set dummy
$ac_prog; ac_word
=$2
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10835 $as_echo_n "checking for $ac_word... " >&6; }
10836 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
10837 $as_echo_n "(cached) " >&6
10839 if test -n "$PTHREAD_CC"; then
10840 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
10842 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10843 for as_dir
in $PATH
10846 test -z "$as_dir" && as_dir
=.
10847 for ac_exec_ext
in '' $ac_executable_extensions; do
10848 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10849 ac_cv_prog_PTHREAD_CC
="$ac_prog"
10850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10859 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
10860 if test -n "$PTHREAD_CC"; then
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
10862 $as_echo "$PTHREAD_CC" >&6; }
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10865 $as_echo "no" >&6; }
10869 test -n "$PTHREAD_CC" && break
10871 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
10882 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
10888 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10889 if test "x$ax_pthread_ok" = "xyes"; then
10891 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10899 ac_cpp
='$CPP $CPPFLAGS'
10900 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10901 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10902 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10906 # Some platforms use these, so just define them. They can't hurt if they
10907 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
10908 # enables 5-arg getpwuid_r, among other things.
10909 PTHREAD_CFLAGS
="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
10911 # Check for *_r functions
10914 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
10915 LIBS
="$LIBS $PTHREAD_LIBS"
10917 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10918 if test "x$ac_cv_header_pthread_h" = xyes
; then :
10922 pthread.h not found; use --disable-thread-safety to disable thread safety" "$LINENO" 5
10927 for ac_func
in strerror_r getpwuid_r gethostbyname_r
10929 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10930 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10931 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10932 cat >>confdefs.h
<<_ACEOF
10933 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10940 # Do test here with the proper thread flags
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns int" >&5
10942 $as_echo_n "checking whether strerror_r returns int... " >&6; }
10943 if ${pgac_cv_func_strerror_r_int+:} false
; then :
10944 $as_echo_n "(cached) " >&6
10946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10947 /* end confdefs.h. */
10948 #include <string.h>
10953 switch (strerror_r(1, buf, sizeof(buf)))
10954 { case 0: break; default: break; }
10960 if ac_fn_c_try_compile
"$LINENO"; then :
10961 pgac_cv_func_strerror_r_int
=yes
10963 pgac_cv_func_strerror_r_int
=no
10965 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_strerror_r_int" >&5
10968 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
10969 if test x
"$pgac_cv_func_strerror_r_int" = xyes
; then
10971 $as_echo "#define STRERROR_R_INT 1" >>confdefs.h
10982 # do not use values from template file
10995 ## Most libraries are included only if they demonstrably provide a function
10996 ## we need, but libm is an exception: always include it, because there are
10997 ## too many compilers that play cute optimization games that will break
10998 ## probes for standard functions such as pow().
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
11002 $as_echo_n "checking for main in -lm... " >&6; }
11003 if ${ac_cv_lib_m_main+:} false
; then :
11004 $as_echo_n "(cached) " >&6
11006 ac_check_lib_save_LIBS
=$LIBS
11008 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11009 /* end confdefs.h. */
11020 if ac_fn_c_try_link
"$LINENO"; then :
11021 ac_cv_lib_m_main
=yes
11023 ac_cv_lib_m_main
=no
11025 rm -f core conftest.err conftest.
$ac_objext \
11026 conftest
$ac_exeext conftest.
$ac_ext
11027 LIBS
=$ac_check_lib_save_LIBS
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
11030 $as_echo "$ac_cv_lib_m_main" >&6; }
11031 if test "x$ac_cv_lib_m_main" = xyes
; then :
11032 cat >>confdefs.h
<<_ACEOF
11033 #define HAVE_LIBM 1
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setproctitle" >&5
11041 $as_echo_n "checking for library containing setproctitle... " >&6; }
11042 if ${ac_cv_search_setproctitle+:} false
; then :
11043 $as_echo_n "(cached) " >&6
11045 ac_func_search_save_LIBS
=$LIBS
11046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11047 /* end confdefs.h. */
11049 /* Override any GCC internal prototype to avoid an error.
11050 Use char because int might match the return type of a GCC
11051 builtin and then its argument prototype would still apply. */
11055 char setproctitle ();
11059 return setproctitle ();
11064 for ac_lib
in '' util
; do
11065 if test -z "$ac_lib"; then
11066 ac_res
="none required"
11069 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11071 if ac_fn_c_try_link
"$LINENO"; then :
11072 ac_cv_search_setproctitle
=$ac_res
11074 rm -f core conftest.err conftest.
$ac_objext \
11076 if ${ac_cv_search_setproctitle+:} false
; then :
11080 if ${ac_cv_search_setproctitle+:} false
; then :
11083 ac_cv_search_setproctitle
=no
11085 rm conftest.
$ac_ext
11086 LIBS
=$ac_func_search_save_LIBS
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setproctitle" >&5
11089 $as_echo "$ac_cv_search_setproctitle" >&6; }
11090 ac_res
=$ac_cv_search_setproctitle
11091 if test "$ac_res" != no
; then :
11092 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11097 $as_echo_n "checking for library containing dlopen... " >&6; }
11098 if ${ac_cv_search_dlopen+:} false
; then :
11099 $as_echo_n "(cached) " >&6
11101 ac_func_search_save_LIBS
=$LIBS
11102 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11103 /* end confdefs.h. */
11105 /* Override any GCC internal prototype to avoid an error.
11106 Use char because int might match the return type of a GCC
11107 builtin and then its argument prototype would still apply. */
11120 for ac_lib
in '' dl
; do
11121 if test -z "$ac_lib"; then
11122 ac_res
="none required"
11125 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11127 if ac_fn_c_try_link
"$LINENO"; then :
11128 ac_cv_search_dlopen
=$ac_res
11130 rm -f core conftest.err conftest.
$ac_objext \
11132 if ${ac_cv_search_dlopen+:} false
; then :
11136 if ${ac_cv_search_dlopen+:} false
; then :
11139 ac_cv_search_dlopen
=no
11141 rm conftest.
$ac_ext
11142 LIBS
=$ac_func_search_save_LIBS
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11145 $as_echo "$ac_cv_search_dlopen" >&6; }
11146 ac_res
=$ac_cv_search_dlopen
11147 if test "$ac_res" != no
; then :
11148 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
11153 $as_echo_n "checking for library containing socket... " >&6; }
11154 if ${ac_cv_search_socket+:} false
; then :
11155 $as_echo_n "(cached) " >&6
11157 ac_func_search_save_LIBS
=$LIBS
11158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11159 /* end confdefs.h. */
11161 /* Override any GCC internal prototype to avoid an error.
11162 Use char because int might match the return type of a GCC
11163 builtin and then its argument prototype would still apply. */
11176 for ac_lib
in '' socket ws2_32
; do
11177 if test -z "$ac_lib"; then
11178 ac_res
="none required"
11181 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11183 if ac_fn_c_try_link
"$LINENO"; then :
11184 ac_cv_search_socket
=$ac_res
11186 rm -f core conftest.err conftest.
$ac_objext \
11188 if ${ac_cv_search_socket+:} false
; then :
11192 if ${ac_cv_search_socket+:} false
; then :
11195 ac_cv_search_socket
=no
11197 rm conftest.
$ac_ext
11198 LIBS
=$ac_func_search_save_LIBS
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
11201 $as_echo "$ac_cv_search_socket" >&6; }
11202 ac_res
=$ac_cv_search_socket
11203 if test "$ac_res" != no
; then :
11204 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
11209 $as_echo_n "checking for library containing shl_load... " >&6; }
11210 if ${ac_cv_search_shl_load+:} false
; then :
11211 $as_echo_n "(cached) " >&6
11213 ac_func_search_save_LIBS
=$LIBS
11214 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11215 /* end confdefs.h. */
11217 /* Override any GCC internal prototype to avoid an error.
11218 Use char because int might match the return type of a GCC
11219 builtin and then its argument prototype would still apply. */
11227 return shl_load ();
11232 for ac_lib
in '' dld
; do
11233 if test -z "$ac_lib"; then
11234 ac_res
="none required"
11237 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11239 if ac_fn_c_try_link
"$LINENO"; then :
11240 ac_cv_search_shl_load
=$ac_res
11242 rm -f core conftest.err conftest.
$ac_objext \
11244 if ${ac_cv_search_shl_load+:} false
; then :
11248 if ${ac_cv_search_shl_load+:} false
; then :
11251 ac_cv_search_shl_load
=no
11253 rm conftest.
$ac_ext
11254 LIBS
=$ac_func_search_save_LIBS
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
11257 $as_echo "$ac_cv_search_shl_load" >&6; }
11258 ac_res
=$ac_cv_search_shl_load
11259 if test "$ac_res" != no
; then :
11260 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getopt_long" >&5
11265 $as_echo_n "checking for library containing getopt_long... " >&6; }
11266 if ${ac_cv_search_getopt_long+:} false
; then :
11267 $as_echo_n "(cached) " >&6
11269 ac_func_search_save_LIBS
=$LIBS
11270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11271 /* end confdefs.h. */
11273 /* Override any GCC internal prototype to avoid an error.
11274 Use char because int might match the return type of a GCC
11275 builtin and then its argument prototype would still apply. */
11279 char getopt_long ();
11283 return getopt_long ();
11288 for ac_lib
in '' getopt gnugetopt
; do
11289 if test -z "$ac_lib"; then
11290 ac_res
="none required"
11293 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11295 if ac_fn_c_try_link
"$LINENO"; then :
11296 ac_cv_search_getopt_long
=$ac_res
11298 rm -f core conftest.err conftest.
$ac_objext \
11300 if ${ac_cv_search_getopt_long+:} false
; then :
11304 if ${ac_cv_search_getopt_long+:} false
; then :
11307 ac_cv_search_getopt_long
=no
11309 rm conftest.
$ac_ext
11310 LIBS
=$ac_func_search_save_LIBS
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getopt_long" >&5
11313 $as_echo "$ac_cv_search_getopt_long" >&6; }
11314 ac_res
=$ac_cv_search_getopt_long
11315 if test "$ac_res" != no
; then :
11316 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
11321 $as_echo_n "checking for library containing shm_open... " >&6; }
11322 if ${ac_cv_search_shm_open+:} false
; then :
11323 $as_echo_n "(cached) " >&6
11325 ac_func_search_save_LIBS
=$LIBS
11326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11327 /* end confdefs.h. */
11329 /* Override any GCC internal prototype to avoid an error.
11330 Use char because int might match the return type of a GCC
11331 builtin and then its argument prototype would still apply. */
11339 return shm_open ();
11344 for ac_lib
in '' rt
; do
11345 if test -z "$ac_lib"; then
11346 ac_res
="none required"
11349 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11351 if ac_fn_c_try_link
"$LINENO"; then :
11352 ac_cv_search_shm_open
=$ac_res
11354 rm -f core conftest.err conftest.
$ac_objext \
11356 if ${ac_cv_search_shm_open+:} false
; then :
11360 if ${ac_cv_search_shm_open+:} false
; then :
11363 ac_cv_search_shm_open
=no
11365 rm conftest.
$ac_ext
11366 LIBS
=$ac_func_search_save_LIBS
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
11369 $as_echo "$ac_cv_search_shm_open" >&6; }
11370 ac_res
=$ac_cv_search_shm_open
11371 if test "$ac_res" != no
; then :
11372 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_unlink" >&5
11377 $as_echo_n "checking for library containing shm_unlink... " >&6; }
11378 if ${ac_cv_search_shm_unlink+:} false
; then :
11379 $as_echo_n "(cached) " >&6
11381 ac_func_search_save_LIBS
=$LIBS
11382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11383 /* end confdefs.h. */
11385 /* Override any GCC internal prototype to avoid an error.
11386 Use char because int might match the return type of a GCC
11387 builtin and then its argument prototype would still apply. */
11391 char shm_unlink ();
11395 return shm_unlink ();
11400 for ac_lib
in '' rt
; do
11401 if test -z "$ac_lib"; then
11402 ac_res
="none required"
11405 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11407 if ac_fn_c_try_link
"$LINENO"; then :
11408 ac_cv_search_shm_unlink
=$ac_res
11410 rm -f core conftest.err conftest.
$ac_objext \
11412 if ${ac_cv_search_shm_unlink+:} false
; then :
11416 if ${ac_cv_search_shm_unlink+:} false
; then :
11419 ac_cv_search_shm_unlink
=no
11421 rm conftest.
$ac_ext
11422 LIBS
=$ac_func_search_save_LIBS
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_unlink" >&5
11425 $as_echo "$ac_cv_search_shm_unlink" >&6; }
11426 ac_res
=$ac_cv_search_shm_unlink
11427 if test "$ac_res" != no
; then :
11428 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
11433 $as_echo_n "checking for library containing clock_gettime... " >&6; }
11434 if ${ac_cv_search_clock_gettime+:} false
; then :
11435 $as_echo_n "(cached) " >&6
11437 ac_func_search_save_LIBS
=$LIBS
11438 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11439 /* end confdefs.h. */
11441 /* Override any GCC internal prototype to avoid an error.
11442 Use char because int might match the return type of a GCC
11443 builtin and then its argument prototype would still apply. */
11447 char clock_gettime ();
11451 return clock_gettime ();
11456 for ac_lib
in '' rt posix4
; do
11457 if test -z "$ac_lib"; then
11458 ac_res
="none required"
11461 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11463 if ac_fn_c_try_link
"$LINENO"; then :
11464 ac_cv_search_clock_gettime
=$ac_res
11466 rm -f core conftest.err conftest.
$ac_objext \
11468 if ${ac_cv_search_clock_gettime+:} false
; then :
11472 if ${ac_cv_search_clock_gettime+:} false
; then :
11475 ac_cv_search_clock_gettime
=no
11477 rm conftest.
$ac_ext
11478 LIBS
=$ac_func_search_save_LIBS
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
11481 $as_echo "$ac_cv_search_clock_gettime" >&6; }
11482 ac_res
=$ac_cv_search_clock_gettime
11483 if test "$ac_res" != no
; then :
11484 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
11490 $as_echo_n "checking for library containing fdatasync... " >&6; }
11491 if ${ac_cv_search_fdatasync+:} false
; then :
11492 $as_echo_n "(cached) " >&6
11494 ac_func_search_save_LIBS
=$LIBS
11495 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11496 /* end confdefs.h. */
11498 /* Override any GCC internal prototype to avoid an error.
11499 Use char because int might match the return type of a GCC
11500 builtin and then its argument prototype would still apply. */
11508 return fdatasync ();
11513 for ac_lib
in '' rt posix4
; do
11514 if test -z "$ac_lib"; then
11515 ac_res
="none required"
11518 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11520 if ac_fn_c_try_link
"$LINENO"; then :
11521 ac_cv_search_fdatasync
=$ac_res
11523 rm -f core conftest.err conftest.
$ac_objext \
11525 if ${ac_cv_search_fdatasync+:} false
; then :
11529 if ${ac_cv_search_fdatasync+:} false
; then :
11532 ac_cv_search_fdatasync
=no
11534 rm conftest.
$ac_ext
11535 LIBS
=$ac_func_search_save_LIBS
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
11538 $as_echo "$ac_cv_search_fdatasync" >&6; }
11539 ac_res
=$ac_cv_search_fdatasync
11540 if test "$ac_res" != no
; then :
11541 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11545 # Required for thread_test.c on Solaris
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
11547 $as_echo_n "checking for library containing sched_yield... " >&6; }
11548 if ${ac_cv_search_sched_yield+:} false
; then :
11549 $as_echo_n "(cached) " >&6
11551 ac_func_search_save_LIBS
=$LIBS
11552 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11553 /* end confdefs.h. */
11555 /* Override any GCC internal prototype to avoid an error.
11556 Use char because int might match the return type of a GCC
11557 builtin and then its argument prototype would still apply. */
11561 char sched_yield ();
11565 return sched_yield ();
11570 for ac_lib
in '' rt
; do
11571 if test -z "$ac_lib"; then
11572 ac_res
="none required"
11575 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11577 if ac_fn_c_try_link
"$LINENO"; then :
11578 ac_cv_search_sched_yield
=$ac_res
11580 rm -f core conftest.err conftest.
$ac_objext \
11582 if ${ac_cv_search_sched_yield+:} false
; then :
11586 if ${ac_cv_search_sched_yield+:} false
; then :
11589 ac_cv_search_sched_yield
=no
11591 rm conftest.
$ac_ext
11592 LIBS
=$ac_func_search_save_LIBS
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
11595 $as_echo "$ac_cv_search_sched_yield" >&6; }
11596 ac_res
=$ac_cv_search_sched_yield
11597 if test "$ac_res" != no
; then :
11598 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11602 # Required for thread_test.c on Solaris 2.5:
11603 # Other ports use it too (HP-UX) so test unconditionally
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname_r" >&5
11605 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
11606 if ${ac_cv_search_gethostbyname_r+:} false
; then :
11607 $as_echo_n "(cached) " >&6
11609 ac_func_search_save_LIBS
=$LIBS
11610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11611 /* end confdefs.h. */
11613 /* Override any GCC internal prototype to avoid an error.
11614 Use char because int might match the return type of a GCC
11615 builtin and then its argument prototype would still apply. */
11619 char gethostbyname_r ();
11623 return gethostbyname_r ();
11628 for ac_lib
in '' nsl
; do
11629 if test -z "$ac_lib"; then
11630 ac_res
="none required"
11633 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11635 if ac_fn_c_try_link
"$LINENO"; then :
11636 ac_cv_search_gethostbyname_r
=$ac_res
11638 rm -f core conftest.err conftest.
$ac_objext \
11640 if ${ac_cv_search_gethostbyname_r+:} false
; then :
11644 if ${ac_cv_search_gethostbyname_r+:} false
; then :
11647 ac_cv_search_gethostbyname_r
=no
11649 rm conftest.
$ac_ext
11650 LIBS
=$ac_func_search_save_LIBS
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname_r" >&5
11653 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
11654 ac_res
=$ac_cv_search_gethostbyname_r
11655 if test "$ac_res" != no
; then :
11656 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shmget" >&5
11662 $as_echo_n "checking for library containing shmget... " >&6; }
11663 if ${ac_cv_search_shmget+:} false
; then :
11664 $as_echo_n "(cached) " >&6
11666 ac_func_search_save_LIBS
=$LIBS
11667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11668 /* end confdefs.h. */
11670 /* Override any GCC internal prototype to avoid an error.
11671 Use char because int might match the return type of a GCC
11672 builtin and then its argument prototype would still apply. */
11685 for ac_lib
in '' cygipc
; do
11686 if test -z "$ac_lib"; then
11687 ac_res
="none required"
11690 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11692 if ac_fn_c_try_link
"$LINENO"; then :
11693 ac_cv_search_shmget
=$ac_res
11695 rm -f core conftest.err conftest.
$ac_objext \
11697 if ${ac_cv_search_shmget+:} false
; then :
11701 if ${ac_cv_search_shmget+:} false
; then :
11704 ac_cv_search_shmget
=no
11706 rm conftest.
$ac_ext
11707 LIBS
=$ac_func_search_save_LIBS
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shmget" >&5
11710 $as_echo "$ac_cv_search_shmget" >&6; }
11711 ac_res
=$ac_cv_search_shmget
11712 if test "$ac_res" != no
; then :
11713 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols" >&5
11719 $as_echo_n "checking for library containing backtrace_symbols... " >&6; }
11720 if ${ac_cv_search_backtrace_symbols+:} false
; then :
11721 $as_echo_n "(cached) " >&6
11723 ac_func_search_save_LIBS
=$LIBS
11724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11725 /* end confdefs.h. */
11727 /* Override any GCC internal prototype to avoid an error.
11728 Use char because int might match the return type of a GCC
11729 builtin and then its argument prototype would still apply. */
11733 char backtrace_symbols ();
11737 return backtrace_symbols ();
11742 for ac_lib
in '' execinfo
; do
11743 if test -z "$ac_lib"; then
11744 ac_res
="none required"
11747 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11749 if ac_fn_c_try_link
"$LINENO"; then :
11750 ac_cv_search_backtrace_symbols
=$ac_res
11752 rm -f core conftest.err conftest.
$ac_objext \
11754 if ${ac_cv_search_backtrace_symbols+:} false
; then :
11758 if ${ac_cv_search_backtrace_symbols+:} false
; then :
11761 ac_cv_search_backtrace_symbols
=no
11763 rm conftest.
$ac_ext
11764 LIBS
=$ac_func_search_save_LIBS
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols" >&5
11767 $as_echo "$ac_cv_search_backtrace_symbols" >&6; }
11768 ac_res
=$ac_cv_search_backtrace_symbols
11769 if test "$ac_res" != no
; then :
11770 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11775 if test "$with_readline" = yes; then
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
11779 $as_echo_n "checking for library containing readline... " >&6; }
11780 if ${pgac_cv_check_readline+:} false
; then :
11781 $as_echo_n "(cached) " >&6
11783 pgac_cv_check_readline
=no
11784 pgac_save_LIBS
=$LIBS
11785 if test x
"$with_libedit_preferred" != x
"yes"
11786 then READLINE_ORDER
="-lreadline -ledit"
11787 else READLINE_ORDER
="-ledit -lreadline"
11789 for pgac_rllib
in $READLINE_ORDER ; do
11790 for pgac_lib
in "" " -ltermcap" " -lncurses" " -lcurses" ; do
11791 LIBS
="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
11792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11793 /* end confdefs.h. */
11795 /* Override any GCC internal prototype to avoid an error.
11796 Use char because int might match the return type of a GCC
11797 builtin and then its argument prototype would still apply. */
11805 return readline ();
11810 if ac_fn_c_try_link
"$LINENO"; then :
11812 # Older NetBSD and OpenBSD have a broken linker that does not
11813 # recognize dependent libraries; assume curses is needed if we didn't
11814 # find any dependency.
11816 netbsd
* | openbsd
*)
11817 if test x
"$pgac_lib" = x
"" ; then
11818 pgac_lib
=" -lcurses"
11822 pgac_cv_check_readline
="${pgac_rllib}${pgac_lib}"
11826 rm -f core conftest.err conftest.
$ac_objext \
11827 conftest
$ac_exeext conftest.
$ac_ext
11829 if test "$pgac_cv_check_readline" != no
; then
11833 LIBS
=$pgac_save_LIBS
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_check_readline" >&5
11837 $as_echo "$pgac_cv_check_readline" >&6; }
11838 if test "$pgac_cv_check_readline" != no
; then
11839 LIBS
="$pgac_cv_check_readline $LIBS"
11841 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
11846 if test x
"$pgac_cv_check_readline" = x
"no"; then
11847 as_fn_error $?
"readline library not found
11848 If you have readline already installed, see config.log for details on the
11849 failure. It is possible the compiler isn't looking in the proper directory.
11850 Use --without-readline to disable readline support." "$LINENO" 5
11854 if test "$with_zlib" = yes; then
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
11856 $as_echo_n "checking for inflate in -lz... " >&6; }
11857 if ${ac_cv_lib_z_inflate+:} false
; then :
11858 $as_echo_n "(cached) " >&6
11860 ac_check_lib_save_LIBS
=$LIBS
11862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11863 /* end confdefs.h. */
11865 /* Override any GCC internal prototype to avoid an error.
11866 Use char because int might match the return type of a GCC
11867 builtin and then its argument prototype would still apply. */
11880 if ac_fn_c_try_link
"$LINENO"; then :
11881 ac_cv_lib_z_inflate
=yes
11883 ac_cv_lib_z_inflate
=no
11885 rm -f core conftest.err conftest.
$ac_objext \
11886 conftest
$ac_exeext conftest.
$ac_ext
11887 LIBS
=$ac_check_lib_save_LIBS
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
11890 $as_echo "$ac_cv_lib_z_inflate" >&6; }
11891 if test "x$ac_cv_lib_z_inflate" = xyes
; then :
11892 cat >>confdefs.h
<<_ACEOF
11893 #define HAVE_LIBZ 1
11899 as_fn_error $?
"zlib library not found
11900 If you have zlib already installed, see config.log for details on the
11901 failure. It is possible the compiler isn't looking in the proper directory.
11902 Use --without-zlib to disable zlib support." "$LINENO" 5
11907 if test "$enable_spinlocks" = yes; then
11909 $as_echo "#define HAVE_SPINLOCKS 1" >>confdefs.h
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
11913 *** Not using spinlocks will cause poor performance." >&5
11914 $as_echo "$as_me: WARNING:
11915 *** Not using spinlocks will cause poor performance." >&2;}
11918 if test "$enable_atomics" = yes; then
11920 $as_echo "#define HAVE_ATOMICS 1" >>confdefs.h
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
11924 *** Not using atomic operations will cause poor performance." >&5
11925 $as_echo "$as_me: WARNING:
11926 *** Not using atomic operations will cause poor performance." >&2;}
11929 if test "$with_gssapi" = yes ; then
11930 if test "$PORTNAME" != "win32"; then
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_init_sec_context" >&5
11932 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
11933 if ${ac_cv_search_gss_init_sec_context+:} false
; then :
11934 $as_echo_n "(cached) " >&6
11936 ac_func_search_save_LIBS
=$LIBS
11937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11938 /* end confdefs.h. */
11940 /* Override any GCC internal prototype to avoid an error.
11941 Use char because int might match the return type of a GCC
11942 builtin and then its argument prototype would still apply. */
11946 char gss_init_sec_context ();
11950 return gss_init_sec_context ();
11955 for ac_lib
in '' gssapi_krb5 gss
'gssapi -lkrb5 -lcrypto'; do
11956 if test -z "$ac_lib"; then
11957 ac_res
="none required"
11960 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11962 if ac_fn_c_try_link
"$LINENO"; then :
11963 ac_cv_search_gss_init_sec_context
=$ac_res
11965 rm -f core conftest.err conftest.
$ac_objext \
11967 if ${ac_cv_search_gss_init_sec_context+:} false
; then :
11971 if ${ac_cv_search_gss_init_sec_context+:} false
; then :
11974 ac_cv_search_gss_init_sec_context
=no
11976 rm conftest.
$ac_ext
11977 LIBS
=$ac_func_search_save_LIBS
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_init_sec_context" >&5
11980 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
11981 ac_res
=$ac_cv_search_gss_init_sec_context
11982 if test "$ac_res" != no
; then :
11983 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11986 as_fn_error $?
"could not find function 'gss_init_sec_context' required for GSSAPI" "$LINENO" 5
11990 LIBS
="$LIBS -lgssapi32"
11994 if test "$with_openssl" = yes ; then
11995 if test "$PORTNAME" != "win32"; then
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_new_ex_data in -lcrypto" >&5
11997 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
11998 if ${ac_cv_lib_crypto_CRYPTO_new_ex_data+:} false
; then :
11999 $as_echo_n "(cached) " >&6
12001 ac_check_lib_save_LIBS
=$LIBS
12002 LIBS
="-lcrypto $LIBS"
12003 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12004 /* end confdefs.h. */
12006 /* Override any GCC internal prototype to avoid an error.
12007 Use char because int might match the return type of a GCC
12008 builtin and then its argument prototype would still apply. */
12012 char CRYPTO_new_ex_data ();
12016 return CRYPTO_new_ex_data ();
12021 if ac_fn_c_try_link
"$LINENO"; then :
12022 ac_cv_lib_crypto_CRYPTO_new_ex_data
=yes
12024 ac_cv_lib_crypto_CRYPTO_new_ex_data
=no
12026 rm -f core conftest.err conftest.
$ac_objext \
12027 conftest
$ac_exeext conftest.
$ac_ext
12028 LIBS
=$ac_check_lib_save_LIBS
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
12031 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
12032 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = xyes
; then :
12033 cat >>confdefs.h
<<_ACEOF
12034 #define HAVE_LIBCRYPTO 1
12037 LIBS
="-lcrypto $LIBS"
12040 as_fn_error $?
"library 'crypto' is required for OpenSSL" "$LINENO" 5
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
12044 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
12045 if ${ac_cv_lib_ssl_SSL_new+:} false
; then :
12046 $as_echo_n "(cached) " >&6
12048 ac_check_lib_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. */
12068 if ac_fn_c_try_link
"$LINENO"; then :
12069 ac_cv_lib_ssl_SSL_new
=yes
12071 ac_cv_lib_ssl_SSL_new
=no
12073 rm -f core conftest.err conftest.
$ac_objext \
12074 conftest
$ac_exeext conftest.
$ac_ext
12075 LIBS
=$ac_check_lib_save_LIBS
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
12078 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
12079 if test "x$ac_cv_lib_ssl_SSL_new" = xyes
; then :
12080 cat >>confdefs.h
<<_ACEOF
12081 #define HAVE_LIBSSL 1
12087 as_fn_error $?
"library 'ssl' is required for OpenSSL" "$LINENO" 5
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing CRYPTO_new_ex_data" >&5
12092 $as_echo_n "checking for library containing CRYPTO_new_ex_data... " >&6; }
12093 if ${ac_cv_search_CRYPTO_new_ex_data+:} false
; then :
12094 $as_echo_n "(cached) " >&6
12096 ac_func_search_save_LIBS
=$LIBS
12097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12098 /* end confdefs.h. */
12100 /* Override any GCC internal prototype to avoid an error.
12101 Use char because int might match the return type of a GCC
12102 builtin and then its argument prototype would still apply. */
12106 char CRYPTO_new_ex_data ();
12110 return CRYPTO_new_ex_data ();
12115 for ac_lib
in '' eay32 crypto
; do
12116 if test -z "$ac_lib"; then
12117 ac_res
="none required"
12120 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12122 if ac_fn_c_try_link
"$LINENO"; then :
12123 ac_cv_search_CRYPTO_new_ex_data
=$ac_res
12125 rm -f core conftest.err conftest.
$ac_objext \
12127 if ${ac_cv_search_CRYPTO_new_ex_data+:} false
; then :
12131 if ${ac_cv_search_CRYPTO_new_ex_data+:} false
; then :
12134 ac_cv_search_CRYPTO_new_ex_data
=no
12136 rm conftest.
$ac_ext
12137 LIBS
=$ac_func_search_save_LIBS
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_CRYPTO_new_ex_data" >&5
12140 $as_echo "$ac_cv_search_CRYPTO_new_ex_data" >&6; }
12141 ac_res
=$ac_cv_search_CRYPTO_new_ex_data
12142 if test "$ac_res" != no
; then :
12143 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12146 as_fn_error $?
"library 'eay32' or 'crypto' is required for OpenSSL" "$LINENO" 5
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_new" >&5
12150 $as_echo_n "checking for library containing SSL_new... " >&6; }
12151 if ${ac_cv_search_SSL_new+:} false
; then :
12152 $as_echo_n "(cached) " >&6
12154 ac_func_search_save_LIBS
=$LIBS
12155 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12156 /* end confdefs.h. */
12158 /* Override any GCC internal prototype to avoid an error.
12159 Use char because int might match the return type of a GCC
12160 builtin and then its argument prototype would still apply. */
12173 for ac_lib
in '' ssleay32 ssl
; do
12174 if test -z "$ac_lib"; then
12175 ac_res
="none required"
12178 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12180 if ac_fn_c_try_link
"$LINENO"; then :
12181 ac_cv_search_SSL_new
=$ac_res
12183 rm -f core conftest.err conftest.
$ac_objext \
12185 if ${ac_cv_search_SSL_new+:} false
; then :
12189 if ${ac_cv_search_SSL_new+:} false
; then :
12192 ac_cv_search_SSL_new
=no
12194 rm conftest.
$ac_ext
12195 LIBS
=$ac_func_search_save_LIBS
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_new" >&5
12198 $as_echo "$ac_cv_search_SSL_new" >&6; }
12199 ac_res
=$ac_cv_search_SSL_new
12200 if test "$ac_res" != no
; then :
12201 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12204 as_fn_error $?
"library 'ssleay32' or 'ssl' is required for OpenSSL" "$LINENO" 5
12208 # Function introduced in OpenSSL 1.0.2.
12209 for ac_func
in X509_get_signature_nid
12211 ac_fn_c_check_func
"$LINENO" "X509_get_signature_nid" "ac_cv_func_X509_get_signature_nid"
12212 if test "x$ac_cv_func_X509_get_signature_nid" = xyes
; then :
12213 cat >>confdefs.h
<<_ACEOF
12214 #define HAVE_X509_GET_SIGNATURE_NID 1
12220 # Functions introduced in OpenSSL 1.1.0. We used to check for
12221 # OPENSSL_VERSION_NUMBER, but that didn't work with 1.1.0, because LibreSSL
12222 # defines OPENSSL_VERSION_NUMBER to claim version 2.0.0, even though it
12223 # doesn't have these OpenSSL 1.1.0 functions. So check for individual
12225 for ac_func
in OPENSSL_init_ssl BIO_get_data BIO_meth_new ASN1_STRING_get0_data
12227 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12228 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12229 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12230 cat >>confdefs.h
<<_ACEOF
12231 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12237 # OpenSSL versions before 1.1.0 required setting callback functions, for
12238 # thread-safety. In 1.1.0, it's no longer required, and CRYPTO_lock()
12239 # function was removed.
12240 for ac_func
in CRYPTO_lock
12242 ac_fn_c_check_func
"$LINENO" "CRYPTO_lock" "ac_cv_func_CRYPTO_lock"
12243 if test "x$ac_cv_func_CRYPTO_lock" = xyes
; then :
12244 cat >>confdefs.h
<<_ACEOF
12245 #define HAVE_CRYPTO_LOCK 1
12253 if test "$with_pam" = yes ; then
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
12255 $as_echo_n "checking for pam_start in -lpam... " >&6; }
12256 if ${ac_cv_lib_pam_pam_start+:} false
; then :
12257 $as_echo_n "(cached) " >&6
12259 ac_check_lib_save_LIBS
=$LIBS
12261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12262 /* end confdefs.h. */
12264 /* Override any GCC internal prototype to avoid an error.
12265 Use char because int might match the return type of a GCC
12266 builtin and then its argument prototype would still apply. */
12274 return pam_start ();
12279 if ac_fn_c_try_link
"$LINENO"; then :
12280 ac_cv_lib_pam_pam_start
=yes
12282 ac_cv_lib_pam_pam_start
=no
12284 rm -f core conftest.err conftest.
$ac_objext \
12285 conftest
$ac_exeext conftest.
$ac_ext
12286 LIBS
=$ac_check_lib_save_LIBS
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
12289 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
12290 if test "x$ac_cv_lib_pam_pam_start" = xyes
; then :
12291 cat >>confdefs.h
<<_ACEOF
12292 #define HAVE_LIBPAM 1
12298 as_fn_error $?
"library 'pam' is required for PAM" "$LINENO" 5
12303 if test "$with_libxml" = yes ; then
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSaveToBuffer in -lxml2" >&5
12305 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
12306 if ${ac_cv_lib_xml2_xmlSaveToBuffer+:} false
; then :
12307 $as_echo_n "(cached) " >&6
12309 ac_check_lib_save_LIBS
=$LIBS
12310 LIBS
="-lxml2 $LIBS"
12311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12312 /* end confdefs.h. */
12314 /* Override any GCC internal prototype to avoid an error.
12315 Use char because int might match the return type of a GCC
12316 builtin and then its argument prototype would still apply. */
12320 char xmlSaveToBuffer ();
12324 return xmlSaveToBuffer ();
12329 if ac_fn_c_try_link
"$LINENO"; then :
12330 ac_cv_lib_xml2_xmlSaveToBuffer
=yes
12332 ac_cv_lib_xml2_xmlSaveToBuffer
=no
12334 rm -f core conftest.err conftest.
$ac_objext \
12335 conftest
$ac_exeext conftest.
$ac_ext
12336 LIBS
=$ac_check_lib_save_LIBS
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
12339 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
12340 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = xyes
; then :
12341 cat >>confdefs.h
<<_ACEOF
12342 #define HAVE_LIBXML2 1
12345 LIBS
="-lxml2 $LIBS"
12348 as_fn_error $?
"library 'xml2' (version >= 2.6.23) is required for XML support" "$LINENO" 5
12353 if test "$with_libxslt" = yes ; then
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xsltCleanupGlobals in -lxslt" >&5
12355 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
12356 if ${ac_cv_lib_xslt_xsltCleanupGlobals+:} false
; then :
12357 $as_echo_n "(cached) " >&6
12359 ac_check_lib_save_LIBS
=$LIBS
12360 LIBS
="-lxslt $LIBS"
12361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12362 /* end confdefs.h. */
12364 /* Override any GCC internal prototype to avoid an error.
12365 Use char because int might match the return type of a GCC
12366 builtin and then its argument prototype would still apply. */
12370 char xsltCleanupGlobals ();
12374 return xsltCleanupGlobals ();
12379 if ac_fn_c_try_link
"$LINENO"; then :
12380 ac_cv_lib_xslt_xsltCleanupGlobals
=yes
12382 ac_cv_lib_xslt_xsltCleanupGlobals
=no
12384 rm -f core conftest.err conftest.
$ac_objext \
12385 conftest
$ac_exeext conftest.
$ac_ext
12386 LIBS
=$ac_check_lib_save_LIBS
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
12389 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
12390 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = xyes
; then :
12391 cat >>confdefs.h
<<_ACEOF
12392 #define HAVE_LIBXSLT 1
12395 LIBS
="-lxslt $LIBS"
12398 as_fn_error $?
"library 'xslt' is required for XSLT support" "$LINENO" 5
12403 # Note: We can test for libldap_r only after we know PTHREAD_LIBS
12404 if test "$with_ldap" = yes ; then
12406 if test "$PORTNAME" != "win32"; then
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lldap" >&5
12408 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
12409 if ${ac_cv_lib_ldap_ldap_bind+:} false
; then :
12410 $as_echo_n "(cached) " >&6
12412 ac_check_lib_save_LIBS
=$LIBS
12413 LIBS
="-lldap $EXTRA_LDAP_LIBS $LIBS"
12414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12415 /* end confdefs.h. */
12417 /* Override any GCC internal prototype to avoid an error.
12418 Use char because int might match the return type of a GCC
12419 builtin and then its argument prototype would still apply. */
12427 return ldap_bind ();
12432 if ac_fn_c_try_link
"$LINENO"; then :
12433 ac_cv_lib_ldap_ldap_bind
=yes
12435 ac_cv_lib_ldap_ldap_bind
=no
12437 rm -f core conftest.err conftest.
$ac_objext \
12438 conftest
$ac_exeext conftest.
$ac_ext
12439 LIBS
=$ac_check_lib_save_LIBS
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_bind" >&5
12442 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
12443 if test "x$ac_cv_lib_ldap_ldap_bind" = xyes
; then :
12444 cat >>confdefs.h
<<_ACEOF
12445 #define HAVE_LIBLDAP 1
12448 LIBS
="-lldap $LIBS"
12451 as_fn_error $?
"library 'ldap' is required for LDAP" "$LINENO" 5
12454 LDAP_LIBS_BE
="-lldap $EXTRA_LDAP_LIBS"
12455 if test "$enable_thread_safety" = yes; then
12456 # on some platforms ldap_r fails to link without PTHREAD_LIBS
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_simple_bind in -lldap_r" >&5
12458 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
12459 if ${ac_cv_lib_ldap_r_ldap_simple_bind+:} false
; then :
12460 $as_echo_n "(cached) " >&6
12462 ac_check_lib_save_LIBS
=$LIBS
12463 LIBS
="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
12464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12465 /* end confdefs.h. */
12467 /* Override any GCC internal prototype to avoid an error.
12468 Use char because int might match the return type of a GCC
12469 builtin and then its argument prototype would still apply. */
12473 char ldap_simple_bind ();
12477 return ldap_simple_bind ();
12482 if ac_fn_c_try_link
"$LINENO"; then :
12483 ac_cv_lib_ldap_r_ldap_simple_bind
=yes
12485 ac_cv_lib_ldap_r_ldap_simple_bind
=no
12487 rm -f core conftest.err conftest.
$ac_objext \
12488 conftest
$ac_exeext conftest.
$ac_ext
12489 LIBS
=$ac_check_lib_save_LIBS
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
12492 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
12493 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = xyes
; then :
12494 cat >>confdefs.h
<<_ACEOF
12495 #define HAVE_LIBLDAP_R 1
12498 LIBS
="-lldap_r $LIBS"
12501 as_fn_error $?
"library 'ldap_r' is required for LDAP" "$LINENO" 5
12504 LDAP_LIBS_FE
="-lldap_r $EXTRA_LDAP_LIBS"
12506 LDAP_LIBS_FE
="-lldap $EXTRA_LDAP_LIBS"
12508 for ac_func
in ldap_initialize
12510 ac_fn_c_check_func
"$LINENO" "ldap_initialize" "ac_cv_func_ldap_initialize"
12511 if test "x$ac_cv_func_ldap_initialize" = xyes
; then :
12512 cat >>confdefs.h
<<_ACEOF
12513 #define HAVE_LDAP_INITIALIZE 1
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lwldap32" >&5
12521 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
12522 if ${ac_cv_lib_wldap32_ldap_bind+:} false
; then :
12523 $as_echo_n "(cached) " >&6
12525 ac_check_lib_save_LIBS
=$LIBS
12526 LIBS
="-lwldap32 $LIBS"
12527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12528 /* end confdefs.h. */
12530 /* Override any GCC internal prototype to avoid an error.
12531 Use char because int might match the return type of a GCC
12532 builtin and then its argument prototype would still apply. */
12540 return ldap_bind ();
12545 if ac_fn_c_try_link
"$LINENO"; then :
12546 ac_cv_lib_wldap32_ldap_bind
=yes
12548 ac_cv_lib_wldap32_ldap_bind
=no
12550 rm -f core conftest.err conftest.
$ac_objext \
12551 conftest
$ac_exeext conftest.
$ac_ext
12552 LIBS
=$ac_check_lib_save_LIBS
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wldap32_ldap_bind" >&5
12555 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
12556 if test "x$ac_cv_lib_wldap32_ldap_bind" = xyes
; then :
12557 cat >>confdefs.h
<<_ACEOF
12558 #define HAVE_LIBWLDAP32 1
12561 LIBS
="-lwldap32 $LIBS"
12564 as_fn_error $?
"library 'wldap32' is required for LDAP" "$LINENO" 5
12567 LDAP_LIBS_FE
="-lwldap32"
12568 LDAP_LIBS_BE
="-lwldap32"
12575 # for contrib/sepgsql
12576 if test "$with_selinux" = yes; then
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for security_compute_create_name in -lselinux" >&5
12578 $as_echo_n "checking for security_compute_create_name in -lselinux... " >&6; }
12579 if ${ac_cv_lib_selinux_security_compute_create_name+:} false
; then :
12580 $as_echo_n "(cached) " >&6
12582 ac_check_lib_save_LIBS
=$LIBS
12583 LIBS
="-lselinux $LIBS"
12584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12585 /* end confdefs.h. */
12587 /* Override any GCC internal prototype to avoid an error.
12588 Use char because int might match the return type of a GCC
12589 builtin and then its argument prototype would still apply. */
12593 char security_compute_create_name ();
12597 return security_compute_create_name ();
12602 if ac_fn_c_try_link
"$LINENO"; then :
12603 ac_cv_lib_selinux_security_compute_create_name
=yes
12605 ac_cv_lib_selinux_security_compute_create_name
=no
12607 rm -f core conftest.err conftest.
$ac_objext \
12608 conftest
$ac_exeext conftest.
$ac_ext
12609 LIBS
=$ac_check_lib_save_LIBS
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_security_compute_create_name" >&5
12612 $as_echo "$ac_cv_lib_selinux_security_compute_create_name" >&6; }
12613 if test "x$ac_cv_lib_selinux_security_compute_create_name" = xyes
; then :
12614 cat >>confdefs.h
<<_ACEOF
12615 #define HAVE_LIBSELINUX 1
12618 LIBS
="-lselinux $LIBS"
12621 as_fn_error $?
"library 'libselinux', version 2.1.10 or newer, is required for SELinux support" "$LINENO" 5
12626 # for contrib/uuid-ossp
12627 if test "$with_uuid" = bsd
; then
12628 # On BSD, the UUID functions are in libc
12629 ac_fn_c_check_func
"$LINENO" "uuid_to_string" "ac_cv_func_uuid_to_string"
12630 if test "x$ac_cv_func_uuid_to_string" = xyes
; then :
12633 as_fn_error $?
"BSD UUID functions are not present" "$LINENO" 5
12636 elif test "$with_uuid" = e2fs
; then
12637 # On macOS, the UUID functions are in libc
12638 ac_fn_c_check_func
"$LINENO" "uuid_generate" "ac_cv_func_uuid_generate"
12639 if test "x$ac_cv_func_uuid_generate" = xyes
; then :
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
12643 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
12644 if ${ac_cv_lib_uuid_uuid_generate+:} false
; then :
12645 $as_echo_n "(cached) " >&6
12647 ac_check_lib_save_LIBS
=$LIBS
12648 LIBS
="-luuid $LIBS"
12649 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12650 /* end confdefs.h. */
12652 /* Override any GCC internal prototype to avoid an error.
12653 Use char because int might match the return type of a GCC
12654 builtin and then its argument prototype would still apply. */
12658 char uuid_generate ();
12662 return uuid_generate ();
12667 if ac_fn_c_try_link
"$LINENO"; then :
12668 ac_cv_lib_uuid_uuid_generate
=yes
12670 ac_cv_lib_uuid_uuid_generate
=no
12672 rm -f core conftest.err conftest.
$ac_objext \
12673 conftest
$ac_exeext conftest.
$ac_ext
12674 LIBS
=$ac_check_lib_save_LIBS
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
12677 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
12678 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
; then :
12681 as_fn_error $?
"library 'uuid' is required for E2FS UUID" "$LINENO" 5
12686 elif test "$with_uuid" = ossp
; then
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_export in -lossp-uuid" >&5
12688 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
12689 if ${ac_cv_lib_ossp_uuid_uuid_export+:} false
; then :
12690 $as_echo_n "(cached) " >&6
12692 ac_check_lib_save_LIBS
=$LIBS
12693 LIBS
="-lossp-uuid $LIBS"
12694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12695 /* end confdefs.h. */
12697 /* Override any GCC internal prototype to avoid an error.
12698 Use char because int might match the return type of a GCC
12699 builtin and then its argument prototype would still apply. */
12703 char uuid_export ();
12707 return uuid_export ();
12712 if ac_fn_c_try_link
"$LINENO"; then :
12713 ac_cv_lib_ossp_uuid_uuid_export
=yes
12715 ac_cv_lib_ossp_uuid_uuid_export
=no
12717 rm -f core conftest.err conftest.
$ac_objext \
12718 conftest
$ac_exeext conftest.
$ac_ext
12719 LIBS
=$ac_check_lib_save_LIBS
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
12722 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
12723 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = xyes
; then :
12724 UUID_LIBS
="-lossp-uuid"
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_export in -luuid" >&5
12727 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
12728 if ${ac_cv_lib_uuid_uuid_export+:} false
; then :
12729 $as_echo_n "(cached) " >&6
12731 ac_check_lib_save_LIBS
=$LIBS
12732 LIBS
="-luuid $LIBS"
12733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12734 /* end confdefs.h. */
12736 /* Override any GCC internal prototype to avoid an error.
12737 Use char because int might match the return type of a GCC
12738 builtin and then its argument prototype would still apply. */
12742 char uuid_export ();
12746 return uuid_export ();
12751 if ac_fn_c_try_link
"$LINENO"; then :
12752 ac_cv_lib_uuid_uuid_export
=yes
12754 ac_cv_lib_uuid_uuid_export
=no
12756 rm -f core conftest.err conftest.
$ac_objext \
12757 conftest
$ac_exeext conftest.
$ac_ext
12758 LIBS
=$ac_check_lib_save_LIBS
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_export" >&5
12761 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
12762 if test "x$ac_cv_lib_uuid_uuid_export" = xyes
; then :
12765 as_fn_error $?
"library 'ossp-uuid' or 'uuid' is required for OSSP UUID" "$LINENO" 5
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
12779 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
12780 if ${ac_cv_header_stdbool_h+:} false
; then :
12781 $as_echo_n "(cached) " >&6
12783 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12784 /* end confdefs.h. */
12786 #include <stdbool.h>
12788 "error: bool is not defined"
12791 "error: false is not defined"
12794 "error: false is not 0"
12797 "error: true is not defined"
12800 "error: true is not 1"
12802 #ifndef __bool_true_false_are_defined
12803 "error: __bool_true_false_are_defined is not defined"
12806 struct s { _Bool s: 1; _Bool t; } s;
12808 char a[true == 1 ? 1 : -1];
12809 char b[false == 0 ? 1 : -1];
12810 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
12811 char d[(bool) 0.5 == true ? 1 : -1];
12812 /* See body of main program for 'e'. */
12813 char f[(_Bool) 0.0 == false ? 1 : -1];
12815 char h[sizeof (_Bool)];
12816 char i[sizeof s.t];
12817 enum { j = false, k = true, l = false * true, m = true * 256 };
12818 /* The following fails for
12819 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
12821 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
12822 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
12823 /* Catch a bug in an HP-UX C compiler. See
12824 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
12825 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
12837 /* Refer to every declared value, to avoid compiler optimizations. */
12838 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
12839 + !m + !n + !o + !p + !q + !pq);
12845 if ac_fn_c_try_compile
"$LINENO"; then :
12846 ac_cv_header_stdbool_h
=yes
12848 ac_cv_header_stdbool_h
=no
12850 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
12853 $as_echo "$ac_cv_header_stdbool_h" >&6; }
12854 ac_fn_c_check_type
"$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
12855 if test "x$ac_cv_type__Bool" = xyes
; then :
12857 cat >>confdefs.h
<<_ACEOF
12858 #define HAVE__BOOL 1
12865 if test $ac_cv_header_stdbool_h = yes; then
12867 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
12872 for ac_header
in atomic.h copyfile.h execinfo.h getopt.h ifaddrs.h langinfo.h mbarrier.h poll.h sys
/epoll.h sys
/event.h sys
/ipc.h sys
/prctl.h sys
/procctl.h sys
/pstat.h sys
/resource.h sys
/select.h sys
/sem.h sys
/shm.h sys
/sockio.h sys
/tas.h sys
/un.h termios.h ucred.h wctype.h
12874 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12875 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12876 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12877 cat >>confdefs.h
<<_ACEOF
12878 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12886 # On BSD, test for net/if.h will fail unless sys/socket.h
12887 # is included first.
12888 for ac_header
in net
/if.h
12890 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
12891 #include <sys/socket.h>
12894 if test "x$ac_cv_header_net_if_h" = xyes
; then :
12895 cat >>confdefs.h
<<_ACEOF
12896 #define HAVE_NET_IF_H 1
12904 # On OpenBSD, test for sys/ucred.h will fail unless sys/param.h
12905 # is included first.
12906 for ac_header
in sys
/ucred.h
12908 ac_fn_c_check_header_compile
"$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default
12909 #include <sys/param.h>
12912 if test "x$ac_cv_header_sys_ucred_h" = xyes
; then :
12913 cat >>confdefs.h
<<_ACEOF
12914 #define HAVE_SYS_UCRED_H 1
12922 # At least on IRIX, test for netinet/tcp.h will fail unless
12923 # netinet/in.h is included first.
12924 for ac_header
in netinet
/tcp.h
12926 ac_fn_c_check_header_compile
"$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default
12927 #include <netinet/in.h>
12930 if test "x$ac_cv_header_netinet_tcp_h" = xyes
; then :
12931 cat >>confdefs.h
<<_ACEOF
12932 #define HAVE_NETINET_TCP_H 1
12940 if expr x
"$pgac_cv_check_readline" : 'x-lreadline' >/dev
/null
; then
12941 for ac_header
in readline
/readline.h
12943 ac_fn_c_check_header_mongrel
"$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
12944 if test "x$ac_cv_header_readline_readline_h" = xyes
; then :
12945 cat >>confdefs.h
<<_ACEOF
12946 #define HAVE_READLINE_READLINE_H 1
12950 for ac_header
in readline.h
12952 ac_fn_c_check_header_mongrel
"$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
12953 if test "x$ac_cv_header_readline_h" = xyes
; then :
12954 cat >>confdefs.h
<<_ACEOF
12955 #define HAVE_READLINE_H 1
12959 as_fn_error $?
"readline header not found
12960 If you have readline already installed, see config.log for details on the
12961 failure. It is possible the compiler isn't looking in the proper directory.
12962 Use --without-readline to disable readline support." "$LINENO" 5
12971 for ac_header
in readline
/history.h
12973 ac_fn_c_check_header_mongrel
"$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
12974 if test "x$ac_cv_header_readline_history_h" = xyes
; then :
12975 cat >>confdefs.h
<<_ACEOF
12976 #define HAVE_READLINE_HISTORY_H 1
12980 for ac_header
in history.h
12982 ac_fn_c_check_header_mongrel
"$LINENO" "history.h" "ac_cv_header_history_h" "$ac_includes_default"
12983 if test "x$ac_cv_header_history_h" = xyes
; then :
12984 cat >>confdefs.h
<<_ACEOF
12985 #define HAVE_HISTORY_H 1
12989 as_fn_error $?
"history header not found
12990 If you have readline already installed, see config.log for details on the
12991 failure. It is possible the compiler isn't looking in the proper directory.
12992 Use --without-readline to disable readline support." "$LINENO" 5
13003 if expr x
"$pgac_cv_check_readline" : 'x-ledit' >/dev
/null
; then
13004 # Some installations of libedit usurp /usr/include/readline/, which seems
13005 # bad practice, since in combined installations readline will have its headers
13006 # there. We might have to resort to AC_EGREP checks to make sure we found
13007 # the proper header...
13008 for ac_header
in editline
/readline.h
13010 ac_fn_c_check_header_mongrel
"$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
13011 if test "x$ac_cv_header_editline_readline_h" = xyes
; then :
13012 cat >>confdefs.h
<<_ACEOF
13013 #define HAVE_EDITLINE_READLINE_H 1
13017 for ac_header
in readline.h
13019 ac_fn_c_check_header_mongrel
"$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
13020 if test "x$ac_cv_header_readline_h" = xyes
; then :
13021 cat >>confdefs.h
<<_ACEOF
13022 #define HAVE_READLINE_H 1
13026 for ac_header
in readline
/readline.h
13028 ac_fn_c_check_header_mongrel
"$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
13029 if test "x$ac_cv_header_readline_readline_h" = xyes
; then :
13030 cat >>confdefs.h
<<_ACEOF
13031 #define HAVE_READLINE_READLINE_H 1
13035 as_fn_error $?
"readline header not found
13036 If you have libedit already installed, see config.log for details on the
13037 failure. It is possible the compiler isn't looking in the proper directory.
13038 Use --without-readline to disable libedit support." "$LINENO" 5
13051 # Note: in a libedit installation, history.h is sometimes a dummy, and may
13052 # not be there at all. Hence, don't complain if not found. We must check
13053 # though, since in yet other versions it is an independent header.
13054 for ac_header
in editline
/history.h
13056 ac_fn_c_check_header_mongrel
"$LINENO" "editline/history.h" "ac_cv_header_editline_history_h" "$ac_includes_default"
13057 if test "x$ac_cv_header_editline_history_h" = xyes
; then :
13058 cat >>confdefs.h
<<_ACEOF
13059 #define HAVE_EDITLINE_HISTORY_H 1
13063 for ac_header
in history.h
13065 ac_fn_c_check_header_mongrel
"$LINENO" "history.h" "ac_cv_header_history_h" "$ac_includes_default"
13066 if test "x$ac_cv_header_history_h" = xyes
; then :
13067 cat >>confdefs.h
<<_ACEOF
13068 #define HAVE_HISTORY_H 1
13072 for ac_header
in readline
/history.h
13074 ac_fn_c_check_header_mongrel
"$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
13075 if test "x$ac_cv_header_readline_history_h" = xyes
; then :
13076 cat >>confdefs.h
<<_ACEOF
13077 #define HAVE_READLINE_HISTORY_H 1
13094 if test "$with_zlib" = yes; then
13095 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13096 if test "x$ac_cv_header_zlib_h" = xyes
; then :
13099 as_fn_error $?
"zlib header not found
13100 If you have zlib already installed, see config.log for details on the
13101 failure. It is possible the compiler isn't looking in the proper directory.
13102 Use --without-zlib to disable zlib support." "$LINENO" 5
13108 if test "$with_gssapi" = yes ; then
13109 for ac_header
in gssapi
/gssapi.h
13111 ac_fn_c_check_header_mongrel
"$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
13112 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes
; then :
13113 cat >>confdefs.h
<<_ACEOF
13114 #define HAVE_GSSAPI_GSSAPI_H 1
13118 for ac_header
in gssapi.h
13120 ac_fn_c_check_header_mongrel
"$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
13121 if test "x$ac_cv_header_gssapi_h" = xyes
; then :
13122 cat >>confdefs.h
<<_ACEOF
13123 #define HAVE_GSSAPI_H 1
13127 as_fn_error $?
"gssapi.h header file is required for GSSAPI" "$LINENO" 5
13138 if test "$with_openssl" = yes ; then
13139 ac_fn_c_check_header_mongrel
"$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
13140 if test "x$ac_cv_header_openssl_ssl_h" = xyes
; then :
13143 as_fn_error $?
"header file <openssl/ssl.h> is required for OpenSSL" "$LINENO" 5
13147 ac_fn_c_check_header_mongrel
"$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default"
13148 if test "x$ac_cv_header_openssl_err_h" = xyes
; then :
13151 as_fn_error $?
"header file <openssl/err.h> is required for OpenSSL" "$LINENO" 5
13157 if test "$with_pam" = yes ; then
13158 for ac_header
in security
/pam_appl.h
13160 ac_fn_c_check_header_mongrel
"$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
13161 if test "x$ac_cv_header_security_pam_appl_h" = xyes
; then :
13162 cat >>confdefs.h
<<_ACEOF
13163 #define HAVE_SECURITY_PAM_APPL_H 1
13167 for ac_header
in pam
/pam_appl.h
13169 ac_fn_c_check_header_mongrel
"$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
13170 if test "x$ac_cv_header_pam_pam_appl_h" = xyes
; then :
13171 cat >>confdefs.h
<<_ACEOF
13172 #define HAVE_PAM_PAM_APPL_H 1
13176 as_fn_error $?
"header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." "$LINENO" 5
13187 if test "$with_bsd_auth" = yes ; then
13188 ac_fn_c_check_header_mongrel
"$LINENO" "bsd_auth.h" "ac_cv_header_bsd_auth_h" "$ac_includes_default"
13189 if test "x$ac_cv_header_bsd_auth_h" = xyes
; then :
13192 as_fn_error $?
"header file <bsd_auth.h> is required for BSD Authentication support" "$LINENO" 5
13198 if test "$with_systemd" = yes ; then
13199 ac_fn_c_check_header_mongrel
"$LINENO" "systemd/sd-daemon.h" "ac_cv_header_systemd_sd_daemon_h" "$ac_includes_default"
13200 if test "x$ac_cv_header_systemd_sd_daemon_h" = xyes
; then :
13203 as_fn_error $?
"header file <systemd/sd-daemon.h> is required for systemd support" "$LINENO" 5
13209 if test "$with_libxml" = yes ; then
13210 ac_fn_c_check_header_mongrel
"$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
13211 if test "x$ac_cv_header_libxml_parser_h" = xyes
; then :
13214 as_fn_error $?
"header file <libxml/parser.h> is required for XML support" "$LINENO" 5
13220 if test "$with_libxslt" = yes ; then
13221 ac_fn_c_check_header_mongrel
"$LINENO" "libxslt/xslt.h" "ac_cv_header_libxslt_xslt_h" "$ac_includes_default"
13222 if test "x$ac_cv_header_libxslt_xslt_h" = xyes
; then :
13225 as_fn_error $?
"header file <libxslt/xslt.h> is required for XSLT support" "$LINENO" 5
13231 if test "$with_ldap" = yes ; then
13232 if test "$PORTNAME" != "win32"; then
13233 for ac_header
in ldap.h
13235 ac_fn_c_check_header_mongrel
"$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
13236 if test "x$ac_cv_header_ldap_h" = xyes
; then :
13237 cat >>confdefs.h
<<_ACEOF
13238 #define HAVE_LDAP_H 1
13242 as_fn_error $?
"header file <ldap.h> is required for LDAP" "$LINENO" 5
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible LDAP implementation" >&5
13248 $as_echo_n "checking for compatible LDAP implementation... " >&6; }
13249 if ${pgac_cv_ldap_safe+:} false
; then :
13250 $as_echo_n "(cached) " >&6
13252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13253 /* end confdefs.h. */
13255 #if !defined(LDAP_VENDOR_VERSION) || \
13256 (defined(LDAP_API_FEATURE_X_OPENLDAP) && \
13257 LDAP_VENDOR_VERSION >= 20424 && LDAP_VENDOR_VERSION <= 20431)
13268 if ac_fn_c_try_compile
"$LINENO"; then :
13269 pgac_cv_ldap_safe
=yes
13271 pgac_cv_ldap_safe
=no
13273 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_ldap_safe" >&5
13276 $as_echo "$pgac_cv_ldap_safe" >&6; }
13278 if test "$pgac_cv_ldap_safe" != yes; then
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
13280 *** With OpenLDAP versions 2.4.24 through 2.4.31, inclusive, each backend
13281 *** process that loads libpq (via WAL receiver, dblink, or postgres_fdw) and
13282 *** also uses LDAP will crash on exit." >&5
13283 $as_echo "$as_me: WARNING:
13284 *** With OpenLDAP versions 2.4.24 through 2.4.31, inclusive, each backend
13285 *** process that loads libpq (via WAL receiver, dblink, or postgres_fdw) and
13286 *** also uses LDAP will crash on exit." >&2;}
13289 for ac_header
in winldap.h
13291 ac_fn_c_check_header_compile
"$LINENO" "winldap.h" "ac_cv_header_winldap_h" "$ac_includes_default
13292 #include <windows.h>
13295 if test "x$ac_cv_header_winldap_h" = xyes
; then :
13296 cat >>confdefs.h
<<_ACEOF
13297 #define HAVE_WINLDAP_H 1
13301 as_fn_error $?
"header file <winldap.h> is required for LDAP" "$LINENO" 5
13309 if test "$with_bonjour" = yes ; then
13310 ac_fn_c_check_header_mongrel
"$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
13311 if test "x$ac_cv_header_dns_sd_h" = xyes
; then :
13314 as_fn_error $?
"header file <dns_sd.h> is required for Bonjour" "$LINENO" 5
13320 # for contrib/uuid-ossp
13321 if test "$with_uuid" = bsd
; then
13322 for ac_header
in uuid.h
13324 ac_fn_c_check_header_mongrel
"$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
13325 if test "x$ac_cv_header_uuid_h" = xyes
; then :
13326 cat >>confdefs.h
<<_ACEOF
13327 #define HAVE_UUID_H 1
13329 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13330 /* end confdefs.h. */
13334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13335 $EGREP "uuid_to_string" >/dev
/null
2>&1; then :
13338 as_fn_error $?
"header file <uuid.h> does not match BSD UUID library" "$LINENO" 5
13343 as_fn_error $?
"header file <uuid.h> is required for BSD UUID" "$LINENO" 5
13348 elif test "$with_uuid" = e2fs
; then
13349 for ac_header
in uuid
/uuid.h
13351 ac_fn_c_check_header_mongrel
"$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
13352 if test "x$ac_cv_header_uuid_uuid_h" = xyes
; then :
13353 cat >>confdefs.h
<<_ACEOF
13354 #define HAVE_UUID_UUID_H 1
13356 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13357 /* end confdefs.h. */
13358 #include <uuid/uuid.h>
13361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13362 $EGREP "uuid_generate" >/dev
/null
2>&1; then :
13365 as_fn_error $?
"header file <uuid/uuid.h> does not match E2FS UUID library" "$LINENO" 5
13370 for ac_header
in uuid.h
13372 ac_fn_c_check_header_mongrel
"$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
13373 if test "x$ac_cv_header_uuid_h" = xyes
; then :
13374 cat >>confdefs.h
<<_ACEOF
13375 #define HAVE_UUID_H 1
13377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13378 /* end confdefs.h. */
13382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13383 $EGREP "uuid_generate" >/dev
/null
2>&1; then :
13386 as_fn_error $?
"header file <uuid.h> does not match E2FS UUID library" "$LINENO" 5
13391 as_fn_error $?
"header file <uuid/uuid.h> or <uuid.h> is required for E2FS UUID" "$LINENO" 5
13400 elif test "$with_uuid" = ossp
; then
13401 for ac_header
in ossp
/uuid.h
13403 ac_fn_c_check_header_mongrel
"$LINENO" "ossp/uuid.h" "ac_cv_header_ossp_uuid_h" "$ac_includes_default"
13404 if test "x$ac_cv_header_ossp_uuid_h" = xyes
; then :
13405 cat >>confdefs.h
<<_ACEOF
13406 #define HAVE_OSSP_UUID_H 1
13408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13409 /* end confdefs.h. */
13410 #include <ossp/uuid.h>
13413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13414 $EGREP "uuid_export" >/dev
/null
2>&1; then :
13417 as_fn_error $?
"header file <ossp/uuid.h> does not match OSSP UUID library" "$LINENO" 5
13422 for ac_header
in uuid.h
13424 ac_fn_c_check_header_mongrel
"$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
13425 if test "x$ac_cv_header_uuid_h" = xyes
; then :
13426 cat >>confdefs.h
<<_ACEOF
13427 #define HAVE_UUID_H 1
13429 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13430 /* end confdefs.h. */
13434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13435 $EGREP "uuid_export" >/dev
/null
2>&1; then :
13438 as_fn_error $?
"header file <uuid.h> does not match OSSP UUID library" "$LINENO" 5
13443 as_fn_error $?
"header file <ossp/uuid.h> or <uuid.h> is required for OSSP UUID" "$LINENO" 5
13454 if test "$PORTNAME" = "win32" ; then
13455 for ac_header
in crtdefs.h
13457 ac_fn_c_check_header_mongrel
"$LINENO" "crtdefs.h" "ac_cv_header_crtdefs_h" "$ac_includes_default"
13458 if test "x$ac_cv_header_crtdefs_h" = xyes
; then :
13459 cat >>confdefs.h
<<_ACEOF
13460 #define HAVE_CRTDEFS_H 1
13470 ## Types, structures, compiler characteristics
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13474 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13475 if ${ac_cv_c_bigendian+:} false
; then :
13476 $as_echo_n "(cached) " >&6
13478 ac_cv_c_bigendian
=unknown
13479 # See if we're dealing with a universal compiler.
13480 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13481 /* end confdefs.h. */
13482 #ifndef __APPLE_CC__
13483 not a universal capable compiler
13488 if ac_fn_c_try_compile
"$LINENO"; then :
13490 # Check for potential -arch flags. It is not universal unless
13491 # there are at least two -arch flags with different values.
13494 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13495 if test -n "$ac_prev"; then
13497 i?
86 | x86_64 | ppc | ppc64
)
13498 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
13501 ac_cv_c_bigendian
=universal
13507 elif test "x$ac_word" = "x-arch"; then
13512 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13513 if test $ac_cv_c_bigendian = unknown
; then
13514 # See if sys/param.h defines the BYTE_ORDER macro.
13515 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13516 /* end confdefs.h. */
13517 #include <sys/types.h>
13518 #include <sys/param.h>
13523 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13524 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13526 bogus endian macros
13533 if ac_fn_c_try_compile
"$LINENO"; then :
13534 # It does; now see whether it defined to BIG_ENDIAN or not.
13535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13536 /* end confdefs.h. */
13537 #include <sys/types.h>
13538 #include <sys/param.h>
13543 #if BYTE_ORDER != BIG_ENDIAN
13551 if ac_fn_c_try_compile
"$LINENO"; then :
13552 ac_cv_c_bigendian
=yes
13554 ac_cv_c_bigendian
=no
13556 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13558 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13560 if test $ac_cv_c_bigendian = unknown
; then
13561 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13562 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13563 /* end confdefs.h. */
13564 #include <limits.h>
13569 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13570 bogus endian macros
13577 if ac_fn_c_try_compile
"$LINENO"; then :
13578 # It does; now see whether it defined to _BIG_ENDIAN or not.
13579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13580 /* end confdefs.h. */
13581 #include <limits.h>
13586 #ifndef _BIG_ENDIAN
13594 if ac_fn_c_try_compile
"$LINENO"; then :
13595 ac_cv_c_bigendian
=yes
13597 ac_cv_c_bigendian
=no
13599 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13601 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13603 if test $ac_cv_c_bigendian = unknown
; then
13604 # Compile a test program.
13605 if test "$cross_compiling" = yes; then :
13606 # Try to guess by grepping values from an object file.
13607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13608 /* end confdefs.h. */
13609 short int ascii_mm[] =
13610 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13611 short int ascii_ii[] =
13612 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13613 int use_ascii (int i) {
13614 return ascii_mm[i] + ascii_ii[i];
13616 short int ebcdic_ii[] =
13617 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13618 short int ebcdic_mm[] =
13619 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13620 int use_ebcdic (int i) {
13621 return ebcdic_mm[i] + ebcdic_ii[i];
13628 return use_ascii (foo) == use_ebcdic (foo);
13633 if ac_fn_c_try_compile
"$LINENO"; then :
13634 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
13635 ac_cv_c_bigendian
=yes
13637 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
13638 if test "$ac_cv_c_bigendian" = unknown
; then
13639 ac_cv_c_bigendian
=no
13641 # finding both strings is unlikely to happen, but who knows?
13642 ac_cv_c_bigendian
=unknown
13646 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13648 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13649 /* end confdefs.h. */
13650 $ac_includes_default
13655 /* Are we little or big endian? From Harbison&Steele. */
13659 char c[sizeof (long int)];
13662 return u.c[sizeof (long int) - 1] == 1;
13668 if ac_fn_c_try_run
"$LINENO"; then :
13669 ac_cv_c_bigendian
=no
13671 ac_cv_c_bigendian
=yes
13673 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13674 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13680 $as_echo "$ac_cv_c_bigendian" >&6; }
13681 case $ac_cv_c_bigendian in #(
13683 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13689 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13693 as_fn_error $?
"unknown endianness
13694 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13698 $as_echo_n "checking for inline... " >&6; }
13699 if ${ac_cv_c_inline+:} false
; then :
13700 $as_echo_n "(cached) " >&6
13703 for ac_kw
in inline __inline__ __inline
; do
13704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13705 /* end confdefs.h. */
13706 #ifndef __cplusplus
13708 static $ac_kw foo_t static_foo () {return 0; }
13709 $ac_kw foo_t foo () {return 0; }
13713 if ac_fn_c_try_compile
"$LINENO"; then :
13714 ac_cv_c_inline
=$ac_kw
13716 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13717 test "$ac_cv_c_inline" != no
&& break
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13722 $as_echo "$ac_cv_c_inline" >&6; }
13724 case $ac_cv_c_inline in
13727 case $ac_cv_c_inline in
13729 *) ac_val
=$ac_cv_c_inline;;
13731 cat >>confdefs.h
<<_ACEOF
13732 #ifndef __cplusplus
13733 #define inline $ac_val
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf format archetype" >&5
13740 $as_echo_n "checking for printf format archetype... " >&6; }
13741 if ${pgac_cv_printf_archetype+:} false
; then :
13742 $as_echo_n "(cached) " >&6
13744 pgac_cv_printf_archetype
=gnu_printf
13745 ac_save_c_werror_flag
=$ac_c_werror_flag
13746 ac_c_werror_flag
=yes
13747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13748 /* end confdefs.h. */
13749 extern void pgac_write(int ignore, const char *fmt,...)
13750 __attribute__((format($pgac_cv_printf_archetype, 2, 3)));
13754 pgac_write(0, "error %s: %m", "foo");
13759 if ac_fn_c_try_compile
"$LINENO"; then :
13760 ac_archetype_ok
=yes
13764 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13765 ac_c_werror_flag
=$ac_save_c_werror_flag
13767 if [ "$ac_archetype_ok" = no
]; then
13768 pgac_cv_printf_archetype
=__syslog__
13769 ac_save_c_werror_flag
=$ac_c_werror_flag
13770 ac_c_werror_flag
=yes
13771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13772 /* end confdefs.h. */
13773 extern void pgac_write(int ignore, const char *fmt,...)
13774 __attribute__((format($pgac_cv_printf_archetype, 2, 3)));
13778 pgac_write(0, "error %s: %m", "foo");
13783 if ac_fn_c_try_compile
"$LINENO"; then :
13784 ac_archetype_ok
=yes
13788 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13789 ac_c_werror_flag
=$ac_save_c_werror_flag
13791 if [ "$ac_archetype_ok" = no
]; then
13792 pgac_cv_printf_archetype
=printf
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_printf_archetype" >&5
13797 $as_echo "$pgac_cv_printf_archetype" >&6; }
13799 cat >>confdefs.h
<<_ACEOF
13800 #define PG_PRINTF_ATTRIBUTE $pgac_cv_printf_archetype
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __func__" >&5
13805 $as_echo_n "checking for __func__... " >&6; }
13806 if ${pgac_cv_funcname_func_support+:} false
; then :
13807 $as_echo_n "(cached) " >&6
13809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13810 /* end confdefs.h. */
13815 printf("%s\n", __func__);
13820 if ac_fn_c_try_compile
"$LINENO"; then :
13821 pgac_cv_funcname_func_support
=yes
13823 pgac_cv_funcname_func_support
=no
13825 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_funcname_func_support" >&5
13828 $as_echo "$pgac_cv_funcname_func_support" >&6; }
13829 if test x
"$pgac_cv_funcname_func_support" = xyes
; then
13831 $as_echo "#define HAVE_FUNCNAME__FUNC 1" >>confdefs.h
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __FUNCTION__" >&5
13835 $as_echo_n "checking for __FUNCTION__... " >&6; }
13836 if ${pgac_cv_funcname_function_support+:} false
; then :
13837 $as_echo_n "(cached) " >&6
13839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13840 /* end confdefs.h. */
13845 printf("%s\n", __FUNCTION__);
13850 if ac_fn_c_try_compile
"$LINENO"; then :
13851 pgac_cv_funcname_function_support
=yes
13853 pgac_cv_funcname_function_support
=no
13855 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_funcname_function_support" >&5
13858 $as_echo "$pgac_cv_funcname_function_support" >&6; }
13859 if test x
"$pgac_cv_funcname_function_support" = xyes
; then
13861 $as_echo "#define HAVE_FUNCNAME__FUNCTION 1" >>confdefs.h
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Static_assert" >&5
13866 $as_echo_n "checking for _Static_assert... " >&6; }
13867 if ${pgac_cv__static_assert+:} false
; then :
13868 $as_echo_n "(cached) " >&6
13870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13871 /* end confdefs.h. */
13876 ({ _Static_assert(1, "foo"); })
13881 if ac_fn_c_try_link
"$LINENO"; then :
13882 pgac_cv__static_assert
=yes
13884 pgac_cv__static_assert
=no
13886 rm -f core conftest.err conftest.
$ac_objext \
13887 conftest
$ac_exeext conftest.
$ac_ext
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__static_assert" >&5
13890 $as_echo "$pgac_cv__static_assert" >&6; }
13891 if test x
"$pgac_cv__static_assert" = xyes
; then
13893 $as_echo "#define HAVE__STATIC_ASSERT 1" >>confdefs.h
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
13897 $as_echo_n "checking for typeof... " >&6; }
13898 if ${pgac_cv_c_typeof+:} false
; then :
13899 $as_echo_n "(cached) " >&6
13901 pgac_cv_c_typeof
=no
13902 for pgac_kw
in typeof __typeof__ decltype
; do
13903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13904 /* end confdefs.h. */
13917 if ac_fn_c_try_compile
"$LINENO"; then :
13918 pgac_cv_c_typeof
=$pgac_kw
13920 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13921 test "$pgac_cv_c_typeof" != no
&& break
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_c_typeof" >&5
13925 $as_echo "$pgac_cv_c_typeof" >&6; }
13926 if test "$pgac_cv_c_typeof" != no
; then
13928 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
13930 if test "$pgac_cv_c_typeof" != typeof
; then
13932 cat >>confdefs.h
<<_ACEOF
13933 #define typeof $pgac_cv_c_typeof
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_types_compatible_p" >&5
13939 $as_echo_n "checking for __builtin_types_compatible_p... " >&6; }
13940 if ${pgac_cv__types_compatible+:} false
; then :
13941 $as_echo_n "(cached) " >&6
13943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13944 /* end confdefs.h. */
13949 int x; static int y[__builtin_types_compatible_p(__typeof__(x), int)];
13954 if ac_fn_c_try_compile
"$LINENO"; then :
13955 pgac_cv__types_compatible
=yes
13957 pgac_cv__types_compatible
=no
13959 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__types_compatible" >&5
13962 $as_echo "$pgac_cv__types_compatible" >&6; }
13963 if test x
"$pgac_cv__types_compatible" = xyes
; then
13965 $as_echo "#define HAVE__BUILTIN_TYPES_COMPATIBLE_P 1" >>confdefs.h
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_constant_p" >&5
13969 $as_echo_n "checking for __builtin_constant_p... " >&6; }
13970 if ${pgac_cv__builtin_constant_p+:} false
; then :
13971 $as_echo_n "(cached) " >&6
13973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13974 /* end confdefs.h. */
13976 static int y[__builtin_constant_p(x) ? x : 1];
13977 static int z[__builtin_constant_p("string literal") ? 1 : x];
13981 if ac_fn_c_try_compile
"$LINENO"; then :
13982 pgac_cv__builtin_constant_p
=yes
13984 pgac_cv__builtin_constant_p
=no
13986 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_constant_p" >&5
13989 $as_echo "$pgac_cv__builtin_constant_p" >&6; }
13990 if test x
"$pgac_cv__builtin_constant_p" = xyes
; then
13992 $as_echo "#define HAVE__BUILTIN_CONSTANT_P 1" >>confdefs.h
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unreachable" >&5
13996 $as_echo_n "checking for __builtin_unreachable... " >&6; }
13997 if ${pgac_cv__builtin_unreachable+:} false
; then :
13998 $as_echo_n "(cached) " >&6
14000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14001 /* end confdefs.h. */
14006 __builtin_unreachable();
14011 if ac_fn_c_try_link
"$LINENO"; then :
14012 pgac_cv__builtin_unreachable
=yes
14014 pgac_cv__builtin_unreachable
=no
14016 rm -f core conftest.err conftest.
$ac_objext \
14017 conftest
$ac_exeext conftest.
$ac_ext
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_unreachable" >&5
14020 $as_echo "$pgac_cv__builtin_unreachable" >&6; }
14021 if test x
"$pgac_cv__builtin_unreachable" = xyes
; then
14023 $as_echo "#define HAVE__BUILTIN_UNREACHABLE 1" >>confdefs.h
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for computed goto support" >&5
14027 $as_echo_n "checking for computed goto support... " >&6; }
14028 if ${pgac_cv_computed_goto+:} false
; then :
14029 $as_echo_n "(cached) " >&6
14031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14032 /* end confdefs.h. */
14037 void *labeladdrs[] = {&&my_label};
14038 goto *labeladdrs[0];
14046 if ac_fn_c_try_compile
"$LINENO"; then :
14047 pgac_cv_computed_goto
=yes
14049 pgac_cv_computed_goto
=no
14051 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_computed_goto" >&5
14054 $as_echo "$pgac_cv_computed_goto" >&6; }
14055 if test x
"$pgac_cv_computed_goto" = xyes
; then
14057 $as_echo "#define HAVE_COMPUTED_GOTO 1" >>confdefs.h
14060 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
14064 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
; then :
14066 cat >>confdefs.h
<<_ACEOF
14067 #define HAVE_STRUCT_TM_TM_ZONE 1
14074 ac_fn_c_check_type
"$LINENO" "union semun" "ac_cv_type_union_semun" "#include <sys/types.h>
14075 #ifdef HAVE_SYS_IPC_H
14076 #include <sys/ipc.h>
14078 #ifdef HAVE_SYS_SEM_H
14079 #include <sys/sem.h>
14082 if test "x$ac_cv_type_union_semun" = xyes
; then :
14084 cat >>confdefs.h
<<_ACEOF
14085 #define HAVE_UNION_SEMUN 1
14091 ac_fn_c_check_type
"$LINENO" "struct sockaddr_un" "ac_cv_type_struct_sockaddr_un" "#include <sys/types.h>
14092 #ifdef HAVE_SYS_UN_H
14093 #include <sys/un.h>
14097 if test "x$ac_cv_type_struct_sockaddr_un" = xyes
; then :
14099 cat >>confdefs.h
<<_ACEOF
14100 #define HAVE_STRUCT_SOCKADDR_UN 1
14106 ac_fn_c_check_type
"$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
14107 #include <sys/socket.h>
14110 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
; then :
14112 cat >>confdefs.h
<<_ACEOF
14113 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
14119 ac_fn_c_check_member
"$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
14120 #include <sys/socket.h>
14123 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes
; then :
14125 cat >>confdefs.h
<<_ACEOF
14126 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
14131 ac_fn_c_check_member
"$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "#include <sys/types.h>
14132 #include <sys/socket.h>
14135 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes
; then :
14137 cat >>confdefs.h
<<_ACEOF
14138 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
14143 ac_fn_c_check_member
"$LINENO" "struct sockaddr_storage" "ss_len" "ac_cv_member_struct_sockaddr_storage_ss_len" "#include <sys/types.h>
14144 #include <sys/socket.h>
14147 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = xyes
; then :
14149 cat >>confdefs.h
<<_ACEOF
14150 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
14155 ac_fn_c_check_member
"$LINENO" "struct sockaddr_storage" "__ss_len" "ac_cv_member_struct_sockaddr_storage___ss_len" "#include <sys/types.h>
14156 #include <sys/socket.h>
14159 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = xyes
; then :
14161 cat >>confdefs.h
<<_ACEOF
14162 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
14167 ac_fn_c_check_member
"$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
14168 #include <sys/socket.h>
14171 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes
; then :
14173 cat >>confdefs.h
<<_ACEOF
14174 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
14180 ac_fn_c_check_type
"$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
14181 #include <sys/socket.h>
14185 if test "x$ac_cv_type_struct_addrinfo" = xyes
; then :
14187 cat >>confdefs.h
<<_ACEOF
14188 #define HAVE_STRUCT_ADDRINFO 1
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale_t" >&5
14196 $as_echo_n "checking for locale_t... " >&6; }
14197 if ${pgac_cv_type_locale_t+:} false
; then :
14198 $as_echo_n "(cached) " >&6
14200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14201 /* end confdefs.h. */
14202 #include <locale.h>
14212 if ac_fn_c_try_compile
"$LINENO"; then :
14213 pgac_cv_type_locale_t
=yes
14215 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14216 /* end confdefs.h. */
14217 #include <xlocale.h>
14227 if ac_fn_c_try_compile
"$LINENO"; then :
14228 pgac_cv_type_locale_t
='yes (in xlocale.h)'
14230 pgac_cv_type_locale_t
=no
14232 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14234 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_locale_t" >&5
14237 $as_echo "$pgac_cv_type_locale_t" >&6; }
14238 if test "$pgac_cv_type_locale_t" != no
; then
14240 $as_echo "#define HAVE_LOCALE_T 1" >>confdefs.h
14243 if test "$pgac_cv_type_locale_t" = 'yes (in xlocale.h)'; then
14245 $as_echo "#define LOCALE_T_IN_XLOCALE 1" >>confdefs.h
14249 # MSVC doesn't cope well with defining restrict to __restrict, the
14250 # spelling it understands, because it conflicts with
14251 # __declspec(restrict). Therefore we define pg_restrict to the
14252 # appropriate definition, which presumably won't conflict.
14254 # Allow platforms with buggy compilers to force restrict to not be
14255 # used by setting $FORCE_DISABLE_RESTRICT=yes in the relevant
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
14258 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
14259 if ${ac_cv_c_restrict+:} false
; then :
14260 $as_echo_n "(cached) " >&6
14262 ac_cv_c_restrict
=no
14263 # The order here caters to the fact that C++ does not require restrict.
14264 for ac_kw
in __restrict __restrict__ _Restrict restrict
; do
14265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14266 /* end confdefs.h. */
14267 typedef int * int_ptr;
14268 int foo (int_ptr $ac_kw ip) {
14275 int * $ac_kw t = s;
14282 if ac_fn_c_try_compile
"$LINENO"; then :
14283 ac_cv_c_restrict
=$ac_kw
14285 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14286 test "$ac_cv_c_restrict" != no
&& break
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
14291 $as_echo "$ac_cv_c_restrict" >&6; }
14293 case $ac_cv_c_restrict in
14295 no
) $as_echo "#define restrict /**/" >>confdefs.h
14297 *) cat >>confdefs.h
<<_ACEOF
14298 #define restrict $ac_cv_c_restrict
14303 if test "$ac_cv_c_restrict" = "no" -o "x$FORCE_DISABLE_RESTRICT" = "xyes"; then
14306 pg_restrict
="$ac_cv_c_restrict"
14309 cat >>confdefs.h
<<_ACEOF
14310 #define pg_restrict $pg_restrict
14314 ac_fn_c_check_type
"$LINENO" "struct cmsgcred" "ac_cv_type_struct_cmsgcred" "#include <sys/socket.h>
14315 #include <sys/param.h>
14316 #ifdef HAVE_SYS_UCRED_H
14317 #include <sys/ucred.h>
14320 if test "x$ac_cv_type_struct_cmsgcred" = xyes
; then :
14322 cat >>confdefs.h
<<_ACEOF
14323 #define HAVE_STRUCT_CMSGCRED 1
14330 ac_fn_c_check_type
"$LINENO" "struct option" "ac_cv_type_struct_option" "#ifdef HAVE_GETOPT_H
14331 #include <getopt.h>
14334 if test "x$ac_cv_type_struct_option" = xyes
; then :
14336 cat >>confdefs.h
<<_ACEOF
14337 #define HAVE_STRUCT_OPTION 1
14344 if test "$with_zlib" = yes; then
14345 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
14346 # did not). While we could work around the lack of z_streamp, it
14347 # seems unwise to encourage people to use such old zlib versions...
14348 ac_fn_c_check_type
"$LINENO" "z_streamp" "ac_cv_type_z_streamp" "#include <zlib.h>
14350 if test "x$ac_cv_type_z_streamp" = xyes
; then :
14353 as_fn_error $?
"zlib version is too old
14354 Use --without-zlib to disable zlib support." "$LINENO" 5
14361 # On x86_64, check if we can compile a popcntq instruction
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports x86_64 popcntq" >&5
14363 $as_echo_n "checking whether assembler supports x86_64 popcntq... " >&6; }
14364 if ${pgac_cv_have_x86_64_popcntq+:} false
; then :
14365 $as_echo_n "(cached) " >&6
14367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14368 /* end confdefs.h. */
14373 long long x = 1; long long r;
14374 __asm__ __volatile__ (" popcntq %1,%0\n" : "=q"(r) : "rm"(x));
14379 if ac_fn_c_try_compile
"$LINENO"; then :
14380 pgac_cv_have_x86_64_popcntq
=yes
14382 pgac_cv_have_x86_64_popcntq
=no
14384 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_have_x86_64_popcntq" >&5
14387 $as_echo "$pgac_cv_have_x86_64_popcntq" >&6; }
14388 if test x
"$pgac_cv_have_x86_64_popcntq" = xyes
; then
14390 $as_echo "#define HAVE_X86_64_POPCNTQ 1" >>confdefs.h
14395 # On PPC, check if assembler supports LWARX instruction's mutex hint bit
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports lwarx hint bit" >&5
14397 $as_echo_n "checking whether assembler supports lwarx hint bit... " >&6; }
14398 if ${pgac_cv_have_ppc_mutex_hint+:} false
; then :
14399 $as_echo_n "(cached) " >&6
14401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14402 /* end confdefs.h. */
14407 int a = 0; int *p = &a; int r;
14408 __asm__ __volatile__ (" lwarx %0,0,%1,1\n" : "=&r"(r) : "r"(p));
14413 if ac_fn_c_try_compile
"$LINENO"; then :
14414 pgac_cv_have_ppc_mutex_hint
=yes
14416 pgac_cv_have_ppc_mutex_hint
=no
14418 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_have_ppc_mutex_hint" >&5
14421 $as_echo "$pgac_cv_have_ppc_mutex_hint" >&6; }
14422 if test x
"$pgac_cv_have_ppc_mutex_hint" = xyes
; then
14424 $as_echo "#define HAVE_PPC_LWARX_MUTEX_HINT 1" >>confdefs.h
14427 # Check if compiler accepts "i"(x) when __builtin_constant_p(x).
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __builtin_constant_p(x) implies \"i\"(x) acceptance" >&5
14429 $as_echo_n "checking whether __builtin_constant_p(x) implies \"i\"(x) acceptance... " >&6; }
14430 if ${pgac_cv_have_i_constraint__builtin_constant_p+:} false
; then :
14431 $as_echo_n "(cached) " >&6
14433 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14434 /* end confdefs.h. */
14436 addi(int ra, int si)
14439 if (__builtin_constant_p(si))
14440 __asm__ __volatile__(
14441 " addi %0,%1,%2\n" : "=r"(res) : "b"(ra), "i"(si));
14444 int test_adds(int x) { return addi(3, x) + addi(x, 5); }
14453 if ac_fn_c_try_compile
"$LINENO"; then :
14454 pgac_cv_have_i_constraint__builtin_constant_p
=yes
14456 pgac_cv_have_i_constraint__builtin_constant_p
=no
14458 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_have_i_constraint__builtin_constant_p" >&5
14461 $as_echo "$pgac_cv_have_i_constraint__builtin_constant_p" >&6; }
14462 if test x
"$pgac_cv_have_i_constraint__builtin_constant_p" = xyes
; then
14464 $as_echo "#define HAVE_I_CONSTRAINT__BUILTIN_CONSTANT_P 1" >>confdefs.h
14470 # Check largefile support. You might think this is a system service not a
14471 # compiler characteristic, but you'd be wrong. We must check this before
14472 # probing existence of related functions such as fseeko, since the largefile
14473 # defines can affect what is generated for that.
14474 if test "$PORTNAME" != "win32"; then
14475 # Check whether --enable-largefile was given.
14476 if test "${enable_largefile+set}" = set; then :
14477 enableval
=$enable_largefile;
14480 if test "$enable_largefile" != no
; then
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
14483 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
14484 if ${ac_cv_sys_largefile_CC+:} false
; then :
14485 $as_echo_n "(cached) " >&6
14487 ac_cv_sys_largefile_CC
=no
14488 if test "$GCC" != yes; then
14491 # IRIX 6.2 and later do not support large files by default,
14492 # so use the C compiler's -n32 option if that helps.
14493 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14494 /* end confdefs.h. */
14495 #include <sys/types.h>
14496 /* Check that off_t can represent 2**63 - 1 correctly.
14497 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14498 since some C++ compilers masquerading as C compilers
14499 incorrectly reject 9223372036854775807. */
14500 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14501 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14502 && LARGE_OFF_T % 2147483647 == 1)
14512 if ac_fn_c_try_compile
"$LINENO"; then :
14515 rm -f core conftest.err conftest.
$ac_objext
14517 if ac_fn_c_try_compile
"$LINENO"; then :
14518 ac_cv_sys_largefile_CC
=' -n32'; break
14520 rm -f core conftest.err conftest.
$ac_objext
14524 rm -f conftest.
$ac_ext
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
14528 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
14529 if test "$ac_cv_sys_largefile_CC" != no
; then
14530 CC
=$CC$ac_cv_sys_largefile_CC
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14534 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14535 if ${ac_cv_sys_file_offset_bits+:} false
; then :
14536 $as_echo_n "(cached) " >&6
14539 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14540 /* end confdefs.h. */
14541 #include <sys/types.h>
14542 /* Check that off_t can represent 2**63 - 1 correctly.
14543 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14544 since some C++ compilers masquerading as C compilers
14545 incorrectly reject 9223372036854775807. */
14546 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14547 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14548 && LARGE_OFF_T % 2147483647 == 1)
14558 if ac_fn_c_try_compile
"$LINENO"; then :
14559 ac_cv_sys_file_offset_bits
=no
; break
14561 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14562 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14563 /* end confdefs.h. */
14564 #define _FILE_OFFSET_BITS 64
14565 #include <sys/types.h>
14566 /* Check that off_t can represent 2**63 - 1 correctly.
14567 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14568 since some C++ compilers masquerading as C compilers
14569 incorrectly reject 9223372036854775807. */
14570 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14571 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14572 && LARGE_OFF_T % 2147483647 == 1)
14582 if ac_fn_c_try_compile
"$LINENO"; then :
14583 ac_cv_sys_file_offset_bits
=64; break
14585 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14586 ac_cv_sys_file_offset_bits
=unknown
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
14591 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
14592 case $ac_cv_sys_file_offset_bits in #(
14595 cat >>confdefs.h
<<_ACEOF
14596 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14601 if test $ac_cv_sys_file_offset_bits = unknown
; then
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
14603 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
14604 if ${ac_cv_sys_large_files+:} false
; then :
14605 $as_echo_n "(cached) " >&6
14608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14609 /* end confdefs.h. */
14610 #include <sys/types.h>
14611 /* Check that off_t can represent 2**63 - 1 correctly.
14612 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14613 since some C++ compilers masquerading as C compilers
14614 incorrectly reject 9223372036854775807. */
14615 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14616 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14617 && LARGE_OFF_T % 2147483647 == 1)
14627 if ac_fn_c_try_compile
"$LINENO"; then :
14628 ac_cv_sys_large_files
=no
; break
14630 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14632 /* end confdefs.h. */
14633 #define _LARGE_FILES 1
14634 #include <sys/types.h>
14635 /* Check that off_t can represent 2**63 - 1 correctly.
14636 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14637 since some C++ compilers masquerading as C compilers
14638 incorrectly reject 9223372036854775807. */
14639 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14640 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14641 && LARGE_OFF_T % 2147483647 == 1)
14651 if ac_fn_c_try_compile
"$LINENO"; then :
14652 ac_cv_sys_large_files
=1; break
14654 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14655 ac_cv_sys_large_files
=unknown
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
14660 $as_echo "$ac_cv_sys_large_files" >&6; }
14661 case $ac_cv_sys_large_files in #(
14664 cat >>confdefs.h
<<_ACEOF
14665 #define _LARGE_FILES $ac_cv_sys_large_files
14678 # The cast to long int works around a bug in the HP C Compiler
14679 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14680 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14681 # This bug is HP SR number 8606223364.
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
14683 $as_echo_n "checking size of off_t... " >&6; }
14684 if ${ac_cv_sizeof_off_t+:} false
; then :
14685 $as_echo_n "(cached) " >&6
14687 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
14690 if test "$ac_cv_type_off_t" = yes; then
14691 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14692 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14693 as_fn_error
77 "cannot compute sizeof (off_t)
14694 See \`config.log' for more details" "$LINENO" 5; }
14696 ac_cv_sizeof_off_t
=0
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
14702 $as_echo "$ac_cv_sizeof_off_t" >&6; }
14706 cat >>confdefs.h
<<_ACEOF
14707 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
14712 # If we don't have largefile support, can't handle segsize >= 2GB.
14713 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
14714 as_fn_error $?
"Large file support is not enabled. Segment size cannot be larger than 1GB." "$LINENO" 5
14717 # The cast to long int works around a bug in the HP C Compiler
14718 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14719 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14720 # This bug is HP SR number 8606223364.
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of bool" >&5
14722 $as_echo_n "checking size of bool... " >&6; }
14723 if ${ac_cv_sizeof_bool+:} false
; then :
14724 $as_echo_n "(cached) " >&6
14726 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (bool))" "ac_cv_sizeof_bool" "#ifdef HAVE_STDBOOL_H
14727 #include <stdbool.h>
14732 if test "$ac_cv_type_bool" = yes; then
14733 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14734 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14735 as_fn_error
77 "cannot compute sizeof (bool)
14736 See \`config.log' for more details" "$LINENO" 5; }
14738 ac_cv_sizeof_bool
=0
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_bool" >&5
14744 $as_echo "$ac_cv_sizeof_bool" >&6; }
14748 cat >>confdefs.h
<<_ACEOF
14749 #define SIZEOF_BOOL $ac_cv_sizeof_bool
14754 if test "$ac_cv_header_stdbool_h" = yes -a "$ac_cv_sizeof_bool" = 1; then
14756 $as_echo "#define PG_USE_STDBOOL 1" >>confdefs.h
14762 ## Functions, global variables
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int timezone" >&5
14766 $as_echo_n "checking for int timezone... " >&6; }
14767 if ${pgac_cv_var_int_timezone+:} false
; then :
14768 $as_echo_n "(cached) " >&6
14770 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14771 /* end confdefs.h. */
14778 res = timezone / 60;
14780 res = _timezone / 60;
14786 if ac_fn_c_try_link
"$LINENO"; then :
14787 pgac_cv_var_int_timezone
=yes
14789 pgac_cv_var_int_timezone
=no
14791 rm -f core conftest.err conftest.
$ac_objext \
14792 conftest
$ac_exeext conftest.
$ac_ext
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_timezone" >&5
14795 $as_echo "$pgac_cv_var_int_timezone" >&6; }
14796 if test x
"$pgac_cv_var_int_timezone" = xyes
; then
14798 $as_echo "#define HAVE_INT_TIMEZONE 1" >>confdefs.h
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for accept()" >&5
14802 $as_echo_n "checking types of arguments for accept()... " >&6; }
14803 if ${ac_cv_func_accept_return+:} false
; then :
14804 $as_echo_n "(cached) " >&6
14806 if ${ac_cv_func_accept_arg1+:} false
; then :
14807 $as_echo_n "(cached) " >&6
14809 if ${ac_cv_func_accept_arg2+:} false
; then :
14810 $as_echo_n "(cached) " >&6
14812 if ${ac_cv_func_accept_arg3+:} false
; then :
14813 $as_echo_n "(cached) " >&6
14815 for ac_cv_func_accept_return
in 'int' 'SOCKET WSAAPI' 'unsigned int PASCAL'; do
14816 for ac_cv_func_accept_arg1
in 'int' 'SOCKET' 'unsigned int'; do
14817 for ac_cv_func_accept_arg2
in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
14818 for ac_cv_func_accept_arg3
in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
14819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14820 /* end confdefs.h. */
14821 #include <sys/types.h>
14822 #include <sys/socket.h>
14823 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
14825 if ac_fn_c_try_compile
"$LINENO"; then :
14826 ac_not_found
=no
; break 4
14830 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14835 if test "$ac_not_found" = yes; then
14836 as_fn_error $?
"could not determine argument types" "$LINENO" 5
14838 if test "$ac_cv_func_accept_arg3" = "void"; then
14839 ac_cv_func_accept_arg3
=int
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
14850 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
14852 cat >>confdefs.h
<<_ACEOF
14853 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
14857 cat >>confdefs.h
<<_ACEOF
14858 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
14862 cat >>confdefs.h
<<_ACEOF
14863 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
14867 cat >>confdefs.h
<<_ACEOF
14868 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday takes only one argument" >&5
14873 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
14874 if ${pgac_cv_func_gettimeofday_1arg+:} false
; then :
14875 $as_echo_n "(cached) " >&6
14877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14878 /* end confdefs.h. */
14879 #include <sys/time.h>
14883 struct timeval *tp;
14884 struct timezone *tzp;
14885 gettimeofday(tp,tzp);
14890 if ac_fn_c_try_compile
"$LINENO"; then :
14891 pgac_cv_func_gettimeofday_1arg
=no
14893 pgac_cv_func_gettimeofday_1arg
=yes
14895 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_gettimeofday_1arg" >&5
14898 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
14899 if test x
"$pgac_cv_func_gettimeofday_1arg" = xyes
; then
14901 $as_echo "#define GETTIMEOFDAY_1ARG 1" >>confdefs.h
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wcstombs_l declaration" >&5
14906 $as_echo_n "checking for wcstombs_l declaration... " >&6; }
14907 if ${pgac_cv_func_wcstombs_l+:} false
; then :
14908 $as_echo_n "(cached) " >&6
14910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14911 /* end confdefs.h. */
14912 #include <stdlib.h>
14913 #include <locale.h>
14924 if ac_fn_c_try_compile
"$LINENO"; then :
14925 pgac_cv_func_wcstombs_l
='yes'
14927 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14928 /* end confdefs.h. */
14929 #include <stdlib.h>
14930 #include <locale.h>
14931 #include <xlocale.h>
14942 if ac_fn_c_try_compile
"$LINENO"; then :
14943 pgac_cv_func_wcstombs_l
='yes (in xlocale.h)'
14945 pgac_cv_func_wcstombs_l
='no'
14947 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14949 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_wcstombs_l" >&5
14952 $as_echo "$pgac_cv_func_wcstombs_l" >&6; }
14953 if test "$pgac_cv_func_wcstombs_l" = 'yes (in xlocale.h)'; then
14955 $as_echo "#define WCSTOMBS_L_IN_XLOCALE 1" >>confdefs.h
14959 # Some versions of libedit contain strlcpy(), setproctitle(), and other
14960 # symbols that that library has no business exposing to the world. Pending
14961 # acquisition of a clue by those developers, ignore libedit (including its
14962 # possible alias of libreadline) while checking for everything else.
14963 LIBS_including_readline
="$LIBS"
14964 LIBS
=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
14966 for ac_func
in backtrace_symbols clock_gettime copyfile fdatasync getifaddrs getpeerucred getrlimit kqueue mbstowcs_l memset_s poll posix_fallocate ppoll pstat pthread_is_threaded_np readlink setproctitle setproctitle_fast setsid shm_open strchrnul strsignal symlink sync_file_range uselocale wcstombs_l
14968 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14969 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14970 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
14971 cat >>confdefs.h
<<_ACEOF
14972 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14979 # These typically are compiler builtins, for which AC_CHECK_FUNCS fails.
14980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap16" >&5
14981 $as_echo_n "checking for __builtin_bswap16... " >&6; }
14982 if ${pgac_cv__builtin_bswap16+:} false
; then :
14983 $as_echo_n "(cached) " >&6
14985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14986 /* end confdefs.h. */
14989 call__builtin_bswap16(int x)
14991 return __builtin_bswap16(x);
15001 if ac_fn_c_try_link
"$LINENO"; then :
15002 pgac_cv__builtin_bswap16
=yes
15004 pgac_cv__builtin_bswap16
=no
15006 rm -f core conftest.err conftest.
$ac_objext \
15007 conftest
$ac_exeext conftest.
$ac_ext
15009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_bswap16" >&5
15010 $as_echo "$pgac_cv__builtin_bswap16" >&6; }
15011 if test x
"${pgac_cv__builtin_bswap16}" = xyes
; then
15013 cat >>confdefs.h
<<_ACEOF
15014 #define HAVE__BUILTIN_BSWAP16 1
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap32" >&5
15019 $as_echo_n "checking for __builtin_bswap32... " >&6; }
15020 if ${pgac_cv__builtin_bswap32+:} false
; then :
15021 $as_echo_n "(cached) " >&6
15023 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15024 /* end confdefs.h. */
15027 call__builtin_bswap32(int x)
15029 return __builtin_bswap32(x);
15039 if ac_fn_c_try_link
"$LINENO"; then :
15040 pgac_cv__builtin_bswap32
=yes
15042 pgac_cv__builtin_bswap32
=no
15044 rm -f core conftest.err conftest.
$ac_objext \
15045 conftest
$ac_exeext conftest.
$ac_ext
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_bswap32" >&5
15048 $as_echo "$pgac_cv__builtin_bswap32" >&6; }
15049 if test x
"${pgac_cv__builtin_bswap32}" = xyes
; then
15051 cat >>confdefs.h
<<_ACEOF
15052 #define HAVE__BUILTIN_BSWAP32 1
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap64" >&5
15057 $as_echo_n "checking for __builtin_bswap64... " >&6; }
15058 if ${pgac_cv__builtin_bswap64+:} false
; then :
15059 $as_echo_n "(cached) " >&6
15061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15062 /* end confdefs.h. */
15065 call__builtin_bswap64(long int x)
15067 return __builtin_bswap64(x);
15077 if ac_fn_c_try_link
"$LINENO"; then :
15078 pgac_cv__builtin_bswap64
=yes
15080 pgac_cv__builtin_bswap64
=no
15082 rm -f core conftest.err conftest.
$ac_objext \
15083 conftest
$ac_exeext conftest.
$ac_ext
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_bswap64" >&5
15086 $as_echo "$pgac_cv__builtin_bswap64" >&6; }
15087 if test x
"${pgac_cv__builtin_bswap64}" = xyes
; then
15089 cat >>confdefs.h
<<_ACEOF
15090 #define HAVE__BUILTIN_BSWAP64 1
15094 # We assume that we needn't test all widths of these explicitly:
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5
15096 $as_echo_n "checking for __builtin_clz... " >&6; }
15097 if ${pgac_cv__builtin_clz+:} false
; then :
15098 $as_echo_n "(cached) " >&6
15100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15101 /* end confdefs.h. */
15104 call__builtin_clz(unsigned int x)
15106 return __builtin_clz(x);
15116 if ac_fn_c_try_link
"$LINENO"; then :
15117 pgac_cv__builtin_clz
=yes
15119 pgac_cv__builtin_clz
=no
15121 rm -f core conftest.err conftest.
$ac_objext \
15122 conftest
$ac_exeext conftest.
$ac_ext
15124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_clz" >&5
15125 $as_echo "$pgac_cv__builtin_clz" >&6; }
15126 if test x
"${pgac_cv__builtin_clz}" = xyes
; then
15128 cat >>confdefs.h
<<_ACEOF
15129 #define HAVE__BUILTIN_CLZ 1
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_ctz" >&5
15134 $as_echo_n "checking for __builtin_ctz... " >&6; }
15135 if ${pgac_cv__builtin_ctz+:} false
; then :
15136 $as_echo_n "(cached) " >&6
15138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15139 /* end confdefs.h. */
15142 call__builtin_ctz(unsigned int x)
15144 return __builtin_ctz(x);
15154 if ac_fn_c_try_link
"$LINENO"; then :
15155 pgac_cv__builtin_ctz
=yes
15157 pgac_cv__builtin_ctz
=no
15159 rm -f core conftest.err conftest.
$ac_objext \
15160 conftest
$ac_exeext conftest.
$ac_ext
15162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_ctz" >&5
15163 $as_echo "$pgac_cv__builtin_ctz" >&6; }
15164 if test x
"${pgac_cv__builtin_ctz}" = xyes
; then
15166 cat >>confdefs.h
<<_ACEOF
15167 #define HAVE__BUILTIN_CTZ 1
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_popcount" >&5
15172 $as_echo_n "checking for __builtin_popcount... " >&6; }
15173 if ${pgac_cv__builtin_popcount+:} false
; then :
15174 $as_echo_n "(cached) " >&6
15176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15177 /* end confdefs.h. */
15180 call__builtin_popcount(unsigned int x)
15182 return __builtin_popcount(x);
15192 if ac_fn_c_try_link
"$LINENO"; then :
15193 pgac_cv__builtin_popcount
=yes
15195 pgac_cv__builtin_popcount
=no
15197 rm -f core conftest.err conftest.
$ac_objext \
15198 conftest
$ac_exeext conftest.
$ac_ext
15200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_popcount" >&5
15201 $as_echo "$pgac_cv__builtin_popcount" >&6; }
15202 if test x
"${pgac_cv__builtin_popcount}" = xyes
; then
15204 cat >>confdefs.h
<<_ACEOF
15205 #define HAVE__BUILTIN_POPCOUNT 1
15210 # We require 64-bit fseeko() to be available, but run this check anyway
15211 # in case it finds that _LARGEFILE_SOURCE has to be #define'd for that.
15212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15213 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
15214 if ${ac_cv_sys_largefile_source+:} false
; then :
15215 $as_echo_n "(cached) " >&6
15218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15219 /* end confdefs.h. */
15220 #include <sys/types.h> /* for off_t */
15225 int (*fp) (FILE *, off_t, int) = fseeko;
15226 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15231 if ac_fn_c_try_link
"$LINENO"; then :
15232 ac_cv_sys_largefile_source
=no
; break
15234 rm -f core conftest.err conftest.
$ac_objext \
15235 conftest
$ac_exeext conftest.
$ac_ext
15236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15237 /* end confdefs.h. */
15238 #define _LARGEFILE_SOURCE 1
15239 #include <sys/types.h> /* for off_t */
15244 int (*fp) (FILE *, off_t, int) = fseeko;
15245 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15250 if ac_fn_c_try_link
"$LINENO"; then :
15251 ac_cv_sys_largefile_source
=1; break
15253 rm -f core conftest.err conftest.
$ac_objext \
15254 conftest
$ac_exeext conftest.
$ac_ext
15255 ac_cv_sys_largefile_source
=unknown
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
15260 $as_echo "$ac_cv_sys_largefile_source" >&6; }
15261 case $ac_cv_sys_largefile_source in #(
15264 cat >>confdefs.h
<<_ACEOF
15265 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
15271 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
15272 # in glibc 2.1.3, but that breaks too many other things.
15273 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
15274 if test $ac_cv_sys_largefile_source != unknown
; then
15276 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
15281 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
15282 # by calling it, 2009-04-02
15283 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
15284 # The Clang compiler raises a warning for an undeclared identifier that matches
15285 # a compiler builtin function. All extant Clang versions are affected, as of
15286 # Clang 3.6.0. Test a builtin known to every version. This problem affects the
15287 # C and Objective C languages, but Clang does report an error under C++ and
15290 # Passing -fno-builtin to the compiler would suppress this problem. That
15291 # strategy would have the advantage of being insensitive to stray warnings, but
15292 # it would make tests less realistic.
15293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how $CC reports undeclared, standard C functions" >&5
15294 $as_echo_n "checking how $CC reports undeclared, standard C functions... " >&6; }
15295 if ${ac_cv_c_decl_report+:} false
; then :
15296 $as_echo_n "(cached) " >&6
15298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15299 /* end confdefs.h. */
15309 if ac_fn_c_try_compile
"$LINENO"; then :
15310 if test -s conftest.err
; then :
15311 # For AC_CHECK_DECL to react to warnings, the compiler must be silent on
15312 # valid AC_CHECK_DECL input. No library function is consistently available
15313 # on freestanding implementations, so test against a dummy declaration.
15314 # Include always-available headers on the off chance that they somehow
15316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15317 /* end confdefs.h. */
15319 #include <limits.h>
15320 #include <stdarg.h>
15321 #include <stddef.h>
15322 extern void ac_decl (int, char *);
15327 (void) ac_decl ((int) 0, (char *) 0);
15337 if ac_fn_c_try_compile
"$LINENO"; then :
15338 if test -s conftest.err
; then :
15339 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15340 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15341 as_fn_error $?
"cannot detect from compiler exit status or warnings
15342 See \`config.log' for more details" "$LINENO" 5; }
15344 ac_cv_c_decl_report
=warning
15347 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15348 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15349 as_fn_error $?
"cannot compile a simple declaration test
15350 See \`config.log' for more details" "$LINENO" 5; }
15352 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15354 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15356 as_fn_error $?
"compiler does not report undeclared identifiers
15357 See \`config.log' for more details" "$LINENO" 5; }
15360 ac_cv_c_decl_report
=error
15362 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_decl_report" >&5
15365 $as_echo "$ac_cv_c_decl_report" >&6; }
15367 case $ac_cv_c_decl_report in
15368 warning
) ac_c_decl_warn_flag
=yes ;;
15369 *) ac_c_decl_warn_flag
= ;;
15372 if test "$PORTNAME" != "solaris"; then :
15374 for ac_func
in posix_fadvise
15376 ac_fn_c_check_func
"$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
15377 if test "x$ac_cv_func_posix_fadvise" = xyes
; then :
15378 cat >>confdefs.h
<<_ACEOF
15379 #define HAVE_POSIX_FADVISE 1
15385 ac_fn_c_check_decl
"$LINENO" "posix_fadvise" "ac_cv_have_decl_posix_fadvise" "#include <fcntl.h>
15387 if test "x$ac_cv_have_decl_posix_fadvise" = xyes
; then :
15393 cat >>confdefs.h
<<_ACEOF
15394 #define HAVE_DECL_POSIX_FADVISE $ac_have_decl
15400 ac_fn_c_check_decl
"$LINENO" "fdatasync" "ac_cv_have_decl_fdatasync" "#include <unistd.h>
15402 if test "x$ac_cv_have_decl_fdatasync" = xyes
; then :
15408 cat >>confdefs.h
<<_ACEOF
15409 #define HAVE_DECL_FDATASYNC $ac_have_decl
15412 ac_fn_c_check_decl
"$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default"
15413 if test "x$ac_cv_have_decl_strlcat" = xyes
; then :
15419 cat >>confdefs.h
<<_ACEOF
15420 #define HAVE_DECL_STRLCAT $ac_have_decl
15422 ac_fn_c_check_decl
"$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default"
15423 if test "x$ac_cv_have_decl_strlcpy" = xyes
; then :
15429 cat >>confdefs.h
<<_ACEOF
15430 #define HAVE_DECL_STRLCPY $ac_have_decl
15432 ac_fn_c_check_decl
"$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
15433 if test "x$ac_cv_have_decl_strnlen" = xyes
; then :
15439 cat >>confdefs.h
<<_ACEOF
15440 #define HAVE_DECL_STRNLEN $ac_have_decl
15443 # This is probably only present on macOS, but may as well check always
15444 ac_fn_c_check_decl
"$LINENO" "F_FULLFSYNC" "ac_cv_have_decl_F_FULLFSYNC" "#include <fcntl.h>
15446 if test "x$ac_cv_have_decl_F_FULLFSYNC" = xyes
; then :
15452 cat >>confdefs.h
<<_ACEOF
15453 #define HAVE_DECL_F_FULLFSYNC $ac_have_decl
15457 ac_fn_c_check_decl
"$LINENO" "RTLD_GLOBAL" "ac_cv_have_decl_RTLD_GLOBAL" "#include <dlfcn.h>
15459 if test "x$ac_cv_have_decl_RTLD_GLOBAL" = xyes
; then :
15465 cat >>confdefs.h
<<_ACEOF
15466 #define HAVE_DECL_RTLD_GLOBAL $ac_have_decl
15468 ac_fn_c_check_decl
"$LINENO" "RTLD_NOW" "ac_cv_have_decl_RTLD_NOW" "#include <dlfcn.h>
15470 if test "x$ac_cv_have_decl_RTLD_NOW" = xyes
; then :
15476 cat >>confdefs.h
<<_ACEOF
15477 #define HAVE_DECL_RTLD_NOW $ac_have_decl
15481 ac_fn_c_check_type
"$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "$ac_includes_default
15482 #include <netinet/in.h>
15484 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes
; then :
15486 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
15491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PS_STRINGS" >&5
15492 $as_echo_n "checking for PS_STRINGS... " >&6; }
15493 if ${pgac_cv_var_PS_STRINGS+:} false
; then :
15494 $as_echo_n "(cached) " >&6
15496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15497 /* end confdefs.h. */
15498 #include <machine/vmparam.h>
15499 #include <sys/exec.h>
15504 PS_STRINGS->ps_nargvstr = 1;
15505 PS_STRINGS->ps_argvstr = "foo";
15510 if ac_fn_c_try_link
"$LINENO"; then :
15511 pgac_cv_var_PS_STRINGS
=yes
15513 pgac_cv_var_PS_STRINGS
=no
15515 rm -f core conftest.err conftest.
$ac_objext \
15516 conftest
$ac_exeext conftest.
$ac_ext
15518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_PS_STRINGS" >&5
15519 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
15520 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
15522 $as_echo "#define HAVE_PS_STRINGS 1" >>confdefs.h
15526 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
15527 if test "x$ac_cv_func_dlopen" = xyes
; then :
15528 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
15531 case " $LIBOBJS " in
15532 *" dlopen.$ac_objext "* ) ;;
15533 *) LIBOBJS
="$LIBOBJS dlopen.$ac_objext"
15539 ac_fn_c_check_func
"$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
15540 if test "x$ac_cv_func_explicit_bzero" = xyes
; then :
15541 $as_echo "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
15544 case " $LIBOBJS " in
15545 *" explicit_bzero.$ac_objext "* ) ;;
15546 *) LIBOBJS
="$LIBOBJS explicit_bzero.$ac_objext"
15552 ac_fn_c_check_func
"$LINENO" "fls" "ac_cv_func_fls"
15553 if test "x$ac_cv_func_fls" = xyes
; then :
15554 $as_echo "#define HAVE_FLS 1" >>confdefs.h
15557 case " $LIBOBJS " in
15558 *" fls.$ac_objext "* ) ;;
15559 *) LIBOBJS
="$LIBOBJS fls.$ac_objext"
15565 ac_fn_c_check_func
"$LINENO" "getopt" "ac_cv_func_getopt"
15566 if test "x$ac_cv_func_getopt" = xyes
; then :
15567 $as_echo "#define HAVE_GETOPT 1" >>confdefs.h
15570 case " $LIBOBJS " in
15571 *" getopt.$ac_objext "* ) ;;
15572 *) LIBOBJS
="$LIBOBJS getopt.$ac_objext"
15578 ac_fn_c_check_func
"$LINENO" "getpeereid" "ac_cv_func_getpeereid"
15579 if test "x$ac_cv_func_getpeereid" = xyes
; then :
15580 $as_echo "#define HAVE_GETPEEREID 1" >>confdefs.h
15583 case " $LIBOBJS " in
15584 *" getpeereid.$ac_objext "* ) ;;
15585 *) LIBOBJS
="$LIBOBJS getpeereid.$ac_objext"
15591 ac_fn_c_check_func
"$LINENO" "getrusage" "ac_cv_func_getrusage"
15592 if test "x$ac_cv_func_getrusage" = xyes
; then :
15593 $as_echo "#define HAVE_GETRUSAGE 1" >>confdefs.h
15596 case " $LIBOBJS " in
15597 *" getrusage.$ac_objext "* ) ;;
15598 *) LIBOBJS
="$LIBOBJS getrusage.$ac_objext"
15604 ac_fn_c_check_func
"$LINENO" "inet_aton" "ac_cv_func_inet_aton"
15605 if test "x$ac_cv_func_inet_aton" = xyes
; then :
15606 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
15609 case " $LIBOBJS " in
15610 *" inet_aton.$ac_objext "* ) ;;
15611 *) LIBOBJS
="$LIBOBJS inet_aton.$ac_objext"
15617 ac_fn_c_check_func
"$LINENO" "link" "ac_cv_func_link"
15618 if test "x$ac_cv_func_link" = xyes
; then :
15619 $as_echo "#define HAVE_LINK 1" >>confdefs.h
15622 case " $LIBOBJS " in
15623 *" link.$ac_objext "* ) ;;
15624 *) LIBOBJS
="$LIBOBJS link.$ac_objext"
15630 ac_fn_c_check_func
"$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
15631 if test "x$ac_cv_func_mkdtemp" = xyes
; then :
15632 $as_echo "#define HAVE_MKDTEMP 1" >>confdefs.h
15635 case " $LIBOBJS " in
15636 *" mkdtemp.$ac_objext "* ) ;;
15637 *) LIBOBJS
="$LIBOBJS mkdtemp.$ac_objext"
15643 ac_fn_c_check_func
"$LINENO" "pread" "ac_cv_func_pread"
15644 if test "x$ac_cv_func_pread" = xyes
; then :
15645 $as_echo "#define HAVE_PREAD 1" >>confdefs.h
15648 case " $LIBOBJS " in
15649 *" pread.$ac_objext "* ) ;;
15650 *) LIBOBJS
="$LIBOBJS pread.$ac_objext"
15656 ac_fn_c_check_func
"$LINENO" "pwrite" "ac_cv_func_pwrite"
15657 if test "x$ac_cv_func_pwrite" = xyes
; then :
15658 $as_echo "#define HAVE_PWRITE 1" >>confdefs.h
15661 case " $LIBOBJS " in
15662 *" pwrite.$ac_objext "* ) ;;
15663 *) LIBOBJS
="$LIBOBJS pwrite.$ac_objext"
15669 ac_fn_c_check_func
"$LINENO" "random" "ac_cv_func_random"
15670 if test "x$ac_cv_func_random" = xyes
; then :
15671 $as_echo "#define HAVE_RANDOM 1" >>confdefs.h
15674 case " $LIBOBJS " in
15675 *" random.$ac_objext "* ) ;;
15676 *) LIBOBJS
="$LIBOBJS random.$ac_objext"
15682 ac_fn_c_check_func
"$LINENO" "srandom" "ac_cv_func_srandom"
15683 if test "x$ac_cv_func_srandom" = xyes
; then :
15684 $as_echo "#define HAVE_SRANDOM 1" >>confdefs.h
15687 case " $LIBOBJS " in
15688 *" srandom.$ac_objext "* ) ;;
15689 *) LIBOBJS
="$LIBOBJS srandom.$ac_objext"
15695 ac_fn_c_check_func
"$LINENO" "strlcat" "ac_cv_func_strlcat"
15696 if test "x$ac_cv_func_strlcat" = xyes
; then :
15697 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
15700 case " $LIBOBJS " in
15701 *" strlcat.$ac_objext "* ) ;;
15702 *) LIBOBJS
="$LIBOBJS strlcat.$ac_objext"
15708 ac_fn_c_check_func
"$LINENO" "strlcpy" "ac_cv_func_strlcpy"
15709 if test "x$ac_cv_func_strlcpy" = xyes
; then :
15710 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
15713 case " $LIBOBJS " in
15714 *" strlcpy.$ac_objext "* ) ;;
15715 *) LIBOBJS
="$LIBOBJS strlcpy.$ac_objext"
15721 ac_fn_c_check_func
"$LINENO" "strnlen" "ac_cv_func_strnlen"
15722 if test "x$ac_cv_func_strnlen" = xyes
; then :
15723 $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h
15726 case " $LIBOBJS " in
15727 *" strnlen.$ac_objext "* ) ;;
15728 *) LIBOBJS
="$LIBOBJS strnlen.$ac_objext"
15734 ac_fn_c_check_func
"$LINENO" "strtof" "ac_cv_func_strtof"
15735 if test "x$ac_cv_func_strtof" = xyes
; then :
15736 $as_echo "#define HAVE_STRTOF 1" >>confdefs.h
15739 case " $LIBOBJS " in
15740 *" strtof.$ac_objext "* ) ;;
15741 *) LIBOBJS
="$LIBOBJS strtof.$ac_objext"
15749 if test "$PORTNAME" = "win32" -o "$PORTNAME" = "cygwin"; then
15750 # Cygwin and (apparently, based on test results) Mingw both
15751 # have a broken strtof(), so substitute the same replacement
15752 # code we use with VS2013. That's not a perfect fix, since
15753 # (unlike with VS2013) it doesn't avoid double-rounding, but
15754 # we have no better options. To get that, though, we have to
15755 # force the file to be compiled despite HAVE_STRTOF.
15756 case " $LIBOBJS " in
15757 *" strtof.$ac_objext "* ) ;;
15758 *) LIBOBJS
="$LIBOBJS strtof.$ac_objext"
15762 { $as_echo "$as_me:${as_lineno-$LINENO}: On $host_os we will use our strtof wrapper." >&5
15763 $as_echo "$as_me: On $host_os we will use our strtof wrapper." >&6;}
15767 # Windows uses a specialised env handler
15770 $as_echo "#define HAVE_UNSETENV 1" >>confdefs.h
15772 ac_cv_func_unsetenv
=yes
15775 ac_fn_c_check_func
"$LINENO" "unsetenv" "ac_cv_func_unsetenv"
15776 if test "x$ac_cv_func_unsetenv" = xyes
; then :
15777 $as_echo "#define HAVE_UNSETENV 1" >>confdefs.h
15780 case " $LIBOBJS " in
15781 *" unsetenv.$ac_objext "* ) ;;
15782 *) LIBOBJS
="$LIBOBJS unsetenv.$ac_objext"
15792 # System's version of getaddrinfo(), if any, may be used only if we found
15793 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
15794 # We use only our own getaddrinfo.c on Windows, but it's time to revisit that.
15795 if test x
"$ac_cv_type_struct_addrinfo" = xyes
&& \
15796 test "$PORTNAME" != "win32"; then
15797 ac_fn_c_check_func
"$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
15798 if test "x$ac_cv_func_getaddrinfo" = xyes
; then :
15799 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
15802 case " $LIBOBJS " in
15803 *" getaddrinfo.$ac_objext "* ) ;;
15804 *) LIBOBJS
="$LIBOBJS getaddrinfo.$ac_objext"
15812 case " $LIBOBJS " in
15813 *" getaddrinfo.$ac_objext "* ) ;;
15814 *) LIBOBJS
="$LIBOBJS getaddrinfo.$ac_objext"
15820 # Similarly, use system's getopt_long() only if system provides struct option.
15821 if test x
"$ac_cv_type_struct_option" = xyes
; then
15822 ac_fn_c_check_func
"$LINENO" "getopt_long" "ac_cv_func_getopt_long"
15823 if test "x$ac_cv_func_getopt_long" = xyes
; then :
15824 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
15827 case " $LIBOBJS " in
15828 *" getopt_long.$ac_objext "* ) ;;
15829 *) LIBOBJS
="$LIBOBJS getopt_long.$ac_objext"
15837 case " $LIBOBJS " in
15838 *" getopt_long.$ac_objext "* ) ;;
15839 *) LIBOBJS
="$LIBOBJS getopt_long.$ac_objext"
15845 # On OpenBSD and Solaris, getopt() doesn't do what we want for long options
15846 # (i.e., allow '-' as a flag character), so use our version on those platforms.
15847 if test "$PORTNAME" = "openbsd" -o "$PORTNAME" = "solaris"; then
15848 case " $LIBOBJS " in
15849 *" getopt.$ac_objext "* ) ;;
15850 *) LIBOBJS
="$LIBOBJS getopt.$ac_objext"
15856 # mingw has adopted a GNU-centric interpretation of optind/optreset,
15857 # so always use our version on Windows.
15858 if test "$PORTNAME" = "win32"; then
15859 case " $LIBOBJS " in
15860 *" getopt.$ac_objext "* ) ;;
15861 *) LIBOBJS
="$LIBOBJS getopt.$ac_objext"
15865 case " $LIBOBJS " in
15866 *" getopt_long.$ac_objext "* ) ;;
15867 *) LIBOBJS
="$LIBOBJS getopt_long.$ac_objext"
15873 # Win32 (really MinGW) support
15874 if test "$PORTNAME" = "win32"; then
15875 for ac_func
in _configthreadlocale
15877 ac_fn_c_check_func
"$LINENO" "_configthreadlocale" "ac_cv_func__configthreadlocale"
15878 if test "x$ac_cv_func__configthreadlocale" = xyes
; then :
15879 cat >>confdefs.h
<<_ACEOF
15880 #define HAVE__CONFIGTHREADLOCALE 1
15886 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
15887 if test "x$ac_cv_func_gettimeofday" = xyes
; then :
15888 $as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
15891 case " $LIBOBJS " in
15892 *" gettimeofday.$ac_objext "* ) ;;
15893 *) LIBOBJS
="$LIBOBJS gettimeofday.$ac_objext"
15900 case " $LIBOBJS " in
15901 *" dirmod.$ac_objext "* ) ;;
15902 *) LIBOBJS
="$LIBOBJS dirmod.$ac_objext"
15906 case " $LIBOBJS " in
15907 *" kill.$ac_objext "* ) ;;
15908 *) LIBOBJS
="$LIBOBJS kill.$ac_objext"
15912 case " $LIBOBJS " in
15913 *" open.$ac_objext "* ) ;;
15914 *) LIBOBJS
="$LIBOBJS open.$ac_objext"
15918 case " $LIBOBJS " in
15919 *" system.$ac_objext "* ) ;;
15920 *) LIBOBJS
="$LIBOBJS system.$ac_objext"
15924 case " $LIBOBJS " in
15925 *" win32env.$ac_objext "* ) ;;
15926 *) LIBOBJS
="$LIBOBJS win32env.$ac_objext"
15930 case " $LIBOBJS " in
15931 *" win32error.$ac_objext "* ) ;;
15932 *) LIBOBJS
="$LIBOBJS win32error.$ac_objext"
15936 case " $LIBOBJS " in
15937 *" win32security.$ac_objext "* ) ;;
15938 *) LIBOBJS
="$LIBOBJS win32security.$ac_objext"
15942 case " $LIBOBJS " in
15943 *" win32setlocale.$ac_objext "* ) ;;
15944 *) LIBOBJS
="$LIBOBJS win32setlocale.$ac_objext"
15949 $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h
15951 ac_fn_c_check_type
"$LINENO" "MINIDUMP_TYPE" "ac_cv_type_MINIDUMP_TYPE" "
15952 #define WIN32_LEAN_AND_MEAN
15953 #include <windows.h>
15954 #include <string.h>
15955 #include <dbghelp.h>
15957 if test "x$ac_cv_type_MINIDUMP_TYPE" = xyes
; then :
15959 cat >>confdefs.h
<<_ACEOF
15960 #define HAVE_MINIDUMP_TYPE 1
15963 pgac_minidump_type
=yes
15965 pgac_minidump_type
=no
15969 if test x
"$pgac_minidump_type" = x
"yes" ; then
15970 have_win32_dbghelp
=yes
15973 have_win32_dbghelp
=no
15977 # Cygwin needs only a bit of that
15978 if test "$PORTNAME" = "cygwin"; then
15979 case " $LIBOBJS " in
15980 *" dirmod.$ac_objext "* ) ;;
15981 *) LIBOBJS
="$LIBOBJS dirmod.$ac_objext"
15987 ac_fn_c_check_func
"$LINENO" "syslog" "ac_cv_func_syslog"
15988 if test "x$ac_cv_func_syslog" = xyes
; then :
15989 ac_fn_c_check_header_mongrel
"$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
15990 if test "x$ac_cv_header_syslog_h" = xyes
; then :
15992 $as_echo "#define HAVE_SYSLOG 1" >>confdefs.h
16000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opterr" >&5
16001 $as_echo_n "checking for opterr... " >&6; }
16002 if ${pgac_cv_var_int_opterr+:} false
; then :
16003 $as_echo_n "(cached) " >&6
16005 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16006 /* end confdefs.h. */
16007 #include <unistd.h>
16011 extern int opterr; opterr = 1;
16016 if ac_fn_c_try_link
"$LINENO"; then :
16017 pgac_cv_var_int_opterr
=yes
16019 pgac_cv_var_int_opterr
=no
16021 rm -f core conftest.err conftest.
$ac_objext \
16022 conftest
$ac_exeext conftest.
$ac_ext
16024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_opterr" >&5
16025 $as_echo "$pgac_cv_var_int_opterr" >&6; }
16026 if test x
"$pgac_cv_var_int_opterr" = x
"yes"; then
16028 $as_echo "#define HAVE_INT_OPTERR 1" >>confdefs.h
16032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
16033 $as_echo_n "checking for optreset... " >&6; }
16034 if ${pgac_cv_var_int_optreset+:} false
; then :
16035 $as_echo_n "(cached) " >&6
16037 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16038 /* end confdefs.h. */
16039 #include <unistd.h>
16043 extern int optreset; optreset = 1;
16048 if ac_fn_c_try_link
"$LINENO"; then :
16049 pgac_cv_var_int_optreset
=yes
16051 pgac_cv_var_int_optreset
=no
16053 rm -f core conftest.err conftest.
$ac_objext \
16054 conftest
$ac_exeext conftest.
$ac_ext
16056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_optreset" >&5
16057 $as_echo "$pgac_cv_var_int_optreset" >&6; }
16058 if test x
"$pgac_cv_var_int_optreset" = x
"yes"; then
16060 $as_echo "#define HAVE_INT_OPTRESET 1" >>confdefs.h
16064 for ac_func
in strtoll __strtoll strtoq
16066 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16067 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16068 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
16069 cat >>confdefs.h
<<_ACEOF
16070 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16076 for ac_func
in strtoull __strtoull strtouq
16078 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16079 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16080 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
16081 cat >>confdefs.h
<<_ACEOF
16082 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16088 # strto[u]ll may exist but not be declared
16089 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
16090 if test "x$ac_cv_have_decl_strtoll" = xyes
; then :
16096 cat >>confdefs.h
<<_ACEOF
16097 #define HAVE_DECL_STRTOLL $ac_have_decl
16099 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
16100 if test "x$ac_cv_have_decl_strtoull" = xyes
; then :
16106 cat >>confdefs.h
<<_ACEOF
16107 #define HAVE_DECL_STRTOULL $ac_have_decl
16111 if test "$with_icu" = yes; then
16112 ac_save_CPPFLAGS
=$CPPFLAGS
16113 CPPFLAGS
="$ICU_CFLAGS $CPPFLAGS"
16115 # Verify we have ICU's header files
16116 ac_fn_c_check_header_mongrel
"$LINENO" "unicode/ucol.h" "ac_cv_header_unicode_ucol_h" "$ac_includes_default"
16117 if test "x$ac_cv_header_unicode_ucol_h" = xyes
; then :
16120 as_fn_error $?
"header file <unicode/ucol.h> is required for ICU" "$LINENO" 5
16125 CPPFLAGS
=$ac_save_CPPFLAGS
16128 if test "$with_llvm" = yes; then
16130 # Check which functionality is present
16131 SAVE_CPPFLAGS
="$CPPFLAGS"
16132 CPPFLAGS
="$CPPFLAGS $LLVM_CPPFLAGS"
16133 ac_fn_c_check_decl
"$LINENO" "LLVMOrcGetSymbolAddressIn" "ac_cv_have_decl_LLVMOrcGetSymbolAddressIn" "#include <llvm-c/OrcBindings.h>
16135 if test "x$ac_cv_have_decl_LLVMOrcGetSymbolAddressIn" = xyes
; then :
16141 cat >>confdefs.h
<<_ACEOF
16142 #define HAVE_DECL_LLVMORCGETSYMBOLADDRESSIN $ac_have_decl
16145 ac_fn_c_check_decl
"$LINENO" "LLVMGetHostCPUName" "ac_cv_have_decl_LLVMGetHostCPUName" "#include <llvm-c/TargetMachine.h>
16147 if test "x$ac_cv_have_decl_LLVMGetHostCPUName" = xyes
; then :
16153 cat >>confdefs.h
<<_ACEOF
16154 #define HAVE_DECL_LLVMGETHOSTCPUNAME $ac_have_decl
16156 ac_fn_c_check_decl
"$LINENO" "LLVMGetHostCPUFeatures" "ac_cv_have_decl_LLVMGetHostCPUFeatures" "#include <llvm-c/TargetMachine.h>
16158 if test "x$ac_cv_have_decl_LLVMGetHostCPUFeatures" = xyes
; then :
16164 cat >>confdefs.h
<<_ACEOF
16165 #define HAVE_DECL_LLVMGETHOSTCPUFEATURES $ac_have_decl
16168 ac_fn_c_check_decl
"$LINENO" "LLVMCreateGDBRegistrationListener" "ac_cv_have_decl_LLVMCreateGDBRegistrationListener" "#include <llvm-c/ExecutionEngine.h>
16170 if test "x$ac_cv_have_decl_LLVMCreateGDBRegistrationListener" = xyes
; then :
16176 cat >>confdefs.h
<<_ACEOF
16177 #define HAVE_DECL_LLVMCREATEGDBREGISTRATIONLISTENER $ac_have_decl
16179 ac_fn_c_check_decl
"$LINENO" "LLVMCreatePerfJITEventListener" "ac_cv_have_decl_LLVMCreatePerfJITEventListener" "#include <llvm-c/ExecutionEngine.h>
16181 if test "x$ac_cv_have_decl_LLVMCreatePerfJITEventListener" = xyes
; then :
16187 cat >>confdefs.h
<<_ACEOF
16188 #define HAVE_DECL_LLVMCREATEPERFJITEVENTLISTENER $ac_have_decl
16191 CPPFLAGS
="$SAVE_CPPFLAGS"
16195 # Lastly, restore full LIBS list and check for readline/libedit symbols
16196 LIBS
="$LIBS_including_readline"
16198 if test "$with_readline" = yes; then
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_append_character" >&5
16200 $as_echo_n "checking for rl_completion_append_character... " >&6; }
16201 if ${pgac_cv_var_rl_completion_append_character+:} false
; then :
16202 $as_echo_n "(cached) " >&6
16204 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16205 /* end confdefs.h. */
16207 #if defined(HAVE_READLINE_READLINE_H)
16208 #include <readline/readline.h>
16209 #elif defined(HAVE_EDITLINE_READLINE_H)
16210 #include <editline/readline.h>
16211 #elif defined(HAVE_READLINE_H)
16212 #include <readline.h>
16218 rl_completion_append_character = 'x';
16223 if ac_fn_c_try_link
"$LINENO"; then :
16224 pgac_cv_var_rl_completion_append_character
=yes
16226 pgac_cv_var_rl_completion_append_character
=no
16228 rm -f core conftest.err conftest.
$ac_objext \
16229 conftest
$ac_exeext conftest.
$ac_ext
16231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_rl_completion_append_character" >&5
16232 $as_echo "$pgac_cv_var_rl_completion_append_character" >&6; }
16233 if test x
"$pgac_cv_var_rl_completion_append_character" = x
"yes"; then
16235 $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h
16238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_suppress_quote" >&5
16239 $as_echo_n "checking for rl_completion_suppress_quote... " >&6; }
16240 if ${pgac_cv_var_rl_completion_suppress_quote+:} false
; then :
16241 $as_echo_n "(cached) " >&6
16243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16244 /* end confdefs.h. */
16246 #if defined(HAVE_READLINE_READLINE_H)
16247 #include <readline/readline.h>
16248 #elif defined(HAVE_EDITLINE_READLINE_H)
16249 #include <editline/readline.h>
16250 #elif defined(HAVE_READLINE_H)
16251 #include <readline.h>
16257 rl_completion_suppress_quote = 1;
16262 if ac_fn_c_try_link
"$LINENO"; then :
16263 pgac_cv_var_rl_completion_suppress_quote
=yes
16265 pgac_cv_var_rl_completion_suppress_quote
=no
16267 rm -f core conftest.err conftest.
$ac_objext \
16268 conftest
$ac_exeext conftest.
$ac_ext
16270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_rl_completion_suppress_quote" >&5
16271 $as_echo "$pgac_cv_var_rl_completion_suppress_quote" >&6; }
16272 if test x
"$pgac_cv_var_rl_completion_suppress_quote" = x
"yes"; then
16274 $as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_QUOTE 1" >>confdefs.h
16277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_filename_quote_characters" >&5
16278 $as_echo_n "checking for rl_filename_quote_characters... " >&6; }
16279 if ${pgac_cv_var_rl_filename_quote_characters+:} false
; then :
16280 $as_echo_n "(cached) " >&6
16282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16283 /* end confdefs.h. */
16285 #if defined(HAVE_READLINE_READLINE_H)
16286 #include <readline/readline.h>
16287 #elif defined(HAVE_EDITLINE_READLINE_H)
16288 #include <editline/readline.h>
16289 #elif defined(HAVE_READLINE_H)
16290 #include <readline.h>
16296 rl_filename_quote_characters = "x";
16301 if ac_fn_c_try_link
"$LINENO"; then :
16302 pgac_cv_var_rl_filename_quote_characters
=yes
16304 pgac_cv_var_rl_filename_quote_characters
=no
16306 rm -f core conftest.err conftest.
$ac_objext \
16307 conftest
$ac_exeext conftest.
$ac_ext
16309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_rl_filename_quote_characters" >&5
16310 $as_echo "$pgac_cv_var_rl_filename_quote_characters" >&6; }
16311 if test x
"$pgac_cv_var_rl_filename_quote_characters" = x
"yes"; then
16313 $as_echo "#define HAVE_RL_FILENAME_QUOTE_CHARACTERS 1" >>confdefs.h
16316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_filename_quoting_function" >&5
16317 $as_echo_n "checking for rl_filename_quoting_function... " >&6; }
16318 if ${pgac_cv_var_rl_filename_quoting_function+:} false
; then :
16319 $as_echo_n "(cached) " >&6
16321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16322 /* end confdefs.h. */
16324 #if defined(HAVE_READLINE_READLINE_H)
16325 #include <readline/readline.h>
16326 #elif defined(HAVE_EDITLINE_READLINE_H)
16327 #include <editline/readline.h>
16328 #elif defined(HAVE_READLINE_H)
16329 #include <readline.h>
16335 rl_filename_quoting_function = 0;
16340 if ac_fn_c_try_link
"$LINENO"; then :
16341 pgac_cv_var_rl_filename_quoting_function
=yes
16343 pgac_cv_var_rl_filename_quoting_function
=no
16345 rm -f core conftest.err conftest.
$ac_objext \
16346 conftest
$ac_exeext conftest.
$ac_ext
16348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_rl_filename_quoting_function" >&5
16349 $as_echo "$pgac_cv_var_rl_filename_quoting_function" >&6; }
16350 if test x
"$pgac_cv_var_rl_filename_quoting_function" = x
"yes"; then
16352 $as_echo "#define HAVE_RL_FILENAME_QUOTING_FUNCTION 1" >>confdefs.h
16356 for ac_func
in rl_completion_matches rl_filename_completion_function rl_reset_screen_size
16358 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16359 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16360 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
16361 cat >>confdefs.h
<<_ACEOF
16362 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16368 for ac_func
in append_history history_truncate_file
16370 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16371 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16372 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
16373 cat >>confdefs.h
<<_ACEOF
16374 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16383 # This test makes sure that run tests work at all. Sometimes a shared
16384 # library is found by the linker, but the runtime linker can't find it.
16385 # This check should come after all modifications of compiler or linker
16386 # variables, and before any other run tests.
16387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking test program" >&5
16388 $as_echo_n "checking test program... " >&6; }
16389 if test "$cross_compiling" = yes; then :
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
16391 $as_echo "cross-compiling" >&6; }
16393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16394 /* end confdefs.h. */
16395 int main() { return 0; }
16397 if ac_fn_c_try_run
"$LINENO"; then :
16398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
16399 $as_echo "ok" >&6; }
16401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
16402 $as_echo "failed" >&6; }
16404 Could not execute a simple test program. This may be a problem
16405 related to locating shared libraries. Check the file 'config.log'
16406 for the exact reason." "$LINENO" 5
16408 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16409 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16413 # --------------------
16414 # Run tests below here
16415 # --------------------
16418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long int is 64 bits" >&5
16419 $as_echo_n "checking whether long int is 64 bits... " >&6; }
16420 if ${pgac_cv_type_long_int_64+:} false
; then :
16421 $as_echo_n "(cached) " >&6
16423 if test "$cross_compiling" = yes; then :
16424 # If cross-compiling, check the size reported by the compiler and
16425 # trust that the arithmetic works.
16426 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16427 /* end confdefs.h. */
16432 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
16433 test_array [0] = 0;
16434 return test_array [0];
16440 if ac_fn_c_try_compile
"$LINENO"; then :
16441 pgac_cv_type_long_int_64
=yes
16443 pgac_cv_type_long_int_64
=no
16445 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16447 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16448 /* end confdefs.h. */
16449 typedef long int ac_int64;
16452 * These are globals to discourage the compiler from folding all the
16453 * arithmetic tests down to compile-time constants.
16455 ac_int64 a = 20000001;
16456 ac_int64 b = 40000005;
16458 int does_int64_work()
16462 if (sizeof(ac_int64) != 8)
16463 return 0; /* definitely not the right size */
16465 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
16475 return (! does_int64_work());
16478 if ac_fn_c_try_run
"$LINENO"; then :
16479 pgac_cv_type_long_int_64
=yes
16481 pgac_cv_type_long_int_64
=no
16483 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16484 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_long_int_64" >&5
16489 $as_echo "$pgac_cv_type_long_int_64" >&6; }
16491 HAVE_LONG_INT_64
=$pgac_cv_type_long_int_64
16492 if test x
"$pgac_cv_type_long_int_64" = xyes
; then
16494 $as_echo "#define HAVE_LONG_INT_64 1" >>confdefs.h
16499 if test x
"$HAVE_LONG_INT_64" = x
"yes" ; then
16500 pg_int64_type
="long int"
16502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long long int is 64 bits" >&5
16503 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
16504 if ${pgac_cv_type_long_long_int_64+:} false
; then :
16505 $as_echo_n "(cached) " >&6
16507 if test "$cross_compiling" = yes; then :
16508 # If cross-compiling, check the size reported by the compiler and
16509 # trust that the arithmetic works.
16510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16511 /* end confdefs.h. */
16516 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
16517 test_array [0] = 0;
16518 return test_array [0];
16524 if ac_fn_c_try_compile
"$LINENO"; then :
16525 pgac_cv_type_long_long_int_64
=yes
16527 pgac_cv_type_long_long_int_64
=no
16529 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16532 /* end confdefs.h. */
16533 typedef long long int ac_int64;
16536 * These are globals to discourage the compiler from folding all the
16537 * arithmetic tests down to compile-time constants.
16539 ac_int64 a = 20000001;
16540 ac_int64 b = 40000005;
16542 int does_int64_work()
16546 if (sizeof(ac_int64) != 8)
16547 return 0; /* definitely not the right size */
16549 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
16559 return (! does_int64_work());
16562 if ac_fn_c_try_run
"$LINENO"; then :
16563 pgac_cv_type_long_long_int_64
=yes
16565 pgac_cv_type_long_long_int_64
=no
16567 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16568 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_long_long_int_64" >&5
16573 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
16575 HAVE_LONG_LONG_INT_64
=$pgac_cv_type_long_long_int_64
16576 if test x
"$pgac_cv_type_long_long_int_64" = xyes
; then
16578 $as_echo "#define HAVE_LONG_LONG_INT_64 1" >>confdefs.h
16582 if test x
"$HAVE_LONG_LONG_INT_64" = x
"yes" ; then
16583 pg_int64_type
="long long int"
16585 as_fn_error $?
"Cannot find a working 64-bit integer type." "$LINENO" 5
16590 cat >>confdefs.h
<<_ACEOF
16591 #define PG_INT64_TYPE $pg_int64_type
16595 # Select the printf length modifier that goes with that, too.
16596 if test x
"$pg_int64_type" = x
"long long int" ; then
16597 INT64_MODIFIER
='"ll"'
16599 INT64_MODIFIER
='"l"'
16603 cat >>confdefs.h
<<_ACEOF
16604 #define INT64_MODIFIER $INT64_MODIFIER
16608 # has to be down here, rather than with the other builtins, because
16609 # the test uses PG_INT64_TYPE.
16610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_mul_overflow" >&5
16611 $as_echo_n "checking for __builtin_mul_overflow... " >&6; }
16612 if ${pgac_cv__builtin_op_overflow+:} false
; then :
16613 $as_echo_n "(cached) " >&6
16615 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16616 /* end confdefs.h. */
16618 PG_INT64_TYPE a = 1;
16619 PG_INT64_TYPE b = 1;
16620 PG_INT64_TYPE result;
16626 oflo = __builtin_mul_overflow(a, b, &result);
16631 if ac_fn_c_try_link
"$LINENO"; then :
16632 pgac_cv__builtin_op_overflow
=yes
16634 pgac_cv__builtin_op_overflow
=no
16636 rm -f core conftest.err conftest.
$ac_objext \
16637 conftest
$ac_exeext conftest.
$ac_ext
16639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_op_overflow" >&5
16640 $as_echo "$pgac_cv__builtin_op_overflow" >&6; }
16641 if test x
"$pgac_cv__builtin_op_overflow" = xyes
; then
16643 $as_echo "#define HAVE__BUILTIN_OP_OVERFLOW 1" >>confdefs.h
16647 # Check size of void *, size_t (enables tweaks for > 32bit address space)
16648 # The cast to long int works around a bug in the HP C Compiler
16649 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16650 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16651 # This bug is HP SR number 8606223364.
16652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16653 $as_echo_n "checking size of void *... " >&6; }
16654 if ${ac_cv_sizeof_void_p+:} false
; then :
16655 $as_echo_n "(cached) " >&6
16657 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
16660 if test "$ac_cv_type_void_p" = yes; then
16661 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16662 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16663 as_fn_error
77 "cannot compute sizeof (void *)
16664 See \`config.log' for more details" "$LINENO" 5; }
16666 ac_cv_sizeof_void_p
=0
16671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16672 $as_echo "$ac_cv_sizeof_void_p" >&6; }
16676 cat >>confdefs.h
<<_ACEOF
16677 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16681 # The cast to long int works around a bug in the HP C Compiler
16682 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16683 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16684 # This bug is HP SR number 8606223364.
16685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
16686 $as_echo_n "checking size of size_t... " >&6; }
16687 if ${ac_cv_sizeof_size_t+:} false
; then :
16688 $as_echo_n "(cached) " >&6
16690 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
16693 if test "$ac_cv_type_size_t" = yes; then
16694 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16695 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16696 as_fn_error
77 "cannot compute sizeof (size_t)
16697 See \`config.log' for more details" "$LINENO" 5; }
16699 ac_cv_sizeof_size_t
=0
16704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
16705 $as_echo "$ac_cv_sizeof_size_t" >&6; }
16709 cat >>confdefs.h
<<_ACEOF
16710 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
16714 # The cast to long int works around a bug in the HP C Compiler
16715 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16716 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16717 # This bug is HP SR number 8606223364.
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16719 $as_echo_n "checking size of long... " >&6; }
16720 if ${ac_cv_sizeof_long+:} false
; then :
16721 $as_echo_n "(cached) " >&6
16723 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16726 if test "$ac_cv_type_long" = yes; then
16727 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16728 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16729 as_fn_error
77 "cannot compute sizeof (long)
16730 See \`config.log' for more details" "$LINENO" 5; }
16732 ac_cv_sizeof_long
=0
16737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16738 $as_echo "$ac_cv_sizeof_long" >&6; }
16742 cat >>confdefs.h
<<_ACEOF
16743 #define SIZEOF_LONG $ac_cv_sizeof_long
16748 # Determine memory alignment requirements for the basic C data types.
16750 # The cast to long int works around a bug in the HP C Compiler,
16751 # see AC_CHECK_SIZEOF for more information.
16752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of short" >&5
16753 $as_echo_n "checking alignment of short... " >&6; }
16754 if ${ac_cv_alignof_short+:} false
; then :
16755 $as_echo_n "(cached) " >&6
16757 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_short" "$ac_includes_default
16759 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16761 typedef struct { char x; short y; } ac__type_alignof_;"; then :
16764 if test "$ac_cv_type_short" = yes; then
16765 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16767 as_fn_error
77 "cannot compute alignment of short
16768 See \`config.log' for more details" "$LINENO" 5; }
16770 ac_cv_alignof_short
=0
16775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_short" >&5
16776 $as_echo "$ac_cv_alignof_short" >&6; }
16780 cat >>confdefs.h
<<_ACEOF
16781 #define ALIGNOF_SHORT $ac_cv_alignof_short
16785 # The cast to long int works around a bug in the HP C Compiler,
16786 # see AC_CHECK_SIZEOF for more information.
16787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int" >&5
16788 $as_echo_n "checking alignment of int... " >&6; }
16789 if ${ac_cv_alignof_int+:} false
; then :
16790 $as_echo_n "(cached) " >&6
16792 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_int" "$ac_includes_default
16794 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16796 typedef struct { char x; int y; } ac__type_alignof_;"; then :
16799 if test "$ac_cv_type_int" = yes; then
16800 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16801 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16802 as_fn_error
77 "cannot compute alignment of int
16803 See \`config.log' for more details" "$LINENO" 5; }
16805 ac_cv_alignof_int
=0
16810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_int" >&5
16811 $as_echo "$ac_cv_alignof_int" >&6; }
16815 cat >>confdefs.h
<<_ACEOF
16816 #define ALIGNOF_INT $ac_cv_alignof_int
16820 # The cast to long int works around a bug in the HP C Compiler,
16821 # see AC_CHECK_SIZEOF for more information.
16822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long" >&5
16823 $as_echo_n "checking alignment of long... " >&6; }
16824 if ${ac_cv_alignof_long+:} false
; then :
16825 $as_echo_n "(cached) " >&6
16827 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long" "$ac_includes_default
16829 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16831 typedef struct { char x; long y; } ac__type_alignof_;"; then :
16834 if test "$ac_cv_type_long" = yes; then
16835 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16836 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16837 as_fn_error
77 "cannot compute alignment of long
16838 See \`config.log' for more details" "$LINENO" 5; }
16840 ac_cv_alignof_long
=0
16845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long" >&5
16846 $as_echo "$ac_cv_alignof_long" >&6; }
16850 cat >>confdefs.h
<<_ACEOF
16851 #define ALIGNOF_LONG $ac_cv_alignof_long
16855 if test x
"$HAVE_LONG_LONG_INT_64" = x
"yes" ; then
16856 # The cast to long int works around a bug in the HP C Compiler,
16857 # see AC_CHECK_SIZEOF for more information.
16858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long long int" >&5
16859 $as_echo_n "checking alignment of long long int... " >&6; }
16860 if ${ac_cv_alignof_long_long_int+:} false
; then :
16861 $as_echo_n "(cached) " >&6
16863 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long_long_int" "$ac_includes_default
16865 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16867 typedef struct { char x; long long int y; } ac__type_alignof_;"; then :
16870 if test "$ac_cv_type_long_long_int" = yes; then
16871 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16873 as_fn_error
77 "cannot compute alignment of long long int
16874 See \`config.log' for more details" "$LINENO" 5; }
16876 ac_cv_alignof_long_long_int
=0
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long_long_int" >&5
16882 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
16886 cat >>confdefs.h
<<_ACEOF
16887 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
16892 # The cast to long int works around a bug in the HP C Compiler,
16893 # see AC_CHECK_SIZEOF for more information.
16894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of double" >&5
16895 $as_echo_n "checking alignment of double... " >&6; }
16896 if ${ac_cv_alignof_double+:} false
; then :
16897 $as_echo_n "(cached) " >&6
16899 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_double" "$ac_includes_default
16901 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16903 typedef struct { char x; double y; } ac__type_alignof_;"; then :
16906 if test "$ac_cv_type_double" = yes; then
16907 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16908 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16909 as_fn_error
77 "cannot compute alignment of double
16910 See \`config.log' for more details" "$LINENO" 5; }
16912 ac_cv_alignof_double
=0
16917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_double" >&5
16918 $as_echo "$ac_cv_alignof_double" >&6; }
16922 cat >>confdefs.h
<<_ACEOF
16923 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
16928 # Compute maximum alignment of any basic type.
16929 # We assume long's alignment is at least as strong as char, short, or int;
16930 # but we must check long long (if it is being used for int64) and double.
16931 # Note that we intentionally do not consider any types wider than 64 bits,
16932 # as allowing MAXIMUM_ALIGNOF to exceed 8 would be too much of a penalty
16933 # for disk and memory space.
16935 MAX_ALIGNOF
=$ac_cv_alignof_long
16936 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
16937 MAX_ALIGNOF
=$ac_cv_alignof_double
16939 if test x
"$HAVE_LONG_LONG_INT_64" = xyes
&& test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
16940 MAX_ALIGNOF
="$ac_cv_alignof_long_long_int"
16943 cat >>confdefs.h
<<_ACEOF
16944 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
16949 # Some platforms predefine the types int8, int16, etc. Only check
16950 # a (hopefully) representative subset.
16951 ac_fn_c_check_type
"$LINENO" "int8" "ac_cv_type_int8" "#include <stdio.h>
16953 if test "x$ac_cv_type_int8" = xyes
; then :
16955 cat >>confdefs.h
<<_ACEOF
16956 #define HAVE_INT8 1
16961 ac_fn_c_check_type
"$LINENO" "uint8" "ac_cv_type_uint8" "#include <stdio.h>
16963 if test "x$ac_cv_type_uint8" = xyes
; then :
16965 cat >>confdefs.h
<<_ACEOF
16966 #define HAVE_UINT8 1
16971 ac_fn_c_check_type
"$LINENO" "int64" "ac_cv_type_int64" "#include <stdio.h>
16973 if test "x$ac_cv_type_int64" = xyes
; then :
16975 cat >>confdefs.h
<<_ACEOF
16976 #define HAVE_INT64 1
16981 ac_fn_c_check_type
"$LINENO" "uint64" "ac_cv_type_uint64" "#include <stdio.h>
16983 if test "x$ac_cv_type_uint64" = xyes
; then :
16985 cat >>confdefs.h
<<_ACEOF
16986 #define HAVE_UINT64 1
16993 # Some compilers offer a 128-bit integer scalar type.
16994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __int128" >&5
16995 $as_echo_n "checking for __int128... " >&6; }
16996 if ${pgac_cv__128bit_int+:} false
; then :
16997 $as_echo_n "(cached) " >&6
16999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17000 /* end confdefs.h. */
17003 * We don't actually run this test, just link it to verify that any support
17004 * functions needed for __int128 are present.
17006 * These are globals to discourage the compiler from folding all the
17007 * arithmetic tests down to compile-time constants. We do not have
17008 * convenient support for 128bit literals at this point...
17010 __int128 a = 48828125;
17011 __int128 b = 97656250;
17018 a = (a << 12) + 1; /* 200000000001 */
17019 b = (b << 12) + 5; /* 400000000005 */
17020 /* try the most relevant arithmetic ops */
17023 /* must use the results, else compiler may optimize arithmetic away */
17031 if ac_fn_c_try_link
"$LINENO"; then :
17032 pgac_cv__128bit_int
=yes
17034 pgac_cv__128bit_int
=no
17036 rm -f core conftest.err conftest.
$ac_objext \
17037 conftest
$ac_exeext conftest.
$ac_ext
17039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__128bit_int" >&5
17040 $as_echo "$pgac_cv__128bit_int" >&6; }
17041 if test x
"$pgac_cv__128bit_int" = xyes
; then
17042 # Use of non-default alignment with __int128 tickles bugs in some compilers.
17043 # If not cross-compiling, we can test for bugs and disable use of __int128
17044 # with buggy compilers. If cross-compiling, hope for the best.
17045 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83925
17046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __int128 alignment bug" >&5
17047 $as_echo_n "checking for __int128 alignment bug... " >&6; }
17048 if ${pgac_cv__128bit_int_bug+:} false
; then :
17049 $as_echo_n "(cached) " >&6
17051 if test "$cross_compiling" = yes; then :
17052 pgac_cv__128bit_int_bug
="assuming ok"
17054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17055 /* end confdefs.h. */
17057 /* This must match the corresponding code in c.h: */
17058 #if defined(__GNUC__) || defined(__SUNPRO_C) || defined(__IBMC__)
17059 #define pg_attribute_aligned(a) __attribute__((aligned(a)))
17061 typedef __int128 int128a
17062 #if defined(pg_attribute_aligned)
17063 pg_attribute_aligned(8)
17067 void pass_by_val(void *buffer, int128a par) { holder = par; }
17073 long int i64 = 97656225L << 12;
17075 pass_by_val(main, (int128a) i64);
17084 if ac_fn_c_try_run
"$LINENO"; then :
17085 pgac_cv__128bit_int_bug
=ok
17087 pgac_cv__128bit_int_bug
=broken
17089 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17090 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__128bit_int_bug" >&5
17095 $as_echo "$pgac_cv__128bit_int_bug" >&6; }
17096 if test x
"$pgac_cv__128bit_int_bug" != xbroken
; then
17098 $as_echo "#define PG_INT128_TYPE __int128" >>confdefs.h
17100 # The cast to long int works around a bug in the HP C Compiler,
17101 # see AC_CHECK_SIZEOF for more information.
17102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of PG_INT128_TYPE" >&5
17103 $as_echo_n "checking alignment of PG_INT128_TYPE... " >&6; }
17104 if ${ac_cv_alignof_PG_INT128_TYPE+:} false
; then :
17105 $as_echo_n "(cached) " >&6
17107 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_PG_INT128_TYPE" "$ac_includes_default
17109 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17111 typedef struct { char x; PG_INT128_TYPE y; } ac__type_alignof_;"; then :
17114 if test "$ac_cv_type_PG_INT128_TYPE" = yes; then
17115 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17116 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17117 as_fn_error
77 "cannot compute alignment of PG_INT128_TYPE
17118 See \`config.log' for more details" "$LINENO" 5; }
17120 ac_cv_alignof_PG_INT128_TYPE
=0
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_PG_INT128_TYPE" >&5
17126 $as_echo "$ac_cv_alignof_PG_INT128_TYPE" >&6; }
17130 cat >>confdefs.h
<<_ACEOF
17131 #define ALIGNOF_PG_INT128_TYPE $ac_cv_alignof_PG_INT128_TYPE
17138 # Check for various atomic operations now that we have checked how to declare
17140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync char locking functions" >&5
17141 $as_echo_n "checking for builtin __sync char locking functions... " >&6; }
17142 if ${pgac_cv_gcc_sync_char_tas+:} false
; then :
17143 $as_echo_n "(cached) " >&6
17145 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17146 /* end confdefs.h. */
17152 __sync_lock_test_and_set(&lock, 1);
17153 __sync_lock_release(&lock);
17158 if ac_fn_c_try_link
"$LINENO"; then :
17159 pgac_cv_gcc_sync_char_tas
="yes"
17161 pgac_cv_gcc_sync_char_tas
="no"
17163 rm -f core conftest.err conftest.
$ac_objext \
17164 conftest
$ac_exeext conftest.
$ac_ext
17166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_char_tas" >&5
17167 $as_echo "$pgac_cv_gcc_sync_char_tas" >&6; }
17168 if test x
"$pgac_cv_gcc_sync_char_tas" = x
"yes"; then
17170 $as_echo "#define HAVE_GCC__SYNC_CHAR_TAS 1" >>confdefs.h
17173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int32 locking functions" >&5
17174 $as_echo_n "checking for builtin __sync int32 locking functions... " >&6; }
17175 if ${pgac_cv_gcc_sync_int32_tas+:} false
; then :
17176 $as_echo_n "(cached) " >&6
17178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17179 /* end confdefs.h. */
17185 __sync_lock_test_and_set(&lock, 1);
17186 __sync_lock_release(&lock);
17191 if ac_fn_c_try_link
"$LINENO"; then :
17192 pgac_cv_gcc_sync_int32_tas
="yes"
17194 pgac_cv_gcc_sync_int32_tas
="no"
17196 rm -f core conftest.err conftest.
$ac_objext \
17197 conftest
$ac_exeext conftest.
$ac_ext
17199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int32_tas" >&5
17200 $as_echo "$pgac_cv_gcc_sync_int32_tas" >&6; }
17201 if test x
"$pgac_cv_gcc_sync_int32_tas" = x
"yes"; then
17203 $as_echo "#define HAVE_GCC__SYNC_INT32_TAS 1" >>confdefs.h
17206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int32 atomic operations" >&5
17207 $as_echo_n "checking for builtin __sync int32 atomic operations... " >&6; }
17208 if ${pgac_cv_gcc_sync_int32_cas+:} false
; then :
17209 $as_echo_n "(cached) " >&6
17211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17212 /* end confdefs.h. */
17218 __sync_val_compare_and_swap(&val, 0, 37);
17223 if ac_fn_c_try_link
"$LINENO"; then :
17224 pgac_cv_gcc_sync_int32_cas
="yes"
17226 pgac_cv_gcc_sync_int32_cas
="no"
17228 rm -f core conftest.err conftest.
$ac_objext \
17229 conftest
$ac_exeext conftest.
$ac_ext
17231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int32_cas" >&5
17232 $as_echo "$pgac_cv_gcc_sync_int32_cas" >&6; }
17233 if test x
"$pgac_cv_gcc_sync_int32_cas" = x
"yes"; then
17235 $as_echo "#define HAVE_GCC__SYNC_INT32_CAS 1" >>confdefs.h
17238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int64 atomic operations" >&5
17239 $as_echo_n "checking for builtin __sync int64 atomic operations... " >&6; }
17240 if ${pgac_cv_gcc_sync_int64_cas+:} false
; then :
17241 $as_echo_n "(cached) " >&6
17243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17244 /* end confdefs.h. */
17249 PG_INT64_TYPE lock = 0;
17250 __sync_val_compare_and_swap(&lock, 0, (PG_INT64_TYPE) 37);
17255 if ac_fn_c_try_link
"$LINENO"; then :
17256 pgac_cv_gcc_sync_int64_cas
="yes"
17258 pgac_cv_gcc_sync_int64_cas
="no"
17260 rm -f core conftest.err conftest.
$ac_objext \
17261 conftest
$ac_exeext conftest.
$ac_ext
17263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int64_cas" >&5
17264 $as_echo "$pgac_cv_gcc_sync_int64_cas" >&6; }
17265 if test x
"$pgac_cv_gcc_sync_int64_cas" = x
"yes"; then
17267 $as_echo "#define HAVE_GCC__SYNC_INT64_CAS 1" >>confdefs.h
17270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __atomic int32 atomic operations" >&5
17271 $as_echo_n "checking for builtin __atomic int32 atomic operations... " >&6; }
17272 if ${pgac_cv_gcc_atomic_int32_cas+:} false
; then :
17273 $as_echo_n "(cached) " >&6
17275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17276 /* end confdefs.h. */
17283 __atomic_compare_exchange_n(&val, &expect, 37, 0, __ATOMIC_SEQ_CST, __ATOMIC_RELAXED);
17288 if ac_fn_c_try_link
"$LINENO"; then :
17289 pgac_cv_gcc_atomic_int32_cas
="yes"
17291 pgac_cv_gcc_atomic_int32_cas
="no"
17293 rm -f core conftest.err conftest.
$ac_objext \
17294 conftest
$ac_exeext conftest.
$ac_ext
17296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_atomic_int32_cas" >&5
17297 $as_echo "$pgac_cv_gcc_atomic_int32_cas" >&6; }
17298 if test x
"$pgac_cv_gcc_atomic_int32_cas" = x
"yes"; then
17300 $as_echo "#define HAVE_GCC__ATOMIC_INT32_CAS 1" >>confdefs.h
17303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __atomic int64 atomic operations" >&5
17304 $as_echo_n "checking for builtin __atomic int64 atomic operations... " >&6; }
17305 if ${pgac_cv_gcc_atomic_int64_cas+:} false
; then :
17306 $as_echo_n "(cached) " >&6
17308 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17309 /* end confdefs.h. */
17314 PG_INT64_TYPE val = 0;
17315 PG_INT64_TYPE expect = 0;
17316 __atomic_compare_exchange_n(&val, &expect, 37, 0, __ATOMIC_SEQ_CST, __ATOMIC_RELAXED);
17321 if ac_fn_c_try_link
"$LINENO"; then :
17322 pgac_cv_gcc_atomic_int64_cas
="yes"
17324 pgac_cv_gcc_atomic_int64_cas
="no"
17326 rm -f core conftest.err conftest.
$ac_objext \
17327 conftest
$ac_exeext conftest.
$ac_ext
17329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_atomic_int64_cas" >&5
17330 $as_echo "$pgac_cv_gcc_atomic_int64_cas" >&6; }
17331 if test x
"$pgac_cv_gcc_atomic_int64_cas" = x
"yes"; then
17333 $as_echo "#define HAVE_GCC__ATOMIC_INT64_CAS 1" >>confdefs.h
17338 # Check for x86 cpuid instruction
17339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __get_cpuid" >&5
17340 $as_echo_n "checking for __get_cpuid... " >&6; }
17341 if ${pgac_cv__get_cpuid+:} false
; then :
17342 $as_echo_n "(cached) " >&6
17344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17345 /* end confdefs.h. */
17350 unsigned int exx[4] = {0, 0, 0, 0};
17351 __get_cpuid(1, &exx[0], &exx[1], &exx[2], &exx[3]);
17357 if ac_fn_c_try_link
"$LINENO"; then :
17358 pgac_cv__get_cpuid
="yes"
17360 pgac_cv__get_cpuid
="no"
17362 rm -f core conftest.err conftest.
$ac_objext \
17363 conftest
$ac_exeext conftest.
$ac_ext
17365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__get_cpuid" >&5
17366 $as_echo "$pgac_cv__get_cpuid" >&6; }
17367 if test x
"$pgac_cv__get_cpuid" = x
"yes"; then
17369 $as_echo "#define HAVE__GET_CPUID 1" >>confdefs.h
17373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __cpuid" >&5
17374 $as_echo_n "checking for __cpuid... " >&6; }
17375 if ${pgac_cv__cpuid+:} false
; then :
17376 $as_echo_n "(cached) " >&6
17378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17379 /* end confdefs.h. */
17380 #include <intrin.h>
17384 unsigned int exx[4] = {0, 0, 0, 0};
17385 __get_cpuid(exx[0], 1);
17391 if ac_fn_c_try_link
"$LINENO"; then :
17392 pgac_cv__cpuid
="yes"
17394 pgac_cv__cpuid
="no"
17396 rm -f core conftest.err conftest.
$ac_objext \
17397 conftest
$ac_exeext conftest.
$ac_ext
17399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__cpuid" >&5
17400 $as_echo "$pgac_cv__cpuid" >&6; }
17401 if test x
"$pgac_cv__cpuid" = x
"yes"; then
17403 $as_echo "#define HAVE__CPUID 1" >>confdefs.h
17407 # Check for Intel SSE 4.2 intrinsics to do CRC calculations.
17409 # First check if the _mm_crc32_u8 and _mm_crc32_u64 intrinsics can be used
17410 # with the default compiler flags. If not, check if adding the -msse4.2
17411 # flag helps. CFLAGS_SSE42 is set to -msse4.2 if that's required.
17412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=" >&5
17413 $as_echo_n "checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=... " >&6; }
17414 if ${pgac_cv_sse42_crc32_intrinsics_+:} false
; then :
17415 $as_echo_n "(cached) " >&6
17417 pgac_save_CFLAGS
=$CFLAGS
17418 CFLAGS
="$pgac_save_CFLAGS "
17419 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17420 /* end confdefs.h. */
17421 #include <nmmintrin.h>
17425 unsigned int crc = 0;
17426 crc = _mm_crc32_u8(crc, 0);
17427 crc = _mm_crc32_u32(crc, 0);
17428 /* return computed value, to prevent the above being optimized away */
17434 if ac_fn_c_try_link
"$LINENO"; then :
17435 pgac_cv_sse42_crc32_intrinsics_
=yes
17437 pgac_cv_sse42_crc32_intrinsics_
=no
17439 rm -f core conftest.err conftest.
$ac_objext \
17440 conftest
$ac_exeext conftest.
$ac_ext
17441 CFLAGS
="$pgac_save_CFLAGS"
17443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_sse42_crc32_intrinsics_" >&5
17444 $as_echo "$pgac_cv_sse42_crc32_intrinsics_" >&6; }
17445 if test x
"$pgac_cv_sse42_crc32_intrinsics_" = x
"yes"; then
17447 pgac_sse42_crc32_intrinsics
=yes
17450 if test x
"$pgac_sse42_crc32_intrinsics" != x
"yes"; then
17451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=-msse4.2" >&5
17452 $as_echo_n "checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=-msse4.2... " >&6; }
17453 if ${pgac_cv_sse42_crc32_intrinsics__msse4_2+:} false
; then :
17454 $as_echo_n "(cached) " >&6
17456 pgac_save_CFLAGS
=$CFLAGS
17457 CFLAGS
="$pgac_save_CFLAGS -msse4.2"
17458 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17459 /* end confdefs.h. */
17460 #include <nmmintrin.h>
17464 unsigned int crc = 0;
17465 crc = _mm_crc32_u8(crc, 0);
17466 crc = _mm_crc32_u32(crc, 0);
17467 /* return computed value, to prevent the above being optimized away */
17473 if ac_fn_c_try_link
"$LINENO"; then :
17474 pgac_cv_sse42_crc32_intrinsics__msse4_2
=yes
17476 pgac_cv_sse42_crc32_intrinsics__msse4_2
=no
17478 rm -f core conftest.err conftest.
$ac_objext \
17479 conftest
$ac_exeext conftest.
$ac_ext
17480 CFLAGS
="$pgac_save_CFLAGS"
17482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_sse42_crc32_intrinsics__msse4_2" >&5
17483 $as_echo "$pgac_cv_sse42_crc32_intrinsics__msse4_2" >&6; }
17484 if test x
"$pgac_cv_sse42_crc32_intrinsics__msse4_2" = x
"yes"; then
17485 CFLAGS_SSE42
="-msse4.2"
17486 pgac_sse42_crc32_intrinsics
=yes
17492 # Are we targeting a processor that supports SSE 4.2? gcc, clang and icc all
17493 # define __SSE4_2__ in that case.
17494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17495 /* end confdefs.h. */
17502 #error __SSE4_2__ not defined
17509 if ac_fn_c_try_compile
"$LINENO"; then :
17512 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17514 # Check for ARMv8 CRC Extension intrinsics to do CRC calculations.
17516 # First check if __crc32c* intrinsics can be used with the default compiler
17517 # flags. If not, check if adding -march=armv8-a+crc flag helps.
17518 # CFLAGS_ARMV8_CRC32C is set if the extra flag is required.
17519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=" >&5
17520 $as_echo_n "checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=... " >&6; }
17521 if ${pgac_cv_armv8_crc32c_intrinsics_+:} false
; then :
17522 $as_echo_n "(cached) " >&6
17524 pgac_save_CFLAGS
=$CFLAGS
17525 CFLAGS
="$pgac_save_CFLAGS "
17526 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17527 /* end confdefs.h. */
17528 #include <arm_acle.h>
17532 unsigned int crc = 0;
17533 crc = __crc32cb(crc, 0);
17534 crc = __crc32ch(crc, 0);
17535 crc = __crc32cw(crc, 0);
17536 crc = __crc32cd(crc, 0);
17537 /* return computed value, to prevent the above being optimized away */
17543 if ac_fn_c_try_link
"$LINENO"; then :
17544 pgac_cv_armv8_crc32c_intrinsics_
=yes
17546 pgac_cv_armv8_crc32c_intrinsics_
=no
17548 rm -f core conftest.err conftest.
$ac_objext \
17549 conftest
$ac_exeext conftest.
$ac_ext
17550 CFLAGS
="$pgac_save_CFLAGS"
17552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_armv8_crc32c_intrinsics_" >&5
17553 $as_echo "$pgac_cv_armv8_crc32c_intrinsics_" >&6; }
17554 if test x
"$pgac_cv_armv8_crc32c_intrinsics_" = x
"yes"; then
17555 CFLAGS_ARMV8_CRC32C
=""
17556 pgac_armv8_crc32c_intrinsics
=yes
17559 if test x
"$pgac_armv8_crc32c_intrinsics" != x
"yes"; then
17560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=-march=armv8-a+crc" >&5
17561 $as_echo_n "checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=-march=armv8-a+crc... " >&6; }
17562 if ${pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc+:} false
; then :
17563 $as_echo_n "(cached) " >&6
17565 pgac_save_CFLAGS
=$CFLAGS
17566 CFLAGS
="$pgac_save_CFLAGS -march=armv8-a+crc"
17567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17568 /* end confdefs.h. */
17569 #include <arm_acle.h>
17573 unsigned int crc = 0;
17574 crc = __crc32cb(crc, 0);
17575 crc = __crc32ch(crc, 0);
17576 crc = __crc32cw(crc, 0);
17577 crc = __crc32cd(crc, 0);
17578 /* return computed value, to prevent the above being optimized away */
17584 if ac_fn_c_try_link
"$LINENO"; then :
17585 pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc
=yes
17587 pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc
=no
17589 rm -f core conftest.err conftest.
$ac_objext \
17590 conftest
$ac_exeext conftest.
$ac_ext
17591 CFLAGS
="$pgac_save_CFLAGS"
17593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc" >&5
17594 $as_echo "$pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc" >&6; }
17595 if test x
"$pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc" = x
"yes"; then
17596 CFLAGS_ARMV8_CRC32C
="-march=armv8-a+crc"
17597 pgac_armv8_crc32c_intrinsics
=yes
17603 # Select CRC-32C implementation.
17605 # If we are targeting a processor that has Intel SSE 4.2 instructions, we can
17606 # use the special CRC instructions for calculating CRC-32C. If we're not
17607 # targeting such a processor, but we can nevertheless produce code that uses
17608 # the SSE intrinsics, perhaps with some extra CFLAGS, compile both
17609 # implementations and select which one to use at runtime, depending on whether
17610 # SSE 4.2 is supported by the processor we're running on.
17612 # Similarly, if we are targeting an ARM processor that has the CRC
17613 # instructions that are part of the ARMv8 CRC Extension, use them. And if
17614 # we're not targeting such a processor, but can nevertheless produce code that
17615 # uses the CRC instructions, compile both, and select at runtime.
17617 # You can override this logic by setting the appropriate USE_*_CRC32 flag to 1
17618 # in the template or configure command line.
17619 if test x
"$USE_SLICING_BY_8_CRC32C" = x
"" && test x
"$USE_SSE42_CRC32C" = x
"" && test x
"$USE_SSE42_CRC32C_WITH_RUNTIME_CHECK" = x
"" && test x
"$USE_ARMV8_CRC32C" = x
"" && test x
"$USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK" = x
""; then
17620 # Use Intel SSE 4.2 if available.
17621 if test x
"$pgac_sse42_crc32_intrinsics" = x
"yes" && test x
"$SSE4_2_TARGETED" = x
"1" ; then
17624 # Intel SSE 4.2, with runtime check? The CPUID instruction is needed for
17625 # the runtime check.
17626 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
17627 USE_SSE42_CRC32C_WITH_RUNTIME_CHECK
=1
17629 # Use ARM CRC Extension if available.
17630 if test x
"$pgac_armv8_crc32c_intrinsics" = x
"yes" && test x
"$CFLAGS_ARMV8_CRC32C" = x
""; then
17633 # ARM CRC Extension, with runtime check?
17634 if test x
"$pgac_armv8_crc32c_intrinsics" = x
"yes"; then
17635 USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK
=1
17637 # fall back to slicing-by-8 algorithm, which doesn't require any
17638 # special CPU support.
17639 USE_SLICING_BY_8_CRC32C
=1
17646 # Set PG_CRC32C_OBJS appropriately depending on the selected implementation.
17647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which CRC-32C implementation to use" >&5
17648 $as_echo_n "checking which CRC-32C implementation to use... " >&6; }
17649 if test x
"$USE_SSE42_CRC32C" = x
"1"; then
17651 $as_echo "#define USE_SSE42_CRC32C 1" >>confdefs.h
17653 PG_CRC32C_OBJS
="pg_crc32c_sse42.o"
17654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SSE 4.2" >&5
17655 $as_echo "SSE 4.2" >&6; }
17657 if test x
"$USE_SSE42_CRC32C_WITH_RUNTIME_CHECK" = x
"1"; then
17659 $as_echo "#define USE_SSE42_CRC32C_WITH_RUNTIME_CHECK 1" >>confdefs.h
17661 PG_CRC32C_OBJS
="pg_crc32c_sse42.o pg_crc32c_sb8.o pg_crc32c_sse42_choose.o"
17662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SSE 4.2 with runtime check" >&5
17663 $as_echo "SSE 4.2 with runtime check" >&6; }
17665 if test x
"$USE_ARMV8_CRC32C" = x
"1"; then
17667 $as_echo "#define USE_ARMV8_CRC32C 1" >>confdefs.h
17669 PG_CRC32C_OBJS
="pg_crc32c_armv8.o"
17670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ARMv8 CRC instructions" >&5
17671 $as_echo "ARMv8 CRC instructions" >&6; }
17673 if test x
"$USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK" = x
"1"; then
17675 $as_echo "#define USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK 1" >>confdefs.h
17677 PG_CRC32C_OBJS
="pg_crc32c_armv8.o pg_crc32c_sb8.o pg_crc32c_armv8_choose.o"
17678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ARMv8 CRC instructions with runtime check" >&5
17679 $as_echo "ARMv8 CRC instructions with runtime check" >&6; }
17682 $as_echo "#define USE_SLICING_BY_8_CRC32C 1" >>confdefs.h
17684 PG_CRC32C_OBJS
="pg_crc32c_sb8.o"
17685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: slicing-by-8" >&5
17686 $as_echo "slicing-by-8" >&6; }
17694 # Select semaphore implementation type.
17695 if test "$PORTNAME" != "win32"; then
17696 if test x
"$PREFERRED_SEMAPHORES" = x
"NAMED_POSIX" ; then
17697 # Need sem_open for this
17698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_open" >&5
17699 $as_echo_n "checking for library containing sem_open... " >&6; }
17700 if ${ac_cv_search_sem_open+:} false
; then :
17701 $as_echo_n "(cached) " >&6
17703 ac_func_search_save_LIBS
=$LIBS
17704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17705 /* end confdefs.h. */
17707 /* Override any GCC internal prototype to avoid an error.
17708 Use char because int might match the return type of a GCC
17709 builtin and then its argument prototype would still apply. */
17717 return sem_open ();
17722 for ac_lib
in '' rt pthread
; do
17723 if test -z "$ac_lib"; then
17724 ac_res
="none required"
17727 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
17729 if ac_fn_c_try_link
"$LINENO"; then :
17730 ac_cv_search_sem_open
=$ac_res
17732 rm -f core conftest.err conftest.
$ac_objext \
17734 if ${ac_cv_search_sem_open+:} false
; then :
17738 if ${ac_cv_search_sem_open+:} false
; then :
17741 ac_cv_search_sem_open
=no
17743 rm conftest.
$ac_ext
17744 LIBS
=$ac_func_search_save_LIBS
17746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_open" >&5
17747 $as_echo "$ac_cv_search_sem_open" >&6; }
17748 ac_res
=$ac_cv_search_sem_open
17749 if test "$ac_res" != no
; then :
17750 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
17751 USE_NAMED_POSIX_SEMAPHORES
=1
17755 if test x
"$PREFERRED_SEMAPHORES" = x
"UNNAMED_POSIX" ; then
17756 # Need sem_init for this
17757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
17758 $as_echo_n "checking for library containing sem_init... " >&6; }
17759 if ${ac_cv_search_sem_init+:} false
; then :
17760 $as_echo_n "(cached) " >&6
17762 ac_func_search_save_LIBS
=$LIBS
17763 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17764 /* end confdefs.h. */
17766 /* Override any GCC internal prototype to avoid an error.
17767 Use char because int might match the return type of a GCC
17768 builtin and then its argument prototype would still apply. */
17776 return sem_init ();
17781 for ac_lib
in '' rt pthread
; do
17782 if test -z "$ac_lib"; then
17783 ac_res
="none required"
17786 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
17788 if ac_fn_c_try_link
"$LINENO"; then :
17789 ac_cv_search_sem_init
=$ac_res
17791 rm -f core conftest.err conftest.
$ac_objext \
17793 if ${ac_cv_search_sem_init+:} false
; then :
17797 if ${ac_cv_search_sem_init+:} false
; then :
17800 ac_cv_search_sem_init
=no
17802 rm conftest.
$ac_ext
17803 LIBS
=$ac_func_search_save_LIBS
17805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
17806 $as_echo "$ac_cv_search_sem_init" >&6; }
17807 ac_res
=$ac_cv_search_sem_init
17808 if test "$ac_res" != no
; then :
17809 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
17810 USE_UNNAMED_POSIX_SEMAPHORES
=1
17814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which semaphore API to use" >&5
17815 $as_echo_n "checking which semaphore API to use... " >&6; }
17816 if test x
"$USE_NAMED_POSIX_SEMAPHORES" = x
"1" ; then
17818 $as_echo "#define USE_NAMED_POSIX_SEMAPHORES 1" >>confdefs.h
17820 SEMA_IMPLEMENTATION
="src/backend/port/posix_sema.c"
17821 sematype
="named POSIX"
17823 if test x
"$USE_UNNAMED_POSIX_SEMAPHORES" = x
"1" ; then
17825 $as_echo "#define USE_UNNAMED_POSIX_SEMAPHORES 1" >>confdefs.h
17827 SEMA_IMPLEMENTATION
="src/backend/port/posix_sema.c"
17828 sematype
="unnamed POSIX"
17831 $as_echo "#define USE_SYSV_SEMAPHORES 1" >>confdefs.h
17833 SEMA_IMPLEMENTATION
="src/backend/port/sysv_sema.c"
17834 sematype
="System V"
17837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sematype" >&5
17838 $as_echo "$sematype" >&6; }
17841 $as_echo "#define USE_WIN32_SEMAPHORES 1" >>confdefs.h
17843 SEMA_IMPLEMENTATION
="src/backend/port/win32_sema.c"
17847 # Select shared-memory implementation type.
17848 if test "$PORTNAME" != "win32"; then
17850 $as_echo "#define USE_SYSV_SHARED_MEMORY 1" >>confdefs.h
17852 SHMEM_IMPLEMENTATION
="src/backend/port/sysv_shmem.c"
17855 $as_echo "#define USE_WIN32_SHARED_MEMORY 1" >>confdefs.h
17857 SHMEM_IMPLEMENTATION
="src/backend/port/win32_shmem.c"
17860 # Select random number source
17862 # You can override this logic by setting the appropriate USE_*RANDOM flag to 1
17863 # in the template or configure command line.
17865 # If not selected manually, try to select a source automatically.
17866 if test x
"$USE_OPENSSL_RANDOM" = x
"" && test x
"$USE_WIN32_RANDOM" = x
"" && test x
"$USE_DEV_URANDOM" = x
"" ; then
17867 if test x
"$with_openssl" = x
"yes" ; then
17868 USE_OPENSSL_RANDOM
=1
17869 elif test "$PORTNAME" = "win32" ; then
17872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/urandom" >&5
17873 $as_echo_n "checking for /dev/urandom... " >&6; }
17874 if ${ac_cv_file__dev_urandom+:} false
; then :
17875 $as_echo_n "(cached) " >&6
17877 test "$cross_compiling" = yes &&
17878 as_fn_error $?
"cannot check for file existence when cross compiling" "$LINENO" 5
17879 if test -r "/dev/urandom"; then
17880 ac_cv_file__dev_urandom
=yes
17882 ac_cv_file__dev_urandom
=no
17885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_urandom" >&5
17886 $as_echo "$ac_cv_file__dev_urandom" >&6; }
17887 if test "x$ac_cv_file__dev_urandom" = xyes
; then :
17892 if test x
"$ac_cv_file__dev_urandom" = x
"yes" ; then
17898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which random number source to use" >&5
17899 $as_echo_n "checking which random number source to use... " >&6; }
17900 if test x
"$USE_OPENSSL_RANDOM" = x
"1" ; then
17902 $as_echo "#define USE_OPENSSL_RANDOM 1" >>confdefs.h
17904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenSSL" >&5
17905 $as_echo "OpenSSL" >&6; }
17906 elif test x
"$USE_WIN32_RANDOM" = x
"1" ; then
17908 $as_echo "#define USE_WIN32_RANDOM 1" >>confdefs.h
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows native" >&5
17911 $as_echo "Windows native" >&6; }
17912 elif test x
"$USE_DEV_URANDOM" = x
"1" ; then
17914 $as_echo "#define USE_DEV_URANDOM 1" >>confdefs.h
17916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /dev/urandom" >&5
17917 $as_echo "/dev/urandom" >&6; }
17920 no source of strong random numbers was found
17921 PostgreSQL can use OpenSSL or /dev/urandom as a source of random numbers." "$LINENO" 5
17924 # If not set in template file, set bytes to use libc memset()
17925 if test x
"$MEMSET_LOOP_LIMIT" = x
"" ; then
17926 MEMSET_LOOP_LIMIT
=1024
17929 cat >>confdefs.h
<<_ACEOF
17930 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
17935 if test "$enable_nls" = yes ; then
17937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind_textdomain_codeset" >&5
17938 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
17939 if ${ac_cv_search_bind_textdomain_codeset+:} false
; then :
17940 $as_echo_n "(cached) " >&6
17942 ac_func_search_save_LIBS
=$LIBS
17943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17944 /* end confdefs.h. */
17946 /* Override any GCC internal prototype to avoid an error.
17947 Use char because int might match the return type of a GCC
17948 builtin and then its argument prototype would still apply. */
17952 char bind_textdomain_codeset ();
17956 return bind_textdomain_codeset ();
17961 for ac_lib
in '' intl
; do
17962 if test -z "$ac_lib"; then
17963 ac_res
="none required"
17966 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
17968 if ac_fn_c_try_link
"$LINENO"; then :
17969 ac_cv_search_bind_textdomain_codeset
=$ac_res
17971 rm -f core conftest.err conftest.
$ac_objext \
17973 if ${ac_cv_search_bind_textdomain_codeset+:} false
; then :
17977 if ${ac_cv_search_bind_textdomain_codeset+:} false
; then :
17980 ac_cv_search_bind_textdomain_codeset
=no
17982 rm conftest.
$ac_ext
17983 LIBS
=$ac_func_search_save_LIBS
17985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind_textdomain_codeset" >&5
17986 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
17987 ac_res
=$ac_cv_search_bind_textdomain_codeset
17988 if test "$ac_res" != no
; then :
17989 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
17992 as_fn_error $?
"a gettext implementation is required for NLS" "$LINENO" 5
17995 ac_fn_c_check_header_mongrel
"$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
17996 if test "x$ac_cv_header_libintl_h" = xyes
; then :
17999 as_fn_error $?
"header file <libintl.h> is required for NLS" "$LINENO" 5
18003 if test -z "$MSGFMT"; then
18004 for ac_prog
in msgfmt
18006 # Extract the first word of "$ac_prog", so it can be a program name with args.
18007 set dummy
$ac_prog; ac_word
=$2
18008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18009 $as_echo_n "checking for $ac_word... " >&6; }
18010 if ${ac_cv_path_MSGFMT+:} false
; then :
18011 $as_echo_n "(cached) " >&6
18015 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
18018 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18019 for as_dir
in $PATH
18022 test -z "$as_dir" && as_dir
=.
18023 for ac_exec_ext
in '' $ac_executable_extensions; do
18024 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18025 ac_cv_path_MSGFMT
="$as_dir/$ac_word$ac_exec_ext"
18026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18036 MSGFMT
=$ac_cv_path_MSGFMT
18037 if test -n "$MSGFMT"; then
18038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18039 $as_echo "$MSGFMT" >&6; }
18041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18042 $as_echo "no" >&6; }
18046 test -n "$MSGFMT" && break
18050 # Report the value of MSGFMT in configure's output in all cases.
18051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSGFMT" >&5
18052 $as_echo_n "checking for MSGFMT... " >&6; }
18053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18054 $as_echo "$MSGFMT" >&6; }
18057 if test -z "$MSGFMT"; then
18058 as_fn_error $?
"msgfmt is required for NLS" "$LINENO" 5
18060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msgfmt flags" >&5
18061 $as_echo_n "checking for msgfmt flags... " >&6; }
18062 if ${pgac_cv_msgfmt_flags+:} false
; then :
18063 $as_echo_n "(cached) " >&6
18065 if test x
"$MSGFMT" != x
"" && "$MSGFMT" --version 2>&1 |
grep "GNU" >/dev
/null
; then
18066 pgac_cv_msgfmt_flags
=-c
18069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_msgfmt_flags" >&5
18070 $as_echo "$pgac_cv_msgfmt_flags" >&6; }
18071 MSGFMT_FLAGS
=$pgac_cv_msgfmt_flags
18073 if test -z "$MSGMERGE"; then
18074 for ac_prog
in msgmerge
18076 # Extract the first word of "$ac_prog", so it can be a program name with args.
18077 set dummy
$ac_prog; ac_word
=$2
18078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18079 $as_echo_n "checking for $ac_word... " >&6; }
18080 if ${ac_cv_path_MSGMERGE+:} false
; then :
18081 $as_echo_n "(cached) " >&6
18085 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
18088 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18089 for as_dir
in $PATH
18092 test -z "$as_dir" && as_dir
=.
18093 for ac_exec_ext
in '' $ac_executable_extensions; do
18094 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18095 ac_cv_path_MSGMERGE
="$as_dir/$ac_word$ac_exec_ext"
18096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18106 MSGMERGE
=$ac_cv_path_MSGMERGE
18107 if test -n "$MSGMERGE"; then
18108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
18109 $as_echo "$MSGMERGE" >&6; }
18111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18112 $as_echo "no" >&6; }
18116 test -n "$MSGMERGE" && break
18120 # Report the value of MSGMERGE in configure's output in all cases.
18121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSGMERGE" >&5
18122 $as_echo_n "checking for MSGMERGE... " >&6; }
18123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
18124 $as_echo "$MSGMERGE" >&6; }
18127 if test -z "$XGETTEXT"; then
18128 for ac_prog
in xgettext
18130 # Extract the first word of "$ac_prog", so it can be a program name with args.
18131 set dummy
$ac_prog; ac_word
=$2
18132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18133 $as_echo_n "checking for $ac_word... " >&6; }
18134 if ${ac_cv_path_XGETTEXT+:} false
; then :
18135 $as_echo_n "(cached) " >&6
18139 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
18142 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18143 for as_dir
in $PATH
18146 test -z "$as_dir" && as_dir
=.
18147 for ac_exec_ext
in '' $ac_executable_extensions; do
18148 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18149 ac_cv_path_XGETTEXT
="$as_dir/$ac_word$ac_exec_ext"
18150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18160 XGETTEXT
=$ac_cv_path_XGETTEXT
18161 if test -n "$XGETTEXT"; then
18162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
18163 $as_echo "$XGETTEXT" >&6; }
18165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18166 $as_echo "no" >&6; }
18170 test -n "$XGETTEXT" && break
18174 # Report the value of XGETTEXT in configure's output in all cases.
18175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGETTEXT" >&5
18176 $as_echo_n "checking for XGETTEXT... " >&6; }
18177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
18178 $as_echo "$XGETTEXT" >&6; }
18184 # Check for Tcl configuration script tclConfig.sh
18185 if test "$with_tcl" = yes; then
18186 if test -z "$TCLSH"; then
18187 for ac_prog
in tclsh tcl tclsh8.6 tclsh86 tclsh8.5 tclsh85 tclsh8.4 tclsh84
18189 # Extract the first word of "$ac_prog", so it can be a program name with args.
18190 set dummy
$ac_prog; ac_word
=$2
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18192 $as_echo_n "checking for $ac_word... " >&6; }
18193 if ${ac_cv_path_TCLSH+:} false
; then :
18194 $as_echo_n "(cached) " >&6
18198 ac_cv_path_TCLSH
="$TCLSH" # Let the user override the test with a path.
18201 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18202 for as_dir
in $PATH
18205 test -z "$as_dir" && as_dir
=.
18206 for ac_exec_ext
in '' $ac_executable_extensions; do
18207 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18208 ac_cv_path_TCLSH
="$as_dir/$ac_word$ac_exec_ext"
18209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18219 TCLSH
=$ac_cv_path_TCLSH
18220 if test -n "$TCLSH"; then
18221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
18222 $as_echo "$TCLSH" >&6; }
18224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18225 $as_echo "no" >&6; }
18229 test -n "$TCLSH" && break
18233 # Report the value of TCLSH in configure's output in all cases.
18234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCLSH" >&5
18235 $as_echo_n "checking for TCLSH... " >&6; }
18236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
18237 $as_echo "$TCLSH" >&6; }
18240 if test x
"$TCLSH" = x
""; then
18241 as_fn_error $?
"Tcl shell not found" "$LINENO" 5
18244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclConfig.sh" >&5
18245 $as_echo_n "checking for tclConfig.sh... " >&6; }
18246 # Let user override test
18247 if test -z "$TCL_CONFIG_SH"; then
18248 pgac_test_dirs
="$with_tclconfig"
18250 set X
$pgac_test_dirs; shift
18251 if test $# -eq 0; then
18252 test -z "$TCLSH" && as_fn_error $?
"unable to locate tclConfig.sh because no Tcl shell was found" "$LINENO" 5
18253 pgac_test_dirs
=`echo 'puts $auto_path' | $TCLSH`
18254 # On newer macOS, $auto_path frequently doesn't include the place
18255 # where tclConfig.sh actually lives. Append that to the end, so as not
18256 # to break cases where a non-default Tcl installation is being used.
18257 if test -d "$PG_SYSROOT/System/Library/Frameworks/Tcl.framework" ; then
18258 pgac_test_dirs
="$pgac_test_dirs $PG_SYSROOT/System/Library/Frameworks/Tcl.framework"
18260 set X
$pgac_test_dirs; shift
18264 if test -r "$pgac_dir/tclConfig.sh"; then
18265 TCL_CONFIG_SH
=$pgac_dir/tclConfig.sh
18271 if test -z "$TCL_CONFIG_SH"; then
18272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18273 $as_echo "no" >&6; }
18274 as_fn_error $?
"file 'tclConfig.sh' is required for Tcl" "$LINENO" 5
18276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCL_CONFIG_SH" >&5
18277 $as_echo "$TCL_CONFIG_SH" >&6; }
18283 eval TCL_INCLUDE_SPEC
=\"$TCL_INCLUDE_SPEC\"
18284 eval TCL_LIBS
=\"$TCL_LIBS\"
18285 eval TCL_LIB_SPEC
=\"$TCL_LIB_SPEC\"
18286 eval TCL_SHARED_BUILD
=\"$TCL_SHARED_BUILD\"
18288 if test "$TCL_SHARED_BUILD" != 1; then
18289 as_fn_error $?
"cannot build PL/Tcl because Tcl is not a shared library
18290 Use --without-tcl to disable building PL/Tcl." "$LINENO" 5
18292 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
18293 ac_save_CPPFLAGS
=$CPPFLAGS
18294 CPPFLAGS
="$TCL_INCLUDE_SPEC $CPPFLAGS"
18295 ac_fn_c_check_header_mongrel
"$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
18296 if test "x$ac_cv_header_tcl_h" = xyes
; then :
18299 as_fn_error $?
"header file <tcl.h> is required for Tcl" "$LINENO" 5
18303 CPPFLAGS
=$ac_save_CPPFLAGS
18306 # check for <perl.h>
18307 if test "$with_perl" = yes; then
18308 ac_save_CPPFLAGS
=$CPPFLAGS
18309 CPPFLAGS
="$CPPFLAGS $perl_includespec"
18310 ac_fn_c_check_header_compile
"$LINENO" "perl.h" "ac_cv_header_perl_h" "#include <EXTERN.h>
18312 if test "x$ac_cv_header_perl_h" = xyes
; then :
18315 as_fn_error $?
"header file <perl.h> is required for Perl" "$LINENO" 5
18319 # While we're at it, check that we can link to libperl.
18320 # On most platforms, if perl.h is there then libperl.so will be too, but at
18321 # this writing Debian packages them separately. There is no known reason to
18322 # waste cycles on separate probes for the Tcl or Python libraries, though.
18323 # On some Red Hat platforms, the link attempt can fail if we don't use
18324 # CFLAGS_SL while building the test program.
18325 ac_save_CFLAGS
=$CFLAGS
18326 CFLAGS
="$CFLAGS $CFLAGS_SL"
18327 pgac_save_LIBS
=$LIBS
18328 LIBS
="$perl_embed_ldflags"
18329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libperl" >&5
18330 $as_echo_n "checking for libperl... " >&6; }
18331 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18332 /* end confdefs.h. */
18334 #include <EXTERN.h>
18345 if ac_fn_c_try_link
"$LINENO"; then :
18346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18347 $as_echo "yes" >&6; }
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18350 $as_echo "no" >&6; }
18351 as_fn_error $?
"libperl library is required for Perl" "$LINENO" 5
18353 rm -f core conftest.err conftest.
$ac_objext \
18354 conftest
$ac_exeext conftest.
$ac_ext
18355 LIBS
=$pgac_save_LIBS
18356 CFLAGS
=$ac_save_CFLAGS
18357 CPPFLAGS
=$ac_save_CPPFLAGS
18360 # check for <Python.h>
18361 if test "$with_python" = yes; then
18362 ac_save_CPPFLAGS
=$CPPFLAGS
18363 CPPFLAGS
="$python_includespec $CPPFLAGS"
18364 ac_fn_c_check_header_mongrel
"$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
18365 if test "x$ac_cv_header_Python_h" = xyes
; then :
18368 as_fn_error $?
"header file <Python.h> is required for Python" "$LINENO" 5
18372 CPPFLAGS
=$ac_save_CPPFLAGS
18376 # Check for DocBook and tools
18378 if test -z "$XMLLINT"; then
18379 for ac_prog
in xmllint
18381 # Extract the first word of "$ac_prog", so it can be a program name with args.
18382 set dummy
$ac_prog; ac_word
=$2
18383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18384 $as_echo_n "checking for $ac_word... " >&6; }
18385 if ${ac_cv_path_XMLLINT+:} false
; then :
18386 $as_echo_n "(cached) " >&6
18390 ac_cv_path_XMLLINT
="$XMLLINT" # Let the user override the test with a path.
18393 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18394 for as_dir
in $PATH
18397 test -z "$as_dir" && as_dir
=.
18398 for ac_exec_ext
in '' $ac_executable_extensions; do
18399 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18400 ac_cv_path_XMLLINT
="$as_dir/$ac_word$ac_exec_ext"
18401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18411 XMLLINT
=$ac_cv_path_XMLLINT
18412 if test -n "$XMLLINT"; then
18413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
18414 $as_echo "$XMLLINT" >&6; }
18416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18417 $as_echo "no" >&6; }
18421 test -n "$XMLLINT" && break
18425 # Report the value of XMLLINT in configure's output in all cases.
18426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMLLINT" >&5
18427 $as_echo_n "checking for XMLLINT... " >&6; }
18428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
18429 $as_echo "$XMLLINT" >&6; }
18433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DocBook XML V4.5" >&5
18434 $as_echo_n "checking for DocBook XML V4.5... " >&6; }
18435 if ${pgac_cv_check_docbook+:} false
; then :
18436 $as_echo_n "(cached) " >&6
18438 cat >conftest.xml
<<EOF
18439 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
18441 <title>test</title>
18443 <title>random</title>
18445 <title>testsect</title>
18452 pgac_cv_check_docbook
=no
18454 if test -n "$XMLLINT"; then
18455 $XMLLINT --noout --valid conftest.xml
1>&5 2>&1
18456 if test $?
-eq 0; then
18457 pgac_cv_check_docbook
=yes
18462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_check_docbook" >&5
18463 $as_echo "$pgac_cv_check_docbook" >&6; }
18465 have_docbook
=$pgac_cv_check_docbook
18468 if test -z "$DBTOEPUB"; then
18469 for ac_prog
in dbtoepub
18471 # Extract the first word of "$ac_prog", so it can be a program name with args.
18472 set dummy
$ac_prog; ac_word
=$2
18473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18474 $as_echo_n "checking for $ac_word... " >&6; }
18475 if ${ac_cv_path_DBTOEPUB+:} false
; then :
18476 $as_echo_n "(cached) " >&6
18480 ac_cv_path_DBTOEPUB
="$DBTOEPUB" # Let the user override the test with a path.
18483 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18484 for as_dir
in $PATH
18487 test -z "$as_dir" && as_dir
=.
18488 for ac_exec_ext
in '' $ac_executable_extensions; do
18489 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18490 ac_cv_path_DBTOEPUB
="$as_dir/$ac_word$ac_exec_ext"
18491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18501 DBTOEPUB
=$ac_cv_path_DBTOEPUB
18502 if test -n "$DBTOEPUB"; then
18503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBTOEPUB" >&5
18504 $as_echo "$DBTOEPUB" >&6; }
18506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18507 $as_echo "no" >&6; }
18511 test -n "$DBTOEPUB" && break
18515 # Report the value of DBTOEPUB in configure's output in all cases.
18516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBTOEPUB" >&5
18517 $as_echo_n "checking for DBTOEPUB... " >&6; }
18518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBTOEPUB" >&5
18519 $as_echo "$DBTOEPUB" >&6; }
18522 if test -z "$XSLTPROC"; then
18523 for ac_prog
in xsltproc
18525 # Extract the first word of "$ac_prog", so it can be a program name with args.
18526 set dummy
$ac_prog; ac_word
=$2
18527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18528 $as_echo_n "checking for $ac_word... " >&6; }
18529 if ${ac_cv_path_XSLTPROC+:} false
; then :
18530 $as_echo_n "(cached) " >&6
18534 ac_cv_path_XSLTPROC
="$XSLTPROC" # Let the user override the test with a path.
18537 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18538 for as_dir
in $PATH
18541 test -z "$as_dir" && as_dir
=.
18542 for ac_exec_ext
in '' $ac_executable_extensions; do
18543 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18544 ac_cv_path_XSLTPROC
="$as_dir/$ac_word$ac_exec_ext"
18545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18555 XSLTPROC
=$ac_cv_path_XSLTPROC
18556 if test -n "$XSLTPROC"; then
18557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
18558 $as_echo "$XSLTPROC" >&6; }
18560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18561 $as_echo "no" >&6; }
18565 test -n "$XSLTPROC" && break
18569 # Report the value of XSLTPROC in configure's output in all cases.
18570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSLTPROC" >&5
18571 $as_echo_n "checking for XSLTPROC... " >&6; }
18572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
18573 $as_echo "$XSLTPROC" >&6; }
18576 if test -z "$FOP"; then
18579 # Extract the first word of "$ac_prog", so it can be a program name with args.
18580 set dummy
$ac_prog; ac_word
=$2
18581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18582 $as_echo_n "checking for $ac_word... " >&6; }
18583 if ${ac_cv_path_FOP+:} false
; then :
18584 $as_echo_n "(cached) " >&6
18588 ac_cv_path_FOP
="$FOP" # Let the user override the test with a path.
18591 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18592 for as_dir
in $PATH
18595 test -z "$as_dir" && as_dir
=.
18596 for ac_exec_ext
in '' $ac_executable_extensions; do
18597 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18598 ac_cv_path_FOP
="$as_dir/$ac_word$ac_exec_ext"
18599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18609 FOP
=$ac_cv_path_FOP
18610 if test -n "$FOP"; then
18611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
18612 $as_echo "$FOP" >&6; }
18614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18615 $as_echo "no" >&6; }
18619 test -n "$FOP" && break
18623 # Report the value of FOP in configure's output in all cases.
18624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FOP" >&5
18625 $as_echo_n "checking for FOP... " >&6; }
18626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
18627 $as_echo "$FOP" >&6; }
18632 # Check for test tools
18634 if test "$enable_tap_tests" = yes; then
18635 # Check for necessary modules, unless user has specified the "prove" to use;
18636 # in that case it's her responsibility to have a working configuration.
18637 # (prove might be part of a different Perl installation than perl, eg on
18638 # MSys, so the result of AX_PROG_PERL_MODULES could be irrelevant anyway.)
18639 if test -z "$PROVE"; then
18640 # Test::More and Time::HiRes are supposed to be part of core Perl,
18641 # but some distros omit them in a minimal installation.
18652 # Make sure we have perl
18653 if test -z "$PERL"; then
18654 # Extract the first word of "perl", so it can be a program name with args.
18655 set dummy perl
; ac_word
=$2
18656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18657 $as_echo_n "checking for $ac_word... " >&6; }
18658 if ${ac_cv_prog_PERL+:} false
; then :
18659 $as_echo_n "(cached) " >&6
18661 if test -n "$PERL"; then
18662 ac_cv_prog_PERL
="$PERL" # Let the user override the test.
18664 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18665 for as_dir
in $PATH
18668 test -z "$as_dir" && as_dir
=.
18669 for ac_exec_ext
in '' $ac_executable_extensions; do
18670 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18671 ac_cv_prog_PERL
="perl"
18672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18681 PERL
=$ac_cv_prog_PERL
18682 if test -n "$PERL"; then
18683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
18684 $as_echo "$PERL" >&6; }
18686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18687 $as_echo "no" >&6; }
18693 if test "x$PERL" != x
; then
18694 ax_perl_modules_failed
=0
18695 for ax_perl_module
in 'IPC::Run' 'Test::More 0.87' 'Time::HiRes' ; do
18696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl module $ax_perl_module" >&5
18697 $as_echo_n "checking for perl module $ax_perl_module... " >&6; }
18699 # Would be nice to log result here, but can't rely on autoconf internals
18700 $PERL -e "use $ax_perl_module; exit" > /dev
/null
2>&1
18701 if test $?
-ne 0; then
18702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18703 $as_echo "no" >&6; };
18704 ax_perl_modules_failed
=1
18706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
18707 $as_echo "ok" >&6; };
18711 # Run optional shell commands
18712 if test "$ax_perl_modules_failed" = 0; then
18717 as_fn_error $?
"Additional Perl modules are required to run TAP tests" "$LINENO" 5
18720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5
18721 $as_echo "$as_me: WARNING: could not find perl" >&2;}
18724 # Now make sure we know where prove is
18725 if test -z "$PROVE"; then
18726 for ac_prog
in prove
18728 # Extract the first word of "$ac_prog", so it can be a program name with args.
18729 set dummy
$ac_prog; ac_word
=$2
18730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18731 $as_echo_n "checking for $ac_word... " >&6; }
18732 if ${ac_cv_path_PROVE+:} false
; then :
18733 $as_echo_n "(cached) " >&6
18737 ac_cv_path_PROVE
="$PROVE" # Let the user override the test with a path.
18740 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18741 for as_dir
in $PATH
18744 test -z "$as_dir" && as_dir
=.
18745 for ac_exec_ext
in '' $ac_executable_extensions; do
18746 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18747 ac_cv_path_PROVE
="$as_dir/$ac_word$ac_exec_ext"
18748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18758 PROVE
=$ac_cv_path_PROVE
18759 if test -n "$PROVE"; then
18760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROVE" >&5
18761 $as_echo "$PROVE" >&6; }
18763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18764 $as_echo "no" >&6; }
18768 test -n "$PROVE" && break
18772 # Report the value of PROVE in configure's output in all cases.
18773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PROVE" >&5
18774 $as_echo_n "checking for PROVE... " >&6; }
18775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROVE" >&5
18776 $as_echo "$PROVE" >&6; }
18779 if test -z "$PROVE"; then
18780 as_fn_error $?
"prove not found" "$LINENO" 5
18786 # We have to run the thread test near the end so we have all our symbols
18787 # defined. Cross compiling throws a warning.
18789 if test "$enable_thread_safety" = yes; then
18790 if test "$PORTNAME" != "win32"
18792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking thread safety of required library functions" >&5
18793 $as_echo_n "checking thread safety of required library functions... " >&6; }
18797 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
18798 LIBS
="$LIBS $PTHREAD_LIBS"
18799 if test "$cross_compiling" = yes; then :
18800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: maybe" >&5
18801 $as_echo "maybe" >&6; }
18802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18803 *** Skipping thread test program because of cross-compile build.
18804 *** Run the program in src/test/thread on the target machine.
18806 $as_echo "$as_me: WARNING:
18807 *** Skipping thread test program because of cross-compile build.
18808 *** Run the program in src/test/thread on the target machine.
18811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18812 /* end confdefs.h. */
18813 #include "$srcdir/src/test/thread/thread_test.c"
18815 if ac_fn_c_try_run
"$LINENO"; then :
18816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18817 $as_echo "yes" >&6; }
18819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18820 $as_echo "no" >&6; }
18821 as_fn_error $?
"thread test program failed
18822 This platform is not thread-safe. Check the file 'config.log' or compile
18823 and run src/test/thread/thread_test for the exact reason.
18824 Use --disable-thread-safety to disable thread safety." "$LINENO" 5
18826 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18827 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** skipping thread test on Win32" >&5
18834 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
18838 # If compiler will take -Wl,--as-needed (or various platform-specific
18839 # spellings thereof) then add that to LDFLAGS. This is much easier than
18840 # trying to filter LIBS to the minimum for each executable.
18841 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
18842 # libreadline; therefore we postpone testing it until we know what library
18843 # dependencies readline has. The test code will try to link with $LIBS.
18844 if test "$with_readline" = yes; then
18845 link_test_func
=readline
18847 link_test_func
=exit
18850 if test "$PORTNAME" = "darwin"; then
18851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,-dead_strip_dylibs" >&5
18852 $as_echo_n "checking whether $CC supports -Wl,-dead_strip_dylibs... " >&6; }
18853 if ${pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs+:} false
; then :
18854 $as_echo_n "(cached) " >&6
18856 pgac_save_LDFLAGS
=$LDFLAGS
18857 LDFLAGS
="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
18858 if test "$cross_compiling" = yes; then :
18859 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs
="assuming no"
18861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18862 /* end confdefs.h. */
18863 extern void $link_test_func (); void (*fptr) () = $link_test_func;
18872 if ac_fn_c_try_run
"$LINENO"; then :
18873 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs
=yes
18875 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs
=no
18877 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18878 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18881 LDFLAGS
="$pgac_save_LDFLAGS"
18883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&5
18884 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&6; }
18885 if test x
"$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" = x
"yes"; then
18886 LDFLAGS
="$LDFLAGS -Wl,-dead_strip_dylibs"
18889 elif test "$PORTNAME" = "openbsd"; then
18890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,-Bdynamic" >&5
18891 $as_echo_n "checking whether $CC supports -Wl,-Bdynamic... " >&6; }
18892 if ${pgac_cv_prog_cc_ldflags__Wl__Bdynamic+:} false
; then :
18893 $as_echo_n "(cached) " >&6
18895 pgac_save_LDFLAGS
=$LDFLAGS
18896 LDFLAGS
="$pgac_save_LDFLAGS -Wl,-Bdynamic"
18897 if test "$cross_compiling" = yes; then :
18898 pgac_cv_prog_cc_ldflags__Wl__Bdynamic
="assuming no"
18900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18901 /* end confdefs.h. */
18902 extern void $link_test_func (); void (*fptr) () = $link_test_func;
18911 if ac_fn_c_try_run
"$LINENO"; then :
18912 pgac_cv_prog_cc_ldflags__Wl__Bdynamic
=yes
18914 pgac_cv_prog_cc_ldflags__Wl__Bdynamic
=no
18916 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18917 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18920 LDFLAGS
="$pgac_save_LDFLAGS"
18922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&5
18923 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&6; }
18924 if test x
"$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" = x
"yes"; then
18925 LDFLAGS
="$LDFLAGS -Wl,-Bdynamic"
18929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,--as-needed" >&5
18930 $as_echo_n "checking whether $CC supports -Wl,--as-needed... " >&6; }
18931 if ${pgac_cv_prog_cc_ldflags__Wl___as_needed+:} false
; then :
18932 $as_echo_n "(cached) " >&6
18934 pgac_save_LDFLAGS
=$LDFLAGS
18935 LDFLAGS
="$pgac_save_LDFLAGS -Wl,--as-needed"
18936 if test "$cross_compiling" = yes; then :
18937 pgac_cv_prog_cc_ldflags__Wl___as_needed
="assuming no"
18939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18940 /* end confdefs.h. */
18941 extern void $link_test_func (); void (*fptr) () = $link_test_func;
18950 if ac_fn_c_try_run
"$LINENO"; then :
18951 pgac_cv_prog_cc_ldflags__Wl___as_needed
=yes
18953 pgac_cv_prog_cc_ldflags__Wl___as_needed
=no
18955 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
18956 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
18959 LDFLAGS
="$pgac_save_LDFLAGS"
18961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_ldflags__Wl___as_needed" >&5
18962 $as_echo "$pgac_cv_prog_cc_ldflags__Wl___as_needed" >&6; }
18963 if test x
"$pgac_cv_prog_cc_ldflags__Wl___as_needed" = x
"yes"; then
18964 LDFLAGS
="$LDFLAGS -Wl,--as-needed"
18969 # Create compiler version string
18970 if test x
"$GCC" = x
"yes" ; then
18971 cc_string
=`${CC} --version | sed q`
18972 case $cc_string in [A-Za-z
]*) ;; *) cc_string
="GCC $cc_string";; esac
18973 elif test x
"$SUN_STUDIO_CC" = x
"yes" ; then
18974 cc_string
=`${CC} -V 2>&1 | sed q`
18980 cat >>confdefs.h
<<_ACEOF
18981 #define PG_VERSION_STR "PostgreSQL $PG_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
18985 # Supply a numeric version string for use by 3rd party add-ons
18986 # awk -F is a regex on some platforms, and not on others, so make "." a tab
18987 PG_VERSION_NUM
="`echo $PG_MAJORVERSION $PG_MINORVERSION |
18988 $AWK '{printf "%d
%04d
", $1, $2}'`"
18990 cat >>confdefs.h
<<_ACEOF
18991 #define PG_VERSION_NUM $PG_VERSION_NUM
18996 # If we are inserting PG_SYSROOT into CPPFLAGS, do so symbolically not
18997 # literally, so that it's possible to override it at build time using
18998 # a command like "make ... PG_SYSROOT=path". This has to be done after
18999 # we've finished all configure checks that depend on CPPFLAGS.
19000 if test x
"$PG_SYSROOT" != x
; then
19001 CPPFLAGS
=`echo "$CPPFLAGS" | sed -e "s| $PG_SYSROOT | \\\$(PG_SYSROOT) |"`
19006 # Begin output steps
19008 { $as_echo "$as_me:${as_lineno-$LINENO}: using compiler=$cc_string" >&5
19009 $as_echo "$as_me: using compiler=$cc_string" >&6;}
19010 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS=$CFLAGS" >&5
19011 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
19012 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS=$CPPFLAGS" >&5
19013 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
19014 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS=$LDFLAGS" >&5
19015 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
19016 # Currently only used when LLVM is used
19017 if test "$with_llvm" = yes ; then
19018 { $as_echo "$as_me:${as_lineno-$LINENO}: using CXX=$CXX" >&5
19019 $as_echo "$as_me: using CXX=$CXX" >&6;}
19020 { $as_echo "$as_me:${as_lineno-$LINENO}: using CXXFLAGS=$CXXFLAGS" >&5
19021 $as_echo "$as_me: using CXXFLAGS=$CXXFLAGS" >&6;}
19022 { $as_echo "$as_me:${as_lineno-$LINENO}: using CLANG=$CLANG" >&5
19023 $as_echo "$as_me: using CLANG=$CLANG" >&6;}
19024 { $as_echo "$as_me:${as_lineno-$LINENO}: using BITCODE_CFLAGS=$BITCODE_CFLAGS" >&5
19025 $as_echo "$as_me: using BITCODE_CFLAGS=$BITCODE_CFLAGS" >&6;}
19026 { $as_echo "$as_me:${as_lineno-$LINENO}: using BITCODE_CXXFLAGS=$BITCODE_CXXFLAGS" >&5
19027 $as_echo "$as_me: using BITCODE_CXXFLAGS=$BITCODE_CXXFLAGS" >&6;}
19030 # prepare build tree if outside source tree
19031 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
19032 # Note 2: /bin/pwd might be better than shell's built-in at getting
19033 # a symlink-free name.
19034 if ( test "$srcdir" -ef .
) >/dev
/null
2>&1 ||
test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
19038 if test "$no_create" != yes; then
19039 $as_echo_n "preparing build tree... " >&6
19040 pgac_abs_top_srcdir
=`cd "$srcdir" && pwd`
19041 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
19042 || as_fn_error $?
"failed" "$LINENO" 5
19043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19044 $as_echo "done" >&6; }
19050 ac_config_files
="$ac_config_files GNUmakefile src/Makefile.global"
19053 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}"
19056 if test "$PORTNAME" = "win32"; then
19057 ac_config_commands
="$ac_config_commands check_win32_symlinks"
19061 ac_config_headers
="$ac_config_headers src/include/pg_config.h"
19064 ac_config_headers
="$ac_config_headers src/include/pg_config_ext.h"
19067 ac_config_headers
="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
19070 cat >confcache
<<\_ACEOF
19071 # This file is a shell script that caches the results of configure
19072 # tests run on this system so they can be shared between configure
19073 # scripts and configure runs, see configure's option --config-cache.
19074 # It is not useful on other systems. If it contains results you don't
19075 # want to keep, you may remove or edit it.
19077 # config.status only pays attention to the cache file if you give it
19078 # the --recheck option to rerun configure.
19080 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19081 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19082 # following values.
19086 # The following way of writing the cache mishandles newlines in values,
19087 # but we know of no workaround that is simple, portable, and efficient.
19088 # So, we kill variables containing newlines.
19089 # Ultrix sh set writes to stderr and can't be redirected directly,
19090 # and sets the high bit in the cache file unless we assign to the vars.
19092 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19093 eval ac_val
=\$
$ac_var
19097 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19098 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19101 _ | IFS | as_nl
) ;; #(
19102 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
19103 *) { eval $ac_var=; unset $ac_var;} ;;
19109 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19110 *${as_nl}ac_space
=\
*)
19111 # `set' does not quote correctly, so add quotes: double-quote
19112 # substitution turns \\\\ into \\, and sed turns \\ into \.
19115 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19118 # `set' quotes correctly as required by POSIX, so do not add quotes.
19119 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19128 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19130 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19132 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
19133 if test -w "$cache_file"; then
19134 if test "x$cache_file" != "x/dev/null"; then
19135 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19136 $as_echo "$as_me: updating cache $cache_file" >&6;}
19137 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
19138 cat confcache
>"$cache_file"
19140 case $cache_file in #(
19142 mv -f confcache
"$cache_file"$$
&&
19143 mv -f "$cache_file"$$
"$cache_file" ;; #(
19145 mv -f confcache
"$cache_file" ;;
19150 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19151 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19156 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
19157 # Let make expand exec_prefix.
19158 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19160 DEFS
=-DHAVE_CONFIG_H
19165 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
19166 # 1. Remove the extension, and $U if already installed.
19167 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
19168 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
19169 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19170 # will be set to the directory where LIBOBJS objects are built.
19171 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19172 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
19174 LIBOBJS
=$ac_libobjs
19176 LTLIBOBJS
=$ac_ltlibobjs
19181 : "${CONFIG_STATUS=./config.status}"
19183 ac_clean_files_save
=$ac_clean_files
19184 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
19185 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19186 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19188 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19190 # Generated by $as_me.
19191 # Run this file to recreate the current configuration.
19192 # Compiler output produced by configure, useful for debugging
19193 # configure, is in config.log if it exists.
19196 ac_cs_recheck=false
19199 SHELL=\${CONFIG_SHELL-$SHELL}
19202 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
19203 ## -------------------- ##
19204 ## M4sh Initialization. ##
19205 ## -------------------- ##
19207 # Be more Bourne compatible
19208 DUALCASE
=1; export DUALCASE
# for MKS sh
19209 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
19212 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19213 # is contrary to our usage. Disable this feature.
19214 alias -g '${1+"$@"}'='"$@"'
19215 setopt NO_GLOB_SUBST
19217 case `(set -o) 2>/dev/null` in #(
19229 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19230 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19231 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19232 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19233 # Prefer a ksh shell builtin over an external printf program on Solaris,
19234 # but without wasting forks for bash or zsh.
19235 if test -z "$BASH_VERSION$ZSH_VERSION" \
19236 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19237 as_echo='print
-r --'
19238 as_echo_n='print
-rn --'
19239 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19240 as_echo='printf %s
\n'
19241 as_echo_n='printf %s
'
19243 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19244 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
19245 as_echo_n='/usr
/ucb
/echo -n'
19247 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19248 as_echo_n_body='eval
19252 expr "X$arg" : "X\\(.*\\)$as_nl";
19253 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19255 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
19257 export as_echo_n_body
19258 as_echo_n='sh
-c $as_echo_n_body as_echo
'
19260 export as_echo_body
19261 as_echo='sh
-c $as_echo_body as_echo
'
19264 # The user is always right.
19265 if test "${PATH_SEPARATOR+set}" != set; then
19267 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19268 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19275 # We need space, tab and new line, in precisely that order. Quoting is
19276 # there to prevent editors from complaining about space-tab.
19277 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19278 # splitting by setting IFS to empty value.)
19281 # Find who we are. Look in the path if we contain no directory separator.
19284 *[\\/]* ) as_myself=$0 ;;
19285 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19286 for as_dir in $PATH
19289 test -z "$as_dir" && as_dir=.
19290 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19296 # We did not find ourselves, most probably we were run as `sh COMMAND'
19297 # in which case we are not to be found in the path.
19298 if test "x$as_myself" = x
; then
19301 if test ! -f "$as_myself"; then
19302 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19306 # Unset variables that we do not need and which cause bugs (e.g. in
19307 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19308 # suppresses any "Segmentation fault" message there. '((' could
19309 # trigger a bug in pdksh 5.2.14.
19310 for as_var
in BASH_ENV ENV MAIL MAILPATH
19311 do eval test x\
${$as_var+set} = xset \
19312 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
19325 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
19328 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19329 # ----------------------------------------
19330 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19331 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19332 # script with STATUS, using 1 if that was 0.
19335 as_status
=$1; test $as_status -eq 0 && as_status
=1
19337 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
19338 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19340 $as_echo "$as_me: error: $2" >&2
19341 as_fn_exit
$as_status
19345 # as_fn_set_status STATUS
19346 # -----------------------
19347 # Set $? to STATUS, without forking.
19348 as_fn_set_status
()
19351 } # as_fn_set_status
19353 # as_fn_exit STATUS
19354 # -----------------
19355 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19359 as_fn_set_status
$1
19365 # Portably unset VAR.
19368 { eval $1=; unset $1;}
19370 as_unset
=as_fn_unset
19371 # as_fn_append VAR VALUE
19372 # ----------------------
19373 # Append the text in VALUE to the end of the definition contained in VAR. Take
19374 # advantage of any shell optimizations that allow amortized linear growth over
19375 # repeated appends, instead of the typical quadratic growth present in naive
19377 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
19378 eval 'as_fn_append ()
19389 # as_fn_arith ARG...
19390 # ------------------
19391 # Perform arithmetic evaluation on the ARGs, and store the result in the
19392 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19393 # must be portable across $(()) and expr.
19394 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
19395 eval 'as_fn_arith ()
19402 as_val
=`expr "$@" || test $? -eq 1`
19407 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
19408 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
19414 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19415 as_basename
=basename
19420 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
19426 as_me
=`$as_basename -- "$0" ||
19427 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19428 X"$0" : 'X\(//\)$' \| \
19429 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19431 sed '/^.*\/\([^/][^/]*\)\/*$/{
19445 # Avoid depending upon Character Ranges.
19446 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
19447 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19448 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
19449 as_cr_digits
='0123456789'
19450 as_cr_alnum
=$as_cr_Letters$as_cr_digits
19452 ECHO_C
= ECHO_N
= ECHO_T
=
19453 case `echo -n x` in #(((((
19455 case `echo 'xy\c'` in
19456 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
19458 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
19465 rm -f conf$$ conf$$.exe conf$$.
file
19466 if test -d conf$$.dir
; then
19467 rm -f conf$$.dir
/conf$$.
file
19470 mkdir conf$$.dir
2>/dev
/null
19472 if (echo >conf$$.
file) 2>/dev
/null
; then
19473 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
19475 # ... but there are two gotchas:
19476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19478 # In both cases, we have to default to `cp -pR'.
19479 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
19481 elif ln conf$$.
file conf$$
2>/dev
/null
; then
19489 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
19490 rmdir conf$$.dir
2>/dev
/null
19495 # Create "$as_dir" as a directory, including parents if necessary.
19500 -*) as_dir
=.
/$as_dir;;
19502 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
19506 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19507 *) as_qdir
=$as_dir;;
19509 as_dirs
="'$as_qdir' $as_dirs"
19510 as_dir
=`$as_dirname -- "$as_dir" ||
19511 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19512 X"$as_dir" : 'X\(//\)[^/]' \| \
19513 X"$as_dir" : 'X\(//\)$' \| \
19514 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19515 $as_echo X"$as_dir" |
19516 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19520 /^X\(\/\/\)[^/].*/{
19533 test -d "$as_dir" && break
19535 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
19536 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
19540 if mkdir
-p .
2>/dev
/null
; then
19541 as_mkdir_p
='mkdir -p "$as_dir"'
19543 test -d .
/-p && rmdir .
/-p
19548 # as_fn_executable_p FILE
19549 # -----------------------
19550 # Test if FILE is an executable regular file.
19551 as_fn_executable_p
()
19553 test -f "$1" && test -x "$1"
19554 } # as_fn_executable_p
19555 as_test_x
='test -x'
19556 as_executable_p
=as_fn_executable_p
19558 # Sed expression to map a string onto a valid CPP name.
19559 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19561 # Sed expression to map a string onto a valid variable name.
19562 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19566 ## ----------------------------------- ##
19567 ## Main body of $CONFIG_STATUS script. ##
19568 ## ----------------------------------- ##
19570 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
19572 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19573 # Save the log message, to keep $0 and so on meaningful, and to
19574 # report actual input values of CONFIG_FILES etc. instead of their
19575 # values after options handling.
19577 This file was extended by PostgreSQL $as_me 13devel, which was
19578 generated by GNU Autoconf 2.69. Invocation command line was
19580 CONFIG_FILES = $CONFIG_FILES
19581 CONFIG_HEADERS = $CONFIG_HEADERS
19582 CONFIG_LINKS = $CONFIG_LINKS
19583 CONFIG_COMMANDS = $CONFIG_COMMANDS
19586 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19591 case $ac_config_files in *"
19592 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
19595 case $ac_config_headers in *"
19596 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
19600 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19601 # Files that config.status was made for.
19602 config_files="$ac_config_files"
19603 config_headers="$ac_config_headers"
19604 config_links="$ac_config_links"
19605 config_commands="$ac_config_commands"
19609 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19611 \`$as_me' instantiates files and other configuration actions
19612 from templates according to the current configuration. Unless the files
19613 and actions are specified as TAGs, all are instantiated by default.
19615 Usage: $0 [OPTION]... [TAG]...
19617 -h, --help print this help, then exit
19618 -V, --version print version number and configuration settings, then exit
19619 --config print configuration, then exit
19620 -q, --quiet, --silent
19621 do not print progress messages
19622 -d, --debug don't remove temporary files
19623 --recheck update $as_me by reconfiguring in the same conditions
19624 --file=FILE[:TEMPLATE]
19625 instantiate the configuration file FILE
19626 --header=FILE[:TEMPLATE]
19627 instantiate the configuration header FILE
19629 Configuration files:
19632 Configuration headers:
19635 Configuration links:
19638 Configuration commands:
19641 Report bugs to <pgsql-bugs@lists.postgresql.org>.
19642 PostgreSQL home page: <https://www.postgresql.org/>."
19645 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19646 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19648 PostgreSQL config.status 13devel
19649 configured by $0, generated by GNU Autoconf 2.69,
19650 with options \\"\$ac_cs_config\\"
19652 Copyright (C) 2012 Free Software Foundation, Inc.
19653 This config.status script is free software; the Free Software Foundation
19654 gives unlimited permission to copy, distribute and modify it."
19661 test -n "\$AWK" || AWK=awk
19664 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19665 # The default lists apply if the user does not specify any file.
19671 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19672 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
19676 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19688 # Handling of the options.
19689 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
19691 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
19692 $as_echo "$ac_cs_version"; exit ;;
19693 --config |
--confi |
--conf |
--con |
--co |
--c )
19694 $as_echo "$ac_cs_config"; exit ;;
19695 --debug |
--debu |
--deb |
--de |
--d |
-d )
19697 --file |
--fil |
--fi |
--f )
19700 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19701 '') as_fn_error $?
"missing file argument" ;;
19703 as_fn_append CONFIG_FILES
" '$ac_optarg'"
19704 ac_need_defaults
=false
;;
19705 --header |
--heade |
--head |
--hea )
19708 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19710 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
19711 ac_need_defaults
=false
;;
19713 # Conflict between --help and --header
19714 as_fn_error $?
"ambiguous option: \`$1'
19715 Try \`$0 --help' for more information.";;
19716 --help |
--hel |
-h )
19717 $as_echo "$ac_cs_usage"; exit ;;
19718 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
19719 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
19722 # This is an error.
19723 -*) as_fn_error $?
"unrecognized option: \`$1'
19724 Try \`$0 --help' for more information." ;;
19726 *) as_fn_append ac_config_targets
" $1"
19727 ac_need_defaults
=false
;;
19733 ac_configure_extra_args
=
19735 if $ac_cs_silent; then
19737 ac_configure_extra_args
="$ac_configure_extra_args --silent"
19741 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19742 if \$ac_cs_recheck; then
19743 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19745 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19746 CONFIG_SHELL='$SHELL'
19747 export CONFIG_SHELL
19752 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19756 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19757 ## Running $as_me. ##
19763 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19766 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19768 # Handling of arguments.
19769 for ac_config_target
in $ac_config_targets
19771 case $ac_config_target in
19772 "src/backend/port/tas.s") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
19773 "GNUmakefile") CONFIG_FILES
="$CONFIG_FILES GNUmakefile" ;;
19774 "src/Makefile.global") CONFIG_FILES
="$CONFIG_FILES src/Makefile.global" ;;
19775 "src/backend/port/pg_sema.c") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
19776 "src/backend/port/pg_shmem.c") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
19777 "src/include/pg_config_os.h") CONFIG_LINKS
="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
19778 "src/Makefile.port") CONFIG_LINKS
="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
19779 "check_win32_symlinks") CONFIG_COMMANDS
="$CONFIG_COMMANDS check_win32_symlinks" ;;
19780 "src/include/pg_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/include/pg_config.h" ;;
19781 "src/include/pg_config_ext.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/include/pg_config_ext.h" ;;
19782 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
19784 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19789 # If the user did not use the arguments to specify the items to instantiate,
19790 # then the envvar interface is used. Set only those that are not.
19791 # We use the long form for the default assignment because of an extremely
19792 # bizarre bug on SunOS 4.1.3.
19793 if $ac_need_defaults; then
19794 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
19795 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
19796 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
19797 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
19800 # Have a temporary directory for convenience. Make it in the build tree
19801 # simply because there is no reason against having it here, and in addition,
19802 # creating and moving files from /tmp can sometimes cause problems.
19803 # Hook for its removal unless debugging.
19804 # Note that there is a small window in which the directory will not be cleaned:
19805 # after its creation but before its name has been assigned to `$tmp'.
19809 trap 'exit_status=$?
19810 : "${ac_tmp:=$tmp}"
19811 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19813 trap 'as_fn_exit 1' 1 2 13 15
19815 # Create a (secure) tmp directory for tmp files.
19818 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19822 tmp
=.
/conf$$
-$RANDOM
19823 (umask 077 && mkdir
"$tmp")
19824 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
19827 # Set up the scripts for CONFIG_FILES section.
19828 # No need to generate them if there are no CONFIG_FILES.
19829 # This happens for instance with `./config.status config.h'.
19830 if test -n "$CONFIG_FILES"; then
19833 ac_cr
=`echo X | tr X '\015'`
19834 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19835 # But we know of no other shell where ac_cr would be empty at this
19836 # point, so we can use a bashism as a fallback.
19837 if test "x$ac_cr" = x
; then
19838 eval ac_cr
=\$
\'\\r
\'
19840 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19841 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19844 ac_cs_awk_cr
=$ac_cr
19847 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19852 echo "cat >conf$$subs.awk <<_ACEOF" &&
19853 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19855 } >conf$$subs.sh ||
19856 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19857 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19859 for ac_last_try in false false false false false :; do
19860 . ./conf$$subs.sh ||
19861 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19863 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
19864 if test $ac_delim_n = $ac_delim_num; then
19866 elif $ac_last_try; then
19867 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19869 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
19872 rm -f conf$$subs.sh
19874 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19875 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
19879 s/^/S["/; s
/!.
*/"]=/
19889 s/\(.\{148\}\)..*/\1/
19891 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
19896 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19903 s/\(.\{148\}\)..*/\1/
19905 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
19909 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19914 ' <conf$$subs.awk | sed '
19919 ' >>$CONFIG_STATUS || ac_write_fail=1
19920 rm -f conf$$subs.awk
19921 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19923 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
19924 for (key in S) S_is_set[key] = 1
19930 nfields = split(line, field, "@
")
19932 len = length(field[1])
19933 for (i = 2; i < nfields; i++) {
19935 keylen = length(key)
19936 if (S_is_set[key]) {
19938 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19939 len += length(value) + length(field[++i])
19950 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19951 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19952 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
19955 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
19956 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
19959 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19960 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
19961 # trailing colons and then remove the whole line if VPATH becomes empty
19962 # (actually we leave an empty line to preserve line numbers).
19963 if test "x
$srcdir" = x.; then
19964 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19983 fi # test -n "$CONFIG_FILES"
19985 # Set up the scripts for CONFIG_HEADERS section.
19986 # No need to generate them if there are no CONFIG_HEADERS.
19987 # This happens for instance with `./config.status Makefile'.
19988 if test -n "$CONFIG_HEADERS"; then
19989 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
19993 # Transform confdefs.h into an awk script `defines.awk', embedded as
19994 # here-document in config.status, that substitutes the proper values into
19995 # config.h.in to produce config.h.
19997 # Create a delimiter string that does not exist in confdefs.h, to ease
19998 # handling of long lines.
20000 for ac_last_try in false false :; do
20001 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
20002 if test -z "$ac_tt"; then
20004 elif $ac_last_try; then
20005 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
20007 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20011 # For the awk script, D is an array of macro values keyed by name,
20012 # likewise P contains macro parameters if any. Preserve backslash
20013 # newline sequences.
20015 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20017 s/.\{148\}/&'"$ac_delim"'/g
20020 s/^[ ]*#[ ]*define[ ][ ]*/ /
20027 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
20029 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
20033 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
20034 D["\
1"]=" \
3\\\\\\n
"\\/p
20036 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
20041 s/.\{148\}/&'"$ac_delim"'/g
20046 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
20049 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
20051 ' <confdefs.h | sed '
20052 s/'"$ac_delim"'/"\\\
20053 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20055 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20056 for (key in D) D_is_set[key] = 1
20059 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20061 split(line, arg, " ")
20062 if (arg[1] == "#") {
20066 defundef
= substr
(arg
[1], 2)
20069 split(mac1
, mac2
, "(") #)
20071 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
20072 if (D_is_set
[macro
]) {
20073 # Preserve the white space surrounding the "#".
20074 print prefix
"define", macro P
[macro
] D
[macro
]
20077 # Replace #undef with comments. This is necessary, for example,
20078 # in the case of _POSIX_SOURCE, which is predefined and required
20079 # on some systems where configure will not decide to define it.
20080 if (defundef
== "undef") {
20081 print
"/*", prefix defundef
, macro
, "*/"
20089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20090 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
20091 fi # test -n "$CONFIG_HEADERS"
20094 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
20099 :[FHLC
]) ac_mode
=$ac_tag; continue;;
20101 case $ac_mode$ac_tag in
20103 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
20104 :[FH
]-) ac_tag
=-:-;;
20105 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
20122 -) ac_f
="$ac_tmp/stdin";;
20123 *) # Look for the file first in the build tree, then in the source tree
20124 # (if the path is not absolute). The absolute path cannot be DOS-style,
20125 # because $ac_f cannot contain `:'.
20129 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
20131 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20133 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20134 as_fn_append ac_file_inputs
" '$ac_f'"
20137 # Let's still pretend it is `configure' which instantiates (i.e., don't
20138 # use $as_me), people would be surprised to read:
20139 # /* config.h. Generated by config.status. */
20140 configure_input
='Generated from '`
20141 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20143 if test x
"$ac_file" != x-
; then
20144 configure_input
="$ac_file. $configure_input"
20145 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20146 $as_echo "$as_me: creating $ac_file" >&6;}
20148 # Neutralize special characters interpreted by sed in replacement strings.
20149 case $configure_input in #(
20150 *\
&* |
*\|
* |
*\\* )
20151 ac_sed_conf_input
=`$as_echo "$configure_input" |
20152 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20153 *) ac_sed_conf_input
=$configure_input;;
20157 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
20158 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
20163 ac_dir
=`$as_dirname -- "$ac_file" ||
20164 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20165 X"$ac_file" : 'X\(//\)[^/]' \| \
20166 X"$ac_file" : 'X\(//\)$' \| \
20167 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20168 $as_echo X"$ac_file" |
20169 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20173 /^X\(\/\/\)[^/].*/{
20186 as_dir
="$ac_dir"; as_fn_mkdir_p
20190 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20192 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20193 # A ".." for each directory in $ac_dir_suffix.
20194 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20195 case $ac_top_builddir_sub in
20196 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20197 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
20200 ac_abs_top_builddir
=$ac_pwd
20201 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
20202 # for backward compatibility:
20203 ac_top_builddir
=$ac_top_build_prefix
20206 .
) # We are building in place.
20208 ac_top_srcdir
=$ac_top_builddir_sub
20209 ac_abs_top_srcdir
=$ac_pwd ;;
20210 [\\/]* | ?
:[\\/]* ) # Absolute name.
20211 ac_srcdir
=$srcdir$ac_dir_suffix;
20212 ac_top_srcdir
=$srcdir
20213 ac_abs_top_srcdir
=$srcdir ;;
20214 *) # Relative name.
20215 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
20216 ac_top_srcdir
=$ac_top_build_prefix$srcdir
20217 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
20219 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
20229 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
20230 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
20232 ac_MKDIR_P
=$MKDIR_P
20234 [\\/$
]* | ?
:[\\/]* ) ;;
20235 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
20239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20240 # If the template does not know about datarootdir, expand it.
20241 # FIXME: This hack should be removed a few years after 2.60.
20242 ac_datarootdir_hack
=; ac_datarootdir_seen
=
20253 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20254 *datarootdir
*) ac_datarootdir_seen
=yes;;
20255 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
20256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20257 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20259 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20260 ac_datarootdir_hack='
20261 s&@datadir@&$datadir&g
20262 s&@docdir@&$docdir&g
20263 s&@infodir@&$infodir&g
20264 s&@localedir@&$localedir&g
20265 s&@mandir@&$mandir&g
20266 s&\\\${datarootdir}&$datarootdir&g' ;;
20270 # Neutralize VPATH when `$srcdir' = `.'.
20271 # Shell code in configure.ac might set extrasub.
20272 # FIXME: do we really want to maintain this feature?
20273 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20274 ac_sed_extra="$ac_vpsub
20277 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20279 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
20280 s|@configure_input@|
$ac_sed_conf_input|
;t t
20281 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
20282 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
20283 s
&@srcdir@
&$ac_srcdir&;t t
20284 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
20285 s
&@top_srcdir@
&$ac_top_srcdir&;t t
20286 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
20287 s
&@builddir@
&$ac_builddir&;t t
20288 s
&@abs_builddir@
&$ac_abs_builddir&;t t
20289 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
20290 s
&@INSTALL@
&$ac_INSTALL&;t t
20291 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
20292 $ac_datarootdir_hack
20294 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
20295 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
20297 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20298 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
20299 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20300 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
20301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
20302 which seems to be undefined. Please make sure it is defined" >&5
20303 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
20304 which seems to be undefined. Please make sure it is defined" >&2;}
20306 rm -f "$ac_tmp/stdin"
20308 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20309 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20311 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20317 if test x"$ac_file" != x-; then
20319 $as_echo "/* $configure_input */" \
20320 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20321 } >"$ac_tmp/config.h" \
20322 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20323 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20324 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20325 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20328 mv "$ac_tmp/config.h" "$ac_file" \
20329 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20332 $as_echo "/* $configure_input */" \
20333 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20334 || as_fn_error $? "could not create -" "$LINENO" 5
20342 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
20345 # Prefer the file from the source tree if names are identical.
20346 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
20347 ac_source=$srcdir/$ac_source
20350 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
20351 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
20353 if test ! -r "$ac_source"; then
20354 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
20358 # Try a relative symlink, then a hard link, then a copy.
20360 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
20361 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
20363 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
20364 ln "$ac_source" "$ac_file" 2>/dev/null ||
20365 cp -p "$ac_source" "$ac_file" ||
20366 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
20369 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20370 $as_echo "$as_me: executing $ac_file commands" >&6;}
20375 case $ac_file$ac_mode in
20376 "check_win32_symlinks":C)
20377 # Links sometimes fail undetected on Mingw -
20378 # so here we detect it and warn the user
20379 for FILE in $CONFIG_LINKS
20381 # test -e works for symlinks in the MinGW console
20382 test -e `expr "$FILE" : '\
([^
:]*\
)'` || { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** link for $FILE -- please fix by hand" >&5
20383 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
20386 "src/include/pg_config.h":H)
20387 # Update timestamp for pg_config.h (see Makefile.global)
20388 echo >src/include/stamp-h
20390 "src/include/pg_config_ext.h":H)
20391 # Update timestamp for pg_config_ext.h (see Makefile.global)
20392 echo >src/include/stamp-ext-h
20394 "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
20402 ac_clean_files=$ac_clean_files_save
20404 test $ac_write_fail = 0 ||
20405 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20408 # configure is writing to config.log, and then calls config.status.
20409 # config.status does its own redirection, appending to config.log.
20410 # Unfortunately, on DOS this fails, as config.log is still kept open
20411 # by configure, so config.status won't be able to
write to it
; its
20412 # output is simply discarded. So we exec the FD to /dev/null,
20413 # effectively closing config.log, so it can be properly (re)opened and
20414 # appended to by config.status. When coming back to configure, we
20415 # need to make the FD available again.
20416 if test "$no_create" != yes; then
20418 ac_config_status_args
=
20419 test "$silent" = yes &&
20420 ac_config_status_args
="$ac_config_status_args --quiet"
20422 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
20424 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20425 # would make configure fail if this is the last instruction.
20426 $ac_cs_success || as_fn_exit
1
20428 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
20429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20430 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}