2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for PostgreSQL 9.5devel.
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-2014, 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.5devel'
586 PACKAGE_STRING='PostgreSQL 9.5devel'
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
663 python_additional_libs
781 program_transform_name
794 enable_option_checking
800 enable_integer_datetimes
829 with_libedit_preferred
841 ac_precious_vars='build_alias
855 # Initialize some variables set by options.
857 ac_init_version=false
858 ac_unrecognized_opts=
860 # The variables have the same names as the options, with
861 # dashes changed to underlines.
869 program_transform_name=s,x,x,
877 # Installation directory options.
878 # These are left unexpanded so users can "make install exec_prefix=/foo"
879 # and all the variables that are supposed to be based on exec_prefix
880 # by default will actually change.
881 # Use braces instead of parens because sh, perl, etc. also accept them.
882 # (The list follows the same order as the GNU Coding Standards.)
883 bindir='${exec_prefix}/bin'
884 sbindir='${exec_prefix}/sbin'
885 libexecdir='${exec_prefix}/libexec'
886 datarootdir='${prefix}/share'
887 datadir='${datarootdir}'
888 sysconfdir='${prefix}/etc'
889 sharedstatedir='${prefix}/com'
890 localstatedir='${prefix}/var'
891 includedir='${prefix}/include'
892 oldincludedir='/usr/include'
893 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
894 infodir='${datarootdir}/info'
899 libdir='${exec_prefix}/lib'
900 localedir='${datarootdir}/locale'
901 mandir='${datarootdir}/man'
907 # If the previous option needs an argument, assign it.
908 if test -n "$ac_prev"; then
909 eval $ac_prev=\$ac_option
915 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
920 # Accept the important Cygnus configure options, so we can diagnose typos.
922 case $ac_dashdash$ac_option in
926 -bindir | --bindir | --bindi | --bind | --bin | --bi)
928 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
931 -build | --build | --buil | --bui | --bu)
932 ac_prev=build_alias ;;
933 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
934 build_alias=$ac_optarg ;;
936 -cache-file | --cache-file | --cache-fil | --cache-fi \
937 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
938 ac_prev=cache_file ;;
939 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
940 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
941 cache_file=$ac_optarg ;;
944 cache_file=config.cache ;;
946 -datadir | --datadir | --datadi | --datad)
948 -datadir=* | --datadir=* | --datadi=* | --datad=*)
949 datadir=$ac_optarg ;;
951 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
952 | --dataroo | --dataro | --datar)
953 ac_prev=datarootdir ;;
954 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
955 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
956 datarootdir=$ac_optarg ;;
958 -disable-* | --disable-*)
959 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
960 # Reject names that are not valid shell variable names.
961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
962 as_fn_error $? "invalid feature name: $ac_useropt"
963 ac_useropt_orig=$ac_useropt
964 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
965 case $ac_user_opts in
969 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
970 ac_unrecognized_sep=', ';;
972 eval enable_$ac_useropt=no ;;
974 -docdir | --docdir | --docdi | --doc | --do)
976 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
979 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
981 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
984 -enable-* | --enable-*)
985 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
986 # Reject names that are not valid shell variable names.
987 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
988 as_fn_error $? "invalid feature name: $ac_useropt"
989 ac_useropt_orig=$ac_useropt
990 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
991 case $ac_user_opts in
995 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
996 ac_unrecognized_sep=', ';;
998 eval enable_$ac_useropt=\$ac_optarg ;;
1000 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1001 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1002 | --exec | --exe | --ex)
1003 ac_prev=exec_prefix ;;
1004 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1005 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1006 | --exec=* | --exe=* | --ex=*)
1007 exec_prefix=$ac_optarg ;;
1009 -gas | --gas | --ga | --g)
1010 # Obsolete; use --with-gas.
1013 -help | --help | --hel | --he | -h)
1014 ac_init_help=long ;;
1015 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1016 ac_init_help=recursive ;;
1017 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1018 ac_init_help=short ;;
1020 -host | --host | --hos | --ho)
1021 ac_prev=host_alias ;;
1022 -host=* | --host=* | --hos=* | --ho=*)
1023 host_alias=$ac_optarg ;;
1025 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1027 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1029 htmldir=$ac_optarg ;;
1031 -includedir | --includedir | --includedi | --included | --include \
1032 | --includ | --inclu | --incl | --inc)
1033 ac_prev=includedir ;;
1034 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1035 | --includ=* | --inclu=* | --incl=* | --inc=*)
1036 includedir=$ac_optarg ;;
1038 -infodir | --infodir | --infodi | --infod | --info | --inf)
1040 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1041 infodir=$ac_optarg ;;
1043 -libdir | --libdir | --libdi | --libd)
1045 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1046 libdir=$ac_optarg ;;
1048 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1049 | --libexe | --libex | --libe)
1050 ac_prev=libexecdir ;;
1051 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1052 | --libexe=* | --libex=* | --libe=*)
1053 libexecdir=$ac_optarg ;;
1055 -localedir | --localedir | --localedi | --localed | --locale)
1056 ac_prev=localedir ;;
1057 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1058 localedir=$ac_optarg ;;
1060 -localstatedir | --localstatedir | --localstatedi | --localstated \
1061 | --localstate | --localstat | --localsta | --localst | --locals)
1062 ac_prev=localstatedir ;;
1063 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1064 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1065 localstatedir=$ac_optarg ;;
1067 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1069 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1070 mandir=$ac_optarg ;;
1072 -nfp | --nfp | --nf)
1073 # Obsolete; use --without-fp.
1076 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1077 | --no-cr | --no-c | -n)
1080 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1081 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1084 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1085 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1086 | --oldin | --oldi | --old | --ol | --o)
1087 ac_prev=oldincludedir ;;
1088 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1089 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1090 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1091 oldincludedir=$ac_optarg ;;
1093 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1095 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1096 prefix=$ac_optarg ;;
1098 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1099 | --program-pre | --program-pr | --program-p)
1100 ac_prev=program_prefix ;;
1101 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1102 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1103 program_prefix=$ac_optarg ;;
1105 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1106 | --program-suf | --program-su | --program-s)
1107 ac_prev=program_suffix ;;
1108 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1109 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1110 program_suffix=$ac_optarg ;;
1112 -program-transform-name | --program-transform-name \
1113 | --program-transform-nam | --program-transform-na \
1114 | --program-transform-n | --program-transform- \
1115 | --program-transform | --program-transfor \
1116 | --program-transfo | --program-transf \
1117 | --program-trans | --program-tran \
1118 | --progr-tra | --program-tr | --program-t)
1119 ac_prev=program_transform_name ;;
1120 -program-transform-name=* | --program-transform-name=* \
1121 | --program-transform-nam=* | --program-transform-na=* \
1122 | --program-transform-n=* | --program-transform-=* \
1123 | --program-transform=* | --program-transfor=* \
1124 | --program-transfo=* | --program-transf=* \
1125 | --program-trans=* | --program-tran=* \
1126 | --progr-tra=* | --program-tr=* | --program-t=*)
1127 program_transform_name=$ac_optarg ;;
1129 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1131 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1132 pdfdir=$ac_optarg ;;
1134 -psdir | --psdir | --psdi | --psd | --ps)
1136 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1139 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1140 | -silent | --silent | --silen | --sile | --sil)
1143 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1145 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1147 sbindir=$ac_optarg ;;
1149 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1150 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1151 | --sharedst | --shareds | --shared | --share | --shar \
1153 ac_prev=sharedstatedir ;;
1154 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1155 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1156 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1158 sharedstatedir=$ac_optarg ;;
1160 -site | --site | --sit)
1162 -site=* | --site=* | --sit=*)
1165 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1167 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1168 srcdir=$ac_optarg ;;
1170 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1171 | --syscon | --sysco | --sysc | --sys | --sy)
1172 ac_prev=sysconfdir ;;
1173 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1174 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1175 sysconfdir=$ac_optarg ;;
1177 -target | --target | --targe | --targ | --tar | --ta | --t)
1178 ac_prev=target_alias ;;
1179 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1180 target_alias=$ac_optarg ;;
1182 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1185 -version | --version | --versio | --versi | --vers | -V)
1186 ac_init_version=: ;;
1189 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1192 as_fn_error $? "invalid package name: $ac_useropt"
1193 ac_useropt_orig=$ac_useropt
1194 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1195 case $ac_user_opts in
1199 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1200 ac_unrecognized_sep=', ';;
1202 eval with_$ac_useropt=\$ac_optarg ;;
1204 -without-* | --without-*)
1205 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1206 # Reject names that are not valid shell variable names.
1207 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1208 as_fn_error $? "invalid package name: $ac_useropt"
1209 ac_useropt_orig=$ac_useropt
1210 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1211 case $ac_user_opts in
1215 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1216 ac_unrecognized_sep=', ';;
1218 eval with_$ac_useropt=no ;;
1221 # Obsolete; use --with-x.
1224 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1225 | --x-incl | --x-inc | --x-in | --x-i)
1226 ac_prev=x_includes ;;
1227 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1228 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1229 x_includes=$ac_optarg ;;
1231 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1232 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1233 ac_prev=x_libraries ;;
1234 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1235 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1236 x_libraries=$ac_optarg ;;
1238 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1239 Try \`$0 --help' for more information"
1243 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1244 # Reject names that are not valid shell variable names.
1245 case $ac_envvar in #(
1246 '' | [0-9]* | *[!_$as_cr_alnum]* )
1247 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1249 eval $ac_envvar=\$ac_optarg
1250 export $ac_envvar ;;
1253 # FIXME: should be removed in autoconf 3.0.
1254 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1255 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1256 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1257 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1263 if test -n "$ac_prev"; then
1264 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1265 as_fn_error $? "missing argument to $ac_option"
1268 if test -n "$ac_unrecognized_opts"; then
1269 case $enable_option_checking in
1271 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1272 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1276 # Check all directory arguments for consistency.
1277 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1278 datadir sysconfdir sharedstatedir localstatedir includedir \
1279 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1280 libdir localedir mandir
1282 eval ac_val=\$$ac_var
1283 # Remove trailing slashes.
1286 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1287 eval $ac_var=\$ac_val;;
1289 # Be sure to have absolute directory names.
1291 [\\/$]* | ?:[\\/]* ) continue;;
1292 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1294 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1297 # There might be people who depend on the old broken behavior: `$host'
1298 # used to hold the argument of --host etc.
1299 # FIXME: To remove some day.
1302 target=$target_alias
1304 # FIXME: To remove some day.
1305 if test "x$host_alias" != x; then
1306 if test "x$build_alias" = x; then
1307 cross_compiling=maybe
1308 elif test "x$build_alias" != "x$host_alias"; then
1314 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1316 test "$silent" = yes && exec 6>/dev/null
1319 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1320 ac_ls_di=`ls -di .` &&
1321 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1322 as_fn_error $? "working directory cannot be determined"
1323 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1324 as_fn_error $? "pwd does not report name of working directory"
1327 # Find the source files, if location was not specified.
1328 if test -z "$srcdir"; then
1329 ac_srcdir_defaulted=yes
1330 # Try the directory containing this script, then the parent directory.
1331 ac_confdir=`$as_dirname -- "$as_myself" ||
1332 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1333 X"$as_myself" : 'X\(//\)[^/]' \| \
1334 X"$as_myself" : 'X\(//\)$' \| \
1335 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1336 $as_echo X"$as_myself" |
1337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1355 if test ! -r "$srcdir/$ac_unique_file"; then
1359 ac_srcdir_defaulted=no
1361 if test ! -r "$srcdir/$ac_unique_file"; then
1362 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1363 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1365 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1367 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1369 # When building in place, set srcdir=.
1370 if test "$ac_abs_confdir" = "$ac_pwd"; then
1373 # Remove unnecessary trailing slashes from srcdir.
1374 # Double slashes in file names in object file debugging info
1375 # mess up M-x gdb in Emacs.
1377 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1379 for ac_var in $ac_precious_vars; do
1380 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1381 eval ac_env_${ac_var}_value=\$${ac_var}
1382 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1387 # Report the --help message.
1389 if test "$ac_init_help" = "long"; then
1390 # Omit some internal or obsolete options to make the list less imposing.
1391 # This message is too long to be a string in the A/UX 3.1 sh.
1393 \`configure' configures PostgreSQL 9.5devel to adapt to many kinds of systems.
1395 Usage: $0 [OPTION]... [VAR=VALUE]...
1397 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1398 VAR=VALUE. See below for descriptions of some of the useful variables.
1400 Defaults for the options are specified in brackets.
1403 -h, --help display this help and exit
1404 --help=short display options specific to this package
1405 --help=recursive display the short help of all the included packages
1406 -V, --version display version information and exit
1407 -q, --quiet, --silent do not print \`checking ...' messages
1408 --cache-file=FILE cache test results in FILE [disabled]
1409 -C, --config-cache alias for \`--cache-file=config.cache'
1410 -n, --no-create do not create output files
1411 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1413 Installation directories:
1414 --prefix=PREFIX install architecture-independent files in PREFIX
1415 [$ac_default_prefix]
1416 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1419 By default, \`make install' will install all the files in
1420 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1421 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1422 for instance \`--prefix=\$HOME'.
1424 For better control, use the options below.
1426 Fine tuning of the installation directories:
1427 --bindir=DIR user executables [EPREFIX/bin]
1428 --sbindir=DIR system admin executables [EPREFIX/sbin]
1429 --libexecdir=DIR program executables [EPREFIX/libexec]
1430 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1431 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1432 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1433 --libdir=DIR object code libraries [EPREFIX/lib]
1434 --includedir=DIR C header files [PREFIX/include]
1435 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1436 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1437 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1438 --infodir=DIR info documentation [DATAROOTDIR/info]
1439 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1440 --mandir=DIR man documentation [DATAROOTDIR/man]
1441 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1442 --htmldir=DIR html documentation [DOCDIR]
1443 --dvidir=DIR dvi documentation [DOCDIR]
1444 --pdfdir=DIR pdf documentation [DOCDIR]
1445 --psdir=DIR ps documentation [DOCDIR]
1451 --build=BUILD configure for building on BUILD [guessed]
1452 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1456 if test -n "$ac_init_help"; then
1457 case $ac_init_help in
1458 short | recursive ) echo "Configuration of PostgreSQL 9.5devel:";;
1463 --disable-option-checking ignore unrecognized --enable/--with options
1464 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1465 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1466 --disable-integer-datetimes
1467 disable 64-bit integer date/time support
1468 --enable-nls[=LANGUAGES]
1469 enable Native Language Support
1470 --disable-rpath do not embed shared library search path in
1472 --disable-spinlocks do not use spinlocks
1473 --enable-debug build with debugging symbols (-g)
1474 --enable-profiling build with profiling enabled
1475 --enable-coverage build with coverage testing instrumentation
1476 --enable-dtrace build with DTrace support
1477 --enable-depend turn on automatic dependency tracking
1478 --enable-cassert enable assertion checks (for debugging)
1479 --disable-thread-safety disable thread-safety in client libraries
1480 --disable-largefile omit support for large files
1481 --disable-float4-byval disable float4 passed by value
1482 --disable-float8-byval disable float8 passed by value
1485 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1486 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1487 --with-extra-version=STRING
1488 append STRING to version
1489 --with-template=NAME override operating system template
1490 --with-includes=DIRS look for additional header files in DIRS
1491 --with-libraries=DIRS look for additional libraries in DIRS
1492 --with-libs=DIRS alternative spelling of --with-libraries
1493 --with-pgport=PORTNUM set default port number [5432]
1494 --with-blocksize=BLOCKSIZE
1495 set table block size in kB [8]
1496 --with-segsize=SEGSIZE set table segment size in GB [1]
1497 --with-wal-blocksize=BLOCKSIZE
1498 set WAL block size in kB [8]
1499 --with-wal-segsize=SEGSIZE
1500 set WAL segment size in MB [16]
1501 --with-CC=CMD set compiler (deprecated)
1502 --with-tcl build Tcl modules (PL/Tcl)
1503 --with-tclconfig=DIR tclConfig.sh is in DIR
1504 --with-perl build Perl modules (PL/Perl)
1505 --with-python build Python modules (PL/Python)
1506 --with-gssapi build with GSSAPI support
1507 --with-krb-srvnam=NAME default service principal name in Kerberos (GSSAPI)
1509 --with-pam build with PAM support
1510 --with-ldap build with LDAP support
1511 --with-bonjour build with Bonjour support
1512 --with-openssl build with OpenSSL support
1513 --with-selinux build with SELinux support
1514 --without-readline do not use GNU Readline nor BSD Libedit for editing
1515 --with-libedit-preferred
1516 prefer BSD Libedit over GNU Readline
1517 --with-uuid=LIB build contrib/uuid-ossp using LIB (bsd,e2fs,ossp)
1518 --with-ossp-uuid obsolete spelling of --with-uuid=ossp
1519 --with-libxml build with XML support
1520 --with-libxslt use XSLT support when building contrib/xml2
1521 --with-system-tzdata=DIR
1522 use system time zone data in DIR
1523 --without-zlib do not use Zlib
1524 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1526 Some influential environment variables:
1527 CC C compiler command
1528 CFLAGS C compiler flags
1529 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1530 nonstandard directory <lib dir>
1531 LIBS libraries to pass to the linker, e.g. -l<library>
1532 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1533 you have headers in a nonstandard directory <include dir>
1535 LDFLAGS_EX extra linker flags for linking executables only
1536 LDFLAGS_SL extra linker flags for linking shared libraries only
1538 location of DocBook stylesheets
1540 Use these variables to override the choices made by `configure' or to help
1541 it to find libraries and programs with nonstandard names/locations.
1543 Report bugs to <pgsql-bugs@postgresql.org>.
1548 if test "$ac_init_help" = "recursive"; then
1549 # If there are subdirs, report their specific --help.
1550 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1551 test -d "$ac_dir" ||
1552 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1557 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1560 # A ".." for each directory in $ac_dir_suffix.
1561 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1562 case $ac_top_builddir_sub in
1563 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1564 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1567 ac_abs_top_builddir=$ac_pwd
1568 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1569 # for backward compatibility:
1570 ac_top_builddir=$ac_top_build_prefix
1573 .) # We are building in place.
1575 ac_top_srcdir=$ac_top_builddir_sub
1576 ac_abs_top_srcdir=$ac_pwd ;;
1577 [\\/]* | ?:[\\/]* ) # Absolute name.
1578 ac_srcdir=$srcdir$ac_dir_suffix;
1579 ac_top_srcdir=$srcdir
1580 ac_abs_top_srcdir=$srcdir ;;
1582 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1583 ac_top_srcdir=$ac_top_build_prefix$srcdir
1584 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1586 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1588 cd "$ac_dir" || { ac_status=$?; continue; }
1589 # Check for guested configure.
1590 if test -f "$ac_srcdir/configure.gnu"; then
1592 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1593 elif test -f "$ac_srcdir/configure"; then
1595 $SHELL "$ac_srcdir/configure" --help=recursive
1597 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1599 cd "$ac_pwd" || { ac_status=$?; break; }
1603 test -n "$ac_init_help" && exit $ac_status
1604 if $ac_init_version; then
1606 PostgreSQL configure 9.5devel
1607 generated by GNU Autoconf 2.69
1609 Copyright (C) 2012 Free Software Foundation, Inc.
1610 This configure script is free software; the Free Software Foundation
1611 gives unlimited permission to copy, distribute and modify it.
1613 Copyright (c) 1996-2014, PostgreSQL Global Development Group
1618 ## ------------------------ ##
1619 ## Autoconf initialization. ##
1620 ## ------------------------ ##
1622 # ac_fn_c_try_compile LINENO
1623 # --------------------------
1624 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1625 ac_fn_c_try_compile ()
1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628 rm -f conftest.$ac_objext
1629 if { { ac_try="$ac_compile"
1631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1632 *) ac_try_echo=$ac_try;;
1634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635 $as_echo "$ac_try_echo"; } >&5
1636 (eval "$ac_compile") 2>conftest.err
1638 if test -s conftest.err; then
1639 grep -v '^ *+' conftest.err >conftest.er1
1640 cat conftest.er1 >&5
1641 mv -f conftest.er1 conftest.err
1643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1644 test $ac_status = 0; } && {
1645 test -z "$ac_c_werror_flag" ||
1646 test ! -s conftest.err
1647 } && test -s conftest.$ac_objext; then :
1650 $as_echo "$as_me: failed program was:" >&5
1651 sed 's/^/| /' conftest.$ac_ext >&5
1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1656 as_fn_set_status $ac_retval
1658 } # ac_fn_c_try_compile
1660 # ac_fn_c_try_link LINENO
1661 # -----------------------
1662 # Try to link conftest.$ac_ext, and return whether this succeeded.
1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666 rm -f conftest.$ac_objext conftest$ac_exeext
1667 if { { ac_try="$ac_link"
1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670 *) ac_try_echo=$ac_try;;
1672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673 $as_echo "$ac_try_echo"; } >&5
1674 (eval "$ac_link") 2>conftest.err
1676 if test -s conftest.err; then
1677 grep -v '^ *+' conftest.err >conftest.er1
1678 cat conftest.er1 >&5
1679 mv -f conftest.er1 conftest.err
1681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682 test $ac_status = 0; } && {
1683 test -z "$ac_c_werror_flag" ||
1684 test ! -s conftest.err
1685 } && test -s conftest$ac_exeext && {
1686 test "$cross_compiling" = yes ||
1687 test -x conftest$ac_exeext
1691 $as_echo "$as_me: failed program was:" >&5
1692 sed 's/^/| /' conftest.$ac_ext >&5
1696 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1697 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1698 # interfere with the next link command; also delete a directory that is
1699 # left behind by Apple's compiler. We do this before executing the actions.
1700 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702 as_fn_set_status $ac_retval
1704 } # ac_fn_c_try_link
1706 # ac_fn_c_try_cpp LINENO
1707 # ----------------------
1708 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 if { { ac_try="$ac_cpp conftest.$ac_ext"
1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715 *) ac_try_echo=$ac_try;;
1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1721 if test -s conftest.err; then
1722 grep -v '^ *+' conftest.err >conftest.er1
1723 cat conftest.er1 >&5
1724 mv -f conftest.er1 conftest.err
1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727 test $ac_status = 0; } > conftest.i && {
1728 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1729 test ! -s conftest.err
1733 $as_echo "$as_me: failed program was:" >&5
1734 sed 's/^/| /' conftest.$ac_ext >&5
1738 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739 as_fn_set_status $ac_retval
1743 # ac_fn_c_check_func LINENO FUNC VAR
1744 # ----------------------------------
1745 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1746 ac_fn_c_check_func ()
1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1750 $as_echo_n "checking for $2... " >&6; }
1751 if eval \${$3+:} false; then :
1752 $as_echo_n "(cached) " >&6
1754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1755 /* end confdefs.h. */
1756 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1758 #define $2 innocuous_$2
1760 /* System header to define __stub macros and hopefully few prototypes,
1761 which can conflict with char $2 (); below.
1762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1763 <limits.h> exists even on freestanding compilers. */
1766 # include <limits.h>
1768 # include <assert.h>
1773 /* Override any GCC internal prototype to avoid an error.
1774 Use char because int might match the return type of a GCC
1775 builtin and then its argument prototype would still apply. */
1780 /* The GNU C library defines this for functions which it implements
1781 to always fail with ENOSYS. Some functions are actually named
1782 something starting with __ and the normal name is an alias. */
1783 #if defined __stub_$2 || defined __stub___$2
1795 if ac_fn_c_try_link "$LINENO"; then :
1800 rm -f core conftest.err conftest.$ac_objext \
1801 conftest$ac_exeext conftest.$ac_ext
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1805 $as_echo "$ac_res" >&6; }
1806 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808 } # ac_fn_c_check_func
1810 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1811 # -------------------------------------------------------
1812 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1813 # the include files in INCLUDES and setting the cache variable VAR
1815 ac_fn_c_check_header_mongrel ()
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 if eval \${$3+:} false; then :
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820 $as_echo_n "checking for $2... " >&6; }
1821 if eval \${$3+:} false; then :
1822 $as_echo_n "(cached) " >&6
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826 $as_echo "$ac_res" >&6; }
1828 # Is the header compilable?
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1830 $as_echo_n "checking $2 usability... " >&6; }
1831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832 /* end confdefs.h. */
1836 if ac_fn_c_try_compile "$LINENO"; then :
1837 ac_header_compiler=yes
1839 ac_header_compiler=no
1841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1843 $as_echo "$ac_header_compiler" >&6; }
1845 # Is the header present?
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1847 $as_echo_n "checking $2 presence... " >&6; }
1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849 /* end confdefs.h. */
1852 if ac_fn_c_try_cpp "$LINENO"; then :
1853 ac_header_preproc=yes
1855 ac_header_preproc=no
1857 rm -f conftest.err conftest.i conftest.$ac_ext
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1859 $as_echo "$ac_header_preproc" >&6; }
1861 # So? What about this header?
1862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1865 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1867 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1871 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1873 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1875 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1877 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1879 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1880 ( $as_echo "## ---------------------------------------- ##
1881 ## Report this to pgsql-bugs@postgresql.org ##
1882 ## ---------------------------------------- ##"
1883 ) | sed "s/^/$as_me: WARNING: /" >&2
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1887 $as_echo_n "checking for $2... " >&6; }
1888 if eval \${$3+:} false; then :
1889 $as_echo_n "(cached) " >&6
1891 eval "$3=\$ac_header_compiler"
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1895 $as_echo "$ac_res" >&6; }
1897 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899 } # ac_fn_c_check_header_mongrel
1901 # ac_fn_c_try_run LINENO
1902 # ----------------------
1903 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1904 # that executables *can* be run.
1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908 if { { ac_try="$ac_link"
1910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1911 *) ac_try_echo=$ac_try;;
1913 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1914 $as_echo "$ac_try_echo"; } >&5
1915 (eval "$ac_link") 2>&5
1917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1918 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1919 { { case "(($ac_try" in
1920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1921 *) ac_try_echo=$ac_try;;
1923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1924 $as_echo "$ac_try_echo"; } >&5
1925 (eval "$ac_try") 2>&5
1927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1928 test $ac_status = 0; }; }; then :
1931 $as_echo "$as_me: program exited with status $ac_status" >&5
1932 $as_echo "$as_me: failed program was:" >&5
1933 sed 's/^/| /' conftest.$ac_ext >&5
1935 ac_retval=$ac_status
1937 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939 as_fn_set_status $ac_retval
1943 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1944 # -------------------------------------------------------
1945 # Tests whether HEADER exists and can be compiled using the include files in
1946 # INCLUDES, setting the cache variable VAR accordingly.
1947 ac_fn_c_check_header_compile ()
1949 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1951 $as_echo_n "checking for $2... " >&6; }
1952 if eval \${$3+:} false; then :
1953 $as_echo_n "(cached) " >&6
1955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956 /* end confdefs.h. */
1960 if ac_fn_c_try_compile "$LINENO"; then :
1965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1969 $as_echo "$ac_res" >&6; }
1970 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1972 } # ac_fn_c_check_header_compile
1974 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1975 # ----------------------------------------------------
1976 # Tries to find if the field MEMBER exists in type AGGR, after including
1977 # INCLUDES, setting cache variable VAR accordingly.
1978 ac_fn_c_check_member ()
1980 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1982 $as_echo_n "checking for $2.$3... " >&6; }
1983 if eval \${$4+:} false; then :
1984 $as_echo_n "(cached) " >&6
1986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987 /* end confdefs.h. */
1999 if ac_fn_c_try_compile "$LINENO"; then :
2002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003 /* end confdefs.h. */
2009 if (sizeof ac_aggr.$3)
2015 if ac_fn_c_try_compile "$LINENO"; then :
2020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2026 $as_echo "$ac_res" >&6; }
2027 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2029 } # ac_fn_c_check_member
2031 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2032 # -------------------------------------------
2033 # Tests whether TYPE exists after having included INCLUDES, setting cache
2034 # variable VAR accordingly.
2035 ac_fn_c_check_type ()
2037 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2039 $as_echo_n "checking for $2... " >&6; }
2040 if eval \${$3+:} false; then :
2041 $as_echo_n "(cached) " >&6
2044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045 /* end confdefs.h. */
2056 if ac_fn_c_try_compile "$LINENO"; then :
2057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058 /* end confdefs.h. */
2069 if ac_fn_c_try_compile "$LINENO"; then :
2074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2080 $as_echo "$ac_res" >&6; }
2081 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2083 } # ac_fn_c_check_type
2085 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2086 # --------------------------------------------
2087 # Tries to find the compile-time value of EXPR in a program that includes
2088 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2090 ac_fn_c_compute_int ()
2092 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2093 if test "$cross_compiling" = yes; then
2094 # Depending upon the size, compute the lo and hi bounds.
2095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2096 /* end confdefs.h. */
2101 static int test_array [1 - 2 * !(($2) >= 0)];
2103 return test_array [0];
2109 if ac_fn_c_try_compile "$LINENO"; then :
2112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2113 /* end confdefs.h. */
2118 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2120 return test_array [0];
2126 if ac_fn_c_try_compile "$LINENO"; then :
2127 ac_hi=$ac_mid; break
2129 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2130 if test $ac_lo -le $ac_mid; then
2134 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140 /* end confdefs.h. */
2145 static int test_array [1 - 2 * !(($2) < 0)];
2147 return test_array [0];
2153 if ac_fn_c_try_compile "$LINENO"; then :
2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157 /* end confdefs.h. */
2162 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2164 return test_array [0];
2170 if ac_fn_c_try_compile "$LINENO"; then :
2171 ac_lo=$ac_mid; break
2173 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2174 if test $ac_mid -le $ac_hi; then
2178 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2188 # Binary search between lo and hi bounds.
2189 while test "x$ac_lo" != "x$ac_hi"; do
2190 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2192 /* end confdefs.h. */
2197 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2199 return test_array [0];
2205 if ac_fn_c_try_compile "$LINENO"; then :
2208 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2213 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218 /* end confdefs.h. */
2220 static long int longval () { return $2; }
2221 static unsigned long int ulongval () { return $2; }
2228 FILE *f = fopen ("conftest.val", "w");
2233 long int i = longval ();
2236 fprintf (f, "%ld", i);
2240 unsigned long int i = ulongval ();
2243 fprintf (f, "%lu", i);
2245 /* Do not output a trailing newline, as this causes \r\n confusion
2246 on some platforms. */
2247 return ferror (f) || fclose (f) != 0;
2253 if ac_fn_c_try_run "$LINENO"; then :
2254 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2258 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2259 conftest.$ac_objext conftest.beam conftest.$ac_ext
2263 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2264 as_fn_set_status $ac_retval
2266 } # ac_fn_c_compute_int
2268 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2269 # ---------------------------------------------
2270 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2272 ac_fn_c_check_decl ()
2274 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2275 as_decl_name=`echo $2|sed 's/ *(.*//'`
2276 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2278 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2279 if eval \${$3+:} false; then :
2280 $as_echo_n "(cached) " >&6
2282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2283 /* end confdefs.h. */
2288 #ifndef $as_decl_name
2290 (void) $as_decl_use;
2292 (void) $as_decl_name;
2300 if ac_fn_c_try_compile "$LINENO"; then :
2305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2309 $as_echo "$ac_res" >&6; }
2310 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2312 } # ac_fn_c_check_decl
2313 cat >config.log <<_ACEOF
2314 This file contains any messages produced by compilers while
2315 running configure, to aid debugging if configure makes a mistake.
2317 It was created by PostgreSQL $as_me 9.5devel, which was
2318 generated by GNU Autoconf 2.69. Invocation command line was
2330 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2331 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2332 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2333 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2334 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2336 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2337 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2339 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2340 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2341 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2342 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2343 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2344 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2345 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2353 test -z "$as_dir" && as_dir=.
2354 $as_echo "PATH: $as_dir"
2370 # Keep a trace of the command line.
2371 # Strip out --no-create and --no-recursion so they do not pile up.
2372 # Strip out --silent because we don't want to record it for future runs.
2373 # Also quote any args containing shell meta-characters.
2374 # Make two passes to allow for proper duplicate-argument suppression.
2378 ac_must_keep_next=false
2384 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2385 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2386 | -silent | --silent | --silen | --sile | --sil)
2389 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2392 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2394 as_fn_append ac_configure_args1 " '$ac_arg'"
2395 if test $ac_must_keep_next = true; then
2396 ac_must_keep_next=false # Got value, back to normal.
2399 *=* | --config-cache | -C | -disable-* | --disable-* \
2400 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2401 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2402 | -with-* | --with-* | -without-* | --without-* | --x)
2403 case "$ac_configure_args0 " in
2404 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2407 -* ) ac_must_keep_next=true ;;
2410 as_fn_append ac_configure_args " '$ac_arg'"
2415 { ac_configure_args0=; unset ac_configure_args0;}
2416 { ac_configure_args1=; unset ac_configure_args1;}
2418 # When interrupted or exit'd, cleanup temporary files, and complete
2419 # config.log. We remove comments because anyway the quotes in there
2420 # would cause problems or look ugly.
2421 # WARNING: Use '\'' to represent an apostrophe within the trap.
2422 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2423 trap 'exit_status=$?
2424 # Save into config.log some information that might help in debugging.
2428 $as_echo "## ---------------- ##
2429 ## Cache variables. ##
2430 ## ---------------- ##"
2432 # The following way of writing the cache mishandles newlines in values,
2434 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2435 eval ac_val=\$$ac_var
2439 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2440 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2443 _ | IFS | as_nl) ;; #(
2444 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2445 *) { eval $ac_var=; unset $ac_var;} ;;
2450 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2451 *${as_nl}ac_space=\ *)
2453 "s/'\''/'\''\\\\'\'''\''/g;
2454 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2457 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2464 $as_echo "## ----------------- ##
2465 ## Output variables. ##
2466 ## ----------------- ##"
2468 for ac_var in $ac_subst_vars
2470 eval ac_val=\$$ac_var
2472 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2474 $as_echo "$ac_var='\''$ac_val'\''"
2478 if test -n "$ac_subst_files"; then
2479 $as_echo "## ------------------- ##
2480 ## File substitutions. ##
2481 ## ------------------- ##"
2483 for ac_var in $ac_subst_files
2485 eval ac_val=\$$ac_var
2487 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2489 $as_echo "$ac_var='\''$ac_val'\''"
2494 if test -s confdefs.h; then
2495 $as_echo "## ----------- ##
2502 test "$ac_signal" != 0 &&
2503 $as_echo "$as_me: caught signal $ac_signal"
2504 $as_echo "$as_me: exit $exit_status"
2506 rm -f core *.core core.conftest.* &&
2507 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2510 for ac_signal in 1 2 13 15; do
2511 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2515 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2516 rm -f -r conftest* confdefs.h
2518 $as_echo "/* confdefs.h */" > confdefs.h
2520 # Predefined preprocessor variables.
2522 cat >>confdefs.h <<_ACEOF
2523 #define PACKAGE_NAME "$PACKAGE_NAME"
2526 cat >>confdefs.h <<_ACEOF
2527 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2530 cat >>confdefs.h <<_ACEOF
2531 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2534 cat >>confdefs.h <<_ACEOF
2535 #define PACKAGE_STRING "$PACKAGE_STRING"
2538 cat >>confdefs.h <<_ACEOF
2539 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2542 cat >>confdefs.h <<_ACEOF
2543 #define PACKAGE_URL "$PACKAGE_URL"
2547 # Let the site file select an alternate cache file if it wants to.
2548 # Prefer an explicitly selected file to automatically selected ones.
2551 if test -n "$CONFIG_SITE"; then
2552 # We do not want a PATH search for config.site.
2553 case $CONFIG_SITE in #((
2554 -*) ac_site_file1=./$CONFIG_SITE;;
2555 */*) ac_site_file1=$CONFIG_SITE;;
2556 *) ac_site_file1=./$CONFIG_SITE;;
2558 elif test "x$prefix" != xNONE; then
2559 ac_site_file1=$prefix/share/config.site
2560 ac_site_file2=$prefix/etc/config.site
2562 ac_site_file1=$ac_default_prefix/share/config.site
2563 ac_site_file2=$ac_default_prefix/etc/config.site
2565 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2567 test "x$ac_site_file" = xNONE && continue
2568 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2570 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2571 sed 's/^/| /' "$ac_site_file" >&5
2573 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2575 as_fn_error $? "failed to load site script $ac_site_file
2576 See \`config.log' for more details" "$LINENO" 5; }
2580 if test -r "$cache_file"; then
2581 # Some versions of bash will fail to source /dev/null (special files
2582 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2583 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2585 $as_echo "$as_me: loading cache $cache_file" >&6;}
2587 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2588 *) . "./$cache_file";;
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2593 $as_echo "$as_me: creating cache $cache_file" >&6;}
2597 # Check that the precious variables saved in the cache have kept the same
2599 ac_cache_corrupted=false
2600 for ac_var in $ac_precious_vars; do
2601 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2602 eval ac_new_set=\$ac_env_${ac_var}_set
2603 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2604 eval ac_new_val=\$ac_env_${ac_var}_value
2605 case $ac_old_set,$ac_new_set in
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2608 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2609 ac_cache_corrupted=: ;;
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2612 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2613 ac_cache_corrupted=: ;;
2616 if test "x$ac_old_val" != "x$ac_new_val"; then
2617 # differences in whitespace do not lead to failure.
2618 ac_old_val_w=`echo x $ac_old_val`
2619 ac_new_val_w=`echo x $ac_new_val`
2620 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2622 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2623 ac_cache_corrupted=:
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2626 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2627 eval $ac_var=\$ac_old_val
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2630 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2632 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2635 # Pass precious variables to config.status.
2636 if test "$ac_new_set" = set; then
2638 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2639 *) ac_arg=$ac_var=$ac_new_val ;;
2641 case " $ac_configure_args " in
2642 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2643 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2647 if $ac_cache_corrupted; then
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2649 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2651 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2652 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2654 ## -------------------- ##
2655 ## Main body of script. ##
2656 ## -------------------- ##
2659 ac_cpp='$CPP $CPPFLAGS'
2660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2670 for ac_dir in config "$srcdir"/config; do
2671 if test -f "$ac_dir/install-sh"; then
2673 ac_install_sh="$ac_aux_dir/install-sh -c"
2675 elif test -f "$ac_dir/install.sh"; then
2677 ac_install_sh="$ac_aux_dir/install.sh -c"
2679 elif test -f "$ac_dir/shtool"; then
2681 ac_install_sh="$ac_aux_dir/shtool install -c"
2685 if test -z "$ac_aux_dir"; then
2686 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2689 # These three variables are undocumented and unsupported,
2690 # and are intended to be withdrawn in a future Autoconf release.
2691 # They can cause serious problems if a builder's source tree is in a directory
2692 # whose full name contains unusual characters.
2693 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2694 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2695 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2699 configure_args=$ac_configure_args
2702 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`
2705 cat >>confdefs.h <<_ACEOF
2706 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2713 # Check whether --with-extra-version was given.
2714 if test "${with_extra_version+set}" = set; then :
2715 withval=$with_extra_version;
2718 as_fn_error $? "argument required for --with-extra-version option" "$LINENO" 5
2721 as_fn_error $? "argument required for --with-extra-version option" "$LINENO" 5
2724 PG_VERSION="$PACKAGE_VERSION$withval"
2729 PG_VERSION="$PACKAGE_VERSION"
2734 cat >>confdefs.h <<_ACEOF
2735 #define PG_VERSION "$PG_VERSION"
2739 # Make sure we can run config.sub.
2740 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2741 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2744 $as_echo_n "checking build system type... " >&6; }
2745 if ${ac_cv_build+:} false; then :
2746 $as_echo_n "(cached) " >&6
2748 ac_build_alias=$build_alias
2749 test "x$ac_build_alias" = x &&
2750 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2751 test "x$ac_build_alias" = x &&
2752 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2753 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2754 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2758 $as_echo "$ac_cv_build" >&6; }
2759 case $ac_cv_build in
2761 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2764 ac_save_IFS=$IFS; IFS='-'
2770 # Remember, the first character of IFS is used to create $*,
2771 # except with old shells:
2774 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2778 $as_echo_n "checking host system type... " >&6; }
2779 if ${ac_cv_host+:} false; then :
2780 $as_echo_n "(cached) " >&6
2782 if test "x$host_alias" = x; then
2783 ac_cv_host=$ac_cv_build
2785 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2786 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2791 $as_echo "$ac_cv_host" >&6; }
2794 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2797 ac_save_IFS=$IFS; IFS='-'
2803 # Remember, the first character of IFS is used to create $*,
2804 # except with old shells:
2807 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which template to use" >&5
2813 $as_echo_n "checking which template to use... " >&6; }
2818 # Check whether --with-template was given.
2819 if test "${with_template+set}" = set; then :
2820 withval=$with_template;
2823 as_fn_error $? "argument required for --with-template option" "$LINENO" 5
2826 as_fn_error $? "argument required for --with-template option" "$LINENO" 5
2831 list) echo; ls "$srcdir/src/template"; exit;;
2832 *) if test -f "$srcdir/src/template/$with_template" ; then
2835 as_fn_error $? "'$withval' is not a valid template name. Use 'list' for a list." "$LINENO" 5
2844 # --with-template not given
2847 aix*) template=aix ;;
2848 cygwin*) template=cygwin ;;
2849 darwin*) template=darwin ;;
2850 dragonfly*) template=netbsd ;;
2851 freebsd*) template=freebsd ;;
2852 hpux*) template=hpux ;;
2853 linux*|gnu*|k*bsd*-gnu)
2855 mingw*) template=win32 ;;
2856 netbsd*) template=netbsd ;;
2857 openbsd*) template=openbsd ;;
2858 sco*) template=sco ;;
2859 solaris*) template=solaris ;;
2860 sysv5*) template=unixware ;;
2863 if test x"$template" = x"" ; then
2865 *******************************************************************
2866 PostgreSQL has apparently not been ported to your platform yet.
2867 To try a manual configuration, look into the src/template directory
2868 for a similar platform and use the '--with-template=' option.
2870 Please also contact <pgsql-bugs@postgresql.org> to see about
2871 rectifying this. Include the above 'checking host system type...'
2873 *******************************************************************
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $template" >&5
2883 $as_echo "$template" >&6; }
2888 # Initialize default assumption that we do not need separate assembly code
2889 # for TAS (test-and-set). This can be overridden by the template file
2890 # when it's executed.
2897 ## Command line options
2901 # Add non-standard directories to the include path
2906 # Check whether --with-includes was given.
2907 if test "${with_includes+set}" = set; then :
2908 withval=$with_includes;
2911 as_fn_error $? "argument required for --with-includes option" "$LINENO" 5
2914 as_fn_error $? "argument required for --with-includes option" "$LINENO" 5
2927 # Add non-standard directories to the library search path
2932 # Check whether --with-libraries was given.
2933 if test "${with_libraries+set}" = set; then :
2934 withval=$with_libraries;
2937 as_fn_error $? "argument required for --with-libraries option" "$LINENO" 5
2940 as_fn_error $? "argument required for --with-libraries option" "$LINENO" 5
2943 LIBRARY_DIRS=$withval
2954 # Check whether --with-libs was given.
2955 if test "${with_libs+set}" = set; then :
2959 as_fn_error $? "argument required for --with-libs option" "$LINENO" 5
2962 as_fn_error $? "argument required for --with-libs option" "$LINENO" 5
2965 LIBRARY_DIRS=$withval
2975 # 64-bit integer date/time storage: enabled by default.
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with 64-bit integer date/time support" >&5
2978 $as_echo_n "checking whether to build with 64-bit integer date/time support... " >&6; }
2981 # Check whether --enable-integer-datetimes was given.
2982 if test "${enable_integer_datetimes+set}" = set; then :
2983 enableval=$enable_integer_datetimes;
2987 $as_echo "#define USE_INTEGER_DATETIMES 1" >>confdefs.h
2994 as_fn_error $? "no argument expected for --enable-integer-datetimes option" "$LINENO" 5
2999 enable_integer_datetimes=yes
3001 $as_echo "#define USE_INTEGER_DATETIMES 1" >>confdefs.h
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_integer_datetimes" >&5
3007 $as_echo "$enable_integer_datetimes" >&6; }
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is wanted" >&5
3014 $as_echo_n "checking whether NLS is wanted... " >&6; }
3017 # Check whether --enable-nls was given.
3018 if test "${enable_nls+set}" = set; then :
3019 enableval=$enable_nls;
3029 WANTED_LANGUAGES=$enableval
3039 if test "$enable_nls" = yes; then
3041 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nls" >&5
3046 $as_echo "$enable_nls" >&6; }
3051 # Default port number (--with-pgport), default 5432
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default port number" >&5
3054 $as_echo_n "checking for default port number... " >&6; }
3058 # Check whether --with-pgport was given.
3059 if test "${with_pgport+set}" = set; then :
3060 withval=$with_pgport;
3063 as_fn_error $? "argument required for --with-pgport option" "$LINENO" 5
3066 as_fn_error $? "argument required for --with-pgport option" "$LINENO" 5
3069 default_port=$withval
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $default_port" >&5
3079 $as_echo "$default_port" >&6; }
3080 # Need both of these because some places want an integer and some a string
3082 cat >>confdefs.h <<_ACEOF
3083 #define DEF_PGPORT ${default_port}
3087 cat >>confdefs.h <<_ACEOF
3088 #define DEF_PGPORT_STR "${default_port}"
3094 # '-rpath'-like feature can be disabled
3098 # Check whether --enable-rpath was given.
3099 if test "${enable_rpath+set}" = set; then :
3100 enableval=$enable_rpath;
3109 as_fn_error $? "no argument expected for --enable-rpath option" "$LINENO" 5
3126 # Check whether --enable-spinlocks was given.
3127 if test "${enable_spinlocks+set}" = set; then :
3128 enableval=$enable_spinlocks;
3137 as_fn_error $? "no argument expected for --enable-spinlocks option" "$LINENO" 5
3142 enable_spinlocks=yes
3149 # --enable-debug adds -g to compiler flags
3153 # Check whether --enable-debug was given.
3154 if test "${enable_debug+set}" = set; then :
3155 enableval=$enable_debug;
3164 as_fn_error $? "no argument expected for --enable-debug option" "$LINENO" 5
3177 # --enable-profiling enables gcc profiling
3181 # Check whether --enable-profiling was given.
3182 if test "${enable_profiling+set}" = set; then :
3183 enableval=$enable_profiling;
3192 as_fn_error $? "no argument expected for --enable-profiling option" "$LINENO" 5
3204 # --enable-coverage enables generation of code coverage metrics with gcov
3208 # Check whether --enable-coverage was given.
3209 if test "${enable_coverage+set}" = set; then :
3210 enableval=$enable_coverage;
3215 # Extract the first word of "$ac_prog", so it can be a program name with args.
3216 set dummy $ac_prog; ac_word=$2
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3218 $as_echo_n "checking for $ac_word... " >&6; }
3219 if ${ac_cv_prog_GCOV+:} false; then :
3220 $as_echo_n "(cached) " >&6
3222 if test -n "$GCOV"; then
3223 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
3225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3229 test -z "$as_dir" && as_dir=.
3230 for ac_exec_ext in '' $ac_executable_extensions; do
3231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3232 ac_cv_prog_GCOV="$ac_prog"
3233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3242 GCOV=$ac_cv_prog_GCOV
3243 if test -n "$GCOV"; then
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
3245 $as_echo "$GCOV" >&6; }
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3248 $as_echo "no" >&6; }
3252 test -n "$GCOV" && break
3255 if test -z "$GCOV"; then
3256 as_fn_error $? "gcov not found" "$LINENO" 5
3260 # Extract the first word of "$ac_prog", so it can be a program name with args.
3261 set dummy $ac_prog; ac_word=$2
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3263 $as_echo_n "checking for $ac_word... " >&6; }
3264 if ${ac_cv_prog_LCOV+:} false; then :
3265 $as_echo_n "(cached) " >&6
3267 if test -n "$LCOV"; then
3268 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
3270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274 test -z "$as_dir" && as_dir=.
3275 for ac_exec_ext in '' $ac_executable_extensions; do
3276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3277 ac_cv_prog_LCOV="$ac_prog"
3278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3287 LCOV=$ac_cv_prog_LCOV
3288 if test -n "$LCOV"; then
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
3290 $as_echo "$LCOV" >&6; }
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293 $as_echo "no" >&6; }
3297 test -n "$LCOV" && break
3300 if test -z "$LCOV"; then
3301 as_fn_error $? "lcov not found" "$LINENO" 5
3303 for ac_prog in genhtml
3305 # Extract the first word of "$ac_prog", so it can be a program name with args.
3306 set dummy $ac_prog; ac_word=$2
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3308 $as_echo_n "checking for $ac_word... " >&6; }
3309 if ${ac_cv_prog_GENHTML+:} false; then :
3310 $as_echo_n "(cached) " >&6
3312 if test -n "$GENHTML"; then
3313 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
3315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3319 test -z "$as_dir" && as_dir=.
3320 for ac_exec_ext in '' $ac_executable_extensions; do
3321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3322 ac_cv_prog_GENHTML="$ac_prog"
3323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3332 GENHTML=$ac_cv_prog_GENHTML
3333 if test -n "$GENHTML"; then
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
3335 $as_echo "$GENHTML" >&6; }
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3338 $as_echo "no" >&6; }
3342 test -n "$GENHTML" && break
3345 if test -z "$GENHTML"; then
3346 as_fn_error $? "genhtml not found" "$LINENO" 5
3353 as_fn_error $? "no argument expected for --enable-coverage option" "$LINENO" 5
3370 # Check whether --enable-dtrace was given.
3371 if test "${enable_dtrace+set}" = set; then :
3372 enableval=$enable_dtrace;
3375 for ac_prog in dtrace
3377 # Extract the first word of "$ac_prog", so it can be a program name with args.
3378 set dummy $ac_prog; ac_word=$2
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3380 $as_echo_n "checking for $ac_word... " >&6; }
3381 if ${ac_cv_prog_DTRACE+:} false; then :
3382 $as_echo_n "(cached) " >&6
3384 if test -n "$DTRACE"; then
3385 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
3387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391 test -z "$as_dir" && as_dir=.
3392 for ac_exec_ext in '' $ac_executable_extensions; do
3393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3394 ac_cv_prog_DTRACE="$ac_prog"
3395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3404 DTRACE=$ac_cv_prog_DTRACE
3405 if test -n "$DTRACE"; then
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
3407 $as_echo "$DTRACE" >&6; }
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3410 $as_echo "no" >&6; }
3414 test -n "$DTRACE" && break
3417 if test -z "$DTRACE"; then
3418 as_fn_error $? "dtrace not found" "$LINENO" 5
3426 as_fn_error $? "no argument expected for --enable-dtrace option" "$LINENO" 5
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for block size" >&5
3442 $as_echo_n "checking for block size... " >&6; }
3446 # Check whether --with-blocksize was given.
3447 if test "${with_blocksize+set}" = set; then :
3448 withval=$with_blocksize;
3451 as_fn_error $? "argument required for --with-blocksize option" "$LINENO" 5
3454 as_fn_error $? "argument required for --with-blocksize option" "$LINENO" 5
3466 case ${blocksize} in
3473 *) as_fn_error $? "Invalid block size. Allowed values are 1,2,4,8,16,32." "$LINENO" 5
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${blocksize}kB" >&5
3476 $as_echo "${blocksize}kB" >&6; }
3479 cat >>confdefs.h <<_ACEOF
3480 #define BLCKSZ ${BLCKSZ}
3485 # Relation segment size
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for segment size" >&5
3488 $as_echo_n "checking for segment size... " >&6; }
3492 # Check whether --with-segsize was given.
3493 if test "${with_segsize+set}" = set; then :
3494 withval=$with_segsize;
3497 as_fn_error $? "argument required for --with-segsize option" "$LINENO" 5
3500 as_fn_error $? "argument required for --with-segsize option" "$LINENO" 5
3512 # this expression is set up to avoid unnecessary integer overflow
3513 # blocksize is already guaranteed to be a factor of 1024
3514 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
3515 test $? -eq 0 || exit 1
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${segsize}GB" >&5
3517 $as_echo "${segsize}GB" >&6; }
3520 cat >>confdefs.h <<_ACEOF
3521 #define RELSEG_SIZE ${RELSEG_SIZE}
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAL block size" >&5
3529 $as_echo_n "checking for WAL block size... " >&6; }
3533 # Check whether --with-wal-blocksize was given.
3534 if test "${with_wal_blocksize+set}" = set; then :
3535 withval=$with_wal_blocksize;
3538 as_fn_error $? "argument required for --with-wal-blocksize option" "$LINENO" 5
3541 as_fn_error $? "argument required for --with-wal-blocksize option" "$LINENO" 5
3544 wal_blocksize=$withval
3553 case ${wal_blocksize} in
3554 1) XLOG_BLCKSZ=1024;;
3555 2) XLOG_BLCKSZ=2048;;
3556 4) XLOG_BLCKSZ=4096;;
3557 8) XLOG_BLCKSZ=8192;;
3558 16) XLOG_BLCKSZ=16384;;
3559 32) XLOG_BLCKSZ=32768;;
3560 64) XLOG_BLCKSZ=65536;;
3561 *) as_fn_error $? "Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." "$LINENO" 5
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${wal_blocksize}kB" >&5
3564 $as_echo "${wal_blocksize}kB" >&6; }
3567 cat >>confdefs.h <<_ACEOF
3568 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAL segment size" >&5
3576 $as_echo_n "checking for WAL segment size... " >&6; }
3580 # Check whether --with-wal-segsize was given.
3581 if test "${with_wal_segsize+set}" = set; then :
3582 withval=$with_wal_segsize;
3585 as_fn_error $? "argument required for --with-wal-segsize option" "$LINENO" 5
3588 as_fn_error $? "argument required for --with-wal-segsize option" "$LINENO" 5
3591 wal_segsize=$withval
3600 case ${wal_segsize} in
3608 *) as_fn_error $? "Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." "$LINENO" 5
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${wal_segsize}MB" >&5
3611 $as_echo "${wal_segsize}MB" >&6; }
3614 cat >>confdefs.h <<_ACEOF
3615 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
3623 # For historical reasons you can also use --with-CC to specify the C compiler
3624 # to use, although the standard way to do this is to set the CC environment
3629 # Check whether --with-CC was given.
3630 if test "${with_CC+set}" = set; then :
3634 as_fn_error $? "argument required for --with-CC option" "$LINENO" 5
3637 as_fn_error $? "argument required for --with-CC option" "$LINENO" 5
3649 aix) pgac_cc_list="gcc xlc";;
3650 *) pgac_cc_list="gcc cc";;
3654 ac_cpp='$CPP $CPPFLAGS'
3655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3658 if test -n "$ac_tool_prefix"; then
3659 for ac_prog in $pgac_cc_list
3661 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3662 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3664 $as_echo_n "checking for $ac_word... " >&6; }
3665 if ${ac_cv_prog_CC+:} false; then :
3666 $as_echo_n "(cached) " >&6
3668 if test -n "$CC"; then
3669 ac_cv_prog_CC="$CC" # Let the user override the test.
3671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3675 test -z "$as_dir" && as_dir=.
3676 for ac_exec_ext in '' $ac_executable_extensions; do
3677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3678 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3689 if test -n "$CC"; then
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3691 $as_echo "$CC" >&6; }
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3694 $as_echo "no" >&6; }
3698 test -n "$CC" && break
3701 if test -z "$CC"; then
3703 for ac_prog in $pgac_cc_list
3705 # Extract the first word of "$ac_prog", so it can be a program name with args.
3706 set dummy $ac_prog; ac_word=$2
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3708 $as_echo_n "checking for $ac_word... " >&6; }
3709 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3710 $as_echo_n "(cached) " >&6
3712 if test -n "$ac_ct_CC"; then
3713 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3719 test -z "$as_dir" && as_dir=.
3720 for ac_exec_ext in '' $ac_executable_extensions; do
3721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3722 ac_cv_prog_ac_ct_CC="$ac_prog"
3723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3732 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3733 if test -n "$ac_ct_CC"; then
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3735 $as_echo "$ac_ct_CC" >&6; }
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3738 $as_echo "no" >&6; }
3742 test -n "$ac_ct_CC" && break
3745 if test "x$ac_ct_CC" = x; then
3748 case $cross_compiling:$ac_tool_warned in
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3751 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3752 ac_tool_warned=yes ;;
3759 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3760 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3761 as_fn_error $? "no acceptable C compiler found in \$PATH
3762 See \`config.log' for more details" "$LINENO" 5; }
3764 # Provide some information about the compiler.
3765 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3768 for ac_option in --version -v -V -qversion; do
3769 { { ac_try="$ac_compiler $ac_option >&5"
3771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3772 *) ac_try_echo=$ac_try;;
3774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3775 $as_echo "$ac_try_echo"; } >&5
3776 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3778 if test -s conftest.err; then
3780 ... rest of stderr output deleted ...
3781 10q' conftest.err >conftest.er1
3782 cat conftest.er1 >&5
3784 rm -f conftest.er1 conftest.err
3785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3786 test $ac_status = 0; }
3789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3790 /* end confdefs.h. */
3800 ac_clean_files_save=$ac_clean_files
3801 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3802 # Try to create an executable without -o first, disregard a.out.
3803 # It will help us diagnose broken compilers, and finding out an intuition
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3806 $as_echo_n "checking whether the C compiler works... " >&6; }
3807 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3809 # The possible output files:
3810 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3813 for ac_file in $ac_files
3816 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3817 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3822 if { { ac_try="$ac_link_default"
3824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3825 *) ac_try_echo=$ac_try;;
3827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3828 $as_echo "$ac_try_echo"; } >&5
3829 (eval "$ac_link_default") 2>&5
3831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3832 test $ac_status = 0; }; then :
3833 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3834 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3835 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3836 # so that the user can short-circuit this test for compilers unknown to
3838 for ac_file in $ac_files ''
3840 test -f "$ac_file" || continue
3842 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3845 # We found the default executable, but exeext='' is most
3849 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3851 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3853 # We set ac_cv_exeext here because the later test for it is not
3854 # safe: cross compilers may not add the suffix if given an `-o'
3855 # argument, so we may need to know it at that point already.
3856 # Even if this section looks crufty: it has the advantage of
3863 test "$ac_cv_exeext" = no && ac_cv_exeext=
3868 if test -z "$ac_file"; then :
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3870 $as_echo "no" >&6; }
3871 $as_echo "$as_me: failed program was:" >&5
3872 sed 's/^/| /' conftest.$ac_ext >&5
3874 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3875 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3876 as_fn_error 77 "C compiler cannot create executables
3877 See \`config.log' for more details" "$LINENO" 5; }
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3880 $as_echo "yes" >&6; }
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3883 $as_echo_n "checking for C compiler default output file name... " >&6; }
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3885 $as_echo "$ac_file" >&6; }
3886 ac_exeext=$ac_cv_exeext
3888 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3889 ac_clean_files=$ac_clean_files_save
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3891 $as_echo_n "checking for suffix of executables... " >&6; }
3892 if { { ac_try="$ac_link"
3894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3895 *) ac_try_echo=$ac_try;;
3897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3898 $as_echo "$ac_try_echo"; } >&5
3899 (eval "$ac_link") 2>&5
3901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3902 test $ac_status = 0; }; then :
3903 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3904 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3905 # work properly (i.e., refer to `conftest.exe'), while it won't with
3907 for ac_file in conftest.exe conftest conftest.*; do
3908 test -f "$ac_file" || continue
3910 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3911 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3917 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3918 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3919 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3920 See \`config.log' for more details" "$LINENO" 5; }
3922 rm -f conftest conftest$ac_cv_exeext
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3924 $as_echo "$ac_cv_exeext" >&6; }
3926 rm -f conftest.$ac_ext
3927 EXEEXT=$ac_cv_exeext
3929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3930 /* end confdefs.h. */
3935 FILE *f = fopen ("conftest.out", "w");
3936 return ferror (f) || fclose (f) != 0;
3942 ac_clean_files="$ac_clean_files conftest.out"
3943 # Check that the compiler produces executables we can run. If not, either
3944 # the compiler is broken, or we cross compile.
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3946 $as_echo_n "checking whether we are cross compiling... " >&6; }
3947 if test "$cross_compiling" != yes; then
3948 { { ac_try="$ac_link"
3950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3951 *) ac_try_echo=$ac_try;;
3953 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3954 $as_echo "$ac_try_echo"; } >&5
3955 (eval "$ac_link") 2>&5
3957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3958 test $ac_status = 0; }
3959 if { ac_try='./conftest$ac_cv_exeext'
3960 { { case "(($ac_try" in
3961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3962 *) ac_try_echo=$ac_try;;
3964 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3965 $as_echo "$ac_try_echo"; } >&5
3966 (eval "$ac_try") 2>&5
3968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3969 test $ac_status = 0; }; }; then
3972 if test "$cross_compiling" = maybe; then
3975 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3976 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3977 as_fn_error $? "cannot run C compiled programs.
3978 If you meant to cross compile, use \`--host'.
3979 See \`config.log' for more details" "$LINENO" 5; }
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3984 $as_echo "$cross_compiling" >&6; }
3986 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3987 ac_clean_files=$ac_clean_files_save
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3989 $as_echo_n "checking for suffix of object files... " >&6; }
3990 if ${ac_cv_objext+:} false; then :
3991 $as_echo_n "(cached) " >&6
3993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994 /* end confdefs.h. */
4004 rm -f conftest.o conftest.obj
4005 if { { ac_try="$ac_compile"
4007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4008 *) ac_try_echo=$ac_try;;
4010 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4011 $as_echo "$ac_try_echo"; } >&5
4012 (eval "$ac_compile") 2>&5
4014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4015 test $ac_status = 0; }; then :
4016 for ac_file in conftest.o conftest.obj conftest.*; do
4017 test -f "$ac_file" || continue;
4019 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4020 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4025 $as_echo "$as_me: failed program was:" >&5
4026 sed 's/^/| /' conftest.$ac_ext >&5
4028 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4029 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4030 as_fn_error $? "cannot compute suffix of object files: cannot compile
4031 See \`config.log' for more details" "$LINENO" 5; }
4033 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4036 $as_echo "$ac_cv_objext" >&6; }
4037 OBJEXT=$ac_cv_objext
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4040 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4041 if ${ac_cv_c_compiler_gnu+:} false; then :
4042 $as_echo_n "(cached) " >&6
4044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045 /* end confdefs.h. */
4058 if ac_fn_c_try_compile "$LINENO"; then :
4063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4064 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4068 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4069 if test $ac_compiler_gnu = yes; then
4074 ac_test_CFLAGS=${CFLAGS+set}
4075 ac_save_CFLAGS=$CFLAGS
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4077 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4078 if ${ac_cv_prog_cc_g+:} false; then :
4079 $as_echo_n "(cached) " >&6
4081 ac_save_c_werror_flag=$ac_c_werror_flag
4082 ac_c_werror_flag=yes
4085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4086 /* end confdefs.h. */
4096 if ac_fn_c_try_compile "$LINENO"; then :
4100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101 /* end confdefs.h. */
4111 if ac_fn_c_try_compile "$LINENO"; then :
4114 ac_c_werror_flag=$ac_save_c_werror_flag
4116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4117 /* end confdefs.h. */
4127 if ac_fn_c_try_compile "$LINENO"; then :
4130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4135 ac_c_werror_flag=$ac_save_c_werror_flag
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4138 $as_echo "$ac_cv_prog_cc_g" >&6; }
4139 if test "$ac_test_CFLAGS" = set; then
4140 CFLAGS=$ac_save_CFLAGS
4141 elif test $ac_cv_prog_cc_g = yes; then
4142 if test "$GCC" = yes; then
4148 if test "$GCC" = yes; then
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4155 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4156 if ${ac_cv_prog_cc_c89+:} false; then :
4157 $as_echo_n "(cached) " >&6
4159 ac_cv_prog_cc_c89=no
4161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4162 /* end confdefs.h. */
4166 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4167 struct buf { int x; };
4168 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4169 static char *e (p, i)
4175 static char *f (char * (*g) (char **, int), char **p, ...)
4180 s = g (p, va_arg (v,int));
4185 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4186 function prototypes and stuff, but not '\xHH' hex character constants.
4187 These don't provoke an error unfortunately, instead are silently treated
4188 as 'x'. The following induces an error, until -std is added to get
4189 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4190 array size at least. It's necessary to write '\x00'==0 to get something
4191 that's true only with -std. */
4192 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4194 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4195 inside strings and character constants. */
4197 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4199 int test (int i, double x);
4200 struct s1 {int (*f) (int a);};
4201 struct s2 {int (*f) (double a);};
4202 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4208 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4213 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4214 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4216 CC="$ac_save_CC $ac_arg"
4217 if ac_fn_c_try_compile "$LINENO"; then :
4218 ac_cv_prog_cc_c89=$ac_arg
4220 rm -f core conftest.err conftest.$ac_objext
4221 test "x$ac_cv_prog_cc_c89" != "xno" && break
4223 rm -f conftest.$ac_ext
4228 case "x$ac_cv_prog_cc_c89" in
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4231 $as_echo "none needed" >&6; } ;;
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4234 $as_echo "unsupported" >&6; } ;;
4236 CC="$CC $ac_cv_prog_cc_c89"
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4238 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4240 if test "x$ac_cv_prog_cc_c89" != xno; then :
4245 ac_cpp='$CPP $CPPFLAGS'
4246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4251 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
4252 # but has idiosyncrasies of its own. We assume icc will define
4253 # __INTEL_COMPILER regardless of CFLAGS.
4255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4256 /* end confdefs.h. */
4261 #ifndef __INTEL_COMPILER
4268 if ac_fn_c_try_compile "$LINENO"; then :
4273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4275 # Check if it's Sun Studio compiler. We assume that
4276 # __SUNPRO_C will be defined for Sun Studio compilers
4277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278 /* end confdefs.h. */
4290 if ac_fn_c_try_compile "$LINENO"; then :
4295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4304 . "$srcdir/src/template/$template" || exit
4306 # CFLAGS are selected so:
4307 # If the user specifies something in the environment, that is used.
4308 # else: If the template file set something, that is used.
4309 # else: If coverage was enabled, don't set anything.
4310 # else: If the compiler is GCC, then we use -O2.
4311 # else: If the compiler is something else, then we use -O, unless debugging.
4313 if test "$ac_env_CFLAGS_set" = set; then
4314 CFLAGS=$ac_env_CFLAGS_value
4315 elif test "${CFLAGS+set}" = set; then
4316 : # (keep what template set)
4317 elif test "$enable_coverage" = yes; then
4318 : # no optimization by default
4319 elif test "$GCC" = yes; then
4322 # if the user selected debug mode, don't use -O
4323 if test "$enable_debug" != yes; then
4328 # set CFLAGS_VECTOR from the environment, if available
4329 if test "$ac_env_CFLAGS_VECTOR_set" = set; then
4330 CFLAGS_VECTOR=$ac_env_CFLAGS_VECTOR_value
4333 # Some versions of GCC support some additional useful warning flags.
4334 # Check whether they are supported, and add them to CFLAGS if so.
4335 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
4336 # but has its own. Also check other compiler-specific flags here.
4338 if test "$GCC" = yes -a "$ICC" = no; then
4339 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
4340 # These work in some but not all gcc versions
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement" >&5
4342 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
4343 if ${pgac_cv_prog_cc_cflags__Wdeclaration_after_statement+:} false; then :
4344 $as_echo_n "(cached) " >&6
4346 pgac_save_CFLAGS=$CFLAGS
4347 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
4348 ac_save_c_werror_flag=$ac_c_werror_flag
4349 ac_c_werror_flag=yes
4350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4351 /* end confdefs.h. */
4361 if ac_fn_c_try_compile "$LINENO"; then :
4362 pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=yes
4364 pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=no
4366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4367 ac_c_werror_flag=$ac_save_c_werror_flag
4368 CFLAGS="$pgac_save_CFLAGS"
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&5
4371 $as_echo "$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&6; }
4372 if test x"$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" = x"yes"; then
4373 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wendif-labels" >&5
4377 $as_echo_n "checking whether $CC supports -Wendif-labels... " >&6; }
4378 if ${pgac_cv_prog_cc_cflags__Wendif_labels+:} false; then :
4379 $as_echo_n "(cached) " >&6
4381 pgac_save_CFLAGS=$CFLAGS
4382 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
4383 ac_save_c_werror_flag=$ac_c_werror_flag
4384 ac_c_werror_flag=yes
4385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4386 /* end confdefs.h. */
4396 if ac_fn_c_try_compile "$LINENO"; then :
4397 pgac_cv_prog_cc_cflags__Wendif_labels=yes
4399 pgac_cv_prog_cc_cflags__Wendif_labels=no
4401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4402 ac_c_werror_flag=$ac_save_c_werror_flag
4403 CFLAGS="$pgac_save_CFLAGS"
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__Wendif_labels" >&5
4406 $as_echo "$pgac_cv_prog_cc_cflags__Wendif_labels" >&6; }
4407 if test x"$pgac_cv_prog_cc_cflags__Wendif_labels" = x"yes"; then
4408 CFLAGS="$CFLAGS -Wendif-labels"
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wmissing-format-attribute" >&5
4412 $as_echo_n "checking whether $CC supports -Wmissing-format-attribute... " >&6; }
4413 if ${pgac_cv_prog_cc_cflags__Wmissing_format_attribute+:} false; then :
4414 $as_echo_n "(cached) " >&6
4416 pgac_save_CFLAGS=$CFLAGS
4417 CFLAGS="$pgac_save_CFLAGS -Wmissing-format-attribute"
4418 ac_save_c_werror_flag=$ac_c_werror_flag
4419 ac_c_werror_flag=yes
4420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4421 /* end confdefs.h. */
4431 if ac_fn_c_try_compile "$LINENO"; then :
4432 pgac_cv_prog_cc_cflags__Wmissing_format_attribute=yes
4434 pgac_cv_prog_cc_cflags__Wmissing_format_attribute=no
4436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4437 ac_c_werror_flag=$ac_save_c_werror_flag
4438 CFLAGS="$pgac_save_CFLAGS"
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&5
4441 $as_echo "$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&6; }
4442 if test x"$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" = x"yes"; then
4443 CFLAGS="$CFLAGS -Wmissing-format-attribute"
4446 # This was included in -Wall/-Wformat in older GCC versions
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wformat-security" >&5
4448 $as_echo_n "checking whether $CC supports -Wformat-security... " >&6; }
4449 if ${pgac_cv_prog_cc_cflags__Wformat_security+:} false; then :
4450 $as_echo_n "(cached) " >&6
4452 pgac_save_CFLAGS=$CFLAGS
4453 CFLAGS="$pgac_save_CFLAGS -Wformat-security"
4454 ac_save_c_werror_flag=$ac_c_werror_flag
4455 ac_c_werror_flag=yes
4456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4457 /* end confdefs.h. */
4467 if ac_fn_c_try_compile "$LINENO"; then :
4468 pgac_cv_prog_cc_cflags__Wformat_security=yes
4470 pgac_cv_prog_cc_cflags__Wformat_security=no
4472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4473 ac_c_werror_flag=$ac_save_c_werror_flag
4474 CFLAGS="$pgac_save_CFLAGS"
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__Wformat_security" >&5
4477 $as_echo "$pgac_cv_prog_cc_cflags__Wformat_security" >&6; }
4478 if test x"$pgac_cv_prog_cc_cflags__Wformat_security" = x"yes"; then
4479 CFLAGS="$CFLAGS -Wformat-security"
4482 # Disable strict-aliasing rules; needed for gcc 3.3+
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fno-strict-aliasing" >&5
4484 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4485 if ${pgac_cv_prog_cc_cflags__fno_strict_aliasing+:} false; then :
4486 $as_echo_n "(cached) " >&6
4488 pgac_save_CFLAGS=$CFLAGS
4489 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4490 ac_save_c_werror_flag=$ac_c_werror_flag
4491 ac_c_werror_flag=yes
4492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4493 /* end confdefs.h. */
4503 if ac_fn_c_try_compile "$LINENO"; then :
4504 pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4506 pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4509 ac_c_werror_flag=$ac_save_c_werror_flag
4510 CFLAGS="$pgac_save_CFLAGS"
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4513 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4514 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4515 CFLAGS="$CFLAGS -fno-strict-aliasing"
4518 # Disable optimizations that assume no overflow; needed for gcc 4.3+
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fwrapv" >&5
4520 $as_echo_n "checking whether $CC supports -fwrapv... " >&6; }
4521 if ${pgac_cv_prog_cc_cflags__fwrapv+:} false; then :
4522 $as_echo_n "(cached) " >&6
4524 pgac_save_CFLAGS=$CFLAGS
4525 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4526 ac_save_c_werror_flag=$ac_c_werror_flag
4527 ac_c_werror_flag=yes
4528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4529 /* end confdefs.h. */
4539 if ac_fn_c_try_compile "$LINENO"; then :
4540 pgac_cv_prog_cc_cflags__fwrapv=yes
4542 pgac_cv_prog_cc_cflags__fwrapv=no
4544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4545 ac_c_werror_flag=$ac_save_c_werror_flag
4546 CFLAGS="$pgac_save_CFLAGS"
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__fwrapv" >&5
4549 $as_echo "$pgac_cv_prog_cc_cflags__fwrapv" >&6; }
4550 if test x"$pgac_cv_prog_cc_cflags__fwrapv" = x"yes"; then
4551 CFLAGS="$CFLAGS -fwrapv"
4554 # Disable FP optimizations that cause various errors on gcc 4.5+ or maybe 4.6+
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fexcess-precision=standard" >&5
4556 $as_echo_n "checking whether $CC supports -fexcess-precision=standard... " >&6; }
4557 if ${pgac_cv_prog_cc_cflags__fexcess_precision_standard+:} false; then :
4558 $as_echo_n "(cached) " >&6
4560 pgac_save_CFLAGS=$CFLAGS
4561 CFLAGS="$pgac_save_CFLAGS -fexcess-precision=standard"
4562 ac_save_c_werror_flag=$ac_c_werror_flag
4563 ac_c_werror_flag=yes
4564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4565 /* end confdefs.h. */
4575 if ac_fn_c_try_compile "$LINENO"; then :
4576 pgac_cv_prog_cc_cflags__fexcess_precision_standard=yes
4578 pgac_cv_prog_cc_cflags__fexcess_precision_standard=no
4580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4581 ac_c_werror_flag=$ac_save_c_werror_flag
4582 CFLAGS="$pgac_save_CFLAGS"
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__fexcess_precision_standard" >&5
4585 $as_echo "$pgac_cv_prog_cc_cflags__fexcess_precision_standard" >&6; }
4586 if test x"$pgac_cv_prog_cc_cflags__fexcess_precision_standard" = x"yes"; then
4587 CFLAGS="$CFLAGS -fexcess-precision=standard"
4590 # Optimization flags for specific files that benefit from vectorization
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -funroll-loops" >&5
4592 $as_echo_n "checking whether $CC supports -funroll-loops... " >&6; }
4593 if ${pgac_cv_prog_cc_cflags__funroll_loops+:} false; then :
4594 $as_echo_n "(cached) " >&6
4596 pgac_save_CFLAGS=$CFLAGS
4597 CFLAGS="$pgac_save_CFLAGS -funroll-loops"
4598 ac_save_c_werror_flag=$ac_c_werror_flag
4599 ac_c_werror_flag=yes
4600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4601 /* end confdefs.h. */
4611 if ac_fn_c_try_compile "$LINENO"; then :
4612 pgac_cv_prog_cc_cflags__funroll_loops=yes
4614 pgac_cv_prog_cc_cflags__funroll_loops=no
4616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4617 ac_c_werror_flag=$ac_save_c_werror_flag
4618 CFLAGS="$pgac_save_CFLAGS"
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__funroll_loops" >&5
4621 $as_echo "$pgac_cv_prog_cc_cflags__funroll_loops" >&6; }
4622 if test x"$pgac_cv_prog_cc_cflags__funroll_loops" = x"yes"; then
4623 CFLAGS_VECTOR="${CFLAGS_VECTOR} -funroll-loops"
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -ftree-vectorize" >&5
4627 $as_echo_n "checking whether $CC supports -ftree-vectorize... " >&6; }
4628 if ${pgac_cv_prog_cc_cflags__ftree_vectorize+:} false; then :
4629 $as_echo_n "(cached) " >&6
4631 pgac_save_CFLAGS=$CFLAGS
4632 CFLAGS="$pgac_save_CFLAGS -ftree-vectorize"
4633 ac_save_c_werror_flag=$ac_c_werror_flag
4634 ac_c_werror_flag=yes
4635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4636 /* end confdefs.h. */
4646 if ac_fn_c_try_compile "$LINENO"; then :
4647 pgac_cv_prog_cc_cflags__ftree_vectorize=yes
4649 pgac_cv_prog_cc_cflags__ftree_vectorize=no
4651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4652 ac_c_werror_flag=$ac_save_c_werror_flag
4653 CFLAGS="$pgac_save_CFLAGS"
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__ftree_vectorize" >&5
4656 $as_echo "$pgac_cv_prog_cc_cflags__ftree_vectorize" >&6; }
4657 if test x"$pgac_cv_prog_cc_cflags__ftree_vectorize" = x"yes"; then
4658 CFLAGS_VECTOR="${CFLAGS_VECTOR} -ftree-vectorize"
4661 elif test "$ICC" = yes; then
4662 # Intel's compiler has a bug/misoptimization in checking for
4663 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -mp1" >&5
4665 $as_echo_n "checking whether $CC supports -mp1... " >&6; }
4666 if ${pgac_cv_prog_cc_cflags__mp1+:} false; then :
4667 $as_echo_n "(cached) " >&6
4669 pgac_save_CFLAGS=$CFLAGS
4670 CFLAGS="$pgac_save_CFLAGS -mp1"
4671 ac_save_c_werror_flag=$ac_c_werror_flag
4672 ac_c_werror_flag=yes
4673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4674 /* end confdefs.h. */
4684 if ac_fn_c_try_compile "$LINENO"; then :
4685 pgac_cv_prog_cc_cflags__mp1=yes
4687 pgac_cv_prog_cc_cflags__mp1=no
4689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4690 ac_c_werror_flag=$ac_save_c_werror_flag
4691 CFLAGS="$pgac_save_CFLAGS"
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__mp1" >&5
4694 $as_echo "$pgac_cv_prog_cc_cflags__mp1" >&6; }
4695 if test x"$pgac_cv_prog_cc_cflags__mp1" = x"yes"; then
4696 CFLAGS="$CFLAGS -mp1"
4699 # Make sure strict aliasing is off (though this is said to be the default)
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fno-strict-aliasing" >&5
4701 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4702 if ${pgac_cv_prog_cc_cflags__fno_strict_aliasing+:} false; then :
4703 $as_echo_n "(cached) " >&6
4705 pgac_save_CFLAGS=$CFLAGS
4706 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4707 ac_save_c_werror_flag=$ac_c_werror_flag
4708 ac_c_werror_flag=yes
4709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4710 /* end confdefs.h. */
4720 if ac_fn_c_try_compile "$LINENO"; then :
4721 pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4723 pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4726 ac_c_werror_flag=$ac_save_c_werror_flag
4727 CFLAGS="$pgac_save_CFLAGS"
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4730 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4731 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4732 CFLAGS="$CFLAGS -fno-strict-aliasing"
4735 elif test "$PORTNAME" = "aix"; then
4736 # AIX's xlc has to have strict aliasing turned off too
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -qnoansialias" >&5
4738 $as_echo_n "checking whether $CC supports -qnoansialias... " >&6; }
4739 if ${pgac_cv_prog_cc_cflags__qnoansialias+:} false; then :
4740 $as_echo_n "(cached) " >&6
4742 pgac_save_CFLAGS=$CFLAGS
4743 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4744 ac_save_c_werror_flag=$ac_c_werror_flag
4745 ac_c_werror_flag=yes
4746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4747 /* end confdefs.h. */
4757 if ac_fn_c_try_compile "$LINENO"; then :
4758 pgac_cv_prog_cc_cflags__qnoansialias=yes
4760 pgac_cv_prog_cc_cflags__qnoansialias=no
4762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4763 ac_c_werror_flag=$ac_save_c_werror_flag
4764 CFLAGS="$pgac_save_CFLAGS"
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags__qnoansialias" >&5
4767 $as_echo "$pgac_cv_prog_cc_cflags__qnoansialias" >&6; }
4768 if test x"$pgac_cv_prog_cc_cflags__qnoansialias" = x"yes"; then
4769 CFLAGS="$CFLAGS -qnoansialias"
4772 elif test "$PORTNAME" = "hpux"; then
4773 # On some versions of HP-UX, libm functions do not set errno by default.
4774 # Fix that by using +Olibmerrno if the compiler recognizes it.
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports +Olibmerrno" >&5
4776 $as_echo_n "checking whether $CC supports +Olibmerrno... " >&6; }
4777 if ${pgac_cv_prog_cc_cflags_pOlibmerrno+:} false; then :
4778 $as_echo_n "(cached) " >&6
4780 pgac_save_CFLAGS=$CFLAGS
4781 CFLAGS="$pgac_save_CFLAGS +Olibmerrno"
4782 ac_save_c_werror_flag=$ac_c_werror_flag
4783 ac_c_werror_flag=yes
4784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4785 /* end confdefs.h. */
4795 if ac_fn_c_try_compile "$LINENO"; then :
4796 pgac_cv_prog_cc_cflags_pOlibmerrno=yes
4798 pgac_cv_prog_cc_cflags_pOlibmerrno=no
4800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4801 ac_c_werror_flag=$ac_save_c_werror_flag
4802 CFLAGS="$pgac_save_CFLAGS"
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_cflags_pOlibmerrno" >&5
4805 $as_echo "$pgac_cv_prog_cc_cflags_pOlibmerrno" >&6; }
4806 if test x"$pgac_cv_prog_cc_cflags_pOlibmerrno" = x"yes"; then
4807 CFLAGS="$CFLAGS +Olibmerrno"
4812 CFLAGS_VECTOR=$CFLAGS_VECTOR
4815 # supply -g if --enable-debug
4816 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4820 # enable code coverage if --enable-coverage
4821 if test "$enable_coverage" = yes; then
4822 if test "$GCC" = yes; then
4823 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4825 as_fn_error $? "--enable-coverage is supported only when using GCC" "$LINENO" 5
4829 # enable profiling if --enable-profiling
4830 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4831 if test "$GCC" = yes; then
4833 $as_echo "#define PROFILE_PID_DIR 1" >>confdefs.h
4835 CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4837 as_fn_error $? "--enable-profiling is supported only when using GCC" "$LINENO" 5
4841 # We already have this in Makefile.win32, but configure needs it too
4842 if test "$PORTNAME" = "win32"; then
4843 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4846 # Check if the compiler still works with the template settings
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler still works" >&5
4848 $as_echo_n "checking whether the C compiler still works... " >&6; }
4849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4850 /* end confdefs.h. */
4860 if ac_fn_c_try_link "$LINENO"; then :
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4862 $as_echo "yes" >&6; }
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4865 $as_echo "no" >&6; }
4866 as_fn_error $? "cannot proceed" "$LINENO" 5
4868 rm -f core conftest.err conftest.$ac_objext \
4869 conftest$ac_exeext conftest.$ac_ext
4871 # Defend against gcc -ffast-math
4872 if test "$GCC" = yes; then
4873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4874 /* end confdefs.h. */
4879 #ifdef __FAST_MATH__
4886 if ac_fn_c_try_compile "$LINENO"; then :
4889 as_fn_error $? "do not put -ffast-math in CFLAGS" "$LINENO" 5
4891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4895 ac_cpp='$CPP $CPPFLAGS'
4896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4900 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4901 # On Suns, sometimes $CPP names a directory.
4902 if test -n "$CPP" && test -d "$CPP"; then
4905 if test -z "$CPP"; then
4906 if ${ac_cv_prog_CPP+:} false; then :
4907 $as_echo_n "(cached) " >&6
4909 # Double quotes because CPP needs to be expanded
4910 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4913 for ac_c_preproc_warn_flag in '' yes
4915 # Use a header file that comes with gcc, so configuring glibc
4916 # with a fresh cross-compiler works.
4917 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4918 # <limits.h> exists even on freestanding compilers.
4919 # On the NeXT, cc -E runs the code through the compiler's parser,
4920 # not just through cpp. "Syntax error" is here to catch this case.
4921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4922 /* end confdefs.h. */
4924 # include <limits.h>
4926 # include <assert.h>
4930 if ac_fn_c_try_cpp "$LINENO"; then :
4933 # Broken: fails on valid input.
4936 rm -f conftest.err conftest.i conftest.$ac_ext
4938 # OK, works on sane cases. Now check whether nonexistent headers
4939 # can be detected and how.
4940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4941 /* end confdefs.h. */
4942 #include <ac_nonexistent.h>
4944 if ac_fn_c_try_cpp "$LINENO"; then :
4945 # Broken: success on invalid input.
4948 # Passes both tests.
4952 rm -f conftest.err conftest.i conftest.$ac_ext
4955 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4956 rm -f conftest.i conftest.err conftest.$ac_ext
4957 if $ac_preproc_ok; then :
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4970 $as_echo "$CPP" >&6; }
4972 for ac_c_preproc_warn_flag in '' yes
4974 # Use a header file that comes with gcc, so configuring glibc
4975 # with a fresh cross-compiler works.
4976 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4977 # <limits.h> exists even on freestanding compilers.
4978 # On the NeXT, cc -E runs the code through the compiler's parser,
4979 # not just through cpp. "Syntax error" is here to catch this case.
4980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4981 /* end confdefs.h. */
4983 # include <limits.h>
4985 # include <assert.h>
4989 if ac_fn_c_try_cpp "$LINENO"; then :
4992 # Broken: fails on valid input.
4995 rm -f conftest.err conftest.i conftest.$ac_ext
4997 # OK, works on sane cases. Now check whether nonexistent headers
4998 # can be detected and how.
4999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5000 /* end confdefs.h. */
5001 #include <ac_nonexistent.h>
5003 if ac_fn_c_try_cpp "$LINENO"; then :
5004 # Broken: success on invalid input.
5007 # Passes both tests.
5011 rm -f conftest.err conftest.i conftest.$ac_ext
5014 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5015 rm -f conftest.i conftest.err conftest.$ac_ext
5016 if $ac_preproc_ok; then :
5019 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5020 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5021 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5022 See \`config.log' for more details" "$LINENO" 5; }
5026 ac_cpp='$CPP $CPPFLAGS'
5027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5035 # Set up TAS assembly code if needed; the template file has now had its
5036 # chance to request this.
5038 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
5041 if test "$need_tas" = yes ; then
5050 # Automatic dependency tracking
5054 # Check whether --enable-depend was given.
5055 if test "${enable_depend+set}" = set; then :
5056 enableval=$enable_depend;
5065 as_fn_error $? "no argument expected for --enable-depend option" "$LINENO" 5
5079 # Enable assert checks
5083 # Check whether --enable-cassert was given.
5084 if test "${enable_cassert+set}" = set; then :
5085 enableval=$enable_cassert;
5089 $as_echo "#define USE_ASSERT_CHECKING 1" >>confdefs.h
5096 as_fn_error $? "no argument expected for --enable-cassert option" "$LINENO" 5
5109 # Include directories
5112 IFS="${IFS}${PATH_SEPARATOR}"
5113 # SRCH_INC comes from the template file
5114 for dir in $with_includes $SRCH_INC; do
5115 if test -d "$dir"; then
5116 INCLUDES="$INCLUDES -I$dir"
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Include directory $dir does not exist." >&5
5119 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
5127 # Library directories
5130 IFS="${IFS}${PATH_SEPARATOR}"
5131 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
5132 for dir in $LIBRARY_DIRS $SRCH_LIB; do
5133 if test -d "$dir"; then
5134 LIBDIRS="$LIBDIRS -L$dir"
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Library directory $dir does not exist." >&5
5137 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
5143 # Enable thread-safe client libraries
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking allow thread-safe client libraries" >&5
5146 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
5149 # Check whether --enable-thread-safety was given.
5150 if test "${enable_thread_safety+set}" = set; then :
5151 enableval=$enable_thread_safety;
5160 as_fn_error $? "no argument expected for --enable-thread-safety option" "$LINENO" 5
5165 enable_thread_safety=yes
5170 if test "$enable_thread_safety" = yes; then
5172 $as_echo "#define ENABLE_THREAD_SAFETY 1" >>confdefs.h
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_thread_safety" >&5
5176 $as_echo "$enable_thread_safety" >&6; }
5180 # Optionally build Tcl modules (PL/Tcl)
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with Tcl" >&5
5183 $as_echo_n "checking whether to build with Tcl... " >&6; }
5187 # Check whether --with-tcl was given.
5188 if test "${with_tcl+set}" = set; then :
5198 as_fn_error $? "no argument expected for --with-tcl option" "$LINENO" 5
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcl" >&5
5209 $as_echo "$with_tcl" >&6; }
5212 # We see if the path to the Tcl/Tk configuration scripts is specified.
5213 # This will override the use of tclsh to find the paths to search.
5218 # Check whether --with-tclconfig was given.
5219 if test "${with_tclconfig+set}" = set; then :
5220 withval=$with_tclconfig;
5223 as_fn_error $? "argument required for --with-tclconfig option" "$LINENO" 5
5226 as_fn_error $? "argument required for --with-tclconfig option" "$LINENO" 5
5238 # Optionally build Perl modules (PL/Perl)
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Perl modules" >&5
5241 $as_echo_n "checking whether to build Perl modules... " >&6; }
5245 # Check whether --with-perl was given.
5246 if test "${with_perl+set}" = set; then :
5256 as_fn_error $? "no argument expected for --with-perl option" "$LINENO" 5
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_perl" >&5
5267 $as_echo "$with_perl" >&6; }
5271 # Optionally build Python modules (PL/Python)
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Python modules" >&5
5274 $as_echo_n "checking whether to build Python modules... " >&6; }
5278 # Check whether --with-python was given.
5279 if test "${with_python+set}" = set; then :
5280 withval=$with_python;
5289 as_fn_error $? "no argument expected for --with-python option" "$LINENO" 5
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
5300 $as_echo "$with_python" >&6; }
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with GSSAPI support" >&5
5307 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
5311 # Check whether --with-gssapi was given.
5312 if test "${with_gssapi+set}" = set; then :
5313 withval=$with_gssapi;
5318 $as_echo "#define ENABLE_GSS 1" >>confdefs.h
5320 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5327 as_fn_error $? "no argument expected for --with-gssapi option" "$LINENO" 5
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_gssapi" >&5
5338 $as_echo "$with_gssapi" >&6; }
5345 # Kerberos configuration parameters
5350 # Check whether --with-krb-srvnam was given.
5351 if test "${with_krb_srvnam+set}" = set; then :
5352 withval=$with_krb_srvnam;
5355 as_fn_error $? "argument required for --with-krb-srvnam option" "$LINENO" 5
5358 as_fn_error $? "argument required for --with-krb-srvnam option" "$LINENO" 5
5366 with_krb_srvnam="postgres"
5371 cat >>confdefs.h <<_ACEOF
5372 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with PAM support" >&5
5381 $as_echo_n "checking whether to build with PAM support... " >&6; }
5385 # Check whether --with-pam was given.
5386 if test "${with_pam+set}" = set; then :
5391 $as_echo "#define USE_PAM 1" >>confdefs.h
5398 as_fn_error $? "no argument expected for --with-pam option" "$LINENO" 5
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pam" >&5
5409 $as_echo "$with_pam" >&6; }
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with LDAP support" >&5
5416 $as_echo_n "checking whether to build with LDAP support... " >&6; }
5420 # Check whether --with-ldap was given.
5421 if test "${with_ldap+set}" = set; then :
5426 $as_echo "#define USE_LDAP 1" >>confdefs.h
5433 as_fn_error $? "no argument expected for --with-ldap option" "$LINENO" 5
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ldap" >&5
5444 $as_echo "$with_ldap" >&6; }
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with Bonjour support" >&5
5451 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
5455 # Check whether --with-bonjour was given.
5456 if test "${with_bonjour+set}" = set; then :
5457 withval=$with_bonjour;
5461 $as_echo "#define USE_BONJOUR 1" >>confdefs.h
5468 as_fn_error $? "no argument expected for --with-bonjour option" "$LINENO" 5
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_bonjour" >&5
5479 $as_echo "$with_bonjour" >&6; }
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with OpenSSL support" >&5
5486 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
5490 # Check whether --with-openssl was given.
5491 if test "${with_openssl+set}" = set; then :
5492 withval=$with_openssl;
5496 $as_echo "#define USE_OPENSSL 1" >>confdefs.h
5503 as_fn_error $? "no argument expected for --with-openssl option" "$LINENO" 5
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_openssl" >&5
5514 $as_echo "$with_openssl" >&6; }
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with SELinux support" >&5
5521 $as_echo_n "checking whether to build with SELinux support... " >&6; }
5525 # Check whether --with-selinux was given.
5526 if test "${with_selinux+set}" = set; then :
5527 withval=$with_selinux;
5536 as_fn_error $? "no argument expected for --with-selinux option" "$LINENO" 5
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_selinux" >&5
5548 $as_echo "$with_selinux" >&6; }
5556 # Check whether --with-readline was given.
5557 if test "${with_readline+set}" = set; then :
5558 withval=$with_readline;
5567 as_fn_error $? "no argument expected for --with-readline option" "$LINENO" 5
5577 # readline on MinGW has problems with backslashes in psql and other bugs.
5578 # This is particularly a problem with non-US code pages.
5579 # Therefore disable its use until we understand the cause. 2004-07-20
5580 if test "$PORTNAME" = "win32"; then
5581 if test "$with_readline" = yes; then
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5583 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5595 # Check whether --with-libedit-preferred was given.
5596 if test "${with_libedit_preferred+set}" = set; then :
5597 withval=$with_libedit_preferred;
5606 as_fn_error $? "no argument expected for --with-libedit-preferred option" "$LINENO" 5
5611 with_libedit_preferred=no
5621 # There are at least three UUID libraries in common use: the FreeBSD/NetBSD
5622 # library, the e2fsprogs libuuid (now part of util-linux-ng), and the OSSP
5623 # UUID library. More than one of these might be present on a given platform,
5624 # so we make the user say which one she wants.
5629 # Check whether --with-uuid was given.
5630 if test "${with_uuid+set}" = set; then :
5634 as_fn_error $? "argument required for --with-uuid option" "$LINENO" 5
5637 as_fn_error $? "argument required for --with-uuid option" "$LINENO" 5
5647 if test x"$with_uuid" = x"" ; then
5653 # Check whether --with-ossp-uuid was given.
5654 if test "${with_ossp_uuid+set}" = set; then :
5655 withval=$with_ossp_uuid;
5664 as_fn_error $? "no argument expected for --with-ossp-uuid option" "$LINENO" 5
5674 if test "$with_ossp_uuid" = yes ; then
5678 if test "$with_uuid" = bsd ; then
5680 $as_echo "#define HAVE_UUID_BSD 1" >>confdefs.h
5682 UUID_EXTRA_OBJS="md5.o sha1.o"
5683 elif test "$with_uuid" = e2fs ; then
5685 $as_echo "#define HAVE_UUID_E2FS 1" >>confdefs.h
5687 UUID_EXTRA_OBJS="md5.o sha1.o"
5688 elif test "$with_uuid" = ossp ; then
5690 $as_echo "#define HAVE_UUID_OSSP 1" >>confdefs.h
5693 elif test "$with_uuid" = no ; then
5696 as_fn_error $? "--with-uuid must specify one of bsd, e2fs, or ossp" "$LINENO" 5
5708 # Check whether --with-libxml was given.
5709 if test "${with_libxml+set}" = set; then :
5710 withval=$with_libxml;
5714 $as_echo "#define USE_LIBXML 1" >>confdefs.h
5721 as_fn_error $? "no argument expected for --with-libxml option" "$LINENO" 5
5732 if test "$with_libxml" = yes ; then
5733 for ac_prog in xml2-config
5735 # Extract the first word of "$ac_prog", so it can be a program name with args.
5736 set dummy $ac_prog; ac_word=$2
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5738 $as_echo_n "checking for $ac_word... " >&6; }
5739 if ${ac_cv_prog_XML2_CONFIG+:} false; then :
5740 $as_echo_n "(cached) " >&6
5742 if test -n "$XML2_CONFIG"; then
5743 ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5749 test -z "$as_dir" && as_dir=.
5750 for ac_exec_ext in '' $ac_executable_extensions; do
5751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5752 ac_cv_prog_XML2_CONFIG="$ac_prog"
5753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5762 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5763 if test -n "$XML2_CONFIG"; then
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
5765 $as_echo "$XML2_CONFIG" >&6; }
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5768 $as_echo "no" >&6; }
5772 test -n "$XML2_CONFIG" && break
5775 if test -n "$XML2_CONFIG"; then
5776 for pgac_option in `$XML2_CONFIG --cflags`; do
5777 case $pgac_option in
5778 -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5781 for pgac_option in `$XML2_CONFIG --libs`; do
5782 case $pgac_option in
5783 -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5797 # Check whether --with-libxslt was given.
5798 if test "${with_libxslt+set}" = set; then :
5799 withval=$with_libxslt;
5803 $as_echo "#define USE_LIBXSLT 1" >>confdefs.h
5810 as_fn_error $? "no argument expected for --with-libxslt option" "$LINENO" 5
5830 # Check whether --with-system-tzdata was given.
5831 if test "${with_system_tzdata+set}" = set; then :
5832 withval=$with_system_tzdata;
5835 as_fn_error $? "argument required for --with-system-tzdata option" "$LINENO" 5
5838 as_fn_error $? "argument required for --with-system-tzdata option" "$LINENO" 5
5856 # Check whether --with-zlib was given.
5857 if test "${with_zlib+set}" = set; then :
5867 as_fn_error $? "no argument expected for --with-zlib option" "$LINENO" 5
5883 # Assume system is ELF if it predefines __ELF__ as 1,
5884 # otherwise believe host_os based default.
5886 freebsd1*|freebsd2*) elf=no;;
5887 freebsd3*|freebsd4*) elf=yes;;
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5892 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5893 if ${ac_cv_path_GREP+:} false; then :
5894 $as_echo_n "(cached) " >&6
5896 if test -z "$GREP"; then
5897 ac_path_GREP_found=false
5898 # Loop through the user's path and test for each of PROGNAME-LIST
5899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5900 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5903 test -z "$as_dir" && as_dir=.
5904 for ac_prog in grep ggrep; do
5905 for ac_exec_ext in '' $ac_executable_extensions; do
5906 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5907 as_fn_executable_p "$ac_path_GREP" || continue
5908 # Check for GNU ac_path_GREP and select it if it is found.
5909 # Check for GNU $ac_path_GREP
5910 case `"$ac_path_GREP" --version 2>&1` in
5912 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5915 $as_echo_n 0123456789 >"conftest.in"
5918 cat "conftest.in" "conftest.in" >"conftest.tmp"
5919 mv "conftest.tmp" "conftest.in"
5920 cp "conftest.in" "conftest.nl"
5921 $as_echo 'GREP' >> "conftest.nl"
5922 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5923 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5924 as_fn_arith $ac_count + 1 && ac_count=$as_val
5925 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5926 # Best one so far, save it but keep looking for a better one
5927 ac_cv_path_GREP="$ac_path_GREP"
5928 ac_path_GREP_max=$ac_count
5930 # 10*(2^10) chars as input seems more than enough
5931 test $ac_count -gt 10 && break
5933 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5936 $ac_path_GREP_found && break 3
5941 if test -z "$ac_cv_path_GREP"; then
5942 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5945 ac_cv_path_GREP=$GREP
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5950 $as_echo "$ac_cv_path_GREP" >&6; }
5951 GREP="$ac_cv_path_GREP"
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5955 $as_echo_n "checking for egrep... " >&6; }
5956 if ${ac_cv_path_EGREP+:} false; then :
5957 $as_echo_n "(cached) " >&6
5959 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5960 then ac_cv_path_EGREP="$GREP -E"
5962 if test -z "$EGREP"; then
5963 ac_path_EGREP_found=false
5964 # Loop through the user's path and test for each of PROGNAME-LIST
5965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5969 test -z "$as_dir" && as_dir=.
5970 for ac_prog in egrep; do
5971 for ac_exec_ext in '' $ac_executable_extensions; do
5972 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5973 as_fn_executable_p "$ac_path_EGREP" || continue
5974 # Check for GNU ac_path_EGREP and select it if it is found.
5975 # Check for GNU $ac_path_EGREP
5976 case `"$ac_path_EGREP" --version 2>&1` in
5978 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5981 $as_echo_n 0123456789 >"conftest.in"
5984 cat "conftest.in" "conftest.in" >"conftest.tmp"
5985 mv "conftest.tmp" "conftest.in"
5986 cp "conftest.in" "conftest.nl"
5987 $as_echo 'EGREP' >> "conftest.nl"
5988 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5989 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5990 as_fn_arith $ac_count + 1 && ac_count=$as_val
5991 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5992 # Best one so far, save it but keep looking for a better one
5993 ac_cv_path_EGREP="$ac_path_EGREP"
5994 ac_path_EGREP_max=$ac_count
5996 # 10*(2^10) chars as input seems more than enough
5997 test $ac_count -gt 10 && break
5999 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6002 $ac_path_EGREP_found && break 3
6007 if test -z "$ac_cv_path_EGREP"; then
6008 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6011 ac_cv_path_EGREP=$EGREP
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6017 $as_echo "$ac_cv_path_EGREP" >&6; }
6018 EGREP="$ac_cv_path_EGREP"
6021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6022 /* end confdefs.h. */
6028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6029 $EGREP "yes" >/dev/null 2>&1; then :
6032 if test "X$elf" = "Xyes" ; then
6046 CPPFLAGS="$CPPFLAGS $INCLUDES"
6047 LDFLAGS="$LDFLAGS $LIBDIRS"
6053 # Check whether --with-gnu-ld was given.
6054 if test "${with_gnu_ld+set}" = set; then :
6055 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6061 if test "$GCC" = yes; then
6062 # Check if gcc -print-prog-name=ld gives a path.
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6064 $as_echo_n "checking for ld used by GCC... " >&6; }
6067 # gcc leaves a trailing carriage return which upsets mingw
6068 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6070 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6073 # Accept absolute paths.
6074 [\\/]* | [A-Za-z]:[\\/]*)
6075 re_direlt='/[^/][^/]*/\.\./'
6076 # Canonicalize the path of ld
6077 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6078 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6079 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6081 test -z "$LD" && LD="$ac_prog"
6084 # If it fails, then pretend we aren't using GCC.
6088 # If it is relative, then search for the first ld in PATH.
6092 elif test "$with_gnu_ld" = yes; then
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6094 $as_echo_n "checking for GNU ld... " >&6; }
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6097 $as_echo_n "checking for non-GNU ld... " >&6; }
6099 if ${ac_cv_path_LD+:} false; then :
6100 $as_echo_n "(cached) " >&6
6102 if test -z "$LD"; then
6103 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6104 for ac_dir in $PATH; do
6105 test -z "$ac_dir" && ac_dir=.
6106 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6107 ac_cv_path_LD="$ac_dir/$ac_prog"
6108 # Check to see if the program is GNU ld. I'd rather use --version,
6109 # but apparently some GNU ld's only accept -v.
6110 # Break only if it was the GNU/non-GNU ld that we prefer.
6111 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6112 test "$with_gnu_ld" != no && break
6114 test "$with_gnu_ld" != yes && break
6120 ac_cv_path_LD="$LD" # Let the user override the test with a path.
6125 if test -n "$LD"; then
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6127 $as_echo "$LD" >&6; }
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6130 $as_echo "no" >&6; }
6132 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6134 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6135 if ${ac_cv_prog_gnu_ld+:} false; then :
6136 $as_echo_n "(cached) " >&6
6138 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6139 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6140 ac_cv_prog_gnu_ld=yes
6142 ac_cv_prog_gnu_ld=no
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gnu_ld" >&5
6146 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
6147 with_gnu_ld=$ac_cv_prog_gnu_ld
6152 case $host_os in sysv5*)
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld -R works" >&5
6154 $as_echo_n "checking whether ld -R works... " >&6; }
6155 if ${pgac_cv_prog_ld_R+:} false; then :
6156 $as_echo_n "(cached) " >&6
6159 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
6160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6161 /* end confdefs.h. */
6171 if ac_fn_c_try_link "$LINENO"; then :
6172 pgac_cv_prog_ld_R=yes
6174 pgac_cv_prog_ld_R=no
6176 rm -f core conftest.err conftest.$ac_objext \
6177 conftest$ac_exeext conftest.$ac_ext
6178 LDFLAGS=$pgac_save_LDFLAGS
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_ld_R" >&5
6182 $as_echo "$pgac_cv_prog_ld_R" >&6; }
6183 ld_R_works=$pgac_cv_prog_ld_R
6186 if test -n "$ac_tool_prefix"; then
6187 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6188 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6190 $as_echo_n "checking for $ac_word... " >&6; }
6191 if ${ac_cv_prog_RANLIB+:} false; then :
6192 $as_echo_n "(cached) " >&6
6194 if test -n "$RANLIB"; then
6195 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201 test -z "$as_dir" && as_dir=.
6202 for ac_exec_ext in '' $ac_executable_extensions; do
6203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6204 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6214 RANLIB=$ac_cv_prog_RANLIB
6215 if test -n "$RANLIB"; then
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6217 $as_echo "$RANLIB" >&6; }
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6220 $as_echo "no" >&6; }
6225 if test -z "$ac_cv_prog_RANLIB"; then
6226 ac_ct_RANLIB=$RANLIB
6227 # Extract the first word of "ranlib", so it can be a program name with args.
6228 set dummy ranlib; ac_word=$2
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6230 $as_echo_n "checking for $ac_word... " >&6; }
6231 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6232 $as_echo_n "(cached) " >&6
6234 if test -n "$ac_ct_RANLIB"; then
6235 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6241 test -z "$as_dir" && as_dir=.
6242 for ac_exec_ext in '' $ac_executable_extensions; do
6243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6244 ac_cv_prog_ac_ct_RANLIB="ranlib"
6245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6254 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6255 if test -n "$ac_ct_RANLIB"; then
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6257 $as_echo "$ac_ct_RANLIB" >&6; }
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6260 $as_echo "no" >&6; }
6263 if test "x$ac_ct_RANLIB" = x; then
6266 case $cross_compiling:$ac_tool_warned in
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6269 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6270 ac_tool_warned=yes ;;
6272 RANLIB=$ac_ct_RANLIB
6275 RANLIB="$ac_cv_prog_RANLIB"
6279 if test -n "$ac_tool_prefix"; then
6280 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6281 set dummy ${ac_tool_prefix}strip; ac_word=$2
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6283 $as_echo_n "checking for $ac_word... " >&6; }
6284 if ${ac_cv_prog_STRIP+:} false; then :
6285 $as_echo_n "(cached) " >&6
6287 if test -n "$STRIP"; then
6288 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294 test -z "$as_dir" && as_dir=.
6295 for ac_exec_ext in '' $ac_executable_extensions; do
6296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6297 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6307 STRIP=$ac_cv_prog_STRIP
6308 if test -n "$STRIP"; then
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6310 $as_echo "$STRIP" >&6; }
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6313 $as_echo "no" >&6; }
6318 if test -z "$ac_cv_prog_STRIP"; then
6320 # Extract the first word of "strip", so it can be a program name with args.
6321 set dummy strip; ac_word=$2
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6323 $as_echo_n "checking for $ac_word... " >&6; }
6324 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6325 $as_echo_n "(cached) " >&6
6327 if test -n "$ac_ct_STRIP"; then
6328 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334 test -z "$as_dir" && as_dir=.
6335 for ac_exec_ext in '' $ac_executable_extensions; do
6336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6337 ac_cv_prog_ac_ct_STRIP="strip"
6338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6347 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6348 if test -n "$ac_ct_STRIP"; then
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6350 $as_echo "$ac_ct_STRIP" >&6; }
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6353 $as_echo "no" >&6; }
6356 if test "x$ac_ct_STRIP" = x; then
6359 case $cross_compiling:$ac_tool_warned in
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6362 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6363 ac_tool_warned=yes ;;
6368 STRIP="$ac_cv_prog_STRIP"
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is possible to strip libraries" >&5
6373 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
6374 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6375 STRIP_STATIC_LIB="$STRIP -x"
6376 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6378 $as_echo "yes" >&6; }
6383 STRIP_STATIC_LIB=$STRIP
6384 STRIP_SHARED_LIB=$STRIP
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6386 $as_echo "yes" >&6; }
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6392 $as_echo "no" >&6; }
6399 if test -n "$ac_tool_prefix"; then
6400 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6401 set dummy ${ac_tool_prefix}ar; ac_word=$2
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6403 $as_echo_n "checking for $ac_word... " >&6; }
6404 if ${ac_cv_prog_AR+:} false; then :
6405 $as_echo_n "(cached) " >&6
6407 if test -n "$AR"; then
6408 ac_cv_prog_AR="$AR" # Let the user override the test.
6410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6414 test -z "$as_dir" && as_dir=.
6415 for ac_exec_ext in '' $ac_executable_extensions; do
6416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6417 ac_cv_prog_AR="${ac_tool_prefix}ar"
6418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6428 if test -n "$AR"; then
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6430 $as_echo "$AR" >&6; }
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6433 $as_echo "no" >&6; }
6438 if test -z "$ac_cv_prog_AR"; then
6440 # Extract the first word of "ar", so it can be a program name with args.
6441 set dummy ar; ac_word=$2
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6443 $as_echo_n "checking for $ac_word... " >&6; }
6444 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6445 $as_echo_n "(cached) " >&6
6447 if test -n "$ac_ct_AR"; then
6448 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454 test -z "$as_dir" && as_dir=.
6455 for ac_exec_ext in '' $ac_executable_extensions; do
6456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6457 ac_cv_prog_ac_ct_AR="ar"
6458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6467 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6468 if test -n "$ac_ct_AR"; then
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6470 $as_echo "$ac_ct_AR" >&6; }
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6473 $as_echo "no" >&6; }
6476 if test "x$ac_ct_AR" = x; then
6479 case $cross_compiling:$ac_tool_warned in
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6482 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6483 ac_tool_warned=yes ;;
6491 if test "$PORTNAME" = "win32"; then
6492 if test -n "$ac_tool_prefix"; then
6493 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6494 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6496 $as_echo_n "checking for $ac_word... " >&6; }
6497 if ${ac_cv_prog_DLLTOOL+:} false; then :
6498 $as_echo_n "(cached) " >&6
6500 if test -n "$DLLTOOL"; then
6501 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6507 test -z "$as_dir" && as_dir=.
6508 for ac_exec_ext in '' $ac_executable_extensions; do
6509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6510 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6520 DLLTOOL=$ac_cv_prog_DLLTOOL
6521 if test -n "$DLLTOOL"; then
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6523 $as_echo "$DLLTOOL" >&6; }
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6526 $as_echo "no" >&6; }
6531 if test -z "$ac_cv_prog_DLLTOOL"; then
6532 ac_ct_DLLTOOL=$DLLTOOL
6533 # Extract the first word of "dlltool", so it can be a program name with args.
6534 set dummy dlltool; ac_word=$2
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6536 $as_echo_n "checking for $ac_word... " >&6; }
6537 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6538 $as_echo_n "(cached) " >&6
6540 if test -n "$ac_ct_DLLTOOL"; then
6541 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6547 test -z "$as_dir" && as_dir=.
6548 for ac_exec_ext in '' $ac_executable_extensions; do
6549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6550 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6560 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6561 if test -n "$ac_ct_DLLTOOL"; then
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6563 $as_echo "$ac_ct_DLLTOOL" >&6; }
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6566 $as_echo "no" >&6; }
6569 if test "x$ac_ct_DLLTOOL" = x; then
6572 case $cross_compiling:$ac_tool_warned in
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6575 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6576 ac_tool_warned=yes ;;
6578 DLLTOOL=$ac_ct_DLLTOOL
6581 DLLTOOL="$ac_cv_prog_DLLTOOL"
6584 if test -n "$ac_tool_prefix"; then
6585 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6586 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6588 $as_echo_n "checking for $ac_word... " >&6; }
6589 if ${ac_cv_prog_DLLWRAP+:} false; then :
6590 $as_echo_n "(cached) " >&6
6592 if test -n "$DLLWRAP"; then
6593 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599 test -z "$as_dir" && as_dir=.
6600 for ac_exec_ext in '' $ac_executable_extensions; do
6601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6602 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6612 DLLWRAP=$ac_cv_prog_DLLWRAP
6613 if test -n "$DLLWRAP"; then
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
6615 $as_echo "$DLLWRAP" >&6; }
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6618 $as_echo "no" >&6; }
6623 if test -z "$ac_cv_prog_DLLWRAP"; then
6624 ac_ct_DLLWRAP=$DLLWRAP
6625 # Extract the first word of "dllwrap", so it can be a program name with args.
6626 set dummy dllwrap; ac_word=$2
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6628 $as_echo_n "checking for $ac_word... " >&6; }
6629 if ${ac_cv_prog_ac_ct_DLLWRAP+:} false; then :
6630 $as_echo_n "(cached) " >&6
6632 if test -n "$ac_ct_DLLWRAP"; then
6633 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639 test -z "$as_dir" && as_dir=.
6640 for ac_exec_ext in '' $ac_executable_extensions; do
6641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6642 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6652 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6653 if test -n "$ac_ct_DLLWRAP"; then
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
6655 $as_echo "$ac_ct_DLLWRAP" >&6; }
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6658 $as_echo "no" >&6; }
6661 if test "x$ac_ct_DLLWRAP" = x; then
6664 case $cross_compiling:$ac_tool_warned in
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6667 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6668 ac_tool_warned=yes ;;
6670 DLLWRAP=$ac_ct_DLLWRAP
6673 DLLWRAP="$ac_cv_prog_DLLWRAP"
6676 if test -n "$ac_tool_prefix"; then
6677 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6678 set dummy ${ac_tool_prefix}windres; ac_word=$2
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6680 $as_echo_n "checking for $ac_word... " >&6; }
6681 if ${ac_cv_prog_WINDRES+:} false; then :
6682 $as_echo_n "(cached) " >&6
6684 if test -n "$WINDRES"; then
6685 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691 test -z "$as_dir" && as_dir=.
6692 for ac_exec_ext in '' $ac_executable_extensions; do
6693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6694 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6704 WINDRES=$ac_cv_prog_WINDRES
6705 if test -n "$WINDRES"; then
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
6707 $as_echo "$WINDRES" >&6; }
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6710 $as_echo "no" >&6; }
6715 if test -z "$ac_cv_prog_WINDRES"; then
6716 ac_ct_WINDRES=$WINDRES
6717 # Extract the first word of "windres", so it can be a program name with args.
6718 set dummy windres; ac_word=$2
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6720 $as_echo_n "checking for $ac_word... " >&6; }
6721 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
6722 $as_echo_n "(cached) " >&6
6724 if test -n "$ac_ct_WINDRES"; then
6725 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6731 test -z "$as_dir" && as_dir=.
6732 for ac_exec_ext in '' $ac_executable_extensions; do
6733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6734 ac_cv_prog_ac_ct_WINDRES="windres"
6735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6744 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6745 if test -n "$ac_ct_WINDRES"; then
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
6747 $as_echo "$ac_ct_WINDRES" >&6; }
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6750 $as_echo "no" >&6; }
6753 if test "x$ac_ct_WINDRES" = x; then
6756 case $cross_compiling:$ac_tool_warned in
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6760 ac_tool_warned=yes ;;
6762 WINDRES=$ac_ct_WINDRES
6765 WINDRES="$ac_cv_prog_WINDRES"
6770 # Find a good install program. We prefer a C program (faster),
6771 # so one script is as good as another. But avoid the broken or
6772 # incompatible versions:
6773 # SysV /etc/install, /usr/sbin/install
6774 # SunOS /usr/etc/install
6775 # IRIX /sbin/install
6777 # AmigaOS /C/install, which installs bootblocks on floppy discs
6778 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6779 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6780 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6781 # OS/2's system install, which has a completely different semantic
6782 # ./install, which can be erroneously created by make from ./install.sh.
6783 # Reject install programs that cannot install multiple files.
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6785 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6786 if test -z "$INSTALL"; then
6787 if ${ac_cv_path_install+:} false; then :
6788 $as_echo_n "(cached) " >&6
6790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6794 test -z "$as_dir" && as_dir=.
6795 # Account for people who put trailing slashes in PATH elements.
6796 case $as_dir/ in #((
6797 ./ | .// | /[cC]/* | \
6798 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6799 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6802 # OSF1 and SCO ODT 3.0 have their own names for install.
6803 # Don't use installbsd from OSF since it installs stuff as root
6805 for ac_prog in ginstall scoinst install; do
6806 for ac_exec_ext in '' $ac_executable_extensions; do
6807 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6808 if test $ac_prog = install &&
6809 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6810 # AIX install. It has an incompatible calling convention.
6812 elif test $ac_prog = install &&
6813 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6814 # program-specific install script used by HP pwplus--don't use.
6817 rm -rf conftest.one conftest.two conftest.dir
6818 echo one > conftest.one
6819 echo two > conftest.two
6821 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6822 test -s conftest.one && test -s conftest.two &&
6823 test -s conftest.dir/conftest.one &&
6824 test -s conftest.dir/conftest.two
6826 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6839 rm -rf conftest.one conftest.two conftest.dir
6842 if test "${ac_cv_path_install+set}" = set; then
6843 INSTALL=$ac_cv_path_install
6845 # As a last resort, use the slow shell script. Don't cache a
6846 # value for INSTALL within a source directory, because that will
6847 # break other packages using the cache if that directory is
6848 # removed, or if the value is a relative name.
6849 INSTALL=$ac_install_sh
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6853 $as_echo "$INSTALL" >&6; }
6855 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6856 # It thinks the first close brace ends the variable substitution.
6857 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6859 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6861 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6863 # When Autoconf chooses install-sh as install program it tries to generate
6864 # a relative path to it in each makefile where it subsitutes it. This clashes
6865 # with our Makefile.global concept. This workaround helps.
6867 *install-sh*) install_bin='';;
6868 *) install_bin=$INSTALL;;
6872 # Extract the first word of "tar", so it can be a program name with args.
6873 set dummy tar; ac_word=$2
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6875 $as_echo_n "checking for $ac_word... " >&6; }
6876 if ${ac_cv_path_TAR+:} false; then :
6877 $as_echo_n "(cached) " >&6
6881 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6888 test -z "$as_dir" && as_dir=.
6889 for ac_exec_ext in '' $ac_executable_extensions; do
6890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6891 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6903 if test -n "$TAR"; then
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
6905 $as_echo "$TAR" >&6; }
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6908 $as_echo "no" >&6; }
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6913 $as_echo_n "checking whether ln -s works... " >&6; }
6915 if test "$LN_S" = "ln -s"; then
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6917 $as_echo "yes" >&6; }
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6920 $as_echo "no, using $LN_S" >&6; }
6923 for ac_prog in gawk mawk nawk awk
6925 # Extract the first word of "$ac_prog", so it can be a program name with args.
6926 set dummy $ac_prog; ac_word=$2
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6928 $as_echo_n "checking for $ac_word... " >&6; }
6929 if ${ac_cv_prog_AWK+:} false; then :
6930 $as_echo_n "(cached) " >&6
6932 if test -n "$AWK"; then
6933 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939 test -z "$as_dir" && as_dir=.
6940 for ac_exec_ext in '' $ac_executable_extensions; do
6941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6942 ac_cv_prog_AWK="$ac_prog"
6943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6953 if test -n "$AWK"; then
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6955 $as_echo "$AWK" >&6; }
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6958 $as_echo "no" >&6; }
6962 test -n "$AWK" && break
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6966 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6967 if test -z "$MKDIR_P"; then
6968 if ${ac_cv_path_mkdir+:} false; then :
6969 $as_echo_n "(cached) " >&6
6971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6972 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6975 test -z "$as_dir" && as_dir=.
6976 for ac_prog in mkdir gmkdir; do
6977 for ac_exec_ext in '' $ac_executable_extensions; do
6978 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6979 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6980 'mkdir (GNU coreutils) '* | \
6981 'mkdir (coreutils) '* | \
6982 'mkdir (fileutils) '4.1*)
6983 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6993 test -d ./--version && rmdir ./--version
6994 if test "${ac_cv_path_mkdir+set}" = set; then
6995 MKDIR_P="$ac_cv_path_mkdir -p"
6997 # As a last resort, use the slow shell script. Don't cache a
6998 # value for MKDIR_P within a source directory, because that will
6999 # break other packages using the cache if that directory is
7000 # removed, or if the value is a relative name.
7001 MKDIR_P="$ac_install_sh -d"
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7005 $as_echo "$MKDIR_P" >&6; }
7007 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
7008 # a relative path to it in each makefile where it subsitutes it. This clashes
7009 # with our Makefile.global concept. This workaround helps.
7011 *install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
7014 # Let the user override the search
7015 if test -z "$BISON"; then
7016 for ac_prog in bison
7018 # Extract the first word of "$ac_prog", so it can be a program name with args.
7019 set dummy $ac_prog; ac_word=$2
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7021 $as_echo_n "checking for $ac_word... " >&6; }
7022 if ${ac_cv_path_BISON+:} false; then :
7023 $as_echo_n "(cached) " >&6
7027 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
7030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7034 test -z "$as_dir" && as_dir=.
7035 for ac_exec_ext in '' $ac_executable_extensions; do
7036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7037 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
7038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7048 BISON=$ac_cv_path_BISON
7049 if test -n "$BISON"; then
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7051 $as_echo "$BISON" >&6; }
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7054 $as_echo "no" >&6; }
7058 test -n "$BISON" && break
7063 if test "$BISON"; then
7064 pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: using $pgac_bison_version" >&5
7066 $as_echo "$as_me: using $pgac_bison_version" >&6;}
7067 if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7070 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7071 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
7072 $as_echo "$as_me: WARNING:
7073 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7074 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
7077 # Bison >=3.0 issues warnings about %name-prefix="base_yy", instead
7078 # of the now preferred %name-prefix "base_yy", but the latter
7079 # doesn't work with Bison 2.3 or less. So for now we silence the
7080 # deprecation warnings.
7081 if echo "$pgac_bison_version" | $AWK '{ if ($4 >= 3) exit 0; else exit 1;}'
7083 BISONFLAGS="$BISONFLAGS -Wno-deprecated"
7087 if test -z "$BISON"; then
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7089 *** Without Bison you will not be able to build PostgreSQL from Git nor
7090 *** change any of the parser definition files. You can obtain Bison from
7091 *** a GNU mirror site. (If you are using the official distribution of
7092 *** PostgreSQL then you do not need to worry about this, because the Bison
7093 *** output is pre-generated.)" >&5
7094 $as_echo "$as_me: WARNING:
7095 *** Without Bison you will not be able to build PostgreSQL from Git nor
7096 *** change any of the parser definition files. You can obtain Bison from
7097 *** a GNU mirror site. (If you are using the official distribution of
7098 *** PostgreSQL then you do not need to worry about this, because the Bison
7099 *** output is pre-generated.)" >&2;}
7101 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex" >&5
7105 $as_echo_n "checking for flex... " >&6; }
7106 if ${pgac_cv_path_flex+:} false; then :
7107 $as_echo_n "(cached) " >&6
7109 # Let the user override the test
7110 if test -n "$FLEX"; then
7111 pgac_cv_path_flex=$FLEX
7115 for pgac_dir in $PATH; do
7117 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
7120 for pgac_prog in flex lex; do
7121 pgac_candidate="$pgac_dir/$pgac_prog"
7122 if test -f "$pgac_candidate" \
7123 && $pgac_candidate --version </dev/null >/dev/null 2>&1
7125 echo '%%' > conftest.l
7126 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
7127 pgac_flex_version=`$pgac_candidate --version 2>/dev/null`
7128 if echo "$pgac_flex_version" | sed 's/[.a-z]/ /g' | $AWK '{ if ($1 = 2 && $2 = 5 && $3 >= 31) exit 0; else exit 1;}'
7130 pgac_cv_path_flex=$pgac_candidate
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7134 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7135 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
7136 $as_echo "$as_me: WARNING:
7137 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7138 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
7144 rm -f conftest.l lex.yy.c
7145 : ${pgac_cv_path_flex=no}
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_path_flex" >&5
7150 $as_echo "$pgac_cv_path_flex" >&6; }
7151 if test x"$pgac_cv_path_flex" = x"no"; then
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7153 *** Without Flex you will not be able to build PostgreSQL from Git nor
7154 *** change any of the scanner definition files. You can obtain Flex from
7155 *** a GNU mirror site. (If you are using the official distribution of
7156 *** PostgreSQL then you do not need to worry about this because the Flex
7157 *** output is pre-generated.)" >&5
7158 $as_echo "$as_me: WARNING:
7159 *** Without Flex you will not be able to build PostgreSQL from Git nor
7160 *** change any of the scanner definition files. You can obtain Flex from
7161 *** a GNU mirror site. (If you are using the official distribution of
7162 *** PostgreSQL then you do not need to worry about this because the Flex
7163 *** output is pre-generated.)" >&2;}
7167 FLEX=$pgac_cv_path_flex
7168 pgac_flex_version=`$FLEX --version 2>/dev/null`
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: using $pgac_flex_version" >&5
7170 $as_echo "$as_me: using $pgac_flex_version" >&6;}
7177 # Let the user override the search
7178 if test -z "$PERL"; then
7179 # Extract the first word of "perl", so it can be a program name with args.
7180 set dummy perl; ac_word=$2
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7182 $as_echo_n "checking for $ac_word... " >&6; }
7183 if ${ac_cv_path_PERL+:} false; then :
7184 $as_echo_n "(cached) " >&6
7188 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195 test -z "$as_dir" && as_dir=.
7196 for ac_exec_ext in '' $ac_executable_extensions; do
7197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7198 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7209 PERL=$ac_cv_path_PERL
7210 if test -n "$PERL"; then
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7212 $as_echo "$PERL" >&6; }
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7215 $as_echo "no" >&6; }
7221 if test "$PERL"; then
7222 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'`
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: using perl $pgac_perl_version" >&5
7224 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
7225 if echo "$pgac_perl_version" | sed 's/[.a-z_]/ /g' | \
7226 $AWK '{ if ($1 = 5 && $2 >= 8) exit 1; else exit 0;}'
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7229 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7230 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&5
7231 $as_echo "$as_me: WARNING:
7232 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7233 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&2;}
7238 if test -z "$PERL"; then
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7240 *** Without Perl you will not be able to build PostgreSQL from Git.
7241 *** You can obtain Perl from any CPAN mirror site.
7242 *** (If you are using the official distribution of PostgreSQL then you do not
7243 *** need to worry about this, because the Perl output is pre-generated.)" >&5
7244 $as_echo "$as_me: WARNING:
7245 *** Without Perl you will not be able to build PostgreSQL from Git.
7246 *** You can obtain Perl from any CPAN mirror site.
7247 *** (If you are using the official distribution of PostgreSQL then you do not
7248 *** need to worry about this, because the Perl output is pre-generated.)" >&2;}
7251 if test "$with_perl" = yes; then
7252 if test -z "$PERL"; then
7253 as_fn_error $? "Perl not found" "$LINENO" 5
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl archlibexp" >&5
7257 $as_echo_n "checking for Perl archlibexp... " >&6; }
7258 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
7259 test "$PORTNAME" = "win32" && perl_archlibexp=`echo $perl_archlibexp | sed 's,\\\\,/,g'`
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_archlibexp" >&5
7261 $as_echo "$perl_archlibexp" >&6; }
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl privlibexp" >&5
7263 $as_echo_n "checking for Perl privlibexp... " >&6; }
7264 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
7265 test "$PORTNAME" = "win32" && perl_privlibexp=`echo $perl_privlibexp | sed 's,\\\\,/,g'`
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_privlibexp" >&5
7267 $as_echo "$perl_privlibexp" >&6; }
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl useshrplib" >&5
7269 $as_echo_n "checking for Perl useshrplib... " >&6; }
7270 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
7271 test "$PORTNAME" = "win32" && perl_useshrplib=`echo $perl_useshrplib | sed 's,\\\\,/,g'`
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_useshrplib" >&5
7273 $as_echo "$perl_useshrplib" >&6; }
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flags to link embedded Perl" >&5
7276 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
7277 if test "$PORTNAME" = "win32" ; then
7278 perl_lib=`basename $perl_archlibexp/CORE/perl[5-9]*.lib .lib`
7279 test -e "$perl_archlibexp/CORE/$perl_lib.lib" && perl_embed_ldflags="-L$perl_archlibexp/CORE -l$perl_lib"
7281 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
7282 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
7283 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
7285 if test -z "$perl_embed_ldflags" ; then
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7287 $as_echo "no" >&6; }
7288 as_fn_error $? "could not determine flags for linking embedded Perl.
7289 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7290 installed." "$LINENO" 5
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_embed_ldflags" >&5
7293 $as_echo "$perl_embed_ldflags" >&6; }
7298 if test "$with_python" = yes; then
7299 # Extract the first word of "python", so it can be a program name with args.
7300 set dummy python; ac_word=$2
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7302 $as_echo_n "checking for $ac_word... " >&6; }
7303 if ${ac_cv_path_PYTHON+:} false; then :
7304 $as_echo_n "(cached) " >&6
7308 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
7311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315 test -z "$as_dir" && as_dir=.
7316 for ac_exec_ext in '' $ac_executable_extensions; do
7317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7318 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
7319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7329 PYTHON=$ac_cv_path_PYTHON
7330 if test -n "$PYTHON"; then
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
7332 $as_echo "$PYTHON" >&6; }
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7335 $as_echo "no" >&6; }
7339 if test x"$PYTHON" = x""; then
7340 as_fn_error $? "Python not found" "$LINENO" 5
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python distutils module" >&5
7345 $as_echo_n "checking for Python distutils module... " >&6; }
7346 if "${PYTHON}" -c 'import distutils' 2>&5
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7349 $as_echo "yes" >&6; }
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7352 $as_echo "no" >&6; }
7353 as_fn_error $? "distutils module not found" "$LINENO" 5
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python configuration directory" >&5
7356 $as_echo_n "checking Python configuration directory... " >&6; }
7357 python_majorversion=`${PYTHON} -c "import sys; print(sys.version[0])"`
7358 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
7359 python_configdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBPL'))))"`
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_configdir" >&5
7361 $as_echo "$python_configdir" >&6; }
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python include directories" >&5
7364 $as_echo_n "checking Python include directories... " >&6; }
7365 python_includespec=`${PYTHON} -c "
7366 import distutils.sysconfig
7367 a = '-I' + distutils.sysconfig.get_python_inc(False)
7368 b = '-I' + distutils.sysconfig.get_python_inc(True)
7372 print(a + ' ' + b)"`
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_includespec" >&5
7374 $as_echo "$python_includespec" >&6; }
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link an embedded Python application" >&5
7379 $as_echo_n "checking how to link an embedded Python application... " >&6; }
7381 python_libdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
7382 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
7383 python_so=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('SO'))))"`
7384 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
7385 python_enable_shared=`${PYTHON} -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_vars().get('Py_ENABLE_SHARED',0))"`
7387 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
7389 # New way: use the official shared library
7390 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
7391 python_libspec="-L${python_libdir} -l${ldlibrary}"
7393 # Old way: use libpython from python_configdir
7394 python_libdir="${python_configdir}"
7395 # LDVERSION was introduced in Python 3.2.
7396 python_ldversion=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDVERSION'))))"`
7397 if test x"${python_ldversion}" = x""; then
7398 python_ldversion=$python_version
7400 python_libspec="-L${python_libdir} -lpython${python_ldversion}"
7403 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_libspec} ${python_additional_libs}" >&5
7406 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
7409 # threaded python is not supported on OpenBSD
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Python is compiled with thread support" >&5
7411 $as_echo_n "checking whether Python is compiled with thread support... " >&6; }
7412 pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
7413 if test "$pythreads" = "1"; then
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7415 $as_echo "yes" >&6; }
7418 as_fn_error $? "threaded Python not supported on this platform" "$LINENO" 5
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7423 $as_echo "no" >&6; }
7429 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
7430 # Extract the first word of "zic", so it can be a program name with args.
7431 set dummy zic; ac_word=$2
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7433 $as_echo_n "checking for $ac_word... " >&6; }
7434 if ${ac_cv_path_ZIC+:} false; then :
7435 $as_echo_n "(cached) " >&6
7439 ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
7442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7446 test -z "$as_dir" && as_dir=.
7447 for ac_exec_ext in '' $ac_executable_extensions; do
7448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7449 ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
7450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7461 if test -n "$ZIC"; then
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIC" >&5
7463 $as_echo "$ZIC" >&6; }
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7466 $as_echo "no" >&6; }
7470 if test -z "$ZIC"; then
7472 When cross-compiling, either use the option --with-system-tzdata to use
7473 existing time-zone data, or set the environment variable ZIC to a zic
7474 program to use during the build." "$LINENO" 5
7482 ## Most libraries are included only if they demonstrably provide a function
7483 ## we need, but libm is an exception: always include it, because there are
7484 ## too many compilers that play cute optimization games that will break
7485 ## probes for standard functions such as pow().
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
7489 $as_echo_n "checking for main in -lm... " >&6; }
7490 if ${ac_cv_lib_m_main+:} false; then :
7491 $as_echo_n "(cached) " >&6
7493 ac_check_lib_save_LIBS=$LIBS
7495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7496 /* end confdefs.h. */
7507 if ac_fn_c_try_link "$LINENO"; then :
7508 ac_cv_lib_m_main=yes
7512 rm -f core conftest.err conftest.$ac_objext \
7513 conftest$ac_exeext conftest.$ac_ext
7514 LIBS=$ac_check_lib_save_LIBS
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
7517 $as_echo "$ac_cv_lib_m_main" >&6; }
7518 if test "x$ac_cv_lib_m_main" = xyes; then :
7519 cat >>confdefs.h <<_ACEOF
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setproctitle" >&5
7528 $as_echo_n "checking for library containing setproctitle... " >&6; }
7529 if ${ac_cv_search_setproctitle+:} false; then :
7530 $as_echo_n "(cached) " >&6
7532 ac_func_search_save_LIBS=$LIBS
7533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7534 /* end confdefs.h. */
7536 /* Override any GCC internal prototype to avoid an error.
7537 Use char because int might match the return type of a GCC
7538 builtin and then its argument prototype would still apply. */
7542 char setproctitle ();
7546 return setproctitle ();
7551 for ac_lib in '' util; do
7552 if test -z "$ac_lib"; then
7553 ac_res="none required"
7556 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7558 if ac_fn_c_try_link "$LINENO"; then :
7559 ac_cv_search_setproctitle=$ac_res
7561 rm -f core conftest.err conftest.$ac_objext \
7563 if ${ac_cv_search_setproctitle+:} false; then :
7567 if ${ac_cv_search_setproctitle+:} false; then :
7570 ac_cv_search_setproctitle=no
7573 LIBS=$ac_func_search_save_LIBS
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setproctitle" >&5
7576 $as_echo "$ac_cv_search_setproctitle" >&6; }
7577 ac_res=$ac_cv_search_setproctitle
7578 if test "$ac_res" != no; then :
7579 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
7584 $as_echo_n "checking for library containing dlopen... " >&6; }
7585 if ${ac_cv_search_dlopen+:} false; then :
7586 $as_echo_n "(cached) " >&6
7588 ac_func_search_save_LIBS=$LIBS
7589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7590 /* end confdefs.h. */
7592 /* Override any GCC internal prototype to avoid an error.
7593 Use char because int might match the return type of a GCC
7594 builtin and then its argument prototype would still apply. */
7607 for ac_lib in '' dl; do
7608 if test -z "$ac_lib"; then
7609 ac_res="none required"
7612 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7614 if ac_fn_c_try_link "$LINENO"; then :
7615 ac_cv_search_dlopen=$ac_res
7617 rm -f core conftest.err conftest.$ac_objext \
7619 if ${ac_cv_search_dlopen+:} false; then :
7623 if ${ac_cv_search_dlopen+:} false; then :
7626 ac_cv_search_dlopen=no
7629 LIBS=$ac_func_search_save_LIBS
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
7632 $as_echo "$ac_cv_search_dlopen" >&6; }
7633 ac_res=$ac_cv_search_dlopen
7634 if test "$ac_res" != no; then :
7635 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
7640 $as_echo_n "checking for library containing socket... " >&6; }
7641 if ${ac_cv_search_socket+:} false; then :
7642 $as_echo_n "(cached) " >&6
7644 ac_func_search_save_LIBS=$LIBS
7645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7646 /* end confdefs.h. */
7648 /* Override any GCC internal prototype to avoid an error.
7649 Use char because int might match the return type of a GCC
7650 builtin and then its argument prototype would still apply. */
7663 for ac_lib in '' socket ws2_32; do
7664 if test -z "$ac_lib"; then
7665 ac_res="none required"
7668 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7670 if ac_fn_c_try_link "$LINENO"; then :
7671 ac_cv_search_socket=$ac_res
7673 rm -f core conftest.err conftest.$ac_objext \
7675 if ${ac_cv_search_socket+:} false; then :
7679 if ${ac_cv_search_socket+:} false; then :
7682 ac_cv_search_socket=no
7685 LIBS=$ac_func_search_save_LIBS
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
7688 $as_echo "$ac_cv_search_socket" >&6; }
7689 ac_res=$ac_cv_search_socket
7690 if test "$ac_res" != no; then :
7691 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
7696 $as_echo_n "checking for library containing shl_load... " >&6; }
7697 if ${ac_cv_search_shl_load+:} false; then :
7698 $as_echo_n "(cached) " >&6
7700 ac_func_search_save_LIBS=$LIBS
7701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7702 /* end confdefs.h. */
7704 /* Override any GCC internal prototype to avoid an error.
7705 Use char because int might match the return type of a GCC
7706 builtin and then its argument prototype would still apply. */
7719 for ac_lib in '' dld; do
7720 if test -z "$ac_lib"; then
7721 ac_res="none required"
7724 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7726 if ac_fn_c_try_link "$LINENO"; then :
7727 ac_cv_search_shl_load=$ac_res
7729 rm -f core conftest.err conftest.$ac_objext \
7731 if ${ac_cv_search_shl_load+:} false; then :
7735 if ${ac_cv_search_shl_load+:} false; then :
7738 ac_cv_search_shl_load=no
7741 LIBS=$ac_func_search_save_LIBS
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
7744 $as_echo "$ac_cv_search_shl_load" >&6; }
7745 ac_res=$ac_cv_search_shl_load
7746 if test "$ac_res" != no; then :
7747 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7751 # We only use libld in port/dynloader/aix.c
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldopen" >&5
7755 $as_echo_n "checking for library containing ldopen... " >&6; }
7756 if ${ac_cv_search_ldopen+:} false; then :
7757 $as_echo_n "(cached) " >&6
7759 ac_func_search_save_LIBS=$LIBS
7760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7761 /* end confdefs.h. */
7763 /* Override any GCC internal prototype to avoid an error.
7764 Use char because int might match the return type of a GCC
7765 builtin and then its argument prototype would still apply. */
7778 for ac_lib in '' ld; do
7779 if test -z "$ac_lib"; then
7780 ac_res="none required"
7783 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7785 if ac_fn_c_try_link "$LINENO"; then :
7786 ac_cv_search_ldopen=$ac_res
7788 rm -f core conftest.err conftest.$ac_objext \
7790 if ${ac_cv_search_ldopen+:} false; then :
7794 if ${ac_cv_search_ldopen+:} false; then :
7797 ac_cv_search_ldopen=no
7800 LIBS=$ac_func_search_save_LIBS
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldopen" >&5
7803 $as_echo "$ac_cv_search_ldopen" >&6; }
7804 ac_res=$ac_cv_search_ldopen
7805 if test "$ac_res" != no; then :
7806 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getopt_long" >&5
7813 $as_echo_n "checking for library containing getopt_long... " >&6; }
7814 if ${ac_cv_search_getopt_long+:} false; then :
7815 $as_echo_n "(cached) " >&6
7817 ac_func_search_save_LIBS=$LIBS
7818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7819 /* end confdefs.h. */
7821 /* Override any GCC internal prototype to avoid an error.
7822 Use char because int might match the return type of a GCC
7823 builtin and then its argument prototype would still apply. */
7827 char getopt_long ();
7831 return getopt_long ();
7836 for ac_lib in '' getopt gnugetopt; do
7837 if test -z "$ac_lib"; then
7838 ac_res="none required"
7841 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7843 if ac_fn_c_try_link "$LINENO"; then :
7844 ac_cv_search_getopt_long=$ac_res
7846 rm -f core conftest.err conftest.$ac_objext \
7848 if ${ac_cv_search_getopt_long+:} false; then :
7852 if ${ac_cv_search_getopt_long+:} false; then :
7855 ac_cv_search_getopt_long=no
7858 LIBS=$ac_func_search_save_LIBS
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getopt_long" >&5
7861 $as_echo "$ac_cv_search_getopt_long" >&6; }
7862 ac_res=$ac_cv_search_getopt_long
7863 if test "$ac_res" != no; then :
7864 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
7869 $as_echo_n "checking for library containing crypt... " >&6; }
7870 if ${ac_cv_search_crypt+:} false; then :
7871 $as_echo_n "(cached) " >&6
7873 ac_func_search_save_LIBS=$LIBS
7874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7875 /* end confdefs.h. */
7877 /* Override any GCC internal prototype to avoid an error.
7878 Use char because int might match the return type of a GCC
7879 builtin and then its argument prototype would still apply. */
7892 for ac_lib in '' crypt; do
7893 if test -z "$ac_lib"; then
7894 ac_res="none required"
7897 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7899 if ac_fn_c_try_link "$LINENO"; then :
7900 ac_cv_search_crypt=$ac_res
7902 rm -f core conftest.err conftest.$ac_objext \
7904 if ${ac_cv_search_crypt+:} false; then :
7908 if ${ac_cv_search_crypt+:} false; then :
7911 ac_cv_search_crypt=no
7914 LIBS=$ac_func_search_save_LIBS
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
7917 $as_echo "$ac_cv_search_crypt" >&6; }
7918 ac_res=$ac_cv_search_crypt
7919 if test "$ac_res" != no; then :
7920 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
7925 $as_echo_n "checking for library containing shm_open... " >&6; }
7926 if ${ac_cv_search_shm_open+:} false; then :
7927 $as_echo_n "(cached) " >&6
7929 ac_func_search_save_LIBS=$LIBS
7930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7931 /* end confdefs.h. */
7933 /* Override any GCC internal prototype to avoid an error.
7934 Use char because int might match the return type of a GCC
7935 builtin and then its argument prototype would still apply. */
7948 for ac_lib in '' rt; do
7949 if test -z "$ac_lib"; then
7950 ac_res="none required"
7953 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7955 if ac_fn_c_try_link "$LINENO"; then :
7956 ac_cv_search_shm_open=$ac_res
7958 rm -f core conftest.err conftest.$ac_objext \
7960 if ${ac_cv_search_shm_open+:} false; then :
7964 if ${ac_cv_search_shm_open+:} false; then :
7967 ac_cv_search_shm_open=no
7970 LIBS=$ac_func_search_save_LIBS
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
7973 $as_echo "$ac_cv_search_shm_open" >&6; }
7974 ac_res=$ac_cv_search_shm_open
7975 if test "$ac_res" != no; then :
7976 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_unlink" >&5
7981 $as_echo_n "checking for library containing shm_unlink... " >&6; }
7982 if ${ac_cv_search_shm_unlink+:} false; then :
7983 $as_echo_n "(cached) " >&6
7985 ac_func_search_save_LIBS=$LIBS
7986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7987 /* end confdefs.h. */
7989 /* Override any GCC internal prototype to avoid an error.
7990 Use char because int might match the return type of a GCC
7991 builtin and then its argument prototype would still apply. */
7999 return shm_unlink ();
8004 for ac_lib in '' rt; do
8005 if test -z "$ac_lib"; then
8006 ac_res="none required"
8009 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8011 if ac_fn_c_try_link "$LINENO"; then :
8012 ac_cv_search_shm_unlink=$ac_res
8014 rm -f core conftest.err conftest.$ac_objext \
8016 if ${ac_cv_search_shm_unlink+:} false; then :
8020 if ${ac_cv_search_shm_unlink+:} false; then :
8023 ac_cv_search_shm_unlink=no
8026 LIBS=$ac_func_search_save_LIBS
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_unlink" >&5
8029 $as_echo "$ac_cv_search_shm_unlink" >&6; }
8030 ac_res=$ac_cv_search_shm_unlink
8031 if test "$ac_res" != no; then :
8032 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
8038 $as_echo_n "checking for library containing fdatasync... " >&6; }
8039 if ${ac_cv_search_fdatasync+:} false; then :
8040 $as_echo_n "(cached) " >&6
8042 ac_func_search_save_LIBS=$LIBS
8043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8044 /* end confdefs.h. */
8046 /* Override any GCC internal prototype to avoid an error.
8047 Use char because int might match the return type of a GCC
8048 builtin and then its argument prototype would still apply. */
8056 return fdatasync ();
8061 for ac_lib in '' rt posix4; do
8062 if test -z "$ac_lib"; then
8063 ac_res="none required"
8066 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8068 if ac_fn_c_try_link "$LINENO"; then :
8069 ac_cv_search_fdatasync=$ac_res
8071 rm -f core conftest.err conftest.$ac_objext \
8073 if ${ac_cv_search_fdatasync+:} false; then :
8077 if ${ac_cv_search_fdatasync+:} false; then :
8080 ac_cv_search_fdatasync=no
8083 LIBS=$ac_func_search_save_LIBS
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
8086 $as_echo "$ac_cv_search_fdatasync" >&6; }
8087 ac_res=$ac_cv_search_fdatasync
8088 if test "$ac_res" != no; then :
8089 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8093 # Required for thread_test.c on Solaris 2.5:
8094 # Other ports use it too (HP-UX) so test unconditionally
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname_r" >&5
8096 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
8097 if ${ac_cv_search_gethostbyname_r+:} false; then :
8098 $as_echo_n "(cached) " >&6
8100 ac_func_search_save_LIBS=$LIBS
8101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8102 /* end confdefs.h. */
8104 /* Override any GCC internal prototype to avoid an error.
8105 Use char because int might match the return type of a GCC
8106 builtin and then its argument prototype would still apply. */
8110 char gethostbyname_r ();
8114 return gethostbyname_r ();
8119 for ac_lib in '' nsl; do
8120 if test -z "$ac_lib"; then
8121 ac_res="none required"
8124 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8126 if ac_fn_c_try_link "$LINENO"; then :
8127 ac_cv_search_gethostbyname_r=$ac_res
8129 rm -f core conftest.err conftest.$ac_objext \
8131 if ${ac_cv_search_gethostbyname_r+:} false; then :
8135 if ${ac_cv_search_gethostbyname_r+:} false; then :
8138 ac_cv_search_gethostbyname_r=no
8141 LIBS=$ac_func_search_save_LIBS
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname_r" >&5
8144 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
8145 ac_res=$ac_cv_search_gethostbyname_r
8146 if test "$ac_res" != no; then :
8147 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shmget" >&5
8153 $as_echo_n "checking for library containing shmget... " >&6; }
8154 if ${ac_cv_search_shmget+:} false; then :
8155 $as_echo_n "(cached) " >&6
8157 ac_func_search_save_LIBS=$LIBS
8158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8159 /* end confdefs.h. */
8161 /* Override any GCC internal prototype to avoid an error.
8162 Use char because int might match the return type of a GCC
8163 builtin and then its argument prototype would still apply. */
8176 for ac_lib in '' cygipc; do
8177 if test -z "$ac_lib"; then
8178 ac_res="none required"
8181 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8183 if ac_fn_c_try_link "$LINENO"; then :
8184 ac_cv_search_shmget=$ac_res
8186 rm -f core conftest.err conftest.$ac_objext \
8188 if ${ac_cv_search_shmget+:} false; then :
8192 if ${ac_cv_search_shmget+:} false; then :
8195 ac_cv_search_shmget=no
8198 LIBS=$ac_func_search_save_LIBS
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shmget" >&5
8201 $as_echo "$ac_cv_search_shmget" >&6; }
8202 ac_res=$ac_cv_search_shmget
8203 if test "$ac_res" != no; then :
8204 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8209 if test "$with_readline" = yes; then
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
8213 $as_echo_n "checking for library containing readline... " >&6; }
8214 if ${pgac_cv_check_readline+:} false; then :
8215 $as_echo_n "(cached) " >&6
8217 pgac_cv_check_readline=no
8218 pgac_save_LIBS=$LIBS
8219 if test x"$with_libedit_preferred" != x"yes"
8220 then READLINE_ORDER="-lreadline -ledit"
8221 else READLINE_ORDER="-ledit -lreadline"
8223 for pgac_rllib in $READLINE_ORDER ; do
8224 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
8225 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
8226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8227 /* end confdefs.h. */
8229 /* Override any GCC internal prototype to avoid an error.
8230 Use char because int might match the return type of a GCC
8231 builtin and then its argument prototype would still apply. */
8244 if ac_fn_c_try_link "$LINENO"; then :
8246 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
8247 # recognize dependent libraries; assume curses is needed if we didn't
8248 # find any dependency.
8250 netbsd* | openbsd* | irix*)
8251 if test x"$pgac_lib" = x"" ; then
8252 pgac_lib=" -lcurses"
8256 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
8260 rm -f core conftest.err conftest.$ac_objext \
8261 conftest$ac_exeext conftest.$ac_ext
8263 if test "$pgac_cv_check_readline" != no ; then
8267 LIBS=$pgac_save_LIBS
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_check_readline" >&5
8271 $as_echo "$pgac_cv_check_readline" >&6; }
8272 if test "$pgac_cv_check_readline" != no ; then
8273 LIBS="$pgac_cv_check_readline $LIBS"
8275 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
8280 if test x"$pgac_cv_check_readline" = x"no"; then
8281 as_fn_error $? "readline library not found
8282 If you have readline already installed, see config.log for details on the
8283 failure. It is possible the compiler isn't looking in the proper directory.
8284 Use --without-readline to disable readline support." "$LINENO" 5
8288 if test "$with_zlib" = yes; then
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
8290 $as_echo_n "checking for inflate in -lz... " >&6; }
8291 if ${ac_cv_lib_z_inflate+:} false; then :
8292 $as_echo_n "(cached) " >&6
8294 ac_check_lib_save_LIBS=$LIBS
8296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8297 /* end confdefs.h. */
8299 /* Override any GCC internal prototype to avoid an error.
8300 Use char because int might match the return type of a GCC
8301 builtin and then its argument prototype would still apply. */
8314 if ac_fn_c_try_link "$LINENO"; then :
8315 ac_cv_lib_z_inflate=yes
8317 ac_cv_lib_z_inflate=no
8319 rm -f core conftest.err conftest.$ac_objext \
8320 conftest$ac_exeext conftest.$ac_ext
8321 LIBS=$ac_check_lib_save_LIBS
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
8324 $as_echo "$ac_cv_lib_z_inflate" >&6; }
8325 if test "x$ac_cv_lib_z_inflate" = xyes; then :
8326 cat >>confdefs.h <<_ACEOF
8333 as_fn_error $? "zlib library not found
8334 If you have zlib already installed, see config.log for details on the
8335 failure. It is possible the compiler isn't looking in the proper directory.
8336 Use --without-zlib to disable zlib support." "$LINENO" 5
8341 if test "$enable_spinlocks" = yes; then
8343 $as_echo "#define HAVE_SPINLOCKS 1" >>confdefs.h
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8347 *** Not using spinlocks will cause poor performance." >&5
8348 $as_echo "$as_me: WARNING:
8349 *** Not using spinlocks will cause poor performance." >&2;}
8352 if test "$with_gssapi" = yes ; then
8353 if test "$PORTNAME" != "win32"; then
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_init_sec_context" >&5
8355 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
8356 if ${ac_cv_search_gss_init_sec_context+:} false; then :
8357 $as_echo_n "(cached) " >&6
8359 ac_func_search_save_LIBS=$LIBS
8360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8361 /* end confdefs.h. */
8363 /* Override any GCC internal prototype to avoid an error.
8364 Use char because int might match the return type of a GCC
8365 builtin and then its argument prototype would still apply. */
8369 char gss_init_sec_context ();
8373 return gss_init_sec_context ();
8378 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
8379 if test -z "$ac_lib"; then
8380 ac_res="none required"
8383 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8385 if ac_fn_c_try_link "$LINENO"; then :
8386 ac_cv_search_gss_init_sec_context=$ac_res
8388 rm -f core conftest.err conftest.$ac_objext \
8390 if ${ac_cv_search_gss_init_sec_context+:} false; then :
8394 if ${ac_cv_search_gss_init_sec_context+:} false; then :
8397 ac_cv_search_gss_init_sec_context=no
8400 LIBS=$ac_func_search_save_LIBS
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_init_sec_context" >&5
8403 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
8404 ac_res=$ac_cv_search_gss_init_sec_context
8405 if test "$ac_res" != no; then :
8406 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8409 as_fn_error $? "could not find function 'gss_init_sec_context' required for GSSAPI" "$LINENO" 5
8413 LIBS="$LIBS -lgssapi32"
8417 if test "$with_openssl" = yes ; then
8418 if test "$PORTNAME" != "win32"; then
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_new_ex_data in -lcrypto" >&5
8420 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
8421 if ${ac_cv_lib_crypto_CRYPTO_new_ex_data+:} false; then :
8422 $as_echo_n "(cached) " >&6
8424 ac_check_lib_save_LIBS=$LIBS
8425 LIBS="-lcrypto $LIBS"
8426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8427 /* end confdefs.h. */
8429 /* Override any GCC internal prototype to avoid an error.
8430 Use char because int might match the return type of a GCC
8431 builtin and then its argument prototype would still apply. */
8435 char CRYPTO_new_ex_data ();
8439 return CRYPTO_new_ex_data ();
8444 if ac_fn_c_try_link "$LINENO"; then :
8445 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
8447 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
8449 rm -f core conftest.err conftest.$ac_objext \
8450 conftest$ac_exeext conftest.$ac_ext
8451 LIBS=$ac_check_lib_save_LIBS
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
8454 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
8455 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = xyes; then :
8456 cat >>confdefs.h <<_ACEOF
8457 #define HAVE_LIBCRYPTO 1
8460 LIBS="-lcrypto $LIBS"
8463 as_fn_error $? "library 'crypto' is required for OpenSSL" "$LINENO" 5
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
8467 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
8468 if ${ac_cv_lib_ssl_SSL_library_init+:} false; then :
8469 $as_echo_n "(cached) " >&6
8471 ac_check_lib_save_LIBS=$LIBS
8473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8474 /* end confdefs.h. */
8476 /* Override any GCC internal prototype to avoid an error.
8477 Use char because int might match the return type of a GCC
8478 builtin and then its argument prototype would still apply. */
8482 char SSL_library_init ();
8486 return SSL_library_init ();
8491 if ac_fn_c_try_link "$LINENO"; then :
8492 ac_cv_lib_ssl_SSL_library_init=yes
8494 ac_cv_lib_ssl_SSL_library_init=no
8496 rm -f core conftest.err conftest.$ac_objext \
8497 conftest$ac_exeext conftest.$ac_ext
8498 LIBS=$ac_check_lib_save_LIBS
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
8501 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
8502 if test "x$ac_cv_lib_ssl_SSL_library_init" = xyes; then :
8503 cat >>confdefs.h <<_ACEOF
8504 #define HAVE_LIBSSL 1
8510 as_fn_error $? "library 'ssl' is required for OpenSSL" "$LINENO" 5
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing CRYPTO_new_ex_data" >&5
8515 $as_echo_n "checking for library containing CRYPTO_new_ex_data... " >&6; }
8516 if ${ac_cv_search_CRYPTO_new_ex_data+:} false; then :
8517 $as_echo_n "(cached) " >&6
8519 ac_func_search_save_LIBS=$LIBS
8520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8521 /* end confdefs.h. */
8523 /* Override any GCC internal prototype to avoid an error.
8524 Use char because int might match the return type of a GCC
8525 builtin and then its argument prototype would still apply. */
8529 char CRYPTO_new_ex_data ();
8533 return CRYPTO_new_ex_data ();
8538 for ac_lib in '' eay32 crypto; do
8539 if test -z "$ac_lib"; then
8540 ac_res="none required"
8543 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8545 if ac_fn_c_try_link "$LINENO"; then :
8546 ac_cv_search_CRYPTO_new_ex_data=$ac_res
8548 rm -f core conftest.err conftest.$ac_objext \
8550 if ${ac_cv_search_CRYPTO_new_ex_data+:} false; then :
8554 if ${ac_cv_search_CRYPTO_new_ex_data+:} false; then :
8557 ac_cv_search_CRYPTO_new_ex_data=no
8560 LIBS=$ac_func_search_save_LIBS
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_CRYPTO_new_ex_data" >&5
8563 $as_echo "$ac_cv_search_CRYPTO_new_ex_data" >&6; }
8564 ac_res=$ac_cv_search_CRYPTO_new_ex_data
8565 if test "$ac_res" != no; then :
8566 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8569 as_fn_error $? "library 'eay32' or 'crypto' is required for OpenSSL" "$LINENO" 5
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_library_init" >&5
8573 $as_echo_n "checking for library containing SSL_library_init... " >&6; }
8574 if ${ac_cv_search_SSL_library_init+:} false; then :
8575 $as_echo_n "(cached) " >&6
8577 ac_func_search_save_LIBS=$LIBS
8578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8579 /* end confdefs.h. */
8581 /* Override any GCC internal prototype to avoid an error.
8582 Use char because int might match the return type of a GCC
8583 builtin and then its argument prototype would still apply. */
8587 char SSL_library_init ();
8591 return SSL_library_init ();
8596 for ac_lib in '' ssleay32 ssl; do
8597 if test -z "$ac_lib"; then
8598 ac_res="none required"
8601 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8603 if ac_fn_c_try_link "$LINENO"; then :
8604 ac_cv_search_SSL_library_init=$ac_res
8606 rm -f core conftest.err conftest.$ac_objext \
8608 if ${ac_cv_search_SSL_library_init+:} false; then :
8612 if ${ac_cv_search_SSL_library_init+:} false; then :
8615 ac_cv_search_SSL_library_init=no
8618 LIBS=$ac_func_search_save_LIBS
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_library_init" >&5
8621 $as_echo "$ac_cv_search_SSL_library_init" >&6; }
8622 ac_res=$ac_cv_search_SSL_library_init
8623 if test "$ac_res" != no; then :
8624 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8627 as_fn_error $? "library 'ssleay32' or 'ssl' is required for OpenSSL" "$LINENO" 5
8631 for ac_func in SSL_get_current_compression
8633 ac_fn_c_check_func "$LINENO" "SSL_get_current_compression" "ac_cv_func_SSL_get_current_compression"
8634 if test "x$ac_cv_func_SSL_get_current_compression" = xyes; then :
8635 cat >>confdefs.h <<_ACEOF
8636 #define HAVE_SSL_GET_CURRENT_COMPRESSION 1
8644 if test "$with_pam" = yes ; then
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
8646 $as_echo_n "checking for pam_start in -lpam... " >&6; }
8647 if ${ac_cv_lib_pam_pam_start+:} false; then :
8648 $as_echo_n "(cached) " >&6
8650 ac_check_lib_save_LIBS=$LIBS
8652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8653 /* end confdefs.h. */
8655 /* Override any GCC internal prototype to avoid an error.
8656 Use char because int might match the return type of a GCC
8657 builtin and then its argument prototype would still apply. */
8665 return pam_start ();
8670 if ac_fn_c_try_link "$LINENO"; then :
8671 ac_cv_lib_pam_pam_start=yes
8673 ac_cv_lib_pam_pam_start=no
8675 rm -f core conftest.err conftest.$ac_objext \
8676 conftest$ac_exeext conftest.$ac_ext
8677 LIBS=$ac_check_lib_save_LIBS
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
8680 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
8681 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
8682 cat >>confdefs.h <<_ACEOF
8683 #define HAVE_LIBPAM 1
8689 as_fn_error $? "library 'pam' is required for PAM" "$LINENO" 5
8694 if test "$with_libxml" = yes ; then
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSaveToBuffer in -lxml2" >&5
8696 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
8697 if ${ac_cv_lib_xml2_xmlSaveToBuffer+:} false; then :
8698 $as_echo_n "(cached) " >&6
8700 ac_check_lib_save_LIBS=$LIBS
8702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8703 /* end confdefs.h. */
8705 /* Override any GCC internal prototype to avoid an error.
8706 Use char because int might match the return type of a GCC
8707 builtin and then its argument prototype would still apply. */
8711 char xmlSaveToBuffer ();
8715 return xmlSaveToBuffer ();
8720 if ac_fn_c_try_link "$LINENO"; then :
8721 ac_cv_lib_xml2_xmlSaveToBuffer=yes
8723 ac_cv_lib_xml2_xmlSaveToBuffer=no
8725 rm -f core conftest.err conftest.$ac_objext \
8726 conftest$ac_exeext conftest.$ac_ext
8727 LIBS=$ac_check_lib_save_LIBS
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
8730 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
8731 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = xyes; then :
8732 cat >>confdefs.h <<_ACEOF
8733 #define HAVE_LIBXML2 1
8739 as_fn_error $? "library 'xml2' (version >= 2.6.23) is required for XML support" "$LINENO" 5
8744 if test "$with_libxslt" = yes ; then
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xsltCleanupGlobals in -lxslt" >&5
8746 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
8747 if ${ac_cv_lib_xslt_xsltCleanupGlobals+:} false; then :
8748 $as_echo_n "(cached) " >&6
8750 ac_check_lib_save_LIBS=$LIBS
8752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8753 /* end confdefs.h. */
8755 /* Override any GCC internal prototype to avoid an error.
8756 Use char because int might match the return type of a GCC
8757 builtin and then its argument prototype would still apply. */
8761 char xsltCleanupGlobals ();
8765 return xsltCleanupGlobals ();
8770 if ac_fn_c_try_link "$LINENO"; then :
8771 ac_cv_lib_xslt_xsltCleanupGlobals=yes
8773 ac_cv_lib_xslt_xsltCleanupGlobals=no
8775 rm -f core conftest.err conftest.$ac_objext \
8776 conftest$ac_exeext conftest.$ac_ext
8777 LIBS=$ac_check_lib_save_LIBS
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
8780 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
8781 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = xyes; then :
8782 cat >>confdefs.h <<_ACEOF
8783 #define HAVE_LIBXSLT 1
8789 as_fn_error $? "library 'xslt' is required for XSLT support" "$LINENO" 5
8794 # for contrib/sepgsql
8795 if test "$with_selinux" = yes; then
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for security_compute_create_name in -lselinux" >&5
8797 $as_echo_n "checking for security_compute_create_name in -lselinux... " >&6; }
8798 if ${ac_cv_lib_selinux_security_compute_create_name+:} false; then :
8799 $as_echo_n "(cached) " >&6
8801 ac_check_lib_save_LIBS=$LIBS
8802 LIBS="-lselinux $LIBS"
8803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8804 /* end confdefs.h. */
8806 /* Override any GCC internal prototype to avoid an error.
8807 Use char because int might match the return type of a GCC
8808 builtin and then its argument prototype would still apply. */
8812 char security_compute_create_name ();
8816 return security_compute_create_name ();
8821 if ac_fn_c_try_link "$LINENO"; then :
8822 ac_cv_lib_selinux_security_compute_create_name=yes
8824 ac_cv_lib_selinux_security_compute_create_name=no
8826 rm -f core conftest.err conftest.$ac_objext \
8827 conftest$ac_exeext conftest.$ac_ext
8828 LIBS=$ac_check_lib_save_LIBS
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_security_compute_create_name" >&5
8831 $as_echo "$ac_cv_lib_selinux_security_compute_create_name" >&6; }
8832 if test "x$ac_cv_lib_selinux_security_compute_create_name" = xyes; then :
8833 cat >>confdefs.h <<_ACEOF
8834 #define HAVE_LIBSELINUX 1
8837 LIBS="-lselinux $LIBS"
8840 as_fn_error $? "library 'libselinux', version 2.1.10 or newer, is required for SELinux support" "$LINENO" 5
8845 # for contrib/uuid-ossp
8846 if test "$with_uuid" = bsd ; then
8847 # On BSD, the UUID functions are in libc
8848 ac_fn_c_check_func "$LINENO" "uuid_to_string" "ac_cv_func_uuid_to_string"
8849 if test "x$ac_cv_func_uuid_to_string" = xyes; then :
8852 as_fn_error $? "BSD UUID functions are not present" "$LINENO" 5
8855 elif test "$with_uuid" = e2fs ; then
8856 # On OS X, the UUID functions are in libc
8857 ac_fn_c_check_func "$LINENO" "uuid_generate" "ac_cv_func_uuid_generate"
8858 if test "x$ac_cv_func_uuid_generate" = xyes; then :
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
8862 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
8863 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
8864 $as_echo_n "(cached) " >&6
8866 ac_check_lib_save_LIBS=$LIBS
8868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8869 /* end confdefs.h. */
8871 /* Override any GCC internal prototype to avoid an error.
8872 Use char because int might match the return type of a GCC
8873 builtin and then its argument prototype would still apply. */
8877 char uuid_generate ();
8881 return uuid_generate ();
8886 if ac_fn_c_try_link "$LINENO"; then :
8887 ac_cv_lib_uuid_uuid_generate=yes
8889 ac_cv_lib_uuid_uuid_generate=no
8891 rm -f core conftest.err conftest.$ac_objext \
8892 conftest$ac_exeext conftest.$ac_ext
8893 LIBS=$ac_check_lib_save_LIBS
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
8896 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
8897 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
8900 as_fn_error $? "library 'uuid' is required for E2FS UUID" "$LINENO" 5
8905 elif test "$with_uuid" = ossp ; then
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_export in -lossp-uuid" >&5
8907 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
8908 if ${ac_cv_lib_ossp_uuid_uuid_export+:} false; then :
8909 $as_echo_n "(cached) " >&6
8911 ac_check_lib_save_LIBS=$LIBS
8912 LIBS="-lossp-uuid $LIBS"
8913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8914 /* end confdefs.h. */
8916 /* Override any GCC internal prototype to avoid an error.
8917 Use char because int might match the return type of a GCC
8918 builtin and then its argument prototype would still apply. */
8922 char uuid_export ();
8926 return uuid_export ();
8931 if ac_fn_c_try_link "$LINENO"; then :
8932 ac_cv_lib_ossp_uuid_uuid_export=yes
8934 ac_cv_lib_ossp_uuid_uuid_export=no
8936 rm -f core conftest.err conftest.$ac_objext \
8937 conftest$ac_exeext conftest.$ac_ext
8938 LIBS=$ac_check_lib_save_LIBS
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
8941 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
8942 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = xyes; then :
8943 UUID_LIBS="-lossp-uuid"
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_export in -luuid" >&5
8946 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
8947 if ${ac_cv_lib_uuid_uuid_export+:} false; then :
8948 $as_echo_n "(cached) " >&6
8950 ac_check_lib_save_LIBS=$LIBS
8952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8953 /* end confdefs.h. */
8955 /* Override any GCC internal prototype to avoid an error.
8956 Use char because int might match the return type of a GCC
8957 builtin and then its argument prototype would still apply. */
8961 char uuid_export ();
8965 return uuid_export ();
8970 if ac_fn_c_try_link "$LINENO"; then :
8971 ac_cv_lib_uuid_uuid_export=yes
8973 ac_cv_lib_uuid_uuid_export=no
8975 rm -f core conftest.err conftest.$ac_objext \
8976 conftest$ac_exeext conftest.$ac_ext
8977 LIBS=$ac_check_lib_save_LIBS
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_export" >&5
8980 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
8981 if test "x$ac_cv_lib_uuid_uuid_export" = xyes; then :
8984 as_fn_error $? "library 'ossp-uuid' or 'uuid' is required for OSSP UUID" "$LINENO" 5
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8998 $as_echo_n "checking for ANSI C header files... " >&6; }
8999 if ${ac_cv_header_stdc+:} false; then :
9000 $as_echo_n "(cached) " >&6
9002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9003 /* end confdefs.h. */
9017 if ac_fn_c_try_compile "$LINENO"; then :
9018 ac_cv_header_stdc=yes
9020 ac_cv_header_stdc=no
9022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9024 if test $ac_cv_header_stdc = yes; then
9025 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9027 /* end confdefs.h. */
9031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9032 $EGREP "memchr" >/dev/null 2>&1; then :
9035 ac_cv_header_stdc=no
9041 if test $ac_cv_header_stdc = yes; then
9042 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9044 /* end confdefs.h. */
9048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9049 $EGREP "free" >/dev/null 2>&1; then :
9052 ac_cv_header_stdc=no
9058 if test $ac_cv_header_stdc = yes; then
9059 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9060 if test "$cross_compiling" = yes; then :
9063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9064 /* end confdefs.h. */
9067 #if ((' ' & 0x0FF) == 0x020)
9068 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9069 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9071 # define ISLOWER(c) \
9072 (('a' <= (c) && (c) <= 'i') \
9073 || ('j' <= (c) && (c) <= 'r') \
9074 || ('s' <= (c) && (c) <= 'z'))
9075 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9078 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9083 for (i = 0; i < 256; i++)
9084 if (XOR (islower (i), ISLOWER (i))
9085 || toupper (i) != TOUPPER (i))
9090 if ac_fn_c_try_run "$LINENO"; then :
9093 ac_cv_header_stdc=no
9095 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9096 conftest.$ac_objext conftest.beam conftest.$ac_ext
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9102 $as_echo "$ac_cv_header_stdc" >&6; }
9103 if test $ac_cv_header_stdc = yes; then
9105 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9109 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9110 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9111 inttypes.h stdint.h unistd.h
9113 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9114 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9116 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9117 cat >>confdefs.h <<_ACEOF
9118 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9126 for ac_header in crypt.h dld.h fp_class.h getopt.h ieeefp.h ifaddrs.h langinfo.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
9128 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9129 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9130 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9131 cat >>confdefs.h <<_ACEOF
9132 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9140 # On BSD, test for net/if.h will fail unless sys/socket.h
9141 # is included first.
9142 for ac_header in net/if.h
9144 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
9145 #ifdef HAVE_SYS_SOCKET_H
9146 #include <sys/socket.h>
9150 if test "x$ac_cv_header_net_if_h" = xyes; then :
9151 cat >>confdefs.h <<_ACEOF
9152 #define HAVE_NET_IF_H 1
9160 # On OpenBSD, test for sys/ucred.h will fail unless sys/param.h
9161 # is included first.
9162 for ac_header in sys/ucred.h
9164 ac_fn_c_check_header_compile "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default
9165 #include <sys/param.h>
9168 if test "x$ac_cv_header_sys_ucred_h" = xyes; then :
9169 cat >>confdefs.h <<_ACEOF
9170 #define HAVE_SYS_UCRED_H 1
9178 # At least on IRIX, test for netinet/tcp.h will fail unless
9179 # netinet/in.h is included first.
9180 for ac_header in netinet/in.h
9182 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
9183 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
9184 cat >>confdefs.h <<_ACEOF
9185 #define HAVE_NETINET_IN_H 1
9192 for ac_header in netinet/tcp.h
9194 ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default
9195 #ifdef HAVE_NETINET_IN_H
9196 #include <netinet/in.h>
9200 if test "x$ac_cv_header_netinet_tcp_h" = xyes; then :
9201 cat >>confdefs.h <<_ACEOF
9202 #define HAVE_NETINET_TCP_H 1
9210 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
9211 for ac_header in readline/readline.h
9213 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
9214 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
9215 cat >>confdefs.h <<_ACEOF
9216 #define HAVE_READLINE_READLINE_H 1
9220 for ac_header in readline.h
9222 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
9223 if test "x$ac_cv_header_readline_h" = xyes; then :
9224 cat >>confdefs.h <<_ACEOF
9225 #define HAVE_READLINE_H 1
9229 as_fn_error $? "readline header not found
9230 If you have readline already installed, see config.log for details on the
9231 failure. It is possible the compiler isn't looking in the proper directory.
9232 Use --without-readline to disable readline support." "$LINENO" 5
9241 for ac_header in readline/history.h
9243 ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
9244 if test "x$ac_cv_header_readline_history_h" = xyes; then :
9245 cat >>confdefs.h <<_ACEOF
9246 #define HAVE_READLINE_HISTORY_H 1
9250 for ac_header in history.h
9252 ac_fn_c_check_header_mongrel "$LINENO" "history.h" "ac_cv_header_history_h" "$ac_includes_default"
9253 if test "x$ac_cv_header_history_h" = xyes; then :
9254 cat >>confdefs.h <<_ACEOF
9255 #define HAVE_HISTORY_H 1
9259 as_fn_error $? "history header 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
9273 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
9274 # Some installations of libedit usurp /usr/include/readline/, which seems
9275 # bad practice, since in combined installations readline will have its headers
9276 # there. We might have to resort to AC_EGREP checks to make sure we found
9277 # the proper header...
9278 for ac_header in editline/readline.h
9280 ac_fn_c_check_header_mongrel "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
9281 if test "x$ac_cv_header_editline_readline_h" = xyes; then :
9282 cat >>confdefs.h <<_ACEOF
9283 #define HAVE_EDITLINE_READLINE_H 1
9287 for ac_header in readline.h
9289 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
9290 if test "x$ac_cv_header_readline_h" = xyes; then :
9291 cat >>confdefs.h <<_ACEOF
9292 #define HAVE_READLINE_H 1
9296 for ac_header in readline/readline.h
9298 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
9299 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
9300 cat >>confdefs.h <<_ACEOF
9301 #define HAVE_READLINE_READLINE_H 1
9305 as_fn_error $? "readline header not found
9306 If you have libedit already installed, see config.log for details on the
9307 failure. It is possible the compiler isn't looking in the proper directory.
9308 Use --without-readline to disable libedit support." "$LINENO" 5
9321 # Note: in a libedit installation, history.h is sometimes a dummy, and may
9322 # not be there at all. Hence, don't complain if not found. We must check
9323 # though, since in yet other versions it is an independent header.
9324 for ac_header in editline/history.h
9326 ac_fn_c_check_header_mongrel "$LINENO" "editline/history.h" "ac_cv_header_editline_history_h" "$ac_includes_default"
9327 if test "x$ac_cv_header_editline_history_h" = xyes; then :
9328 cat >>confdefs.h <<_ACEOF
9329 #define HAVE_EDITLINE_HISTORY_H 1
9333 for ac_header in history.h
9335 ac_fn_c_check_header_mongrel "$LINENO" "history.h" "ac_cv_header_history_h" "$ac_includes_default"
9336 if test "x$ac_cv_header_history_h" = xyes; then :
9337 cat >>confdefs.h <<_ACEOF
9338 #define HAVE_HISTORY_H 1
9342 for ac_header in readline/history.h
9344 ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
9345 if test "x$ac_cv_header_readline_history_h" = xyes; then :
9346 cat >>confdefs.h <<_ACEOF
9347 #define HAVE_READLINE_HISTORY_H 1
9364 if test "$with_zlib" = yes; then
9365 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
9366 if test "x$ac_cv_header_zlib_h" = xyes; then :
9369 as_fn_error $? "zlib header not found
9370 If you have zlib already installed, see config.log for details on the
9371 failure. It is possible the compiler isn't looking in the proper directory.
9372 Use --without-zlib to disable zlib support." "$LINENO" 5
9378 if test "$with_gssapi" = yes ; then
9379 for ac_header in gssapi/gssapi.h
9381 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
9382 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
9383 cat >>confdefs.h <<_ACEOF
9384 #define HAVE_GSSAPI_GSSAPI_H 1
9388 for ac_header in gssapi.h
9390 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
9391 if test "x$ac_cv_header_gssapi_h" = xyes; then :
9392 cat >>confdefs.h <<_ACEOF
9393 #define HAVE_GSSAPI_H 1
9397 as_fn_error $? "gssapi.h header file is required for GSSAPI" "$LINENO" 5
9408 if test "$with_openssl" = yes ; then
9409 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
9410 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
9413 as_fn_error $? "header file <openssl/ssl.h> is required for OpenSSL" "$LINENO" 5
9417 ac_fn_c_check_header_mongrel "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default"
9418 if test "x$ac_cv_header_openssl_err_h" = xyes; then :
9421 as_fn_error $? "header file <openssl/err.h> is required for OpenSSL" "$LINENO" 5
9427 if test "$with_pam" = yes ; then
9428 for ac_header in security/pam_appl.h
9430 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
9431 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
9432 cat >>confdefs.h <<_ACEOF
9433 #define HAVE_SECURITY_PAM_APPL_H 1
9437 for ac_header in pam/pam_appl.h
9439 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
9440 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
9441 cat >>confdefs.h <<_ACEOF
9442 #define HAVE_PAM_PAM_APPL_H 1
9446 as_fn_error $? "header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." "$LINENO" 5
9457 if test "$with_libxml" = yes ; then
9458 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
9459 if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
9462 as_fn_error $? "header file <libxml/parser.h> is required for XML support" "$LINENO" 5
9468 if test "$with_libxslt" = yes ; then
9469 ac_fn_c_check_header_mongrel "$LINENO" "libxslt/xslt.h" "ac_cv_header_libxslt_xslt_h" "$ac_includes_default"
9470 if test "x$ac_cv_header_libxslt_xslt_h" = xyes; then :
9473 as_fn_error $? "header file <libxslt/xslt.h> is required for XSLT support" "$LINENO" 5
9479 if test "$with_ldap" = yes ; then
9480 if test "$PORTNAME" != "win32"; then
9481 for ac_header in ldap.h
9483 ac_fn_c_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
9484 if test "x$ac_cv_header_ldap_h" = xyes; then :
9485 cat >>confdefs.h <<_ACEOF
9486 #define HAVE_LDAP_H 1
9490 as_fn_error $? "header file <ldap.h> is required for LDAP" "$LINENO" 5
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible LDAP implementation" >&5
9496 $as_echo_n "checking for compatible LDAP implementation... " >&6; }
9497 if ${pgac_cv_ldap_safe+:} false; then :
9498 $as_echo_n "(cached) " >&6
9500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9501 /* end confdefs.h. */
9503 #if !defined(LDAP_VENDOR_VERSION) || \
9504 (defined(LDAP_API_FEATURE_X_OPENLDAP) && \
9505 LDAP_VENDOR_VERSION >= 20424 && LDAP_VENDOR_VERSION <= 20431)
9516 if ac_fn_c_try_compile "$LINENO"; then :
9517 pgac_cv_ldap_safe=yes
9519 pgac_cv_ldap_safe=no
9521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_ldap_safe" >&5
9524 $as_echo "$pgac_cv_ldap_safe" >&6; }
9526 if test "$pgac_cv_ldap_safe" != yes; then
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9528 *** With OpenLDAP versions 2.4.24 through 2.4.31, inclusive, each backend
9529 *** process that loads libpq (via WAL receiver, dblink, or postgres_fdw) and
9530 *** also uses LDAP will crash on exit." >&5
9531 $as_echo "$as_me: WARNING:
9532 *** With OpenLDAP versions 2.4.24 through 2.4.31, inclusive, each backend
9533 *** process that loads libpq (via WAL receiver, dblink, or postgres_fdw) and
9534 *** also uses LDAP will crash on exit." >&2;}
9537 for ac_header in winldap.h
9539 ac_fn_c_check_header_compile "$LINENO" "winldap.h" "ac_cv_header_winldap_h" "$ac_includes_default
9540 #include <windows.h>
9543 if test "x$ac_cv_header_winldap_h" = xyes; then :
9544 cat >>confdefs.h <<_ACEOF
9545 #define HAVE_WINLDAP_H 1
9549 as_fn_error $? "header file <winldap.h> is required for LDAP" "$LINENO" 5
9557 if test "$with_bonjour" = yes ; then
9558 ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
9559 if test "x$ac_cv_header_dns_sd_h" = xyes; then :
9562 as_fn_error $? "header file <dns_sd.h> is required for Bonjour" "$LINENO" 5
9568 # for contrib/uuid-ossp
9569 if test "$with_uuid" = bsd ; then
9570 for ac_header in uuid.h
9572 ac_fn_c_check_header_mongrel "$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
9573 if test "x$ac_cv_header_uuid_h" = xyes; then :
9574 cat >>confdefs.h <<_ACEOF
9575 #define HAVE_UUID_H 1
9577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9578 /* end confdefs.h. */
9582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9583 $EGREP "uuid_to_string" >/dev/null 2>&1; then :
9586 as_fn_error $? "header file <uuid.h> does not match BSD UUID library" "$LINENO" 5
9591 as_fn_error $? "header file <uuid.h> is required for BSD UUID" "$LINENO" 5
9596 elif test "$with_uuid" = e2fs ; then
9597 for ac_header in uuid/uuid.h
9599 ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
9600 if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
9601 cat >>confdefs.h <<_ACEOF
9602 #define HAVE_UUID_UUID_H 1
9604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9605 /* end confdefs.h. */
9606 #include <uuid/uuid.h>
9609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9610 $EGREP "uuid_generate" >/dev/null 2>&1; then :
9613 as_fn_error $? "header file <uuid/uuid.h> does not match E2FS UUID library" "$LINENO" 5
9618 for ac_header in uuid.h
9620 ac_fn_c_check_header_mongrel "$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
9621 if test "x$ac_cv_header_uuid_h" = xyes; then :
9622 cat >>confdefs.h <<_ACEOF
9623 #define HAVE_UUID_H 1
9625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9626 /* end confdefs.h. */
9630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9631 $EGREP "uuid_generate" >/dev/null 2>&1; then :
9634 as_fn_error $? "header file <uuid.h> does not match E2FS UUID library" "$LINENO" 5
9639 as_fn_error $? "header file <uuid/uuid.h> or <uuid.h> is required for E2FS UUID" "$LINENO" 5
9648 elif test "$with_uuid" = ossp ; then
9649 for ac_header in ossp/uuid.h
9651 ac_fn_c_check_header_mongrel "$LINENO" "ossp/uuid.h" "ac_cv_header_ossp_uuid_h" "$ac_includes_default"
9652 if test "x$ac_cv_header_ossp_uuid_h" = xyes; then :
9653 cat >>confdefs.h <<_ACEOF
9654 #define HAVE_OSSP_UUID_H 1
9656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9657 /* end confdefs.h. */
9658 #include <ossp/uuid.h>
9661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9662 $EGREP "uuid_export" >/dev/null 2>&1; then :
9665 as_fn_error $? "header file <ossp/uuid.h> does not match OSSP UUID library" "$LINENO" 5
9670 for ac_header in uuid.h
9672 ac_fn_c_check_header_mongrel "$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
9673 if test "x$ac_cv_header_uuid_h" = xyes; then :
9674 cat >>confdefs.h <<_ACEOF
9675 #define HAVE_UUID_H 1
9677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9678 /* end confdefs.h. */
9682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9683 $EGREP "uuid_export" >/dev/null 2>&1; then :
9686 as_fn_error $? "header file <uuid.h> does not match OSSP UUID library" "$LINENO" 5
9691 as_fn_error $? "header file <ossp/uuid.h> or <uuid.h> is required for OSSP UUID" "$LINENO" 5
9702 if test "$PORTNAME" = "win32" ; then
9703 for ac_header in crtdefs.h
9705 ac_fn_c_check_header_mongrel "$LINENO" "crtdefs.h" "ac_cv_header_crtdefs_h" "$ac_includes_default"
9706 if test "x$ac_cv_header_crtdefs_h" = xyes; then :
9707 cat >>confdefs.h <<_ACEOF
9708 #define HAVE_CRTDEFS_H 1
9718 ## Types, structures, compiler characteristics
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9722 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9723 if ${ac_cv_c_bigendian+:} false; then :
9724 $as_echo_n "(cached) " >&6
9726 ac_cv_c_bigendian=unknown
9727 # See if we're dealing with a universal compiler.
9728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9729 /* end confdefs.h. */
9730 #ifndef __APPLE_CC__
9731 not a universal capable compiler
9736 if ac_fn_c_try_compile "$LINENO"; then :
9738 # Check for potential -arch flags. It is not universal unless
9739 # there are at least two -arch flags with different values.
9742 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9743 if test -n "$ac_prev"; then
9745 i?86 | x86_64 | ppc | ppc64)
9746 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9749 ac_cv_c_bigendian=universal
9755 elif test "x$ac_word" = "x-arch"; then
9760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9761 if test $ac_cv_c_bigendian = unknown; then
9762 # See if sys/param.h defines the BYTE_ORDER macro.
9763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9764 /* end confdefs.h. */
9765 #include <sys/types.h>
9766 #include <sys/param.h>
9771 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9772 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9781 if ac_fn_c_try_compile "$LINENO"; then :
9782 # It does; now see whether it defined to BIG_ENDIAN or not.
9783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9784 /* end confdefs.h. */
9785 #include <sys/types.h>
9786 #include <sys/param.h>
9791 #if BYTE_ORDER != BIG_ENDIAN
9799 if ac_fn_c_try_compile "$LINENO"; then :
9800 ac_cv_c_bigendian=yes
9802 ac_cv_c_bigendian=no
9804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9808 if test $ac_cv_c_bigendian = unknown; then
9809 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9811 /* end confdefs.h. */
9817 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9825 if ac_fn_c_try_compile "$LINENO"; then :
9826 # It does; now see whether it defined to _BIG_ENDIAN or not.
9827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9828 /* end confdefs.h. */
9842 if ac_fn_c_try_compile "$LINENO"; then :
9843 ac_cv_c_bigendian=yes
9845 ac_cv_c_bigendian=no
9847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9851 if test $ac_cv_c_bigendian = unknown; then
9852 # Compile a test program.
9853 if test "$cross_compiling" = yes; then :
9854 # Try to guess by grepping values from an object file.
9855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9856 /* end confdefs.h. */
9857 short int ascii_mm[] =
9858 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9859 short int ascii_ii[] =
9860 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9861 int use_ascii (int i) {
9862 return ascii_mm[i] + ascii_ii[i];
9864 short int ebcdic_ii[] =
9865 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9866 short int ebcdic_mm[] =
9867 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9868 int use_ebcdic (int i) {
9869 return ebcdic_mm[i] + ebcdic_ii[i];
9876 return use_ascii (foo) == use_ebcdic (foo);
9881 if ac_fn_c_try_compile "$LINENO"; then :
9882 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9883 ac_cv_c_bigendian=yes
9885 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9886 if test "$ac_cv_c_bigendian" = unknown; then
9887 ac_cv_c_bigendian=no
9889 # finding both strings is unlikely to happen, but who knows?
9890 ac_cv_c_bigendian=unknown
9894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9897 /* end confdefs.h. */
9898 $ac_includes_default
9903 /* Are we little or big endian? From Harbison&Steele. */
9907 char c[sizeof (long int)];
9910 return u.c[sizeof (long int) - 1] == 1;
9916 if ac_fn_c_try_run "$LINENO"; then :
9917 ac_cv_c_bigendian=no
9919 ac_cv_c_bigendian=yes
9921 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9922 conftest.$ac_objext conftest.beam conftest.$ac_ext
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9928 $as_echo "$ac_cv_c_bigendian" >&6; }
9929 case $ac_cv_c_bigendian in #(
9931 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9937 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9941 as_fn_error $? "unknown endianness
9942 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
9946 $as_echo_n "checking for inline... " >&6; }
9947 if ${ac_cv_c_inline+:} false; then :
9948 $as_echo_n "(cached) " >&6
9951 for ac_kw in inline __inline__ __inline; do
9952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9953 /* end confdefs.h. */
9956 static $ac_kw foo_t static_foo () {return 0; }
9957 $ac_kw foo_t foo () {return 0; }
9961 if ac_fn_c_try_compile "$LINENO"; then :
9962 ac_cv_c_inline=$ac_kw
9964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9965 test "$ac_cv_c_inline" != no && break
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
9970 $as_echo "$ac_cv_c_inline" >&6; }
9972 case $ac_cv_c_inline in
9975 case $ac_cv_c_inline in
9977 *) ac_val=$ac_cv_c_inline;;
9979 cat >>confdefs.h <<_ACEOF
9981 #define inline $ac_val
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quiet inline (no complaint if unreferenced)" >&5
9988 $as_echo_n "checking for quiet inline (no complaint if unreferenced)... " >&6; }
9989 if ${pgac_cv_c_inline_quietly+:} false; then :
9990 $as_echo_n "(cached) " >&6
9992 pgac_cv_c_inline_quietly=no
9993 if test "$ac_cv_c_inline" != no; then
9994 pgac_c_inline_save_werror=$ac_c_werror_flag
9995 ac_c_werror_flag=yes
9996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9997 /* end confdefs.h. */
9998 #include "$srcdir/config/test_quiet_include.h"
10007 if ac_fn_c_try_link "$LINENO"; then :
10008 pgac_cv_c_inline_quietly=yes
10010 rm -f core conftest.err conftest.$ac_objext \
10011 conftest$ac_exeext conftest.$ac_ext
10012 ac_c_werror_flag=$pgac_c_inline_save_werror
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_c_inline_quietly" >&5
10016 $as_echo "$pgac_cv_c_inline_quietly" >&6; }
10017 if test "$pgac_cv_c_inline_quietly" != no; then
10019 cat >>confdefs.h <<_ACEOF
10020 #define PG_USE_INLINE 1
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
10027 $as_echo_n "checking for flexible array members... " >&6; }
10028 if ${ac_cv_c_flexmember+:} false; then :
10029 $as_echo_n "(cached) " >&6
10031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10032 /* end confdefs.h. */
10033 #include <stdlib.h>
10035 #include <stddef.h>
10036 struct s { int n; double d[]; };
10040 int m = getchar ();
10041 struct s *p = malloc (offsetof (struct s, d)
10042 + m * sizeof (double));
10044 return p->d != (double *) NULL;
10049 if ac_fn_c_try_compile "$LINENO"; then :
10050 ac_cv_c_flexmember=yes
10052 ac_cv_c_flexmember=no
10054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
10057 $as_echo "$ac_cv_c_flexmember" >&6; }
10058 if test $ac_cv_c_flexmember = yes; then
10060 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
10063 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed types" >&5
10068 $as_echo_n "checking for signed types... " >&6; }
10069 if ${pgac_cv_c_signed+:} false; then :
10070 $as_echo_n "(cached) " >&6
10072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10073 /* end confdefs.h. */
10078 signed char c; signed short s; signed int i;
10083 if ac_fn_c_try_compile "$LINENO"; then :
10084 pgac_cv_c_signed=yes
10086 pgac_cv_c_signed=no
10088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_c_signed" >&5
10091 $as_echo "$pgac_cv_c_signed" >&6; }
10092 if test x"$pgac_cv_c_signed" = xno ; then
10094 $as_echo "#define signed /**/" >>confdefs.h
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __func__" >&5
10098 $as_echo_n "checking for __func__... " >&6; }
10099 if ${pgac_cv_funcname_func_support+:} false; then :
10100 $as_echo_n "(cached) " >&6
10102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10103 /* end confdefs.h. */
10108 printf("%s\n", __func__);
10113 if ac_fn_c_try_compile "$LINENO"; then :
10114 pgac_cv_funcname_func_support=yes
10116 pgac_cv_funcname_func_support=no
10118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_funcname_func_support" >&5
10121 $as_echo "$pgac_cv_funcname_func_support" >&6; }
10122 if test x"$pgac_cv_funcname_func_support" = xyes ; then
10124 $as_echo "#define HAVE_FUNCNAME__FUNC 1" >>confdefs.h
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __FUNCTION__" >&5
10128 $as_echo_n "checking for __FUNCTION__... " >&6; }
10129 if ${pgac_cv_funcname_function_support+:} false; then :
10130 $as_echo_n "(cached) " >&6
10132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10133 /* end confdefs.h. */
10138 printf("%s\n", __FUNCTION__);
10143 if ac_fn_c_try_compile "$LINENO"; then :
10144 pgac_cv_funcname_function_support=yes
10146 pgac_cv_funcname_function_support=no
10148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_funcname_function_support" >&5
10151 $as_echo "$pgac_cv_funcname_function_support" >&6; }
10152 if test x"$pgac_cv_funcname_function_support" = xyes ; then
10154 $as_echo "#define HAVE_FUNCNAME__FUNCTION 1" >>confdefs.h
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Static_assert" >&5
10159 $as_echo_n "checking for _Static_assert... " >&6; }
10160 if ${pgac_cv__static_assert+:} false; then :
10161 $as_echo_n "(cached) " >&6
10163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10164 /* end confdefs.h. */
10169 ({ _Static_assert(1, "foo"); })
10174 if ac_fn_c_try_link "$LINENO"; then :
10175 pgac_cv__static_assert=yes
10177 pgac_cv__static_assert=no
10179 rm -f core conftest.err conftest.$ac_objext \
10180 conftest$ac_exeext conftest.$ac_ext
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__static_assert" >&5
10183 $as_echo "$pgac_cv__static_assert" >&6; }
10184 if test x"$pgac_cv__static_assert" = xyes ; then
10186 $as_echo "#define HAVE__STATIC_ASSERT 1" >>confdefs.h
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_types_compatible_p" >&5
10190 $as_echo_n "checking for __builtin_types_compatible_p... " >&6; }
10191 if ${pgac_cv__types_compatible+:} false; then :
10192 $as_echo_n "(cached) " >&6
10194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10195 /* end confdefs.h. */
10200 int x; static int y[__builtin_types_compatible_p(__typeof__(x), int)];
10205 if ac_fn_c_try_compile "$LINENO"; then :
10206 pgac_cv__types_compatible=yes
10208 pgac_cv__types_compatible=no
10210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__types_compatible" >&5
10213 $as_echo "$pgac_cv__types_compatible" >&6; }
10214 if test x"$pgac_cv__types_compatible" = xyes ; then
10216 $as_echo "#define HAVE__BUILTIN_TYPES_COMPATIBLE_P 1" >>confdefs.h
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_constant_p" >&5
10220 $as_echo_n "checking for __builtin_constant_p... " >&6; }
10221 if ${pgac_cv__builtin_constant_p+:} false; then :
10222 $as_echo_n "(cached) " >&6
10224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10225 /* end confdefs.h. */
10226 static int x; static int y[__builtin_constant_p(x) ? x : 1];
10235 if ac_fn_c_try_compile "$LINENO"; then :
10236 pgac_cv__builtin_constant_p=yes
10238 pgac_cv__builtin_constant_p=no
10240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_constant_p" >&5
10243 $as_echo "$pgac_cv__builtin_constant_p" >&6; }
10244 if test x"$pgac_cv__builtin_constant_p" = xyes ; then
10246 $as_echo "#define HAVE__BUILTIN_CONSTANT_P 1" >>confdefs.h
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unreachable" >&5
10250 $as_echo_n "checking for __builtin_unreachable... " >&6; }
10251 if ${pgac_cv__builtin_unreachable+:} false; then :
10252 $as_echo_n "(cached) " >&6
10254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10255 /* end confdefs.h. */
10260 __builtin_unreachable();
10265 if ac_fn_c_try_link "$LINENO"; then :
10266 pgac_cv__builtin_unreachable=yes
10268 pgac_cv__builtin_unreachable=no
10270 rm -f core conftest.err conftest.$ac_objext \
10271 conftest$ac_exeext conftest.$ac_ext
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_unreachable" >&5
10274 $as_echo "$pgac_cv__builtin_unreachable" >&6; }
10275 if test x"$pgac_cv__builtin_unreachable" = xyes ; then
10277 $as_echo "#define HAVE__BUILTIN_UNREACHABLE 1" >>confdefs.h
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __VA_ARGS__" >&5
10281 $as_echo_n "checking for __VA_ARGS__... " >&6; }
10282 if ${pgac_cv__va_args+:} false; then :
10283 $as_echo_n "(cached) " >&6
10285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10286 /* end confdefs.h. */
10291 #define debug(...) fprintf(stderr, __VA_ARGS__)
10292 debug("%s", "blarg");
10298 if ac_fn_c_try_compile "$LINENO"; then :
10299 pgac_cv__va_args=yes
10301 pgac_cv__va_args=no
10303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__va_args" >&5
10306 $as_echo "$pgac_cv__va_args" >&6; }
10307 if test x"$pgac_cv__va_args" = xyes ; then
10309 $as_echo "#define HAVE__VA_ARGS 1" >>confdefs.h
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
10313 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
10314 if ${ac_cv_struct_tm+:} false; then :
10315 $as_echo_n "(cached) " >&6
10317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10318 /* end confdefs.h. */
10319 #include <sys/types.h>
10326 int *p = &tm.tm_sec;
10332 if ac_fn_c_try_compile "$LINENO"; then :
10333 ac_cv_struct_tm=time.h
10335 ac_cv_struct_tm=sys/time.h
10337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
10340 $as_echo "$ac_cv_struct_tm" >&6; }
10341 if test $ac_cv_struct_tm = sys/time.h; then
10343 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
10347 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
10348 #include <$ac_cv_struct_tm>
10351 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
10353 cat >>confdefs.h <<_ACEOF
10354 #define HAVE_STRUCT_TM_TM_ZONE 1
10360 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10362 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
10366 $as_echo_n "checking for tzname... " >&6; }
10367 if ${ac_cv_var_tzname+:} false; then :
10368 $as_echo_n "(cached) " >&6
10370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10371 /* end confdefs.h. */
10373 #ifndef tzname /* For SGI. */
10374 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
10385 if ac_fn_c_try_link "$LINENO"; then :
10386 ac_cv_var_tzname=yes
10388 ac_cv_var_tzname=no
10390 rm -f core conftest.err conftest.$ac_objext \
10391 conftest$ac_exeext conftest.$ac_ext
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
10394 $as_echo "$ac_cv_var_tzname" >&6; }
10395 if test $ac_cv_var_tzname = yes; then
10397 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
10401 ac_fn_c_check_type "$LINENO" "union semun" "ac_cv_type_union_semun" "#include <sys/types.h>
10402 #include <sys/ipc.h>
10403 #include <sys/sem.h>
10405 if test "x$ac_cv_type_union_semun" = xyes; then :
10407 cat >>confdefs.h <<_ACEOF
10408 #define HAVE_UNION_SEMUN 1
10414 ac_fn_c_check_type "$LINENO" "struct sockaddr_un" "ac_cv_type_struct_sockaddr_un" "#include <sys/types.h>
10415 #ifdef HAVE_SYS_UN_H
10416 #include <sys/un.h>
10420 if test "x$ac_cv_type_struct_sockaddr_un" = xyes; then :
10422 $as_echo "#define HAVE_UNIX_SOCKETS 1" >>confdefs.h
10426 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
10427 #ifdef HAVE_SYS_SOCKET_H
10428 #include <sys/socket.h>
10432 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
10434 cat >>confdefs.h <<_ACEOF
10435 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
10441 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
10442 #ifdef HAVE_SYS_SOCKET_H
10443 #include <sys/socket.h>
10447 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
10449 cat >>confdefs.h <<_ACEOF
10450 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
10455 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "#include <sys/types.h>
10456 #ifdef HAVE_SYS_SOCKET_H
10457 #include <sys/socket.h>
10461 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then :
10463 cat >>confdefs.h <<_ACEOF
10464 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
10469 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_len" "ac_cv_member_struct_sockaddr_storage_ss_len" "#include <sys/types.h>
10470 #ifdef HAVE_SYS_SOCKET_H
10471 #include <sys/socket.h>
10475 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = xyes; then :
10477 cat >>confdefs.h <<_ACEOF
10478 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
10483 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_len" "ac_cv_member_struct_sockaddr_storage___ss_len" "#include <sys/types.h>
10484 #ifdef HAVE_SYS_SOCKET_H
10485 #include <sys/socket.h>
10489 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = xyes; then :
10491 cat >>confdefs.h <<_ACEOF
10492 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
10497 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
10498 #ifdef HAVE_SYS_SOCKET_H
10499 #include <sys/socket.h>
10503 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
10505 cat >>confdefs.h <<_ACEOF
10506 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
10512 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
10513 #include <sys/socket.h>
10517 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
10519 cat >>confdefs.h <<_ACEOF
10520 #define HAVE_STRUCT_ADDRINFO 1
10527 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10528 if test "x$ac_cv_type_intptr_t" = xyes; then :
10530 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
10533 for ac_type in 'int' 'long int' 'long long int'; do
10534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10535 /* end confdefs.h. */
10536 $ac_includes_default
10540 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
10541 test_array [0] = 0;
10542 return test_array [0];
10548 if ac_fn_c_try_compile "$LINENO"; then :
10550 cat >>confdefs.h <<_ACEOF
10551 #define intptr_t $ac_type
10556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10557 test -z "$ac_type" && break
10563 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
10564 if test "x$ac_cv_type_uintptr_t" = xyes; then :
10566 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
10569 for ac_type in 'unsigned int' 'unsigned long int' \
10570 'unsigned long long int'; do
10571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10572 /* end confdefs.h. */
10573 $ac_includes_default
10577 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
10578 test_array [0] = 0;
10579 return test_array [0];
10585 if ac_fn_c_try_compile "$LINENO"; then :
10587 cat >>confdefs.h <<_ACEOF
10588 #define uintptr_t $ac_type
10593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10594 test -z "$ac_type" && break
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
10601 $as_echo_n "checking for unsigned long long int... " >&6; }
10602 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
10603 $as_echo_n "(cached) " >&6
10605 ac_cv_type_unsigned_long_long_int=yes
10606 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
10607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10608 /* end confdefs.h. */
10610 /* For now, do not test the preprocessor; as of 2007 there are too many
10611 implementations with broken preprocessors. Perhaps this can
10612 be revisited in 2012. In the meantime, code should not expect
10613 #if to work with literals wider than 32 bits. */
10614 /* Test literals. */
10615 long long int ll = 9223372036854775807ll;
10616 long long int nll = -9223372036854775807LL;
10617 unsigned long long int ull = 18446744073709551615ULL;
10618 /* Test constant expressions. */
10619 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
10621 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
10627 /* Test availability of runtime routines for shift and division. */
10628 long long int llmax = 9223372036854775807ll;
10629 unsigned long long int ullmax = 18446744073709551615ull;
10630 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
10631 | (llmax / ll) | (llmax % ll)
10632 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
10633 | (ullmax / ull) | (ullmax % ull));
10639 if ac_fn_c_try_link "$LINENO"; then :
10642 ac_cv_type_unsigned_long_long_int=no
10644 rm -f core conftest.err conftest.$ac_objext \
10645 conftest$ac_exeext conftest.$ac_ext
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
10649 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
10650 if test $ac_cv_type_unsigned_long_long_int = yes; then
10652 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
10659 $as_echo_n "checking for long long int... " >&6; }
10660 if ${ac_cv_type_long_long_int+:} false; then :
10661 $as_echo_n "(cached) " >&6
10663 ac_cv_type_long_long_int=yes
10664 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
10665 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
10666 if test $ac_cv_type_long_long_int = yes; then
10667 if test "$cross_compiling" = yes; then :
10670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10671 /* end confdefs.h. */
10672 #include <limits.h>
10675 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
10676 # define LLONG_MAX (HALF - 1 + HALF)
10681 long long int n = 1;
10685 long long int m = n << i;
10688 if (LLONG_MAX / 2 < m)
10696 if ac_fn_c_try_run "$LINENO"; then :
10699 ac_cv_type_long_long_int=no
10701 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10702 conftest.$ac_objext conftest.beam conftest.$ac_ext
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
10709 $as_echo "$ac_cv_type_long_long_int" >&6; }
10710 if test $ac_cv_type_long_long_int = yes; then
10712 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale_t" >&5
10718 $as_echo_n "checking for locale_t... " >&6; }
10719 if ${pgac_cv_type_locale_t+:} false; then :
10720 $as_echo_n "(cached) " >&6
10722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10723 /* end confdefs.h. */
10724 #include <locale.h>
10734 if ac_fn_c_try_compile "$LINENO"; then :
10735 pgac_cv_type_locale_t=yes
10737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10738 /* end confdefs.h. */
10739 #include <xlocale.h>
10749 if ac_fn_c_try_compile "$LINENO"; then :
10750 pgac_cv_type_locale_t='yes (in xlocale.h)'
10752 pgac_cv_type_locale_t=no
10754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_locale_t" >&5
10759 $as_echo "$pgac_cv_type_locale_t" >&6; }
10760 if test "$pgac_cv_type_locale_t" != no; then
10762 $as_echo "#define HAVE_LOCALE_T 1" >>confdefs.h
10765 if test "$pgac_cv_type_locale_t" = 'yes (in xlocale.h)'; then
10767 $as_echo "#define LOCALE_T_IN_XLOCALE 1" >>confdefs.h
10771 ac_fn_c_check_type "$LINENO" "struct cmsgcred" "ac_cv_type_struct_cmsgcred" "#include <sys/socket.h>
10772 #include <sys/param.h>
10773 #ifdef HAVE_SYS_UCRED_H
10774 #include <sys/ucred.h>
10777 if test "x$ac_cv_type_struct_cmsgcred" = xyes; then :
10779 cat >>confdefs.h <<_ACEOF
10780 #define HAVE_STRUCT_CMSGCRED 1
10787 ac_fn_c_check_type "$LINENO" "struct option" "ac_cv_type_struct_option" "#ifdef HAVE_GETOPT_H
10788 #include <getopt.h>
10791 if test "x$ac_cv_type_struct_option" = xyes; then :
10793 cat >>confdefs.h <<_ACEOF
10794 #define HAVE_STRUCT_OPTION 1
10801 if test "$with_zlib" = yes; then
10802 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
10803 # did not). While we could work around the lack of z_streamp, it
10804 # seems unwise to encourage people to use such old zlib versions...
10805 ac_fn_c_check_type "$LINENO" "z_streamp" "ac_cv_type_z_streamp" "#include <zlib.h>
10807 if test "x$ac_cv_type_z_streamp" = xyes; then :
10810 as_fn_error $? "zlib version is too old
10811 Use --without-zlib to disable zlib support." "$LINENO" 5
10816 # On PPC, check if assembler supports LWARX instruction's mutex hint bit
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports lwarx hint bit" >&5
10820 $as_echo_n "checking whether assembler supports lwarx hint bit... " >&6; }
10821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10822 /* end confdefs.h. */
10827 int a = 0; int *p = &a; int r;
10828 __asm__ __volatile__ (" lwarx %0,0,%1,1\n" : "=&r"(r) : "r"(p));
10833 if ac_fn_c_try_compile "$LINENO"; then :
10834 pgac_cv_have_ppc_mutex_hint=yes
10836 pgac_cv_have_ppc_mutex_hint=no
10838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_have_ppc_mutex_hint" >&5
10840 $as_echo "$pgac_cv_have_ppc_mutex_hint" >&6; }
10841 if test x"$pgac_cv_have_ppc_mutex_hint" = xyes ; then
10843 $as_echo "#define HAVE_PPC_LWARX_MUTEX_HINT 1" >>confdefs.h
10849 # Check largefile support. You might think this is a system service not a
10850 # compiler characteristic, but you'd be wrong. We must check this before
10851 # probing existence of related functions such as fseeko, since the largefile
10852 # defines can affect what is generated for that.
10853 if test "$PORTNAME" != "win32"; then
10854 # Check whether --enable-largefile was given.
10855 if test "${enable_largefile+set}" = set; then :
10856 enableval=$enable_largefile;
10859 if test "$enable_largefile" != no; then
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
10862 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
10863 if ${ac_cv_sys_largefile_CC+:} false; then :
10864 $as_echo_n "(cached) " >&6
10866 ac_cv_sys_largefile_CC=no
10867 if test "$GCC" != yes; then
10870 # IRIX 6.2 and later do not support large files by default,
10871 # so use the C compiler's -n32 option if that helps.
10872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10873 /* end confdefs.h. */
10874 #include <sys/types.h>
10875 /* Check that off_t can represent 2**63 - 1 correctly.
10876 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10877 since some C++ compilers masquerading as C compilers
10878 incorrectly reject 9223372036854775807. */
10879 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10880 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10881 && LARGE_OFF_T % 2147483647 == 1)
10891 if ac_fn_c_try_compile "$LINENO"; then :
10894 rm -f core conftest.err conftest.$ac_objext
10896 if ac_fn_c_try_compile "$LINENO"; then :
10897 ac_cv_sys_largefile_CC=' -n32'; break
10899 rm -f core conftest.err conftest.$ac_objext
10903 rm -f conftest.$ac_ext
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
10907 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
10908 if test "$ac_cv_sys_largefile_CC" != no; then
10909 CC=$CC$ac_cv_sys_largefile_CC
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10913 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
10914 if ${ac_cv_sys_file_offset_bits+:} false; then :
10915 $as_echo_n "(cached) " >&6
10918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10919 /* end confdefs.h. */
10920 #include <sys/types.h>
10921 /* Check that off_t can represent 2**63 - 1 correctly.
10922 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10923 since some C++ compilers masquerading as C compilers
10924 incorrectly reject 9223372036854775807. */
10925 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10926 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10927 && LARGE_OFF_T % 2147483647 == 1)
10937 if ac_fn_c_try_compile "$LINENO"; then :
10938 ac_cv_sys_file_offset_bits=no; break
10940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10942 /* end confdefs.h. */
10943 #define _FILE_OFFSET_BITS 64
10944 #include <sys/types.h>
10945 /* Check that off_t can represent 2**63 - 1 correctly.
10946 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10947 since some C++ compilers masquerading as C compilers
10948 incorrectly reject 9223372036854775807. */
10949 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10950 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10951 && LARGE_OFF_T % 2147483647 == 1)
10961 if ac_fn_c_try_compile "$LINENO"; then :
10962 ac_cv_sys_file_offset_bits=64; break
10964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10965 ac_cv_sys_file_offset_bits=unknown
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
10970 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10971 case $ac_cv_sys_file_offset_bits in #(
10974 cat >>confdefs.h <<_ACEOF
10975 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10980 if test $ac_cv_sys_file_offset_bits = unknown; then
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
10982 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
10983 if ${ac_cv_sys_large_files+:} false; then :
10984 $as_echo_n "(cached) " >&6
10987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10988 /* end confdefs.h. */
10989 #include <sys/types.h>
10990 /* Check that off_t can represent 2**63 - 1 correctly.
10991 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10992 since some C++ compilers masquerading as C compilers
10993 incorrectly reject 9223372036854775807. */
10994 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10995 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10996 && LARGE_OFF_T % 2147483647 == 1)
11006 if ac_fn_c_try_compile "$LINENO"; then :
11007 ac_cv_sys_large_files=no; break
11009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11011 /* end confdefs.h. */
11012 #define _LARGE_FILES 1
11013 #include <sys/types.h>
11014 /* Check that off_t can represent 2**63 - 1 correctly.
11015 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11016 since some C++ compilers masquerading as C compilers
11017 incorrectly reject 9223372036854775807. */
11018 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11019 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11020 && LARGE_OFF_T % 2147483647 == 1)
11030 if ac_fn_c_try_compile "$LINENO"; then :
11031 ac_cv_sys_large_files=1; break
11033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11034 ac_cv_sys_large_files=unknown
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11039 $as_echo "$ac_cv_sys_large_files" >&6; }
11040 case $ac_cv_sys_large_files in #(
11043 cat >>confdefs.h <<_ACEOF
11044 #define _LARGE_FILES $ac_cv_sys_large_files
11057 # Check for largefile support (must be after AC_SYS_LARGEFILE)
11058 # The cast to long int works around a bug in the HP C Compiler
11059 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11060 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11061 # This bug is HP SR number 8606223364.
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
11063 $as_echo_n "checking size of off_t... " >&6; }
11064 if ${ac_cv_sizeof_off_t+:} false; then :
11065 $as_echo_n "(cached) " >&6
11067 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
11070 if test "$ac_cv_type_off_t" = yes; then
11071 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11072 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11073 as_fn_error 77 "cannot compute sizeof (off_t)
11074 See \`config.log' for more details" "$LINENO" 5; }
11076 ac_cv_sizeof_off_t=0
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
11082 $as_echo "$ac_cv_sizeof_off_t" >&6; }
11086 cat >>confdefs.h <<_ACEOF
11087 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
11092 # If we don't have largefile support, can't handle segsize >= 2GB.
11093 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
11094 as_fn_error $? "Large file support is not enabled. Segment size cannot be larger than 1GB." "$LINENO" 5
11099 ## Functions, global variables
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int timezone" >&5
11103 $as_echo_n "checking for int timezone... " >&6; }
11104 if ${pgac_cv_var_int_timezone+:} false; then :
11105 $as_echo_n "(cached) " >&6
11107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11108 /* end confdefs.h. */
11115 res = timezone / 60;
11117 res = _timezone / 60;
11123 if ac_fn_c_try_link "$LINENO"; then :
11124 pgac_cv_var_int_timezone=yes
11126 pgac_cv_var_int_timezone=no
11128 rm -f core conftest.err conftest.$ac_objext \
11129 conftest$ac_exeext conftest.$ac_ext
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_timezone" >&5
11132 $as_echo "$pgac_cv_var_int_timezone" >&6; }
11133 if test x"$pgac_cv_var_int_timezone" = xyes ; then
11135 $as_echo "#define HAVE_INT_TIMEZONE 1" >>confdefs.h
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for accept()" >&5
11139 $as_echo_n "checking types of arguments for accept()... " >&6; }
11140 if ${ac_cv_func_accept_return+:} false; then :
11141 $as_echo_n "(cached) " >&6
11143 if ${ac_cv_func_accept_arg1+:} false; then :
11144 $as_echo_n "(cached) " >&6
11146 if ${ac_cv_func_accept_arg2+:} false; then :
11147 $as_echo_n "(cached) " >&6
11149 if ${ac_cv_func_accept_arg3+:} false; then :
11150 $as_echo_n "(cached) " >&6
11152 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL' 'SOCKET WSAAPI'; do
11153 for ac_cv_func_accept_arg1 in 'int' 'unsigned int' 'SOCKET'; do
11154 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
11155 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
11156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11157 /* end confdefs.h. */
11158 #ifdef HAVE_SYS_TYPES_H
11159 #include <sys/types.h>
11161 #ifdef HAVE_SYS_SOCKET_H
11162 #include <sys/socket.h>
11164 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
11173 if ac_fn_c_try_compile "$LINENO"; then :
11174 ac_not_found=no; break 4
11178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11183 if test "$ac_not_found" = yes; then
11184 as_fn_error $? "could not determine argument types" "$LINENO" 5
11186 if test "$ac_cv_func_accept_arg3" = "void"; then
11187 ac_cv_func_accept_arg3=int
11197 { $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
11198 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
11200 cat >>confdefs.h <<_ACEOF
11201 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
11205 cat >>confdefs.h <<_ACEOF
11206 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
11210 cat >>confdefs.h <<_ACEOF
11211 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
11215 cat >>confdefs.h <<_ACEOF
11216 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday takes only one argument" >&5
11221 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
11222 if ${pgac_cv_func_gettimeofday_1arg+:} false; then :
11223 $as_echo_n "(cached) " >&6
11225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11226 /* end confdefs.h. */
11227 #include <sys/time.h>
11231 struct timeval *tp;
11232 struct timezone *tzp;
11233 gettimeofday(tp,tzp);
11238 if ac_fn_c_try_compile "$LINENO"; then :
11239 pgac_cv_func_gettimeofday_1arg=no
11241 pgac_cv_func_gettimeofday_1arg=yes
11243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_gettimeofday_1arg" >&5
11246 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
11247 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
11249 $as_echo "#define GETTIMEOFDAY_1ARG 1" >>confdefs.h
11254 # Some versions of libedit contain strlcpy(), setproctitle(), and other
11255 # symbols that that library has no business exposing to the world. Pending
11256 # acquisition of a clue by those developers, ignore libedit (including its
11257 # possible alias of libreadline) while checking for everything else.
11258 LIBS_including_readline="$LIBS"
11259 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
11261 for ac_func in cbrt dlopen fdatasync getifaddrs getpeerucred getrlimit mbstowcs_l memmove poll pstat readlink setproctitle setsid shm_open sigprocmask symlink sync_file_range towlower utime utimes wcstombs wcstombs_l
11263 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11264 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11265 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11266 cat >>confdefs.h <<_ACEOF
11267 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11274 ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
11275 if test "x$ac_cv_func_fseeko" = xyes; then :
11276 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
11279 case " $LIBOBJS " in
11280 *" fseeko.$ac_objext "* ) ;;
11281 *) LIBOBJS="$LIBOBJS fseeko.$ac_objext"
11289 # NetBSD uses a custom fseeko/ftello built on fsetpos/fgetpos
11290 # Mingw uses macros to access Win32 API calls
11293 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
11295 ac_cv_func_fseeko=yes;;
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11298 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
11299 if ${ac_cv_sys_largefile_source+:} false; then :
11300 $as_echo_n "(cached) " >&6
11303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11304 /* end confdefs.h. */
11305 #include <sys/types.h> /* for off_t */
11310 int (*fp) (FILE *, off_t, int) = fseeko;
11311 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11316 if ac_fn_c_try_link "$LINENO"; then :
11317 ac_cv_sys_largefile_source=no; break
11319 rm -f core conftest.err conftest.$ac_objext \
11320 conftest$ac_exeext conftest.$ac_ext
11321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11322 /* end confdefs.h. */
11323 #define _LARGEFILE_SOURCE 1
11324 #include <sys/types.h> /* for off_t */
11329 int (*fp) (FILE *, off_t, int) = fseeko;
11330 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11335 if ac_fn_c_try_link "$LINENO"; then :
11336 ac_cv_sys_largefile_source=1; break
11338 rm -f core conftest.err conftest.$ac_objext \
11339 conftest$ac_exeext conftest.$ac_ext
11340 ac_cv_sys_largefile_source=unknown
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
11345 $as_echo "$ac_cv_sys_largefile_source" >&6; }
11346 case $ac_cv_sys_largefile_source in #(
11349 cat >>confdefs.h <<_ACEOF
11350 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11356 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11357 # in glibc 2.1.3, but that breaks too many other things.
11358 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11359 if test $ac_cv_sys_largefile_source != unknown; then
11361 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
11367 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
11368 # by calling it, 2009-04-02
11369 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
11370 if test "$PORTNAME" != "solaris"; then
11371 for ac_func in posix_fadvise
11373 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
11374 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
11375 cat >>confdefs.h <<_ACEOF
11376 #define HAVE_POSIX_FADVISE 1
11382 ac_fn_c_check_decl "$LINENO" "posix_fadvise" "ac_cv_have_decl_posix_fadvise" "#include <fcntl.h>
11384 if test "x$ac_cv_have_decl_posix_fadvise" = xyes; then :
11390 cat >>confdefs.h <<_ACEOF
11391 #define HAVE_DECL_POSIX_FADVISE $ac_have_decl
11396 ac_fn_c_check_decl "$LINENO" "fdatasync" "ac_cv_have_decl_fdatasync" "#include <unistd.h>
11398 if test "x$ac_cv_have_decl_fdatasync" = xyes; then :
11404 cat >>confdefs.h <<_ACEOF
11405 #define HAVE_DECL_FDATASYNC $ac_have_decl
11408 ac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default"
11409 if test "x$ac_cv_have_decl_strlcat" = xyes; then :
11415 cat >>confdefs.h <<_ACEOF
11416 #define HAVE_DECL_STRLCAT $ac_have_decl
11418 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default"
11419 if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
11425 cat >>confdefs.h <<_ACEOF
11426 #define HAVE_DECL_STRLCPY $ac_have_decl
11429 # This is probably only present on Darwin, but may as well check always
11430 ac_fn_c_check_decl "$LINENO" "F_FULLFSYNC" "ac_cv_have_decl_F_FULLFSYNC" "#include <fcntl.h>
11432 if test "x$ac_cv_have_decl_F_FULLFSYNC" = xyes; then :
11438 cat >>confdefs.h <<_ACEOF
11439 #define HAVE_DECL_F_FULLFSYNC $ac_have_decl
11444 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "$ac_includes_default
11445 #include <netinet/in.h>
11447 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
11449 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PS_STRINGS" >&5
11457 $as_echo_n "checking for PS_STRINGS... " >&6; }
11458 if ${pgac_cv_var_PS_STRINGS+:} false; then :
11459 $as_echo_n "(cached) " >&6
11461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11462 /* end confdefs.h. */
11463 #include <machine/vmparam.h>
11464 #include <sys/exec.h>
11469 PS_STRINGS->ps_nargvstr = 1;
11470 PS_STRINGS->ps_argvstr = "foo";
11475 if ac_fn_c_try_link "$LINENO"; then :
11476 pgac_cv_var_PS_STRINGS=yes
11478 pgac_cv_var_PS_STRINGS=no
11480 rm -f core conftest.err conftest.$ac_objext \
11481 conftest$ac_exeext conftest.$ac_ext
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_PS_STRINGS" >&5
11484 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
11485 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
11487 $as_echo "#define HAVE_PS_STRINGS 1" >>confdefs.h
11492 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
11493 # is missing. Yes, there are machines that have only one. We may
11494 # also decide to use snprintf.c if snprintf() is present but does not
11495 # have all the features we need --- see below.
11497 if test "$PORTNAME" = "win32"; then
11498 # Win32 gets snprintf.c built unconditionally.
11500 # To properly translate all NLS languages strings, we must support the
11501 # *printf() %$ format, which allows *printf() arguments to be selected
11502 # by position in the translated string.
11504 # libintl versions < 0.13 use the native *printf() functions, and Win32
11505 # *printf() doesn't understand %$, so we must use our /port versions,
11506 # which do understand %$. libintl versions >= 0.13 include their own
11507 # *printf versions on Win32. The libintl 0.13 release note text is:
11509 # C format strings with positions, as they arise when a translator
11510 # needs to reorder a sentence, are now supported on all platforms.
11511 # On those few platforms (NetBSD and Woe32) for which the native
11512 # printf()/fprintf()/... functions don't support such format
11513 # strings, replacements are provided through <libintl.h>.
11515 # We could use libintl >= 0.13's *printf() if we were sure that we had
11516 # a litint >= 0.13 at runtime, but seeing that there is no clean way
11517 # to guarantee that, it is best to just use our own, so we are sure to
11518 # get %$ support. In include/port.h we disable the *printf() macros
11519 # that might have been defined by libintl.
11521 # We do this unconditionally whether NLS is used or not so we are sure
11522 # that all Win32 libraries and binaries behave the same.
11523 pgac_need_repl_snprintf=yes
11525 pgac_need_repl_snprintf=no
11526 for ac_func in snprintf
11528 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
11529 if test "x$ac_cv_func_snprintf" = xyes; then :
11530 cat >>confdefs.h <<_ACEOF
11531 #define HAVE_SNPRINTF 1
11535 pgac_need_repl_snprintf=yes
11539 for ac_func in vsnprintf
11541 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
11542 if test "x$ac_cv_func_vsnprintf" = xyes; then :
11543 cat >>confdefs.h <<_ACEOF
11544 #define HAVE_VSNPRINTF 1
11548 pgac_need_repl_snprintf=yes
11555 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
11556 # include/c.h will provide declarations. Note this is a separate test
11557 # from whether the functions exist in the C library --- there are
11558 # systems that have the functions but don't bother to declare them :-(
11560 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
11561 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
11567 cat >>confdefs.h <<_ACEOF
11568 #define HAVE_DECL_SNPRINTF $ac_have_decl
11570 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
11571 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
11577 cat >>confdefs.h <<_ACEOF
11578 #define HAVE_DECL_VSNPRINTF $ac_have_decl
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
11584 $as_echo_n "checking for isinf... " >&6; }
11585 if ${ac_cv_func_isinf+:} false; then :
11586 $as_echo_n "(cached) " >&6
11588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11589 /* end confdefs.h. */
11592 double glob_double;
11597 return isinf(glob_double) ? 0 : 1;
11602 if ac_fn_c_try_link "$LINENO"; then :
11603 ac_cv_func_isinf=yes
11605 ac_cv_func_isinf=no
11607 rm -f core conftest.err conftest.$ac_objext \
11608 conftest$ac_exeext conftest.$ac_ext
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_isinf" >&5
11611 $as_echo "$ac_cv_func_isinf" >&6; }
11613 if test $ac_cv_func_isinf = yes ; then
11615 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
11618 case " $LIBOBJS " in
11619 *" isinf.$ac_objext "* ) ;;
11620 *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
11624 # Look for a way to implement a substitute for isinf()
11625 for ac_func in fpclass fp_class fp_class_d class
11627 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11628 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11629 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11630 cat >>confdefs.h <<_ACEOF
11631 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11639 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
11640 if test "x$ac_cv_func_crypt" = xyes; then :
11641 $as_echo "#define HAVE_CRYPT 1" >>confdefs.h
11644 case " $LIBOBJS " in
11645 *" crypt.$ac_objext "* ) ;;
11646 *) LIBOBJS="$LIBOBJS crypt.$ac_objext"
11652 ac_fn_c_check_func "$LINENO" "fls" "ac_cv_func_fls"
11653 if test "x$ac_cv_func_fls" = xyes; then :
11654 $as_echo "#define HAVE_FLS 1" >>confdefs.h
11657 case " $LIBOBJS " in
11658 *" fls.$ac_objext "* ) ;;
11659 *) LIBOBJS="$LIBOBJS fls.$ac_objext"
11665 ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
11666 if test "x$ac_cv_func_getopt" = xyes; then :
11667 $as_echo "#define HAVE_GETOPT 1" >>confdefs.h
11670 case " $LIBOBJS " in
11671 *" getopt.$ac_objext "* ) ;;
11672 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
11678 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
11679 if test "x$ac_cv_func_getrusage" = xyes; then :
11680 $as_echo "#define HAVE_GETRUSAGE 1" >>confdefs.h
11683 case " $LIBOBJS " in
11684 *" getrusage.$ac_objext "* ) ;;
11685 *) LIBOBJS="$LIBOBJS getrusage.$ac_objext"
11691 ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
11692 if test "x$ac_cv_func_inet_aton" = xyes; then :
11693 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
11696 case " $LIBOBJS " in
11697 *" inet_aton.$ac_objext "* ) ;;
11698 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
11704 ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
11705 if test "x$ac_cv_func_mkdtemp" = xyes; then :
11706 $as_echo "#define HAVE_MKDTEMP 1" >>confdefs.h
11709 case " $LIBOBJS " in
11710 *" mkdtemp.$ac_objext "* ) ;;
11711 *) LIBOBJS="$LIBOBJS mkdtemp.$ac_objext"
11717 ac_fn_c_check_func "$LINENO" "random" "ac_cv_func_random"
11718 if test "x$ac_cv_func_random" = xyes; then :
11719 $as_echo "#define HAVE_RANDOM 1" >>confdefs.h
11722 case " $LIBOBJS " in
11723 *" random.$ac_objext "* ) ;;
11724 *) LIBOBJS="$LIBOBJS random.$ac_objext"
11730 ac_fn_c_check_func "$LINENO" "rint" "ac_cv_func_rint"
11731 if test "x$ac_cv_func_rint" = xyes; then :
11732 $as_echo "#define HAVE_RINT 1" >>confdefs.h
11735 case " $LIBOBJS " in
11736 *" rint.$ac_objext "* ) ;;
11737 *) LIBOBJS="$LIBOBJS rint.$ac_objext"
11743 ac_fn_c_check_func "$LINENO" "srandom" "ac_cv_func_srandom"
11744 if test "x$ac_cv_func_srandom" = xyes; then :
11745 $as_echo "#define HAVE_SRANDOM 1" >>confdefs.h
11748 case " $LIBOBJS " in
11749 *" srandom.$ac_objext "* ) ;;
11750 *) LIBOBJS="$LIBOBJS srandom.$ac_objext"
11756 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
11757 if test "x$ac_cv_func_strerror" = xyes; then :
11758 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
11761 case " $LIBOBJS " in
11762 *" strerror.$ac_objext "* ) ;;
11763 *) LIBOBJS="$LIBOBJS strerror.$ac_objext"
11769 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
11770 if test "x$ac_cv_func_strlcat" = xyes; then :
11771 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
11774 case " $LIBOBJS " in
11775 *" strlcat.$ac_objext "* ) ;;
11776 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
11782 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
11783 if test "x$ac_cv_func_strlcpy" = xyes; then :
11784 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
11787 case " $LIBOBJS " in
11788 *" strlcpy.$ac_objext "* ) ;;
11789 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
11799 # Windows uses a specialised env handler
11800 # and doesn't need a replacement getpeereid because it doesn't use
11804 $as_echo "#define HAVE_UNSETENV 1" >>confdefs.h
11807 $as_echo "#define HAVE_GETPEEREID 1" >>confdefs.h
11809 ac_cv_func_unsetenv=yes
11810 ac_cv_func_getpeereid=yes;;
11812 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
11813 if test "x$ac_cv_func_unsetenv" = xyes; then :
11814 $as_echo "#define HAVE_UNSETENV 1" >>confdefs.h
11817 case " $LIBOBJS " in
11818 *" unsetenv.$ac_objext "* ) ;;
11819 *) LIBOBJS="$LIBOBJS unsetenv.$ac_objext"
11825 ac_fn_c_check_func "$LINENO" "getpeereid" "ac_cv_func_getpeereid"
11826 if test "x$ac_cv_func_getpeereid" = xyes; then :
11827 $as_echo "#define HAVE_GETPEEREID 1" >>confdefs.h
11830 case " $LIBOBJS " in
11831 *" getpeereid.$ac_objext "* ) ;;
11832 *) LIBOBJS="$LIBOBJS getpeereid.$ac_objext"
11842 # System's version of getaddrinfo(), if any, may be used only if we found
11843 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
11844 # We use only our own getaddrinfo.c on Windows, but it's time to revisit that.
11845 if test x"$ac_cv_type_struct_addrinfo" = xyes && \
11846 test "$PORTNAME" != "win32"; then
11847 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
11848 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
11849 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
11852 case " $LIBOBJS " in
11853 *" getaddrinfo.$ac_objext "* ) ;;
11854 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
11862 case " $LIBOBJS " in
11863 *" getaddrinfo.$ac_objext "* ) ;;
11864 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
11870 # Similarly, use system's getopt_long() only if system provides struct option.
11871 if test x"$ac_cv_type_struct_option" = xyes ; then
11872 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
11873 if test "x$ac_cv_func_getopt_long" = xyes; then :
11874 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
11877 case " $LIBOBJS " in
11878 *" getopt_long.$ac_objext "* ) ;;
11879 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
11887 case " $LIBOBJS " in
11888 *" getopt_long.$ac_objext "* ) ;;
11889 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
11895 # Solaris' getopt() doesn't do what we want for long options, so always use
11896 # our version on that platform.
11897 if test "$PORTNAME" = "solaris"; then
11898 case " $LIBOBJS " in
11899 *" getopt.$ac_objext "* ) ;;
11900 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
11906 # mingw has adopted a GNU-centric interpretation of optind/optreset,
11907 # so always use our version on Windows.
11908 if test "$PORTNAME" = "win32"; then
11909 case " $LIBOBJS " in
11910 *" getopt.$ac_objext "* ) ;;
11911 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
11915 case " $LIBOBJS " in
11916 *" getopt_long.$ac_objext "* ) ;;
11917 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
11924 if test "$PORTNAME" = "win32"; then
11925 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
11926 if test "x$ac_cv_func_gettimeofday" = xyes; then :
11927 $as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
11930 case " $LIBOBJS " in
11931 *" gettimeofday.$ac_objext "* ) ;;
11932 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
11939 case " $LIBOBJS " in
11940 *" kill.$ac_objext "* ) ;;
11941 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
11945 case " $LIBOBJS " in
11946 *" open.$ac_objext "* ) ;;
11947 *) LIBOBJS="$LIBOBJS open.$ac_objext"
11951 case " $LIBOBJS " in
11952 *" system.$ac_objext "* ) ;;
11953 *) LIBOBJS="$LIBOBJS system.$ac_objext"
11957 case " $LIBOBJS " in
11958 *" win32env.$ac_objext "* ) ;;
11959 *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
11963 case " $LIBOBJS " in
11964 *" win32error.$ac_objext "* ) ;;
11965 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
11969 case " $LIBOBJS " in
11970 *" win32setlocale.$ac_objext "* ) ;;
11971 *) LIBOBJS="$LIBOBJS win32setlocale.$ac_objext"
11976 $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h
11978 ac_fn_c_check_type "$LINENO" "MINIDUMP_TYPE" "ac_cv_type_MINIDUMP_TYPE" "
11979 #define WIN32_LEAN_AND_MEAN
11980 #include <windows.h>
11981 #include <string.h>
11982 #include <dbghelp.h>
11984 if test "x$ac_cv_type_MINIDUMP_TYPE" = xyes; then :
11986 cat >>confdefs.h <<_ACEOF
11987 #define HAVE_MINIDUMP_TYPE 1
11990 pgac_minidump_type=yes
11992 pgac_minidump_type=no
11996 if test x"$pgac_minidump_type" = x"yes" ; then
11997 have_win32_dbghelp=yes
12000 have_win32_dbghelp=no
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
12005 $as_echo_n "checking for sigsetjmp... " >&6; }
12006 if ${pgac_cv_func_sigsetjmp+:} false; then :
12007 $as_echo_n "(cached) " >&6
12009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12010 /* end confdefs.h. */
12011 #include <setjmp.h>
12015 sigjmp_buf x; sigsetjmp(x, 1);
12020 if ac_fn_c_try_link "$LINENO"; then :
12021 pgac_cv_func_sigsetjmp=yes
12023 pgac_cv_func_sigsetjmp=no
12025 rm -f core conftest.err conftest.$ac_objext \
12026 conftest$ac_exeext conftest.$ac_ext
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_sigsetjmp" >&5
12029 $as_echo "$pgac_cv_func_sigsetjmp" >&6; }
12030 if test x"$pgac_cv_func_sigsetjmp" = x"yes"; then
12032 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
12036 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
12037 /* NetBSD declares sys_siglist in unistd.h. */
12038 #ifdef HAVE_UNISTD_H
12039 # include <unistd.h>
12043 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
12049 cat >>confdefs.h <<_ACEOF
12050 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
12055 ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
12056 if test "x$ac_cv_func_syslog" = xyes; then :
12057 ac_fn_c_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
12058 if test "x$ac_cv_header_syslog_h" = xyes; then :
12060 $as_echo "#define HAVE_SYSLOG 1" >>confdefs.h
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opterr" >&5
12069 $as_echo_n "checking for opterr... " >&6; }
12070 if ${pgac_cv_var_int_opterr+:} false; then :
12071 $as_echo_n "(cached) " >&6
12073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12074 /* end confdefs.h. */
12075 #include <unistd.h>
12079 extern int opterr; opterr = 1;
12084 if ac_fn_c_try_link "$LINENO"; then :
12085 pgac_cv_var_int_opterr=yes
12087 pgac_cv_var_int_opterr=no
12089 rm -f core conftest.err conftest.$ac_objext \
12090 conftest$ac_exeext conftest.$ac_ext
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_opterr" >&5
12093 $as_echo "$pgac_cv_var_int_opterr" >&6; }
12094 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
12096 $as_echo "#define HAVE_INT_OPTERR 1" >>confdefs.h
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
12101 $as_echo_n "checking for optreset... " >&6; }
12102 if ${pgac_cv_var_int_optreset+:} false; then :
12103 $as_echo_n "(cached) " >&6
12105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12106 /* end confdefs.h. */
12107 #include <unistd.h>
12111 extern int optreset; optreset = 1;
12116 if ac_fn_c_try_link "$LINENO"; then :
12117 pgac_cv_var_int_optreset=yes
12119 pgac_cv_var_int_optreset=no
12121 rm -f core conftest.err conftest.$ac_objext \
12122 conftest$ac_exeext conftest.$ac_ext
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_optreset" >&5
12125 $as_echo "$pgac_cv_var_int_optreset" >&6; }
12126 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
12128 $as_echo "#define HAVE_INT_OPTRESET 1" >>confdefs.h
12132 for ac_func in strtoll strtoq
12134 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12135 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12136 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12137 cat >>confdefs.h <<_ACEOF
12138 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12144 for ac_func in strtoull strtouq
12146 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12147 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12148 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12149 cat >>confdefs.h <<_ACEOF
12150 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin locking functions" >&5
12158 $as_echo_n "checking for builtin locking functions... " >&6; }
12159 if ${pgac_cv_gcc_int_atomics+:} false; then :
12160 $as_echo_n "(cached) " >&6
12162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12163 /* end confdefs.h. */
12169 __sync_lock_test_and_set(&lock, 1);
12170 __sync_lock_release(&lock);
12175 if ac_fn_c_try_link "$LINENO"; then :
12176 pgac_cv_gcc_int_atomics="yes"
12178 pgac_cv_gcc_int_atomics="no"
12180 rm -f core conftest.err conftest.$ac_objext \
12181 conftest$ac_exeext conftest.$ac_ext
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_int_atomics" >&5
12184 $as_echo "$pgac_cv_gcc_int_atomics" >&6; }
12185 if test x"$pgac_cv_gcc_int_atomics" = x"yes"; then
12187 $as_echo "#define HAVE_GCC_INT_ATOMICS 1" >>confdefs.h
12191 # Lastly, restore full LIBS list and check for readline/libedit symbols
12192 LIBS="$LIBS_including_readline"
12194 if test "$with_readline" = yes; then
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_append_character" >&5
12196 $as_echo_n "checking for rl_completion_append_character... " >&6; }
12197 if ${pgac_cv_var_rl_completion_append_character+:} false; then :
12198 $as_echo_n "(cached) " >&6
12200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12201 /* end confdefs.h. */
12203 #ifdef HAVE_READLINE_READLINE_H
12204 # include <readline/readline.h>
12205 #elif defined(HAVE_READLINE_H)
12206 # include <readline.h>
12212 rl_completion_append_character = 'x';
12217 if ac_fn_c_try_link "$LINENO"; then :
12218 pgac_cv_var_rl_completion_append_character=yes
12220 pgac_cv_var_rl_completion_append_character=no
12222 rm -f core conftest.err conftest.$ac_objext \
12223 conftest$ac_exeext conftest.$ac_ext
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_rl_completion_append_character" >&5
12226 $as_echo "$pgac_cv_var_rl_completion_append_character" >&6; }
12227 if test x"$pgac_cv_var_rl_completion_append_character" = x"yes"; then
12229 $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h
12232 for ac_func in rl_completion_matches rl_filename_completion_function
12234 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12235 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12236 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12237 cat >>confdefs.h <<_ACEOF
12238 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12244 for ac_func in append_history history_truncate_file
12246 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12247 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12248 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12249 cat >>confdefs.h <<_ACEOF
12250 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12262 # For each platform, we need to know about any special compile and link
12263 # libraries, and whether the normal C function names are thread-safe.
12264 # See the comment at the top of src/port/thread.c for more information.
12265 # WIN32 doesn't need the pthread tests; it always uses threads
12266 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
12271 ac_cpp='$CPP $CPPFLAGS'
12272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12278 # We used to check for pthread.h first, but this fails if pthread.h
12279 # requires special compiler flags (e.g. on True64 or Sequent).
12280 # It gets checked for in the link test anyway.
12282 # First of all, check if the user has set any of the PTHREAD_LIBS,
12283 # etcetera environment variables, and if threads linking works using
12285 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
12286 save_CFLAGS="$CFLAGS"
12287 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
12289 LIBS="$PTHREAD_LIBS $LIBS"
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
12291 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
12292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12293 /* end confdefs.h. */
12295 /* Override any GCC internal prototype to avoid an error.
12296 Use char because int might match the return type of a GCC
12297 builtin and then its argument prototype would still apply. */
12301 char pthread_join ();
12305 return pthread_join ();
12310 if ac_fn_c_try_link "$LINENO"; then :
12313 rm -f core conftest.err conftest.$ac_objext \
12314 conftest$ac_exeext conftest.$ac_ext
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
12316 $as_echo "$acx_pthread_ok" >&6; }
12317 if test x"$acx_pthread_ok" = xno; then
12322 CFLAGS="$save_CFLAGS"
12325 # We must check for the threads library under a number of different
12326 # names; the ordering is very important because some systems
12327 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
12328 # libraries is broken (non-POSIX).
12330 # Create a list of thread flags to try. Items starting with a "-" are
12331 # C compiler flags, and other items are library names, except for "none"
12332 # which indicates that we try without any flags at all, and "pthread-config"
12333 # which is a program returning the flags for the Pth emulation library.
12335 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
12337 # The ordering *is* (sometimes) important. Some notes on the
12338 # individual items follow:
12340 # pthreads: AIX (must check this before -lpthread)
12341 # none: in case threads are in libc; should be tried before -Kthread and
12342 # other compiler flags to prevent continual compiler warnings
12343 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
12344 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
12345 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
12346 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
12347 # -pthreads: Solaris/gcc
12348 # -mthreads: Mingw32/gcc, Lynx/gcc
12349 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
12350 # doesn't hurt to check since this sometimes defines pthreads too;
12351 # also defines -D_REENTRANT)
12352 # pthread: Linux, etcetera
12353 # --thread-safe: KAI C++
12354 # pthread-config: use pthread-config program (for GNU Pth library)
12356 case "${host_cpu}-${host_os}" in
12359 # On Solaris (at least, for some versions), libc contains stubbed
12360 # (non-functional) versions of the pthreads routines, so link-based
12361 # tests will erroneously succeed. (We need to link with -pthread or
12362 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
12363 # a function called by this macro, so we could check for that, but
12364 # who knows whether they'll stub that too in a future libc.) So,
12365 # we'll just look for -pthreads and -lpthread first:
12367 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
12371 if test x"$acx_pthread_ok" = xno; then
12372 for flag in $acx_pthread_flags; do
12374 tryPTHREAD_CFLAGS=""
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
12379 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
12384 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
12385 tryPTHREAD_CFLAGS="$flag"
12389 # skip this if we already have flags defined, for PostgreSQL
12390 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
12391 # Extract the first word of "pthread-config", so it can be a program name with args.
12392 set dummy pthread-config; ac_word=$2
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12394 $as_echo_n "checking for $ac_word... " >&6; }
12395 if ${ac_cv_prog_acx_pthread_config+:} false; then :
12396 $as_echo_n "(cached) " >&6
12398 if test -n "$acx_pthread_config"; then
12399 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
12401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12402 for as_dir in $PATH
12405 test -z "$as_dir" && as_dir=.
12406 for ac_exec_ext in '' $ac_executable_extensions; do
12407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12408 ac_cv_prog_acx_pthread_config="yes"
12409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12416 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
12419 acx_pthread_config=$ac_cv_prog_acx_pthread_config
12420 if test -n "$acx_pthread_config"; then
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
12422 $as_echo "$acx_pthread_config" >&6; }
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12425 $as_echo "no" >&6; }
12429 if test x"$acx_pthread_config" = xno; then continue; fi
12430 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
12431 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
12436 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
12437 tryPTHREAD_LIBS="-l$flag"
12442 save_CFLAGS="$CFLAGS"
12443 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
12444 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
12446 # Check for various functions. We must include pthread.h,
12447 # since some functions may be macros. (On the Sequent, we
12448 # need a special flag -Kthread to make this header compile.)
12449 # We check for pthread_join because it is in -lpthread on IRIX
12450 # while pthread_create is in libc. We check for pthread_attr_init
12451 # due to DEC craziness with -lpthreads. We check for
12452 # pthread_cleanup_push because it is one of the few pthread
12453 # functions on Solaris that doesn't have a non-functional libc stub.
12454 # We try pthread_create on general principles.
12455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12456 /* end confdefs.h. */
12457 #include <pthread.h>
12461 pthread_t th; pthread_join(th, 0);
12462 pthread_attr_init(0); pthread_cleanup_push(0, 0);
12463 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
12468 if ac_fn_c_try_link "$LINENO"; then :
12473 rm -f core conftest.err conftest.$ac_objext \
12474 conftest$ac_exeext conftest.$ac_ext
12476 if test "x$acx_pthread_ok" = xyes; then
12477 # Don't use options that are ignored by the compiler.
12478 # We find them by checking stderror.
12479 cat >conftest.$ac_ext <<_ACEOF
12481 main (int argc, char **argv)
12488 rm -f conftest.$ac_objext conftest$ac_exeext
12489 # Check both linking and compiling, because they might tolerate different options.
12490 if test "`(eval $ac_link 2>&1 1>&5)`" = "" && test "`(eval $ac_compile 2>&1 1>&5)`" = ""; then
12491 # The original macro breaks out of the loop at this point,
12492 # but we continue trying flags because Linux needs -lpthread
12493 # too to build libpq successfully. The test above only
12494 # tests for building binaries, not shared libraries.
12495 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
12496 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
12497 else acx_pthread_ok=no
12502 CFLAGS="$save_CFLAGS"
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
12505 $as_echo "$acx_pthread_ok" >&6; }
12509 # The original macro has a bunch of other tests here, which we have removed
12510 # because (a) Postgres doesn't need them, and (b) $acx_pthread_ok is not
12511 # meaningful at this point.
12517 ac_cpp='$CPP $CPPFLAGS'
12518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12524 # Some platforms use these, so just define them. They can't hurt if they
12525 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
12526 # enables 5-arg getpwuid_r, among other things.
12527 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
12529 # Check for *_r functions
12532 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
12533 LIBS="$LIBS $PTHREAD_LIBS"
12535 if test "$PORTNAME" != "win32"; then
12536 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
12537 if test "x$ac_cv_header_pthread_h" = xyes; then :
12541 pthread.h not found; use --disable-thread-safety to disable thread safety" "$LINENO" 5
12547 for ac_func in strerror_r getpwuid_r gethostbyname_r
12549 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12550 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12551 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12552 cat >>confdefs.h <<_ACEOF
12553 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12560 # Do test here with the proper thread flags
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpwuid_r takes a fifth argument" >&5
12562 $as_echo_n "checking whether getpwuid_r takes a fifth argument... " >&6; }
12563 if ${pgac_cv_func_getpwuid_r_5arg+:} false; then :
12564 $as_echo_n "(cached) " >&6
12566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12567 /* end confdefs.h. */
12568 #include <sys/types.h>
12574 struct passwd *space;
12577 struct passwd **result;
12578 getpwuid_r(uid, space, buf, bufsize, result);
12583 if ac_fn_c_try_compile "$LINENO"; then :
12584 pgac_cv_func_getpwuid_r_5arg=yes
12586 pgac_cv_func_getpwuid_r_5arg=no
12588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_getpwuid_r_5arg" >&5
12591 $as_echo "$pgac_cv_func_getpwuid_r_5arg" >&6; }
12592 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
12594 $as_echo "#define GETPWUID_R_5ARG 1" >>confdefs.h
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns int" >&5
12599 $as_echo_n "checking whether strerror_r returns int... " >&6; }
12600 if ${pgac_cv_func_strerror_r_int+:} false; then :
12601 $as_echo_n "(cached) " >&6
12603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12604 /* end confdefs.h. */
12605 #include <string.h>
12610 int strerror_r(int, char *, size_t);
12612 /* Older AIX has 'int' for the third argument so we don't test the args. */
12619 if ac_fn_c_try_compile "$LINENO"; then :
12620 pgac_cv_func_strerror_r_int=yes
12622 pgac_cv_func_strerror_r_int=no
12624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_strerror_r_int" >&5
12627 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
12628 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
12630 $as_echo "#define STRERROR_R_INT 1" >>confdefs.h
12639 # do not use values from template file
12648 # We can test for libldap_r only after we know PTHREAD_LIBS
12649 if test "$with_ldap" = yes ; then
12651 if test "$PORTNAME" != "win32"; then
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lldap" >&5
12653 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
12654 if ${ac_cv_lib_ldap_ldap_bind+:} false; then :
12655 $as_echo_n "(cached) " >&6
12657 ac_check_lib_save_LIBS=$LIBS
12658 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
12659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12660 /* end confdefs.h. */
12662 /* Override any GCC internal prototype to avoid an error.
12663 Use char because int might match the return type of a GCC
12664 builtin and then its argument prototype would still apply. */
12672 return ldap_bind ();
12677 if ac_fn_c_try_link "$LINENO"; then :
12678 ac_cv_lib_ldap_ldap_bind=yes
12680 ac_cv_lib_ldap_ldap_bind=no
12682 rm -f core conftest.err conftest.$ac_objext \
12683 conftest$ac_exeext conftest.$ac_ext
12684 LIBS=$ac_check_lib_save_LIBS
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_bind" >&5
12687 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
12688 if test "x$ac_cv_lib_ldap_ldap_bind" = xyes; then :
12689 cat >>confdefs.h <<_ACEOF
12690 #define HAVE_LIBLDAP 1
12693 LIBS="-lldap $LIBS"
12696 as_fn_error $? "library 'ldap' is required for LDAP" "$LINENO" 5
12699 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
12700 if test "$enable_thread_safety" = yes; then
12701 # on some platforms ldap_r fails to link without PTHREAD_LIBS
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_simple_bind in -lldap_r" >&5
12703 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
12704 if ${ac_cv_lib_ldap_r_ldap_simple_bind+:} false; then :
12705 $as_echo_n "(cached) " >&6
12707 ac_check_lib_save_LIBS=$LIBS
12708 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
12709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12710 /* end confdefs.h. */
12712 /* Override any GCC internal prototype to avoid an error.
12713 Use char because int might match the return type of a GCC
12714 builtin and then its argument prototype would still apply. */
12718 char ldap_simple_bind ();
12722 return ldap_simple_bind ();
12727 if ac_fn_c_try_link "$LINENO"; then :
12728 ac_cv_lib_ldap_r_ldap_simple_bind=yes
12730 ac_cv_lib_ldap_r_ldap_simple_bind=no
12732 rm -f core conftest.err conftest.$ac_objext \
12733 conftest$ac_exeext conftest.$ac_ext
12734 LIBS=$ac_check_lib_save_LIBS
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
12737 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
12738 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = xyes; then :
12739 cat >>confdefs.h <<_ACEOF
12740 #define HAVE_LIBLDAP_R 1
12743 LIBS="-lldap_r $LIBS"
12746 as_fn_error $? "library 'ldap_r' is required for LDAP" "$LINENO" 5
12749 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
12751 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lwldap32" >&5
12755 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
12756 if ${ac_cv_lib_wldap32_ldap_bind+:} false; then :
12757 $as_echo_n "(cached) " >&6
12759 ac_check_lib_save_LIBS=$LIBS
12760 LIBS="-lwldap32 $LIBS"
12761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12762 /* end confdefs.h. */
12764 /* Override any GCC internal prototype to avoid an error.
12765 Use char because int might match the return type of a GCC
12766 builtin and then its argument prototype would still apply. */
12774 return ldap_bind ();
12779 if ac_fn_c_try_link "$LINENO"; then :
12780 ac_cv_lib_wldap32_ldap_bind=yes
12782 ac_cv_lib_wldap32_ldap_bind=no
12784 rm -f core conftest.err conftest.$ac_objext \
12785 conftest$ac_exeext conftest.$ac_ext
12786 LIBS=$ac_check_lib_save_LIBS
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wldap32_ldap_bind" >&5
12789 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
12790 if test "x$ac_cv_lib_wldap32_ldap_bind" = xyes; then :
12791 cat >>confdefs.h <<_ACEOF
12792 #define HAVE_LIBWLDAP32 1
12795 LIBS="-lwldap32 $LIBS"
12798 as_fn_error $? "library 'wldap32' is required for LDAP" "$LINENO" 5
12801 LDAP_LIBS_FE="-lwldap32"
12802 LDAP_LIBS_BE="-lwldap32"
12810 # This test makes sure that run tests work at all. Sometimes a shared
12811 # library is found by the linker, but the runtime linker can't find it.
12812 # This check should come after all modifications of compiler or linker
12813 # variables, and before any other run tests.
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking test program" >&5
12815 $as_echo_n "checking test program... " >&6; }
12816 if test "$cross_compiling" = yes; then :
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5
12818 $as_echo "cross-compiling" >&6; }
12820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12821 /* end confdefs.h. */
12822 int main() { return 0; }
12824 if ac_fn_c_try_run "$LINENO"; then :
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12826 $as_echo "ok" >&6; }
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12829 $as_echo "failed" >&6; }
12831 Could not execute a simple test program. This may be a problem
12832 related to locating shared libraries. Check the file 'config.log'
12833 for the exact reason." "$LINENO" 5
12835 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12836 conftest.$ac_objext conftest.beam conftest.$ac_ext
12840 # --------------------
12841 # Run tests below here
12842 # --------------------
12844 # Force use of our snprintf if system's doesn't do arg control
12845 # See comment above at snprintf test for details.
12846 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf supports argument control" >&5
12848 $as_echo_n "checking whether snprintf supports argument control... " >&6; }
12849 if ${pgac_cv_snprintf_arg_control+:} false; then :
12850 $as_echo_n "(cached) " >&6
12852 if test "$cross_compiling" = yes; then :
12853 pgac_cv_snprintf_arg_control=cross
12855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12856 /* end confdefs.h. */
12858 #include <string.h>
12864 /* can it swap arguments? */
12865 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
12866 if (strcmp(buf, "4 3") != 0)
12871 if ac_fn_c_try_run "$LINENO"; then :
12872 pgac_cv_snprintf_arg_control=yes
12874 pgac_cv_snprintf_arg_control=no
12876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12877 conftest.$ac_objext conftest.beam conftest.$ac_ext
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_snprintf_arg_control" >&5
12883 $as_echo "$pgac_cv_snprintf_arg_control" >&6; }
12885 if test $pgac_cv_snprintf_arg_control != yes ; then
12886 pgac_need_repl_snprintf=yes
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long int is 64 bits" >&5
12894 $as_echo_n "checking whether long int is 64 bits... " >&6; }
12895 if ${pgac_cv_type_long_int_64+:} false; then :
12896 $as_echo_n "(cached) " >&6
12898 if test "$cross_compiling" = yes; then :
12899 # If cross-compiling, check the size reported by the compiler and
12900 # trust that the arithmetic works.
12901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12902 /* end confdefs.h. */
12907 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
12908 test_array [0] = 0;
12909 return test_array [0];
12915 if ac_fn_c_try_compile "$LINENO"; then :
12916 pgac_cv_type_long_int_64=yes
12918 pgac_cv_type_long_int_64=no
12920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12923 /* end confdefs.h. */
12924 typedef long int ac_int64;
12927 * These are globals to discourage the compiler from folding all the
12928 * arithmetic tests down to compile-time constants.
12930 ac_int64 a = 20000001;
12931 ac_int64 b = 40000005;
12933 int does_int64_work()
12937 if (sizeof(ac_int64) != 8)
12938 return 0; /* definitely not the right size */
12940 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
12948 exit(! does_int64_work());
12951 if ac_fn_c_try_run "$LINENO"; then :
12952 pgac_cv_type_long_int_64=yes
12954 pgac_cv_type_long_int_64=no
12956 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12957 conftest.$ac_objext conftest.beam conftest.$ac_ext
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_long_int_64" >&5
12962 $as_echo "$pgac_cv_type_long_int_64" >&6; }
12964 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
12965 if test x"$pgac_cv_type_long_int_64" = xyes ; then
12967 $as_echo "#define HAVE_LONG_INT_64 1" >>confdefs.h
12972 if test x"$HAVE_LONG_INT_64" = x"yes" ; then
12973 pg_int64_type="long int"
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long long int is 64 bits" >&5
12976 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
12977 if ${pgac_cv_type_long_long_int_64+:} false; then :
12978 $as_echo_n "(cached) " >&6
12980 if test "$cross_compiling" = yes; then :
12981 # If cross-compiling, check the size reported by the compiler and
12982 # trust that the arithmetic works.
12983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12984 /* end confdefs.h. */
12989 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
12990 test_array [0] = 0;
12991 return test_array [0];
12997 if ac_fn_c_try_compile "$LINENO"; then :
12998 pgac_cv_type_long_long_int_64=yes
13000 pgac_cv_type_long_long_int_64=no
13002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13005 /* end confdefs.h. */
13006 typedef long long int ac_int64;
13009 * These are globals to discourage the compiler from folding all the
13010 * arithmetic tests down to compile-time constants.
13012 ac_int64 a = 20000001;
13013 ac_int64 b = 40000005;
13015 int does_int64_work()
13019 if (sizeof(ac_int64) != 8)
13020 return 0; /* definitely not the right size */
13022 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
13030 exit(! does_int64_work());
13033 if ac_fn_c_try_run "$LINENO"; then :
13034 pgac_cv_type_long_long_int_64=yes
13036 pgac_cv_type_long_long_int_64=no
13038 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13039 conftest.$ac_objext conftest.beam conftest.$ac_ext
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_long_long_int_64" >&5
13044 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
13046 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
13047 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
13049 $as_echo "#define HAVE_LONG_LONG_INT_64 1" >>confdefs.h
13053 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
13054 pg_int64_type="long long int"
13056 as_fn_error $? "Cannot find a working 64-bit integer type." "$LINENO" 5
13061 cat >>confdefs.h <<_ACEOF
13062 #define PG_INT64_TYPE $pg_int64_type
13067 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
13068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13069 /* end confdefs.h. */
13071 #define INT64CONST(x) x##LL
13072 long long int foo = INT64CONST(0x1234567890123456);
13082 if ac_fn_c_try_compile "$LINENO"; then :
13084 $as_echo "#define HAVE_LL_CONSTANTS 1" >>confdefs.h
13087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13091 # If we found "long int" is 64 bits, assume snprintf handles it. If
13092 # we found we need to use "long long int", better check. We cope with
13093 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
13094 # work, fall back to our own snprintf emulation (which we know uses %lld).
13096 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
13097 if test $pgac_need_repl_snprintf = no; then
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking snprintf length modifier for long long int" >&5
13099 $as_echo_n "checking snprintf length modifier for long long int... " >&6; }
13100 if ${pgac_cv_snprintf_long_long_int_modifier+:} false; then :
13101 $as_echo_n "(cached) " >&6
13103 for pgac_modifier in 'll' 'q' 'I64'; do
13104 if test "$cross_compiling" = yes; then :
13105 pgac_cv_snprintf_long_long_int_modifier=cross; break
13107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13108 /* end confdefs.h. */
13110 typedef long long int ac_int64;
13111 #define INT64_FORMAT "%${pgac_modifier}d"
13113 ac_int64 a = 20000001;
13114 ac_int64 b = 40000005;
13116 int does_int64_snprintf_work()
13121 if (sizeof(ac_int64) != 8)
13122 return 0; /* doesn't look like the right size */
13125 snprintf(buf, 100, INT64_FORMAT, c);
13126 if (strcmp(buf, "800000140000005") != 0)
13127 return 0; /* either multiply or snprintf is busted */
13131 exit(! does_int64_snprintf_work());
13134 if ac_fn_c_try_run "$LINENO"; then :
13135 pgac_cv_snprintf_long_long_int_modifier=$pgac_modifier; break
13137 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13138 conftest.$ac_objext conftest.beam conftest.$ac_ext
13144 LONG_LONG_INT_MODIFIER=''
13146 case $pgac_cv_snprintf_long_long_int_modifier in
13147 cross) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test (not on host machine)" >&5
13148 $as_echo "cannot test (not on host machine)" >&6; };;
13149 ?*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_snprintf_long_long_int_modifier" >&5
13150 $as_echo "$pgac_cv_snprintf_long_long_int_modifier" >&6; }
13151 LONG_LONG_INT_MODIFIER=$pgac_cv_snprintf_long_long_int_modifier;;
13152 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13153 $as_echo "none" >&6; };;
13155 if test "$LONG_LONG_INT_MODIFIER" = ""; then
13156 # Force usage of our own snprintf, since system snprintf is broken
13157 pgac_need_repl_snprintf=yes
13158 LONG_LONG_INT_MODIFIER='ll'
13161 # Here if we previously decided we needed to use our own snprintf
13162 LONG_LONG_INT_MODIFIER='ll'
13165 # Here if we are not using 'long long int' at all
13166 LONG_LONG_INT_MODIFIER='l'
13169 INT64_MODIFIER="\"$LONG_LONG_INT_MODIFIER\""
13172 cat >>confdefs.h <<_ACEOF
13173 #define INT64_MODIFIER $INT64_MODIFIER
13177 # Also force use of our snprintf if the system's doesn't support the %z flag.
13178 if test "$pgac_need_repl_snprintf" = no; then
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf supports the %z modifier" >&5
13180 $as_echo_n "checking whether snprintf supports the %z modifier... " >&6; }
13181 if ${pgac_cv_snprintf_size_t_support+:} false; then :
13182 $as_echo_n "(cached) " >&6
13184 if test "$cross_compiling" = yes; then :
13185 pgac_cv_snprintf_size_t_support=cross
13187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13188 /* end confdefs.h. */
13190 #include <string.h>
13198 * Print the largest unsigned number fitting in a size_t using both %zu
13199 * and the previously-determined format for 64-bit integers. Note that
13200 * we don't run this code unless we know snprintf handles 64-bit ints.
13202 bufz[0] = '\0'; /* in case snprintf fails to emit anything */
13203 snprintf(bufz, sizeof(bufz), "%zu", ~((size_t) 0));
13204 snprintf(buf64, sizeof(buf64), "%" INT64_MODIFIER "u",
13205 (unsigned PG_INT64_TYPE) ~((size_t) 0));
13206 if (strcmp(bufz, buf64) != 0)
13211 if ac_fn_c_try_run "$LINENO"; then :
13212 pgac_cv_snprintf_size_t_support=yes
13214 pgac_cv_snprintf_size_t_support=no
13216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13217 conftest.$ac_objext conftest.beam conftest.$ac_ext
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_snprintf_size_t_support" >&5
13223 $as_echo "$pgac_cv_snprintf_size_t_support" >&6; }
13225 if test "$pgac_cv_snprintf_size_t_support" != yes; then
13226 pgac_need_repl_snprintf=yes
13230 # Now we have checked all the reasons to replace snprintf
13231 if test $pgac_need_repl_snprintf = yes; then
13233 $as_echo "#define USE_REPL_SNPRINTF 1" >>confdefs.h
13235 case " $LIBOBJS " in
13236 *" snprintf.$ac_objext "* ) ;;
13237 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
13243 # Check size of void *, size_t (enables tweaks for > 32bit address space)
13244 # The cast to long int works around a bug in the HP C Compiler
13245 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13246 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13247 # This bug is HP SR number 8606223364.
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
13249 $as_echo_n "checking size of void *... " >&6; }
13250 if ${ac_cv_sizeof_void_p+:} false; then :
13251 $as_echo_n "(cached) " >&6
13253 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
13256 if test "$ac_cv_type_void_p" = yes; then
13257 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13258 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13259 as_fn_error 77 "cannot compute sizeof (void *)
13260 See \`config.log' for more details" "$LINENO" 5; }
13262 ac_cv_sizeof_void_p=0
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13268 $as_echo "$ac_cv_sizeof_void_p" >&6; }
13272 cat >>confdefs.h <<_ACEOF
13273 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13277 # The cast to long int works around a bug in the HP C Compiler
13278 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13279 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13280 # This bug is HP SR number 8606223364.
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
13282 $as_echo_n "checking size of size_t... " >&6; }
13283 if ${ac_cv_sizeof_size_t+:} false; then :
13284 $as_echo_n "(cached) " >&6
13286 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
13289 if test "$ac_cv_type_size_t" = yes; then
13290 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13292 as_fn_error 77 "cannot compute sizeof (size_t)
13293 See \`config.log' for more details" "$LINENO" 5; }
13295 ac_cv_sizeof_size_t=0
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
13301 $as_echo "$ac_cv_sizeof_size_t" >&6; }
13305 cat >>confdefs.h <<_ACEOF
13306 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
13310 # The cast to long int works around a bug in the HP C Compiler
13311 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13312 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13313 # This bug is HP SR number 8606223364.
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13315 $as_echo_n "checking size of long... " >&6; }
13316 if ${ac_cv_sizeof_long+:} false; then :
13317 $as_echo_n "(cached) " >&6
13319 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13322 if test "$ac_cv_type_long" = yes; then
13323 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13324 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13325 as_fn_error 77 "cannot compute sizeof (long)
13326 See \`config.log' for more details" "$LINENO" 5; }
13328 ac_cv_sizeof_long=0
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13334 $as_echo "$ac_cv_sizeof_long" >&6; }
13338 cat >>confdefs.h <<_ACEOF
13339 #define SIZEOF_LONG $ac_cv_sizeof_long
13344 # Decide whether float4 is passed by value: user-selectable, enabled by default
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with float4 passed by value" >&5
13346 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
13349 # Check whether --enable-float4-byval was given.
13350 if test "${enable_float4_byval+set}" = set; then :
13351 enableval=$enable_float4_byval;
13355 $as_echo "#define USE_FLOAT4_BYVAL 1" >>confdefs.h
13357 float4passbyval=true
13360 float4passbyval=false
13363 as_fn_error $? "no argument expected for --enable-float4-byval option" "$LINENO" 5
13368 enable_float4_byval=yes
13370 $as_echo "#define USE_FLOAT4_BYVAL 1" >>confdefs.h
13372 float4passbyval=true
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_float4_byval" >&5
13377 $as_echo "$enable_float4_byval" >&6; }
13379 cat >>confdefs.h <<_ACEOF
13380 #define FLOAT4PASSBYVAL $float4passbyval
13384 # Decide whether float8 is passed by value.
13385 # Note: this setting also controls int8 and related types such as timestamp.
13386 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
13387 # If not, trying to select it is an error.
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with float8 passed by value" >&5
13389 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
13390 if test $ac_cv_sizeof_void_p -ge 8 ; then
13393 # Check whether --enable-float8-byval was given.
13394 if test "${enable_float8_byval+set}" = set; then :
13395 enableval=$enable_float8_byval;
13404 as_fn_error $? "no argument expected for --enable-float8-byval option" "$LINENO" 5
13409 enable_float8_byval=yes
13417 # Check whether --enable-float8-byval was given.
13418 if test "${enable_float8_byval+set}" = set; then :
13419 enableval=$enable_float8_byval;
13428 as_fn_error $? "no argument expected for --enable-float8-byval option" "$LINENO" 5
13433 enable_float8_byval=no
13438 if test "$enable_float8_byval" = yes ; then
13439 as_fn_error $? "--enable-float8-byval is not supported on 32-bit platforms." "$LINENO" 5
13442 if test "$enable_float8_byval" = yes ; then
13444 $as_echo "#define USE_FLOAT8_BYVAL 1" >>confdefs.h
13446 float8passbyval=true
13448 float8passbyval=false
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_float8_byval" >&5
13451 $as_echo "$enable_float8_byval" >&6; }
13453 cat >>confdefs.h <<_ACEOF
13454 #define FLOAT8PASSBYVAL $float8passbyval
13458 # Determine memory alignment requirements for the basic C data types.
13460 # The cast to long int works around a bug in the HP C Compiler,
13461 # see AC_CHECK_SIZEOF for more information.
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of short" >&5
13463 $as_echo_n "checking alignment of short... " >&6; }
13464 if ${ac_cv_alignof_short+:} false; then :
13465 $as_echo_n "(cached) " >&6
13467 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_short" "$ac_includes_default
13469 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
13471 typedef struct { char x; short y; } ac__type_alignof_;"; then :
13474 if test "$ac_cv_type_short" = yes; then
13475 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13476 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13477 as_fn_error 77 "cannot compute alignment of short
13478 See \`config.log' for more details" "$LINENO" 5; }
13480 ac_cv_alignof_short=0
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_short" >&5
13486 $as_echo "$ac_cv_alignof_short" >&6; }
13490 cat >>confdefs.h <<_ACEOF
13491 #define ALIGNOF_SHORT $ac_cv_alignof_short
13495 # The cast to long int works around a bug in the HP C Compiler,
13496 # see AC_CHECK_SIZEOF for more information.
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int" >&5
13498 $as_echo_n "checking alignment of int... " >&6; }
13499 if ${ac_cv_alignof_int+:} false; then :
13500 $as_echo_n "(cached) " >&6
13502 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_int" "$ac_includes_default
13504 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
13506 typedef struct { char x; int y; } ac__type_alignof_;"; then :
13509 if test "$ac_cv_type_int" = yes; then
13510 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13511 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13512 as_fn_error 77 "cannot compute alignment of int
13513 See \`config.log' for more details" "$LINENO" 5; }
13515 ac_cv_alignof_int=0
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_int" >&5
13521 $as_echo "$ac_cv_alignof_int" >&6; }
13525 cat >>confdefs.h <<_ACEOF
13526 #define ALIGNOF_INT $ac_cv_alignof_int
13530 # The cast to long int works around a bug in the HP C Compiler,
13531 # see AC_CHECK_SIZEOF for more information.
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long" >&5
13533 $as_echo_n "checking alignment of long... " >&6; }
13534 if ${ac_cv_alignof_long+:} false; then :
13535 $as_echo_n "(cached) " >&6
13537 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long" "$ac_includes_default
13539 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
13541 typedef struct { char x; long y; } ac__type_alignof_;"; then :
13544 if test "$ac_cv_type_long" = yes; then
13545 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13546 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13547 as_fn_error 77 "cannot compute alignment of long
13548 See \`config.log' for more details" "$LINENO" 5; }
13550 ac_cv_alignof_long=0
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long" >&5
13556 $as_echo "$ac_cv_alignof_long" >&6; }
13560 cat >>confdefs.h <<_ACEOF
13561 #define ALIGNOF_LONG $ac_cv_alignof_long
13565 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
13566 # The cast to long int works around a bug in the HP C Compiler,
13567 # see AC_CHECK_SIZEOF for more information.
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long long int" >&5
13569 $as_echo_n "checking alignment of long long int... " >&6; }
13570 if ${ac_cv_alignof_long_long_int+:} false; then :
13571 $as_echo_n "(cached) " >&6
13573 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long_long_int" "$ac_includes_default
13575 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
13577 typedef struct { char x; long long int y; } ac__type_alignof_;"; then :
13580 if test "$ac_cv_type_long_long_int" = yes; then
13581 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13582 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13583 as_fn_error 77 "cannot compute alignment of long long int
13584 See \`config.log' for more details" "$LINENO" 5; }
13586 ac_cv_alignof_long_long_int=0
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long_long_int" >&5
13592 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
13596 cat >>confdefs.h <<_ACEOF
13597 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
13602 # The cast to long int works around a bug in the HP C Compiler,
13603 # see AC_CHECK_SIZEOF for more information.
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of double" >&5
13605 $as_echo_n "checking alignment of double... " >&6; }
13606 if ${ac_cv_alignof_double+:} false; then :
13607 $as_echo_n "(cached) " >&6
13609 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_double" "$ac_includes_default
13611 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
13613 typedef struct { char x; double y; } ac__type_alignof_;"; then :
13616 if test "$ac_cv_type_double" = yes; then
13617 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13619 as_fn_error 77 "cannot compute alignment of double
13620 See \`config.log' for more details" "$LINENO" 5; }
13622 ac_cv_alignof_double=0
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_double" >&5
13628 $as_echo "$ac_cv_alignof_double" >&6; }
13632 cat >>confdefs.h <<_ACEOF
13633 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
13638 # Compute maximum alignment of any basic type.
13639 # We assume long's alignment is at least as strong as char, short, or int;
13640 # but we must check long long (if it exists) and double.
13642 MAX_ALIGNOF=$ac_cv_alignof_long
13643 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
13644 MAX_ALIGNOF=$ac_cv_alignof_double
13646 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
13647 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
13650 cat >>confdefs.h <<_ACEOF
13651 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
13656 # Some platforms predefine the types int8, int16, etc. Only check
13657 # a (hopefully) representative subset.
13658 ac_fn_c_check_type "$LINENO" "int8" "ac_cv_type_int8" "#include <stdio.h>
13660 if test "x$ac_cv_type_int8" = xyes; then :
13662 cat >>confdefs.h <<_ACEOF
13663 #define HAVE_INT8 1
13668 ac_fn_c_check_type "$LINENO" "uint8" "ac_cv_type_uint8" "#include <stdio.h>
13670 if test "x$ac_cv_type_uint8" = xyes; then :
13672 cat >>confdefs.h <<_ACEOF
13673 #define HAVE_UINT8 1
13678 ac_fn_c_check_type "$LINENO" "int64" "ac_cv_type_int64" "#include <stdio.h>
13680 if test "x$ac_cv_type_int64" = xyes; then :
13682 cat >>confdefs.h <<_ACEOF
13683 #define HAVE_INT64 1
13688 ac_fn_c_check_type "$LINENO" "uint64" "ac_cv_type_uint64" "#include <stdio.h>
13690 if test "x$ac_cv_type_uint64" = xyes; then :
13692 cat >>confdefs.h <<_ACEOF
13693 #define HAVE_UINT64 1
13700 # We also check for sig_atomic_t, which *should* be defined per ANSI
13701 # C, but is missing on some old platforms.
13702 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <signal.h>
13704 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
13706 cat >>confdefs.h <<_ACEOF
13707 #define HAVE_SIG_ATOMIC_T 1
13715 if test "$PORTNAME" != "win32"
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX signal interface" >&5
13718 $as_echo_n "checking for POSIX signal interface... " >&6; }
13719 if ${pgac_cv_func_posix_signals+:} false; then :
13720 $as_echo_n "(cached) " >&6
13722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13723 /* end confdefs.h. */
13724 #include <signal.h>
13729 struct sigaction act, oact;
13730 sigemptyset(&act.sa_mask);
13731 act.sa_flags = SA_RESTART;
13732 sigaction(0, &act, &oact);
13737 if ac_fn_c_try_link "$LINENO"; then :
13738 pgac_cv_func_posix_signals=yes
13740 pgac_cv_func_posix_signals=no
13742 rm -f core conftest.err conftest.$ac_objext \
13743 conftest$ac_exeext conftest.$ac_ext
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_posix_signals" >&5
13746 $as_echo "$pgac_cv_func_posix_signals" >&6; }
13747 if test x"$pgac_cv_func_posix_signals" = xyes ; then
13749 $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
13752 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
13754 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
13756 Thread-safety requires POSIX signals, which are not supported by this
13757 operating system; use --disable-thread-safety to disable thread safety." "$LINENO" 5
13762 # Select semaphore implementation type.
13763 if test "$PORTNAME" != "win32"; then
13764 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
13766 $as_echo "#define USE_NAMED_POSIX_SEMAPHORES 1" >>confdefs.h
13768 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
13770 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
13772 $as_echo "#define USE_UNNAMED_POSIX_SEMAPHORES 1" >>confdefs.h
13774 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
13777 $as_echo "#define USE_SYSV_SEMAPHORES 1" >>confdefs.h
13779 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
13784 $as_echo "#define USE_WIN32_SEMAPHORES 1" >>confdefs.h
13786 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
13790 # Select shared-memory implementation type.
13791 if test "$PORTNAME" != "win32"; then
13793 $as_echo "#define USE_SYSV_SHARED_MEMORY 1" >>confdefs.h
13795 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
13798 $as_echo "#define USE_WIN32_SHARED_MEMORY 1" >>confdefs.h
13800 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
13803 # Select latch implementation type.
13804 if test "$PORTNAME" != "win32"; then
13805 LATCH_IMPLEMENTATION="src/backend/port/unix_latch.c"
13807 LATCH_IMPLEMENTATION="src/backend/port/win32_latch.c"
13810 # If not set in template file, set bytes to use libc memset()
13811 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
13812 MEMSET_LOOP_LIMIT=1024
13815 cat >>confdefs.h <<_ACEOF
13816 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
13821 if test "$enable_nls" = yes ; then
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind_textdomain_codeset" >&5
13824 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
13825 if ${ac_cv_search_bind_textdomain_codeset+:} false; then :
13826 $as_echo_n "(cached) " >&6
13828 ac_func_search_save_LIBS=$LIBS
13829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13830 /* end confdefs.h. */
13832 /* Override any GCC internal prototype to avoid an error.
13833 Use char because int might match the return type of a GCC
13834 builtin and then its argument prototype would still apply. */
13838 char bind_textdomain_codeset ();
13842 return bind_textdomain_codeset ();
13847 for ac_lib in '' intl; do
13848 if test -z "$ac_lib"; then
13849 ac_res="none required"
13852 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13854 if ac_fn_c_try_link "$LINENO"; then :
13855 ac_cv_search_bind_textdomain_codeset=$ac_res
13857 rm -f core conftest.err conftest.$ac_objext \
13859 if ${ac_cv_search_bind_textdomain_codeset+:} false; then :
13863 if ${ac_cv_search_bind_textdomain_codeset+:} false; then :
13866 ac_cv_search_bind_textdomain_codeset=no
13868 rm conftest.$ac_ext
13869 LIBS=$ac_func_search_save_LIBS
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind_textdomain_codeset" >&5
13872 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
13873 ac_res=$ac_cv_search_bind_textdomain_codeset
13874 if test "$ac_res" != no; then :
13875 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13878 as_fn_error $? "a gettext implementation is required for NLS" "$LINENO" 5
13881 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
13882 if test "x$ac_cv_header_libintl_h" = xyes; then :
13885 as_fn_error $? "header file <libintl.h> is required for NLS" "$LINENO" 5
13889 for ac_prog in msgfmt
13891 # Extract the first word of "$ac_prog", so it can be a program name with args.
13892 set dummy $ac_prog; ac_word=$2
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13894 $as_echo_n "checking for $ac_word... " >&6; }
13895 if ${ac_cv_prog_MSGFMT+:} false; then :
13896 $as_echo_n "(cached) " >&6
13898 if test -n "$MSGFMT"; then
13899 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
13901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13902 for as_dir in $PATH
13905 test -z "$as_dir" && as_dir=.
13906 for ac_exec_ext in '' $ac_executable_extensions; do
13907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13908 ac_cv_prog_MSGFMT="$ac_prog"
13909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13918 MSGFMT=$ac_cv_prog_MSGFMT
13919 if test -n "$MSGFMT"; then
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13921 $as_echo "$MSGFMT" >&6; }
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13924 $as_echo "no" >&6; }
13928 test -n "$MSGFMT" && break
13931 if test -z "$MSGFMT"; then
13932 as_fn_error $? "msgfmt is required for NLS" "$LINENO" 5
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msgfmt flags" >&5
13935 $as_echo_n "checking for msgfmt flags... " >&6; }
13936 if ${pgac_cv_msgfmt_flags+:} false; then :
13937 $as_echo_n "(cached) " >&6
13939 if test x"$MSGFMT" != x"" && "$MSGFMT" --version 2>&1 | grep "GNU" >/dev/null; then
13940 pgac_cv_msgfmt_flags=-c
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_msgfmt_flags" >&5
13944 $as_echo "$pgac_cv_msgfmt_flags" >&6; }
13945 MSGFMT_FLAGS=$pgac_cv_msgfmt_flags
13947 for ac_prog in msgmerge
13949 # Extract the first word of "$ac_prog", so it can be a program name with args.
13950 set dummy $ac_prog; ac_word=$2
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13952 $as_echo_n "checking for $ac_word... " >&6; }
13953 if ${ac_cv_prog_MSGMERGE+:} false; then :
13954 $as_echo_n "(cached) " >&6
13956 if test -n "$MSGMERGE"; then
13957 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
13959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13960 for as_dir in $PATH
13963 test -z "$as_dir" && as_dir=.
13964 for ac_exec_ext in '' $ac_executable_extensions; do
13965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13966 ac_cv_prog_MSGMERGE="$ac_prog"
13967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13976 MSGMERGE=$ac_cv_prog_MSGMERGE
13977 if test -n "$MSGMERGE"; then
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13979 $as_echo "$MSGMERGE" >&6; }
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13982 $as_echo "no" >&6; }
13986 test -n "$MSGMERGE" && break
13989 for ac_prog in xgettext
13991 # Extract the first word of "$ac_prog", so it can be a program name with args.
13992 set dummy $ac_prog; ac_word=$2
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13994 $as_echo_n "checking for $ac_word... " >&6; }
13995 if ${ac_cv_prog_XGETTEXT+:} false; then :
13996 $as_echo_n "(cached) " >&6
13998 if test -n "$XGETTEXT"; then
13999 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
14001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14002 for as_dir in $PATH
14005 test -z "$as_dir" && as_dir=.
14006 for ac_exec_ext in '' $ac_executable_extensions; do
14007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14008 ac_cv_prog_XGETTEXT="$ac_prog"
14009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14018 XGETTEXT=$ac_cv_prog_XGETTEXT
14019 if test -n "$XGETTEXT"; then
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
14021 $as_echo "$XGETTEXT" >&6; }
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14024 $as_echo "no" >&6; }
14028 test -n "$XGETTEXT" && break
14034 # Check for Tcl configuration script tclConfig.sh
14035 if test "$with_tcl" = yes; then
14036 for ac_prog in tclsh tcl tclsh8.6 tclsh86 tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
14038 # Extract the first word of "$ac_prog", so it can be a program name with args.
14039 set dummy $ac_prog; ac_word=$2
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14041 $as_echo_n "checking for $ac_word... " >&6; }
14042 if ${ac_cv_path_TCLSH+:} false; then :
14043 $as_echo_n "(cached) " >&6
14047 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
14050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14051 for as_dir in $PATH
14054 test -z "$as_dir" && as_dir=.
14055 for ac_exec_ext in '' $ac_executable_extensions; do
14056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14057 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
14058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14068 TCLSH=$ac_cv_path_TCLSH
14069 if test -n "$TCLSH"; then
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
14071 $as_echo "$TCLSH" >&6; }
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14074 $as_echo "no" >&6; }
14078 test -n "$TCLSH" && break
14081 if test x"$TCLSH" = x""; then
14082 as_fn_error $? "Tcl shell not found" "$LINENO" 5
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclConfig.sh" >&5
14086 $as_echo_n "checking for tclConfig.sh... " >&6; }
14087 # Let user override test
14088 if test -z "$TCL_CONFIG_SH"; then
14089 pgac_test_dirs="$with_tclconfig"
14091 set X $pgac_test_dirs; shift
14092 if test $# -eq 0; then
14093 test -z "$TCLSH" && as_fn_error $? "unable to locate tclConfig.sh because no Tcl shell was found" "$LINENO" 5
14094 set X `echo 'puts $auto_path' | $TCLSH`; shift
14098 if test -r "$pgac_dir/tclConfig.sh"; then
14099 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
14105 if test -z "$TCL_CONFIG_SH"; then
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14107 $as_echo "no" >&6; }
14108 as_fn_error $? "file 'tclConfig.sh' is required for Tcl" "$LINENO" 5
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCL_CONFIG_SH" >&5
14111 $as_echo "$TCL_CONFIG_SH" >&6; }
14117 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
14118 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
14119 eval TCL_LIBS=\"$TCL_LIBS\"
14120 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
14121 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
14123 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
14124 ac_save_CPPFLAGS=$CPPFLAGS
14125 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
14126 ac_fn_c_check_header_mongrel "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
14127 if test "x$ac_cv_header_tcl_h" = xyes; then :
14130 as_fn_error $? "header file <tcl.h> is required for Tcl" "$LINENO" 5
14134 CPPFLAGS=$ac_save_CPPFLAGS
14137 # check for <perl.h>
14138 if test "$with_perl" = yes; then
14139 ac_save_CPPFLAGS=$CPPFLAGS
14140 CPPFLAGS="$CPPFLAGS -I$perl_archlibexp/CORE"
14141 ac_fn_c_check_header_compile "$LINENO" "perl.h" "ac_cv_header_perl_h" "#include <EXTERN.h>
14143 if test "x$ac_cv_header_perl_h" = xyes; then :
14146 as_fn_error $? "header file <perl.h> is required for Perl" "$LINENO" 5
14150 # While we're at it, check that we can link to libperl.
14151 # On most platforms, if perl.h is there then libperl.so will be too, but at
14152 # this writing Debian packages them separately. There is no known reason to
14153 # waste cycles on separate probes for the Tcl or Python libraries, though.
14154 pgac_save_LIBS=$LIBS
14155 LIBS="$perl_embed_ldflags"
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libperl" >&5
14157 $as_echo_n "checking for libperl... " >&6; }
14158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14159 /* end confdefs.h. */
14161 #include <EXTERN.h>
14172 if ac_fn_c_try_link "$LINENO"; then :
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14174 $as_echo "yes" >&6; }
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14177 $as_echo "no" >&6; }
14178 as_fn_error $? "libperl library is required for Perl" "$LINENO" 5
14180 rm -f core conftest.err conftest.$ac_objext \
14181 conftest$ac_exeext conftest.$ac_ext
14182 LIBS=$pgac_save_LIBS
14183 CPPFLAGS=$ac_save_CPPFLAGS
14186 # check for <Python.h>
14187 if test "$with_python" = yes; then
14188 ac_save_CPPFLAGS=$CPPFLAGS
14189 CPPFLAGS="$python_includespec $CPPFLAGS"
14190 ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
14191 if test "x$ac_cv_header_Python_h" = xyes; then :
14194 as_fn_error $? "header file <Python.h> is required for Python" "$LINENO" 5
14198 CPPFLAGS=$ac_save_CPPFLAGS
14202 # Check for DocBook and tools
14204 for ac_prog in onsgmls nsgmls
14206 # Extract the first word of "$ac_prog", so it can be a program name with args.
14207 set dummy $ac_prog; ac_word=$2
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14209 $as_echo_n "checking for $ac_word... " >&6; }
14210 if ${ac_cv_prog_NSGMLS+:} false; then :
14211 $as_echo_n "(cached) " >&6
14213 if test -n "$NSGMLS"; then
14214 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
14216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14217 for as_dir in $PATH
14220 test -z "$as_dir" && as_dir=.
14221 for ac_exec_ext in '' $ac_executable_extensions; do
14222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14223 ac_cv_prog_NSGMLS="$ac_prog"
14224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14233 NSGMLS=$ac_cv_prog_NSGMLS
14234 if test -n "$NSGMLS"; then
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NSGMLS" >&5
14236 $as_echo "$NSGMLS" >&6; }
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14239 $as_echo "no" >&6; }
14243 test -n "$NSGMLS" && break
14246 for ac_prog in openjade jade
14248 # Extract the first word of "$ac_prog", so it can be a program name with args.
14249 set dummy $ac_prog; ac_word=$2
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14251 $as_echo_n "checking for $ac_word... " >&6; }
14252 if ${ac_cv_prog_JADE+:} false; then :
14253 $as_echo_n "(cached) " >&6
14255 if test -n "$JADE"; then
14256 ac_cv_prog_JADE="$JADE" # Let the user override the test.
14258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14259 for as_dir in $PATH
14262 test -z "$as_dir" && as_dir=.
14263 for ac_exec_ext in '' $ac_executable_extensions; do
14264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14265 ac_cv_prog_JADE="$ac_prog"
14266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14275 JADE=$ac_cv_prog_JADE
14276 if test -n "$JADE"; then
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JADE" >&5
14278 $as_echo "$JADE" >&6; }
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14281 $as_echo "no" >&6; }
14285 test -n "$JADE" && break
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DocBook V4.2" >&5
14290 $as_echo_n "checking for DocBook V4.2... " >&6; }
14291 if ${pgac_cv_check_docbook+:} false; then :
14292 $as_echo_n "(cached) " >&6
14294 cat >conftest.sgml <<EOF
14295 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
14297 <title>test</title>
14299 <title>random</title>
14301 <title>testsect</title>
14308 pgac_cv_check_docbook=no
14310 if test -n "$NSGMLS"; then
14311 $NSGMLS -s conftest.sgml 1>&5 2>&1
14312 if test $? -eq 0; then
14313 pgac_cv_check_docbook=yes
14316 rm -f conftest.sgml
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_check_docbook" >&5
14319 $as_echo "$pgac_cv_check_docbook" >&6; }
14321 have_docbook=$pgac_cv_check_docbook
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DocBook stylesheets" >&5
14325 $as_echo_n "checking for DocBook stylesheets... " >&6; }
14326 if ${pgac_cv_path_stylesheets+:} false; then :
14327 $as_echo_n "(cached) " >&6
14329 if test -n "$DOCBOOKSTYLE"; then
14330 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
14332 for pgac_prefix in /usr /usr/local /opt /sw; do
14333 for pgac_infix in share lib; do
14334 for pgac_postfix in \
14335 sgml/stylesheets/nwalsh-modular \
14336 sgml/stylesheets/docbook \
14337 sgml/stylesheets/dsssl/docbook \
14338 sgml/docbook-dsssl \
14339 sgml/docbook/dsssl/modular \
14340 sgml/docbook/stylesheet/dsssl/modular \
14341 sgml/docbook/dsssl-stylesheets \
14342 sgml/dsssl/docbook-dsssl-nwalsh
14344 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
14345 if test -r "$pgac_candidate/html/docbook.dsl" \
14346 && test -r "$pgac_candidate/print/docbook.dsl"
14348 pgac_cv_path_stylesheets=$pgac_candidate
14357 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
14359 if test -n "$DOCBOOKSTYLE"; then
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOCBOOKSTYLE" >&5
14361 $as_echo "$DOCBOOKSTYLE" >&6; }
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14364 $as_echo "no" >&6; }
14366 if test -n "$DOCBOOKSTYLE" -a -r "$DOCBOOKSTYLE/bin/collateindex.pl"; then
14367 COLLATEINDEX="$DOCBOOKSTYLE/bin/collateindex.pl"
14370 # Extract the first word of "collateindex.pl", so it can be a program name with args.
14371 set dummy collateindex.pl; ac_word=$2
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14373 $as_echo_n "checking for $ac_word... " >&6; }
14374 if ${ac_cv_path_COLLATEINDEX+:} false; then :
14375 $as_echo_n "(cached) " >&6
14377 case $COLLATEINDEX in
14379 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
14382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14383 for as_dir in $PATH
14386 test -z "$as_dir" && as_dir=.
14387 for ac_exec_ext in '' $ac_executable_extensions; do
14388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14389 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
14390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14400 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
14401 if test -n "$COLLATEINDEX"; then
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COLLATEINDEX" >&5
14403 $as_echo "$COLLATEINDEX" >&6; }
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14406 $as_echo "no" >&6; }
14411 for ac_prog in dbtoepub
14413 # Extract the first word of "$ac_prog", so it can be a program name with args.
14414 set dummy $ac_prog; ac_word=$2
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14416 $as_echo_n "checking for $ac_word... " >&6; }
14417 if ${ac_cv_prog_DBTOEPUB+:} false; then :
14418 $as_echo_n "(cached) " >&6
14420 if test -n "$DBTOEPUB"; then
14421 ac_cv_prog_DBTOEPUB="$DBTOEPUB" # Let the user override the test.
14423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14424 for as_dir in $PATH
14427 test -z "$as_dir" && as_dir=.
14428 for ac_exec_ext in '' $ac_executable_extensions; do
14429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14430 ac_cv_prog_DBTOEPUB="$ac_prog"
14431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14440 DBTOEPUB=$ac_cv_prog_DBTOEPUB
14441 if test -n "$DBTOEPUB"; then
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBTOEPUB" >&5
14443 $as_echo "$DBTOEPUB" >&6; }
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14446 $as_echo "no" >&6; }
14450 test -n "$DBTOEPUB" && break
14453 for ac_prog in xsltproc
14455 # Extract the first word of "$ac_prog", so it can be a program name with args.
14456 set dummy $ac_prog; ac_word=$2
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14458 $as_echo_n "checking for $ac_word... " >&6; }
14459 if ${ac_cv_prog_XSLTPROC+:} false; then :
14460 $as_echo_n "(cached) " >&6
14462 if test -n "$XSLTPROC"; then
14463 ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
14465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14466 for as_dir in $PATH
14469 test -z "$as_dir" && as_dir=.
14470 for ac_exec_ext in '' $ac_executable_extensions; do
14471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14472 ac_cv_prog_XSLTPROC="$ac_prog"
14473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14482 XSLTPROC=$ac_cv_prog_XSLTPROC
14483 if test -n "$XSLTPROC"; then
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
14485 $as_echo "$XSLTPROC" >&6; }
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14488 $as_echo "no" >&6; }
14492 test -n "$XSLTPROC" && break
14495 for ac_prog in osx sgml2xml sx
14497 # Extract the first word of "$ac_prog", so it can be a program name with args.
14498 set dummy $ac_prog; ac_word=$2
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14500 $as_echo_n "checking for $ac_word... " >&6; }
14501 if ${ac_cv_prog_OSX+:} false; then :
14502 $as_echo_n "(cached) " >&6
14504 if test -n "$OSX"; then
14505 ac_cv_prog_OSX="$OSX" # Let the user override the test.
14507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14508 for as_dir in $PATH
14511 test -z "$as_dir" && as_dir=.
14512 for ac_exec_ext in '' $ac_executable_extensions; do
14513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14514 ac_cv_prog_OSX="$ac_prog"
14515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14524 OSX=$ac_cv_prog_OSX
14525 if test -n "$OSX"; then
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OSX" >&5
14527 $as_echo "$OSX" >&6; }
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14530 $as_echo "no" >&6; }
14534 test -n "$OSX" && break
14539 # Check for test tools
14541 for ac_prog in prove
14543 # Extract the first word of "$ac_prog", so it can be a program name with args.
14544 set dummy $ac_prog; ac_word=$2
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14546 $as_echo_n "checking for $ac_word... " >&6; }
14547 if ${ac_cv_prog_PROVE+:} false; then :
14548 $as_echo_n "(cached) " >&6
14550 if test -n "$PROVE"; then
14551 ac_cv_prog_PROVE="$PROVE" # Let the user override the test.
14553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14554 for as_dir in $PATH
14557 test -z "$as_dir" && as_dir=.
14558 for ac_exec_ext in '' $ac_executable_extensions; do
14559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14560 ac_cv_prog_PROVE="$ac_prog"
14561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14570 PROVE=$ac_cv_prog_PROVE
14571 if test -n "$PROVE"; then
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROVE" >&5
14573 $as_echo "$PROVE" >&6; }
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14576 $as_echo "no" >&6; }
14580 test -n "$PROVE" && break
14586 # We have to run the thread test near the end so we have all our symbols
14587 # defined. Cross compiling throws a warning.
14589 if test "$enable_thread_safety" = yes; then
14590 if test "$PORTNAME" != "win32"
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking thread safety of required library functions" >&5
14593 $as_echo_n "checking thread safety of required library functions... " >&6; }
14597 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
14598 LIBS="$LIBS $PTHREAD_LIBS"
14599 if test "$cross_compiling" = yes; then :
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: maybe" >&5
14601 $as_echo "maybe" >&6; }
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
14603 *** Skipping thread test program because of cross-compile build.
14604 *** Run the program in src/test/thread on the target machine.
14606 $as_echo "$as_me: WARNING:
14607 *** Skipping thread test program because of cross-compile build.
14608 *** Run the program in src/test/thread on the target machine.
14611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14612 /* end confdefs.h. */
14613 #include "$srcdir/src/test/thread/thread_test.c"
14615 if ac_fn_c_try_run "$LINENO"; then :
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14617 $as_echo "yes" >&6; }
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14620 $as_echo "no" >&6; }
14621 as_fn_error $? "thread test program failed
14622 This platform is not thread-safe. Check the file 'config.log' or compile
14623 and run src/test/thread/thread_test for the exact reason.
14624 Use --disable-thread-safety to disable thread safety." "$LINENO" 5
14626 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14627 conftest.$ac_objext conftest.beam conftest.$ac_ext
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** skipping thread test on Win32" >&5
14634 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
14638 # If compiler will take -Wl,--as-needed (or various platform-specific
14639 # spellings thereof) then add that to LDFLAGS. This is much easier than
14640 # trying to filter LIBS to the minimum for each executable.
14641 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
14642 # libreadline; therefore we postpone testing it until we know what library
14643 # dependencies readline has. The test code will try to link with $LIBS.
14644 if test "$with_readline" = yes; then
14645 link_test_func=readline
14647 link_test_func=exit
14650 if test "$PORTNAME" = "darwin"; then
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,-dead_strip_dylibs" >&5
14652 $as_echo_n "checking whether $CC supports -Wl,-dead_strip_dylibs... " >&6; }
14653 if ${pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs+:} false; then :
14654 $as_echo_n "(cached) " >&6
14656 pgac_save_LDFLAGS=$LDFLAGS
14657 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
14658 if test "$cross_compiling" = yes; then :
14659 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs="assuming no"
14661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14662 /* end confdefs.h. */
14663 extern void $link_test_func (); void (*fptr) () = $link_test_func;
14672 if ac_fn_c_try_run "$LINENO"; then :
14673 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=yes
14675 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=no
14677 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14678 conftest.$ac_objext conftest.beam conftest.$ac_ext
14681 LDFLAGS="$pgac_save_LDFLAGS"
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&5
14684 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&6; }
14685 if test x"$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" = x"yes"; then
14686 LDFLAGS="$LDFLAGS -Wl,-dead_strip_dylibs"
14689 elif test "$PORTNAME" = "openbsd"; then
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,-Bdynamic" >&5
14691 $as_echo_n "checking whether $CC supports -Wl,-Bdynamic... " >&6; }
14692 if ${pgac_cv_prog_cc_ldflags__Wl__Bdynamic+:} false; then :
14693 $as_echo_n "(cached) " >&6
14695 pgac_save_LDFLAGS=$LDFLAGS
14696 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
14697 if test "$cross_compiling" = yes; then :
14698 pgac_cv_prog_cc_ldflags__Wl__Bdynamic="assuming no"
14700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14701 /* end confdefs.h. */
14702 extern void $link_test_func (); void (*fptr) () = $link_test_func;
14711 if ac_fn_c_try_run "$LINENO"; then :
14712 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=yes
14714 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=no
14716 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14717 conftest.$ac_objext conftest.beam conftest.$ac_ext
14720 LDFLAGS="$pgac_save_LDFLAGS"
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&5
14723 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&6; }
14724 if test x"$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" = x"yes"; then
14725 LDFLAGS="$LDFLAGS -Wl,-Bdynamic"
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,--as-needed" >&5
14730 $as_echo_n "checking whether $CC supports -Wl,--as-needed... " >&6; }
14731 if ${pgac_cv_prog_cc_ldflags__Wl___as_needed+:} false; then :
14732 $as_echo_n "(cached) " >&6
14734 pgac_save_LDFLAGS=$LDFLAGS
14735 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
14736 if test "$cross_compiling" = yes; then :
14737 pgac_cv_prog_cc_ldflags__Wl___as_needed="assuming no"
14739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14740 /* end confdefs.h. */
14741 extern void $link_test_func (); void (*fptr) () = $link_test_func;
14750 if ac_fn_c_try_run "$LINENO"; then :
14751 pgac_cv_prog_cc_ldflags__Wl___as_needed=yes
14753 pgac_cv_prog_cc_ldflags__Wl___as_needed=no
14755 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14756 conftest.$ac_objext conftest.beam conftest.$ac_ext
14759 LDFLAGS="$pgac_save_LDFLAGS"
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_ldflags__Wl___as_needed" >&5
14762 $as_echo "$pgac_cv_prog_cc_ldflags__Wl___as_needed" >&6; }
14763 if test x"$pgac_cv_prog_cc_ldflags__Wl___as_needed" = x"yes"; then
14764 LDFLAGS="$LDFLAGS -Wl,--as-needed"
14769 # Create compiler version string
14770 if test x"$GCC" = x"yes" ; then
14771 cc_string=`${CC} --version | sed q`
14772 case $cc_string in [A-Za-z]*) ;; *) cc_string="GCC $cc_string";; esac
14773 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
14774 cc_string=`${CC} -V 2>&1 | sed q`
14780 cat >>confdefs.h <<_ACEOF
14781 #define PG_VERSION_STR "PostgreSQL $PG_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
14785 # Supply a numeric version string for use by 3rd party add-ons
14786 # awk -F is a regex on some platforms, and not on others, so make "." a tab
14787 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
14789 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
14791 cat >>confdefs.h <<_ACEOF
14792 #define PG_VERSION_NUM $PG_VERSION_NUM
14797 # Begin output steps
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: using compiler=$cc_string" >&5
14800 $as_echo "$as_me: using compiler=$cc_string" >&6;}
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS=$CFLAGS" >&5
14802 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS=$CPPFLAGS" >&5
14804 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS=$LDFLAGS" >&5
14806 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
14808 # prepare build tree if outside source tree
14809 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
14810 # Note 2: /bin/pwd might be better than shell's built-in at getting
14811 # a symlink-free name.
14812 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
14816 if test "$no_create" != yes; then
14817 $as_echo_n "preparing build tree... " >&6
14818 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
14819 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
14820 || as_fn_error $? "failed" "$LINENO" 5
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14822 $as_echo "done" >&6; }
14828 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
14831 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}"
14834 if test "$PORTNAME" = "win32"; then
14835 ac_config_commands="$ac_config_commands check_win32_symlinks"
14839 ac_config_headers="$ac_config_headers src/include/pg_config.h"
14842 ac_config_headers="$ac_config_headers src/include/pg_config_ext.h"
14845 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
14848 cat >confcache <<\_ACEOF
14849 # This file is a shell script that caches the results of configure
14850 # tests run on this system so they can be shared between configure
14851 # scripts and configure runs, see configure's option --config-cache.
14852 # It is not useful on other systems. If it contains results you don't
14853 # want to keep, you may remove or edit it.
14855 # config.status only pays attention to the cache file if you give it
14856 # the --recheck option to rerun configure.
14858 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14859 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14860 # following values.
14864 # The following way of writing the cache mishandles newlines in values,
14865 # but we know of no workaround that is simple, portable, and efficient.
14866 # So, we kill variables containing newlines.
14867 # Ultrix sh set writes to stderr and can't be redirected directly,
14868 # and sets the high bit in the cache file unless we assign to the vars.
14870 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14871 eval ac_val=\$$ac_var
14875 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14876 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14879 _ | IFS | as_nl) ;; #(
14880 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14881 *) { eval $ac_var=; unset $ac_var;} ;;
14887 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14888 *${as_nl}ac_space=\ *)
14889 # `set' does not quote correctly, so add quotes: double-quote
14890 # substitution turns \\\\ into \\, and sed turns \\ into \.
14893 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14896 # `set' quotes correctly as required by POSIX, so do not add quotes.
14897 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14906 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14908 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14910 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14911 if test -w "$cache_file"; then
14912 if test "x$cache_file" != "x/dev/null"; then
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14914 $as_echo "$as_me: updating cache $cache_file" >&6;}
14915 if test ! -f "$cache_file" || test -h "$cache_file"; then
14916 cat confcache >"$cache_file"
14918 case $cache_file in #(
14920 mv -f confcache "$cache_file"$$ &&
14921 mv -f "$cache_file"$$ "$cache_file" ;; #(
14923 mv -f confcache "$cache_file" ;;
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14929 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14934 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14935 # Let make expand exec_prefix.
14936 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14938 DEFS=-DHAVE_CONFIG_H
14943 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14944 # 1. Remove the extension, and $U if already installed.
14945 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14946 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14947 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14948 # will be set to the directory where LIBOBJS objects are built.
14949 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14950 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14952 LIBOBJS=$ac_libobjs
14954 LTLIBOBJS=$ac_ltlibobjs
14959 : "${CONFIG_STATUS=./config.status}"
14961 ac_clean_files_save=$ac_clean_files
14962 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14964 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14966 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14968 # Generated by $as_me.
14969 # Run this file to recreate the current configuration.
14970 # Compiler output produced by configure, useful for debugging
14971 # configure, is in config.log if it exists.
14974 ac_cs_recheck=false
14977 SHELL=\${CONFIG_SHELL-$SHELL}
14980 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14981 ## -------------------- ##
14982 ## M4sh Initialization. ##
14983 ## -------------------- ##
14985 # Be more Bourne compatible
14986 DUALCASE=1; export DUALCASE # for MKS sh
14987 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14990 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14991 # is contrary to our usage. Disable this feature.
14992 alias -g '${1+"$@"}'='"$@"'
14993 setopt NO_GLOB_SUBST
14995 case `(set -o) 2>/dev/null` in #(
15007 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15008 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15009 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15010 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15011 # Prefer a ksh shell builtin over an external printf program on Solaris,
15012 # but without wasting forks for bash or zsh.
15013 if test -z "$BASH_VERSION$ZSH_VERSION" \
15014 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15015 as_echo='print -r --'
15016 as_echo_n='print -rn --'
15017 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15018 as_echo='printf %s\n'
15019 as_echo_n='printf %s'
15021 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15022 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15023 as_echo_n='/usr/ucb/echo -n'
15025 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15026 as_echo_n_body='eval
15030 expr "X$arg" : "X\\(.*\\)$as_nl";
15031 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15033 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15035 export as_echo_n_body
15036 as_echo_n='sh -c $as_echo_n_body as_echo'
15038 export as_echo_body
15039 as_echo='sh -c $as_echo_body as_echo'
15042 # The user is always right.
15043 if test "${PATH_SEPARATOR+set}" != set; then
15045 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15046 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15053 # We need space, tab and new line, in precisely that order. Quoting is
15054 # there to prevent editors from complaining about space-tab.
15055 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15056 # splitting by setting IFS to empty value.)
15059 # Find who we are. Look in the path if we contain no directory separator.
15062 *[\\/]* ) as_myself=$0 ;;
15063 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15064 for as_dir in $PATH
15067 test -z "$as_dir" && as_dir=.
15068 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15074 # We did not find ourselves, most probably we were run as `sh COMMAND'
15075 # in which case we are not to be found in the path.
15076 if test "x$as_myself" = x; then
15079 if test ! -f "$as_myself"; then
15080 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15084 # Unset variables that we do not need and which cause bugs (e.g. in
15085 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15086 # suppresses any "Segmentation fault" message there. '((' could
15087 # trigger a bug in pdksh 5.2.14.
15088 for as_var in BASH_ENV ENV MAIL MAILPATH
15089 do eval test x\${$as_var+set} = xset \
15090 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15103 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15106 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15107 # ----------------------------------------
15108 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15109 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15110 # script with STATUS, using 1 if that was 0.
15113 as_status=$1; test $as_status -eq 0 && as_status=1
15115 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15116 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15118 $as_echo "$as_me: error: $2" >&2
15119 as_fn_exit $as_status
15123 # as_fn_set_status STATUS
15124 # -----------------------
15125 # Set $? to STATUS, without forking.
15126 as_fn_set_status ()
15129 } # as_fn_set_status
15131 # as_fn_exit STATUS
15132 # -----------------
15133 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15137 as_fn_set_status $1
15143 # Portably unset VAR.
15146 { eval $1=; unset $1;}
15148 as_unset=as_fn_unset
15149 # as_fn_append VAR VALUE
15150 # ----------------------
15151 # Append the text in VALUE to the end of the definition contained in VAR. Take
15152 # advantage of any shell optimizations that allow amortized linear growth over
15153 # repeated appends, instead of the typical quadratic growth present in naive
15155 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15156 eval 'as_fn_append ()
15167 # as_fn_arith ARG...
15168 # ------------------
15169 # Perform arithmetic evaluation on the ARGs, and store the result in the
15170 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15171 # must be portable across $(()) and expr.
15172 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15173 eval 'as_fn_arith ()
15180 as_val=`expr "$@" || test $? -eq 1`
15185 if expr a : '\(a\)' >/dev/null 2>&1 &&
15186 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15192 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15193 as_basename=basename
15198 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15204 as_me=`$as_basename -- "$0" ||
15205 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15206 X"$0" : 'X\(//\)$' \| \
15207 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15209 sed '/^.*\/\([^/][^/]*\)\/*$/{
15223 # Avoid depending upon Character Ranges.
15224 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15225 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15226 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15227 as_cr_digits='0123456789'
15228 as_cr_alnum=$as_cr_Letters$as_cr_digits
15230 ECHO_C= ECHO_N= ECHO_T=
15231 case `echo -n x` in #(((((
15233 case `echo 'xy\c'` in
15234 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15236 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15243 rm -f conf$$ conf$$.exe conf$$.file
15244 if test -d conf$$.dir; then
15245 rm -f conf$$.dir/conf$$.file
15248 mkdir conf$$.dir 2>/dev/null
15250 if (echo >conf$$.file) 2>/dev/null; then
15251 if ln -s conf$$.file conf$$ 2>/dev/null; then
15253 # ... but there are two gotchas:
15254 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15255 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15256 # In both cases, we have to default to `cp -pR'.
15257 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15259 elif ln conf$$.file conf$$ 2>/dev/null; then
15267 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15268 rmdir conf$$.dir 2>/dev/null
15273 # Create "$as_dir" as a directory, including parents if necessary.
15278 -*) as_dir=./$as_dir;;
15280 test -d "$as_dir" || eval $as_mkdir_p || {
15284 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15285 *) as_qdir=$as_dir;;
15287 as_dirs="'$as_qdir' $as_dirs"
15288 as_dir=`$as_dirname -- "$as_dir" ||
15289 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15290 X"$as_dir" : 'X\(//\)[^/]' \| \
15291 X"$as_dir" : 'X\(//\)$' \| \
15292 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15293 $as_echo X"$as_dir" |
15294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15298 /^X\(\/\/\)[^/].*/{
15311 test -d "$as_dir" && break
15313 test -z "$as_dirs" || eval "mkdir $as_dirs"
15314 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15318 if mkdir -p . 2>/dev/null; then
15319 as_mkdir_p='mkdir -p "$as_dir"'
15321 test -d ./-p && rmdir ./-p
15326 # as_fn_executable_p FILE
15327 # -----------------------
15328 # Test if FILE is an executable regular file.
15329 as_fn_executable_p ()
15331 test -f "$1" && test -x "$1"
15332 } # as_fn_executable_p
15333 as_test_x='test -x'
15334 as_executable_p=as_fn_executable_p
15336 # Sed expression to map a string onto a valid CPP name.
15337 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15339 # Sed expression to map a string onto a valid variable name.
15340 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15344 ## ----------------------------------- ##
15345 ## Main body of $CONFIG_STATUS script. ##
15346 ## ----------------------------------- ##
15348 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15351 # Save the log message, to keep $0 and so on meaningful, and to
15352 # report actual input values of CONFIG_FILES etc. instead of their
15353 # values after options handling.
15355 This file was extended by PostgreSQL $as_me 9.5devel, which was
15356 generated by GNU Autoconf 2.69. Invocation command line was
15358 CONFIG_FILES = $CONFIG_FILES
15359 CONFIG_HEADERS = $CONFIG_HEADERS
15360 CONFIG_LINKS = $CONFIG_LINKS
15361 CONFIG_COMMANDS = $CONFIG_COMMANDS
15364 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15369 case $ac_config_files in *"
15370 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15373 case $ac_config_headers in *"
15374 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15378 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15379 # Files that config.status was made for.
15380 config_files="$ac_config_files"
15381 config_headers="$ac_config_headers"
15382 config_links="$ac_config_links"
15383 config_commands="$ac_config_commands"
15387 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15389 \`$as_me' instantiates files and other configuration actions
15390 from templates according to the current configuration. Unless the files
15391 and actions are specified as TAGs, all are instantiated by default.
15393 Usage: $0 [OPTION]... [TAG]...
15395 -h, --help print this help, then exit
15396 -V, --version print version number and configuration settings, then exit
15397 --config print configuration, then exit
15398 -q, --quiet, --silent
15399 do not print progress messages
15400 -d, --debug don't remove temporary files
15401 --recheck update $as_me by reconfiguring in the same conditions
15402 --file=FILE[:TEMPLATE]
15403 instantiate the configuration file FILE
15404 --header=FILE[:TEMPLATE]
15405 instantiate the configuration header FILE
15407 Configuration files:
15410 Configuration headers:
15413 Configuration links:
15416 Configuration commands:
15419 Report bugs to <pgsql-bugs@postgresql.org>."
15422 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15423 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15425 PostgreSQL config.status 9.5devel
15426 configured by $0, generated by GNU Autoconf 2.69,
15427 with options \\"\$ac_cs_config\\"
15429 Copyright (C) 2012 Free Software Foundation, Inc.
15430 This config.status script is free software; the Free Software Foundation
15431 gives unlimited permission to copy, distribute and modify it."
15438 test -n "\$AWK" || AWK=awk
15441 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15442 # The default lists apply if the user does not specify any file.
15448 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15449 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15453 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15465 # Handling of the options.
15466 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15468 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15469 $as_echo "$ac_cs_version"; exit ;;
15470 --config | --confi | --conf | --con | --co | --c )
15471 $as_echo "$ac_cs_config"; exit ;;
15472 --debug | --debu | --deb | --de | --d | -d )
15474 --file | --fil | --fi | --f )
15477 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15478 '') as_fn_error $? "missing file argument" ;;
15480 as_fn_append CONFIG_FILES " '$ac_optarg'"
15481 ac_need_defaults=false;;
15482 --header | --heade | --head | --hea )
15485 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15487 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15488 ac_need_defaults=false;;
15490 # Conflict between --help and --header
15491 as_fn_error $? "ambiguous option: \`$1'
15492 Try \`$0 --help' for more information.";;
15493 --help | --hel | -h )
15494 $as_echo "$ac_cs_usage"; exit ;;
15495 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15496 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15499 # This is an error.
15500 -*) as_fn_error $? "unrecognized option: \`$1'
15501 Try \`$0 --help' for more information." ;;
15503 *) as_fn_append ac_config_targets " $1"
15504 ac_need_defaults=false ;;
15510 ac_configure_extra_args=
15512 if $ac_cs_silent; then
15514 ac_configure_extra_args="$ac_configure_extra_args --silent"
15518 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15519 if \$ac_cs_recheck; then
15520 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15522 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15523 CONFIG_SHELL='$SHELL'
15524 export CONFIG_SHELL
15529 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15533 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15534 ## Running $as_me. ##
15540 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15543 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15545 # Handling of arguments.
15546 for ac_config_target in $ac_config_targets
15548 case $ac_config_target in
15549 "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
15550 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
15551 "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
15552 "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
15553 "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
15554 "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
15555 "src/backend/port/pg_latch.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_latch.c:${LATCH_IMPLEMENTATION}" ;;
15556 "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
15557 "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
15558 "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
15559 "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
15560 "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
15561 "src/include/pg_config_ext.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config_ext.h" ;;
15562 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
15564 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15569 # If the user did not use the arguments to specify the items to instantiate,
15570 # then the envvar interface is used. Set only those that are not.
15571 # We use the long form for the default assignment because of an extremely
15572 # bizarre bug on SunOS 4.1.3.
15573 if $ac_need_defaults; then
15574 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15575 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15576 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
15577 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15580 # Have a temporary directory for convenience. Make it in the build tree
15581 # simply because there is no reason against having it here, and in addition,
15582 # creating and moving files from /tmp can sometimes cause problems.
15583 # Hook for its removal unless debugging.
15584 # Note that there is a small window in which the directory will not be cleaned:
15585 # after its creation but before its name has been assigned to `$tmp'.
15589 trap 'exit_status=$?
15590 : "${ac_tmp:=$tmp}"
15591 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15593 trap 'as_fn_exit 1' 1 2 13 15
15595 # Create a (secure) tmp directory for tmp files.
15598 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15602 tmp=./conf$$-$RANDOM
15603 (umask 077 && mkdir "$tmp")
15604 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15607 # Set up the scripts for CONFIG_FILES section.
15608 # No need to generate them if there are no CONFIG_FILES.
15609 # This happens for instance with `./config.status config.h'.
15610 if test -n "$CONFIG_FILES"; then
15613 ac_cr=`echo X | tr X '\015'`
15614 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15615 # But we know of no other shell where ac_cr would be empty at this
15616 # point, so we can use a bashism as a fallback.
15617 if test "x$ac_cr" = x; then
15618 eval ac_cr=\$\'\\r\'
15620 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15621 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15624 ac_cs_awk_cr=$ac_cr
15627 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15632 echo "cat >conf$$subs.awk <<_ACEOF" &&
15633 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15635 } >conf$$subs.sh ||
15636 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15637 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15639 for ac_last_try in false false false false false :; do
15640 . ./conf$$subs.sh ||
15641 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15643 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15644 if test $ac_delim_n = $ac_delim_num; then
15646 elif $ac_last_try; then
15647 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15649 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15652 rm -f conf$$subs.sh
15654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15655 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15659 s/^/S["/; s/!.*/"]=/
15669 s/\(.\{148\}\)..*/\1/
15671 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15676 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15683 s/\(.\{148\}\)..*/\1/
15685 s/["\\]/\\&/g; s/^/"/; s/$/"/
15689 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15694 ' <conf$$subs.awk | sed '
15699 ' >>$CONFIG_STATUS || ac_write_fail=1
15700 rm -f conf$$subs.awk
15701 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15703 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15704 for (key in S) S_is_set[key] = 1
15710 nfields = split(line, field, "@")
15712 len = length(field[1])
15713 for (i = 2; i < nfields; i++) {
15715 keylen = length(key)
15716 if (S_is_set[key]) {
15718 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15719 len += length(value) + length(field[++i])
15730 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15731 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15732 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15735 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15736 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15739 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15740 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15741 # trailing colons and then remove the whole line if VPATH becomes empty
15742 # (actually we leave an empty line to preserve line numbers).
15743 if test "x$srcdir" = x.; then
15744 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15762 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15763 fi # test -n "$CONFIG_FILES"
15765 # Set up the scripts for CONFIG_HEADERS section.
15766 # No need to generate them if there are no CONFIG_HEADERS.
15767 # This happens for instance with `./config.status Makefile'.
15768 if test -n "$CONFIG_HEADERS"; then
15769 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15773 # Transform confdefs.h into an awk script `defines.awk', embedded as
15774 # here-document in config.status, that substitutes the proper values into
15775 # config.h.in to produce config.h.
15777 # Create a delimiter string that does not exist in confdefs.h, to ease
15778 # handling of long lines.
15780 for ac_last_try in false false :; do
15781 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15782 if test -z "$ac_tt"; then
15784 elif $ac_last_try; then
15785 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15787 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15791 # For the awk script, D is an array of macro values keyed by name,
15792 # likewise P contains macro parameters if any. Preserve backslash
15793 # newline sequences.
15795 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15797 s/.\{148\}/&'"$ac_delim"'/g
15800 s/^[ ]*#[ ]*define[ ][ ]*/ /
15807 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15809 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15813 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15814 D["\1"]=" \3\\\\\\n"\\/p
15816 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15821 s/.\{148\}/&'"$ac_delim"'/g
15826 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15829 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15831 ' <confdefs.h | sed '
15832 s/'"$ac_delim"'/"\\\
15833 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15835 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15836 for (key in D) D_is_set[key] = 1
15839 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15841 split(line, arg, " ")
15842 if (arg[1] == "#") {
15846 defundef = substr(arg[1], 2)
15849 split(mac1, mac2, "(") #)
15851 prefix = substr(line, 1, index(line, defundef) - 1)
15852 if (D_is_set[macro]) {
15853 # Preserve the white space surrounding the "#".
15854 print prefix "define", macro P[macro] D[macro]
15857 # Replace #undef with comments. This is necessary, for example,
15858 # in the case of _POSIX_SOURCE, which is predefined and required
15859 # on some systems where configure will not decide to define it.
15860 if (defundef == "undef") {
15861 print "/*", prefix defundef, macro, "*/"
15869 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15870 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15871 fi # test -n "$CONFIG_HEADERS"
15874 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
15879 :[FHLC]) ac_mode=$ac_tag; continue;;
15881 case $ac_mode$ac_tag in
15883 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15884 :[FH]-) ac_tag=-:-;;
15885 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15902 -) ac_f="$ac_tmp/stdin";;
15903 *) # Look for the file first in the build tree, then in the source tree
15904 # (if the path is not absolute). The absolute path cannot be DOS-style,
15905 # because $ac_f cannot contain `:'.
15909 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15911 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15913 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15914 as_fn_append ac_file_inputs " '$ac_f'"
15917 # Let's still pretend it is `configure' which instantiates (i.e., don't
15918 # use $as_me), people would be surprised to read:
15919 # /* config.h. Generated by config.status. */
15920 configure_input='Generated from '`
15921 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15923 if test x"$ac_file" != x-; then
15924 configure_input="$ac_file. $configure_input"
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15926 $as_echo "$as_me: creating $ac_file" >&6;}
15928 # Neutralize special characters interpreted by sed in replacement strings.
15929 case $configure_input in #(
15930 *\&* | *\|* | *\\* )
15931 ac_sed_conf_input=`$as_echo "$configure_input" |
15932 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15933 *) ac_sed_conf_input=$configure_input;;
15937 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15938 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15943 ac_dir=`$as_dirname -- "$ac_file" ||
15944 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15945 X"$ac_file" : 'X\(//\)[^/]' \| \
15946 X"$ac_file" : 'X\(//\)$' \| \
15947 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15948 $as_echo X"$ac_file" |
15949 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15953 /^X\(\/\/\)[^/].*/{
15966 as_dir="$ac_dir"; as_fn_mkdir_p
15970 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15972 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15973 # A ".." for each directory in $ac_dir_suffix.
15974 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15975 case $ac_top_builddir_sub in
15976 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15977 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15980 ac_abs_top_builddir=$ac_pwd
15981 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15982 # for backward compatibility:
15983 ac_top_builddir=$ac_top_build_prefix
15986 .) # We are building in place.
15988 ac_top_srcdir=$ac_top_builddir_sub
15989 ac_abs_top_srcdir=$ac_pwd ;;
15990 [\\/]* | ?:[\\/]* ) # Absolute name.
15991 ac_srcdir=$srcdir$ac_dir_suffix;
15992 ac_top_srcdir=$srcdir
15993 ac_abs_top_srcdir=$srcdir ;;
15994 *) # Relative name.
15995 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15996 ac_top_srcdir=$ac_top_build_prefix$srcdir
15997 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15999 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16009 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16010 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16012 ac_MKDIR_P=$MKDIR_P
16014 [\\/$]* | ?:[\\/]* ) ;;
16015 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16019 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16020 # If the template does not know about datarootdir, expand it.
16021 # FIXME: This hack should be removed a few years after 2.60.
16022 ac_datarootdir_hack=; ac_datarootdir_seen=
16033 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16034 *datarootdir*) ac_datarootdir_seen=yes;;
16035 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16037 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16039 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16040 ac_datarootdir_hack='
16041 s&@datadir@&$datadir&g
16042 s&@docdir@&$docdir&g
16043 s&@infodir@&$infodir&g
16044 s&@localedir@&$localedir&g
16045 s&@mandir@&$mandir&g
16046 s&\\\${datarootdir}&$datarootdir&g' ;;
16050 # Neutralize VPATH when `$srcdir' = `.'.
16051 # Shell code in configure.ac might set extrasub.
16052 # FIXME: do we really want to maintain this feature?
16053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16054 ac_sed_extra="$ac_vpsub
16057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16059 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16060 s|@configure_input@|$ac_sed_conf_input|;t t
16061 s&@top_builddir@&$ac_top_builddir_sub&;t t
16062 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16063 s&@srcdir@&$ac_srcdir&;t t
16064 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16065 s&@top_srcdir@&$ac_top_srcdir&;t t
16066 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16067 s&@builddir@&$ac_builddir&;t t
16068 s&@abs_builddir@&$ac_abs_builddir&;t t
16069 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16070 s&@INSTALL@&$ac_INSTALL&;t t
16071 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16072 $ac_datarootdir_hack
16074 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16075 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16077 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16078 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16079 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16080 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16082 which seems to be undefined. Please make sure it is defined" >&5
16083 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16084 which seems to be undefined. Please make sure it is defined" >&2;}
16086 rm -f "$ac_tmp/stdin"
16088 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16089 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16091 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16097 if test x"$ac_file" != x-; then
16099 $as_echo "/* $configure_input */" \
16100 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16101 } >"$ac_tmp/config.h" \
16102 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16103 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16104 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16105 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16108 mv "$ac_tmp/config.h" "$ac_file" \
16109 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16112 $as_echo "/* $configure_input */" \
16113 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16114 || as_fn_error $? "could not create -" "$LINENO" 5
16122 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16125 # Prefer the file from the source tree if names are identical.
16126 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16127 ac_source=$srcdir/$ac_source
16130 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16131 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16133 if test ! -r "$ac_source"; then
16134 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
16138 # Try a relative symlink, then a hard link, then a copy.
16140 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16141 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16143 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16144 ln "$ac_source" "$ac_file" 2>/dev/null ||
16145 cp -p "$ac_source" "$ac_file" ||
16146 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16149 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16150 $as_echo "$as_me: executing $ac_file commands" >&6;}
16155 case $ac_file$ac_mode in
16156 "check_win32_symlinks":C)
16157 # Links sometimes fail undetected on Mingw -
16158 # so here we detect it and warn the user
16159 for FILE in $CONFIG_LINKS
16161 # test -e works for symlinks in the MinGW console
16162 test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** link for $FILE -- please fix by hand" >&5
16163 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
16166 "src/include/pg_config.h":H)
16167 # Update timestamp for pg_config.h (see Makefile.global)
16168 echo >src/include/stamp-h
16170 "src/include/pg_config_ext.h":H)
16171 # Update timestamp for pg_config_ext.h (see Makefile.global)
16172 echo >src/include/stamp-ext-h
16174 "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
16182 ac_clean_files=$ac_clean_files_save
16184 test $ac_write_fail = 0 ||
16185 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16188 # configure is writing to config.log, and then calls config.status.
16189 # config.status does its own redirection, appending to config.log.
16190 # Unfortunately, on DOS this fails, as config.log is still kept open
16191 # by configure, so config.status won't be able to write to it; its
16192 # output is simply discarded. So we exec the FD to /dev/null,
16193 # effectively closing config.log, so it can be properly (re)opened and
16194 # appended to by config.status. When coming back to configure, we
16195 # need to make the FD available again.
16196 if test "$no_create" != yes; then
16198 ac_config_status_args=
16199 test "$silent" = yes &&
16200 ac_config_status_args="$ac_config_status_args --quiet"
16202 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16204 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16205 # would make configure fail if this is the last instruction.
16206 $ac_cs_success || as_fn_exit 1
16208 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16210 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}