2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for PostgreSQL 9.6devel.
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-2015, 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='9.6devel'
586 PACKAGE_STRING='PostgreSQL 9.6devel'
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
665 python_additional_libs
784 program_transform_name
797 enable_option_checking
803 enable_integer_datetimes
834 with_libedit_preferred
846 ac_precious_vars='build_alias
860 # Initialize some variables set by options.
862 ac_init_version=false
863 ac_unrecognized_opts=
865 # The variables have the same names as the options, with
866 # dashes changed to underlines.
874 program_transform_name=s,x,x,
882 # Installation directory options.
883 # These are left unexpanded so users can "make install exec_prefix=/foo"
884 # and all the variables that are supposed to be based on exec_prefix
885 # by default will actually change.
886 # Use braces instead of parens because sh, perl, etc. also accept them.
887 # (The list follows the same order as the GNU Coding Standards.)
888 bindir='${exec_prefix}/bin'
889 sbindir='${exec_prefix}/sbin'
890 libexecdir='${exec_prefix}/libexec'
891 datarootdir='${prefix}/share'
892 datadir='${datarootdir}'
893 sysconfdir='${prefix}/etc'
894 sharedstatedir='${prefix}/com'
895 localstatedir='${prefix}/var'
896 includedir='${prefix}/include'
897 oldincludedir='/usr/include'
898 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
899 infodir='${datarootdir}/info'
904 libdir='${exec_prefix}/lib'
905 localedir='${datarootdir}/locale'
906 mandir='${datarootdir}/man'
912 # If the previous option needs an argument, assign it.
913 if test -n "$ac_prev"; then
914 eval $ac_prev=\$ac_option
920 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
925 # Accept the important Cygnus configure options, so we can diagnose typos.
927 case $ac_dashdash$ac_option in
931 -bindir | --bindir | --bindi | --bind | --bin | --bi)
933 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
936 -build | --build | --buil | --bui | --bu)
937 ac_prev=build_alias ;;
938 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
939 build_alias=$ac_optarg ;;
941 -cache-file | --cache-file | --cache-fil | --cache-fi \
942 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
943 ac_prev=cache_file ;;
944 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
945 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
946 cache_file=$ac_optarg ;;
949 cache_file=config.cache ;;
951 -datadir | --datadir | --datadi | --datad)
953 -datadir=* | --datadir=* | --datadi=* | --datad=*)
954 datadir=$ac_optarg ;;
956 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
957 | --dataroo | --dataro | --datar)
958 ac_prev=datarootdir ;;
959 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
960 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
961 datarootdir=$ac_optarg ;;
963 -disable-* | --disable-*)
964 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
965 # Reject names that are not valid shell variable names.
966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
967 as_fn_error $? "invalid feature name: $ac_useropt"
968 ac_useropt_orig=$ac_useropt
969 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970 case $ac_user_opts in
974 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
975 ac_unrecognized_sep=', ';;
977 eval enable_$ac_useropt=no ;;
979 -docdir | --docdir | --docdi | --doc | --do)
981 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
984 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
986 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
989 -enable-* | --enable-*)
990 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
991 # Reject names that are not valid shell variable names.
992 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
993 as_fn_error $? "invalid feature name: $ac_useropt"
994 ac_useropt_orig=$ac_useropt
995 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996 case $ac_user_opts in
1000 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1001 ac_unrecognized_sep=', ';;
1003 eval enable_$ac_useropt=\$ac_optarg ;;
1005 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1006 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1007 | --exec | --exe | --ex)
1008 ac_prev=exec_prefix ;;
1009 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1010 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1011 | --exec=* | --exe=* | --ex=*)
1012 exec_prefix=$ac_optarg ;;
1014 -gas | --gas | --ga | --g)
1015 # Obsolete; use --with-gas.
1018 -help | --help | --hel | --he | -h)
1019 ac_init_help=long ;;
1020 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1021 ac_init_help=recursive ;;
1022 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1023 ac_init_help=short ;;
1025 -host | --host | --hos | --ho)
1026 ac_prev=host_alias ;;
1027 -host=* | --host=* | --hos=* | --ho=*)
1028 host_alias=$ac_optarg ;;
1030 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1032 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1034 htmldir=$ac_optarg ;;
1036 -includedir | --includedir | --includedi | --included | --include \
1037 | --includ | --inclu | --incl | --inc)
1038 ac_prev=includedir ;;
1039 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1040 | --includ=* | --inclu=* | --incl=* | --inc=*)
1041 includedir=$ac_optarg ;;
1043 -infodir | --infodir | --infodi | --infod | --info | --inf)
1045 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1046 infodir=$ac_optarg ;;
1048 -libdir | --libdir | --libdi | --libd)
1050 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1051 libdir=$ac_optarg ;;
1053 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1054 | --libexe | --libex | --libe)
1055 ac_prev=libexecdir ;;
1056 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1057 | --libexe=* | --libex=* | --libe=*)
1058 libexecdir=$ac_optarg ;;
1060 -localedir | --localedir | --localedi | --localed | --locale)
1061 ac_prev=localedir ;;
1062 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1063 localedir=$ac_optarg ;;
1065 -localstatedir | --localstatedir | --localstatedi | --localstated \
1066 | --localstate | --localstat | --localsta | --localst | --locals)
1067 ac_prev=localstatedir ;;
1068 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1069 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1070 localstatedir=$ac_optarg ;;
1072 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1074 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1075 mandir=$ac_optarg ;;
1077 -nfp | --nfp | --nf)
1078 # Obsolete; use --without-fp.
1081 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1082 | --no-cr | --no-c | -n)
1085 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1086 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1089 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1090 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1091 | --oldin | --oldi | --old | --ol | --o)
1092 ac_prev=oldincludedir ;;
1093 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1094 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1095 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1096 oldincludedir=$ac_optarg ;;
1098 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1100 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1101 prefix=$ac_optarg ;;
1103 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1104 | --program-pre | --program-pr | --program-p)
1105 ac_prev=program_prefix ;;
1106 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1107 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1108 program_prefix=$ac_optarg ;;
1110 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1111 | --program-suf | --program-su | --program-s)
1112 ac_prev=program_suffix ;;
1113 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1114 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1115 program_suffix=$ac_optarg ;;
1117 -program-transform-name | --program-transform-name \
1118 | --program-transform-nam | --program-transform-na \
1119 | --program-transform-n | --program-transform- \
1120 | --program-transform | --program-transfor \
1121 | --program-transfo | --program-transf \
1122 | --program-trans | --program-tran \
1123 | --progr-tra | --program-tr | --program-t)
1124 ac_prev=program_transform_name ;;
1125 -program-transform-name=* | --program-transform-name=* \
1126 | --program-transform-nam=* | --program-transform-na=* \
1127 | --program-transform-n=* | --program-transform-=* \
1128 | --program-transform=* | --program-transfor=* \
1129 | --program-transfo=* | --program-transf=* \
1130 | --program-trans=* | --program-tran=* \
1131 | --progr-tra=* | --program-tr=* | --program-t=*)
1132 program_transform_name=$ac_optarg ;;
1134 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1136 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1137 pdfdir=$ac_optarg ;;
1139 -psdir | --psdir | --psdi | --psd | --ps)
1141 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1145 | -silent | --silent | --silen | --sile | --sil)
1148 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1150 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1152 sbindir=$ac_optarg ;;
1154 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1155 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1156 | --sharedst | --shareds | --shared | --share | --shar \
1158 ac_prev=sharedstatedir ;;
1159 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1160 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1161 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1163 sharedstatedir=$ac_optarg ;;
1165 -site | --site | --sit)
1167 -site=* | --site=* | --sit=*)
1170 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1172 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1173 srcdir=$ac_optarg ;;
1175 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1176 | --syscon | --sysco | --sysc | --sys | --sy)
1177 ac_prev=sysconfdir ;;
1178 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1179 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1180 sysconfdir=$ac_optarg ;;
1182 -target | --target | --targe | --targ | --tar | --ta | --t)
1183 ac_prev=target_alias ;;
1184 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1185 target_alias=$ac_optarg ;;
1187 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1190 -version | --version | --versio | --versi | --vers | -V)
1191 ac_init_version=: ;;
1194 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197 as_fn_error $? "invalid package name: $ac_useropt"
1198 ac_useropt_orig=$ac_useropt
1199 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200 case $ac_user_opts in
1204 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1205 ac_unrecognized_sep=', ';;
1207 eval with_$ac_useropt=\$ac_optarg ;;
1209 -without-* | --without-*)
1210 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1211 # Reject names that are not valid shell variable names.
1212 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213 as_fn_error $? "invalid package name: $ac_useropt"
1214 ac_useropt_orig=$ac_useropt
1215 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1216 case $ac_user_opts in
1220 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1221 ac_unrecognized_sep=', ';;
1223 eval with_$ac_useropt=no ;;
1226 # Obsolete; use --with-x.
1229 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1230 | --x-incl | --x-inc | --x-in | --x-i)
1231 ac_prev=x_includes ;;
1232 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1233 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1234 x_includes=$ac_optarg ;;
1236 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1237 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1238 ac_prev=x_libraries ;;
1239 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1240 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1241 x_libraries=$ac_optarg ;;
1243 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1244 Try \`$0 --help' for more information"
1248 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1249 # Reject names that are not valid shell variable names.
1250 case $ac_envvar in #(
1251 '' | [0-9]* | *[!_$as_cr_alnum]* )
1252 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1254 eval $ac_envvar=\$ac_optarg
1255 export $ac_envvar ;;
1258 # FIXME: should be removed in autoconf 3.0.
1259 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1260 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1261 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1262 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1268 if test -n "$ac_prev"; then
1269 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1270 as_fn_error $? "missing argument to $ac_option"
1273 if test -n "$ac_unrecognized_opts"; then
1274 case $enable_option_checking in
1276 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1277 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1281 # Check all directory arguments for consistency.
1282 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1283 datadir sysconfdir sharedstatedir localstatedir includedir \
1284 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1285 libdir localedir mandir
1287 eval ac_val=\$$ac_var
1288 # Remove trailing slashes.
1291 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1292 eval $ac_var=\$ac_val;;
1294 # Be sure to have absolute directory names.
1296 [\\/$]* | ?:[\\/]* ) continue;;
1297 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1299 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1302 # There might be people who depend on the old broken behavior: `$host'
1303 # used to hold the argument of --host etc.
1304 # FIXME: To remove some day.
1307 target=$target_alias
1309 # FIXME: To remove some day.
1310 if test "x$host_alias" != x; then
1311 if test "x$build_alias" = x; then
1312 cross_compiling=maybe
1313 elif test "x$build_alias" != "x$host_alias"; then
1319 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1321 test "$silent" = yes && exec 6>/dev/null
1324 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1325 ac_ls_di=`ls -di .` &&
1326 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1327 as_fn_error $? "working directory cannot be determined"
1328 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1329 as_fn_error $? "pwd does not report name of working directory"
1332 # Find the source files, if location was not specified.
1333 if test -z "$srcdir"; then
1334 ac_srcdir_defaulted=yes
1335 # Try the directory containing this script, then the parent directory.
1336 ac_confdir=`$as_dirname -- "$as_myself" ||
1337 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1338 X"$as_myself" : 'X\(//\)[^/]' \| \
1339 X"$as_myself" : 'X\(//\)$' \| \
1340 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1341 $as_echo X"$as_myself" |
1342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1360 if test ! -r "$srcdir/$ac_unique_file"; then
1364 ac_srcdir_defaulted=no
1366 if test ! -r "$srcdir/$ac_unique_file"; then
1367 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1368 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1370 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1372 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1374 # When building in place, set srcdir=.
1375 if test "$ac_abs_confdir" = "$ac_pwd"; then
1378 # Remove unnecessary trailing slashes from srcdir.
1379 # Double slashes in file names in object file debugging info
1380 # mess up M-x gdb in Emacs.
1382 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1384 for ac_var in $ac_precious_vars; do
1385 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_env_${ac_var}_value=\$${ac_var}
1387 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1388 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1392 # Report the --help message.
1394 if test "$ac_init_help" = "long"; then
1395 # Omit some internal or obsolete options to make the list less imposing.
1396 # This message is too long to be a string in the A/UX 3.1 sh.
1398 \`configure' configures PostgreSQL 9.6devel to adapt to many kinds of systems.
1400 Usage: $0 [OPTION]... [VAR=VALUE]...
1402 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1403 VAR=VALUE. See below for descriptions of some of the useful variables.
1405 Defaults for the options are specified in brackets.
1408 -h, --help display this help and exit
1409 --help=short display options specific to this package
1410 --help=recursive display the short help of all the included packages
1411 -V, --version display version information and exit
1412 -q, --quiet, --silent do not print \`checking ...' messages
1413 --cache-file=FILE cache test results in FILE [disabled]
1414 -C, --config-cache alias for \`--cache-file=config.cache'
1415 -n, --no-create do not create output files
1416 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1418 Installation directories:
1419 --prefix=PREFIX install architecture-independent files in PREFIX
1420 [$ac_default_prefix]
1421 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1424 By default, \`make install' will install all the files in
1425 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1426 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1427 for instance \`--prefix=\$HOME'.
1429 For better control, use the options below.
1431 Fine tuning of the installation directories:
1432 --bindir=DIR user executables [EPREFIX/bin]
1433 --sbindir=DIR system admin executables [EPREFIX/sbin]
1434 --libexecdir=DIR program executables [EPREFIX/libexec]
1435 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1436 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1437 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1438 --libdir=DIR object code libraries [EPREFIX/lib]
1439 --includedir=DIR C header files [PREFIX/include]
1440 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1441 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1442 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1443 --infodir=DIR info documentation [DATAROOTDIR/info]
1444 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1445 --mandir=DIR man documentation [DATAROOTDIR/man]
1446 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1447 --htmldir=DIR html documentation [DOCDIR]
1448 --dvidir=DIR dvi documentation [DOCDIR]
1449 --pdfdir=DIR pdf documentation [DOCDIR]
1450 --psdir=DIR ps documentation [DOCDIR]
1456 --build=BUILD configure for building on BUILD [guessed]
1457 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1461 if test -n "$ac_init_help"; then
1462 case $ac_init_help in
1463 short | recursive ) echo "Configuration of PostgreSQL 9.6devel:";;
1468 --disable-option-checking ignore unrecognized --enable/--with options
1469 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1470 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1471 --disable-integer-datetimes
1472 disable 64-bit integer date/time support
1473 --enable-nls[=LANGUAGES]
1474 enable Native Language Support
1475 --disable-rpath do not embed shared library search path in
1477 --disable-spinlocks do not use spinlocks
1478 --disable-atomics do not use atomic operations
1479 --enable-debug build with debugging symbols (-g)
1480 --enable-profiling build with profiling enabled
1481 --enable-coverage build with coverage testing instrumentation
1482 --enable-dtrace build with DTrace support
1483 --enable-tap-tests enable TAP tests (requires Perl and IPC::Run)
1484 --enable-depend turn on automatic dependency tracking
1485 --enable-cassert enable assertion checks (for debugging)
1486 --disable-thread-safety disable thread-safety in client libraries
1487 --disable-largefile omit support for large files
1488 --disable-float4-byval disable float4 passed by value
1489 --disable-float8-byval disable float8 passed by value
1492 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1493 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1494 --with-extra-version=STRING
1495 append STRING to version
1496 --with-template=NAME override operating system template
1497 --with-includes=DIRS look for additional header files in DIRS
1498 --with-libraries=DIRS look for additional libraries in DIRS
1499 --with-libs=DIRS alternative spelling of --with-libraries
1500 --with-pgport=PORTNUM set default port number [5432]
1501 --with-blocksize=BLOCKSIZE
1502 set table block size in kB [8]
1503 --with-segsize=SEGSIZE set table segment size in GB [1]
1504 --with-wal-blocksize=BLOCKSIZE
1505 set WAL block size in kB [8]
1506 --with-wal-segsize=SEGSIZE
1507 set WAL segment size in MB [16]
1508 --with-CC=CMD set compiler (deprecated)
1509 --with-tcl build Tcl modules (PL/Tcl)
1510 --with-tclconfig=DIR tclConfig.sh is in DIR
1511 --with-perl build Perl modules (PL/Perl)
1512 --with-python build Python modules (PL/Python)
1513 --with-gssapi build with GSSAPI support
1514 --with-krb-srvnam=NAME default service principal name in Kerberos (GSSAPI)
1516 --with-pam build with PAM support
1517 --with-ldap build with LDAP support
1518 --with-bonjour build with Bonjour support
1519 --with-openssl build with OpenSSL support
1520 --with-selinux build with SELinux support
1521 --without-readline do not use GNU Readline nor BSD Libedit for editing
1522 --with-libedit-preferred
1523 prefer BSD Libedit over GNU Readline
1524 --with-uuid=LIB build contrib/uuid-ossp using LIB (bsd,e2fs,ossp)
1525 --with-ossp-uuid obsolete spelling of --with-uuid=ossp
1526 --with-libxml build with XML support
1527 --with-libxslt use XSLT support when building contrib/xml2
1528 --with-system-tzdata=DIR
1529 use system time zone data in DIR
1530 --without-zlib do not use Zlib
1531 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1533 Some influential environment variables:
1534 CC C compiler command
1535 CFLAGS C compiler flags
1536 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1537 nonstandard directory <lib dir>
1538 LIBS libraries to pass to the linker, e.g. -l<library>
1539 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1540 you have headers in a nonstandard directory <include dir>
1542 LDFLAGS_EX extra linker flags for linking executables only
1543 LDFLAGS_SL extra linker flags for linking shared libraries only
1545 location of DocBook stylesheets
1547 Use these variables to override the choices made by `configure' or to help
1548 it to find libraries and programs with nonstandard names/locations.
1550 Report bugs to <pgsql-bugs@postgresql.org>.
1555 if test "$ac_init_help" = "recursive"; then
1556 # If there are subdirs, report their specific --help.
1557 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1558 test -d "$ac_dir" ||
1559 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1564 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1566 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1567 # A ".." for each directory in $ac_dir_suffix.
1568 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1569 case $ac_top_builddir_sub in
1570 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1571 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1574 ac_abs_top_builddir=$ac_pwd
1575 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1576 # for backward compatibility:
1577 ac_top_builddir=$ac_top_build_prefix
1580 .) # We are building in place.
1582 ac_top_srcdir=$ac_top_builddir_sub
1583 ac_abs_top_srcdir=$ac_pwd ;;
1584 [\\/]* | ?:[\\/]* ) # Absolute name.
1585 ac_srcdir=$srcdir$ac_dir_suffix;
1586 ac_top_srcdir=$srcdir
1587 ac_abs_top_srcdir=$srcdir ;;
1589 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1590 ac_top_srcdir=$ac_top_build_prefix$srcdir
1591 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1593 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1595 cd "$ac_dir" || { ac_status=$?; continue; }
1596 # Check for guested configure.
1597 if test -f "$ac_srcdir/configure.gnu"; then
1599 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1600 elif test -f "$ac_srcdir/configure"; then
1602 $SHELL "$ac_srcdir/configure" --help=recursive
1604 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1606 cd "$ac_pwd" || { ac_status=$?; break; }
1610 test -n "$ac_init_help" && exit $ac_status
1611 if $ac_init_version; then
1613 PostgreSQL configure 9.6devel
1614 generated by GNU Autoconf 2.69
1616 Copyright (C) 2012 Free Software Foundation, Inc.
1617 This configure script is free software; the Free Software Foundation
1618 gives unlimited permission to copy, distribute and modify it.
1620 Copyright (c) 1996-2015, PostgreSQL Global Development Group
1625 ## ------------------------ ##
1626 ## Autoconf initialization. ##
1627 ## ------------------------ ##
1629 # ac_fn_c_try_compile LINENO
1630 # --------------------------
1631 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1632 ac_fn_c_try_compile ()
1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635 rm -f conftest.$ac_objext
1636 if { { ac_try="$ac_compile"
1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639 *) ac_try_echo=$ac_try;;
1641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642 $as_echo "$ac_try_echo"; } >&5
1643 (eval "$ac_compile") 2>conftest.err
1645 if test -s conftest.err; then
1646 grep -v '^ *+' conftest.err >conftest.er1
1647 cat conftest.er1 >&5
1648 mv -f conftest.er1 conftest.err
1650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651 test $ac_status = 0; } && {
1652 test -z "$ac_c_werror_flag" ||
1653 test ! -s conftest.err
1654 } && test -s conftest.$ac_objext; then :
1657 $as_echo "$as_me: failed program was:" >&5
1658 sed 's/^/| /' conftest.$ac_ext >&5
1662 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1663 as_fn_set_status $ac_retval
1665 } # ac_fn_c_try_compile
1667 # ac_fn_c_try_link LINENO
1668 # -----------------------
1669 # Try to link conftest.$ac_ext, and return whether this succeeded.
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 rm -f conftest.$ac_objext conftest$ac_exeext
1674 if { { ac_try="$ac_link"
1676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1677 *) ac_try_echo=$ac_try;;
1679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680 $as_echo "$ac_try_echo"; } >&5
1681 (eval "$ac_link") 2>conftest.err
1683 if test -s conftest.err; then
1684 grep -v '^ *+' conftest.err >conftest.er1
1685 cat conftest.er1 >&5
1686 mv -f conftest.er1 conftest.err
1688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689 test $ac_status = 0; } && {
1690 test -z "$ac_c_werror_flag" ||
1691 test ! -s conftest.err
1692 } && test -s conftest$ac_exeext && {
1693 test "$cross_compiling" = yes ||
1694 test -x conftest$ac_exeext
1698 $as_echo "$as_me: failed program was:" >&5
1699 sed 's/^/| /' conftest.$ac_ext >&5
1703 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1704 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1705 # interfere with the next link command; also delete a directory that is
1706 # left behind by Apple's compiler. We do this before executing the actions.
1707 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709 as_fn_set_status $ac_retval
1711 } # ac_fn_c_try_link
1713 # ac_fn_c_try_cpp LINENO
1714 # ----------------------
1715 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 if { { ac_try="$ac_cpp conftest.$ac_ext"
1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 $as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1728 if test -s conftest.err; then
1729 grep -v '^ *+' conftest.err >conftest.er1
1730 cat conftest.er1 >&5
1731 mv -f conftest.er1 conftest.err
1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; } > conftest.i && {
1735 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1736 test ! -s conftest.err
1740 $as_echo "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.$ac_ext >&5
1745 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746 as_fn_set_status $ac_retval
1750 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1751 # -------------------------------------------------------
1752 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1753 # the include files in INCLUDES and setting the cache variable VAR
1755 ac_fn_c_check_header_mongrel ()
1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758 if eval \${$3+:} false; then :
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1760 $as_echo_n "checking for $2... " >&6; }
1761 if eval \${$3+:} false; then :
1762 $as_echo_n "(cached) " >&6
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1766 $as_echo "$ac_res" >&6; }
1768 # Is the header compilable?
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1770 $as_echo_n "checking $2 usability... " >&6; }
1771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1772 /* end confdefs.h. */
1776 if ac_fn_c_try_compile "$LINENO"; then :
1777 ac_header_compiler=yes
1779 ac_header_compiler=no
1781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1783 $as_echo "$ac_header_compiler" >&6; }
1785 # Is the header present?
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1787 $as_echo_n "checking $2 presence... " >&6; }
1788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1789 /* end confdefs.h. */
1792 if ac_fn_c_try_cpp "$LINENO"; then :
1793 ac_header_preproc=yes
1795 ac_header_preproc=no
1797 rm -f conftest.err conftest.i conftest.$ac_ext
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1799 $as_echo "$ac_header_preproc" >&6; }
1801 # So? What about this header?
1802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1805 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1807 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1811 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1813 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1815 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1817 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1819 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1820 ( $as_echo "## ---------------------------------------- ##
1821 ## Report this to pgsql-bugs@postgresql.org ##
1822 ## ---------------------------------------- ##"
1823 ) | sed "s/^/$as_me: WARNING: /" >&2
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1827 $as_echo_n "checking for $2... " >&6; }
1828 if eval \${$3+:} false; then :
1829 $as_echo_n "(cached) " >&6
1831 eval "$3=\$ac_header_compiler"
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1835 $as_echo "$ac_res" >&6; }
1837 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1839 } # ac_fn_c_check_header_mongrel
1841 # ac_fn_c_try_run LINENO
1842 # ----------------------
1843 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1844 # that executables *can* be run.
1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848 if { { ac_try="$ac_link"
1850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851 *) ac_try_echo=$ac_try;;
1853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 $as_echo "$ac_try_echo"; } >&5
1855 (eval "$ac_link") 2>&5
1857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1859 { { case "(($ac_try" in
1860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1861 *) ac_try_echo=$ac_try;;
1863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1864 $as_echo "$ac_try_echo"; } >&5
1865 (eval "$ac_try") 2>&5
1867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868 test $ac_status = 0; }; }; then :
1871 $as_echo "$as_me: program exited with status $ac_status" >&5
1872 $as_echo "$as_me: failed program was:" >&5
1873 sed 's/^/| /' conftest.$ac_ext >&5
1875 ac_retval=$ac_status
1877 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1878 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879 as_fn_set_status $ac_retval
1883 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1884 # -------------------------------------------------------
1885 # Tests whether HEADER exists and can be compiled using the include files in
1886 # INCLUDES, setting the cache variable VAR accordingly.
1887 ac_fn_c_check_header_compile ()
1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1891 $as_echo_n "checking for $2... " >&6; }
1892 if eval \${$3+:} false; then :
1893 $as_echo_n "(cached) " >&6
1895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1896 /* end confdefs.h. */
1900 if ac_fn_c_try_compile "$LINENO"; then :
1905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1909 $as_echo "$ac_res" >&6; }
1910 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1912 } # ac_fn_c_check_header_compile
1914 # ac_fn_c_check_func LINENO FUNC VAR
1915 # ----------------------------------
1916 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1917 ac_fn_c_check_func ()
1919 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1921 $as_echo_n "checking for $2... " >&6; }
1922 if eval \${$3+:} false; then :
1923 $as_echo_n "(cached) " >&6
1925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926 /* end confdefs.h. */
1927 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1929 #define $2 innocuous_$2
1931 /* System header to define __stub macros and hopefully few prototypes,
1932 which can conflict with char $2 (); below.
1933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1934 <limits.h> exists even on freestanding compilers. */
1937 # include <limits.h>
1939 # include <assert.h>
1944 /* Override any GCC internal prototype to avoid an error.
1945 Use char because int might match the return type of a GCC
1946 builtin and then its argument prototype would still apply. */
1951 /* The GNU C library defines this for functions which it implements
1952 to always fail with ENOSYS. Some functions are actually named
1953 something starting with __ and the normal name is an alias. */
1954 #if defined __stub_$2 || defined __stub___$2
1966 if ac_fn_c_try_link "$LINENO"; then :
1971 rm -f core conftest.err conftest.$ac_objext \
1972 conftest$ac_exeext conftest.$ac_ext
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1976 $as_echo "$ac_res" >&6; }
1977 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1979 } # ac_fn_c_check_func
1981 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1982 # ----------------------------------------------------
1983 # Tries to find if the field MEMBER exists in type AGGR, after including
1984 # INCLUDES, setting cache variable VAR accordingly.
1985 ac_fn_c_check_member ()
1987 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1989 $as_echo_n "checking for $2.$3... " >&6; }
1990 if eval \${$4+:} false; then :
1991 $as_echo_n "(cached) " >&6
1993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994 /* end confdefs.h. */
2006 if ac_fn_c_try_compile "$LINENO"; then :
2009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2010 /* end confdefs.h. */
2016 if (sizeof ac_aggr.$3)
2022 if ac_fn_c_try_compile "$LINENO"; then :
2027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2033 $as_echo "$ac_res" >&6; }
2034 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2036 } # ac_fn_c_check_member
2038 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2039 # -------------------------------------------
2040 # Tests whether TYPE exists after having included INCLUDES, setting cache
2041 # variable VAR accordingly.
2042 ac_fn_c_check_type ()
2044 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2046 $as_echo_n "checking for $2... " >&6; }
2047 if eval \${$3+:} false; then :
2048 $as_echo_n "(cached) " >&6
2051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2052 /* end confdefs.h. */
2063 if ac_fn_c_try_compile "$LINENO"; then :
2064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065 /* end confdefs.h. */
2076 if ac_fn_c_try_compile "$LINENO"; then :
2081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2087 $as_echo "$ac_res" >&6; }
2088 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2090 } # ac_fn_c_check_type
2092 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2093 # --------------------------------------------
2094 # Tries to find the compile-time value of EXPR in a program that includes
2095 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2097 ac_fn_c_compute_int ()
2099 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2100 if test "$cross_compiling" = yes; then
2101 # Depending upon the size, compute the lo and hi bounds.
2102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2103 /* end confdefs.h. */
2108 static int test_array [1 - 2 * !(($2) >= 0)];
2110 return test_array [0];
2116 if ac_fn_c_try_compile "$LINENO"; then :
2119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2120 /* end confdefs.h. */
2125 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2127 return test_array [0];
2133 if ac_fn_c_try_compile "$LINENO"; then :
2134 ac_hi=$ac_mid; break
2136 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2137 if test $ac_lo -le $ac_mid; then
2141 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2147 /* end confdefs.h. */
2152 static int test_array [1 - 2 * !(($2) < 0)];
2154 return test_array [0];
2160 if ac_fn_c_try_compile "$LINENO"; then :
2163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2164 /* end confdefs.h. */
2169 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2171 return test_array [0];
2177 if ac_fn_c_try_compile "$LINENO"; then :
2178 ac_lo=$ac_mid; break
2180 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2181 if test $ac_mid -le $ac_hi; then
2185 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2195 # Binary search between lo and hi bounds.
2196 while test "x$ac_lo" != "x$ac_hi"; do
2197 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199 /* end confdefs.h. */
2204 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2206 return test_array [0];
2212 if ac_fn_c_try_compile "$LINENO"; then :
2215 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2220 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225 /* end confdefs.h. */
2227 static long int longval () { return $2; }
2228 static unsigned long int ulongval () { return $2; }
2235 FILE *f = fopen ("conftest.val", "w");
2240 long int i = longval ();
2243 fprintf (f, "%ld", i);
2247 unsigned long int i = ulongval ();
2250 fprintf (f, "%lu", i);
2252 /* Do not output a trailing newline, as this causes \r\n confusion
2253 on some platforms. */
2254 return ferror (f) || fclose (f) != 0;
2260 if ac_fn_c_try_run "$LINENO"; then :
2261 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2265 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2266 conftest.$ac_objext conftest.beam conftest.$ac_ext
2270 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2271 as_fn_set_status $ac_retval
2273 } # ac_fn_c_compute_int
2275 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2276 # ---------------------------------------------
2277 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2279 ac_fn_c_check_decl ()
2281 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2282 as_decl_name=`echo $2|sed 's/ *(.*//'`
2283 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2285 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2286 if eval \${$3+:} false; then :
2287 $as_echo_n "(cached) " >&6
2289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2290 /* end confdefs.h. */
2295 #ifndef $as_decl_name
2297 (void) $as_decl_use;
2299 (void) $as_decl_name;
2307 if ac_fn_c_try_compile "$LINENO"; then :
2312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2316 $as_echo "$ac_res" >&6; }
2317 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2319 } # ac_fn_c_check_decl
2320 cat >config.log <<_ACEOF
2321 This file contains any messages produced by compilers while
2322 running configure, to aid debugging if configure makes a mistake.
2324 It was created by PostgreSQL $as_me 9.6devel, which was
2325 generated by GNU Autoconf 2.69. Invocation command line was
2337 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2338 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2339 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2340 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2341 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2343 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2344 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2346 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2347 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2348 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2349 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2350 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2351 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2352 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2360 test -z "$as_dir" && as_dir=.
2361 $as_echo "PATH: $as_dir"
2377 # Keep a trace of the command line.
2378 # Strip out --no-create and --no-recursion so they do not pile up.
2379 # Strip out --silent because we don't want to record it for future runs.
2380 # Also quote any args containing shell meta-characters.
2381 # Make two passes to allow for proper duplicate-argument suppression.
2385 ac_must_keep_next=false
2391 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2392 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2393 | -silent | --silent | --silen | --sile | --sil)
2396 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2399 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2401 as_fn_append ac_configure_args1 " '$ac_arg'"
2402 if test $ac_must_keep_next = true; then
2403 ac_must_keep_next=false # Got value, back to normal.
2406 *=* | --config-cache | -C | -disable-* | --disable-* \
2407 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2408 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2409 | -with-* | --with-* | -without-* | --without-* | --x)
2410 case "$ac_configure_args0 " in
2411 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2414 -* ) ac_must_keep_next=true ;;
2417 as_fn_append ac_configure_args " '$ac_arg'"
2422 { ac_configure_args0=; unset ac_configure_args0;}
2423 { ac_configure_args1=; unset ac_configure_args1;}
2425 # When interrupted or exit'd, cleanup temporary files, and complete
2426 # config.log. We remove comments because anyway the quotes in there
2427 # would cause problems or look ugly.
2428 # WARNING: Use '\'' to represent an apostrophe within the trap.
2429 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2430 trap 'exit_status=$?
2431 # Save into config.log some information that might help in debugging.
2435 $as_echo "## ---------------- ##
2436 ## Cache variables. ##
2437 ## ---------------- ##"
2439 # The following way of writing the cache mishandles newlines in values,
2441 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2442 eval ac_val=\$$ac_var
2446 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2447 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2450 _ | IFS | as_nl) ;; #(
2451 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2452 *) { eval $ac_var=; unset $ac_var;} ;;
2457 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2458 *${as_nl}ac_space=\ *)
2460 "s/'\''/'\''\\\\'\'''\''/g;
2461 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2464 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2471 $as_echo "## ----------------- ##
2472 ## Output variables. ##
2473 ## ----------------- ##"
2475 for ac_var in $ac_subst_vars
2477 eval ac_val=\$$ac_var
2479 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2481 $as_echo "$ac_var='\''$ac_val'\''"
2485 if test -n "$ac_subst_files"; then
2486 $as_echo "## ------------------- ##
2487 ## File substitutions. ##
2488 ## ------------------- ##"
2490 for ac_var in $ac_subst_files
2492 eval ac_val=\$$ac_var
2494 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2496 $as_echo "$ac_var='\''$ac_val'\''"
2501 if test -s confdefs.h; then
2502 $as_echo "## ----------- ##
2509 test "$ac_signal" != 0 &&
2510 $as_echo "$as_me: caught signal $ac_signal"
2511 $as_echo "$as_me: exit $exit_status"
2513 rm -f core *.core core.conftest.* &&
2514 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2517 for ac_signal in 1 2 13 15; do
2518 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2522 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2523 rm -f -r conftest* confdefs.h
2525 $as_echo "/* confdefs.h */" > confdefs.h
2527 # Predefined preprocessor variables.
2529 cat >>confdefs.h <<_ACEOF
2530 #define PACKAGE_NAME "$PACKAGE_NAME"
2533 cat >>confdefs.h <<_ACEOF
2534 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2537 cat >>confdefs.h <<_ACEOF
2538 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2541 cat >>confdefs.h <<_ACEOF
2542 #define PACKAGE_STRING "$PACKAGE_STRING"
2545 cat >>confdefs.h <<_ACEOF
2546 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2549 cat >>confdefs.h <<_ACEOF
2550 #define PACKAGE_URL "$PACKAGE_URL"
2554 # Let the site file select an alternate cache file if it wants to.
2555 # Prefer an explicitly selected file to automatically selected ones.
2558 if test -n "$CONFIG_SITE"; then
2559 # We do not want a PATH search for config.site.
2560 case $CONFIG_SITE in #((
2561 -*) ac_site_file1=./$CONFIG_SITE;;
2562 */*) ac_site_file1=$CONFIG_SITE;;
2563 *) ac_site_file1=./$CONFIG_SITE;;
2565 elif test "x$prefix" != xNONE; then
2566 ac_site_file1=$prefix/share/config.site
2567 ac_site_file2=$prefix/etc/config.site
2569 ac_site_file1=$ac_default_prefix/share/config.site
2570 ac_site_file2=$ac_default_prefix/etc/config.site
2572 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2574 test "x$ac_site_file" = xNONE && continue
2575 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2577 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2578 sed 's/^/| /' "$ac_site_file" >&5
2580 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2582 as_fn_error $? "failed to load site script $ac_site_file
2583 See \`config.log' for more details" "$LINENO" 5; }
2587 if test -r "$cache_file"; then
2588 # Some versions of bash will fail to source /dev/null (special files
2589 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2590 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2592 $as_echo "$as_me: loading cache $cache_file" >&6;}
2594 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2595 *) . "./$cache_file";;
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2600 $as_echo "$as_me: creating cache $cache_file" >&6;}
2604 # Check that the precious variables saved in the cache have kept the same
2606 ac_cache_corrupted=false
2607 for ac_var in $ac_precious_vars; do
2608 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2609 eval ac_new_set=\$ac_env_${ac_var}_set
2610 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2611 eval ac_new_val=\$ac_env_${ac_var}_value
2612 case $ac_old_set,$ac_new_set in
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2615 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2616 ac_cache_corrupted=: ;;
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2619 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2620 ac_cache_corrupted=: ;;
2623 if test "x$ac_old_val" != "x$ac_new_val"; then
2624 # differences in whitespace do not lead to failure.
2625 ac_old_val_w=`echo x $ac_old_val`
2626 ac_new_val_w=`echo x $ac_new_val`
2627 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2629 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2630 ac_cache_corrupted=:
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2633 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2634 eval $ac_var=\$ac_old_val
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2637 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2639 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2642 # Pass precious variables to config.status.
2643 if test "$ac_new_set" = set; then
2645 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2646 *) ac_arg=$ac_var=$ac_new_val ;;
2648 case " $ac_configure_args " in
2649 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2650 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2654 if $ac_cache_corrupted; then
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2658 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2659 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2661 ## -------------------- ##
2662 ## Main body of script. ##
2663 ## -------------------- ##
2666 ac_cpp='$CPP $CPPFLAGS'
2667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2677 for ac_dir in config "$srcdir"/config; do
2678 if test -f "$ac_dir/install-sh"; then
2680 ac_install_sh="$ac_aux_dir/install-sh -c"
2682 elif test -f "$ac_dir/install.sh"; then
2684 ac_install_sh="$ac_aux_dir/install.sh -c"
2686 elif test -f "$ac_dir/shtool"; then
2688 ac_install_sh="$ac_aux_dir/shtool install -c"
2692 if test -z "$ac_aux_dir"; then
2693 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2696 # These three variables are undocumented and unsupported,
2697 # and are intended to be withdrawn in a future Autoconf release.
2698 # They can cause serious problems if a builder's source tree is in a directory
2699 # whose full name contains unusual characters.
2700 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2701 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2702 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2706 configure_args=$ac_configure_args
2709 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`
2712 cat >>confdefs.h <<_ACEOF
2713 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2720 # Check whether --with-extra-version was given.
2721 if test "${with_extra_version+set}" = set; then :
2722 withval=$with_extra_version;
2725 as_fn_error $? "argument required for --with-extra-version option" "$LINENO" 5
2728 as_fn_error $? "argument required for --with-extra-version option" "$LINENO" 5
2731 PG_VERSION="$PACKAGE_VERSION$withval"
2736 PG_VERSION="$PACKAGE_VERSION"
2741 cat >>confdefs.h <<_ACEOF
2742 #define PG_VERSION "$PG_VERSION"
2746 # Make sure we can run config.sub.
2747 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2748 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2751 $as_echo_n "checking build system type... " >&6; }
2752 if ${ac_cv_build+:} false; then :
2753 $as_echo_n "(cached) " >&6
2755 ac_build_alias=$build_alias
2756 test "x$ac_build_alias" = x &&
2757 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2758 test "x$ac_build_alias" = x &&
2759 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2760 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2761 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2765 $as_echo "$ac_cv_build" >&6; }
2766 case $ac_cv_build in
2768 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2771 ac_save_IFS=$IFS; IFS='-'
2777 # Remember, the first character of IFS is used to create $*,
2778 # except with old shells:
2781 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2785 $as_echo_n "checking host system type... " >&6; }
2786 if ${ac_cv_host+:} false; then :
2787 $as_echo_n "(cached) " >&6
2789 if test "x$host_alias" = x; then
2790 ac_cv_host=$ac_cv_build
2792 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2793 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2798 $as_echo "$ac_cv_host" >&6; }
2801 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2804 ac_save_IFS=$IFS; IFS='-'
2810 # Remember, the first character of IFS is used to create $*,
2811 # except with old shells:
2814 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which template to use" >&5
2820 $as_echo_n "checking which template to use... " >&6; }
2825 # Check whether --with-template was given.
2826 if test "${with_template+set}" = set; then :
2827 withval=$with_template;
2830 as_fn_error $? "argument required for --with-template option" "$LINENO" 5
2833 as_fn_error $? "argument required for --with-template option" "$LINENO" 5
2838 list) echo; ls "$srcdir/src/template"; exit;;
2839 *) if test -f "$srcdir/src/template/$with_template" ; then
2842 as_fn_error $? "'$withval' is not a valid template name. Use 'list' for a list." "$LINENO" 5
2851 # --with-template not given
2854 aix*) template=aix ;;
2855 cygwin*) template=cygwin ;;
2856 darwin*) template=darwin ;;
2857 dragonfly*) template=netbsd ;;
2858 freebsd*) template=freebsd ;;
2859 hpux*) template=hpux ;;
2860 linux*|gnu*|k*bsd*-gnu)
2862 mingw*) template=win32 ;;
2863 netbsd*) template=netbsd ;;
2864 openbsd*) template=openbsd ;;
2865 sco*) template=sco ;;
2866 solaris*) template=solaris ;;
2867 sysv5*) template=unixware ;;
2870 if test x"$template" = x"" ; then
2872 *******************************************************************
2873 PostgreSQL has apparently not been ported to your platform yet.
2874 To try a manual configuration, look into the src/template directory
2875 for a similar platform and use the '--with-template=' option.
2877 Please also contact <pgsql-bugs@postgresql.org> to see about
2878 rectifying this. Include the above 'checking host system type...'
2880 *******************************************************************
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $template" >&5
2890 $as_echo "$template" >&6; }
2895 # Initialize default assumption that we do not need separate assembly code
2896 # for TAS (test-and-set). This can be overridden by the template file
2897 # when it's executed.
2904 ## Command line options
2908 # Add non-standard directories to the include path
2913 # Check whether --with-includes was given.
2914 if test "${with_includes+set}" = set; then :
2915 withval=$with_includes;
2918 as_fn_error $? "argument required for --with-includes option" "$LINENO" 5
2921 as_fn_error $? "argument required for --with-includes option" "$LINENO" 5
2934 # Add non-standard directories to the library search path
2939 # Check whether --with-libraries was given.
2940 if test "${with_libraries+set}" = set; then :
2941 withval=$with_libraries;
2944 as_fn_error $? "argument required for --with-libraries option" "$LINENO" 5
2947 as_fn_error $? "argument required for --with-libraries option" "$LINENO" 5
2950 LIBRARY_DIRS=$withval
2961 # Check whether --with-libs was given.
2962 if test "${with_libs+set}" = set; then :
2966 as_fn_error $? "argument required for --with-libs option" "$LINENO" 5
2969 as_fn_error $? "argument required for --with-libs option" "$LINENO" 5
2972 LIBRARY_DIRS=$withval
2982 # 64-bit integer date/time storage: enabled by default.
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with 64-bit integer date/time support" >&5
2985 $as_echo_n "checking whether to build with 64-bit integer date/time support... " >&6; }
2988 # Check whether --enable-integer-datetimes was given.
2989 if test "${enable_integer_datetimes+set}" = set; then :
2990 enableval=$enable_integer_datetimes;
2994 $as_echo "#define USE_INTEGER_DATETIMES 1" >>confdefs.h
3001 as_fn_error $? "no argument expected for --enable-integer-datetimes option" "$LINENO" 5
3006 enable_integer_datetimes=yes
3008 $as_echo "#define USE_INTEGER_DATETIMES 1" >>confdefs.h
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_integer_datetimes" >&5
3014 $as_echo "$enable_integer_datetimes" >&6; }
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is wanted" >&5
3021 $as_echo_n "checking whether NLS is wanted... " >&6; }
3024 # Check whether --enable-nls was given.
3025 if test "${enable_nls+set}" = set; then :
3026 enableval=$enable_nls;
3036 WANTED_LANGUAGES=$enableval
3046 if test "$enable_nls" = yes; then
3048 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nls" >&5
3053 $as_echo "$enable_nls" >&6; }
3058 # Default port number (--with-pgport), default 5432
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default port number" >&5
3061 $as_echo_n "checking for default port number... " >&6; }
3065 # Check whether --with-pgport was given.
3066 if test "${with_pgport+set}" = set; then :
3067 withval=$with_pgport;
3070 as_fn_error $? "argument required for --with-pgport option" "$LINENO" 5
3073 as_fn_error $? "argument required for --with-pgport option" "$LINENO" 5
3076 default_port=$withval
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $default_port" >&5
3086 $as_echo "$default_port" >&6; }
3087 # Need both of these because some places want an integer and some a string
3089 cat >>confdefs.h <<_ACEOF
3090 #define DEF_PGPORT ${default_port}
3094 cat >>confdefs.h <<_ACEOF
3095 #define DEF_PGPORT_STR "${default_port}"
3101 # '-rpath'-like feature can be disabled
3105 # Check whether --enable-rpath was given.
3106 if test "${enable_rpath+set}" = set; then :
3107 enableval=$enable_rpath;
3116 as_fn_error $? "no argument expected for --enable-rpath option" "$LINENO" 5
3133 # Check whether --enable-spinlocks was given.
3134 if test "${enable_spinlocks+set}" = set; then :
3135 enableval=$enable_spinlocks;
3144 as_fn_error $? "no argument expected for --enable-spinlocks option" "$LINENO" 5
3149 enable_spinlocks=yes
3160 # Check whether --enable-atomics was given.
3161 if test "${enable_atomics+set}" = set; then :
3162 enableval=$enable_atomics;
3171 as_fn_error $? "no argument expected for --enable-atomics option" "$LINENO" 5
3183 # --enable-debug adds -g to compiler flags
3187 # Check whether --enable-debug was given.
3188 if test "${enable_debug+set}" = set; then :
3189 enableval=$enable_debug;
3198 as_fn_error $? "no argument expected for --enable-debug option" "$LINENO" 5
3211 # --enable-profiling enables gcc profiling
3215 # Check whether --enable-profiling was given.
3216 if test "${enable_profiling+set}" = set; then :
3217 enableval=$enable_profiling;
3226 as_fn_error $? "no argument expected for --enable-profiling option" "$LINENO" 5
3238 # --enable-coverage enables generation of code coverage metrics with gcov
3242 # Check whether --enable-coverage was given.
3243 if test "${enable_coverage+set}" = set; then :
3244 enableval=$enable_coverage;
3249 # Extract the first word of "$ac_prog", so it can be a program name with args.
3250 set dummy $ac_prog; ac_word=$2
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3252 $as_echo_n "checking for $ac_word... " >&6; }
3253 if ${ac_cv_prog_GCOV+:} false; then :
3254 $as_echo_n "(cached) " >&6
3256 if test -n "$GCOV"; then
3257 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
3259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3263 test -z "$as_dir" && as_dir=.
3264 for ac_exec_ext in '' $ac_executable_extensions; do
3265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3266 ac_cv_prog_GCOV="$ac_prog"
3267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3276 GCOV=$ac_cv_prog_GCOV
3277 if test -n "$GCOV"; then
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3279 $as_echo "$GCOV" >&6; }
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3282 $as_echo "no" >&6; }
3286 test -n "$GCOV" && break
3289 if test -z "$GCOV"; then
3290 as_fn_error $? "gcov not found" "$LINENO" 5
3294 # Extract the first word of "$ac_prog", so it can be a program name with args.
3295 set dummy $ac_prog; ac_word=$2
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3297 $as_echo_n "checking for $ac_word... " >&6; }
3298 if ${ac_cv_prog_LCOV+:} false; then :
3299 $as_echo_n "(cached) " >&6
3301 if test -n "$LCOV"; then
3302 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
3304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3308 test -z "$as_dir" && as_dir=.
3309 for ac_exec_ext in '' $ac_executable_extensions; do
3310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3311 ac_cv_prog_LCOV="$ac_prog"
3312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3321 LCOV=$ac_cv_prog_LCOV
3322 if test -n "$LCOV"; then
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3324 $as_echo "$LCOV" >&6; }
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3327 $as_echo "no" >&6; }
3331 test -n "$LCOV" && break
3334 if test -z "$LCOV"; then
3335 as_fn_error $? "lcov not found" "$LINENO" 5
3337 for ac_prog in genhtml
3339 # Extract the first word of "$ac_prog", so it can be a program name with args.
3340 set dummy $ac_prog; ac_word=$2
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3342 $as_echo_n "checking for $ac_word... " >&6; }
3343 if ${ac_cv_prog_GENHTML+:} false; then :
3344 $as_echo_n "(cached) " >&6
3346 if test -n "$GENHTML"; then
3347 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
3349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3353 test -z "$as_dir" && as_dir=.
3354 for ac_exec_ext in '' $ac_executable_extensions; do
3355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3356 ac_cv_prog_GENHTML="$ac_prog"
3357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3366 GENHTML=$ac_cv_prog_GENHTML
3367 if test -n "$GENHTML"; then
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3369 $as_echo "$GENHTML" >&6; }
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3372 $as_echo "no" >&6; }
3376 test -n "$GENHTML" && break
3379 if test -z "$GENHTML"; then
3380 as_fn_error $? "genhtml not found" "$LINENO" 5
3387 as_fn_error $? "no argument expected for --enable-coverage option" "$LINENO" 5
3404 # Check whether --enable-dtrace was given.
3405 if test "${enable_dtrace+set}" = set; then :
3406 enableval=$enable_dtrace;
3409 for ac_prog in dtrace
3411 # Extract the first word of "$ac_prog", so it can be a program name with args.
3412 set dummy $ac_prog; ac_word=$2
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3414 $as_echo_n "checking for $ac_word... " >&6; }
3415 if ${ac_cv_prog_DTRACE+:} false; then :
3416 $as_echo_n "(cached) " >&6
3418 if test -n "$DTRACE"; then
3419 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
3421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3425 test -z "$as_dir" && as_dir=.
3426 for ac_exec_ext in '' $ac_executable_extensions; do
3427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3428 ac_cv_prog_DTRACE="$ac_prog"
3429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3438 DTRACE=$ac_cv_prog_DTRACE
3439 if test -n "$DTRACE"; then
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
3441 $as_echo "$DTRACE" >&6; }
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3444 $as_echo "no" >&6; }
3448 test -n "$DTRACE" && break
3451 if test -z "$DTRACE"; then
3452 as_fn_error $? "dtrace not found" "$LINENO" 5
3460 as_fn_error $? "no argument expected for --enable-dtrace option" "$LINENO" 5
3477 # Check whether --enable-tap-tests was given.
3478 if test "${enable_tap_tests+set}" = set; then :
3479 enableval=$enable_tap_tests;
3488 as_fn_error $? "no argument expected for --enable-tap-tests option" "$LINENO" 5
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for block size" >&5
3504 $as_echo_n "checking for block size... " >&6; }
3508 # Check whether --with-blocksize was given.
3509 if test "${with_blocksize+set}" = set; then :
3510 withval=$with_blocksize;
3513 as_fn_error $? "argument required for --with-blocksize option" "$LINENO" 5
3516 as_fn_error $? "argument required for --with-blocksize option" "$LINENO" 5
3528 case ${blocksize} in
3535 *) as_fn_error $? "Invalid block size. Allowed values are 1,2,4,8,16,32." "$LINENO" 5
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${blocksize}kB" >&5
3538 $as_echo "${blocksize}kB" >&6; }
3541 cat >>confdefs.h <<_ACEOF
3542 #define BLCKSZ ${BLCKSZ}
3547 # Relation segment size
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for segment size" >&5
3550 $as_echo_n "checking for segment size... " >&6; }
3554 # Check whether --with-segsize was given.
3555 if test "${with_segsize+set}" = set; then :
3556 withval=$with_segsize;
3559 as_fn_error $? "argument required for --with-segsize option" "$LINENO" 5
3562 as_fn_error $? "argument required for --with-segsize option" "$LINENO" 5
3574 # this expression is set up to avoid unnecessary integer overflow
3575 # blocksize is already guaranteed to be a factor of 1024
3576 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
3577 test $? -eq 0 || exit 1
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${segsize}GB" >&5
3579 $as_echo "${segsize}GB" >&6; }
3582 cat >>confdefs.h <<_ACEOF
3583 #define RELSEG_SIZE ${RELSEG_SIZE}
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAL block size" >&5
3591 $as_echo_n "checking for WAL block size... " >&6; }
3595 # Check whether --with-wal-blocksize was given.
3596 if test "${with_wal_blocksize+set}" = set; then :
3597 withval=$with_wal_blocksize;
3600 as_fn_error $? "argument required for --with-wal-blocksize option" "$LINENO" 5
3603 as_fn_error $? "argument required for --with-wal-blocksize option" "$LINENO" 5
3606 wal_blocksize=$withval
3615 case ${wal_blocksize} in
3616 1) XLOG_BLCKSZ=1024;;
3617 2) XLOG_BLCKSZ=2048;;
3618 4) XLOG_BLCKSZ=4096;;
3619 8) XLOG_BLCKSZ=8192;;
3620 16) XLOG_BLCKSZ=16384;;
3621 32) XLOG_BLCKSZ=32768;;
3622 64) XLOG_BLCKSZ=65536;;
3623 *) as_fn_error $? "Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." "$LINENO" 5
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${wal_blocksize}kB" >&5
3626 $as_echo "${wal_blocksize}kB" >&6; }
3629 cat >>confdefs.h <<_ACEOF
3630 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAL segment size" >&5
3638 $as_echo_n "checking for WAL segment size... " >&6; }
3642 # Check whether --with-wal-segsize was given.
3643 if test "${with_wal_segsize+set}" = set; then :
3644 withval=$with_wal_segsize;
3647 as_fn_error $? "argument required for --with-wal-segsize option" "$LINENO" 5
3650 as_fn_error $? "argument required for --with-wal-segsize option" "$LINENO" 5
3653 wal_segsize=$withval
3662 case ${wal_segsize} in
3670 *) as_fn_error $? "Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." "$LINENO" 5
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${wal_segsize}MB" >&5
3673 $as_echo "${wal_segsize}MB" >&6; }
3676 cat >>confdefs.h <<_ACEOF
3677 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
3685 # For historical reasons you can also use --with-CC to specify the C compiler
3686 # to use, although the standard way to do this is to set the CC environment
3691 # Check whether --with-CC was given.
3692 if test "${with_CC+set}" = set; then :
3696 as_fn_error $? "argument required for --with-CC option" "$LINENO" 5
3699 as_fn_error $? "argument required for --with-CC option" "$LINENO" 5
3711 aix) pgac_cc_list="gcc xlc";;
3712 *) pgac_cc_list="gcc cc";;
3716 ac_cpp='$CPP $CPPFLAGS'
3717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3720 if test -n "$ac_tool_prefix"; then
3721 for ac_prog in $pgac_cc_list
3723 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3724 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3726 $as_echo_n "checking for $ac_word... " >&6; }
3727 if ${ac_cv_prog_CC+:} false; then :
3728 $as_echo_n "(cached) " >&6
3730 if test -n "$CC"; then
3731 ac_cv_prog_CC="$CC" # Let the user override the test.
3733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3737 test -z "$as_dir" && as_dir=.
3738 for ac_exec_ext in '' $ac_executable_extensions; do
3739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3740 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3751 if test -n "$CC"; then
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3753 $as_echo "$CC" >&6; }
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3756 $as_echo "no" >&6; }
3760 test -n "$CC" && break
3763 if test -z "$CC"; then
3765 for ac_prog in $pgac_cc_list
3767 # Extract the first word of "$ac_prog", so it can be a program name with args.
3768 set dummy $ac_prog; ac_word=$2
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3770 $as_echo_n "checking for $ac_word... " >&6; }
3771 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3772 $as_echo_n "(cached) " >&6
3774 if test -n "$ac_ct_CC"; then
3775 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3781 test -z "$as_dir" && as_dir=.
3782 for ac_exec_ext in '' $ac_executable_extensions; do
3783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3784 ac_cv_prog_ac_ct_CC="$ac_prog"
3785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3794 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3795 if test -n "$ac_ct_CC"; then
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3797 $as_echo "$ac_ct_CC" >&6; }
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3800 $as_echo "no" >&6; }
3804 test -n "$ac_ct_CC" && break
3807 if test "x$ac_ct_CC" = x; then
3810 case $cross_compiling:$ac_tool_warned in
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3813 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3814 ac_tool_warned=yes ;;
3821 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3822 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3823 as_fn_error $? "no acceptable C compiler found in \$PATH
3824 See \`config.log' for more details" "$LINENO" 5; }
3826 # Provide some information about the compiler.
3827 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3830 for ac_option in --version -v -V -qversion; do
3831 { { ac_try="$ac_compiler $ac_option >&5"
3833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3834 *) ac_try_echo=$ac_try;;
3836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3837 $as_echo "$ac_try_echo"; } >&5
3838 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3840 if test -s conftest.err; then
3842 ... rest of stderr output deleted ...
3843 10q' conftest.err >conftest.er1
3844 cat conftest.er1 >&5
3846 rm -f conftest.er1 conftest.err
3847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3848 test $ac_status = 0; }
3851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3852 /* end confdefs.h. */
3862 ac_clean_files_save=$ac_clean_files
3863 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3864 # Try to create an executable without -o first, disregard a.out.
3865 # It will help us diagnose broken compilers, and finding out an intuition
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3868 $as_echo_n "checking whether the C compiler works... " >&6; }
3869 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3871 # The possible output files:
3872 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3875 for ac_file in $ac_files
3878 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3879 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3884 if { { ac_try="$ac_link_default"
3886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3887 *) ac_try_echo=$ac_try;;
3889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3890 $as_echo "$ac_try_echo"; } >&5
3891 (eval "$ac_link_default") 2>&5
3893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3894 test $ac_status = 0; }; then :
3895 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3896 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3897 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3898 # so that the user can short-circuit this test for compilers unknown to
3900 for ac_file in $ac_files ''
3902 test -f "$ac_file" || continue
3904 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3907 # We found the default executable, but exeext='' is most
3911 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3913 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3915 # We set ac_cv_exeext here because the later test for it is not
3916 # safe: cross compilers may not add the suffix if given an `-o'
3917 # argument, so we may need to know it at that point already.
3918 # Even if this section looks crufty: it has the advantage of
3925 test "$ac_cv_exeext" = no && ac_cv_exeext=
3930 if test -z "$ac_file"; then :
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3932 $as_echo "no" >&6; }
3933 $as_echo "$as_me: failed program was:" >&5
3934 sed 's/^/| /' conftest.$ac_ext >&5
3936 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3937 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3938 as_fn_error 77 "C compiler cannot create executables
3939 See \`config.log' for more details" "$LINENO" 5; }
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3942 $as_echo "yes" >&6; }
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3945 $as_echo_n "checking for C compiler default output file name... " >&6; }
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3947 $as_echo "$ac_file" >&6; }
3948 ac_exeext=$ac_cv_exeext
3950 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3951 ac_clean_files=$ac_clean_files_save
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3953 $as_echo_n "checking for suffix of executables... " >&6; }
3954 if { { ac_try="$ac_link"
3956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957 *) ac_try_echo=$ac_try;;
3959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3960 $as_echo "$ac_try_echo"; } >&5
3961 (eval "$ac_link") 2>&5
3963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3964 test $ac_status = 0; }; then :
3965 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3966 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3967 # work properly (i.e., refer to `conftest.exe'), while it won't with
3969 for ac_file in conftest.exe conftest conftest.*; do
3970 test -f "$ac_file" || continue
3972 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3973 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3979 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3980 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3981 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3982 See \`config.log' for more details" "$LINENO" 5; }
3984 rm -f conftest conftest$ac_cv_exeext
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3986 $as_echo "$ac_cv_exeext" >&6; }
3988 rm -f conftest.$ac_ext
3989 EXEEXT=$ac_cv_exeext
3991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3992 /* end confdefs.h. */
3997 FILE *f = fopen ("conftest.out", "w");
3998 return ferror (f) || fclose (f) != 0;
4004 ac_clean_files="$ac_clean_files conftest.out"
4005 # Check that the compiler produces executables we can run. If not, either
4006 # the compiler is broken, or we cross compile.
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4008 $as_echo_n "checking whether we are cross compiling... " >&6; }
4009 if test "$cross_compiling" != yes; then
4010 { { ac_try="$ac_link"
4012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4013 *) ac_try_echo=$ac_try;;
4015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4016 $as_echo "$ac_try_echo"; } >&5
4017 (eval "$ac_link") 2>&5
4019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4020 test $ac_status = 0; }
4021 if { ac_try='./conftest$ac_cv_exeext'
4022 { { case "(($ac_try" in
4023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4024 *) ac_try_echo=$ac_try;;
4026 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4027 $as_echo "$ac_try_echo"; } >&5
4028 (eval "$ac_try") 2>&5
4030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4031 test $ac_status = 0; }; }; then
4034 if test "$cross_compiling" = maybe; then
4037 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4038 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4039 as_fn_error $? "cannot run C compiled programs.
4040 If you meant to cross compile, use \`--host'.
4041 See \`config.log' for more details" "$LINENO" 5; }
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4046 $as_echo "$cross_compiling" >&6; }
4048 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4049 ac_clean_files=$ac_clean_files_save
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4051 $as_echo_n "checking for suffix of object files... " >&6; }
4052 if ${ac_cv_objext+:} false; then :
4053 $as_echo_n "(cached) " >&6
4055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056 /* end confdefs.h. */
4066 rm -f conftest.o conftest.obj
4067 if { { ac_try="$ac_compile"
4069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070 *) ac_try_echo=$ac_try;;
4072 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4073 $as_echo "$ac_try_echo"; } >&5
4074 (eval "$ac_compile") 2>&5
4076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4077 test $ac_status = 0; }; then :
4078 for ac_file in conftest.o conftest.obj conftest.*; do
4079 test -f "$ac_file" || continue;
4081 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4082 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4087 $as_echo "$as_me: failed program was:" >&5
4088 sed 's/^/| /' conftest.$ac_ext >&5
4090 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4091 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4092 as_fn_error $? "cannot compute suffix of object files: cannot compile
4093 See \`config.log' for more details" "$LINENO" 5; }
4095 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4098 $as_echo "$ac_cv_objext" >&6; }
4099 OBJEXT=$ac_cv_objext
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4102 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4103 if ${ac_cv_c_compiler_gnu+:} false; then :
4104 $as_echo_n "(cached) " >&6
4106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4107 /* end confdefs.h. */
4120 if ac_fn_c_try_compile "$LINENO"; then :
4125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4126 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4130 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4131 if test $ac_compiler_gnu = yes; then
4136 ac_test_CFLAGS=${CFLAGS+set}
4137 ac_save_CFLAGS=$CFLAGS
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4139 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4140 if ${ac_cv_prog_cc_g+:} false; then :
4141 $as_echo_n "(cached) " >&6
4143 ac_save_c_werror_flag=$ac_c_werror_flag
4144 ac_c_werror_flag=yes
4147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148 /* end confdefs.h. */
4158 if ac_fn_c_try_compile "$LINENO"; then :
4162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4163 /* end confdefs.h. */
4173 if ac_fn_c_try_compile "$LINENO"; then :
4176 ac_c_werror_flag=$ac_save_c_werror_flag
4178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4179 /* end confdefs.h. */
4189 if ac_fn_c_try_compile "$LINENO"; then :
4192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4197 ac_c_werror_flag=$ac_save_c_werror_flag
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4200 $as_echo "$ac_cv_prog_cc_g" >&6; }
4201 if test "$ac_test_CFLAGS" = set; then
4202 CFLAGS=$ac_save_CFLAGS
4203 elif test $ac_cv_prog_cc_g = yes; then
4204 if test "$GCC" = yes; then
4210 if test "$GCC" = yes; then
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4217 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4218 if ${ac_cv_prog_cc_c89+:} false; then :
4219 $as_echo_n "(cached) " >&6
4221 ac_cv_prog_cc_c89=no
4223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224 /* end confdefs.h. */
4228 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4229 struct buf { int x; };
4230 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4231 static char *e (p, i)
4237 static char *f (char * (*g) (char **, int), char **p, ...)
4242 s = g (p, va_arg (v,int));
4247 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4248 function prototypes and stuff, but not '\xHH' hex character constants.
4249 These don't provoke an error unfortunately, instead are silently treated
4250 as 'x'. The following induces an error, until -std is added to get
4251 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4252 array size at least. It's necessary to write '\x00'==0 to get something
4253 that's true only with -std. */
4254 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4256 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4257 inside strings and character constants. */
4259 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4261 int test (int i, double x);
4262 struct s1 {int (*f) (int a);};
4263 struct s2 {int (*f) (double a);};
4264 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4270 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4275 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4276 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4278 CC="$ac_save_CC $ac_arg"
4279 if ac_fn_c_try_compile "$LINENO"; then :
4280 ac_cv_prog_cc_c89=$ac_arg
4282 rm -f core conftest.err conftest.$ac_objext
4283 test "x$ac_cv_prog_cc_c89" != "xno" && break
4285 rm -f conftest.$ac_ext
4290 case "x$ac_cv_prog_cc_c89" in
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4293 $as_echo "none needed" >&6; } ;;
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4296 $as_echo "unsupported" >&6; } ;;
4298 CC="$CC $ac_cv_prog_cc_c89"
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4300 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4302 if test "x$ac_cv_prog_cc_c89" != xno; then :
4307 ac_cpp='$CPP $CPPFLAGS'
4308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4313 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
4314 # but has idiosyncrasies of its own. We assume icc will define
4315 # __INTEL_COMPILER regardless of CFLAGS.
4317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4318 /* end confdefs.h. */
4323 #ifndef __INTEL_COMPILER
4330 if ac_fn_c_try_compile "$LINENO"; then :
4335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4337 # Check if it's Sun Studio compiler. We assume that
4338 # __SUNPRO_C will be defined for Sun Studio compilers
4339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4340 /* end confdefs.h. */
4352 if ac_fn_c_try_compile "$LINENO"; then :
4357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4366 . "$srcdir/src/template/$template" || exit
4368 # CFLAGS are selected so:
4369 # If the user specifies something in the environment, that is used.
4370 # else: If the template file set something, that is used.
4371 # else: If coverage was enabled, don't set anything.
4372 # else: If the compiler is GCC, then we use -O2.
4373 # else: If the compiler is something else, then we use -O, unless debugging.
4375 if test "$ac_env_CFLAGS_set" = set; then
4376 CFLAGS=$ac_env_CFLAGS_value
4377 elif test "${CFLAGS+set}" = set; then
4378 : # (keep what template set)
4379 elif test "$enable_coverage" = yes; then
4380 : # no optimization by default
4381 elif test "$GCC" = yes; then
4384 # if the user selected debug mode, don't use -O
4385 if test "$enable_debug" != yes; then
4390 # CFLAGS we determined above will be added back at the end
4394 # set CFLAGS_VECTOR from the environment, if available
4395 if test "$ac_env_CFLAGS_VECTOR_set" = set; then
4396 CFLAGS_VECTOR=$ac_env_CFLAGS_VECTOR_value
4399 # Some versions of GCC support some additional useful warning flags.
4400 # Check whether they are supported, and add them to CFLAGS if so.
4401 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
4402 # but has its own. Also check other compiler-specific flags here.
4404 if test "$GCC" = yes -a "$ICC" = no; then
4405 CFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith"
4406 # These work in some but not all gcc versions
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5
4408 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
4409 if ${pgac_cv_prog_cc_cflags__Wdeclaration_after_statement+:} false; then :
4410 $as_echo_n "(cached) " >&6
4412 pgac_save_CFLAGS=$CFLAGS
4413 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
4414 ac_save_c_werror_flag=$ac_c_werror_flag
4415 ac_c_werror_flag=yes
4416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4417 /* end confdefs.h. */
4427 if ac_fn_c_try_compile "$LINENO"; then :
4428 pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=yes
4430 pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=no
4432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4433 ac_c_werror_flag=$ac_save_c_werror_flag
4434 CFLAGS="$pgac_save_CFLAGS"
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&5
4437 $as_echo "$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&6; }
4438 if test x"$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" = x"yes"; then
4439 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wendif-labels" >&5
4443 $as_echo_n "checking whether $CC supports -Wendif-labels... " >&6; }
4444 if ${pgac_cv_prog_cc_cflags__Wendif_labels+:} false; then :
4445 $as_echo_n "(cached) " >&6
4447 pgac_save_CFLAGS=$CFLAGS
4448 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
4449 ac_save_c_werror_flag=$ac_c_werror_flag
4450 ac_c_werror_flag=yes
4451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4452 /* end confdefs.h. */
4462 if ac_fn_c_try_compile "$LINENO"; then :
4463 pgac_cv_prog_cc_cflags__Wendif_labels=yes
4465 pgac_cv_prog_cc_cflags__Wendif_labels=no
4467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4468 ac_c_werror_flag=$ac_save_c_werror_flag
4469 CFLAGS="$pgac_save_CFLAGS"
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__Wendif_labels" >&5
4472 $as_echo "$pgac_cv_prog_cc_cflags__Wendif_labels" >&6; }
4473 if test x"$pgac_cv_prog_cc_cflags__Wendif_labels" = x"yes"; then
4474 CFLAGS="$CFLAGS -Wendif-labels"
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wmissing-format-attribute" >&5
4478 $as_echo_n "checking whether $CC supports -Wmissing-format-attribute... " >&6; }
4479 if ${pgac_cv_prog_cc_cflags__Wmissing_format_attribute+:} false; then :
4480 $as_echo_n "(cached) " >&6
4482 pgac_save_CFLAGS=$CFLAGS
4483 CFLAGS="$pgac_save_CFLAGS -Wmissing-format-attribute"
4484 ac_save_c_werror_flag=$ac_c_werror_flag
4485 ac_c_werror_flag=yes
4486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4487 /* end confdefs.h. */
4497 if ac_fn_c_try_compile "$LINENO"; then :
4498 pgac_cv_prog_cc_cflags__Wmissing_format_attribute=yes
4500 pgac_cv_prog_cc_cflags__Wmissing_format_attribute=no
4502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4503 ac_c_werror_flag=$ac_save_c_werror_flag
4504 CFLAGS="$pgac_save_CFLAGS"
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&5
4507 $as_echo "$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&6; }
4508 if test x"$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" = x"yes"; then
4509 CFLAGS="$CFLAGS -Wmissing-format-attribute"
4512 # This was included in -Wall/-Wformat in older GCC versions
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wformat-security" >&5
4514 $as_echo_n "checking whether $CC supports -Wformat-security... " >&6; }
4515 if ${pgac_cv_prog_cc_cflags__Wformat_security+:} false; then :
4516 $as_echo_n "(cached) " >&6
4518 pgac_save_CFLAGS=$CFLAGS
4519 CFLAGS="$pgac_save_CFLAGS -Wformat-security"
4520 ac_save_c_werror_flag=$ac_c_werror_flag
4521 ac_c_werror_flag=yes
4522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523 /* end confdefs.h. */
4533 if ac_fn_c_try_compile "$LINENO"; then :
4534 pgac_cv_prog_cc_cflags__Wformat_security=yes
4536 pgac_cv_prog_cc_cflags__Wformat_security=no
4538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4539 ac_c_werror_flag=$ac_save_c_werror_flag
4540 CFLAGS="$pgac_save_CFLAGS"
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__Wformat_security" >&5
4543 $as_echo "$pgac_cv_prog_cc_cflags__Wformat_security" >&6; }
4544 if test x"$pgac_cv_prog_cc_cflags__Wformat_security" = x"yes"; then
4545 CFLAGS="$CFLAGS -Wformat-security"
4548 # Disable strict-aliasing rules; needed for gcc 3.3+
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fno-strict-aliasing" >&5
4550 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4551 if ${pgac_cv_prog_cc_cflags__fno_strict_aliasing+:} false; then :
4552 $as_echo_n "(cached) " >&6
4554 pgac_save_CFLAGS=$CFLAGS
4555 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4556 ac_save_c_werror_flag=$ac_c_werror_flag
4557 ac_c_werror_flag=yes
4558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4559 /* end confdefs.h. */
4569 if ac_fn_c_try_compile "$LINENO"; then :
4570 pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4572 pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4575 ac_c_werror_flag=$ac_save_c_werror_flag
4576 CFLAGS="$pgac_save_CFLAGS"
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4579 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4580 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4581 CFLAGS="$CFLAGS -fno-strict-aliasing"
4584 # Disable optimizations that assume no overflow; needed for gcc 4.3+
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fwrapv" >&5
4586 $as_echo_n "checking whether $CC supports -fwrapv... " >&6; }
4587 if ${pgac_cv_prog_cc_cflags__fwrapv+:} false; then :
4588 $as_echo_n "(cached) " >&6
4590 pgac_save_CFLAGS=$CFLAGS
4591 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4592 ac_save_c_werror_flag=$ac_c_werror_flag
4593 ac_c_werror_flag=yes
4594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4595 /* end confdefs.h. */
4605 if ac_fn_c_try_compile "$LINENO"; then :
4606 pgac_cv_prog_cc_cflags__fwrapv=yes
4608 pgac_cv_prog_cc_cflags__fwrapv=no
4610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4611 ac_c_werror_flag=$ac_save_c_werror_flag
4612 CFLAGS="$pgac_save_CFLAGS"
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__fwrapv" >&5
4615 $as_echo "$pgac_cv_prog_cc_cflags__fwrapv" >&6; }
4616 if test x"$pgac_cv_prog_cc_cflags__fwrapv" = x"yes"; then
4617 CFLAGS="$CFLAGS -fwrapv"
4620 # Disable FP optimizations that cause various errors on gcc 4.5+ or maybe 4.6+
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fexcess-precision=standard" >&5
4622 $as_echo_n "checking whether $CC supports -fexcess-precision=standard... " >&6; }
4623 if ${pgac_cv_prog_cc_cflags__fexcess_precision_standard+:} false; then :
4624 $as_echo_n "(cached) " >&6
4626 pgac_save_CFLAGS=$CFLAGS
4627 CFLAGS="$pgac_save_CFLAGS -fexcess-precision=standard"
4628 ac_save_c_werror_flag=$ac_c_werror_flag
4629 ac_c_werror_flag=yes
4630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4631 /* end confdefs.h. */
4641 if ac_fn_c_try_compile "$LINENO"; then :
4642 pgac_cv_prog_cc_cflags__fexcess_precision_standard=yes
4644 pgac_cv_prog_cc_cflags__fexcess_precision_standard=no
4646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4647 ac_c_werror_flag=$ac_save_c_werror_flag
4648 CFLAGS="$pgac_save_CFLAGS"
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__fexcess_precision_standard" >&5
4651 $as_echo "$pgac_cv_prog_cc_cflags__fexcess_precision_standard" >&6; }
4652 if test x"$pgac_cv_prog_cc_cflags__fexcess_precision_standard" = x"yes"; then
4653 CFLAGS="$CFLAGS -fexcess-precision=standard"
4656 # Optimization flags for specific files that benefit from vectorization
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -funroll-loops" >&5
4658 $as_echo_n "checking whether $CC supports -funroll-loops... " >&6; }
4659 if ${pgac_cv_prog_cc_cflags__funroll_loops+:} false; then :
4660 $as_echo_n "(cached) " >&6
4662 pgac_save_CFLAGS=$CFLAGS
4663 CFLAGS="$pgac_save_CFLAGS -funroll-loops"
4664 ac_save_c_werror_flag=$ac_c_werror_flag
4665 ac_c_werror_flag=yes
4666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4667 /* end confdefs.h. */
4677 if ac_fn_c_try_compile "$LINENO"; then :
4678 pgac_cv_prog_cc_cflags__funroll_loops=yes
4680 pgac_cv_prog_cc_cflags__funroll_loops=no
4682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4683 ac_c_werror_flag=$ac_save_c_werror_flag
4684 CFLAGS="$pgac_save_CFLAGS"
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__funroll_loops" >&5
4687 $as_echo "$pgac_cv_prog_cc_cflags__funroll_loops" >&6; }
4688 if test x"$pgac_cv_prog_cc_cflags__funroll_loops" = x"yes"; then
4689 CFLAGS_VECTOR="${CFLAGS_VECTOR} -funroll-loops"
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -ftree-vectorize" >&5
4693 $as_echo_n "checking whether $CC supports -ftree-vectorize... " >&6; }
4694 if ${pgac_cv_prog_cc_cflags__ftree_vectorize+:} false; then :
4695 $as_echo_n "(cached) " >&6
4697 pgac_save_CFLAGS=$CFLAGS
4698 CFLAGS="$pgac_save_CFLAGS -ftree-vectorize"
4699 ac_save_c_werror_flag=$ac_c_werror_flag
4700 ac_c_werror_flag=yes
4701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4702 /* end confdefs.h. */
4712 if ac_fn_c_try_compile "$LINENO"; then :
4713 pgac_cv_prog_cc_cflags__ftree_vectorize=yes
4715 pgac_cv_prog_cc_cflags__ftree_vectorize=no
4717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4718 ac_c_werror_flag=$ac_save_c_werror_flag
4719 CFLAGS="$pgac_save_CFLAGS"
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__ftree_vectorize" >&5
4722 $as_echo "$pgac_cv_prog_cc_cflags__ftree_vectorize" >&6; }
4723 if test x"$pgac_cv_prog_cc_cflags__ftree_vectorize" = x"yes"; then
4724 CFLAGS_VECTOR="${CFLAGS_VECTOR} -ftree-vectorize"
4727 # We want to suppress clang's unhelpful unused-command-line-argument warnings
4728 # but gcc won't complain about unrecognized -Wno-foo switches, so we have to
4729 # test for the positive form and if that works, add the negative form
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wunused-command-line-argument" >&5
4731 $as_echo_n "checking whether $CC supports -Wunused-command-line-argument... " >&6; }
4732 if ${pgac_cv_prog_cc_cflags__Wunused_command_line_argument+:} false; then :
4733 $as_echo_n "(cached) " >&6
4735 pgac_save_CFLAGS=$CFLAGS
4736 CFLAGS="$pgac_save_CFLAGS -Wunused-command-line-argument"
4737 ac_save_c_werror_flag=$ac_c_werror_flag
4738 ac_c_werror_flag=yes
4739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4740 /* end confdefs.h. */
4750 if ac_fn_c_try_compile "$LINENO"; then :
4751 pgac_cv_prog_cc_cflags__Wunused_command_line_argument=yes
4753 pgac_cv_prog_cc_cflags__Wunused_command_line_argument=no
4755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4756 ac_c_werror_flag=$ac_save_c_werror_flag
4757 CFLAGS="$pgac_save_CFLAGS"
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__Wunused_command_line_argument" >&5
4760 $as_echo "$pgac_cv_prog_cc_cflags__Wunused_command_line_argument" >&6; }
4761 if test x"$pgac_cv_prog_cc_cflags__Wunused_command_line_argument" = x"yes"; then
4762 NOT_THE_CFLAGS="${NOT_THE_CFLAGS} -Wunused-command-line-argument"
4765 if test -n "$NOT_THE_CFLAGS"; then
4766 CFLAGS="$CFLAGS -Wno-unused-command-line-argument"
4768 elif test "$ICC" = yes; then
4769 # Intel's compiler has a bug/misoptimization in checking for
4770 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mp1" >&5
4772 $as_echo_n "checking whether $CC supports -mp1... " >&6; }
4773 if ${pgac_cv_prog_cc_cflags__mp1+:} false; then :
4774 $as_echo_n "(cached) " >&6
4776 pgac_save_CFLAGS=$CFLAGS
4777 CFLAGS="$pgac_save_CFLAGS -mp1"
4778 ac_save_c_werror_flag=$ac_c_werror_flag
4779 ac_c_werror_flag=yes
4780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4781 /* end confdefs.h. */
4791 if ac_fn_c_try_compile "$LINENO"; then :
4792 pgac_cv_prog_cc_cflags__mp1=yes
4794 pgac_cv_prog_cc_cflags__mp1=no
4796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4797 ac_c_werror_flag=$ac_save_c_werror_flag
4798 CFLAGS="$pgac_save_CFLAGS"
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__mp1" >&5
4801 $as_echo "$pgac_cv_prog_cc_cflags__mp1" >&6; }
4802 if test x"$pgac_cv_prog_cc_cflags__mp1" = x"yes"; then
4803 CFLAGS="$CFLAGS -mp1"
4806 # Make sure strict aliasing is off (though this is said to be the default)
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fno-strict-aliasing" >&5
4808 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4809 if ${pgac_cv_prog_cc_cflags__fno_strict_aliasing+:} false; then :
4810 $as_echo_n "(cached) " >&6
4812 pgac_save_CFLAGS=$CFLAGS
4813 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4814 ac_save_c_werror_flag=$ac_c_werror_flag
4815 ac_c_werror_flag=yes
4816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4817 /* end confdefs.h. */
4827 if ac_fn_c_try_compile "$LINENO"; then :
4828 pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4830 pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4833 ac_c_werror_flag=$ac_save_c_werror_flag
4834 CFLAGS="$pgac_save_CFLAGS"
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4837 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4838 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4839 CFLAGS="$CFLAGS -fno-strict-aliasing"
4842 elif test "$PORTNAME" = "aix"; then
4843 # AIX's xlc has to have strict aliasing turned off too
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -qnoansialias" >&5
4845 $as_echo_n "checking whether $CC supports -qnoansialias... " >&6; }
4846 if ${pgac_cv_prog_cc_cflags__qnoansialias+:} false; then :
4847 $as_echo_n "(cached) " >&6
4849 pgac_save_CFLAGS=$CFLAGS
4850 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4851 ac_save_c_werror_flag=$ac_c_werror_flag
4852 ac_c_werror_flag=yes
4853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4854 /* end confdefs.h. */
4864 if ac_fn_c_try_compile "$LINENO"; then :
4865 pgac_cv_prog_cc_cflags__qnoansialias=yes
4867 pgac_cv_prog_cc_cflags__qnoansialias=no
4869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4870 ac_c_werror_flag=$ac_save_c_werror_flag
4871 CFLAGS="$pgac_save_CFLAGS"
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__qnoansialias" >&5
4874 $as_echo "$pgac_cv_prog_cc_cflags__qnoansialias" >&6; }
4875 if test x"$pgac_cv_prog_cc_cflags__qnoansialias" = x"yes"; then
4876 CFLAGS="$CFLAGS -qnoansialias"
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -qlonglong" >&5
4880 $as_echo_n "checking whether $CC supports -qlonglong... " >&6; }
4881 if ${pgac_cv_prog_cc_cflags__qlonglong+:} false; then :
4882 $as_echo_n "(cached) " >&6
4884 pgac_save_CFLAGS=$CFLAGS
4885 CFLAGS="$pgac_save_CFLAGS -qlonglong"
4886 ac_save_c_werror_flag=$ac_c_werror_flag
4887 ac_c_werror_flag=yes
4888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4889 /* end confdefs.h. */
4899 if ac_fn_c_try_compile "$LINENO"; then :
4900 pgac_cv_prog_cc_cflags__qlonglong=yes
4902 pgac_cv_prog_cc_cflags__qlonglong=no
4904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4905 ac_c_werror_flag=$ac_save_c_werror_flag
4906 CFLAGS="$pgac_save_CFLAGS"
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__qlonglong" >&5
4909 $as_echo "$pgac_cv_prog_cc_cflags__qlonglong" >&6; }
4910 if test x"$pgac_cv_prog_cc_cflags__qlonglong" = x"yes"; then
4911 CFLAGS="$CFLAGS -qlonglong"
4914 elif test "$PORTNAME" = "hpux"; then
4915 # On some versions of HP-UX, libm functions do not set errno by default.
4916 # Fix that by using +Olibmerrno if the compiler recognizes it.
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports +Olibmerrno" >&5
4918 $as_echo_n "checking whether $CC supports +Olibmerrno... " >&6; }
4919 if ${pgac_cv_prog_cc_cflags_pOlibmerrno+:} false; then :
4920 $as_echo_n "(cached) " >&6
4922 pgac_save_CFLAGS=$CFLAGS
4923 CFLAGS="$pgac_save_CFLAGS +Olibmerrno"
4924 ac_save_c_werror_flag=$ac_c_werror_flag
4925 ac_c_werror_flag=yes
4926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4927 /* end confdefs.h. */
4937 if ac_fn_c_try_compile "$LINENO"; then :
4938 pgac_cv_prog_cc_cflags_pOlibmerrno=yes
4940 pgac_cv_prog_cc_cflags_pOlibmerrno=no
4942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4943 ac_c_werror_flag=$ac_save_c_werror_flag
4944 CFLAGS="$pgac_save_CFLAGS"
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags_pOlibmerrno" >&5
4947 $as_echo "$pgac_cv_prog_cc_cflags_pOlibmerrno" >&6; }
4948 if test x"$pgac_cv_prog_cc_cflags_pOlibmerrno" = x"yes"; then
4949 CFLAGS="$CFLAGS +Olibmerrno"
4954 CFLAGS_VECTOR=$CFLAGS_VECTOR
4957 # supply -g if --enable-debug
4958 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4962 # enable code coverage if --enable-coverage
4963 if test "$enable_coverage" = yes; then
4964 if test "$GCC" = yes; then
4965 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4967 as_fn_error $? "--enable-coverage is supported only when using GCC" "$LINENO" 5
4971 # enable profiling if --enable-profiling
4972 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4973 if test "$GCC" = yes; then
4975 $as_echo "#define PROFILE_PID_DIR 1" >>confdefs.h
4977 CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4979 as_fn_error $? "--enable-profiling is supported only when using GCC" "$LINENO" 5
4983 # We already have this in Makefile.win32, but configure needs it too
4984 if test "$PORTNAME" = "win32"; then
4985 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4988 # Now that we're done automatically adding stuff to CFLAGS, put back the
4989 # user-specified flags (if any) at the end. This lets users override
4990 # the automatic additions.
4991 CFLAGS="$CFLAGS $user_CFLAGS"
4993 # Check if the compiler still works with the final flag settings
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler still works" >&5
4995 $as_echo_n "checking whether the C compiler still works... " >&6; }
4996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4997 /* end confdefs.h. */
5007 if ac_fn_c_try_link "$LINENO"; then :
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5009 $as_echo "yes" >&6; }
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5012 $as_echo "no" >&6; }
5013 as_fn_error $? "cannot proceed" "$LINENO" 5
5015 rm -f core conftest.err conftest.$ac_objext \
5016 conftest$ac_exeext conftest.$ac_ext
5018 # Defend against gcc -ffast-math
5019 if test "$GCC" = yes; then
5020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5021 /* end confdefs.h. */
5026 #ifdef __FAST_MATH__
5033 if ac_fn_c_try_compile "$LINENO"; then :
5036 as_fn_error $? "do not put -ffast-math in CFLAGS" "$LINENO" 5
5038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5042 ac_cpp='$CPP $CPPFLAGS'
5043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5047 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5048 # On Suns, sometimes $CPP names a directory.
5049 if test -n "$CPP" && test -d "$CPP"; then
5052 if test -z "$CPP"; then
5053 if ${ac_cv_prog_CPP+:} false; then :
5054 $as_echo_n "(cached) " >&6
5056 # Double quotes because CPP needs to be expanded
5057 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5060 for ac_c_preproc_warn_flag in '' yes
5062 # Use a header file that comes with gcc, so configuring glibc
5063 # with a fresh cross-compiler works.
5064 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5065 # <limits.h> exists even on freestanding compilers.
5066 # On the NeXT, cc -E runs the code through the compiler's parser,
5067 # not just through cpp. "Syntax error" is here to catch this case.
5068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5069 /* end confdefs.h. */
5071 # include <limits.h>
5073 # include <assert.h>
5077 if ac_fn_c_try_cpp "$LINENO"; then :
5080 # Broken: fails on valid input.
5083 rm -f conftest.err conftest.i conftest.$ac_ext
5085 # OK, works on sane cases. Now check whether nonexistent headers
5086 # can be detected and how.
5087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5088 /* end confdefs.h. */
5089 #include <ac_nonexistent.h>
5091 if ac_fn_c_try_cpp "$LINENO"; then :
5092 # Broken: success on invalid input.
5095 # Passes both tests.
5099 rm -f conftest.err conftest.i conftest.$ac_ext
5102 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5103 rm -f conftest.i conftest.err conftest.$ac_ext
5104 if $ac_preproc_ok; then :
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5117 $as_echo "$CPP" >&6; }
5119 for ac_c_preproc_warn_flag in '' yes
5121 # Use a header file that comes with gcc, so configuring glibc
5122 # with a fresh cross-compiler works.
5123 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5124 # <limits.h> exists even on freestanding compilers.
5125 # On the NeXT, cc -E runs the code through the compiler's parser,
5126 # not just through cpp. "Syntax error" is here to catch this case.
5127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5128 /* end confdefs.h. */
5130 # include <limits.h>
5132 # include <assert.h>
5136 if ac_fn_c_try_cpp "$LINENO"; then :
5139 # Broken: fails on valid input.
5142 rm -f conftest.err conftest.i conftest.$ac_ext
5144 # OK, works on sane cases. Now check whether nonexistent headers
5145 # can be detected and how.
5146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5147 /* end confdefs.h. */
5148 #include <ac_nonexistent.h>
5150 if ac_fn_c_try_cpp "$LINENO"; then :
5151 # Broken: success on invalid input.
5154 # Passes both tests.
5158 rm -f conftest.err conftest.i conftest.$ac_ext
5161 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5162 rm -f conftest.i conftest.err conftest.$ac_ext
5163 if $ac_preproc_ok; then :
5166 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5168 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5169 See \`config.log' for more details" "$LINENO" 5; }
5173 ac_cpp='$CPP $CPPFLAGS'
5174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5182 # Set up TAS assembly code if needed; the template file has now had its
5183 # chance to request this.
5185 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
5188 if test "$need_tas" = yes ; then
5197 # Automatic dependency tracking
5201 # Check whether --enable-depend was given.
5202 if test "${enable_depend+set}" = set; then :
5203 enableval=$enable_depend;
5212 as_fn_error $? "no argument expected for --enable-depend option" "$LINENO" 5
5226 # Enable assert checks
5230 # Check whether --enable-cassert was given.
5231 if test "${enable_cassert+set}" = set; then :
5232 enableval=$enable_cassert;
5236 $as_echo "#define USE_ASSERT_CHECKING 1" >>confdefs.h
5243 as_fn_error $? "no argument expected for --enable-cassert option" "$LINENO" 5
5256 # Include directories
5259 IFS="${IFS}${PATH_SEPARATOR}"
5260 # SRCH_INC comes from the template file
5261 for dir in $with_includes $SRCH_INC; do
5262 if test -d "$dir"; then
5263 INCLUDES="$INCLUDES -I$dir"
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Include directory $dir does not exist." >&5
5266 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
5274 # Library directories
5277 IFS="${IFS}${PATH_SEPARATOR}"
5278 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
5279 for dir in $LIBRARY_DIRS $SRCH_LIB; do
5280 if test -d "$dir"; then
5281 LIBDIRS="$LIBDIRS -L$dir"
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Library directory $dir does not exist." >&5
5284 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
5290 # Enable thread-safe client libraries
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking allow thread-safe client libraries" >&5
5293 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
5296 # Check whether --enable-thread-safety was given.
5297 if test "${enable_thread_safety+set}" = set; then :
5298 enableval=$enable_thread_safety;
5307 as_fn_error $? "no argument expected for --enable-thread-safety option" "$LINENO" 5
5312 enable_thread_safety=yes
5317 if test "$enable_thread_safety" = yes; then
5319 $as_echo "#define ENABLE_THREAD_SAFETY 1" >>confdefs.h
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_thread_safety" >&5
5323 $as_echo "$enable_thread_safety" >&6; }
5327 # Optionally build Tcl modules (PL/Tcl)
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with Tcl" >&5
5330 $as_echo_n "checking whether to build with Tcl... " >&6; }
5334 # Check whether --with-tcl was given.
5335 if test "${with_tcl+set}" = set; then :
5345 as_fn_error $? "no argument expected for --with-tcl option" "$LINENO" 5
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcl" >&5
5356 $as_echo "$with_tcl" >&6; }
5359 # We see if the path to the Tcl/Tk configuration scripts is specified.
5360 # This will override the use of tclsh to find the paths to search.
5365 # Check whether --with-tclconfig was given.
5366 if test "${with_tclconfig+set}" = set; then :
5367 withval=$with_tclconfig;
5370 as_fn_error $? "argument required for --with-tclconfig option" "$LINENO" 5
5373 as_fn_error $? "argument required for --with-tclconfig option" "$LINENO" 5
5385 # Optionally build Perl modules (PL/Perl)
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Perl modules" >&5
5388 $as_echo_n "checking whether to build Perl modules... " >&6; }
5392 # Check whether --with-perl was given.
5393 if test "${with_perl+set}" = set; then :
5403 as_fn_error $? "no argument expected for --with-perl option" "$LINENO" 5
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_perl" >&5
5414 $as_echo "$with_perl" >&6; }
5418 # Optionally build Python modules (PL/Python)
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Python modules" >&5
5421 $as_echo_n "checking whether to build Python modules... " >&6; }
5425 # Check whether --with-python was given.
5426 if test "${with_python+set}" = set; then :
5427 withval=$with_python;
5436 as_fn_error $? "no argument expected for --with-python option" "$LINENO" 5
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
5447 $as_echo "$with_python" >&6; }
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with GSSAPI support" >&5
5454 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
5458 # Check whether --with-gssapi was given.
5459 if test "${with_gssapi+set}" = set; then :
5460 withval=$with_gssapi;
5465 $as_echo "#define ENABLE_GSS 1" >>confdefs.h
5467 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5474 as_fn_error $? "no argument expected for --with-gssapi option" "$LINENO" 5
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_gssapi" >&5
5485 $as_echo "$with_gssapi" >&6; }
5492 # Kerberos configuration parameters
5497 # Check whether --with-krb-srvnam was given.
5498 if test "${with_krb_srvnam+set}" = set; then :
5499 withval=$with_krb_srvnam;
5502 as_fn_error $? "argument required for --with-krb-srvnam option" "$LINENO" 5
5505 as_fn_error $? "argument required for --with-krb-srvnam option" "$LINENO" 5
5513 with_krb_srvnam="postgres"
5518 cat >>confdefs.h <<_ACEOF
5519 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with PAM support" >&5
5528 $as_echo_n "checking whether to build with PAM support... " >&6; }
5532 # Check whether --with-pam was given.
5533 if test "${with_pam+set}" = set; then :
5538 $as_echo "#define USE_PAM 1" >>confdefs.h
5545 as_fn_error $? "no argument expected for --with-pam option" "$LINENO" 5
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pam" >&5
5556 $as_echo "$with_pam" >&6; }
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with LDAP support" >&5
5563 $as_echo_n "checking whether to build with LDAP support... " >&6; }
5567 # Check whether --with-ldap was given.
5568 if test "${with_ldap+set}" = set; then :
5573 $as_echo "#define USE_LDAP 1" >>confdefs.h
5580 as_fn_error $? "no argument expected for --with-ldap option" "$LINENO" 5
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ldap" >&5
5591 $as_echo "$with_ldap" >&6; }
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with Bonjour support" >&5
5598 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
5602 # Check whether --with-bonjour was given.
5603 if test "${with_bonjour+set}" = set; then :
5604 withval=$with_bonjour;
5608 $as_echo "#define USE_BONJOUR 1" >>confdefs.h
5615 as_fn_error $? "no argument expected for --with-bonjour option" "$LINENO" 5
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_bonjour" >&5
5626 $as_echo "$with_bonjour" >&6; }
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with OpenSSL support" >&5
5633 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
5637 # Check whether --with-openssl was given.
5638 if test "${with_openssl+set}" = set; then :
5639 withval=$with_openssl;
5643 $as_echo "#define USE_OPENSSL 1" >>confdefs.h
5650 as_fn_error $? "no argument expected for --with-openssl option" "$LINENO" 5
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_openssl" >&5
5661 $as_echo "$with_openssl" >&6; }
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with SELinux support" >&5
5668 $as_echo_n "checking whether to build with SELinux support... " >&6; }
5672 # Check whether --with-selinux was given.
5673 if test "${with_selinux+set}" = set; then :
5674 withval=$with_selinux;
5683 as_fn_error $? "no argument expected for --with-selinux option" "$LINENO" 5
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_selinux" >&5
5695 $as_echo "$with_selinux" >&6; }
5703 # Check whether --with-readline was given.
5704 if test "${with_readline+set}" = set; then :
5705 withval=$with_readline;
5714 as_fn_error $? "no argument expected for --with-readline option" "$LINENO" 5
5724 # readline on MinGW has problems with backslashes in psql and other bugs.
5725 # This is particularly a problem with non-US code pages.
5726 # Therefore disable its use until we understand the cause. 2004-07-20
5727 if test "$PORTNAME" = "win32"; then
5728 if test "$with_readline" = yes; then
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5730 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5742 # Check whether --with-libedit-preferred was given.
5743 if test "${with_libedit_preferred+set}" = set; then :
5744 withval=$with_libedit_preferred;
5753 as_fn_error $? "no argument expected for --with-libedit-preferred option" "$LINENO" 5
5758 with_libedit_preferred=no
5768 # There are at least three UUID libraries in common use: the FreeBSD/NetBSD
5769 # library, the e2fsprogs libuuid (now part of util-linux-ng), and the OSSP
5770 # UUID library. More than one of these might be present on a given platform,
5771 # so we make the user say which one she wants.
5776 # Check whether --with-uuid was given.
5777 if test "${with_uuid+set}" = set; then :
5781 as_fn_error $? "argument required for --with-uuid option" "$LINENO" 5
5784 as_fn_error $? "argument required for --with-uuid option" "$LINENO" 5
5794 if test x"$with_uuid" = x"" ; then
5800 # Check whether --with-ossp-uuid was given.
5801 if test "${with_ossp_uuid+set}" = set; then :
5802 withval=$with_ossp_uuid;
5811 as_fn_error $? "no argument expected for --with-ossp-uuid option" "$LINENO" 5
5821 if test "$with_ossp_uuid" = yes ; then
5825 if test "$with_uuid" = bsd ; then
5827 $as_echo "#define HAVE_UUID_BSD 1" >>confdefs.h
5829 UUID_EXTRA_OBJS="md5.o sha1.o"
5830 elif test "$with_uuid" = e2fs ; then
5832 $as_echo "#define HAVE_UUID_E2FS 1" >>confdefs.h
5834 UUID_EXTRA_OBJS="md5.o sha1.o"
5835 elif test "$with_uuid" = ossp ; then
5837 $as_echo "#define HAVE_UUID_OSSP 1" >>confdefs.h
5840 elif test "$with_uuid" = no ; then
5843 as_fn_error $? "--with-uuid must specify one of bsd, e2fs, or ossp" "$LINENO" 5
5855 # Check whether --with-libxml was given.
5856 if test "${with_libxml+set}" = set; then :
5857 withval=$with_libxml;
5861 $as_echo "#define USE_LIBXML 1" >>confdefs.h
5868 as_fn_error $? "no argument expected for --with-libxml option" "$LINENO" 5
5879 if test "$with_libxml" = yes ; then
5880 for ac_prog in xml2-config
5882 # Extract the first word of "$ac_prog", so it can be a program name with args.
5883 set dummy $ac_prog; ac_word=$2
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5885 $as_echo_n "checking for $ac_word... " >&6; }
5886 if ${ac_cv_prog_XML2_CONFIG+:} false; then :
5887 $as_echo_n "(cached) " >&6
5889 if test -n "$XML2_CONFIG"; then
5890 ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5896 test -z "$as_dir" && as_dir=.
5897 for ac_exec_ext in '' $ac_executable_extensions; do
5898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5899 ac_cv_prog_XML2_CONFIG="$ac_prog"
5900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5909 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5910 if test -n "$XML2_CONFIG"; then
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
5912 $as_echo "$XML2_CONFIG" >&6; }
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5915 $as_echo "no" >&6; }
5919 test -n "$XML2_CONFIG" && break
5922 if test -n "$XML2_CONFIG"; then
5923 for pgac_option in `$XML2_CONFIG --cflags`; do
5924 case $pgac_option in
5925 -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5928 for pgac_option in `$XML2_CONFIG --libs`; do
5929 case $pgac_option in
5930 -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5944 # Check whether --with-libxslt was given.
5945 if test "${with_libxslt+set}" = set; then :
5946 withval=$with_libxslt;
5950 $as_echo "#define USE_LIBXSLT 1" >>confdefs.h
5957 as_fn_error $? "no argument expected for --with-libxslt option" "$LINENO" 5
5977 # Check whether --with-system-tzdata was given.
5978 if test "${with_system_tzdata+set}" = set; then :
5979 withval=$with_system_tzdata;
5982 as_fn_error $? "argument required for --with-system-tzdata option" "$LINENO" 5
5985 as_fn_error $? "argument required for --with-system-tzdata option" "$LINENO" 5
6003 # Check whether --with-zlib was given.
6004 if test "${with_zlib+set}" = set; then :
6014 as_fn_error $? "no argument expected for --with-zlib option" "$LINENO" 5
6030 # Assume system is ELF if it predefines __ELF__ as 1,
6031 # otherwise believe host_os based default.
6033 freebsd1*|freebsd2*) elf=no;;
6034 freebsd3*|freebsd4*) elf=yes;;
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6039 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6040 if ${ac_cv_path_GREP+:} false; then :
6041 $as_echo_n "(cached) " >&6
6043 if test -z "$GREP"; then
6044 ac_path_GREP_found=false
6045 # Loop through the user's path and test for each of PROGNAME-LIST
6046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6047 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6050 test -z "$as_dir" && as_dir=.
6051 for ac_prog in grep ggrep; do
6052 for ac_exec_ext in '' $ac_executable_extensions; do
6053 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6054 as_fn_executable_p "$ac_path_GREP" || continue
6055 # Check for GNU ac_path_GREP and select it if it is found.
6056 # Check for GNU $ac_path_GREP
6057 case `"$ac_path_GREP" --version 2>&1` in
6059 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6062 $as_echo_n 0123456789 >"conftest.in"
6065 cat "conftest.in" "conftest.in" >"conftest.tmp"
6066 mv "conftest.tmp" "conftest.in"
6067 cp "conftest.in" "conftest.nl"
6068 $as_echo 'GREP' >> "conftest.nl"
6069 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6070 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6071 as_fn_arith $ac_count + 1 && ac_count=$as_val
6072 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6073 # Best one so far, save it but keep looking for a better one
6074 ac_cv_path_GREP="$ac_path_GREP"
6075 ac_path_GREP_max=$ac_count
6077 # 10*(2^10) chars as input seems more than enough
6078 test $ac_count -gt 10 && break
6080 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6083 $ac_path_GREP_found && break 3
6088 if test -z "$ac_cv_path_GREP"; then
6089 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6092 ac_cv_path_GREP=$GREP
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6097 $as_echo "$ac_cv_path_GREP" >&6; }
6098 GREP="$ac_cv_path_GREP"
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6102 $as_echo_n "checking for egrep... " >&6; }
6103 if ${ac_cv_path_EGREP+:} false; then :
6104 $as_echo_n "(cached) " >&6
6106 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6107 then ac_cv_path_EGREP="$GREP -E"
6109 if test -z "$EGREP"; then
6110 ac_path_EGREP_found=false
6111 # Loop through the user's path and test for each of PROGNAME-LIST
6112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6113 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6116 test -z "$as_dir" && as_dir=.
6117 for ac_prog in egrep; do
6118 for ac_exec_ext in '' $ac_executable_extensions; do
6119 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6120 as_fn_executable_p "$ac_path_EGREP" || continue
6121 # Check for GNU ac_path_EGREP and select it if it is found.
6122 # Check for GNU $ac_path_EGREP
6123 case `"$ac_path_EGREP" --version 2>&1` in
6125 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6128 $as_echo_n 0123456789 >"conftest.in"
6131 cat "conftest.in" "conftest.in" >"conftest.tmp"
6132 mv "conftest.tmp" "conftest.in"
6133 cp "conftest.in" "conftest.nl"
6134 $as_echo 'EGREP' >> "conftest.nl"
6135 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6136 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6137 as_fn_arith $ac_count + 1 && ac_count=$as_val
6138 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6139 # Best one so far, save it but keep looking for a better one
6140 ac_cv_path_EGREP="$ac_path_EGREP"
6141 ac_path_EGREP_max=$ac_count
6143 # 10*(2^10) chars as input seems more than enough
6144 test $ac_count -gt 10 && break
6146 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6149 $ac_path_EGREP_found && break 3
6154 if test -z "$ac_cv_path_EGREP"; then
6155 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6158 ac_cv_path_EGREP=$EGREP
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6164 $as_echo "$ac_cv_path_EGREP" >&6; }
6165 EGREP="$ac_cv_path_EGREP"
6168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6169 /* end confdefs.h. */
6175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6176 $EGREP "yes" >/dev/null 2>&1; then :
6179 if test "X$elf" = "Xyes" ; then
6193 CPPFLAGS="$CPPFLAGS $INCLUDES"
6194 LDFLAGS="$LDFLAGS $LIBDIRS"
6200 # Check whether --with-gnu-ld was given.
6201 if test "${with_gnu_ld+set}" = set; then :
6202 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6208 if test "$GCC" = yes; then
6209 # Check if gcc -print-prog-name=ld gives a path.
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6211 $as_echo_n "checking for ld used by GCC... " >&6; }
6214 # gcc leaves a trailing carriage return which upsets mingw
6215 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6217 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6220 # Accept absolute paths.
6221 [\\/]* | [A-Za-z]:[\\/]*)
6222 re_direlt='/[^/][^/]*/\.\./'
6223 # Canonicalize the path of ld
6224 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6225 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6226 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6228 test -z "$LD" && LD="$ac_prog"
6231 # If it fails, then pretend we aren't using GCC.
6235 # If it is relative, then search for the first ld in PATH.
6239 elif test "$with_gnu_ld" = yes; then
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6241 $as_echo_n "checking for GNU ld... " >&6; }
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6244 $as_echo_n "checking for non-GNU ld... " >&6; }
6246 if ${ac_cv_path_LD+:} false; then :
6247 $as_echo_n "(cached) " >&6
6249 if test -z "$LD"; then
6250 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6251 for ac_dir in $PATH; do
6252 test -z "$ac_dir" && ac_dir=.
6253 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6254 ac_cv_path_LD="$ac_dir/$ac_prog"
6255 # Check to see if the program is GNU ld. I'd rather use --version,
6256 # but apparently some GNU ld's only accept -v.
6257 # Break only if it was the GNU/non-GNU ld that we prefer.
6258 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6259 test "$with_gnu_ld" != no && break
6261 test "$with_gnu_ld" != yes && break
6267 ac_cv_path_LD="$LD" # Let the user override the test with a path.
6272 if test -n "$LD"; then
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6274 $as_echo "$LD" >&6; }
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6277 $as_echo "no" >&6; }
6279 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6281 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6282 if ${ac_cv_prog_gnu_ld+:} false; then :
6283 $as_echo_n "(cached) " >&6
6285 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6286 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6287 ac_cv_prog_gnu_ld=yes
6289 ac_cv_prog_gnu_ld=no
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gnu_ld" >&5
6293 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
6294 with_gnu_ld=$ac_cv_prog_gnu_ld
6299 case $host_os in sysv5*)
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld -R works" >&5
6301 $as_echo_n "checking whether ld -R works... " >&6; }
6302 if ${pgac_cv_prog_ld_R+:} false; then :
6303 $as_echo_n "(cached) " >&6
6306 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
6307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6308 /* end confdefs.h. */
6318 if ac_fn_c_try_link "$LINENO"; then :
6319 pgac_cv_prog_ld_R=yes
6321 pgac_cv_prog_ld_R=no
6323 rm -f core conftest.err conftest.$ac_objext \
6324 conftest$ac_exeext conftest.$ac_ext
6325 LDFLAGS=$pgac_save_LDFLAGS
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_ld_R" >&5
6329 $as_echo "$pgac_cv_prog_ld_R" >&6; }
6330 ld_R_works=$pgac_cv_prog_ld_R
6333 if test -n "$ac_tool_prefix"; then
6334 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6335 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6337 $as_echo_n "checking for $ac_word... " >&6; }
6338 if ${ac_cv_prog_RANLIB+:} false; then :
6339 $as_echo_n "(cached) " >&6
6341 if test -n "$RANLIB"; then
6342 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6348 test -z "$as_dir" && as_dir=.
6349 for ac_exec_ext in '' $ac_executable_extensions; do
6350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6351 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6361 RANLIB=$ac_cv_prog_RANLIB
6362 if test -n "$RANLIB"; then
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6364 $as_echo "$RANLIB" >&6; }
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6367 $as_echo "no" >&6; }
6372 if test -z "$ac_cv_prog_RANLIB"; then
6373 ac_ct_RANLIB=$RANLIB
6374 # Extract the first word of "ranlib", so it can be a program name with args.
6375 set dummy ranlib; ac_word=$2
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6377 $as_echo_n "checking for $ac_word... " >&6; }
6378 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6379 $as_echo_n "(cached) " >&6
6381 if test -n "$ac_ct_RANLIB"; then
6382 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388 test -z "$as_dir" && as_dir=.
6389 for ac_exec_ext in '' $ac_executable_extensions; do
6390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6391 ac_cv_prog_ac_ct_RANLIB="ranlib"
6392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6401 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6402 if test -n "$ac_ct_RANLIB"; then
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6404 $as_echo "$ac_ct_RANLIB" >&6; }
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6407 $as_echo "no" >&6; }
6410 if test "x$ac_ct_RANLIB" = x; then
6413 case $cross_compiling:$ac_tool_warned in
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6416 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6417 ac_tool_warned=yes ;;
6419 RANLIB=$ac_ct_RANLIB
6422 RANLIB="$ac_cv_prog_RANLIB"
6426 if test -n "$ac_tool_prefix"; then
6427 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6428 set dummy ${ac_tool_prefix}strip; ac_word=$2
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6430 $as_echo_n "checking for $ac_word... " >&6; }
6431 if ${ac_cv_prog_STRIP+:} false; then :
6432 $as_echo_n "(cached) " >&6
6434 if test -n "$STRIP"; then
6435 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6441 test -z "$as_dir" && as_dir=.
6442 for ac_exec_ext in '' $ac_executable_extensions; do
6443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6444 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6454 STRIP=$ac_cv_prog_STRIP
6455 if test -n "$STRIP"; then
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6457 $as_echo "$STRIP" >&6; }
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6460 $as_echo "no" >&6; }
6465 if test -z "$ac_cv_prog_STRIP"; then
6467 # Extract the first word of "strip", so it can be a program name with args.
6468 set dummy strip; ac_word=$2
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6470 $as_echo_n "checking for $ac_word... " >&6; }
6471 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6472 $as_echo_n "(cached) " >&6
6474 if test -n "$ac_ct_STRIP"; then
6475 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6481 test -z "$as_dir" && as_dir=.
6482 for ac_exec_ext in '' $ac_executable_extensions; do
6483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6484 ac_cv_prog_ac_ct_STRIP="strip"
6485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6494 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6495 if test -n "$ac_ct_STRIP"; then
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6497 $as_echo "$ac_ct_STRIP" >&6; }
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6500 $as_echo "no" >&6; }
6503 if test "x$ac_ct_STRIP" = x; then
6506 case $cross_compiling:$ac_tool_warned in
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6509 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6510 ac_tool_warned=yes ;;
6515 STRIP="$ac_cv_prog_STRIP"
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is possible to strip libraries" >&5
6520 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
6521 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6522 STRIP_STATIC_LIB="$STRIP -x"
6523 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6525 $as_echo "yes" >&6; }
6530 STRIP_STATIC_LIB=$STRIP
6531 STRIP_SHARED_LIB=$STRIP
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6533 $as_echo "yes" >&6; }
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6539 $as_echo "no" >&6; }
6546 if test -n "$ac_tool_prefix"; then
6547 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6548 set dummy ${ac_tool_prefix}ar; ac_word=$2
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6550 $as_echo_n "checking for $ac_word... " >&6; }
6551 if ${ac_cv_prog_AR+:} false; then :
6552 $as_echo_n "(cached) " >&6
6554 if test -n "$AR"; then
6555 ac_cv_prog_AR="$AR" # Let the user override the test.
6557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6561 test -z "$as_dir" && as_dir=.
6562 for ac_exec_ext in '' $ac_executable_extensions; do
6563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6564 ac_cv_prog_AR="${ac_tool_prefix}ar"
6565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6575 if test -n "$AR"; then
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6577 $as_echo "$AR" >&6; }
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6580 $as_echo "no" >&6; }
6585 if test -z "$ac_cv_prog_AR"; then
6587 # Extract the first word of "ar", so it can be a program name with args.
6588 set dummy ar; ac_word=$2
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6590 $as_echo_n "checking for $ac_word... " >&6; }
6591 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6592 $as_echo_n "(cached) " >&6
6594 if test -n "$ac_ct_AR"; then
6595 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6601 test -z "$as_dir" && as_dir=.
6602 for ac_exec_ext in '' $ac_executable_extensions; do
6603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6604 ac_cv_prog_ac_ct_AR="ar"
6605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6614 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6615 if test -n "$ac_ct_AR"; then
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6617 $as_echo "$ac_ct_AR" >&6; }
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6620 $as_echo "no" >&6; }
6623 if test "x$ac_ct_AR" = x; then
6626 case $cross_compiling:$ac_tool_warned in
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6629 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6630 ac_tool_warned=yes ;;
6638 if test "$PORTNAME" = "win32"; then
6639 if test -n "$ac_tool_prefix"; then
6640 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6641 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6643 $as_echo_n "checking for $ac_word... " >&6; }
6644 if ${ac_cv_prog_DLLTOOL+:} false; then :
6645 $as_echo_n "(cached) " >&6
6647 if test -n "$DLLTOOL"; then
6648 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6654 test -z "$as_dir" && as_dir=.
6655 for ac_exec_ext in '' $ac_executable_extensions; do
6656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6657 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6667 DLLTOOL=$ac_cv_prog_DLLTOOL
6668 if test -n "$DLLTOOL"; then
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6670 $as_echo "$DLLTOOL" >&6; }
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6673 $as_echo "no" >&6; }
6678 if test -z "$ac_cv_prog_DLLTOOL"; then
6679 ac_ct_DLLTOOL=$DLLTOOL
6680 # Extract the first word of "dlltool", so it can be a program name with args.
6681 set dummy dlltool; ac_word=$2
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6683 $as_echo_n "checking for $ac_word... " >&6; }
6684 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6685 $as_echo_n "(cached) " >&6
6687 if test -n "$ac_ct_DLLTOOL"; then
6688 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6694 test -z "$as_dir" && as_dir=.
6695 for ac_exec_ext in '' $ac_executable_extensions; do
6696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6697 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6707 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6708 if test -n "$ac_ct_DLLTOOL"; then
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6710 $as_echo "$ac_ct_DLLTOOL" >&6; }
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6713 $as_echo "no" >&6; }
6716 if test "x$ac_ct_DLLTOOL" = x; then
6719 case $cross_compiling:$ac_tool_warned in
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6722 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6723 ac_tool_warned=yes ;;
6725 DLLTOOL=$ac_ct_DLLTOOL
6728 DLLTOOL="$ac_cv_prog_DLLTOOL"
6731 if test -n "$ac_tool_prefix"; then
6732 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6733 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6735 $as_echo_n "checking for $ac_word... " >&6; }
6736 if ${ac_cv_prog_DLLWRAP+:} false; then :
6737 $as_echo_n "(cached) " >&6
6739 if test -n "$DLLWRAP"; then
6740 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6746 test -z "$as_dir" && as_dir=.
6747 for ac_exec_ext in '' $ac_executable_extensions; do
6748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6749 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6759 DLLWRAP=$ac_cv_prog_DLLWRAP
6760 if test -n "$DLLWRAP"; then
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
6762 $as_echo "$DLLWRAP" >&6; }
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6765 $as_echo "no" >&6; }
6770 if test -z "$ac_cv_prog_DLLWRAP"; then
6771 ac_ct_DLLWRAP=$DLLWRAP
6772 # Extract the first word of "dllwrap", so it can be a program name with args.
6773 set dummy dllwrap; ac_word=$2
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6775 $as_echo_n "checking for $ac_word... " >&6; }
6776 if ${ac_cv_prog_ac_ct_DLLWRAP+:} false; then :
6777 $as_echo_n "(cached) " >&6
6779 if test -n "$ac_ct_DLLWRAP"; then
6780 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6786 test -z "$as_dir" && as_dir=.
6787 for ac_exec_ext in '' $ac_executable_extensions; do
6788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6789 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6799 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6800 if test -n "$ac_ct_DLLWRAP"; then
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
6802 $as_echo "$ac_ct_DLLWRAP" >&6; }
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6805 $as_echo "no" >&6; }
6808 if test "x$ac_ct_DLLWRAP" = x; then
6811 case $cross_compiling:$ac_tool_warned in
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6814 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6815 ac_tool_warned=yes ;;
6817 DLLWRAP=$ac_ct_DLLWRAP
6820 DLLWRAP="$ac_cv_prog_DLLWRAP"
6823 if test -n "$ac_tool_prefix"; then
6824 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6825 set dummy ${ac_tool_prefix}windres; ac_word=$2
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6827 $as_echo_n "checking for $ac_word... " >&6; }
6828 if ${ac_cv_prog_WINDRES+:} false; then :
6829 $as_echo_n "(cached) " >&6
6831 if test -n "$WINDRES"; then
6832 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6838 test -z "$as_dir" && as_dir=.
6839 for ac_exec_ext in '' $ac_executable_extensions; do
6840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6841 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6851 WINDRES=$ac_cv_prog_WINDRES
6852 if test -n "$WINDRES"; then
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
6854 $as_echo "$WINDRES" >&6; }
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6857 $as_echo "no" >&6; }
6862 if test -z "$ac_cv_prog_WINDRES"; then
6863 ac_ct_WINDRES=$WINDRES
6864 # Extract the first word of "windres", so it can be a program name with args.
6865 set dummy windres; ac_word=$2
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6867 $as_echo_n "checking for $ac_word... " >&6; }
6868 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
6869 $as_echo_n "(cached) " >&6
6871 if test -n "$ac_ct_WINDRES"; then
6872 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6878 test -z "$as_dir" && as_dir=.
6879 for ac_exec_ext in '' $ac_executable_extensions; do
6880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6881 ac_cv_prog_ac_ct_WINDRES="windres"
6882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6891 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6892 if test -n "$ac_ct_WINDRES"; then
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
6894 $as_echo "$ac_ct_WINDRES" >&6; }
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6897 $as_echo "no" >&6; }
6900 if test "x$ac_ct_WINDRES" = x; then
6903 case $cross_compiling:$ac_tool_warned in
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6906 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6907 ac_tool_warned=yes ;;
6909 WINDRES=$ac_ct_WINDRES
6912 WINDRES="$ac_cv_prog_WINDRES"
6917 # Find a good install program. We prefer a C program (faster),
6918 # so one script is as good as another. But avoid the broken or
6919 # incompatible versions:
6920 # SysV /etc/install, /usr/sbin/install
6921 # SunOS /usr/etc/install
6922 # IRIX /sbin/install
6924 # AmigaOS /C/install, which installs bootblocks on floppy discs
6925 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6926 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6927 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6928 # OS/2's system install, which has a completely different semantic
6929 # ./install, which can be erroneously created by make from ./install.sh.
6930 # Reject install programs that cannot install multiple files.
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6932 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6933 if test -z "$INSTALL"; then
6934 if ${ac_cv_path_install+:} false; then :
6935 $as_echo_n "(cached) " >&6
6937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6941 test -z "$as_dir" && as_dir=.
6942 # Account for people who put trailing slashes in PATH elements.
6943 case $as_dir/ in #((
6944 ./ | .// | /[cC]/* | \
6945 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6946 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6949 # OSF1 and SCO ODT 3.0 have their own names for install.
6950 # Don't use installbsd from OSF since it installs stuff as root
6952 for ac_prog in ginstall scoinst install; do
6953 for ac_exec_ext in '' $ac_executable_extensions; do
6954 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6955 if test $ac_prog = install &&
6956 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6957 # AIX install. It has an incompatible calling convention.
6959 elif test $ac_prog = install &&
6960 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6961 # program-specific install script used by HP pwplus--don't use.
6964 rm -rf conftest.one conftest.two conftest.dir
6965 echo one > conftest.one
6966 echo two > conftest.two
6968 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6969 test -s conftest.one && test -s conftest.two &&
6970 test -s conftest.dir/conftest.one &&
6971 test -s conftest.dir/conftest.two
6973 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6986 rm -rf conftest.one conftest.two conftest.dir
6989 if test "${ac_cv_path_install+set}" = set; then
6990 INSTALL=$ac_cv_path_install
6992 # As a last resort, use the slow shell script. Don't cache a
6993 # value for INSTALL within a source directory, because that will
6994 # break other packages using the cache if that directory is
6995 # removed, or if the value is a relative name.
6996 INSTALL=$ac_install_sh
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7000 $as_echo "$INSTALL" >&6; }
7002 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7003 # It thinks the first close brace ends the variable substitution.
7004 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7006 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7008 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7010 # When Autoconf chooses install-sh as install program it tries to generate
7011 # a relative path to it in each makefile where it subsitutes it. This clashes
7012 # with our Makefile.global concept. This workaround helps.
7014 *install-sh*) install_bin='';;
7015 *) install_bin=$INSTALL;;
7019 # Extract the first word of "tar", so it can be a program name with args.
7020 set dummy tar; ac_word=$2
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7022 $as_echo_n "checking for $ac_word... " >&6; }
7023 if ${ac_cv_path_TAR+:} false; then :
7024 $as_echo_n "(cached) " >&6
7028 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7035 test -z "$as_dir" && as_dir=.
7036 for ac_exec_ext in '' $ac_executable_extensions; do
7037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7038 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7050 if test -n "$TAR"; then
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
7052 $as_echo "$TAR" >&6; }
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7055 $as_echo "no" >&6; }
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7060 $as_echo_n "checking whether ln -s works... " >&6; }
7062 if test "$LN_S" = "ln -s"; then
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7064 $as_echo "yes" >&6; }
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7067 $as_echo "no, using $LN_S" >&6; }
7070 for ac_prog in gawk mawk nawk awk
7072 # Extract the first word of "$ac_prog", so it can be a program name with args.
7073 set dummy $ac_prog; ac_word=$2
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7075 $as_echo_n "checking for $ac_word... " >&6; }
7076 if ${ac_cv_prog_AWK+:} false; then :
7077 $as_echo_n "(cached) " >&6
7079 if test -n "$AWK"; then
7080 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7086 test -z "$as_dir" && as_dir=.
7087 for ac_exec_ext in '' $ac_executable_extensions; do
7088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7089 ac_cv_prog_AWK="$ac_prog"
7090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7100 if test -n "$AWK"; then
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7102 $as_echo "$AWK" >&6; }
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7105 $as_echo "no" >&6; }
7109 test -n "$AWK" && break
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
7113 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7114 if test -z "$MKDIR_P"; then
7115 if ${ac_cv_path_mkdir+:} false; then :
7116 $as_echo_n "(cached) " >&6
7118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7119 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
7122 test -z "$as_dir" && as_dir=.
7123 for ac_prog in mkdir gmkdir; do
7124 for ac_exec_ext in '' $ac_executable_extensions; do
7125 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
7126 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7127 'mkdir (GNU coreutils) '* | \
7128 'mkdir (coreutils) '* | \
7129 'mkdir (fileutils) '4.1*)
7130 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
7140 test -d ./--version && rmdir ./--version
7141 if test "${ac_cv_path_mkdir+set}" = set; then
7142 MKDIR_P="$ac_cv_path_mkdir -p"
7144 # As a last resort, use the slow shell script. Don't cache a
7145 # value for MKDIR_P within a source directory, because that will
7146 # break other packages using the cache if that directory is
7147 # removed, or if the value is a relative name.
7148 MKDIR_P="$ac_install_sh -d"
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7152 $as_echo "$MKDIR_P" >&6; }
7154 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
7155 # a relative path to it in each makefile where it subsitutes it. This clashes
7156 # with our Makefile.global concept. This workaround helps.
7158 *install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
7161 # Let the user override the search
7162 if test -z "$BISON"; then
7163 for ac_prog in bison
7165 # Extract the first word of "$ac_prog", so it can be a program name with args.
7166 set dummy $ac_prog; ac_word=$2
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7168 $as_echo_n "checking for $ac_word... " >&6; }
7169 if ${ac_cv_path_BISON+:} false; then :
7170 $as_echo_n "(cached) " >&6
7174 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
7177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7181 test -z "$as_dir" && as_dir=.
7182 for ac_exec_ext in '' $ac_executable_extensions; do
7183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7184 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
7185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7195 BISON=$ac_cv_path_BISON
7196 if test -n "$BISON"; then
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7198 $as_echo "$BISON" >&6; }
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7201 $as_echo "no" >&6; }
7205 test -n "$BISON" && break
7210 if test "$BISON"; then
7211 pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: using $pgac_bison_version" >&5
7213 $as_echo "$as_me: using $pgac_bison_version" >&6;}
7214 if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7217 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7218 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
7219 $as_echo "$as_me: WARNING:
7220 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7221 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
7224 # Bison >=3.0 issues warnings about %name-prefix="base_yy", instead
7225 # of the now preferred %name-prefix "base_yy", but the latter
7226 # doesn't work with Bison 2.3 or less. So for now we silence the
7227 # deprecation warnings.
7228 if echo "$pgac_bison_version" | $AWK '{ if ($4 >= 3) exit 0; else exit 1;}'
7230 BISONFLAGS="$BISONFLAGS -Wno-deprecated"
7234 if test -z "$BISON"; then
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7236 *** Without Bison you will not be able to build PostgreSQL from Git nor
7237 *** change any of the parser definition files. You can obtain Bison from
7238 *** a GNU mirror site. (If you are using the official distribution of
7239 *** PostgreSQL then you do not need to worry about this, because the Bison
7240 *** output is pre-generated.)" >&5
7241 $as_echo "$as_me: WARNING:
7242 *** Without Bison you will not be able to build PostgreSQL from Git nor
7243 *** change any of the parser definition files. You can obtain Bison from
7244 *** a GNU mirror site. (If you are using the official distribution of
7245 *** PostgreSQL then you do not need to worry about this, because the Bison
7246 *** output is pre-generated.)" >&2;}
7248 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex" >&5
7252 $as_echo_n "checking for flex... " >&6; }
7253 if ${pgac_cv_path_flex+:} false; then :
7254 $as_echo_n "(cached) " >&6
7256 # Let the user override the test
7257 if test -n "$FLEX"; then
7258 pgac_cv_path_flex=$FLEX
7262 for pgac_dir in $PATH; do
7264 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
7267 for pgac_prog in flex lex; do
7268 pgac_candidate="$pgac_dir/$pgac_prog"
7269 if test -f "$pgac_candidate" \
7270 && $pgac_candidate --version </dev/null >/dev/null 2>&1
7272 echo '%%' > conftest.l
7273 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
7274 pgac_flex_version=`$pgac_candidate --version 2>/dev/null`
7275 if echo "$pgac_flex_version" | sed 's/[.a-z]/ /g' | $AWK '{ if ($1 = 2 && $2 = 5 && $3 >= 31) exit 0; else exit 1;}'
7277 pgac_cv_path_flex=$pgac_candidate
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7281 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7282 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
7283 $as_echo "$as_me: WARNING:
7284 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7285 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
7291 rm -f conftest.l lex.yy.c
7292 : ${pgac_cv_path_flex=no}
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_path_flex" >&5
7297 $as_echo "$pgac_cv_path_flex" >&6; }
7298 if test x"$pgac_cv_path_flex" = x"no"; then
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7300 *** Without Flex you will not be able to build PostgreSQL from Git nor
7301 *** change any of the scanner definition files. You can obtain Flex from
7302 *** a GNU mirror site. (If you are using the official distribution of
7303 *** PostgreSQL then you do not need to worry about this because the Flex
7304 *** output is pre-generated.)" >&5
7305 $as_echo "$as_me: WARNING:
7306 *** Without Flex you will not be able to build PostgreSQL from Git nor
7307 *** change any of the scanner definition files. You can obtain Flex from
7308 *** a GNU mirror site. (If you are using the official distribution of
7309 *** PostgreSQL then you do not need to worry about this because the Flex
7310 *** output is pre-generated.)" >&2;}
7314 FLEX=$pgac_cv_path_flex
7315 pgac_flex_version=`$FLEX --version 2>/dev/null`
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: using $pgac_flex_version" >&5
7317 $as_echo "$as_me: using $pgac_flex_version" >&6;}
7324 # Let the user override the search
7325 if test -z "$PERL"; then
7326 # Extract the first word of "perl", so it can be a program name with args.
7327 set dummy perl; ac_word=$2
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7329 $as_echo_n "checking for $ac_word... " >&6; }
7330 if ${ac_cv_path_PERL+:} false; then :
7331 $as_echo_n "(cached) " >&6
7335 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7342 test -z "$as_dir" && as_dir=.
7343 for ac_exec_ext in '' $ac_executable_extensions; do
7344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7345 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7356 PERL=$ac_cv_path_PERL
7357 if test -n "$PERL"; then
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7359 $as_echo "$PERL" >&6; }
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7362 $as_echo "no" >&6; }
7368 if test "$PERL"; then
7369 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'`
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: using perl $pgac_perl_version" >&5
7371 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
7372 if echo "$pgac_perl_version" | sed 's/[.a-z_]/ /g' | \
7373 $AWK '{ if ($1 = 5 && $2 >= 8) exit 1; else exit 0;}'
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7376 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7377 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&5
7378 $as_echo "$as_me: WARNING:
7379 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7380 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&2;}
7385 if test -z "$PERL"; then
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7387 *** Without Perl you will not be able to build PostgreSQL from Git.
7388 *** You can obtain Perl from any CPAN mirror site.
7389 *** (If you are using the official distribution of PostgreSQL then you do not
7390 *** need to worry about this, because the Perl output is pre-generated.)" >&5
7391 $as_echo "$as_me: WARNING:
7392 *** Without Perl you will not be able to build PostgreSQL from Git.
7393 *** You can obtain Perl from any CPAN mirror site.
7394 *** (If you are using the official distribution of PostgreSQL then you do not
7395 *** need to worry about this, because the Perl output is pre-generated.)" >&2;}
7398 if test "$with_perl" = yes; then
7399 if test -z "$PERL"; then
7400 as_fn_error $? "Perl not found" "$LINENO" 5
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl archlibexp" >&5
7404 $as_echo_n "checking for Perl archlibexp... " >&6; }
7405 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
7406 test "$PORTNAME" = "win32" && perl_archlibexp=`echo $perl_archlibexp | sed 's,\\\\,/,g'`
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_archlibexp" >&5
7408 $as_echo "$perl_archlibexp" >&6; }
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl privlibexp" >&5
7410 $as_echo_n "checking for Perl privlibexp... " >&6; }
7411 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
7412 test "$PORTNAME" = "win32" && perl_privlibexp=`echo $perl_privlibexp | sed 's,\\\\,/,g'`
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_privlibexp" >&5
7414 $as_echo "$perl_privlibexp" >&6; }
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl useshrplib" >&5
7416 $as_echo_n "checking for Perl useshrplib... " >&6; }
7417 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
7418 test "$PORTNAME" = "win32" && perl_useshrplib=`echo $perl_useshrplib | sed 's,\\\\,/,g'`
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_useshrplib" >&5
7420 $as_echo "$perl_useshrplib" >&6; }
7421 if test "$perl_useshrplib" != yes && test "$perl_useshrplib" != true; then
7422 as_fn_error $? "cannot build PL/Perl because libperl is not a shared library
7423 You might have to rebuild your Perl installation. Refer to the
7424 documentation for details. Use --without-perl to disable building
7425 PL/Perl." "$LINENO" 5
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flags to link embedded Perl" >&5
7429 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
7430 if test "$PORTNAME" = "win32" ; then
7431 perl_lib=`basename $perl_archlibexp/CORE/perl[5-9]*.lib .lib`
7432 test -e "$perl_archlibexp/CORE/$perl_lib.lib" && perl_embed_ldflags="-L$perl_archlibexp/CORE -l$perl_lib"
7434 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
7435 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
7436 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
7438 if test -z "$perl_embed_ldflags" ; then
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7440 $as_echo "no" >&6; }
7441 as_fn_error $? "could not determine flags for linking embedded Perl.
7442 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7443 installed." "$LINENO" 5
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_embed_ldflags" >&5
7446 $as_echo "$perl_embed_ldflags" >&6; }
7451 if test "$with_python" = yes; then
7452 # Extract the first word of "python", so it can be a program name with args.
7453 set dummy python; ac_word=$2
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7455 $as_echo_n "checking for $ac_word... " >&6; }
7456 if ${ac_cv_path_PYTHON+:} false; then :
7457 $as_echo_n "(cached) " >&6
7461 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
7464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7468 test -z "$as_dir" && as_dir=.
7469 for ac_exec_ext in '' $ac_executable_extensions; do
7470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7471 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
7472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7482 PYTHON=$ac_cv_path_PYTHON
7483 if test -n "$PYTHON"; then
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
7485 $as_echo "$PYTHON" >&6; }
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7488 $as_echo "no" >&6; }
7492 if test x"$PYTHON" = x""; then
7493 as_fn_error $? "Python not found" "$LINENO" 5
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python distutils module" >&5
7498 $as_echo_n "checking for Python distutils module... " >&6; }
7499 if "${PYTHON}" -c 'import distutils' 2>&5
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7502 $as_echo "yes" >&6; }
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7505 $as_echo "no" >&6; }
7506 as_fn_error $? "distutils module not found" "$LINENO" 5
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python configuration directory" >&5
7509 $as_echo_n "checking Python configuration directory... " >&6; }
7510 python_majorversion=`${PYTHON} -c "import sys; print(sys.version[0])"`
7511 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
7512 python_configdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBPL'))))"`
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_configdir" >&5
7514 $as_echo "$python_configdir" >&6; }
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python include directories" >&5
7517 $as_echo_n "checking Python include directories... " >&6; }
7518 python_includespec=`${PYTHON} -c "
7519 import distutils.sysconfig
7520 a = '-I' + distutils.sysconfig.get_python_inc(False)
7521 b = '-I' + distutils.sysconfig.get_python_inc(True)
7525 print(a + ' ' + b)"`
7526 if test "$PORTNAME" = win32 ; then
7527 python_includespec=`echo $python_includespec | sed 's,[\],/,g'`
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_includespec" >&5
7530 $as_echo "$python_includespec" >&6; }
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link an embedded Python application" >&5
7535 $as_echo_n "checking how to link an embedded Python application... " >&6; }
7537 python_libdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
7538 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
7539 python_so=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('SO'))))"`
7540 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
7541 python_enable_shared=`${PYTHON} -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_vars().get('Py_ENABLE_SHARED',0))"`
7543 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
7545 # New way: use the official shared library
7546 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
7547 python_libspec="-L${python_libdir} -l${ldlibrary}"
7549 # Old way: use libpython from python_configdir
7550 python_libdir="${python_configdir}"
7551 # LDVERSION was introduced in Python 3.2.
7552 python_ldversion=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDVERSION'))))"`
7553 if test x"${python_ldversion}" = x""; then
7554 python_ldversion=$python_version
7556 python_libspec="-L${python_libdir} -lpython${python_ldversion}"
7559 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_libspec} ${python_additional_libs}" >&5
7562 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
7567 # We need libpython as a shared library. With Python >=2.5, we
7568 # check the Py_ENABLE_SHARED setting. On Debian, the setting is not
7569 # correct before the jessie release (http://bugs.debian.org/695979).
7570 # We also want to support older Python versions. So as a fallback
7571 # we see if there is a file that is named like a shared library.
7573 if test "$python_enable_shared" != 1; then
7574 if test "$PORTNAME" = darwin; then
7575 # OS X does supply a .dylib even though Py_ENABLE_SHARED does
7576 # not get set. The file detection logic below doesn't succeed
7577 # on older OS X versions, so make it explicit.
7578 python_enable_shared=1
7579 elif test "$PORTNAME" = win32; then
7580 # Windows also needs an explicit override.
7581 python_enable_shared=1
7583 # We don't know the platform shared library extension here yet,
7584 # so we try some candidates.
7585 for dlsuffix in .so .sl; do
7586 if ls "$python_libdir"/libpython*${dlsuffix}* >/dev/null 2>&1; then
7587 python_enable_shared=1
7594 if test "$python_enable_shared" != 1; then
7595 as_fn_error $? "cannot build PL/Python because libpython is not a shared library
7596 You might have to rebuild your Python installation. Refer to the
7597 documentation for details. Use --without-python to disable building
7598 PL/Python." "$LINENO" 5
7602 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
7603 # Extract the first word of "zic", so it can be a program name with args.
7604 set dummy zic; ac_word=$2
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7606 $as_echo_n "checking for $ac_word... " >&6; }
7607 if ${ac_cv_path_ZIC+:} false; then :
7608 $as_echo_n "(cached) " >&6
7612 ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
7615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7619 test -z "$as_dir" && as_dir=.
7620 for ac_exec_ext in '' $ac_executable_extensions; do
7621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7622 ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
7623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7634 if test -n "$ZIC"; then
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIC" >&5
7636 $as_echo "$ZIC" >&6; }
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7639 $as_echo "no" >&6; }
7643 if test -z "$ZIC"; then
7645 When cross-compiling, either use the option --with-system-tzdata to use
7646 existing time-zone data, or set the environment variable ZIC to a zic
7647 program to use during the build." "$LINENO" 5
7654 # For each platform, we need to know about any special compile and link
7655 # libraries, and whether the normal C function names are thread-safe.
7656 # See the comment at the top of src/port/thread.c for more information.
7657 # WIN32 doesn't need the pthread tests; it always uses threads
7659 # These tests are run before the library-tests, because linking with the
7660 # other libraries can pull in the pthread functions as a side-effect. We
7661 # want to use the -pthread or similar flags directly, and not rely on
7662 # the side-effects of linking with some other library.
7664 # note: We have to use AS_IF here rather than plain if. The AC_CHECK_HEADER
7665 # invocation below is the first one in the script, and autoconf generates
7666 # additional code for that, which must not be inside the if-block. AS_IF
7667 # knows how to do that.
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7669 $as_echo_n "checking for ANSI C header files... " >&6; }
7670 if ${ac_cv_header_stdc+:} false; then :
7671 $as_echo_n "(cached) " >&6
7673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7674 /* end confdefs.h. */
7688 if ac_fn_c_try_compile "$LINENO"; then :
7689 ac_cv_header_stdc=yes
7691 ac_cv_header_stdc=no
7693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7695 if test $ac_cv_header_stdc = yes; then
7696 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7698 /* end confdefs.h. */
7702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7703 $EGREP "memchr" >/dev/null 2>&1; then :
7706 ac_cv_header_stdc=no
7712 if test $ac_cv_header_stdc = yes; then
7713 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7715 /* end confdefs.h. */
7719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7720 $EGREP "free" >/dev/null 2>&1; then :
7723 ac_cv_header_stdc=no
7729 if test $ac_cv_header_stdc = yes; then
7730 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7731 if test "$cross_compiling" = yes; then :
7734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7735 /* end confdefs.h. */
7738 #if ((' ' & 0x0FF) == 0x020)
7739 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7740 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7742 # define ISLOWER(c) \
7743 (('a' <= (c) && (c) <= 'i') \
7744 || ('j' <= (c) && (c) <= 'r') \
7745 || ('s' <= (c) && (c) <= 'z'))
7746 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7749 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7754 for (i = 0; i < 256; i++)
7755 if (XOR (islower (i), ISLOWER (i))
7756 || toupper (i) != TOUPPER (i))
7761 if ac_fn_c_try_run "$LINENO"; then :
7764 ac_cv_header_stdc=no
7766 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7767 conftest.$ac_objext conftest.beam conftest.$ac_ext
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7773 $as_echo "$ac_cv_header_stdc" >&6; }
7774 if test $ac_cv_header_stdc = yes; then
7776 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7780 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7781 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7782 inttypes.h stdint.h unistd.h
7784 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7785 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7787 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7788 cat >>confdefs.h <<_ACEOF
7789 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7797 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then :
7803 ac_cpp='$CPP $CPPFLAGS'
7804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7810 # We used to check for pthread.h first, but this fails if pthread.h
7811 # requires special compiler flags (e.g. on Tru64 or Sequent).
7812 # It gets checked for in the link test anyway.
7814 # First of all, check if the user has set any of the PTHREAD_LIBS,
7815 # etcetera environment variables, and if threads linking works using
7817 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
7818 save_CFLAGS="$CFLAGS"
7819 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7821 LIBS="$PTHREAD_LIBS $LIBS"
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
7823 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
7824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7825 /* end confdefs.h. */
7827 /* Override any GCC internal prototype to avoid an error.
7828 Use char because int might match the return type of a GCC
7829 builtin and then its argument prototype would still apply. */
7833 char pthread_join ();
7837 return pthread_join ();
7842 if ac_fn_c_try_link "$LINENO"; then :
7845 rm -f core conftest.err conftest.$ac_objext \
7846 conftest$ac_exeext conftest.$ac_ext
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
7848 $as_echo "$ax_pthread_ok" >&6; }
7849 if test x"$ax_pthread_ok" = xno; then
7854 CFLAGS="$save_CFLAGS"
7857 # We must check for the threads library under a number of different
7858 # names; the ordering is very important because some systems
7859 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7860 # libraries is broken (non-POSIX).
7862 # Create a list of thread flags to try. Items starting with a "-" are
7863 # C compiler flags, and other items are library names, except for "none"
7864 # which indicates that we try without any flags at all, and "pthread-config"
7865 # which is a program returning the flags for the Pth emulation library.
7867 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mt -mthreads pthread --thread-safe pthread-config"
7869 # The ordering *is* (sometimes) important. Some notes on the
7870 # individual items follow:
7872 # pthreads: AIX (must check this before -lpthread)
7873 # none: in case threads are in libc; should be tried before -Kthread and
7874 # other compiler flags to prevent continual compiler warnings
7875 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7876 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7877 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7878 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
7879 # -pthreads: Solaris/gcc
7880 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7881 # doesn't hurt to check since this sometimes defines pthreads and
7882 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
7883 # is present but should not be used directly)
7884 # -mthreads: Mingw32/gcc, Lynx/gcc
7885 # pthread: Linux, etcetera
7886 # --thread-safe: KAI C++
7887 # pthread-config: use pthread-config program (for GNU Pth library)
7893 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
7894 # multi-threading and also sets -lpthread."
7896 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
7901 # IBM z/OS requires a feature-test macro to be defined in order to
7902 # enable POSIX threads at all, so give the user a hint if this is
7903 # not set. (We don't define these ourselves, as they can affect
7904 # other portions of the system API in unpredictable ways.)
7906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7907 /* end confdefs.h. */
7909 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
7910 AX_PTHREAD_ZOS_MISSING
7914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7915 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
7917 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
7925 # Newer versions of Solaris require the "-mt -lpthread" pair, and we
7926 # check that first. On some older versions, libc contains stubbed
7927 # (non-functional) versions of the pthreads routines, so link-based
7928 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
7929 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
7930 # a function called by this macro, so we could check for that, but
7931 # who knows whether they'll stub that too in a future libc.) So
7932 # we'll look for -pthreads and -lpthread shortly thereafter.
7934 ax_pthread_flags="-mt,pthread -pthreads -pthread pthread $ax_pthread_flags"
7938 # Older versions of Clang only give a warning instead of an error for an
7939 # unrecognized option, unless we specify -Werror. (We throw in some extra
7940 # Clang warning flags for good measure.)
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs certain flags to reject unknown flags" >&5
7943 $as_echo_n "checking if compiler needs certain flags to reject unknown flags... " >&6; }
7944 if ${ax_cv_PTHREAD_REJECT_UNKNOWN+:} false; then :
7945 $as_echo_n "(cached) " >&6
7947 ax_cv_PTHREAD_REJECT_UNKNOWN=unknown
7948 save_CFLAGS="$CFLAGS"
7949 ax_pthread_extra_flags="-Wunknown-warning-option -Wunused-command-line-argument"
7950 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wfoobaz -foobaz"
7951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7952 /* end confdefs.h. */
7962 if ac_fn_c_try_compile "$LINENO"; then :
7963 ax_cv_PTHREAD_REJECT_UNKNOWN="-Werror $ax_pthread_extra_flags"
7965 ax_cv_PTHREAD_REJECT_UNKNOWN=no
7967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7968 CFLAGS="$save_CFLAGS"
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_REJECT_UNKNOWN" >&5
7972 $as_echo "$ax_cv_PTHREAD_REJECT_UNKNOWN" >&6; }
7973 ax_pthread_extra_flags=
7974 if test "x$ax_cv_PTHREAD_REJECT_UNKNOWN" != "xno"; then :
7975 ax_pthread_extra_flags="$ax_cv_PTHREAD_REJECT_UNKNOWN"
7978 if test x"$ax_pthread_ok" = xno; then
7979 for flag in $ax_pthread_flags; do
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
7984 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
7989 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
7990 PTHREAD_CFLAGS="-mt"
7991 PTHREAD_LIBS="-lpthread"
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
7996 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
7997 PTHREAD_CFLAGS="$flag"
8001 # Extract the first word of "pthread-config", so it can be a program name with args.
8002 set dummy pthread-config; ac_word=$2
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8004 $as_echo_n "checking for $ac_word... " >&6; }
8005 if ${ac_cv_prog_ax_pthread_config+:} false; then :
8006 $as_echo_n "(cached) " >&6
8008 if test -n "$ax_pthread_config"; then
8009 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8015 test -z "$as_dir" && as_dir=.
8016 for ac_exec_ext in '' $ac_executable_extensions; do
8017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8018 ac_cv_prog_ax_pthread_config="yes"
8019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8026 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8029 ax_pthread_config=$ac_cv_prog_ax_pthread_config
8030 if test -n "$ax_pthread_config"; then
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8032 $as_echo "$ax_pthread_config" >&6; }
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8035 $as_echo "no" >&6; }
8039 if test x"$ax_pthread_config" = xno; then continue; fi
8040 PTHREAD_CFLAGS="`pthread-config --cflags`"
8041 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8046 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8047 PTHREAD_LIBS="-l$flag"
8052 save_CFLAGS="$CFLAGS"
8053 LIBS="$PTHREAD_LIBS $LIBS"
8054 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
8056 # Check for various functions. We must include pthread.h,
8057 # since some functions may be macros. (On the Sequent, we
8058 # need a special flag -Kthread to make this header compile.)
8059 # We check for pthread_join because it is in -lpthread on IRIX
8060 # while pthread_create is in libc. We check for pthread_attr_init
8061 # due to DEC craziness with -lpthreads. We check for
8062 # pthread_cleanup_push because it is one of the few pthread
8063 # functions on Solaris that doesn't have a non-functional libc stub.
8064 # We try pthread_create on general principles.
8065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8066 /* end confdefs.h. */
8067 #include <pthread.h>
8068 static void routine(void *a) { a = 0; }
8069 static void *start_routine(void *a) { return a; }
8073 pthread_t th; pthread_attr_t attr;
8074 pthread_create(&th, 0, start_routine, 0);
8075 pthread_join(th, 0);
8076 pthread_attr_init(&attr);
8077 pthread_cleanup_push(routine, 0);
8078 pthread_cleanup_pop(0) /* ; */
8083 if ac_fn_c_try_link "$LINENO"; then :
8086 rm -f core conftest.err conftest.$ac_objext \
8087 conftest$ac_exeext conftest.$ac_ext
8090 CFLAGS="$save_CFLAGS"
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8093 $as_echo "$ax_pthread_ok" >&6; }
8094 if test "x$ax_pthread_ok" = xyes; then
8103 # Various other checks:
8104 if test "x$ax_pthread_ok" = xyes; then
8106 LIBS="$PTHREAD_LIBS $LIBS"
8107 save_CFLAGS="$CFLAGS"
8108 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8110 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8112 $as_echo_n "checking for joinable pthread attribute... " >&6; }
8113 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
8114 $as_echo_n "(cached) " >&6
8116 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
8117 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8119 /* end confdefs.h. */
8120 #include <pthread.h>
8124 int attr = $attr; return attr /* ; */
8129 if ac_fn_c_try_link "$LINENO"; then :
8130 ax_cv_PTHREAD_JOINABLE_ATTR=$attr; break
8132 rm -f core conftest.err conftest.$ac_objext \
8133 conftest$ac_exeext conftest.$ac_ext
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
8138 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
8139 if test "$ax_cv_PTHREAD_JOINABLE_ATTR" != unknown && \
8140 test "$ax_cv_PTHREAD_JOINABLE_ATTR" != PTHREAD_CREATE_JOINABLE; then :
8142 cat >>confdefs.h <<_ACEOF
8143 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8149 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8150 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
8151 $as_echo_n "(cached) " >&6
8153 ax_cv_PTHREAD_SPECIAL_FLAGS=no
8154 ax_pthread_special_flags_added=no
8155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8156 /* end confdefs.h. */
8158 # if !defined(_REENTRANT) && !defined(_THREAD_SAFE)
8159 AX_PTHREAD_NEED_SPECIAL_FLAG
8163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8164 $EGREP "AX_PTHREAD_NEED_SPECIAL_FLAG" >/dev/null 2>&1; then :
8167 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_THREAD_SAFE"
8169 darwin* | hpux* | osf* | solaris*)
8170 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_REENTRANT"
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
8180 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
8181 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
8182 test "x$ax_pthread_special_flags_added" != "xyes"; then :
8183 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
8184 ax_pthread_special_flags_added=yes
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
8188 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
8189 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
8190 $as_echo_n "(cached) " >&6
8192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8193 /* end confdefs.h. */
8194 #include <pthread.h>
8198 int i = PTHREAD_PRIO_INHERIT;
8203 if ac_fn_c_try_link "$LINENO"; then :
8204 ax_cv_PTHREAD_PRIO_INHERIT=yes
8206 ax_cv_PTHREAD_PRIO_INHERIT=no
8208 rm -f core conftest.err conftest.$ac_objext \
8209 conftest$ac_exeext conftest.$ac_ext
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
8213 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
8214 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
8216 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
8221 CFLAGS="$save_CFLAGS"
8223 # More AIX lossage: compile with *_r variant
8224 if test "x$GCC" != xyes; then
8228 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
8229 #handle absolute path differently from PATH based program lookup
8232 if as_fn_executable_p ${CC}_r; then :
8233 PTHREAD_CC="${CC}_r"
8236 for ac_prog in ${CC}_r
8238 # Extract the first word of "$ac_prog", so it can be a program name with args.
8239 set dummy $ac_prog; ac_word=$2
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8241 $as_echo_n "checking for $ac_word... " >&6; }
8242 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
8243 $as_echo_n "(cached) " >&6
8245 if test -n "$PTHREAD_CC"; then
8246 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8252 test -z "$as_dir" && as_dir=.
8253 for ac_exec_ext in '' $ac_executable_extensions; do
8254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8255 ac_cv_prog_PTHREAD_CC="$ac_prog"
8256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8265 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8266 if test -n "$PTHREAD_CC"; then
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8268 $as_echo "$PTHREAD_CC" >&6; }
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8271 $as_echo "no" >&6; }
8275 test -n "$PTHREAD_CC" && break
8277 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
8288 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
8294 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8295 if test x"$ax_pthread_ok" = xyes; then
8297 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8305 ac_cpp='$CPP $CPPFLAGS'
8306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8312 # Some platforms use these, so just define them. They can't hurt if they
8313 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
8314 # enables 5-arg getpwuid_r, among other things.
8315 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
8317 # Check for *_r functions
8320 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8321 LIBS="$LIBS $PTHREAD_LIBS"
8323 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8324 if test "x$ac_cv_header_pthread_h" = xyes; then :
8328 pthread.h not found; use --disable-thread-safety to disable thread safety" "$LINENO" 5
8333 for ac_func in strerror_r getpwuid_r gethostbyname_r
8335 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8336 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8337 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8338 cat >>confdefs.h <<_ACEOF
8339 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8346 # Do test here with the proper thread flags
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns int" >&5
8348 $as_echo_n "checking whether strerror_r returns int... " >&6; }
8349 if ${pgac_cv_func_strerror_r_int+:} false; then :
8350 $as_echo_n "(cached) " >&6
8352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8353 /* end confdefs.h. */
8359 int strerror_r(int, char *, size_t);
8361 /* Older AIX has 'int' for the third argument so we don't test the args. */
8368 if ac_fn_c_try_compile "$LINENO"; then :
8369 pgac_cv_func_strerror_r_int=yes
8371 pgac_cv_func_strerror_r_int=no
8373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_strerror_r_int" >&5
8376 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
8377 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
8379 $as_echo "#define STRERROR_R_INT 1" >>confdefs.h
8390 # do not use values from template file
8403 ## Most libraries are included only if they demonstrably provide a function
8404 ## we need, but libm is an exception: always include it, because there are
8405 ## too many compilers that play cute optimization games that will break
8406 ## probes for standard functions such as pow().
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
8410 $as_echo_n "checking for main in -lm... " >&6; }
8411 if ${ac_cv_lib_m_main+:} false; then :
8412 $as_echo_n "(cached) " >&6
8414 ac_check_lib_save_LIBS=$LIBS
8416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8417 /* end confdefs.h. */
8428 if ac_fn_c_try_link "$LINENO"; then :
8429 ac_cv_lib_m_main=yes
8433 rm -f core conftest.err conftest.$ac_objext \
8434 conftest$ac_exeext conftest.$ac_ext
8435 LIBS=$ac_check_lib_save_LIBS
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
8438 $as_echo "$ac_cv_lib_m_main" >&6; }
8439 if test "x$ac_cv_lib_m_main" = xyes; then :
8440 cat >>confdefs.h <<_ACEOF
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setproctitle" >&5
8449 $as_echo_n "checking for library containing setproctitle... " >&6; }
8450 if ${ac_cv_search_setproctitle+:} false; then :
8451 $as_echo_n "(cached) " >&6
8453 ac_func_search_save_LIBS=$LIBS
8454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8455 /* end confdefs.h. */
8457 /* Override any GCC internal prototype to avoid an error.
8458 Use char because int might match the return type of a GCC
8459 builtin and then its argument prototype would still apply. */
8463 char setproctitle ();
8467 return setproctitle ();
8472 for ac_lib in '' util; do
8473 if test -z "$ac_lib"; then
8474 ac_res="none required"
8477 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8479 if ac_fn_c_try_link "$LINENO"; then :
8480 ac_cv_search_setproctitle=$ac_res
8482 rm -f core conftest.err conftest.$ac_objext \
8484 if ${ac_cv_search_setproctitle+:} false; then :
8488 if ${ac_cv_search_setproctitle+:} false; then :
8491 ac_cv_search_setproctitle=no
8494 LIBS=$ac_func_search_save_LIBS
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setproctitle" >&5
8497 $as_echo "$ac_cv_search_setproctitle" >&6; }
8498 ac_res=$ac_cv_search_setproctitle
8499 if test "$ac_res" != no; then :
8500 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
8505 $as_echo_n "checking for library containing dlopen... " >&6; }
8506 if ${ac_cv_search_dlopen+:} false; then :
8507 $as_echo_n "(cached) " >&6
8509 ac_func_search_save_LIBS=$LIBS
8510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8511 /* end confdefs.h. */
8513 /* Override any GCC internal prototype to avoid an error.
8514 Use char because int might match the return type of a GCC
8515 builtin and then its argument prototype would still apply. */
8528 for ac_lib in '' dl; do
8529 if test -z "$ac_lib"; then
8530 ac_res="none required"
8533 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8535 if ac_fn_c_try_link "$LINENO"; then :
8536 ac_cv_search_dlopen=$ac_res
8538 rm -f core conftest.err conftest.$ac_objext \
8540 if ${ac_cv_search_dlopen+:} false; then :
8544 if ${ac_cv_search_dlopen+:} false; then :
8547 ac_cv_search_dlopen=no
8550 LIBS=$ac_func_search_save_LIBS
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
8553 $as_echo "$ac_cv_search_dlopen" >&6; }
8554 ac_res=$ac_cv_search_dlopen
8555 if test "$ac_res" != no; then :
8556 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
8561 $as_echo_n "checking for library containing socket... " >&6; }
8562 if ${ac_cv_search_socket+:} false; then :
8563 $as_echo_n "(cached) " >&6
8565 ac_func_search_save_LIBS=$LIBS
8566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8567 /* end confdefs.h. */
8569 /* Override any GCC internal prototype to avoid an error.
8570 Use char because int might match the return type of a GCC
8571 builtin and then its argument prototype would still apply. */
8584 for ac_lib in '' socket ws2_32; do
8585 if test -z "$ac_lib"; then
8586 ac_res="none required"
8589 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8591 if ac_fn_c_try_link "$LINENO"; then :
8592 ac_cv_search_socket=$ac_res
8594 rm -f core conftest.err conftest.$ac_objext \
8596 if ${ac_cv_search_socket+:} false; then :
8600 if ${ac_cv_search_socket+:} false; then :
8603 ac_cv_search_socket=no
8606 LIBS=$ac_func_search_save_LIBS
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
8609 $as_echo "$ac_cv_search_socket" >&6; }
8610 ac_res=$ac_cv_search_socket
8611 if test "$ac_res" != no; then :
8612 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
8617 $as_echo_n "checking for library containing shl_load... " >&6; }
8618 if ${ac_cv_search_shl_load+:} false; then :
8619 $as_echo_n "(cached) " >&6
8621 ac_func_search_save_LIBS=$LIBS
8622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8623 /* end confdefs.h. */
8625 /* Override any GCC internal prototype to avoid an error.
8626 Use char because int might match the return type of a GCC
8627 builtin and then its argument prototype would still apply. */
8640 for ac_lib in '' dld; do
8641 if test -z "$ac_lib"; then
8642 ac_res="none required"
8645 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8647 if ac_fn_c_try_link "$LINENO"; then :
8648 ac_cv_search_shl_load=$ac_res
8650 rm -f core conftest.err conftest.$ac_objext \
8652 if ${ac_cv_search_shl_load+:} false; then :
8656 if ${ac_cv_search_shl_load+:} false; then :
8659 ac_cv_search_shl_load=no
8662 LIBS=$ac_func_search_save_LIBS
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
8665 $as_echo "$ac_cv_search_shl_load" >&6; }
8666 ac_res=$ac_cv_search_shl_load
8667 if test "$ac_res" != no; then :
8668 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8672 # We only use libld in port/dynloader/aix.c
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldopen" >&5
8676 $as_echo_n "checking for library containing ldopen... " >&6; }
8677 if ${ac_cv_search_ldopen+:} false; then :
8678 $as_echo_n "(cached) " >&6
8680 ac_func_search_save_LIBS=$LIBS
8681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8682 /* end confdefs.h. */
8684 /* Override any GCC internal prototype to avoid an error.
8685 Use char because int might match the return type of a GCC
8686 builtin and then its argument prototype would still apply. */
8699 for ac_lib in '' ld; do
8700 if test -z "$ac_lib"; then
8701 ac_res="none required"
8704 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8706 if ac_fn_c_try_link "$LINENO"; then :
8707 ac_cv_search_ldopen=$ac_res
8709 rm -f core conftest.err conftest.$ac_objext \
8711 if ${ac_cv_search_ldopen+:} false; then :
8715 if ${ac_cv_search_ldopen+:} false; then :
8718 ac_cv_search_ldopen=no
8721 LIBS=$ac_func_search_save_LIBS
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldopen" >&5
8724 $as_echo "$ac_cv_search_ldopen" >&6; }
8725 ac_res=$ac_cv_search_ldopen
8726 if test "$ac_res" != no; then :
8727 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getopt_long" >&5
8734 $as_echo_n "checking for library containing getopt_long... " >&6; }
8735 if ${ac_cv_search_getopt_long+:} false; then :
8736 $as_echo_n "(cached) " >&6
8738 ac_func_search_save_LIBS=$LIBS
8739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8740 /* end confdefs.h. */
8742 /* Override any GCC internal prototype to avoid an error.
8743 Use char because int might match the return type of a GCC
8744 builtin and then its argument prototype would still apply. */
8748 char getopt_long ();
8752 return getopt_long ();
8757 for ac_lib in '' getopt gnugetopt; do
8758 if test -z "$ac_lib"; then
8759 ac_res="none required"
8762 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8764 if ac_fn_c_try_link "$LINENO"; then :
8765 ac_cv_search_getopt_long=$ac_res
8767 rm -f core conftest.err conftest.$ac_objext \
8769 if ${ac_cv_search_getopt_long+:} false; then :
8773 if ${ac_cv_search_getopt_long+:} false; then :
8776 ac_cv_search_getopt_long=no
8779 LIBS=$ac_func_search_save_LIBS
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getopt_long" >&5
8782 $as_echo "$ac_cv_search_getopt_long" >&6; }
8783 ac_res=$ac_cv_search_getopt_long
8784 if test "$ac_res" != no; then :
8785 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
8790 $as_echo_n "checking for library containing crypt... " >&6; }
8791 if ${ac_cv_search_crypt+:} false; then :
8792 $as_echo_n "(cached) " >&6
8794 ac_func_search_save_LIBS=$LIBS
8795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8796 /* end confdefs.h. */
8798 /* Override any GCC internal prototype to avoid an error.
8799 Use char because int might match the return type of a GCC
8800 builtin and then its argument prototype would still apply. */
8813 for ac_lib in '' crypt; do
8814 if test -z "$ac_lib"; then
8815 ac_res="none required"
8818 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8820 if ac_fn_c_try_link "$LINENO"; then :
8821 ac_cv_search_crypt=$ac_res
8823 rm -f core conftest.err conftest.$ac_objext \
8825 if ${ac_cv_search_crypt+:} false; then :
8829 if ${ac_cv_search_crypt+:} false; then :
8832 ac_cv_search_crypt=no
8835 LIBS=$ac_func_search_save_LIBS
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
8838 $as_echo "$ac_cv_search_crypt" >&6; }
8839 ac_res=$ac_cv_search_crypt
8840 if test "$ac_res" != no; then :
8841 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
8846 $as_echo_n "checking for library containing shm_open... " >&6; }
8847 if ${ac_cv_search_shm_open+:} false; then :
8848 $as_echo_n "(cached) " >&6
8850 ac_func_search_save_LIBS=$LIBS
8851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8852 /* end confdefs.h. */
8854 /* Override any GCC internal prototype to avoid an error.
8855 Use char because int might match the return type of a GCC
8856 builtin and then its argument prototype would still apply. */
8869 for ac_lib in '' rt; do
8870 if test -z "$ac_lib"; then
8871 ac_res="none required"
8874 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8876 if ac_fn_c_try_link "$LINENO"; then :
8877 ac_cv_search_shm_open=$ac_res
8879 rm -f core conftest.err conftest.$ac_objext \
8881 if ${ac_cv_search_shm_open+:} false; then :
8885 if ${ac_cv_search_shm_open+:} false; then :
8888 ac_cv_search_shm_open=no
8891 LIBS=$ac_func_search_save_LIBS
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
8894 $as_echo "$ac_cv_search_shm_open" >&6; }
8895 ac_res=$ac_cv_search_shm_open
8896 if test "$ac_res" != no; then :
8897 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_unlink" >&5
8902 $as_echo_n "checking for library containing shm_unlink... " >&6; }
8903 if ${ac_cv_search_shm_unlink+:} false; then :
8904 $as_echo_n "(cached) " >&6
8906 ac_func_search_save_LIBS=$LIBS
8907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8908 /* end confdefs.h. */
8910 /* Override any GCC internal prototype to avoid an error.
8911 Use char because int might match the return type of a GCC
8912 builtin and then its argument prototype would still apply. */
8920 return shm_unlink ();
8925 for ac_lib in '' rt; do
8926 if test -z "$ac_lib"; then
8927 ac_res="none required"
8930 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8932 if ac_fn_c_try_link "$LINENO"; then :
8933 ac_cv_search_shm_unlink=$ac_res
8935 rm -f core conftest.err conftest.$ac_objext \
8937 if ${ac_cv_search_shm_unlink+:} false; then :
8941 if ${ac_cv_search_shm_unlink+:} false; then :
8944 ac_cv_search_shm_unlink=no
8947 LIBS=$ac_func_search_save_LIBS
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_unlink" >&5
8950 $as_echo "$ac_cv_search_shm_unlink" >&6; }
8951 ac_res=$ac_cv_search_shm_unlink
8952 if test "$ac_res" != no; then :
8953 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
8959 $as_echo_n "checking for library containing fdatasync... " >&6; }
8960 if ${ac_cv_search_fdatasync+:} false; then :
8961 $as_echo_n "(cached) " >&6
8963 ac_func_search_save_LIBS=$LIBS
8964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8965 /* end confdefs.h. */
8967 /* Override any GCC internal prototype to avoid an error.
8968 Use char because int might match the return type of a GCC
8969 builtin and then its argument prototype would still apply. */
8977 return fdatasync ();
8982 for ac_lib in '' rt posix4; do
8983 if test -z "$ac_lib"; then
8984 ac_res="none required"
8987 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8989 if ac_fn_c_try_link "$LINENO"; then :
8990 ac_cv_search_fdatasync=$ac_res
8992 rm -f core conftest.err conftest.$ac_objext \
8994 if ${ac_cv_search_fdatasync+:} false; then :
8998 if ${ac_cv_search_fdatasync+:} false; then :
9001 ac_cv_search_fdatasync=no
9004 LIBS=$ac_func_search_save_LIBS
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
9007 $as_echo "$ac_cv_search_fdatasync" >&6; }
9008 ac_res=$ac_cv_search_fdatasync
9009 if test "$ac_res" != no; then :
9010 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9014 # Required for thread_test.c on Solaris
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
9016 $as_echo_n "checking for library containing sched_yield... " >&6; }
9017 if ${ac_cv_search_sched_yield+:} false; then :
9018 $as_echo_n "(cached) " >&6
9020 ac_func_search_save_LIBS=$LIBS
9021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9022 /* end confdefs.h. */
9024 /* Override any GCC internal prototype to avoid an error.
9025 Use char because int might match the return type of a GCC
9026 builtin and then its argument prototype would still apply. */
9030 char sched_yield ();
9034 return sched_yield ();
9039 for ac_lib in '' rt; do
9040 if test -z "$ac_lib"; then
9041 ac_res="none required"
9044 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9046 if ac_fn_c_try_link "$LINENO"; then :
9047 ac_cv_search_sched_yield=$ac_res
9049 rm -f core conftest.err conftest.$ac_objext \
9051 if ${ac_cv_search_sched_yield+:} false; then :
9055 if ${ac_cv_search_sched_yield+:} false; then :
9058 ac_cv_search_sched_yield=no
9061 LIBS=$ac_func_search_save_LIBS
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
9064 $as_echo "$ac_cv_search_sched_yield" >&6; }
9065 ac_res=$ac_cv_search_sched_yield
9066 if test "$ac_res" != no; then :
9067 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9071 # Required for thread_test.c on Solaris 2.5:
9072 # Other ports use it too (HP-UX) so test unconditionally
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname_r" >&5
9074 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
9075 if ${ac_cv_search_gethostbyname_r+:} false; then :
9076 $as_echo_n "(cached) " >&6
9078 ac_func_search_save_LIBS=$LIBS
9079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9080 /* end confdefs.h. */
9082 /* Override any GCC internal prototype to avoid an error.
9083 Use char because int might match the return type of a GCC
9084 builtin and then its argument prototype would still apply. */
9088 char gethostbyname_r ();
9092 return gethostbyname_r ();
9097 for ac_lib in '' nsl; do
9098 if test -z "$ac_lib"; then
9099 ac_res="none required"
9102 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9104 if ac_fn_c_try_link "$LINENO"; then :
9105 ac_cv_search_gethostbyname_r=$ac_res
9107 rm -f core conftest.err conftest.$ac_objext \
9109 if ${ac_cv_search_gethostbyname_r+:} false; then :
9113 if ${ac_cv_search_gethostbyname_r+:} false; then :
9116 ac_cv_search_gethostbyname_r=no
9119 LIBS=$ac_func_search_save_LIBS
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname_r" >&5
9122 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
9123 ac_res=$ac_cv_search_gethostbyname_r
9124 if test "$ac_res" != no; then :
9125 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shmget" >&5
9131 $as_echo_n "checking for library containing shmget... " >&6; }
9132 if ${ac_cv_search_shmget+:} false; then :
9133 $as_echo_n "(cached) " >&6
9135 ac_func_search_save_LIBS=$LIBS
9136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9137 /* end confdefs.h. */
9139 /* Override any GCC internal prototype to avoid an error.
9140 Use char because int might match the return type of a GCC
9141 builtin and then its argument prototype would still apply. */
9154 for ac_lib in '' cygipc; do
9155 if test -z "$ac_lib"; then
9156 ac_res="none required"
9159 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9161 if ac_fn_c_try_link "$LINENO"; then :
9162 ac_cv_search_shmget=$ac_res
9164 rm -f core conftest.err conftest.$ac_objext \
9166 if ${ac_cv_search_shmget+:} false; then :
9170 if ${ac_cv_search_shmget+:} false; then :
9173 ac_cv_search_shmget=no
9176 LIBS=$ac_func_search_save_LIBS
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shmget" >&5
9179 $as_echo "$ac_cv_search_shmget" >&6; }
9180 ac_res=$ac_cv_search_shmget
9181 if test "$ac_res" != no; then :
9182 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9187 if test "$with_readline" = yes; then
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
9191 $as_echo_n "checking for library containing readline... " >&6; }
9192 if ${pgac_cv_check_readline+:} false; then :
9193 $as_echo_n "(cached) " >&6
9195 pgac_cv_check_readline=no
9196 pgac_save_LIBS=$LIBS
9197 if test x"$with_libedit_preferred" != x"yes"
9198 then READLINE_ORDER="-lreadline -ledit"
9199 else READLINE_ORDER="-ledit -lreadline"
9201 for pgac_rllib in $READLINE_ORDER ; do
9202 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
9203 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
9204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9205 /* end confdefs.h. */
9207 /* Override any GCC internal prototype to avoid an error.
9208 Use char because int might match the return type of a GCC
9209 builtin and then its argument prototype would still apply. */
9222 if ac_fn_c_try_link "$LINENO"; then :
9224 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
9225 # recognize dependent libraries; assume curses is needed if we didn't
9226 # find any dependency.
9228 netbsd* | openbsd* | irix*)
9229 if test x"$pgac_lib" = x"" ; then
9230 pgac_lib=" -lcurses"
9234 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
9238 rm -f core conftest.err conftest.$ac_objext \
9239 conftest$ac_exeext conftest.$ac_ext
9241 if test "$pgac_cv_check_readline" != no ; then
9245 LIBS=$pgac_save_LIBS
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_check_readline" >&5
9249 $as_echo "$pgac_cv_check_readline" >&6; }
9250 if test "$pgac_cv_check_readline" != no ; then
9251 LIBS="$pgac_cv_check_readline $LIBS"
9253 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
9258 if test x"$pgac_cv_check_readline" = x"no"; then
9259 as_fn_error $? "readline library not found
9260 If you have readline already installed, see config.log for details on the
9261 failure. It is possible the compiler isn't looking in the proper directory.
9262 Use --without-readline to disable readline support." "$LINENO" 5
9266 if test "$with_zlib" = yes; then
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
9268 $as_echo_n "checking for inflate in -lz... " >&6; }
9269 if ${ac_cv_lib_z_inflate+:} false; then :
9270 $as_echo_n "(cached) " >&6
9272 ac_check_lib_save_LIBS=$LIBS
9274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9275 /* end confdefs.h. */
9277 /* Override any GCC internal prototype to avoid an error.
9278 Use char because int might match the return type of a GCC
9279 builtin and then its argument prototype would still apply. */
9292 if ac_fn_c_try_link "$LINENO"; then :
9293 ac_cv_lib_z_inflate=yes
9295 ac_cv_lib_z_inflate=no
9297 rm -f core conftest.err conftest.$ac_objext \
9298 conftest$ac_exeext conftest.$ac_ext
9299 LIBS=$ac_check_lib_save_LIBS
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
9302 $as_echo "$ac_cv_lib_z_inflate" >&6; }
9303 if test "x$ac_cv_lib_z_inflate" = xyes; then :
9304 cat >>confdefs.h <<_ACEOF
9311 as_fn_error $? "zlib library not found
9312 If you have zlib already installed, see config.log for details on the
9313 failure. It is possible the compiler isn't looking in the proper directory.
9314 Use --without-zlib to disable zlib support." "$LINENO" 5
9319 if test "$enable_spinlocks" = yes; then
9321 $as_echo "#define HAVE_SPINLOCKS 1" >>confdefs.h
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9325 *** Not using spinlocks will cause poor performance." >&5
9326 $as_echo "$as_me: WARNING:
9327 *** Not using spinlocks will cause poor performance." >&2;}
9330 if test "$enable_atomics" = yes; then
9332 $as_echo "#define HAVE_ATOMICS 1" >>confdefs.h
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9336 *** Not using atomic operations will cause poor performance." >&5
9337 $as_echo "$as_me: WARNING:
9338 *** Not using atomic operations will cause poor performance." >&2;}
9341 if test "$with_gssapi" = yes ; then
9342 if test "$PORTNAME" != "win32"; then
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_init_sec_context" >&5
9344 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
9345 if ${ac_cv_search_gss_init_sec_context+:} false; then :
9346 $as_echo_n "(cached) " >&6
9348 ac_func_search_save_LIBS=$LIBS
9349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9350 /* end confdefs.h. */
9352 /* Override any GCC internal prototype to avoid an error.
9353 Use char because int might match the return type of a GCC
9354 builtin and then its argument prototype would still apply. */
9358 char gss_init_sec_context ();
9362 return gss_init_sec_context ();
9367 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
9368 if test -z "$ac_lib"; then
9369 ac_res="none required"
9372 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9374 if ac_fn_c_try_link "$LINENO"; then :
9375 ac_cv_search_gss_init_sec_context=$ac_res
9377 rm -f core conftest.err conftest.$ac_objext \
9379 if ${ac_cv_search_gss_init_sec_context+:} false; then :
9383 if ${ac_cv_search_gss_init_sec_context+:} false; then :
9386 ac_cv_search_gss_init_sec_context=no
9389 LIBS=$ac_func_search_save_LIBS
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_init_sec_context" >&5
9392 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
9393 ac_res=$ac_cv_search_gss_init_sec_context
9394 if test "$ac_res" != no; then :
9395 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9398 as_fn_error $? "could not find function 'gss_init_sec_context' required for GSSAPI" "$LINENO" 5
9402 LIBS="$LIBS -lgssapi32"
9406 if test "$with_openssl" = yes ; then
9407 if test "$PORTNAME" != "win32"; then
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_new_ex_data in -lcrypto" >&5
9409 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
9410 if ${ac_cv_lib_crypto_CRYPTO_new_ex_data+:} false; then :
9411 $as_echo_n "(cached) " >&6
9413 ac_check_lib_save_LIBS=$LIBS
9414 LIBS="-lcrypto $LIBS"
9415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9416 /* end confdefs.h. */
9418 /* Override any GCC internal prototype to avoid an error.
9419 Use char because int might match the return type of a GCC
9420 builtin and then its argument prototype would still apply. */
9424 char CRYPTO_new_ex_data ();
9428 return CRYPTO_new_ex_data ();
9433 if ac_fn_c_try_link "$LINENO"; then :
9434 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
9436 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
9438 rm -f core conftest.err conftest.$ac_objext \
9439 conftest$ac_exeext conftest.$ac_ext
9440 LIBS=$ac_check_lib_save_LIBS
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
9443 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
9444 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = xyes; then :
9445 cat >>confdefs.h <<_ACEOF
9446 #define HAVE_LIBCRYPTO 1
9449 LIBS="-lcrypto $LIBS"
9452 as_fn_error $? "library 'crypto' is required for OpenSSL" "$LINENO" 5
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
9456 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
9457 if ${ac_cv_lib_ssl_SSL_library_init+:} false; then :
9458 $as_echo_n "(cached) " >&6
9460 ac_check_lib_save_LIBS=$LIBS
9462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9463 /* end confdefs.h. */
9465 /* Override any GCC internal prototype to avoid an error.
9466 Use char because int might match the return type of a GCC
9467 builtin and then its argument prototype would still apply. */
9471 char SSL_library_init ();
9475 return SSL_library_init ();
9480 if ac_fn_c_try_link "$LINENO"; then :
9481 ac_cv_lib_ssl_SSL_library_init=yes
9483 ac_cv_lib_ssl_SSL_library_init=no
9485 rm -f core conftest.err conftest.$ac_objext \
9486 conftest$ac_exeext conftest.$ac_ext
9487 LIBS=$ac_check_lib_save_LIBS
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
9490 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
9491 if test "x$ac_cv_lib_ssl_SSL_library_init" = xyes; then :
9492 cat >>confdefs.h <<_ACEOF
9493 #define HAVE_LIBSSL 1
9499 as_fn_error $? "library 'ssl' is required for OpenSSL" "$LINENO" 5
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing CRYPTO_new_ex_data" >&5
9504 $as_echo_n "checking for library containing CRYPTO_new_ex_data... " >&6; }
9505 if ${ac_cv_search_CRYPTO_new_ex_data+:} false; then :
9506 $as_echo_n "(cached) " >&6
9508 ac_func_search_save_LIBS=$LIBS
9509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9510 /* end confdefs.h. */
9512 /* Override any GCC internal prototype to avoid an error.
9513 Use char because int might match the return type of a GCC
9514 builtin and then its argument prototype would still apply. */
9518 char CRYPTO_new_ex_data ();
9522 return CRYPTO_new_ex_data ();
9527 for ac_lib in '' eay32 crypto; do
9528 if test -z "$ac_lib"; then
9529 ac_res="none required"
9532 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9534 if ac_fn_c_try_link "$LINENO"; then :
9535 ac_cv_search_CRYPTO_new_ex_data=$ac_res
9537 rm -f core conftest.err conftest.$ac_objext \
9539 if ${ac_cv_search_CRYPTO_new_ex_data+:} false; then :
9543 if ${ac_cv_search_CRYPTO_new_ex_data+:} false; then :
9546 ac_cv_search_CRYPTO_new_ex_data=no
9549 LIBS=$ac_func_search_save_LIBS
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_CRYPTO_new_ex_data" >&5
9552 $as_echo "$ac_cv_search_CRYPTO_new_ex_data" >&6; }
9553 ac_res=$ac_cv_search_CRYPTO_new_ex_data
9554 if test "$ac_res" != no; then :
9555 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9558 as_fn_error $? "library 'eay32' or 'crypto' is required for OpenSSL" "$LINENO" 5
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_library_init" >&5
9562 $as_echo_n "checking for library containing SSL_library_init... " >&6; }
9563 if ${ac_cv_search_SSL_library_init+:} false; then :
9564 $as_echo_n "(cached) " >&6
9566 ac_func_search_save_LIBS=$LIBS
9567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9568 /* end confdefs.h. */
9570 /* Override any GCC internal prototype to avoid an error.
9571 Use char because int might match the return type of a GCC
9572 builtin and then its argument prototype would still apply. */
9576 char SSL_library_init ();
9580 return SSL_library_init ();
9585 for ac_lib in '' ssleay32 ssl; do
9586 if test -z "$ac_lib"; then
9587 ac_res="none required"
9590 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9592 if ac_fn_c_try_link "$LINENO"; then :
9593 ac_cv_search_SSL_library_init=$ac_res
9595 rm -f core conftest.err conftest.$ac_objext \
9597 if ${ac_cv_search_SSL_library_init+:} false; then :
9601 if ${ac_cv_search_SSL_library_init+:} false; then :
9604 ac_cv_search_SSL_library_init=no
9607 LIBS=$ac_func_search_save_LIBS
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_library_init" >&5
9610 $as_echo "$ac_cv_search_SSL_library_init" >&6; }
9611 ac_res=$ac_cv_search_SSL_library_init
9612 if test "$ac_res" != no; then :
9613 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9616 as_fn_error $? "library 'ssleay32' or 'ssl' is required for OpenSSL" "$LINENO" 5
9620 for ac_func in SSL_get_current_compression
9622 ac_fn_c_check_func "$LINENO" "SSL_get_current_compression" "ac_cv_func_SSL_get_current_compression"
9623 if test "x$ac_cv_func_SSL_get_current_compression" = xyes; then :
9624 cat >>confdefs.h <<_ACEOF
9625 #define HAVE_SSL_GET_CURRENT_COMPRESSION 1
9633 if test "$with_pam" = yes ; then
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
9635 $as_echo_n "checking for pam_start in -lpam... " >&6; }
9636 if ${ac_cv_lib_pam_pam_start+:} false; then :
9637 $as_echo_n "(cached) " >&6
9639 ac_check_lib_save_LIBS=$LIBS
9641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9642 /* end confdefs.h. */
9644 /* Override any GCC internal prototype to avoid an error.
9645 Use char because int might match the return type of a GCC
9646 builtin and then its argument prototype would still apply. */
9654 return pam_start ();
9659 if ac_fn_c_try_link "$LINENO"; then :
9660 ac_cv_lib_pam_pam_start=yes
9662 ac_cv_lib_pam_pam_start=no
9664 rm -f core conftest.err conftest.$ac_objext \
9665 conftest$ac_exeext conftest.$ac_ext
9666 LIBS=$ac_check_lib_save_LIBS
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
9669 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
9670 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
9671 cat >>confdefs.h <<_ACEOF
9672 #define HAVE_LIBPAM 1
9678 as_fn_error $? "library 'pam' is required for PAM" "$LINENO" 5
9683 if test "$with_libxml" = yes ; then
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSaveToBuffer in -lxml2" >&5
9685 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
9686 if ${ac_cv_lib_xml2_xmlSaveToBuffer+:} false; then :
9687 $as_echo_n "(cached) " >&6
9689 ac_check_lib_save_LIBS=$LIBS
9691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9692 /* end confdefs.h. */
9694 /* Override any GCC internal prototype to avoid an error.
9695 Use char because int might match the return type of a GCC
9696 builtin and then its argument prototype would still apply. */
9700 char xmlSaveToBuffer ();
9704 return xmlSaveToBuffer ();
9709 if ac_fn_c_try_link "$LINENO"; then :
9710 ac_cv_lib_xml2_xmlSaveToBuffer=yes
9712 ac_cv_lib_xml2_xmlSaveToBuffer=no
9714 rm -f core conftest.err conftest.$ac_objext \
9715 conftest$ac_exeext conftest.$ac_ext
9716 LIBS=$ac_check_lib_save_LIBS
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
9719 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
9720 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = xyes; then :
9721 cat >>confdefs.h <<_ACEOF
9722 #define HAVE_LIBXML2 1
9728 as_fn_error $? "library 'xml2' (version >= 2.6.23) is required for XML support" "$LINENO" 5
9733 if test "$with_libxslt" = yes ; then
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xsltCleanupGlobals in -lxslt" >&5
9735 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
9736 if ${ac_cv_lib_xslt_xsltCleanupGlobals+:} false; then :
9737 $as_echo_n "(cached) " >&6
9739 ac_check_lib_save_LIBS=$LIBS
9741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9742 /* end confdefs.h. */
9744 /* Override any GCC internal prototype to avoid an error.
9745 Use char because int might match the return type of a GCC
9746 builtin and then its argument prototype would still apply. */
9750 char xsltCleanupGlobals ();
9754 return xsltCleanupGlobals ();
9759 if ac_fn_c_try_link "$LINENO"; then :
9760 ac_cv_lib_xslt_xsltCleanupGlobals=yes
9762 ac_cv_lib_xslt_xsltCleanupGlobals=no
9764 rm -f core conftest.err conftest.$ac_objext \
9765 conftest$ac_exeext conftest.$ac_ext
9766 LIBS=$ac_check_lib_save_LIBS
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
9769 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
9770 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = xyes; then :
9771 cat >>confdefs.h <<_ACEOF
9772 #define HAVE_LIBXSLT 1
9778 as_fn_error $? "library 'xslt' is required for XSLT support" "$LINENO" 5
9783 # Note: We can test for libldap_r only after we know PTHREAD_LIBS
9784 if test "$with_ldap" = yes ; then
9786 if test "$PORTNAME" != "win32"; then
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lldap" >&5
9788 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
9789 if ${ac_cv_lib_ldap_ldap_bind+:} false; then :
9790 $as_echo_n "(cached) " >&6
9792 ac_check_lib_save_LIBS=$LIBS
9793 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
9794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9795 /* end confdefs.h. */
9797 /* Override any GCC internal prototype to avoid an error.
9798 Use char because int might match the return type of a GCC
9799 builtin and then its argument prototype would still apply. */
9807 return ldap_bind ();
9812 if ac_fn_c_try_link "$LINENO"; then :
9813 ac_cv_lib_ldap_ldap_bind=yes
9815 ac_cv_lib_ldap_ldap_bind=no
9817 rm -f core conftest.err conftest.$ac_objext \
9818 conftest$ac_exeext conftest.$ac_ext
9819 LIBS=$ac_check_lib_save_LIBS
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_bind" >&5
9822 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
9823 if test "x$ac_cv_lib_ldap_ldap_bind" = xyes; then :
9824 cat >>confdefs.h <<_ACEOF
9825 #define HAVE_LIBLDAP 1
9831 as_fn_error $? "library 'ldap' is required for LDAP" "$LINENO" 5
9834 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
9835 if test "$enable_thread_safety" = yes; then
9836 # on some platforms ldap_r fails to link without PTHREAD_LIBS
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_simple_bind in -lldap_r" >&5
9838 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
9839 if ${ac_cv_lib_ldap_r_ldap_simple_bind+:} false; then :
9840 $as_echo_n "(cached) " >&6
9842 ac_check_lib_save_LIBS=$LIBS
9843 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
9844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9845 /* end confdefs.h. */
9847 /* Override any GCC internal prototype to avoid an error.
9848 Use char because int might match the return type of a GCC
9849 builtin and then its argument prototype would still apply. */
9853 char ldap_simple_bind ();
9857 return ldap_simple_bind ();
9862 if ac_fn_c_try_link "$LINENO"; then :
9863 ac_cv_lib_ldap_r_ldap_simple_bind=yes
9865 ac_cv_lib_ldap_r_ldap_simple_bind=no
9867 rm -f core conftest.err conftest.$ac_objext \
9868 conftest$ac_exeext conftest.$ac_ext
9869 LIBS=$ac_check_lib_save_LIBS
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
9872 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
9873 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = xyes; then :
9874 cat >>confdefs.h <<_ACEOF
9875 #define HAVE_LIBLDAP_R 1
9878 LIBS="-lldap_r $LIBS"
9881 as_fn_error $? "library 'ldap_r' is required for LDAP" "$LINENO" 5
9884 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
9886 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lwldap32" >&5
9890 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
9891 if ${ac_cv_lib_wldap32_ldap_bind+:} false; then :
9892 $as_echo_n "(cached) " >&6
9894 ac_check_lib_save_LIBS=$LIBS
9895 LIBS="-lwldap32 $LIBS"
9896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9897 /* end confdefs.h. */
9899 /* Override any GCC internal prototype to avoid an error.
9900 Use char because int might match the return type of a GCC
9901 builtin and then its argument prototype would still apply. */
9909 return ldap_bind ();
9914 if ac_fn_c_try_link "$LINENO"; then :
9915 ac_cv_lib_wldap32_ldap_bind=yes
9917 ac_cv_lib_wldap32_ldap_bind=no
9919 rm -f core conftest.err conftest.$ac_objext \
9920 conftest$ac_exeext conftest.$ac_ext
9921 LIBS=$ac_check_lib_save_LIBS
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wldap32_ldap_bind" >&5
9924 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
9925 if test "x$ac_cv_lib_wldap32_ldap_bind" = xyes; then :
9926 cat >>confdefs.h <<_ACEOF
9927 #define HAVE_LIBWLDAP32 1
9930 LIBS="-lwldap32 $LIBS"
9933 as_fn_error $? "library 'wldap32' is required for LDAP" "$LINENO" 5
9936 LDAP_LIBS_FE="-lwldap32"
9937 LDAP_LIBS_BE="-lwldap32"
9944 # for contrib/sepgsql
9945 if test "$with_selinux" = yes; then
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for security_compute_create_name in -lselinux" >&5
9947 $as_echo_n "checking for security_compute_create_name in -lselinux... " >&6; }
9948 if ${ac_cv_lib_selinux_security_compute_create_name+:} false; then :
9949 $as_echo_n "(cached) " >&6
9951 ac_check_lib_save_LIBS=$LIBS
9952 LIBS="-lselinux $LIBS"
9953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9954 /* end confdefs.h. */
9956 /* Override any GCC internal prototype to avoid an error.
9957 Use char because int might match the return type of a GCC
9958 builtin and then its argument prototype would still apply. */
9962 char security_compute_create_name ();
9966 return security_compute_create_name ();
9971 if ac_fn_c_try_link "$LINENO"; then :
9972 ac_cv_lib_selinux_security_compute_create_name=yes
9974 ac_cv_lib_selinux_security_compute_create_name=no
9976 rm -f core conftest.err conftest.$ac_objext \
9977 conftest$ac_exeext conftest.$ac_ext
9978 LIBS=$ac_check_lib_save_LIBS
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_security_compute_create_name" >&5
9981 $as_echo "$ac_cv_lib_selinux_security_compute_create_name" >&6; }
9982 if test "x$ac_cv_lib_selinux_security_compute_create_name" = xyes; then :
9983 cat >>confdefs.h <<_ACEOF
9984 #define HAVE_LIBSELINUX 1
9987 LIBS="-lselinux $LIBS"
9990 as_fn_error $? "library 'libselinux', version 2.1.10 or newer, is required for SELinux support" "$LINENO" 5
9995 # for contrib/uuid-ossp
9996 if test "$with_uuid" = bsd ; then
9997 # On BSD, the UUID functions are in libc
9998 ac_fn_c_check_func "$LINENO" "uuid_to_string" "ac_cv_func_uuid_to_string"
9999 if test "x$ac_cv_func_uuid_to_string" = xyes; then :
10002 as_fn_error $? "BSD UUID functions are not present" "$LINENO" 5
10005 elif test "$with_uuid" = e2fs ; then
10006 # On OS X, the UUID functions are in libc
10007 ac_fn_c_check_func "$LINENO" "uuid_generate" "ac_cv_func_uuid_generate"
10008 if test "x$ac_cv_func_uuid_generate" = xyes; then :
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
10012 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
10013 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
10014 $as_echo_n "(cached) " >&6
10016 ac_check_lib_save_LIBS=$LIBS
10017 LIBS="-luuid $LIBS"
10018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10019 /* end confdefs.h. */
10021 /* Override any GCC internal prototype to avoid an error.
10022 Use char because int might match the return type of a GCC
10023 builtin and then its argument prototype would still apply. */
10027 char uuid_generate ();
10031 return uuid_generate ();
10036 if ac_fn_c_try_link "$LINENO"; then :
10037 ac_cv_lib_uuid_uuid_generate=yes
10039 ac_cv_lib_uuid_uuid_generate=no
10041 rm -f core conftest.err conftest.$ac_objext \
10042 conftest$ac_exeext conftest.$ac_ext
10043 LIBS=$ac_check_lib_save_LIBS
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
10046 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
10047 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
10050 as_fn_error $? "library 'uuid' is required for E2FS UUID" "$LINENO" 5
10055 elif test "$with_uuid" = ossp ; then
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_export in -lossp-uuid" >&5
10057 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
10058 if ${ac_cv_lib_ossp_uuid_uuid_export+:} false; then :
10059 $as_echo_n "(cached) " >&6
10061 ac_check_lib_save_LIBS=$LIBS
10062 LIBS="-lossp-uuid $LIBS"
10063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10064 /* end confdefs.h. */
10066 /* Override any GCC internal prototype to avoid an error.
10067 Use char because int might match the return type of a GCC
10068 builtin and then its argument prototype would still apply. */
10072 char uuid_export ();
10076 return uuid_export ();
10081 if ac_fn_c_try_link "$LINENO"; then :
10082 ac_cv_lib_ossp_uuid_uuid_export=yes
10084 ac_cv_lib_ossp_uuid_uuid_export=no
10086 rm -f core conftest.err conftest.$ac_objext \
10087 conftest$ac_exeext conftest.$ac_ext
10088 LIBS=$ac_check_lib_save_LIBS
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
10091 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
10092 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = xyes; then :
10093 UUID_LIBS="-lossp-uuid"
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_export in -luuid" >&5
10096 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
10097 if ${ac_cv_lib_uuid_uuid_export+:} false; then :
10098 $as_echo_n "(cached) " >&6
10100 ac_check_lib_save_LIBS=$LIBS
10101 LIBS="-luuid $LIBS"
10102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10103 /* end confdefs.h. */
10105 /* Override any GCC internal prototype to avoid an error.
10106 Use char because int might match the return type of a GCC
10107 builtin and then its argument prototype would still apply. */
10111 char uuid_export ();
10115 return uuid_export ();
10120 if ac_fn_c_try_link "$LINENO"; then :
10121 ac_cv_lib_uuid_uuid_export=yes
10123 ac_cv_lib_uuid_uuid_export=no
10125 rm -f core conftest.err conftest.$ac_objext \
10126 conftest$ac_exeext conftest.$ac_ext
10127 LIBS=$ac_check_lib_save_LIBS
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_export" >&5
10130 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
10131 if test "x$ac_cv_lib_uuid_uuid_export" = xyes; then :
10134 as_fn_error $? "library 'ossp-uuid' or 'uuid' is required for OSSP UUID" "$LINENO" 5
10147 for ac_header in atomic.h crypt.h dld.h fp_class.h getopt.h ieeefp.h ifaddrs.h langinfo.h mbarrier.h poll.h pwd.h sys/ioctl.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/socket.h sys/sockio.h sys/tas.h sys/time.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h
10149 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10150 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10151 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10152 cat >>confdefs.h <<_ACEOF
10153 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10161 # On BSD, test for net/if.h will fail unless sys/socket.h
10162 # is included first.
10163 for ac_header in net/if.h
10165 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
10166 #ifdef HAVE_SYS_SOCKET_H
10167 #include <sys/socket.h>
10171 if test "x$ac_cv_header_net_if_h" = xyes; then :
10172 cat >>confdefs.h <<_ACEOF
10173 #define HAVE_NET_IF_H 1
10181 # On OpenBSD, test for sys/ucred.h will fail unless sys/param.h
10182 # is included first.
10183 for ac_header in sys/ucred.h
10185 ac_fn_c_check_header_compile "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default
10186 #include <sys/param.h>
10189 if test "x$ac_cv_header_sys_ucred_h" = xyes; then :
10190 cat >>confdefs.h <<_ACEOF
10191 #define HAVE_SYS_UCRED_H 1
10199 # At least on IRIX, test for netinet/tcp.h will fail unless
10200 # netinet/in.h is included first.
10201 for ac_header in netinet/in.h
10203 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
10204 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
10205 cat >>confdefs.h <<_ACEOF
10206 #define HAVE_NETINET_IN_H 1
10213 for ac_header in netinet/tcp.h
10215 ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default
10216 #ifdef HAVE_NETINET_IN_H
10217 #include <netinet/in.h>
10221 if test "x$ac_cv_header_netinet_tcp_h" = xyes; then :
10222 cat >>confdefs.h <<_ACEOF
10223 #define HAVE_NETINET_TCP_H 1
10231 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
10232 for ac_header in readline/readline.h
10234 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
10235 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
10236 cat >>confdefs.h <<_ACEOF
10237 #define HAVE_READLINE_READLINE_H 1
10241 for ac_header in readline.h
10243 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
10244 if test "x$ac_cv_header_readline_h" = xyes; then :
10245 cat >>confdefs.h <<_ACEOF
10246 #define HAVE_READLINE_H 1
10250 as_fn_error $? "readline header not found
10251 If you have readline already installed, see config.log for details on the
10252 failure. It is possible the compiler isn't looking in the proper directory.
10253 Use --without-readline to disable readline support." "$LINENO" 5
10262 for ac_header in readline/history.h
10264 ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
10265 if test "x$ac_cv_header_readline_history_h" = xyes; then :
10266 cat >>confdefs.h <<_ACEOF
10267 #define HAVE_READLINE_HISTORY_H 1
10271 for ac_header in history.h
10273 ac_fn_c_check_header_mongrel "$LINENO" "history.h" "ac_cv_header_history_h" "$ac_includes_default"
10274 if test "x$ac_cv_header_history_h" = xyes; then :
10275 cat >>confdefs.h <<_ACEOF
10276 #define HAVE_HISTORY_H 1
10280 as_fn_error $? "history header not found
10281 If you have readline already installed, see config.log for details on the
10282 failure. It is possible the compiler isn't looking in the proper directory.
10283 Use --without-readline to disable readline support." "$LINENO" 5
10294 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
10295 # Some installations of libedit usurp /usr/include/readline/, which seems
10296 # bad practice, since in combined installations readline will have its headers
10297 # there. We might have to resort to AC_EGREP checks to make sure we found
10298 # the proper header...
10299 for ac_header in editline/readline.h
10301 ac_fn_c_check_header_mongrel "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
10302 if test "x$ac_cv_header_editline_readline_h" = xyes; then :
10303 cat >>confdefs.h <<_ACEOF
10304 #define HAVE_EDITLINE_READLINE_H 1
10308 for ac_header in readline.h
10310 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
10311 if test "x$ac_cv_header_readline_h" = xyes; then :
10312 cat >>confdefs.h <<_ACEOF
10313 #define HAVE_READLINE_H 1
10317 for ac_header in readline/readline.h
10319 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
10320 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
10321 cat >>confdefs.h <<_ACEOF
10322 #define HAVE_READLINE_READLINE_H 1
10326 as_fn_error $? "readline header not found
10327 If you have libedit already installed, see config.log for details on the
10328 failure. It is possible the compiler isn't looking in the proper directory.
10329 Use --without-readline to disable libedit support." "$LINENO" 5
10342 # Note: in a libedit installation, history.h is sometimes a dummy, and may
10343 # not be there at all. Hence, don't complain if not found. We must check
10344 # though, since in yet other versions it is an independent header.
10345 for ac_header in editline/history.h
10347 ac_fn_c_check_header_mongrel "$LINENO" "editline/history.h" "ac_cv_header_editline_history_h" "$ac_includes_default"
10348 if test "x$ac_cv_header_editline_history_h" = xyes; then :
10349 cat >>confdefs.h <<_ACEOF
10350 #define HAVE_EDITLINE_HISTORY_H 1
10354 for ac_header in history.h
10356 ac_fn_c_check_header_mongrel "$LINENO" "history.h" "ac_cv_header_history_h" "$ac_includes_default"
10357 if test "x$ac_cv_header_history_h" = xyes; then :
10358 cat >>confdefs.h <<_ACEOF
10359 #define HAVE_HISTORY_H 1
10363 for ac_header in readline/history.h
10365 ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
10366 if test "x$ac_cv_header_readline_history_h" = xyes; then :
10367 cat >>confdefs.h <<_ACEOF
10368 #define HAVE_READLINE_HISTORY_H 1
10385 if test "$with_zlib" = yes; then
10386 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
10387 if test "x$ac_cv_header_zlib_h" = xyes; then :
10390 as_fn_error $? "zlib header not found
10391 If you have zlib already installed, see config.log for details on the
10392 failure. It is possible the compiler isn't looking in the proper directory.
10393 Use --without-zlib to disable zlib support." "$LINENO" 5
10399 if test "$with_gssapi" = yes ; then
10400 for ac_header in gssapi/gssapi.h
10402 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
10403 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
10404 cat >>confdefs.h <<_ACEOF
10405 #define HAVE_GSSAPI_GSSAPI_H 1
10409 for ac_header in gssapi.h
10411 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
10412 if test "x$ac_cv_header_gssapi_h" = xyes; then :
10413 cat >>confdefs.h <<_ACEOF
10414 #define HAVE_GSSAPI_H 1
10418 as_fn_error $? "gssapi.h header file is required for GSSAPI" "$LINENO" 5
10429 if test "$with_openssl" = yes ; then
10430 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
10431 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
10434 as_fn_error $? "header file <openssl/ssl.h> is required for OpenSSL" "$LINENO" 5
10438 ac_fn_c_check_header_mongrel "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default"
10439 if test "x$ac_cv_header_openssl_err_h" = xyes; then :
10442 as_fn_error $? "header file <openssl/err.h> is required for OpenSSL" "$LINENO" 5
10448 if test "$with_pam" = yes ; then
10449 for ac_header in security/pam_appl.h
10451 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
10452 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
10453 cat >>confdefs.h <<_ACEOF
10454 #define HAVE_SECURITY_PAM_APPL_H 1
10458 for ac_header in pam/pam_appl.h
10460 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
10461 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
10462 cat >>confdefs.h <<_ACEOF
10463 #define HAVE_PAM_PAM_APPL_H 1
10467 as_fn_error $? "header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." "$LINENO" 5
10478 if test "$with_libxml" = yes ; then
10479 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
10480 if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
10483 as_fn_error $? "header file <libxml/parser.h> is required for XML support" "$LINENO" 5
10489 if test "$with_libxslt" = yes ; then
10490 ac_fn_c_check_header_mongrel "$LINENO" "libxslt/xslt.h" "ac_cv_header_libxslt_xslt_h" "$ac_includes_default"
10491 if test "x$ac_cv_header_libxslt_xslt_h" = xyes; then :
10494 as_fn_error $? "header file <libxslt/xslt.h> is required for XSLT support" "$LINENO" 5
10500 if test "$with_ldap" = yes ; then
10501 if test "$PORTNAME" != "win32"; then
10502 for ac_header in ldap.h
10504 ac_fn_c_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
10505 if test "x$ac_cv_header_ldap_h" = xyes; then :
10506 cat >>confdefs.h <<_ACEOF
10507 #define HAVE_LDAP_H 1
10511 as_fn_error $? "header file <ldap.h> is required for LDAP" "$LINENO" 5
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible LDAP implementation" >&5
10517 $as_echo_n "checking for compatible LDAP implementation... " >&6; }
10518 if ${pgac_cv_ldap_safe+:} false; then :
10519 $as_echo_n "(cached) " >&6
10521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10522 /* end confdefs.h. */
10524 #if !defined(LDAP_VENDOR_VERSION) || \
10525 (defined(LDAP_API_FEATURE_X_OPENLDAP) && \
10526 LDAP_VENDOR_VERSION >= 20424 && LDAP_VENDOR_VERSION <= 20431)
10537 if ac_fn_c_try_compile "$LINENO"; then :
10538 pgac_cv_ldap_safe=yes
10540 pgac_cv_ldap_safe=no
10542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_ldap_safe" >&5
10545 $as_echo "$pgac_cv_ldap_safe" >&6; }
10547 if test "$pgac_cv_ldap_safe" != yes; then
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10549 *** With OpenLDAP versions 2.4.24 through 2.4.31, inclusive, each backend
10550 *** process that loads libpq (via WAL receiver, dblink, or postgres_fdw) and
10551 *** also uses LDAP will crash on exit." >&5
10552 $as_echo "$as_me: WARNING:
10553 *** With OpenLDAP versions 2.4.24 through 2.4.31, inclusive, each backend
10554 *** process that loads libpq (via WAL receiver, dblink, or postgres_fdw) and
10555 *** also uses LDAP will crash on exit." >&2;}
10558 for ac_header in winldap.h
10560 ac_fn_c_check_header_compile "$LINENO" "winldap.h" "ac_cv_header_winldap_h" "$ac_includes_default
10561 #include <windows.h>
10564 if test "x$ac_cv_header_winldap_h" = xyes; then :
10565 cat >>confdefs.h <<_ACEOF
10566 #define HAVE_WINLDAP_H 1
10570 as_fn_error $? "header file <winldap.h> is required for LDAP" "$LINENO" 5
10578 if test "$with_bonjour" = yes ; then
10579 ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
10580 if test "x$ac_cv_header_dns_sd_h" = xyes; then :
10583 as_fn_error $? "header file <dns_sd.h> is required for Bonjour" "$LINENO" 5
10589 # for contrib/uuid-ossp
10590 if test "$with_uuid" = bsd ; then
10591 for ac_header in uuid.h
10593 ac_fn_c_check_header_mongrel "$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
10594 if test "x$ac_cv_header_uuid_h" = xyes; then :
10595 cat >>confdefs.h <<_ACEOF
10596 #define HAVE_UUID_H 1
10598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10599 /* end confdefs.h. */
10603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10604 $EGREP "uuid_to_string" >/dev/null 2>&1; then :
10607 as_fn_error $? "header file <uuid.h> does not match BSD UUID library" "$LINENO" 5
10612 as_fn_error $? "header file <uuid.h> is required for BSD UUID" "$LINENO" 5
10617 elif test "$with_uuid" = e2fs ; then
10618 for ac_header in uuid/uuid.h
10620 ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
10621 if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
10622 cat >>confdefs.h <<_ACEOF
10623 #define HAVE_UUID_UUID_H 1
10625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10626 /* end confdefs.h. */
10627 #include <uuid/uuid.h>
10630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10631 $EGREP "uuid_generate" >/dev/null 2>&1; then :
10634 as_fn_error $? "header file <uuid/uuid.h> does not match E2FS UUID library" "$LINENO" 5
10639 for ac_header in uuid.h
10641 ac_fn_c_check_header_mongrel "$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
10642 if test "x$ac_cv_header_uuid_h" = xyes; then :
10643 cat >>confdefs.h <<_ACEOF
10644 #define HAVE_UUID_H 1
10646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10647 /* end confdefs.h. */
10651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10652 $EGREP "uuid_generate" >/dev/null 2>&1; then :
10655 as_fn_error $? "header file <uuid.h> does not match E2FS UUID library" "$LINENO" 5
10660 as_fn_error $? "header file <uuid/uuid.h> or <uuid.h> is required for E2FS UUID" "$LINENO" 5
10669 elif test "$with_uuid" = ossp ; then
10670 for ac_header in ossp/uuid.h
10672 ac_fn_c_check_header_mongrel "$LINENO" "ossp/uuid.h" "ac_cv_header_ossp_uuid_h" "$ac_includes_default"
10673 if test "x$ac_cv_header_ossp_uuid_h" = xyes; then :
10674 cat >>confdefs.h <<_ACEOF
10675 #define HAVE_OSSP_UUID_H 1
10677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10678 /* end confdefs.h. */
10679 #include <ossp/uuid.h>
10682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10683 $EGREP "uuid_export" >/dev/null 2>&1; then :
10686 as_fn_error $? "header file <ossp/uuid.h> does not match OSSP UUID library" "$LINENO" 5
10691 for ac_header in uuid.h
10693 ac_fn_c_check_header_mongrel "$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
10694 if test "x$ac_cv_header_uuid_h" = xyes; then :
10695 cat >>confdefs.h <<_ACEOF
10696 #define HAVE_UUID_H 1
10698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10699 /* end confdefs.h. */
10703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10704 $EGREP "uuid_export" >/dev/null 2>&1; then :
10707 as_fn_error $? "header file <uuid.h> does not match OSSP UUID library" "$LINENO" 5
10712 as_fn_error $? "header file <ossp/uuid.h> or <uuid.h> is required for OSSP UUID" "$LINENO" 5
10723 if test "$PORTNAME" = "win32" ; then
10724 for ac_header in crtdefs.h
10726 ac_fn_c_check_header_mongrel "$LINENO" "crtdefs.h" "ac_cv_header_crtdefs_h" "$ac_includes_default"
10727 if test "x$ac_cv_header_crtdefs_h" = xyes; then :
10728 cat >>confdefs.h <<_ACEOF
10729 #define HAVE_CRTDEFS_H 1
10739 ## Types, structures, compiler characteristics
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10743 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10744 if ${ac_cv_c_bigendian+:} false; then :
10745 $as_echo_n "(cached) " >&6
10747 ac_cv_c_bigendian=unknown
10748 # See if we're dealing with a universal compiler.
10749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10750 /* end confdefs.h. */
10751 #ifndef __APPLE_CC__
10752 not a universal capable compiler
10757 if ac_fn_c_try_compile "$LINENO"; then :
10759 # Check for potential -arch flags. It is not universal unless
10760 # there are at least two -arch flags with different values.
10763 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10764 if test -n "$ac_prev"; then
10766 i?86 | x86_64 | ppc | ppc64)
10767 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10770 ac_cv_c_bigendian=universal
10776 elif test "x$ac_word" = "x-arch"; then
10781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10782 if test $ac_cv_c_bigendian = unknown; then
10783 # See if sys/param.h defines the BYTE_ORDER macro.
10784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10785 /* end confdefs.h. */
10786 #include <sys/types.h>
10787 #include <sys/param.h>
10792 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10793 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10795 bogus endian macros
10802 if ac_fn_c_try_compile "$LINENO"; then :
10803 # It does; now see whether it defined to BIG_ENDIAN or not.
10804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10805 /* end confdefs.h. */
10806 #include <sys/types.h>
10807 #include <sys/param.h>
10812 #if BYTE_ORDER != BIG_ENDIAN
10820 if ac_fn_c_try_compile "$LINENO"; then :
10821 ac_cv_c_bigendian=yes
10823 ac_cv_c_bigendian=no
10825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10829 if test $ac_cv_c_bigendian = unknown; then
10830 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10832 /* end confdefs.h. */
10833 #include <limits.h>
10838 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10839 bogus endian macros
10846 if ac_fn_c_try_compile "$LINENO"; then :
10847 # It does; now see whether it defined to _BIG_ENDIAN or not.
10848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10849 /* end confdefs.h. */
10850 #include <limits.h>
10855 #ifndef _BIG_ENDIAN
10863 if ac_fn_c_try_compile "$LINENO"; then :
10864 ac_cv_c_bigendian=yes
10866 ac_cv_c_bigendian=no
10868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10872 if test $ac_cv_c_bigendian = unknown; then
10873 # Compile a test program.
10874 if test "$cross_compiling" = yes; then :
10875 # Try to guess by grepping values from an object file.
10876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10877 /* end confdefs.h. */
10878 short int ascii_mm[] =
10879 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10880 short int ascii_ii[] =
10881 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10882 int use_ascii (int i) {
10883 return ascii_mm[i] + ascii_ii[i];
10885 short int ebcdic_ii[] =
10886 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10887 short int ebcdic_mm[] =
10888 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10889 int use_ebcdic (int i) {
10890 return ebcdic_mm[i] + ebcdic_ii[i];
10897 return use_ascii (foo) == use_ebcdic (foo);
10902 if ac_fn_c_try_compile "$LINENO"; then :
10903 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10904 ac_cv_c_bigendian=yes
10906 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10907 if test "$ac_cv_c_bigendian" = unknown; then
10908 ac_cv_c_bigendian=no
10910 # finding both strings is unlikely to happen, but who knows?
10911 ac_cv_c_bigendian=unknown
10915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10918 /* end confdefs.h. */
10919 $ac_includes_default
10924 /* Are we little or big endian? From Harbison&Steele. */
10928 char c[sizeof (long int)];
10931 return u.c[sizeof (long int) - 1] == 1;
10937 if ac_fn_c_try_run "$LINENO"; then :
10938 ac_cv_c_bigendian=no
10940 ac_cv_c_bigendian=yes
10942 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10943 conftest.$ac_objext conftest.beam conftest.$ac_ext
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10949 $as_echo "$ac_cv_c_bigendian" >&6; }
10950 case $ac_cv_c_bigendian in #(
10952 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10958 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10962 as_fn_error $? "unknown endianness
10963 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
10967 $as_echo_n "checking for inline... " >&6; }
10968 if ${ac_cv_c_inline+:} false; then :
10969 $as_echo_n "(cached) " >&6
10972 for ac_kw in inline __inline__ __inline; do
10973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10974 /* end confdefs.h. */
10975 #ifndef __cplusplus
10977 static $ac_kw foo_t static_foo () {return 0; }
10978 $ac_kw foo_t foo () {return 0; }
10982 if ac_fn_c_try_compile "$LINENO"; then :
10983 ac_cv_c_inline=$ac_kw
10985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10986 test "$ac_cv_c_inline" != no && break
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
10991 $as_echo "$ac_cv_c_inline" >&6; }
10993 case $ac_cv_c_inline in
10996 case $ac_cv_c_inline in
10998 *) ac_val=$ac_cv_c_inline;;
11000 cat >>confdefs.h <<_ACEOF
11001 #ifndef __cplusplus
11002 #define inline $ac_val
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf format archetype" >&5
11009 $as_echo_n "checking for printf format archetype... " >&6; }
11010 if ${pgac_cv_printf_archetype+:} false; then :
11011 $as_echo_n "(cached) " >&6
11013 ac_save_c_werror_flag=$ac_c_werror_flag
11014 ac_c_werror_flag=yes
11015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11016 /* end confdefs.h. */
11018 pgac_write(int ignore, const char *fmt,...)
11019 __attribute__((format(gnu_printf, 2, 3)));
11028 if ac_fn_c_try_compile "$LINENO"; then :
11029 pgac_cv_printf_archetype=gnu_printf
11031 pgac_cv_printf_archetype=printf
11033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11034 ac_c_werror_flag=$ac_save_c_werror_flag
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_printf_archetype" >&5
11037 $as_echo "$pgac_cv_printf_archetype" >&6; }
11039 cat >>confdefs.h <<_ACEOF
11040 #define PG_PRINTF_ATTRIBUTE $pgac_cv_printf_archetype
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
11046 $as_echo_n "checking for flexible array members... " >&6; }
11047 if ${ac_cv_c_flexmember+:} false; then :
11048 $as_echo_n "(cached) " >&6
11050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11051 /* end confdefs.h. */
11052 #include <stdlib.h>
11054 #include <stddef.h>
11055 struct s { int n; double d[]; };
11059 int m = getchar ();
11060 struct s *p = malloc (offsetof (struct s, d)
11061 + m * sizeof (double));
11063 return p->d != (double *) NULL;
11068 if ac_fn_c_try_compile "$LINENO"; then :
11069 ac_cv_c_flexmember=yes
11071 ac_cv_c_flexmember=no
11073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
11076 $as_echo "$ac_cv_c_flexmember" >&6; }
11077 if test $ac_cv_c_flexmember = yes; then
11079 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
11082 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed types" >&5
11087 $as_echo_n "checking for signed types... " >&6; }
11088 if ${pgac_cv_c_signed+:} false; then :
11089 $as_echo_n "(cached) " >&6
11091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11092 /* end confdefs.h. */
11097 signed char c; signed short s; signed int i;
11102 if ac_fn_c_try_compile "$LINENO"; then :
11103 pgac_cv_c_signed=yes
11105 pgac_cv_c_signed=no
11107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_c_signed" >&5
11110 $as_echo "$pgac_cv_c_signed" >&6; }
11111 if test x"$pgac_cv_c_signed" = xno ; then
11113 $as_echo "#define signed /**/" >>confdefs.h
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __func__" >&5
11117 $as_echo_n "checking for __func__... " >&6; }
11118 if ${pgac_cv_funcname_func_support+:} false; then :
11119 $as_echo_n "(cached) " >&6
11121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11122 /* end confdefs.h. */
11127 printf("%s\n", __func__);
11132 if ac_fn_c_try_compile "$LINENO"; then :
11133 pgac_cv_funcname_func_support=yes
11135 pgac_cv_funcname_func_support=no
11137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_funcname_func_support" >&5
11140 $as_echo "$pgac_cv_funcname_func_support" >&6; }
11141 if test x"$pgac_cv_funcname_func_support" = xyes ; then
11143 $as_echo "#define HAVE_FUNCNAME__FUNC 1" >>confdefs.h
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __FUNCTION__" >&5
11147 $as_echo_n "checking for __FUNCTION__... " >&6; }
11148 if ${pgac_cv_funcname_function_support+:} false; then :
11149 $as_echo_n "(cached) " >&6
11151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11152 /* end confdefs.h. */
11157 printf("%s\n", __FUNCTION__);
11162 if ac_fn_c_try_compile "$LINENO"; then :
11163 pgac_cv_funcname_function_support=yes
11165 pgac_cv_funcname_function_support=no
11167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_funcname_function_support" >&5
11170 $as_echo "$pgac_cv_funcname_function_support" >&6; }
11171 if test x"$pgac_cv_funcname_function_support" = xyes ; then
11173 $as_echo "#define HAVE_FUNCNAME__FUNCTION 1" >>confdefs.h
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Static_assert" >&5
11178 $as_echo_n "checking for _Static_assert... " >&6; }
11179 if ${pgac_cv__static_assert+:} false; then :
11180 $as_echo_n "(cached) " >&6
11182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11183 /* end confdefs.h. */
11188 ({ _Static_assert(1, "foo"); })
11193 if ac_fn_c_try_link "$LINENO"; then :
11194 pgac_cv__static_assert=yes
11196 pgac_cv__static_assert=no
11198 rm -f core conftest.err conftest.$ac_objext \
11199 conftest$ac_exeext conftest.$ac_ext
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__static_assert" >&5
11202 $as_echo "$pgac_cv__static_assert" >&6; }
11203 if test x"$pgac_cv__static_assert" = xyes ; then
11205 $as_echo "#define HAVE__STATIC_ASSERT 1" >>confdefs.h
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_types_compatible_p" >&5
11209 $as_echo_n "checking for __builtin_types_compatible_p... " >&6; }
11210 if ${pgac_cv__types_compatible+:} false; then :
11211 $as_echo_n "(cached) " >&6
11213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11214 /* end confdefs.h. */
11219 int x; static int y[__builtin_types_compatible_p(__typeof__(x), int)];
11224 if ac_fn_c_try_compile "$LINENO"; then :
11225 pgac_cv__types_compatible=yes
11227 pgac_cv__types_compatible=no
11229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__types_compatible" >&5
11232 $as_echo "$pgac_cv__types_compatible" >&6; }
11233 if test x"$pgac_cv__types_compatible" = xyes ; then
11235 $as_echo "#define HAVE__BUILTIN_TYPES_COMPATIBLE_P 1" >>confdefs.h
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap32" >&5
11239 $as_echo_n "checking for __builtin_bswap32... " >&6; }
11240 if ${pgac_cv__builtin_bswap32+:} false; then :
11241 $as_echo_n "(cached) " >&6
11243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11244 /* end confdefs.h. */
11245 static unsigned long int x = __builtin_bswap32(0xaabbccdd);
11248 if ac_fn_c_try_compile "$LINENO"; then :
11249 pgac_cv__builtin_bswap32=yes
11251 pgac_cv__builtin_bswap32=no
11253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_bswap32" >&5
11256 $as_echo "$pgac_cv__builtin_bswap32" >&6; }
11257 if test x"$pgac_cv__builtin_bswap32" = xyes ; then
11259 $as_echo "#define HAVE__BUILTIN_BSWAP32 1" >>confdefs.h
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap64" >&5
11263 $as_echo_n "checking for __builtin_bswap64... " >&6; }
11264 if ${pgac_cv__builtin_bswap64+:} false; then :
11265 $as_echo_n "(cached) " >&6
11267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11268 /* end confdefs.h. */
11269 static unsigned long int x = __builtin_bswap64(0xaabbccddeeff0011);
11272 if ac_fn_c_try_compile "$LINENO"; then :
11273 pgac_cv__builtin_bswap64=yes
11275 pgac_cv__builtin_bswap64=no
11277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_bswap64" >&5
11280 $as_echo "$pgac_cv__builtin_bswap64" >&6; }
11281 if test x"$pgac_cv__builtin_bswap64" = xyes ; then
11283 $as_echo "#define HAVE__BUILTIN_BSWAP64 1" >>confdefs.h
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_constant_p" >&5
11287 $as_echo_n "checking for __builtin_constant_p... " >&6; }
11288 if ${pgac_cv__builtin_constant_p+:} false; then :
11289 $as_echo_n "(cached) " >&6
11291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11292 /* end confdefs.h. */
11293 static int x; static int y[__builtin_constant_p(x) ? x : 1];
11296 if ac_fn_c_try_compile "$LINENO"; then :
11297 pgac_cv__builtin_constant_p=yes
11299 pgac_cv__builtin_constant_p=no
11301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_constant_p" >&5
11304 $as_echo "$pgac_cv__builtin_constant_p" >&6; }
11305 if test x"$pgac_cv__builtin_constant_p" = xyes ; then
11307 $as_echo "#define HAVE__BUILTIN_CONSTANT_P 1" >>confdefs.h
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unreachable" >&5
11311 $as_echo_n "checking for __builtin_unreachable... " >&6; }
11312 if ${pgac_cv__builtin_unreachable+:} false; then :
11313 $as_echo_n "(cached) " >&6
11315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11316 /* end confdefs.h. */
11321 __builtin_unreachable();
11326 if ac_fn_c_try_link "$LINENO"; then :
11327 pgac_cv__builtin_unreachable=yes
11329 pgac_cv__builtin_unreachable=no
11331 rm -f core conftest.err conftest.$ac_objext \
11332 conftest$ac_exeext conftest.$ac_ext
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_unreachable" >&5
11335 $as_echo "$pgac_cv__builtin_unreachable" >&6; }
11336 if test x"$pgac_cv__builtin_unreachable" = xyes ; then
11338 $as_echo "#define HAVE__BUILTIN_UNREACHABLE 1" >>confdefs.h
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __VA_ARGS__" >&5
11342 $as_echo_n "checking for __VA_ARGS__... " >&6; }
11343 if ${pgac_cv__va_args+:} false; then :
11344 $as_echo_n "(cached) " >&6
11346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11347 /* end confdefs.h. */
11352 #define debug(...) fprintf(stderr, __VA_ARGS__)
11353 debug("%s", "blarg");
11359 if ac_fn_c_try_compile "$LINENO"; then :
11360 pgac_cv__va_args=yes
11362 pgac_cv__va_args=no
11364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__va_args" >&5
11367 $as_echo "$pgac_cv__va_args" >&6; }
11368 if test x"$pgac_cv__va_args" = xyes ; then
11370 $as_echo "#define HAVE__VA_ARGS 1" >>confdefs.h
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
11374 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
11375 if ${ac_cv_struct_tm+:} false; then :
11376 $as_echo_n "(cached) " >&6
11378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11379 /* end confdefs.h. */
11380 #include <sys/types.h>
11387 int *p = &tm.tm_sec;
11393 if ac_fn_c_try_compile "$LINENO"; then :
11394 ac_cv_struct_tm=time.h
11396 ac_cv_struct_tm=sys/time.h
11398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
11401 $as_echo "$ac_cv_struct_tm" >&6; }
11402 if test $ac_cv_struct_tm = sys/time.h; then
11404 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
11408 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
11409 #include <$ac_cv_struct_tm>
11412 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
11414 cat >>confdefs.h <<_ACEOF
11415 #define HAVE_STRUCT_TM_TM_ZONE 1
11421 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11423 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
11427 $as_echo_n "checking for tzname... " >&6; }
11428 if ${ac_cv_var_tzname+:} false; then :
11429 $as_echo_n "(cached) " >&6
11431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11432 /* end confdefs.h. */
11434 #ifndef tzname /* For SGI. */
11435 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
11446 if ac_fn_c_try_link "$LINENO"; then :
11447 ac_cv_var_tzname=yes
11449 ac_cv_var_tzname=no
11451 rm -f core conftest.err conftest.$ac_objext \
11452 conftest$ac_exeext conftest.$ac_ext
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
11455 $as_echo "$ac_cv_var_tzname" >&6; }
11456 if test $ac_cv_var_tzname = yes; then
11458 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
11462 ac_fn_c_check_type "$LINENO" "union semun" "ac_cv_type_union_semun" "#include <sys/types.h>
11463 #include <sys/ipc.h>
11464 #include <sys/sem.h>
11466 if test "x$ac_cv_type_union_semun" = xyes; then :
11468 cat >>confdefs.h <<_ACEOF
11469 #define HAVE_UNION_SEMUN 1
11475 ac_fn_c_check_type "$LINENO" "struct sockaddr_un" "ac_cv_type_struct_sockaddr_un" "#include <sys/types.h>
11476 #ifdef HAVE_SYS_UN_H
11477 #include <sys/un.h>
11481 if test "x$ac_cv_type_struct_sockaddr_un" = xyes; then :
11483 $as_echo "#define HAVE_UNIX_SOCKETS 1" >>confdefs.h
11487 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
11488 #ifdef HAVE_SYS_SOCKET_H
11489 #include <sys/socket.h>
11493 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
11495 cat >>confdefs.h <<_ACEOF
11496 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
11502 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
11503 #ifdef HAVE_SYS_SOCKET_H
11504 #include <sys/socket.h>
11508 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
11510 cat >>confdefs.h <<_ACEOF
11511 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
11516 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "#include <sys/types.h>
11517 #ifdef HAVE_SYS_SOCKET_H
11518 #include <sys/socket.h>
11522 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then :
11524 cat >>confdefs.h <<_ACEOF
11525 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
11530 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_len" "ac_cv_member_struct_sockaddr_storage_ss_len" "#include <sys/types.h>
11531 #ifdef HAVE_SYS_SOCKET_H
11532 #include <sys/socket.h>
11536 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = xyes; then :
11538 cat >>confdefs.h <<_ACEOF
11539 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
11544 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_len" "ac_cv_member_struct_sockaddr_storage___ss_len" "#include <sys/types.h>
11545 #ifdef HAVE_SYS_SOCKET_H
11546 #include <sys/socket.h>
11550 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = xyes; then :
11552 cat >>confdefs.h <<_ACEOF
11553 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
11558 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
11559 #ifdef HAVE_SYS_SOCKET_H
11560 #include <sys/socket.h>
11564 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
11566 cat >>confdefs.h <<_ACEOF
11567 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
11573 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
11574 #include <sys/socket.h>
11578 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
11580 cat >>confdefs.h <<_ACEOF
11581 #define HAVE_STRUCT_ADDRINFO 1
11588 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
11589 if test "x$ac_cv_type_intptr_t" = xyes; then :
11591 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
11594 for ac_type in 'int' 'long int' 'long long int'; do
11595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11596 /* end confdefs.h. */
11597 $ac_includes_default
11601 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
11602 test_array [0] = 0;
11603 return test_array [0];
11609 if ac_fn_c_try_compile "$LINENO"; then :
11611 cat >>confdefs.h <<_ACEOF
11612 #define intptr_t $ac_type
11617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11618 test -z "$ac_type" && break
11624 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
11625 if test "x$ac_cv_type_uintptr_t" = xyes; then :
11627 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
11630 for ac_type in 'unsigned int' 'unsigned long int' \
11631 'unsigned long long int'; do
11632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11633 /* end confdefs.h. */
11634 $ac_includes_default
11638 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
11639 test_array [0] = 0;
11640 return test_array [0];
11646 if ac_fn_c_try_compile "$LINENO"; then :
11648 cat >>confdefs.h <<_ACEOF
11649 #define uintptr_t $ac_type
11654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11655 test -z "$ac_type" && break
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
11662 $as_echo_n "checking for unsigned long long int... " >&6; }
11663 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
11664 $as_echo_n "(cached) " >&6
11666 ac_cv_type_unsigned_long_long_int=yes
11667 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
11668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11669 /* end confdefs.h. */
11671 /* For now, do not test the preprocessor; as of 2007 there are too many
11672 implementations with broken preprocessors. Perhaps this can
11673 be revisited in 2012. In the meantime, code should not expect
11674 #if to work with literals wider than 32 bits. */
11675 /* Test literals. */
11676 long long int ll = 9223372036854775807ll;
11677 long long int nll = -9223372036854775807LL;
11678 unsigned long long int ull = 18446744073709551615ULL;
11679 /* Test constant expressions. */
11680 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
11682 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
11688 /* Test availability of runtime routines for shift and division. */
11689 long long int llmax = 9223372036854775807ll;
11690 unsigned long long int ullmax = 18446744073709551615ull;
11691 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
11692 | (llmax / ll) | (llmax % ll)
11693 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
11694 | (ullmax / ull) | (ullmax % ull));
11700 if ac_fn_c_try_link "$LINENO"; then :
11703 ac_cv_type_unsigned_long_long_int=no
11705 rm -f core conftest.err conftest.$ac_objext \
11706 conftest$ac_exeext conftest.$ac_ext
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
11710 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
11711 if test $ac_cv_type_unsigned_long_long_int = yes; then
11713 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
11720 $as_echo_n "checking for long long int... " >&6; }
11721 if ${ac_cv_type_long_long_int+:} false; then :
11722 $as_echo_n "(cached) " >&6
11724 ac_cv_type_long_long_int=yes
11725 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
11726 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
11727 if test $ac_cv_type_long_long_int = yes; then
11728 if test "$cross_compiling" = yes; then :
11731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11732 /* end confdefs.h. */
11733 #include <limits.h>
11736 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
11737 # define LLONG_MAX (HALF - 1 + HALF)
11742 long long int n = 1;
11746 long long int m = n << i;
11749 if (LLONG_MAX / 2 < m)
11757 if ac_fn_c_try_run "$LINENO"; then :
11760 ac_cv_type_long_long_int=no
11762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11763 conftest.$ac_objext conftest.beam conftest.$ac_ext
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
11770 $as_echo "$ac_cv_type_long_long_int" >&6; }
11771 if test $ac_cv_type_long_long_int = yes; then
11773 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale_t" >&5
11779 $as_echo_n "checking for locale_t... " >&6; }
11780 if ${pgac_cv_type_locale_t+:} false; then :
11781 $as_echo_n "(cached) " >&6
11783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11784 /* end confdefs.h. */
11785 #include <locale.h>
11795 if ac_fn_c_try_compile "$LINENO"; then :
11796 pgac_cv_type_locale_t=yes
11798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11799 /* end confdefs.h. */
11800 #include <xlocale.h>
11810 if ac_fn_c_try_compile "$LINENO"; then :
11811 pgac_cv_type_locale_t='yes (in xlocale.h)'
11813 pgac_cv_type_locale_t=no
11815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_locale_t" >&5
11820 $as_echo "$pgac_cv_type_locale_t" >&6; }
11821 if test "$pgac_cv_type_locale_t" != no; then
11823 $as_echo "#define HAVE_LOCALE_T 1" >>confdefs.h
11826 if test "$pgac_cv_type_locale_t" = 'yes (in xlocale.h)'; then
11828 $as_echo "#define LOCALE_T_IN_XLOCALE 1" >>confdefs.h
11832 ac_fn_c_check_type "$LINENO" "struct cmsgcred" "ac_cv_type_struct_cmsgcred" "#include <sys/socket.h>
11833 #include <sys/param.h>
11834 #ifdef HAVE_SYS_UCRED_H
11835 #include <sys/ucred.h>
11838 if test "x$ac_cv_type_struct_cmsgcred" = xyes; then :
11840 cat >>confdefs.h <<_ACEOF
11841 #define HAVE_STRUCT_CMSGCRED 1
11848 ac_fn_c_check_type "$LINENO" "struct option" "ac_cv_type_struct_option" "#ifdef HAVE_GETOPT_H
11849 #include <getopt.h>
11852 if test "x$ac_cv_type_struct_option" = xyes; then :
11854 cat >>confdefs.h <<_ACEOF
11855 #define HAVE_STRUCT_OPTION 1
11862 if test "$with_zlib" = yes; then
11863 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
11864 # did not). While we could work around the lack of z_streamp, it
11865 # seems unwise to encourage people to use such old zlib versions...
11866 ac_fn_c_check_type "$LINENO" "z_streamp" "ac_cv_type_z_streamp" "#include <zlib.h>
11868 if test "x$ac_cv_type_z_streamp" = xyes; then :
11871 as_fn_error $? "zlib version is too old
11872 Use --without-zlib to disable zlib support." "$LINENO" 5
11877 # On PPC, check if assembler supports LWARX instruction's mutex hint bit
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports lwarx hint bit" >&5
11881 $as_echo_n "checking whether assembler supports lwarx hint bit... " >&6; }
11882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11883 /* end confdefs.h. */
11888 int a = 0; int *p = &a; int r;
11889 __asm__ __volatile__ (" lwarx %0,0,%1,1\n" : "=&r"(r) : "r"(p));
11894 if ac_fn_c_try_compile "$LINENO"; then :
11895 pgac_cv_have_ppc_mutex_hint=yes
11897 pgac_cv_have_ppc_mutex_hint=no
11899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_have_ppc_mutex_hint" >&5
11901 $as_echo "$pgac_cv_have_ppc_mutex_hint" >&6; }
11902 if test x"$pgac_cv_have_ppc_mutex_hint" = xyes ; then
11904 $as_echo "#define HAVE_PPC_LWARX_MUTEX_HINT 1" >>confdefs.h
11910 # Check largefile support. You might think this is a system service not a
11911 # compiler characteristic, but you'd be wrong. We must check this before
11912 # probing existence of related functions such as fseeko, since the largefile
11913 # defines can affect what is generated for that.
11914 if test "$PORTNAME" != "win32"; then
11915 # Check whether --enable-largefile was given.
11916 if test "${enable_largefile+set}" = set; then :
11917 enableval=$enable_largefile;
11920 if test "$enable_largefile" != no; then
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11923 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11924 if ${ac_cv_sys_largefile_CC+:} false; then :
11925 $as_echo_n "(cached) " >&6
11927 ac_cv_sys_largefile_CC=no
11928 if test "$GCC" != yes; then
11931 # IRIX 6.2 and later do not support large files by default,
11932 # so use the C compiler's -n32 option if that helps.
11933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11934 /* end confdefs.h. */
11935 #include <sys/types.h>
11936 /* Check that off_t can represent 2**63 - 1 correctly.
11937 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11938 since some C++ compilers masquerading as C compilers
11939 incorrectly reject 9223372036854775807. */
11940 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11941 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11942 && LARGE_OFF_T % 2147483647 == 1)
11952 if ac_fn_c_try_compile "$LINENO"; then :
11955 rm -f core conftest.err conftest.$ac_objext
11957 if ac_fn_c_try_compile "$LINENO"; then :
11958 ac_cv_sys_largefile_CC=' -n32'; break
11960 rm -f core conftest.err conftest.$ac_objext
11964 rm -f conftest.$ac_ext
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11968 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11969 if test "$ac_cv_sys_largefile_CC" != no; then
11970 CC=$CC$ac_cv_sys_largefile_CC
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11974 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11975 if ${ac_cv_sys_file_offset_bits+:} false; then :
11976 $as_echo_n "(cached) " >&6
11979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11980 /* end confdefs.h. */
11981 #include <sys/types.h>
11982 /* Check that off_t can represent 2**63 - 1 correctly.
11983 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11984 since some C++ compilers masquerading as C compilers
11985 incorrectly reject 9223372036854775807. */
11986 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11987 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11988 && LARGE_OFF_T % 2147483647 == 1)
11998 if ac_fn_c_try_compile "$LINENO"; then :
11999 ac_cv_sys_file_offset_bits=no; break
12001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12003 /* end confdefs.h. */
12004 #define _FILE_OFFSET_BITS 64
12005 #include <sys/types.h>
12006 /* Check that off_t can represent 2**63 - 1 correctly.
12007 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12008 since some C++ compilers masquerading as C compilers
12009 incorrectly reject 9223372036854775807. */
12010 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12011 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12012 && LARGE_OFF_T % 2147483647 == 1)
12022 if ac_fn_c_try_compile "$LINENO"; then :
12023 ac_cv_sys_file_offset_bits=64; break
12025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12026 ac_cv_sys_file_offset_bits=unknown
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12031 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12032 case $ac_cv_sys_file_offset_bits in #(
12035 cat >>confdefs.h <<_ACEOF
12036 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12041 if test $ac_cv_sys_file_offset_bits = unknown; then
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12043 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12044 if ${ac_cv_sys_large_files+:} false; then :
12045 $as_echo_n "(cached) " >&6
12048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12049 /* end confdefs.h. */
12050 #include <sys/types.h>
12051 /* Check that off_t can represent 2**63 - 1 correctly.
12052 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12053 since some C++ compilers masquerading as C compilers
12054 incorrectly reject 9223372036854775807. */
12055 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12056 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12057 && LARGE_OFF_T % 2147483647 == 1)
12067 if ac_fn_c_try_compile "$LINENO"; then :
12068 ac_cv_sys_large_files=no; break
12070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12072 /* end confdefs.h. */
12073 #define _LARGE_FILES 1
12074 #include <sys/types.h>
12075 /* Check that off_t can represent 2**63 - 1 correctly.
12076 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12077 since some C++ compilers masquerading as C compilers
12078 incorrectly reject 9223372036854775807. */
12079 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12080 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12081 && LARGE_OFF_T % 2147483647 == 1)
12091 if ac_fn_c_try_compile "$LINENO"; then :
12092 ac_cv_sys_large_files=1; break
12094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12095 ac_cv_sys_large_files=unknown
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12100 $as_echo "$ac_cv_sys_large_files" >&6; }
12101 case $ac_cv_sys_large_files in #(
12104 cat >>confdefs.h <<_ACEOF
12105 #define _LARGE_FILES $ac_cv_sys_large_files
12118 # Check for largefile support (must be after AC_SYS_LARGEFILE)
12119 # The cast to long int works around a bug in the HP C Compiler
12120 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12121 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12122 # This bug is HP SR number 8606223364.
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12124 $as_echo_n "checking size of off_t... " >&6; }
12125 if ${ac_cv_sizeof_off_t+:} false; then :
12126 $as_echo_n "(cached) " >&6
12128 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
12131 if test "$ac_cv_type_off_t" = yes; then
12132 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12133 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12134 as_fn_error 77 "cannot compute sizeof (off_t)
12135 See \`config.log' for more details" "$LINENO" 5; }
12137 ac_cv_sizeof_off_t=0
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12143 $as_echo "$ac_cv_sizeof_off_t" >&6; }
12147 cat >>confdefs.h <<_ACEOF
12148 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12153 # If we don't have largefile support, can't handle segsize >= 2GB.
12154 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
12155 as_fn_error $? "Large file support is not enabled. Segment size cannot be larger than 1GB." "$LINENO" 5
12160 ## Functions, global variables
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int timezone" >&5
12164 $as_echo_n "checking for int timezone... " >&6; }
12165 if ${pgac_cv_var_int_timezone+:} false; then :
12166 $as_echo_n "(cached) " >&6
12168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12169 /* end confdefs.h. */
12176 res = timezone / 60;
12178 res = _timezone / 60;
12184 if ac_fn_c_try_link "$LINENO"; then :
12185 pgac_cv_var_int_timezone=yes
12187 pgac_cv_var_int_timezone=no
12189 rm -f core conftest.err conftest.$ac_objext \
12190 conftest$ac_exeext conftest.$ac_ext
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_timezone" >&5
12193 $as_echo "$pgac_cv_var_int_timezone" >&6; }
12194 if test x"$pgac_cv_var_int_timezone" = xyes ; then
12196 $as_echo "#define HAVE_INT_TIMEZONE 1" >>confdefs.h
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for accept()" >&5
12200 $as_echo_n "checking types of arguments for accept()... " >&6; }
12201 if ${ac_cv_func_accept_return+:} false; then :
12202 $as_echo_n "(cached) " >&6
12204 if ${ac_cv_func_accept_arg1+:} false; then :
12205 $as_echo_n "(cached) " >&6
12207 if ${ac_cv_func_accept_arg2+:} false; then :
12208 $as_echo_n "(cached) " >&6
12210 if ${ac_cv_func_accept_arg3+:} false; then :
12211 $as_echo_n "(cached) " >&6
12213 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL' 'SOCKET WSAAPI'; do
12214 for ac_cv_func_accept_arg1 in 'int' 'unsigned int' 'SOCKET'; do
12215 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
12216 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
12217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12218 /* end confdefs.h. */
12219 #ifdef HAVE_SYS_TYPES_H
12220 #include <sys/types.h>
12222 #ifdef HAVE_SYS_SOCKET_H
12223 #include <sys/socket.h>
12225 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
12227 if ac_fn_c_try_compile "$LINENO"; then :
12228 ac_not_found=no; break 4
12232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12237 if test "$ac_not_found" = yes; then
12238 as_fn_error $? "could not determine argument types" "$LINENO" 5
12240 if test "$ac_cv_func_accept_arg3" = "void"; then
12241 ac_cv_func_accept_arg3=int
12251 { $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
12252 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
12254 cat >>confdefs.h <<_ACEOF
12255 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
12259 cat >>confdefs.h <<_ACEOF
12260 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
12264 cat >>confdefs.h <<_ACEOF
12265 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
12269 cat >>confdefs.h <<_ACEOF
12270 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday takes only one argument" >&5
12275 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
12276 if ${pgac_cv_func_gettimeofday_1arg+:} false; then :
12277 $as_echo_n "(cached) " >&6
12279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12280 /* end confdefs.h. */
12281 #include <sys/time.h>
12285 struct timeval *tp;
12286 struct timezone *tzp;
12287 gettimeofday(tp,tzp);
12292 if ac_fn_c_try_compile "$LINENO"; then :
12293 pgac_cv_func_gettimeofday_1arg=no
12295 pgac_cv_func_gettimeofday_1arg=yes
12297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_gettimeofday_1arg" >&5
12300 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
12301 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
12303 $as_echo "#define GETTIMEOFDAY_1ARG 1" >>confdefs.h
12308 # Some versions of libedit contain strlcpy(), setproctitle(), and other
12309 # symbols that that library has no business exposing to the world. Pending
12310 # acquisition of a clue by those developers, ignore libedit (including its
12311 # possible alias of libreadline) while checking for everything else.
12312 LIBS_including_readline="$LIBS"
12313 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
12315 for ac_func in cbrt dlopen fdatasync getifaddrs getpeerucred getrlimit mbstowcs_l memmove poll pstat pthread_is_threaded_np readlink setproctitle setsid shm_open symlink sync_file_range towlower utime utimes wcstombs wcstombs_l
12317 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12318 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12319 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12320 cat >>confdefs.h <<_ACEOF
12321 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12328 ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
12329 if test "x$ac_cv_func_fseeko" = xyes; then :
12330 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
12333 case " $LIBOBJS " in
12334 *" fseeko.$ac_objext "* ) ;;
12335 *) LIBOBJS="$LIBOBJS fseeko.$ac_objext"
12343 # NetBSD uses a custom fseeko/ftello built on fsetpos/fgetpos
12344 # Mingw uses macros to access Win32 API calls
12347 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
12349 ac_cv_func_fseeko=yes;;
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12352 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
12353 if ${ac_cv_sys_largefile_source+:} false; then :
12354 $as_echo_n "(cached) " >&6
12357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12358 /* end confdefs.h. */
12359 #include <sys/types.h> /* for off_t */
12364 int (*fp) (FILE *, off_t, int) = fseeko;
12365 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12370 if ac_fn_c_try_link "$LINENO"; then :
12371 ac_cv_sys_largefile_source=no; break
12373 rm -f core conftest.err conftest.$ac_objext \
12374 conftest$ac_exeext conftest.$ac_ext
12375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12376 /* end confdefs.h. */
12377 #define _LARGEFILE_SOURCE 1
12378 #include <sys/types.h> /* for off_t */
12383 int (*fp) (FILE *, off_t, int) = fseeko;
12384 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12389 if ac_fn_c_try_link "$LINENO"; then :
12390 ac_cv_sys_largefile_source=1; break
12392 rm -f core conftest.err conftest.$ac_objext \
12393 conftest$ac_exeext conftest.$ac_ext
12394 ac_cv_sys_largefile_source=unknown
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
12399 $as_echo "$ac_cv_sys_largefile_source" >&6; }
12400 case $ac_cv_sys_largefile_source in #(
12403 cat >>confdefs.h <<_ACEOF
12404 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12410 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12411 # in glibc 2.1.3, but that breaks too many other things.
12412 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12413 if test $ac_cv_sys_largefile_source != unknown; then
12415 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
12421 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
12422 # by calling it, 2009-04-02
12423 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
12424 if test "$PORTNAME" != "solaris"; then
12425 for ac_func in posix_fadvise
12427 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
12428 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
12429 cat >>confdefs.h <<_ACEOF
12430 #define HAVE_POSIX_FADVISE 1
12436 ac_fn_c_check_decl "$LINENO" "posix_fadvise" "ac_cv_have_decl_posix_fadvise" "#include <fcntl.h>
12438 if test "x$ac_cv_have_decl_posix_fadvise" = xyes; then :
12444 cat >>confdefs.h <<_ACEOF
12445 #define HAVE_DECL_POSIX_FADVISE $ac_have_decl
12450 ac_fn_c_check_decl "$LINENO" "fdatasync" "ac_cv_have_decl_fdatasync" "#include <unistd.h>
12452 if test "x$ac_cv_have_decl_fdatasync" = xyes; then :
12458 cat >>confdefs.h <<_ACEOF
12459 #define HAVE_DECL_FDATASYNC $ac_have_decl
12462 ac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default"
12463 if test "x$ac_cv_have_decl_strlcat" = xyes; then :
12469 cat >>confdefs.h <<_ACEOF
12470 #define HAVE_DECL_STRLCAT $ac_have_decl
12472 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default"
12473 if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
12479 cat >>confdefs.h <<_ACEOF
12480 #define HAVE_DECL_STRLCPY $ac_have_decl
12483 # This is probably only present on Darwin, but may as well check always
12484 ac_fn_c_check_decl "$LINENO" "F_FULLFSYNC" "ac_cv_have_decl_F_FULLFSYNC" "#include <fcntl.h>
12486 if test "x$ac_cv_have_decl_F_FULLFSYNC" = xyes; then :
12492 cat >>confdefs.h <<_ACEOF
12493 #define HAVE_DECL_F_FULLFSYNC $ac_have_decl
12498 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "$ac_includes_default
12499 #include <netinet/in.h>
12501 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
12503 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PS_STRINGS" >&5
12511 $as_echo_n "checking for PS_STRINGS... " >&6; }
12512 if ${pgac_cv_var_PS_STRINGS+:} false; then :
12513 $as_echo_n "(cached) " >&6
12515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12516 /* end confdefs.h. */
12517 #include <machine/vmparam.h>
12518 #include <sys/exec.h>
12523 PS_STRINGS->ps_nargvstr = 1;
12524 PS_STRINGS->ps_argvstr = "foo";
12529 if ac_fn_c_try_link "$LINENO"; then :
12530 pgac_cv_var_PS_STRINGS=yes
12532 pgac_cv_var_PS_STRINGS=no
12534 rm -f core conftest.err conftest.$ac_objext \
12535 conftest$ac_exeext conftest.$ac_ext
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_PS_STRINGS" >&5
12538 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
12539 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
12541 $as_echo "#define HAVE_PS_STRINGS 1" >>confdefs.h
12546 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
12547 # is missing. Yes, there are machines that have only one. We may
12548 # also decide to use snprintf.c if snprintf() is present but does not
12549 # have all the features we need --- see below.
12551 if test "$PORTNAME" = "win32"; then
12552 # Win32 gets snprintf.c built unconditionally.
12554 # To properly translate all NLS languages strings, we must support the
12555 # *printf() %$ format, which allows *printf() arguments to be selected
12556 # by position in the translated string.
12558 # libintl versions < 0.13 use the native *printf() functions, and Win32
12559 # *printf() doesn't understand %$, so we must use our /port versions,
12560 # which do understand %$. libintl versions >= 0.13 include their own
12561 # *printf versions on Win32. The libintl 0.13 release note text is:
12563 # C format strings with positions, as they arise when a translator
12564 # needs to reorder a sentence, are now supported on all platforms.
12565 # On those few platforms (NetBSD and Woe32) for which the native
12566 # printf()/fprintf()/... functions don't support such format
12567 # strings, replacements are provided through <libintl.h>.
12569 # We could use libintl >= 0.13's *printf() if we were sure that we had
12570 # a litint >= 0.13 at runtime, but seeing that there is no clean way
12571 # to guarantee that, it is best to just use our own, so we are sure to
12572 # get %$ support. In include/port.h we disable the *printf() macros
12573 # that might have been defined by libintl.
12575 # We do this unconditionally whether NLS is used or not so we are sure
12576 # that all Win32 libraries and binaries behave the same.
12577 pgac_need_repl_snprintf=yes
12579 pgac_need_repl_snprintf=no
12580 for ac_func in snprintf
12582 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
12583 if test "x$ac_cv_func_snprintf" = xyes; then :
12584 cat >>confdefs.h <<_ACEOF
12585 #define HAVE_SNPRINTF 1
12589 pgac_need_repl_snprintf=yes
12593 for ac_func in vsnprintf
12595 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
12596 if test "x$ac_cv_func_vsnprintf" = xyes; then :
12597 cat >>confdefs.h <<_ACEOF
12598 #define HAVE_VSNPRINTF 1
12602 pgac_need_repl_snprintf=yes
12609 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
12610 # include/c.h will provide declarations. Note this is a separate test
12611 # from whether the functions exist in the C library --- there are
12612 # systems that have the functions but don't bother to declare them :-(
12614 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12615 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
12621 cat >>confdefs.h <<_ACEOF
12622 #define HAVE_DECL_SNPRINTF $ac_have_decl
12624 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
12625 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
12631 cat >>confdefs.h <<_ACEOF
12632 #define HAVE_DECL_VSNPRINTF $ac_have_decl
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
12638 $as_echo_n "checking for isinf... " >&6; }
12639 if ${ac_cv_func_isinf+:} false; then :
12640 $as_echo_n "(cached) " >&6
12642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12643 /* end confdefs.h. */
12646 double glob_double;
12651 return isinf(glob_double) ? 0 : 1;
12656 if ac_fn_c_try_link "$LINENO"; then :
12657 ac_cv_func_isinf=yes
12659 ac_cv_func_isinf=no
12661 rm -f core conftest.err conftest.$ac_objext \
12662 conftest$ac_exeext conftest.$ac_ext
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_isinf" >&5
12665 $as_echo "$ac_cv_func_isinf" >&6; }
12667 if test $ac_cv_func_isinf = yes ; then
12669 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
12672 case " $LIBOBJS " in
12673 *" isinf.$ac_objext "* ) ;;
12674 *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
12678 # Look for a way to implement a substitute for isinf()
12679 for ac_func in fpclass fp_class fp_class_d class
12681 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12682 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12683 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12684 cat >>confdefs.h <<_ACEOF
12685 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12693 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
12694 if test "x$ac_cv_func_crypt" = xyes; then :
12695 $as_echo "#define HAVE_CRYPT 1" >>confdefs.h
12698 case " $LIBOBJS " in
12699 *" crypt.$ac_objext "* ) ;;
12700 *) LIBOBJS="$LIBOBJS crypt.$ac_objext"
12706 ac_fn_c_check_func "$LINENO" "fls" "ac_cv_func_fls"
12707 if test "x$ac_cv_func_fls" = xyes; then :
12708 $as_echo "#define HAVE_FLS 1" >>confdefs.h
12711 case " $LIBOBJS " in
12712 *" fls.$ac_objext "* ) ;;
12713 *) LIBOBJS="$LIBOBJS fls.$ac_objext"
12719 ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
12720 if test "x$ac_cv_func_getopt" = xyes; then :
12721 $as_echo "#define HAVE_GETOPT 1" >>confdefs.h
12724 case " $LIBOBJS " in
12725 *" getopt.$ac_objext "* ) ;;
12726 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
12732 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
12733 if test "x$ac_cv_func_getrusage" = xyes; then :
12734 $as_echo "#define HAVE_GETRUSAGE 1" >>confdefs.h
12737 case " $LIBOBJS " in
12738 *" getrusage.$ac_objext "* ) ;;
12739 *) LIBOBJS="$LIBOBJS getrusage.$ac_objext"
12745 ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
12746 if test "x$ac_cv_func_inet_aton" = xyes; then :
12747 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
12750 case " $LIBOBJS " in
12751 *" inet_aton.$ac_objext "* ) ;;
12752 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
12758 ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
12759 if test "x$ac_cv_func_mkdtemp" = xyes; then :
12760 $as_echo "#define HAVE_MKDTEMP 1" >>confdefs.h
12763 case " $LIBOBJS " in
12764 *" mkdtemp.$ac_objext "* ) ;;
12765 *) LIBOBJS="$LIBOBJS mkdtemp.$ac_objext"
12771 ac_fn_c_check_func "$LINENO" "random" "ac_cv_func_random"
12772 if test "x$ac_cv_func_random" = xyes; then :
12773 $as_echo "#define HAVE_RANDOM 1" >>confdefs.h
12776 case " $LIBOBJS " in
12777 *" random.$ac_objext "* ) ;;
12778 *) LIBOBJS="$LIBOBJS random.$ac_objext"
12784 ac_fn_c_check_func "$LINENO" "rint" "ac_cv_func_rint"
12785 if test "x$ac_cv_func_rint" = xyes; then :
12786 $as_echo "#define HAVE_RINT 1" >>confdefs.h
12789 case " $LIBOBJS " in
12790 *" rint.$ac_objext "* ) ;;
12791 *) LIBOBJS="$LIBOBJS rint.$ac_objext"
12797 ac_fn_c_check_func "$LINENO" "srandom" "ac_cv_func_srandom"
12798 if test "x$ac_cv_func_srandom" = xyes; then :
12799 $as_echo "#define HAVE_SRANDOM 1" >>confdefs.h
12802 case " $LIBOBJS " in
12803 *" srandom.$ac_objext "* ) ;;
12804 *) LIBOBJS="$LIBOBJS srandom.$ac_objext"
12810 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
12811 if test "x$ac_cv_func_strerror" = xyes; then :
12812 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
12815 case " $LIBOBJS " in
12816 *" strerror.$ac_objext "* ) ;;
12817 *) LIBOBJS="$LIBOBJS strerror.$ac_objext"
12823 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
12824 if test "x$ac_cv_func_strlcat" = xyes; then :
12825 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
12828 case " $LIBOBJS " in
12829 *" strlcat.$ac_objext "* ) ;;
12830 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
12836 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
12837 if test "x$ac_cv_func_strlcpy" = xyes; then :
12838 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
12841 case " $LIBOBJS " in
12842 *" strlcpy.$ac_objext "* ) ;;
12843 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
12853 # Windows uses a specialised env handler
12854 # and doesn't need a replacement getpeereid because it doesn't use
12858 $as_echo "#define HAVE_UNSETENV 1" >>confdefs.h
12861 $as_echo "#define HAVE_GETPEEREID 1" >>confdefs.h
12863 ac_cv_func_unsetenv=yes
12864 ac_cv_func_getpeereid=yes;;
12866 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
12867 if test "x$ac_cv_func_unsetenv" = xyes; then :
12868 $as_echo "#define HAVE_UNSETENV 1" >>confdefs.h
12871 case " $LIBOBJS " in
12872 *" unsetenv.$ac_objext "* ) ;;
12873 *) LIBOBJS="$LIBOBJS unsetenv.$ac_objext"
12879 ac_fn_c_check_func "$LINENO" "getpeereid" "ac_cv_func_getpeereid"
12880 if test "x$ac_cv_func_getpeereid" = xyes; then :
12881 $as_echo "#define HAVE_GETPEEREID 1" >>confdefs.h
12884 case " $LIBOBJS " in
12885 *" getpeereid.$ac_objext "* ) ;;
12886 *) LIBOBJS="$LIBOBJS getpeereid.$ac_objext"
12896 # System's version of getaddrinfo(), if any, may be used only if we found
12897 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
12898 # We use only our own getaddrinfo.c on Windows, but it's time to revisit that.
12899 if test x"$ac_cv_type_struct_addrinfo" = xyes && \
12900 test "$PORTNAME" != "win32"; then
12901 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
12902 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
12903 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
12906 case " $LIBOBJS " in
12907 *" getaddrinfo.$ac_objext "* ) ;;
12908 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
12916 case " $LIBOBJS " in
12917 *" getaddrinfo.$ac_objext "* ) ;;
12918 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
12924 # Similarly, use system's getopt_long() only if system provides struct option.
12925 if test x"$ac_cv_type_struct_option" = xyes ; then
12926 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
12927 if test "x$ac_cv_func_getopt_long" = xyes; then :
12928 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
12931 case " $LIBOBJS " in
12932 *" getopt_long.$ac_objext "* ) ;;
12933 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
12941 case " $LIBOBJS " in
12942 *" getopt_long.$ac_objext "* ) ;;
12943 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
12949 # Solaris' getopt() doesn't do what we want for long options, so always use
12950 # our version on that platform.
12951 if test "$PORTNAME" = "solaris"; then
12952 case " $LIBOBJS " in
12953 *" getopt.$ac_objext "* ) ;;
12954 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
12960 # mingw has adopted a GNU-centric interpretation of optind/optreset,
12961 # so always use our version on Windows.
12962 if test "$PORTNAME" = "win32"; then
12963 case " $LIBOBJS " in
12964 *" getopt.$ac_objext "* ) ;;
12965 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
12969 case " $LIBOBJS " in
12970 *" getopt_long.$ac_objext "* ) ;;
12971 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
12977 # Win32 (really MinGW) support
12978 if test "$PORTNAME" = "win32"; then
12979 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
12980 if test "x$ac_cv_func_gettimeofday" = xyes; then :
12981 $as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
12984 case " $LIBOBJS " in
12985 *" gettimeofday.$ac_objext "* ) ;;
12986 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
12993 case " $LIBOBJS " in
12994 *" dirmod.$ac_objext "* ) ;;
12995 *) LIBOBJS="$LIBOBJS dirmod.$ac_objext"
12999 case " $LIBOBJS " in
13000 *" kill.$ac_objext "* ) ;;
13001 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
13005 case " $LIBOBJS " in
13006 *" open.$ac_objext "* ) ;;
13007 *) LIBOBJS="$LIBOBJS open.$ac_objext"
13011 case " $LIBOBJS " in
13012 *" system.$ac_objext "* ) ;;
13013 *) LIBOBJS="$LIBOBJS system.$ac_objext"
13017 case " $LIBOBJS " in
13018 *" win32env.$ac_objext "* ) ;;
13019 *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
13023 case " $LIBOBJS " in
13024 *" win32error.$ac_objext "* ) ;;
13025 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
13029 case " $LIBOBJS " in
13030 *" win32setlocale.$ac_objext "* ) ;;
13031 *) LIBOBJS="$LIBOBJS win32setlocale.$ac_objext"
13036 $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h
13038 ac_fn_c_check_type "$LINENO" "MINIDUMP_TYPE" "ac_cv_type_MINIDUMP_TYPE" "
13039 #define WIN32_LEAN_AND_MEAN
13040 #include <windows.h>
13041 #include <string.h>
13042 #include <dbghelp.h>
13044 if test "x$ac_cv_type_MINIDUMP_TYPE" = xyes; then :
13046 cat >>confdefs.h <<_ACEOF
13047 #define HAVE_MINIDUMP_TYPE 1
13050 pgac_minidump_type=yes
13052 pgac_minidump_type=no
13056 if test x"$pgac_minidump_type" = x"yes" ; then
13057 have_win32_dbghelp=yes
13060 have_win32_dbghelp=no
13064 # Cygwin needs only a bit of that
13065 if test "$PORTNAME" = "cygwin"; then
13066 case " $LIBOBJS " in
13067 *" dirmod.$ac_objext "* ) ;;
13068 *) LIBOBJS="$LIBOBJS dirmod.$ac_objext"
13074 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
13075 /* NetBSD declares sys_siglist in unistd.h. */
13076 #ifdef HAVE_UNISTD_H
13077 # include <unistd.h>
13081 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
13087 cat >>confdefs.h <<_ACEOF
13088 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
13092 ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
13093 if test "x$ac_cv_func_syslog" = xyes; then :
13094 ac_fn_c_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
13095 if test "x$ac_cv_header_syslog_h" = xyes; then :
13097 $as_echo "#define HAVE_SYSLOG 1" >>confdefs.h
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opterr" >&5
13106 $as_echo_n "checking for opterr... " >&6; }
13107 if ${pgac_cv_var_int_opterr+:} false; then :
13108 $as_echo_n "(cached) " >&6
13110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13111 /* end confdefs.h. */
13112 #include <unistd.h>
13116 extern int opterr; opterr = 1;
13121 if ac_fn_c_try_link "$LINENO"; then :
13122 pgac_cv_var_int_opterr=yes
13124 pgac_cv_var_int_opterr=no
13126 rm -f core conftest.err conftest.$ac_objext \
13127 conftest$ac_exeext conftest.$ac_ext
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_opterr" >&5
13130 $as_echo "$pgac_cv_var_int_opterr" >&6; }
13131 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
13133 $as_echo "#define HAVE_INT_OPTERR 1" >>confdefs.h
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
13138 $as_echo_n "checking for optreset... " >&6; }
13139 if ${pgac_cv_var_int_optreset+:} false; then :
13140 $as_echo_n "(cached) " >&6
13142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13143 /* end confdefs.h. */
13144 #include <unistd.h>
13148 extern int optreset; optreset = 1;
13153 if ac_fn_c_try_link "$LINENO"; then :
13154 pgac_cv_var_int_optreset=yes
13156 pgac_cv_var_int_optreset=no
13158 rm -f core conftest.err conftest.$ac_objext \
13159 conftest$ac_exeext conftest.$ac_ext
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_optreset" >&5
13162 $as_echo "$pgac_cv_var_int_optreset" >&6; }
13163 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
13165 $as_echo "#define HAVE_INT_OPTRESET 1" >>confdefs.h
13169 for ac_func in strtoll strtoq
13171 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13172 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13173 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13174 cat >>confdefs.h <<_ACEOF
13175 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13181 for ac_func in strtoull strtouq
13183 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13184 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13185 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13186 cat >>confdefs.h <<_ACEOF
13187 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13194 # Lastly, restore full LIBS list and check for readline/libedit symbols
13195 LIBS="$LIBS_including_readline"
13197 if test "$with_readline" = yes; then
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_append_character" >&5
13199 $as_echo_n "checking for rl_completion_append_character... " >&6; }
13200 if ${pgac_cv_var_rl_completion_append_character+:} false; then :
13201 $as_echo_n "(cached) " >&6
13203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13204 /* end confdefs.h. */
13206 #ifdef HAVE_READLINE_READLINE_H
13207 # include <readline/readline.h>
13208 #elif defined(HAVE_READLINE_H)
13209 # include <readline.h>
13215 rl_completion_append_character = 'x';
13220 if ac_fn_c_try_link "$LINENO"; then :
13221 pgac_cv_var_rl_completion_append_character=yes
13223 pgac_cv_var_rl_completion_append_character=no
13225 rm -f core conftest.err conftest.$ac_objext \
13226 conftest$ac_exeext conftest.$ac_ext
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_rl_completion_append_character" >&5
13229 $as_echo "$pgac_cv_var_rl_completion_append_character" >&6; }
13230 if test x"$pgac_cv_var_rl_completion_append_character" = x"yes"; then
13232 $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h
13235 for ac_func in rl_completion_matches rl_filename_completion_function
13237 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13238 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13239 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13240 cat >>confdefs.h <<_ACEOF
13241 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13247 for ac_func in append_history history_truncate_file
13249 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13250 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13251 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13252 cat >>confdefs.h <<_ACEOF
13253 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13262 # This test makes sure that run tests work at all. Sometimes a shared
13263 # library is found by the linker, but the runtime linker can't find it.
13264 # This check should come after all modifications of compiler or linker
13265 # variables, and before any other run tests.
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking test program" >&5
13267 $as_echo_n "checking test program... " >&6; }
13268 if test "$cross_compiling" = yes; then :
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
13270 $as_echo "cross-compiling" >&6; }
13272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13273 /* end confdefs.h. */
13274 int main() { return 0; }
13276 if ac_fn_c_try_run "$LINENO"; then :
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13278 $as_echo "ok" >&6; }
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13281 $as_echo "failed" >&6; }
13283 Could not execute a simple test program. This may be a problem
13284 related to locating shared libraries. Check the file 'config.log'
13285 for the exact reason." "$LINENO" 5
13287 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13288 conftest.$ac_objext conftest.beam conftest.$ac_ext
13292 # --------------------
13293 # Run tests below here
13294 # --------------------
13296 # Force use of our snprintf if system's doesn't do arg control
13297 # See comment above at snprintf test for details.
13298 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf supports argument control" >&5
13300 $as_echo_n "checking whether snprintf supports argument control... " >&6; }
13301 if ${pgac_cv_snprintf_arg_control+:} false; then :
13302 $as_echo_n "(cached) " >&6
13304 if test "$cross_compiling" = yes; then :
13305 pgac_cv_snprintf_arg_control=cross
13307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13308 /* end confdefs.h. */
13310 #include <string.h>
13316 /* can it swap arguments? */
13317 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
13318 if (strcmp(buf, "4 3") != 0)
13323 if ac_fn_c_try_run "$LINENO"; then :
13324 pgac_cv_snprintf_arg_control=yes
13326 pgac_cv_snprintf_arg_control=no
13328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13329 conftest.$ac_objext conftest.beam conftest.$ac_ext
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_snprintf_arg_control" >&5
13335 $as_echo "$pgac_cv_snprintf_arg_control" >&6; }
13337 if test $pgac_cv_snprintf_arg_control != yes ; then
13338 pgac_need_repl_snprintf=yes
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long int is 64 bits" >&5
13346 $as_echo_n "checking whether long int is 64 bits... " >&6; }
13347 if ${pgac_cv_type_long_int_64+:} false; then :
13348 $as_echo_n "(cached) " >&6
13350 if test "$cross_compiling" = yes; then :
13351 # If cross-compiling, check the size reported by the compiler and
13352 # trust that the arithmetic works.
13353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13354 /* end confdefs.h. */
13359 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
13360 test_array [0] = 0;
13361 return test_array [0];
13367 if ac_fn_c_try_compile "$LINENO"; then :
13368 pgac_cv_type_long_int_64=yes
13370 pgac_cv_type_long_int_64=no
13372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13375 /* end confdefs.h. */
13376 typedef long int ac_int64;
13379 * These are globals to discourage the compiler from folding all the
13380 * arithmetic tests down to compile-time constants.
13382 ac_int64 a = 20000001;
13383 ac_int64 b = 40000005;
13385 int does_int64_work()
13389 if (sizeof(ac_int64) != 8)
13390 return 0; /* definitely not the right size */
13392 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13400 exit(! does_int64_work());
13403 if ac_fn_c_try_run "$LINENO"; then :
13404 pgac_cv_type_long_int_64=yes
13406 pgac_cv_type_long_int_64=no
13408 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13409 conftest.$ac_objext conftest.beam conftest.$ac_ext
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_long_int_64" >&5
13414 $as_echo "$pgac_cv_type_long_int_64" >&6; }
13416 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
13417 if test x"$pgac_cv_type_long_int_64" = xyes ; then
13419 $as_echo "#define HAVE_LONG_INT_64 1" >>confdefs.h
13424 if test x"$HAVE_LONG_INT_64" = x"yes" ; then
13425 pg_int64_type="long int"
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long long int is 64 bits" >&5
13428 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
13429 if ${pgac_cv_type_long_long_int_64+:} false; then :
13430 $as_echo_n "(cached) " >&6
13432 if test "$cross_compiling" = yes; then :
13433 # If cross-compiling, check the size reported by the compiler and
13434 # trust that the arithmetic works.
13435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13436 /* end confdefs.h. */
13441 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
13442 test_array [0] = 0;
13443 return test_array [0];
13449 if ac_fn_c_try_compile "$LINENO"; then :
13450 pgac_cv_type_long_long_int_64=yes
13452 pgac_cv_type_long_long_int_64=no
13454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13457 /* end confdefs.h. */
13458 typedef long long int ac_int64;
13461 * These are globals to discourage the compiler from folding all the
13462 * arithmetic tests down to compile-time constants.
13464 ac_int64 a = 20000001;
13465 ac_int64 b = 40000005;
13467 int does_int64_work()
13471 if (sizeof(ac_int64) != 8)
13472 return 0; /* definitely not the right size */
13474 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13482 exit(! does_int64_work());
13485 if ac_fn_c_try_run "$LINENO"; then :
13486 pgac_cv_type_long_long_int_64=yes
13488 pgac_cv_type_long_long_int_64=no
13490 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13491 conftest.$ac_objext conftest.beam conftest.$ac_ext
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_long_long_int_64" >&5
13496 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
13498 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
13499 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
13501 $as_echo "#define HAVE_LONG_LONG_INT_64 1" >>confdefs.h
13505 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
13506 pg_int64_type="long long int"
13508 as_fn_error $? "Cannot find a working 64-bit integer type." "$LINENO" 5
13513 cat >>confdefs.h <<_ACEOF
13514 #define PG_INT64_TYPE $pg_int64_type
13519 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
13520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13521 /* end confdefs.h. */
13523 #define INT64CONST(x) x##LL
13524 long long int foo = INT64CONST(0x1234567890123456);
13527 if ac_fn_c_try_compile "$LINENO"; then :
13529 $as_echo "#define HAVE_LL_CONSTANTS 1" >>confdefs.h
13532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13536 # If we found "long int" is 64 bits, assume snprintf handles it. If
13537 # we found we need to use "long long int", better check. We cope with
13538 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
13539 # work, fall back to our own snprintf emulation (which we know uses %lld).
13541 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
13542 if test $pgac_need_repl_snprintf = no; then
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking snprintf length modifier for long long int" >&5
13544 $as_echo_n "checking snprintf length modifier for long long int... " >&6; }
13545 if ${pgac_cv_snprintf_long_long_int_modifier+:} false; then :
13546 $as_echo_n "(cached) " >&6
13548 for pgac_modifier in 'll' 'q' 'I64'; do
13549 if test "$cross_compiling" = yes; then :
13550 pgac_cv_snprintf_long_long_int_modifier=cross; break
13552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13553 /* end confdefs.h. */
13555 typedef long long int ac_int64;
13556 #define INT64_FORMAT "%${pgac_modifier}d"
13558 ac_int64 a = 20000001;
13559 ac_int64 b = 40000005;
13561 int does_int64_snprintf_work()
13566 if (sizeof(ac_int64) != 8)
13567 return 0; /* doesn't look like the right size */
13570 snprintf(buf, 100, INT64_FORMAT, c);
13571 if (strcmp(buf, "800000140000005") != 0)
13572 return 0; /* either multiply or snprintf is busted */
13576 exit(! does_int64_snprintf_work());
13579 if ac_fn_c_try_run "$LINENO"; then :
13580 pgac_cv_snprintf_long_long_int_modifier=$pgac_modifier; break
13582 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13583 conftest.$ac_objext conftest.beam conftest.$ac_ext
13589 LONG_LONG_INT_MODIFIER=''
13591 case $pgac_cv_snprintf_long_long_int_modifier in
13592 cross) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test (not on host machine)" >&5
13593 $as_echo "cannot test (not on host machine)" >&6; };;
13594 ?*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_snprintf_long_long_int_modifier" >&5
13595 $as_echo "$pgac_cv_snprintf_long_long_int_modifier" >&6; }
13596 LONG_LONG_INT_MODIFIER=$pgac_cv_snprintf_long_long_int_modifier;;
13597 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13598 $as_echo "none" >&6; };;
13600 if test "$LONG_LONG_INT_MODIFIER" = ""; then
13601 # Force usage of our own snprintf, since system snprintf is broken
13602 pgac_need_repl_snprintf=yes
13603 LONG_LONG_INT_MODIFIER='ll'
13606 # Here if we previously decided we needed to use our own snprintf
13607 LONG_LONG_INT_MODIFIER='ll'
13610 # Here if we are not using 'long long int' at all
13611 LONG_LONG_INT_MODIFIER='l'
13614 INT64_MODIFIER="\"$LONG_LONG_INT_MODIFIER\""
13617 cat >>confdefs.h <<_ACEOF
13618 #define INT64_MODIFIER $INT64_MODIFIER
13622 # Also force use of our snprintf if the system's doesn't support the %z flag.
13623 if test "$pgac_need_repl_snprintf" = no; then
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf supports the %z modifier" >&5
13625 $as_echo_n "checking whether snprintf supports the %z modifier... " >&6; }
13626 if ${pgac_cv_snprintf_size_t_support+:} false; then :
13627 $as_echo_n "(cached) " >&6
13629 if test "$cross_compiling" = yes; then :
13630 pgac_cv_snprintf_size_t_support=cross
13632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13633 /* end confdefs.h. */
13635 #include <string.h>
13643 * Print the largest unsigned number fitting in a size_t using both %zu
13644 * and the previously-determined format for 64-bit integers. Note that
13645 * we don't run this code unless we know snprintf handles 64-bit ints.
13647 bufz[0] = '\0'; /* in case snprintf fails to emit anything */
13648 snprintf(bufz, sizeof(bufz), "%zu", ~((size_t) 0));
13649 snprintf(buf64, sizeof(buf64), "%" INT64_MODIFIER "u",
13650 (unsigned PG_INT64_TYPE) ~((size_t) 0));
13651 if (strcmp(bufz, buf64) != 0)
13656 if ac_fn_c_try_run "$LINENO"; then :
13657 pgac_cv_snprintf_size_t_support=yes
13659 pgac_cv_snprintf_size_t_support=no
13661 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13662 conftest.$ac_objext conftest.beam conftest.$ac_ext
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_snprintf_size_t_support" >&5
13668 $as_echo "$pgac_cv_snprintf_size_t_support" >&6; }
13670 if test "$pgac_cv_snprintf_size_t_support" != yes; then
13671 pgac_need_repl_snprintf=yes
13675 # Now we have checked all the reasons to replace snprintf
13676 if test $pgac_need_repl_snprintf = yes; then
13678 $as_echo "#define USE_REPL_SNPRINTF 1" >>confdefs.h
13680 case " $LIBOBJS " in
13681 *" snprintf.$ac_objext "* ) ;;
13682 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
13688 # Check size of void *, size_t (enables tweaks for > 32bit address space)
13689 # The cast to long int works around a bug in the HP C Compiler
13690 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13691 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13692 # This bug is HP SR number 8606223364.
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
13694 $as_echo_n "checking size of void *... " >&6; }
13695 if ${ac_cv_sizeof_void_p+:} false; then :
13696 $as_echo_n "(cached) " >&6
13698 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
13701 if test "$ac_cv_type_void_p" = yes; then
13702 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13704 as_fn_error 77 "cannot compute sizeof (void *)
13705 See \`config.log' for more details" "$LINENO" 5; }
13707 ac_cv_sizeof_void_p=0
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13713 $as_echo "$ac_cv_sizeof_void_p" >&6; }
13717 cat >>confdefs.h <<_ACEOF
13718 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13722 # The cast to long int works around a bug in the HP C Compiler
13723 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13724 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13725 # This bug is HP SR number 8606223364.
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
13727 $as_echo_n "checking size of size_t... " >&6; }
13728 if ${ac_cv_sizeof_size_t+:} false; then :
13729 $as_echo_n "(cached) " >&6
13731 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
13734 if test "$ac_cv_type_size_t" = yes; then
13735 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13736 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13737 as_fn_error 77 "cannot compute sizeof (size_t)
13738 See \`config.log' for more details" "$LINENO" 5; }
13740 ac_cv_sizeof_size_t=0
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
13746 $as_echo "$ac_cv_sizeof_size_t" >&6; }
13750 cat >>confdefs.h <<_ACEOF
13751 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
13755 # The cast to long int works around a bug in the HP C Compiler
13756 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13757 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13758 # This bug is HP SR number 8606223364.
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13760 $as_echo_n "checking size of long... " >&6; }
13761 if ${ac_cv_sizeof_long+:} false; then :
13762 $as_echo_n "(cached) " >&6
13764 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13767 if test "$ac_cv_type_long" = yes; then
13768 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13769 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13770 as_fn_error 77 "cannot compute sizeof (long)
13771 See \`config.log' for more details" "$LINENO" 5; }
13773 ac_cv_sizeof_long=0
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13779 $as_echo "$ac_cv_sizeof_long" >&6; }
13783 cat >>confdefs.h <<_ACEOF
13784 #define SIZEOF_LONG $ac_cv_sizeof_long
13789 # Decide whether float4 is passed by value: user-selectable, enabled by default
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with float4 passed by value" >&5
13791 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
13794 # Check whether --enable-float4-byval was given.
13795 if test "${enable_float4_byval+set}" = set; then :
13796 enableval=$enable_float4_byval;
13800 $as_echo "#define USE_FLOAT4_BYVAL 1" >>confdefs.h
13802 float4passbyval=true
13805 float4passbyval=false
13808 as_fn_error $? "no argument expected for --enable-float4-byval option" "$LINENO" 5
13813 enable_float4_byval=yes
13815 $as_echo "#define USE_FLOAT4_BYVAL 1" >>confdefs.h
13817 float4passbyval=true
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_float4_byval" >&5
13822 $as_echo "$enable_float4_byval" >&6; }
13824 cat >>confdefs.h <<_ACEOF
13825 #define FLOAT4PASSBYVAL $float4passbyval
13829 # Decide whether float8 is passed by value.
13830 # Note: this setting also controls int8 and related types such as timestamp.
13831 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
13832 # If not, trying to select it is an error.
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with float8 passed by value" >&5
13834 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
13835 if test $ac_cv_sizeof_void_p -ge 8 ; then
13838 # Check whether --enable-float8-byval was given.
13839 if test "${enable_float8_byval+set}" = set; then :
13840 enableval=$enable_float8_byval;
13849 as_fn_error $? "no argument expected for --enable-float8-byval option" "$LINENO" 5
13854 enable_float8_byval=yes
13862 # Check whether --enable-float8-byval was given.
13863 if test "${enable_float8_byval+set}" = set; then :
13864 enableval=$enable_float8_byval;
13873 as_fn_error $? "no argument expected for --enable-float8-byval option" "$LINENO" 5
13878 enable_float8_byval=no
13883 if test "$enable_float8_byval" = yes ; then
13884 as_fn_error $? "--enable-float8-byval is not supported on 32-bit platforms." "$LINENO" 5
13887 if test "$enable_float8_byval" = yes ; then
13889 $as_echo "#define USE_FLOAT8_BYVAL 1" >>confdefs.h
13891 float8passbyval=true
13893 float8passbyval=false
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_float8_byval" >&5
13896 $as_echo "$enable_float8_byval" >&6; }
13898 cat >>confdefs.h <<_ACEOF
13899 #define FLOAT8PASSBYVAL $float8passbyval
13903 # Determine memory alignment requirements for the basic C data types.
13905 # The cast to long int works around a bug in the HP C Compiler,
13906 # see AC_CHECK_SIZEOF for more information.
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of short" >&5
13908 $as_echo_n "checking alignment of short... " >&6; }
13909 if ${ac_cv_alignof_short+:} false; then :
13910 $as_echo_n "(cached) " >&6
13912 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_short" "$ac_includes_default
13914 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
13916 typedef struct { char x; short y; } ac__type_alignof_;"; then :
13919 if test "$ac_cv_type_short" = yes; then
13920 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13921 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13922 as_fn_error 77 "cannot compute alignment of short
13923 See \`config.log' for more details" "$LINENO" 5; }
13925 ac_cv_alignof_short=0
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_short" >&5
13931 $as_echo "$ac_cv_alignof_short" >&6; }
13935 cat >>confdefs.h <<_ACEOF
13936 #define ALIGNOF_SHORT $ac_cv_alignof_short
13940 # The cast to long int works around a bug in the HP C Compiler,
13941 # see AC_CHECK_SIZEOF for more information.
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int" >&5
13943 $as_echo_n "checking alignment of int... " >&6; }
13944 if ${ac_cv_alignof_int+:} false; then :
13945 $as_echo_n "(cached) " >&6
13947 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_int" "$ac_includes_default
13949 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
13951 typedef struct { char x; int y; } ac__type_alignof_;"; then :
13954 if test "$ac_cv_type_int" = yes; then
13955 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13957 as_fn_error 77 "cannot compute alignment of int
13958 See \`config.log' for more details" "$LINENO" 5; }
13960 ac_cv_alignof_int=0
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_int" >&5
13966 $as_echo "$ac_cv_alignof_int" >&6; }
13970 cat >>confdefs.h <<_ACEOF
13971 #define ALIGNOF_INT $ac_cv_alignof_int
13975 # The cast to long int works around a bug in the HP C Compiler,
13976 # see AC_CHECK_SIZEOF for more information.
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long" >&5
13978 $as_echo_n "checking alignment of long... " >&6; }
13979 if ${ac_cv_alignof_long+:} false; then :
13980 $as_echo_n "(cached) " >&6
13982 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long" "$ac_includes_default
13984 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
13986 typedef struct { char x; long y; } ac__type_alignof_;"; then :
13989 if test "$ac_cv_type_long" = yes; then
13990 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13992 as_fn_error 77 "cannot compute alignment of long
13993 See \`config.log' for more details" "$LINENO" 5; }
13995 ac_cv_alignof_long=0
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long" >&5
14001 $as_echo "$ac_cv_alignof_long" >&6; }
14005 cat >>confdefs.h <<_ACEOF
14006 #define ALIGNOF_LONG $ac_cv_alignof_long
14010 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
14011 # The cast to long int works around a bug in the HP C Compiler,
14012 # see AC_CHECK_SIZEOF for more information.
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long long int" >&5
14014 $as_echo_n "checking alignment of long long int... " >&6; }
14015 if ${ac_cv_alignof_long_long_int+:} false; then :
14016 $as_echo_n "(cached) " >&6
14018 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long_long_int" "$ac_includes_default
14020 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
14022 typedef struct { char x; long long int y; } ac__type_alignof_;"; then :
14025 if test "$ac_cv_type_long_long_int" = yes; then
14026 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14028 as_fn_error 77 "cannot compute alignment of long long int
14029 See \`config.log' for more details" "$LINENO" 5; }
14031 ac_cv_alignof_long_long_int=0
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long_long_int" >&5
14037 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
14041 cat >>confdefs.h <<_ACEOF
14042 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
14047 # The cast to long int works around a bug in the HP C Compiler,
14048 # see AC_CHECK_SIZEOF for more information.
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of double" >&5
14050 $as_echo_n "checking alignment of double... " >&6; }
14051 if ${ac_cv_alignof_double+:} false; then :
14052 $as_echo_n "(cached) " >&6
14054 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_double" "$ac_includes_default
14056 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
14058 typedef struct { char x; double y; } ac__type_alignof_;"; then :
14061 if test "$ac_cv_type_double" = yes; then
14062 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14063 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14064 as_fn_error 77 "cannot compute alignment of double
14065 See \`config.log' for more details" "$LINENO" 5; }
14067 ac_cv_alignof_double=0
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_double" >&5
14073 $as_echo "$ac_cv_alignof_double" >&6; }
14077 cat >>confdefs.h <<_ACEOF
14078 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
14083 # Compute maximum alignment of any basic type.
14084 # We assume long's alignment is at least as strong as char, short, or int;
14085 # but we must check long long (if it exists) and double.
14087 MAX_ALIGNOF=$ac_cv_alignof_long
14088 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
14089 MAX_ALIGNOF=$ac_cv_alignof_double
14091 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
14092 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
14095 cat >>confdefs.h <<_ACEOF
14096 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
14101 # Some platforms predefine the types int8, int16, etc. Only check
14102 # a (hopefully) representative subset.
14103 ac_fn_c_check_type "$LINENO" "int8" "ac_cv_type_int8" "#include <stdio.h>
14105 if test "x$ac_cv_type_int8" = xyes; then :
14107 cat >>confdefs.h <<_ACEOF
14108 #define HAVE_INT8 1
14113 ac_fn_c_check_type "$LINENO" "uint8" "ac_cv_type_uint8" "#include <stdio.h>
14115 if test "x$ac_cv_type_uint8" = xyes; then :
14117 cat >>confdefs.h <<_ACEOF
14118 #define HAVE_UINT8 1
14123 ac_fn_c_check_type "$LINENO" "int64" "ac_cv_type_int64" "#include <stdio.h>
14125 if test "x$ac_cv_type_int64" = xyes; then :
14127 cat >>confdefs.h <<_ACEOF
14128 #define HAVE_INT64 1
14133 ac_fn_c_check_type "$LINENO" "uint64" "ac_cv_type_uint64" "#include <stdio.h>
14135 if test "x$ac_cv_type_uint64" = xyes; then :
14137 cat >>confdefs.h <<_ACEOF
14138 #define HAVE_UINT64 1
14145 # Check for extensions offering the integer scalar type __int128.
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __int128" >&5
14147 $as_echo_n "checking for __int128... " >&6; }
14148 if ${pgac_cv__128bit_int+:} false; then :
14149 $as_echo_n "(cached) " >&6
14151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14152 /* end confdefs.h. */
14155 * These are globals to discourage the compiler from folding all the
14156 * arithmetic tests down to compile-time constants. We do not have
14157 * convenient support for 64bit literals at this point...
14159 __int128 a = 48828125;
14160 __int128 b = 97656255;
14167 a = (a << 12) + 1; /* 200000000001 */
14168 b = (b << 12) + 5; /* 400000000005 */
14169 /* use the most relevant arithmetic ops */
14172 /* return different values, to prevent optimizations */
14181 if ac_fn_c_try_link "$LINENO"; then :
14182 pgac_cv__128bit_int=yes
14184 pgac_cv__128bit_int=no
14186 rm -f core conftest.err conftest.$ac_objext \
14187 conftest$ac_exeext conftest.$ac_ext
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__128bit_int" >&5
14190 $as_echo "$pgac_cv__128bit_int" >&6; }
14191 if test x"$pgac_cv__128bit_int" = xyes ; then
14193 $as_echo "#define PG_INT128_TYPE __int128" >>confdefs.h
14197 # Check for various atomic operations now that we have checked how to declare
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync char locking functions" >&5
14200 $as_echo_n "checking for builtin __sync char locking functions... " >&6; }
14201 if ${pgac_cv_gcc_sync_char_tas+:} false; then :
14202 $as_echo_n "(cached) " >&6
14204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14205 /* end confdefs.h. */
14211 __sync_lock_test_and_set(&lock, 1);
14212 __sync_lock_release(&lock);
14217 if ac_fn_c_try_link "$LINENO"; then :
14218 pgac_cv_gcc_sync_char_tas="yes"
14220 pgac_cv_gcc_sync_char_tas="no"
14222 rm -f core conftest.err conftest.$ac_objext \
14223 conftest$ac_exeext conftest.$ac_ext
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_char_tas" >&5
14226 $as_echo "$pgac_cv_gcc_sync_char_tas" >&6; }
14227 if test x"$pgac_cv_gcc_sync_char_tas" = x"yes"; then
14229 $as_echo "#define HAVE_GCC__SYNC_CHAR_TAS 1" >>confdefs.h
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int32 locking functions" >&5
14233 $as_echo_n "checking for builtin __sync int32 locking functions... " >&6; }
14234 if ${pgac_cv_gcc_sync_int32_tas+:} false; then :
14235 $as_echo_n "(cached) " >&6
14237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14238 /* end confdefs.h. */
14244 __sync_lock_test_and_set(&lock, 1);
14245 __sync_lock_release(&lock);
14250 if ac_fn_c_try_link "$LINENO"; then :
14251 pgac_cv_gcc_sync_int32_tas="yes"
14253 pgac_cv_gcc_sync_int32_tas="no"
14255 rm -f core conftest.err conftest.$ac_objext \
14256 conftest$ac_exeext conftest.$ac_ext
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int32_tas" >&5
14259 $as_echo "$pgac_cv_gcc_sync_int32_tas" >&6; }
14260 if test x"$pgac_cv_gcc_sync_int32_tas" = x"yes"; then
14262 $as_echo "#define HAVE_GCC__SYNC_INT32_TAS 1" >>confdefs.h
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int32 atomic operations" >&5
14266 $as_echo_n "checking for builtin __sync int32 atomic operations... " >&6; }
14267 if ${pgac_cv_gcc_sync_int32_cas+:} false; then :
14268 $as_echo_n "(cached) " >&6
14270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14271 /* end confdefs.h. */
14277 __sync_val_compare_and_swap(&val, 0, 37);
14282 if ac_fn_c_try_link "$LINENO"; then :
14283 pgac_cv_gcc_sync_int32_cas="yes"
14285 pgac_cv_gcc_sync_int32_cas="no"
14287 rm -f core conftest.err conftest.$ac_objext \
14288 conftest$ac_exeext conftest.$ac_ext
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int32_cas" >&5
14291 $as_echo "$pgac_cv_gcc_sync_int32_cas" >&6; }
14292 if test x"$pgac_cv_gcc_sync_int32_cas" = x"yes"; then
14294 $as_echo "#define HAVE_GCC__SYNC_INT32_CAS 1" >>confdefs.h
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int64 atomic operations" >&5
14298 $as_echo_n "checking for builtin __sync int64 atomic operations... " >&6; }
14299 if ${pgac_cv_gcc_sync_int64_cas+:} false; then :
14300 $as_echo_n "(cached) " >&6
14302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14303 /* end confdefs.h. */
14308 PG_INT64_TYPE lock = 0;
14309 __sync_val_compare_and_swap(&lock, 0, (PG_INT64_TYPE) 37);
14314 if ac_fn_c_try_link "$LINENO"; then :
14315 pgac_cv_gcc_sync_int64_cas="yes"
14317 pgac_cv_gcc_sync_int64_cas="no"
14319 rm -f core conftest.err conftest.$ac_objext \
14320 conftest$ac_exeext conftest.$ac_ext
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int64_cas" >&5
14323 $as_echo "$pgac_cv_gcc_sync_int64_cas" >&6; }
14324 if test x"$pgac_cv_gcc_sync_int64_cas" = x"yes"; then
14326 $as_echo "#define HAVE_GCC__SYNC_INT64_CAS 1" >>confdefs.h
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __atomic int32 atomic operations" >&5
14330 $as_echo_n "checking for builtin __atomic int32 atomic operations... " >&6; }
14331 if ${pgac_cv_gcc_atomic_int32_cas+:} false; then :
14332 $as_echo_n "(cached) " >&6
14334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14335 /* end confdefs.h. */
14342 __atomic_compare_exchange_n(&val, &expect, 37, 0, __ATOMIC_SEQ_CST, __ATOMIC_RELAXED);
14347 if ac_fn_c_try_link "$LINENO"; then :
14348 pgac_cv_gcc_atomic_int32_cas="yes"
14350 pgac_cv_gcc_atomic_int32_cas="no"
14352 rm -f core conftest.err conftest.$ac_objext \
14353 conftest$ac_exeext conftest.$ac_ext
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_atomic_int32_cas" >&5
14356 $as_echo "$pgac_cv_gcc_atomic_int32_cas" >&6; }
14357 if test x"$pgac_cv_gcc_atomic_int32_cas" = x"yes"; then
14359 $as_echo "#define HAVE_GCC__ATOMIC_INT32_CAS 1" >>confdefs.h
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __atomic int64 atomic operations" >&5
14363 $as_echo_n "checking for builtin __atomic int64 atomic operations... " >&6; }
14364 if ${pgac_cv_gcc_atomic_int64_cas+:} false; then :
14365 $as_echo_n "(cached) " >&6
14367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14368 /* end confdefs.h. */
14373 PG_INT64_TYPE val = 0;
14374 PG_INT64_TYPE expect = 0;
14375 __atomic_compare_exchange_n(&val, &expect, 37, 0, __ATOMIC_SEQ_CST, __ATOMIC_RELAXED);
14380 if ac_fn_c_try_link "$LINENO"; then :
14381 pgac_cv_gcc_atomic_int64_cas="yes"
14383 pgac_cv_gcc_atomic_int64_cas="no"
14385 rm -f core conftest.err conftest.$ac_objext \
14386 conftest$ac_exeext conftest.$ac_ext
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_atomic_int64_cas" >&5
14389 $as_echo "$pgac_cv_gcc_atomic_int64_cas" >&6; }
14390 if test x"$pgac_cv_gcc_atomic_int64_cas" = x"yes"; then
14392 $as_echo "#define HAVE_GCC__ATOMIC_INT64_CAS 1" >>confdefs.h
14397 # Check for x86 cpuid instruction
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __get_cpuid" >&5
14399 $as_echo_n "checking for __get_cpuid... " >&6; }
14400 if ${pgac_cv__get_cpuid+:} false; then :
14401 $as_echo_n "(cached) " >&6
14403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14404 /* end confdefs.h. */
14409 unsigned int exx[4] = {0, 0, 0, 0};
14410 __get_cpuid(1, &exx[0], &exx[1], &exx[2], &exx[3]);
14416 if ac_fn_c_try_link "$LINENO"; then :
14417 pgac_cv__get_cpuid="yes"
14419 pgac_cv__get_cpuid="no"
14421 rm -f core conftest.err conftest.$ac_objext \
14422 conftest$ac_exeext conftest.$ac_ext
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__get_cpuid" >&5
14425 $as_echo "$pgac_cv__get_cpuid" >&6; }
14426 if test x"$pgac_cv__get_cpuid" = x"yes"; then
14428 $as_echo "#define HAVE__GET_CPUID 1" >>confdefs.h
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __cpuid" >&5
14433 $as_echo_n "checking for __cpuid... " >&6; }
14434 if ${pgac_cv__cpuid+:} false; then :
14435 $as_echo_n "(cached) " >&6
14437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14438 /* end confdefs.h. */
14439 #include <intrin.h>
14443 unsigned int exx[4] = {0, 0, 0, 0};
14444 __get_cpuid(exx[0], 1);
14450 if ac_fn_c_try_link "$LINENO"; then :
14451 pgac_cv__cpuid="yes"
14453 pgac_cv__cpuid="no"
14455 rm -f core conftest.err conftest.$ac_objext \
14456 conftest$ac_exeext conftest.$ac_ext
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__cpuid" >&5
14459 $as_echo "$pgac_cv__cpuid" >&6; }
14460 if test x"$pgac_cv__cpuid" = x"yes"; then
14462 $as_echo "#define HAVE__CPUID 1" >>confdefs.h
14466 # Check for Intel SSE 4.2 intrinsics to do CRC calculations.
14468 # First check if the _mm_crc32_u8 and _mm_crc32_u64 intrinsics can be used
14469 # with the default compiler flags. If not, check if adding the -msse4.2
14470 # flag helps. CFLAGS_SSE42 is set to -msse4.2 if that's required.
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=" >&5
14472 $as_echo_n "checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=... " >&6; }
14473 if ${pgac_cv_sse42_crc32_intrinsics_+:} false; then :
14474 $as_echo_n "(cached) " >&6
14476 pgac_save_CFLAGS=$CFLAGS
14477 CFLAGS="$pgac_save_CFLAGS "
14478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14479 /* end confdefs.h. */
14480 #include <nmmintrin.h>
14484 unsigned int crc = 0;
14485 crc = _mm_crc32_u8(crc, 0);
14486 crc = _mm_crc32_u32(crc, 0);
14487 /* return computed value, to prevent the above being optimized away */
14493 if ac_fn_c_try_link "$LINENO"; then :
14494 pgac_cv_sse42_crc32_intrinsics_=yes
14496 pgac_cv_sse42_crc32_intrinsics_=no
14498 rm -f core conftest.err conftest.$ac_objext \
14499 conftest$ac_exeext conftest.$ac_ext
14500 CFLAGS="$pgac_save_CFLAGS"
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_sse42_crc32_intrinsics_" >&5
14503 $as_echo "$pgac_cv_sse42_crc32_intrinsics_" >&6; }
14504 if test x"$pgac_cv_sse42_crc32_intrinsics_" = x"yes"; then
14506 pgac_sse42_crc32_intrinsics=yes
14509 if test x"$pgac_sse42_crc32_intrinsics" != x"yes"; then
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=-msse4.2" >&5
14511 $as_echo_n "checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=-msse4.2... " >&6; }
14512 if ${pgac_cv_sse42_crc32_intrinsics__msse4_2+:} false; then :
14513 $as_echo_n "(cached) " >&6
14515 pgac_save_CFLAGS=$CFLAGS
14516 CFLAGS="$pgac_save_CFLAGS -msse4.2"
14517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14518 /* end confdefs.h. */
14519 #include <nmmintrin.h>
14523 unsigned int crc = 0;
14524 crc = _mm_crc32_u8(crc, 0);
14525 crc = _mm_crc32_u32(crc, 0);
14526 /* return computed value, to prevent the above being optimized away */
14532 if ac_fn_c_try_link "$LINENO"; then :
14533 pgac_cv_sse42_crc32_intrinsics__msse4_2=yes
14535 pgac_cv_sse42_crc32_intrinsics__msse4_2=no
14537 rm -f core conftest.err conftest.$ac_objext \
14538 conftest$ac_exeext conftest.$ac_ext
14539 CFLAGS="$pgac_save_CFLAGS"
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_sse42_crc32_intrinsics__msse4_2" >&5
14542 $as_echo "$pgac_cv_sse42_crc32_intrinsics__msse4_2" >&6; }
14543 if test x"$pgac_cv_sse42_crc32_intrinsics__msse4_2" = x"yes"; then
14544 CFLAGS_SSE42="-msse4.2"
14545 pgac_sse42_crc32_intrinsics=yes
14551 # Are we targeting a processor that supports SSE 4.2? gcc, clang and icc all
14552 # define __SSE4_2__ in that case.
14553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14554 /* end confdefs.h. */
14561 #error __SSE4_2__ not defined
14568 if ac_fn_c_try_compile "$LINENO"; then :
14571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14573 # Select CRC-32C implementation.
14575 # If we are targeting a processor that has SSE 4.2 instructions, we can use the
14576 # special CRC instructions for calculating CRC-32C. If we're not targeting such
14577 # a processor, but we can nevertheless produce code that uses the SSE
14578 # intrinsics, perhaps with some extra CFLAGS, compile both implementations and
14579 # select which one to use at runtime, depending on whether SSE 4.2 is supported
14580 # by the processor we're running on.
14582 # You can override this logic by setting the appropriate USE_*_CRC32 flag to 1
14583 # in the template or configure command line.
14584 if test x"$USE_SSE42_CRC32C" = x"" && test x"$USE_SSE42_CRC32C_WITH_RUNTIME_CHECK" = x"" && test x"$USE_SLICING_BY_8_CRC32C" = x""; then
14585 if test x"$pgac_sse42_crc32_intrinsics" = x"yes" && test x"$SSE4_2_TARGETED" = x"1" ; then
14588 # the CPUID instruction is needed for the runtime check.
14589 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
14590 USE_SSE42_CRC32C_WITH_RUNTIME_CHECK=1
14592 # fall back to slicing-by-8 algorithm which doesn't require any special
14594 USE_SLICING_BY_8_CRC32C=1
14599 # Set PG_CRC32C_OBJS appropriately depending on the selected implementation.
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which CRC-32C implementation to use" >&5
14601 $as_echo_n "checking which CRC-32C implementation to use... " >&6; }
14602 if test x"$USE_SSE42_CRC32C" = x"1"; then
14604 $as_echo "#define USE_SSE42_CRC32C 1" >>confdefs.h
14606 PG_CRC32C_OBJS="pg_crc32c_sse42.o"
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SSE 4.2" >&5
14608 $as_echo "SSE 4.2" >&6; }
14610 if test x"$USE_SSE42_CRC32C_WITH_RUNTIME_CHECK" = x"1"; then
14612 $as_echo "#define USE_SSE42_CRC32C_WITH_RUNTIME_CHECK 1" >>confdefs.h
14614 PG_CRC32C_OBJS="pg_crc32c_sse42.o pg_crc32c_sb8.o pg_crc32c_choose.o"
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SSE 4.2 with runtime check" >&5
14616 $as_echo "SSE 4.2 with runtime check" >&6; }
14619 $as_echo "#define USE_SLICING_BY_8_CRC32C 1" >>confdefs.h
14621 PG_CRC32C_OBJS="pg_crc32c_sb8.o"
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: slicing-by-8" >&5
14623 $as_echo "slicing-by-8" >&6; }
14629 # Select semaphore implementation type.
14630 if test "$PORTNAME" != "win32"; then
14631 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
14633 $as_echo "#define USE_NAMED_POSIX_SEMAPHORES 1" >>confdefs.h
14635 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
14637 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
14639 $as_echo "#define USE_UNNAMED_POSIX_SEMAPHORES 1" >>confdefs.h
14641 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
14644 $as_echo "#define USE_SYSV_SEMAPHORES 1" >>confdefs.h
14646 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
14651 $as_echo "#define USE_WIN32_SEMAPHORES 1" >>confdefs.h
14653 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
14657 # Select shared-memory implementation type.
14658 if test "$PORTNAME" != "win32"; then
14660 $as_echo "#define USE_SYSV_SHARED_MEMORY 1" >>confdefs.h
14662 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
14665 $as_echo "#define USE_WIN32_SHARED_MEMORY 1" >>confdefs.h
14667 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
14670 # Select latch implementation type.
14671 if test "$PORTNAME" != "win32"; then
14672 LATCH_IMPLEMENTATION="src/backend/port/unix_latch.c"
14674 LATCH_IMPLEMENTATION="src/backend/port/win32_latch.c"
14677 # If not set in template file, set bytes to use libc memset()
14678 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
14679 MEMSET_LOOP_LIMIT=1024
14682 cat >>confdefs.h <<_ACEOF
14683 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
14688 if test "$enable_nls" = yes ; then
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind_textdomain_codeset" >&5
14691 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
14692 if ${ac_cv_search_bind_textdomain_codeset+:} false; then :
14693 $as_echo_n "(cached) " >&6
14695 ac_func_search_save_LIBS=$LIBS
14696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14697 /* end confdefs.h. */
14699 /* Override any GCC internal prototype to avoid an error.
14700 Use char because int might match the return type of a GCC
14701 builtin and then its argument prototype would still apply. */
14705 char bind_textdomain_codeset ();
14709 return bind_textdomain_codeset ();
14714 for ac_lib in '' intl; do
14715 if test -z "$ac_lib"; then
14716 ac_res="none required"
14719 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14721 if ac_fn_c_try_link "$LINENO"; then :
14722 ac_cv_search_bind_textdomain_codeset=$ac_res
14724 rm -f core conftest.err conftest.$ac_objext \
14726 if ${ac_cv_search_bind_textdomain_codeset+:} false; then :
14730 if ${ac_cv_search_bind_textdomain_codeset+:} false; then :
14733 ac_cv_search_bind_textdomain_codeset=no
14735 rm conftest.$ac_ext
14736 LIBS=$ac_func_search_save_LIBS
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind_textdomain_codeset" >&5
14739 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
14740 ac_res=$ac_cv_search_bind_textdomain_codeset
14741 if test "$ac_res" != no; then :
14742 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14745 as_fn_error $? "a gettext implementation is required for NLS" "$LINENO" 5
14748 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
14749 if test "x$ac_cv_header_libintl_h" = xyes; then :
14752 as_fn_error $? "header file <libintl.h> is required for NLS" "$LINENO" 5
14756 for ac_prog in msgfmt
14758 # Extract the first word of "$ac_prog", so it can be a program name with args.
14759 set dummy $ac_prog; ac_word=$2
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14761 $as_echo_n "checking for $ac_word... " >&6; }
14762 if ${ac_cv_prog_MSGFMT+:} false; then :
14763 $as_echo_n "(cached) " >&6
14765 if test -n "$MSGFMT"; then
14766 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
14768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14769 for as_dir in $PATH
14772 test -z "$as_dir" && as_dir=.
14773 for ac_exec_ext in '' $ac_executable_extensions; do
14774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14775 ac_cv_prog_MSGFMT="$ac_prog"
14776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14785 MSGFMT=$ac_cv_prog_MSGFMT
14786 if test -n "$MSGFMT"; then
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
14788 $as_echo "$MSGFMT" >&6; }
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14791 $as_echo "no" >&6; }
14795 test -n "$MSGFMT" && break
14798 if test -z "$MSGFMT"; then
14799 as_fn_error $? "msgfmt is required for NLS" "$LINENO" 5
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msgfmt flags" >&5
14802 $as_echo_n "checking for msgfmt flags... " >&6; }
14803 if ${pgac_cv_msgfmt_flags+:} false; then :
14804 $as_echo_n "(cached) " >&6
14806 if test x"$MSGFMT" != x"" && "$MSGFMT" --version 2>&1 | grep "GNU" >/dev/null; then
14807 pgac_cv_msgfmt_flags=-c
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_msgfmt_flags" >&5
14811 $as_echo "$pgac_cv_msgfmt_flags" >&6; }
14812 MSGFMT_FLAGS=$pgac_cv_msgfmt_flags
14814 for ac_prog in msgmerge
14816 # Extract the first word of "$ac_prog", so it can be a program name with args.
14817 set dummy $ac_prog; ac_word=$2
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14819 $as_echo_n "checking for $ac_word... " >&6; }
14820 if ${ac_cv_prog_MSGMERGE+:} false; then :
14821 $as_echo_n "(cached) " >&6
14823 if test -n "$MSGMERGE"; then
14824 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
14826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14827 for as_dir in $PATH
14830 test -z "$as_dir" && as_dir=.
14831 for ac_exec_ext in '' $ac_executable_extensions; do
14832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14833 ac_cv_prog_MSGMERGE="$ac_prog"
14834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14843 MSGMERGE=$ac_cv_prog_MSGMERGE
14844 if test -n "$MSGMERGE"; then
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
14846 $as_echo "$MSGMERGE" >&6; }
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14849 $as_echo "no" >&6; }
14853 test -n "$MSGMERGE" && break
14856 for ac_prog in xgettext
14858 # Extract the first word of "$ac_prog", so it can be a program name with args.
14859 set dummy $ac_prog; ac_word=$2
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14861 $as_echo_n "checking for $ac_word... " >&6; }
14862 if ${ac_cv_prog_XGETTEXT+:} false; then :
14863 $as_echo_n "(cached) " >&6
14865 if test -n "$XGETTEXT"; then
14866 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
14868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14869 for as_dir in $PATH
14872 test -z "$as_dir" && as_dir=.
14873 for ac_exec_ext in '' $ac_executable_extensions; do
14874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14875 ac_cv_prog_XGETTEXT="$ac_prog"
14876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14885 XGETTEXT=$ac_cv_prog_XGETTEXT
14886 if test -n "$XGETTEXT"; then
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
14888 $as_echo "$XGETTEXT" >&6; }
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14891 $as_echo "no" >&6; }
14895 test -n "$XGETTEXT" && break
14901 # Check for Tcl configuration script tclConfig.sh
14902 if test "$with_tcl" = yes; then
14903 for ac_prog in tclsh tcl tclsh8.6 tclsh86 tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
14905 # Extract the first word of "$ac_prog", so it can be a program name with args.
14906 set dummy $ac_prog; ac_word=$2
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14908 $as_echo_n "checking for $ac_word... " >&6; }
14909 if ${ac_cv_path_TCLSH+:} false; then :
14910 $as_echo_n "(cached) " >&6
14914 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
14917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14918 for as_dir in $PATH
14921 test -z "$as_dir" && as_dir=.
14922 for ac_exec_ext in '' $ac_executable_extensions; do
14923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14924 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
14925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14935 TCLSH=$ac_cv_path_TCLSH
14936 if test -n "$TCLSH"; then
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
14938 $as_echo "$TCLSH" >&6; }
14940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14941 $as_echo "no" >&6; }
14945 test -n "$TCLSH" && break
14948 if test x"$TCLSH" = x""; then
14949 as_fn_error $? "Tcl shell not found" "$LINENO" 5
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclConfig.sh" >&5
14953 $as_echo_n "checking for tclConfig.sh... " >&6; }
14954 # Let user override test
14955 if test -z "$TCL_CONFIG_SH"; then
14956 pgac_test_dirs="$with_tclconfig"
14958 set X $pgac_test_dirs; shift
14959 if test $# -eq 0; then
14960 test -z "$TCLSH" && as_fn_error $? "unable to locate tclConfig.sh because no Tcl shell was found" "$LINENO" 5
14961 set X `echo 'puts $auto_path' | $TCLSH`; shift
14965 if test -r "$pgac_dir/tclConfig.sh"; then
14966 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
14972 if test -z "$TCL_CONFIG_SH"; then
14973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14974 $as_echo "no" >&6; }
14975 as_fn_error $? "file 'tclConfig.sh' is required for Tcl" "$LINENO" 5
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCL_CONFIG_SH" >&5
14978 $as_echo "$TCL_CONFIG_SH" >&6; }
14984 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
14985 eval TCL_LIBS=\"$TCL_LIBS\"
14986 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
14987 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
14989 if test "$TCL_SHARED_BUILD" != 1; then
14990 as_fn_error $? "cannot build PL/Tcl because Tcl is not a shared library
14991 Use --without-tcl to disable building PL/Tcl." "$LINENO" 5
14993 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
14994 ac_save_CPPFLAGS=$CPPFLAGS
14995 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
14996 ac_fn_c_check_header_mongrel "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
14997 if test "x$ac_cv_header_tcl_h" = xyes; then :
15000 as_fn_error $? "header file <tcl.h> is required for Tcl" "$LINENO" 5
15004 CPPFLAGS=$ac_save_CPPFLAGS
15007 # check for <perl.h>
15008 if test "$with_perl" = yes; then
15009 ac_save_CPPFLAGS=$CPPFLAGS
15010 CPPFLAGS="$CPPFLAGS -I$perl_archlibexp/CORE"
15011 ac_fn_c_check_header_compile "$LINENO" "perl.h" "ac_cv_header_perl_h" "#include <EXTERN.h>
15013 if test "x$ac_cv_header_perl_h" = xyes; then :
15016 as_fn_error $? "header file <perl.h> is required for Perl" "$LINENO" 5
15020 # While we're at it, check that we can link to libperl.
15021 # On most platforms, if perl.h is there then libperl.so will be too, but at
15022 # this writing Debian packages them separately. There is no known reason to
15023 # waste cycles on separate probes for the Tcl or Python libraries, though.
15024 pgac_save_LIBS=$LIBS
15025 LIBS="$perl_embed_ldflags"
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libperl" >&5
15027 $as_echo_n "checking for libperl... " >&6; }
15028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15029 /* end confdefs.h. */
15031 #include <EXTERN.h>
15042 if ac_fn_c_try_link "$LINENO"; then :
15043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15044 $as_echo "yes" >&6; }
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15047 $as_echo "no" >&6; }
15048 as_fn_error $? "libperl library is required for Perl" "$LINENO" 5
15050 rm -f core conftest.err conftest.$ac_objext \
15051 conftest$ac_exeext conftest.$ac_ext
15052 LIBS=$pgac_save_LIBS
15053 CPPFLAGS=$ac_save_CPPFLAGS
15056 # check for <Python.h>
15057 if test "$with_python" = yes; then
15058 ac_save_CPPFLAGS=$CPPFLAGS
15059 CPPFLAGS="$python_includespec $CPPFLAGS"
15060 ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
15061 if test "x$ac_cv_header_Python_h" = xyes; then :
15064 as_fn_error $? "header file <Python.h> is required for Python" "$LINENO" 5
15068 CPPFLAGS=$ac_save_CPPFLAGS
15072 # Check for DocBook and tools
15074 for ac_prog in onsgmls nsgmls
15076 # Extract the first word of "$ac_prog", so it can be a program name with args.
15077 set dummy $ac_prog; ac_word=$2
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15079 $as_echo_n "checking for $ac_word... " >&6; }
15080 if ${ac_cv_prog_NSGMLS+:} false; then :
15081 $as_echo_n "(cached) " >&6
15083 if test -n "$NSGMLS"; then
15084 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
15086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15087 for as_dir in $PATH
15090 test -z "$as_dir" && as_dir=.
15091 for ac_exec_ext in '' $ac_executable_extensions; do
15092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15093 ac_cv_prog_NSGMLS="$ac_prog"
15094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15103 NSGMLS=$ac_cv_prog_NSGMLS
15104 if test -n "$NSGMLS"; then
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NSGMLS" >&5
15106 $as_echo "$NSGMLS" >&6; }
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15109 $as_echo "no" >&6; }
15113 test -n "$NSGMLS" && break
15116 for ac_prog in openjade jade
15118 # Extract the first word of "$ac_prog", so it can be a program name with args.
15119 set dummy $ac_prog; ac_word=$2
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15121 $as_echo_n "checking for $ac_word... " >&6; }
15122 if ${ac_cv_prog_JADE+:} false; then :
15123 $as_echo_n "(cached) " >&6
15125 if test -n "$JADE"; then
15126 ac_cv_prog_JADE="$JADE" # Let the user override the test.
15128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15129 for as_dir in $PATH
15132 test -z "$as_dir" && as_dir=.
15133 for ac_exec_ext in '' $ac_executable_extensions; do
15134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15135 ac_cv_prog_JADE="$ac_prog"
15136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15145 JADE=$ac_cv_prog_JADE
15146 if test -n "$JADE"; then
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JADE" >&5
15148 $as_echo "$JADE" >&6; }
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15151 $as_echo "no" >&6; }
15155 test -n "$JADE" && break
15159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DocBook V4.2" >&5
15160 $as_echo_n "checking for DocBook V4.2... " >&6; }
15161 if ${pgac_cv_check_docbook+:} false; then :
15162 $as_echo_n "(cached) " >&6
15164 cat >conftest.sgml <<EOF
15165 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
15167 <title>test</title>
15169 <title>random</title>
15171 <title>testsect</title>
15178 pgac_cv_check_docbook=no
15180 if test -n "$NSGMLS"; then
15181 $NSGMLS -s conftest.sgml 1>&5 2>&1
15182 if test $? -eq 0; then
15183 pgac_cv_check_docbook=yes
15186 rm -f conftest.sgml
15188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_check_docbook" >&5
15189 $as_echo "$pgac_cv_check_docbook" >&6; }
15191 have_docbook=$pgac_cv_check_docbook
15194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DocBook stylesheets" >&5
15195 $as_echo_n "checking for DocBook stylesheets... " >&6; }
15196 if ${pgac_cv_path_stylesheets+:} false; then :
15197 $as_echo_n "(cached) " >&6
15199 if test -n "$DOCBOOKSTYLE"; then
15200 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
15202 for pgac_prefix in /usr /usr/local /opt /sw; do
15203 for pgac_infix in share lib; do
15204 for pgac_postfix in \
15205 sgml/stylesheets/nwalsh-modular \
15206 sgml/stylesheets/docbook \
15207 sgml/stylesheets/dsssl/docbook \
15208 sgml/docbook-dsssl \
15209 sgml/docbook/dsssl/modular \
15210 sgml/docbook/stylesheet/dsssl/modular \
15211 sgml/docbook/dsssl-stylesheets \
15212 sgml/dsssl/docbook-dsssl-nwalsh
15214 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
15215 if test -r "$pgac_candidate/html/docbook.dsl" \
15216 && test -r "$pgac_candidate/print/docbook.dsl"
15218 pgac_cv_path_stylesheets=$pgac_candidate
15227 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
15229 if test -n "$DOCBOOKSTYLE"; then
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOCBOOKSTYLE" >&5
15231 $as_echo "$DOCBOOKSTYLE" >&6; }
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15234 $as_echo "no" >&6; }
15236 if test -n "$DOCBOOKSTYLE" -a -r "$DOCBOOKSTYLE/bin/collateindex.pl"; then
15237 COLLATEINDEX="$DOCBOOKSTYLE/bin/collateindex.pl"
15240 # Extract the first word of "collateindex.pl", so it can be a program name with args.
15241 set dummy collateindex.pl; ac_word=$2
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15243 $as_echo_n "checking for $ac_word... " >&6; }
15244 if ${ac_cv_path_COLLATEINDEX+:} false; then :
15245 $as_echo_n "(cached) " >&6
15247 case $COLLATEINDEX in
15249 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
15252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15253 for as_dir in $PATH
15256 test -z "$as_dir" && as_dir=.
15257 for ac_exec_ext in '' $ac_executable_extensions; do
15258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15259 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
15260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15270 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
15271 if test -n "$COLLATEINDEX"; then
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COLLATEINDEX" >&5
15273 $as_echo "$COLLATEINDEX" >&6; }
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15276 $as_echo "no" >&6; }
15281 for ac_prog in dbtoepub
15283 # Extract the first word of "$ac_prog", so it can be a program name with args.
15284 set dummy $ac_prog; ac_word=$2
15285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15286 $as_echo_n "checking for $ac_word... " >&6; }
15287 if ${ac_cv_prog_DBTOEPUB+:} false; then :
15288 $as_echo_n "(cached) " >&6
15290 if test -n "$DBTOEPUB"; then
15291 ac_cv_prog_DBTOEPUB="$DBTOEPUB" # Let the user override the test.
15293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15294 for as_dir in $PATH
15297 test -z "$as_dir" && as_dir=.
15298 for ac_exec_ext in '' $ac_executable_extensions; do
15299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15300 ac_cv_prog_DBTOEPUB="$ac_prog"
15301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15310 DBTOEPUB=$ac_cv_prog_DBTOEPUB
15311 if test -n "$DBTOEPUB"; then
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBTOEPUB" >&5
15313 $as_echo "$DBTOEPUB" >&6; }
15315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15316 $as_echo "no" >&6; }
15320 test -n "$DBTOEPUB" && break
15323 for ac_prog in xmllint
15325 # Extract the first word of "$ac_prog", so it can be a program name with args.
15326 set dummy $ac_prog; ac_word=$2
15327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15328 $as_echo_n "checking for $ac_word... " >&6; }
15329 if ${ac_cv_prog_XMLLINT+:} false; then :
15330 $as_echo_n "(cached) " >&6
15332 if test -n "$XMLLINT"; then
15333 ac_cv_prog_XMLLINT="$XMLLINT" # Let the user override the test.
15335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15336 for as_dir in $PATH
15339 test -z "$as_dir" && as_dir=.
15340 for ac_exec_ext in '' $ac_executable_extensions; do
15341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15342 ac_cv_prog_XMLLINT="$ac_prog"
15343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15352 XMLLINT=$ac_cv_prog_XMLLINT
15353 if test -n "$XMLLINT"; then
15354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
15355 $as_echo "$XMLLINT" >&6; }
15357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15358 $as_echo "no" >&6; }
15362 test -n "$XMLLINT" && break
15365 for ac_prog in xsltproc
15367 # Extract the first word of "$ac_prog", so it can be a program name with args.
15368 set dummy $ac_prog; ac_word=$2
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15370 $as_echo_n "checking for $ac_word... " >&6; }
15371 if ${ac_cv_prog_XSLTPROC+:} false; then :
15372 $as_echo_n "(cached) " >&6
15374 if test -n "$XSLTPROC"; then
15375 ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
15377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15378 for as_dir in $PATH
15381 test -z "$as_dir" && as_dir=.
15382 for ac_exec_ext in '' $ac_executable_extensions; do
15383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15384 ac_cv_prog_XSLTPROC="$ac_prog"
15385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15394 XSLTPROC=$ac_cv_prog_XSLTPROC
15395 if test -n "$XSLTPROC"; then
15396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
15397 $as_echo "$XSLTPROC" >&6; }
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15400 $as_echo "no" >&6; }
15404 test -n "$XSLTPROC" && break
15407 for ac_prog in osx sgml2xml sx
15409 # Extract the first word of "$ac_prog", so it can be a program name with args.
15410 set dummy $ac_prog; ac_word=$2
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15412 $as_echo_n "checking for $ac_word... " >&6; }
15413 if ${ac_cv_prog_OSX+:} false; then :
15414 $as_echo_n "(cached) " >&6
15416 if test -n "$OSX"; then
15417 ac_cv_prog_OSX="$OSX" # Let the user override the test.
15419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15420 for as_dir in $PATH
15423 test -z "$as_dir" && as_dir=.
15424 for ac_exec_ext in '' $ac_executable_extensions; do
15425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15426 ac_cv_prog_OSX="$ac_prog"
15427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15436 OSX=$ac_cv_prog_OSX
15437 if test -n "$OSX"; then
15438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OSX" >&5
15439 $as_echo "$OSX" >&6; }
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15442 $as_echo "no" >&6; }
15446 test -n "$OSX" && break
15451 # Check for test tools
15453 if test "$enable_tap_tests" = yes; then
15454 for ac_prog in prove
15456 # Extract the first word of "$ac_prog", so it can be a program name with args.
15457 set dummy $ac_prog; ac_word=$2
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15459 $as_echo_n "checking for $ac_word... " >&6; }
15460 if ${ac_cv_prog_PROVE+:} false; then :
15461 $as_echo_n "(cached) " >&6
15463 if test -n "$PROVE"; then
15464 ac_cv_prog_PROVE="$PROVE" # Let the user override the test.
15466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15467 for as_dir in $PATH
15470 test -z "$as_dir" && as_dir=.
15471 for ac_exec_ext in '' $ac_executable_extensions; do
15472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15473 ac_cv_prog_PROVE="$ac_prog"
15474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15483 PROVE=$ac_cv_prog_PROVE
15484 if test -n "$PROVE"; then
15485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROVE" >&5
15486 $as_echo "$PROVE" >&6; }
15488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15489 $as_echo "no" >&6; }
15493 test -n "$PROVE" && break
15496 if test -z "$PROVE"; then
15497 as_fn_error $? "prove not found" "$LINENO" 5
15499 if test -z "$PERL"; then
15500 as_fn_error $? "Perl not found" "$LINENO" 5
15506 # We have to run the thread test near the end so we have all our symbols
15507 # defined. Cross compiling throws a warning.
15509 if test "$enable_thread_safety" = yes; then
15510 if test "$PORTNAME" != "win32"
15512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking thread safety of required library functions" >&5
15513 $as_echo_n "checking thread safety of required library functions... " >&6; }
15517 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
15518 LIBS="$LIBS $PTHREAD_LIBS"
15519 if test "$cross_compiling" = yes; then :
15520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: maybe" >&5
15521 $as_echo "maybe" >&6; }
15522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15523 *** Skipping thread test program because of cross-compile build.
15524 *** Run the program in src/test/thread on the target machine.
15526 $as_echo "$as_me: WARNING:
15527 *** Skipping thread test program because of cross-compile build.
15528 *** Run the program in src/test/thread on the target machine.
15531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15532 /* end confdefs.h. */
15533 #include "$srcdir/src/test/thread/thread_test.c"
15535 if ac_fn_c_try_run "$LINENO"; then :
15536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15537 $as_echo "yes" >&6; }
15539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15540 $as_echo "no" >&6; }
15541 as_fn_error $? "thread test program failed
15542 This platform is not thread-safe. Check the file 'config.log' or compile
15543 and run src/test/thread/thread_test for the exact reason.
15544 Use --disable-thread-safety to disable thread safety." "$LINENO" 5
15546 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15547 conftest.$ac_objext conftest.beam conftest.$ac_ext
15553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** skipping thread test on Win32" >&5
15554 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
15558 # If compiler will take -Wl,--as-needed (or various platform-specific
15559 # spellings thereof) then add that to LDFLAGS. This is much easier than
15560 # trying to filter LIBS to the minimum for each executable.
15561 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
15562 # libreadline; therefore we postpone testing it until we know what library
15563 # dependencies readline has. The test code will try to link with $LIBS.
15564 if test "$with_readline" = yes; then
15565 link_test_func=readline
15567 link_test_func=exit
15570 if test "$PORTNAME" = "darwin"; then
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,-dead_strip_dylibs" >&5
15572 $as_echo_n "checking whether $CC supports -Wl,-dead_strip_dylibs... " >&6; }
15573 if ${pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs+:} false; then :
15574 $as_echo_n "(cached) " >&6
15576 pgac_save_LDFLAGS=$LDFLAGS
15577 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
15578 if test "$cross_compiling" = yes; then :
15579 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs="assuming no"
15581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15582 /* end confdefs.h. */
15583 extern void $link_test_func (); void (*fptr) () = $link_test_func;
15592 if ac_fn_c_try_run "$LINENO"; then :
15593 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=yes
15595 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=no
15597 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15598 conftest.$ac_objext conftest.beam conftest.$ac_ext
15601 LDFLAGS="$pgac_save_LDFLAGS"
15603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&5
15604 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&6; }
15605 if test x"$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" = x"yes"; then
15606 LDFLAGS="$LDFLAGS -Wl,-dead_strip_dylibs"
15609 elif test "$PORTNAME" = "openbsd"; then
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,-Bdynamic" >&5
15611 $as_echo_n "checking whether $CC supports -Wl,-Bdynamic... " >&6; }
15612 if ${pgac_cv_prog_cc_ldflags__Wl__Bdynamic+:} false; then :
15613 $as_echo_n "(cached) " >&6
15615 pgac_save_LDFLAGS=$LDFLAGS
15616 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
15617 if test "$cross_compiling" = yes; then :
15618 pgac_cv_prog_cc_ldflags__Wl__Bdynamic="assuming no"
15620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15621 /* end confdefs.h. */
15622 extern void $link_test_func (); void (*fptr) () = $link_test_func;
15631 if ac_fn_c_try_run "$LINENO"; then :
15632 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=yes
15634 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=no
15636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15637 conftest.$ac_objext conftest.beam conftest.$ac_ext
15640 LDFLAGS="$pgac_save_LDFLAGS"
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&5
15643 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&6; }
15644 if test x"$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" = x"yes"; then
15645 LDFLAGS="$LDFLAGS -Wl,-Bdynamic"
15649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,--as-needed" >&5
15650 $as_echo_n "checking whether $CC supports -Wl,--as-needed... " >&6; }
15651 if ${pgac_cv_prog_cc_ldflags__Wl___as_needed+:} false; then :
15652 $as_echo_n "(cached) " >&6
15654 pgac_save_LDFLAGS=$LDFLAGS
15655 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
15656 if test "$cross_compiling" = yes; then :
15657 pgac_cv_prog_cc_ldflags__Wl___as_needed="assuming no"
15659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15660 /* end confdefs.h. */
15661 extern void $link_test_func (); void (*fptr) () = $link_test_func;
15670 if ac_fn_c_try_run "$LINENO"; then :
15671 pgac_cv_prog_cc_ldflags__Wl___as_needed=yes
15673 pgac_cv_prog_cc_ldflags__Wl___as_needed=no
15675 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15676 conftest.$ac_objext conftest.beam conftest.$ac_ext
15679 LDFLAGS="$pgac_save_LDFLAGS"
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_ldflags__Wl___as_needed" >&5
15682 $as_echo "$pgac_cv_prog_cc_ldflags__Wl___as_needed" >&6; }
15683 if test x"$pgac_cv_prog_cc_ldflags__Wl___as_needed" = x"yes"; then
15684 LDFLAGS="$LDFLAGS -Wl,--as-needed"
15689 # Create compiler version string
15690 if test x"$GCC" = x"yes" ; then
15691 cc_string=`${CC} --version | sed q`
15692 case $cc_string in [A-Za-z]*) ;; *) cc_string="GCC $cc_string";; esac
15693 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
15694 cc_string=`${CC} -V 2>&1 | sed q`
15700 cat >>confdefs.h <<_ACEOF
15701 #define PG_VERSION_STR "PostgreSQL $PG_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
15705 # Supply a numeric version string for use by 3rd party add-ons
15706 # awk -F is a regex on some platforms, and not on others, so make "." a tab
15707 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
15709 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
15711 cat >>confdefs.h <<_ACEOF
15712 #define PG_VERSION_NUM $PG_VERSION_NUM
15718 # Begin output steps
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: using compiler=$cc_string" >&5
15721 $as_echo "$as_me: using compiler=$cc_string" >&6;}
15722 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS=$CFLAGS" >&5
15723 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
15724 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS=$CPPFLAGS" >&5
15725 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
15726 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS=$LDFLAGS" >&5
15727 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
15729 # prepare build tree if outside source tree
15730 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
15731 # Note 2: /bin/pwd might be better than shell's built-in at getting
15732 # a symlink-free name.
15733 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
15737 if test "$no_create" != yes; then
15738 $as_echo_n "preparing build tree... " >&6
15739 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
15740 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
15741 || as_fn_error $? "failed" "$LINENO" 5
15742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15743 $as_echo "done" >&6; }
15749 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
15752 ac_config_links="$ac_config_links src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION} src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION} src/backend/port/pg_latch.c:${LATCH_IMPLEMENTATION} src/include/dynloader.h:src/backend/port/dynloader/${template}.h src/include/pg_config_os.h:src/include/port/${template}.h src/Makefile.port:src/makefiles/Makefile.${template}"
15755 if test "$PORTNAME" = "win32"; then
15756 ac_config_commands="$ac_config_commands check_win32_symlinks"
15760 ac_config_headers="$ac_config_headers src/include/pg_config.h"
15763 ac_config_headers="$ac_config_headers src/include/pg_config_ext.h"
15766 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
15769 cat >confcache <<\_ACEOF
15770 # This file is a shell script that caches the results of configure
15771 # tests run on this system so they can be shared between configure
15772 # scripts and configure runs, see configure's option --config-cache.
15773 # It is not useful on other systems. If it contains results you don't
15774 # want to keep, you may remove or edit it.
15776 # config.status only pays attention to the cache file if you give it
15777 # the --recheck option to rerun configure.
15779 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15780 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15781 # following values.
15785 # The following way of writing the cache mishandles newlines in values,
15786 # but we know of no workaround that is simple, portable, and efficient.
15787 # So, we kill variables containing newlines.
15788 # Ultrix sh set writes to stderr and can't be redirected directly,
15789 # and sets the high bit in the cache file unless we assign to the vars.
15791 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15792 eval ac_val=\$$ac_var
15796 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15797 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15800 _ | IFS | as_nl) ;; #(
15801 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15802 *) { eval $ac_var=; unset $ac_var;} ;;
15808 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15809 *${as_nl}ac_space=\ *)
15810 # `set' does not quote correctly, so add quotes: double-quote
15811 # substitution turns \\\\ into \\, and sed turns \\ into \.
15814 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15817 # `set' quotes correctly as required by POSIX, so do not add quotes.
15818 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15827 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15829 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15831 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15832 if test -w "$cache_file"; then
15833 if test "x$cache_file" != "x/dev/null"; then
15834 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15835 $as_echo "$as_me: updating cache $cache_file" >&6;}
15836 if test ! -f "$cache_file" || test -h "$cache_file"; then
15837 cat confcache >"$cache_file"
15839 case $cache_file in #(
15841 mv -f confcache "$cache_file"$$ &&
15842 mv -f "$cache_file"$$ "$cache_file" ;; #(
15844 mv -f confcache "$cache_file" ;;
15849 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15850 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15855 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15856 # Let make expand exec_prefix.
15857 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15859 DEFS=-DHAVE_CONFIG_H
15864 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15865 # 1. Remove the extension, and $U if already installed.
15866 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15867 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15868 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15869 # will be set to the directory where LIBOBJS objects are built.
15870 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15871 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15873 LIBOBJS=$ac_libobjs
15875 LTLIBOBJS=$ac_ltlibobjs
15880 : "${CONFIG_STATUS=./config.status}"
15882 ac_clean_files_save=$ac_clean_files
15883 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15884 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15885 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15887 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15889 # Generated by $as_me.
15890 # Run this file to recreate the current configuration.
15891 # Compiler output produced by configure, useful for debugging
15892 # configure, is in config.log if it exists.
15895 ac_cs_recheck=false
15898 SHELL=\${CONFIG_SHELL-$SHELL}
15901 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15902 ## -------------------- ##
15903 ## M4sh Initialization. ##
15904 ## -------------------- ##
15906 # Be more Bourne compatible
15907 DUALCASE=1; export DUALCASE # for MKS sh
15908 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15911 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15912 # is contrary to our usage. Disable this feature.
15913 alias -g '${1+"$@"}'='"$@"'
15914 setopt NO_GLOB_SUBST
15916 case `(set -o) 2>/dev/null` in #(
15928 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15929 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15930 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15931 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15932 # Prefer a ksh shell builtin over an external printf program on Solaris,
15933 # but without wasting forks for bash or zsh.
15934 if test -z "$BASH_VERSION$ZSH_VERSION" \
15935 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15936 as_echo='print -r --'
15937 as_echo_n='print -rn --'
15938 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15939 as_echo='printf %s\n'
15940 as_echo_n='printf %s'
15942 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15943 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15944 as_echo_n='/usr/ucb/echo -n'
15946 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15947 as_echo_n_body='eval
15951 expr "X$arg" : "X\\(.*\\)$as_nl";
15952 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15954 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15956 export as_echo_n_body
15957 as_echo_n='sh -c $as_echo_n_body as_echo'
15959 export as_echo_body
15960 as_echo='sh -c $as_echo_body as_echo'
15963 # The user is always right.
15964 if test "${PATH_SEPARATOR+set}" != set; then
15966 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15967 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15974 # We need space, tab and new line, in precisely that order. Quoting is
15975 # there to prevent editors from complaining about space-tab.
15976 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15977 # splitting by setting IFS to empty value.)
15980 # Find who we are. Look in the path if we contain no directory separator.
15983 *[\\/]* ) as_myself=$0 ;;
15984 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15985 for as_dir in $PATH
15988 test -z "$as_dir" && as_dir=.
15989 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15995 # We did not find ourselves, most probably we were run as `sh COMMAND'
15996 # in which case we are not to be found in the path.
15997 if test "x$as_myself" = x; then
16000 if test ! -f "$as_myself"; then
16001 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16005 # Unset variables that we do not need and which cause bugs (e.g. in
16006 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16007 # suppresses any "Segmentation fault" message there. '((' could
16008 # trigger a bug in pdksh 5.2.14.
16009 for as_var in BASH_ENV ENV MAIL MAILPATH
16010 do eval test x\${$as_var+set} = xset \
16011 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16024 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16027 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16028 # ----------------------------------------
16029 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16030 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16031 # script with STATUS, using 1 if that was 0.
16034 as_status=$1; test $as_status -eq 0 && as_status=1
16036 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16037 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16039 $as_echo "$as_me: error: $2" >&2
16040 as_fn_exit $as_status
16044 # as_fn_set_status STATUS
16045 # -----------------------
16046 # Set $? to STATUS, without forking.
16047 as_fn_set_status ()
16050 } # as_fn_set_status
16052 # as_fn_exit STATUS
16053 # -----------------
16054 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16058 as_fn_set_status $1
16064 # Portably unset VAR.
16067 { eval $1=; unset $1;}
16069 as_unset=as_fn_unset
16070 # as_fn_append VAR VALUE
16071 # ----------------------
16072 # Append the text in VALUE to the end of the definition contained in VAR. Take
16073 # advantage of any shell optimizations that allow amortized linear growth over
16074 # repeated appends, instead of the typical quadratic growth present in naive
16076 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16077 eval 'as_fn_append ()
16088 # as_fn_arith ARG...
16089 # ------------------
16090 # Perform arithmetic evaluation on the ARGs, and store the result in the
16091 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16092 # must be portable across $(()) and expr.
16093 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16094 eval 'as_fn_arith ()
16101 as_val=`expr "$@" || test $? -eq 1`
16106 if expr a : '\(a\)' >/dev/null 2>&1 &&
16107 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16113 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16114 as_basename=basename
16119 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16125 as_me=`$as_basename -- "$0" ||
16126 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16127 X"$0" : 'X\(//\)$' \| \
16128 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16130 sed '/^.*\/\([^/][^/]*\)\/*$/{
16144 # Avoid depending upon Character Ranges.
16145 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16146 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16147 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16148 as_cr_digits='0123456789'
16149 as_cr_alnum=$as_cr_Letters$as_cr_digits
16151 ECHO_C= ECHO_N= ECHO_T=
16152 case `echo -n x` in #(((((
16154 case `echo 'xy\c'` in
16155 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16157 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16164 rm -f conf$$ conf$$.exe conf$$.file
16165 if test -d conf$$.dir; then
16166 rm -f conf$$.dir/conf$$.file
16169 mkdir conf$$.dir 2>/dev/null
16171 if (echo >conf$$.file) 2>/dev/null; then
16172 if ln -s conf$$.file conf$$ 2>/dev/null; then
16174 # ... but there are two gotchas:
16175 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16176 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16177 # In both cases, we have to default to `cp -pR'.
16178 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16180 elif ln conf$$.file conf$$ 2>/dev/null; then
16188 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16189 rmdir conf$$.dir 2>/dev/null
16194 # Create "$as_dir" as a directory, including parents if necessary.
16199 -*) as_dir=./$as_dir;;
16201 test -d "$as_dir" || eval $as_mkdir_p || {
16205 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16206 *) as_qdir=$as_dir;;
16208 as_dirs="'$as_qdir' $as_dirs"
16209 as_dir=`$as_dirname -- "$as_dir" ||
16210 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16211 X"$as_dir" : 'X\(//\)[^/]' \| \
16212 X"$as_dir" : 'X\(//\)$' \| \
16213 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16214 $as_echo X"$as_dir" |
16215 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16219 /^X\(\/\/\)[^/].*/{
16232 test -d "$as_dir" && break
16234 test -z "$as_dirs" || eval "mkdir $as_dirs"
16235 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16239 if mkdir -p . 2>/dev/null; then
16240 as_mkdir_p='mkdir -p "$as_dir"'
16242 test -d ./-p && rmdir ./-p
16247 # as_fn_executable_p FILE
16248 # -----------------------
16249 # Test if FILE is an executable regular file.
16250 as_fn_executable_p ()
16252 test -f "$1" && test -x "$1"
16253 } # as_fn_executable_p
16254 as_test_x='test -x'
16255 as_executable_p=as_fn_executable_p
16257 # Sed expression to map a string onto a valid CPP name.
16258 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16260 # Sed expression to map a string onto a valid variable name.
16261 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16265 ## ----------------------------------- ##
16266 ## Main body of $CONFIG_STATUS script. ##
16267 ## ----------------------------------- ##
16269 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16271 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16272 # Save the log message, to keep $0 and so on meaningful, and to
16273 # report actual input values of CONFIG_FILES etc. instead of their
16274 # values after options handling.
16276 This file was extended by PostgreSQL $as_me 9.6devel, which was
16277 generated by GNU Autoconf 2.69. Invocation command line was
16279 CONFIG_FILES = $CONFIG_FILES
16280 CONFIG_HEADERS = $CONFIG_HEADERS
16281 CONFIG_LINKS = $CONFIG_LINKS
16282 CONFIG_COMMANDS = $CONFIG_COMMANDS
16285 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16290 case $ac_config_files in *"
16291 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16294 case $ac_config_headers in *"
16295 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16299 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16300 # Files that config.status was made for.
16301 config_files="$ac_config_files"
16302 config_headers="$ac_config_headers"
16303 config_links="$ac_config_links"
16304 config_commands="$ac_config_commands"
16308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16310 \`$as_me' instantiates files and other configuration actions
16311 from templates according to the current configuration. Unless the files
16312 and actions are specified as TAGs, all are instantiated by default.
16314 Usage: $0 [OPTION]... [TAG]...
16316 -h, --help print this help, then exit
16317 -V, --version print version number and configuration settings, then exit
16318 --config print configuration, then exit
16319 -q, --quiet, --silent
16320 do not print progress messages
16321 -d, --debug don't remove temporary files
16322 --recheck update $as_me by reconfiguring in the same conditions
16323 --file=FILE[:TEMPLATE]
16324 instantiate the configuration file FILE
16325 --header=FILE[:TEMPLATE]
16326 instantiate the configuration header FILE
16328 Configuration files:
16331 Configuration headers:
16334 Configuration links:
16337 Configuration commands:
16340 Report bugs to <pgsql-bugs@postgresql.org>."
16343 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16344 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16346 PostgreSQL config.status 9.6devel
16347 configured by $0, generated by GNU Autoconf 2.69,
16348 with options \\"\$ac_cs_config\\"
16350 Copyright (C) 2012 Free Software Foundation, Inc.
16351 This config.status script is free software; the Free Software Foundation
16352 gives unlimited permission to copy, distribute and modify it."
16359 test -n "\$AWK" || AWK=awk
16362 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16363 # The default lists apply if the user does not specify any file.
16369 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16370 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16374 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16386 # Handling of the options.
16387 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16389 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16390 $as_echo "$ac_cs_version"; exit ;;
16391 --config | --confi | --conf | --con | --co | --c )
16392 $as_echo "$ac_cs_config"; exit ;;
16393 --debug | --debu | --deb | --de | --d | -d )
16395 --file | --fil | --fi | --f )
16398 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16399 '') as_fn_error $? "missing file argument" ;;
16401 as_fn_append CONFIG_FILES " '$ac_optarg'"
16402 ac_need_defaults=false;;
16403 --header | --heade | --head | --hea )
16406 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16408 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16409 ac_need_defaults=false;;
16411 # Conflict between --help and --header
16412 as_fn_error $? "ambiguous option: \`$1'
16413 Try \`$0 --help' for more information.";;
16414 --help | --hel | -h )
16415 $as_echo "$ac_cs_usage"; exit ;;
16416 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16417 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16420 # This is an error.
16421 -*) as_fn_error $? "unrecognized option: \`$1'
16422 Try \`$0 --help' for more information." ;;
16424 *) as_fn_append ac_config_targets " $1"
16425 ac_need_defaults=false ;;
16431 ac_configure_extra_args=
16433 if $ac_cs_silent; then
16435 ac_configure_extra_args="$ac_configure_extra_args --silent"
16439 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16440 if \$ac_cs_recheck; then
16441 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16443 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16444 CONFIG_SHELL='$SHELL'
16445 export CONFIG_SHELL
16450 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16454 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16455 ## Running $as_me. ##
16461 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16464 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16466 # Handling of arguments.
16467 for ac_config_target in $ac_config_targets
16469 case $ac_config_target in
16470 "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
16471 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
16472 "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
16473 "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
16474 "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
16475 "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
16476 "src/backend/port/pg_latch.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_latch.c:${LATCH_IMPLEMENTATION}" ;;
16477 "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
16478 "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
16479 "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
16480 "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
16481 "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
16482 "src/include/pg_config_ext.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config_ext.h" ;;
16483 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
16485 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16490 # If the user did not use the arguments to specify the items to instantiate,
16491 # then the envvar interface is used. Set only those that are not.
16492 # We use the long form for the default assignment because of an extremely
16493 # bizarre bug on SunOS 4.1.3.
16494 if $ac_need_defaults; then
16495 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16496 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16497 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16498 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16501 # Have a temporary directory for convenience. Make it in the build tree
16502 # simply because there is no reason against having it here, and in addition,
16503 # creating and moving files from /tmp can sometimes cause problems.
16504 # Hook for its removal unless debugging.
16505 # Note that there is a small window in which the directory will not be cleaned:
16506 # after its creation but before its name has been assigned to `$tmp'.
16510 trap 'exit_status=$?
16511 : "${ac_tmp:=$tmp}"
16512 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16514 trap 'as_fn_exit 1' 1 2 13 15
16516 # Create a (secure) tmp directory for tmp files.
16519 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16523 tmp=./conf$$-$RANDOM
16524 (umask 077 && mkdir "$tmp")
16525 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16528 # Set up the scripts for CONFIG_FILES section.
16529 # No need to generate them if there are no CONFIG_FILES.
16530 # This happens for instance with `./config.status config.h'.
16531 if test -n "$CONFIG_FILES"; then
16534 ac_cr=`echo X | tr X '\015'`
16535 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16536 # But we know of no other shell where ac_cr would be empty at this
16537 # point, so we can use a bashism as a fallback.
16538 if test "x$ac_cr" = x; then
16539 eval ac_cr=\$\'\\r\'
16541 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16542 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16545 ac_cs_awk_cr=$ac_cr
16548 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16553 echo "cat >conf$$subs.awk <<_ACEOF" &&
16554 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16556 } >conf$$subs.sh ||
16557 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16558 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16560 for ac_last_try in false false false false false :; do
16561 . ./conf$$subs.sh ||
16562 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16564 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16565 if test $ac_delim_n = $ac_delim_num; then
16567 elif $ac_last_try; then
16568 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16570 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16573 rm -f conf$$subs.sh
16575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16576 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16580 s/^/S["/; s/!.*/"]=/
16590 s/\(.\{148\}\)..*/\1/
16592 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16597 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16604 s/\(.\{148\}\)..*/\1/
16606 s/["\\]/\\&/g; s/^/"/; s/$/"/
16610 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16615 ' <conf$$subs.awk | sed '
16620 ' >>$CONFIG_STATUS || ac_write_fail=1
16621 rm -f conf$$subs.awk
16622 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16624 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16625 for (key in S) S_is_set[key] = 1
16631 nfields = split(line, field, "@")
16633 len = length(field[1])
16634 for (i = 2; i < nfields; i++) {
16636 keylen = length(key)
16637 if (S_is_set[key]) {
16639 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16640 len += length(value) + length(field[++i])
16651 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16652 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16653 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16656 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16657 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16660 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16661 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16662 # trailing colons and then remove the whole line if VPATH becomes empty
16663 # (actually we leave an empty line to preserve line numbers).
16664 if test "x$srcdir" = x.; then
16665 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16683 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16684 fi # test -n "$CONFIG_FILES"
16686 # Set up the scripts for CONFIG_HEADERS section.
16687 # No need to generate them if there are no CONFIG_HEADERS.
16688 # This happens for instance with `./config.status Makefile'.
16689 if test -n "$CONFIG_HEADERS"; then
16690 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16694 # Transform confdefs.h into an awk script `defines.awk', embedded as
16695 # here-document in config.status, that substitutes the proper values into
16696 # config.h.in to produce config.h.
16698 # Create a delimiter string that does not exist in confdefs.h, to ease
16699 # handling of long lines.
16701 for ac_last_try in false false :; do
16702 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16703 if test -z "$ac_tt"; then
16705 elif $ac_last_try; then
16706 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16708 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16712 # For the awk script, D is an array of macro values keyed by name,
16713 # likewise P contains macro parameters if any. Preserve backslash
16714 # newline sequences.
16716 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16718 s/.\{148\}/&'"$ac_delim"'/g
16721 s/^[ ]*#[ ]*define[ ][ ]*/ /
16728 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16730 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16734 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16735 D["\1"]=" \3\\\\\\n"\\/p
16737 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16742 s/.\{148\}/&'"$ac_delim"'/g
16747 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16750 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16752 ' <confdefs.h | sed '
16753 s/'"$ac_delim"'/"\\\
16754 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16756 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16757 for (key in D) D_is_set[key] = 1
16760 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16762 split(line, arg, " ")
16763 if (arg[1] == "#") {
16767 defundef = substr(arg[1], 2)
16770 split(mac1, mac2, "(") #)
16772 prefix = substr(line, 1, index(line, defundef) - 1)
16773 if (D_is_set[macro]) {
16774 # Preserve the white space surrounding the "#".
16775 print prefix "define", macro P[macro] D[macro]
16778 # Replace #undef with comments. This is necessary, for example,
16779 # in the case of _POSIX_SOURCE, which is predefined and required
16780 # on some systems where configure will not decide to define it.
16781 if (defundef == "undef") {
16782 print "/*", prefix defundef, macro, "*/"
16790 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16791 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16792 fi # test -n "$CONFIG_HEADERS"
16795 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
16800 :[FHLC]) ac_mode=$ac_tag; continue;;
16802 case $ac_mode$ac_tag in
16804 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16805 :[FH]-) ac_tag=-:-;;
16806 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16823 -) ac_f="$ac_tmp/stdin";;
16824 *) # Look for the file first in the build tree, then in the source tree
16825 # (if the path is not absolute). The absolute path cannot be DOS-style,
16826 # because $ac_f cannot contain `:'.
16830 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16832 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16834 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16835 as_fn_append ac_file_inputs " '$ac_f'"
16838 # Let's still pretend it is `configure' which instantiates (i.e., don't
16839 # use $as_me), people would be surprised to read:
16840 # /* config.h. Generated by config.status. */
16841 configure_input='Generated from '`
16842 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16844 if test x"$ac_file" != x-; then
16845 configure_input="$ac_file. $configure_input"
16846 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16847 $as_echo "$as_me: creating $ac_file" >&6;}
16849 # Neutralize special characters interpreted by sed in replacement strings.
16850 case $configure_input in #(
16851 *\&* | *\|* | *\\* )
16852 ac_sed_conf_input=`$as_echo "$configure_input" |
16853 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16854 *) ac_sed_conf_input=$configure_input;;
16858 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16859 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16864 ac_dir=`$as_dirname -- "$ac_file" ||
16865 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16866 X"$ac_file" : 'X\(//\)[^/]' \| \
16867 X"$ac_file" : 'X\(//\)$' \| \
16868 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16869 $as_echo X"$ac_file" |
16870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16874 /^X\(\/\/\)[^/].*/{
16887 as_dir="$ac_dir"; as_fn_mkdir_p
16891 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16893 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16894 # A ".." for each directory in $ac_dir_suffix.
16895 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16896 case $ac_top_builddir_sub in
16897 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16898 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16901 ac_abs_top_builddir=$ac_pwd
16902 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16903 # for backward compatibility:
16904 ac_top_builddir=$ac_top_build_prefix
16907 .) # We are building in place.
16909 ac_top_srcdir=$ac_top_builddir_sub
16910 ac_abs_top_srcdir=$ac_pwd ;;
16911 [\\/]* | ?:[\\/]* ) # Absolute name.
16912 ac_srcdir=$srcdir$ac_dir_suffix;
16913 ac_top_srcdir=$srcdir
16914 ac_abs_top_srcdir=$srcdir ;;
16915 *) # Relative name.
16916 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16917 ac_top_srcdir=$ac_top_build_prefix$srcdir
16918 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16920 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16930 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16931 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16933 ac_MKDIR_P=$MKDIR_P
16935 [\\/$]* | ?:[\\/]* ) ;;
16936 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16940 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16941 # If the template does not know about datarootdir, expand it.
16942 # FIXME: This hack should be removed a few years after 2.60.
16943 ac_datarootdir_hack=; ac_datarootdir_seen=
16954 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16955 *datarootdir*) ac_datarootdir_seen=yes;;
16956 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16958 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16960 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16961 ac_datarootdir_hack='
16962 s&@datadir@&$datadir&g
16963 s&@docdir@&$docdir&g
16964 s&@infodir@&$infodir&g
16965 s&@localedir@&$localedir&g
16966 s&@mandir@&$mandir&g
16967 s&\\\${datarootdir}&$datarootdir&g' ;;
16971 # Neutralize VPATH when `$srcdir' = `.'.
16972 # Shell code in configure.ac might set extrasub.
16973 # FIXME: do we really want to maintain this feature?
16974 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16975 ac_sed_extra="$ac_vpsub
16978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16980 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16981 s|@configure_input@|$ac_sed_conf_input|;t t
16982 s&@top_builddir@&$ac_top_builddir_sub&;t t
16983 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16984 s&@srcdir@&$ac_srcdir&;t t
16985 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16986 s&@top_srcdir@&$ac_top_srcdir&;t t
16987 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16988 s&@builddir@&$ac_builddir&;t t
16989 s&@abs_builddir@&$ac_abs_builddir&;t t
16990 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16991 s&@INSTALL@&$ac_INSTALL&;t t
16992 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16993 $ac_datarootdir_hack
16995 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16996 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16998 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16999 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17000 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17001 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17003 which seems to be undefined. Please make sure it is defined" >&5
17004 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17005 which seems to be undefined. Please make sure it is defined" >&2;}
17007 rm -f "$ac_tmp/stdin"
17009 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17010 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17012 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17018 if test x"$ac_file" != x-; then
17020 $as_echo "/* $configure_input */" \
17021 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17022 } >"$ac_tmp/config.h" \
17023 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17024 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17025 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17026 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17029 mv "$ac_tmp/config.h" "$ac_file" \
17030 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17033 $as_echo "/* $configure_input */" \
17034 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17035 || as_fn_error $? "could not create -" "$LINENO" 5
17043 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
17046 # Prefer the file from the source tree if names are identical.
17047 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
17048 ac_source=$srcdir/$ac_source
17051 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17052 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
17054 if test ! -r "$ac_source"; then
17055 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
17059 # Try a relative symlink, then a hard link, then a copy.
17061 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
17062 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
17064 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17065 ln "$ac_source" "$ac_file" 2>/dev/null ||
17066 cp -p "$ac_source" "$ac_file" ||
17067 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17070 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17071 $as_echo "$as_me: executing $ac_file commands" >&6;}
17076 case $ac_file$ac_mode in
17077 "check_win32_symlinks":C)
17078 # Links sometimes fail undetected on Mingw -
17079 # so here we detect it and warn the user
17080 for FILE in $CONFIG_LINKS
17082 # test -e works for symlinks in the MinGW console
17083 test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** link for $FILE -- please fix by hand" >&5
17084 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
17087 "src/include/pg_config.h":H)
17088 # Update timestamp for pg_config.h (see Makefile.global)
17089 echo >src/include/stamp-h
17091 "src/include/pg_config_ext.h":H)
17092 # Update timestamp for pg_config_ext.h (see Makefile.global)
17093 echo >src/include/stamp-ext-h
17095 "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
17103 ac_clean_files=$ac_clean_files_save
17105 test $ac_write_fail = 0 ||
17106 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17109 # configure is writing to config.log, and then calls config.status.
17110 # config.status does its own redirection, appending to config.log.
17111 # Unfortunately, on DOS this fails, as config.log is still kept open
17112 # by configure, so config.status won't be able to write to it; its
17113 # output is simply discarded. So we exec the FD to /dev/null,
17114 # effectively closing config.log, so it can be properly (re)opened and
17115 # appended to by config.status. When coming back to configure, we
17116 # need to make the FD available again.
17117 if test "$no_create" != yes; then
17119 ac_config_status_args=
17120 test "$silent" = yes &&
17121 ac_config_status_args="$ac_config_status_args --quiet"
17123 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17125 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17126 # would make configure fail if this is the last instruction.
17127 $ac_cs_success || as_fn_exit 1
17129 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17131 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}