2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for PostgreSQL 12devel.
5 # Report bugs to <pgsql-bugs@postgresql.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
14 # Copyright (c) 1996-2018, PostgreSQL Global Development Group
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 # Use a proper internal environment variable to ensure we don't fall
140 # into an infinite loop, continuously re-executing ourselves.
141 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
142 _as_can_reexec=no; export _as_can_reexec;
143 # We cannot yet assume a decent shell, so we have to provide a
144 # neutralization value for shells without unset; and this also
145 # works around shells that cannot unset nonexistent variables.
146 # Preserve -v and -x to the replacement shell.
149 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
151 *v*x* | *x*v* ) as_opts=-vx ;;
156 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
157 # Admittedly, this is quite paranoid, since all the known shells bail
158 # out after a failed `exec'.
159 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
162 # We don't want this to propagate to other subprocesses.
163 { _as_can_reexec=; unset _as_can_reexec;}
164 if test "x$CONFIG_SHELL" = x; then
165 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
168 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
169 # is contrary to our usage. Disable this feature.
170 alias -g '\${1+\"\$@\"}'='\"\$@\"'
173 case \`(set -o) 2>/dev/null\` in #(
181 as_required="as_fn_return () { (exit \$1); }
182 as_fn_success () { as_fn_return 0; }
183 as_fn_failure () { as_fn_return 1; }
184 as_fn_ret_success () { return 0; }
185 as_fn_ret_failure () { return 1; }
188 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
189 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
190 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
191 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
192 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
195 exitcode=1; echo positional parameters were not saved.
197 test x\$exitcode = x0 || exit 1
199 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
200 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
201 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
202 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
203 test \$(( 1 + 1 )) = 2 || exit 1"
204 if (eval "$as_required") 2>/dev/null; then :
209 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
214 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
217 test -z "$as_dir" && as_dir=.
221 for as_base in sh bash ksh sh5; do
222 # Try only shells that exist, to save several forks.
223 as_shell=$as_dir/$as_base
224 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
225 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 CONFIG_SHELL=$as_shell as_have_required=yes
227 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
235 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
236 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
237 CONFIG_SHELL=$SHELL as_have_required=yes
242 if test "x$CONFIG_SHELL" != x; then :
244 # We cannot yet assume a decent shell, so we have to provide a
245 # neutralization value for shells without unset; and this also
246 # works around shells that cannot unset nonexistent variables.
247 # Preserve -v and -x to the replacement shell.
250 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
252 *v*x* | *x*v* ) as_opts=-vx ;;
257 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
258 # Admittedly, this is quite paranoid, since all the known shells bail
259 # out after a failed `exec'.
260 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
264 if test x$as_have_required = xno; then :
265 $as_echo "$0: This script requires a shell more modern than all"
266 $as_echo "$0: the shells that I found on your system."
267 if test x${ZSH_VERSION+set} = xset ; then
268 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
269 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
271 $as_echo "$0: Please tell bug-autoconf@gnu.org and
272 $0: pgsql-bugs@postgresql.org about your system, including
273 $0: any error possibly output before this message. Then
274 $0: install a modern shell, or manually run the script
275 $0: under such a shell if you do have one."
281 SHELL=${CONFIG_SHELL-/bin/sh}
283 # Unset more variables known to interfere with behavior of common tools.
284 CLICOLOR_FORCE= GREP_OPTIONS=
285 unset CLICOLOR_FORCE GREP_OPTIONS
287 ## --------------------- ##
288 ## M4sh Shell Functions. ##
289 ## --------------------- ##
292 # Portably unset VAR.
295 { eval $1=; unset $1;}
299 # as_fn_set_status STATUS
300 # -----------------------
301 # Set $? to STATUS, without forking.
309 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319 # Create "$as_dir" as a directory, including parents if necessary.
324 -*) as_dir=./$as_dir;;
326 test -d "$as_dir" || eval $as_mkdir_p || {
330 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
333 as_dirs="'$as_qdir' $as_dirs"
334 as_dir=`$as_dirname -- "$as_dir" ||
335 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
336 X"$as_dir" : 'X\(//\)[^/]' \| \
337 X"$as_dir" : 'X\(//\)$' \| \
338 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
339 $as_echo X"$as_dir" |
340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357 test -d "$as_dir" && break
359 test -z "$as_dirs" || eval "mkdir $as_dirs"
360 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
365 # as_fn_executable_p FILE
366 # -----------------------
367 # Test if FILE is an executable regular file.
368 as_fn_executable_p ()
370 test -f "$1" && test -x "$1"
371 } # as_fn_executable_p
372 # as_fn_append VAR VALUE
373 # ----------------------
374 # Append the text in VALUE to the end of the definition contained in VAR. Take
375 # advantage of any shell optimizations that allow amortized linear growth over
376 # repeated appends, instead of the typical quadratic growth present in naive
378 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
379 eval 'as_fn_append ()
392 # Perform arithmetic evaluation on the ARGs, and store the result in the
393 # global $as_val. Take advantage of shells that can avoid forks. The arguments
394 # must be portable across $(()) and expr.
395 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 as_val=`expr "$@" || test $? -eq 1`
408 # as_fn_error STATUS ERROR [LINENO LOG_FD]
409 # ----------------------------------------
410 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
411 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
412 # script with STATUS, using 1 if that was 0.
415 as_status=$1; test $as_status -eq 0 && as_status=1
417 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
418 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
420 $as_echo "$as_me: error: $2" >&2
421 as_fn_exit $as_status
424 if expr a : '\(a\)' >/dev/null 2>&1 &&
425 test "X`expr 00001 : '.*\(...\)'`" = X001; then
431 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
437 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
443 as_me=`$as_basename -- "$0" ||
444 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
445 X"$0" : 'X\(//\)$' \| \
446 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
448 sed '/^.*\/\([^/][^/]*\)\/*$/{
462 # Avoid depending upon Character Ranges.
463 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
464 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
465 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
466 as_cr_digits='0123456789'
467 as_cr_alnum=$as_cr_Letters$as_cr_digits
470 as_lineno_1=$LINENO as_lineno_1a=$LINENO
471 as_lineno_2=$LINENO as_lineno_2a=$LINENO
472 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
473 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
474 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
486 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 chmod +x "$as_me.lineno" ||
491 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
493 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
494 # already done that, so ensure we don't try to do so again and fall
495 # in an infinite loop. This has already happened in practice.
496 _as_can_reexec=no; export _as_can_reexec
497 # Don't try to exec as it changes $[0], causing all sort of problems
498 # (the dirname of $[0] is not the place where we might find the
499 # original and so on. Autoconf is especially sensitive to this).
501 # Exit status is that of the last command.
505 ECHO_C= ECHO_N= ECHO_T=
506 case `echo -n x` in #(((((
508 case `echo 'xy\c'` in
509 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
511 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 rm -f conf$$ conf$$.exe conf$$.file
519 if test -d conf$$.dir; then
520 rm -f conf$$.dir/conf$$.file
523 mkdir conf$$.dir 2>/dev/null
525 if (echo >conf$$.file) 2>/dev/null; then
526 if ln -s conf$$.file conf$$ 2>/dev/null; then
528 # ... but there are two gotchas:
529 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
530 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
531 # In both cases, we have to default to `cp -pR'.
532 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
534 elif ln conf$$.file conf$$ 2>/dev/null; then
542 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
543 rmdir conf$$.dir 2>/dev/null
545 if mkdir -p . 2>/dev/null; then
546 as_mkdir_p='mkdir -p "$as_dir"'
548 test -d ./-p && rmdir ./-p
553 as_executable_p=as_fn_executable_p
555 # Sed expression to map a string onto a valid CPP name.
556 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
558 # Sed expression to map a string onto a valid variable name.
559 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
562 test -n "$DJDIR" || exec 7<&0 </dev/null
566 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
567 # so uname gets run too.
568 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
573 ac_default_prefix=/usr/local
575 ac_config_libobj_dir=.
582 # Identity of this package.
583 PACKAGE_NAME='PostgreSQL'
584 PACKAGE_TARNAME='postgresql'
585 PACKAGE_VERSION='12devel'
586 PACKAGE_STRING='PostgreSQL 12devel'
587 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
590 ac_unique_file="src/backend/access/common/heaptuple.c"
591 ac_default_prefix=/usr/local/pgsql
592 # Factoring default headers for most tests.
593 ac_includes_default="\
595 #ifdef HAVE_SYS_TYPES_H
596 # include <sys/types.h>
598 #ifdef HAVE_SYS_STAT_H
599 # include <sys/stat.h>
605 # ifdef HAVE_STDLIB_H
610 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 #ifdef HAVE_STRINGS_H
616 # include <strings.h>
618 #ifdef HAVE_INTTYPES_H
619 # include <inttypes.h>
628 ac_subst_vars='LTLIBOBJS
662 python_additional_libs
806 program_transform_name
819 enable_option_checking
825 enable_integer_datetimes
860 with_libedit_preferred
872 ac_precious_vars='build_alias
895 # Initialize some variables set by options.
897 ac_init_version=false
898 ac_unrecognized_opts=
900 # The variables have the same names as the options, with
901 # dashes changed to underlines.
909 program_transform_name=s,x,x,
917 # Installation directory options.
918 # These are left unexpanded so users can "make install exec_prefix=/foo"
919 # and all the variables that are supposed to be based on exec_prefix
920 # by default will actually change.
921 # Use braces instead of parens because sh, perl, etc. also accept them.
922 # (The list follows the same order as the GNU Coding Standards.)
923 bindir='${exec_prefix}/bin'
924 sbindir='${exec_prefix}/sbin'
925 libexecdir='${exec_prefix}/libexec'
926 datarootdir='${prefix}/share'
927 datadir='${datarootdir}'
928 sysconfdir='${prefix}/etc'
929 sharedstatedir='${prefix}/com'
930 localstatedir='${prefix}/var'
931 includedir='${prefix}/include'
932 oldincludedir='/usr/include'
933 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
934 infodir='${datarootdir}/info'
939 libdir='${exec_prefix}/lib'
940 localedir='${datarootdir}/locale'
941 mandir='${datarootdir}/man'
947 # If the previous option needs an argument, assign it.
948 if test -n "$ac_prev"; then
949 eval $ac_prev=\$ac_option
955 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
960 # Accept the important Cygnus configure options, so we can diagnose typos.
962 case $ac_dashdash$ac_option in
966 -bindir | --bindir | --bindi | --bind | --bin | --bi)
968 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
971 -build | --build | --buil | --bui | --bu)
972 ac_prev=build_alias ;;
973 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
974 build_alias=$ac_optarg ;;
976 -cache-file | --cache-file | --cache-fil | --cache-fi \
977 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
978 ac_prev=cache_file ;;
979 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
980 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
981 cache_file=$ac_optarg ;;
984 cache_file=config.cache ;;
986 -datadir | --datadir | --datadi | --datad)
988 -datadir=* | --datadir=* | --datadi=* | --datad=*)
989 datadir=$ac_optarg ;;
991 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
992 | --dataroo | --dataro | --datar)
993 ac_prev=datarootdir ;;
994 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
995 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
996 datarootdir=$ac_optarg ;;
998 -disable-* | --disable-*)
999 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1000 # Reject names that are not valid shell variable names.
1001 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1002 as_fn_error $? "invalid feature name: $ac_useropt"
1003 ac_useropt_orig=$ac_useropt
1004 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1005 case $ac_user_opts in
1007 "enable_$ac_useropt"
1009 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1010 ac_unrecognized_sep=', ';;
1012 eval enable_$ac_useropt=no ;;
1014 -docdir | --docdir | --docdi | --doc | --do)
1016 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1017 docdir=$ac_optarg ;;
1019 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1021 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1022 dvidir=$ac_optarg ;;
1024 -enable-* | --enable-*)
1025 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1026 # Reject names that are not valid shell variable names.
1027 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1028 as_fn_error $? "invalid feature name: $ac_useropt"
1029 ac_useropt_orig=$ac_useropt
1030 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1031 case $ac_user_opts in
1033 "enable_$ac_useropt"
1035 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1036 ac_unrecognized_sep=', ';;
1038 eval enable_$ac_useropt=\$ac_optarg ;;
1040 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1041 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1042 | --exec | --exe | --ex)
1043 ac_prev=exec_prefix ;;
1044 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1045 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1046 | --exec=* | --exe=* | --ex=*)
1047 exec_prefix=$ac_optarg ;;
1049 -gas | --gas | --ga | --g)
1050 # Obsolete; use --with-gas.
1053 -help | --help | --hel | --he | -h)
1054 ac_init_help=long ;;
1055 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1056 ac_init_help=recursive ;;
1057 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1058 ac_init_help=short ;;
1060 -host | --host | --hos | --ho)
1061 ac_prev=host_alias ;;
1062 -host=* | --host=* | --hos=* | --ho=*)
1063 host_alias=$ac_optarg ;;
1065 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1067 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1069 htmldir=$ac_optarg ;;
1071 -includedir | --includedir | --includedi | --included | --include \
1072 | --includ | --inclu | --incl | --inc)
1073 ac_prev=includedir ;;
1074 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1075 | --includ=* | --inclu=* | --incl=* | --inc=*)
1076 includedir=$ac_optarg ;;
1078 -infodir | --infodir | --infodi | --infod | --info | --inf)
1080 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1081 infodir=$ac_optarg ;;
1083 -libdir | --libdir | --libdi | --libd)
1085 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1086 libdir=$ac_optarg ;;
1088 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1089 | --libexe | --libex | --libe)
1090 ac_prev=libexecdir ;;
1091 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1092 | --libexe=* | --libex=* | --libe=*)
1093 libexecdir=$ac_optarg ;;
1095 -localedir | --localedir | --localedi | --localed | --locale)
1096 ac_prev=localedir ;;
1097 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1098 localedir=$ac_optarg ;;
1100 -localstatedir | --localstatedir | --localstatedi | --localstated \
1101 | --localstate | --localstat | --localsta | --localst | --locals)
1102 ac_prev=localstatedir ;;
1103 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1104 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1105 localstatedir=$ac_optarg ;;
1107 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1109 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1110 mandir=$ac_optarg ;;
1112 -nfp | --nfp | --nf)
1113 # Obsolete; use --without-fp.
1116 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1117 | --no-cr | --no-c | -n)
1120 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1121 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1124 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1125 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1126 | --oldin | --oldi | --old | --ol | --o)
1127 ac_prev=oldincludedir ;;
1128 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1129 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1130 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1131 oldincludedir=$ac_optarg ;;
1133 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1135 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1136 prefix=$ac_optarg ;;
1138 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1139 | --program-pre | --program-pr | --program-p)
1140 ac_prev=program_prefix ;;
1141 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1142 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1143 program_prefix=$ac_optarg ;;
1145 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1146 | --program-suf | --program-su | --program-s)
1147 ac_prev=program_suffix ;;
1148 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1149 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1150 program_suffix=$ac_optarg ;;
1152 -program-transform-name | --program-transform-name \
1153 | --program-transform-nam | --program-transform-na \
1154 | --program-transform-n | --program-transform- \
1155 | --program-transform | --program-transfor \
1156 | --program-transfo | --program-transf \
1157 | --program-trans | --program-tran \
1158 | --progr-tra | --program-tr | --program-t)
1159 ac_prev=program_transform_name ;;
1160 -program-transform-name=* | --program-transform-name=* \
1161 | --program-transform-nam=* | --program-transform-na=* \
1162 | --program-transform-n=* | --program-transform-=* \
1163 | --program-transform=* | --program-transfor=* \
1164 | --program-transfo=* | --program-transf=* \
1165 | --program-trans=* | --program-tran=* \
1166 | --progr-tra=* | --program-tr=* | --program-t=*)
1167 program_transform_name=$ac_optarg ;;
1169 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1171 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1172 pdfdir=$ac_optarg ;;
1174 -psdir | --psdir | --psdi | --psd | --ps)
1176 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1179 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1180 | -silent | --silent | --silen | --sile | --sil)
1183 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1185 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1187 sbindir=$ac_optarg ;;
1189 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1190 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1191 | --sharedst | --shareds | --shared | --share | --shar \
1193 ac_prev=sharedstatedir ;;
1194 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1195 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1196 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1198 sharedstatedir=$ac_optarg ;;
1200 -site | --site | --sit)
1202 -site=* | --site=* | --sit=*)
1205 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1207 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1208 srcdir=$ac_optarg ;;
1210 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1211 | --syscon | --sysco | --sysc | --sys | --sy)
1212 ac_prev=sysconfdir ;;
1213 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1214 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1215 sysconfdir=$ac_optarg ;;
1217 -target | --target | --targe | --targ | --tar | --ta | --t)
1218 ac_prev=target_alias ;;
1219 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1220 target_alias=$ac_optarg ;;
1222 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1225 -version | --version | --versio | --versi | --vers | -V)
1226 ac_init_version=: ;;
1229 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1230 # Reject names that are not valid shell variable names.
1231 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1232 as_fn_error $? "invalid package name: $ac_useropt"
1233 ac_useropt_orig=$ac_useropt
1234 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1235 case $ac_user_opts in
1239 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1240 ac_unrecognized_sep=', ';;
1242 eval with_$ac_useropt=\$ac_optarg ;;
1244 -without-* | --without-*)
1245 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1246 # Reject names that are not valid shell variable names.
1247 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1248 as_fn_error $? "invalid package name: $ac_useropt"
1249 ac_useropt_orig=$ac_useropt
1250 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1251 case $ac_user_opts in
1255 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1256 ac_unrecognized_sep=', ';;
1258 eval with_$ac_useropt=no ;;
1261 # Obsolete; use --with-x.
1264 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1265 | --x-incl | --x-inc | --x-in | --x-i)
1266 ac_prev=x_includes ;;
1267 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1268 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1269 x_includes=$ac_optarg ;;
1271 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1272 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1273 ac_prev=x_libraries ;;
1274 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1275 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1276 x_libraries=$ac_optarg ;;
1278 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1279 Try \`$0 --help' for more information"
1283 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1284 # Reject names that are not valid shell variable names.
1285 case $ac_envvar in #(
1286 '' | [0-9]* | *[!_$as_cr_alnum]* )
1287 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1289 eval $ac_envvar=\$ac_optarg
1290 export $ac_envvar ;;
1293 # FIXME: should be removed in autoconf 3.0.
1294 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1295 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1296 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1297 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1303 if test -n "$ac_prev"; then
1304 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1305 as_fn_error $? "missing argument to $ac_option"
1308 if test -n "$ac_unrecognized_opts"; then
1309 case $enable_option_checking in
1311 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1312 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1316 # Check all directory arguments for consistency.
1317 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1318 datadir sysconfdir sharedstatedir localstatedir includedir \
1319 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1320 libdir localedir mandir
1322 eval ac_val=\$$ac_var
1323 # Remove trailing slashes.
1326 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1327 eval $ac_var=\$ac_val;;
1329 # Be sure to have absolute directory names.
1331 [\\/$]* | ?:[\\/]* ) continue;;
1332 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1334 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1337 # There might be people who depend on the old broken behavior: `$host'
1338 # used to hold the argument of --host etc.
1339 # FIXME: To remove some day.
1342 target=$target_alias
1344 # FIXME: To remove some day.
1345 if test "x$host_alias" != x; then
1346 if test "x$build_alias" = x; then
1347 cross_compiling=maybe
1348 elif test "x$build_alias" != "x$host_alias"; then
1354 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1356 test "$silent" = yes && exec 6>/dev/null
1359 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1360 ac_ls_di=`ls -di .` &&
1361 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1362 as_fn_error $? "working directory cannot be determined"
1363 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1364 as_fn_error $? "pwd does not report name of working directory"
1367 # Find the source files, if location was not specified.
1368 if test -z "$srcdir"; then
1369 ac_srcdir_defaulted=yes
1370 # Try the directory containing this script, then the parent directory.
1371 ac_confdir=`$as_dirname -- "$as_myself" ||
1372 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1373 X"$as_myself" : 'X\(//\)[^/]' \| \
1374 X"$as_myself" : 'X\(//\)$' \| \
1375 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1376 $as_echo X"$as_myself" |
1377 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1395 if test ! -r "$srcdir/$ac_unique_file"; then
1399 ac_srcdir_defaulted=no
1401 if test ! -r "$srcdir/$ac_unique_file"; then
1402 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1403 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1405 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1407 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1409 # When building in place, set srcdir=.
1410 if test "$ac_abs_confdir" = "$ac_pwd"; then
1413 # Remove unnecessary trailing slashes from srcdir.
1414 # Double slashes in file names in object file debugging info
1415 # mess up M-x gdb in Emacs.
1417 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1419 for ac_var in $ac_precious_vars; do
1420 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1421 eval ac_env_${ac_var}_value=\$${ac_var}
1422 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1423 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1427 # Report the --help message.
1429 if test "$ac_init_help" = "long"; then
1430 # Omit some internal or obsolete options to make the list less imposing.
1431 # This message is too long to be a string in the A/UX 3.1 sh.
1433 \`configure' configures PostgreSQL 12devel to adapt to many kinds of systems.
1435 Usage: $0 [OPTION]... [VAR=VALUE]...
1437 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1438 VAR=VALUE. See below for descriptions of some of the useful variables.
1440 Defaults for the options are specified in brackets.
1443 -h, --help display this help and exit
1444 --help=short display options specific to this package
1445 --help=recursive display the short help of all the included packages
1446 -V, --version display version information and exit
1447 -q, --quiet, --silent do not print \`checking ...' messages
1448 --cache-file=FILE cache test results in FILE [disabled]
1449 -C, --config-cache alias for \`--cache-file=config.cache'
1450 -n, --no-create do not create output files
1451 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1453 Installation directories:
1454 --prefix=PREFIX install architecture-independent files in PREFIX
1455 [$ac_default_prefix]
1456 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1459 By default, \`make install' will install all the files in
1460 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1461 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1462 for instance \`--prefix=\$HOME'.
1464 For better control, use the options below.
1466 Fine tuning of the installation directories:
1467 --bindir=DIR user executables [EPREFIX/bin]
1468 --sbindir=DIR system admin executables [EPREFIX/sbin]
1469 --libexecdir=DIR program executables [EPREFIX/libexec]
1470 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1471 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1472 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1473 --libdir=DIR object code libraries [EPREFIX/lib]
1474 --includedir=DIR C header files [PREFIX/include]
1475 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1476 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1477 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1478 --infodir=DIR info documentation [DATAROOTDIR/info]
1479 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1480 --mandir=DIR man documentation [DATAROOTDIR/man]
1481 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1482 --htmldir=DIR html documentation [DOCDIR]
1483 --dvidir=DIR dvi documentation [DOCDIR]
1484 --pdfdir=DIR pdf documentation [DOCDIR]
1485 --psdir=DIR ps documentation [DOCDIR]
1491 --build=BUILD configure for building on BUILD [guessed]
1492 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1496 if test -n "$ac_init_help"; then
1497 case $ac_init_help in
1498 short | recursive ) echo "Configuration of PostgreSQL 12devel:";;
1503 --disable-option-checking ignore unrecognized --enable/--with options
1504 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1505 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1506 --disable-integer-datetimes
1507 obsolete option, no longer supported
1508 --enable-nls[=LANGUAGES]
1509 enable Native Language Support
1510 --disable-rpath do not embed shared library search path in
1512 --disable-spinlocks do not use spinlocks
1513 --disable-atomics do not use atomic operations
1514 --disable-strong-random do not use a strong random number source
1515 --enable-debug build with debugging symbols (-g)
1516 --enable-profiling build with profiling enabled
1517 --enable-coverage build with coverage testing instrumentation
1518 --enable-dtrace build with DTrace support
1519 --enable-tap-tests enable TAP tests (requires Perl and IPC::Run)
1520 --enable-depend turn on automatic dependency tracking
1521 --enable-cassert enable assertion checks (for debugging)
1522 --disable-thread-safety disable thread-safety in client libraries
1523 --disable-largefile omit support for large files
1524 --disable-float4-byval disable float4 passed by value
1525 --disable-float8-byval disable float8 passed by value
1528 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1529 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1530 --with-extra-version=STRING
1531 append STRING to version
1532 --with-template=NAME override operating system template
1533 --with-includes=DIRS look for additional header files in DIRS
1534 --with-libraries=DIRS look for additional libraries in DIRS
1535 --with-libs=DIRS alternative spelling of --with-libraries
1536 --with-pgport=PORTNUM set default port number [5432]
1537 --with-blocksize=BLOCKSIZE
1538 set table block size in kB [8]
1539 --with-segsize=SEGSIZE set table segment size in GB [1]
1540 --with-wal-blocksize=BLOCKSIZE
1541 set WAL block size in kB [8]
1542 --with-CC=CMD set compiler (deprecated)
1543 --with-llvm build with LLVM based JIT support
1544 --with-icu build with ICU support
1545 --with-tcl build Tcl modules (PL/Tcl)
1546 --with-tclconfig=DIR tclConfig.sh is in DIR
1547 --with-perl build Perl modules (PL/Perl)
1548 --with-python build Python modules (PL/Python)
1549 --with-gssapi build with GSSAPI support
1550 --with-krb-srvnam=NAME default service principal name in Kerberos (GSSAPI)
1552 --with-pam build with PAM support
1553 --with-bsd-auth build with BSD Authentication support
1554 --with-ldap build with LDAP support
1555 --with-bonjour build with Bonjour support
1556 --with-openssl build with OpenSSL support
1557 --with-selinux build with SELinux support
1558 --with-systemd build with systemd support
1559 --without-readline do not use GNU Readline nor BSD Libedit for editing
1560 --with-libedit-preferred
1561 prefer BSD Libedit over GNU Readline
1562 --with-uuid=LIB build contrib/uuid-ossp using LIB (bsd,e2fs,ossp)
1563 --with-ossp-uuid obsolete spelling of --with-uuid=ossp
1564 --with-libxml build with XML support
1565 --with-libxslt use XSLT support when building contrib/xml2
1566 --with-system-tzdata=DIR
1567 use system time zone data in DIR
1568 --without-zlib do not use Zlib
1569 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1571 Some influential environment variables:
1572 CC C compiler command
1573 CFLAGS C compiler flags
1574 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1575 nonstandard directory <lib dir>
1576 LIBS libraries to pass to the linker, e.g. -l<library>
1577 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1578 you have headers in a nonstandard directory <include dir>
1579 CXX C++ compiler command
1580 CXXFLAGS C++ compiler flags
1581 LLVM_CONFIG path to llvm-config command
1582 CLANG path to clang compiler to generate bitcode
1584 PKG_CONFIG path to pkg-config utility
1586 directories to add to pkg-config's search path
1588 path overriding pkg-config's built-in search path
1589 ICU_CFLAGS C compiler flags for ICU, overriding pkg-config
1590 ICU_LIBS linker flags for ICU, overriding pkg-config
1591 LDFLAGS_EX extra linker flags for linking executables only
1592 LDFLAGS_SL extra linker flags for linking shared libraries only
1594 Use these variables to override the choices made by `configure' or to help
1595 it to find libraries and programs with nonstandard names/locations.
1597 Report bugs to <pgsql-bugs@postgresql.org>.
1602 if test "$ac_init_help" = "recursive"; then
1603 # If there are subdirs, report their specific --help.
1604 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1605 test -d "$ac_dir" ||
1606 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1611 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1613 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1614 # A ".." for each directory in $ac_dir_suffix.
1615 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1616 case $ac_top_builddir_sub in
1617 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1618 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1621 ac_abs_top_builddir=$ac_pwd
1622 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1623 # for backward compatibility:
1624 ac_top_builddir=$ac_top_build_prefix
1627 .) # We are building in place.
1629 ac_top_srcdir=$ac_top_builddir_sub
1630 ac_abs_top_srcdir=$ac_pwd ;;
1631 [\\/]* | ?:[\\/]* ) # Absolute name.
1632 ac_srcdir=$srcdir$ac_dir_suffix;
1633 ac_top_srcdir=$srcdir
1634 ac_abs_top_srcdir=$srcdir ;;
1636 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1637 ac_top_srcdir=$ac_top_build_prefix$srcdir
1638 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1640 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1642 cd "$ac_dir" || { ac_status=$?; continue; }
1643 # Check for guested configure.
1644 if test -f "$ac_srcdir/configure.gnu"; then
1646 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1647 elif test -f "$ac_srcdir/configure"; then
1649 $SHELL "$ac_srcdir/configure" --help=recursive
1651 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1653 cd "$ac_pwd" || { ac_status=$?; break; }
1657 test -n "$ac_init_help" && exit $ac_status
1658 if $ac_init_version; then
1660 PostgreSQL configure 12devel
1661 generated by GNU Autoconf 2.69
1663 Copyright (C) 2012 Free Software Foundation, Inc.
1664 This configure script is free software; the Free Software Foundation
1665 gives unlimited permission to copy, distribute and modify it.
1667 Copyright (c) 1996-2018, PostgreSQL Global Development Group
1672 ## ------------------------ ##
1673 ## Autoconf initialization. ##
1674 ## ------------------------ ##
1676 # ac_fn_c_try_compile LINENO
1677 # --------------------------
1678 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1679 ac_fn_c_try_compile ()
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 rm -f conftest.$ac_objext
1683 if { { ac_try="$ac_compile"
1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686 *) ac_try_echo=$ac_try;;
1688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689 $as_echo "$ac_try_echo"; } >&5
1690 (eval "$ac_compile") 2>conftest.err
1692 if test -s conftest.err; then
1693 grep -v '^ *+' conftest.err >conftest.er1
1694 cat conftest.er1 >&5
1695 mv -f conftest.er1 conftest.err
1697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698 test $ac_status = 0; } && {
1699 test -z "$ac_c_werror_flag" ||
1700 test ! -s conftest.err
1701 } && test -s conftest.$ac_objext; then :
1704 $as_echo "$as_me: failed program was:" >&5
1705 sed 's/^/| /' conftest.$ac_ext >&5
1709 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1710 as_fn_set_status $ac_retval
1712 } # ac_fn_c_try_compile
1714 # ac_fn_cxx_try_compile LINENO
1715 # ----------------------------
1716 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1717 ac_fn_cxx_try_compile ()
1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720 rm -f conftest.$ac_objext
1721 if { { ac_try="$ac_compile"
1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724 *) ac_try_echo=$ac_try;;
1726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727 $as_echo "$ac_try_echo"; } >&5
1728 (eval "$ac_compile") 2>conftest.err
1730 if test -s conftest.err; then
1731 grep -v '^ *+' conftest.err >conftest.er1
1732 cat conftest.er1 >&5
1733 mv -f conftest.er1 conftest.err
1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736 test $ac_status = 0; } && {
1737 test -z "$ac_cxx_werror_flag" ||
1738 test ! -s conftest.err
1739 } && test -s conftest.$ac_objext; then :
1742 $as_echo "$as_me: failed program was:" >&5
1743 sed 's/^/| /' conftest.$ac_ext >&5
1747 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1748 as_fn_set_status $ac_retval
1750 } # ac_fn_cxx_try_compile
1752 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1753 # ---------------------------------------------
1754 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1756 ac_fn_c_check_decl ()
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759 # Initialize each $ac_[]_AC_LANG_ABBREV[]_decl_warn_flag once.
1760 as_decl_name=`echo $2|sed 's/ *(.*//'`
1761 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1763 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1764 if eval \${$3+:} false; then :
1765 $as_echo_n "(cached) " >&6
1767 ac_save_werror_flag=$ac_c_werror_flag
1768 ac_c_werror_flag="$ac_c_decl_warn_flag$ac_c_werror_flag"
1769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1770 /* end confdefs.h. */
1775 #ifndef $as_decl_name
1777 (void) $as_decl_use;
1779 (void) $as_decl_name;
1787 if ac_fn_c_try_compile "$LINENO"; then :
1792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1793 ac_c_werror_flag=$ac_save_werror_flag
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1797 $as_echo "$ac_res" >&6; }
1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800 } # ac_fn_c_check_decl
1802 # ac_fn_c_try_link LINENO
1803 # -----------------------
1804 # Try to link conftest.$ac_ext, and return whether this succeeded.
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 rm -f conftest.$ac_objext conftest$ac_exeext
1809 if { { ac_try="$ac_link"
1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812 *) ac_try_echo=$ac_try;;
1814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815 $as_echo "$ac_try_echo"; } >&5
1816 (eval "$ac_link") 2>conftest.err
1818 if test -s conftest.err; then
1819 grep -v '^ *+' conftest.err >conftest.er1
1820 cat conftest.er1 >&5
1821 mv -f conftest.er1 conftest.err
1823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824 test $ac_status = 0; } && {
1825 test -z "$ac_c_werror_flag" ||
1826 test ! -s conftest.err
1827 } && test -s conftest$ac_exeext && {
1828 test "$cross_compiling" = yes ||
1829 test -x conftest$ac_exeext
1833 $as_echo "$as_me: failed program was:" >&5
1834 sed 's/^/| /' conftest.$ac_ext >&5
1838 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1839 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1840 # interfere with the next link command; also delete a directory that is
1841 # left behind by Apple's compiler. We do this before executing the actions.
1842 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1843 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1844 as_fn_set_status $ac_retval
1846 } # ac_fn_c_try_link
1848 # ac_fn_c_try_cpp LINENO
1849 # ----------------------
1850 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854 if { { ac_try="$ac_cpp conftest.$ac_ext"
1856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1857 *) ac_try_echo=$ac_try;;
1859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860 $as_echo "$ac_try_echo"; } >&5
1861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1863 if test -s conftest.err; then
1864 grep -v '^ *+' conftest.err >conftest.er1
1865 cat conftest.er1 >&5
1866 mv -f conftest.er1 conftest.err
1868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1869 test $ac_status = 0; } > conftest.i && {
1870 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1871 test ! -s conftest.err
1875 $as_echo "$as_me: failed program was:" >&5
1876 sed 's/^/| /' conftest.$ac_ext >&5
1880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881 as_fn_set_status $ac_retval
1885 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1886 # -------------------------------------------------------
1887 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1888 # the include files in INCLUDES and setting the cache variable VAR
1890 ac_fn_c_check_header_mongrel ()
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893 if eval \${$3+:} false; then :
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1895 $as_echo_n "checking for $2... " >&6; }
1896 if eval \${$3+:} false; then :
1897 $as_echo_n "(cached) " >&6
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1901 $as_echo "$ac_res" >&6; }
1903 # Is the header compilable?
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1905 $as_echo_n "checking $2 usability... " >&6; }
1906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907 /* end confdefs.h. */
1911 if ac_fn_c_try_compile "$LINENO"; then :
1912 ac_header_compiler=yes
1914 ac_header_compiler=no
1916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1918 $as_echo "$ac_header_compiler" >&6; }
1920 # Is the header present?
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1922 $as_echo_n "checking $2 presence... " >&6; }
1923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924 /* end confdefs.h. */
1927 if ac_fn_c_try_cpp "$LINENO"; then :
1928 ac_header_preproc=yes
1930 ac_header_preproc=no
1932 rm -f conftest.err conftest.i conftest.$ac_ext
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1934 $as_echo "$ac_header_preproc" >&6; }
1936 # So? What about this header?
1937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1940 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1942 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1946 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1948 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1950 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1952 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1954 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1955 ( $as_echo "## ---------------------------------------- ##
1956 ## Report this to pgsql-bugs@postgresql.org ##
1957 ## ---------------------------------------- ##"
1958 ) | sed "s/^/$as_me: WARNING: /" >&2
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1962 $as_echo_n "checking for $2... " >&6; }
1963 if eval \${$3+:} false; then :
1964 $as_echo_n "(cached) " >&6
1966 eval "$3=\$ac_header_compiler"
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1970 $as_echo "$ac_res" >&6; }
1972 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1974 } # ac_fn_c_check_header_mongrel
1976 # ac_fn_c_try_run LINENO
1977 # ----------------------
1978 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1979 # that executables *can* be run.
1982 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983 if { { ac_try="$ac_link"
1985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1986 *) ac_try_echo=$ac_try;;
1988 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1989 $as_echo "$ac_try_echo"; } >&5
1990 (eval "$ac_link") 2>&5
1992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1993 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1994 { { case "(($ac_try" in
1995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1996 *) ac_try_echo=$ac_try;;
1998 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1999 $as_echo "$ac_try_echo"; } >&5
2000 (eval "$ac_try") 2>&5
2002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2003 test $ac_status = 0; }; }; then :
2006 $as_echo "$as_me: program exited with status $ac_status" >&5
2007 $as_echo "$as_me: failed program was:" >&5
2008 sed 's/^/| /' conftest.$ac_ext >&5
2010 ac_retval=$ac_status
2012 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2013 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2014 as_fn_set_status $ac_retval
2018 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2019 # -------------------------------------------------------
2020 # Tests whether HEADER exists and can be compiled using the include files in
2021 # INCLUDES, setting the cache variable VAR accordingly.
2022 ac_fn_c_check_header_compile ()
2024 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2026 $as_echo_n "checking for $2... " >&6; }
2027 if eval \${$3+:} false; then :
2028 $as_echo_n "(cached) " >&6
2030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031 /* end confdefs.h. */
2035 if ac_fn_c_try_compile "$LINENO"; then :
2040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2044 $as_echo "$ac_res" >&6; }
2045 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2047 } # ac_fn_c_check_header_compile
2049 # ac_fn_c_check_func LINENO FUNC VAR
2050 # ----------------------------------
2051 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2052 ac_fn_c_check_func ()
2054 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2056 $as_echo_n "checking for $2... " >&6; }
2057 if eval \${$3+:} false; then :
2058 $as_echo_n "(cached) " >&6
2060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061 /* end confdefs.h. */
2062 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2064 #define $2 innocuous_$2
2066 /* System header to define __stub macros and hopefully few prototypes,
2067 which can conflict with char $2 (); below.
2068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2069 <limits.h> exists even on freestanding compilers. */
2072 # include <limits.h>
2074 # include <assert.h>
2079 /* Override any GCC internal prototype to avoid an error.
2080 Use char because int might match the return type of a GCC
2081 builtin and then its argument prototype would still apply. */
2086 /* The GNU C library defines this for functions which it implements
2087 to always fail with ENOSYS. Some functions are actually named
2088 something starting with __ and the normal name is an alias. */
2089 #if defined __stub_$2 || defined __stub___$2
2101 if ac_fn_c_try_link "$LINENO"; then :
2106 rm -f core conftest.err conftest.$ac_objext \
2107 conftest$ac_exeext conftest.$ac_ext
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2111 $as_echo "$ac_res" >&6; }
2112 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2114 } # ac_fn_c_check_func
2116 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2117 # -------------------------------------------
2118 # Tests whether TYPE exists after having included INCLUDES, setting cache
2119 # variable VAR accordingly.
2120 ac_fn_c_check_type ()
2122 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2124 $as_echo_n "checking for $2... " >&6; }
2125 if eval \${$3+:} false; then :
2126 $as_echo_n "(cached) " >&6
2129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2130 /* end confdefs.h. */
2141 if ac_fn_c_try_compile "$LINENO"; then :
2142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2143 /* end confdefs.h. */
2154 if ac_fn_c_try_compile "$LINENO"; then :
2159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2165 $as_echo "$ac_res" >&6; }
2166 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2168 } # ac_fn_c_check_type
2170 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2171 # ----------------------------------------------------
2172 # Tries to find if the field MEMBER exists in type AGGR, after including
2173 # INCLUDES, setting cache variable VAR accordingly.
2174 ac_fn_c_check_member ()
2176 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2178 $as_echo_n "checking for $2.$3... " >&6; }
2179 if eval \${$4+:} false; then :
2180 $as_echo_n "(cached) " >&6
2182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183 /* end confdefs.h. */
2195 if ac_fn_c_try_compile "$LINENO"; then :
2198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199 /* end confdefs.h. */
2205 if (sizeof ac_aggr.$3)
2211 if ac_fn_c_try_compile "$LINENO"; then :
2216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2222 $as_echo "$ac_res" >&6; }
2223 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2225 } # ac_fn_c_check_member
2227 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2228 # --------------------------------------------
2229 # Tries to find the compile-time value of EXPR in a program that includes
2230 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2232 ac_fn_c_compute_int ()
2234 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2235 if test "$cross_compiling" = yes; then
2236 # Depending upon the size, compute the lo and hi bounds.
2237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238 /* end confdefs.h. */
2243 static int test_array [1 - 2 * !(($2) >= 0)];
2245 return test_array [0];
2251 if ac_fn_c_try_compile "$LINENO"; then :
2254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2255 /* end confdefs.h. */
2260 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2262 return test_array [0];
2268 if ac_fn_c_try_compile "$LINENO"; then :
2269 ac_hi=$ac_mid; break
2271 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2272 if test $ac_lo -le $ac_mid; then
2276 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2282 /* end confdefs.h. */
2287 static int test_array [1 - 2 * !(($2) < 0)];
2289 return test_array [0];
2295 if ac_fn_c_try_compile "$LINENO"; then :
2298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2299 /* end confdefs.h. */
2304 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2306 return test_array [0];
2312 if ac_fn_c_try_compile "$LINENO"; then :
2313 ac_lo=$ac_mid; break
2315 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2316 if test $ac_mid -le $ac_hi; then
2320 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2330 # Binary search between lo and hi bounds.
2331 while test "x$ac_lo" != "x$ac_hi"; do
2332 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2334 /* end confdefs.h. */
2339 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2341 return test_array [0];
2347 if ac_fn_c_try_compile "$LINENO"; then :
2350 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2355 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2360 /* end confdefs.h. */
2362 static long int longval () { return $2; }
2363 static unsigned long int ulongval () { return $2; }
2370 FILE *f = fopen ("conftest.val", "w");
2375 long int i = longval ();
2378 fprintf (f, "%ld", i);
2382 unsigned long int i = ulongval ();
2385 fprintf (f, "%lu", i);
2387 /* Do not output a trailing newline, as this causes \r\n confusion
2388 on some platforms. */
2389 return ferror (f) || fclose (f) != 0;
2395 if ac_fn_c_try_run "$LINENO"; then :
2396 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2401 conftest.$ac_objext conftest.beam conftest.$ac_ext
2405 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2406 as_fn_set_status $ac_retval
2408 } # ac_fn_c_compute_int
2409 cat >config.log <<_ACEOF
2410 This file contains any messages produced by compilers while
2411 running configure, to aid debugging if configure makes a mistake.
2413 It was created by PostgreSQL $as_me 12devel, which was
2414 generated by GNU Autoconf 2.69. Invocation command line was
2426 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2427 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2428 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2429 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2430 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2432 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2433 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2435 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2436 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2437 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2438 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2439 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2440 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2441 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449 test -z "$as_dir" && as_dir=.
2450 $as_echo "PATH: $as_dir"
2466 # Keep a trace of the command line.
2467 # Strip out --no-create and --no-recursion so they do not pile up.
2468 # Strip out --silent because we don't want to record it for future runs.
2469 # Also quote any args containing shell meta-characters.
2470 # Make two passes to allow for proper duplicate-argument suppression.
2474 ac_must_keep_next=false
2480 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2481 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2482 | -silent | --silent | --silen | --sile | --sil)
2485 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2488 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2490 as_fn_append ac_configure_args1 " '$ac_arg'"
2491 if test $ac_must_keep_next = true; then
2492 ac_must_keep_next=false # Got value, back to normal.
2495 *=* | --config-cache | -C | -disable-* | --disable-* \
2496 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2497 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2498 | -with-* | --with-* | -without-* | --without-* | --x)
2499 case "$ac_configure_args0 " in
2500 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2503 -* ) ac_must_keep_next=true ;;
2506 as_fn_append ac_configure_args " '$ac_arg'"
2511 { ac_configure_args0=; unset ac_configure_args0;}
2512 { ac_configure_args1=; unset ac_configure_args1;}
2514 # When interrupted or exit'd, cleanup temporary files, and complete
2515 # config.log. We remove comments because anyway the quotes in there
2516 # would cause problems or look ugly.
2517 # WARNING: Use '\'' to represent an apostrophe within the trap.
2518 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2519 trap 'exit_status=$?
2520 # Save into config.log some information that might help in debugging.
2524 $as_echo "## ---------------- ##
2525 ## Cache variables. ##
2526 ## ---------------- ##"
2528 # The following way of writing the cache mishandles newlines in values,
2530 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2531 eval ac_val=\$$ac_var
2535 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2536 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2539 _ | IFS | as_nl) ;; #(
2540 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2541 *) { eval $ac_var=; unset $ac_var;} ;;
2546 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2547 *${as_nl}ac_space=\ *)
2549 "s/'\''/'\''\\\\'\'''\''/g;
2550 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2553 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2560 $as_echo "## ----------------- ##
2561 ## Output variables. ##
2562 ## ----------------- ##"
2564 for ac_var in $ac_subst_vars
2566 eval ac_val=\$$ac_var
2568 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2570 $as_echo "$ac_var='\''$ac_val'\''"
2574 if test -n "$ac_subst_files"; then
2575 $as_echo "## ------------------- ##
2576 ## File substitutions. ##
2577 ## ------------------- ##"
2579 for ac_var in $ac_subst_files
2581 eval ac_val=\$$ac_var
2583 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2585 $as_echo "$ac_var='\''$ac_val'\''"
2590 if test -s confdefs.h; then
2591 $as_echo "## ----------- ##
2598 test "$ac_signal" != 0 &&
2599 $as_echo "$as_me: caught signal $ac_signal"
2600 $as_echo "$as_me: exit $exit_status"
2602 rm -f core *.core core.conftest.* &&
2603 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2606 for ac_signal in 1 2 13 15; do
2607 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2611 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2612 rm -f -r conftest* confdefs.h
2614 $as_echo "/* confdefs.h */" > confdefs.h
2616 # Predefined preprocessor variables.
2618 cat >>confdefs.h <<_ACEOF
2619 #define PACKAGE_NAME "$PACKAGE_NAME"
2622 cat >>confdefs.h <<_ACEOF
2623 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2626 cat >>confdefs.h <<_ACEOF
2627 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2630 cat >>confdefs.h <<_ACEOF
2631 #define PACKAGE_STRING "$PACKAGE_STRING"
2634 cat >>confdefs.h <<_ACEOF
2635 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2638 cat >>confdefs.h <<_ACEOF
2639 #define PACKAGE_URL "$PACKAGE_URL"
2643 # Let the site file select an alternate cache file if it wants to.
2644 # Prefer an explicitly selected file to automatically selected ones.
2647 if test -n "$CONFIG_SITE"; then
2648 # We do not want a PATH search for config.site.
2649 case $CONFIG_SITE in #((
2650 -*) ac_site_file1=./$CONFIG_SITE;;
2651 */*) ac_site_file1=$CONFIG_SITE;;
2652 *) ac_site_file1=./$CONFIG_SITE;;
2654 elif test "x$prefix" != xNONE; then
2655 ac_site_file1=$prefix/share/config.site
2656 ac_site_file2=$prefix/etc/config.site
2658 ac_site_file1=$ac_default_prefix/share/config.site
2659 ac_site_file2=$ac_default_prefix/etc/config.site
2661 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2663 test "x$ac_site_file" = xNONE && continue
2664 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2666 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2667 sed 's/^/| /' "$ac_site_file" >&5
2669 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2671 as_fn_error $? "failed to load site script $ac_site_file
2672 See \`config.log' for more details" "$LINENO" 5; }
2676 if test -r "$cache_file"; then
2677 # Some versions of bash will fail to source /dev/null (special files
2678 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2679 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2681 $as_echo "$as_me: loading cache $cache_file" >&6;}
2683 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2684 *) . "./$cache_file";;
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2689 $as_echo "$as_me: creating cache $cache_file" >&6;}
2693 # Check that the precious variables saved in the cache have kept the same
2695 ac_cache_corrupted=false
2696 for ac_var in $ac_precious_vars; do
2697 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2698 eval ac_new_set=\$ac_env_${ac_var}_set
2699 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2700 eval ac_new_val=\$ac_env_${ac_var}_value
2701 case $ac_old_set,$ac_new_set in
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2704 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2705 ac_cache_corrupted=: ;;
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2708 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2709 ac_cache_corrupted=: ;;
2712 if test "x$ac_old_val" != "x$ac_new_val"; then
2713 # differences in whitespace do not lead to failure.
2714 ac_old_val_w=`echo x $ac_old_val`
2715 ac_new_val_w=`echo x $ac_new_val`
2716 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2718 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2719 ac_cache_corrupted=:
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2722 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2723 eval $ac_var=\$ac_old_val
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2726 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2728 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2731 # Pass precious variables to config.status.
2732 if test "$ac_new_set" = set; then
2734 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2735 *) ac_arg=$ac_var=$ac_new_val ;;
2737 case " $ac_configure_args " in
2738 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2739 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2743 if $ac_cache_corrupted; then
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2745 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2747 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2748 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2750 ## -------------------- ##
2751 ## Main body of script. ##
2752 ## -------------------- ##
2755 ac_cpp='$CPP $CPPFLAGS'
2756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2766 for ac_dir in config "$srcdir"/config; do
2767 if test -f "$ac_dir/install-sh"; then
2769 ac_install_sh="$ac_aux_dir/install-sh -c"
2771 elif test -f "$ac_dir/install.sh"; then
2773 ac_install_sh="$ac_aux_dir/install.sh -c"
2775 elif test -f "$ac_dir/shtool"; then
2777 ac_install_sh="$ac_aux_dir/shtool install -c"
2781 if test -z "$ac_aux_dir"; then
2782 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2785 # These three variables are undocumented and unsupported,
2786 # and are intended to be withdrawn in a future Autoconf release.
2787 # They can cause serious problems if a builder's source tree is in a directory
2788 # whose full name contains unusual characters.
2789 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2790 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2791 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2795 configure_args=$ac_configure_args
2798 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\)'`
2801 cat >>confdefs.h <<_ACEOF
2802 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2809 # Check whether --with-extra-version was given.
2810 if test "${with_extra_version+set}" = set; then :
2811 withval=$with_extra_version;
2814 as_fn_error $? "argument required for --with-extra-version option" "$LINENO" 5
2817 as_fn_error $? "argument required for --with-extra-version option" "$LINENO" 5
2820 PG_VERSION="$PACKAGE_VERSION$withval"
2825 PG_VERSION="$PACKAGE_VERSION"
2830 cat >>confdefs.h <<_ACEOF
2831 #define PG_VERSION "$PG_VERSION"
2835 # Make sure we can run config.sub.
2836 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2837 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2840 $as_echo_n "checking build system type... " >&6; }
2841 if ${ac_cv_build+:} false; then :
2842 $as_echo_n "(cached) " >&6
2844 ac_build_alias=$build_alias
2845 test "x$ac_build_alias" = x &&
2846 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2847 test "x$ac_build_alias" = x &&
2848 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2849 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2850 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2854 $as_echo "$ac_cv_build" >&6; }
2855 case $ac_cv_build in
2857 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2860 ac_save_IFS=$IFS; IFS='-'
2866 # Remember, the first character of IFS is used to create $*,
2867 # except with old shells:
2870 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2874 $as_echo_n "checking host system type... " >&6; }
2875 if ${ac_cv_host+:} false; then :
2876 $as_echo_n "(cached) " >&6
2878 if test "x$host_alias" = x; then
2879 ac_cv_host=$ac_cv_build
2881 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2882 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2887 $as_echo "$ac_cv_host" >&6; }
2890 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2893 ac_save_IFS=$IFS; IFS='-'
2899 # Remember, the first character of IFS is used to create $*,
2900 # except with old shells:
2903 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which template to use" >&5
2909 $as_echo_n "checking which template to use... " >&6; }
2914 # Check whether --with-template was given.
2915 if test "${with_template+set}" = set; then :
2916 withval=$with_template;
2919 as_fn_error $? "argument required for --with-template option" "$LINENO" 5
2922 as_fn_error $? "argument required for --with-template option" "$LINENO" 5
2927 list) echo; ls "$srcdir/src/template"; exit;;
2928 *) if test -f "$srcdir/src/template/$with_template" ; then
2931 as_fn_error $? "'$withval' is not a valid template name. Use 'list' for a list." "$LINENO" 5
2940 # --with-template not given
2943 aix*) template=aix ;;
2944 cygwin*) template=cygwin ;;
2945 darwin*) template=darwin ;;
2946 dragonfly*) template=netbsd ;;
2947 freebsd*) template=freebsd ;;
2948 hpux*) template=hpux ;;
2949 linux*|gnu*|k*bsd*-gnu)
2951 mingw*) template=win32 ;;
2952 netbsd*) template=netbsd ;;
2953 openbsd*) template=openbsd ;;
2954 solaris*) template=solaris ;;
2957 if test x"$template" = x"" ; then
2959 *******************************************************************
2960 PostgreSQL has apparently not been ported to your platform yet.
2961 To try a manual configuration, look into the src/template directory
2962 for a similar platform and use the '--with-template=' option.
2964 Please also contact <pgsql-bugs@postgresql.org> to see about
2965 rectifying this. Include the above 'checking host system type...'
2967 *******************************************************************
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $template" >&5
2977 $as_echo "$template" >&6; }
2982 # Initialize default assumption that we do not need separate assembly code
2983 # for TAS (test-and-set). This can be overridden by the template file
2984 # when it's executed.
2991 ## Command line options
2995 # Add non-standard directories to the include path
3000 # Check whether --with-includes was given.
3001 if test "${with_includes+set}" = set; then :
3002 withval=$with_includes;
3005 as_fn_error $? "argument required for --with-includes option" "$LINENO" 5
3008 as_fn_error $? "argument required for --with-includes option" "$LINENO" 5
3021 # Add non-standard directories to the library search path
3026 # Check whether --with-libraries was given.
3027 if test "${with_libraries+set}" = set; then :
3028 withval=$with_libraries;
3031 as_fn_error $? "argument required for --with-libraries option" "$LINENO" 5
3034 as_fn_error $? "argument required for --with-libraries option" "$LINENO" 5
3037 LIBRARY_DIRS=$withval
3048 # Check whether --with-libs was given.
3049 if test "${with_libs+set}" = set; then :
3053 as_fn_error $? "argument required for --with-libs option" "$LINENO" 5
3056 as_fn_error $? "argument required for --with-libs option" "$LINENO" 5
3059 LIBRARY_DIRS=$withval
3069 # 64-bit integer date/time storage is now the only option, but to avoid
3070 # unnecessary breakage of build scripts, continue to accept an explicit
3071 # "--enable-integer-datetimes" switch.
3075 # Check whether --enable-integer-datetimes was given.
3076 if test "${enable_integer_datetimes+set}" = set; then :
3077 enableval=$enable_integer_datetimes;
3083 as_fn_error $? "--disable-integer-datetimes is no longer supported" "$LINENO" 5
3086 as_fn_error $? "no argument expected for --enable-integer-datetimes option" "$LINENO" 5
3091 enable_integer_datetimes=yes
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is wanted" >&5
3102 $as_echo_n "checking whether NLS is wanted... " >&6; }
3105 # Check whether --enable-nls was given.
3106 if test "${enable_nls+set}" = set; then :
3107 enableval=$enable_nls;
3117 WANTED_LANGUAGES=$enableval
3127 if test "$enable_nls" = yes; then
3129 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nls" >&5
3134 $as_echo "$enable_nls" >&6; }
3139 # Default port number (--with-pgport), default 5432
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default port number" >&5
3142 $as_echo_n "checking for default port number... " >&6; }
3146 # Check whether --with-pgport was given.
3147 if test "${with_pgport+set}" = set; then :
3148 withval=$with_pgport;
3151 as_fn_error $? "argument required for --with-pgport option" "$LINENO" 5
3154 as_fn_error $? "argument required for --with-pgport option" "$LINENO" 5
3157 default_port=$withval
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $default_port" >&5
3167 $as_echo "$default_port" >&6; }
3168 # Need both of these because some places want an integer and some a string
3170 cat >>confdefs.h <<_ACEOF
3171 #define DEF_PGPORT ${default_port}
3175 cat >>confdefs.h <<_ACEOF
3176 #define DEF_PGPORT_STR "${default_port}"
3181 # It's worth validating port; you can get very confusing errors otherwise
3182 if test x"$default_port" = x""; then
3183 as_fn_error $? "invalid --with-pgport specification: empty string" "$LINENO" 5
3184 elif test ! x`echo "$default_port" | sed -e 's/[0-9]*//'` = x""; then
3185 as_fn_error $? "invalid --with-pgport specification: must be a number" "$LINENO" 5
3186 elif test ! x`echo "$default_port" | sed -e 's/^0.//'` = x"$default_port"; then
3187 as_fn_error $? "invalid --with-pgport specification: must not have leading 0" "$LINENO" 5
3188 elif test "$default_port" -lt "1" -o "$default_port" -gt "65535"; then
3189 as_fn_error $? "invalid --with-pgport specification: must be between 1 and 65535" "$LINENO" 5
3193 # '-rpath'-like feature can be disabled
3197 # Check whether --enable-rpath was given.
3198 if test "${enable_rpath+set}" = set; then :
3199 enableval=$enable_rpath;
3208 as_fn_error $? "no argument expected for --enable-rpath option" "$LINENO" 5
3225 # Check whether --enable-spinlocks was given.
3226 if test "${enable_spinlocks+set}" = set; then :
3227 enableval=$enable_spinlocks;
3236 as_fn_error $? "no argument expected for --enable-spinlocks option" "$LINENO" 5
3241 enable_spinlocks=yes
3252 # Check whether --enable-atomics was given.
3253 if test "${enable_atomics+set}" = set; then :
3254 enableval=$enable_atomics;
3263 as_fn_error $? "no argument expected for --enable-atomics option" "$LINENO" 5
3275 # Random number generation
3279 # Check whether --enable-strong-random was given.
3280 if test "${enable_strong_random+set}" = set; then :
3281 enableval=$enable_strong_random;
3290 as_fn_error $? "no argument expected for --enable-strong-random option" "$LINENO" 5
3295 enable_strong_random=yes
3303 # --enable-debug adds -g to compiler flags
3307 # Check whether --enable-debug was given.
3308 if test "${enable_debug+set}" = set; then :
3309 enableval=$enable_debug;
3318 as_fn_error $? "no argument expected for --enable-debug option" "$LINENO" 5
3331 # --enable-profiling enables gcc profiling
3335 # Check whether --enable-profiling was given.
3336 if test "${enable_profiling+set}" = set; then :
3337 enableval=$enable_profiling;
3346 as_fn_error $? "no argument expected for --enable-profiling option" "$LINENO" 5
3358 # --enable-coverage enables generation of code coverage metrics with gcov
3362 # Check whether --enable-coverage was given.
3363 if test "${enable_coverage+set}" = set; then :
3364 enableval=$enable_coverage;
3367 if test -z "$GCOV"; then
3370 # Extract the first word of "$ac_prog", so it can be a program name with args.
3371 set dummy $ac_prog; ac_word=$2
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3373 $as_echo_n "checking for $ac_word... " >&6; }
3374 if ${ac_cv_path_GCOV+:} false; then :
3375 $as_echo_n "(cached) " >&6
3379 ac_cv_path_GCOV="$GCOV" # Let the user override the test with a path.
3382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386 test -z "$as_dir" && as_dir=.
3387 for ac_exec_ext in '' $ac_executable_extensions; do
3388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3389 ac_cv_path_GCOV="$as_dir/$ac_word$ac_exec_ext"
3390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3400 GCOV=$ac_cv_path_GCOV
3401 if test -n "$GCOV"; then
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3403 $as_echo "$GCOV" >&6; }
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3406 $as_echo "no" >&6; }
3410 test -n "$GCOV" && break
3414 # Report the value of GCOV in configure's output in all cases.
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCOV" >&5
3416 $as_echo_n "checking for GCOV... " >&6; }
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3418 $as_echo "$GCOV" >&6; }
3421 if test -z "$GCOV"; then
3422 as_fn_error $? "gcov not found" "$LINENO" 5
3424 if test -z "$LCOV"; then
3427 # Extract the first word of "$ac_prog", so it can be a program name with args.
3428 set dummy $ac_prog; ac_word=$2
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3430 $as_echo_n "checking for $ac_word... " >&6; }
3431 if ${ac_cv_path_LCOV+:} false; then :
3432 $as_echo_n "(cached) " >&6
3436 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
3439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3443 test -z "$as_dir" && as_dir=.
3444 for ac_exec_ext in '' $ac_executable_extensions; do
3445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3446 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
3447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3457 LCOV=$ac_cv_path_LCOV
3458 if test -n "$LCOV"; then
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3460 $as_echo "$LCOV" >&6; }
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3463 $as_echo "no" >&6; }
3467 test -n "$LCOV" && break
3471 # Report the value of LCOV in configure's output in all cases.
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCOV" >&5
3473 $as_echo_n "checking for LCOV... " >&6; }
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3475 $as_echo "$LCOV" >&6; }
3478 if test -z "$LCOV"; then
3479 as_fn_error $? "lcov not found" "$LINENO" 5
3481 if test -z "$GENHTML"; then
3482 for ac_prog in genhtml
3484 # Extract the first word of "$ac_prog", so it can be a program name with args.
3485 set dummy $ac_prog; ac_word=$2
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3487 $as_echo_n "checking for $ac_word... " >&6; }
3488 if ${ac_cv_path_GENHTML+:} false; then :
3489 $as_echo_n "(cached) " >&6
3493 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
3496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3500 test -z "$as_dir" && as_dir=.
3501 for ac_exec_ext in '' $ac_executable_extensions; do
3502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3503 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
3504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3514 GENHTML=$ac_cv_path_GENHTML
3515 if test -n "$GENHTML"; then
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3517 $as_echo "$GENHTML" >&6; }
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3520 $as_echo "no" >&6; }
3524 test -n "$GENHTML" && break
3528 # Report the value of GENHTML in configure's output in all cases.
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GENHTML" >&5
3530 $as_echo_n "checking for GENHTML... " >&6; }
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3532 $as_echo "$GENHTML" >&6; }
3535 if test -z "$GENHTML"; then
3536 as_fn_error $? "genhtml not found" "$LINENO" 5
3543 as_fn_error $? "no argument expected for --enable-coverage option" "$LINENO" 5
3560 # Check whether --enable-dtrace was given.
3561 if test "${enable_dtrace+set}" = set; then :
3562 enableval=$enable_dtrace;
3565 if test -z "$DTRACE"; then
3566 for ac_prog in dtrace
3568 # Extract the first word of "$ac_prog", so it can be a program name with args.
3569 set dummy $ac_prog; ac_word=$2
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3571 $as_echo_n "checking for $ac_word... " >&6; }
3572 if ${ac_cv_path_DTRACE+:} false; then :
3573 $as_echo_n "(cached) " >&6
3577 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
3580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3584 test -z "$as_dir" && as_dir=.
3585 for ac_exec_ext in '' $ac_executable_extensions; do
3586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3587 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
3588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3598 DTRACE=$ac_cv_path_DTRACE
3599 if test -n "$DTRACE"; then
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
3601 $as_echo "$DTRACE" >&6; }
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3604 $as_echo "no" >&6; }
3608 test -n "$DTRACE" && break
3612 # Report the value of DTRACE in configure's output in all cases.
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5
3614 $as_echo_n "checking for DTRACE... " >&6; }
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
3616 $as_echo "$DTRACE" >&6; }
3619 if test -z "$DTRACE"; then
3620 as_fn_error $? "dtrace not found" "$LINENO" 5
3628 as_fn_error $? "no argument expected for --enable-dtrace option" "$LINENO" 5
3645 # Check whether --enable-tap-tests was given.
3646 if test "${enable_tap_tests+set}" = set; then :
3647 enableval=$enable_tap_tests;
3656 as_fn_error $? "no argument expected for --enable-tap-tests option" "$LINENO" 5
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for block size" >&5
3672 $as_echo_n "checking for block size... " >&6; }
3676 # Check whether --with-blocksize was given.
3677 if test "${with_blocksize+set}" = set; then :
3678 withval=$with_blocksize;
3681 as_fn_error $? "argument required for --with-blocksize option" "$LINENO" 5
3684 as_fn_error $? "argument required for --with-blocksize option" "$LINENO" 5
3696 case ${blocksize} in
3703 *) as_fn_error $? "Invalid block size. Allowed values are 1,2,4,8,16,32." "$LINENO" 5
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${blocksize}kB" >&5
3706 $as_echo "${blocksize}kB" >&6; }
3709 cat >>confdefs.h <<_ACEOF
3710 #define BLCKSZ ${BLCKSZ}
3715 # Relation segment size
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for segment size" >&5
3718 $as_echo_n "checking for segment size... " >&6; }
3722 # Check whether --with-segsize was given.
3723 if test "${with_segsize+set}" = set; then :
3724 withval=$with_segsize;
3727 as_fn_error $? "argument required for --with-segsize option" "$LINENO" 5
3730 as_fn_error $? "argument required for --with-segsize option" "$LINENO" 5
3742 # this expression is set up to avoid unnecessary integer overflow
3743 # blocksize is already guaranteed to be a factor of 1024
3744 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
3745 test $? -eq 0 || exit 1
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${segsize}GB" >&5
3747 $as_echo "${segsize}GB" >&6; }
3750 cat >>confdefs.h <<_ACEOF
3751 #define RELSEG_SIZE ${RELSEG_SIZE}
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAL block size" >&5
3759 $as_echo_n "checking for WAL block size... " >&6; }
3763 # Check whether --with-wal-blocksize was given.
3764 if test "${with_wal_blocksize+set}" = set; then :
3765 withval=$with_wal_blocksize;
3768 as_fn_error $? "argument required for --with-wal-blocksize option" "$LINENO" 5
3771 as_fn_error $? "argument required for --with-wal-blocksize option" "$LINENO" 5
3774 wal_blocksize=$withval
3783 case ${wal_blocksize} in
3784 1) XLOG_BLCKSZ=1024;;
3785 2) XLOG_BLCKSZ=2048;;
3786 4) XLOG_BLCKSZ=4096;;
3787 8) XLOG_BLCKSZ=8192;;
3788 16) XLOG_BLCKSZ=16384;;
3789 32) XLOG_BLCKSZ=32768;;
3790 64) XLOG_BLCKSZ=65536;;
3791 *) as_fn_error $? "Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." "$LINENO" 5
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${wal_blocksize}kB" >&5
3794 $as_echo "${wal_blocksize}kB" >&6; }
3797 cat >>confdefs.h <<_ACEOF
3798 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
3806 # For historical reasons you can also use --with-CC to specify the C compiler
3807 # to use, although the standard way to do this is to set the CC environment
3812 # Check whether --with-CC was given.
3813 if test "${with_CC+set}" = set; then :
3817 as_fn_error $? "argument required for --with-CC option" "$LINENO" 5
3820 as_fn_error $? "argument required for --with-CC option" "$LINENO" 5
3832 aix) pgac_cc_list="gcc xlc"; pgac_cxx_list="g++ xlC";;
3833 *) pgac_cc_list="gcc cc"; pgac_cxx_list="g++ c++";;
3837 ac_cpp='$CPP $CPPFLAGS'
3838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3841 if test -n "$ac_tool_prefix"; then
3842 for ac_prog in $pgac_cc_list
3844 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3845 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3847 $as_echo_n "checking for $ac_word... " >&6; }
3848 if ${ac_cv_prog_CC+:} false; then :
3849 $as_echo_n "(cached) " >&6
3851 if test -n "$CC"; then
3852 ac_cv_prog_CC="$CC" # Let the user override the test.
3854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3858 test -z "$as_dir" && as_dir=.
3859 for ac_exec_ext in '' $ac_executable_extensions; do
3860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3861 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3872 if test -n "$CC"; then
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3874 $as_echo "$CC" >&6; }
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3877 $as_echo "no" >&6; }
3881 test -n "$CC" && break
3884 if test -z "$CC"; then
3886 for ac_prog in $pgac_cc_list
3888 # Extract the first word of "$ac_prog", so it can be a program name with args.
3889 set dummy $ac_prog; ac_word=$2
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3891 $as_echo_n "checking for $ac_word... " >&6; }
3892 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3893 $as_echo_n "(cached) " >&6
3895 if test -n "$ac_ct_CC"; then
3896 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902 test -z "$as_dir" && as_dir=.
3903 for ac_exec_ext in '' $ac_executable_extensions; do
3904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3905 ac_cv_prog_ac_ct_CC="$ac_prog"
3906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3915 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3916 if test -n "$ac_ct_CC"; then
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3918 $as_echo "$ac_ct_CC" >&6; }
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3921 $as_echo "no" >&6; }
3925 test -n "$ac_ct_CC" && break
3928 if test "x$ac_ct_CC" = x; then
3931 case $cross_compiling:$ac_tool_warned in
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3934 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3935 ac_tool_warned=yes ;;
3942 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3943 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3944 as_fn_error $? "no acceptable C compiler found in \$PATH
3945 See \`config.log' for more details" "$LINENO" 5; }
3947 # Provide some information about the compiler.
3948 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3951 for ac_option in --version -v -V -qversion; do
3952 { { ac_try="$ac_compiler $ac_option >&5"
3954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3955 *) ac_try_echo=$ac_try;;
3957 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3958 $as_echo "$ac_try_echo"; } >&5
3959 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3961 if test -s conftest.err; then
3963 ... rest of stderr output deleted ...
3964 10q' conftest.err >conftest.er1
3965 cat conftest.er1 >&5
3967 rm -f conftest.er1 conftest.err
3968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3969 test $ac_status = 0; }
3972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3973 /* end confdefs.h. */
3983 ac_clean_files_save=$ac_clean_files
3984 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3985 # Try to create an executable without -o first, disregard a.out.
3986 # It will help us diagnose broken compilers, and finding out an intuition
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3989 $as_echo_n "checking whether the C compiler works... " >&6; }
3990 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3992 # The possible output files:
3993 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3996 for ac_file in $ac_files
3999 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4000 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4005 if { { ac_try="$ac_link_default"
4007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4008 *) ac_try_echo=$ac_try;;
4010 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4011 $as_echo "$ac_try_echo"; } >&5
4012 (eval "$ac_link_default") 2>&5
4014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4015 test $ac_status = 0; }; then :
4016 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4017 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4018 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4019 # so that the user can short-circuit this test for compilers unknown to
4021 for ac_file in $ac_files ''
4023 test -f "$ac_file" || continue
4025 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4028 # We found the default executable, but exeext='' is most
4032 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4034 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4036 # We set ac_cv_exeext here because the later test for it is not
4037 # safe: cross compilers may not add the suffix if given an `-o'
4038 # argument, so we may need to know it at that point already.
4039 # Even if this section looks crufty: it has the advantage of
4046 test "$ac_cv_exeext" = no && ac_cv_exeext=
4051 if test -z "$ac_file"; then :
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4053 $as_echo "no" >&6; }
4054 $as_echo "$as_me: failed program was:" >&5
4055 sed 's/^/| /' conftest.$ac_ext >&5
4057 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4058 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4059 as_fn_error 77 "C compiler cannot create executables
4060 See \`config.log' for more details" "$LINENO" 5; }
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4063 $as_echo "yes" >&6; }
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4066 $as_echo_n "checking for C compiler default output file name... " >&6; }
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4068 $as_echo "$ac_file" >&6; }
4069 ac_exeext=$ac_cv_exeext
4071 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4072 ac_clean_files=$ac_clean_files_save
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4074 $as_echo_n "checking for suffix of executables... " >&6; }
4075 if { { ac_try="$ac_link"
4077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4078 *) ac_try_echo=$ac_try;;
4080 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4081 $as_echo "$ac_try_echo"; } >&5
4082 (eval "$ac_link") 2>&5
4084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4085 test $ac_status = 0; }; then :
4086 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4087 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4088 # work properly (i.e., refer to `conftest.exe'), while it won't with
4090 for ac_file in conftest.exe conftest conftest.*; do
4091 test -f "$ac_file" || continue
4093 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4094 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4100 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4102 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4103 See \`config.log' for more details" "$LINENO" 5; }
4105 rm -f conftest conftest$ac_cv_exeext
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4107 $as_echo "$ac_cv_exeext" >&6; }
4109 rm -f conftest.$ac_ext
4110 EXEEXT=$ac_cv_exeext
4112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113 /* end confdefs.h. */
4118 FILE *f = fopen ("conftest.out", "w");
4119 return ferror (f) || fclose (f) != 0;
4125 ac_clean_files="$ac_clean_files conftest.out"
4126 # Check that the compiler produces executables we can run. If not, either
4127 # the compiler is broken, or we cross compile.
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4129 $as_echo_n "checking whether we are cross compiling... " >&6; }
4130 if test "$cross_compiling" != yes; then
4131 { { ac_try="$ac_link"
4133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4134 *) ac_try_echo=$ac_try;;
4136 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4137 $as_echo "$ac_try_echo"; } >&5
4138 (eval "$ac_link") 2>&5
4140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4141 test $ac_status = 0; }
4142 if { ac_try='./conftest$ac_cv_exeext'
4143 { { case "(($ac_try" in
4144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145 *) ac_try_echo=$ac_try;;
4147 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4148 $as_echo "$ac_try_echo"; } >&5
4149 (eval "$ac_try") 2>&5
4151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4152 test $ac_status = 0; }; }; then
4155 if test "$cross_compiling" = maybe; then
4158 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4160 as_fn_error $? "cannot run C compiled programs.
4161 If you meant to cross compile, use \`--host'.
4162 See \`config.log' for more details" "$LINENO" 5; }
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4167 $as_echo "$cross_compiling" >&6; }
4169 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4170 ac_clean_files=$ac_clean_files_save
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4172 $as_echo_n "checking for suffix of object files... " >&6; }
4173 if ${ac_cv_objext+:} false; then :
4174 $as_echo_n "(cached) " >&6
4176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4177 /* end confdefs.h. */
4187 rm -f conftest.o conftest.obj
4188 if { { ac_try="$ac_compile"
4190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4191 *) ac_try_echo=$ac_try;;
4193 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4194 $as_echo "$ac_try_echo"; } >&5
4195 (eval "$ac_compile") 2>&5
4197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4198 test $ac_status = 0; }; then :
4199 for ac_file in conftest.o conftest.obj conftest.*; do
4200 test -f "$ac_file" || continue;
4202 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4203 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4208 $as_echo "$as_me: failed program was:" >&5
4209 sed 's/^/| /' conftest.$ac_ext >&5
4211 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4213 as_fn_error $? "cannot compute suffix of object files: cannot compile
4214 See \`config.log' for more details" "$LINENO" 5; }
4216 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4219 $as_echo "$ac_cv_objext" >&6; }
4220 OBJEXT=$ac_cv_objext
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4223 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4224 if ${ac_cv_c_compiler_gnu+:} false; then :
4225 $as_echo_n "(cached) " >&6
4227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4228 /* end confdefs.h. */
4241 if ac_fn_c_try_compile "$LINENO"; then :
4246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4247 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4251 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4252 if test $ac_compiler_gnu = yes; then
4257 ac_test_CFLAGS=${CFLAGS+set}
4258 ac_save_CFLAGS=$CFLAGS
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4260 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4261 if ${ac_cv_prog_cc_g+:} false; then :
4262 $as_echo_n "(cached) " >&6
4264 ac_save_c_werror_flag=$ac_c_werror_flag
4265 ac_c_werror_flag=yes
4268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4269 /* end confdefs.h. */
4279 if ac_fn_c_try_compile "$LINENO"; then :
4283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4284 /* end confdefs.h. */
4294 if ac_fn_c_try_compile "$LINENO"; then :
4297 ac_c_werror_flag=$ac_save_c_werror_flag
4299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4300 /* end confdefs.h. */
4310 if ac_fn_c_try_compile "$LINENO"; then :
4313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4318 ac_c_werror_flag=$ac_save_c_werror_flag
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4321 $as_echo "$ac_cv_prog_cc_g" >&6; }
4322 if test "$ac_test_CFLAGS" = set; then
4323 CFLAGS=$ac_save_CFLAGS
4324 elif test $ac_cv_prog_cc_g = yes; then
4325 if test "$GCC" = yes; then
4331 if test "$GCC" = yes; then
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4338 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4339 if ${ac_cv_prog_cc_c89+:} false; then :
4340 $as_echo_n "(cached) " >&6
4342 ac_cv_prog_cc_c89=no
4344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4345 /* end confdefs.h. */
4349 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4350 struct buf { int x; };
4351 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4352 static char *e (p, i)
4358 static char *f (char * (*g) (char **, int), char **p, ...)
4363 s = g (p, va_arg (v,int));
4368 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4369 function prototypes and stuff, but not '\xHH' hex character constants.
4370 These don't provoke an error unfortunately, instead are silently treated
4371 as 'x'. The following induces an error, until -std is added to get
4372 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4373 array size at least. It's necessary to write '\x00'==0 to get something
4374 that's true only with -std. */
4375 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4377 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4378 inside strings and character constants. */
4380 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4382 int test (int i, double x);
4383 struct s1 {int (*f) (int a);};
4384 struct s2 {int (*f) (double a);};
4385 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4391 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4396 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4397 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4399 CC="$ac_save_CC $ac_arg"
4400 if ac_fn_c_try_compile "$LINENO"; then :
4401 ac_cv_prog_cc_c89=$ac_arg
4403 rm -f core conftest.err conftest.$ac_objext
4404 test "x$ac_cv_prog_cc_c89" != "xno" && break
4406 rm -f conftest.$ac_ext
4411 case "x$ac_cv_prog_cc_c89" in
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4414 $as_echo "none needed" >&6; } ;;
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4417 $as_echo "unsupported" >&6; } ;;
4419 CC="$CC $ac_cv_prog_cc_c89"
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4421 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4423 if test "x$ac_cv_prog_cc_c89" != xno; then :
4428 ac_cpp='$CPP $CPPFLAGS'
4429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4434 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4435 if ${ac_cv_prog_cc_c99+:} false; then :
4436 $as_echo_n "(cached) " >&6
4438 ac_cv_prog_cc_c99=no
4440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4441 /* end confdefs.h. */
4443 #include <stdbool.h>
4448 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4449 #define debug(...) fprintf (stderr, __VA_ARGS__)
4450 #define showlist(...) puts (#__VA_ARGS__)
4451 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4453 test_varargs_macros (void)
4458 debug ("X = %d\n", x);
4459 showlist (The first, second, and third items.);
4460 report (x>y, "x is %d but y is %d", x, y);
4463 // Check long long types.
4464 #define BIG64 18446744073709551615ull
4465 #define BIG32 4294967295ul
4466 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4468 your preprocessor is broken;
4472 your preprocessor is broken;
4474 static long long int bignum = -9223372036854775807LL;
4475 static unsigned long long int ubignum = BIG64;
4477 struct incomplete_array
4485 const wchar_t *name;
4489 typedef const char *ccp;
4492 test_restrict (ccp restrict text)
4494 // See if C++-style comments work.
4495 // Iterate through items via the restricted pointer.
4496 // Also check for declarations in for loops.
4497 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4502 // Check varargs and va_copy.
4504 test_varargs (const char *format, ...)
4507 va_start (args, format);
4509 va_copy (args_copy, args);
4520 str = va_arg (args_copy, const char *);
4523 number = va_arg (args_copy, int);
4526 fnumber = va_arg (args_copy, double);
4541 _Bool success = false;
4544 if (test_restrict ("String literal") == 0)
4546 char *restrict newvar = "Another string";
4549 test_varargs ("s, d' f .", "string", 65, 34.234);
4550 test_varargs_macros ();
4552 // Check flexible array members.
4553 struct incomplete_array *ia =
4554 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4556 for (int i = 0; i < ia->datasize; ++i)
4557 ia->data[i] = i * 1.234;
4559 // Check named initializers.
4560 struct named_init ni = {
4562 .name = L"Test wide string",
4563 .average = 543.34343,
4568 int dynamic_array[ni.number];
4569 dynamic_array[ni.number - 1] = 543;
4571 // work around unused variable warnings
4572 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4573 || dynamic_array[ni.number - 1] != 543);
4579 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4581 CC="$ac_save_CC $ac_arg"
4582 if ac_fn_c_try_compile "$LINENO"; then :
4583 ac_cv_prog_cc_c99=$ac_arg
4585 rm -f core conftest.err conftest.$ac_objext
4586 test "x$ac_cv_prog_cc_c99" != "xno" && break
4588 rm -f conftest.$ac_ext
4593 case "x$ac_cv_prog_cc_c99" in
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4596 $as_echo "none needed" >&6; } ;;
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4599 $as_echo "unsupported" >&6; } ;;
4601 CC="$CC $ac_cv_prog_cc_c99"
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4603 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4605 if test "x$ac_cv_prog_cc_c99" != xno; then :
4611 # Error out if the compiler does not support C99, as the codebase
4613 if test "$ac_cv_prog_cc_c99" = no; then
4614 as_fn_error $? "C compiler \"$CC\" does not support C99" "$LINENO" 5
4618 ac_cpp='$CXXCPP $CPPFLAGS'
4619 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4620 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4621 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4622 if test -z "$CXX"; then
4623 if test -n "$CCC"; then
4626 if test -n "$ac_tool_prefix"; then
4627 for ac_prog in $pgac_cxx_list
4629 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4630 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4632 $as_echo_n "checking for $ac_word... " >&6; }
4633 if ${ac_cv_prog_CXX+:} false; then :
4634 $as_echo_n "(cached) " >&6
4636 if test -n "$CXX"; then
4637 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643 test -z "$as_dir" && as_dir=.
4644 for ac_exec_ext in '' $ac_executable_extensions; do
4645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4646 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4657 if test -n "$CXX"; then
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4659 $as_echo "$CXX" >&6; }
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4662 $as_echo "no" >&6; }
4666 test -n "$CXX" && break
4669 if test -z "$CXX"; then
4671 for ac_prog in $pgac_cxx_list
4673 # Extract the first word of "$ac_prog", so it can be a program name with args.
4674 set dummy $ac_prog; ac_word=$2
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4676 $as_echo_n "checking for $ac_word... " >&6; }
4677 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4678 $as_echo_n "(cached) " >&6
4680 if test -n "$ac_ct_CXX"; then
4681 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687 test -z "$as_dir" && as_dir=.
4688 for ac_exec_ext in '' $ac_executable_extensions; do
4689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4690 ac_cv_prog_ac_ct_CXX="$ac_prog"
4691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4700 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4701 if test -n "$ac_ct_CXX"; then
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4703 $as_echo "$ac_ct_CXX" >&6; }
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4706 $as_echo "no" >&6; }
4710 test -n "$ac_ct_CXX" && break
4713 if test "x$ac_ct_CXX" = x; then
4716 case $cross_compiling:$ac_tool_warned in
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4719 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4720 ac_tool_warned=yes ;;
4728 # Provide some information about the compiler.
4729 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4732 for ac_option in --version -v -V -qversion; do
4733 { { ac_try="$ac_compiler $ac_option >&5"
4735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4736 *) ac_try_echo=$ac_try;;
4738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4739 $as_echo "$ac_try_echo"; } >&5
4740 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4742 if test -s conftest.err; then
4744 ... rest of stderr output deleted ...
4745 10q' conftest.err >conftest.er1
4746 cat conftest.er1 >&5
4748 rm -f conftest.er1 conftest.err
4749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4750 test $ac_status = 0; }
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4754 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4755 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4756 $as_echo_n "(cached) " >&6
4758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4759 /* end confdefs.h. */
4772 if ac_fn_cxx_try_compile "$LINENO"; then :
4777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4778 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4782 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4783 if test $ac_compiler_gnu = yes; then
4788 ac_test_CXXFLAGS=${CXXFLAGS+set}
4789 ac_save_CXXFLAGS=$CXXFLAGS
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4791 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4792 if ${ac_cv_prog_cxx_g+:} false; then :
4793 $as_echo_n "(cached) " >&6
4795 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4796 ac_cxx_werror_flag=yes
4799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4800 /* end confdefs.h. */
4810 if ac_fn_cxx_try_compile "$LINENO"; then :
4811 ac_cv_prog_cxx_g=yes
4814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4815 /* end confdefs.h. */
4825 if ac_fn_cxx_try_compile "$LINENO"; then :
4828 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4831 /* end confdefs.h. */
4841 if ac_fn_cxx_try_compile "$LINENO"; then :
4842 ac_cv_prog_cxx_g=yes
4844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4849 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4852 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4853 if test "$ac_test_CXXFLAGS" = set; then
4854 CXXFLAGS=$ac_save_CXXFLAGS
4855 elif test $ac_cv_prog_cxx_g = yes; then
4856 if test "$GXX" = yes; then
4862 if test "$GXX" = yes; then
4869 ac_cpp='$CPP $CPPFLAGS'
4870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4875 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
4876 # but has idiosyncrasies of its own. We assume icc will define
4877 # __INTEL_COMPILER regardless of CFLAGS.
4879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4880 /* end confdefs.h. */
4885 #ifndef __INTEL_COMPILER
4892 if ac_fn_c_try_compile "$LINENO"; then :
4897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4899 # Check if it's Sun Studio compiler. We assume that
4900 # __SUNPRO_C will be defined for Sun Studio compilers
4901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4902 /* end confdefs.h. */
4914 if ac_fn_c_try_compile "$LINENO"; then :
4919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4927 # Checked early because subsequent tests depend on it.
4931 # Check whether --with-llvm was given.
4932 if test "${with_llvm+set}" = set; then :
4937 $as_echo "#define USE_LLVM 1" >>confdefs.h
4944 as_fn_error $? "no argument expected for --with-llvm option" "$LINENO" 5
4955 for ac_prog in gawk mawk nawk awk
4957 # Extract the first word of "$ac_prog", so it can be a program name with args.
4958 set dummy $ac_prog; ac_word=$2
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4960 $as_echo_n "checking for $ac_word... " >&6; }
4961 if ${ac_cv_prog_AWK+:} false; then :
4962 $as_echo_n "(cached) " >&6
4964 if test -n "$AWK"; then
4965 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4971 test -z "$as_dir" && as_dir=.
4972 for ac_exec_ext in '' $ac_executable_extensions; do
4973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4974 ac_cv_prog_AWK="$ac_prog"
4975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4985 if test -n "$AWK"; then
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4987 $as_echo "$AWK" >&6; }
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4990 $as_echo "no" >&6; }
4994 test -n "$AWK" && break
4997 # The Clang compiler raises a warning for an undeclared identifier that matches
4998 # a compiler builtin function. All extant Clang versions are affected, as of
4999 # Clang 3.6.0. Test a builtin known to every version. This problem affects the
5000 # C and Objective C languages, but Clang does report an error under C++ and
5003 # Passing -fno-builtin to the compiler would suppress this problem. That
5004 # strategy would have the advantage of being insensitive to stray warnings, but
5005 # it would make tests less realistic.
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how $CC reports undeclared, standard C functions" >&5
5007 $as_echo_n "checking how $CC reports undeclared, standard C functions... " >&6; }
5008 if ${ac_cv_c_decl_report+:} false; then :
5009 $as_echo_n "(cached) " >&6
5011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5012 /* end confdefs.h. */
5022 if ac_fn_c_try_compile "$LINENO"; then :
5023 if test -s conftest.err; then :
5024 # For AC_CHECK_DECL to react to warnings, the compiler must be silent on
5025 # valid AC_CHECK_DECL input. No library function is consistently available
5026 # on freestanding implementations, so test against a dummy declaration.
5027 # Include always-available headers on the off chance that they somehow
5029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5030 /* end confdefs.h. */
5035 extern void ac_decl (int, char *);
5040 (void) ac_decl ((int) 0, (char *) 0);
5050 if ac_fn_c_try_compile "$LINENO"; then :
5051 if test -s conftest.err; then :
5052 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5053 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5054 as_fn_error $? "cannot detect from compiler exit status or warnings
5055 See \`config.log' for more details" "$LINENO" 5; }
5057 ac_cv_c_decl_report=warning
5060 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5061 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5062 as_fn_error $? "cannot compile a simple declaration test
5063 See \`config.log' for more details" "$LINENO" 5; }
5065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5067 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5068 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5069 as_fn_error $? "compiler does not report undeclared identifiers
5070 See \`config.log' for more details" "$LINENO" 5; }
5073 ac_cv_c_decl_report=error
5075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_decl_report" >&5
5078 $as_echo "$ac_cv_c_decl_report" >&6; }
5080 case $ac_cv_c_decl_report in
5081 warning) ac_c_decl_warn_flag=yes ;;
5082 *) ac_c_decl_warn_flag= ;;
5085 if test "$with_llvm" = yes; then :
5091 if test -z "$LLVM_CONFIG"; then
5092 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
5094 # Extract the first word of "$ac_prog", so it can be a program name with args.
5095 set dummy $ac_prog; ac_word=$2
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5097 $as_echo_n "checking for $ac_word... " >&6; }
5098 if ${ac_cv_path_LLVM_CONFIG+:} false; then :
5099 $as_echo_n "(cached) " >&6
5101 case $LLVM_CONFIG in
5103 ac_cv_path_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test with a path.
5106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5110 test -z "$as_dir" && as_dir=.
5111 for ac_exec_ext in '' $ac_executable_extensions; do
5112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5113 ac_cv_path_LLVM_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5124 LLVM_CONFIG=$ac_cv_path_LLVM_CONFIG
5125 if test -n "$LLVM_CONFIG"; then
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5
5127 $as_echo "$LLVM_CONFIG" >&6; }
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5130 $as_echo "no" >&6; }
5134 test -n "$LLVM_CONFIG" && break
5138 # Report the value of LLVM_CONFIG in configure's output in all cases.
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LLVM_CONFIG" >&5
5140 $as_echo_n "checking for LLVM_CONFIG... " >&6; }
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5
5142 $as_echo "$LLVM_CONFIG" >&6; }
5146 # no point continuing if llvm wasn't found
5147 if test -z "$LLVM_CONFIG"; then
5148 as_fn_error $? "llvm-config not found, but required when compiling --with-llvm, specify with LLVM_CONFIG=" "$LINENO" 5
5150 # check if detected $LLVM_CONFIG is executable
5151 pgac_llvm_version="$($LLVM_CONFIG --version 2> /dev/null || echo no)"
5152 if test "x$pgac_llvm_version" = "xno"; then
5153 as_fn_error $? "$LLVM_CONFIG does not work" "$LINENO" 5
5155 # and whether the version is supported
5156 if echo $pgac_llvm_version | $AWK -F '.' '{ if ($1 >= 4 || ($1 == 3 && $2 >= 9)) exit 1; else exit 0;}';then
5157 as_fn_error $? "$LLVM_CONFIG version is $pgac_llvm_version but at least 3.9 is required" "$LINENO" 5
5160 # need clang to create some bitcode files
5162 if test -z "$CLANG"; then
5163 for ac_prog in clang clang-7 clang-6.0 clang-5.0 clang-4.0 clang-3.9
5165 # Extract the first word of "$ac_prog", so it can be a program name with args.
5166 set dummy $ac_prog; ac_word=$2
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5168 $as_echo_n "checking for $ac_word... " >&6; }
5169 if ${ac_cv_path_CLANG+:} false; then :
5170 $as_echo_n "(cached) " >&6
5174 ac_cv_path_CLANG="$CLANG" # Let the user override the test with a path.
5177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181 test -z "$as_dir" && as_dir=.
5182 for ac_exec_ext in '' $ac_executable_extensions; do
5183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5184 ac_cv_path_CLANG="$as_dir/$ac_word$ac_exec_ext"
5185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5195 CLANG=$ac_cv_path_CLANG
5196 if test -n "$CLANG"; then
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG" >&5
5198 $as_echo "$CLANG" >&6; }
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5201 $as_echo "no" >&6; }
5205 test -n "$CLANG" && break
5209 # Report the value of CLANG in configure's output in all cases.
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CLANG" >&5
5211 $as_echo_n "checking for CLANG... " >&6; }
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG" >&5
5213 $as_echo "$CLANG" >&6; }
5216 if test -z "$CLANG"; then
5217 as_fn_error $? "clang not found, but required when compiling --with-llvm, specify with CLANG=" "$LINENO" 5
5219 # make sure clang is executable
5220 if test "x$($CLANG --version 2> /dev/null || echo no)" = "xno"; then
5221 as_fn_error $? "$CLANG does not work" "$LINENO" 5
5223 # Could check clang version, but it doesn't seem that
5224 # important. Systems with a new enough LLVM version are usually
5225 # going to have a decent clang version too. It's also not entirely
5226 # clear what the minimum version is.
5228 # Collect compiler flags necessary to build the LLVM dependent
5230 for pgac_option in `$LLVM_CONFIG --cppflags`; do
5231 case $pgac_option in
5232 -I*|-D*) LLVM_CPPFLAGS="$pgac_option $LLVM_CPPFLAGS";;
5236 for pgac_option in `$LLVM_CONFIG --ldflags`; do
5237 case $pgac_option in
5238 -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5242 # ABI influencing options, standard influencing options
5243 for pgac_option in `$LLVM_CONFIG --cxxflags`; do
5244 case $pgac_option in
5245 -fno-rtti*) LLVM_CXXFLAGS="$LLVM_CXXFLAGS $pgac_option";;
5246 -std=*) LLVM_CXXFLAGS="$LLVM_CXXFLAGS $pgac_option";;
5250 # Look for components we're interested in, collect necessary
5251 # libs. As some components are optional, we can't just list all of
5252 # them as it'd raise an error.
5254 for pgac_component in `$LLVM_CONFIG --components`; do
5255 case $pgac_component in
5256 engine) pgac_components="$pgac_components $pgac_component";;
5257 debuginfodwarf) pgac_components="$pgac_components $pgac_component";;
5258 orcjit) pgac_components="$pgac_components $pgac_component";;
5259 passes) pgac_components="$pgac_components $pgac_component";;
5260 perfjitevents) pgac_components="$pgac_components $pgac_component";;
5264 # And then get the libraries that need to be linked in for the
5265 # selected components. They're large libraries, we only want to
5266 # link them into the LLVM using shared library.
5267 for pgac_option in `$LLVM_CONFIG --libs --system-libs $pgac_components`; do
5268 case $pgac_option in
5269 -l*) LLVM_LIBS="$LLVM_LIBS $pgac_option";;
5273 LLVM_BINPATH=`$LLVM_CONFIG --bindir`
5275 # Check which functionality is present
5276 SAVE_CPPFLAGS="$CPPFLAGS"
5277 CPPFLAGS="$CPPFLAGS $LLVM_CPPFLAGS"
5278 ac_fn_c_check_decl "$LINENO" "LLVMOrcGetSymbolAddressIn" "ac_cv_have_decl_LLVMOrcGetSymbolAddressIn" "#include <llvm-c/OrcBindings.h>
5280 if test "x$ac_cv_have_decl_LLVMOrcGetSymbolAddressIn" = xyes; then :
5286 cat >>confdefs.h <<_ACEOF
5287 #define HAVE_DECL_LLVMORCGETSYMBOLADDRESSIN $ac_have_decl
5290 ac_fn_c_check_decl "$LINENO" "LLVMGetHostCPUName" "ac_cv_have_decl_LLVMGetHostCPUName" "#include <llvm-c/TargetMachine.h>
5292 if test "x$ac_cv_have_decl_LLVMGetHostCPUName" = xyes; then :
5298 cat >>confdefs.h <<_ACEOF
5299 #define HAVE_DECL_LLVMGETHOSTCPUNAME $ac_have_decl
5301 ac_fn_c_check_decl "$LINENO" "LLVMGetHostCPUFeatures" "ac_cv_have_decl_LLVMGetHostCPUFeatures" "#include <llvm-c/TargetMachine.h>
5303 if test "x$ac_cv_have_decl_LLVMGetHostCPUFeatures" = xyes; then :
5309 cat >>confdefs.h <<_ACEOF
5310 #define HAVE_DECL_LLVMGETHOSTCPUFEATURES $ac_have_decl
5313 ac_fn_c_check_decl "$LINENO" "LLVMCreateGDBRegistrationListener" "ac_cv_have_decl_LLVMCreateGDBRegistrationListener" "#include <llvm-c/ExecutionEngine.h>
5315 if test "x$ac_cv_have_decl_LLVMCreateGDBRegistrationListener" = xyes; then :
5321 cat >>confdefs.h <<_ACEOF
5322 #define HAVE_DECL_LLVMCREATEGDBREGISTRATIONLISTENER $ac_have_decl
5324 ac_fn_c_check_decl "$LINENO" "LLVMCreatePerfJITEventListener" "ac_cv_have_decl_LLVMCreatePerfJITEventListener" "#include <llvm-c/ExecutionEngine.h>
5326 if test "x$ac_cv_have_decl_LLVMCreatePerfJITEventListener" = xyes; then :
5332 cat >>confdefs.h <<_ACEOF
5333 #define HAVE_DECL_LLVMCREATEPERFJITEVENTLISTENER $ac_have_decl
5336 CPPFLAGS="$SAVE_CPPFLAGS"
5338 # LLVM_CONFIG, CLANG are already output via AC_ARG_VAR
5356 . "$srcdir/src/template/$template" || exit
5358 # C[XX]FLAGS are selected so:
5359 # If the user specifies something in the environment, that is used.
5360 # else: If the template file set something, that is used.
5361 # else: If coverage was enabled, don't set anything.
5362 # else: If the compiler is GCC, then we use -O2.
5363 # else: If the compiler is something else, then we use -O, unless debugging.
5365 if test "$ac_env_CFLAGS_set" = set; then
5366 CFLAGS=$ac_env_CFLAGS_value
5367 elif test "${CFLAGS+set}" = set; then
5368 : # (keep what template set)
5369 elif test "$enable_coverage" = yes; then
5370 : # no optimization by default
5371 elif test "$GCC" = yes; then
5374 # if the user selected debug mode, don't use -O
5375 if test "$enable_debug" != yes; then
5380 if test "$ac_env_CXXFLAGS_set" = set; then
5381 CXXFLAGS=$ac_env_CXXFLAGS_value
5382 elif test "${CXXFLAGS+set}" = set; then
5383 : # (keep what template set)
5384 elif test "$enable_coverage" = yes; then
5385 : # no optimization by default
5386 elif test "$GCC" = yes; then
5389 # if the user selected debug mode, don't use -O
5390 if test "$enable_debug" != yes; then
5395 # When generating bitcode (for inlining) we always want to use -O2
5396 # even when --enable-debug is specified. The bitcode it's not going to
5397 # be used for line-by-line debugging, and JIT inlining doesn't work
5398 # without at least -O1 (otherwise clang will emit 'noinline'
5399 # attributes everywhere), which is bad for testing. Still allow the
5400 # environment to override if done explicitly.
5401 if test "$ac_env_BITCODE_CFLAGS_set" = set; then
5402 BITCODE_CFLAGS=$ac_env_BITCODE_CFLAGS_value
5404 BITCODE_CFLAGS="-O2 $BITCODE_CFLAGS"
5406 if test "$ac_env_BITCODE_CXXFLAGS_set" = set; then
5407 BITCODE_CXXFLAGS=$ac_env_BITCODE_CXXFLAGS_value
5409 BITCODE_CXXFLAGS="-O2 $BITCODE_CXXFLAGS"
5412 # C[XX]FLAGS we determined above will be added back at the end
5415 user_CXXFLAGS=$CXXFLAGS
5417 user_BITCODE_CFLAGS=$BITCODE_CFLAGS
5419 user_BITCODE_CXXFLAGS=$BITCODE_CXXFLAGS
5422 # set CFLAGS_VECTOR from the environment, if available
5423 if test "$ac_env_CFLAGS_VECTOR_set" = set; then
5424 CFLAGS_VECTOR=$ac_env_CFLAGS_VECTOR_value
5427 # Some versions of GCC support some additional useful warning flags.
5428 # Check whether they are supported, and add them to CFLAGS if so.
5429 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
5430 # but has its own. Also check other compiler-specific flags here.
5432 if test "$GCC" = yes -a "$ICC" = no; then
5433 CFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith"
5434 CXXFLAGS="-Wall -Wpointer-arith"
5435 # These work in some but not all gcc versions
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wdeclaration-after-statement, for CFLAGS" >&5
5438 $as_echo_n "checking whether ${CC} supports -Wdeclaration-after-statement, for CFLAGS... " >&6; }
5439 if ${pgac_cv_prog_CC_cflags__Wdeclaration_after_statement+:} false; then :
5440 $as_echo_n "(cached) " >&6
5442 pgac_save_CFLAGS=$CFLAGS
5445 CFLAGS="${CFLAGS} -Wdeclaration-after-statement"
5446 ac_save_c_werror_flag=$ac_c_werror_flag
5447 ac_c_werror_flag=yes
5448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5449 /* end confdefs.h. */
5459 if ac_fn_c_try_compile "$LINENO"; then :
5460 pgac_cv_prog_CC_cflags__Wdeclaration_after_statement=yes
5462 pgac_cv_prog_CC_cflags__Wdeclaration_after_statement=no
5464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5465 ac_c_werror_flag=$ac_save_c_werror_flag
5466 CFLAGS="$pgac_save_CFLAGS"
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wdeclaration_after_statement" >&5
5470 $as_echo "$pgac_cv_prog_CC_cflags__Wdeclaration_after_statement" >&6; }
5471 if test x"$pgac_cv_prog_CC_cflags__Wdeclaration_after_statement" = x"yes"; then
5472 CFLAGS="${CFLAGS} -Wdeclaration-after-statement"
5476 # -Wdeclaration-after-statement isn't applicable for C++
5477 # Really don't want VLAs to be used in our dialect of C
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Werror=vla, for CFLAGS" >&5
5480 $as_echo_n "checking whether ${CC} supports -Werror=vla, for CFLAGS... " >&6; }
5481 if ${pgac_cv_prog_CC_cflags__Werror_vla+:} false; then :
5482 $as_echo_n "(cached) " >&6
5484 pgac_save_CFLAGS=$CFLAGS
5487 CFLAGS="${CFLAGS} -Werror=vla"
5488 ac_save_c_werror_flag=$ac_c_werror_flag
5489 ac_c_werror_flag=yes
5490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5491 /* end confdefs.h. */
5501 if ac_fn_c_try_compile "$LINENO"; then :
5502 pgac_cv_prog_CC_cflags__Werror_vla=yes
5504 pgac_cv_prog_CC_cflags__Werror_vla=no
5506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5507 ac_c_werror_flag=$ac_save_c_werror_flag
5508 CFLAGS="$pgac_save_CFLAGS"
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Werror_vla" >&5
5512 $as_echo "$pgac_cv_prog_CC_cflags__Werror_vla" >&6; }
5513 if test x"$pgac_cv_prog_CC_cflags__Werror_vla" = x"yes"; then
5514 CFLAGS="${CFLAGS} -Werror=vla"
5518 # -Wvla is not applicable for C++
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wendif-labels, for CFLAGS" >&5
5521 $as_echo_n "checking whether ${CC} supports -Wendif-labels, for CFLAGS... " >&6; }
5522 if ${pgac_cv_prog_CC_cflags__Wendif_labels+:} false; then :
5523 $as_echo_n "(cached) " >&6
5525 pgac_save_CFLAGS=$CFLAGS
5528 CFLAGS="${CFLAGS} -Wendif-labels"
5529 ac_save_c_werror_flag=$ac_c_werror_flag
5530 ac_c_werror_flag=yes
5531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5532 /* end confdefs.h. */
5542 if ac_fn_c_try_compile "$LINENO"; then :
5543 pgac_cv_prog_CC_cflags__Wendif_labels=yes
5545 pgac_cv_prog_CC_cflags__Wendif_labels=no
5547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5548 ac_c_werror_flag=$ac_save_c_werror_flag
5549 CFLAGS="$pgac_save_CFLAGS"
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wendif_labels" >&5
5553 $as_echo "$pgac_cv_prog_CC_cflags__Wendif_labels" >&6; }
5554 if test x"$pgac_cv_prog_CC_cflags__Wendif_labels" = x"yes"; then
5555 CFLAGS="${CFLAGS} -Wendif-labels"
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wendif-labels, for CXXFLAGS" >&5
5560 $as_echo_n "checking whether ${CXX} supports -Wendif-labels, for CXXFLAGS... " >&6; }
5561 if ${pgac_cv_prog_CXX_cxxflags__Wendif_labels+:} false; then :
5562 $as_echo_n "(cached) " >&6
5564 pgac_save_CXXFLAGS=$CXXFLAGS
5567 CXXFLAGS="${CXXFLAGS} -Wendif-labels"
5568 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5569 ac_cxx_werror_flag=yes
5571 ac_cpp='$CXXCPP $CPPFLAGS'
5572 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5573 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5574 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5577 /* end confdefs.h. */
5587 if ac_fn_cxx_try_compile "$LINENO"; then :
5588 pgac_cv_prog_CXX_cxxflags__Wendif_labels=yes
5590 pgac_cv_prog_CXX_cxxflags__Wendif_labels=no
5592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5594 ac_cpp='$CPP $CPPFLAGS'
5595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5599 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5600 CXXFLAGS="$pgac_save_CXXFLAGS"
5601 CXX="$pgac_save_CXX"
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wendif_labels" >&5
5604 $as_echo "$pgac_cv_prog_CXX_cxxflags__Wendif_labels" >&6; }
5605 if test x"$pgac_cv_prog_CXX_cxxflags__Wendif_labels" = x"yes"; then
5606 CXXFLAGS="${CXXFLAGS} -Wendif-labels"
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wmissing-format-attribute, for CFLAGS" >&5
5612 $as_echo_n "checking whether ${CC} supports -Wmissing-format-attribute, for CFLAGS... " >&6; }
5613 if ${pgac_cv_prog_CC_cflags__Wmissing_format_attribute+:} false; then :
5614 $as_echo_n "(cached) " >&6
5616 pgac_save_CFLAGS=$CFLAGS
5619 CFLAGS="${CFLAGS} -Wmissing-format-attribute"
5620 ac_save_c_werror_flag=$ac_c_werror_flag
5621 ac_c_werror_flag=yes
5622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5623 /* end confdefs.h. */
5633 if ac_fn_c_try_compile "$LINENO"; then :
5634 pgac_cv_prog_CC_cflags__Wmissing_format_attribute=yes
5636 pgac_cv_prog_CC_cflags__Wmissing_format_attribute=no
5638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5639 ac_c_werror_flag=$ac_save_c_werror_flag
5640 CFLAGS="$pgac_save_CFLAGS"
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wmissing_format_attribute" >&5
5644 $as_echo "$pgac_cv_prog_CC_cflags__Wmissing_format_attribute" >&6; }
5645 if test x"$pgac_cv_prog_CC_cflags__Wmissing_format_attribute" = x"yes"; then
5646 CFLAGS="${CFLAGS} -Wmissing-format-attribute"
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wmissing-format-attribute, for CXXFLAGS" >&5
5651 $as_echo_n "checking whether ${CXX} supports -Wmissing-format-attribute, for CXXFLAGS... " >&6; }
5652 if ${pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute+:} false; then :
5653 $as_echo_n "(cached) " >&6
5655 pgac_save_CXXFLAGS=$CXXFLAGS
5658 CXXFLAGS="${CXXFLAGS} -Wmissing-format-attribute"
5659 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5660 ac_cxx_werror_flag=yes
5662 ac_cpp='$CXXCPP $CPPFLAGS'
5663 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5664 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5665 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5668 /* end confdefs.h. */
5678 if ac_fn_cxx_try_compile "$LINENO"; then :
5679 pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute=yes
5681 pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute=no
5683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5685 ac_cpp='$CPP $CPPFLAGS'
5686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5690 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5691 CXXFLAGS="$pgac_save_CXXFLAGS"
5692 CXX="$pgac_save_CXX"
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute" >&5
5695 $as_echo "$pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute" >&6; }
5696 if test x"$pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute" = x"yes"; then
5697 CXXFLAGS="${CXXFLAGS} -Wmissing-format-attribute"
5701 # This was included in -Wall/-Wformat in older GCC versions
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wformat-security, for CFLAGS" >&5
5704 $as_echo_n "checking whether ${CC} supports -Wformat-security, for CFLAGS... " >&6; }
5705 if ${pgac_cv_prog_CC_cflags__Wformat_security+:} false; then :
5706 $as_echo_n "(cached) " >&6
5708 pgac_save_CFLAGS=$CFLAGS
5711 CFLAGS="${CFLAGS} -Wformat-security"
5712 ac_save_c_werror_flag=$ac_c_werror_flag
5713 ac_c_werror_flag=yes
5714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5715 /* end confdefs.h. */
5725 if ac_fn_c_try_compile "$LINENO"; then :
5726 pgac_cv_prog_CC_cflags__Wformat_security=yes
5728 pgac_cv_prog_CC_cflags__Wformat_security=no
5730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5731 ac_c_werror_flag=$ac_save_c_werror_flag
5732 CFLAGS="$pgac_save_CFLAGS"
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wformat_security" >&5
5736 $as_echo "$pgac_cv_prog_CC_cflags__Wformat_security" >&6; }
5737 if test x"$pgac_cv_prog_CC_cflags__Wformat_security" = x"yes"; then
5738 CFLAGS="${CFLAGS} -Wformat-security"
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wformat-security, for CXXFLAGS" >&5
5743 $as_echo_n "checking whether ${CXX} supports -Wformat-security, for CXXFLAGS... " >&6; }
5744 if ${pgac_cv_prog_CXX_cxxflags__Wformat_security+:} false; then :
5745 $as_echo_n "(cached) " >&6
5747 pgac_save_CXXFLAGS=$CXXFLAGS
5750 CXXFLAGS="${CXXFLAGS} -Wformat-security"
5751 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5752 ac_cxx_werror_flag=yes
5754 ac_cpp='$CXXCPP $CPPFLAGS'
5755 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5756 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5757 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760 /* end confdefs.h. */
5770 if ac_fn_cxx_try_compile "$LINENO"; then :
5771 pgac_cv_prog_CXX_cxxflags__Wformat_security=yes
5773 pgac_cv_prog_CXX_cxxflags__Wformat_security=no
5775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5777 ac_cpp='$CPP $CPPFLAGS'
5778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5782 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5783 CXXFLAGS="$pgac_save_CXXFLAGS"
5784 CXX="$pgac_save_CXX"
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wformat_security" >&5
5787 $as_echo "$pgac_cv_prog_CXX_cxxflags__Wformat_security" >&6; }
5788 if test x"$pgac_cv_prog_CXX_cxxflags__Wformat_security" = x"yes"; then
5789 CXXFLAGS="${CXXFLAGS} -Wformat-security"
5793 # Disable strict-aliasing rules; needed for gcc 3.3+
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fno-strict-aliasing, for CFLAGS" >&5
5796 $as_echo_n "checking whether ${CC} supports -fno-strict-aliasing, for CFLAGS... " >&6; }
5797 if ${pgac_cv_prog_CC_cflags__fno_strict_aliasing+:} false; then :
5798 $as_echo_n "(cached) " >&6
5800 pgac_save_CFLAGS=$CFLAGS
5803 CFLAGS="${CFLAGS} -fno-strict-aliasing"
5804 ac_save_c_werror_flag=$ac_c_werror_flag
5805 ac_c_werror_flag=yes
5806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5807 /* end confdefs.h. */
5817 if ac_fn_c_try_compile "$LINENO"; then :
5818 pgac_cv_prog_CC_cflags__fno_strict_aliasing=yes
5820 pgac_cv_prog_CC_cflags__fno_strict_aliasing=no
5822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5823 ac_c_werror_flag=$ac_save_c_werror_flag
5824 CFLAGS="$pgac_save_CFLAGS"
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fno_strict_aliasing" >&5
5828 $as_echo "$pgac_cv_prog_CC_cflags__fno_strict_aliasing" >&6; }
5829 if test x"$pgac_cv_prog_CC_cflags__fno_strict_aliasing" = x"yes"; then
5830 CFLAGS="${CFLAGS} -fno-strict-aliasing"
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fno-strict-aliasing, for CXXFLAGS" >&5
5835 $as_echo_n "checking whether ${CXX} supports -fno-strict-aliasing, for CXXFLAGS... " >&6; }
5836 if ${pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing+:} false; then :
5837 $as_echo_n "(cached) " >&6
5839 pgac_save_CXXFLAGS=$CXXFLAGS
5842 CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
5843 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5844 ac_cxx_werror_flag=yes
5846 ac_cpp='$CXXCPP $CPPFLAGS'
5847 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5848 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5849 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5852 /* end confdefs.h. */
5862 if ac_fn_cxx_try_compile "$LINENO"; then :
5863 pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing=yes
5865 pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing=no
5867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5869 ac_cpp='$CPP $CPPFLAGS'
5870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5874 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5875 CXXFLAGS="$pgac_save_CXXFLAGS"
5876 CXX="$pgac_save_CXX"
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" >&5
5879 $as_echo "$pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" >&6; }
5880 if test x"$pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" = x"yes"; then
5881 CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
5885 # Disable optimizations that assume no overflow; needed for gcc 4.3+
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fwrapv, for CFLAGS" >&5
5888 $as_echo_n "checking whether ${CC} supports -fwrapv, for CFLAGS... " >&6; }
5889 if ${pgac_cv_prog_CC_cflags__fwrapv+:} false; then :
5890 $as_echo_n "(cached) " >&6
5892 pgac_save_CFLAGS=$CFLAGS
5895 CFLAGS="${CFLAGS} -fwrapv"
5896 ac_save_c_werror_flag=$ac_c_werror_flag
5897 ac_c_werror_flag=yes
5898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5899 /* end confdefs.h. */
5909 if ac_fn_c_try_compile "$LINENO"; then :
5910 pgac_cv_prog_CC_cflags__fwrapv=yes
5912 pgac_cv_prog_CC_cflags__fwrapv=no
5914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5915 ac_c_werror_flag=$ac_save_c_werror_flag
5916 CFLAGS="$pgac_save_CFLAGS"
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fwrapv" >&5
5920 $as_echo "$pgac_cv_prog_CC_cflags__fwrapv" >&6; }
5921 if test x"$pgac_cv_prog_CC_cflags__fwrapv" = x"yes"; then
5922 CFLAGS="${CFLAGS} -fwrapv"
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fwrapv, for CXXFLAGS" >&5
5927 $as_echo_n "checking whether ${CXX} supports -fwrapv, for CXXFLAGS... " >&6; }
5928 if ${pgac_cv_prog_CXX_cxxflags__fwrapv+:} false; then :
5929 $as_echo_n "(cached) " >&6
5931 pgac_save_CXXFLAGS=$CXXFLAGS
5934 CXXFLAGS="${CXXFLAGS} -fwrapv"
5935 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5936 ac_cxx_werror_flag=yes
5938 ac_cpp='$CXXCPP $CPPFLAGS'
5939 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5940 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5941 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5944 /* end confdefs.h. */
5954 if ac_fn_cxx_try_compile "$LINENO"; then :
5955 pgac_cv_prog_CXX_cxxflags__fwrapv=yes
5957 pgac_cv_prog_CXX_cxxflags__fwrapv=no
5959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5961 ac_cpp='$CPP $CPPFLAGS'
5962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5966 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5967 CXXFLAGS="$pgac_save_CXXFLAGS"
5968 CXX="$pgac_save_CXX"
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fwrapv" >&5
5971 $as_echo "$pgac_cv_prog_CXX_cxxflags__fwrapv" >&6; }
5972 if test x"$pgac_cv_prog_CXX_cxxflags__fwrapv" = x"yes"; then
5973 CXXFLAGS="${CXXFLAGS} -fwrapv"
5977 # Disable FP optimizations that cause various errors on gcc 4.5+ or maybe 4.6+
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fexcess-precision=standard, for CFLAGS" >&5
5980 $as_echo_n "checking whether ${CC} supports -fexcess-precision=standard, for CFLAGS... " >&6; }
5981 if ${pgac_cv_prog_CC_cflags__fexcess_precision_standard+:} false; then :
5982 $as_echo_n "(cached) " >&6
5984 pgac_save_CFLAGS=$CFLAGS
5987 CFLAGS="${CFLAGS} -fexcess-precision=standard"
5988 ac_save_c_werror_flag=$ac_c_werror_flag
5989 ac_c_werror_flag=yes
5990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5991 /* end confdefs.h. */
6001 if ac_fn_c_try_compile "$LINENO"; then :
6002 pgac_cv_prog_CC_cflags__fexcess_precision_standard=yes
6004 pgac_cv_prog_CC_cflags__fexcess_precision_standard=no
6006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6007 ac_c_werror_flag=$ac_save_c_werror_flag
6008 CFLAGS="$pgac_save_CFLAGS"
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fexcess_precision_standard" >&5
6012 $as_echo "$pgac_cv_prog_CC_cflags__fexcess_precision_standard" >&6; }
6013 if test x"$pgac_cv_prog_CC_cflags__fexcess_precision_standard" = x"yes"; then
6014 CFLAGS="${CFLAGS} -fexcess-precision=standard"
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fexcess-precision=standard, for CXXFLAGS" >&5
6019 $as_echo_n "checking whether ${CXX} supports -fexcess-precision=standard, for CXXFLAGS... " >&6; }
6020 if ${pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard+:} false; then :
6021 $as_echo_n "(cached) " >&6
6023 pgac_save_CXXFLAGS=$CXXFLAGS
6026 CXXFLAGS="${CXXFLAGS} -fexcess-precision=standard"
6027 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6028 ac_cxx_werror_flag=yes
6030 ac_cpp='$CXXCPP $CPPFLAGS'
6031 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6032 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6033 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6036 /* end confdefs.h. */
6046 if ac_fn_cxx_try_compile "$LINENO"; then :
6047 pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard=yes
6049 pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard=no
6051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6053 ac_cpp='$CPP $CPPFLAGS'
6054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6058 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6059 CXXFLAGS="$pgac_save_CXXFLAGS"
6060 CXX="$pgac_save_CXX"
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard" >&5
6063 $as_echo "$pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard" >&6; }
6064 if test x"$pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard" = x"yes"; then
6065 CXXFLAGS="${CXXFLAGS} -fexcess-precision=standard"
6069 # Optimization flags for specific files that benefit from vectorization
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -funroll-loops, for CFLAGS_VECTOR" >&5
6071 $as_echo_n "checking whether ${CC} supports -funroll-loops, for CFLAGS_VECTOR... " >&6; }
6072 if ${pgac_cv_prog_CC_cflags__funroll_loops+:} false; then :
6073 $as_echo_n "(cached) " >&6
6075 pgac_save_CFLAGS=$CFLAGS
6078 CFLAGS="${CFLAGS_VECTOR} -funroll-loops"
6079 ac_save_c_werror_flag=$ac_c_werror_flag
6080 ac_c_werror_flag=yes
6081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6082 /* end confdefs.h. */
6092 if ac_fn_c_try_compile "$LINENO"; then :
6093 pgac_cv_prog_CC_cflags__funroll_loops=yes
6095 pgac_cv_prog_CC_cflags__funroll_loops=no
6097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6098 ac_c_werror_flag=$ac_save_c_werror_flag
6099 CFLAGS="$pgac_save_CFLAGS"
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__funroll_loops" >&5
6103 $as_echo "$pgac_cv_prog_CC_cflags__funroll_loops" >&6; }
6104 if test x"$pgac_cv_prog_CC_cflags__funroll_loops" = x"yes"; then
6105 CFLAGS_VECTOR="${CFLAGS_VECTOR} -funroll-loops"
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -ftree-vectorize, for CFLAGS_VECTOR" >&5
6110 $as_echo_n "checking whether ${CC} supports -ftree-vectorize, for CFLAGS_VECTOR... " >&6; }
6111 if ${pgac_cv_prog_CC_cflags__ftree_vectorize+:} false; then :
6112 $as_echo_n "(cached) " >&6
6114 pgac_save_CFLAGS=$CFLAGS
6117 CFLAGS="${CFLAGS_VECTOR} -ftree-vectorize"
6118 ac_save_c_werror_flag=$ac_c_werror_flag
6119 ac_c_werror_flag=yes
6120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6121 /* end confdefs.h. */
6131 if ac_fn_c_try_compile "$LINENO"; then :
6132 pgac_cv_prog_CC_cflags__ftree_vectorize=yes
6134 pgac_cv_prog_CC_cflags__ftree_vectorize=no
6136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6137 ac_c_werror_flag=$ac_save_c_werror_flag
6138 CFLAGS="$pgac_save_CFLAGS"
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__ftree_vectorize" >&5
6142 $as_echo "$pgac_cv_prog_CC_cflags__ftree_vectorize" >&6; }
6143 if test x"$pgac_cv_prog_CC_cflags__ftree_vectorize" = x"yes"; then
6144 CFLAGS_VECTOR="${CFLAGS_VECTOR} -ftree-vectorize"
6148 # We want to suppress clang's unhelpful unused-command-line-argument warnings
6149 # but gcc won't complain about unrecognized -Wno-foo switches, so we have to
6150 # test for the positive form and if that works, add the negative form
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wunused-command-line-argument, for NOT_THE_CFLAGS" >&5
6153 $as_echo_n "checking whether ${CC} supports -Wunused-command-line-argument, for NOT_THE_CFLAGS... " >&6; }
6154 if ${pgac_cv_prog_CC_cflags__Wunused_command_line_argument+:} false; then :
6155 $as_echo_n "(cached) " >&6
6157 pgac_save_CFLAGS=$CFLAGS
6160 CFLAGS="${NOT_THE_CFLAGS} -Wunused-command-line-argument"
6161 ac_save_c_werror_flag=$ac_c_werror_flag
6162 ac_c_werror_flag=yes
6163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6164 /* end confdefs.h. */
6174 if ac_fn_c_try_compile "$LINENO"; then :
6175 pgac_cv_prog_CC_cflags__Wunused_command_line_argument=yes
6177 pgac_cv_prog_CC_cflags__Wunused_command_line_argument=no
6179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6180 ac_c_werror_flag=$ac_save_c_werror_flag
6181 CFLAGS="$pgac_save_CFLAGS"
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wunused_command_line_argument" >&5
6185 $as_echo "$pgac_cv_prog_CC_cflags__Wunused_command_line_argument" >&6; }
6186 if test x"$pgac_cv_prog_CC_cflags__Wunused_command_line_argument" = x"yes"; then
6187 NOT_THE_CFLAGS="${NOT_THE_CFLAGS} -Wunused-command-line-argument"
6191 if test -n "$NOT_THE_CFLAGS"; then
6192 CFLAGS="$CFLAGS -Wno-unused-command-line-argument"
6194 # Similarly disable useless truncation warnings from gcc 8+
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wformat-truncation, for NOT_THE_CFLAGS" >&5
6197 $as_echo_n "checking whether ${CC} supports -Wformat-truncation, for NOT_THE_CFLAGS... " >&6; }
6198 if ${pgac_cv_prog_CC_cflags__Wformat_truncation+:} false; then :
6199 $as_echo_n "(cached) " >&6
6201 pgac_save_CFLAGS=$CFLAGS
6204 CFLAGS="${NOT_THE_CFLAGS} -Wformat-truncation"
6205 ac_save_c_werror_flag=$ac_c_werror_flag
6206 ac_c_werror_flag=yes
6207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6208 /* end confdefs.h. */
6218 if ac_fn_c_try_compile "$LINENO"; then :
6219 pgac_cv_prog_CC_cflags__Wformat_truncation=yes
6221 pgac_cv_prog_CC_cflags__Wformat_truncation=no
6223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6224 ac_c_werror_flag=$ac_save_c_werror_flag
6225 CFLAGS="$pgac_save_CFLAGS"
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wformat_truncation" >&5
6229 $as_echo "$pgac_cv_prog_CC_cflags__Wformat_truncation" >&6; }
6230 if test x"$pgac_cv_prog_CC_cflags__Wformat_truncation" = x"yes"; then
6231 NOT_THE_CFLAGS="${NOT_THE_CFLAGS} -Wformat-truncation"
6235 if test -n "$NOT_THE_CFLAGS"; then
6236 CFLAGS="$CFLAGS -Wno-format-truncation"
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wstringop-truncation, for NOT_THE_CFLAGS" >&5
6240 $as_echo_n "checking whether ${CC} supports -Wstringop-truncation, for NOT_THE_CFLAGS... " >&6; }
6241 if ${pgac_cv_prog_CC_cflags__Wstringop_truncation+:} false; then :
6242 $as_echo_n "(cached) " >&6
6244 pgac_save_CFLAGS=$CFLAGS
6247 CFLAGS="${NOT_THE_CFLAGS} -Wstringop-truncation"
6248 ac_save_c_werror_flag=$ac_c_werror_flag
6249 ac_c_werror_flag=yes
6250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6251 /* end confdefs.h. */
6261 if ac_fn_c_try_compile "$LINENO"; then :
6262 pgac_cv_prog_CC_cflags__Wstringop_truncation=yes
6264 pgac_cv_prog_CC_cflags__Wstringop_truncation=no
6266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6267 ac_c_werror_flag=$ac_save_c_werror_flag
6268 CFLAGS="$pgac_save_CFLAGS"
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wstringop_truncation" >&5
6272 $as_echo "$pgac_cv_prog_CC_cflags__Wstringop_truncation" >&6; }
6273 if test x"$pgac_cv_prog_CC_cflags__Wstringop_truncation" = x"yes"; then
6274 NOT_THE_CFLAGS="${NOT_THE_CFLAGS} -Wstringop-truncation"
6278 if test -n "$NOT_THE_CFLAGS"; then
6279 CFLAGS="$CFLAGS -Wno-stringop-truncation"
6281 elif test "$ICC" = yes; then
6282 # Intel's compiler has a bug/misoptimization in checking for
6283 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -mp1, for CFLAGS" >&5
6286 $as_echo_n "checking whether ${CC} supports -mp1, for CFLAGS... " >&6; }
6287 if ${pgac_cv_prog_CC_cflags__mp1+:} false; then :
6288 $as_echo_n "(cached) " >&6
6290 pgac_save_CFLAGS=$CFLAGS
6293 CFLAGS="${CFLAGS} -mp1"
6294 ac_save_c_werror_flag=$ac_c_werror_flag
6295 ac_c_werror_flag=yes
6296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6297 /* end confdefs.h. */
6307 if ac_fn_c_try_compile "$LINENO"; then :
6308 pgac_cv_prog_CC_cflags__mp1=yes
6310 pgac_cv_prog_CC_cflags__mp1=no
6312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6313 ac_c_werror_flag=$ac_save_c_werror_flag
6314 CFLAGS="$pgac_save_CFLAGS"
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__mp1" >&5
6318 $as_echo "$pgac_cv_prog_CC_cflags__mp1" >&6; }
6319 if test x"$pgac_cv_prog_CC_cflags__mp1" = x"yes"; then
6320 CFLAGS="${CFLAGS} -mp1"
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -mp1, for CXXFLAGS" >&5
6325 $as_echo_n "checking whether ${CXX} supports -mp1, for CXXFLAGS... " >&6; }
6326 if ${pgac_cv_prog_CXX_cxxflags__mp1+:} false; then :
6327 $as_echo_n "(cached) " >&6
6329 pgac_save_CXXFLAGS=$CXXFLAGS
6332 CXXFLAGS="${CXXFLAGS} -mp1"
6333 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6334 ac_cxx_werror_flag=yes
6336 ac_cpp='$CXXCPP $CPPFLAGS'
6337 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6338 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6339 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6342 /* end confdefs.h. */
6352 if ac_fn_cxx_try_compile "$LINENO"; then :
6353 pgac_cv_prog_CXX_cxxflags__mp1=yes
6355 pgac_cv_prog_CXX_cxxflags__mp1=no
6357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6359 ac_cpp='$CPP $CPPFLAGS'
6360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6364 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6365 CXXFLAGS="$pgac_save_CXXFLAGS"
6366 CXX="$pgac_save_CXX"
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__mp1" >&5
6369 $as_echo "$pgac_cv_prog_CXX_cxxflags__mp1" >&6; }
6370 if test x"$pgac_cv_prog_CXX_cxxflags__mp1" = x"yes"; then
6371 CXXFLAGS="${CXXFLAGS} -mp1"
6375 # Make sure strict aliasing is off (though this is said to be the default)
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fno-strict-aliasing, for CFLAGS" >&5
6378 $as_echo_n "checking whether ${CC} supports -fno-strict-aliasing, for CFLAGS... " >&6; }
6379 if ${pgac_cv_prog_CC_cflags__fno_strict_aliasing+:} false; then :
6380 $as_echo_n "(cached) " >&6
6382 pgac_save_CFLAGS=$CFLAGS
6385 CFLAGS="${CFLAGS} -fno-strict-aliasing"
6386 ac_save_c_werror_flag=$ac_c_werror_flag
6387 ac_c_werror_flag=yes
6388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6389 /* end confdefs.h. */
6399 if ac_fn_c_try_compile "$LINENO"; then :
6400 pgac_cv_prog_CC_cflags__fno_strict_aliasing=yes
6402 pgac_cv_prog_CC_cflags__fno_strict_aliasing=no
6404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6405 ac_c_werror_flag=$ac_save_c_werror_flag
6406 CFLAGS="$pgac_save_CFLAGS"
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fno_strict_aliasing" >&5
6410 $as_echo "$pgac_cv_prog_CC_cflags__fno_strict_aliasing" >&6; }
6411 if test x"$pgac_cv_prog_CC_cflags__fno_strict_aliasing" = x"yes"; then
6412 CFLAGS="${CFLAGS} -fno-strict-aliasing"
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fno-strict-aliasing, for CXXFLAGS" >&5
6417 $as_echo_n "checking whether ${CXX} supports -fno-strict-aliasing, for CXXFLAGS... " >&6; }
6418 if ${pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing+:} false; then :
6419 $as_echo_n "(cached) " >&6
6421 pgac_save_CXXFLAGS=$CXXFLAGS
6424 CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
6425 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6426 ac_cxx_werror_flag=yes
6428 ac_cpp='$CXXCPP $CPPFLAGS'
6429 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6430 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6431 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6434 /* end confdefs.h. */
6444 if ac_fn_cxx_try_compile "$LINENO"; then :
6445 pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing=yes
6447 pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing=no
6449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6451 ac_cpp='$CPP $CPPFLAGS'
6452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6456 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6457 CXXFLAGS="$pgac_save_CXXFLAGS"
6458 CXX="$pgac_save_CXX"
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" >&5
6461 $as_echo "$pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" >&6; }
6462 if test x"$pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" = x"yes"; then
6463 CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
6467 elif test "$PORTNAME" = "aix"; then
6468 # AIX's xlc has to have strict aliasing turned off too
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -qnoansialias, for CFLAGS" >&5
6471 $as_echo_n "checking whether ${CC} supports -qnoansialias, for CFLAGS... " >&6; }
6472 if ${pgac_cv_prog_CC_cflags__qnoansialias+:} false; then :
6473 $as_echo_n "(cached) " >&6
6475 pgac_save_CFLAGS=$CFLAGS
6478 CFLAGS="${CFLAGS} -qnoansialias"
6479 ac_save_c_werror_flag=$ac_c_werror_flag
6480 ac_c_werror_flag=yes
6481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6482 /* end confdefs.h. */
6492 if ac_fn_c_try_compile "$LINENO"; then :
6493 pgac_cv_prog_CC_cflags__qnoansialias=yes
6495 pgac_cv_prog_CC_cflags__qnoansialias=no
6497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6498 ac_c_werror_flag=$ac_save_c_werror_flag
6499 CFLAGS="$pgac_save_CFLAGS"
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__qnoansialias" >&5
6503 $as_echo "$pgac_cv_prog_CC_cflags__qnoansialias" >&6; }
6504 if test x"$pgac_cv_prog_CC_cflags__qnoansialias" = x"yes"; then
6505 CFLAGS="${CFLAGS} -qnoansialias"
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -qnoansialias, for CXXFLAGS" >&5
6510 $as_echo_n "checking whether ${CXX} supports -qnoansialias, for CXXFLAGS... " >&6; }
6511 if ${pgac_cv_prog_CXX_cxxflags__qnoansialias+:} false; then :
6512 $as_echo_n "(cached) " >&6
6514 pgac_save_CXXFLAGS=$CXXFLAGS
6517 CXXFLAGS="${CXXFLAGS} -qnoansialias"
6518 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6519 ac_cxx_werror_flag=yes
6521 ac_cpp='$CXXCPP $CPPFLAGS'
6522 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6523 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6524 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6527 /* end confdefs.h. */
6537 if ac_fn_cxx_try_compile "$LINENO"; then :
6538 pgac_cv_prog_CXX_cxxflags__qnoansialias=yes
6540 pgac_cv_prog_CXX_cxxflags__qnoansialias=no
6542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6544 ac_cpp='$CPP $CPPFLAGS'
6545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6549 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6550 CXXFLAGS="$pgac_save_CXXFLAGS"
6551 CXX="$pgac_save_CXX"
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__qnoansialias" >&5
6554 $as_echo "$pgac_cv_prog_CXX_cxxflags__qnoansialias" >&6; }
6555 if test x"$pgac_cv_prog_CXX_cxxflags__qnoansialias" = x"yes"; then
6556 CXXFLAGS="${CXXFLAGS} -qnoansialias"
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -qlonglong, for CFLAGS" >&5
6562 $as_echo_n "checking whether ${CC} supports -qlonglong, for CFLAGS... " >&6; }
6563 if ${pgac_cv_prog_CC_cflags__qlonglong+:} false; then :
6564 $as_echo_n "(cached) " >&6
6566 pgac_save_CFLAGS=$CFLAGS
6569 CFLAGS="${CFLAGS} -qlonglong"
6570 ac_save_c_werror_flag=$ac_c_werror_flag
6571 ac_c_werror_flag=yes
6572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573 /* end confdefs.h. */
6583 if ac_fn_c_try_compile "$LINENO"; then :
6584 pgac_cv_prog_CC_cflags__qlonglong=yes
6586 pgac_cv_prog_CC_cflags__qlonglong=no
6588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6589 ac_c_werror_flag=$ac_save_c_werror_flag
6590 CFLAGS="$pgac_save_CFLAGS"
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__qlonglong" >&5
6594 $as_echo "$pgac_cv_prog_CC_cflags__qlonglong" >&6; }
6595 if test x"$pgac_cv_prog_CC_cflags__qlonglong" = x"yes"; then
6596 CFLAGS="${CFLAGS} -qlonglong"
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -qlonglong, for CXXFLAGS" >&5
6601 $as_echo_n "checking whether ${CXX} supports -qlonglong, for CXXFLAGS... " >&6; }
6602 if ${pgac_cv_prog_CXX_cxxflags__qlonglong+:} false; then :
6603 $as_echo_n "(cached) " >&6
6605 pgac_save_CXXFLAGS=$CXXFLAGS
6608 CXXFLAGS="${CXXFLAGS} -qlonglong"
6609 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6610 ac_cxx_werror_flag=yes
6612 ac_cpp='$CXXCPP $CPPFLAGS'
6613 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6614 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6615 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6618 /* end confdefs.h. */
6628 if ac_fn_cxx_try_compile "$LINENO"; then :
6629 pgac_cv_prog_CXX_cxxflags__qlonglong=yes
6631 pgac_cv_prog_CXX_cxxflags__qlonglong=no
6633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6635 ac_cpp='$CPP $CPPFLAGS'
6636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6640 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6641 CXXFLAGS="$pgac_save_CXXFLAGS"
6642 CXX="$pgac_save_CXX"
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__qlonglong" >&5
6645 $as_echo "$pgac_cv_prog_CXX_cxxflags__qlonglong" >&6; }
6646 if test x"$pgac_cv_prog_CXX_cxxflags__qlonglong" = x"yes"; then
6647 CXXFLAGS="${CXXFLAGS} -qlonglong"
6651 elif test "$PORTNAME" = "hpux"; then
6652 # On some versions of HP-UX, libm functions do not set errno by default.
6653 # Fix that by using +Olibmerrno if the compiler recognizes it.
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports +Olibmerrno, for CFLAGS" >&5
6656 $as_echo_n "checking whether ${CC} supports +Olibmerrno, for CFLAGS... " >&6; }
6657 if ${pgac_cv_prog_CC_cflags_pOlibmerrno+:} false; then :
6658 $as_echo_n "(cached) " >&6
6660 pgac_save_CFLAGS=$CFLAGS
6663 CFLAGS="${CFLAGS} +Olibmerrno"
6664 ac_save_c_werror_flag=$ac_c_werror_flag
6665 ac_c_werror_flag=yes
6666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6667 /* end confdefs.h. */
6677 if ac_fn_c_try_compile "$LINENO"; then :
6678 pgac_cv_prog_CC_cflags_pOlibmerrno=yes
6680 pgac_cv_prog_CC_cflags_pOlibmerrno=no
6682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6683 ac_c_werror_flag=$ac_save_c_werror_flag
6684 CFLAGS="$pgac_save_CFLAGS"
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags_pOlibmerrno" >&5
6688 $as_echo "$pgac_cv_prog_CC_cflags_pOlibmerrno" >&6; }
6689 if test x"$pgac_cv_prog_CC_cflags_pOlibmerrno" = x"yes"; then
6690 CFLAGS="${CFLAGS} +Olibmerrno"
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports +Olibmerrno, for CXXFLAGS" >&5
6695 $as_echo_n "checking whether ${CXX} supports +Olibmerrno, for CXXFLAGS... " >&6; }
6696 if ${pgac_cv_prog_CXX_cxxflags_pOlibmerrno+:} false; then :
6697 $as_echo_n "(cached) " >&6
6699 pgac_save_CXXFLAGS=$CXXFLAGS
6702 CXXFLAGS="${CXXFLAGS} +Olibmerrno"
6703 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6704 ac_cxx_werror_flag=yes
6706 ac_cpp='$CXXCPP $CPPFLAGS'
6707 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6708 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6709 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6712 /* end confdefs.h. */
6722 if ac_fn_cxx_try_compile "$LINENO"; then :
6723 pgac_cv_prog_CXX_cxxflags_pOlibmerrno=yes
6725 pgac_cv_prog_CXX_cxxflags_pOlibmerrno=no
6727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6729 ac_cpp='$CPP $CPPFLAGS'
6730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6734 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6735 CXXFLAGS="$pgac_save_CXXFLAGS"
6736 CXX="$pgac_save_CXX"
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags_pOlibmerrno" >&5
6739 $as_echo "$pgac_cv_prog_CXX_cxxflags_pOlibmerrno" >&6; }
6740 if test x"$pgac_cv_prog_CXX_cxxflags_pOlibmerrno" = x"yes"; then
6741 CXXFLAGS="${CXXFLAGS} +Olibmerrno"
6747 CFLAGS_VECTOR=$CFLAGS_VECTOR
6750 # Determine flags used to emit bitcode for JIT inlining. Need to test
6751 # for behaviour changing compiler flags, to keep compatibility with
6752 # compiler used for normal postgres code.
6753 if test "$with_llvm" = yes ; then
6754 CLANGXX="$CLANG -xc++"
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -fno-strict-aliasing, for BITCODE_CFLAGS" >&5
6757 $as_echo_n "checking whether ${CLANG} supports -fno-strict-aliasing, for BITCODE_CFLAGS... " >&6; }
6758 if ${pgac_cv_prog_CLANG_cflags__fno_strict_aliasing+:} false; then :
6759 $as_echo_n "(cached) " >&6
6761 pgac_save_CFLAGS=$CFLAGS
6764 CFLAGS="${BITCODE_CFLAGS} -fno-strict-aliasing"
6765 ac_save_c_werror_flag=$ac_c_werror_flag
6766 ac_c_werror_flag=yes
6767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6768 /* end confdefs.h. */
6778 if ac_fn_c_try_compile "$LINENO"; then :
6779 pgac_cv_prog_CLANG_cflags__fno_strict_aliasing=yes
6781 pgac_cv_prog_CLANG_cflags__fno_strict_aliasing=no
6783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6784 ac_c_werror_flag=$ac_save_c_werror_flag
6785 CFLAGS="$pgac_save_CFLAGS"
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__fno_strict_aliasing" >&5
6789 $as_echo "$pgac_cv_prog_CLANG_cflags__fno_strict_aliasing" >&6; }
6790 if test x"$pgac_cv_prog_CLANG_cflags__fno_strict_aliasing" = x"yes"; then
6791 BITCODE_CFLAGS="${BITCODE_CFLAGS} -fno-strict-aliasing"
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANGXX} supports -fno-strict-aliasing, for BITCODE_CXXFLAGS" >&5
6795 $as_echo_n "checking whether ${CLANGXX} supports -fno-strict-aliasing, for BITCODE_CXXFLAGS... " >&6; }
6796 if ${pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing+:} false; then :
6797 $as_echo_n "(cached) " >&6
6799 pgac_save_CXXFLAGS=$CXXFLAGS
6802 CXXFLAGS="${BITCODE_CXXFLAGS} -fno-strict-aliasing"
6803 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6804 ac_cxx_werror_flag=yes
6806 ac_cpp='$CXXCPP $CPPFLAGS'
6807 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6808 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6809 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6812 /* end confdefs.h. */
6822 if ac_fn_cxx_try_compile "$LINENO"; then :
6823 pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing=yes
6825 pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing=no
6827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6829 ac_cpp='$CPP $CPPFLAGS'
6830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6834 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6835 CXXFLAGS="$pgac_save_CXXFLAGS"
6836 CXX="$pgac_save_CXX"
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing" >&5
6839 $as_echo "$pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing" >&6; }
6840 if test x"$pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing" = x"yes"; then
6841 BITCODE_CXXFLAGS="${BITCODE_CXXFLAGS} -fno-strict-aliasing"
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -fwrapv, for BITCODE_CFLAGS" >&5
6845 $as_echo_n "checking whether ${CLANG} supports -fwrapv, for BITCODE_CFLAGS... " >&6; }
6846 if ${pgac_cv_prog_CLANG_cflags__fwrapv+:} false; then :
6847 $as_echo_n "(cached) " >&6
6849 pgac_save_CFLAGS=$CFLAGS
6852 CFLAGS="${BITCODE_CFLAGS} -fwrapv"
6853 ac_save_c_werror_flag=$ac_c_werror_flag
6854 ac_c_werror_flag=yes
6855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6856 /* end confdefs.h. */
6866 if ac_fn_c_try_compile "$LINENO"; then :
6867 pgac_cv_prog_CLANG_cflags__fwrapv=yes
6869 pgac_cv_prog_CLANG_cflags__fwrapv=no
6871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6872 ac_c_werror_flag=$ac_save_c_werror_flag
6873 CFLAGS="$pgac_save_CFLAGS"
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__fwrapv" >&5
6877 $as_echo "$pgac_cv_prog_CLANG_cflags__fwrapv" >&6; }
6878 if test x"$pgac_cv_prog_CLANG_cflags__fwrapv" = x"yes"; then
6879 BITCODE_CFLAGS="${BITCODE_CFLAGS} -fwrapv"
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANGXX} supports -fwrapv, for BITCODE_CXXFLAGS" >&5
6883 $as_echo_n "checking whether ${CLANGXX} supports -fwrapv, for BITCODE_CXXFLAGS... " >&6; }
6884 if ${pgac_cv_prog_CLANGXX_cxxflags__fwrapv+:} false; then :
6885 $as_echo_n "(cached) " >&6
6887 pgac_save_CXXFLAGS=$CXXFLAGS
6890 CXXFLAGS="${BITCODE_CXXFLAGS} -fwrapv"
6891 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6892 ac_cxx_werror_flag=yes
6894 ac_cpp='$CXXCPP $CPPFLAGS'
6895 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6896 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6897 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6900 /* end confdefs.h. */
6910 if ac_fn_cxx_try_compile "$LINENO"; then :
6911 pgac_cv_prog_CLANGXX_cxxflags__fwrapv=yes
6913 pgac_cv_prog_CLANGXX_cxxflags__fwrapv=no
6915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6917 ac_cpp='$CPP $CPPFLAGS'
6918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6922 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6923 CXXFLAGS="$pgac_save_CXXFLAGS"
6924 CXX="$pgac_save_CXX"
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANGXX_cxxflags__fwrapv" >&5
6927 $as_echo "$pgac_cv_prog_CLANGXX_cxxflags__fwrapv" >&6; }
6928 if test x"$pgac_cv_prog_CLANGXX_cxxflags__fwrapv" = x"yes"; then
6929 BITCODE_CXXFLAGS="${BITCODE_CXXFLAGS} -fwrapv"
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -fexcess-precision=standard, for BITCODE_CFLAGS" >&5
6933 $as_echo_n "checking whether ${CLANG} supports -fexcess-precision=standard, for BITCODE_CFLAGS... " >&6; }
6934 if ${pgac_cv_prog_CLANG_cflags__fexcess_precision_standard+:} false; then :
6935 $as_echo_n "(cached) " >&6
6937 pgac_save_CFLAGS=$CFLAGS
6940 CFLAGS="${BITCODE_CFLAGS} -fexcess-precision=standard"
6941 ac_save_c_werror_flag=$ac_c_werror_flag
6942 ac_c_werror_flag=yes
6943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6944 /* end confdefs.h. */
6954 if ac_fn_c_try_compile "$LINENO"; then :
6955 pgac_cv_prog_CLANG_cflags__fexcess_precision_standard=yes
6957 pgac_cv_prog_CLANG_cflags__fexcess_precision_standard=no
6959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6960 ac_c_werror_flag=$ac_save_c_werror_flag
6961 CFLAGS="$pgac_save_CFLAGS"
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__fexcess_precision_standard" >&5
6965 $as_echo "$pgac_cv_prog_CLANG_cflags__fexcess_precision_standard" >&6; }
6966 if test x"$pgac_cv_prog_CLANG_cflags__fexcess_precision_standard" = x"yes"; then
6967 BITCODE_CFLAGS="${BITCODE_CFLAGS} -fexcess-precision=standard"
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANGXX} supports -fexcess-precision=standard, for BITCODE_CXXFLAGS" >&5
6971 $as_echo_n "checking whether ${CLANGXX} supports -fexcess-precision=standard, for BITCODE_CXXFLAGS... " >&6; }
6972 if ${pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard+:} false; then :
6973 $as_echo_n "(cached) " >&6
6975 pgac_save_CXXFLAGS=$CXXFLAGS
6978 CXXFLAGS="${BITCODE_CXXFLAGS} -fexcess-precision=standard"
6979 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6980 ac_cxx_werror_flag=yes
6982 ac_cpp='$CXXCPP $CPPFLAGS'
6983 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6984 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6985 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6988 /* end confdefs.h. */
6998 if ac_fn_cxx_try_compile "$LINENO"; then :
6999 pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard=yes
7001 pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard=no
7003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7005 ac_cpp='$CPP $CPPFLAGS'
7006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7010 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7011 CXXFLAGS="$pgac_save_CXXFLAGS"
7012 CXX="$pgac_save_CXX"
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard" >&5
7015 $as_echo "$pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard" >&6; }
7016 if test x"$pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard" = x"yes"; then
7017 BITCODE_CXXFLAGS="${BITCODE_CXXFLAGS} -fexcess-precision=standard"
7022 # supply -g if --enable-debug
7023 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
7027 if test "$enable_debug" = yes && test "$ac_cv_prog_cxx_g" = yes; then
7028 CXXFLAGS="$CXXFLAGS -g"
7031 # enable code coverage if --enable-coverage
7032 if test "$enable_coverage" = yes; then
7033 if test "$GCC" = yes; then
7034 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
7035 CXXFLAGS="$CXXFLAGS -fprofile-arcs -ftest-coverage"
7037 as_fn_error $? "--enable-coverage is supported only when using GCC" "$LINENO" 5
7041 # enable profiling if --enable-profiling
7042 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
7043 if test "$GCC" = yes; then
7045 $as_echo "#define PROFILE_PID_DIR 1" >>confdefs.h
7047 CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
7048 CXXFLAGS="$CXXFLAGS -pg $PLATFORM_PROFILE_FLAGS"
7050 as_fn_error $? "--enable-profiling is supported only when using GCC" "$LINENO" 5
7054 # We already have this in Makefile.win32, but configure needs it too
7055 if test "$PORTNAME" = "win32"; then
7056 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
7059 # Now that we're done automatically adding stuff to C[XX]FLAGS, put back the
7060 # user-specified flags (if any) at the end. This lets users override
7061 # the automatic additions.
7062 CFLAGS="$CFLAGS $user_CFLAGS"
7063 CXXFLAGS="$CXXFLAGS $user_CXXFLAGS"
7064 BITCODE_CFLAGS="$BITCODE_CFLAGS $user_BITCODE_CFLAGS"
7065 BITCODE_CXXFLAGS="$BITCODE_CXXFLAGS $user_BITCODE_CXXFLAGS"
7067 BITCODE_CFLAGS=$BITCODE_CFLAGS
7069 BITCODE_CXXFLAGS=$BITCODE_CXXFLAGS
7072 # Check if the compiler still works with the final flag settings
7073 # (note, we're not checking that for CXX, which is optional)
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler still works" >&5
7075 $as_echo_n "checking whether the C compiler still works... " >&6; }
7076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7077 /* end confdefs.h. */
7087 if ac_fn_c_try_link "$LINENO"; then :
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7089 $as_echo "yes" >&6; }
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7092 $as_echo "no" >&6; }
7093 as_fn_error $? "cannot proceed" "$LINENO" 5
7095 rm -f core conftest.err conftest.$ac_objext \
7096 conftest$ac_exeext conftest.$ac_ext
7098 # Defend against gcc -ffast-math
7099 if test "$GCC" = yes; then
7100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7101 /* end confdefs.h. */
7106 #ifdef __FAST_MATH__
7113 if ac_fn_c_try_compile "$LINENO"; then :
7116 as_fn_error $? "do not put -ffast-math in CFLAGS" "$LINENO" 5
7118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7121 # Defend against clang being used on x86-32 without SSE2 enabled. As current
7122 # versions of clang do not understand -fexcess-precision=standard, the use of
7123 # x87 floating point operations leads to problems like isinf possibly returning
7124 # false for a value that is infinite when converted from the 80bit register to
7125 # the 8byte memory representation.
7127 # Only perform the test if the compiler doesn't understand
7128 # -fexcess-precision=standard, that way a potentially fixed compiler will work
7130 if test "$pgac_cv_prog_CC_cflags__fexcess_precision_standard" = no; then
7131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7132 /* end confdefs.h. */
7138 #if defined(__clang__) && defined(__i386__) && !defined(__SSE2_MATH__)
7146 if ac_fn_c_try_compile "$LINENO"; then :
7149 as_fn_error $? "Compiling PostgreSQL with clang, on 32bit x86, requires SSE2 support. Use -msse2 or use gcc." "$LINENO" 5
7151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7155 ac_cpp='$CPP $CPPFLAGS'
7156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7160 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7161 # On Suns, sometimes $CPP names a directory.
7162 if test -n "$CPP" && test -d "$CPP"; then
7165 if test -z "$CPP"; then
7166 if ${ac_cv_prog_CPP+:} false; then :
7167 $as_echo_n "(cached) " >&6
7169 # Double quotes because CPP needs to be expanded
7170 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7173 for ac_c_preproc_warn_flag in '' yes
7175 # Use a header file that comes with gcc, so configuring glibc
7176 # with a fresh cross-compiler works.
7177 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7178 # <limits.h> exists even on freestanding compilers.
7179 # On the NeXT, cc -E runs the code through the compiler's parser,
7180 # not just through cpp. "Syntax error" is here to catch this case.
7181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7182 /* end confdefs.h. */
7184 # include <limits.h>
7186 # include <assert.h>
7190 if ac_fn_c_try_cpp "$LINENO"; then :
7193 # Broken: fails on valid input.
7196 rm -f conftest.err conftest.i conftest.$ac_ext
7198 # OK, works on sane cases. Now check whether nonexistent headers
7199 # can be detected and how.
7200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7201 /* end confdefs.h. */
7202 #include <ac_nonexistent.h>
7204 if ac_fn_c_try_cpp "$LINENO"; then :
7205 # Broken: success on invalid input.
7208 # Passes both tests.
7212 rm -f conftest.err conftest.i conftest.$ac_ext
7215 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7216 rm -f conftest.i conftest.err conftest.$ac_ext
7217 if $ac_preproc_ok; then :
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7230 $as_echo "$CPP" >&6; }
7232 for ac_c_preproc_warn_flag in '' yes
7234 # Use a header file that comes with gcc, so configuring glibc
7235 # with a fresh cross-compiler works.
7236 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7237 # <limits.h> exists even on freestanding compilers.
7238 # On the NeXT, cc -E runs the code through the compiler's parser,
7239 # not just through cpp. "Syntax error" is here to catch this case.
7240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7241 /* end confdefs.h. */
7243 # include <limits.h>
7245 # include <assert.h>
7249 if ac_fn_c_try_cpp "$LINENO"; then :
7252 # Broken: fails on valid input.
7255 rm -f conftest.err conftest.i conftest.$ac_ext
7257 # OK, works on sane cases. Now check whether nonexistent headers
7258 # can be detected and how.
7259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7260 /* end confdefs.h. */
7261 #include <ac_nonexistent.h>
7263 if ac_fn_c_try_cpp "$LINENO"; then :
7264 # Broken: success on invalid input.
7267 # Passes both tests.
7271 rm -f conftest.err conftest.i conftest.$ac_ext
7274 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7275 rm -f conftest.i conftest.err conftest.$ac_ext
7276 if $ac_preproc_ok; then :
7279 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7281 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7282 See \`config.log' for more details" "$LINENO" 5; }
7286 ac_cpp='$CPP $CPPFLAGS'
7287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7295 # Set up TAS assembly code if needed; the template file has now had its
7296 # chance to request this.
7298 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
7301 if test "$need_tas" = yes ; then
7310 # Automatic dependency tracking
7314 # Check whether --enable-depend was given.
7315 if test "${enable_depend+set}" = set; then :
7316 enableval=$enable_depend;
7325 as_fn_error $? "no argument expected for --enable-depend option" "$LINENO" 5
7339 # Enable assert checks
7343 # Check whether --enable-cassert was given.
7344 if test "${enable_cassert+set}" = set; then :
7345 enableval=$enable_cassert;
7349 $as_echo "#define USE_ASSERT_CHECKING 1" >>confdefs.h
7356 as_fn_error $? "no argument expected for --enable-cassert option" "$LINENO" 5
7369 # Include directories
7372 IFS="${IFS}${PATH_SEPARATOR}"
7373 # SRCH_INC comes from the template file
7374 for dir in $with_includes $SRCH_INC; do
7375 if test -d "$dir"; then
7376 INCLUDES="$INCLUDES -I$dir"
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Include directory $dir does not exist." >&5
7379 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
7387 # Library directories
7390 IFS="${IFS}${PATH_SEPARATOR}"
7391 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
7392 for dir in $LIBRARY_DIRS $SRCH_LIB; do
7393 if test -d "$dir"; then
7394 LIBDIRS="$LIBDIRS -L$dir"
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Library directory $dir does not exist." >&5
7397 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
7403 # Enable thread-safe client libraries
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking allow thread-safe client libraries" >&5
7406 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
7409 # Check whether --enable-thread-safety was given.
7410 if test "${enable_thread_safety+set}" = set; then :
7411 enableval=$enable_thread_safety;
7420 as_fn_error $? "no argument expected for --enable-thread-safety option" "$LINENO" 5
7425 enable_thread_safety=yes
7430 if test "$enable_thread_safety" = yes; then
7432 $as_echo "#define ENABLE_THREAD_SAFETY 1" >>confdefs.h
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_thread_safety" >&5
7436 $as_echo "$enable_thread_safety" >&6; }
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with ICU support" >&5
7443 $as_echo_n "checking whether to build with ICU support... " >&6; }
7447 # Check whether --with-icu was given.
7448 if test "${with_icu+set}" = set; then :
7453 $as_echo "#define USE_ICU 1" >>confdefs.h
7460 as_fn_error $? "no argument expected for --with-icu option" "$LINENO" 5
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_icu" >&5
7471 $as_echo "$with_icu" >&6; }
7474 if test "$with_icu" = yes; then
7482 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7483 if test -n "$ac_tool_prefix"; then
7484 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7485 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7487 $as_echo_n "checking for $ac_word... " >&6; }
7488 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7489 $as_echo_n "(cached) " >&6
7493 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7500 test -z "$as_dir" && as_dir=.
7501 for ac_exec_ext in '' $ac_executable_extensions; do
7502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7503 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7514 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7515 if test -n "$PKG_CONFIG"; then
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7517 $as_echo "$PKG_CONFIG" >&6; }
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7520 $as_echo "no" >&6; }
7525 if test -z "$ac_cv_path_PKG_CONFIG"; then
7526 ac_pt_PKG_CONFIG=$PKG_CONFIG
7527 # Extract the first word of "pkg-config", so it can be a program name with args.
7528 set dummy pkg-config; ac_word=$2
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7530 $as_echo_n "checking for $ac_word... " >&6; }
7531 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7532 $as_echo_n "(cached) " >&6
7534 case $ac_pt_PKG_CONFIG in
7536 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7543 test -z "$as_dir" && as_dir=.
7544 for ac_exec_ext in '' $ac_executable_extensions; do
7545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7546 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7557 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7558 if test -n "$ac_pt_PKG_CONFIG"; then
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7560 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7563 $as_echo "no" >&6; }
7566 if test "x$ac_pt_PKG_CONFIG" = x; then
7569 case $cross_compiling:$ac_tool_warned in
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7572 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7573 ac_tool_warned=yes ;;
7575 PKG_CONFIG=$ac_pt_PKG_CONFIG
7578 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7582 if test -n "$PKG_CONFIG"; then
7583 _pkg_min_version=0.9.0
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7585 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7586 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7588 $as_echo "yes" >&6; }
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7591 $as_echo "no" >&6; }
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icu-uc icu-i18n" >&5
7598 $as_echo_n "checking for icu-uc icu-i18n... " >&6; }
7600 if test -n "$ICU_CFLAGS"; then
7601 pkg_cv_ICU_CFLAGS="$ICU_CFLAGS"
7602 elif test -n "$PKG_CONFIG"; then
7603 if test -n "$PKG_CONFIG" && \
7604 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc icu-i18n\""; } >&5
7605 ($PKG_CONFIG --exists --print-errors "icu-uc icu-i18n") 2>&5
7607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7608 test $ac_status = 0; }; then
7609 pkg_cv_ICU_CFLAGS=`$PKG_CONFIG --cflags "icu-uc icu-i18n" 2>/dev/null`
7610 test "x$?" != "x0" && pkg_failed=yes
7617 if test -n "$ICU_LIBS"; then
7618 pkg_cv_ICU_LIBS="$ICU_LIBS"
7619 elif test -n "$PKG_CONFIG"; then
7620 if test -n "$PKG_CONFIG" && \
7621 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc icu-i18n\""; } >&5
7622 ($PKG_CONFIG --exists --print-errors "icu-uc icu-i18n") 2>&5
7624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7625 test $ac_status = 0; }; then
7626 pkg_cv_ICU_LIBS=`$PKG_CONFIG --libs "icu-uc icu-i18n" 2>/dev/null`
7627 test "x$?" != "x0" && pkg_failed=yes
7637 if test $pkg_failed = yes; then
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7639 $as_echo "no" >&6; }
7641 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7642 _pkg_short_errors_supported=yes
7644 _pkg_short_errors_supported=no
7646 if test $_pkg_short_errors_supported = yes; then
7647 ICU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "icu-uc icu-i18n" 2>&1`
7649 ICU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "icu-uc icu-i18n" 2>&1`
7651 # Put the nasty error message in config.log where it belongs
7652 echo "$ICU_PKG_ERRORS" >&5
7654 as_fn_error $? "Package requirements (icu-uc icu-i18n) were not met:
7658 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7659 installed software in a non-standard prefix.
7661 Alternatively, you may set the environment variables ICU_CFLAGS
7662 and ICU_LIBS to avoid the need to call pkg-config.
7663 See the pkg-config man page for more details." "$LINENO" 5
7664 elif test $pkg_failed = untried; then
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7666 $as_echo "no" >&6; }
7667 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7668 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7669 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
7670 is in your PATH or set the PKG_CONFIG environment variable to the full
7673 Alternatively, you may set the environment variables ICU_CFLAGS
7674 and ICU_LIBS to avoid the need to call pkg-config.
7675 See the pkg-config man page for more details.
7677 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7678 See \`config.log' for more details" "$LINENO" 5; }
7680 ICU_CFLAGS=$pkg_cv_ICU_CFLAGS
7681 ICU_LIBS=$pkg_cv_ICU_LIBS
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7683 $as_echo "yes" >&6; }
7689 # Optionally build Tcl modules (PL/Tcl)
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with Tcl" >&5
7692 $as_echo_n "checking whether to build with Tcl... " >&6; }
7696 # Check whether --with-tcl was given.
7697 if test "${with_tcl+set}" = set; then :
7707 as_fn_error $? "no argument expected for --with-tcl option" "$LINENO" 5
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcl" >&5
7718 $as_echo "$with_tcl" >&6; }
7721 # We see if the path to the Tcl/Tk configuration scripts is specified.
7722 # This will override the use of tclsh to find the paths to search.
7727 # Check whether --with-tclconfig was given.
7728 if test "${with_tclconfig+set}" = set; then :
7729 withval=$with_tclconfig;
7732 as_fn_error $? "argument required for --with-tclconfig option" "$LINENO" 5
7735 as_fn_error $? "argument required for --with-tclconfig option" "$LINENO" 5
7747 # Optionally build Perl modules (PL/Perl)
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Perl modules" >&5
7750 $as_echo_n "checking whether to build Perl modules... " >&6; }
7754 # Check whether --with-perl was given.
7755 if test "${with_perl+set}" = set; then :
7765 as_fn_error $? "no argument expected for --with-perl option" "$LINENO" 5
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_perl" >&5
7776 $as_echo "$with_perl" >&6; }
7780 # Optionally build Python modules (PL/Python)
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Python modules" >&5
7783 $as_echo_n "checking whether to build Python modules... " >&6; }
7787 # Check whether --with-python was given.
7788 if test "${with_python+set}" = set; then :
7789 withval=$with_python;
7798 as_fn_error $? "no argument expected for --with-python option" "$LINENO" 5
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
7809 $as_echo "$with_python" >&6; }
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with GSSAPI support" >&5
7816 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
7820 # Check whether --with-gssapi was given.
7821 if test "${with_gssapi+set}" = set; then :
7822 withval=$with_gssapi;
7827 $as_echo "#define ENABLE_GSS 1" >>confdefs.h
7829 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
7836 as_fn_error $? "no argument expected for --with-gssapi option" "$LINENO" 5
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_gssapi" >&5
7847 $as_echo "$with_gssapi" >&6; }
7855 # Kerberos configuration parameters
7860 # Check whether --with-krb-srvnam was given.
7861 if test "${with_krb_srvnam+set}" = set; then :
7862 withval=$with_krb_srvnam;
7865 as_fn_error $? "argument required for --with-krb-srvnam option" "$LINENO" 5
7868 as_fn_error $? "argument required for --with-krb-srvnam option" "$LINENO" 5
7876 with_krb_srvnam="postgres"
7882 cat >>confdefs.h <<_ACEOF
7883 #define PG_KRB_SRVNAM "$with_krb_srvnam"
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with PAM support" >&5
7892 $as_echo_n "checking whether to build with PAM support... " >&6; }
7896 # Check whether --with-pam was given.
7897 if test "${with_pam+set}" = set; then :
7902 $as_echo "#define USE_PAM 1" >>confdefs.h
7909 as_fn_error $? "no argument expected for --with-pam option" "$LINENO" 5
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pam" >&5
7920 $as_echo "$with_pam" >&6; }
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with BSD Authentication support" >&5
7927 $as_echo_n "checking whether to build with BSD Authentication support... " >&6; }
7931 # Check whether --with-bsd-auth was given.
7932 if test "${with_bsd_auth+set}" = set; then :
7933 withval=$with_bsd_auth;
7937 $as_echo "#define USE_BSD_AUTH 1" >>confdefs.h
7944 as_fn_error $? "no argument expected for --with-bsd-auth option" "$LINENO" 5
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_bsd_auth" >&5
7955 $as_echo "$with_bsd_auth" >&6; }
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with LDAP support" >&5
7962 $as_echo_n "checking whether to build with LDAP support... " >&6; }
7966 # Check whether --with-ldap was given.
7967 if test "${with_ldap+set}" = set; then :
7972 $as_echo "#define USE_LDAP 1" >>confdefs.h
7979 as_fn_error $? "no argument expected for --with-ldap option" "$LINENO" 5
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ldap" >&5
7990 $as_echo "$with_ldap" >&6; }
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with Bonjour support" >&5
7998 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
8002 # Check whether --with-bonjour was given.
8003 if test "${with_bonjour+set}" = set; then :
8004 withval=$with_bonjour;
8008 $as_echo "#define USE_BONJOUR 1" >>confdefs.h
8015 as_fn_error $? "no argument expected for --with-bonjour option" "$LINENO" 5
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_bonjour" >&5
8026 $as_echo "$with_bonjour" >&6; }
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with OpenSSL support" >&5
8033 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
8037 # Check whether --with-openssl was given.
8038 if test "${with_openssl+set}" = set; then :
8039 withval=$with_openssl;
8043 $as_echo "#define USE_OPENSSL 1" >>confdefs.h
8050 as_fn_error $? "no argument expected for --with-openssl option" "$LINENO" 5
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_openssl" >&5
8061 $as_echo "$with_openssl" >&6; }
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with SELinux support" >&5
8068 $as_echo_n "checking whether to build with SELinux support... " >&6; }
8072 # Check whether --with-selinux was given.
8073 if test "${with_selinux+set}" = set; then :
8074 withval=$with_selinux;
8083 as_fn_error $? "no argument expected for --with-selinux option" "$LINENO" 5
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_selinux" >&5
8095 $as_echo "$with_selinux" >&6; }
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with systemd support" >&5
8101 $as_echo_n "checking whether to build with systemd support... " >&6; }
8105 # Check whether --with-systemd was given.
8106 if test "${with_systemd+set}" = set; then :
8107 withval=$with_systemd;
8111 $as_echo "#define USE_SYSTEMD 1" >>confdefs.h
8118 as_fn_error $? "no argument expected for --with-systemd option" "$LINENO" 5
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemd" >&5
8130 $as_echo "$with_systemd" >&6; }
8138 # Check whether --with-readline was given.
8139 if test "${with_readline+set}" = set; then :
8140 withval=$with_readline;
8149 as_fn_error $? "no argument expected for --with-readline option" "$LINENO" 5
8159 # readline on MinGW has problems with backslashes in psql and other bugs.
8160 # This is particularly a problem with non-US code pages.
8161 # Therefore disable its use until we understand the cause. 2004-07-20
8162 if test "$PORTNAME" = "win32"; then
8163 if test "$with_readline" = yes; then
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Readline does not work on MinGW --- disabling" >&5
8165 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
8177 # Check whether --with-libedit-preferred was given.
8178 if test "${with_libedit_preferred+set}" = set; then :
8179 withval=$with_libedit_preferred;
8188 as_fn_error $? "no argument expected for --with-libedit-preferred option" "$LINENO" 5
8193 with_libedit_preferred=no
8203 # There are at least three UUID libraries in common use: the FreeBSD/NetBSD
8204 # library, the e2fsprogs libuuid (now part of util-linux-ng), and the OSSP
8205 # UUID library. More than one of these might be present on a given platform,
8206 # so we make the user say which one she wants.
8211 # Check whether --with-uuid was given.
8212 if test "${with_uuid+set}" = set; then :
8216 as_fn_error $? "argument required for --with-uuid option" "$LINENO" 5
8219 as_fn_error $? "argument required for --with-uuid option" "$LINENO" 5
8229 if test x"$with_uuid" = x"" ; then
8235 # Check whether --with-ossp-uuid was given.
8236 if test "${with_ossp_uuid+set}" = set; then :
8237 withval=$with_ossp_uuid;
8246 as_fn_error $? "no argument expected for --with-ossp-uuid option" "$LINENO" 5
8256 if test "$with_ossp_uuid" = yes ; then
8260 if test "$with_uuid" = bsd ; then
8262 $as_echo "#define HAVE_UUID_BSD 1" >>confdefs.h
8264 UUID_EXTRA_OBJS="md5.o sha1.o"
8265 elif test "$with_uuid" = e2fs ; then
8267 $as_echo "#define HAVE_UUID_E2FS 1" >>confdefs.h
8269 UUID_EXTRA_OBJS="md5.o sha1.o"
8270 elif test "$with_uuid" = ossp ; then
8272 $as_echo "#define HAVE_UUID_OSSP 1" >>confdefs.h
8275 elif test "$with_uuid" = no ; then
8278 as_fn_error $? "--with-uuid must specify one of bsd, e2fs, or ossp" "$LINENO" 5
8290 # Check whether --with-libxml was given.
8291 if test "${with_libxml+set}" = set; then :
8292 withval=$with_libxml;
8296 $as_echo "#define USE_LIBXML 1" >>confdefs.h
8303 as_fn_error $? "no argument expected for --with-libxml option" "$LINENO" 5
8314 if test "$with_libxml" = yes ; then
8315 if test -z "$XML2_CONFIG"; then
8316 for ac_prog in xml2-config
8318 # Extract the first word of "$ac_prog", so it can be a program name with args.
8319 set dummy $ac_prog; ac_word=$2
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8321 $as_echo_n "checking for $ac_word... " >&6; }
8322 if ${ac_cv_path_XML2_CONFIG+:} false; then :
8323 $as_echo_n "(cached) " >&6
8325 case $XML2_CONFIG in
8327 ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
8330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8334 test -z "$as_dir" && as_dir=.
8335 for ac_exec_ext in '' $ac_executable_extensions; do
8336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8337 ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8348 XML2_CONFIG=$ac_cv_path_XML2_CONFIG
8349 if test -n "$XML2_CONFIG"; then
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
8351 $as_echo "$XML2_CONFIG" >&6; }
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8354 $as_echo "no" >&6; }
8358 test -n "$XML2_CONFIG" && break
8362 # Report the value of XML2_CONFIG in configure's output in all cases.
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML2_CONFIG" >&5
8364 $as_echo_n "checking for XML2_CONFIG... " >&6; }
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
8366 $as_echo "$XML2_CONFIG" >&6; }
8369 if test -n "$XML2_CONFIG"; then
8370 for pgac_option in `$XML2_CONFIG --cflags`; do
8371 case $pgac_option in
8372 -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
8375 for pgac_option in `$XML2_CONFIG --libs`; do
8376 case $pgac_option in
8377 -L*) LDFLAGS="$LDFLAGS $pgac_option";;
8391 # Check whether --with-libxslt was given.
8392 if test "${with_libxslt+set}" = set; then :
8393 withval=$with_libxslt;
8397 $as_echo "#define USE_LIBXSLT 1" >>confdefs.h
8404 as_fn_error $? "no argument expected for --with-libxslt option" "$LINENO" 5
8424 # Check whether --with-system-tzdata was given.
8425 if test "${with_system_tzdata+set}" = set; then :
8426 withval=$with_system_tzdata;
8429 as_fn_error $? "argument required for --with-system-tzdata option" "$LINENO" 5
8432 as_fn_error $? "argument required for --with-system-tzdata option" "$LINENO" 5
8450 # Check whether --with-zlib was given.
8451 if test "${with_zlib+set}" = set; then :
8461 as_fn_error $? "no argument expected for --with-zlib option" "$LINENO" 5
8477 # Assume system is ELF if it predefines __ELF__ as 1,
8478 # otherwise believe host_os based default.
8480 freebsd1*|freebsd2*) elf=no;;
8481 freebsd3*|freebsd4*) elf=yes;;
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
8486 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
8487 if ${ac_cv_path_GREP+:} false; then :
8488 $as_echo_n "(cached) " >&6
8490 if test -z "$GREP"; then
8491 ac_path_GREP_found=false
8492 # Loop through the user's path and test for each of PROGNAME-LIST
8493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8494 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8497 test -z "$as_dir" && as_dir=.
8498 for ac_prog in grep ggrep; do
8499 for ac_exec_ext in '' $ac_executable_extensions; do
8500 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
8501 as_fn_executable_p "$ac_path_GREP" || continue
8502 # Check for GNU ac_path_GREP and select it if it is found.
8503 # Check for GNU $ac_path_GREP
8504 case `"$ac_path_GREP" --version 2>&1` in
8506 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
8509 $as_echo_n 0123456789 >"conftest.in"
8512 cat "conftest.in" "conftest.in" >"conftest.tmp"
8513 mv "conftest.tmp" "conftest.in"
8514 cp "conftest.in" "conftest.nl"
8515 $as_echo 'GREP' >> "conftest.nl"
8516 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8517 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8518 as_fn_arith $ac_count + 1 && ac_count=$as_val
8519 if test $ac_count -gt ${ac_path_GREP_max-0}; then
8520 # Best one so far, save it but keep looking for a better one
8521 ac_cv_path_GREP="$ac_path_GREP"
8522 ac_path_GREP_max=$ac_count
8524 # 10*(2^10) chars as input seems more than enough
8525 test $ac_count -gt 10 && break
8527 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8530 $ac_path_GREP_found && break 3
8535 if test -z "$ac_cv_path_GREP"; then
8536 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8539 ac_cv_path_GREP=$GREP
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
8544 $as_echo "$ac_cv_path_GREP" >&6; }
8545 GREP="$ac_cv_path_GREP"
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
8549 $as_echo_n "checking for egrep... " >&6; }
8550 if ${ac_cv_path_EGREP+:} false; then :
8551 $as_echo_n "(cached) " >&6
8553 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
8554 then ac_cv_path_EGREP="$GREP -E"
8556 if test -z "$EGREP"; then
8557 ac_path_EGREP_found=false
8558 # Loop through the user's path and test for each of PROGNAME-LIST
8559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8560 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8563 test -z "$as_dir" && as_dir=.
8564 for ac_prog in egrep; do
8565 for ac_exec_ext in '' $ac_executable_extensions; do
8566 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
8567 as_fn_executable_p "$ac_path_EGREP" || continue
8568 # Check for GNU ac_path_EGREP and select it if it is found.
8569 # Check for GNU $ac_path_EGREP
8570 case `"$ac_path_EGREP" --version 2>&1` in
8572 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8575 $as_echo_n 0123456789 >"conftest.in"
8578 cat "conftest.in" "conftest.in" >"conftest.tmp"
8579 mv "conftest.tmp" "conftest.in"
8580 cp "conftest.in" "conftest.nl"
8581 $as_echo 'EGREP' >> "conftest.nl"
8582 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8583 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8584 as_fn_arith $ac_count + 1 && ac_count=$as_val
8585 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8586 # Best one so far, save it but keep looking for a better one
8587 ac_cv_path_EGREP="$ac_path_EGREP"
8588 ac_path_EGREP_max=$ac_count
8590 # 10*(2^10) chars as input seems more than enough
8591 test $ac_count -gt 10 && break
8593 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8596 $ac_path_EGREP_found && break 3
8601 if test -z "$ac_cv_path_EGREP"; then
8602 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8605 ac_cv_path_EGREP=$EGREP
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
8611 $as_echo "$ac_cv_path_EGREP" >&6; }
8612 EGREP="$ac_cv_path_EGREP"
8615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8616 /* end confdefs.h. */
8622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8623 $EGREP "yes" >/dev/null 2>&1; then :
8626 if test "X$elf" = "Xyes" ; then
8640 CPPFLAGS="$CPPFLAGS $INCLUDES"
8641 LDFLAGS="$LDFLAGS $LIBDIRS"
8647 # Check whether --with-gnu-ld was given.
8648 if test "${with_gnu_ld+set}" = set; then :
8649 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8655 if test "$GCC" = yes; then
8656 # Check if gcc -print-prog-name=ld gives a path.
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8658 $as_echo_n "checking for ld used by GCC... " >&6; }
8661 # gcc leaves a trailing carriage return which upsets mingw
8662 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8664 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8667 # Accept absolute paths.
8668 [\\/]* | [A-Za-z]:[\\/]*)
8669 re_direlt='/[^/][^/]*/\.\./'
8670 # Canonicalize the path of ld
8671 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8672 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8673 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8675 test -z "$LD" && LD="$ac_prog"
8678 # If it fails, then pretend we aren't using GCC.
8682 # If it is relative, then search for the first ld in PATH.
8686 elif test "$with_gnu_ld" = yes; then
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8688 $as_echo_n "checking for GNU ld... " >&6; }
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8691 $as_echo_n "checking for non-GNU ld... " >&6; }
8693 if ${ac_cv_path_LD+:} false; then :
8694 $as_echo_n "(cached) " >&6
8696 if test -z "$LD"; then
8697 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8698 for ac_dir in $PATH; do
8699 test -z "$ac_dir" && ac_dir=.
8700 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8701 ac_cv_path_LD="$ac_dir/$ac_prog"
8702 # Check to see if the program is GNU ld. I'd rather use --version,
8703 # but apparently some GNU ld's only accept -v.
8704 # Break only if it was the GNU/non-GNU ld that we prefer.
8705 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
8706 test "$with_gnu_ld" != no && break
8708 test "$with_gnu_ld" != yes && break
8714 ac_cv_path_LD="$LD" # Let the user override the test with a path.
8719 if test -n "$LD"; then
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8721 $as_echo "$LD" >&6; }
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8724 $as_echo "no" >&6; }
8726 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8728 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8729 if ${ac_cv_prog_gnu_ld+:} false; then :
8730 $as_echo_n "(cached) " >&6
8732 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8733 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
8734 ac_cv_prog_gnu_ld=yes
8736 ac_cv_prog_gnu_ld=no
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gnu_ld" >&5
8740 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
8741 with_gnu_ld=$ac_cv_prog_gnu_ld
8746 if test -n "$ac_tool_prefix"; then
8747 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8748 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8750 $as_echo_n "checking for $ac_word... " >&6; }
8751 if ${ac_cv_prog_RANLIB+:} false; then :
8752 $as_echo_n "(cached) " >&6
8754 if test -n "$RANLIB"; then
8755 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8761 test -z "$as_dir" && as_dir=.
8762 for ac_exec_ext in '' $ac_executable_extensions; do
8763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8764 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8774 RANLIB=$ac_cv_prog_RANLIB
8775 if test -n "$RANLIB"; then
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8777 $as_echo "$RANLIB" >&6; }
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8780 $as_echo "no" >&6; }
8785 if test -z "$ac_cv_prog_RANLIB"; then
8786 ac_ct_RANLIB=$RANLIB
8787 # Extract the first word of "ranlib", so it can be a program name with args.
8788 set dummy ranlib; ac_word=$2
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8790 $as_echo_n "checking for $ac_word... " >&6; }
8791 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8792 $as_echo_n "(cached) " >&6
8794 if test -n "$ac_ct_RANLIB"; then
8795 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8801 test -z "$as_dir" && as_dir=.
8802 for ac_exec_ext in '' $ac_executable_extensions; do
8803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8804 ac_cv_prog_ac_ct_RANLIB="ranlib"
8805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8814 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8815 if test -n "$ac_ct_RANLIB"; then
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8817 $as_echo "$ac_ct_RANLIB" >&6; }
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8820 $as_echo "no" >&6; }
8823 if test "x$ac_ct_RANLIB" = x; then
8826 case $cross_compiling:$ac_tool_warned in
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8829 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8830 ac_tool_warned=yes ;;
8832 RANLIB=$ac_ct_RANLIB
8835 RANLIB="$ac_cv_prog_RANLIB"
8839 if test -n "$ac_tool_prefix"; then
8840 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8841 set dummy ${ac_tool_prefix}strip; ac_word=$2
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8843 $as_echo_n "checking for $ac_word... " >&6; }
8844 if ${ac_cv_prog_STRIP+:} false; then :
8845 $as_echo_n "(cached) " >&6
8847 if test -n "$STRIP"; then
8848 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8854 test -z "$as_dir" && as_dir=.
8855 for ac_exec_ext in '' $ac_executable_extensions; do
8856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8857 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8867 STRIP=$ac_cv_prog_STRIP
8868 if test -n "$STRIP"; then
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8870 $as_echo "$STRIP" >&6; }
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8873 $as_echo "no" >&6; }
8878 if test -z "$ac_cv_prog_STRIP"; then
8880 # Extract the first word of "strip", so it can be a program name with args.
8881 set dummy strip; ac_word=$2
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8883 $as_echo_n "checking for $ac_word... " >&6; }
8884 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8885 $as_echo_n "(cached) " >&6
8887 if test -n "$ac_ct_STRIP"; then
8888 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8894 test -z "$as_dir" && as_dir=.
8895 for ac_exec_ext in '' $ac_executable_extensions; do
8896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8897 ac_cv_prog_ac_ct_STRIP="strip"
8898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8907 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8908 if test -n "$ac_ct_STRIP"; then
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8910 $as_echo "$ac_ct_STRIP" >&6; }
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8913 $as_echo "no" >&6; }
8916 if test "x$ac_ct_STRIP" = x; then
8919 case $cross_compiling:$ac_tool_warned in
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8922 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8923 ac_tool_warned=yes ;;
8928 STRIP="$ac_cv_prog_STRIP"
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is possible to strip libraries" >&5
8933 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
8934 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
8935 STRIP_STATIC_LIB="$STRIP -x"
8936 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8938 $as_echo "yes" >&6; }
8943 STRIP_STATIC_LIB=$STRIP
8944 STRIP_SHARED_LIB=$STRIP
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8946 $as_echo "yes" >&6; }
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8952 $as_echo "no" >&6; }
8959 if test -n "$ac_tool_prefix"; then
8960 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8961 set dummy ${ac_tool_prefix}ar; ac_word=$2
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8963 $as_echo_n "checking for $ac_word... " >&6; }
8964 if ${ac_cv_prog_AR+:} false; then :
8965 $as_echo_n "(cached) " >&6
8967 if test -n "$AR"; then
8968 ac_cv_prog_AR="$AR" # Let the user override the test.
8970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8974 test -z "$as_dir" && as_dir=.
8975 for ac_exec_ext in '' $ac_executable_extensions; do
8976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8977 ac_cv_prog_AR="${ac_tool_prefix}ar"
8978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8988 if test -n "$AR"; then
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8990 $as_echo "$AR" >&6; }
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8993 $as_echo "no" >&6; }
8998 if test -z "$ac_cv_prog_AR"; then
9000 # Extract the first word of "ar", so it can be a program name with args.
9001 set dummy ar; ac_word=$2
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9003 $as_echo_n "checking for $ac_word... " >&6; }
9004 if ${ac_cv_prog_ac_ct_AR+:} false; then :
9005 $as_echo_n "(cached) " >&6
9007 if test -n "$ac_ct_AR"; then
9008 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9014 test -z "$as_dir" && as_dir=.
9015 for ac_exec_ext in '' $ac_executable_extensions; do
9016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9017 ac_cv_prog_ac_ct_AR="ar"
9018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9027 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9028 if test -n "$ac_ct_AR"; then
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9030 $as_echo "$ac_ct_AR" >&6; }
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9033 $as_echo "no" >&6; }
9036 if test "x$ac_ct_AR" = x; then
9039 case $cross_compiling:$ac_tool_warned in
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9042 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9043 ac_tool_warned=yes ;;
9051 if test "$PORTNAME" = "win32"; then
9052 if test -n "$ac_tool_prefix"; then
9053 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9054 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9056 $as_echo_n "checking for $ac_word... " >&6; }
9057 if ${ac_cv_prog_DLLTOOL+:} false; then :
9058 $as_echo_n "(cached) " >&6
9060 if test -n "$DLLTOOL"; then
9061 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9067 test -z "$as_dir" && as_dir=.
9068 for ac_exec_ext in '' $ac_executable_extensions; do
9069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9070 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9080 DLLTOOL=$ac_cv_prog_DLLTOOL
9081 if test -n "$DLLTOOL"; then
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9083 $as_echo "$DLLTOOL" >&6; }
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9086 $as_echo "no" >&6; }
9091 if test -z "$ac_cv_prog_DLLTOOL"; then
9092 ac_ct_DLLTOOL=$DLLTOOL
9093 # Extract the first word of "dlltool", so it can be a program name with args.
9094 set dummy dlltool; ac_word=$2
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9096 $as_echo_n "checking for $ac_word... " >&6; }
9097 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9098 $as_echo_n "(cached) " >&6
9100 if test -n "$ac_ct_DLLTOOL"; then
9101 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9107 test -z "$as_dir" && as_dir=.
9108 for ac_exec_ext in '' $ac_executable_extensions; do
9109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9110 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9120 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9121 if test -n "$ac_ct_DLLTOOL"; then
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9123 $as_echo "$ac_ct_DLLTOOL" >&6; }
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9126 $as_echo "no" >&6; }
9129 if test "x$ac_ct_DLLTOOL" = x; then
9132 case $cross_compiling:$ac_tool_warned in
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9136 ac_tool_warned=yes ;;
9138 DLLTOOL=$ac_ct_DLLTOOL
9141 DLLTOOL="$ac_cv_prog_DLLTOOL"
9144 if test -n "$ac_tool_prefix"; then
9145 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
9146 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9148 $as_echo_n "checking for $ac_word... " >&6; }
9149 if ${ac_cv_prog_DLLWRAP+:} false; then :
9150 $as_echo_n "(cached) " >&6
9152 if test -n "$DLLWRAP"; then
9153 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
9155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9159 test -z "$as_dir" && as_dir=.
9160 for ac_exec_ext in '' $ac_executable_extensions; do
9161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9162 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
9163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9172 DLLWRAP=$ac_cv_prog_DLLWRAP
9173 if test -n "$DLLWRAP"; then
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
9175 $as_echo "$DLLWRAP" >&6; }
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9178 $as_echo "no" >&6; }
9183 if test -z "$ac_cv_prog_DLLWRAP"; then
9184 ac_ct_DLLWRAP=$DLLWRAP
9185 # Extract the first word of "dllwrap", so it can be a program name with args.
9186 set dummy dllwrap; ac_word=$2
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9188 $as_echo_n "checking for $ac_word... " >&6; }
9189 if ${ac_cv_prog_ac_ct_DLLWRAP+:} false; then :
9190 $as_echo_n "(cached) " >&6
9192 if test -n "$ac_ct_DLLWRAP"; then
9193 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
9195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9199 test -z "$as_dir" && as_dir=.
9200 for ac_exec_ext in '' $ac_executable_extensions; do
9201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9202 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
9203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9212 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
9213 if test -n "$ac_ct_DLLWRAP"; then
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
9215 $as_echo "$ac_ct_DLLWRAP" >&6; }
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9218 $as_echo "no" >&6; }
9221 if test "x$ac_ct_DLLWRAP" = x; then
9224 case $cross_compiling:$ac_tool_warned in
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9227 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9228 ac_tool_warned=yes ;;
9230 DLLWRAP=$ac_ct_DLLWRAP
9233 DLLWRAP="$ac_cv_prog_DLLWRAP"
9236 if test -n "$ac_tool_prefix"; then
9237 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
9238 set dummy ${ac_tool_prefix}windres; ac_word=$2
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9240 $as_echo_n "checking for $ac_word... " >&6; }
9241 if ${ac_cv_prog_WINDRES+:} false; then :
9242 $as_echo_n "(cached) " >&6
9244 if test -n "$WINDRES"; then
9245 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9251 test -z "$as_dir" && as_dir=.
9252 for ac_exec_ext in '' $ac_executable_extensions; do
9253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9254 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
9255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9264 WINDRES=$ac_cv_prog_WINDRES
9265 if test -n "$WINDRES"; then
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9267 $as_echo "$WINDRES" >&6; }
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9270 $as_echo "no" >&6; }
9275 if test -z "$ac_cv_prog_WINDRES"; then
9276 ac_ct_WINDRES=$WINDRES
9277 # Extract the first word of "windres", so it can be a program name with args.
9278 set dummy windres; ac_word=$2
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9280 $as_echo_n "checking for $ac_word... " >&6; }
9281 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
9282 $as_echo_n "(cached) " >&6
9284 if test -n "$ac_ct_WINDRES"; then
9285 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
9287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9291 test -z "$as_dir" && as_dir=.
9292 for ac_exec_ext in '' $ac_executable_extensions; do
9293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9294 ac_cv_prog_ac_ct_WINDRES="windres"
9295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9304 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
9305 if test -n "$ac_ct_WINDRES"; then
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
9307 $as_echo "$ac_ct_WINDRES" >&6; }
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9310 $as_echo "no" >&6; }
9313 if test "x$ac_ct_WINDRES" = x; then
9316 case $cross_compiling:$ac_tool_warned in
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9319 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9320 ac_tool_warned=yes ;;
9322 WINDRES=$ac_ct_WINDRES
9325 WINDRES="$ac_cv_prog_WINDRES"
9330 # Find a good install program. We prefer a C program (faster),
9331 # so one script is as good as another. But avoid the broken or
9332 # incompatible versions:
9333 # SysV /etc/install, /usr/sbin/install
9334 # SunOS /usr/etc/install
9335 # IRIX /sbin/install
9337 # AmigaOS /C/install, which installs bootblocks on floppy discs
9338 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9339 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9340 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9341 # OS/2's system install, which has a completely different semantic
9342 # ./install, which can be erroneously created by make from ./install.sh.
9343 # Reject install programs that cannot install multiple files.
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
9345 $as_echo_n "checking for a BSD-compatible install... " >&6; }
9346 if test -z "$INSTALL"; then
9347 if ${ac_cv_path_install+:} false; then :
9348 $as_echo_n "(cached) " >&6
9350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9354 test -z "$as_dir" && as_dir=.
9355 # Account for people who put trailing slashes in PATH elements.
9356 case $as_dir/ in #((
9357 ./ | .// | /[cC]/* | \
9358 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9359 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
9362 # OSF1 and SCO ODT 3.0 have their own names for install.
9363 # Don't use installbsd from OSF since it installs stuff as root
9365 for ac_prog in ginstall scoinst install; do
9366 for ac_exec_ext in '' $ac_executable_extensions; do
9367 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9368 if test $ac_prog = install &&
9369 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9370 # AIX install. It has an incompatible calling convention.
9372 elif test $ac_prog = install &&
9373 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9374 # program-specific install script used by HP pwplus--don't use.
9377 rm -rf conftest.one conftest.two conftest.dir
9378 echo one > conftest.one
9379 echo two > conftest.two
9381 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
9382 test -s conftest.one && test -s conftest.two &&
9383 test -s conftest.dir/conftest.one &&
9384 test -s conftest.dir/conftest.two
9386 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9399 rm -rf conftest.one conftest.two conftest.dir
9402 if test "${ac_cv_path_install+set}" = set; then
9403 INSTALL=$ac_cv_path_install
9405 # As a last resort, use the slow shell script. Don't cache a
9406 # value for INSTALL within a source directory, because that will
9407 # break other packages using the cache if that directory is
9408 # removed, or if the value is a relative name.
9409 INSTALL=$ac_install_sh
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
9413 $as_echo "$INSTALL" >&6; }
9415 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9416 # It thinks the first close brace ends the variable substitution.
9417 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9419 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9421 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9423 # When Autoconf chooses install-sh as install program it tries to generate
9424 # a relative path to it in each makefile where it substitutes it. This clashes
9425 # with our Makefile.global concept. This workaround helps.
9427 *install-sh*) install_bin='';;
9428 *) install_bin=$INSTALL;;
9432 if test -z "$TAR"; then
9435 # Extract the first word of "$ac_prog", so it can be a program name with args.
9436 set dummy $ac_prog; ac_word=$2
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9438 $as_echo_n "checking for $ac_word... " >&6; }
9439 if ${ac_cv_path_TAR+:} false; then :
9440 $as_echo_n "(cached) " >&6
9444 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9451 test -z "$as_dir" && as_dir=.
9452 for ac_exec_ext in '' $ac_executable_extensions; do
9453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9454 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9466 if test -n "$TAR"; then
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9468 $as_echo "$TAR" >&6; }
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9471 $as_echo "no" >&6; }
9475 test -n "$TAR" && break
9479 # Report the value of TAR in configure's output in all cases.
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
9481 $as_echo_n "checking for TAR... " >&6; }
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9483 $as_echo "$TAR" >&6; }
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9487 $as_echo_n "checking whether ln -s works... " >&6; }
9489 if test "$LN_S" = "ln -s"; then
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9491 $as_echo "yes" >&6; }
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9494 $as_echo "no, using $LN_S" >&6; }
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
9498 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
9499 if test -z "$MKDIR_P"; then
9500 if ${ac_cv_path_mkdir+:} false; then :
9501 $as_echo_n "(cached) " >&6
9503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9504 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
9507 test -z "$as_dir" && as_dir=.
9508 for ac_prog in mkdir gmkdir; do
9509 for ac_exec_ext in '' $ac_executable_extensions; do
9510 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
9511 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
9512 'mkdir (GNU coreutils) '* | \
9513 'mkdir (coreutils) '* | \
9514 'mkdir (fileutils) '4.1*)
9515 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
9525 test -d ./--version && rmdir ./--version
9526 if test "${ac_cv_path_mkdir+set}" = set; then
9527 MKDIR_P="$ac_cv_path_mkdir -p"
9529 # As a last resort, use the slow shell script. Don't cache a
9530 # value for MKDIR_P within a source directory, because that will
9531 # break other packages using the cache if that directory is
9532 # removed, or if the value is a relative name.
9533 MKDIR_P="$ac_install_sh -d"
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
9537 $as_echo "$MKDIR_P" >&6; }
9539 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
9540 # a relative path to it in each makefile where it substitutes it. This clashes
9541 # with our Makefile.global concept. This workaround helps.
9543 *install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
9546 if test -z "$BISON"; then
9547 for ac_prog in bison
9549 # Extract the first word of "$ac_prog", so it can be a program name with args.
9550 set dummy $ac_prog; ac_word=$2
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9552 $as_echo_n "checking for $ac_word... " >&6; }
9553 if ${ac_cv_path_BISON+:} false; then :
9554 $as_echo_n "(cached) " >&6
9558 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
9561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9565 test -z "$as_dir" && as_dir=.
9566 for ac_exec_ext in '' $ac_executable_extensions; do
9567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9568 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
9569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9579 BISON=$ac_cv_path_BISON
9580 if test -n "$BISON"; then
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
9582 $as_echo "$BISON" >&6; }
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9585 $as_echo "no" >&6; }
9589 test -n "$BISON" && break
9593 # Report the value of BISON in configure's output in all cases.
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BISON" >&5
9595 $as_echo_n "checking for BISON... " >&6; }
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
9597 $as_echo "$BISON" >&6; }
9601 if test "$BISON"; then
9602 pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: using $pgac_bison_version" >&5
9604 $as_echo "$as_me: using $pgac_bison_version" >&6;}
9605 if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9608 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
9609 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
9610 $as_echo "$as_me: WARNING:
9611 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
9612 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
9615 # Bison >=3.0 issues warnings about %name-prefix="base_yy", instead
9616 # of the now preferred %name-prefix "base_yy", but the latter
9617 # doesn't work with Bison 2.3 or less. So for now we silence the
9618 # deprecation warnings.
9619 if echo "$pgac_bison_version" | $AWK '{ if ($4 >= 3) exit 0; else exit 1;}'
9621 BISONFLAGS="$BISONFLAGS -Wno-deprecated"
9625 if test -z "$BISON"; then
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9627 *** Without Bison you will not be able to build PostgreSQL from Git nor
9628 *** change any of the parser definition files. You can obtain Bison from
9629 *** a GNU mirror site. (If you are using the official distribution of
9630 *** PostgreSQL then you do not need to worry about this, because the Bison
9631 *** output is pre-generated.)" >&5
9632 $as_echo "$as_me: WARNING:
9633 *** Without Bison you will not be able to build PostgreSQL from Git nor
9634 *** change any of the parser definition files. You can obtain Bison from
9635 *** a GNU mirror site. (If you are using the official distribution of
9636 *** PostgreSQL then you do not need to worry about this, because the Bison
9637 *** output is pre-generated.)" >&2;}
9639 # We don't need AC_SUBST(BISON) because PGAC_PATH_PROGS did it
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex" >&5
9643 $as_echo_n "checking for flex... " >&6; }
9644 if ${pgac_cv_path_flex+:} false; then :
9645 $as_echo_n "(cached) " >&6
9647 # Let the user override the test
9648 if test -n "$FLEX"; then
9649 pgac_cv_path_flex=$FLEX
9653 for pgac_dir in $PATH; do
9655 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
9658 for pgac_prog in flex lex; do
9659 pgac_candidate="$pgac_dir/$pgac_prog"
9660 if test -f "$pgac_candidate" \
9661 && $pgac_candidate --version </dev/null >/dev/null 2>&1
9663 echo '%%' > conftest.l
9664 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
9665 pgac_flex_version=`$pgac_candidate --version 2>/dev/null`
9666 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;}'
9668 pgac_cv_path_flex=$pgac_candidate
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9672 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
9673 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
9674 $as_echo "$as_me: WARNING:
9675 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
9676 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
9682 rm -f conftest.l lex.yy.c
9683 : ${pgac_cv_path_flex=no}
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_path_flex" >&5
9688 $as_echo "$pgac_cv_path_flex" >&6; }
9689 if test x"$pgac_cv_path_flex" = x"no"; then
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9691 *** Without Flex you will not be able to build PostgreSQL from Git nor
9692 *** change any of the scanner definition files. You can obtain Flex from
9693 *** a GNU mirror site. (If you are using the official distribution of
9694 *** PostgreSQL then you do not need to worry about this because the Flex
9695 *** output is pre-generated.)" >&5
9696 $as_echo "$as_me: WARNING:
9697 *** Without Flex you will not be able to build PostgreSQL from Git nor
9698 *** change any of the scanner definition files. You can obtain Flex from
9699 *** a GNU mirror site. (If you are using the official distribution of
9700 *** PostgreSQL then you do not need to worry about this because the Flex
9701 *** output is pre-generated.)" >&2;}
9705 FLEX=$pgac_cv_path_flex
9706 pgac_flex_version=`$FLEX --version 2>/dev/null`
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: using $pgac_flex_version" >&5
9708 $as_echo "$as_me: using $pgac_flex_version" >&6;}
9715 if test -z "$PERL"; then
9718 # Extract the first word of "$ac_prog", so it can be a program name with args.
9719 set dummy $ac_prog; ac_word=$2
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9721 $as_echo_n "checking for $ac_word... " >&6; }
9722 if ${ac_cv_path_PERL+:} false; then :
9723 $as_echo_n "(cached) " >&6
9727 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9734 test -z "$as_dir" && as_dir=.
9735 for ac_exec_ext in '' $ac_executable_extensions; do
9736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9737 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
9738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9748 PERL=$ac_cv_path_PERL
9749 if test -n "$PERL"; then
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
9751 $as_echo "$PERL" >&6; }
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9754 $as_echo "no" >&6; }
9758 test -n "$PERL" && break
9762 # Report the value of PERL in configure's output in all cases.
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PERL" >&5
9764 $as_echo_n "checking for PERL... " >&6; }
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
9766 $as_echo "$PERL" >&6; }
9770 if test "$PERL"; then
9771 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'`
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: using perl $pgac_perl_version" >&5
9773 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
9774 if echo "$pgac_perl_version" | sed 's/[.a-z_]/ /g' | \
9775 $AWK '{ if ($1 == 5 && $2 >= 8) exit 1; else exit 0;}'
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9778 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
9779 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&5
9780 $as_echo "$as_me: WARNING:
9781 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
9782 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&2;}
9787 if test -z "$PERL"; then
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9789 *** Without Perl you will not be able to build PostgreSQL from Git.
9790 *** You can obtain Perl from any CPAN mirror site.
9791 *** (If you are using the official distribution of PostgreSQL then you do not
9792 *** need to worry about this, because the Perl output is pre-generated.)" >&5
9793 $as_echo "$as_me: WARNING:
9794 *** Without Perl you will not be able to build PostgreSQL from Git.
9795 *** You can obtain Perl from any CPAN mirror site.
9796 *** (If you are using the official distribution of PostgreSQL then you do not
9797 *** need to worry about this, because the Perl output is pre-generated.)" >&2;}
9800 if test "$with_perl" = yes; then
9801 if test -z "$PERL"; then
9802 as_fn_error $? "Perl not found" "$LINENO" 5
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl archlibexp" >&5
9806 $as_echo_n "checking for Perl archlibexp... " >&6; }
9807 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
9808 test "$PORTNAME" = "win32" && perl_archlibexp=`echo $perl_archlibexp | sed 's,\\\\,/,g'`
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_archlibexp" >&5
9810 $as_echo "$perl_archlibexp" >&6; }
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl privlibexp" >&5
9812 $as_echo_n "checking for Perl privlibexp... " >&6; }
9813 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
9814 test "$PORTNAME" = "win32" && perl_privlibexp=`echo $perl_privlibexp | sed 's,\\\\,/,g'`
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_privlibexp" >&5
9816 $as_echo "$perl_privlibexp" >&6; }
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl useshrplib" >&5
9818 $as_echo_n "checking for Perl useshrplib... " >&6; }
9819 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
9820 test "$PORTNAME" = "win32" && perl_useshrplib=`echo $perl_useshrplib | sed 's,\\\\,/,g'`
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_useshrplib" >&5
9822 $as_echo "$perl_useshrplib" >&6; }
9823 if test "$perl_useshrplib" != yes && test "$perl_useshrplib" != true; then
9824 as_fn_error $? "cannot build PL/Perl because libperl is not a shared library
9825 You might have to rebuild your Perl installation. Refer to the
9826 documentation for details. Use --without-perl to disable building
9827 PL/Perl." "$LINENO" 5
9829 # On most platforms, archlibexp is also where the Perl include files live ...
9830 perl_includespec="-I$perl_archlibexp/CORE"
9831 # ... but on newer macOS versions, we must use -iwithsysroot to look
9833 if test \! -f "$perl_archlibexp/CORE/perl.h" ; then
9834 if test -f "$PG_SYSROOT$perl_archlibexp/CORE/perl.h" ; then
9835 perl_includespec="-iwithsysroot $perl_archlibexp/CORE"
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS recommended by Perl" >&5
9840 $as_echo_n "checking for CFLAGS recommended by Perl... " >&6; }
9841 perl_ccflags=`$PERL -MConfig -e 'print $Config{ccflags}'`
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_ccflags" >&5
9843 $as_echo "$perl_ccflags" >&6; }
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS to compile embedded Perl" >&5
9845 $as_echo_n "checking for CFLAGS to compile embedded Perl... " >&6; }
9846 perl_embed_ccflags=`$PERL -MConfig -e 'foreach $f (split(" ",$Config{ccflags})) {print $f, " " if ($f =~ /^-D[^_]/ || $f =~ /^-D_USE_32BIT_TIME_T/)}'`
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_embed_ccflags" >&5
9848 $as_echo "$perl_embed_ccflags" >&6; }
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flags to link embedded Perl" >&5
9852 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
9853 if test "$PORTNAME" = "win32" ; then
9854 perl_lib=`basename $perl_archlibexp/CORE/perl[5-9]*.lib .lib`
9855 if test -e "$perl_archlibexp/CORE/$perl_lib.lib"; then
9856 perl_embed_ldflags="-L$perl_archlibexp/CORE -l$perl_lib"
9858 perl_lib=`basename $perl_archlibexp/CORE/libperl[5-9]*.a .a | sed 's/^lib//'`
9859 if test -e "$perl_archlibexp/CORE/lib$perl_lib.a"; then
9860 perl_embed_ldflags="-L$perl_archlibexp/CORE -l$perl_lib"
9864 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
9865 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
9866 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
9868 if test -z "$perl_embed_ldflags" ; then
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9870 $as_echo "no" >&6; }
9871 as_fn_error $? "could not determine flags for linking embedded Perl.
9872 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
9873 installed." "$LINENO" 5
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_embed_ldflags" >&5
9876 $as_echo "$perl_embed_ldflags" >&6; }
9881 if test "$with_python" = yes; then
9882 if test -z "$PYTHON"; then
9883 for ac_prog in python
9885 # Extract the first word of "$ac_prog", so it can be a program name with args.
9886 set dummy $ac_prog; ac_word=$2
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9888 $as_echo_n "checking for $ac_word... " >&6; }
9889 if ${ac_cv_path_PYTHON+:} false; then :
9890 $as_echo_n "(cached) " >&6
9894 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
9897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9901 test -z "$as_dir" && as_dir=.
9902 for ac_exec_ext in '' $ac_executable_extensions; do
9903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9904 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
9905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9915 PYTHON=$ac_cv_path_PYTHON
9916 if test -n "$PYTHON"; then
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
9918 $as_echo "$PYTHON" >&6; }
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9921 $as_echo "no" >&6; }
9925 test -n "$PYTHON" && break
9929 # Report the value of PYTHON in configure's output in all cases.
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYTHON" >&5
9931 $as_echo_n "checking for PYTHON... " >&6; }
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
9933 $as_echo "$PYTHON" >&6; }
9936 if test x"$PYTHON" = x""; then
9937 as_fn_error $? "Python not found" "$LINENO" 5
9941 python_fullversion=`${PYTHON} -c "import sys; print(sys.version)" | sed q`
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: using python $python_fullversion" >&5
9943 $as_echo "$as_me: using python $python_fullversion" >&6;}
9944 # python_fullversion is typically n.n.n plus some trailing junk
9945 python_majorversion=`echo "$python_fullversion" | sed 's/^\([0-9]*\).*/\1/'`
9946 python_minorversion=`echo "$python_fullversion" | sed 's/^[0-9]*\.\([0-9]*\).*/\1/'`
9947 python_version=`echo "$python_fullversion" | sed 's/^\([0-9]*\.[0-9]*\).*/\1/'`
9948 # Reject unsupported Python versions as soon as practical.
9949 if test "$python_majorversion" -lt 3 -a "$python_minorversion" -lt 4; then
9950 as_fn_error $? "Python version $python_version is too old (version 2.4 or later is required)" "$LINENO" 5
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python distutils module" >&5
9954 $as_echo_n "checking for Python distutils module... " >&6; }
9955 if "${PYTHON}" -c 'import distutils' 2>&5
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9958 $as_echo "yes" >&6; }
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9961 $as_echo "no" >&6; }
9962 as_fn_error $? "distutils module not found" "$LINENO" 5
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python configuration directory" >&5
9966 $as_echo_n "checking Python configuration directory... " >&6; }
9967 python_configdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBPL'))))"`
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_configdir" >&5
9969 $as_echo "$python_configdir" >&6; }
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python include directories" >&5
9972 $as_echo_n "checking Python include directories... " >&6; }
9973 python_includespec=`${PYTHON} -c "
9974 import distutils.sysconfig
9975 a = '-I' + distutils.sysconfig.get_python_inc(False)
9976 b = '-I' + distutils.sysconfig.get_python_inc(True)
9980 print(a + ' ' + b)"`
9981 if test "$PORTNAME" = win32 ; then
9982 python_includespec=`echo $python_includespec | sed 's,[\],/,g'`
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_includespec" >&5
9985 $as_echo "$python_includespec" >&6; }
9989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link an embedded Python application" >&5
9990 $as_echo_n "checking how to link an embedded Python application... " >&6; }
9992 python_libdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
9993 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
9995 # If LDLIBRARY exists and has a shlib extension, use it verbatim.
9996 ldlibrary=`echo "${python_ldlibrary}" | sed -e 's/\.so$//' -e 's/\.dll$//' -e 's/\.dylib$//' -e 's/\.sl$//'`
9997 if test -e "${python_libdir}/${python_ldlibrary}" -a x"${python_ldlibrary}" != x"${ldlibrary}"
9999 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
10002 # Otherwise, guess the base name of the shlib.
10003 # LDVERSION was added in Python 3.2, before that use VERSION,
10004 # or failing that, $python_version from _PGAC_CHECK_PYTHON_DIRS.
10005 python_ldversion=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDVERSION'))))"`
10006 if test x"${python_ldversion}" != x""; then
10007 ldlibrary="python${python_ldversion}"
10009 python_version_var=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('VERSION'))))"`
10010 if test x"${python_version_var}" != x""; then
10011 ldlibrary="python${python_version_var}"
10013 ldlibrary="python${python_version}"
10016 # Search for a likely-looking file.
10018 for d in "${python_libdir}" "${python_configdir}" /usr/lib64 /usr/lib
10020 # We don't know the platform DLSUFFIX here, so check 'em all.
10021 for e in .so .dll .dylib .sl; do
10022 if test -e "$d/lib${ldlibrary}$e"; then
10029 # Some platforms (OpenBSD) require us to accept a bare versioned shlib
10030 # (".so.n.n") as well. However, check this only after failing to find
10031 # ".so" anywhere, because yet other platforms (Debian) put the .so
10032 # symlink in a different directory from the underlying versioned shlib.
10033 if test "$found_shlib" != 1; then
10034 for d in "${python_libdir}" "${python_configdir}" /usr/lib64 /usr/lib
10036 for f in "$d/lib${ldlibrary}.so."* ; do
10037 if test -e "$f"; then
10045 # As usual, Windows has its own ideas. Possible default library
10046 # locations include c:/Windows/System32 and (for Cygwin) /usr/bin,
10047 # and the "lib" prefix might not be there.
10048 if test "$found_shlib" != 1 -a \( "$PORTNAME" = win32 -o "$PORTNAME" = cygwin \); then
10049 for d in "${python_libdir}" "${python_configdir}" c:/Windows/System32 /usr/bin
10051 for f in "$d/lib${ldlibrary}.dll" "$d/${ldlibrary}.dll" ; do
10052 if test -e "$f"; then
10061 if test "$found_shlib" != 1; then
10062 as_fn_error $? "could not find shared library for Python
10063 You might have to rebuild your Python installation. Refer to the
10064 documentation for details. Use --without-python to disable building
10065 PL/Python." "$LINENO" 5
10067 python_libspec="-L${python_libdir} -l${ldlibrary}"
10069 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_libspec} ${python_additional_libs}" >&5
10072 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
10078 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
10079 if test -z "$ZIC"; then
10082 # Extract the first word of "$ac_prog", so it can be a program name with args.
10083 set dummy $ac_prog; ac_word=$2
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10085 $as_echo_n "checking for $ac_word... " >&6; }
10086 if ${ac_cv_path_ZIC+:} false; then :
10087 $as_echo_n "(cached) " >&6
10091 ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
10094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10095 for as_dir in $PATH
10098 test -z "$as_dir" && as_dir=.
10099 for ac_exec_ext in '' $ac_executable_extensions; do
10100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10101 ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
10102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10112 ZIC=$ac_cv_path_ZIC
10113 if test -n "$ZIC"; then
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIC" >&5
10115 $as_echo "$ZIC" >&6; }
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10118 $as_echo "no" >&6; }
10122 test -n "$ZIC" && break
10126 # Report the value of ZIC in configure's output in all cases.
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIC" >&5
10128 $as_echo_n "checking for ZIC... " >&6; }
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIC" >&5
10130 $as_echo "$ZIC" >&6; }
10133 if test -z "$ZIC"; then
10135 When cross-compiling, either use the option --with-system-tzdata to use
10136 existing time-zone data, or set the environment variable ZIC to a zic
10137 program to use during the build." "$LINENO" 5
10144 # For each platform, we need to know about any special compile and link
10145 # libraries, and whether the normal C function names are thread-safe.
10146 # See the comment at the top of src/port/thread.c for more information.
10147 # WIN32 doesn't need the pthread tests; it always uses threads
10149 # These tests are run before the library-tests, because linking with the
10150 # other libraries can pull in the pthread functions as a side-effect. We
10151 # want to use the -pthread or similar flags directly, and not rely on
10152 # the side-effects of linking with some other library.
10154 # note: We have to use AS_IF here rather than plain if. The AC_CHECK_HEADER
10155 # invocation below is the first one in the script, and autoconf generates
10156 # additional code for that, which must not be inside the if-block. AS_IF
10157 # knows how to do that.
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10159 $as_echo_n "checking for ANSI C header files... " >&6; }
10160 if ${ac_cv_header_stdc+:} false; then :
10161 $as_echo_n "(cached) " >&6
10163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10164 /* end confdefs.h. */
10165 #include <stdlib.h>
10166 #include <stdarg.h>
10167 #include <string.h>
10178 if ac_fn_c_try_compile "$LINENO"; then :
10179 ac_cv_header_stdc=yes
10181 ac_cv_header_stdc=no
10183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10185 if test $ac_cv_header_stdc = yes; then
10186 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10188 /* end confdefs.h. */
10189 #include <string.h>
10192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10193 $EGREP "memchr" >/dev/null 2>&1; then :
10196 ac_cv_header_stdc=no
10202 if test $ac_cv_header_stdc = yes; then
10203 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10205 /* end confdefs.h. */
10206 #include <stdlib.h>
10209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10210 $EGREP "free" >/dev/null 2>&1; then :
10213 ac_cv_header_stdc=no
10219 if test $ac_cv_header_stdc = yes; then
10220 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10221 if test "$cross_compiling" = yes; then :
10224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10225 /* end confdefs.h. */
10227 #include <stdlib.h>
10228 #if ((' ' & 0x0FF) == 0x020)
10229 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10230 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10232 # define ISLOWER(c) \
10233 (('a' <= (c) && (c) <= 'i') \
10234 || ('j' <= (c) && (c) <= 'r') \
10235 || ('s' <= (c) && (c) <= 'z'))
10236 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10239 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10244 for (i = 0; i < 256; i++)
10245 if (XOR (islower (i), ISLOWER (i))
10246 || toupper (i) != TOUPPER (i))
10251 if ac_fn_c_try_run "$LINENO"; then :
10254 ac_cv_header_stdc=no
10256 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10257 conftest.$ac_objext conftest.beam conftest.$ac_ext
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10263 $as_echo "$ac_cv_header_stdc" >&6; }
10264 if test $ac_cv_header_stdc = yes; then
10266 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10270 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10271 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10272 inttypes.h stdint.h unistd.h
10274 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10275 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10277 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10278 cat >>confdefs.h <<_ACEOF
10279 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10287 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then :
10293 ac_cpp='$CPP $CPPFLAGS'
10294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10300 # We used to check for pthread.h first, but this fails if pthread.h
10301 # requires special compiler flags (e.g. on Tru64 or Sequent).
10302 # It gets checked for in the link test anyway.
10304 # First of all, check if the user has set any of the PTHREAD_LIBS,
10305 # etcetera environment variables, and if threads linking works using
10307 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
10308 save_CFLAGS="$CFLAGS"
10309 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10311 LIBS="$PTHREAD_LIBS $LIBS"
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
10313 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
10314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10315 /* end confdefs.h. */
10317 /* Override any GCC internal prototype to avoid an error.
10318 Use char because int might match the return type of a GCC
10319 builtin and then its argument prototype would still apply. */
10323 char pthread_join ();
10327 return pthread_join ();
10332 if ac_fn_c_try_link "$LINENO"; then :
10335 rm -f core conftest.err conftest.$ac_objext \
10336 conftest$ac_exeext conftest.$ac_ext
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10338 $as_echo "$ax_pthread_ok" >&6; }
10339 if test x"$ax_pthread_ok" = xno; then
10344 CFLAGS="$save_CFLAGS"
10347 # We must check for the threads library under a number of different
10348 # names; the ordering is very important because some systems
10349 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
10350 # libraries is broken (non-POSIX).
10352 # Create a list of thread flags to try. Items starting with a "-" are
10353 # C compiler flags, and other items are library names, except for "none"
10354 # which indicates that we try without any flags at all, and "pthread-config"
10355 # which is a program returning the flags for the Pth emulation library.
10357 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mt -mthreads pthread --thread-safe pthread-config"
10359 # The ordering *is* (sometimes) important. Some notes on the
10360 # individual items follow:
10362 # pthreads: AIX (must check this before -lpthread)
10363 # none: in case threads are in libc; should be tried before -Kthread and
10364 # other compiler flags to prevent continual compiler warnings
10365 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
10366 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
10367 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
10368 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
10369 # -pthreads: Solaris/gcc
10370 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
10371 # doesn't hurt to check since this sometimes defines pthreads and
10372 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
10373 # is present but should not be used directly)
10374 # -mthreads: Mingw32/gcc, Lynx/gcc
10375 # pthread: Linux, etcetera
10376 # --thread-safe: KAI C++
10377 # pthread-config: use pthread-config program (for GNU Pth library)
10383 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
10384 # multi-threading and also sets -lpthread."
10386 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
10391 # IBM z/OS requires a feature-test macro to be defined in order to
10392 # enable POSIX threads at all, so give the user a hint if this is
10393 # not set. (We don't define these ourselves, as they can affect
10394 # other portions of the system API in unpredictable ways.)
10396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10397 /* end confdefs.h. */
10399 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
10400 AX_PTHREAD_ZOS_MISSING
10404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10405 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
10407 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
10415 # Newer versions of Solaris require the "-mt -lpthread" pair, and we
10416 # check that first. On some older versions, libc contains stubbed
10417 # (non-functional) versions of the pthreads routines, so link-based
10418 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
10419 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
10420 # a function called by this macro, so we could check for that, but
10421 # who knows whether they'll stub that too in a future libc.) So
10422 # we'll look for -pthreads and -lpthread shortly thereafter.
10424 ax_pthread_flags="-mt,pthread -pthreads -pthread pthread $ax_pthread_flags"
10428 # Older versions of Clang only give a warning instead of an error for an
10429 # unrecognized option, unless we specify -Werror. (We throw in some extra
10430 # Clang warning flags for good measure.)
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs certain flags to reject unknown flags" >&5
10433 $as_echo_n "checking if compiler needs certain flags to reject unknown flags... " >&6; }
10434 if ${ax_cv_PTHREAD_REJECT_UNKNOWN+:} false; then :
10435 $as_echo_n "(cached) " >&6
10437 ax_cv_PTHREAD_REJECT_UNKNOWN=unknown
10438 save_CFLAGS="$CFLAGS"
10439 ax_pthread_extra_flags="-Wunknown-warning-option -Wunused-command-line-argument"
10440 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wfoobaz -foobaz"
10441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10442 /* end confdefs.h. */
10452 if ac_fn_c_try_compile "$LINENO"; then :
10453 ax_cv_PTHREAD_REJECT_UNKNOWN="-Werror $ax_pthread_extra_flags"
10455 ax_cv_PTHREAD_REJECT_UNKNOWN=no
10457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10458 CFLAGS="$save_CFLAGS"
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_REJECT_UNKNOWN" >&5
10462 $as_echo "$ax_cv_PTHREAD_REJECT_UNKNOWN" >&6; }
10463 ax_pthread_extra_flags=
10464 if test "x$ax_cv_PTHREAD_REJECT_UNKNOWN" != "xno"; then :
10465 ax_pthread_extra_flags="$ax_cv_PTHREAD_REJECT_UNKNOWN"
10468 if test x"$ax_pthread_ok" = xno; then
10469 for flag in $ax_pthread_flags; do
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
10474 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
10479 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
10480 PTHREAD_CFLAGS="-mt"
10481 PTHREAD_LIBS="-lpthread"
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
10486 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
10487 PTHREAD_CFLAGS="$flag"
10491 # Extract the first word of "pthread-config", so it can be a program name with args.
10492 set dummy pthread-config; ac_word=$2
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10494 $as_echo_n "checking for $ac_word... " >&6; }
10495 if ${ac_cv_prog_ax_pthread_config+:} false; then :
10496 $as_echo_n "(cached) " >&6
10498 if test -n "$ax_pthread_config"; then
10499 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
10501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10502 for as_dir in $PATH
10505 test -z "$as_dir" && as_dir=.
10506 for ac_exec_ext in '' $ac_executable_extensions; do
10507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10508 ac_cv_prog_ax_pthread_config="yes"
10509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10516 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
10519 ax_pthread_config=$ac_cv_prog_ax_pthread_config
10520 if test -n "$ax_pthread_config"; then
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
10522 $as_echo "$ax_pthread_config" >&6; }
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10525 $as_echo "no" >&6; }
10529 if test x"$ax_pthread_config" = xno; then continue; fi
10530 PTHREAD_CFLAGS="`pthread-config --cflags`"
10531 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
10536 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
10537 PTHREAD_LIBS="-l$flag"
10542 save_CFLAGS="$CFLAGS"
10543 LIBS="$PTHREAD_LIBS $LIBS"
10544 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
10546 # Check for various functions. We must include pthread.h,
10547 # since some functions may be macros. (On the Sequent, we
10548 # need a special flag -Kthread to make this header compile.)
10549 # We check for pthread_join because it is in -lpthread on IRIX
10550 # while pthread_create is in libc. We check for pthread_attr_init
10551 # due to DEC craziness with -lpthreads. We check for
10552 # pthread_cleanup_push because it is one of the few pthread
10553 # functions on Solaris that doesn't have a non-functional libc stub.
10554 # We try pthread_create on general principles.
10555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10556 /* end confdefs.h. */
10557 #include <pthread.h>
10558 static void routine(void *a) { a = 0; }
10559 static void *start_routine(void *a) { return a; }
10563 pthread_t th; pthread_attr_t attr;
10564 pthread_create(&th, 0, start_routine, 0);
10565 pthread_join(th, 0);
10566 pthread_attr_init(&attr);
10567 pthread_cleanup_push(routine, 0);
10568 pthread_cleanup_pop(0) /* ; */
10573 if ac_fn_c_try_link "$LINENO"; then :
10576 rm -f core conftest.err conftest.$ac_objext \
10577 conftest$ac_exeext conftest.$ac_ext
10580 CFLAGS="$save_CFLAGS"
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10583 $as_echo "$ax_pthread_ok" >&6; }
10584 if test "x$ax_pthread_ok" = xyes; then
10593 # Various other checks:
10594 if test "x$ax_pthread_ok" = xyes; then
10596 LIBS="$PTHREAD_LIBS $LIBS"
10597 save_CFLAGS="$CFLAGS"
10598 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10600 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
10602 $as_echo_n "checking for joinable pthread attribute... " >&6; }
10603 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
10604 $as_echo_n "(cached) " >&6
10606 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
10607 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
10608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10609 /* end confdefs.h. */
10610 #include <pthread.h>
10614 int attr = $attr; return attr /* ; */
10619 if ac_fn_c_try_link "$LINENO"; then :
10620 ax_cv_PTHREAD_JOINABLE_ATTR=$attr; break
10622 rm -f core conftest.err conftest.$ac_objext \
10623 conftest$ac_exeext conftest.$ac_ext
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
10628 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
10629 if test "$ax_cv_PTHREAD_JOINABLE_ATTR" != unknown && \
10630 test "$ax_cv_PTHREAD_JOINABLE_ATTR" != PTHREAD_CREATE_JOINABLE; then :
10632 cat >>confdefs.h <<_ACEOF
10633 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
10639 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
10640 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
10641 $as_echo_n "(cached) " >&6
10643 ax_cv_PTHREAD_SPECIAL_FLAGS=no
10644 ax_pthread_special_flags_added=no
10645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10646 /* end confdefs.h. */
10648 # if !defined(_REENTRANT) && !defined(_THREAD_SAFE)
10649 AX_PTHREAD_NEED_SPECIAL_FLAG
10653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10654 $EGREP "AX_PTHREAD_NEED_SPECIAL_FLAG" >/dev/null 2>&1; then :
10657 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_THREAD_SAFE"
10659 darwin* | hpux* | osf* | solaris*)
10660 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_REENTRANT"
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
10670 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
10671 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
10672 test "x$ax_pthread_special_flags_added" != "xyes"; then :
10673 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
10674 ax_pthread_special_flags_added=yes
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
10678 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
10679 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
10680 $as_echo_n "(cached) " >&6
10682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10683 /* end confdefs.h. */
10684 #include <pthread.h>
10688 int i = PTHREAD_PRIO_INHERIT;
10693 if ac_fn_c_try_link "$LINENO"; then :
10694 ax_cv_PTHREAD_PRIO_INHERIT=yes
10696 ax_cv_PTHREAD_PRIO_INHERIT=no
10698 rm -f core conftest.err conftest.$ac_objext \
10699 conftest$ac_exeext conftest.$ac_ext
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
10703 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
10704 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
10706 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
10711 CFLAGS="$save_CFLAGS"
10713 # More AIX lossage: compile with *_r variant
10714 if test "x$GCC" != xyes; then
10718 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
10719 #handle absolute path differently from PATH based program lookup
10722 if as_fn_executable_p ${CC}_r; then :
10723 PTHREAD_CC="${CC}_r"
10726 for ac_prog in ${CC}_r
10728 # Extract the first word of "$ac_prog", so it can be a program name with args.
10729 set dummy $ac_prog; ac_word=$2
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10731 $as_echo_n "checking for $ac_word... " >&6; }
10732 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
10733 $as_echo_n "(cached) " >&6
10735 if test -n "$PTHREAD_CC"; then
10736 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
10738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10739 for as_dir in $PATH
10742 test -z "$as_dir" && as_dir=.
10743 for ac_exec_ext in '' $ac_executable_extensions; do
10744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10745 ac_cv_prog_PTHREAD_CC="$ac_prog"
10746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10755 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
10756 if test -n "$PTHREAD_CC"; then
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
10758 $as_echo "$PTHREAD_CC" >&6; }
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10761 $as_echo "no" >&6; }
10765 test -n "$PTHREAD_CC" && break
10767 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10778 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10784 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10785 if test x"$ax_pthread_ok" = xyes; then
10787 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10795 ac_cpp='$CPP $CPPFLAGS'
10796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10802 # Some platforms use these, so just define them. They can't hurt if they
10803 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
10804 # enables 5-arg getpwuid_r, among other things.
10805 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
10807 # Check for *_r functions
10810 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10811 LIBS="$LIBS $PTHREAD_LIBS"
10813 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10814 if test "x$ac_cv_header_pthread_h" = xyes; then :
10818 pthread.h not found; use --disable-thread-safety to disable thread safety" "$LINENO" 5
10823 for ac_func in strerror_r getpwuid_r gethostbyname_r
10825 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10826 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10827 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10828 cat >>confdefs.h <<_ACEOF
10829 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10836 # Do test here with the proper thread flags
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns int" >&5
10838 $as_echo_n "checking whether strerror_r returns int... " >&6; }
10839 if ${pgac_cv_func_strerror_r_int+:} false; then :
10840 $as_echo_n "(cached) " >&6
10842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10843 /* end confdefs.h. */
10844 #include <string.h>
10849 switch (strerror_r(1, buf, sizeof(buf)))
10850 { case 0: break; default: break; }
10856 if ac_fn_c_try_compile "$LINENO"; then :
10857 pgac_cv_func_strerror_r_int=yes
10859 pgac_cv_func_strerror_r_int=no
10861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_strerror_r_int" >&5
10864 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
10865 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
10867 $as_echo "#define STRERROR_R_INT 1" >>confdefs.h
10878 # do not use values from template file
10891 ## Most libraries are included only if they demonstrably provide a function
10892 ## we need, but libm is an exception: always include it, because there are
10893 ## too many compilers that play cute optimization games that will break
10894 ## probes for standard functions such as pow().
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
10898 $as_echo_n "checking for main in -lm... " >&6; }
10899 if ${ac_cv_lib_m_main+:} false; then :
10900 $as_echo_n "(cached) " >&6
10902 ac_check_lib_save_LIBS=$LIBS
10904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10905 /* end confdefs.h. */
10916 if ac_fn_c_try_link "$LINENO"; then :
10917 ac_cv_lib_m_main=yes
10919 ac_cv_lib_m_main=no
10921 rm -f core conftest.err conftest.$ac_objext \
10922 conftest$ac_exeext conftest.$ac_ext
10923 LIBS=$ac_check_lib_save_LIBS
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
10926 $as_echo "$ac_cv_lib_m_main" >&6; }
10927 if test "x$ac_cv_lib_m_main" = xyes; then :
10928 cat >>confdefs.h <<_ACEOF
10929 #define HAVE_LIBM 1
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setproctitle" >&5
10937 $as_echo_n "checking for library containing setproctitle... " >&6; }
10938 if ${ac_cv_search_setproctitle+:} false; then :
10939 $as_echo_n "(cached) " >&6
10941 ac_func_search_save_LIBS=$LIBS
10942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10943 /* end confdefs.h. */
10945 /* Override any GCC internal prototype to avoid an error.
10946 Use char because int might match the return type of a GCC
10947 builtin and then its argument prototype would still apply. */
10951 char setproctitle ();
10955 return setproctitle ();
10960 for ac_lib in '' util; do
10961 if test -z "$ac_lib"; then
10962 ac_res="none required"
10965 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10967 if ac_fn_c_try_link "$LINENO"; then :
10968 ac_cv_search_setproctitle=$ac_res
10970 rm -f core conftest.err conftest.$ac_objext \
10972 if ${ac_cv_search_setproctitle+:} false; then :
10976 if ${ac_cv_search_setproctitle+:} false; then :
10979 ac_cv_search_setproctitle=no
10981 rm conftest.$ac_ext
10982 LIBS=$ac_func_search_save_LIBS
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setproctitle" >&5
10985 $as_echo "$ac_cv_search_setproctitle" >&6; }
10986 ac_res=$ac_cv_search_setproctitle
10987 if test "$ac_res" != no; then :
10988 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10993 $as_echo_n "checking for library containing dlopen... " >&6; }
10994 if ${ac_cv_search_dlopen+:} false; then :
10995 $as_echo_n "(cached) " >&6
10997 ac_func_search_save_LIBS=$LIBS
10998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10999 /* end confdefs.h. */
11001 /* Override any GCC internal prototype to avoid an error.
11002 Use char because int might match the return type of a GCC
11003 builtin and then its argument prototype would still apply. */
11016 for ac_lib in '' dl; do
11017 if test -z "$ac_lib"; then
11018 ac_res="none required"
11021 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11023 if ac_fn_c_try_link "$LINENO"; then :
11024 ac_cv_search_dlopen=$ac_res
11026 rm -f core conftest.err conftest.$ac_objext \
11028 if ${ac_cv_search_dlopen+:} false; then :
11032 if ${ac_cv_search_dlopen+:} false; then :
11035 ac_cv_search_dlopen=no
11037 rm conftest.$ac_ext
11038 LIBS=$ac_func_search_save_LIBS
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11041 $as_echo "$ac_cv_search_dlopen" >&6; }
11042 ac_res=$ac_cv_search_dlopen
11043 if test "$ac_res" != no; then :
11044 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
11049 $as_echo_n "checking for library containing socket... " >&6; }
11050 if ${ac_cv_search_socket+:} false; then :
11051 $as_echo_n "(cached) " >&6
11053 ac_func_search_save_LIBS=$LIBS
11054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11055 /* end confdefs.h. */
11057 /* Override any GCC internal prototype to avoid an error.
11058 Use char because int might match the return type of a GCC
11059 builtin and then its argument prototype would still apply. */
11072 for ac_lib in '' socket ws2_32; do
11073 if test -z "$ac_lib"; then
11074 ac_res="none required"
11077 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11079 if ac_fn_c_try_link "$LINENO"; then :
11080 ac_cv_search_socket=$ac_res
11082 rm -f core conftest.err conftest.$ac_objext \
11084 if ${ac_cv_search_socket+:} false; then :
11088 if ${ac_cv_search_socket+:} false; then :
11091 ac_cv_search_socket=no
11093 rm conftest.$ac_ext
11094 LIBS=$ac_func_search_save_LIBS
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
11097 $as_echo "$ac_cv_search_socket" >&6; }
11098 ac_res=$ac_cv_search_socket
11099 if test "$ac_res" != no; then :
11100 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
11105 $as_echo_n "checking for library containing shl_load... " >&6; }
11106 if ${ac_cv_search_shl_load+:} false; then :
11107 $as_echo_n "(cached) " >&6
11109 ac_func_search_save_LIBS=$LIBS
11110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11111 /* end confdefs.h. */
11113 /* Override any GCC internal prototype to avoid an error.
11114 Use char because int might match the return type of a GCC
11115 builtin and then its argument prototype would still apply. */
11123 return shl_load ();
11128 for ac_lib in '' dld; do
11129 if test -z "$ac_lib"; then
11130 ac_res="none required"
11133 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11135 if ac_fn_c_try_link "$LINENO"; then :
11136 ac_cv_search_shl_load=$ac_res
11138 rm -f core conftest.err conftest.$ac_objext \
11140 if ${ac_cv_search_shl_load+:} false; then :
11144 if ${ac_cv_search_shl_load+:} false; then :
11147 ac_cv_search_shl_load=no
11149 rm conftest.$ac_ext
11150 LIBS=$ac_func_search_save_LIBS
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
11153 $as_echo "$ac_cv_search_shl_load" >&6; }
11154 ac_res=$ac_cv_search_shl_load
11155 if test "$ac_res" != no; then :
11156 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getopt_long" >&5
11161 $as_echo_n "checking for library containing getopt_long... " >&6; }
11162 if ${ac_cv_search_getopt_long+:} false; then :
11163 $as_echo_n "(cached) " >&6
11165 ac_func_search_save_LIBS=$LIBS
11166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11167 /* end confdefs.h. */
11169 /* Override any GCC internal prototype to avoid an error.
11170 Use char because int might match the return type of a GCC
11171 builtin and then its argument prototype would still apply. */
11175 char getopt_long ();
11179 return getopt_long ();
11184 for ac_lib in '' getopt gnugetopt; do
11185 if test -z "$ac_lib"; then
11186 ac_res="none required"
11189 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11191 if ac_fn_c_try_link "$LINENO"; then :
11192 ac_cv_search_getopt_long=$ac_res
11194 rm -f core conftest.err conftest.$ac_objext \
11196 if ${ac_cv_search_getopt_long+:} false; then :
11200 if ${ac_cv_search_getopt_long+:} false; then :
11203 ac_cv_search_getopt_long=no
11205 rm conftest.$ac_ext
11206 LIBS=$ac_func_search_save_LIBS
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getopt_long" >&5
11209 $as_echo "$ac_cv_search_getopt_long" >&6; }
11210 ac_res=$ac_cv_search_getopt_long
11211 if test "$ac_res" != no; then :
11212 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
11217 $as_echo_n "checking for library containing crypt... " >&6; }
11218 if ${ac_cv_search_crypt+:} false; then :
11219 $as_echo_n "(cached) " >&6
11221 ac_func_search_save_LIBS=$LIBS
11222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11223 /* end confdefs.h. */
11225 /* Override any GCC internal prototype to avoid an error.
11226 Use char because int might match the return type of a GCC
11227 builtin and then its argument prototype would still apply. */
11240 for ac_lib in '' crypt; do
11241 if test -z "$ac_lib"; then
11242 ac_res="none required"
11245 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11247 if ac_fn_c_try_link "$LINENO"; then :
11248 ac_cv_search_crypt=$ac_res
11250 rm -f core conftest.err conftest.$ac_objext \
11252 if ${ac_cv_search_crypt+:} false; then :
11256 if ${ac_cv_search_crypt+:} false; then :
11259 ac_cv_search_crypt=no
11261 rm conftest.$ac_ext
11262 LIBS=$ac_func_search_save_LIBS
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
11265 $as_echo "$ac_cv_search_crypt" >&6; }
11266 ac_res=$ac_cv_search_crypt
11267 if test "$ac_res" != no; then :
11268 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
11273 $as_echo_n "checking for library containing shm_open... " >&6; }
11274 if ${ac_cv_search_shm_open+:} false; then :
11275 $as_echo_n "(cached) " >&6
11277 ac_func_search_save_LIBS=$LIBS
11278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11279 /* end confdefs.h. */
11281 /* Override any GCC internal prototype to avoid an error.
11282 Use char because int might match the return type of a GCC
11283 builtin and then its argument prototype would still apply. */
11291 return shm_open ();
11296 for ac_lib in '' rt; do
11297 if test -z "$ac_lib"; then
11298 ac_res="none required"
11301 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11303 if ac_fn_c_try_link "$LINENO"; then :
11304 ac_cv_search_shm_open=$ac_res
11306 rm -f core conftest.err conftest.$ac_objext \
11308 if ${ac_cv_search_shm_open+:} false; then :
11312 if ${ac_cv_search_shm_open+:} false; then :
11315 ac_cv_search_shm_open=no
11317 rm conftest.$ac_ext
11318 LIBS=$ac_func_search_save_LIBS
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
11321 $as_echo "$ac_cv_search_shm_open" >&6; }
11322 ac_res=$ac_cv_search_shm_open
11323 if test "$ac_res" != no; then :
11324 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_unlink" >&5
11329 $as_echo_n "checking for library containing shm_unlink... " >&6; }
11330 if ${ac_cv_search_shm_unlink+:} false; then :
11331 $as_echo_n "(cached) " >&6
11333 ac_func_search_save_LIBS=$LIBS
11334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11335 /* end confdefs.h. */
11337 /* Override any GCC internal prototype to avoid an error.
11338 Use char because int might match the return type of a GCC
11339 builtin and then its argument prototype would still apply. */
11343 char shm_unlink ();
11347 return shm_unlink ();
11352 for ac_lib in '' rt; do
11353 if test -z "$ac_lib"; then
11354 ac_res="none required"
11357 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11359 if ac_fn_c_try_link "$LINENO"; then :
11360 ac_cv_search_shm_unlink=$ac_res
11362 rm -f core conftest.err conftest.$ac_objext \
11364 if ${ac_cv_search_shm_unlink+:} false; then :
11368 if ${ac_cv_search_shm_unlink+:} false; then :
11371 ac_cv_search_shm_unlink=no
11373 rm conftest.$ac_ext
11374 LIBS=$ac_func_search_save_LIBS
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_unlink" >&5
11377 $as_echo "$ac_cv_search_shm_unlink" >&6; }
11378 ac_res=$ac_cv_search_shm_unlink
11379 if test "$ac_res" != no; then :
11380 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
11385 $as_echo_n "checking for library containing clock_gettime... " >&6; }
11386 if ${ac_cv_search_clock_gettime+:} false; then :
11387 $as_echo_n "(cached) " >&6
11389 ac_func_search_save_LIBS=$LIBS
11390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11391 /* end confdefs.h. */
11393 /* Override any GCC internal prototype to avoid an error.
11394 Use char because int might match the return type of a GCC
11395 builtin and then its argument prototype would still apply. */
11399 char clock_gettime ();
11403 return clock_gettime ();
11408 for ac_lib in '' rt posix4; do
11409 if test -z "$ac_lib"; then
11410 ac_res="none required"
11413 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11415 if ac_fn_c_try_link "$LINENO"; then :
11416 ac_cv_search_clock_gettime=$ac_res
11418 rm -f core conftest.err conftest.$ac_objext \
11420 if ${ac_cv_search_clock_gettime+:} false; then :
11424 if ${ac_cv_search_clock_gettime+:} false; then :
11427 ac_cv_search_clock_gettime=no
11429 rm conftest.$ac_ext
11430 LIBS=$ac_func_search_save_LIBS
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
11433 $as_echo "$ac_cv_search_clock_gettime" >&6; }
11434 ac_res=$ac_cv_search_clock_gettime
11435 if test "$ac_res" != no; then :
11436 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
11442 $as_echo_n "checking for library containing fdatasync... " >&6; }
11443 if ${ac_cv_search_fdatasync+:} false; then :
11444 $as_echo_n "(cached) " >&6
11446 ac_func_search_save_LIBS=$LIBS
11447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11448 /* end confdefs.h. */
11450 /* Override any GCC internal prototype to avoid an error.
11451 Use char because int might match the return type of a GCC
11452 builtin and then its argument prototype would still apply. */
11460 return fdatasync ();
11465 for ac_lib in '' rt posix4; do
11466 if test -z "$ac_lib"; then
11467 ac_res="none required"
11470 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11472 if ac_fn_c_try_link "$LINENO"; then :
11473 ac_cv_search_fdatasync=$ac_res
11475 rm -f core conftest.err conftest.$ac_objext \
11477 if ${ac_cv_search_fdatasync+:} false; then :
11481 if ${ac_cv_search_fdatasync+:} false; then :
11484 ac_cv_search_fdatasync=no
11486 rm conftest.$ac_ext
11487 LIBS=$ac_func_search_save_LIBS
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
11490 $as_echo "$ac_cv_search_fdatasync" >&6; }
11491 ac_res=$ac_cv_search_fdatasync
11492 if test "$ac_res" != no; then :
11493 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11497 # Required for thread_test.c on Solaris
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
11499 $as_echo_n "checking for library containing sched_yield... " >&6; }
11500 if ${ac_cv_search_sched_yield+:} false; then :
11501 $as_echo_n "(cached) " >&6
11503 ac_func_search_save_LIBS=$LIBS
11504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11505 /* end confdefs.h. */
11507 /* Override any GCC internal prototype to avoid an error.
11508 Use char because int might match the return type of a GCC
11509 builtin and then its argument prototype would still apply. */
11513 char sched_yield ();
11517 return sched_yield ();
11522 for ac_lib in '' rt; do
11523 if test -z "$ac_lib"; then
11524 ac_res="none required"
11527 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11529 if ac_fn_c_try_link "$LINENO"; then :
11530 ac_cv_search_sched_yield=$ac_res
11532 rm -f core conftest.err conftest.$ac_objext \
11534 if ${ac_cv_search_sched_yield+:} false; then :
11538 if ${ac_cv_search_sched_yield+:} false; then :
11541 ac_cv_search_sched_yield=no
11543 rm conftest.$ac_ext
11544 LIBS=$ac_func_search_save_LIBS
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
11547 $as_echo "$ac_cv_search_sched_yield" >&6; }
11548 ac_res=$ac_cv_search_sched_yield
11549 if test "$ac_res" != no; then :
11550 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11554 # Required for thread_test.c on Solaris 2.5:
11555 # Other ports use it too (HP-UX) so test unconditionally
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname_r" >&5
11557 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
11558 if ${ac_cv_search_gethostbyname_r+:} false; then :
11559 $as_echo_n "(cached) " >&6
11561 ac_func_search_save_LIBS=$LIBS
11562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11563 /* end confdefs.h. */
11565 /* Override any GCC internal prototype to avoid an error.
11566 Use char because int might match the return type of a GCC
11567 builtin and then its argument prototype would still apply. */
11571 char gethostbyname_r ();
11575 return gethostbyname_r ();
11580 for ac_lib in '' nsl; do
11581 if test -z "$ac_lib"; then
11582 ac_res="none required"
11585 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11587 if ac_fn_c_try_link "$LINENO"; then :
11588 ac_cv_search_gethostbyname_r=$ac_res
11590 rm -f core conftest.err conftest.$ac_objext \
11592 if ${ac_cv_search_gethostbyname_r+:} false; then :
11596 if ${ac_cv_search_gethostbyname_r+:} false; then :
11599 ac_cv_search_gethostbyname_r=no
11601 rm conftest.$ac_ext
11602 LIBS=$ac_func_search_save_LIBS
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname_r" >&5
11605 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
11606 ac_res=$ac_cv_search_gethostbyname_r
11607 if test "$ac_res" != no; then :
11608 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shmget" >&5
11614 $as_echo_n "checking for library containing shmget... " >&6; }
11615 if ${ac_cv_search_shmget+:} false; then :
11616 $as_echo_n "(cached) " >&6
11618 ac_func_search_save_LIBS=$LIBS
11619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11620 /* end confdefs.h. */
11622 /* Override any GCC internal prototype to avoid an error.
11623 Use char because int might match the return type of a GCC
11624 builtin and then its argument prototype would still apply. */
11637 for ac_lib in '' cygipc; do
11638 if test -z "$ac_lib"; then
11639 ac_res="none required"
11642 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11644 if ac_fn_c_try_link "$LINENO"; then :
11645 ac_cv_search_shmget=$ac_res
11647 rm -f core conftest.err conftest.$ac_objext \
11649 if ${ac_cv_search_shmget+:} false; then :
11653 if ${ac_cv_search_shmget+:} false; then :
11656 ac_cv_search_shmget=no
11658 rm conftest.$ac_ext
11659 LIBS=$ac_func_search_save_LIBS
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shmget" >&5
11662 $as_echo "$ac_cv_search_shmget" >&6; }
11663 ac_res=$ac_cv_search_shmget
11664 if test "$ac_res" != no; then :
11665 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11670 if test "$with_readline" = yes; then
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
11674 $as_echo_n "checking for library containing readline... " >&6; }
11675 if ${pgac_cv_check_readline+:} false; then :
11676 $as_echo_n "(cached) " >&6
11678 pgac_cv_check_readline=no
11679 pgac_save_LIBS=$LIBS
11680 if test x"$with_libedit_preferred" != x"yes"
11681 then READLINE_ORDER="-lreadline -ledit"
11682 else READLINE_ORDER="-ledit -lreadline"
11684 for pgac_rllib in $READLINE_ORDER ; do
11685 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
11686 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
11687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11688 /* end confdefs.h. */
11690 /* Override any GCC internal prototype to avoid an error.
11691 Use char because int might match the return type of a GCC
11692 builtin and then its argument prototype would still apply. */
11700 return readline ();
11705 if ac_fn_c_try_link "$LINENO"; then :
11707 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
11708 # recognize dependent libraries; assume curses is needed if we didn't
11709 # find any dependency.
11711 netbsd* | openbsd* | irix*)
11712 if test x"$pgac_lib" = x"" ; then
11713 pgac_lib=" -lcurses"
11717 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
11721 rm -f core conftest.err conftest.$ac_objext \
11722 conftest$ac_exeext conftest.$ac_ext
11724 if test "$pgac_cv_check_readline" != no ; then
11728 LIBS=$pgac_save_LIBS
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_check_readline" >&5
11732 $as_echo "$pgac_cv_check_readline" >&6; }
11733 if test "$pgac_cv_check_readline" != no ; then
11734 LIBS="$pgac_cv_check_readline $LIBS"
11736 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
11741 if test x"$pgac_cv_check_readline" = x"no"; then
11742 as_fn_error $? "readline library not found
11743 If you have readline already installed, see config.log for details on the
11744 failure. It is possible the compiler isn't looking in the proper directory.
11745 Use --without-readline to disable readline support." "$LINENO" 5
11749 if test "$with_zlib" = yes; then
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
11751 $as_echo_n "checking for inflate in -lz... " >&6; }
11752 if ${ac_cv_lib_z_inflate+:} false; then :
11753 $as_echo_n "(cached) " >&6
11755 ac_check_lib_save_LIBS=$LIBS
11757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11758 /* end confdefs.h. */
11760 /* Override any GCC internal prototype to avoid an error.
11761 Use char because int might match the return type of a GCC
11762 builtin and then its argument prototype would still apply. */
11775 if ac_fn_c_try_link "$LINENO"; then :
11776 ac_cv_lib_z_inflate=yes
11778 ac_cv_lib_z_inflate=no
11780 rm -f core conftest.err conftest.$ac_objext \
11781 conftest$ac_exeext conftest.$ac_ext
11782 LIBS=$ac_check_lib_save_LIBS
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
11785 $as_echo "$ac_cv_lib_z_inflate" >&6; }
11786 if test "x$ac_cv_lib_z_inflate" = xyes; then :
11787 cat >>confdefs.h <<_ACEOF
11788 #define HAVE_LIBZ 1
11794 as_fn_error $? "zlib library not found
11795 If you have zlib already installed, see config.log for details on the
11796 failure. It is possible the compiler isn't looking in the proper directory.
11797 Use --without-zlib to disable zlib support." "$LINENO" 5
11802 if test "$enable_spinlocks" = yes; then
11804 $as_echo "#define HAVE_SPINLOCKS 1" >>confdefs.h
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
11808 *** Not using spinlocks will cause poor performance." >&5
11809 $as_echo "$as_me: WARNING:
11810 *** Not using spinlocks will cause poor performance." >&2;}
11813 if test "$enable_atomics" = yes; then
11815 $as_echo "#define HAVE_ATOMICS 1" >>confdefs.h
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
11819 *** Not using atomic operations will cause poor performance." >&5
11820 $as_echo "$as_me: WARNING:
11821 *** Not using atomic operations will cause poor performance." >&2;}
11824 if test "$with_gssapi" = yes ; then
11825 if test "$PORTNAME" != "win32"; then
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_init_sec_context" >&5
11827 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
11828 if ${ac_cv_search_gss_init_sec_context+:} false; then :
11829 $as_echo_n "(cached) " >&6
11831 ac_func_search_save_LIBS=$LIBS
11832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11833 /* end confdefs.h. */
11835 /* Override any GCC internal prototype to avoid an error.
11836 Use char because int might match the return type of a GCC
11837 builtin and then its argument prototype would still apply. */
11841 char gss_init_sec_context ();
11845 return gss_init_sec_context ();
11850 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
11851 if test -z "$ac_lib"; then
11852 ac_res="none required"
11855 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11857 if ac_fn_c_try_link "$LINENO"; then :
11858 ac_cv_search_gss_init_sec_context=$ac_res
11860 rm -f core conftest.err conftest.$ac_objext \
11862 if ${ac_cv_search_gss_init_sec_context+:} false; then :
11866 if ${ac_cv_search_gss_init_sec_context+:} false; then :
11869 ac_cv_search_gss_init_sec_context=no
11871 rm conftest.$ac_ext
11872 LIBS=$ac_func_search_save_LIBS
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_init_sec_context" >&5
11875 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
11876 ac_res=$ac_cv_search_gss_init_sec_context
11877 if test "$ac_res" != no; then :
11878 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11881 as_fn_error $? "could not find function 'gss_init_sec_context' required for GSSAPI" "$LINENO" 5
11885 LIBS="$LIBS -lgssapi32"
11889 if test "$with_openssl" = yes ; then
11890 if test "$PORTNAME" != "win32"; then
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_new_ex_data in -lcrypto" >&5
11892 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
11893 if ${ac_cv_lib_crypto_CRYPTO_new_ex_data+:} false; then :
11894 $as_echo_n "(cached) " >&6
11896 ac_check_lib_save_LIBS=$LIBS
11897 LIBS="-lcrypto $LIBS"
11898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11899 /* end confdefs.h. */
11901 /* Override any GCC internal prototype to avoid an error.
11902 Use char because int might match the return type of a GCC
11903 builtin and then its argument prototype would still apply. */
11907 char CRYPTO_new_ex_data ();
11911 return CRYPTO_new_ex_data ();
11916 if ac_fn_c_try_link "$LINENO"; then :
11917 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
11919 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
11921 rm -f core conftest.err conftest.$ac_objext \
11922 conftest$ac_exeext conftest.$ac_ext
11923 LIBS=$ac_check_lib_save_LIBS
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
11926 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
11927 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = xyes; then :
11928 cat >>confdefs.h <<_ACEOF
11929 #define HAVE_LIBCRYPTO 1
11932 LIBS="-lcrypto $LIBS"
11935 as_fn_error $? "library 'crypto' is required for OpenSSL" "$LINENO" 5
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
11939 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
11940 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
11941 $as_echo_n "(cached) " >&6
11943 ac_check_lib_save_LIBS=$LIBS
11945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11946 /* end confdefs.h. */
11948 /* Override any GCC internal prototype to avoid an error.
11949 Use char because int might match the return type of a GCC
11950 builtin and then its argument prototype would still apply. */
11963 if ac_fn_c_try_link "$LINENO"; then :
11964 ac_cv_lib_ssl_SSL_new=yes
11966 ac_cv_lib_ssl_SSL_new=no
11968 rm -f core conftest.err conftest.$ac_objext \
11969 conftest$ac_exeext conftest.$ac_ext
11970 LIBS=$ac_check_lib_save_LIBS
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
11973 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
11974 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
11975 cat >>confdefs.h <<_ACEOF
11976 #define HAVE_LIBSSL 1
11982 as_fn_error $? "library 'ssl' is required for OpenSSL" "$LINENO" 5
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing CRYPTO_new_ex_data" >&5
11987 $as_echo_n "checking for library containing CRYPTO_new_ex_data... " >&6; }
11988 if ${ac_cv_search_CRYPTO_new_ex_data+:} false; then :
11989 $as_echo_n "(cached) " >&6
11991 ac_func_search_save_LIBS=$LIBS
11992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11993 /* end confdefs.h. */
11995 /* Override any GCC internal prototype to avoid an error.
11996 Use char because int might match the return type of a GCC
11997 builtin and then its argument prototype would still apply. */
12001 char CRYPTO_new_ex_data ();
12005 return CRYPTO_new_ex_data ();
12010 for ac_lib in '' eay32 crypto; do
12011 if test -z "$ac_lib"; then
12012 ac_res="none required"
12015 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12017 if ac_fn_c_try_link "$LINENO"; then :
12018 ac_cv_search_CRYPTO_new_ex_data=$ac_res
12020 rm -f core conftest.err conftest.$ac_objext \
12022 if ${ac_cv_search_CRYPTO_new_ex_data+:} false; then :
12026 if ${ac_cv_search_CRYPTO_new_ex_data+:} false; then :
12029 ac_cv_search_CRYPTO_new_ex_data=no
12031 rm conftest.$ac_ext
12032 LIBS=$ac_func_search_save_LIBS
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_CRYPTO_new_ex_data" >&5
12035 $as_echo "$ac_cv_search_CRYPTO_new_ex_data" >&6; }
12036 ac_res=$ac_cv_search_CRYPTO_new_ex_data
12037 if test "$ac_res" != no; then :
12038 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12041 as_fn_error $? "library 'eay32' or 'crypto' is required for OpenSSL" "$LINENO" 5
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_new" >&5
12045 $as_echo_n "checking for library containing SSL_new... " >&6; }
12046 if ${ac_cv_search_SSL_new+:} false; then :
12047 $as_echo_n "(cached) " >&6
12049 ac_func_search_save_LIBS=$LIBS
12050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12051 /* end confdefs.h. */
12053 /* Override any GCC internal prototype to avoid an error.
12054 Use char because int might match the return type of a GCC
12055 builtin and then its argument prototype would still apply. */
12068 for ac_lib in '' ssleay32 ssl; do
12069 if test -z "$ac_lib"; then
12070 ac_res="none required"
12073 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12075 if ac_fn_c_try_link "$LINENO"; then :
12076 ac_cv_search_SSL_new=$ac_res
12078 rm -f core conftest.err conftest.$ac_objext \
12080 if ${ac_cv_search_SSL_new+:} false; then :
12084 if ${ac_cv_search_SSL_new+:} false; then :
12087 ac_cv_search_SSL_new=no
12089 rm conftest.$ac_ext
12090 LIBS=$ac_func_search_save_LIBS
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_new" >&5
12093 $as_echo "$ac_cv_search_SSL_new" >&6; }
12094 ac_res=$ac_cv_search_SSL_new
12095 if test "$ac_res" != no; then :
12096 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12099 as_fn_error $? "library 'ssleay32' or 'ssl' is required for OpenSSL" "$LINENO" 5
12103 for ac_func in SSL_clear_options SSL_get_current_compression X509_get_signature_nid
12105 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12106 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12107 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12108 cat >>confdefs.h <<_ACEOF
12109 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12115 # Functions introduced in OpenSSL 1.1.0. We used to check for
12116 # OPENSSL_VERSION_NUMBER, but that didn't work with 1.1.0, because LibreSSL
12117 # defines OPENSSL_VERSION_NUMBER to claim version 2.0.0, even though it
12118 # doesn't have these OpenSSL 1.1.0 functions. So check for individual
12120 for ac_func in OPENSSL_init_ssl BIO_get_data BIO_meth_new ASN1_STRING_get0_data RAND_OpenSSL
12122 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12123 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12124 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12125 cat >>confdefs.h <<_ACEOF
12126 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12132 # OpenSSL versions before 1.1.0 required setting callback functions, for
12133 # thread-safety. In 1.1.0, it's no longer required, and CRYPTO_lock()
12134 # function was removed.
12135 for ac_func in CRYPTO_lock
12137 ac_fn_c_check_func "$LINENO" "CRYPTO_lock" "ac_cv_func_CRYPTO_lock"
12138 if test "x$ac_cv_func_CRYPTO_lock" = xyes; then :
12139 cat >>confdefs.h <<_ACEOF
12140 #define HAVE_CRYPTO_LOCK 1
12148 if test "$with_pam" = yes ; then
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
12150 $as_echo_n "checking for pam_start in -lpam... " >&6; }
12151 if ${ac_cv_lib_pam_pam_start+:} false; then :
12152 $as_echo_n "(cached) " >&6
12154 ac_check_lib_save_LIBS=$LIBS
12156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12157 /* end confdefs.h. */
12159 /* Override any GCC internal prototype to avoid an error.
12160 Use char because int might match the return type of a GCC
12161 builtin and then its argument prototype would still apply. */
12169 return pam_start ();
12174 if ac_fn_c_try_link "$LINENO"; then :
12175 ac_cv_lib_pam_pam_start=yes
12177 ac_cv_lib_pam_pam_start=no
12179 rm -f core conftest.err conftest.$ac_objext \
12180 conftest$ac_exeext conftest.$ac_ext
12181 LIBS=$ac_check_lib_save_LIBS
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
12184 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
12185 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
12186 cat >>confdefs.h <<_ACEOF
12187 #define HAVE_LIBPAM 1
12193 as_fn_error $? "library 'pam' is required for PAM" "$LINENO" 5
12198 if test "$with_libxml" = yes ; then
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSaveToBuffer in -lxml2" >&5
12200 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
12201 if ${ac_cv_lib_xml2_xmlSaveToBuffer+:} false; then :
12202 $as_echo_n "(cached) " >&6
12204 ac_check_lib_save_LIBS=$LIBS
12205 LIBS="-lxml2 $LIBS"
12206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12207 /* end confdefs.h. */
12209 /* Override any GCC internal prototype to avoid an error.
12210 Use char because int might match the return type of a GCC
12211 builtin and then its argument prototype would still apply. */
12215 char xmlSaveToBuffer ();
12219 return xmlSaveToBuffer ();
12224 if ac_fn_c_try_link "$LINENO"; then :
12225 ac_cv_lib_xml2_xmlSaveToBuffer=yes
12227 ac_cv_lib_xml2_xmlSaveToBuffer=no
12229 rm -f core conftest.err conftest.$ac_objext \
12230 conftest$ac_exeext conftest.$ac_ext
12231 LIBS=$ac_check_lib_save_LIBS
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
12234 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
12235 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = xyes; then :
12236 cat >>confdefs.h <<_ACEOF
12237 #define HAVE_LIBXML2 1
12240 LIBS="-lxml2 $LIBS"
12243 as_fn_error $? "library 'xml2' (version >= 2.6.23) is required for XML support" "$LINENO" 5
12248 if test "$with_libxslt" = yes ; then
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xsltCleanupGlobals in -lxslt" >&5
12250 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
12251 if ${ac_cv_lib_xslt_xsltCleanupGlobals+:} false; then :
12252 $as_echo_n "(cached) " >&6
12254 ac_check_lib_save_LIBS=$LIBS
12255 LIBS="-lxslt $LIBS"
12256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12257 /* end confdefs.h. */
12259 /* Override any GCC internal prototype to avoid an error.
12260 Use char because int might match the return type of a GCC
12261 builtin and then its argument prototype would still apply. */
12265 char xsltCleanupGlobals ();
12269 return xsltCleanupGlobals ();
12274 if ac_fn_c_try_link "$LINENO"; then :
12275 ac_cv_lib_xslt_xsltCleanupGlobals=yes
12277 ac_cv_lib_xslt_xsltCleanupGlobals=no
12279 rm -f core conftest.err conftest.$ac_objext \
12280 conftest$ac_exeext conftest.$ac_ext
12281 LIBS=$ac_check_lib_save_LIBS
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
12284 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
12285 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = xyes; then :
12286 cat >>confdefs.h <<_ACEOF
12287 #define HAVE_LIBXSLT 1
12290 LIBS="-lxslt $LIBS"
12293 as_fn_error $? "library 'xslt' is required for XSLT support" "$LINENO" 5
12298 # Note: We can test for libldap_r only after we know PTHREAD_LIBS
12299 if test "$with_ldap" = yes ; then
12301 if test "$PORTNAME" != "win32"; then
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lldap" >&5
12303 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
12304 if ${ac_cv_lib_ldap_ldap_bind+:} false; then :
12305 $as_echo_n "(cached) " >&6
12307 ac_check_lib_save_LIBS=$LIBS
12308 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
12309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12310 /* end confdefs.h. */
12312 /* Override any GCC internal prototype to avoid an error.
12313 Use char because int might match the return type of a GCC
12314 builtin and then its argument prototype would still apply. */
12322 return ldap_bind ();
12327 if ac_fn_c_try_link "$LINENO"; then :
12328 ac_cv_lib_ldap_ldap_bind=yes
12330 ac_cv_lib_ldap_ldap_bind=no
12332 rm -f core conftest.err conftest.$ac_objext \
12333 conftest$ac_exeext conftest.$ac_ext
12334 LIBS=$ac_check_lib_save_LIBS
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_bind" >&5
12337 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
12338 if test "x$ac_cv_lib_ldap_ldap_bind" = xyes; then :
12339 cat >>confdefs.h <<_ACEOF
12340 #define HAVE_LIBLDAP 1
12343 LIBS="-lldap $LIBS"
12346 as_fn_error $? "library 'ldap' is required for LDAP" "$LINENO" 5
12349 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
12350 if test "$enable_thread_safety" = yes; then
12351 # on some platforms ldap_r fails to link without PTHREAD_LIBS
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_simple_bind in -lldap_r" >&5
12353 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
12354 if ${ac_cv_lib_ldap_r_ldap_simple_bind+:} false; then :
12355 $as_echo_n "(cached) " >&6
12357 ac_check_lib_save_LIBS=$LIBS
12358 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
12359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12360 /* end confdefs.h. */
12362 /* Override any GCC internal prototype to avoid an error.
12363 Use char because int might match the return type of a GCC
12364 builtin and then its argument prototype would still apply. */
12368 char ldap_simple_bind ();
12372 return ldap_simple_bind ();
12377 if ac_fn_c_try_link "$LINENO"; then :
12378 ac_cv_lib_ldap_r_ldap_simple_bind=yes
12380 ac_cv_lib_ldap_r_ldap_simple_bind=no
12382 rm -f core conftest.err conftest.$ac_objext \
12383 conftest$ac_exeext conftest.$ac_ext
12384 LIBS=$ac_check_lib_save_LIBS
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
12387 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
12388 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = xyes; then :
12389 cat >>confdefs.h <<_ACEOF
12390 #define HAVE_LIBLDAP_R 1
12393 LIBS="-lldap_r $LIBS"
12396 as_fn_error $? "library 'ldap_r' is required for LDAP" "$LINENO" 5
12399 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
12401 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
12403 for ac_func in ldap_initialize
12405 ac_fn_c_check_func "$LINENO" "ldap_initialize" "ac_cv_func_ldap_initialize"
12406 if test "x$ac_cv_func_ldap_initialize" = xyes; then :
12407 cat >>confdefs.h <<_ACEOF
12408 #define HAVE_LDAP_INITIALIZE 1
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lwldap32" >&5
12416 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
12417 if ${ac_cv_lib_wldap32_ldap_bind+:} false; then :
12418 $as_echo_n "(cached) " >&6
12420 ac_check_lib_save_LIBS=$LIBS
12421 LIBS="-lwldap32 $LIBS"
12422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12423 /* end confdefs.h. */
12425 /* Override any GCC internal prototype to avoid an error.
12426 Use char because int might match the return type of a GCC
12427 builtin and then its argument prototype would still apply. */
12435 return ldap_bind ();
12440 if ac_fn_c_try_link "$LINENO"; then :
12441 ac_cv_lib_wldap32_ldap_bind=yes
12443 ac_cv_lib_wldap32_ldap_bind=no
12445 rm -f core conftest.err conftest.$ac_objext \
12446 conftest$ac_exeext conftest.$ac_ext
12447 LIBS=$ac_check_lib_save_LIBS
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wldap32_ldap_bind" >&5
12450 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
12451 if test "x$ac_cv_lib_wldap32_ldap_bind" = xyes; then :
12452 cat >>confdefs.h <<_ACEOF
12453 #define HAVE_LIBWLDAP32 1
12456 LIBS="-lwldap32 $LIBS"
12459 as_fn_error $? "library 'wldap32' is required for LDAP" "$LINENO" 5
12462 LDAP_LIBS_FE="-lwldap32"
12463 LDAP_LIBS_BE="-lwldap32"
12470 # for contrib/sepgsql
12471 if test "$with_selinux" = yes; then
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for security_compute_create_name in -lselinux" >&5
12473 $as_echo_n "checking for security_compute_create_name in -lselinux... " >&6; }
12474 if ${ac_cv_lib_selinux_security_compute_create_name+:} false; then :
12475 $as_echo_n "(cached) " >&6
12477 ac_check_lib_save_LIBS=$LIBS
12478 LIBS="-lselinux $LIBS"
12479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12480 /* end confdefs.h. */
12482 /* Override any GCC internal prototype to avoid an error.
12483 Use char because int might match the return type of a GCC
12484 builtin and then its argument prototype would still apply. */
12488 char security_compute_create_name ();
12492 return security_compute_create_name ();
12497 if ac_fn_c_try_link "$LINENO"; then :
12498 ac_cv_lib_selinux_security_compute_create_name=yes
12500 ac_cv_lib_selinux_security_compute_create_name=no
12502 rm -f core conftest.err conftest.$ac_objext \
12503 conftest$ac_exeext conftest.$ac_ext
12504 LIBS=$ac_check_lib_save_LIBS
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_security_compute_create_name" >&5
12507 $as_echo "$ac_cv_lib_selinux_security_compute_create_name" >&6; }
12508 if test "x$ac_cv_lib_selinux_security_compute_create_name" = xyes; then :
12509 cat >>confdefs.h <<_ACEOF
12510 #define HAVE_LIBSELINUX 1
12513 LIBS="-lselinux $LIBS"
12516 as_fn_error $? "library 'libselinux', version 2.1.10 or newer, is required for SELinux support" "$LINENO" 5
12521 # for contrib/uuid-ossp
12522 if test "$with_uuid" = bsd ; then
12523 # On BSD, the UUID functions are in libc
12524 ac_fn_c_check_func "$LINENO" "uuid_to_string" "ac_cv_func_uuid_to_string"
12525 if test "x$ac_cv_func_uuid_to_string" = xyes; then :
12528 as_fn_error $? "BSD UUID functions are not present" "$LINENO" 5
12531 elif test "$with_uuid" = e2fs ; then
12532 # On macOS, the UUID functions are in libc
12533 ac_fn_c_check_func "$LINENO" "uuid_generate" "ac_cv_func_uuid_generate"
12534 if test "x$ac_cv_func_uuid_generate" = xyes; then :
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
12538 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
12539 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
12540 $as_echo_n "(cached) " >&6
12542 ac_check_lib_save_LIBS=$LIBS
12543 LIBS="-luuid $LIBS"
12544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12545 /* end confdefs.h. */
12547 /* Override any GCC internal prototype to avoid an error.
12548 Use char because int might match the return type of a GCC
12549 builtin and then its argument prototype would still apply. */
12553 char uuid_generate ();
12557 return uuid_generate ();
12562 if ac_fn_c_try_link "$LINENO"; then :
12563 ac_cv_lib_uuid_uuid_generate=yes
12565 ac_cv_lib_uuid_uuid_generate=no
12567 rm -f core conftest.err conftest.$ac_objext \
12568 conftest$ac_exeext conftest.$ac_ext
12569 LIBS=$ac_check_lib_save_LIBS
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
12572 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
12573 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
12576 as_fn_error $? "library 'uuid' is required for E2FS UUID" "$LINENO" 5
12581 elif test "$with_uuid" = ossp ; then
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_export in -lossp-uuid" >&5
12583 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
12584 if ${ac_cv_lib_ossp_uuid_uuid_export+:} false; then :
12585 $as_echo_n "(cached) " >&6
12587 ac_check_lib_save_LIBS=$LIBS
12588 LIBS="-lossp-uuid $LIBS"
12589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12590 /* end confdefs.h. */
12592 /* Override any GCC internal prototype to avoid an error.
12593 Use char because int might match the return type of a GCC
12594 builtin and then its argument prototype would still apply. */
12598 char uuid_export ();
12602 return uuid_export ();
12607 if ac_fn_c_try_link "$LINENO"; then :
12608 ac_cv_lib_ossp_uuid_uuid_export=yes
12610 ac_cv_lib_ossp_uuid_uuid_export=no
12612 rm -f core conftest.err conftest.$ac_objext \
12613 conftest$ac_exeext conftest.$ac_ext
12614 LIBS=$ac_check_lib_save_LIBS
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
12617 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
12618 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = xyes; then :
12619 UUID_LIBS="-lossp-uuid"
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_export in -luuid" >&5
12622 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
12623 if ${ac_cv_lib_uuid_uuid_export+:} false; then :
12624 $as_echo_n "(cached) " >&6
12626 ac_check_lib_save_LIBS=$LIBS
12627 LIBS="-luuid $LIBS"
12628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12629 /* end confdefs.h. */
12631 /* Override any GCC internal prototype to avoid an error.
12632 Use char because int might match the return type of a GCC
12633 builtin and then its argument prototype would still apply. */
12637 char uuid_export ();
12641 return uuid_export ();
12646 if ac_fn_c_try_link "$LINENO"; then :
12647 ac_cv_lib_uuid_uuid_export=yes
12649 ac_cv_lib_uuid_uuid_export=no
12651 rm -f core conftest.err conftest.$ac_objext \
12652 conftest$ac_exeext conftest.$ac_ext
12653 LIBS=$ac_check_lib_save_LIBS
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_export" >&5
12656 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
12657 if test "x$ac_cv_lib_uuid_uuid_export" = xyes; then :
12660 as_fn_error $? "library 'ossp-uuid' or 'uuid' is required for OSSP UUID" "$LINENO" 5
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
12674 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
12675 if ${ac_cv_header_stdbool_h+:} false; then :
12676 $as_echo_n "(cached) " >&6
12678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12679 /* end confdefs.h. */
12681 #include <stdbool.h>
12683 "error: bool is not defined"
12686 "error: false is not defined"
12689 "error: false is not 0"
12692 "error: true is not defined"
12695 "error: true is not 1"
12697 #ifndef __bool_true_false_are_defined
12698 "error: __bool_true_false_are_defined is not defined"
12701 struct s { _Bool s: 1; _Bool t; } s;
12703 char a[true == 1 ? 1 : -1];
12704 char b[false == 0 ? 1 : -1];
12705 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
12706 char d[(bool) 0.5 == true ? 1 : -1];
12707 /* See body of main program for 'e'. */
12708 char f[(_Bool) 0.0 == false ? 1 : -1];
12710 char h[sizeof (_Bool)];
12711 char i[sizeof s.t];
12712 enum { j = false, k = true, l = false * true, m = true * 256 };
12713 /* The following fails for
12714 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
12716 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
12717 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
12718 /* Catch a bug in an HP-UX C compiler. See
12719 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
12720 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
12732 /* Refer to every declared value, to avoid compiler optimizations. */
12733 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
12734 + !m + !n + !o + !p + !q + !pq);
12740 if ac_fn_c_try_compile "$LINENO"; then :
12741 ac_cv_header_stdbool_h=yes
12743 ac_cv_header_stdbool_h=no
12745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
12748 $as_echo "$ac_cv_header_stdbool_h" >&6; }
12749 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
12750 if test "x$ac_cv_type__Bool" = xyes; then :
12752 cat >>confdefs.h <<_ACEOF
12753 #define HAVE__BOOL 1
12760 if test $ac_cv_header_stdbool_h = yes; then
12762 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
12767 for ac_header in atomic.h copyfile.h crypt.h fp_class.h getopt.h ieeefp.h ifaddrs.h langinfo.h mbarrier.h poll.h sys/epoll.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 utime.h wchar.h wctype.h
12769 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12770 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12771 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12772 cat >>confdefs.h <<_ACEOF
12773 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12781 # On BSD, test for net/if.h will fail unless sys/socket.h
12782 # is included first.
12783 for ac_header in net/if.h
12785 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
12786 #include <sys/socket.h>
12789 if test "x$ac_cv_header_net_if_h" = xyes; then :
12790 cat >>confdefs.h <<_ACEOF
12791 #define HAVE_NET_IF_H 1
12799 # On OpenBSD, test for sys/ucred.h will fail unless sys/param.h
12800 # is included first.
12801 for ac_header in sys/ucred.h
12803 ac_fn_c_check_header_compile "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default
12804 #include <sys/param.h>
12807 if test "x$ac_cv_header_sys_ucred_h" = xyes; then :
12808 cat >>confdefs.h <<_ACEOF
12809 #define HAVE_SYS_UCRED_H 1
12817 # At least on IRIX, test for netinet/tcp.h will fail unless
12818 # netinet/in.h is included first.
12819 for ac_header in netinet/tcp.h
12821 ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default
12822 #include <netinet/in.h>
12825 if test "x$ac_cv_header_netinet_tcp_h" = xyes; then :
12826 cat >>confdefs.h <<_ACEOF
12827 #define HAVE_NETINET_TCP_H 1
12835 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
12836 for ac_header in readline/readline.h
12838 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
12839 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
12840 cat >>confdefs.h <<_ACEOF
12841 #define HAVE_READLINE_READLINE_H 1
12845 for ac_header in readline.h
12847 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
12848 if test "x$ac_cv_header_readline_h" = xyes; then :
12849 cat >>confdefs.h <<_ACEOF
12850 #define HAVE_READLINE_H 1
12854 as_fn_error $? "readline header not found
12855 If you have readline already installed, see config.log for details on the
12856 failure. It is possible the compiler isn't looking in the proper directory.
12857 Use --without-readline to disable readline support." "$LINENO" 5
12866 for ac_header in readline/history.h
12868 ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
12869 if test "x$ac_cv_header_readline_history_h" = xyes; then :
12870 cat >>confdefs.h <<_ACEOF
12871 #define HAVE_READLINE_HISTORY_H 1
12875 for ac_header in history.h
12877 ac_fn_c_check_header_mongrel "$LINENO" "history.h" "ac_cv_header_history_h" "$ac_includes_default"
12878 if test "x$ac_cv_header_history_h" = xyes; then :
12879 cat >>confdefs.h <<_ACEOF
12880 #define HAVE_HISTORY_H 1
12884 as_fn_error $? "history header not found
12885 If you have readline already installed, see config.log for details on the
12886 failure. It is possible the compiler isn't looking in the proper directory.
12887 Use --without-readline to disable readline support." "$LINENO" 5
12898 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
12899 # Some installations of libedit usurp /usr/include/readline/, which seems
12900 # bad practice, since in combined installations readline will have its headers
12901 # there. We might have to resort to AC_EGREP checks to make sure we found
12902 # the proper header...
12903 for ac_header in editline/readline.h
12905 ac_fn_c_check_header_mongrel "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
12906 if test "x$ac_cv_header_editline_readline_h" = xyes; then :
12907 cat >>confdefs.h <<_ACEOF
12908 #define HAVE_EDITLINE_READLINE_H 1
12912 for ac_header in readline.h
12914 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
12915 if test "x$ac_cv_header_readline_h" = xyes; then :
12916 cat >>confdefs.h <<_ACEOF
12917 #define HAVE_READLINE_H 1
12921 for ac_header in readline/readline.h
12923 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
12924 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
12925 cat >>confdefs.h <<_ACEOF
12926 #define HAVE_READLINE_READLINE_H 1
12930 as_fn_error $? "readline header not found
12931 If you have libedit already installed, see config.log for details on the
12932 failure. It is possible the compiler isn't looking in the proper directory.
12933 Use --without-readline to disable libedit support." "$LINENO" 5
12946 # Note: in a libedit installation, history.h is sometimes a dummy, and may
12947 # not be there at all. Hence, don't complain if not found. We must check
12948 # though, since in yet other versions it is an independent header.
12949 for ac_header in editline/history.h
12951 ac_fn_c_check_header_mongrel "$LINENO" "editline/history.h" "ac_cv_header_editline_history_h" "$ac_includes_default"
12952 if test "x$ac_cv_header_editline_history_h" = xyes; then :
12953 cat >>confdefs.h <<_ACEOF
12954 #define HAVE_EDITLINE_HISTORY_H 1
12958 for ac_header in history.h
12960 ac_fn_c_check_header_mongrel "$LINENO" "history.h" "ac_cv_header_history_h" "$ac_includes_default"
12961 if test "x$ac_cv_header_history_h" = xyes; then :
12962 cat >>confdefs.h <<_ACEOF
12963 #define HAVE_HISTORY_H 1
12967 for ac_header in readline/history.h
12969 ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
12970 if test "x$ac_cv_header_readline_history_h" = xyes; then :
12971 cat >>confdefs.h <<_ACEOF
12972 #define HAVE_READLINE_HISTORY_H 1
12989 if test "$with_zlib" = yes; then
12990 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12991 if test "x$ac_cv_header_zlib_h" = xyes; then :
12994 as_fn_error $? "zlib header not found
12995 If you have zlib already installed, see config.log for details on the
12996 failure. It is possible the compiler isn't looking in the proper directory.
12997 Use --without-zlib to disable zlib support." "$LINENO" 5
13003 if test "$with_gssapi" = yes ; then
13004 for ac_header in gssapi/gssapi.h
13006 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
13007 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
13008 cat >>confdefs.h <<_ACEOF
13009 #define HAVE_GSSAPI_GSSAPI_H 1
13013 for ac_header in gssapi.h
13015 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
13016 if test "x$ac_cv_header_gssapi_h" = xyes; then :
13017 cat >>confdefs.h <<_ACEOF
13018 #define HAVE_GSSAPI_H 1
13022 as_fn_error $? "gssapi.h header file is required for GSSAPI" "$LINENO" 5
13033 if test "$with_openssl" = yes ; then
13034 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
13035 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
13038 as_fn_error $? "header file <openssl/ssl.h> is required for OpenSSL" "$LINENO" 5
13042 ac_fn_c_check_header_mongrel "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default"
13043 if test "x$ac_cv_header_openssl_err_h" = xyes; then :
13046 as_fn_error $? "header file <openssl/err.h> is required for OpenSSL" "$LINENO" 5
13052 if test "$with_pam" = yes ; then
13053 for ac_header in security/pam_appl.h
13055 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
13056 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
13057 cat >>confdefs.h <<_ACEOF
13058 #define HAVE_SECURITY_PAM_APPL_H 1
13062 for ac_header in pam/pam_appl.h
13064 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
13065 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
13066 cat >>confdefs.h <<_ACEOF
13067 #define HAVE_PAM_PAM_APPL_H 1
13071 as_fn_error $? "header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." "$LINENO" 5
13082 if test "$with_bsd_auth" = yes ; then
13083 ac_fn_c_check_header_mongrel "$LINENO" "bsd_auth.h" "ac_cv_header_bsd_auth_h" "$ac_includes_default"
13084 if test "x$ac_cv_header_bsd_auth_h" = xyes; then :
13087 as_fn_error $? "header file <bsd_auth.h> is required for BSD Authentication support" "$LINENO" 5
13093 if test "$with_systemd" = yes ; then
13094 ac_fn_c_check_header_mongrel "$LINENO" "systemd/sd-daemon.h" "ac_cv_header_systemd_sd_daemon_h" "$ac_includes_default"
13095 if test "x$ac_cv_header_systemd_sd_daemon_h" = xyes; then :
13098 as_fn_error $? "header file <systemd/sd-daemon.h> is required for systemd support" "$LINENO" 5
13104 if test "$with_libxml" = yes ; then
13105 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
13106 if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
13109 as_fn_error $? "header file <libxml/parser.h> is required for XML support" "$LINENO" 5
13115 if test "$with_libxslt" = yes ; then
13116 ac_fn_c_check_header_mongrel "$LINENO" "libxslt/xslt.h" "ac_cv_header_libxslt_xslt_h" "$ac_includes_default"
13117 if test "x$ac_cv_header_libxslt_xslt_h" = xyes; then :
13120 as_fn_error $? "header file <libxslt/xslt.h> is required for XSLT support" "$LINENO" 5
13126 if test "$with_ldap" = yes ; then
13127 if test "$PORTNAME" != "win32"; then
13128 for ac_header in ldap.h
13130 ac_fn_c_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
13131 if test "x$ac_cv_header_ldap_h" = xyes; then :
13132 cat >>confdefs.h <<_ACEOF
13133 #define HAVE_LDAP_H 1
13137 as_fn_error $? "header file <ldap.h> is required for LDAP" "$LINENO" 5
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible LDAP implementation" >&5
13143 $as_echo_n "checking for compatible LDAP implementation... " >&6; }
13144 if ${pgac_cv_ldap_safe+:} false; then :
13145 $as_echo_n "(cached) " >&6
13147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13148 /* end confdefs.h. */
13150 #if !defined(LDAP_VENDOR_VERSION) || \
13151 (defined(LDAP_API_FEATURE_X_OPENLDAP) && \
13152 LDAP_VENDOR_VERSION >= 20424 && LDAP_VENDOR_VERSION <= 20431)
13163 if ac_fn_c_try_compile "$LINENO"; then :
13164 pgac_cv_ldap_safe=yes
13166 pgac_cv_ldap_safe=no
13168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_ldap_safe" >&5
13171 $as_echo "$pgac_cv_ldap_safe" >&6; }
13173 if test "$pgac_cv_ldap_safe" != yes; then
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
13175 *** With OpenLDAP versions 2.4.24 through 2.4.31, inclusive, each backend
13176 *** process that loads libpq (via WAL receiver, dblink, or postgres_fdw) and
13177 *** also uses LDAP will crash on exit." >&5
13178 $as_echo "$as_me: WARNING:
13179 *** With OpenLDAP versions 2.4.24 through 2.4.31, inclusive, each backend
13180 *** process that loads libpq (via WAL receiver, dblink, or postgres_fdw) and
13181 *** also uses LDAP will crash on exit." >&2;}
13184 for ac_header in winldap.h
13186 ac_fn_c_check_header_compile "$LINENO" "winldap.h" "ac_cv_header_winldap_h" "$ac_includes_default
13187 #include <windows.h>
13190 if test "x$ac_cv_header_winldap_h" = xyes; then :
13191 cat >>confdefs.h <<_ACEOF
13192 #define HAVE_WINLDAP_H 1
13196 as_fn_error $? "header file <winldap.h> is required for LDAP" "$LINENO" 5
13204 if test "$with_bonjour" = yes ; then
13205 ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
13206 if test "x$ac_cv_header_dns_sd_h" = xyes; then :
13209 as_fn_error $? "header file <dns_sd.h> is required for Bonjour" "$LINENO" 5
13215 # for contrib/uuid-ossp
13216 if test "$with_uuid" = bsd ; then
13217 for ac_header in uuid.h
13219 ac_fn_c_check_header_mongrel "$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
13220 if test "x$ac_cv_header_uuid_h" = xyes; then :
13221 cat >>confdefs.h <<_ACEOF
13222 #define HAVE_UUID_H 1
13224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13225 /* end confdefs.h. */
13229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13230 $EGREP "uuid_to_string" >/dev/null 2>&1; then :
13233 as_fn_error $? "header file <uuid.h> does not match BSD UUID library" "$LINENO" 5
13238 as_fn_error $? "header file <uuid.h> is required for BSD UUID" "$LINENO" 5
13243 elif test "$with_uuid" = e2fs ; then
13244 for ac_header in uuid/uuid.h
13246 ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
13247 if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
13248 cat >>confdefs.h <<_ACEOF
13249 #define HAVE_UUID_UUID_H 1
13251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13252 /* end confdefs.h. */
13253 #include <uuid/uuid.h>
13256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13257 $EGREP "uuid_generate" >/dev/null 2>&1; then :
13260 as_fn_error $? "header file <uuid/uuid.h> does not match E2FS UUID library" "$LINENO" 5
13265 for ac_header in uuid.h
13267 ac_fn_c_check_header_mongrel "$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
13268 if test "x$ac_cv_header_uuid_h" = xyes; then :
13269 cat >>confdefs.h <<_ACEOF
13270 #define HAVE_UUID_H 1
13272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13273 /* end confdefs.h. */
13277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13278 $EGREP "uuid_generate" >/dev/null 2>&1; then :
13281 as_fn_error $? "header file <uuid.h> does not match E2FS UUID library" "$LINENO" 5
13286 as_fn_error $? "header file <uuid/uuid.h> or <uuid.h> is required for E2FS UUID" "$LINENO" 5
13295 elif test "$with_uuid" = ossp ; then
13296 for ac_header in ossp/uuid.h
13298 ac_fn_c_check_header_mongrel "$LINENO" "ossp/uuid.h" "ac_cv_header_ossp_uuid_h" "$ac_includes_default"
13299 if test "x$ac_cv_header_ossp_uuid_h" = xyes; then :
13300 cat >>confdefs.h <<_ACEOF
13301 #define HAVE_OSSP_UUID_H 1
13303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13304 /* end confdefs.h. */
13305 #include <ossp/uuid.h>
13308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13309 $EGREP "uuid_export" >/dev/null 2>&1; then :
13312 as_fn_error $? "header file <ossp/uuid.h> does not match OSSP UUID library" "$LINENO" 5
13317 for ac_header in uuid.h
13319 ac_fn_c_check_header_mongrel "$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
13320 if test "x$ac_cv_header_uuid_h" = xyes; then :
13321 cat >>confdefs.h <<_ACEOF
13322 #define HAVE_UUID_H 1
13324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13325 /* end confdefs.h. */
13329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13330 $EGREP "uuid_export" >/dev/null 2>&1; then :
13333 as_fn_error $? "header file <uuid.h> does not match OSSP UUID library" "$LINENO" 5
13338 as_fn_error $? "header file <ossp/uuid.h> or <uuid.h> is required for OSSP UUID" "$LINENO" 5
13349 if test "$PORTNAME" = "win32" ; then
13350 for ac_header in crtdefs.h
13352 ac_fn_c_check_header_mongrel "$LINENO" "crtdefs.h" "ac_cv_header_crtdefs_h" "$ac_includes_default"
13353 if test "x$ac_cv_header_crtdefs_h" = xyes; then :
13354 cat >>confdefs.h <<_ACEOF
13355 #define HAVE_CRTDEFS_H 1
13365 ## Types, structures, compiler characteristics
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13369 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13370 if ${ac_cv_c_bigendian+:} false; then :
13371 $as_echo_n "(cached) " >&6
13373 ac_cv_c_bigendian=unknown
13374 # See if we're dealing with a universal compiler.
13375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13376 /* end confdefs.h. */
13377 #ifndef __APPLE_CC__
13378 not a universal capable compiler
13383 if ac_fn_c_try_compile "$LINENO"; then :
13385 # Check for potential -arch flags. It is not universal unless
13386 # there are at least two -arch flags with different values.
13389 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13390 if test -n "$ac_prev"; then
13392 i?86 | x86_64 | ppc | ppc64)
13393 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13396 ac_cv_c_bigendian=universal
13402 elif test "x$ac_word" = "x-arch"; then
13407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13408 if test $ac_cv_c_bigendian = unknown; then
13409 # See if sys/param.h defines the BYTE_ORDER macro.
13410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13411 /* end confdefs.h. */
13412 #include <sys/types.h>
13413 #include <sys/param.h>
13418 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13419 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13421 bogus endian macros
13428 if ac_fn_c_try_compile "$LINENO"; then :
13429 # It does; now see whether it defined to BIG_ENDIAN or not.
13430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13431 /* end confdefs.h. */
13432 #include <sys/types.h>
13433 #include <sys/param.h>
13438 #if BYTE_ORDER != BIG_ENDIAN
13446 if ac_fn_c_try_compile "$LINENO"; then :
13447 ac_cv_c_bigendian=yes
13449 ac_cv_c_bigendian=no
13451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13455 if test $ac_cv_c_bigendian = unknown; then
13456 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13458 /* end confdefs.h. */
13459 #include <limits.h>
13464 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13465 bogus endian macros
13472 if ac_fn_c_try_compile "$LINENO"; then :
13473 # It does; now see whether it defined to _BIG_ENDIAN or not.
13474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13475 /* end confdefs.h. */
13476 #include <limits.h>
13481 #ifndef _BIG_ENDIAN
13489 if ac_fn_c_try_compile "$LINENO"; then :
13490 ac_cv_c_bigendian=yes
13492 ac_cv_c_bigendian=no
13494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13498 if test $ac_cv_c_bigendian = unknown; then
13499 # Compile a test program.
13500 if test "$cross_compiling" = yes; then :
13501 # Try to guess by grepping values from an object file.
13502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13503 /* end confdefs.h. */
13504 short int ascii_mm[] =
13505 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13506 short int ascii_ii[] =
13507 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13508 int use_ascii (int i) {
13509 return ascii_mm[i] + ascii_ii[i];
13511 short int ebcdic_ii[] =
13512 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13513 short int ebcdic_mm[] =
13514 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13515 int use_ebcdic (int i) {
13516 return ebcdic_mm[i] + ebcdic_ii[i];
13523 return use_ascii (foo) == use_ebcdic (foo);
13528 if ac_fn_c_try_compile "$LINENO"; then :
13529 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13530 ac_cv_c_bigendian=yes
13532 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13533 if test "$ac_cv_c_bigendian" = unknown; then
13534 ac_cv_c_bigendian=no
13536 # finding both strings is unlikely to happen, but who knows?
13537 ac_cv_c_bigendian=unknown
13541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13544 /* end confdefs.h. */
13545 $ac_includes_default
13550 /* Are we little or big endian? From Harbison&Steele. */
13554 char c[sizeof (long int)];
13557 return u.c[sizeof (long int) - 1] == 1;
13563 if ac_fn_c_try_run "$LINENO"; then :
13564 ac_cv_c_bigendian=no
13566 ac_cv_c_bigendian=yes
13568 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13569 conftest.$ac_objext conftest.beam conftest.$ac_ext
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13575 $as_echo "$ac_cv_c_bigendian" >&6; }
13576 case $ac_cv_c_bigendian in #(
13578 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13584 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13588 as_fn_error $? "unknown endianness
13589 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13593 $as_echo_n "checking for inline... " >&6; }
13594 if ${ac_cv_c_inline+:} false; then :
13595 $as_echo_n "(cached) " >&6
13598 for ac_kw in inline __inline__ __inline; do
13599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13600 /* end confdefs.h. */
13601 #ifndef __cplusplus
13603 static $ac_kw foo_t static_foo () {return 0; }
13604 $ac_kw foo_t foo () {return 0; }
13608 if ac_fn_c_try_compile "$LINENO"; then :
13609 ac_cv_c_inline=$ac_kw
13611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13612 test "$ac_cv_c_inline" != no && break
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13617 $as_echo "$ac_cv_c_inline" >&6; }
13619 case $ac_cv_c_inline in
13622 case $ac_cv_c_inline in
13624 *) ac_val=$ac_cv_c_inline;;
13626 cat >>confdefs.h <<_ACEOF
13627 #ifndef __cplusplus
13628 #define inline $ac_val
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf format archetype" >&5
13635 $as_echo_n "checking for printf format archetype... " >&6; }
13636 if ${pgac_cv_printf_archetype+:} false; then :
13637 $as_echo_n "(cached) " >&6
13639 pgac_cv_printf_archetype=gnu_printf
13640 ac_save_c_werror_flag=$ac_c_werror_flag
13641 ac_c_werror_flag=yes
13642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13643 /* end confdefs.h. */
13644 extern void pgac_write(int ignore, const char *fmt,...)
13645 __attribute__((format($pgac_cv_printf_archetype, 2, 3)));
13649 pgac_write(0, "error %s: %m", "foo");
13654 if ac_fn_c_try_compile "$LINENO"; then :
13655 ac_archetype_ok=yes
13659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13660 ac_c_werror_flag=$ac_save_c_werror_flag
13662 if [ "$ac_archetype_ok" = no ]; then
13663 pgac_cv_printf_archetype=__syslog__
13664 ac_save_c_werror_flag=$ac_c_werror_flag
13665 ac_c_werror_flag=yes
13666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13667 /* end confdefs.h. */
13668 extern void pgac_write(int ignore, const char *fmt,...)
13669 __attribute__((format($pgac_cv_printf_archetype, 2, 3)));
13673 pgac_write(0, "error %s: %m", "foo");
13678 if ac_fn_c_try_compile "$LINENO"; then :
13679 ac_archetype_ok=yes
13683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13684 ac_c_werror_flag=$ac_save_c_werror_flag
13686 if [ "$ac_archetype_ok" = no ]; then
13687 pgac_cv_printf_archetype=printf
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_printf_archetype" >&5
13692 $as_echo "$pgac_cv_printf_archetype" >&6; }
13694 cat >>confdefs.h <<_ACEOF
13695 #define PG_PRINTF_ATTRIBUTE $pgac_cv_printf_archetype
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
13701 $as_echo_n "checking for flexible array members... " >&6; }
13702 if ${ac_cv_c_flexmember+:} false; then :
13703 $as_echo_n "(cached) " >&6
13705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13706 /* end confdefs.h. */
13707 #include <stdlib.h>
13709 #include <stddef.h>
13710 struct s { int n; double d[]; };
13714 int m = getchar ();
13715 struct s *p = malloc (offsetof (struct s, d)
13716 + m * sizeof (double));
13718 return p->d != (double *) NULL;
13723 if ac_fn_c_try_compile "$LINENO"; then :
13724 ac_cv_c_flexmember=yes
13726 ac_cv_c_flexmember=no
13728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
13731 $as_echo "$ac_cv_c_flexmember" >&6; }
13732 if test $ac_cv_c_flexmember = yes; then
13734 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
13737 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed types" >&5
13742 $as_echo_n "checking for signed types... " >&6; }
13743 if ${pgac_cv_c_signed+:} false; then :
13744 $as_echo_n "(cached) " >&6
13746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13747 /* end confdefs.h. */
13752 signed char c; signed short s; signed int i;
13757 if ac_fn_c_try_compile "$LINENO"; then :
13758 pgac_cv_c_signed=yes
13760 pgac_cv_c_signed=no
13762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_c_signed" >&5
13765 $as_echo "$pgac_cv_c_signed" >&6; }
13766 if test x"$pgac_cv_c_signed" = xno ; then
13768 $as_echo "#define signed /**/" >>confdefs.h
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __func__" >&5
13772 $as_echo_n "checking for __func__... " >&6; }
13773 if ${pgac_cv_funcname_func_support+:} false; then :
13774 $as_echo_n "(cached) " >&6
13776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13777 /* end confdefs.h. */
13782 printf("%s\n", __func__);
13787 if ac_fn_c_try_compile "$LINENO"; then :
13788 pgac_cv_funcname_func_support=yes
13790 pgac_cv_funcname_func_support=no
13792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_funcname_func_support" >&5
13795 $as_echo "$pgac_cv_funcname_func_support" >&6; }
13796 if test x"$pgac_cv_funcname_func_support" = xyes ; then
13798 $as_echo "#define HAVE_FUNCNAME__FUNC 1" >>confdefs.h
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __FUNCTION__" >&5
13802 $as_echo_n "checking for __FUNCTION__... " >&6; }
13803 if ${pgac_cv_funcname_function_support+:} false; then :
13804 $as_echo_n "(cached) " >&6
13806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13807 /* end confdefs.h. */
13812 printf("%s\n", __FUNCTION__);
13817 if ac_fn_c_try_compile "$LINENO"; then :
13818 pgac_cv_funcname_function_support=yes
13820 pgac_cv_funcname_function_support=no
13822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_funcname_function_support" >&5
13825 $as_echo "$pgac_cv_funcname_function_support" >&6; }
13826 if test x"$pgac_cv_funcname_function_support" = xyes ; then
13828 $as_echo "#define HAVE_FUNCNAME__FUNCTION 1" >>confdefs.h
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Static_assert" >&5
13833 $as_echo_n "checking for _Static_assert... " >&6; }
13834 if ${pgac_cv__static_assert+:} false; then :
13835 $as_echo_n "(cached) " >&6
13837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13838 /* end confdefs.h. */
13843 ({ _Static_assert(1, "foo"); })
13848 if ac_fn_c_try_link "$LINENO"; then :
13849 pgac_cv__static_assert=yes
13851 pgac_cv__static_assert=no
13853 rm -f core conftest.err conftest.$ac_objext \
13854 conftest$ac_exeext conftest.$ac_ext
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__static_assert" >&5
13857 $as_echo "$pgac_cv__static_assert" >&6; }
13858 if test x"$pgac_cv__static_assert" = xyes ; then
13860 $as_echo "#define HAVE__STATIC_ASSERT 1" >>confdefs.h
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
13864 $as_echo_n "checking for typeof... " >&6; }
13865 if ${pgac_cv_c_typeof+:} false; then :
13866 $as_echo_n "(cached) " >&6
13868 pgac_cv_c_typeof=no
13869 for pgac_kw in typeof __typeof__ decltype; do
13870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13871 /* end confdefs.h. */
13884 if ac_fn_c_try_compile "$LINENO"; then :
13885 pgac_cv_c_typeof=$pgac_kw
13887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13888 test "$pgac_cv_c_typeof" != no && break
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_c_typeof" >&5
13892 $as_echo "$pgac_cv_c_typeof" >&6; }
13893 if test "$pgac_cv_c_typeof" != no; then
13895 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
13897 if test "$pgac_cv_c_typeof" != typeof; then
13899 cat >>confdefs.h <<_ACEOF
13900 #define typeof $pgac_cv_c_typeof
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_types_compatible_p" >&5
13906 $as_echo_n "checking for __builtin_types_compatible_p... " >&6; }
13907 if ${pgac_cv__types_compatible+:} false; then :
13908 $as_echo_n "(cached) " >&6
13910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13911 /* end confdefs.h. */
13916 int x; static int y[__builtin_types_compatible_p(__typeof__(x), int)];
13921 if ac_fn_c_try_compile "$LINENO"; then :
13922 pgac_cv__types_compatible=yes
13924 pgac_cv__types_compatible=no
13926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__types_compatible" >&5
13929 $as_echo "$pgac_cv__types_compatible" >&6; }
13930 if test x"$pgac_cv__types_compatible" = xyes ; then
13932 $as_echo "#define HAVE__BUILTIN_TYPES_COMPATIBLE_P 1" >>confdefs.h
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap16" >&5
13936 $as_echo_n "checking for __builtin_bswap16... " >&6; }
13937 if ${pgac_cv__builtin_bswap16+:} false; then :
13938 $as_echo_n "(cached) " >&6
13940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13941 /* end confdefs.h. */
13942 static unsigned long int x = __builtin_bswap16(0xaabb);
13945 if ac_fn_c_try_compile "$LINENO"; then :
13946 pgac_cv__builtin_bswap16=yes
13948 pgac_cv__builtin_bswap16=no
13950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_bswap16" >&5
13953 $as_echo "$pgac_cv__builtin_bswap16" >&6; }
13954 if test x"$pgac_cv__builtin_bswap16" = xyes ; then
13956 $as_echo "#define HAVE__BUILTIN_BSWAP16 1" >>confdefs.h
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap32" >&5
13960 $as_echo_n "checking for __builtin_bswap32... " >&6; }
13961 if ${pgac_cv__builtin_bswap32+:} false; then :
13962 $as_echo_n "(cached) " >&6
13964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13965 /* end confdefs.h. */
13966 static unsigned long int x = __builtin_bswap32(0xaabbccdd);
13969 if ac_fn_c_try_compile "$LINENO"; then :
13970 pgac_cv__builtin_bswap32=yes
13972 pgac_cv__builtin_bswap32=no
13974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_bswap32" >&5
13977 $as_echo "$pgac_cv__builtin_bswap32" >&6; }
13978 if test x"$pgac_cv__builtin_bswap32" = xyes ; then
13980 $as_echo "#define HAVE__BUILTIN_BSWAP32 1" >>confdefs.h
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap64" >&5
13984 $as_echo_n "checking for __builtin_bswap64... " >&6; }
13985 if ${pgac_cv__builtin_bswap64+:} false; then :
13986 $as_echo_n "(cached) " >&6
13988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13989 /* end confdefs.h. */
13990 static unsigned long int x = __builtin_bswap64(0xaabbccddeeff0011);
13993 if ac_fn_c_try_compile "$LINENO"; then :
13994 pgac_cv__builtin_bswap64=yes
13996 pgac_cv__builtin_bswap64=no
13998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_bswap64" >&5
14001 $as_echo "$pgac_cv__builtin_bswap64" >&6; }
14002 if test x"$pgac_cv__builtin_bswap64" = xyes ; then
14004 $as_echo "#define HAVE__BUILTIN_BSWAP64 1" >>confdefs.h
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_constant_p" >&5
14008 $as_echo_n "checking for __builtin_constant_p... " >&6; }
14009 if ${pgac_cv__builtin_constant_p+:} false; then :
14010 $as_echo_n "(cached) " >&6
14012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14013 /* end confdefs.h. */
14015 static int y[__builtin_constant_p(x) ? x : 1];
14016 static int z[__builtin_constant_p("string literal") ? 1 : x];
14020 if ac_fn_c_try_compile "$LINENO"; then :
14021 pgac_cv__builtin_constant_p=yes
14023 pgac_cv__builtin_constant_p=no
14025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_constant_p" >&5
14028 $as_echo "$pgac_cv__builtin_constant_p" >&6; }
14029 if test x"$pgac_cv__builtin_constant_p" = xyes ; then
14031 $as_echo "#define HAVE__BUILTIN_CONSTANT_P 1" >>confdefs.h
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unreachable" >&5
14035 $as_echo_n "checking for __builtin_unreachable... " >&6; }
14036 if ${pgac_cv__builtin_unreachable+:} false; then :
14037 $as_echo_n "(cached) " >&6
14039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14040 /* end confdefs.h. */
14045 __builtin_unreachable();
14050 if ac_fn_c_try_link "$LINENO"; then :
14051 pgac_cv__builtin_unreachable=yes
14053 pgac_cv__builtin_unreachable=no
14055 rm -f core conftest.err conftest.$ac_objext \
14056 conftest$ac_exeext conftest.$ac_ext
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_unreachable" >&5
14059 $as_echo "$pgac_cv__builtin_unreachable" >&6; }
14060 if test x"$pgac_cv__builtin_unreachable" = xyes ; then
14062 $as_echo "#define HAVE__BUILTIN_UNREACHABLE 1" >>confdefs.h
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for computed goto support" >&5
14066 $as_echo_n "checking for computed goto support... " >&6; }
14067 if ${pgac_cv_computed_goto+:} false; then :
14068 $as_echo_n "(cached) " >&6
14070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14071 /* end confdefs.h. */
14076 void *labeladdrs[] = {&&my_label};
14077 goto *labeladdrs[0];
14085 if ac_fn_c_try_compile "$LINENO"; then :
14086 pgac_cv_computed_goto=yes
14088 pgac_cv_computed_goto=no
14090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_computed_goto" >&5
14093 $as_echo "$pgac_cv_computed_goto" >&6; }
14094 if test x"$pgac_cv_computed_goto" = xyes ; then
14096 $as_echo "#define HAVE_COMPUTED_GOTO 1" >>confdefs.h
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
14100 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
14101 if ${ac_cv_struct_tm+:} false; then :
14102 $as_echo_n "(cached) " >&6
14104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14105 /* end confdefs.h. */
14106 #include <sys/types.h>
14113 int *p = &tm.tm_sec;
14119 if ac_fn_c_try_compile "$LINENO"; then :
14120 ac_cv_struct_tm=time.h
14122 ac_cv_struct_tm=sys/time.h
14124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
14127 $as_echo "$ac_cv_struct_tm" >&6; }
14128 if test $ac_cv_struct_tm = sys/time.h; then
14130 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
14134 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
14135 #include <$ac_cv_struct_tm>
14138 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
14140 cat >>confdefs.h <<_ACEOF
14141 #define HAVE_STRUCT_TM_TM_ZONE 1
14147 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
14149 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
14153 $as_echo_n "checking for tzname... " >&6; }
14154 if ${ac_cv_var_tzname+:} false; then :
14155 $as_echo_n "(cached) " >&6
14157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14158 /* end confdefs.h. */
14159 #include <stdlib.h>
14161 #ifndef tzname /* For SGI. */
14162 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
14173 if ac_fn_c_try_link "$LINENO"; then :
14174 ac_cv_var_tzname=yes
14176 ac_cv_var_tzname=no
14178 rm -f core conftest.err conftest.$ac_objext \
14179 conftest$ac_exeext conftest.$ac_ext
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
14182 $as_echo "$ac_cv_var_tzname" >&6; }
14183 if test $ac_cv_var_tzname = yes; then
14185 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
14189 ac_fn_c_check_type "$LINENO" "union semun" "ac_cv_type_union_semun" "#include <sys/types.h>
14190 #ifdef HAVE_SYS_IPC_H
14191 #include <sys/ipc.h>
14193 #ifdef HAVE_SYS_SEM_H
14194 #include <sys/sem.h>
14197 if test "x$ac_cv_type_union_semun" = xyes; then :
14199 cat >>confdefs.h <<_ACEOF
14200 #define HAVE_UNION_SEMUN 1
14206 ac_fn_c_check_type "$LINENO" "struct sockaddr_un" "ac_cv_type_struct_sockaddr_un" "#include <sys/types.h>
14207 #ifdef HAVE_SYS_UN_H
14208 #include <sys/un.h>
14212 if test "x$ac_cv_type_struct_sockaddr_un" = xyes; then :
14214 $as_echo "#define HAVE_UNIX_SOCKETS 1" >>confdefs.h
14218 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
14219 #include <sys/socket.h>
14222 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
14224 cat >>confdefs.h <<_ACEOF
14225 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
14231 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
14232 #include <sys/socket.h>
14235 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
14237 cat >>confdefs.h <<_ACEOF
14238 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
14243 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "#include <sys/types.h>
14244 #include <sys/socket.h>
14247 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then :
14249 cat >>confdefs.h <<_ACEOF
14250 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
14255 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_len" "ac_cv_member_struct_sockaddr_storage_ss_len" "#include <sys/types.h>
14256 #include <sys/socket.h>
14259 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = xyes; then :
14261 cat >>confdefs.h <<_ACEOF
14262 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
14267 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_len" "ac_cv_member_struct_sockaddr_storage___ss_len" "#include <sys/types.h>
14268 #include <sys/socket.h>
14271 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = xyes; then :
14273 cat >>confdefs.h <<_ACEOF
14274 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
14279 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
14280 #include <sys/socket.h>
14283 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
14285 cat >>confdefs.h <<_ACEOF
14286 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
14292 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
14293 #include <sys/socket.h>
14297 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
14299 cat >>confdefs.h <<_ACEOF
14300 #define HAVE_STRUCT_ADDRINFO 1
14307 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
14308 if test "x$ac_cv_type_intptr_t" = xyes; then :
14310 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
14313 for ac_type in 'int' 'long int' 'long long int'; do
14314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14315 /* end confdefs.h. */
14316 $ac_includes_default
14320 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
14321 test_array [0] = 0;
14322 return test_array [0];
14328 if ac_fn_c_try_compile "$LINENO"; then :
14330 cat >>confdefs.h <<_ACEOF
14331 #define intptr_t $ac_type
14336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14337 test -z "$ac_type" && break
14343 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
14344 if test "x$ac_cv_type_uintptr_t" = xyes; then :
14346 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
14349 for ac_type in 'unsigned int' 'unsigned long int' \
14350 'unsigned long long int'; do
14351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14352 /* end confdefs.h. */
14353 $ac_includes_default
14357 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
14358 test_array [0] = 0;
14359 return test_array [0];
14365 if ac_fn_c_try_compile "$LINENO"; then :
14367 cat >>confdefs.h <<_ACEOF
14368 #define uintptr_t $ac_type
14373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14374 test -z "$ac_type" && break
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
14381 $as_echo_n "checking for unsigned long long int... " >&6; }
14382 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
14383 $as_echo_n "(cached) " >&6
14385 ac_cv_type_unsigned_long_long_int=yes
14386 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
14387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14388 /* end confdefs.h. */
14390 /* For now, do not test the preprocessor; as of 2007 there are too many
14391 implementations with broken preprocessors. Perhaps this can
14392 be revisited in 2012. In the meantime, code should not expect
14393 #if to work with literals wider than 32 bits. */
14394 /* Test literals. */
14395 long long int ll = 9223372036854775807ll;
14396 long long int nll = -9223372036854775807LL;
14397 unsigned long long int ull = 18446744073709551615ULL;
14398 /* Test constant expressions. */
14399 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
14401 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
14407 /* Test availability of runtime routines for shift and division. */
14408 long long int llmax = 9223372036854775807ll;
14409 unsigned long long int ullmax = 18446744073709551615ull;
14410 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
14411 | (llmax / ll) | (llmax % ll)
14412 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
14413 | (ullmax / ull) | (ullmax % ull));
14419 if ac_fn_c_try_link "$LINENO"; then :
14422 ac_cv_type_unsigned_long_long_int=no
14424 rm -f core conftest.err conftest.$ac_objext \
14425 conftest$ac_exeext conftest.$ac_ext
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
14429 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
14430 if test $ac_cv_type_unsigned_long_long_int = yes; then
14432 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
14439 $as_echo_n "checking for long long int... " >&6; }
14440 if ${ac_cv_type_long_long_int+:} false; then :
14441 $as_echo_n "(cached) " >&6
14443 ac_cv_type_long_long_int=yes
14444 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
14445 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
14446 if test $ac_cv_type_long_long_int = yes; then
14447 if test "$cross_compiling" = yes; then :
14450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14451 /* end confdefs.h. */
14452 #include <limits.h>
14455 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
14456 # define LLONG_MAX (HALF - 1 + HALF)
14461 long long int n = 1;
14465 long long int m = n << i;
14468 if (LLONG_MAX / 2 < m)
14476 if ac_fn_c_try_run "$LINENO"; then :
14479 ac_cv_type_long_long_int=no
14481 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14482 conftest.$ac_objext conftest.beam conftest.$ac_ext
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
14489 $as_echo "$ac_cv_type_long_long_int" >&6; }
14490 if test $ac_cv_type_long_long_int = yes; then
14492 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale_t" >&5
14498 $as_echo_n "checking for locale_t... " >&6; }
14499 if ${pgac_cv_type_locale_t+:} false; then :
14500 $as_echo_n "(cached) " >&6
14502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14503 /* end confdefs.h. */
14504 #include <locale.h>
14514 if ac_fn_c_try_compile "$LINENO"; then :
14515 pgac_cv_type_locale_t=yes
14517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14518 /* end confdefs.h. */
14519 #include <xlocale.h>
14529 if ac_fn_c_try_compile "$LINENO"; then :
14530 pgac_cv_type_locale_t='yes (in xlocale.h)'
14532 pgac_cv_type_locale_t=no
14534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_locale_t" >&5
14539 $as_echo "$pgac_cv_type_locale_t" >&6; }
14540 if test "$pgac_cv_type_locale_t" != no; then
14542 $as_echo "#define HAVE_LOCALE_T 1" >>confdefs.h
14545 if test "$pgac_cv_type_locale_t" = 'yes (in xlocale.h)'; then
14547 $as_echo "#define LOCALE_T_IN_XLOCALE 1" >>confdefs.h
14551 # MSVC doesn't cope well with defining restrict to __restrict, the
14552 # spelling it understands, because it conflicts with
14553 # __declspec(restrict). Therefore we define pg_restrict to the
14554 # appropriate definition, which presumably won't conflict.
14556 # Allow platforms with buggy compilers to force restrict to not be
14557 # used by setting $FORCE_DISABLE_RESTRICT=yes in the relevant
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
14560 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
14561 if ${ac_cv_c_restrict+:} false; then :
14562 $as_echo_n "(cached) " >&6
14564 ac_cv_c_restrict=no
14565 # The order here caters to the fact that C++ does not require restrict.
14566 for ac_kw in __restrict __restrict__ _Restrict restrict; do
14567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14568 /* end confdefs.h. */
14569 typedef int * int_ptr;
14570 int foo (int_ptr $ac_kw ip) {
14577 int * $ac_kw t = s;
14584 if ac_fn_c_try_compile "$LINENO"; then :
14585 ac_cv_c_restrict=$ac_kw
14587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14588 test "$ac_cv_c_restrict" != no && break
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
14593 $as_echo "$ac_cv_c_restrict" >&6; }
14595 case $ac_cv_c_restrict in
14597 no) $as_echo "#define restrict /**/" >>confdefs.h
14599 *) cat >>confdefs.h <<_ACEOF
14600 #define restrict $ac_cv_c_restrict
14605 if test "$ac_cv_c_restrict" = "no" -o "x$FORCE_DISABLE_RESTRICT" = "xyes"; then
14608 pg_restrict="$ac_cv_c_restrict"
14611 cat >>confdefs.h <<_ACEOF
14612 #define pg_restrict $pg_restrict
14616 ac_fn_c_check_type "$LINENO" "struct cmsgcred" "ac_cv_type_struct_cmsgcred" "#include <sys/socket.h>
14617 #include <sys/param.h>
14618 #ifdef HAVE_SYS_UCRED_H
14619 #include <sys/ucred.h>
14622 if test "x$ac_cv_type_struct_cmsgcred" = xyes; then :
14624 cat >>confdefs.h <<_ACEOF
14625 #define HAVE_STRUCT_CMSGCRED 1
14632 ac_fn_c_check_type "$LINENO" "struct option" "ac_cv_type_struct_option" "#ifdef HAVE_GETOPT_H
14633 #include <getopt.h>
14636 if test "x$ac_cv_type_struct_option" = xyes; then :
14638 cat >>confdefs.h <<_ACEOF
14639 #define HAVE_STRUCT_OPTION 1
14646 if test "$with_zlib" = yes; then
14647 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
14648 # did not). While we could work around the lack of z_streamp, it
14649 # seems unwise to encourage people to use such old zlib versions...
14650 ac_fn_c_check_type "$LINENO" "z_streamp" "ac_cv_type_z_streamp" "#include <zlib.h>
14652 if test "x$ac_cv_type_z_streamp" = xyes; then :
14655 as_fn_error $? "zlib version is too old
14656 Use --without-zlib to disable zlib support." "$LINENO" 5
14661 # On PPC, check if assembler supports LWARX instruction's mutex hint bit
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports lwarx hint bit" >&5
14665 $as_echo_n "checking whether assembler supports lwarx hint bit... " >&6; }
14666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14667 /* end confdefs.h. */
14672 int a = 0; int *p = &a; int r;
14673 __asm__ __volatile__ (" lwarx %0,0,%1,1\n" : "=&r"(r) : "r"(p));
14678 if ac_fn_c_try_compile "$LINENO"; then :
14679 pgac_cv_have_ppc_mutex_hint=yes
14681 pgac_cv_have_ppc_mutex_hint=no
14683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_have_ppc_mutex_hint" >&5
14685 $as_echo "$pgac_cv_have_ppc_mutex_hint" >&6; }
14686 if test x"$pgac_cv_have_ppc_mutex_hint" = xyes ; then
14688 $as_echo "#define HAVE_PPC_LWARX_MUTEX_HINT 1" >>confdefs.h
14694 # Check largefile support. You might think this is a system service not a
14695 # compiler characteristic, but you'd be wrong. We must check this before
14696 # probing existence of related functions such as fseeko, since the largefile
14697 # defines can affect what is generated for that.
14698 if test "$PORTNAME" != "win32"; then
14699 # Check whether --enable-largefile was given.
14700 if test "${enable_largefile+set}" = set; then :
14701 enableval=$enable_largefile;
14704 if test "$enable_largefile" != no; then
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
14707 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
14708 if ${ac_cv_sys_largefile_CC+:} false; then :
14709 $as_echo_n "(cached) " >&6
14711 ac_cv_sys_largefile_CC=no
14712 if test "$GCC" != yes; then
14715 # IRIX 6.2 and later do not support large files by default,
14716 # so use the C compiler's -n32 option if that helps.
14717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14718 /* end confdefs.h. */
14719 #include <sys/types.h>
14720 /* Check that off_t can represent 2**63 - 1 correctly.
14721 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14722 since some C++ compilers masquerading as C compilers
14723 incorrectly reject 9223372036854775807. */
14724 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14725 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14726 && LARGE_OFF_T % 2147483647 == 1)
14736 if ac_fn_c_try_compile "$LINENO"; then :
14739 rm -f core conftest.err conftest.$ac_objext
14741 if ac_fn_c_try_compile "$LINENO"; then :
14742 ac_cv_sys_largefile_CC=' -n32'; break
14744 rm -f core conftest.err conftest.$ac_objext
14748 rm -f conftest.$ac_ext
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
14752 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
14753 if test "$ac_cv_sys_largefile_CC" != no; then
14754 CC=$CC$ac_cv_sys_largefile_CC
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14758 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14759 if ${ac_cv_sys_file_offset_bits+:} false; then :
14760 $as_echo_n "(cached) " >&6
14763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14764 /* end confdefs.h. */
14765 #include <sys/types.h>
14766 /* Check that off_t can represent 2**63 - 1 correctly.
14767 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14768 since some C++ compilers masquerading as C compilers
14769 incorrectly reject 9223372036854775807. */
14770 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14771 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14772 && LARGE_OFF_T % 2147483647 == 1)
14782 if ac_fn_c_try_compile "$LINENO"; then :
14783 ac_cv_sys_file_offset_bits=no; break
14785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14787 /* end confdefs.h. */
14788 #define _FILE_OFFSET_BITS 64
14789 #include <sys/types.h>
14790 /* Check that off_t can represent 2**63 - 1 correctly.
14791 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14792 since some C++ compilers masquerading as C compilers
14793 incorrectly reject 9223372036854775807. */
14794 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14795 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14796 && LARGE_OFF_T % 2147483647 == 1)
14806 if ac_fn_c_try_compile "$LINENO"; then :
14807 ac_cv_sys_file_offset_bits=64; break
14809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14810 ac_cv_sys_file_offset_bits=unknown
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
14815 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
14816 case $ac_cv_sys_file_offset_bits in #(
14819 cat >>confdefs.h <<_ACEOF
14820 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14825 if test $ac_cv_sys_file_offset_bits = unknown; then
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
14827 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
14828 if ${ac_cv_sys_large_files+:} false; then :
14829 $as_echo_n "(cached) " >&6
14832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14833 /* end confdefs.h. */
14834 #include <sys/types.h>
14835 /* Check that off_t can represent 2**63 - 1 correctly.
14836 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14837 since some C++ compilers masquerading as C compilers
14838 incorrectly reject 9223372036854775807. */
14839 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14840 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14841 && LARGE_OFF_T % 2147483647 == 1)
14851 if ac_fn_c_try_compile "$LINENO"; then :
14852 ac_cv_sys_large_files=no; break
14854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14856 /* end confdefs.h. */
14857 #define _LARGE_FILES 1
14858 #include <sys/types.h>
14859 /* Check that off_t can represent 2**63 - 1 correctly.
14860 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14861 since some C++ compilers masquerading as C compilers
14862 incorrectly reject 9223372036854775807. */
14863 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14864 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14865 && LARGE_OFF_T % 2147483647 == 1)
14875 if ac_fn_c_try_compile "$LINENO"; then :
14876 ac_cv_sys_large_files=1; break
14878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14879 ac_cv_sys_large_files=unknown
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
14884 $as_echo "$ac_cv_sys_large_files" >&6; }
14885 case $ac_cv_sys_large_files in #(
14888 cat >>confdefs.h <<_ACEOF
14889 #define _LARGE_FILES $ac_cv_sys_large_files
14902 # Check for largefile support (must be after AC_SYS_LARGEFILE)
14903 # The cast to long int works around a bug in the HP C Compiler
14904 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14905 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14906 # This bug is HP SR number 8606223364.
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
14908 $as_echo_n "checking size of off_t... " >&6; }
14909 if ${ac_cv_sizeof_off_t+:} false; then :
14910 $as_echo_n "(cached) " >&6
14912 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
14915 if test "$ac_cv_type_off_t" = yes; then
14916 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14917 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14918 as_fn_error 77 "cannot compute sizeof (off_t)
14919 See \`config.log' for more details" "$LINENO" 5; }
14921 ac_cv_sizeof_off_t=0
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
14927 $as_echo "$ac_cv_sizeof_off_t" >&6; }
14931 cat >>confdefs.h <<_ACEOF
14932 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
14937 # If we don't have largefile support, can't handle segsize >= 2GB.
14938 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
14939 as_fn_error $? "Large file support is not enabled. Segment size cannot be larger than 1GB." "$LINENO" 5
14942 # The cast to long int works around a bug in the HP C Compiler
14943 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14944 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14945 # This bug is HP SR number 8606223364.
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of bool" >&5
14947 $as_echo_n "checking size of bool... " >&6; }
14948 if ${ac_cv_sizeof_bool+:} false; then :
14949 $as_echo_n "(cached) " >&6
14951 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (bool))" "ac_cv_sizeof_bool" "#ifdef HAVE_STDBOOL_H
14952 #include <stdbool.h>
14957 if test "$ac_cv_type_bool" = yes; then
14958 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14959 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14960 as_fn_error 77 "cannot compute sizeof (bool)
14961 See \`config.log' for more details" "$LINENO" 5; }
14963 ac_cv_sizeof_bool=0
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_bool" >&5
14969 $as_echo "$ac_cv_sizeof_bool" >&6; }
14973 cat >>confdefs.h <<_ACEOF
14974 #define SIZEOF_BOOL $ac_cv_sizeof_bool
14981 ## Functions, global variables
14984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int timezone" >&5
14985 $as_echo_n "checking for int timezone... " >&6; }
14986 if ${pgac_cv_var_int_timezone+:} false; then :
14987 $as_echo_n "(cached) " >&6
14989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14990 /* end confdefs.h. */
14997 res = timezone / 60;
14999 res = _timezone / 60;
15005 if ac_fn_c_try_link "$LINENO"; then :
15006 pgac_cv_var_int_timezone=yes
15008 pgac_cv_var_int_timezone=no
15010 rm -f core conftest.err conftest.$ac_objext \
15011 conftest$ac_exeext conftest.$ac_ext
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_timezone" >&5
15014 $as_echo "$pgac_cv_var_int_timezone" >&6; }
15015 if test x"$pgac_cv_var_int_timezone" = xyes ; then
15017 $as_echo "#define HAVE_INT_TIMEZONE 1" >>confdefs.h
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for accept()" >&5
15021 $as_echo_n "checking types of arguments for accept()... " >&6; }
15022 if ${ac_cv_func_accept_return+:} false; then :
15023 $as_echo_n "(cached) " >&6
15025 if ${ac_cv_func_accept_arg1+:} false; then :
15026 $as_echo_n "(cached) " >&6
15028 if ${ac_cv_func_accept_arg2+:} false; then :
15029 $as_echo_n "(cached) " >&6
15031 if ${ac_cv_func_accept_arg3+:} false; then :
15032 $as_echo_n "(cached) " >&6
15034 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL' 'SOCKET WSAAPI'; do
15035 for ac_cv_func_accept_arg1 in 'int' 'unsigned int' 'SOCKET'; do
15036 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
15037 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
15038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15039 /* end confdefs.h. */
15040 #include <sys/types.h>
15041 #include <sys/socket.h>
15042 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
15044 if ac_fn_c_try_compile "$LINENO"; then :
15045 ac_not_found=no; break 4
15049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15054 if test "$ac_not_found" = yes; then
15055 as_fn_error $? "could not determine argument types" "$LINENO" 5
15057 if test "$ac_cv_func_accept_arg3" = "void"; then
15058 ac_cv_func_accept_arg3=int
15068 { $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
15069 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
15071 cat >>confdefs.h <<_ACEOF
15072 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
15076 cat >>confdefs.h <<_ACEOF
15077 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
15081 cat >>confdefs.h <<_ACEOF
15082 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
15086 cat >>confdefs.h <<_ACEOF
15087 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday takes only one argument" >&5
15092 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
15093 if ${pgac_cv_func_gettimeofday_1arg+:} false; then :
15094 $as_echo_n "(cached) " >&6
15096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15097 /* end confdefs.h. */
15098 #include <sys/time.h>
15102 struct timeval *tp;
15103 struct timezone *tzp;
15104 gettimeofday(tp,tzp);
15109 if ac_fn_c_try_compile "$LINENO"; then :
15110 pgac_cv_func_gettimeofday_1arg=no
15112 pgac_cv_func_gettimeofday_1arg=yes
15114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_gettimeofday_1arg" >&5
15117 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
15118 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
15120 $as_echo "#define GETTIMEOFDAY_1ARG 1" >>confdefs.h
15124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wcstombs_l declaration" >&5
15125 $as_echo_n "checking for wcstombs_l declaration... " >&6; }
15126 if ${pgac_cv_func_wcstombs_l+:} false; then :
15127 $as_echo_n "(cached) " >&6
15129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15130 /* end confdefs.h. */
15131 #include <stdlib.h>
15132 #include <locale.h>
15143 if ac_fn_c_try_compile "$LINENO"; then :
15144 pgac_cv_func_wcstombs_l='yes'
15146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15147 /* end confdefs.h. */
15148 #include <stdlib.h>
15149 #include <locale.h>
15150 #include <xlocale.h>
15161 if ac_fn_c_try_compile "$LINENO"; then :
15162 pgac_cv_func_wcstombs_l='yes (in xlocale.h)'
15164 pgac_cv_func_wcstombs_l='no'
15166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_wcstombs_l" >&5
15171 $as_echo "$pgac_cv_func_wcstombs_l" >&6; }
15172 if test "$pgac_cv_func_wcstombs_l" = 'yes (in xlocale.h)'; then
15174 $as_echo "#define WCSTOMBS_L_IN_XLOCALE 1" >>confdefs.h
15178 # Some versions of libedit contain strlcpy(), setproctitle(), and other
15179 # symbols that that library has no business exposing to the world. Pending
15180 # acquisition of a clue by those developers, ignore libedit (including its
15181 # possible alias of libreadline) while checking for everything else.
15182 LIBS_including_readline="$LIBS"
15183 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
15185 for ac_func in cbrt clock_gettime copyfile fdatasync getifaddrs getpeerucred getrlimit mbstowcs_l memmove poll posix_fallocate ppoll pstat pthread_is_threaded_np readlink setproctitle setproctitle_fast setsid shm_open strchrnul symlink sync_file_range utime utimes wcstombs_l
15187 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15188 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15189 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15190 cat >>confdefs.h <<_ACEOF
15191 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15198 ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
15199 if test "x$ac_cv_func_fseeko" = xyes; then :
15200 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
15203 case " $LIBOBJS " in
15204 *" fseeko.$ac_objext "* ) ;;
15205 *) LIBOBJS="$LIBOBJS fseeko.$ac_objext"
15213 # NetBSD uses a custom fseeko/ftello built on fsetpos/fgetpos
15214 # Mingw uses macros to access Win32 API calls
15217 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
15219 ac_cv_func_fseeko=yes;;
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15222 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
15223 if ${ac_cv_sys_largefile_source+:} false; then :
15224 $as_echo_n "(cached) " >&6
15227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15228 /* end confdefs.h. */
15229 #include <sys/types.h> /* for off_t */
15234 int (*fp) (FILE *, off_t, int) = fseeko;
15235 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15240 if ac_fn_c_try_link "$LINENO"; then :
15241 ac_cv_sys_largefile_source=no; break
15243 rm -f core conftest.err conftest.$ac_objext \
15244 conftest$ac_exeext conftest.$ac_ext
15245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15246 /* end confdefs.h. */
15247 #define _LARGEFILE_SOURCE 1
15248 #include <sys/types.h> /* for off_t */
15253 int (*fp) (FILE *, off_t, int) = fseeko;
15254 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15259 if ac_fn_c_try_link "$LINENO"; then :
15260 ac_cv_sys_largefile_source=1; break
15262 rm -f core conftest.err conftest.$ac_objext \
15263 conftest$ac_exeext conftest.$ac_ext
15264 ac_cv_sys_largefile_source=unknown
15268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
15269 $as_echo "$ac_cv_sys_largefile_source" >&6; }
15270 case $ac_cv_sys_largefile_source in #(
15273 cat >>confdefs.h <<_ACEOF
15274 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
15280 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
15281 # in glibc 2.1.3, but that breaks too many other things.
15282 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
15283 if test $ac_cv_sys_largefile_source != unknown; then
15285 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
15291 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
15292 # by calling it, 2009-04-02
15293 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
15294 if test "$PORTNAME" != "solaris"; then :
15296 for ac_func in posix_fadvise
15298 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
15299 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
15300 cat >>confdefs.h <<_ACEOF
15301 #define HAVE_POSIX_FADVISE 1
15307 ac_fn_c_check_decl "$LINENO" "posix_fadvise" "ac_cv_have_decl_posix_fadvise" "#include <fcntl.h>
15309 if test "x$ac_cv_have_decl_posix_fadvise" = xyes; then :
15315 cat >>confdefs.h <<_ACEOF
15316 #define HAVE_DECL_POSIX_FADVISE $ac_have_decl
15322 ac_fn_c_check_decl "$LINENO" "fdatasync" "ac_cv_have_decl_fdatasync" "#include <unistd.h>
15324 if test "x$ac_cv_have_decl_fdatasync" = xyes; then :
15330 cat >>confdefs.h <<_ACEOF
15331 #define HAVE_DECL_FDATASYNC $ac_have_decl
15334 ac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default"
15335 if test "x$ac_cv_have_decl_strlcat" = xyes; then :
15341 cat >>confdefs.h <<_ACEOF
15342 #define HAVE_DECL_STRLCAT $ac_have_decl
15344 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default"
15345 if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
15351 cat >>confdefs.h <<_ACEOF
15352 #define HAVE_DECL_STRLCPY $ac_have_decl
15354 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
15355 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
15361 cat >>confdefs.h <<_ACEOF
15362 #define HAVE_DECL_STRNLEN $ac_have_decl
15365 # This is probably only present on macOS, but may as well check always
15366 ac_fn_c_check_decl "$LINENO" "F_FULLFSYNC" "ac_cv_have_decl_F_FULLFSYNC" "#include <fcntl.h>
15368 if test "x$ac_cv_have_decl_F_FULLFSYNC" = xyes; then :
15374 cat >>confdefs.h <<_ACEOF
15375 #define HAVE_DECL_F_FULLFSYNC $ac_have_decl
15379 ac_fn_c_check_decl "$LINENO" "RTLD_GLOBAL" "ac_cv_have_decl_RTLD_GLOBAL" "#include <dlfcn.h>
15381 if test "x$ac_cv_have_decl_RTLD_GLOBAL" = xyes; then :
15387 cat >>confdefs.h <<_ACEOF
15388 #define HAVE_DECL_RTLD_GLOBAL $ac_have_decl
15390 ac_fn_c_check_decl "$LINENO" "RTLD_NOW" "ac_cv_have_decl_RTLD_NOW" "#include <dlfcn.h>
15392 if test "x$ac_cv_have_decl_RTLD_NOW" = xyes; then :
15398 cat >>confdefs.h <<_ACEOF
15399 #define HAVE_DECL_RTLD_NOW $ac_have_decl
15403 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "$ac_includes_default
15404 #include <netinet/in.h>
15406 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
15408 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
15413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PS_STRINGS" >&5
15414 $as_echo_n "checking for PS_STRINGS... " >&6; }
15415 if ${pgac_cv_var_PS_STRINGS+:} false; then :
15416 $as_echo_n "(cached) " >&6
15418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15419 /* end confdefs.h. */
15420 #include <machine/vmparam.h>
15421 #include <sys/exec.h>
15426 PS_STRINGS->ps_nargvstr = 1;
15427 PS_STRINGS->ps_argvstr = "foo";
15432 if ac_fn_c_try_link "$LINENO"; then :
15433 pgac_cv_var_PS_STRINGS=yes
15435 pgac_cv_var_PS_STRINGS=no
15437 rm -f core conftest.err conftest.$ac_objext \
15438 conftest$ac_exeext conftest.$ac_ext
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_PS_STRINGS" >&5
15441 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
15442 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
15444 $as_echo "#define HAVE_PS_STRINGS 1" >>confdefs.h
15449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
15450 $as_echo_n "checking for isinf... " >&6; }
15451 if ${ac_cv_func_isinf+:} false; then :
15452 $as_echo_n "(cached) " >&6
15454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15455 /* end confdefs.h. */
15458 double glob_double;
15463 return isinf(glob_double) ? 0 : 1;
15468 if ac_fn_c_try_link "$LINENO"; then :
15469 ac_cv_func_isinf=yes
15471 ac_cv_func_isinf=no
15473 rm -f core conftest.err conftest.$ac_objext \
15474 conftest$ac_exeext conftest.$ac_ext
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_isinf" >&5
15477 $as_echo "$ac_cv_func_isinf" >&6; }
15479 if test $ac_cv_func_isinf = yes ; then
15481 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
15484 case " $LIBOBJS " in
15485 *" isinf.$ac_objext "* ) ;;
15486 *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
15490 # Look for a way to implement a substitute for isinf()
15491 for ac_func in fpclass fp_class fp_class_d class
15493 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15494 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15495 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15496 cat >>confdefs.h <<_ACEOF
15497 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15505 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
15506 if test "x$ac_cv_func_crypt" = xyes; then :
15507 $as_echo "#define HAVE_CRYPT 1" >>confdefs.h
15510 case " $LIBOBJS " in
15511 *" crypt.$ac_objext "* ) ;;
15512 *) LIBOBJS="$LIBOBJS crypt.$ac_objext"
15518 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15519 if test "x$ac_cv_func_dlopen" = xyes; then :
15520 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
15523 case " $LIBOBJS " in
15524 *" dlopen.$ac_objext "* ) ;;
15525 *) LIBOBJS="$LIBOBJS dlopen.$ac_objext"
15531 ac_fn_c_check_func "$LINENO" "fls" "ac_cv_func_fls"
15532 if test "x$ac_cv_func_fls" = xyes; then :
15533 $as_echo "#define HAVE_FLS 1" >>confdefs.h
15536 case " $LIBOBJS " in
15537 *" fls.$ac_objext "* ) ;;
15538 *) LIBOBJS="$LIBOBJS fls.$ac_objext"
15544 ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
15545 if test "x$ac_cv_func_getopt" = xyes; then :
15546 $as_echo "#define HAVE_GETOPT 1" >>confdefs.h
15549 case " $LIBOBJS " in
15550 *" getopt.$ac_objext "* ) ;;
15551 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
15557 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
15558 if test "x$ac_cv_func_getrusage" = xyes; then :
15559 $as_echo "#define HAVE_GETRUSAGE 1" >>confdefs.h
15562 case " $LIBOBJS " in
15563 *" getrusage.$ac_objext "* ) ;;
15564 *) LIBOBJS="$LIBOBJS getrusage.$ac_objext"
15570 ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
15571 if test "x$ac_cv_func_inet_aton" = xyes; then :
15572 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
15575 case " $LIBOBJS " in
15576 *" inet_aton.$ac_objext "* ) ;;
15577 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
15583 ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
15584 if test "x$ac_cv_func_mkdtemp" = xyes; then :
15585 $as_echo "#define HAVE_MKDTEMP 1" >>confdefs.h
15588 case " $LIBOBJS " in
15589 *" mkdtemp.$ac_objext "* ) ;;
15590 *) LIBOBJS="$LIBOBJS mkdtemp.$ac_objext"
15596 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
15597 if test "x$ac_cv_func_pread" = xyes; then :
15598 $as_echo "#define HAVE_PREAD 1" >>confdefs.h
15601 case " $LIBOBJS " in
15602 *" pread.$ac_objext "* ) ;;
15603 *) LIBOBJS="$LIBOBJS pread.$ac_objext"
15609 ac_fn_c_check_func "$LINENO" "pwrite" "ac_cv_func_pwrite"
15610 if test "x$ac_cv_func_pwrite" = xyes; then :
15611 $as_echo "#define HAVE_PWRITE 1" >>confdefs.h
15614 case " $LIBOBJS " in
15615 *" pwrite.$ac_objext "* ) ;;
15616 *) LIBOBJS="$LIBOBJS pwrite.$ac_objext"
15622 ac_fn_c_check_func "$LINENO" "random" "ac_cv_func_random"
15623 if test "x$ac_cv_func_random" = xyes; then :
15624 $as_echo "#define HAVE_RANDOM 1" >>confdefs.h
15627 case " $LIBOBJS " in
15628 *" random.$ac_objext "* ) ;;
15629 *) LIBOBJS="$LIBOBJS random.$ac_objext"
15635 ac_fn_c_check_func "$LINENO" "rint" "ac_cv_func_rint"
15636 if test "x$ac_cv_func_rint" = xyes; then :
15637 $as_echo "#define HAVE_RINT 1" >>confdefs.h
15640 case " $LIBOBJS " in
15641 *" rint.$ac_objext "* ) ;;
15642 *) LIBOBJS="$LIBOBJS rint.$ac_objext"
15648 ac_fn_c_check_func "$LINENO" "srandom" "ac_cv_func_srandom"
15649 if test "x$ac_cv_func_srandom" = xyes; then :
15650 $as_echo "#define HAVE_SRANDOM 1" >>confdefs.h
15653 case " $LIBOBJS " in
15654 *" srandom.$ac_objext "* ) ;;
15655 *) LIBOBJS="$LIBOBJS srandom.$ac_objext"
15661 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
15662 if test "x$ac_cv_func_strlcat" = xyes; then :
15663 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
15666 case " $LIBOBJS " in
15667 *" strlcat.$ac_objext "* ) ;;
15668 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
15674 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
15675 if test "x$ac_cv_func_strlcpy" = xyes; then :
15676 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
15679 case " $LIBOBJS " in
15680 *" strlcpy.$ac_objext "* ) ;;
15681 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
15687 ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
15688 if test "x$ac_cv_func_strnlen" = xyes; then :
15689 $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h
15692 case " $LIBOBJS " in
15693 *" strnlen.$ac_objext "* ) ;;
15694 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
15704 # Windows uses a specialised env handler
15705 # and doesn't need a replacement getpeereid because it doesn't use
15709 $as_echo "#define HAVE_UNSETENV 1" >>confdefs.h
15712 $as_echo "#define HAVE_GETPEEREID 1" >>confdefs.h
15714 ac_cv_func_unsetenv=yes
15715 ac_cv_func_getpeereid=yes;;
15717 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
15718 if test "x$ac_cv_func_unsetenv" = xyes; then :
15719 $as_echo "#define HAVE_UNSETENV 1" >>confdefs.h
15722 case " $LIBOBJS " in
15723 *" unsetenv.$ac_objext "* ) ;;
15724 *) LIBOBJS="$LIBOBJS unsetenv.$ac_objext"
15730 ac_fn_c_check_func "$LINENO" "getpeereid" "ac_cv_func_getpeereid"
15731 if test "x$ac_cv_func_getpeereid" = xyes; then :
15732 $as_echo "#define HAVE_GETPEEREID 1" >>confdefs.h
15735 case " $LIBOBJS " in
15736 *" getpeereid.$ac_objext "* ) ;;
15737 *) LIBOBJS="$LIBOBJS getpeereid.$ac_objext"
15747 # System's version of getaddrinfo(), if any, may be used only if we found
15748 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
15749 # We use only our own getaddrinfo.c on Windows, but it's time to revisit that.
15750 if test x"$ac_cv_type_struct_addrinfo" = xyes && \
15751 test "$PORTNAME" != "win32"; then
15752 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
15753 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
15754 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
15757 case " $LIBOBJS " in
15758 *" getaddrinfo.$ac_objext "* ) ;;
15759 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
15767 case " $LIBOBJS " in
15768 *" getaddrinfo.$ac_objext "* ) ;;
15769 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
15775 # Similarly, use system's getopt_long() only if system provides struct option.
15776 if test x"$ac_cv_type_struct_option" = xyes ; then
15777 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
15778 if test "x$ac_cv_func_getopt_long" = xyes; then :
15779 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
15782 case " $LIBOBJS " in
15783 *" getopt_long.$ac_objext "* ) ;;
15784 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
15792 case " $LIBOBJS " in
15793 *" getopt_long.$ac_objext "* ) ;;
15794 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
15800 # Solaris' getopt() doesn't do what we want for long options, so always use
15801 # our version on that platform.
15802 if test "$PORTNAME" = "solaris"; then
15803 case " $LIBOBJS " in
15804 *" getopt.$ac_objext "* ) ;;
15805 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
15811 # mingw has adopted a GNU-centric interpretation of optind/optreset,
15812 # so always use our version on Windows.
15813 if test "$PORTNAME" = "win32"; then
15814 case " $LIBOBJS " in
15815 *" getopt.$ac_objext "* ) ;;
15816 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
15820 case " $LIBOBJS " in
15821 *" getopt_long.$ac_objext "* ) ;;
15822 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
15828 # Win32 (really MinGW) support
15829 if test "$PORTNAME" = "win32"; then
15830 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
15831 if test "x$ac_cv_func_gettimeofday" = xyes; then :
15832 $as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
15835 case " $LIBOBJS " in
15836 *" gettimeofday.$ac_objext "* ) ;;
15837 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
15844 case " $LIBOBJS " in
15845 *" dirmod.$ac_objext "* ) ;;
15846 *) LIBOBJS="$LIBOBJS dirmod.$ac_objext"
15850 case " $LIBOBJS " in
15851 *" kill.$ac_objext "* ) ;;
15852 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
15856 case " $LIBOBJS " in
15857 *" open.$ac_objext "* ) ;;
15858 *) LIBOBJS="$LIBOBJS open.$ac_objext"
15862 case " $LIBOBJS " in
15863 *" system.$ac_objext "* ) ;;
15864 *) LIBOBJS="$LIBOBJS system.$ac_objext"
15868 case " $LIBOBJS " in
15869 *" win32env.$ac_objext "* ) ;;
15870 *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
15874 case " $LIBOBJS " in
15875 *" win32error.$ac_objext "* ) ;;
15876 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
15880 case " $LIBOBJS " in
15881 *" win32security.$ac_objext "* ) ;;
15882 *) LIBOBJS="$LIBOBJS win32security.$ac_objext"
15886 case " $LIBOBJS " in
15887 *" win32setlocale.$ac_objext "* ) ;;
15888 *) LIBOBJS="$LIBOBJS win32setlocale.$ac_objext"
15893 $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h
15895 ac_fn_c_check_type "$LINENO" "MINIDUMP_TYPE" "ac_cv_type_MINIDUMP_TYPE" "
15896 #define WIN32_LEAN_AND_MEAN
15897 #include <windows.h>
15898 #include <string.h>
15899 #include <dbghelp.h>
15901 if test "x$ac_cv_type_MINIDUMP_TYPE" = xyes; then :
15903 cat >>confdefs.h <<_ACEOF
15904 #define HAVE_MINIDUMP_TYPE 1
15907 pgac_minidump_type=yes
15909 pgac_minidump_type=no
15913 if test x"$pgac_minidump_type" = x"yes" ; then
15914 have_win32_dbghelp=yes
15917 have_win32_dbghelp=no
15921 # Cygwin needs only a bit of that
15922 if test "$PORTNAME" = "cygwin"; then
15923 case " $LIBOBJS " in
15924 *" dirmod.$ac_objext "* ) ;;
15925 *) LIBOBJS="$LIBOBJS dirmod.$ac_objext"
15931 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
15932 /* NetBSD declares sys_siglist in unistd.h. */
15933 #ifdef HAVE_UNISTD_H
15934 # include <unistd.h>
15938 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
15944 cat >>confdefs.h <<_ACEOF
15945 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
15949 ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
15950 if test "x$ac_cv_func_syslog" = xyes; then :
15951 ac_fn_c_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
15952 if test "x$ac_cv_header_syslog_h" = xyes; then :
15954 $as_echo "#define HAVE_SYSLOG 1" >>confdefs.h
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opterr" >&5
15963 $as_echo_n "checking for opterr... " >&6; }
15964 if ${pgac_cv_var_int_opterr+:} false; then :
15965 $as_echo_n "(cached) " >&6
15967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15968 /* end confdefs.h. */
15969 #include <unistd.h>
15973 extern int opterr; opterr = 1;
15978 if ac_fn_c_try_link "$LINENO"; then :
15979 pgac_cv_var_int_opterr=yes
15981 pgac_cv_var_int_opterr=no
15983 rm -f core conftest.err conftest.$ac_objext \
15984 conftest$ac_exeext conftest.$ac_ext
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_opterr" >&5
15987 $as_echo "$pgac_cv_var_int_opterr" >&6; }
15988 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
15990 $as_echo "#define HAVE_INT_OPTERR 1" >>confdefs.h
15994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
15995 $as_echo_n "checking for optreset... " >&6; }
15996 if ${pgac_cv_var_int_optreset+:} false; then :
15997 $as_echo_n "(cached) " >&6
15999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16000 /* end confdefs.h. */
16001 #include <unistd.h>
16005 extern int optreset; optreset = 1;
16010 if ac_fn_c_try_link "$LINENO"; then :
16011 pgac_cv_var_int_optreset=yes
16013 pgac_cv_var_int_optreset=no
16015 rm -f core conftest.err conftest.$ac_objext \
16016 conftest$ac_exeext conftest.$ac_ext
16018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_optreset" >&5
16019 $as_echo "$pgac_cv_var_int_optreset" >&6; }
16020 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
16022 $as_echo "#define HAVE_INT_OPTRESET 1" >>confdefs.h
16026 for ac_func in strtoll __strtoll strtoq
16028 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16029 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16030 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16031 cat >>confdefs.h <<_ACEOF
16032 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16038 for ac_func in strtoull __strtoull strtouq
16040 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16041 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16042 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16043 cat >>confdefs.h <<_ACEOF
16044 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16050 # strto[u]ll may exist but not be declared
16051 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
16052 if test "x$ac_cv_have_decl_strtoll" = xyes; then :
16058 cat >>confdefs.h <<_ACEOF
16059 #define HAVE_DECL_STRTOLL $ac_have_decl
16061 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
16062 if test "x$ac_cv_have_decl_strtoull" = xyes; then :
16068 cat >>confdefs.h <<_ACEOF
16069 #define HAVE_DECL_STRTOULL $ac_have_decl
16073 if test "$with_icu" = yes; then
16074 ac_save_CPPFLAGS=$CPPFLAGS
16075 CPPFLAGS="$ICU_CFLAGS $CPPFLAGS"
16077 # Verify we have ICU's header files
16078 ac_fn_c_check_header_mongrel "$LINENO" "unicode/ucol.h" "ac_cv_header_unicode_ucol_h" "$ac_includes_default"
16079 if test "x$ac_cv_header_unicode_ucol_h" = xyes; then :
16082 as_fn_error $? "header file <unicode/ucol.h> is required for ICU" "$LINENO" 5
16087 CPPFLAGS=$ac_save_CPPFLAGS
16090 # Lastly, restore full LIBS list and check for readline/libedit symbols
16091 LIBS="$LIBS_including_readline"
16093 if test "$with_readline" = yes; then
16094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_append_character" >&5
16095 $as_echo_n "checking for rl_completion_append_character... " >&6; }
16096 if ${pgac_cv_var_rl_completion_append_character+:} false; then :
16097 $as_echo_n "(cached) " >&6
16099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16100 /* end confdefs.h. */
16102 #ifdef HAVE_READLINE_READLINE_H
16103 # include <readline/readline.h>
16104 #elif defined(HAVE_READLINE_H)
16105 # include <readline.h>
16111 rl_completion_append_character = 'x';
16116 if ac_fn_c_try_link "$LINENO"; then :
16117 pgac_cv_var_rl_completion_append_character=yes
16119 pgac_cv_var_rl_completion_append_character=no
16121 rm -f core conftest.err conftest.$ac_objext \
16122 conftest$ac_exeext conftest.$ac_ext
16124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_rl_completion_append_character" >&5
16125 $as_echo "$pgac_cv_var_rl_completion_append_character" >&6; }
16126 if test x"$pgac_cv_var_rl_completion_append_character" = x"yes"; then
16128 $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h
16131 for ac_func in rl_completion_matches rl_filename_completion_function rl_reset_screen_size
16133 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16134 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16135 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16136 cat >>confdefs.h <<_ACEOF
16137 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16143 for ac_func in append_history history_truncate_file
16145 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16146 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16147 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16148 cat >>confdefs.h <<_ACEOF
16149 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16158 # This test makes sure that run tests work at all. Sometimes a shared
16159 # library is found by the linker, but the runtime linker can't find it.
16160 # This check should come after all modifications of compiler or linker
16161 # variables, and before any other run tests.
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking test program" >&5
16163 $as_echo_n "checking test program... " >&6; }
16164 if test "$cross_compiling" = yes; then :
16165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
16166 $as_echo "cross-compiling" >&6; }
16168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16169 /* end confdefs.h. */
16170 int main() { return 0; }
16172 if ac_fn_c_try_run "$LINENO"; then :
16173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
16174 $as_echo "ok" >&6; }
16176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
16177 $as_echo "failed" >&6; }
16179 Could not execute a simple test program. This may be a problem
16180 related to locating shared libraries. Check the file 'config.log'
16181 for the exact reason." "$LINENO" 5
16183 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16184 conftest.$ac_objext conftest.beam conftest.$ac_ext
16188 # --------------------
16189 # Run tests below here
16190 # --------------------
16193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long int is 64 bits" >&5
16194 $as_echo_n "checking whether long int is 64 bits... " >&6; }
16195 if ${pgac_cv_type_long_int_64+:} false; then :
16196 $as_echo_n "(cached) " >&6
16198 if test "$cross_compiling" = yes; then :
16199 # If cross-compiling, check the size reported by the compiler and
16200 # trust that the arithmetic works.
16201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16202 /* end confdefs.h. */
16207 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
16208 test_array [0] = 0;
16209 return test_array [0];
16215 if ac_fn_c_try_compile "$LINENO"; then :
16216 pgac_cv_type_long_int_64=yes
16218 pgac_cv_type_long_int_64=no
16220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16223 /* end confdefs.h. */
16224 typedef long int ac_int64;
16227 * These are globals to discourage the compiler from folding all the
16228 * arithmetic tests down to compile-time constants.
16230 ac_int64 a = 20000001;
16231 ac_int64 b = 40000005;
16233 int does_int64_work()
16237 if (sizeof(ac_int64) != 8)
16238 return 0; /* definitely not the right size */
16240 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
16250 return (! does_int64_work());
16253 if ac_fn_c_try_run "$LINENO"; then :
16254 pgac_cv_type_long_int_64=yes
16256 pgac_cv_type_long_int_64=no
16258 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16259 conftest.$ac_objext conftest.beam conftest.$ac_ext
16263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_long_int_64" >&5
16264 $as_echo "$pgac_cv_type_long_int_64" >&6; }
16266 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
16267 if test x"$pgac_cv_type_long_int_64" = xyes ; then
16269 $as_echo "#define HAVE_LONG_INT_64 1" >>confdefs.h
16274 if test x"$HAVE_LONG_INT_64" = x"yes" ; then
16275 pg_int64_type="long int"
16277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long long int is 64 bits" >&5
16278 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
16279 if ${pgac_cv_type_long_long_int_64+:} false; then :
16280 $as_echo_n "(cached) " >&6
16282 if test "$cross_compiling" = yes; then :
16283 # If cross-compiling, check the size reported by the compiler and
16284 # trust that the arithmetic works.
16285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16286 /* end confdefs.h. */
16291 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
16292 test_array [0] = 0;
16293 return test_array [0];
16299 if ac_fn_c_try_compile "$LINENO"; then :
16300 pgac_cv_type_long_long_int_64=yes
16302 pgac_cv_type_long_long_int_64=no
16304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16307 /* end confdefs.h. */
16308 typedef long long int ac_int64;
16311 * These are globals to discourage the compiler from folding all the
16312 * arithmetic tests down to compile-time constants.
16314 ac_int64 a = 20000001;
16315 ac_int64 b = 40000005;
16317 int does_int64_work()
16321 if (sizeof(ac_int64) != 8)
16322 return 0; /* definitely not the right size */
16324 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
16334 return (! does_int64_work());
16337 if ac_fn_c_try_run "$LINENO"; then :
16338 pgac_cv_type_long_long_int_64=yes
16340 pgac_cv_type_long_long_int_64=no
16342 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16343 conftest.$ac_objext conftest.beam conftest.$ac_ext
16347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_long_long_int_64" >&5
16348 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
16350 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
16351 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
16353 $as_echo "#define HAVE_LONG_LONG_INT_64 1" >>confdefs.h
16357 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
16358 pg_int64_type="long long int"
16360 as_fn_error $? "Cannot find a working 64-bit integer type." "$LINENO" 5
16365 cat >>confdefs.h <<_ACEOF
16366 #define PG_INT64_TYPE $pg_int64_type
16370 # Select the printf length modifier that goes with that, too.
16371 if test x"$pg_int64_type" = x"long long int" ; then
16372 INT64_MODIFIER='"ll"'
16374 INT64_MODIFIER='"l"'
16378 cat >>confdefs.h <<_ACEOF
16379 #define INT64_MODIFIER $INT64_MODIFIER
16383 # has to be down here, rather than with the other builtins, because
16384 # the test uses PG_INT64_TYPE.
16385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_mul_overflow" >&5
16386 $as_echo_n "checking for __builtin_mul_overflow... " >&6; }
16387 if ${pgac_cv__builtin_op_overflow+:} false; then :
16388 $as_echo_n "(cached) " >&6
16390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16391 /* end confdefs.h. */
16393 PG_INT64_TYPE a = 1;
16394 PG_INT64_TYPE b = 1;
16395 PG_INT64_TYPE result;
16401 oflo = __builtin_mul_overflow(a, b, &result);
16406 if ac_fn_c_try_link "$LINENO"; then :
16407 pgac_cv__builtin_op_overflow=yes
16409 pgac_cv__builtin_op_overflow=no
16411 rm -f core conftest.err conftest.$ac_objext \
16412 conftest$ac_exeext conftest.$ac_ext
16414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_op_overflow" >&5
16415 $as_echo "$pgac_cv__builtin_op_overflow" >&6; }
16416 if test x"$pgac_cv__builtin_op_overflow" = xyes ; then
16418 $as_echo "#define HAVE__BUILTIN_OP_OVERFLOW 1" >>confdefs.h
16422 # Check size of void *, size_t (enables tweaks for > 32bit address space)
16423 # The cast to long int works around a bug in the HP C Compiler
16424 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16425 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16426 # This bug is HP SR number 8606223364.
16427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16428 $as_echo_n "checking size of void *... " >&6; }
16429 if ${ac_cv_sizeof_void_p+:} false; then :
16430 $as_echo_n "(cached) " >&6
16432 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
16435 if test "$ac_cv_type_void_p" = yes; then
16436 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16437 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16438 as_fn_error 77 "cannot compute sizeof (void *)
16439 See \`config.log' for more details" "$LINENO" 5; }
16441 ac_cv_sizeof_void_p=0
16446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16447 $as_echo "$ac_cv_sizeof_void_p" >&6; }
16451 cat >>confdefs.h <<_ACEOF
16452 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16456 # The cast to long int works around a bug in the HP C Compiler
16457 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16458 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16459 # This bug is HP SR number 8606223364.
16460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
16461 $as_echo_n "checking size of size_t... " >&6; }
16462 if ${ac_cv_sizeof_size_t+:} false; then :
16463 $as_echo_n "(cached) " >&6
16465 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
16468 if test "$ac_cv_type_size_t" = yes; then
16469 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16470 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16471 as_fn_error 77 "cannot compute sizeof (size_t)
16472 See \`config.log' for more details" "$LINENO" 5; }
16474 ac_cv_sizeof_size_t=0
16479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
16480 $as_echo "$ac_cv_sizeof_size_t" >&6; }
16484 cat >>confdefs.h <<_ACEOF
16485 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
16489 # The cast to long int works around a bug in the HP C Compiler
16490 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16491 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16492 # This bug is HP SR number 8606223364.
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16494 $as_echo_n "checking size of long... " >&6; }
16495 if ${ac_cv_sizeof_long+:} false; then :
16496 $as_echo_n "(cached) " >&6
16498 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16501 if test "$ac_cv_type_long" = yes; then
16502 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16503 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16504 as_fn_error 77 "cannot compute sizeof (long)
16505 See \`config.log' for more details" "$LINENO" 5; }
16507 ac_cv_sizeof_long=0
16512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16513 $as_echo "$ac_cv_sizeof_long" >&6; }
16517 cat >>confdefs.h <<_ACEOF
16518 #define SIZEOF_LONG $ac_cv_sizeof_long
16523 # Decide whether float4 is passed by value: user-selectable, enabled by default
16524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with float4 passed by value" >&5
16525 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
16528 # Check whether --enable-float4-byval was given.
16529 if test "${enable_float4_byval+set}" = set; then :
16530 enableval=$enable_float4_byval;
16534 $as_echo "#define USE_FLOAT4_BYVAL 1" >>confdefs.h
16536 float4passbyval=true
16539 float4passbyval=false
16542 as_fn_error $? "no argument expected for --enable-float4-byval option" "$LINENO" 5
16547 enable_float4_byval=yes
16549 $as_echo "#define USE_FLOAT4_BYVAL 1" >>confdefs.h
16551 float4passbyval=true
16555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_float4_byval" >&5
16556 $as_echo "$enable_float4_byval" >&6; }
16558 cat >>confdefs.h <<_ACEOF
16559 #define FLOAT4PASSBYVAL $float4passbyval
16563 # Decide whether float8 is passed by value.
16564 # Note: this setting also controls int8 and related types such as timestamp.
16565 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
16566 # If not, trying to select it is an error.
16567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with float8 passed by value" >&5
16568 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
16569 if test $ac_cv_sizeof_void_p -ge 8 ; then
16572 # Check whether --enable-float8-byval was given.
16573 if test "${enable_float8_byval+set}" = set; then :
16574 enableval=$enable_float8_byval;
16583 as_fn_error $? "no argument expected for --enable-float8-byval option" "$LINENO" 5
16588 enable_float8_byval=yes
16596 # Check whether --enable-float8-byval was given.
16597 if test "${enable_float8_byval+set}" = set; then :
16598 enableval=$enable_float8_byval;
16607 as_fn_error $? "no argument expected for --enable-float8-byval option" "$LINENO" 5
16612 enable_float8_byval=no
16617 if test "$enable_float8_byval" = yes ; then
16618 as_fn_error $? "--enable-float8-byval is not supported on 32-bit platforms." "$LINENO" 5
16621 if test "$enable_float8_byval" = yes ; then
16623 $as_echo "#define USE_FLOAT8_BYVAL 1" >>confdefs.h
16625 float8passbyval=true
16627 float8passbyval=false
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_float8_byval" >&5
16630 $as_echo "$enable_float8_byval" >&6; }
16632 cat >>confdefs.h <<_ACEOF
16633 #define FLOAT8PASSBYVAL $float8passbyval
16637 # Determine memory alignment requirements for the basic C data types.
16639 # The cast to long int works around a bug in the HP C Compiler,
16640 # see AC_CHECK_SIZEOF for more information.
16641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of short" >&5
16642 $as_echo_n "checking alignment of short... " >&6; }
16643 if ${ac_cv_alignof_short+:} false; then :
16644 $as_echo_n "(cached) " >&6
16646 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_short" "$ac_includes_default
16648 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16650 typedef struct { char x; short y; } ac__type_alignof_;"; then :
16653 if test "$ac_cv_type_short" = yes; then
16654 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16655 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16656 as_fn_error 77 "cannot compute alignment of short
16657 See \`config.log' for more details" "$LINENO" 5; }
16659 ac_cv_alignof_short=0
16664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_short" >&5
16665 $as_echo "$ac_cv_alignof_short" >&6; }
16669 cat >>confdefs.h <<_ACEOF
16670 #define ALIGNOF_SHORT $ac_cv_alignof_short
16674 # The cast to long int works around a bug in the HP C Compiler,
16675 # see AC_CHECK_SIZEOF for more information.
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int" >&5
16677 $as_echo_n "checking alignment of int... " >&6; }
16678 if ${ac_cv_alignof_int+:} false; then :
16679 $as_echo_n "(cached) " >&6
16681 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_int" "$ac_includes_default
16683 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16685 typedef struct { char x; int y; } ac__type_alignof_;"; then :
16688 if test "$ac_cv_type_int" = yes; then
16689 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16691 as_fn_error 77 "cannot compute alignment of int
16692 See \`config.log' for more details" "$LINENO" 5; }
16694 ac_cv_alignof_int=0
16699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_int" >&5
16700 $as_echo "$ac_cv_alignof_int" >&6; }
16704 cat >>confdefs.h <<_ACEOF
16705 #define ALIGNOF_INT $ac_cv_alignof_int
16709 # The cast to long int works around a bug in the HP C Compiler,
16710 # see AC_CHECK_SIZEOF for more information.
16711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long" >&5
16712 $as_echo_n "checking alignment of long... " >&6; }
16713 if ${ac_cv_alignof_long+:} false; then :
16714 $as_echo_n "(cached) " >&6
16716 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long" "$ac_includes_default
16718 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16720 typedef struct { char x; long y; } ac__type_alignof_;"; then :
16723 if test "$ac_cv_type_long" = yes; then
16724 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16725 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16726 as_fn_error 77 "cannot compute alignment of long
16727 See \`config.log' for more details" "$LINENO" 5; }
16729 ac_cv_alignof_long=0
16734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long" >&5
16735 $as_echo "$ac_cv_alignof_long" >&6; }
16739 cat >>confdefs.h <<_ACEOF
16740 #define ALIGNOF_LONG $ac_cv_alignof_long
16744 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
16745 # The cast to long int works around a bug in the HP C Compiler,
16746 # see AC_CHECK_SIZEOF for more information.
16747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long long int" >&5
16748 $as_echo_n "checking alignment of long long int... " >&6; }
16749 if ${ac_cv_alignof_long_long_int+:} false; then :
16750 $as_echo_n "(cached) " >&6
16752 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long_long_int" "$ac_includes_default
16754 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16756 typedef struct { char x; long long int y; } ac__type_alignof_;"; then :
16759 if test "$ac_cv_type_long_long_int" = yes; then
16760 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16761 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16762 as_fn_error 77 "cannot compute alignment of long long int
16763 See \`config.log' for more details" "$LINENO" 5; }
16765 ac_cv_alignof_long_long_int=0
16770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long_long_int" >&5
16771 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
16775 cat >>confdefs.h <<_ACEOF
16776 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
16781 # The cast to long int works around a bug in the HP C Compiler,
16782 # see AC_CHECK_SIZEOF for more information.
16783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of double" >&5
16784 $as_echo_n "checking alignment of double... " >&6; }
16785 if ${ac_cv_alignof_double+:} false; then :
16786 $as_echo_n "(cached) " >&6
16788 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_double" "$ac_includes_default
16790 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16792 typedef struct { char x; double y; } ac__type_alignof_;"; then :
16795 if test "$ac_cv_type_double" = yes; then
16796 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16797 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16798 as_fn_error 77 "cannot compute alignment of double
16799 See \`config.log' for more details" "$LINENO" 5; }
16801 ac_cv_alignof_double=0
16806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_double" >&5
16807 $as_echo "$ac_cv_alignof_double" >&6; }
16811 cat >>confdefs.h <<_ACEOF
16812 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
16817 # Compute maximum alignment of any basic type.
16818 # We assume long's alignment is at least as strong as char, short, or int;
16819 # but we must check long long (if it is being used for int64) and double.
16820 # Note that we intentionally do not consider any types wider than 64 bits,
16821 # as allowing MAXIMUM_ALIGNOF to exceed 8 would be too much of a penalty
16822 # for disk and memory space.
16824 MAX_ALIGNOF=$ac_cv_alignof_long
16825 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
16826 MAX_ALIGNOF=$ac_cv_alignof_double
16828 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
16829 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
16832 cat >>confdefs.h <<_ACEOF
16833 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
16838 # Some platforms predefine the types int8, int16, etc. Only check
16839 # a (hopefully) representative subset.
16840 ac_fn_c_check_type "$LINENO" "int8" "ac_cv_type_int8" "#include <stdio.h>
16842 if test "x$ac_cv_type_int8" = xyes; then :
16844 cat >>confdefs.h <<_ACEOF
16845 #define HAVE_INT8 1
16850 ac_fn_c_check_type "$LINENO" "uint8" "ac_cv_type_uint8" "#include <stdio.h>
16852 if test "x$ac_cv_type_uint8" = xyes; then :
16854 cat >>confdefs.h <<_ACEOF
16855 #define HAVE_UINT8 1
16860 ac_fn_c_check_type "$LINENO" "int64" "ac_cv_type_int64" "#include <stdio.h>
16862 if test "x$ac_cv_type_int64" = xyes; then :
16864 cat >>confdefs.h <<_ACEOF
16865 #define HAVE_INT64 1
16870 ac_fn_c_check_type "$LINENO" "uint64" "ac_cv_type_uint64" "#include <stdio.h>
16872 if test "x$ac_cv_type_uint64" = xyes; then :
16874 cat >>confdefs.h <<_ACEOF
16875 #define HAVE_UINT64 1
16882 # Some compilers offer a 128-bit integer scalar type.
16883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __int128" >&5
16884 $as_echo_n "checking for __int128... " >&6; }
16885 if ${pgac_cv__128bit_int+:} false; then :
16886 $as_echo_n "(cached) " >&6
16888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16889 /* end confdefs.h. */
16892 * We don't actually run this test, just link it to verify that any support
16893 * functions needed for __int128 are present.
16895 * These are globals to discourage the compiler from folding all the
16896 * arithmetic tests down to compile-time constants. We do not have
16897 * convenient support for 128bit literals at this point...
16899 __int128 a = 48828125;
16900 __int128 b = 97656250;
16907 a = (a << 12) + 1; /* 200000000001 */
16908 b = (b << 12) + 5; /* 400000000005 */
16909 /* try the most relevant arithmetic ops */
16912 /* must use the results, else compiler may optimize arithmetic away */
16920 if ac_fn_c_try_link "$LINENO"; then :
16921 pgac_cv__128bit_int=yes
16923 pgac_cv__128bit_int=no
16925 rm -f core conftest.err conftest.$ac_objext \
16926 conftest$ac_exeext conftest.$ac_ext
16928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__128bit_int" >&5
16929 $as_echo "$pgac_cv__128bit_int" >&6; }
16930 if test x"$pgac_cv__128bit_int" = xyes ; then
16931 # Use of non-default alignment with __int128 tickles bugs in some compilers.
16932 # If not cross-compiling, we can test for bugs and disable use of __int128
16933 # with buggy compilers. If cross-compiling, hope for the best.
16934 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83925
16935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __int128 alignment bug" >&5
16936 $as_echo_n "checking for __int128 alignment bug... " >&6; }
16937 if ${pgac_cv__128bit_int_bug+:} false; then :
16938 $as_echo_n "(cached) " >&6
16940 if test "$cross_compiling" = yes; then :
16941 pgac_cv__128bit_int_bug="assuming ok"
16943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16944 /* end confdefs.h. */
16946 /* This must match the corresponding code in c.h: */
16947 #if defined(__GNUC__) || defined(__SUNPRO_C) || defined(__IBMC__)
16948 #define pg_attribute_aligned(a) __attribute__((aligned(a)))
16950 typedef __int128 int128a
16951 #if defined(pg_attribute_aligned)
16952 pg_attribute_aligned(8)
16956 void pass_by_val(void *buffer, int128a par) { holder = par; }
16962 long int i64 = 97656225L << 12;
16964 pass_by_val(main, (int128a) i64);
16973 if ac_fn_c_try_run "$LINENO"; then :
16974 pgac_cv__128bit_int_bug=ok
16976 pgac_cv__128bit_int_bug=broken
16978 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16979 conftest.$ac_objext conftest.beam conftest.$ac_ext
16983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__128bit_int_bug" >&5
16984 $as_echo "$pgac_cv__128bit_int_bug" >&6; }
16985 if test x"$pgac_cv__128bit_int_bug" != xbroken ; then
16987 $as_echo "#define PG_INT128_TYPE __int128" >>confdefs.h
16989 # The cast to long int works around a bug in the HP C Compiler,
16990 # see AC_CHECK_SIZEOF for more information.
16991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of PG_INT128_TYPE" >&5
16992 $as_echo_n "checking alignment of PG_INT128_TYPE... " >&6; }
16993 if ${ac_cv_alignof_PG_INT128_TYPE+:} false; then :
16994 $as_echo_n "(cached) " >&6
16996 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_PG_INT128_TYPE" "$ac_includes_default
16998 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
17000 typedef struct { char x; PG_INT128_TYPE y; } ac__type_alignof_;"; then :
17003 if test "$ac_cv_type_PG_INT128_TYPE" = yes; then
17004 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17005 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17006 as_fn_error 77 "cannot compute alignment of PG_INT128_TYPE
17007 See \`config.log' for more details" "$LINENO" 5; }
17009 ac_cv_alignof_PG_INT128_TYPE=0
17014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_PG_INT128_TYPE" >&5
17015 $as_echo "$ac_cv_alignof_PG_INT128_TYPE" >&6; }
17019 cat >>confdefs.h <<_ACEOF
17020 #define ALIGNOF_PG_INT128_TYPE $ac_cv_alignof_PG_INT128_TYPE
17027 # Check for various atomic operations now that we have checked how to declare
17029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync char locking functions" >&5
17030 $as_echo_n "checking for builtin __sync char locking functions... " >&6; }
17031 if ${pgac_cv_gcc_sync_char_tas+:} false; then :
17032 $as_echo_n "(cached) " >&6
17034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17035 /* end confdefs.h. */
17041 __sync_lock_test_and_set(&lock, 1);
17042 __sync_lock_release(&lock);
17047 if ac_fn_c_try_link "$LINENO"; then :
17048 pgac_cv_gcc_sync_char_tas="yes"
17050 pgac_cv_gcc_sync_char_tas="no"
17052 rm -f core conftest.err conftest.$ac_objext \
17053 conftest$ac_exeext conftest.$ac_ext
17055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_char_tas" >&5
17056 $as_echo "$pgac_cv_gcc_sync_char_tas" >&6; }
17057 if test x"$pgac_cv_gcc_sync_char_tas" = x"yes"; then
17059 $as_echo "#define HAVE_GCC__SYNC_CHAR_TAS 1" >>confdefs.h
17062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int32 locking functions" >&5
17063 $as_echo_n "checking for builtin __sync int32 locking functions... " >&6; }
17064 if ${pgac_cv_gcc_sync_int32_tas+:} false; then :
17065 $as_echo_n "(cached) " >&6
17067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17068 /* end confdefs.h. */
17074 __sync_lock_test_and_set(&lock, 1);
17075 __sync_lock_release(&lock);
17080 if ac_fn_c_try_link "$LINENO"; then :
17081 pgac_cv_gcc_sync_int32_tas="yes"
17083 pgac_cv_gcc_sync_int32_tas="no"
17085 rm -f core conftest.err conftest.$ac_objext \
17086 conftest$ac_exeext conftest.$ac_ext
17088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int32_tas" >&5
17089 $as_echo "$pgac_cv_gcc_sync_int32_tas" >&6; }
17090 if test x"$pgac_cv_gcc_sync_int32_tas" = x"yes"; then
17092 $as_echo "#define HAVE_GCC__SYNC_INT32_TAS 1" >>confdefs.h
17095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int32 atomic operations" >&5
17096 $as_echo_n "checking for builtin __sync int32 atomic operations... " >&6; }
17097 if ${pgac_cv_gcc_sync_int32_cas+:} false; then :
17098 $as_echo_n "(cached) " >&6
17100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17101 /* end confdefs.h. */
17107 __sync_val_compare_and_swap(&val, 0, 37);
17112 if ac_fn_c_try_link "$LINENO"; then :
17113 pgac_cv_gcc_sync_int32_cas="yes"
17115 pgac_cv_gcc_sync_int32_cas="no"
17117 rm -f core conftest.err conftest.$ac_objext \
17118 conftest$ac_exeext conftest.$ac_ext
17120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int32_cas" >&5
17121 $as_echo "$pgac_cv_gcc_sync_int32_cas" >&6; }
17122 if test x"$pgac_cv_gcc_sync_int32_cas" = x"yes"; then
17124 $as_echo "#define HAVE_GCC__SYNC_INT32_CAS 1" >>confdefs.h
17127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int64 atomic operations" >&5
17128 $as_echo_n "checking for builtin __sync int64 atomic operations... " >&6; }
17129 if ${pgac_cv_gcc_sync_int64_cas+:} false; then :
17130 $as_echo_n "(cached) " >&6
17132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17133 /* end confdefs.h. */
17138 PG_INT64_TYPE lock = 0;
17139 __sync_val_compare_and_swap(&lock, 0, (PG_INT64_TYPE) 37);
17144 if ac_fn_c_try_link "$LINENO"; then :
17145 pgac_cv_gcc_sync_int64_cas="yes"
17147 pgac_cv_gcc_sync_int64_cas="no"
17149 rm -f core conftest.err conftest.$ac_objext \
17150 conftest$ac_exeext conftest.$ac_ext
17152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int64_cas" >&5
17153 $as_echo "$pgac_cv_gcc_sync_int64_cas" >&6; }
17154 if test x"$pgac_cv_gcc_sync_int64_cas" = x"yes"; then
17156 $as_echo "#define HAVE_GCC__SYNC_INT64_CAS 1" >>confdefs.h
17159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __atomic int32 atomic operations" >&5
17160 $as_echo_n "checking for builtin __atomic int32 atomic operations... " >&6; }
17161 if ${pgac_cv_gcc_atomic_int32_cas+:} false; then :
17162 $as_echo_n "(cached) " >&6
17164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17165 /* end confdefs.h. */
17172 __atomic_compare_exchange_n(&val, &expect, 37, 0, __ATOMIC_SEQ_CST, __ATOMIC_RELAXED);
17177 if ac_fn_c_try_link "$LINENO"; then :
17178 pgac_cv_gcc_atomic_int32_cas="yes"
17180 pgac_cv_gcc_atomic_int32_cas="no"
17182 rm -f core conftest.err conftest.$ac_objext \
17183 conftest$ac_exeext conftest.$ac_ext
17185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_atomic_int32_cas" >&5
17186 $as_echo "$pgac_cv_gcc_atomic_int32_cas" >&6; }
17187 if test x"$pgac_cv_gcc_atomic_int32_cas" = x"yes"; then
17189 $as_echo "#define HAVE_GCC__ATOMIC_INT32_CAS 1" >>confdefs.h
17192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __atomic int64 atomic operations" >&5
17193 $as_echo_n "checking for builtin __atomic int64 atomic operations... " >&6; }
17194 if ${pgac_cv_gcc_atomic_int64_cas+:} false; then :
17195 $as_echo_n "(cached) " >&6
17197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17198 /* end confdefs.h. */
17203 PG_INT64_TYPE val = 0;
17204 PG_INT64_TYPE expect = 0;
17205 __atomic_compare_exchange_n(&val, &expect, 37, 0, __ATOMIC_SEQ_CST, __ATOMIC_RELAXED);
17210 if ac_fn_c_try_link "$LINENO"; then :
17211 pgac_cv_gcc_atomic_int64_cas="yes"
17213 pgac_cv_gcc_atomic_int64_cas="no"
17215 rm -f core conftest.err conftest.$ac_objext \
17216 conftest$ac_exeext conftest.$ac_ext
17218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_atomic_int64_cas" >&5
17219 $as_echo "$pgac_cv_gcc_atomic_int64_cas" >&6; }
17220 if test x"$pgac_cv_gcc_atomic_int64_cas" = x"yes"; then
17222 $as_echo "#define HAVE_GCC__ATOMIC_INT64_CAS 1" >>confdefs.h
17227 # Check for x86 cpuid instruction
17228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __get_cpuid" >&5
17229 $as_echo_n "checking for __get_cpuid... " >&6; }
17230 if ${pgac_cv__get_cpuid+:} false; then :
17231 $as_echo_n "(cached) " >&6
17233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17234 /* end confdefs.h. */
17239 unsigned int exx[4] = {0, 0, 0, 0};
17240 __get_cpuid(1, &exx[0], &exx[1], &exx[2], &exx[3]);
17246 if ac_fn_c_try_link "$LINENO"; then :
17247 pgac_cv__get_cpuid="yes"
17249 pgac_cv__get_cpuid="no"
17251 rm -f core conftest.err conftest.$ac_objext \
17252 conftest$ac_exeext conftest.$ac_ext
17254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__get_cpuid" >&5
17255 $as_echo "$pgac_cv__get_cpuid" >&6; }
17256 if test x"$pgac_cv__get_cpuid" = x"yes"; then
17258 $as_echo "#define HAVE__GET_CPUID 1" >>confdefs.h
17262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __cpuid" >&5
17263 $as_echo_n "checking for __cpuid... " >&6; }
17264 if ${pgac_cv__cpuid+:} false; then :
17265 $as_echo_n "(cached) " >&6
17267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17268 /* end confdefs.h. */
17269 #include <intrin.h>
17273 unsigned int exx[4] = {0, 0, 0, 0};
17274 __get_cpuid(exx[0], 1);
17280 if ac_fn_c_try_link "$LINENO"; then :
17281 pgac_cv__cpuid="yes"
17283 pgac_cv__cpuid="no"
17285 rm -f core conftest.err conftest.$ac_objext \
17286 conftest$ac_exeext conftest.$ac_ext
17288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__cpuid" >&5
17289 $as_echo "$pgac_cv__cpuid" >&6; }
17290 if test x"$pgac_cv__cpuid" = x"yes"; then
17292 $as_echo "#define HAVE__CPUID 1" >>confdefs.h
17296 # Check for Intel SSE 4.2 intrinsics to do CRC calculations.
17298 # First check if the _mm_crc32_u8 and _mm_crc32_u64 intrinsics can be used
17299 # with the default compiler flags. If not, check if adding the -msse4.2
17300 # flag helps. CFLAGS_SSE42 is set to -msse4.2 if that's required.
17301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=" >&5
17302 $as_echo_n "checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=... " >&6; }
17303 if ${pgac_cv_sse42_crc32_intrinsics_+:} false; then :
17304 $as_echo_n "(cached) " >&6
17306 pgac_save_CFLAGS=$CFLAGS
17307 CFLAGS="$pgac_save_CFLAGS "
17308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17309 /* end confdefs.h. */
17310 #include <nmmintrin.h>
17314 unsigned int crc = 0;
17315 crc = _mm_crc32_u8(crc, 0);
17316 crc = _mm_crc32_u32(crc, 0);
17317 /* return computed value, to prevent the above being optimized away */
17323 if ac_fn_c_try_link "$LINENO"; then :
17324 pgac_cv_sse42_crc32_intrinsics_=yes
17326 pgac_cv_sse42_crc32_intrinsics_=no
17328 rm -f core conftest.err conftest.$ac_objext \
17329 conftest$ac_exeext conftest.$ac_ext
17330 CFLAGS="$pgac_save_CFLAGS"
17332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_sse42_crc32_intrinsics_" >&5
17333 $as_echo "$pgac_cv_sse42_crc32_intrinsics_" >&6; }
17334 if test x"$pgac_cv_sse42_crc32_intrinsics_" = x"yes"; then
17336 pgac_sse42_crc32_intrinsics=yes
17339 if test x"$pgac_sse42_crc32_intrinsics" != x"yes"; then
17340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=-msse4.2" >&5
17341 $as_echo_n "checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=-msse4.2... " >&6; }
17342 if ${pgac_cv_sse42_crc32_intrinsics__msse4_2+:} false; then :
17343 $as_echo_n "(cached) " >&6
17345 pgac_save_CFLAGS=$CFLAGS
17346 CFLAGS="$pgac_save_CFLAGS -msse4.2"
17347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17348 /* end confdefs.h. */
17349 #include <nmmintrin.h>
17353 unsigned int crc = 0;
17354 crc = _mm_crc32_u8(crc, 0);
17355 crc = _mm_crc32_u32(crc, 0);
17356 /* return computed value, to prevent the above being optimized away */
17362 if ac_fn_c_try_link "$LINENO"; then :
17363 pgac_cv_sse42_crc32_intrinsics__msse4_2=yes
17365 pgac_cv_sse42_crc32_intrinsics__msse4_2=no
17367 rm -f core conftest.err conftest.$ac_objext \
17368 conftest$ac_exeext conftest.$ac_ext
17369 CFLAGS="$pgac_save_CFLAGS"
17371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_sse42_crc32_intrinsics__msse4_2" >&5
17372 $as_echo "$pgac_cv_sse42_crc32_intrinsics__msse4_2" >&6; }
17373 if test x"$pgac_cv_sse42_crc32_intrinsics__msse4_2" = x"yes"; then
17374 CFLAGS_SSE42="-msse4.2"
17375 pgac_sse42_crc32_intrinsics=yes
17381 # Are we targeting a processor that supports SSE 4.2? gcc, clang and icc all
17382 # define __SSE4_2__ in that case.
17383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17384 /* end confdefs.h. */
17391 #error __SSE4_2__ not defined
17398 if ac_fn_c_try_compile "$LINENO"; then :
17401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17403 # Check for ARMv8 CRC Extension intrinsics to do CRC calculations.
17405 # First check if __crc32c* intrinsics can be used with the default compiler
17406 # flags. If not, check if adding -march=armv8-a+crc flag helps.
17407 # CFLAGS_ARMV8_CRC32C is set if the extra flag is required.
17408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=" >&5
17409 $as_echo_n "checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=... " >&6; }
17410 if ${pgac_cv_armv8_crc32c_intrinsics_+:} false; then :
17411 $as_echo_n "(cached) " >&6
17413 pgac_save_CFLAGS=$CFLAGS
17414 CFLAGS="$pgac_save_CFLAGS "
17415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17416 /* end confdefs.h. */
17417 #include <arm_acle.h>
17421 unsigned int crc = 0;
17422 crc = __crc32cb(crc, 0);
17423 crc = __crc32ch(crc, 0);
17424 crc = __crc32cw(crc, 0);
17425 crc = __crc32cd(crc, 0);
17426 /* return computed value, to prevent the above being optimized away */
17432 if ac_fn_c_try_link "$LINENO"; then :
17433 pgac_cv_armv8_crc32c_intrinsics_=yes
17435 pgac_cv_armv8_crc32c_intrinsics_=no
17437 rm -f core conftest.err conftest.$ac_objext \
17438 conftest$ac_exeext conftest.$ac_ext
17439 CFLAGS="$pgac_save_CFLAGS"
17441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_armv8_crc32c_intrinsics_" >&5
17442 $as_echo "$pgac_cv_armv8_crc32c_intrinsics_" >&6; }
17443 if test x"$pgac_cv_armv8_crc32c_intrinsics_" = x"yes"; then
17444 CFLAGS_ARMV8_CRC32C=""
17445 pgac_armv8_crc32c_intrinsics=yes
17448 if test x"$pgac_armv8_crc32c_intrinsics" != x"yes"; then
17449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=-march=armv8-a+crc" >&5
17450 $as_echo_n "checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=-march=armv8-a+crc... " >&6; }
17451 if ${pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc+:} false; then :
17452 $as_echo_n "(cached) " >&6
17454 pgac_save_CFLAGS=$CFLAGS
17455 CFLAGS="$pgac_save_CFLAGS -march=armv8-a+crc"
17456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17457 /* end confdefs.h. */
17458 #include <arm_acle.h>
17462 unsigned int crc = 0;
17463 crc = __crc32cb(crc, 0);
17464 crc = __crc32ch(crc, 0);
17465 crc = __crc32cw(crc, 0);
17466 crc = __crc32cd(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_armv8_crc32c_intrinsics__march_armv8_apcrc=yes
17476 pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc=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_armv8_crc32c_intrinsics__march_armv8_apcrc" >&5
17483 $as_echo "$pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc" >&6; }
17484 if test x"$pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc" = x"yes"; then
17485 CFLAGS_ARMV8_CRC32C="-march=armv8-a+crc"
17486 pgac_armv8_crc32c_intrinsics=yes
17492 # Select CRC-32C implementation.
17494 # If we are targeting a processor that has Intel SSE 4.2 instructions, we can
17495 # use the special CRC instructions for calculating CRC-32C. If we're not
17496 # targeting such a processor, but we can nevertheless produce code that uses
17497 # the SSE intrinsics, perhaps with some extra CFLAGS, compile both
17498 # implementations and select which one to use at runtime, depending on whether
17499 # SSE 4.2 is supported by the processor we're running on.
17501 # Similarly, if we are targeting an ARM processor that has the CRC
17502 # instructions that are part of the ARMv8 CRC Extension, use them. And if
17503 # we're not targeting such a processor, but can nevertheless produce code that
17504 # uses the CRC instructions, compile both, and select at runtime.
17506 # You can override this logic by setting the appropriate USE_*_CRC32 flag to 1
17507 # in the template or configure command line.
17508 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
17509 # Use Intel SSE 4.2 if available.
17510 if test x"$pgac_sse42_crc32_intrinsics" = x"yes" && test x"$SSE4_2_TARGETED" = x"1" ; then
17513 # Intel SSE 4.2, with runtime check? The CPUID instruction is needed for
17514 # the runtime check.
17515 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
17516 USE_SSE42_CRC32C_WITH_RUNTIME_CHECK=1
17518 # Use ARM CRC Extension if available.
17519 if test x"$pgac_armv8_crc32c_intrinsics" = x"yes" && test x"$CFLAGS_ARMV8_CRC32C" = x""; then
17522 # ARM CRC Extension, with runtime check?
17523 if test x"$pgac_armv8_crc32c_intrinsics" = x"yes"; then
17524 USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK=1
17526 # fall back to slicing-by-8 algorithm, which doesn't require any
17527 # special CPU support.
17528 USE_SLICING_BY_8_CRC32C=1
17535 # Set PG_CRC32C_OBJS appropriately depending on the selected implementation.
17536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which CRC-32C implementation to use" >&5
17537 $as_echo_n "checking which CRC-32C implementation to use... " >&6; }
17538 if test x"$USE_SSE42_CRC32C" = x"1"; then
17540 $as_echo "#define USE_SSE42_CRC32C 1" >>confdefs.h
17542 PG_CRC32C_OBJS="pg_crc32c_sse42.o"
17543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SSE 4.2" >&5
17544 $as_echo "SSE 4.2" >&6; }
17546 if test x"$USE_SSE42_CRC32C_WITH_RUNTIME_CHECK" = x"1"; then
17548 $as_echo "#define USE_SSE42_CRC32C_WITH_RUNTIME_CHECK 1" >>confdefs.h
17550 PG_CRC32C_OBJS="pg_crc32c_sse42.o pg_crc32c_sb8.o pg_crc32c_sse42_choose.o"
17551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SSE 4.2 with runtime check" >&5
17552 $as_echo "SSE 4.2 with runtime check" >&6; }
17554 if test x"$USE_ARMV8_CRC32C" = x"1"; then
17556 $as_echo "#define USE_ARMV8_CRC32C 1" >>confdefs.h
17558 PG_CRC32C_OBJS="pg_crc32c_armv8.o"
17559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ARMv8 CRC instructions" >&5
17560 $as_echo "ARMv8 CRC instructions" >&6; }
17562 if test x"$USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK" = x"1"; then
17564 $as_echo "#define USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK 1" >>confdefs.h
17566 PG_CRC32C_OBJS="pg_crc32c_armv8.o pg_crc32c_sb8.o pg_crc32c_armv8_choose.o"
17567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ARMv8 CRC instructions with runtime check" >&5
17568 $as_echo "ARMv8 CRC instructions with runtime check" >&6; }
17571 $as_echo "#define USE_SLICING_BY_8_CRC32C 1" >>confdefs.h
17573 PG_CRC32C_OBJS="pg_crc32c_sb8.o"
17574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: slicing-by-8" >&5
17575 $as_echo "slicing-by-8" >&6; }
17583 # Select semaphore implementation type.
17584 if test "$PORTNAME" != "win32"; then
17585 if test x"$PREFERRED_SEMAPHORES" = x"NAMED_POSIX" ; then
17586 # Need sem_open for this
17587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_open" >&5
17588 $as_echo_n "checking for library containing sem_open... " >&6; }
17589 if ${ac_cv_search_sem_open+:} false; then :
17590 $as_echo_n "(cached) " >&6
17592 ac_func_search_save_LIBS=$LIBS
17593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17594 /* end confdefs.h. */
17596 /* Override any GCC internal prototype to avoid an error.
17597 Use char because int might match the return type of a GCC
17598 builtin and then its argument prototype would still apply. */
17606 return sem_open ();
17611 for ac_lib in '' rt pthread; do
17612 if test -z "$ac_lib"; then
17613 ac_res="none required"
17616 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17618 if ac_fn_c_try_link "$LINENO"; then :
17619 ac_cv_search_sem_open=$ac_res
17621 rm -f core conftest.err conftest.$ac_objext \
17623 if ${ac_cv_search_sem_open+:} false; then :
17627 if ${ac_cv_search_sem_open+:} false; then :
17630 ac_cv_search_sem_open=no
17632 rm conftest.$ac_ext
17633 LIBS=$ac_func_search_save_LIBS
17635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_open" >&5
17636 $as_echo "$ac_cv_search_sem_open" >&6; }
17637 ac_res=$ac_cv_search_sem_open
17638 if test "$ac_res" != no; then :
17639 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17640 USE_NAMED_POSIX_SEMAPHORES=1
17644 if test x"$PREFERRED_SEMAPHORES" = x"UNNAMED_POSIX" ; then
17645 # Need sem_init for this
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
17647 $as_echo_n "checking for library containing sem_init... " >&6; }
17648 if ${ac_cv_search_sem_init+:} false; then :
17649 $as_echo_n "(cached) " >&6
17651 ac_func_search_save_LIBS=$LIBS
17652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17653 /* end confdefs.h. */
17655 /* Override any GCC internal prototype to avoid an error.
17656 Use char because int might match the return type of a GCC
17657 builtin and then its argument prototype would still apply. */
17665 return sem_init ();
17670 for ac_lib in '' rt pthread; do
17671 if test -z "$ac_lib"; then
17672 ac_res="none required"
17675 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17677 if ac_fn_c_try_link "$LINENO"; then :
17678 ac_cv_search_sem_init=$ac_res
17680 rm -f core conftest.err conftest.$ac_objext \
17682 if ${ac_cv_search_sem_init+:} false; then :
17686 if ${ac_cv_search_sem_init+:} false; then :
17689 ac_cv_search_sem_init=no
17691 rm conftest.$ac_ext
17692 LIBS=$ac_func_search_save_LIBS
17694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
17695 $as_echo "$ac_cv_search_sem_init" >&6; }
17696 ac_res=$ac_cv_search_sem_init
17697 if test "$ac_res" != no; then :
17698 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17699 USE_UNNAMED_POSIX_SEMAPHORES=1
17703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which semaphore API to use" >&5
17704 $as_echo_n "checking which semaphore API to use... " >&6; }
17705 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
17707 $as_echo "#define USE_NAMED_POSIX_SEMAPHORES 1" >>confdefs.h
17709 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
17710 sematype="named POSIX"
17712 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
17714 $as_echo "#define USE_UNNAMED_POSIX_SEMAPHORES 1" >>confdefs.h
17716 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
17717 sematype="unnamed POSIX"
17720 $as_echo "#define USE_SYSV_SEMAPHORES 1" >>confdefs.h
17722 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
17723 sematype="System V"
17726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sematype" >&5
17727 $as_echo "$sematype" >&6; }
17730 $as_echo "#define USE_WIN32_SEMAPHORES 1" >>confdefs.h
17732 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
17736 # Select shared-memory implementation type.
17737 if test "$PORTNAME" != "win32"; then
17739 $as_echo "#define USE_SYSV_SHARED_MEMORY 1" >>confdefs.h
17741 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
17744 $as_echo "#define USE_WIN32_SHARED_MEMORY 1" >>confdefs.h
17746 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
17749 # Select random number source
17751 # You can override this logic by setting the appropriate USE_*RANDOM flag to 1
17752 # in the template or configure command line.
17754 # If not selected manually, try to select a source automatically.
17755 if test "$enable_strong_random" = "yes" && test x"$USE_OPENSSL_RANDOM" = x"" && test x"$USE_WIN32_RANDOM" = x"" && test x"$USE_DEV_URANDOM" = x"" ; then
17756 if test x"$with_openssl" = x"yes" ; then
17757 USE_OPENSSL_RANDOM=1
17758 elif test "$PORTNAME" = "win32" ; then
17761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/urandom" >&5
17762 $as_echo_n "checking for /dev/urandom... " >&6; }
17763 if ${ac_cv_file__dev_urandom+:} false; then :
17764 $as_echo_n "(cached) " >&6
17766 test "$cross_compiling" = yes &&
17767 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
17768 if test -r "/dev/urandom"; then
17769 ac_cv_file__dev_urandom=yes
17771 ac_cv_file__dev_urandom=no
17774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_urandom" >&5
17775 $as_echo "$ac_cv_file__dev_urandom" >&6; }
17776 if test "x$ac_cv_file__dev_urandom" = xyes; then :
17781 if test x"$ac_cv_file__dev_urandom" = x"yes" ; then
17787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which random number source to use" >&5
17788 $as_echo_n "checking which random number source to use... " >&6; }
17789 if test "$enable_strong_random" = yes ; then
17790 if test x"$USE_OPENSSL_RANDOM" = x"1" ; then
17792 $as_echo "#define USE_OPENSSL_RANDOM 1" >>confdefs.h
17794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenSSL" >&5
17795 $as_echo "OpenSSL" >&6; }
17796 elif test x"$USE_WIN32_RANDOM" = x"1" ; then
17798 $as_echo "#define USE_WIN32_RANDOM 1" >>confdefs.h
17800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows native" >&5
17801 $as_echo "Windows native" >&6; }
17802 elif test x"$USE_DEV_URANDOM" = x"1" ; then
17804 $as_echo "#define USE_DEV_URANDOM 1" >>confdefs.h
17806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /dev/urandom" >&5
17807 $as_echo "/dev/urandom" >&6; }
17810 no source of strong random numbers was found
17811 PostgreSQL can use OpenSSL or /dev/urandom as a source of random numbers,
17812 for authentication protocols. You can use --disable-strong-random to use a
17813 built-in pseudo random number generator, but that may be insecure." "$LINENO" 5
17816 $as_echo "#define HAVE_STRONG_RANDOM 1" >>confdefs.h
17819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: weak builtin PRNG" >&5
17820 $as_echo "weak builtin PRNG" >&6; }
17821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
17822 *** Not using a strong random number source may be insecure." >&5
17823 $as_echo "$as_me: WARNING:
17824 *** Not using a strong random number source may be insecure." >&2;}
17827 # If not set in template file, set bytes to use libc memset()
17828 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
17829 MEMSET_LOOP_LIMIT=1024
17832 cat >>confdefs.h <<_ACEOF
17833 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
17838 if test "$enable_nls" = yes ; then
17840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind_textdomain_codeset" >&5
17841 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
17842 if ${ac_cv_search_bind_textdomain_codeset+:} false; then :
17843 $as_echo_n "(cached) " >&6
17845 ac_func_search_save_LIBS=$LIBS
17846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17847 /* end confdefs.h. */
17849 /* Override any GCC internal prototype to avoid an error.
17850 Use char because int might match the return type of a GCC
17851 builtin and then its argument prototype would still apply. */
17855 char bind_textdomain_codeset ();
17859 return bind_textdomain_codeset ();
17864 for ac_lib in '' intl; do
17865 if test -z "$ac_lib"; then
17866 ac_res="none required"
17869 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17871 if ac_fn_c_try_link "$LINENO"; then :
17872 ac_cv_search_bind_textdomain_codeset=$ac_res
17874 rm -f core conftest.err conftest.$ac_objext \
17876 if ${ac_cv_search_bind_textdomain_codeset+:} false; then :
17880 if ${ac_cv_search_bind_textdomain_codeset+:} false; then :
17883 ac_cv_search_bind_textdomain_codeset=no
17885 rm conftest.$ac_ext
17886 LIBS=$ac_func_search_save_LIBS
17888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind_textdomain_codeset" >&5
17889 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
17890 ac_res=$ac_cv_search_bind_textdomain_codeset
17891 if test "$ac_res" != no; then :
17892 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17895 as_fn_error $? "a gettext implementation is required for NLS" "$LINENO" 5
17898 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
17899 if test "x$ac_cv_header_libintl_h" = xyes; then :
17902 as_fn_error $? "header file <libintl.h> is required for NLS" "$LINENO" 5
17906 if test -z "$MSGFMT"; then
17907 for ac_prog in msgfmt
17909 # Extract the first word of "$ac_prog", so it can be a program name with args.
17910 set dummy $ac_prog; ac_word=$2
17911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17912 $as_echo_n "checking for $ac_word... " >&6; }
17913 if ${ac_cv_path_MSGFMT+:} false; then :
17914 $as_echo_n "(cached) " >&6
17918 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17922 for as_dir in $PATH
17925 test -z "$as_dir" && as_dir=.
17926 for ac_exec_ext in '' $ac_executable_extensions; do
17927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17928 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
17929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17939 MSGFMT=$ac_cv_path_MSGFMT
17940 if test -n "$MSGFMT"; then
17941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17942 $as_echo "$MSGFMT" >&6; }
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17945 $as_echo "no" >&6; }
17949 test -n "$MSGFMT" && break
17953 # Report the value of MSGFMT in configure's output in all cases.
17954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSGFMT" >&5
17955 $as_echo_n "checking for MSGFMT... " >&6; }
17956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17957 $as_echo "$MSGFMT" >&6; }
17960 if test -z "$MSGFMT"; then
17961 as_fn_error $? "msgfmt is required for NLS" "$LINENO" 5
17963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msgfmt flags" >&5
17964 $as_echo_n "checking for msgfmt flags... " >&6; }
17965 if ${pgac_cv_msgfmt_flags+:} false; then :
17966 $as_echo_n "(cached) " >&6
17968 if test x"$MSGFMT" != x"" && "$MSGFMT" --version 2>&1 | grep "GNU" >/dev/null; then
17969 pgac_cv_msgfmt_flags=-c
17972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_msgfmt_flags" >&5
17973 $as_echo "$pgac_cv_msgfmt_flags" >&6; }
17974 MSGFMT_FLAGS=$pgac_cv_msgfmt_flags
17976 if test -z "$MSGMERGE"; then
17977 for ac_prog in msgmerge
17979 # Extract the first word of "$ac_prog", so it can be a program name with args.
17980 set dummy $ac_prog; ac_word=$2
17981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17982 $as_echo_n "checking for $ac_word... " >&6; }
17983 if ${ac_cv_path_MSGMERGE+:} false; then :
17984 $as_echo_n "(cached) " >&6
17988 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17992 for as_dir in $PATH
17995 test -z "$as_dir" && as_dir=.
17996 for ac_exec_ext in '' $ac_executable_extensions; do
17997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17998 ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
17999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18009 MSGMERGE=$ac_cv_path_MSGMERGE
18010 if test -n "$MSGMERGE"; then
18011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
18012 $as_echo "$MSGMERGE" >&6; }
18014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18015 $as_echo "no" >&6; }
18019 test -n "$MSGMERGE" && break
18023 # Report the value of MSGMERGE in configure's output in all cases.
18024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSGMERGE" >&5
18025 $as_echo_n "checking for MSGMERGE... " >&6; }
18026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
18027 $as_echo "$MSGMERGE" >&6; }
18030 if test -z "$XGETTEXT"; then
18031 for ac_prog in xgettext
18033 # Extract the first word of "$ac_prog", so it can be a program name with args.
18034 set dummy $ac_prog; ac_word=$2
18035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18036 $as_echo_n "checking for $ac_word... " >&6; }
18037 if ${ac_cv_path_XGETTEXT+:} false; then :
18038 $as_echo_n "(cached) " >&6
18042 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
18045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18046 for as_dir in $PATH
18049 test -z "$as_dir" && as_dir=.
18050 for ac_exec_ext in '' $ac_executable_extensions; do
18051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18052 ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
18053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18063 XGETTEXT=$ac_cv_path_XGETTEXT
18064 if test -n "$XGETTEXT"; then
18065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
18066 $as_echo "$XGETTEXT" >&6; }
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18069 $as_echo "no" >&6; }
18073 test -n "$XGETTEXT" && break
18077 # Report the value of XGETTEXT in configure's output in all cases.
18078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGETTEXT" >&5
18079 $as_echo_n "checking for XGETTEXT... " >&6; }
18080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
18081 $as_echo "$XGETTEXT" >&6; }
18087 # Check for Tcl configuration script tclConfig.sh
18088 if test "$with_tcl" = yes; then
18089 if test -z "$TCLSH"; then
18090 for ac_prog in tclsh tcl tclsh8.6 tclsh86 tclsh8.5 tclsh85 tclsh8.4 tclsh84
18092 # Extract the first word of "$ac_prog", so it can be a program name with args.
18093 set dummy $ac_prog; ac_word=$2
18094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18095 $as_echo_n "checking for $ac_word... " >&6; }
18096 if ${ac_cv_path_TCLSH+:} false; then :
18097 $as_echo_n "(cached) " >&6
18101 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
18104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18105 for as_dir in $PATH
18108 test -z "$as_dir" && as_dir=.
18109 for ac_exec_ext in '' $ac_executable_extensions; do
18110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18111 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
18112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18122 TCLSH=$ac_cv_path_TCLSH
18123 if test -n "$TCLSH"; then
18124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
18125 $as_echo "$TCLSH" >&6; }
18127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18128 $as_echo "no" >&6; }
18132 test -n "$TCLSH" && break
18136 # Report the value of TCLSH in configure's output in all cases.
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCLSH" >&5
18138 $as_echo_n "checking for TCLSH... " >&6; }
18139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
18140 $as_echo "$TCLSH" >&6; }
18143 if test x"$TCLSH" = x""; then
18144 as_fn_error $? "Tcl shell not found" "$LINENO" 5
18147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclConfig.sh" >&5
18148 $as_echo_n "checking for tclConfig.sh... " >&6; }
18149 # Let user override test
18150 if test -z "$TCL_CONFIG_SH"; then
18151 pgac_test_dirs="$with_tclconfig"
18153 set X $pgac_test_dirs; shift
18154 if test $# -eq 0; then
18155 test -z "$TCLSH" && as_fn_error $? "unable to locate tclConfig.sh because no Tcl shell was found" "$LINENO" 5
18156 pgac_test_dirs=`echo 'puts $auto_path' | $TCLSH`
18157 # On newer macOS, $auto_path frequently doesn't include the place
18158 # where tclConfig.sh actually lives. Append that to the end, so as not
18159 # to break cases where a non-default Tcl installation is being used.
18160 if test -d "$PG_SYSROOT/System/Library/Frameworks/Tcl.framework" ; then
18161 pgac_test_dirs="$pgac_test_dirs $PG_SYSROOT/System/Library/Frameworks/Tcl.framework"
18163 set X $pgac_test_dirs; shift
18167 if test -r "$pgac_dir/tclConfig.sh"; then
18168 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
18174 if test -z "$TCL_CONFIG_SH"; then
18175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18176 $as_echo "no" >&6; }
18177 as_fn_error $? "file 'tclConfig.sh' is required for Tcl" "$LINENO" 5
18179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCL_CONFIG_SH" >&5
18180 $as_echo "$TCL_CONFIG_SH" >&6; }
18186 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
18187 eval TCL_LIBS=\"$TCL_LIBS\"
18188 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
18189 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
18191 if test "$TCL_SHARED_BUILD" != 1; then
18192 as_fn_error $? "cannot build PL/Tcl because Tcl is not a shared library
18193 Use --without-tcl to disable building PL/Tcl." "$LINENO" 5
18195 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
18196 ac_save_CPPFLAGS=$CPPFLAGS
18197 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
18198 ac_fn_c_check_header_mongrel "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
18199 if test "x$ac_cv_header_tcl_h" = xyes; then :
18202 as_fn_error $? "header file <tcl.h> is required for Tcl" "$LINENO" 5
18206 CPPFLAGS=$ac_save_CPPFLAGS
18209 # check for <perl.h>
18210 if test "$with_perl" = yes; then
18211 ac_save_CPPFLAGS=$CPPFLAGS
18212 CPPFLAGS="$CPPFLAGS $perl_includespec"
18213 ac_fn_c_check_header_compile "$LINENO" "perl.h" "ac_cv_header_perl_h" "#include <EXTERN.h>
18215 if test "x$ac_cv_header_perl_h" = xyes; then :
18218 as_fn_error $? "header file <perl.h> is required for Perl" "$LINENO" 5
18222 # While we're at it, check that we can link to libperl.
18223 # On most platforms, if perl.h is there then libperl.so will be too, but at
18224 # this writing Debian packages them separately. There is no known reason to
18225 # waste cycles on separate probes for the Tcl or Python libraries, though.
18226 pgac_save_LIBS=$LIBS
18227 LIBS="$perl_embed_ldflags"
18228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libperl" >&5
18229 $as_echo_n "checking for libperl... " >&6; }
18230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18231 /* end confdefs.h. */
18233 #include <EXTERN.h>
18244 if ac_fn_c_try_link "$LINENO"; then :
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18246 $as_echo "yes" >&6; }
18248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18249 $as_echo "no" >&6; }
18250 as_fn_error $? "libperl library is required for Perl" "$LINENO" 5
18252 rm -f core conftest.err conftest.$ac_objext \
18253 conftest$ac_exeext conftest.$ac_ext
18254 LIBS=$pgac_save_LIBS
18255 CPPFLAGS=$ac_save_CPPFLAGS
18258 # check for <Python.h>
18259 if test "$with_python" = yes; then
18260 ac_save_CPPFLAGS=$CPPFLAGS
18261 CPPFLAGS="$python_includespec $CPPFLAGS"
18262 ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
18263 if test "x$ac_cv_header_Python_h" = xyes; then :
18266 as_fn_error $? "header file <Python.h> is required for Python" "$LINENO" 5
18270 CPPFLAGS=$ac_save_CPPFLAGS
18274 # Check for DocBook and tools
18276 if test -z "$XMLLINT"; then
18277 for ac_prog in xmllint
18279 # Extract the first word of "$ac_prog", so it can be a program name with args.
18280 set dummy $ac_prog; ac_word=$2
18281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18282 $as_echo_n "checking for $ac_word... " >&6; }
18283 if ${ac_cv_path_XMLLINT+:} false; then :
18284 $as_echo_n "(cached) " >&6
18288 ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path.
18291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18292 for as_dir in $PATH
18295 test -z "$as_dir" && as_dir=.
18296 for ac_exec_ext in '' $ac_executable_extensions; do
18297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18298 ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext"
18299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18309 XMLLINT=$ac_cv_path_XMLLINT
18310 if test -n "$XMLLINT"; then
18311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
18312 $as_echo "$XMLLINT" >&6; }
18314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18315 $as_echo "no" >&6; }
18319 test -n "$XMLLINT" && break
18323 # Report the value of XMLLINT in configure's output in all cases.
18324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMLLINT" >&5
18325 $as_echo_n "checking for XMLLINT... " >&6; }
18326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
18327 $as_echo "$XMLLINT" >&6; }
18331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DocBook XML V4.2" >&5
18332 $as_echo_n "checking for DocBook XML V4.2... " >&6; }
18333 if ${pgac_cv_check_docbook+:} false; then :
18334 $as_echo_n "(cached) " >&6
18336 cat >conftest.xml <<EOF
18337 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
18339 <title>test</title>
18341 <title>random</title>
18343 <title>testsect</title>
18350 pgac_cv_check_docbook=no
18352 if test -n "$XMLLINT"; then
18353 $XMLLINT --noout --valid conftest.xml 1>&5 2>&1
18354 if test $? -eq 0; then
18355 pgac_cv_check_docbook=yes
18360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_check_docbook" >&5
18361 $as_echo "$pgac_cv_check_docbook" >&6; }
18363 have_docbook=$pgac_cv_check_docbook
18366 if test -z "$DBTOEPUB"; then
18367 for ac_prog in dbtoepub
18369 # Extract the first word of "$ac_prog", so it can be a program name with args.
18370 set dummy $ac_prog; ac_word=$2
18371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18372 $as_echo_n "checking for $ac_word... " >&6; }
18373 if ${ac_cv_path_DBTOEPUB+:} false; then :
18374 $as_echo_n "(cached) " >&6
18378 ac_cv_path_DBTOEPUB="$DBTOEPUB" # Let the user override the test with a path.
18381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18382 for as_dir in $PATH
18385 test -z "$as_dir" && as_dir=.
18386 for ac_exec_ext in '' $ac_executable_extensions; do
18387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18388 ac_cv_path_DBTOEPUB="$as_dir/$ac_word$ac_exec_ext"
18389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18399 DBTOEPUB=$ac_cv_path_DBTOEPUB
18400 if test -n "$DBTOEPUB"; then
18401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBTOEPUB" >&5
18402 $as_echo "$DBTOEPUB" >&6; }
18404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18405 $as_echo "no" >&6; }
18409 test -n "$DBTOEPUB" && break
18413 # Report the value of DBTOEPUB in configure's output in all cases.
18414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBTOEPUB" >&5
18415 $as_echo_n "checking for DBTOEPUB... " >&6; }
18416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBTOEPUB" >&5
18417 $as_echo "$DBTOEPUB" >&6; }
18420 if test -z "$XSLTPROC"; then
18421 for ac_prog in xsltproc
18423 # Extract the first word of "$ac_prog", so it can be a program name with args.
18424 set dummy $ac_prog; ac_word=$2
18425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18426 $as_echo_n "checking for $ac_word... " >&6; }
18427 if ${ac_cv_path_XSLTPROC+:} false; then :
18428 $as_echo_n "(cached) " >&6
18432 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
18435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18436 for as_dir in $PATH
18439 test -z "$as_dir" && as_dir=.
18440 for ac_exec_ext in '' $ac_executable_extensions; do
18441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18442 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
18443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18453 XSLTPROC=$ac_cv_path_XSLTPROC
18454 if test -n "$XSLTPROC"; then
18455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
18456 $as_echo "$XSLTPROC" >&6; }
18458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18459 $as_echo "no" >&6; }
18463 test -n "$XSLTPROC" && break
18467 # Report the value of XSLTPROC in configure's output in all cases.
18468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSLTPROC" >&5
18469 $as_echo_n "checking for XSLTPROC... " >&6; }
18470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
18471 $as_echo "$XSLTPROC" >&6; }
18474 if test -z "$FOP"; then
18477 # Extract the first word of "$ac_prog", so it can be a program name with args.
18478 set dummy $ac_prog; ac_word=$2
18479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18480 $as_echo_n "checking for $ac_word... " >&6; }
18481 if ${ac_cv_path_FOP+:} false; then :
18482 $as_echo_n "(cached) " >&6
18486 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
18489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18490 for as_dir in $PATH
18493 test -z "$as_dir" && as_dir=.
18494 for ac_exec_ext in '' $ac_executable_extensions; do
18495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18496 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
18497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18507 FOP=$ac_cv_path_FOP
18508 if test -n "$FOP"; then
18509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
18510 $as_echo "$FOP" >&6; }
18512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18513 $as_echo "no" >&6; }
18517 test -n "$FOP" && break
18521 # Report the value of FOP in configure's output in all cases.
18522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FOP" >&5
18523 $as_echo_n "checking for FOP... " >&6; }
18524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
18525 $as_echo "$FOP" >&6; }
18530 # Check for test tools
18532 if test "$enable_tap_tests" = yes; then
18533 # Check for necessary modules, unless user has specified the "prove" to use;
18534 # in that case it's her responsibility to have a working configuration.
18535 # (prove might be part of a different Perl installation than perl, eg on
18536 # MSys, so the result of AX_PROG_PERL_MODULES could be irrelevant anyway.)
18537 if test -z "$PROVE"; then
18538 # Test::More and Time::HiRes are supposed to be part of core Perl,
18539 # but some distros omit them in a minimal installation.
18550 # Make sure we have perl
18551 if test -z "$PERL"; then
18552 # Extract the first word of "perl", so it can be a program name with args.
18553 set dummy perl; ac_word=$2
18554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18555 $as_echo_n "checking for $ac_word... " >&6; }
18556 if ${ac_cv_prog_PERL+:} false; then :
18557 $as_echo_n "(cached) " >&6
18559 if test -n "$PERL"; then
18560 ac_cv_prog_PERL="$PERL" # Let the user override the test.
18562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18563 for as_dir in $PATH
18566 test -z "$as_dir" && as_dir=.
18567 for ac_exec_ext in '' $ac_executable_extensions; do
18568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18569 ac_cv_prog_PERL="perl"
18570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18579 PERL=$ac_cv_prog_PERL
18580 if test -n "$PERL"; then
18581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
18582 $as_echo "$PERL" >&6; }
18584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18585 $as_echo "no" >&6; }
18591 if test "x$PERL" != x; then
18592 ax_perl_modules_failed=0
18593 for ax_perl_module in 'IPC::Run' 'Test::More 0.87' 'Time::HiRes' ; do
18594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl module $ax_perl_module" >&5
18595 $as_echo_n "checking for perl module $ax_perl_module... " >&6; }
18597 # Would be nice to log result here, but can't rely on autoconf internals
18598 $PERL -e "use $ax_perl_module; exit" > /dev/null 2>&1
18599 if test $? -ne 0; then
18600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18601 $as_echo "no" >&6; };
18602 ax_perl_modules_failed=1
18604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
18605 $as_echo "ok" >&6; };
18609 # Run optional shell commands
18610 if test "$ax_perl_modules_failed" = 0; then
18615 as_fn_error $? "Additional Perl modules are required to run TAP tests" "$LINENO" 5
18618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5
18619 $as_echo "$as_me: WARNING: could not find perl" >&2;}
18622 # Now make sure we know where prove is
18623 if test -z "$PROVE"; then
18624 for ac_prog in prove
18626 # Extract the first word of "$ac_prog", so it can be a program name with args.
18627 set dummy $ac_prog; ac_word=$2
18628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18629 $as_echo_n "checking for $ac_word... " >&6; }
18630 if ${ac_cv_path_PROVE+:} false; then :
18631 $as_echo_n "(cached) " >&6
18635 ac_cv_path_PROVE="$PROVE" # Let the user override the test with a path.
18638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18639 for as_dir in $PATH
18642 test -z "$as_dir" && as_dir=.
18643 for ac_exec_ext in '' $ac_executable_extensions; do
18644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18645 ac_cv_path_PROVE="$as_dir/$ac_word$ac_exec_ext"
18646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18656 PROVE=$ac_cv_path_PROVE
18657 if test -n "$PROVE"; then
18658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROVE" >&5
18659 $as_echo "$PROVE" >&6; }
18661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18662 $as_echo "no" >&6; }
18666 test -n "$PROVE" && break
18670 # Report the value of PROVE in configure's output in all cases.
18671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PROVE" >&5
18672 $as_echo_n "checking for PROVE... " >&6; }
18673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROVE" >&5
18674 $as_echo "$PROVE" >&6; }
18677 if test -z "$PROVE"; then
18678 as_fn_error $? "prove not found" "$LINENO" 5
18684 # We have to run the thread test near the end so we have all our symbols
18685 # defined. Cross compiling throws a warning.
18687 if test "$enable_thread_safety" = yes; then
18688 if test "$PORTNAME" != "win32"
18690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking thread safety of required library functions" >&5
18691 $as_echo_n "checking thread safety of required library functions... " >&6; }
18695 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
18696 LIBS="$LIBS $PTHREAD_LIBS"
18697 if test "$cross_compiling" = yes; then :
18698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: maybe" >&5
18699 $as_echo "maybe" >&6; }
18700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18701 *** Skipping thread test program because of cross-compile build.
18702 *** Run the program in src/test/thread on the target machine.
18704 $as_echo "$as_me: WARNING:
18705 *** Skipping thread test program because of cross-compile build.
18706 *** Run the program in src/test/thread on the target machine.
18709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18710 /* end confdefs.h. */
18711 #include "$srcdir/src/test/thread/thread_test.c"
18713 if ac_fn_c_try_run "$LINENO"; then :
18714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18715 $as_echo "yes" >&6; }
18717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18718 $as_echo "no" >&6; }
18719 as_fn_error $? "thread test program failed
18720 This platform is not thread-safe. Check the file 'config.log' or compile
18721 and run src/test/thread/thread_test for the exact reason.
18722 Use --disable-thread-safety to disable thread safety." "$LINENO" 5
18724 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18725 conftest.$ac_objext conftest.beam conftest.$ac_ext
18731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** skipping thread test on Win32" >&5
18732 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
18736 # If compiler will take -Wl,--as-needed (or various platform-specific
18737 # spellings thereof) then add that to LDFLAGS. This is much easier than
18738 # trying to filter LIBS to the minimum for each executable.
18739 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
18740 # libreadline; therefore we postpone testing it until we know what library
18741 # dependencies readline has. The test code will try to link with $LIBS.
18742 if test "$with_readline" = yes; then
18743 link_test_func=readline
18745 link_test_func=exit
18748 if test "$PORTNAME" = "darwin"; then
18749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,-dead_strip_dylibs" >&5
18750 $as_echo_n "checking whether $CC supports -Wl,-dead_strip_dylibs... " >&6; }
18751 if ${pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs+:} false; then :
18752 $as_echo_n "(cached) " >&6
18754 pgac_save_LDFLAGS=$LDFLAGS
18755 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
18756 if test "$cross_compiling" = yes; then :
18757 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs="assuming no"
18759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18760 /* end confdefs.h. */
18761 extern void $link_test_func (); void (*fptr) () = $link_test_func;
18770 if ac_fn_c_try_run "$LINENO"; then :
18771 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=yes
18773 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=no
18775 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18776 conftest.$ac_objext conftest.beam conftest.$ac_ext
18779 LDFLAGS="$pgac_save_LDFLAGS"
18781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&5
18782 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&6; }
18783 if test x"$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" = x"yes"; then
18784 LDFLAGS="$LDFLAGS -Wl,-dead_strip_dylibs"
18787 elif test "$PORTNAME" = "openbsd"; then
18788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,-Bdynamic" >&5
18789 $as_echo_n "checking whether $CC supports -Wl,-Bdynamic... " >&6; }
18790 if ${pgac_cv_prog_cc_ldflags__Wl__Bdynamic+:} false; then :
18791 $as_echo_n "(cached) " >&6
18793 pgac_save_LDFLAGS=$LDFLAGS
18794 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
18795 if test "$cross_compiling" = yes; then :
18796 pgac_cv_prog_cc_ldflags__Wl__Bdynamic="assuming no"
18798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18799 /* end confdefs.h. */
18800 extern void $link_test_func (); void (*fptr) () = $link_test_func;
18809 if ac_fn_c_try_run "$LINENO"; then :
18810 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=yes
18812 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=no
18814 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18815 conftest.$ac_objext conftest.beam conftest.$ac_ext
18818 LDFLAGS="$pgac_save_LDFLAGS"
18820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&5
18821 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&6; }
18822 if test x"$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" = x"yes"; then
18823 LDFLAGS="$LDFLAGS -Wl,-Bdynamic"
18827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,--as-needed" >&5
18828 $as_echo_n "checking whether $CC supports -Wl,--as-needed... " >&6; }
18829 if ${pgac_cv_prog_cc_ldflags__Wl___as_needed+:} false; then :
18830 $as_echo_n "(cached) " >&6
18832 pgac_save_LDFLAGS=$LDFLAGS
18833 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
18834 if test "$cross_compiling" = yes; then :
18835 pgac_cv_prog_cc_ldflags__Wl___as_needed="assuming no"
18837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18838 /* end confdefs.h. */
18839 extern void $link_test_func (); void (*fptr) () = $link_test_func;
18848 if ac_fn_c_try_run "$LINENO"; then :
18849 pgac_cv_prog_cc_ldflags__Wl___as_needed=yes
18851 pgac_cv_prog_cc_ldflags__Wl___as_needed=no
18853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18854 conftest.$ac_objext conftest.beam conftest.$ac_ext
18857 LDFLAGS="$pgac_save_LDFLAGS"
18859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_ldflags__Wl___as_needed" >&5
18860 $as_echo "$pgac_cv_prog_cc_ldflags__Wl___as_needed" >&6; }
18861 if test x"$pgac_cv_prog_cc_ldflags__Wl___as_needed" = x"yes"; then
18862 LDFLAGS="$LDFLAGS -Wl,--as-needed"
18867 # Create compiler version string
18868 if test x"$GCC" = x"yes" ; then
18869 cc_string=`${CC} --version | sed q`
18870 case $cc_string in [A-Za-z]*) ;; *) cc_string="GCC $cc_string";; esac
18871 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
18872 cc_string=`${CC} -V 2>&1 | sed q`
18878 cat >>confdefs.h <<_ACEOF
18879 #define PG_VERSION_STR "PostgreSQL $PG_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
18883 # Supply a numeric version string for use by 3rd party add-ons
18884 # awk -F is a regex on some platforms, and not on others, so make "." a tab
18885 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
18887 $AWK '{printf "%d%04d", $1, $2}'`"
18889 cat >>confdefs.h <<_ACEOF
18890 #define PG_VERSION_NUM $PG_VERSION_NUM
18895 # If we are inserting PG_SYSROOT into CPPFLAGS, do so symbolically not
18896 # literally, so that it's possible to override it at build time using
18897 # a command like "make ... PG_SYSROOT=path". This has to be done after
18898 # we've finished all configure checks that depend on CPPFLAGS.
18899 if test x"$PG_SYSROOT" != x; then
18900 CPPFLAGS=`echo "$CPPFLAGS" | sed -e "s| $PG_SYSROOT | \\\$(PG_SYSROOT) |"`
18905 # Begin output steps
18907 { $as_echo "$as_me:${as_lineno-$LINENO}: using compiler=$cc_string" >&5
18908 $as_echo "$as_me: using compiler=$cc_string" >&6;}
18909 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS=$CFLAGS" >&5
18910 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
18911 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS=$CPPFLAGS" >&5
18912 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
18913 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS=$LDFLAGS" >&5
18914 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
18915 # Currently only used when LLVM is used
18916 if test "$with_llvm" = yes ; then
18917 { $as_echo "$as_me:${as_lineno-$LINENO}: using CXX=$CXX" >&5
18918 $as_echo "$as_me: using CXX=$CXX" >&6;}
18919 { $as_echo "$as_me:${as_lineno-$LINENO}: using CXXFLAGS=$CXXFLAGS" >&5
18920 $as_echo "$as_me: using CXXFLAGS=$CXXFLAGS" >&6;}
18921 { $as_echo "$as_me:${as_lineno-$LINENO}: using CLANG=$CLANG" >&5
18922 $as_echo "$as_me: using CLANG=$CLANG" >&6;}
18923 { $as_echo "$as_me:${as_lineno-$LINENO}: using BITCODE_CFLAGS=$BITCODE_CFLAGS" >&5
18924 $as_echo "$as_me: using BITCODE_CFLAGS=$BITCODE_CFLAGS" >&6;}
18925 { $as_echo "$as_me:${as_lineno-$LINENO}: using BITCODE_CXXFLAGS=$BITCODE_CXXFLAGS" >&5
18926 $as_echo "$as_me: using BITCODE_CXXFLAGS=$BITCODE_CXXFLAGS" >&6;}
18929 # prepare build tree if outside source tree
18930 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
18931 # Note 2: /bin/pwd might be better than shell's built-in at getting
18932 # a symlink-free name.
18933 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
18937 if test "$no_create" != yes; then
18938 $as_echo_n "preparing build tree... " >&6
18939 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
18940 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
18941 || as_fn_error $? "failed" "$LINENO" 5
18942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18943 $as_echo "done" >&6; }
18949 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
18952 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}"
18955 if test "$PORTNAME" = "win32"; then
18956 ac_config_commands="$ac_config_commands check_win32_symlinks"
18960 ac_config_headers="$ac_config_headers src/include/pg_config.h"
18963 ac_config_headers="$ac_config_headers src/include/pg_config_ext.h"
18966 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
18969 cat >confcache <<\_ACEOF
18970 # This file is a shell script that caches the results of configure
18971 # tests run on this system so they can be shared between configure
18972 # scripts and configure runs, see configure's option --config-cache.
18973 # It is not useful on other systems. If it contains results you don't
18974 # want to keep, you may remove or edit it.
18976 # config.status only pays attention to the cache file if you give it
18977 # the --recheck option to rerun configure.
18979 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18980 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18981 # following values.
18985 # The following way of writing the cache mishandles newlines in values,
18986 # but we know of no workaround that is simple, portable, and efficient.
18987 # So, we kill variables containing newlines.
18988 # Ultrix sh set writes to stderr and can't be redirected directly,
18989 # and sets the high bit in the cache file unless we assign to the vars.
18991 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18992 eval ac_val=\$$ac_var
18996 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18997 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19000 _ | IFS | as_nl) ;; #(
19001 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19002 *) { eval $ac_var=; unset $ac_var;} ;;
19008 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19009 *${as_nl}ac_space=\ *)
19010 # `set' does not quote correctly, so add quotes: double-quote
19011 # substitution turns \\\\ into \\, and sed turns \\ into \.
19014 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19017 # `set' quotes correctly as required by POSIX, so do not add quotes.
19018 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19027 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19029 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19031 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19032 if test -w "$cache_file"; then
19033 if test "x$cache_file" != "x/dev/null"; then
19034 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19035 $as_echo "$as_me: updating cache $cache_file" >&6;}
19036 if test ! -f "$cache_file" || test -h "$cache_file"; then
19037 cat confcache >"$cache_file"
19039 case $cache_file in #(
19041 mv -f confcache "$cache_file"$$ &&
19042 mv -f "$cache_file"$$ "$cache_file" ;; #(
19044 mv -f confcache "$cache_file" ;;
19049 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19050 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19055 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19056 # Let make expand exec_prefix.
19057 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19059 DEFS=-DHAVE_CONFIG_H
19064 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19065 # 1. Remove the extension, and $U if already installed.
19066 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19067 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19068 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19069 # will be set to the directory where LIBOBJS objects are built.
19070 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19071 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19073 LIBOBJS=$ac_libobjs
19075 LTLIBOBJS=$ac_ltlibobjs
19080 : "${CONFIG_STATUS=./config.status}"
19082 ac_clean_files_save=$ac_clean_files
19083 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19084 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19085 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19087 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19089 # Generated by $as_me.
19090 # Run this file to recreate the current configuration.
19091 # Compiler output produced by configure, useful for debugging
19092 # configure, is in config.log if it exists.
19095 ac_cs_recheck=false
19098 SHELL=\${CONFIG_SHELL-$SHELL}
19101 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19102 ## -------------------- ##
19103 ## M4sh Initialization. ##
19104 ## -------------------- ##
19106 # Be more Bourne compatible
19107 DUALCASE=1; export DUALCASE # for MKS sh
19108 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19111 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19112 # is contrary to our usage. Disable this feature.
19113 alias -g '${1+"$@"}'='"$@"'
19114 setopt NO_GLOB_SUBST
19116 case `(set -o) 2>/dev/null` in #(
19128 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19129 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19130 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19131 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19132 # Prefer a ksh shell builtin over an external printf program on Solaris,
19133 # but without wasting forks for bash or zsh.
19134 if test -z "$BASH_VERSION$ZSH_VERSION" \
19135 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19136 as_echo='print -r --'
19137 as_echo_n='print -rn --'
19138 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19139 as_echo='printf %s\n'
19140 as_echo_n='printf %s'
19142 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19143 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19144 as_echo_n='/usr/ucb/echo -n'
19146 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19147 as_echo_n_body='eval
19151 expr "X$arg" : "X\\(.*\\)$as_nl";
19152 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19154 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19156 export as_echo_n_body
19157 as_echo_n='sh -c $as_echo_n_body as_echo'
19159 export as_echo_body
19160 as_echo='sh -c $as_echo_body as_echo'
19163 # The user is always right.
19164 if test "${PATH_SEPARATOR+set}" != set; then
19166 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19167 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19174 # We need space, tab and new line, in precisely that order. Quoting is
19175 # there to prevent editors from complaining about space-tab.
19176 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19177 # splitting by setting IFS to empty value.)
19180 # Find who we are. Look in the path if we contain no directory separator.
19183 *[\\/]* ) as_myself=$0 ;;
19184 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19185 for as_dir in $PATH
19188 test -z "$as_dir" && as_dir=.
19189 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19195 # We did not find ourselves, most probably we were run as `sh COMMAND'
19196 # in which case we are not to be found in the path.
19197 if test "x$as_myself" = x; then
19200 if test ! -f "$as_myself"; then
19201 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19205 # Unset variables that we do not need and which cause bugs (e.g. in
19206 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19207 # suppresses any "Segmentation fault" message there. '((' could
19208 # trigger a bug in pdksh 5.2.14.
19209 for as_var in BASH_ENV ENV MAIL MAILPATH
19210 do eval test x\${$as_var+set} = xset \
19211 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19224 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19227 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19228 # ----------------------------------------
19229 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19230 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19231 # script with STATUS, using 1 if that was 0.
19234 as_status=$1; test $as_status -eq 0 && as_status=1
19236 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19237 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19239 $as_echo "$as_me: error: $2" >&2
19240 as_fn_exit $as_status
19244 # as_fn_set_status STATUS
19245 # -----------------------
19246 # Set $? to STATUS, without forking.
19247 as_fn_set_status ()
19250 } # as_fn_set_status
19252 # as_fn_exit STATUS
19253 # -----------------
19254 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19258 as_fn_set_status $1
19264 # Portably unset VAR.
19267 { eval $1=; unset $1;}
19269 as_unset=as_fn_unset
19270 # as_fn_append VAR VALUE
19271 # ----------------------
19272 # Append the text in VALUE to the end of the definition contained in VAR. Take
19273 # advantage of any shell optimizations that allow amortized linear growth over
19274 # repeated appends, instead of the typical quadratic growth present in naive
19276 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19277 eval 'as_fn_append ()
19288 # as_fn_arith ARG...
19289 # ------------------
19290 # Perform arithmetic evaluation on the ARGs, and store the result in the
19291 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19292 # must be portable across $(()) and expr.
19293 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19294 eval 'as_fn_arith ()
19301 as_val=`expr "$@" || test $? -eq 1`
19306 if expr a : '\(a\)' >/dev/null 2>&1 &&
19307 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19313 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19314 as_basename=basename
19319 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19325 as_me=`$as_basename -- "$0" ||
19326 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19327 X"$0" : 'X\(//\)$' \| \
19328 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19330 sed '/^.*\/\([^/][^/]*\)\/*$/{
19344 # Avoid depending upon Character Ranges.
19345 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19346 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19347 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19348 as_cr_digits='0123456789'
19349 as_cr_alnum=$as_cr_Letters$as_cr_digits
19351 ECHO_C= ECHO_N= ECHO_T=
19352 case `echo -n x` in #(((((
19354 case `echo 'xy\c'` in
19355 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19357 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19364 rm -f conf$$ conf$$.exe conf$$.file
19365 if test -d conf$$.dir; then
19366 rm -f conf$$.dir/conf$$.file
19369 mkdir conf$$.dir 2>/dev/null
19371 if (echo >conf$$.file) 2>/dev/null; then
19372 if ln -s conf$$.file conf$$ 2>/dev/null; then
19374 # ... but there are two gotchas:
19375 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19376 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19377 # In both cases, we have to default to `cp -pR'.
19378 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19380 elif ln conf$$.file conf$$ 2>/dev/null; then
19388 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19389 rmdir conf$$.dir 2>/dev/null
19394 # Create "$as_dir" as a directory, including parents if necessary.
19399 -*) as_dir=./$as_dir;;
19401 test -d "$as_dir" || eval $as_mkdir_p || {
19405 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19406 *) as_qdir=$as_dir;;
19408 as_dirs="'$as_qdir' $as_dirs"
19409 as_dir=`$as_dirname -- "$as_dir" ||
19410 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19411 X"$as_dir" : 'X\(//\)[^/]' \| \
19412 X"$as_dir" : 'X\(//\)$' \| \
19413 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19414 $as_echo X"$as_dir" |
19415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19419 /^X\(\/\/\)[^/].*/{
19432 test -d "$as_dir" && break
19434 test -z "$as_dirs" || eval "mkdir $as_dirs"
19435 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19439 if mkdir -p . 2>/dev/null; then
19440 as_mkdir_p='mkdir -p "$as_dir"'
19442 test -d ./-p && rmdir ./-p
19447 # as_fn_executable_p FILE
19448 # -----------------------
19449 # Test if FILE is an executable regular file.
19450 as_fn_executable_p ()
19452 test -f "$1" && test -x "$1"
19453 } # as_fn_executable_p
19454 as_test_x='test -x'
19455 as_executable_p=as_fn_executable_p
19457 # Sed expression to map a string onto a valid CPP name.
19458 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19460 # Sed expression to map a string onto a valid variable name.
19461 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19465 ## ----------------------------------- ##
19466 ## Main body of $CONFIG_STATUS script. ##
19467 ## ----------------------------------- ##
19469 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19471 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19472 # Save the log message, to keep $0 and so on meaningful, and to
19473 # report actual input values of CONFIG_FILES etc. instead of their
19474 # values after options handling.
19476 This file was extended by PostgreSQL $as_me 12devel, which was
19477 generated by GNU Autoconf 2.69. Invocation command line was
19479 CONFIG_FILES = $CONFIG_FILES
19480 CONFIG_HEADERS = $CONFIG_HEADERS
19481 CONFIG_LINKS = $CONFIG_LINKS
19482 CONFIG_COMMANDS = $CONFIG_COMMANDS
19485 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19490 case $ac_config_files in *"
19491 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19494 case $ac_config_headers in *"
19495 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19499 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19500 # Files that config.status was made for.
19501 config_files="$ac_config_files"
19502 config_headers="$ac_config_headers"
19503 config_links="$ac_config_links"
19504 config_commands="$ac_config_commands"
19508 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19510 \`$as_me' instantiates files and other configuration actions
19511 from templates according to the current configuration. Unless the files
19512 and actions are specified as TAGs, all are instantiated by default.
19514 Usage: $0 [OPTION]... [TAG]...
19516 -h, --help print this help, then exit
19517 -V, --version print version number and configuration settings, then exit
19518 --config print configuration, then exit
19519 -q, --quiet, --silent
19520 do not print progress messages
19521 -d, --debug don't remove temporary files
19522 --recheck update $as_me by reconfiguring in the same conditions
19523 --file=FILE[:TEMPLATE]
19524 instantiate the configuration file FILE
19525 --header=FILE[:TEMPLATE]
19526 instantiate the configuration header FILE
19528 Configuration files:
19531 Configuration headers:
19534 Configuration links:
19537 Configuration commands:
19540 Report bugs to <pgsql-bugs@postgresql.org>."
19543 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19544 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19546 PostgreSQL config.status 12devel
19547 configured by $0, generated by GNU Autoconf 2.69,
19548 with options \\"\$ac_cs_config\\"
19550 Copyright (C) 2012 Free Software Foundation, Inc.
19551 This config.status script is free software; the Free Software Foundation
19552 gives unlimited permission to copy, distribute and modify it."
19559 test -n "\$AWK" || AWK=awk
19562 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19563 # The default lists apply if the user does not specify any file.
19569 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19570 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19574 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19586 # Handling of the options.
19587 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19589 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19590 $as_echo "$ac_cs_version"; exit ;;
19591 --config | --confi | --conf | --con | --co | --c )
19592 $as_echo "$ac_cs_config"; exit ;;
19593 --debug | --debu | --deb | --de | --d | -d )
19595 --file | --fil | --fi | --f )
19598 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19599 '') as_fn_error $? "missing file argument" ;;
19601 as_fn_append CONFIG_FILES " '$ac_optarg'"
19602 ac_need_defaults=false;;
19603 --header | --heade | --head | --hea )
19606 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19608 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19609 ac_need_defaults=false;;
19611 # Conflict between --help and --header
19612 as_fn_error $? "ambiguous option: \`$1'
19613 Try \`$0 --help' for more information.";;
19614 --help | --hel | -h )
19615 $as_echo "$ac_cs_usage"; exit ;;
19616 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19617 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19620 # This is an error.
19621 -*) as_fn_error $? "unrecognized option: \`$1'
19622 Try \`$0 --help' for more information." ;;
19624 *) as_fn_append ac_config_targets " $1"
19625 ac_need_defaults=false ;;
19631 ac_configure_extra_args=
19633 if $ac_cs_silent; then
19635 ac_configure_extra_args="$ac_configure_extra_args --silent"
19639 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19640 if \$ac_cs_recheck; then
19641 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19643 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19644 CONFIG_SHELL='$SHELL'
19645 export CONFIG_SHELL
19650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19654 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19655 ## Running $as_me. ##
19661 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19664 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19666 # Handling of arguments.
19667 for ac_config_target in $ac_config_targets
19669 case $ac_config_target in
19670 "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
19671 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
19672 "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
19673 "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
19674 "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
19675 "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
19676 "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
19677 "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
19678 "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
19679 "src/include/pg_config_ext.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config_ext.h" ;;
19680 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
19682 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19687 # If the user did not use the arguments to specify the items to instantiate,
19688 # then the envvar interface is used. Set only those that are not.
19689 # We use the long form for the default assignment because of an extremely
19690 # bizarre bug on SunOS 4.1.3.
19691 if $ac_need_defaults; then
19692 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19693 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19694 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
19695 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19698 # Have a temporary directory for convenience. Make it in the build tree
19699 # simply because there is no reason against having it here, and in addition,
19700 # creating and moving files from /tmp can sometimes cause problems.
19701 # Hook for its removal unless debugging.
19702 # Note that there is a small window in which the directory will not be cleaned:
19703 # after its creation but before its name has been assigned to `$tmp'.
19707 trap 'exit_status=$?
19708 : "${ac_tmp:=$tmp}"
19709 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19711 trap 'as_fn_exit 1' 1 2 13 15
19713 # Create a (secure) tmp directory for tmp files.
19716 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19720 tmp=./conf$$-$RANDOM
19721 (umask 077 && mkdir "$tmp")
19722 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19725 # Set up the scripts for CONFIG_FILES section.
19726 # No need to generate them if there are no CONFIG_FILES.
19727 # This happens for instance with `./config.status config.h'.
19728 if test -n "$CONFIG_FILES"; then
19731 ac_cr=`echo X | tr X '\015'`
19732 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19733 # But we know of no other shell where ac_cr would be empty at this
19734 # point, so we can use a bashism as a fallback.
19735 if test "x$ac_cr" = x; then
19736 eval ac_cr=\$\'\\r\'
19738 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19739 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19742 ac_cs_awk_cr=$ac_cr
19745 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19750 echo "cat >conf$$subs.awk <<_ACEOF" &&
19751 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19753 } >conf$$subs.sh ||
19754 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19755 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19757 for ac_last_try in false false false false false :; do
19758 . ./conf$$subs.sh ||
19759 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19761 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19762 if test $ac_delim_n = $ac_delim_num; then
19764 elif $ac_last_try; then
19765 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19767 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19770 rm -f conf$$subs.sh
19772 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19773 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19777 s/^/S["/; s/!.*/"]=/
19787 s/\(.\{148\}\)..*/\1/
19789 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19794 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19801 s/\(.\{148\}\)..*/\1/
19803 s/["\\]/\\&/g; s/^/"/; s/$/"/
19807 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19812 ' <conf$$subs.awk | sed '
19817 ' >>$CONFIG_STATUS || ac_write_fail=1
19818 rm -f conf$$subs.awk
19819 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19821 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19822 for (key in S) S_is_set[key] = 1
19828 nfields = split(line, field, "@")
19830 len = length(field[1])
19831 for (i = 2; i < nfields; i++) {
19833 keylen = length(key)
19834 if (S_is_set[key]) {
19836 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19837 len += length(value) + length(field[++i])
19848 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19849 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19850 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19853 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19854 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19857 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19858 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19859 # trailing colons and then remove the whole line if VPATH becomes empty
19860 # (actually we leave an empty line to preserve line numbers).
19861 if test "x$srcdir" = x.; then
19862 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19880 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19881 fi # test -n "$CONFIG_FILES"
19883 # Set up the scripts for CONFIG_HEADERS section.
19884 # No need to generate them if there are no CONFIG_HEADERS.
19885 # This happens for instance with `./config.status Makefile'.
19886 if test -n "$CONFIG_HEADERS"; then
19887 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19891 # Transform confdefs.h into an awk script `defines.awk', embedded as
19892 # here-document in config.status, that substitutes the proper values into
19893 # config.h.in to produce config.h.
19895 # Create a delimiter string that does not exist in confdefs.h, to ease
19896 # handling of long lines.
19898 for ac_last_try in false false :; do
19899 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19900 if test -z "$ac_tt"; then
19902 elif $ac_last_try; then
19903 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19905 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19909 # For the awk script, D is an array of macro values keyed by name,
19910 # likewise P contains macro parameters if any. Preserve backslash
19911 # newline sequences.
19913 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19915 s/.\{148\}/&'"$ac_delim"'/g
19918 s/^[ ]*#[ ]*define[ ][ ]*/ /
19925 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19927 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19931 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19932 D["\1"]=" \3\\\\\\n"\\/p
19934 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19939 s/.\{148\}/&'"$ac_delim"'/g
19944 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19947 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19949 ' <confdefs.h | sed '
19950 s/'"$ac_delim"'/"\\\
19951 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19953 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19954 for (key in D) D_is_set[key] = 1
19957 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19959 split(line, arg, " ")
19960 if (arg[1] == "#") {
19964 defundef = substr(arg[1], 2)
19967 split(mac1, mac2, "(") #)
19969 prefix = substr(line, 1, index(line, defundef) - 1)
19970 if (D_is_set[macro]) {
19971 # Preserve the white space surrounding the "#".
19972 print prefix "define", macro P[macro] D[macro]
19975 # Replace #undef with comments. This is necessary, for example,
19976 # in the case of _POSIX_SOURCE, which is predefined and required
19977 # on some systems where configure will not decide to define it.
19978 if (defundef == "undef") {
19979 print "/*", prefix defundef, macro, "*/"
19987 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19988 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19989 fi # test -n "$CONFIG_HEADERS"
19992 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
19997 :[FHLC]) ac_mode=$ac_tag; continue;;
19999 case $ac_mode$ac_tag in
20001 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20002 :[FH]-) ac_tag=-:-;;
20003 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20020 -) ac_f="$ac_tmp/stdin";;
20021 *) # Look for the file first in the build tree, then in the source tree
20022 # (if the path is not absolute). The absolute path cannot be DOS-style,
20023 # because $ac_f cannot contain `:'.
20027 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20029 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20031 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20032 as_fn_append ac_file_inputs " '$ac_f'"
20035 # Let's still pretend it is `configure' which instantiates (i.e., don't
20036 # use $as_me), people would be surprised to read:
20037 # /* config.h. Generated by config.status. */
20038 configure_input='Generated from '`
20039 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20041 if test x"$ac_file" != x-; then
20042 configure_input="$ac_file. $configure_input"
20043 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20044 $as_echo "$as_me: creating $ac_file" >&6;}
20046 # Neutralize special characters interpreted by sed in replacement strings.
20047 case $configure_input in #(
20048 *\&* | *\|* | *\\* )
20049 ac_sed_conf_input=`$as_echo "$configure_input" |
20050 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20051 *) ac_sed_conf_input=$configure_input;;
20055 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20056 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20061 ac_dir=`$as_dirname -- "$ac_file" ||
20062 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20063 X"$ac_file" : 'X\(//\)[^/]' \| \
20064 X"$ac_file" : 'X\(//\)$' \| \
20065 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20066 $as_echo X"$ac_file" |
20067 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20071 /^X\(\/\/\)[^/].*/{
20084 as_dir="$ac_dir"; as_fn_mkdir_p
20088 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20090 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20091 # A ".." for each directory in $ac_dir_suffix.
20092 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20093 case $ac_top_builddir_sub in
20094 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20095 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20098 ac_abs_top_builddir=$ac_pwd
20099 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20100 # for backward compatibility:
20101 ac_top_builddir=$ac_top_build_prefix
20104 .) # We are building in place.
20106 ac_top_srcdir=$ac_top_builddir_sub
20107 ac_abs_top_srcdir=$ac_pwd ;;
20108 [\\/]* | ?:[\\/]* ) # Absolute name.
20109 ac_srcdir=$srcdir$ac_dir_suffix;
20110 ac_top_srcdir=$srcdir
20111 ac_abs_top_srcdir=$srcdir ;;
20112 *) # Relative name.
20113 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20114 ac_top_srcdir=$ac_top_build_prefix$srcdir
20115 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20117 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20127 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20128 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20130 ac_MKDIR_P=$MKDIR_P
20132 [\\/$]* | ?:[\\/]* ) ;;
20133 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20137 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20138 # If the template does not know about datarootdir, expand it.
20139 # FIXME: This hack should be removed a few years after 2.60.
20140 ac_datarootdir_hack=; ac_datarootdir_seen=
20151 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20152 *datarootdir*) ac_datarootdir_seen=yes;;
20153 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20155 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20157 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20158 ac_datarootdir_hack='
20159 s&@datadir@&$datadir&g
20160 s&@docdir@&$docdir&g
20161 s&@infodir@&$infodir&g
20162 s&@localedir@&$localedir&g
20163 s&@mandir@&$mandir&g
20164 s&\\\${datarootdir}&$datarootdir&g' ;;
20168 # Neutralize VPATH when `$srcdir' = `.'.
20169 # Shell code in configure.ac might set extrasub.
20170 # FIXME: do we really want to maintain this feature?
20171 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20172 ac_sed_extra="$ac_vpsub
20175 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20177 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20178 s|@configure_input@|$ac_sed_conf_input|;t t
20179 s&@top_builddir@&$ac_top_builddir_sub&;t t
20180 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20181 s&@srcdir@&$ac_srcdir&;t t
20182 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20183 s&@top_srcdir@&$ac_top_srcdir&;t t
20184 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20185 s&@builddir@&$ac_builddir&;t t
20186 s&@abs_builddir@&$ac_abs_builddir&;t t
20187 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20188 s&@INSTALL@&$ac_INSTALL&;t t
20189 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20190 $ac_datarootdir_hack
20192 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20193 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20195 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20196 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20197 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20198 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20200 which seems to be undefined. Please make sure it is defined" >&5
20201 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20202 which seems to be undefined. Please make sure it is defined" >&2;}
20204 rm -f "$ac_tmp/stdin"
20206 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20207 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20209 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20215 if test x"$ac_file" != x-; then
20217 $as_echo "/* $configure_input */" \
20218 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20219 } >"$ac_tmp/config.h" \
20220 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20221 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20222 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20223 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20226 mv "$ac_tmp/config.h" "$ac_file" \
20227 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20230 $as_echo "/* $configure_input */" \
20231 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20232 || as_fn_error $? "could not create -" "$LINENO" 5
20240 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
20243 # Prefer the file from the source tree if names are identical.
20244 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
20245 ac_source=$srcdir/$ac_source
20248 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
20249 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
20251 if test ! -r "$ac_source"; then
20252 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
20256 # Try a relative symlink, then a hard link, then a copy.
20258 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
20259 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
20261 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
20262 ln "$ac_source" "$ac_file" 2>/dev/null ||
20263 cp -p "$ac_source" "$ac_file" ||
20264 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
20267 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20268 $as_echo "$as_me: executing $ac_file commands" >&6;}
20273 case $ac_file$ac_mode in
20274 "check_win32_symlinks":C)
20275 # Links sometimes fail undetected on Mingw -
20276 # so here we detect it and warn the user
20277 for FILE in $CONFIG_LINKS
20279 # test -e works for symlinks in the MinGW console
20280 test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** link for $FILE -- please fix by hand" >&5
20281 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
20284 "src/include/pg_config.h":H)
20285 # Update timestamp for pg_config.h (see Makefile.global)
20286 echo >src/include/stamp-h
20288 "src/include/pg_config_ext.h":H)
20289 # Update timestamp for pg_config_ext.h (see Makefile.global)
20290 echo >src/include/stamp-ext-h
20292 "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
20300 ac_clean_files=$ac_clean_files_save
20302 test $ac_write_fail = 0 ||
20303 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20306 # configure is writing to config.log, and then calls config.status.
20307 # config.status does its own redirection, appending to config.log.
20308 # Unfortunately, on DOS this fails, as config.log is still kept open
20309 # by configure, so config.status won't be able to write to it; its
20310 # output is simply discarded. So we exec the FD to /dev/null,
20311 # effectively closing config.log, so it can be properly (re)opened and
20312 # appended to by config.status. When coming back to configure, we
20313 # need to make the FD available again.
20314 if test "$no_create" != yes; then
20316 ac_config_status_args=
20317 test "$silent" = yes &&
20318 ac_config_status_args="$ac_config_status_args --quiet"
20320 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20322 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20323 # would make configure fail if this is the last instruction.
20324 $ac_cs_success || as_fn_exit 1
20326 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20328 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}