1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for PostgreSQL 13.5. 4# 5# Report bugs to <pgsql-bugs@lists.postgresql.org>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13# 14# Copyright (c) 1996-2020, PostgreSQL Global Development Group 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 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+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_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. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 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' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 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.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94as_myself= 95case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98for as_dir in $PATH 99do 100 IFS=$as_save_IFS 101 test -z "$as_dir" && as_dir=. 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 104IFS=$as_save_IFS 105 106 ;; 107esac 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. 110if test "x$as_myself" = x; then 111 as_myself=$0 112fi 113if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116fi 117 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. 122for as_var in BASH_ENV ENV MAIL MAILPATH 123do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# CDPATH. 137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 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. 147BASH_ENV=/dev/null 148ENV=/dev/null 149(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 150case $- in # (((( 151 *v*x* | *x*v* ) as_opts=-vx ;; 152 *v* ) as_opts=-v ;; 153 *x* ) as_opts=-x ;; 154 * ) as_opts= ;; 155esac 156exec $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 160as_fn_exit 255 161 fi 162 # We don't want this to propagate to other subprocesses. 163 { _as_can_reexec=; unset _as_can_reexec;} 164if test "x$CONFIG_SHELL" = x; then 165 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 166 emulate sh 167 NULLCMD=: 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+\"\$@\"}'='\"\$@\"' 171 setopt NO_GLOB_SUBST 172else 173 case \`(set -o) 2>/dev/null\` in #( 174 *posix*) : 175 set -o posix ;; #( 176 *) : 177 ;; 178esac 179fi 180" 181 as_required="as_fn_return () { (exit \$1); } 182as_fn_success () { as_fn_return 0; } 183as_fn_failure () { as_fn_return 1; } 184as_fn_ret_success () { return 0; } 185as_fn_ret_failure () { return 1; } 186 187exitcode=0 188as_fn_success || { exitcode=1; echo as_fn_success failed.; } 189as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 190as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 191as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 192if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 193 194else 195 exitcode=1; echo positional parameters were not saved. 196fi 197test x\$exitcode = x0 || exit 1 198test -x / || 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 203test \$(( 1 + 1 )) = 2 || exit 1" 204 if (eval "$as_required") 2>/dev/null; then : 205 as_have_required=yes 206else 207 as_have_required=no 208fi 209 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 210 211else 212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 213as_found=false 214for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 215do 216 IFS=$as_save_IFS 217 test -z "$as_dir" && as_dir=. 218 as_found=: 219 case $as_dir in #( 220 /*) 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 : 228 break 2 229fi 230fi 231 done;; 232 esac 233 as_found=false 234done 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 238fi; } 239IFS=$as_save_IFS 240 241 242 if test "x$CONFIG_SHELL" != x; then : 243 export CONFIG_SHELL 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. 248BASH_ENV=/dev/null 249ENV=/dev/null 250(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 251case $- in # (((( 252 *v*x* | *x*v* ) as_opts=-vx ;; 253 *v* ) as_opts=-v ;; 254 *x* ) as_opts=-x ;; 255 * ) as_opts= ;; 256esac 257exec $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 261exit 255 262fi 263 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." 270 else 271 $as_echo "$0: Please tell bug-autoconf@gnu.org and 272$0: pgsql-bugs@lists.postgresql.org about your system, 273$0: including any error possibly output before this 274$0: message. Then install a modern shell, or manually run 275$0: the script under such a shell if you do have one." 276 fi 277 exit 1 278fi 279fi 280fi 281SHELL=${CONFIG_SHELL-/bin/sh} 282export SHELL 283# Unset more variables known to interfere with behavior of common tools. 284CLICOLOR_FORCE= GREP_OPTIONS= 285unset CLICOLOR_FORCE GREP_OPTIONS 286 287## --------------------- ## 288## M4sh Shell Functions. ## 289## --------------------- ## 290# as_fn_unset VAR 291# --------------- 292# Portably unset VAR. 293as_fn_unset () 294{ 295 { eval $1=; unset $1;} 296} 297as_unset=as_fn_unset 298 299# as_fn_set_status STATUS 300# ----------------------- 301# Set $? to STATUS, without forking. 302as_fn_set_status () 303{ 304 return $1 305} # as_fn_set_status 306 307# as_fn_exit STATUS 308# ----------------- 309# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 310as_fn_exit () 311{ 312 set +e 313 as_fn_set_status $1 314 exit $1 315} # as_fn_exit 316 317# as_fn_mkdir_p 318# ------------- 319# Create "$as_dir" as a directory, including parents if necessary. 320as_fn_mkdir_p () 321{ 322 323 case $as_dir in #( 324 -*) as_dir=./$as_dir;; 325 esac 326 test -d "$as_dir" || eval $as_mkdir_p || { 327 as_dirs= 328 while :; do 329 case $as_dir in #( 330 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 331 *) as_qdir=$as_dir;; 332 esac 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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 341 s//\1/ 342 q 343 } 344 /^X\(\/\/\)[^/].*/{ 345 s//\1/ 346 q 347 } 348 /^X\(\/\/\)$/{ 349 s//\1/ 350 q 351 } 352 /^X\(\/\).*/{ 353 s//\1/ 354 q 355 } 356 s/.*/./; q'` 357 test -d "$as_dir" && break 358 done 359 test -z "$as_dirs" || eval "mkdir $as_dirs" 360 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 361 362 363} # as_fn_mkdir_p 364 365# as_fn_executable_p FILE 366# ----------------------- 367# Test if FILE is an executable regular file. 368as_fn_executable_p () 369{ 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 377# implementations. 378if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 379 eval 'as_fn_append () 380 { 381 eval $1+=\$2 382 }' 383else 384 as_fn_append () 385 { 386 eval $1=\$$1\$2 387 } 388fi # as_fn_append 389 390# as_fn_arith ARG... 391# ------------------ 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. 395if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 396 eval 'as_fn_arith () 397 { 398 as_val=$(( $* )) 399 }' 400else 401 as_fn_arith () 402 { 403 as_val=`expr "$@" || test $? -eq 1` 404 } 405fi # as_fn_arith 406 407 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. 413as_fn_error () 414{ 415 as_status=$1; test $as_status -eq 0 && as_status=1 416 if test "$4"; then 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 419 fi 420 $as_echo "$as_me: error: $2" >&2 421 as_fn_exit $as_status 422} # as_fn_error 423 424if expr a : '\(a\)' >/dev/null 2>&1 && 425 test "X`expr 00001 : '.*\(...\)'`" = X001; then 426 as_expr=expr 427else 428 as_expr=false 429fi 430 431if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 432 as_basename=basename 433else 434 as_basename=false 435fi 436 437if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 438 as_dirname=dirname 439else 440 as_dirname=false 441fi 442 443as_me=`$as_basename -- "$0" || 444$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 445 X"$0" : 'X\(//\)$' \| \ 446 X"$0" : 'X\(/\)' \| . 2>/dev/null || 447$as_echo X/"$0" | 448 sed '/^.*\/\([^/][^/]*\)\/*$/{ 449 s//\1/ 450 q 451 } 452 /^X\/\(\/\/\)$/{ 453 s//\1/ 454 q 455 } 456 /^X\/\(\/\).*/{ 457 s//\1/ 458 q 459 } 460 s/.*/./; q'` 461 462# Avoid depending upon Character Ranges. 463as_cr_letters='abcdefghijklmnopqrstuvwxyz' 464as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 465as_cr_Letters=$as_cr_letters$as_cr_LETTERS 466as_cr_digits='0123456789' 467as_cr_alnum=$as_cr_Letters$as_cr_digits 468 469 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. :-) 475 sed -n ' 476 p 477 /[$]LINENO/= 478 ' <$as_myself | 479 sed ' 480 s/[$]LINENO.*/&-/ 481 t lineno 482 b 483 :lineno 484 N 485 :loop 486 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 487 t loop 488 s/-\n.*// 489 ' >$as_me.lineno && 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; } 492 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). 500 . "./$as_me.lineno" 501 # Exit status is that of the last command. 502 exit 503} 504 505ECHO_C= ECHO_N= ECHO_T= 506case `echo -n x` in #((((( 507-n*) 508 case `echo 'xy\c'` in 509 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 510 xy) ECHO_C='\c';; 511 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 512 ECHO_T=' ';; 513 esac;; 514*) 515 ECHO_N='-n';; 516esac 517 518rm -f conf$$ conf$$.exe conf$$.file 519if test -d conf$$.dir; then 520 rm -f conf$$.dir/conf$$.file 521else 522 rm -f conf$$.dir 523 mkdir conf$$.dir 2>/dev/null 524fi 525if (echo >conf$$.file) 2>/dev/null; then 526 if ln -s conf$$.file conf$$ 2>/dev/null; then 527 as_ln_s='ln -s' 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 || 533 as_ln_s='cp -pR' 534 elif ln conf$$.file conf$$ 2>/dev/null; then 535 as_ln_s=ln 536 else 537 as_ln_s='cp -pR' 538 fi 539else 540 as_ln_s='cp -pR' 541fi 542rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 543rmdir conf$$.dir 2>/dev/null 544 545if mkdir -p . 2>/dev/null; then 546 as_mkdir_p='mkdir -p "$as_dir"' 547else 548 test -d ./-p && rmdir ./-p 549 as_mkdir_p=false 550fi 551 552as_test_x='test -x' 553as_executable_p=as_fn_executable_p 554 555# Sed expression to map a string onto a valid CPP name. 556as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 557 558# Sed expression to map a string onto a valid variable name. 559as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 560 561 562test -n "$DJDIR" || exec 7<&0 </dev/null 563exec 6>&1 564 565# Name of the host. 566# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 567# so uname gets run too. 568ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 569 570# 571# Initializations. 572# 573ac_default_prefix=/usr/local 574ac_clean_files= 575ac_config_libobj_dir=. 576LIBOBJS= 577cross_compiling=no 578subdirs= 579MFLAGS= 580MAKEFLAGS= 581 582# Identity of this package. 583PACKAGE_NAME='PostgreSQL' 584PACKAGE_TARNAME='postgresql' 585PACKAGE_VERSION='13.5' 586PACKAGE_STRING='PostgreSQL 13.5' 587PACKAGE_BUGREPORT='pgsql-bugs@lists.postgresql.org' 588PACKAGE_URL='https://www.postgresql.org/' 589 590ac_unique_file="src/backend/access/common/heaptuple.c" 591ac_default_prefix=/usr/local/pgsql 592# Factoring default headers for most tests. 593ac_includes_default="\ 594#include <stdio.h> 595#ifdef HAVE_SYS_TYPES_H 596# include <sys/types.h> 597#endif 598#ifdef HAVE_SYS_STAT_H 599# include <sys/stat.h> 600#endif 601#ifdef STDC_HEADERS 602# include <stdlib.h> 603# include <stddef.h> 604#else 605# ifdef HAVE_STDLIB_H 606# include <stdlib.h> 607# endif 608#endif 609#ifdef HAVE_STRING_H 610# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 611# include <memory.h> 612# endif 613# include <string.h> 614#endif 615#ifdef HAVE_STRINGS_H 616# include <strings.h> 617#endif 618#ifdef HAVE_INTTYPES_H 619# include <inttypes.h> 620#endif 621#ifdef HAVE_STDINT_H 622# include <stdint.h> 623#endif 624#ifdef HAVE_UNISTD_H 625# include <unistd.h> 626#endif" 627 628ac_subst_vars='LTLIBOBJS 629vpath_build 630PG_SYSROOT 631PG_VERSION_NUM 632PROVE 633DBTOEPUB 634FOP 635XSLTPROC 636XMLLINT 637TCL_SHLIB_LD_LIBS 638TCL_SHARED_BUILD 639TCL_LIB_SPEC 640TCL_LIBS 641TCL_INCLUDE_SPEC 642TCL_CONFIG_SH 643TCLSH 644XGETTEXT 645MSGMERGE 646MSGFMT_FLAGS 647MSGFMT 648PG_CRC32C_OBJS 649CFLAGS_ARMV8_CRC32C 650CFLAGS_SSE42 651have_win32_dbghelp 652LIBOBJS 653UUID_LIBS 654LDAP_LIBS_BE 655LDAP_LIBS_FE 656PTHREAD_CFLAGS 657PTHREAD_LIBS 658PTHREAD_CC 659ax_pthread_config 660EGREP 661GREP 662SED 663ZIC 664python_additional_libs 665python_libspec 666python_libdir 667python_includespec 668python_version 669python_majorversion 670PYTHON 671perl_embed_ldflags 672perl_embed_ccflags 673perl_includespec 674perl_useshrplib 675perl_privlibexp 676perl_archlibexp 677PERL 678FLEXFLAGS 679FLEX 680BISONFLAGS 681BISON 682MKDIR_P 683LN_S 684TAR 685install_bin 686INSTALL_DATA 687INSTALL_SCRIPT 688INSTALL_PROGRAM 689WINDRES 690DLLWRAP 691DLLTOOL 692AR 693STRIP_SHARED_LIB 694STRIP_STATIC_LIB 695STRIP 696RANLIB 697with_gnu_ld 698LD 699LDFLAGS_SL 700LDFLAGS_EX 701with_zlib 702with_system_tzdata 703with_libxslt 704XML2_LIBS 705XML2_CFLAGS 706XML2_CONFIG 707with_libxml 708UUID_EXTRA_OBJS 709with_uuid 710with_readline 711with_systemd 712with_selinux 713with_openssl 714with_ldap 715with_krb_srvnam 716krb_srvtab 717with_gssapi 718with_python 719with_perl 720with_tcl 721ICU_LIBS 722ICU_CFLAGS 723with_icu 724enable_thread_safety 725INCLUDES 726autodepend 727PKG_CONFIG_LIBDIR 728PKG_CONFIG_PATH 729PKG_CONFIG 730TAS 731GCC 732CPP 733CFLAGS_SL 734BITCODE_CXXFLAGS 735BITCODE_CFLAGS 736CFLAGS_VECTOR 737PERMIT_DECLARATION_AFTER_STATEMENT 738LLVM_BINPATH 739LLVM_CXXFLAGS 740LLVM_CFLAGS 741LLVM_CPPFLAGS 742LLVM_LIBS 743CLANG 744LLVM_CONFIG 745AWK 746with_llvm 747SUN_STUDIO_CC 748ac_ct_CXX 749CXXFLAGS 750CXX 751OBJEXT 752EXEEXT 753ac_ct_CC 754CPPFLAGS 755LDFLAGS 756CFLAGS 757CC 758enable_tap_tests 759enable_dtrace 760DTRACEFLAGS 761DTRACE 762enable_coverage 763GENHTML 764LCOV 765GCOV 766enable_debug 767enable_rpath 768default_port 769WANTED_LANGUAGES 770enable_nls 771PORTNAME 772host_os 773host_vendor 774host_cpu 775host 776build_os 777build_vendor 778build_cpu 779build 780PG_MAJORVERSION 781target_alias 782host_alias 783build_alias 784LIBS 785ECHO_T 786ECHO_N 787ECHO_C 788DEFS 789mandir 790localedir 791libdir 792psdir 793pdfdir 794dvidir 795htmldir 796infodir 797docdir 798oldincludedir 799includedir 800localstatedir 801sharedstatedir 802sysconfdir 803datadir 804datarootdir 805libexecdir 806sbindir 807bindir 808program_transform_name 809prefix 810exec_prefix 811PACKAGE_URL 812PACKAGE_BUGREPORT 813PACKAGE_STRING 814PACKAGE_VERSION 815PACKAGE_TARNAME 816PACKAGE_NAME 817PATH_SEPARATOR 818SHELL' 819ac_subst_files='' 820ac_user_opts=' 821enable_option_checking 822with_extra_version 823with_template 824with_includes 825with_libraries 826with_libs 827enable_integer_datetimes 828enable_nls 829with_pgport 830enable_rpath 831enable_spinlocks 832enable_atomics 833enable_debug 834enable_profiling 835enable_coverage 836enable_dtrace 837enable_tap_tests 838with_blocksize 839with_segsize 840with_wal_blocksize 841with_CC 842with_llvm 843enable_depend 844enable_cassert 845enable_thread_safety 846with_icu 847with_tcl 848with_tclconfig 849with_perl 850with_python 851with_gssapi 852with_krb_srvnam 853with_pam 854with_bsd_auth 855with_ldap 856with_bonjour 857with_openssl 858with_selinux 859with_systemd 860with_readline 861with_libedit_preferred 862with_uuid 863with_ossp_uuid 864with_libxml 865with_libxslt 866with_system_tzdata 867with_zlib 868with_gnu_ld 869enable_largefile 870' 871 ac_precious_vars='build_alias 872host_alias 873target_alias 874CC 875CFLAGS 876LDFLAGS 877LIBS 878CPPFLAGS 879CXX 880CXXFLAGS 881CCC 882LLVM_CONFIG 883CLANG 884CPP 885PKG_CONFIG 886PKG_CONFIG_PATH 887PKG_CONFIG_LIBDIR 888ICU_CFLAGS 889ICU_LIBS 890XML2_CONFIG 891XML2_CFLAGS 892XML2_LIBS 893LDFLAGS_EX 894LDFLAGS_SL 895PERL 896PYTHON 897MSGFMT 898TCLSH' 899 900 901# Initialize some variables set by options. 902ac_init_help= 903ac_init_version=false 904ac_unrecognized_opts= 905ac_unrecognized_sep= 906# The variables have the same names as the options, with 907# dashes changed to underlines. 908cache_file=/dev/null 909exec_prefix=NONE 910no_create= 911no_recursion= 912prefix=NONE 913program_prefix=NONE 914program_suffix=NONE 915program_transform_name=s,x,x, 916silent= 917site= 918srcdir= 919verbose= 920x_includes=NONE 921x_libraries=NONE 922 923# Installation directory options. 924# These are left unexpanded so users can "make install exec_prefix=/foo" 925# and all the variables that are supposed to be based on exec_prefix 926# by default will actually change. 927# Use braces instead of parens because sh, perl, etc. also accept them. 928# (The list follows the same order as the GNU Coding Standards.) 929bindir='${exec_prefix}/bin' 930sbindir='${exec_prefix}/sbin' 931libexecdir='${exec_prefix}/libexec' 932datarootdir='${prefix}/share' 933datadir='${datarootdir}' 934sysconfdir='${prefix}/etc' 935sharedstatedir='${prefix}/com' 936localstatedir='${prefix}/var' 937includedir='${prefix}/include' 938oldincludedir='/usr/include' 939docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 940infodir='${datarootdir}/info' 941htmldir='${docdir}' 942dvidir='${docdir}' 943pdfdir='${docdir}' 944psdir='${docdir}' 945libdir='${exec_prefix}/lib' 946localedir='${datarootdir}/locale' 947mandir='${datarootdir}/man' 948 949ac_prev= 950ac_dashdash= 951for ac_option 952do 953 # If the previous option needs an argument, assign it. 954 if test -n "$ac_prev"; then 955 eval $ac_prev=\$ac_option 956 ac_prev= 957 continue 958 fi 959 960 case $ac_option in 961 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 962 *=) ac_optarg= ;; 963 *) ac_optarg=yes ;; 964 esac 965 966 # Accept the important Cygnus configure options, so we can diagnose typos. 967 968 case $ac_dashdash$ac_option in 969 --) 970 ac_dashdash=yes ;; 971 972 -bindir | --bindir | --bindi | --bind | --bin | --bi) 973 ac_prev=bindir ;; 974 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 975 bindir=$ac_optarg ;; 976 977 -build | --build | --buil | --bui | --bu) 978 ac_prev=build_alias ;; 979 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 980 build_alias=$ac_optarg ;; 981 982 -cache-file | --cache-file | --cache-fil | --cache-fi \ 983 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 984 ac_prev=cache_file ;; 985 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 986 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 987 cache_file=$ac_optarg ;; 988 989 --config-cache | -C) 990 cache_file=config.cache ;; 991 992 -datadir | --datadir | --datadi | --datad) 993 ac_prev=datadir ;; 994 -datadir=* | --datadir=* | --datadi=* | --datad=*) 995 datadir=$ac_optarg ;; 996 997 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 998 | --dataroo | --dataro | --datar) 999 ac_prev=datarootdir ;; 1000 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1001 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1002 datarootdir=$ac_optarg ;; 1003 1004 -disable-* | --disable-*) 1005 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1006 # Reject names that are not valid shell variable names. 1007 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1008 as_fn_error $? "invalid feature name: $ac_useropt" 1009 ac_useropt_orig=$ac_useropt 1010 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1011 case $ac_user_opts in 1012 *" 1013"enable_$ac_useropt" 1014"*) ;; 1015 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1016 ac_unrecognized_sep=', ';; 1017 esac 1018 eval enable_$ac_useropt=no ;; 1019 1020 -docdir | --docdir | --docdi | --doc | --do) 1021 ac_prev=docdir ;; 1022 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1023 docdir=$ac_optarg ;; 1024 1025 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1026 ac_prev=dvidir ;; 1027 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1028 dvidir=$ac_optarg ;; 1029 1030 -enable-* | --enable-*) 1031 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1032 # Reject names that are not valid shell variable names. 1033 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1034 as_fn_error $? "invalid feature name: $ac_useropt" 1035 ac_useropt_orig=$ac_useropt 1036 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1037 case $ac_user_opts in 1038 *" 1039"enable_$ac_useropt" 1040"*) ;; 1041 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1042 ac_unrecognized_sep=', ';; 1043 esac 1044 eval enable_$ac_useropt=\$ac_optarg ;; 1045 1046 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1047 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1048 | --exec | --exe | --ex) 1049 ac_prev=exec_prefix ;; 1050 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1051 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1052 | --exec=* | --exe=* | --ex=*) 1053 exec_prefix=$ac_optarg ;; 1054 1055 -gas | --gas | --ga | --g) 1056 # Obsolete; use --with-gas. 1057 with_gas=yes ;; 1058 1059 -help | --help | --hel | --he | -h) 1060 ac_init_help=long ;; 1061 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1062 ac_init_help=recursive ;; 1063 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1064 ac_init_help=short ;; 1065 1066 -host | --host | --hos | --ho) 1067 ac_prev=host_alias ;; 1068 -host=* | --host=* | --hos=* | --ho=*) 1069 host_alias=$ac_optarg ;; 1070 1071 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1072 ac_prev=htmldir ;; 1073 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1074 | --ht=*) 1075 htmldir=$ac_optarg ;; 1076 1077 -includedir | --includedir | --includedi | --included | --include \ 1078 | --includ | --inclu | --incl | --inc) 1079 ac_prev=includedir ;; 1080 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1081 | --includ=* | --inclu=* | --incl=* | --inc=*) 1082 includedir=$ac_optarg ;; 1083 1084 -infodir | --infodir | --infodi | --infod | --info | --inf) 1085 ac_prev=infodir ;; 1086 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1087 infodir=$ac_optarg ;; 1088 1089 -libdir | --libdir | --libdi | --libd) 1090 ac_prev=libdir ;; 1091 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1092 libdir=$ac_optarg ;; 1093 1094 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1095 | --libexe | --libex | --libe) 1096 ac_prev=libexecdir ;; 1097 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1098 | --libexe=* | --libex=* | --libe=*) 1099 libexecdir=$ac_optarg ;; 1100 1101 -localedir | --localedir | --localedi | --localed | --locale) 1102 ac_prev=localedir ;; 1103 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1104 localedir=$ac_optarg ;; 1105 1106 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1107 | --localstate | --localstat | --localsta | --localst | --locals) 1108 ac_prev=localstatedir ;; 1109 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1110 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1111 localstatedir=$ac_optarg ;; 1112 1113 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1114 ac_prev=mandir ;; 1115 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1116 mandir=$ac_optarg ;; 1117 1118 -nfp | --nfp | --nf) 1119 # Obsolete; use --without-fp. 1120 with_fp=no ;; 1121 1122 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1123 | --no-cr | --no-c | -n) 1124 no_create=yes ;; 1125 1126 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1127 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1128 no_recursion=yes ;; 1129 1130 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1131 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1132 | --oldin | --oldi | --old | --ol | --o) 1133 ac_prev=oldincludedir ;; 1134 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1135 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1136 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1137 oldincludedir=$ac_optarg ;; 1138 1139 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1140 ac_prev=prefix ;; 1141 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1142 prefix=$ac_optarg ;; 1143 1144 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1145 | --program-pre | --program-pr | --program-p) 1146 ac_prev=program_prefix ;; 1147 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1148 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1149 program_prefix=$ac_optarg ;; 1150 1151 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1152 | --program-suf | --program-su | --program-s) 1153 ac_prev=program_suffix ;; 1154 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1155 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1156 program_suffix=$ac_optarg ;; 1157 1158 -program-transform-name | --program-transform-name \ 1159 | --program-transform-nam | --program-transform-na \ 1160 | --program-transform-n | --program-transform- \ 1161 | --program-transform | --program-transfor \ 1162 | --program-transfo | --program-transf \ 1163 | --program-trans | --program-tran \ 1164 | --progr-tra | --program-tr | --program-t) 1165 ac_prev=program_transform_name ;; 1166 -program-transform-name=* | --program-transform-name=* \ 1167 | --program-transform-nam=* | --program-transform-na=* \ 1168 | --program-transform-n=* | --program-transform-=* \ 1169 | --program-transform=* | --program-transfor=* \ 1170 | --program-transfo=* | --program-transf=* \ 1171 | --program-trans=* | --program-tran=* \ 1172 | --progr-tra=* | --program-tr=* | --program-t=*) 1173 program_transform_name=$ac_optarg ;; 1174 1175 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1176 ac_prev=pdfdir ;; 1177 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1178 pdfdir=$ac_optarg ;; 1179 1180 -psdir | --psdir | --psdi | --psd | --ps) 1181 ac_prev=psdir ;; 1182 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1183 psdir=$ac_optarg ;; 1184 1185 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1186 | -silent | --silent | --silen | --sile | --sil) 1187 silent=yes ;; 1188 1189 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1190 ac_prev=sbindir ;; 1191 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1192 | --sbi=* | --sb=*) 1193 sbindir=$ac_optarg ;; 1194 1195 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1196 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1197 | --sharedst | --shareds | --shared | --share | --shar \ 1198 | --sha | --sh) 1199 ac_prev=sharedstatedir ;; 1200 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1201 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1202 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1203 | --sha=* | --sh=*) 1204 sharedstatedir=$ac_optarg ;; 1205 1206 -site | --site | --sit) 1207 ac_prev=site ;; 1208 -site=* | --site=* | --sit=*) 1209 site=$ac_optarg ;; 1210 1211 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1212 ac_prev=srcdir ;; 1213 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1214 srcdir=$ac_optarg ;; 1215 1216 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1217 | --syscon | --sysco | --sysc | --sys | --sy) 1218 ac_prev=sysconfdir ;; 1219 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1220 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1221 sysconfdir=$ac_optarg ;; 1222 1223 -target | --target | --targe | --targ | --tar | --ta | --t) 1224 ac_prev=target_alias ;; 1225 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1226 target_alias=$ac_optarg ;; 1227 1228 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1229 verbose=yes ;; 1230 1231 -version | --version | --versio | --versi | --vers | -V) 1232 ac_init_version=: ;; 1233 1234 -with-* | --with-*) 1235 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1236 # Reject names that are not valid shell variable names. 1237 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1238 as_fn_error $? "invalid package name: $ac_useropt" 1239 ac_useropt_orig=$ac_useropt 1240 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1241 case $ac_user_opts in 1242 *" 1243"with_$ac_useropt" 1244"*) ;; 1245 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1246 ac_unrecognized_sep=', ';; 1247 esac 1248 eval with_$ac_useropt=\$ac_optarg ;; 1249 1250 -without-* | --without-*) 1251 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1252 # Reject names that are not valid shell variable names. 1253 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1254 as_fn_error $? "invalid package name: $ac_useropt" 1255 ac_useropt_orig=$ac_useropt 1256 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1257 case $ac_user_opts in 1258 *" 1259"with_$ac_useropt" 1260"*) ;; 1261 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1262 ac_unrecognized_sep=', ';; 1263 esac 1264 eval with_$ac_useropt=no ;; 1265 1266 --x) 1267 # Obsolete; use --with-x. 1268 with_x=yes ;; 1269 1270 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1271 | --x-incl | --x-inc | --x-in | --x-i) 1272 ac_prev=x_includes ;; 1273 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1274 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1275 x_includes=$ac_optarg ;; 1276 1277 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1278 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1279 ac_prev=x_libraries ;; 1280 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1281 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1282 x_libraries=$ac_optarg ;; 1283 1284 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1285Try \`$0 --help' for more information" 1286 ;; 1287 1288 *=*) 1289 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1290 # Reject names that are not valid shell variable names. 1291 case $ac_envvar in #( 1292 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1293 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1294 esac 1295 eval $ac_envvar=\$ac_optarg 1296 export $ac_envvar ;; 1297 1298 *) 1299 # FIXME: should be removed in autoconf 3.0. 1300 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1301 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1302 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1303 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1304 ;; 1305 1306 esac 1307done 1308 1309if test -n "$ac_prev"; then 1310 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1311 as_fn_error $? "missing argument to $ac_option" 1312fi 1313 1314if test -n "$ac_unrecognized_opts"; then 1315 case $enable_option_checking in 1316 no) ;; 1317 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1318 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1319 esac 1320fi 1321 1322# Check all directory arguments for consistency. 1323for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1324 datadir sysconfdir sharedstatedir localstatedir includedir \ 1325 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1326 libdir localedir mandir 1327do 1328 eval ac_val=\$$ac_var 1329 # Remove trailing slashes. 1330 case $ac_val in 1331 */ ) 1332 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1333 eval $ac_var=\$ac_val;; 1334 esac 1335 # Be sure to have absolute directory names. 1336 case $ac_val in 1337 [\\/$]* | ?:[\\/]* ) continue;; 1338 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1339 esac 1340 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1341done 1342 1343# There might be people who depend on the old broken behavior: `$host' 1344# used to hold the argument of --host etc. 1345# FIXME: To remove some day. 1346build=$build_alias 1347host=$host_alias 1348target=$target_alias 1349 1350# FIXME: To remove some day. 1351if test "x$host_alias" != x; then 1352 if test "x$build_alias" = x; then 1353 cross_compiling=maybe 1354 elif test "x$build_alias" != "x$host_alias"; then 1355 cross_compiling=yes 1356 fi 1357fi 1358 1359ac_tool_prefix= 1360test -n "$host_alias" && ac_tool_prefix=$host_alias- 1361 1362test "$silent" = yes && exec 6>/dev/null 1363 1364 1365ac_pwd=`pwd` && test -n "$ac_pwd" && 1366ac_ls_di=`ls -di .` && 1367ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1368 as_fn_error $? "working directory cannot be determined" 1369test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1370 as_fn_error $? "pwd does not report name of working directory" 1371 1372 1373# Find the source files, if location was not specified. 1374if test -z "$srcdir"; then 1375 ac_srcdir_defaulted=yes 1376 # Try the directory containing this script, then the parent directory. 1377 ac_confdir=`$as_dirname -- "$as_myself" || 1378$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1379 X"$as_myself" : 'X\(//\)[^/]' \| \ 1380 X"$as_myself" : 'X\(//\)$' \| \ 1381 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1382$as_echo X"$as_myself" | 1383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1384 s//\1/ 1385 q 1386 } 1387 /^X\(\/\/\)[^/].*/{ 1388 s//\1/ 1389 q 1390 } 1391 /^X\(\/\/\)$/{ 1392 s//\1/ 1393 q 1394 } 1395 /^X\(\/\).*/{ 1396 s//\1/ 1397 q 1398 } 1399 s/.*/./; q'` 1400 srcdir=$ac_confdir 1401 if test ! -r "$srcdir/$ac_unique_file"; then 1402 srcdir=.. 1403 fi 1404else 1405 ac_srcdir_defaulted=no 1406fi 1407if test ! -r "$srcdir/$ac_unique_file"; then 1408 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1409 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1410fi 1411ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1412ac_abs_confdir=`( 1413 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1414 pwd)` 1415# When building in place, set srcdir=. 1416if test "$ac_abs_confdir" = "$ac_pwd"; then 1417 srcdir=. 1418fi 1419# Remove unnecessary trailing slashes from srcdir. 1420# Double slashes in file names in object file debugging info 1421# mess up M-x gdb in Emacs. 1422case $srcdir in 1423*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1424esac 1425for ac_var in $ac_precious_vars; do 1426 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1427 eval ac_env_${ac_var}_value=\$${ac_var} 1428 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1429 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1430done 1431 1432# 1433# Report the --help message. 1434# 1435if test "$ac_init_help" = "long"; then 1436 # Omit some internal or obsolete options to make the list less imposing. 1437 # This message is too long to be a string in the A/UX 3.1 sh. 1438 cat <<_ACEOF 1439\`configure' configures PostgreSQL 13.5 to adapt to many kinds of systems. 1440 1441Usage: $0 [OPTION]... [VAR=VALUE]... 1442 1443To assign environment variables (e.g., CC, CFLAGS...), specify them as 1444VAR=VALUE. See below for descriptions of some of the useful variables. 1445 1446Defaults for the options are specified in brackets. 1447 1448Configuration: 1449 -h, --help display this help and exit 1450 --help=short display options specific to this package 1451 --help=recursive display the short help of all the included packages 1452 -V, --version display version information and exit 1453 -q, --quiet, --silent do not print \`checking ...' messages 1454 --cache-file=FILE cache test results in FILE [disabled] 1455 -C, --config-cache alias for \`--cache-file=config.cache' 1456 -n, --no-create do not create output files 1457 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1458 1459Installation directories: 1460 --prefix=PREFIX install architecture-independent files in PREFIX 1461 [$ac_default_prefix] 1462 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1463 [PREFIX] 1464 1465By default, \`make install' will install all the files in 1466\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1467an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1468for instance \`--prefix=\$HOME'. 1469 1470For better control, use the options below. 1471 1472Fine tuning of the installation directories: 1473 --bindir=DIR user executables [EPREFIX/bin] 1474 --sbindir=DIR system admin executables [EPREFIX/sbin] 1475 --libexecdir=DIR program executables [EPREFIX/libexec] 1476 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1477 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1478 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1479 --libdir=DIR object code libraries [EPREFIX/lib] 1480 --includedir=DIR C header files [PREFIX/include] 1481 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1482 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1483 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1484 --infodir=DIR info documentation [DATAROOTDIR/info] 1485 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1486 --mandir=DIR man documentation [DATAROOTDIR/man] 1487 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql] 1488 --htmldir=DIR html documentation [DOCDIR] 1489 --dvidir=DIR dvi documentation [DOCDIR] 1490 --pdfdir=DIR pdf documentation [DOCDIR] 1491 --psdir=DIR ps documentation [DOCDIR] 1492_ACEOF 1493 1494 cat <<\_ACEOF 1495 1496System types: 1497 --build=BUILD configure for building on BUILD [guessed] 1498 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1499_ACEOF 1500fi 1501 1502if test -n "$ac_init_help"; then 1503 case $ac_init_help in 1504 short | recursive ) echo "Configuration of PostgreSQL 13.5:";; 1505 esac 1506 cat <<\_ACEOF 1507 1508Optional Features: 1509 --disable-option-checking ignore unrecognized --enable/--with options 1510 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1511 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1512 --disable-integer-datetimes 1513 obsolete option, no longer supported 1514 --enable-nls[=LANGUAGES] 1515 enable Native Language Support 1516 --disable-rpath do not embed shared library search path in 1517 executables 1518 --disable-spinlocks do not use spinlocks 1519 --disable-atomics do not use atomic operations 1520 --enable-debug build with debugging symbols (-g) 1521 --enable-profiling build with profiling enabled 1522 --enable-coverage build with coverage testing instrumentation 1523 --enable-dtrace build with DTrace support 1524 --enable-tap-tests enable TAP tests (requires Perl and IPC::Run) 1525 --enable-depend turn on automatic dependency tracking 1526 --enable-cassert enable assertion checks (for debugging) 1527 --disable-thread-safety disable thread-safety in client libraries 1528 --disable-largefile omit support for large files 1529 1530Optional Packages: 1531 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1532 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1533 --with-extra-version=STRING 1534 append STRING to version 1535 --with-template=NAME override operating system template 1536 --with-includes=DIRS look for additional header files in DIRS 1537 --with-libraries=DIRS look for additional libraries in DIRS 1538 --with-libs=DIRS alternative spelling of --with-libraries 1539 --with-pgport=PORTNUM set default port number [5432] 1540 --with-blocksize=BLOCKSIZE 1541 set table block size in kB [8] 1542 --with-segsize=SEGSIZE set table segment size in GB [1] 1543 --with-wal-blocksize=BLOCKSIZE 1544 set WAL block size in kB [8] 1545 --with-CC=CMD set compiler (deprecated) 1546 --with-llvm build with LLVM based JIT support 1547 --with-icu build with ICU support 1548 --with-tcl build Tcl modules (PL/Tcl) 1549 --with-tclconfig=DIR tclConfig.sh is in DIR 1550 --with-perl build Perl modules (PL/Perl) 1551 --with-python build Python modules (PL/Python) 1552 --with-gssapi build with GSSAPI support 1553 --with-krb-srvnam=NAME default service principal name in Kerberos (GSSAPI) 1554 [postgres] 1555 --with-pam build with PAM support 1556 --with-bsd-auth build with BSD Authentication support 1557 --with-ldap build with LDAP support 1558 --with-bonjour build with Bonjour support 1559 --with-openssl build with OpenSSL support 1560 --with-selinux build with SELinux support 1561 --with-systemd build with systemd support 1562 --without-readline do not use GNU Readline nor BSD Libedit for editing 1563 --with-libedit-preferred 1564 prefer BSD Libedit over GNU Readline 1565 --with-uuid=LIB build contrib/uuid-ossp using LIB (bsd,e2fs,ossp) 1566 --with-ossp-uuid obsolete spelling of --with-uuid=ossp 1567 --with-libxml build with XML support 1568 --with-libxslt use XSLT support when building contrib/xml2 1569 --with-system-tzdata=DIR 1570 use system time zone data in DIR 1571 --without-zlib do not use Zlib 1572 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1573 1574Some influential environment variables: 1575 CC C compiler command 1576 CFLAGS C compiler flags 1577 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1578 nonstandard directory <lib dir> 1579 LIBS libraries to pass to the linker, e.g. -l<library> 1580 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1581 you have headers in a nonstandard directory <include dir> 1582 CXX C++ compiler command 1583 CXXFLAGS C++ compiler flags 1584 LLVM_CONFIG path to llvm-config command 1585 CLANG path to clang compiler to generate bitcode 1586 CPP C preprocessor 1587 PKG_CONFIG path to pkg-config utility 1588 PKG_CONFIG_PATH 1589 directories to add to pkg-config's search path 1590 PKG_CONFIG_LIBDIR 1591 path overriding pkg-config's built-in search path 1592 ICU_CFLAGS C compiler flags for ICU, overriding pkg-config 1593 ICU_LIBS linker flags for ICU, overriding pkg-config 1594 XML2_CONFIG path to xml2-config utility 1595 XML2_CFLAGS C compiler flags for XML2, overriding pkg-config 1596 XML2_LIBS linker flags for XML2, overriding pkg-config 1597 LDFLAGS_EX extra linker flags for linking executables only 1598 LDFLAGS_SL extra linker flags for linking shared libraries only 1599 PERL Perl program 1600 PYTHON Python program 1601 MSGFMT msgfmt program for NLS 1602 TCLSH Tcl interpreter program (tclsh) 1603 1604Use these variables to override the choices made by `configure' or to help 1605it to find libraries and programs with nonstandard names/locations. 1606 1607Report bugs to <pgsql-bugs@lists.postgresql.org>. 1608PostgreSQL home page: <https://www.postgresql.org/>. 1609_ACEOF 1610ac_status=$? 1611fi 1612 1613if test "$ac_init_help" = "recursive"; then 1614 # If there are subdirs, report their specific --help. 1615 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1616 test -d "$ac_dir" || 1617 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1618 continue 1619 ac_builddir=. 1620 1621case "$ac_dir" in 1622.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1623*) 1624 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1625 # A ".." for each directory in $ac_dir_suffix. 1626 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1627 case $ac_top_builddir_sub in 1628 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1629 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1630 esac ;; 1631esac 1632ac_abs_top_builddir=$ac_pwd 1633ac_abs_builddir=$ac_pwd$ac_dir_suffix 1634# for backward compatibility: 1635ac_top_builddir=$ac_top_build_prefix 1636 1637case $srcdir in 1638 .) # We are building in place. 1639 ac_srcdir=. 1640 ac_top_srcdir=$ac_top_builddir_sub 1641 ac_abs_top_srcdir=$ac_pwd ;; 1642 [\\/]* | ?:[\\/]* ) # Absolute name. 1643 ac_srcdir=$srcdir$ac_dir_suffix; 1644 ac_top_srcdir=$srcdir 1645 ac_abs_top_srcdir=$srcdir ;; 1646 *) # Relative name. 1647 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1648 ac_top_srcdir=$ac_top_build_prefix$srcdir 1649 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1650esac 1651ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1652 1653 cd "$ac_dir" || { ac_status=$?; continue; } 1654 # Check for guested configure. 1655 if test -f "$ac_srcdir/configure.gnu"; then 1656 echo && 1657 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1658 elif test -f "$ac_srcdir/configure"; then 1659 echo && 1660 $SHELL "$ac_srcdir/configure" --help=recursive 1661 else 1662 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1663 fi || ac_status=$? 1664 cd "$ac_pwd" || { ac_status=$?; break; } 1665 done 1666fi 1667 1668test -n "$ac_init_help" && exit $ac_status 1669if $ac_init_version; then 1670 cat <<\_ACEOF 1671PostgreSQL configure 13.5 1672generated by GNU Autoconf 2.69 1673 1674Copyright (C) 2012 Free Software Foundation, Inc. 1675This configure script is free software; the Free Software Foundation 1676gives unlimited permission to copy, distribute and modify it. 1677 1678Copyright (c) 1996-2020, PostgreSQL Global Development Group 1679_ACEOF 1680 exit 1681fi 1682 1683## ------------------------ ## 1684## Autoconf initialization. ## 1685## ------------------------ ## 1686 1687# ac_fn_c_try_compile LINENO 1688# -------------------------- 1689# Try to compile conftest.$ac_ext, and return whether this succeeded. 1690ac_fn_c_try_compile () 1691{ 1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1693 rm -f conftest.$ac_objext 1694 if { { ac_try="$ac_compile" 1695case "(($ac_try" in 1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1697 *) ac_try_echo=$ac_try;; 1698esac 1699eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1700$as_echo "$ac_try_echo"; } >&5 1701 (eval "$ac_compile") 2>conftest.err 1702 ac_status=$? 1703 if test -s conftest.err; then 1704 grep -v '^ *+' conftest.err >conftest.er1 1705 cat conftest.er1 >&5 1706 mv -f conftest.er1 conftest.err 1707 fi 1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1709 test $ac_status = 0; } && { 1710 test -z "$ac_c_werror_flag" || 1711 test ! -s conftest.err 1712 } && test -s conftest.$ac_objext; then : 1713 ac_retval=0 1714else 1715 $as_echo "$as_me: failed program was:" >&5 1716sed 's/^/| /' conftest.$ac_ext >&5 1717 1718 ac_retval=1 1719fi 1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1721 as_fn_set_status $ac_retval 1722 1723} # ac_fn_c_try_compile 1724 1725# ac_fn_cxx_try_compile LINENO 1726# ---------------------------- 1727# Try to compile conftest.$ac_ext, and return whether this succeeded. 1728ac_fn_cxx_try_compile () 1729{ 1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1731 rm -f conftest.$ac_objext 1732 if { { ac_try="$ac_compile" 1733case "(($ac_try" in 1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1735 *) ac_try_echo=$ac_try;; 1736esac 1737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1738$as_echo "$ac_try_echo"; } >&5 1739 (eval "$ac_compile") 2>conftest.err 1740 ac_status=$? 1741 if test -s conftest.err; then 1742 grep -v '^ *+' conftest.err >conftest.er1 1743 cat conftest.er1 >&5 1744 mv -f conftest.er1 conftest.err 1745 fi 1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1747 test $ac_status = 0; } && { 1748 test -z "$ac_cxx_werror_flag" || 1749 test ! -s conftest.err 1750 } && test -s conftest.$ac_objext; then : 1751 ac_retval=0 1752else 1753 $as_echo "$as_me: failed program was:" >&5 1754sed 's/^/| /' conftest.$ac_ext >&5 1755 1756 ac_retval=1 1757fi 1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1759 as_fn_set_status $ac_retval 1760 1761} # ac_fn_cxx_try_compile 1762 1763# ac_fn_c_try_link LINENO 1764# ----------------------- 1765# Try to link conftest.$ac_ext, and return whether this succeeded. 1766ac_fn_c_try_link () 1767{ 1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1769 rm -f conftest.$ac_objext conftest$ac_exeext 1770 if { { ac_try="$ac_link" 1771case "(($ac_try" in 1772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1773 *) ac_try_echo=$ac_try;; 1774esac 1775eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1776$as_echo "$ac_try_echo"; } >&5 1777 (eval "$ac_link") 2>conftest.err 1778 ac_status=$? 1779 if test -s conftest.err; then 1780 grep -v '^ *+' conftest.err >conftest.er1 1781 cat conftest.er1 >&5 1782 mv -f conftest.er1 conftest.err 1783 fi 1784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1785 test $ac_status = 0; } && { 1786 test -z "$ac_c_werror_flag" || 1787 test ! -s conftest.err 1788 } && test -s conftest$ac_exeext && { 1789 test "$cross_compiling" = yes || 1790 test -x conftest$ac_exeext 1791 }; then : 1792 ac_retval=0 1793else 1794 $as_echo "$as_me: failed program was:" >&5 1795sed 's/^/| /' conftest.$ac_ext >&5 1796 1797 ac_retval=1 1798fi 1799 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1800 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1801 # interfere with the next link command; also delete a directory that is 1802 # left behind by Apple's compiler. We do this before executing the actions. 1803 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1805 as_fn_set_status $ac_retval 1806 1807} # ac_fn_c_try_link 1808 1809# ac_fn_c_try_cpp LINENO 1810# ---------------------- 1811# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1812ac_fn_c_try_cpp () 1813{ 1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1815 if { { ac_try="$ac_cpp conftest.$ac_ext" 1816case "(($ac_try" in 1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1818 *) ac_try_echo=$ac_try;; 1819esac 1820eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1821$as_echo "$ac_try_echo"; } >&5 1822 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1823 ac_status=$? 1824 if test -s conftest.err; then 1825 grep -v '^ *+' conftest.err >conftest.er1 1826 cat conftest.er1 >&5 1827 mv -f conftest.er1 conftest.err 1828 fi 1829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1830 test $ac_status = 0; } > conftest.i && { 1831 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1832 test ! -s conftest.err 1833 }; then : 1834 ac_retval=0 1835else 1836 $as_echo "$as_me: failed program was:" >&5 1837sed 's/^/| /' conftest.$ac_ext >&5 1838 1839 ac_retval=1 1840fi 1841 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1842 as_fn_set_status $ac_retval 1843 1844} # ac_fn_c_try_cpp 1845 1846# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1847# ------------------------------------------------------- 1848# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1849# the include files in INCLUDES and setting the cache variable VAR 1850# accordingly. 1851ac_fn_c_check_header_mongrel () 1852{ 1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1854 if eval \${$3+:} false; then : 1855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1856$as_echo_n "checking for $2... " >&6; } 1857if eval \${$3+:} false; then : 1858 $as_echo_n "(cached) " >&6 1859fi 1860eval ac_res=\$$3 1861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1862$as_echo "$ac_res" >&6; } 1863else 1864 # Is the header compilable? 1865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1866$as_echo_n "checking $2 usability... " >&6; } 1867cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1868/* end confdefs.h. */ 1869$4 1870#include <$2> 1871_ACEOF 1872if ac_fn_c_try_compile "$LINENO"; then : 1873 ac_header_compiler=yes 1874else 1875 ac_header_compiler=no 1876fi 1877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1879$as_echo "$ac_header_compiler" >&6; } 1880 1881# Is the header present? 1882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1883$as_echo_n "checking $2 presence... " >&6; } 1884cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1885/* end confdefs.h. */ 1886#include <$2> 1887_ACEOF 1888if ac_fn_c_try_cpp "$LINENO"; then : 1889 ac_header_preproc=yes 1890else 1891 ac_header_preproc=no 1892fi 1893rm -f conftest.err conftest.i conftest.$ac_ext 1894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1895$as_echo "$ac_header_preproc" >&6; } 1896 1897# So? What about this header? 1898case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1899 yes:no: ) 1900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1901$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1903$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1904 ;; 1905 no:yes:* ) 1906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1907$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1909$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1911$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1913$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1915$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1916( $as_echo "## ---------------------------------------------- ## 1917## Report this to pgsql-bugs@lists.postgresql.org ## 1918## ---------------------------------------------- ##" 1919 ) | sed "s/^/$as_me: WARNING: /" >&2 1920 ;; 1921esac 1922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1923$as_echo_n "checking for $2... " >&6; } 1924if eval \${$3+:} false; then : 1925 $as_echo_n "(cached) " >&6 1926else 1927 eval "$3=\$ac_header_compiler" 1928fi 1929eval ac_res=\$$3 1930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1931$as_echo "$ac_res" >&6; } 1932fi 1933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1934 1935} # ac_fn_c_check_header_mongrel 1936 1937# ac_fn_c_try_run LINENO 1938# ---------------------- 1939# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1940# that executables *can* be run. 1941ac_fn_c_try_run () 1942{ 1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1944 if { { ac_try="$ac_link" 1945case "(($ac_try" in 1946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1947 *) ac_try_echo=$ac_try;; 1948esac 1949eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1950$as_echo "$ac_try_echo"; } >&5 1951 (eval "$ac_link") 2>&5 1952 ac_status=$? 1953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1954 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1955 { { case "(($ac_try" in 1956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1957 *) ac_try_echo=$ac_try;; 1958esac 1959eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1960$as_echo "$ac_try_echo"; } >&5 1961 (eval "$ac_try") 2>&5 1962 ac_status=$? 1963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1964 test $ac_status = 0; }; }; then : 1965 ac_retval=0 1966else 1967 $as_echo "$as_me: program exited with status $ac_status" >&5 1968 $as_echo "$as_me: failed program was:" >&5 1969sed 's/^/| /' conftest.$ac_ext >&5 1970 1971 ac_retval=$ac_status 1972fi 1973 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1974 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1975 as_fn_set_status $ac_retval 1976 1977} # ac_fn_c_try_run 1978 1979# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1980# ------------------------------------------------------- 1981# Tests whether HEADER exists and can be compiled using the include files in 1982# INCLUDES, setting the cache variable VAR accordingly. 1983ac_fn_c_check_header_compile () 1984{ 1985 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1987$as_echo_n "checking for $2... " >&6; } 1988if eval \${$3+:} false; then : 1989 $as_echo_n "(cached) " >&6 1990else 1991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1992/* end confdefs.h. */ 1993$4 1994#include <$2> 1995_ACEOF 1996if ac_fn_c_try_compile "$LINENO"; then : 1997 eval "$3=yes" 1998else 1999 eval "$3=no" 2000fi 2001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2002fi 2003eval ac_res=\$$3 2004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2005$as_echo "$ac_res" >&6; } 2006 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2007 2008} # ac_fn_c_check_header_compile 2009 2010# ac_fn_c_check_func LINENO FUNC VAR 2011# ---------------------------------- 2012# Tests whether FUNC exists, setting the cache variable VAR accordingly 2013ac_fn_c_check_func () 2014{ 2015 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2017$as_echo_n "checking for $2... " >&6; } 2018if eval \${$3+:} false; then : 2019 $as_echo_n "(cached) " >&6 2020else 2021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2022/* end confdefs.h. */ 2023/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2024 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2025#define $2 innocuous_$2 2026 2027/* System header to define __stub macros and hopefully few prototypes, 2028 which can conflict with char $2 (); below. 2029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2030 <limits.h> exists even on freestanding compilers. */ 2031 2032#ifdef __STDC__ 2033# include <limits.h> 2034#else 2035# include <assert.h> 2036#endif 2037 2038#undef $2 2039 2040/* Override any GCC internal prototype to avoid an error. 2041 Use char because int might match the return type of a GCC 2042 builtin and then its argument prototype would still apply. */ 2043#ifdef __cplusplus 2044extern "C" 2045#endif 2046char $2 (); 2047/* The GNU C library defines this for functions which it implements 2048 to always fail with ENOSYS. Some functions are actually named 2049 something starting with __ and the normal name is an alias. */ 2050#if defined __stub_$2 || defined __stub___$2 2051choke me 2052#endif 2053 2054int 2055main () 2056{ 2057return $2 (); 2058 ; 2059 return 0; 2060} 2061_ACEOF 2062if ac_fn_c_try_link "$LINENO"; then : 2063 eval "$3=yes" 2064else 2065 eval "$3=no" 2066fi 2067rm -f core conftest.err conftest.$ac_objext \ 2068 conftest$ac_exeext conftest.$ac_ext 2069fi 2070eval ac_res=\$$3 2071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2072$as_echo "$ac_res" >&6; } 2073 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2074 2075} # ac_fn_c_check_func 2076 2077# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2078# ------------------------------------------- 2079# Tests whether TYPE exists after having included INCLUDES, setting cache 2080# variable VAR accordingly. 2081ac_fn_c_check_type () 2082{ 2083 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2085$as_echo_n "checking for $2... " >&6; } 2086if eval \${$3+:} false; then : 2087 $as_echo_n "(cached) " >&6 2088else 2089 eval "$3=no" 2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2091/* end confdefs.h. */ 2092$4 2093int 2094main () 2095{ 2096if (sizeof ($2)) 2097 return 0; 2098 ; 2099 return 0; 2100} 2101_ACEOF 2102if ac_fn_c_try_compile "$LINENO"; then : 2103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2104/* end confdefs.h. */ 2105$4 2106int 2107main () 2108{ 2109if (sizeof (($2))) 2110 return 0; 2111 ; 2112 return 0; 2113} 2114_ACEOF 2115if ac_fn_c_try_compile "$LINENO"; then : 2116 2117else 2118 eval "$3=yes" 2119fi 2120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2121fi 2122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2123fi 2124eval ac_res=\$$3 2125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2126$as_echo "$ac_res" >&6; } 2127 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2128 2129} # ac_fn_c_check_type 2130 2131# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2132# ---------------------------------------------------- 2133# Tries to find if the field MEMBER exists in type AGGR, after including 2134# INCLUDES, setting cache variable VAR accordingly. 2135ac_fn_c_check_member () 2136{ 2137 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2139$as_echo_n "checking for $2.$3... " >&6; } 2140if eval \${$4+:} false; then : 2141 $as_echo_n "(cached) " >&6 2142else 2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2144/* end confdefs.h. */ 2145$5 2146int 2147main () 2148{ 2149static $2 ac_aggr; 2150if (ac_aggr.$3) 2151return 0; 2152 ; 2153 return 0; 2154} 2155_ACEOF 2156if ac_fn_c_try_compile "$LINENO"; then : 2157 eval "$4=yes" 2158else 2159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2160/* end confdefs.h. */ 2161$5 2162int 2163main () 2164{ 2165static $2 ac_aggr; 2166if (sizeof ac_aggr.$3) 2167return 0; 2168 ; 2169 return 0; 2170} 2171_ACEOF 2172if ac_fn_c_try_compile "$LINENO"; then : 2173 eval "$4=yes" 2174else 2175 eval "$4=no" 2176fi 2177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2178fi 2179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2180fi 2181eval ac_res=\$$4 2182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2183$as_echo "$ac_res" >&6; } 2184 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2185 2186} # ac_fn_c_check_member 2187 2188# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2189# -------------------------------------------- 2190# Tries to find the compile-time value of EXPR in a program that includes 2191# INCLUDES, setting VAR accordingly. Returns whether the value could be 2192# computed 2193ac_fn_c_compute_int () 2194{ 2195 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2196 if test "$cross_compiling" = yes; then 2197 # Depending upon the size, compute the lo and hi bounds. 2198cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2199/* end confdefs.h. */ 2200$4 2201int 2202main () 2203{ 2204static int test_array [1 - 2 * !(($2) >= 0)]; 2205test_array [0] = 0; 2206return test_array [0]; 2207 2208 ; 2209 return 0; 2210} 2211_ACEOF 2212if ac_fn_c_try_compile "$LINENO"; then : 2213 ac_lo=0 ac_mid=0 2214 while :; do 2215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2216/* end confdefs.h. */ 2217$4 2218int 2219main () 2220{ 2221static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2222test_array [0] = 0; 2223return test_array [0]; 2224 2225 ; 2226 return 0; 2227} 2228_ACEOF 2229if ac_fn_c_try_compile "$LINENO"; then : 2230 ac_hi=$ac_mid; break 2231else 2232 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2233 if test $ac_lo -le $ac_mid; then 2234 ac_lo= ac_hi= 2235 break 2236 fi 2237 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2238fi 2239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2240 done 2241else 2242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2243/* end confdefs.h. */ 2244$4 2245int 2246main () 2247{ 2248static int test_array [1 - 2 * !(($2) < 0)]; 2249test_array [0] = 0; 2250return test_array [0]; 2251 2252 ; 2253 return 0; 2254} 2255_ACEOF 2256if ac_fn_c_try_compile "$LINENO"; then : 2257 ac_hi=-1 ac_mid=-1 2258 while :; do 2259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2260/* end confdefs.h. */ 2261$4 2262int 2263main () 2264{ 2265static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2266test_array [0] = 0; 2267return test_array [0]; 2268 2269 ; 2270 return 0; 2271} 2272_ACEOF 2273if ac_fn_c_try_compile "$LINENO"; then : 2274 ac_lo=$ac_mid; break 2275else 2276 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2277 if test $ac_mid -le $ac_hi; then 2278 ac_lo= ac_hi= 2279 break 2280 fi 2281 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2282fi 2283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2284 done 2285else 2286 ac_lo= ac_hi= 2287fi 2288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2289fi 2290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2291# Binary search between lo and hi bounds. 2292while test "x$ac_lo" != "x$ac_hi"; do 2293 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2295/* end confdefs.h. */ 2296$4 2297int 2298main () 2299{ 2300static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2301test_array [0] = 0; 2302return test_array [0]; 2303 2304 ; 2305 return 0; 2306} 2307_ACEOF 2308if ac_fn_c_try_compile "$LINENO"; then : 2309 ac_hi=$ac_mid 2310else 2311 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2312fi 2313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2314done 2315case $ac_lo in #(( 2316?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2317'') ac_retval=1 ;; 2318esac 2319 else 2320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2321/* end confdefs.h. */ 2322$4 2323static long int longval () { return $2; } 2324static unsigned long int ulongval () { return $2; } 2325#include <stdio.h> 2326#include <stdlib.h> 2327int 2328main () 2329{ 2330 2331 FILE *f = fopen ("conftest.val", "w"); 2332 if (! f) 2333 return 1; 2334 if (($2) < 0) 2335 { 2336 long int i = longval (); 2337 if (i != ($2)) 2338 return 1; 2339 fprintf (f, "%ld", i); 2340 } 2341 else 2342 { 2343 unsigned long int i = ulongval (); 2344 if (i != ($2)) 2345 return 1; 2346 fprintf (f, "%lu", i); 2347 } 2348 /* Do not output a trailing newline, as this causes \r\n confusion 2349 on some platforms. */ 2350 return ferror (f) || fclose (f) != 0; 2351 2352 ; 2353 return 0; 2354} 2355_ACEOF 2356if ac_fn_c_try_run "$LINENO"; then : 2357 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2358else 2359 ac_retval=1 2360fi 2361rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2362 conftest.$ac_objext conftest.beam conftest.$ac_ext 2363rm -f conftest.val 2364 2365 fi 2366 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2367 as_fn_set_status $ac_retval 2368 2369} # ac_fn_c_compute_int 2370 2371# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2372# --------------------------------------------- 2373# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2374# accordingly. 2375ac_fn_c_check_decl () 2376{ 2377 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2378 # Initialize each $ac_[]_AC_LANG_ABBREV[]_decl_warn_flag once. 2379 as_decl_name=`echo $2|sed 's/ *(.*//'` 2380 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2382$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2383if eval \${$3+:} false; then : 2384 $as_echo_n "(cached) " >&6 2385else 2386 ac_save_werror_flag=$ac_c_werror_flag 2387 ac_c_werror_flag="$ac_c_decl_warn_flag$ac_c_werror_flag" 2388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2389/* end confdefs.h. */ 2390$4 2391int 2392main () 2393{ 2394#ifndef $as_decl_name 2395#ifdef __cplusplus 2396 (void) $as_decl_use; 2397#else 2398 (void) $as_decl_name; 2399#endif 2400#endif 2401 2402 ; 2403 return 0; 2404} 2405_ACEOF 2406if ac_fn_c_try_compile "$LINENO"; then : 2407 eval "$3=yes" 2408else 2409 eval "$3=no" 2410fi 2411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2412 ac_c_werror_flag=$ac_save_werror_flag 2413fi 2414eval ac_res=\$$3 2415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2416$as_echo "$ac_res" >&6; } 2417 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2418 2419} # ac_fn_c_check_decl 2420cat >config.log <<_ACEOF 2421This file contains any messages produced by compilers while 2422running configure, to aid debugging if configure makes a mistake. 2423 2424It was created by PostgreSQL $as_me 13.5, which was 2425generated by GNU Autoconf 2.69. Invocation command line was 2426 2427 $ $0 $@ 2428 2429_ACEOF 2430exec 5>>config.log 2431{ 2432cat <<_ASUNAME 2433## --------- ## 2434## Platform. ## 2435## --------- ## 2436 2437hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2438uname -m = `(uname -m) 2>/dev/null || echo unknown` 2439uname -r = `(uname -r) 2>/dev/null || echo unknown` 2440uname -s = `(uname -s) 2>/dev/null || echo unknown` 2441uname -v = `(uname -v) 2>/dev/null || echo unknown` 2442 2443/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2444/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2445 2446/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2447/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2448/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2449/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2450/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2451/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2452/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2453 2454_ASUNAME 2455 2456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2457for as_dir in $PATH 2458do 2459 IFS=$as_save_IFS 2460 test -z "$as_dir" && as_dir=. 2461 $as_echo "PATH: $as_dir" 2462 done 2463IFS=$as_save_IFS 2464 2465} >&5 2466 2467cat >&5 <<_ACEOF 2468 2469 2470## ----------- ## 2471## Core tests. ## 2472## ----------- ## 2473 2474_ACEOF 2475 2476 2477# Keep a trace of the command line. 2478# Strip out --no-create and --no-recursion so they do not pile up. 2479# Strip out --silent because we don't want to record it for future runs. 2480# Also quote any args containing shell meta-characters. 2481# Make two passes to allow for proper duplicate-argument suppression. 2482ac_configure_args= 2483ac_configure_args0= 2484ac_configure_args1= 2485ac_must_keep_next=false 2486for ac_pass in 1 2 2487do 2488 for ac_arg 2489 do 2490 case $ac_arg in 2491 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2492 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2493 | -silent | --silent | --silen | --sile | --sil) 2494 continue ;; 2495 *\'*) 2496 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2497 esac 2498 case $ac_pass in 2499 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2500 2) 2501 as_fn_append ac_configure_args1 " '$ac_arg'" 2502 if test $ac_must_keep_next = true; then 2503 ac_must_keep_next=false # Got value, back to normal. 2504 else 2505 case $ac_arg in 2506 *=* | --config-cache | -C | -disable-* | --disable-* \ 2507 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2508 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2509 | -with-* | --with-* | -without-* | --without-* | --x) 2510 case "$ac_configure_args0 " in 2511 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2512 esac 2513 ;; 2514 -* ) ac_must_keep_next=true ;; 2515 esac 2516 fi 2517 as_fn_append ac_configure_args " '$ac_arg'" 2518 ;; 2519 esac 2520 done 2521done 2522{ ac_configure_args0=; unset ac_configure_args0;} 2523{ ac_configure_args1=; unset ac_configure_args1;} 2524 2525# When interrupted or exit'd, cleanup temporary files, and complete 2526# config.log. We remove comments because anyway the quotes in there 2527# would cause problems or look ugly. 2528# WARNING: Use '\'' to represent an apostrophe within the trap. 2529# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2530trap 'exit_status=$? 2531 # Save into config.log some information that might help in debugging. 2532 { 2533 echo 2534 2535 $as_echo "## ---------------- ## 2536## Cache variables. ## 2537## ---------------- ##" 2538 echo 2539 # The following way of writing the cache mishandles newlines in values, 2540( 2541 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2542 eval ac_val=\$$ac_var 2543 case $ac_val in #( 2544 *${as_nl}*) 2545 case $ac_var in #( 2546 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2547$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2548 esac 2549 case $ac_var in #( 2550 _ | IFS | as_nl) ;; #( 2551 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2552 *) { eval $ac_var=; unset $ac_var;} ;; 2553 esac ;; 2554 esac 2555 done 2556 (set) 2>&1 | 2557 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2558 *${as_nl}ac_space=\ *) 2559 sed -n \ 2560 "s/'\''/'\''\\\\'\'''\''/g; 2561 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2562 ;; #( 2563 *) 2564 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2565 ;; 2566 esac | 2567 sort 2568) 2569 echo 2570 2571 $as_echo "## ----------------- ## 2572## Output variables. ## 2573## ----------------- ##" 2574 echo 2575 for ac_var in $ac_subst_vars 2576 do 2577 eval ac_val=\$$ac_var 2578 case $ac_val in 2579 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2580 esac 2581 $as_echo "$ac_var='\''$ac_val'\''" 2582 done | sort 2583 echo 2584 2585 if test -n "$ac_subst_files"; then 2586 $as_echo "## ------------------- ## 2587## File substitutions. ## 2588## ------------------- ##" 2589 echo 2590 for ac_var in $ac_subst_files 2591 do 2592 eval ac_val=\$$ac_var 2593 case $ac_val in 2594 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2595 esac 2596 $as_echo "$ac_var='\''$ac_val'\''" 2597 done | sort 2598 echo 2599 fi 2600 2601 if test -s confdefs.h; then 2602 $as_echo "## ----------- ## 2603## confdefs.h. ## 2604## ----------- ##" 2605 echo 2606 cat confdefs.h 2607 echo 2608 fi 2609 test "$ac_signal" != 0 && 2610 $as_echo "$as_me: caught signal $ac_signal" 2611 $as_echo "$as_me: exit $exit_status" 2612 } >&5 2613 rm -f core *.core core.conftest.* && 2614 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2615 exit $exit_status 2616' 0 2617for ac_signal in 1 2 13 15; do 2618 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2619done 2620ac_signal=0 2621 2622# confdefs.h avoids OS command line length limits that DEFS can exceed. 2623rm -f -r conftest* confdefs.h 2624 2625$as_echo "/* confdefs.h */" > confdefs.h 2626 2627# Predefined preprocessor variables. 2628 2629cat >>confdefs.h <<_ACEOF 2630#define PACKAGE_NAME "$PACKAGE_NAME" 2631_ACEOF 2632 2633cat >>confdefs.h <<_ACEOF 2634#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2635_ACEOF 2636 2637cat >>confdefs.h <<_ACEOF 2638#define PACKAGE_VERSION "$PACKAGE_VERSION" 2639_ACEOF 2640 2641cat >>confdefs.h <<_ACEOF 2642#define PACKAGE_STRING "$PACKAGE_STRING" 2643_ACEOF 2644 2645cat >>confdefs.h <<_ACEOF 2646#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2647_ACEOF 2648 2649cat >>confdefs.h <<_ACEOF 2650#define PACKAGE_URL "$PACKAGE_URL" 2651_ACEOF 2652 2653 2654# Let the site file select an alternate cache file if it wants to. 2655# Prefer an explicitly selected file to automatically selected ones. 2656ac_site_file1=NONE 2657ac_site_file2=NONE 2658if test -n "$CONFIG_SITE"; then 2659 # We do not want a PATH search for config.site. 2660 case $CONFIG_SITE in #(( 2661 -*) ac_site_file1=./$CONFIG_SITE;; 2662 */*) ac_site_file1=$CONFIG_SITE;; 2663 *) ac_site_file1=./$CONFIG_SITE;; 2664 esac 2665elif test "x$prefix" != xNONE; then 2666 ac_site_file1=$prefix/share/config.site 2667 ac_site_file2=$prefix/etc/config.site 2668else 2669 ac_site_file1=$ac_default_prefix/share/config.site 2670 ac_site_file2=$ac_default_prefix/etc/config.site 2671fi 2672for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2673do 2674 test "x$ac_site_file" = xNONE && continue 2675 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2676 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2677$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2678 sed 's/^/| /' "$ac_site_file" >&5 2679 . "$ac_site_file" \ 2680 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2681$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2682as_fn_error $? "failed to load site script $ac_site_file 2683See \`config.log' for more details" "$LINENO" 5; } 2684 fi 2685done 2686 2687if test -r "$cache_file"; then 2688 # Some versions of bash will fail to source /dev/null (special files 2689 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2690 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2691 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2692$as_echo "$as_me: loading cache $cache_file" >&6;} 2693 case $cache_file in 2694 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2695 *) . "./$cache_file";; 2696 esac 2697 fi 2698else 2699 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2700$as_echo "$as_me: creating cache $cache_file" >&6;} 2701 >$cache_file 2702fi 2703 2704# Check that the precious variables saved in the cache have kept the same 2705# value. 2706ac_cache_corrupted=false 2707for ac_var in $ac_precious_vars; do 2708 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2709 eval ac_new_set=\$ac_env_${ac_var}_set 2710 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2711 eval ac_new_val=\$ac_env_${ac_var}_value 2712 case $ac_old_set,$ac_new_set in 2713 set,) 2714 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2715$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2716 ac_cache_corrupted=: ;; 2717 ,set) 2718 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2719$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2720 ac_cache_corrupted=: ;; 2721 ,);; 2722 *) 2723 if test "x$ac_old_val" != "x$ac_new_val"; then 2724 # differences in whitespace do not lead to failure. 2725 ac_old_val_w=`echo x $ac_old_val` 2726 ac_new_val_w=`echo x $ac_new_val` 2727 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2728 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2729$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2730 ac_cache_corrupted=: 2731 else 2732 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2733$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2734 eval $ac_var=\$ac_old_val 2735 fi 2736 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2737$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2738 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2739$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2740 fi;; 2741 esac 2742 # Pass precious variables to config.status. 2743 if test "$ac_new_set" = set; then 2744 case $ac_new_val in 2745 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2746 *) ac_arg=$ac_var=$ac_new_val ;; 2747 esac 2748 case " $ac_configure_args " in 2749 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2750 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2751 esac 2752 fi 2753done 2754if $ac_cache_corrupted; then 2755 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2756$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2757 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2758$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2759 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2760fi 2761## -------------------- ## 2762## Main body of script. ## 2763## -------------------- ## 2764 2765ac_ext=c 2766ac_cpp='$CPP $CPPFLAGS' 2767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2769ac_compiler_gnu=$ac_cv_c_compiler_gnu 2770 2771 2772 2773 2774 2775 2776ac_aux_dir= 2777for ac_dir in config "$srcdir"/config; do 2778 if test -f "$ac_dir/install-sh"; then 2779 ac_aux_dir=$ac_dir 2780 ac_install_sh="$ac_aux_dir/install-sh -c" 2781 break 2782 elif test -f "$ac_dir/install.sh"; then 2783 ac_aux_dir=$ac_dir 2784 ac_install_sh="$ac_aux_dir/install.sh -c" 2785 break 2786 elif test -f "$ac_dir/shtool"; then 2787 ac_aux_dir=$ac_dir 2788 ac_install_sh="$ac_aux_dir/shtool install -c" 2789 break 2790 fi 2791done 2792if test -z "$ac_aux_dir"; then 2793 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 2794fi 2795 2796# These three variables are undocumented and unsupported, 2797# and are intended to be withdrawn in a future Autoconf release. 2798# They can cause serious problems if a builder's source tree is in a directory 2799# whose full name contains unusual characters. 2800ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2801ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2802ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2803 2804 2805 2806 2807cat >>confdefs.h <<_ACEOF 2808#define CONFIGURE_ARGS "$ac_configure_args" 2809_ACEOF 2810 2811 2812PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\)'` 2813PG_MINORVERSION=`expr "$PACKAGE_VERSION" : '.*\.\([0-9][0-9]*\)'` 2814test -n "$PG_MINORVERSION" || PG_MINORVERSION=0 2815 2816 2817cat >>confdefs.h <<_ACEOF 2818#define PG_MAJORVERSION "$PG_MAJORVERSION" 2819_ACEOF 2820 2821 2822cat >>confdefs.h <<_ACEOF 2823#define PG_MAJORVERSION_NUM $PG_MAJORVERSION 2824_ACEOF 2825 2826 2827cat >>confdefs.h <<_ACEOF 2828#define PG_MINORVERSION_NUM $PG_MINORVERSION 2829_ACEOF 2830 2831 2832 2833 2834 2835# Check whether --with-extra-version was given. 2836if test "${with_extra_version+set}" = set; then : 2837 withval=$with_extra_version; 2838 case $withval in 2839 yes) 2840 as_fn_error $? "argument required for --with-extra-version option" "$LINENO" 5 2841 ;; 2842 no) 2843 as_fn_error $? "argument required for --with-extra-version option" "$LINENO" 5 2844 ;; 2845 *) 2846 PG_VERSION="$PACKAGE_VERSION$withval" 2847 ;; 2848 esac 2849 2850else 2851 PG_VERSION="$PACKAGE_VERSION" 2852fi 2853 2854 2855 2856cat >>confdefs.h <<_ACEOF 2857#define PG_VERSION "$PG_VERSION" 2858_ACEOF 2859 2860 2861# Make sure we can run config.sub. 2862$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2863 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2864 2865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2866$as_echo_n "checking build system type... " >&6; } 2867if ${ac_cv_build+:} false; then : 2868 $as_echo_n "(cached) " >&6 2869else 2870 ac_build_alias=$build_alias 2871test "x$ac_build_alias" = x && 2872 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2873test "x$ac_build_alias" = x && 2874 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2875ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2876 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2877 2878fi 2879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2880$as_echo "$ac_cv_build" >&6; } 2881case $ac_cv_build in 2882*-*-*) ;; 2883*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2884esac 2885build=$ac_cv_build 2886ac_save_IFS=$IFS; IFS='-' 2887set x $ac_cv_build 2888shift 2889build_cpu=$1 2890build_vendor=$2 2891shift; shift 2892# Remember, the first character of IFS is used to create $*, 2893# except with old shells: 2894build_os=$* 2895IFS=$ac_save_IFS 2896case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2897 2898 2899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2900$as_echo_n "checking host system type... " >&6; } 2901if ${ac_cv_host+:} false; then : 2902 $as_echo_n "(cached) " >&6 2903else 2904 if test "x$host_alias" = x; then 2905 ac_cv_host=$ac_cv_build 2906else 2907 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2908 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2909fi 2910 2911fi 2912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2913$as_echo "$ac_cv_host" >&6; } 2914case $ac_cv_host in 2915*-*-*) ;; 2916*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2917esac 2918host=$ac_cv_host 2919ac_save_IFS=$IFS; IFS='-' 2920set x $ac_cv_host 2921shift 2922host_cpu=$1 2923host_vendor=$2 2924shift; shift 2925# Remember, the first character of IFS is used to create $*, 2926# except with old shells: 2927host_os=$* 2928IFS=$ac_save_IFS 2929case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2930 2931 2932 2933template= 2934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which template to use" >&5 2935$as_echo_n "checking which template to use... " >&6; } 2936 2937 2938 2939 2940# Check whether --with-template was given. 2941if test "${with_template+set}" = set; then : 2942 withval=$with_template; 2943 case $withval in 2944 yes) 2945 as_fn_error $? "argument required for --with-template option" "$LINENO" 5 2946 ;; 2947 no) 2948 as_fn_error $? "argument required for --with-template option" "$LINENO" 5 2949 ;; 2950 *) 2951 2952 case $withval in 2953 list) echo; ls "$srcdir/src/template"; exit;; 2954 *) if test -f "$srcdir/src/template/$with_template" ; then 2955 template=$withval 2956 else 2957 as_fn_error $? "'$withval' is not a valid template name. Use 'list' for a list." "$LINENO" 5 2958 fi;; 2959 esac 2960 2961 ;; 2962 esac 2963 2964else 2965 2966# --with-template not given 2967 2968case $host_os in 2969 aix*) template=aix ;; 2970 cygwin*|msys*) template=cygwin ;; 2971 darwin*) template=darwin ;; 2972dragonfly*) template=netbsd ;; 2973 freebsd*) template=freebsd ;; 2974 hpux*) template=hpux ;; 2975 linux*|gnu*|k*bsd*-gnu) 2976 template=linux ;; 2977 mingw*) template=win32 ;; 2978 netbsd*) template=netbsd ;; 2979 openbsd*) template=openbsd ;; 2980 solaris*) template=solaris ;; 2981esac 2982 2983 if test x"$template" = x"" ; then 2984 as_fn_error $? " 2985******************************************************************* 2986PostgreSQL has apparently not been ported to your platform yet. 2987To try a manual configuration, look into the src/template directory 2988for a similar platform and use the '--with-template=' option. 2989 2990Please also contact <pgsql-bugs@lists.postgresql.org> to see about 2991rectifying this. Include the above 'checking host system type...' 2992line. 2993******************************************************************* 2994" "$LINENO" 5 2995 fi 2996 2997 2998fi 2999 3000 3001 3002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $template" >&5 3003$as_echo "$template" >&6; } 3004 3005PORTNAME=$template 3006 3007 3008# Initialize default assumption that we do not need separate assembly code 3009# for TAS (test-and-set). This can be overridden by the template file 3010# when it's executed. 3011need_tas=no 3012tas_file=dummy.s 3013 3014 3015 3016## 3017## Command line options 3018## 3019 3020# 3021# Add non-standard directories to the include path 3022# 3023 3024 3025 3026# Check whether --with-includes was given. 3027if test "${with_includes+set}" = set; then : 3028 withval=$with_includes; 3029 case $withval in 3030 yes) 3031 as_fn_error $? "argument required for --with-includes option" "$LINENO" 5 3032 ;; 3033 no) 3034 as_fn_error $? "argument required for --with-includes option" "$LINENO" 5 3035 ;; 3036 *) 3037 3038 ;; 3039 esac 3040 3041fi 3042 3043 3044 3045 3046# 3047# Add non-standard directories to the library search path 3048# 3049 3050 3051 3052# Check whether --with-libraries was given. 3053if test "${with_libraries+set}" = set; then : 3054 withval=$with_libraries; 3055 case $withval in 3056 yes) 3057 as_fn_error $? "argument required for --with-libraries option" "$LINENO" 5 3058 ;; 3059 no) 3060 as_fn_error $? "argument required for --with-libraries option" "$LINENO" 5 3061 ;; 3062 *) 3063 LIBRARY_DIRS=$withval 3064 ;; 3065 esac 3066 3067fi 3068 3069 3070 3071 3072 3073 3074# Check whether --with-libs was given. 3075if test "${with_libs+set}" = set; then : 3076 withval=$with_libs; 3077 case $withval in 3078 yes) 3079 as_fn_error $? "argument required for --with-libs option" "$LINENO" 5 3080 ;; 3081 no) 3082 as_fn_error $? "argument required for --with-libs option" "$LINENO" 5 3083 ;; 3084 *) 3085 LIBRARY_DIRS=$withval 3086 ;; 3087 esac 3088 3089fi 3090 3091 3092 3093 3094# 3095# 64-bit integer date/time storage is now the only option, but to avoid 3096# unnecessary breakage of build scripts, continue to accept an explicit 3097# "--enable-integer-datetimes" switch. 3098# 3099 3100 3101# Check whether --enable-integer-datetimes was given. 3102if test "${enable_integer_datetimes+set}" = set; then : 3103 enableval=$enable_integer_datetimes; 3104 case $enableval in 3105 yes) 3106 : 3107 ;; 3108 no) 3109 as_fn_error $? "--disable-integer-datetimes is no longer supported" "$LINENO" 5 3110 ;; 3111 *) 3112 as_fn_error $? "no argument expected for --enable-integer-datetimes option" "$LINENO" 5 3113 ;; 3114 esac 3115 3116else 3117 enable_integer_datetimes=yes 3118 3119fi 3120 3121 3122 3123 3124# 3125# NLS 3126# 3127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is wanted" >&5 3128$as_echo_n "checking whether NLS is wanted... " >&6; } 3129 3130 3131# Check whether --enable-nls was given. 3132if test "${enable_nls+set}" = set; then : 3133 enableval=$enable_nls; 3134 case $enableval in 3135 yes) 3136 : 3137 ;; 3138 no) 3139 : 3140 ;; 3141 *) 3142 enable_nls=yes 3143WANTED_LANGUAGES=$enableval 3144 ;; 3145 esac 3146 3147else 3148 enable_nls=no 3149fi 3150 3151 3152 3153if test "$enable_nls" = yes; then 3154 3155$as_echo "#define ENABLE_NLS 1" >>confdefs.h 3156 3157fi 3158 3159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nls" >&5 3160$as_echo "$enable_nls" >&6; } 3161 3162 3163 3164# 3165# Default port number (--with-pgport), default 5432 3166# 3167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default port number" >&5 3168$as_echo_n "checking for default port number... " >&6; } 3169 3170 3171 3172# Check whether --with-pgport was given. 3173if test "${with_pgport+set}" = set; then : 3174 withval=$with_pgport; 3175 case $withval in 3176 yes) 3177 as_fn_error $? "argument required for --with-pgport option" "$LINENO" 5 3178 ;; 3179 no) 3180 as_fn_error $? "argument required for --with-pgport option" "$LINENO" 5 3181 ;; 3182 *) 3183 default_port=$withval 3184 ;; 3185 esac 3186 3187else 3188 default_port=5432 3189fi 3190 3191 3192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $default_port" >&5 3193$as_echo "$default_port" >&6; } 3194# Need both of these because some places want an integer and some a string 3195 3196cat >>confdefs.h <<_ACEOF 3197#define DEF_PGPORT ${default_port} 3198_ACEOF 3199 3200 3201cat >>confdefs.h <<_ACEOF 3202#define DEF_PGPORT_STR "${default_port}" 3203_ACEOF 3204 3205 3206 3207# It's worth validating port; you can get very confusing errors otherwise 3208if test x"$default_port" = x""; then 3209 as_fn_error $? "invalid --with-pgport specification: empty string" "$LINENO" 5 3210elif test ! x`echo "$default_port" | sed -e 's/[0-9]*//'` = x""; then 3211 as_fn_error $? "invalid --with-pgport specification: must be a number" "$LINENO" 5 3212elif test ! x`echo "$default_port" | sed -e 's/^0.//'` = x"$default_port"; then 3213 as_fn_error $? "invalid --with-pgport specification: must not have leading 0" "$LINENO" 5 3214elif test "$default_port" -lt "1" -o "$default_port" -gt "65535"; then 3215 as_fn_error $? "invalid --with-pgport specification: must be between 1 and 65535" "$LINENO" 5 3216fi 3217 3218# 3219# '-rpath'-like feature can be disabled 3220# 3221 3222 3223# Check whether --enable-rpath was given. 3224if test "${enable_rpath+set}" = set; then : 3225 enableval=$enable_rpath; 3226 case $enableval in 3227 yes) 3228 : 3229 ;; 3230 no) 3231 : 3232 ;; 3233 *) 3234 as_fn_error $? "no argument expected for --enable-rpath option" "$LINENO" 5 3235 ;; 3236 esac 3237 3238else 3239 enable_rpath=yes 3240 3241fi 3242 3243 3244 3245 3246# 3247# Spinlocks 3248# 3249 3250 3251# Check whether --enable-spinlocks was given. 3252if test "${enable_spinlocks+set}" = set; then : 3253 enableval=$enable_spinlocks; 3254 case $enableval in 3255 yes) 3256 : 3257 ;; 3258 no) 3259 : 3260 ;; 3261 *) 3262 as_fn_error $? "no argument expected for --enable-spinlocks option" "$LINENO" 5 3263 ;; 3264 esac 3265 3266else 3267 enable_spinlocks=yes 3268 3269fi 3270 3271 3272 3273# 3274# Atomic operations 3275# 3276 3277 3278# Check whether --enable-atomics was given. 3279if test "${enable_atomics+set}" = set; then : 3280 enableval=$enable_atomics; 3281 case $enableval in 3282 yes) 3283 : 3284 ;; 3285 no) 3286 : 3287 ;; 3288 *) 3289 as_fn_error $? "no argument expected for --enable-atomics option" "$LINENO" 5 3290 ;; 3291 esac 3292 3293else 3294 enable_atomics=yes 3295 3296fi 3297 3298 3299 3300# 3301# --enable-debug adds -g to compiler flags 3302# 3303 3304 3305# Check whether --enable-debug was given. 3306if test "${enable_debug+set}" = set; then : 3307 enableval=$enable_debug; 3308 case $enableval in 3309 yes) 3310 : 3311 ;; 3312 no) 3313 : 3314 ;; 3315 *) 3316 as_fn_error $? "no argument expected for --enable-debug option" "$LINENO" 5 3317 ;; 3318 esac 3319 3320else 3321 enable_debug=no 3322 3323fi 3324 3325 3326 3327 3328# 3329# --enable-profiling enables gcc profiling 3330# 3331 3332 3333# Check whether --enable-profiling was given. 3334if test "${enable_profiling+set}" = set; then : 3335 enableval=$enable_profiling; 3336 case $enableval in 3337 yes) 3338 : 3339 ;; 3340 no) 3341 : 3342 ;; 3343 *) 3344 as_fn_error $? "no argument expected for --enable-profiling option" "$LINENO" 5 3345 ;; 3346 esac 3347 3348else 3349 enable_profiling=no 3350 3351fi 3352 3353 3354 3355# 3356# --enable-coverage enables generation of code coverage metrics with gcov 3357# 3358 3359 3360# Check whether --enable-coverage was given. 3361if test "${enable_coverage+set}" = set; then : 3362 enableval=$enable_coverage; 3363 case $enableval in 3364 yes) 3365 if test -z "$GCOV"; then 3366 for ac_prog in gcov 3367do 3368 # Extract the first word of "$ac_prog", so it can be a program name with args. 3369set dummy $ac_prog; ac_word=$2 3370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3371$as_echo_n "checking for $ac_word... " >&6; } 3372if ${ac_cv_path_GCOV+:} false; then : 3373 $as_echo_n "(cached) " >&6 3374else 3375 case $GCOV in 3376 [\\/]* | ?:[\\/]*) 3377 ac_cv_path_GCOV="$GCOV" # Let the user override the test with a path. 3378 ;; 3379 *) 3380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3381for as_dir in $PATH 3382do 3383 IFS=$as_save_IFS 3384 test -z "$as_dir" && as_dir=. 3385 for ac_exec_ext in '' $ac_executable_extensions; do 3386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3387 ac_cv_path_GCOV="$as_dir/$ac_word$ac_exec_ext" 3388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3389 break 2 3390 fi 3391done 3392 done 3393IFS=$as_save_IFS 3394 3395 ;; 3396esac 3397fi 3398GCOV=$ac_cv_path_GCOV 3399if test -n "$GCOV"; then 3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5 3401$as_echo "$GCOV" >&6; } 3402else 3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3404$as_echo "no" >&6; } 3405fi 3406 3407 3408 test -n "$GCOV" && break 3409done 3410 3411else 3412 # Report the value of GCOV in configure's output in all cases. 3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCOV" >&5 3414$as_echo_n "checking for GCOV... " >&6; } 3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5 3416$as_echo "$GCOV" >&6; } 3417fi 3418 3419if test -z "$GCOV"; then 3420 as_fn_error $? "gcov not found" "$LINENO" 5 3421fi 3422if test -z "$LCOV"; then 3423 for ac_prog in lcov 3424do 3425 # Extract the first word of "$ac_prog", so it can be a program name with args. 3426set dummy $ac_prog; ac_word=$2 3427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3428$as_echo_n "checking for $ac_word... " >&6; } 3429if ${ac_cv_path_LCOV+:} false; then : 3430 $as_echo_n "(cached) " >&6 3431else 3432 case $LCOV in 3433 [\\/]* | ?:[\\/]*) 3434 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path. 3435 ;; 3436 *) 3437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3438for as_dir in $PATH 3439do 3440 IFS=$as_save_IFS 3441 test -z "$as_dir" && as_dir=. 3442 for ac_exec_ext in '' $ac_executable_extensions; do 3443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3444 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext" 3445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3446 break 2 3447 fi 3448done 3449 done 3450IFS=$as_save_IFS 3451 3452 ;; 3453esac 3454fi 3455LCOV=$ac_cv_path_LCOV 3456if test -n "$LCOV"; then 3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5 3458$as_echo "$LCOV" >&6; } 3459else 3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3461$as_echo "no" >&6; } 3462fi 3463 3464 3465 test -n "$LCOV" && break 3466done 3467 3468else 3469 # Report the value of LCOV in configure's output in all cases. 3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCOV" >&5 3471$as_echo_n "checking for LCOV... " >&6; } 3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5 3473$as_echo "$LCOV" >&6; } 3474fi 3475 3476if test -z "$LCOV"; then 3477 as_fn_error $? "lcov not found" "$LINENO" 5 3478fi 3479if test -z "$GENHTML"; then 3480 for ac_prog in genhtml 3481do 3482 # Extract the first word of "$ac_prog", so it can be a program name with args. 3483set dummy $ac_prog; ac_word=$2 3484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3485$as_echo_n "checking for $ac_word... " >&6; } 3486if ${ac_cv_path_GENHTML+:} false; then : 3487 $as_echo_n "(cached) " >&6 3488else 3489 case $GENHTML in 3490 [\\/]* | ?:[\\/]*) 3491 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path. 3492 ;; 3493 *) 3494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3495for as_dir in $PATH 3496do 3497 IFS=$as_save_IFS 3498 test -z "$as_dir" && as_dir=. 3499 for ac_exec_ext in '' $ac_executable_extensions; do 3500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3501 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext" 3502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3503 break 2 3504 fi 3505done 3506 done 3507IFS=$as_save_IFS 3508 3509 ;; 3510esac 3511fi 3512GENHTML=$ac_cv_path_GENHTML 3513if test -n "$GENHTML"; then 3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5 3515$as_echo "$GENHTML" >&6; } 3516else 3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3518$as_echo "no" >&6; } 3519fi 3520 3521 3522 test -n "$GENHTML" && break 3523done 3524 3525else 3526 # Report the value of GENHTML in configure's output in all cases. 3527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GENHTML" >&5 3528$as_echo_n "checking for GENHTML... " >&6; } 3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5 3530$as_echo "$GENHTML" >&6; } 3531fi 3532 3533if test -z "$GENHTML"; then 3534 as_fn_error $? "genhtml not found" "$LINENO" 5 3535fi 3536 ;; 3537 no) 3538 : 3539 ;; 3540 *) 3541 as_fn_error $? "no argument expected for --enable-coverage option" "$LINENO" 5 3542 ;; 3543 esac 3544 3545else 3546 enable_coverage=no 3547 3548fi 3549 3550 3551 3552 3553# 3554# DTrace 3555# 3556 3557 3558# Check whether --enable-dtrace was given. 3559if test "${enable_dtrace+set}" = set; then : 3560 enableval=$enable_dtrace; 3561 case $enableval in 3562 yes) 3563 if test -z "$DTRACE"; then 3564 for ac_prog in dtrace 3565do 3566 # Extract the first word of "$ac_prog", so it can be a program name with args. 3567set dummy $ac_prog; ac_word=$2 3568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3569$as_echo_n "checking for $ac_word... " >&6; } 3570if ${ac_cv_path_DTRACE+:} false; then : 3571 $as_echo_n "(cached) " >&6 3572else 3573 case $DTRACE in 3574 [\\/]* | ?:[\\/]*) 3575 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 3576 ;; 3577 *) 3578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3579for as_dir in $PATH 3580do 3581 IFS=$as_save_IFS 3582 test -z "$as_dir" && as_dir=. 3583 for ac_exec_ext in '' $ac_executable_extensions; do 3584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3585 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" 3586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3587 break 2 3588 fi 3589done 3590 done 3591IFS=$as_save_IFS 3592 3593 ;; 3594esac 3595fi 3596DTRACE=$ac_cv_path_DTRACE 3597if test -n "$DTRACE"; then 3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 3599$as_echo "$DTRACE" >&6; } 3600else 3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3602$as_echo "no" >&6; } 3603fi 3604 3605 3606 test -n "$DTRACE" && break 3607done 3608 3609else 3610 # Report the value of DTRACE in configure's output in all cases. 3611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5 3612$as_echo_n "checking for DTRACE... " >&6; } 3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 3614$as_echo "$DTRACE" >&6; } 3615fi 3616 3617if test -z "$DTRACE"; then 3618 as_fn_error $? "dtrace not found" "$LINENO" 5 3619fi 3620 3621 ;; 3622 no) 3623 : 3624 ;; 3625 *) 3626 as_fn_error $? "no argument expected for --enable-dtrace option" "$LINENO" 5 3627 ;; 3628 esac 3629 3630else 3631 enable_dtrace=no 3632 3633fi 3634 3635 3636 3637 3638# 3639# TAP tests 3640# 3641 3642 3643# Check whether --enable-tap-tests was given. 3644if test "${enable_tap_tests+set}" = set; then : 3645 enableval=$enable_tap_tests; 3646 case $enableval in 3647 yes) 3648 : 3649 ;; 3650 no) 3651 : 3652 ;; 3653 *) 3654 as_fn_error $? "no argument expected for --enable-tap-tests option" "$LINENO" 5 3655 ;; 3656 esac 3657 3658else 3659 enable_tap_tests=no 3660 3661fi 3662 3663 3664 3665 3666# 3667# Block size 3668# 3669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for block size" >&5 3670$as_echo_n "checking for block size... " >&6; } 3671 3672 3673 3674# Check whether --with-blocksize was given. 3675if test "${with_blocksize+set}" = set; then : 3676 withval=$with_blocksize; 3677 case $withval in 3678 yes) 3679 as_fn_error $? "argument required for --with-blocksize option" "$LINENO" 5 3680 ;; 3681 no) 3682 as_fn_error $? "argument required for --with-blocksize option" "$LINENO" 5 3683 ;; 3684 *) 3685 blocksize=$withval 3686 ;; 3687 esac 3688 3689else 3690 blocksize=8 3691fi 3692 3693 3694case ${blocksize} in 3695 1) BLCKSZ=1024;; 3696 2) BLCKSZ=2048;; 3697 4) BLCKSZ=4096;; 3698 8) BLCKSZ=8192;; 3699 16) BLCKSZ=16384;; 3700 32) BLCKSZ=32768;; 3701 *) as_fn_error $? "Invalid block size. Allowed values are 1,2,4,8,16,32." "$LINENO" 5 3702esac 3703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${blocksize}kB" >&5 3704$as_echo "${blocksize}kB" >&6; } 3705 3706 3707cat >>confdefs.h <<_ACEOF 3708#define BLCKSZ ${BLCKSZ} 3709_ACEOF 3710 3711 3712# 3713# Relation segment size 3714# 3715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for segment size" >&5 3716$as_echo_n "checking for segment size... " >&6; } 3717 3718 3719 3720# Check whether --with-segsize was given. 3721if test "${with_segsize+set}" = set; then : 3722 withval=$with_segsize; 3723 case $withval in 3724 yes) 3725 as_fn_error $? "argument required for --with-segsize option" "$LINENO" 5 3726 ;; 3727 no) 3728 as_fn_error $? "argument required for --with-segsize option" "$LINENO" 5 3729 ;; 3730 *) 3731 segsize=$withval 3732 ;; 3733 esac 3734 3735else 3736 segsize=1 3737fi 3738 3739 3740# this expression is set up to avoid unnecessary integer overflow 3741# blocksize is already guaranteed to be a factor of 1024 3742RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024` 3743test $? -eq 0 || exit 1 3744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${segsize}GB" >&5 3745$as_echo "${segsize}GB" >&6; } 3746 3747 3748cat >>confdefs.h <<_ACEOF 3749#define RELSEG_SIZE ${RELSEG_SIZE} 3750_ACEOF 3751 3752 3753# 3754# WAL block size 3755# 3756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAL block size" >&5 3757$as_echo_n "checking for WAL block size... " >&6; } 3758 3759 3760 3761# Check whether --with-wal-blocksize was given. 3762if test "${with_wal_blocksize+set}" = set; then : 3763 withval=$with_wal_blocksize; 3764 case $withval in 3765 yes) 3766 as_fn_error $? "argument required for --with-wal-blocksize option" "$LINENO" 5 3767 ;; 3768 no) 3769 as_fn_error $? "argument required for --with-wal-blocksize option" "$LINENO" 5 3770 ;; 3771 *) 3772 wal_blocksize=$withval 3773 ;; 3774 esac 3775 3776else 3777 wal_blocksize=8 3778fi 3779 3780 3781case ${wal_blocksize} in 3782 1) XLOG_BLCKSZ=1024;; 3783 2) XLOG_BLCKSZ=2048;; 3784 4) XLOG_BLCKSZ=4096;; 3785 8) XLOG_BLCKSZ=8192;; 3786 16) XLOG_BLCKSZ=16384;; 3787 32) XLOG_BLCKSZ=32768;; 3788 64) XLOG_BLCKSZ=65536;; 3789 *) as_fn_error $? "Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." "$LINENO" 5 3790esac 3791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${wal_blocksize}kB" >&5 3792$as_echo "${wal_blocksize}kB" >&6; } 3793 3794 3795cat >>confdefs.h <<_ACEOF 3796#define XLOG_BLCKSZ ${XLOG_BLCKSZ} 3797_ACEOF 3798 3799 3800# 3801# C compiler 3802# 3803 3804# For historical reasons you can also use --with-CC to specify the C compiler 3805# to use, although the standard way to do this is to set the CC environment 3806# variable. 3807 3808 3809 3810# Check whether --with-CC was given. 3811if test "${with_CC+set}" = set; then : 3812 withval=$with_CC; 3813 case $withval in 3814 yes) 3815 as_fn_error $? "argument required for --with-CC option" "$LINENO" 5 3816 ;; 3817 no) 3818 as_fn_error $? "argument required for --with-CC option" "$LINENO" 5 3819 ;; 3820 *) 3821 CC=$with_CC 3822 ;; 3823 esac 3824 3825fi 3826 3827 3828 3829case $template in 3830 aix) pgac_cc_list="gcc xlc"; pgac_cxx_list="g++ xlC";; 3831 *) pgac_cc_list="gcc cc"; pgac_cxx_list="g++ c++";; 3832esac 3833 3834ac_ext=c 3835ac_cpp='$CPP $CPPFLAGS' 3836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3838ac_compiler_gnu=$ac_cv_c_compiler_gnu 3839if test -n "$ac_tool_prefix"; then 3840 for ac_prog in $pgac_cc_list 3841 do 3842 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3843set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3845$as_echo_n "checking for $ac_word... " >&6; } 3846if ${ac_cv_prog_CC+:} false; then : 3847 $as_echo_n "(cached) " >&6 3848else 3849 if test -n "$CC"; then 3850 ac_cv_prog_CC="$CC" # Let the user override the test. 3851else 3852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3853for as_dir in $PATH 3854do 3855 IFS=$as_save_IFS 3856 test -z "$as_dir" && as_dir=. 3857 for ac_exec_ext in '' $ac_executable_extensions; do 3858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3859 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3861 break 2 3862 fi 3863done 3864 done 3865IFS=$as_save_IFS 3866 3867fi 3868fi 3869CC=$ac_cv_prog_CC 3870if test -n "$CC"; then 3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3872$as_echo "$CC" >&6; } 3873else 3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3875$as_echo "no" >&6; } 3876fi 3877 3878 3879 test -n "$CC" && break 3880 done 3881fi 3882if test -z "$CC"; then 3883 ac_ct_CC=$CC 3884 for ac_prog in $pgac_cc_list 3885do 3886 # Extract the first word of "$ac_prog", so it can be a program name with args. 3887set dummy $ac_prog; ac_word=$2 3888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3889$as_echo_n "checking for $ac_word... " >&6; } 3890if ${ac_cv_prog_ac_ct_CC+:} false; then : 3891 $as_echo_n "(cached) " >&6 3892else 3893 if test -n "$ac_ct_CC"; then 3894 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3895else 3896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3897for as_dir in $PATH 3898do 3899 IFS=$as_save_IFS 3900 test -z "$as_dir" && as_dir=. 3901 for ac_exec_ext in '' $ac_executable_extensions; do 3902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3903 ac_cv_prog_ac_ct_CC="$ac_prog" 3904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3905 break 2 3906 fi 3907done 3908 done 3909IFS=$as_save_IFS 3910 3911fi 3912fi 3913ac_ct_CC=$ac_cv_prog_ac_ct_CC 3914if test -n "$ac_ct_CC"; then 3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3916$as_echo "$ac_ct_CC" >&6; } 3917else 3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3919$as_echo "no" >&6; } 3920fi 3921 3922 3923 test -n "$ac_ct_CC" && break 3924done 3925 3926 if test "x$ac_ct_CC" = x; then 3927 CC="" 3928 else 3929 case $cross_compiling:$ac_tool_warned in 3930yes:) 3931{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3932$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3933ac_tool_warned=yes ;; 3934esac 3935 CC=$ac_ct_CC 3936 fi 3937fi 3938 3939 3940test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3941$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3942as_fn_error $? "no acceptable C compiler found in \$PATH 3943See \`config.log' for more details" "$LINENO" 5; } 3944 3945# Provide some information about the compiler. 3946$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3947set X $ac_compile 3948ac_compiler=$2 3949for ac_option in --version -v -V -qversion; do 3950 { { ac_try="$ac_compiler $ac_option >&5" 3951case "(($ac_try" in 3952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3953 *) ac_try_echo=$ac_try;; 3954esac 3955eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3956$as_echo "$ac_try_echo"; } >&5 3957 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3958 ac_status=$? 3959 if test -s conftest.err; then 3960 sed '10a\ 3961... rest of stderr output deleted ... 3962 10q' conftest.err >conftest.er1 3963 cat conftest.er1 >&5 3964 fi 3965 rm -f conftest.er1 conftest.err 3966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3967 test $ac_status = 0; } 3968done 3969 3970cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3971/* end confdefs.h. */ 3972 3973int 3974main () 3975{ 3976 3977 ; 3978 return 0; 3979} 3980_ACEOF 3981ac_clean_files_save=$ac_clean_files 3982ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3983# Try to create an executable without -o first, disregard a.out. 3984# It will help us diagnose broken compilers, and finding out an intuition 3985# of exeext. 3986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3987$as_echo_n "checking whether the C compiler works... " >&6; } 3988ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3989 3990# The possible output files: 3991ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3992 3993ac_rmfiles= 3994for ac_file in $ac_files 3995do 3996 case $ac_file in 3997 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3998 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3999 esac 4000done 4001rm -f $ac_rmfiles 4002 4003if { { ac_try="$ac_link_default" 4004case "(($ac_try" in 4005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4006 *) ac_try_echo=$ac_try;; 4007esac 4008eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4009$as_echo "$ac_try_echo"; } >&5 4010 (eval "$ac_link_default") 2>&5 4011 ac_status=$? 4012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4013 test $ac_status = 0; }; then : 4014 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4015# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4016# in a Makefile. We should not override ac_cv_exeext if it was cached, 4017# so that the user can short-circuit this test for compilers unknown to 4018# Autoconf. 4019for ac_file in $ac_files '' 4020do 4021 test -f "$ac_file" || continue 4022 case $ac_file in 4023 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4024 ;; 4025 [ab].out ) 4026 # We found the default executable, but exeext='' is most 4027 # certainly right. 4028 break;; 4029 *.* ) 4030 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4031 then :; else 4032 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4033 fi 4034 # We set ac_cv_exeext here because the later test for it is not 4035 # safe: cross compilers may not add the suffix if given an `-o' 4036 # argument, so we may need to know it at that point already. 4037 # Even if this section looks crufty: it has the advantage of 4038 # actually working. 4039 break;; 4040 * ) 4041 break;; 4042 esac 4043done 4044test "$ac_cv_exeext" = no && ac_cv_exeext= 4045 4046else 4047 ac_file='' 4048fi 4049if test -z "$ac_file"; then : 4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4051$as_echo "no" >&6; } 4052$as_echo "$as_me: failed program was:" >&5 4053sed 's/^/| /' conftest.$ac_ext >&5 4054 4055{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4056$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4057as_fn_error 77 "C compiler cannot create executables 4058See \`config.log' for more details" "$LINENO" 5; } 4059else 4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4061$as_echo "yes" >&6; } 4062fi 4063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4064$as_echo_n "checking for C compiler default output file name... " >&6; } 4065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4066$as_echo "$ac_file" >&6; } 4067ac_exeext=$ac_cv_exeext 4068 4069rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4070ac_clean_files=$ac_clean_files_save 4071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4072$as_echo_n "checking for suffix of executables... " >&6; } 4073if { { ac_try="$ac_link" 4074case "(($ac_try" in 4075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4076 *) ac_try_echo=$ac_try;; 4077esac 4078eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4079$as_echo "$ac_try_echo"; } >&5 4080 (eval "$ac_link") 2>&5 4081 ac_status=$? 4082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4083 test $ac_status = 0; }; then : 4084 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4085# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4086# work properly (i.e., refer to `conftest.exe'), while it won't with 4087# `rm'. 4088for ac_file in conftest.exe conftest conftest.*; do 4089 test -f "$ac_file" || continue 4090 case $ac_file in 4091 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4092 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4093 break;; 4094 * ) break;; 4095 esac 4096done 4097else 4098 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4099$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4100as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4101See \`config.log' for more details" "$LINENO" 5; } 4102fi 4103rm -f conftest conftest$ac_cv_exeext 4104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4105$as_echo "$ac_cv_exeext" >&6; } 4106 4107rm -f conftest.$ac_ext 4108EXEEXT=$ac_cv_exeext 4109ac_exeext=$EXEEXT 4110cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4111/* end confdefs.h. */ 4112#include <stdio.h> 4113int 4114main () 4115{ 4116FILE *f = fopen ("conftest.out", "w"); 4117 return ferror (f) || fclose (f) != 0; 4118 4119 ; 4120 return 0; 4121} 4122_ACEOF 4123ac_clean_files="$ac_clean_files conftest.out" 4124# Check that the compiler produces executables we can run. If not, either 4125# the compiler is broken, or we cross compile. 4126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4127$as_echo_n "checking whether we are cross compiling... " >&6; } 4128if test "$cross_compiling" != yes; then 4129 { { ac_try="$ac_link" 4130case "(($ac_try" in 4131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4132 *) ac_try_echo=$ac_try;; 4133esac 4134eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4135$as_echo "$ac_try_echo"; } >&5 4136 (eval "$ac_link") 2>&5 4137 ac_status=$? 4138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4139 test $ac_status = 0; } 4140 if { ac_try='./conftest$ac_cv_exeext' 4141 { { case "(($ac_try" in 4142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4143 *) ac_try_echo=$ac_try;; 4144esac 4145eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4146$as_echo "$ac_try_echo"; } >&5 4147 (eval "$ac_try") 2>&5 4148 ac_status=$? 4149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4150 test $ac_status = 0; }; }; then 4151 cross_compiling=no 4152 else 4153 if test "$cross_compiling" = maybe; then 4154 cross_compiling=yes 4155 else 4156 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4157$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4158as_fn_error $? "cannot run C compiled programs. 4159If you meant to cross compile, use \`--host'. 4160See \`config.log' for more details" "$LINENO" 5; } 4161 fi 4162 fi 4163fi 4164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4165$as_echo "$cross_compiling" >&6; } 4166 4167rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4168ac_clean_files=$ac_clean_files_save 4169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4170$as_echo_n "checking for suffix of object files... " >&6; } 4171if ${ac_cv_objext+:} false; then : 4172 $as_echo_n "(cached) " >&6 4173else 4174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4175/* end confdefs.h. */ 4176 4177int 4178main () 4179{ 4180 4181 ; 4182 return 0; 4183} 4184_ACEOF 4185rm -f conftest.o conftest.obj 4186if { { ac_try="$ac_compile" 4187case "(($ac_try" in 4188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4189 *) ac_try_echo=$ac_try;; 4190esac 4191eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4192$as_echo "$ac_try_echo"; } >&5 4193 (eval "$ac_compile") 2>&5 4194 ac_status=$? 4195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4196 test $ac_status = 0; }; then : 4197 for ac_file in conftest.o conftest.obj conftest.*; do 4198 test -f "$ac_file" || continue; 4199 case $ac_file in 4200 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4201 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4202 break;; 4203 esac 4204done 4205else 4206 $as_echo "$as_me: failed program was:" >&5 4207sed 's/^/| /' conftest.$ac_ext >&5 4208 4209{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4210$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4211as_fn_error $? "cannot compute suffix of object files: cannot compile 4212See \`config.log' for more details" "$LINENO" 5; } 4213fi 4214rm -f conftest.$ac_cv_objext conftest.$ac_ext 4215fi 4216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4217$as_echo "$ac_cv_objext" >&6; } 4218OBJEXT=$ac_cv_objext 4219ac_objext=$OBJEXT 4220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4221$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4222if ${ac_cv_c_compiler_gnu+:} false; then : 4223 $as_echo_n "(cached) " >&6 4224else 4225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4226/* end confdefs.h. */ 4227 4228int 4229main () 4230{ 4231#ifndef __GNUC__ 4232 choke me 4233#endif 4234 4235 ; 4236 return 0; 4237} 4238_ACEOF 4239if ac_fn_c_try_compile "$LINENO"; then : 4240 ac_compiler_gnu=yes 4241else 4242 ac_compiler_gnu=no 4243fi 4244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4245ac_cv_c_compiler_gnu=$ac_compiler_gnu 4246 4247fi 4248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4249$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4250if test $ac_compiler_gnu = yes; then 4251 GCC=yes 4252else 4253 GCC= 4254fi 4255ac_test_CFLAGS=${CFLAGS+set} 4256ac_save_CFLAGS=$CFLAGS 4257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4258$as_echo_n "checking whether $CC accepts -g... " >&6; } 4259if ${ac_cv_prog_cc_g+:} false; then : 4260 $as_echo_n "(cached) " >&6 4261else 4262 ac_save_c_werror_flag=$ac_c_werror_flag 4263 ac_c_werror_flag=yes 4264 ac_cv_prog_cc_g=no 4265 CFLAGS="-g" 4266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4267/* end confdefs.h. */ 4268 4269int 4270main () 4271{ 4272 4273 ; 4274 return 0; 4275} 4276_ACEOF 4277if ac_fn_c_try_compile "$LINENO"; then : 4278 ac_cv_prog_cc_g=yes 4279else 4280 CFLAGS="" 4281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4282/* end confdefs.h. */ 4283 4284int 4285main () 4286{ 4287 4288 ; 4289 return 0; 4290} 4291_ACEOF 4292if ac_fn_c_try_compile "$LINENO"; then : 4293 4294else 4295 ac_c_werror_flag=$ac_save_c_werror_flag 4296 CFLAGS="-g" 4297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4298/* end confdefs.h. */ 4299 4300int 4301main () 4302{ 4303 4304 ; 4305 return 0; 4306} 4307_ACEOF 4308if ac_fn_c_try_compile "$LINENO"; then : 4309 ac_cv_prog_cc_g=yes 4310fi 4311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4312fi 4313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4314fi 4315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4316 ac_c_werror_flag=$ac_save_c_werror_flag 4317fi 4318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4319$as_echo "$ac_cv_prog_cc_g" >&6; } 4320if test "$ac_test_CFLAGS" = set; then 4321 CFLAGS=$ac_save_CFLAGS 4322elif test $ac_cv_prog_cc_g = yes; then 4323 if test "$GCC" = yes; then 4324 CFLAGS="-g -O2" 4325 else 4326 CFLAGS="-g" 4327 fi 4328else 4329 if test "$GCC" = yes; then 4330 CFLAGS="-O2" 4331 else 4332 CFLAGS= 4333 fi 4334fi 4335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4336$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4337if ${ac_cv_prog_cc_c89+:} false; then : 4338 $as_echo_n "(cached) " >&6 4339else 4340 ac_cv_prog_cc_c89=no 4341ac_save_CC=$CC 4342cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4343/* end confdefs.h. */ 4344#include <stdarg.h> 4345#include <stdio.h> 4346struct stat; 4347/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4348struct buf { int x; }; 4349FILE * (*rcsopen) (struct buf *, struct stat *, int); 4350static char *e (p, i) 4351 char **p; 4352 int i; 4353{ 4354 return p[i]; 4355} 4356static char *f (char * (*g) (char **, int), char **p, ...) 4357{ 4358 char *s; 4359 va_list v; 4360 va_start (v,p); 4361 s = g (p, va_arg (v,int)); 4362 va_end (v); 4363 return s; 4364} 4365 4366/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4367 function prototypes and stuff, but not '\xHH' hex character constants. 4368 These don't provoke an error unfortunately, instead are silently treated 4369 as 'x'. The following induces an error, until -std is added to get 4370 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4371 array size at least. It's necessary to write '\x00'==0 to get something 4372 that's true only with -std. */ 4373int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4374 4375/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4376 inside strings and character constants. */ 4377#define FOO(x) 'x' 4378int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4379 4380int test (int i, double x); 4381struct s1 {int (*f) (int a);}; 4382struct s2 {int (*f) (double a);}; 4383int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4384int argc; 4385char **argv; 4386int 4387main () 4388{ 4389return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4390 ; 4391 return 0; 4392} 4393_ACEOF 4394for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4395 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4396do 4397 CC="$ac_save_CC $ac_arg" 4398 if ac_fn_c_try_compile "$LINENO"; then : 4399 ac_cv_prog_cc_c89=$ac_arg 4400fi 4401rm -f core conftest.err conftest.$ac_objext 4402 test "x$ac_cv_prog_cc_c89" != "xno" && break 4403done 4404rm -f conftest.$ac_ext 4405CC=$ac_save_CC 4406 4407fi 4408# AC_CACHE_VAL 4409case "x$ac_cv_prog_cc_c89" in 4410 x) 4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4412$as_echo "none needed" >&6; } ;; 4413 xno) 4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4415$as_echo "unsupported" >&6; } ;; 4416 *) 4417 CC="$CC $ac_cv_prog_cc_c89" 4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4419$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4420esac 4421if test "x$ac_cv_prog_cc_c89" != xno; then : 4422 4423fi 4424 4425ac_ext=c 4426ac_cpp='$CPP $CPPFLAGS' 4427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4429ac_compiler_gnu=$ac_cv_c_compiler_gnu 4430 4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4432$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4433if ${ac_cv_prog_cc_c99+:} false; then : 4434 $as_echo_n "(cached) " >&6 4435else 4436 ac_cv_prog_cc_c99=no 4437ac_save_CC=$CC 4438cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4439/* end confdefs.h. */ 4440#include <stdarg.h> 4441#include <stdbool.h> 4442#include <stdlib.h> 4443#include <wchar.h> 4444#include <stdio.h> 4445 4446// Check varargs macros. These examples are taken from C99 6.10.3.5. 4447#define debug(...) fprintf (stderr, __VA_ARGS__) 4448#define showlist(...) puts (#__VA_ARGS__) 4449#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4450static void 4451test_varargs_macros (void) 4452{ 4453 int x = 1234; 4454 int y = 5678; 4455 debug ("Flag"); 4456 debug ("X = %d\n", x); 4457 showlist (The first, second, and third items.); 4458 report (x>y, "x is %d but y is %d", x, y); 4459} 4460 4461// Check long long types. 4462#define BIG64 18446744073709551615ull 4463#define BIG32 4294967295ul 4464#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4465#if !BIG_OK 4466 your preprocessor is broken; 4467#endif 4468#if BIG_OK 4469#else 4470 your preprocessor is broken; 4471#endif 4472static long long int bignum = -9223372036854775807LL; 4473static unsigned long long int ubignum = BIG64; 4474 4475struct incomplete_array 4476{ 4477 int datasize; 4478 double data[]; 4479}; 4480 4481struct named_init { 4482 int number; 4483 const wchar_t *name; 4484 double average; 4485}; 4486 4487typedef const char *ccp; 4488 4489static inline int 4490test_restrict (ccp restrict text) 4491{ 4492 // See if C++-style comments work. 4493 // Iterate through items via the restricted pointer. 4494 // Also check for declarations in for loops. 4495 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4496 continue; 4497 return 0; 4498} 4499 4500// Check varargs and va_copy. 4501static void 4502test_varargs (const char *format, ...) 4503{ 4504 va_list args; 4505 va_start (args, format); 4506 va_list args_copy; 4507 va_copy (args_copy, args); 4508 4509 const char *str; 4510 int number; 4511 float fnumber; 4512 4513 while (*format) 4514 { 4515 switch (*format++) 4516 { 4517 case 's': // string 4518 str = va_arg (args_copy, const char *); 4519 break; 4520 case 'd': // int 4521 number = va_arg (args_copy, int); 4522 break; 4523 case 'f': // float 4524 fnumber = va_arg (args_copy, double); 4525 break; 4526 default: 4527 break; 4528 } 4529 } 4530 va_end (args_copy); 4531 va_end (args); 4532} 4533 4534int 4535main () 4536{ 4537 4538 // Check bool. 4539 _Bool success = false; 4540 4541 // Check restrict. 4542 if (test_restrict ("String literal") == 0) 4543 success = true; 4544 char *restrict newvar = "Another string"; 4545 4546 // Check varargs. 4547 test_varargs ("s, d' f .", "string", 65, 34.234); 4548 test_varargs_macros (); 4549 4550 // Check flexible array members. 4551 struct incomplete_array *ia = 4552 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4553 ia->datasize = 10; 4554 for (int i = 0; i < ia->datasize; ++i) 4555 ia->data[i] = i * 1.234; 4556 4557 // Check named initializers. 4558 struct named_init ni = { 4559 .number = 34, 4560 .name = L"Test wide string", 4561 .average = 543.34343, 4562 }; 4563 4564 ni.number = 58; 4565 4566 int dynamic_array[ni.number]; 4567 dynamic_array[ni.number - 1] = 543; 4568 4569 // work around unused variable warnings 4570 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4571 || dynamic_array[ni.number - 1] != 543); 4572 4573 ; 4574 return 0; 4575} 4576_ACEOF 4577for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4578do 4579 CC="$ac_save_CC $ac_arg" 4580 if ac_fn_c_try_compile "$LINENO"; then : 4581 ac_cv_prog_cc_c99=$ac_arg 4582fi 4583rm -f core conftest.err conftest.$ac_objext 4584 test "x$ac_cv_prog_cc_c99" != "xno" && break 4585done 4586rm -f conftest.$ac_ext 4587CC=$ac_save_CC 4588 4589fi 4590# AC_CACHE_VAL 4591case "x$ac_cv_prog_cc_c99" in 4592 x) 4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4594$as_echo "none needed" >&6; } ;; 4595 xno) 4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4597$as_echo "unsupported" >&6; } ;; 4598 *) 4599 CC="$CC $ac_cv_prog_cc_c99" 4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4601$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4602esac 4603if test "x$ac_cv_prog_cc_c99" != xno; then : 4604 4605fi 4606 4607 4608 4609# Error out if the compiler does not support C99, as the codebase 4610# relies on that. 4611if test "$ac_cv_prog_cc_c99" = no; then 4612 as_fn_error $? "C compiler \"$CC\" does not support C99" "$LINENO" 5 4613fi 4614 4615ac_ext=cpp 4616ac_cpp='$CXXCPP $CPPFLAGS' 4617ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4618ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4619ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4620if test -z "$CXX"; then 4621 if test -n "$CCC"; then 4622 CXX=$CCC 4623 else 4624 if test -n "$ac_tool_prefix"; then 4625 for ac_prog in $pgac_cxx_list 4626 do 4627 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4628set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4630$as_echo_n "checking for $ac_word... " >&6; } 4631if ${ac_cv_prog_CXX+:} false; then : 4632 $as_echo_n "(cached) " >&6 4633else 4634 if test -n "$CXX"; then 4635 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4636else 4637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4638for as_dir in $PATH 4639do 4640 IFS=$as_save_IFS 4641 test -z "$as_dir" && as_dir=. 4642 for ac_exec_ext in '' $ac_executable_extensions; do 4643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4644 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4646 break 2 4647 fi 4648done 4649 done 4650IFS=$as_save_IFS 4651 4652fi 4653fi 4654CXX=$ac_cv_prog_CXX 4655if test -n "$CXX"; then 4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4657$as_echo "$CXX" >&6; } 4658else 4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4660$as_echo "no" >&6; } 4661fi 4662 4663 4664 test -n "$CXX" && break 4665 done 4666fi 4667if test -z "$CXX"; then 4668 ac_ct_CXX=$CXX 4669 for ac_prog in $pgac_cxx_list 4670do 4671 # Extract the first word of "$ac_prog", so it can be a program name with args. 4672set dummy $ac_prog; ac_word=$2 4673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4674$as_echo_n "checking for $ac_word... " >&6; } 4675if ${ac_cv_prog_ac_ct_CXX+:} false; then : 4676 $as_echo_n "(cached) " >&6 4677else 4678 if test -n "$ac_ct_CXX"; then 4679 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4680else 4681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4682for as_dir in $PATH 4683do 4684 IFS=$as_save_IFS 4685 test -z "$as_dir" && as_dir=. 4686 for ac_exec_ext in '' $ac_executable_extensions; do 4687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4688 ac_cv_prog_ac_ct_CXX="$ac_prog" 4689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4690 break 2 4691 fi 4692done 4693 done 4694IFS=$as_save_IFS 4695 4696fi 4697fi 4698ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4699if test -n "$ac_ct_CXX"; then 4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4701$as_echo "$ac_ct_CXX" >&6; } 4702else 4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4704$as_echo "no" >&6; } 4705fi 4706 4707 4708 test -n "$ac_ct_CXX" && break 4709done 4710 4711 if test "x$ac_ct_CXX" = x; then 4712 CXX="g++" 4713 else 4714 case $cross_compiling:$ac_tool_warned in 4715yes:) 4716{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4717$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4718ac_tool_warned=yes ;; 4719esac 4720 CXX=$ac_ct_CXX 4721 fi 4722fi 4723 4724 fi 4725fi 4726# Provide some information about the compiler. 4727$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4728set X $ac_compile 4729ac_compiler=$2 4730for ac_option in --version -v -V -qversion; do 4731 { { ac_try="$ac_compiler $ac_option >&5" 4732case "(($ac_try" in 4733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4734 *) ac_try_echo=$ac_try;; 4735esac 4736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4737$as_echo "$ac_try_echo"; } >&5 4738 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4739 ac_status=$? 4740 if test -s conftest.err; then 4741 sed '10a\ 4742... rest of stderr output deleted ... 4743 10q' conftest.err >conftest.er1 4744 cat conftest.er1 >&5 4745 fi 4746 rm -f conftest.er1 conftest.err 4747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4748 test $ac_status = 0; } 4749done 4750 4751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4752$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4753if ${ac_cv_cxx_compiler_gnu+:} false; then : 4754 $as_echo_n "(cached) " >&6 4755else 4756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4757/* end confdefs.h. */ 4758 4759int 4760main () 4761{ 4762#ifndef __GNUC__ 4763 choke me 4764#endif 4765 4766 ; 4767 return 0; 4768} 4769_ACEOF 4770if ac_fn_cxx_try_compile "$LINENO"; then : 4771 ac_compiler_gnu=yes 4772else 4773 ac_compiler_gnu=no 4774fi 4775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4776ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4777 4778fi 4779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4780$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4781if test $ac_compiler_gnu = yes; then 4782 GXX=yes 4783else 4784 GXX= 4785fi 4786ac_test_CXXFLAGS=${CXXFLAGS+set} 4787ac_save_CXXFLAGS=$CXXFLAGS 4788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4789$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4790if ${ac_cv_prog_cxx_g+:} false; then : 4791 $as_echo_n "(cached) " >&6 4792else 4793 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4794 ac_cxx_werror_flag=yes 4795 ac_cv_prog_cxx_g=no 4796 CXXFLAGS="-g" 4797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4798/* end confdefs.h. */ 4799 4800int 4801main () 4802{ 4803 4804 ; 4805 return 0; 4806} 4807_ACEOF 4808if ac_fn_cxx_try_compile "$LINENO"; then : 4809 ac_cv_prog_cxx_g=yes 4810else 4811 CXXFLAGS="" 4812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4813/* end confdefs.h. */ 4814 4815int 4816main () 4817{ 4818 4819 ; 4820 return 0; 4821} 4822_ACEOF 4823if ac_fn_cxx_try_compile "$LINENO"; then : 4824 4825else 4826 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4827 CXXFLAGS="-g" 4828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4829/* end confdefs.h. */ 4830 4831int 4832main () 4833{ 4834 4835 ; 4836 return 0; 4837} 4838_ACEOF 4839if ac_fn_cxx_try_compile "$LINENO"; then : 4840 ac_cv_prog_cxx_g=yes 4841fi 4842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4843fi 4844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4845fi 4846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4847 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4848fi 4849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4850$as_echo "$ac_cv_prog_cxx_g" >&6; } 4851if test "$ac_test_CXXFLAGS" = set; then 4852 CXXFLAGS=$ac_save_CXXFLAGS 4853elif test $ac_cv_prog_cxx_g = yes; then 4854 if test "$GXX" = yes; then 4855 CXXFLAGS="-g -O2" 4856 else 4857 CXXFLAGS="-g" 4858 fi 4859else 4860 if test "$GXX" = yes; then 4861 CXXFLAGS="-O2" 4862 else 4863 CXXFLAGS= 4864 fi 4865fi 4866ac_ext=c 4867ac_cpp='$CPP $CPPFLAGS' 4868ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4869ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4870ac_compiler_gnu=$ac_cv_c_compiler_gnu 4871 4872 4873# Check if it's Intel's compiler, which (usually) pretends to be gcc, 4874# but has idiosyncrasies of its own. We assume icc will define 4875# __INTEL_COMPILER regardless of CFLAGS. 4876 4877cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4878/* end confdefs.h. */ 4879 4880int 4881main () 4882{ 4883#ifndef __INTEL_COMPILER 4884choke me 4885#endif 4886 ; 4887 return 0; 4888} 4889_ACEOF 4890if ac_fn_c_try_compile "$LINENO"; then : 4891 ICC=yes 4892else 4893 ICC=no 4894fi 4895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4896 4897# Check if it's Sun Studio compiler. We assume that 4898# __SUNPRO_C will be defined for Sun Studio compilers 4899cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4900/* end confdefs.h. */ 4901 4902int 4903main () 4904{ 4905#ifndef __SUNPRO_C 4906choke me 4907#endif 4908 ; 4909 return 0; 4910} 4911_ACEOF 4912if ac_fn_c_try_compile "$LINENO"; then : 4913 SUN_STUDIO_CC=yes 4914else 4915 SUN_STUDIO_CC=no 4916fi 4917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4918 4919 4920 4921 4922# 4923# LLVM 4924# 4925# Checked early because subsequent tests depend on it. 4926 4927 4928 4929# Check whether --with-llvm was given. 4930if test "${with_llvm+set}" = set; then : 4931 withval=$with_llvm; 4932 case $withval in 4933 yes) 4934 4935$as_echo "#define USE_LLVM 1" >>confdefs.h 4936 4937 ;; 4938 no) 4939 : 4940 ;; 4941 *) 4942 as_fn_error $? "no argument expected for --with-llvm option" "$LINENO" 5 4943 ;; 4944 esac 4945 4946else 4947 with_llvm=no 4948 4949fi 4950 4951 4952 4953for ac_prog in gawk mawk nawk awk 4954do 4955 # Extract the first word of "$ac_prog", so it can be a program name with args. 4956set dummy $ac_prog; ac_word=$2 4957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4958$as_echo_n "checking for $ac_word... " >&6; } 4959if ${ac_cv_prog_AWK+:} false; then : 4960 $as_echo_n "(cached) " >&6 4961else 4962 if test -n "$AWK"; then 4963 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4964else 4965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4966for as_dir in $PATH 4967do 4968 IFS=$as_save_IFS 4969 test -z "$as_dir" && as_dir=. 4970 for ac_exec_ext in '' $ac_executable_extensions; do 4971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4972 ac_cv_prog_AWK="$ac_prog" 4973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4974 break 2 4975 fi 4976done 4977 done 4978IFS=$as_save_IFS 4979 4980fi 4981fi 4982AWK=$ac_cv_prog_AWK 4983if test -n "$AWK"; then 4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4985$as_echo "$AWK" >&6; } 4986else 4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4988$as_echo "no" >&6; } 4989fi 4990 4991 4992 test -n "$AWK" && break 4993done 4994 4995if test "$with_llvm" = yes; then : 4996 4997 4998 4999 5000 5001 if test -z "$LLVM_CONFIG"; then 5002 for ac_prog in llvm-config llvm-config-7 llvm-config-6.0 llvm-config-5.0 llvm-config-4.0 llvm-config-3.9 5003do 5004 # Extract the first word of "$ac_prog", so it can be a program name with args. 5005set dummy $ac_prog; ac_word=$2 5006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5007$as_echo_n "checking for $ac_word... " >&6; } 5008if ${ac_cv_path_LLVM_CONFIG+:} false; then : 5009 $as_echo_n "(cached) " >&6 5010else 5011 case $LLVM_CONFIG in 5012 [\\/]* | ?:[\\/]*) 5013 ac_cv_path_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test with a path. 5014 ;; 5015 *) 5016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5017for as_dir in $PATH 5018do 5019 IFS=$as_save_IFS 5020 test -z "$as_dir" && as_dir=. 5021 for ac_exec_ext in '' $ac_executable_extensions; do 5022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5023 ac_cv_path_LLVM_CONFIG="$as_dir/$ac_word$ac_exec_ext" 5024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5025 break 2 5026 fi 5027done 5028 done 5029IFS=$as_save_IFS 5030 5031 ;; 5032esac 5033fi 5034LLVM_CONFIG=$ac_cv_path_LLVM_CONFIG 5035if test -n "$LLVM_CONFIG"; then 5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5 5037$as_echo "$LLVM_CONFIG" >&6; } 5038else 5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5040$as_echo "no" >&6; } 5041fi 5042 5043 5044 test -n "$LLVM_CONFIG" && break 5045done 5046 5047else 5048 # Report the value of LLVM_CONFIG in configure's output in all cases. 5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LLVM_CONFIG" >&5 5050$as_echo_n "checking for LLVM_CONFIG... " >&6; } 5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5 5052$as_echo "$LLVM_CONFIG" >&6; } 5053fi 5054 5055 5056 # no point continuing if llvm wasn't found 5057 if test -z "$LLVM_CONFIG"; then 5058 as_fn_error $? "llvm-config not found, but required when compiling --with-llvm, specify with LLVM_CONFIG=" "$LINENO" 5 5059 fi 5060 # check if detected $LLVM_CONFIG is executable 5061 pgac_llvm_version="$($LLVM_CONFIG --version 2> /dev/null || echo no)" 5062 if test "x$pgac_llvm_version" = "xno"; then 5063 as_fn_error $? "$LLVM_CONFIG does not work" "$LINENO" 5 5064 fi 5065 # and whether the version is supported 5066 if echo $pgac_llvm_version | $AWK -F '.' '{ if ($1 >= 4 || ($1 == 3 && $2 >= 9)) exit 1; else exit 0;}';then 5067 as_fn_error $? "$LLVM_CONFIG version is $pgac_llvm_version but at least 3.9 is required" "$LINENO" 5 5068 fi 5069 5070 # need clang to create some bitcode files 5071 5072 if test -z "$CLANG"; then 5073 for ac_prog in clang clang-7 clang-6.0 clang-5.0 clang-4.0 clang-3.9 5074do 5075 # Extract the first word of "$ac_prog", so it can be a program name with args. 5076set dummy $ac_prog; ac_word=$2 5077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5078$as_echo_n "checking for $ac_word... " >&6; } 5079if ${ac_cv_path_CLANG+:} false; then : 5080 $as_echo_n "(cached) " >&6 5081else 5082 case $CLANG in 5083 [\\/]* | ?:[\\/]*) 5084 ac_cv_path_CLANG="$CLANG" # Let the user override the test with a path. 5085 ;; 5086 *) 5087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5088for as_dir in $PATH 5089do 5090 IFS=$as_save_IFS 5091 test -z "$as_dir" && as_dir=. 5092 for ac_exec_ext in '' $ac_executable_extensions; do 5093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5094 ac_cv_path_CLANG="$as_dir/$ac_word$ac_exec_ext" 5095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5096 break 2 5097 fi 5098done 5099 done 5100IFS=$as_save_IFS 5101 5102 ;; 5103esac 5104fi 5105CLANG=$ac_cv_path_CLANG 5106if test -n "$CLANG"; then 5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG" >&5 5108$as_echo "$CLANG" >&6; } 5109else 5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5111$as_echo "no" >&6; } 5112fi 5113 5114 5115 test -n "$CLANG" && break 5116done 5117 5118else 5119 # Report the value of CLANG in configure's output in all cases. 5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CLANG" >&5 5121$as_echo_n "checking for CLANG... " >&6; } 5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG" >&5 5123$as_echo "$CLANG" >&6; } 5124fi 5125 5126 if test -z "$CLANG"; then 5127 as_fn_error $? "clang not found, but required when compiling --with-llvm, specify with CLANG=" "$LINENO" 5 5128 fi 5129 # make sure clang is executable 5130 if test "x$($CLANG --version 2> /dev/null || echo no)" = "xno"; then 5131 as_fn_error $? "$CLANG does not work" "$LINENO" 5 5132 fi 5133 # Could check clang version, but it doesn't seem that 5134 # important. Systems with a new enough LLVM version are usually 5135 # going to have a decent clang version too. It's also not entirely 5136 # clear what the minimum version is. 5137 5138 # Collect compiler flags necessary to build the LLVM dependent 5139 # shared library. 5140 for pgac_option in `$LLVM_CONFIG --cppflags`; do 5141 case $pgac_option in 5142 -I*|-D*) LLVM_CPPFLAGS="$pgac_option $LLVM_CPPFLAGS";; 5143 esac 5144 done 5145 5146 for pgac_option in `$LLVM_CONFIG --ldflags`; do 5147 case $pgac_option in 5148 -L*) LDFLAGS="$LDFLAGS $pgac_option";; 5149 esac 5150 done 5151 5152 # ABI influencing options, standard influencing options 5153 for pgac_option in `$LLVM_CONFIG --cxxflags`; do 5154 case $pgac_option in 5155 -fno-rtti*) LLVM_CXXFLAGS="$LLVM_CXXFLAGS $pgac_option";; 5156 -std=*) LLVM_CXXFLAGS="$LLVM_CXXFLAGS $pgac_option";; 5157 esac 5158 done 5159 5160 # Look for components we're interested in, collect necessary 5161 # libs. As some components are optional, we can't just list all of 5162 # them as it'd raise an error. 5163 pgac_components=''; 5164 for pgac_component in `$LLVM_CONFIG --components`; do 5165 case $pgac_component in 5166 engine) pgac_components="$pgac_components $pgac_component";; 5167 debuginfodwarf) pgac_components="$pgac_components $pgac_component";; 5168 orcjit) pgac_components="$pgac_components $pgac_component";; 5169 passes) pgac_components="$pgac_components $pgac_component";; 5170 native) pgac_components="$pgac_components $pgac_component";; 5171 perfjitevents) pgac_components="$pgac_components $pgac_component";; 5172 esac 5173 done; 5174 5175 # And then get the libraries that need to be linked in for the 5176 # selected components. They're large libraries, we only want to 5177 # link them into the LLVM using shared library. 5178 for pgac_option in `$LLVM_CONFIG --libs --system-libs $pgac_components`; do 5179 case $pgac_option in 5180 -l*) LLVM_LIBS="$LLVM_LIBS $pgac_option";; 5181 esac 5182 done 5183 5184 LLVM_BINPATH=`$LLVM_CONFIG --bindir` 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194fi # fi 5195 5196 5197unset CFLAGS 5198unset CXXFLAGS 5199 5200# 5201# Read the template 5202# 5203. "$srcdir/src/template/$template" || exit 5204 5205# C[XX]FLAGS are selected so: 5206# If the user specifies something in the environment, that is used. 5207# else: If the template file set something, that is used. 5208# else: If coverage was enabled, don't set anything. 5209# else: If the compiler is GCC, then we use -O2. 5210# else: If the compiler is something else, then we use -O, unless debugging. 5211 5212if test "$ac_env_CFLAGS_set" = set; then 5213 CFLAGS=$ac_env_CFLAGS_value 5214elif test "${CFLAGS+set}" = set; then 5215 : # (keep what template set) 5216elif test "$enable_coverage" = yes; then 5217 : # no optimization by default 5218elif test "$GCC" = yes; then 5219 CFLAGS="-O2" 5220else 5221 # if the user selected debug mode, don't use -O 5222 if test "$enable_debug" != yes; then 5223 CFLAGS="-O" 5224 fi 5225fi 5226 5227if test "$ac_env_CXXFLAGS_set" = set; then 5228 CXXFLAGS=$ac_env_CXXFLAGS_value 5229elif test "${CXXFLAGS+set}" = set; then 5230 : # (keep what template set) 5231elif test "$enable_coverage" = yes; then 5232 : # no optimization by default 5233elif test "$GCC" = yes; then 5234 CXXFLAGS="-O2" 5235else 5236 # if the user selected debug mode, don't use -O 5237 if test "$enable_debug" != yes; then 5238 CXXFLAGS="-O" 5239 fi 5240fi 5241 5242# When generating bitcode (for inlining) we always want to use -O2 5243# even when --enable-debug is specified. The bitcode it's not going to 5244# be used for line-by-line debugging, and JIT inlining doesn't work 5245# without at least -O1 (otherwise clang will emit 'noinline' 5246# attributes everywhere), which is bad for testing. Still allow the 5247# environment to override if done explicitly. 5248if test "$ac_env_BITCODE_CFLAGS_set" = set; then 5249 BITCODE_CFLAGS=$ac_env_BITCODE_CFLAGS_value 5250else 5251 BITCODE_CFLAGS="-O2 $BITCODE_CFLAGS" 5252fi 5253if test "$ac_env_BITCODE_CXXFLAGS_set" = set; then 5254 BITCODE_CXXFLAGS=$ac_env_BITCODE_CXXFLAGS_value 5255else 5256 BITCODE_CXXFLAGS="-O2 $BITCODE_CXXFLAGS" 5257fi 5258 5259# C[XX]FLAGS we determined above will be added back at the end 5260user_CFLAGS=$CFLAGS 5261CFLAGS="" 5262user_CXXFLAGS=$CXXFLAGS 5263CXXFLAGS="" 5264user_BITCODE_CFLAGS=$BITCODE_CFLAGS 5265BITCODE_CFLAGS="" 5266user_BITCODE_CXXFLAGS=$BITCODE_CXXFLAGS 5267BITCODE_CXXFLAGS="" 5268 5269# set CFLAGS_VECTOR from the environment, if available 5270if test "$ac_env_CFLAGS_VECTOR_set" = set; then 5271 CFLAGS_VECTOR=$ac_env_CFLAGS_VECTOR_value 5272fi 5273 5274# Some versions of GCC support some additional useful warning flags. 5275# Check whether they are supported, and add them to CFLAGS if so. 5276# ICC pretends to be GCC but it's lying; it doesn't support these flags, 5277# but has its own. Also check other compiler-specific flags here. 5278 5279if test "$GCC" = yes -a "$ICC" = no; then 5280 CFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith" 5281 CXXFLAGS="-Wall -Wpointer-arith" 5282 # These work in some but not all gcc versions 5283 save_CFLAGS=$CFLAGS 5284 5285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wdeclaration-after-statement, for CFLAGS" >&5 5286$as_echo_n "checking whether ${CC} supports -Wdeclaration-after-statement, for CFLAGS... " >&6; } 5287if ${pgac_cv_prog_CC_cflags__Wdeclaration_after_statement+:} false; then : 5288 $as_echo_n "(cached) " >&6 5289else 5290 pgac_save_CFLAGS=$CFLAGS 5291pgac_save_CC=$CC 5292CC=${CC} 5293CFLAGS="${CFLAGS} -Wdeclaration-after-statement" 5294ac_save_c_werror_flag=$ac_c_werror_flag 5295ac_c_werror_flag=yes 5296cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5297/* end confdefs.h. */ 5298 5299int 5300main () 5301{ 5302 5303 ; 5304 return 0; 5305} 5306_ACEOF 5307if ac_fn_c_try_compile "$LINENO"; then : 5308 pgac_cv_prog_CC_cflags__Wdeclaration_after_statement=yes 5309else 5310 pgac_cv_prog_CC_cflags__Wdeclaration_after_statement=no 5311fi 5312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5313ac_c_werror_flag=$ac_save_c_werror_flag 5314CFLAGS="$pgac_save_CFLAGS" 5315CC="$pgac_save_CC" 5316fi 5317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wdeclaration_after_statement" >&5 5318$as_echo "$pgac_cv_prog_CC_cflags__Wdeclaration_after_statement" >&6; } 5319if test x"$pgac_cv_prog_CC_cflags__Wdeclaration_after_statement" = x"yes"; then 5320 CFLAGS="${CFLAGS} -Wdeclaration-after-statement" 5321fi 5322 5323 5324 # -Wdeclaration-after-statement isn't applicable for C++. Specific C files 5325 # disable it, so AC_SUBST the negative form. 5326 PERMIT_DECLARATION_AFTER_STATEMENT= 5327 if test x"$save_CFLAGS" != x"$CFLAGS"; then 5328 PERMIT_DECLARATION_AFTER_STATEMENT=-Wno-declaration-after-statement 5329 fi 5330 5331 # Really don't want VLAs to be used in our dialect of C 5332 5333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Werror=vla, for CFLAGS" >&5 5334$as_echo_n "checking whether ${CC} supports -Werror=vla, for CFLAGS... " >&6; } 5335if ${pgac_cv_prog_CC_cflags__Werror_vla+:} false; then : 5336 $as_echo_n "(cached) " >&6 5337else 5338 pgac_save_CFLAGS=$CFLAGS 5339pgac_save_CC=$CC 5340CC=${CC} 5341CFLAGS="${CFLAGS} -Werror=vla" 5342ac_save_c_werror_flag=$ac_c_werror_flag 5343ac_c_werror_flag=yes 5344cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5345/* end confdefs.h. */ 5346 5347int 5348main () 5349{ 5350 5351 ; 5352 return 0; 5353} 5354_ACEOF 5355if ac_fn_c_try_compile "$LINENO"; then : 5356 pgac_cv_prog_CC_cflags__Werror_vla=yes 5357else 5358 pgac_cv_prog_CC_cflags__Werror_vla=no 5359fi 5360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5361ac_c_werror_flag=$ac_save_c_werror_flag 5362CFLAGS="$pgac_save_CFLAGS" 5363CC="$pgac_save_CC" 5364fi 5365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Werror_vla" >&5 5366$as_echo "$pgac_cv_prog_CC_cflags__Werror_vla" >&6; } 5367if test x"$pgac_cv_prog_CC_cflags__Werror_vla" = x"yes"; then 5368 CFLAGS="${CFLAGS} -Werror=vla" 5369fi 5370 5371 5372 # -Wvla is not applicable for C++ 5373 5374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wendif-labels, for CFLAGS" >&5 5375$as_echo_n "checking whether ${CC} supports -Wendif-labels, for CFLAGS... " >&6; } 5376if ${pgac_cv_prog_CC_cflags__Wendif_labels+:} false; then : 5377 $as_echo_n "(cached) " >&6 5378else 5379 pgac_save_CFLAGS=$CFLAGS 5380pgac_save_CC=$CC 5381CC=${CC} 5382CFLAGS="${CFLAGS} -Wendif-labels" 5383ac_save_c_werror_flag=$ac_c_werror_flag 5384ac_c_werror_flag=yes 5385cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5386/* end confdefs.h. */ 5387 5388int 5389main () 5390{ 5391 5392 ; 5393 return 0; 5394} 5395_ACEOF 5396if ac_fn_c_try_compile "$LINENO"; then : 5397 pgac_cv_prog_CC_cflags__Wendif_labels=yes 5398else 5399 pgac_cv_prog_CC_cflags__Wendif_labels=no 5400fi 5401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5402ac_c_werror_flag=$ac_save_c_werror_flag 5403CFLAGS="$pgac_save_CFLAGS" 5404CC="$pgac_save_CC" 5405fi 5406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wendif_labels" >&5 5407$as_echo "$pgac_cv_prog_CC_cflags__Wendif_labels" >&6; } 5408if test x"$pgac_cv_prog_CC_cflags__Wendif_labels" = x"yes"; then 5409 CFLAGS="${CFLAGS} -Wendif-labels" 5410fi 5411 5412 5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wendif-labels, for CXXFLAGS" >&5 5414$as_echo_n "checking whether ${CXX} supports -Wendif-labels, for CXXFLAGS... " >&6; } 5415if ${pgac_cv_prog_CXX_cxxflags__Wendif_labels+:} false; then : 5416 $as_echo_n "(cached) " >&6 5417else 5418 pgac_save_CXXFLAGS=$CXXFLAGS 5419pgac_save_CXX=$CXX 5420CXX=${CXX} 5421CXXFLAGS="${CXXFLAGS} -Wendif-labels" 5422ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5423ac_cxx_werror_flag=yes 5424ac_ext=cpp 5425ac_cpp='$CXXCPP $CPPFLAGS' 5426ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5427ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5428ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5429 5430cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5431/* end confdefs.h. */ 5432 5433int 5434main () 5435{ 5436 5437 ; 5438 return 0; 5439} 5440_ACEOF 5441if ac_fn_cxx_try_compile "$LINENO"; then : 5442 pgac_cv_prog_CXX_cxxflags__Wendif_labels=yes 5443else 5444 pgac_cv_prog_CXX_cxxflags__Wendif_labels=no 5445fi 5446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5447ac_ext=c 5448ac_cpp='$CPP $CPPFLAGS' 5449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5451ac_compiler_gnu=$ac_cv_c_compiler_gnu 5452 5453ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5454CXXFLAGS="$pgac_save_CXXFLAGS" 5455CXX="$pgac_save_CXX" 5456fi 5457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wendif_labels" >&5 5458$as_echo "$pgac_cv_prog_CXX_cxxflags__Wendif_labels" >&6; } 5459if test x"$pgac_cv_prog_CXX_cxxflags__Wendif_labels" = x"yes"; then 5460 CXXFLAGS="${CXXFLAGS} -Wendif-labels" 5461fi 5462 5463 5464 5465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wmissing-format-attribute, for CFLAGS" >&5 5466$as_echo_n "checking whether ${CC} supports -Wmissing-format-attribute, for CFLAGS... " >&6; } 5467if ${pgac_cv_prog_CC_cflags__Wmissing_format_attribute+:} false; then : 5468 $as_echo_n "(cached) " >&6 5469else 5470 pgac_save_CFLAGS=$CFLAGS 5471pgac_save_CC=$CC 5472CC=${CC} 5473CFLAGS="${CFLAGS} -Wmissing-format-attribute" 5474ac_save_c_werror_flag=$ac_c_werror_flag 5475ac_c_werror_flag=yes 5476cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5477/* end confdefs.h. */ 5478 5479int 5480main () 5481{ 5482 5483 ; 5484 return 0; 5485} 5486_ACEOF 5487if ac_fn_c_try_compile "$LINENO"; then : 5488 pgac_cv_prog_CC_cflags__Wmissing_format_attribute=yes 5489else 5490 pgac_cv_prog_CC_cflags__Wmissing_format_attribute=no 5491fi 5492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5493ac_c_werror_flag=$ac_save_c_werror_flag 5494CFLAGS="$pgac_save_CFLAGS" 5495CC="$pgac_save_CC" 5496fi 5497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wmissing_format_attribute" >&5 5498$as_echo "$pgac_cv_prog_CC_cflags__Wmissing_format_attribute" >&6; } 5499if test x"$pgac_cv_prog_CC_cflags__Wmissing_format_attribute" = x"yes"; then 5500 CFLAGS="${CFLAGS} -Wmissing-format-attribute" 5501fi 5502 5503 5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wmissing-format-attribute, for CXXFLAGS" >&5 5505$as_echo_n "checking whether ${CXX} supports -Wmissing-format-attribute, for CXXFLAGS... " >&6; } 5506if ${pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute+:} false; then : 5507 $as_echo_n "(cached) " >&6 5508else 5509 pgac_save_CXXFLAGS=$CXXFLAGS 5510pgac_save_CXX=$CXX 5511CXX=${CXX} 5512CXXFLAGS="${CXXFLAGS} -Wmissing-format-attribute" 5513ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5514ac_cxx_werror_flag=yes 5515ac_ext=cpp 5516ac_cpp='$CXXCPP $CPPFLAGS' 5517ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5518ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5519ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5520 5521cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5522/* end confdefs.h. */ 5523 5524int 5525main () 5526{ 5527 5528 ; 5529 return 0; 5530} 5531_ACEOF 5532if ac_fn_cxx_try_compile "$LINENO"; then : 5533 pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute=yes 5534else 5535 pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute=no 5536fi 5537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5538ac_ext=c 5539ac_cpp='$CPP $CPPFLAGS' 5540ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5541ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5542ac_compiler_gnu=$ac_cv_c_compiler_gnu 5543 5544ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5545CXXFLAGS="$pgac_save_CXXFLAGS" 5546CXX="$pgac_save_CXX" 5547fi 5548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute" >&5 5549$as_echo "$pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute" >&6; } 5550if test x"$pgac_cv_prog_CXX_cxxflags__Wmissing_format_attribute" = x"yes"; then 5551 CXXFLAGS="${CXXFLAGS} -Wmissing-format-attribute" 5552fi 5553 5554 5555 5556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wimplicit-fallthrough=3, for CFLAGS" >&5 5557$as_echo_n "checking whether ${CC} supports -Wimplicit-fallthrough=3, for CFLAGS... " >&6; } 5558if ${pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_3+:} false; then : 5559 $as_echo_n "(cached) " >&6 5560else 5561 pgac_save_CFLAGS=$CFLAGS 5562pgac_save_CC=$CC 5563CC=${CC} 5564CFLAGS="${CFLAGS} -Wimplicit-fallthrough=3" 5565ac_save_c_werror_flag=$ac_c_werror_flag 5566ac_c_werror_flag=yes 5567cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5568/* end confdefs.h. */ 5569 5570int 5571main () 5572{ 5573 5574 ; 5575 return 0; 5576} 5577_ACEOF 5578if ac_fn_c_try_compile "$LINENO"; then : 5579 pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_3=yes 5580else 5581 pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_3=no 5582fi 5583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5584ac_c_werror_flag=$ac_save_c_werror_flag 5585CFLAGS="$pgac_save_CFLAGS" 5586CC="$pgac_save_CC" 5587fi 5588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_3" >&5 5589$as_echo "$pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_3" >&6; } 5590if test x"$pgac_cv_prog_CC_cflags__Wimplicit_fallthrough_3" = x"yes"; then 5591 CFLAGS="${CFLAGS} -Wimplicit-fallthrough=3" 5592fi 5593 5594 5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wimplicit-fallthrough=3, for CXXFLAGS" >&5 5596$as_echo_n "checking whether ${CXX} supports -Wimplicit-fallthrough=3, for CXXFLAGS... " >&6; } 5597if ${pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_3+:} false; then : 5598 $as_echo_n "(cached) " >&6 5599else 5600 pgac_save_CXXFLAGS=$CXXFLAGS 5601pgac_save_CXX=$CXX 5602CXX=${CXX} 5603CXXFLAGS="${CXXFLAGS} -Wimplicit-fallthrough=3" 5604ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5605ac_cxx_werror_flag=yes 5606ac_ext=cpp 5607ac_cpp='$CXXCPP $CPPFLAGS' 5608ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5609ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5610ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5611 5612cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5613/* end confdefs.h. */ 5614 5615int 5616main () 5617{ 5618 5619 ; 5620 return 0; 5621} 5622_ACEOF 5623if ac_fn_cxx_try_compile "$LINENO"; then : 5624 pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_3=yes 5625else 5626 pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_3=no 5627fi 5628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5629ac_ext=c 5630ac_cpp='$CPP $CPPFLAGS' 5631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5633ac_compiler_gnu=$ac_cv_c_compiler_gnu 5634 5635ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5636CXXFLAGS="$pgac_save_CXXFLAGS" 5637CXX="$pgac_save_CXX" 5638fi 5639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_3" >&5 5640$as_echo "$pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_3" >&6; } 5641if test x"$pgac_cv_prog_CXX_cxxflags__Wimplicit_fallthrough_3" = x"yes"; then 5642 CXXFLAGS="${CXXFLAGS} -Wimplicit-fallthrough=3" 5643fi 5644 5645 5646 # This was included in -Wall/-Wformat in older GCC versions 5647 5648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wformat-security, for CFLAGS" >&5 5649$as_echo_n "checking whether ${CC} supports -Wformat-security, for CFLAGS... " >&6; } 5650if ${pgac_cv_prog_CC_cflags__Wformat_security+:} false; then : 5651 $as_echo_n "(cached) " >&6 5652else 5653 pgac_save_CFLAGS=$CFLAGS 5654pgac_save_CC=$CC 5655CC=${CC} 5656CFLAGS="${CFLAGS} -Wformat-security" 5657ac_save_c_werror_flag=$ac_c_werror_flag 5658ac_c_werror_flag=yes 5659cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5660/* end confdefs.h. */ 5661 5662int 5663main () 5664{ 5665 5666 ; 5667 return 0; 5668} 5669_ACEOF 5670if ac_fn_c_try_compile "$LINENO"; then : 5671 pgac_cv_prog_CC_cflags__Wformat_security=yes 5672else 5673 pgac_cv_prog_CC_cflags__Wformat_security=no 5674fi 5675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5676ac_c_werror_flag=$ac_save_c_werror_flag 5677CFLAGS="$pgac_save_CFLAGS" 5678CC="$pgac_save_CC" 5679fi 5680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wformat_security" >&5 5681$as_echo "$pgac_cv_prog_CC_cflags__Wformat_security" >&6; } 5682if test x"$pgac_cv_prog_CC_cflags__Wformat_security" = x"yes"; then 5683 CFLAGS="${CFLAGS} -Wformat-security" 5684fi 5685 5686 5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Wformat-security, for CXXFLAGS" >&5 5688$as_echo_n "checking whether ${CXX} supports -Wformat-security, for CXXFLAGS... " >&6; } 5689if ${pgac_cv_prog_CXX_cxxflags__Wformat_security+:} false; then : 5690 $as_echo_n "(cached) " >&6 5691else 5692 pgac_save_CXXFLAGS=$CXXFLAGS 5693pgac_save_CXX=$CXX 5694CXX=${CXX} 5695CXXFLAGS="${CXXFLAGS} -Wformat-security" 5696ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5697ac_cxx_werror_flag=yes 5698ac_ext=cpp 5699ac_cpp='$CXXCPP $CPPFLAGS' 5700ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5701ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5702ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5703 5704cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5705/* end confdefs.h. */ 5706 5707int 5708main () 5709{ 5710 5711 ; 5712 return 0; 5713} 5714_ACEOF 5715if ac_fn_cxx_try_compile "$LINENO"; then : 5716 pgac_cv_prog_CXX_cxxflags__Wformat_security=yes 5717else 5718 pgac_cv_prog_CXX_cxxflags__Wformat_security=no 5719fi 5720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5721ac_ext=c 5722ac_cpp='$CPP $CPPFLAGS' 5723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5725ac_compiler_gnu=$ac_cv_c_compiler_gnu 5726 5727ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5728CXXFLAGS="$pgac_save_CXXFLAGS" 5729CXX="$pgac_save_CXX" 5730fi 5731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__Wformat_security" >&5 5732$as_echo "$pgac_cv_prog_CXX_cxxflags__Wformat_security" >&6; } 5733if test x"$pgac_cv_prog_CXX_cxxflags__Wformat_security" = x"yes"; then 5734 CXXFLAGS="${CXXFLAGS} -Wformat-security" 5735fi 5736 5737 5738 # Disable strict-aliasing rules; needed for gcc 3.3+ 5739 5740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fno-strict-aliasing, for CFLAGS" >&5 5741$as_echo_n "checking whether ${CC} supports -fno-strict-aliasing, for CFLAGS... " >&6; } 5742if ${pgac_cv_prog_CC_cflags__fno_strict_aliasing+:} false; then : 5743 $as_echo_n "(cached) " >&6 5744else 5745 pgac_save_CFLAGS=$CFLAGS 5746pgac_save_CC=$CC 5747CC=${CC} 5748CFLAGS="${CFLAGS} -fno-strict-aliasing" 5749ac_save_c_werror_flag=$ac_c_werror_flag 5750ac_c_werror_flag=yes 5751cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5752/* end confdefs.h. */ 5753 5754int 5755main () 5756{ 5757 5758 ; 5759 return 0; 5760} 5761_ACEOF 5762if ac_fn_c_try_compile "$LINENO"; then : 5763 pgac_cv_prog_CC_cflags__fno_strict_aliasing=yes 5764else 5765 pgac_cv_prog_CC_cflags__fno_strict_aliasing=no 5766fi 5767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5768ac_c_werror_flag=$ac_save_c_werror_flag 5769CFLAGS="$pgac_save_CFLAGS" 5770CC="$pgac_save_CC" 5771fi 5772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fno_strict_aliasing" >&5 5773$as_echo "$pgac_cv_prog_CC_cflags__fno_strict_aliasing" >&6; } 5774if test x"$pgac_cv_prog_CC_cflags__fno_strict_aliasing" = x"yes"; then 5775 CFLAGS="${CFLAGS} -fno-strict-aliasing" 5776fi 5777 5778 5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fno-strict-aliasing, for CXXFLAGS" >&5 5780$as_echo_n "checking whether ${CXX} supports -fno-strict-aliasing, for CXXFLAGS... " >&6; } 5781if ${pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing+:} false; then : 5782 $as_echo_n "(cached) " >&6 5783else 5784 pgac_save_CXXFLAGS=$CXXFLAGS 5785pgac_save_CXX=$CXX 5786CXX=${CXX} 5787CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing" 5788ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5789ac_cxx_werror_flag=yes 5790ac_ext=cpp 5791ac_cpp='$CXXCPP $CPPFLAGS' 5792ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5793ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5794ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5795 5796cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5797/* end confdefs.h. */ 5798 5799int 5800main () 5801{ 5802 5803 ; 5804 return 0; 5805} 5806_ACEOF 5807if ac_fn_cxx_try_compile "$LINENO"; then : 5808 pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing=yes 5809else 5810 pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing=no 5811fi 5812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5813ac_ext=c 5814ac_cpp='$CPP $CPPFLAGS' 5815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5817ac_compiler_gnu=$ac_cv_c_compiler_gnu 5818 5819ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5820CXXFLAGS="$pgac_save_CXXFLAGS" 5821CXX="$pgac_save_CXX" 5822fi 5823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" >&5 5824$as_echo "$pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" >&6; } 5825if test x"$pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" = x"yes"; then 5826 CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing" 5827fi 5828 5829 5830 # Disable optimizations that assume no overflow; needed for gcc 4.3+ 5831 5832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fwrapv, for CFLAGS" >&5 5833$as_echo_n "checking whether ${CC} supports -fwrapv, for CFLAGS... " >&6; } 5834if ${pgac_cv_prog_CC_cflags__fwrapv+:} false; then : 5835 $as_echo_n "(cached) " >&6 5836else 5837 pgac_save_CFLAGS=$CFLAGS 5838pgac_save_CC=$CC 5839CC=${CC} 5840CFLAGS="${CFLAGS} -fwrapv" 5841ac_save_c_werror_flag=$ac_c_werror_flag 5842ac_c_werror_flag=yes 5843cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5844/* end confdefs.h. */ 5845 5846int 5847main () 5848{ 5849 5850 ; 5851 return 0; 5852} 5853_ACEOF 5854if ac_fn_c_try_compile "$LINENO"; then : 5855 pgac_cv_prog_CC_cflags__fwrapv=yes 5856else 5857 pgac_cv_prog_CC_cflags__fwrapv=no 5858fi 5859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5860ac_c_werror_flag=$ac_save_c_werror_flag 5861CFLAGS="$pgac_save_CFLAGS" 5862CC="$pgac_save_CC" 5863fi 5864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fwrapv" >&5 5865$as_echo "$pgac_cv_prog_CC_cflags__fwrapv" >&6; } 5866if test x"$pgac_cv_prog_CC_cflags__fwrapv" = x"yes"; then 5867 CFLAGS="${CFLAGS} -fwrapv" 5868fi 5869 5870 5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fwrapv, for CXXFLAGS" >&5 5872$as_echo_n "checking whether ${CXX} supports -fwrapv, for CXXFLAGS... " >&6; } 5873if ${pgac_cv_prog_CXX_cxxflags__fwrapv+:} false; then : 5874 $as_echo_n "(cached) " >&6 5875else 5876 pgac_save_CXXFLAGS=$CXXFLAGS 5877pgac_save_CXX=$CXX 5878CXX=${CXX} 5879CXXFLAGS="${CXXFLAGS} -fwrapv" 5880ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5881ac_cxx_werror_flag=yes 5882ac_ext=cpp 5883ac_cpp='$CXXCPP $CPPFLAGS' 5884ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5885ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5886ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5887 5888cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5889/* end confdefs.h. */ 5890 5891int 5892main () 5893{ 5894 5895 ; 5896 return 0; 5897} 5898_ACEOF 5899if ac_fn_cxx_try_compile "$LINENO"; then : 5900 pgac_cv_prog_CXX_cxxflags__fwrapv=yes 5901else 5902 pgac_cv_prog_CXX_cxxflags__fwrapv=no 5903fi 5904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5905ac_ext=c 5906ac_cpp='$CPP $CPPFLAGS' 5907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5909ac_compiler_gnu=$ac_cv_c_compiler_gnu 5910 5911ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5912CXXFLAGS="$pgac_save_CXXFLAGS" 5913CXX="$pgac_save_CXX" 5914fi 5915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fwrapv" >&5 5916$as_echo "$pgac_cv_prog_CXX_cxxflags__fwrapv" >&6; } 5917if test x"$pgac_cv_prog_CXX_cxxflags__fwrapv" = x"yes"; then 5918 CXXFLAGS="${CXXFLAGS} -fwrapv" 5919fi 5920 5921 5922 # Disable FP optimizations that cause various errors on gcc 4.5+ or maybe 4.6+ 5923 5924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fexcess-precision=standard, for CFLAGS" >&5 5925$as_echo_n "checking whether ${CC} supports -fexcess-precision=standard, for CFLAGS... " >&6; } 5926if ${pgac_cv_prog_CC_cflags__fexcess_precision_standard+:} false; then : 5927 $as_echo_n "(cached) " >&6 5928else 5929 pgac_save_CFLAGS=$CFLAGS 5930pgac_save_CC=$CC 5931CC=${CC} 5932CFLAGS="${CFLAGS} -fexcess-precision=standard" 5933ac_save_c_werror_flag=$ac_c_werror_flag 5934ac_c_werror_flag=yes 5935cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5936/* end confdefs.h. */ 5937 5938int 5939main () 5940{ 5941 5942 ; 5943 return 0; 5944} 5945_ACEOF 5946if ac_fn_c_try_compile "$LINENO"; then : 5947 pgac_cv_prog_CC_cflags__fexcess_precision_standard=yes 5948else 5949 pgac_cv_prog_CC_cflags__fexcess_precision_standard=no 5950fi 5951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5952ac_c_werror_flag=$ac_save_c_werror_flag 5953CFLAGS="$pgac_save_CFLAGS" 5954CC="$pgac_save_CC" 5955fi 5956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fexcess_precision_standard" >&5 5957$as_echo "$pgac_cv_prog_CC_cflags__fexcess_precision_standard" >&6; } 5958if test x"$pgac_cv_prog_CC_cflags__fexcess_precision_standard" = x"yes"; then 5959 CFLAGS="${CFLAGS} -fexcess-precision=standard" 5960fi 5961 5962 5963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fexcess-precision=standard, for CXXFLAGS" >&5 5964$as_echo_n "checking whether ${CXX} supports -fexcess-precision=standard, for CXXFLAGS... " >&6; } 5965if ${pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard+:} false; then : 5966 $as_echo_n "(cached) " >&6 5967else 5968 pgac_save_CXXFLAGS=$CXXFLAGS 5969pgac_save_CXX=$CXX 5970CXX=${CXX} 5971CXXFLAGS="${CXXFLAGS} -fexcess-precision=standard" 5972ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5973ac_cxx_werror_flag=yes 5974ac_ext=cpp 5975ac_cpp='$CXXCPP $CPPFLAGS' 5976ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5977ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5978ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5979 5980cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5981/* end confdefs.h. */ 5982 5983int 5984main () 5985{ 5986 5987 ; 5988 return 0; 5989} 5990_ACEOF 5991if ac_fn_cxx_try_compile "$LINENO"; then : 5992 pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard=yes 5993else 5994 pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard=no 5995fi 5996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5997ac_ext=c 5998ac_cpp='$CPP $CPPFLAGS' 5999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6001ac_compiler_gnu=$ac_cv_c_compiler_gnu 6002 6003ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6004CXXFLAGS="$pgac_save_CXXFLAGS" 6005CXX="$pgac_save_CXX" 6006fi 6007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard" >&5 6008$as_echo "$pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard" >&6; } 6009if test x"$pgac_cv_prog_CXX_cxxflags__fexcess_precision_standard" = x"yes"; then 6010 CXXFLAGS="${CXXFLAGS} -fexcess-precision=standard" 6011fi 6012 6013 6014 # Optimization flags for specific files that benefit from vectorization 6015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -funroll-loops, for CFLAGS_VECTOR" >&5 6016$as_echo_n "checking whether ${CC} supports -funroll-loops, for CFLAGS_VECTOR... " >&6; } 6017if ${pgac_cv_prog_CC_cflags__funroll_loops+:} false; then : 6018 $as_echo_n "(cached) " >&6 6019else 6020 pgac_save_CFLAGS=$CFLAGS 6021pgac_save_CC=$CC 6022CC=${CC} 6023CFLAGS="${CFLAGS_VECTOR} -funroll-loops" 6024ac_save_c_werror_flag=$ac_c_werror_flag 6025ac_c_werror_flag=yes 6026cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6027/* end confdefs.h. */ 6028 6029int 6030main () 6031{ 6032 6033 ; 6034 return 0; 6035} 6036_ACEOF 6037if ac_fn_c_try_compile "$LINENO"; then : 6038 pgac_cv_prog_CC_cflags__funroll_loops=yes 6039else 6040 pgac_cv_prog_CC_cflags__funroll_loops=no 6041fi 6042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6043ac_c_werror_flag=$ac_save_c_werror_flag 6044CFLAGS="$pgac_save_CFLAGS" 6045CC="$pgac_save_CC" 6046fi 6047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__funroll_loops" >&5 6048$as_echo "$pgac_cv_prog_CC_cflags__funroll_loops" >&6; } 6049if test x"$pgac_cv_prog_CC_cflags__funroll_loops" = x"yes"; then 6050 CFLAGS_VECTOR="${CFLAGS_VECTOR} -funroll-loops" 6051fi 6052 6053 6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -ftree-vectorize, for CFLAGS_VECTOR" >&5 6055$as_echo_n "checking whether ${CC} supports -ftree-vectorize, for CFLAGS_VECTOR... " >&6; } 6056if ${pgac_cv_prog_CC_cflags__ftree_vectorize+:} false; then : 6057 $as_echo_n "(cached) " >&6 6058else 6059 pgac_save_CFLAGS=$CFLAGS 6060pgac_save_CC=$CC 6061CC=${CC} 6062CFLAGS="${CFLAGS_VECTOR} -ftree-vectorize" 6063ac_save_c_werror_flag=$ac_c_werror_flag 6064ac_c_werror_flag=yes 6065cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6066/* end confdefs.h. */ 6067 6068int 6069main () 6070{ 6071 6072 ; 6073 return 0; 6074} 6075_ACEOF 6076if ac_fn_c_try_compile "$LINENO"; then : 6077 pgac_cv_prog_CC_cflags__ftree_vectorize=yes 6078else 6079 pgac_cv_prog_CC_cflags__ftree_vectorize=no 6080fi 6081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6082ac_c_werror_flag=$ac_save_c_werror_flag 6083CFLAGS="$pgac_save_CFLAGS" 6084CC="$pgac_save_CC" 6085fi 6086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__ftree_vectorize" >&5 6087$as_echo "$pgac_cv_prog_CC_cflags__ftree_vectorize" >&6; } 6088if test x"$pgac_cv_prog_CC_cflags__ftree_vectorize" = x"yes"; then 6089 CFLAGS_VECTOR="${CFLAGS_VECTOR} -ftree-vectorize" 6090fi 6091 6092 6093 # We want to suppress clang's unhelpful unused-command-line-argument warnings 6094 # but gcc won't complain about unrecognized -Wno-foo switches, so we have to 6095 # test for the positive form and if that works, add the negative form 6096 NOT_THE_CFLAGS="" 6097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wunused-command-line-argument, for NOT_THE_CFLAGS" >&5 6098$as_echo_n "checking whether ${CC} supports -Wunused-command-line-argument, for NOT_THE_CFLAGS... " >&6; } 6099if ${pgac_cv_prog_CC_cflags__Wunused_command_line_argument+:} false; then : 6100 $as_echo_n "(cached) " >&6 6101else 6102 pgac_save_CFLAGS=$CFLAGS 6103pgac_save_CC=$CC 6104CC=${CC} 6105CFLAGS="${NOT_THE_CFLAGS} -Wunused-command-line-argument" 6106ac_save_c_werror_flag=$ac_c_werror_flag 6107ac_c_werror_flag=yes 6108cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6109/* end confdefs.h. */ 6110 6111int 6112main () 6113{ 6114 6115 ; 6116 return 0; 6117} 6118_ACEOF 6119if ac_fn_c_try_compile "$LINENO"; then : 6120 pgac_cv_prog_CC_cflags__Wunused_command_line_argument=yes 6121else 6122 pgac_cv_prog_CC_cflags__Wunused_command_line_argument=no 6123fi 6124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6125ac_c_werror_flag=$ac_save_c_werror_flag 6126CFLAGS="$pgac_save_CFLAGS" 6127CC="$pgac_save_CC" 6128fi 6129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wunused_command_line_argument" >&5 6130$as_echo "$pgac_cv_prog_CC_cflags__Wunused_command_line_argument" >&6; } 6131if test x"$pgac_cv_prog_CC_cflags__Wunused_command_line_argument" = x"yes"; then 6132 NOT_THE_CFLAGS="${NOT_THE_CFLAGS} -Wunused-command-line-argument" 6133fi 6134 6135 6136 if test -n "$NOT_THE_CFLAGS"; then 6137 CFLAGS="$CFLAGS -Wno-unused-command-line-argument" 6138 fi 6139 # Similarly disable useless truncation warnings from gcc 8+ 6140 NOT_THE_CFLAGS="" 6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wformat-truncation, for NOT_THE_CFLAGS" >&5 6142$as_echo_n "checking whether ${CC} supports -Wformat-truncation, for NOT_THE_CFLAGS... " >&6; } 6143if ${pgac_cv_prog_CC_cflags__Wformat_truncation+:} false; then : 6144 $as_echo_n "(cached) " >&6 6145else 6146 pgac_save_CFLAGS=$CFLAGS 6147pgac_save_CC=$CC 6148CC=${CC} 6149CFLAGS="${NOT_THE_CFLAGS} -Wformat-truncation" 6150ac_save_c_werror_flag=$ac_c_werror_flag 6151ac_c_werror_flag=yes 6152cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6153/* end confdefs.h. */ 6154 6155int 6156main () 6157{ 6158 6159 ; 6160 return 0; 6161} 6162_ACEOF 6163if ac_fn_c_try_compile "$LINENO"; then : 6164 pgac_cv_prog_CC_cflags__Wformat_truncation=yes 6165else 6166 pgac_cv_prog_CC_cflags__Wformat_truncation=no 6167fi 6168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6169ac_c_werror_flag=$ac_save_c_werror_flag 6170CFLAGS="$pgac_save_CFLAGS" 6171CC="$pgac_save_CC" 6172fi 6173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wformat_truncation" >&5 6174$as_echo "$pgac_cv_prog_CC_cflags__Wformat_truncation" >&6; } 6175if test x"$pgac_cv_prog_CC_cflags__Wformat_truncation" = x"yes"; then 6176 NOT_THE_CFLAGS="${NOT_THE_CFLAGS} -Wformat-truncation" 6177fi 6178 6179 6180 if test -n "$NOT_THE_CFLAGS"; then 6181 CFLAGS="$CFLAGS -Wno-format-truncation" 6182 fi 6183 NOT_THE_CFLAGS="" 6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wstringop-truncation, for NOT_THE_CFLAGS" >&5 6185$as_echo_n "checking whether ${CC} supports -Wstringop-truncation, for NOT_THE_CFLAGS... " >&6; } 6186if ${pgac_cv_prog_CC_cflags__Wstringop_truncation+:} false; then : 6187 $as_echo_n "(cached) " >&6 6188else 6189 pgac_save_CFLAGS=$CFLAGS 6190pgac_save_CC=$CC 6191CC=${CC} 6192CFLAGS="${NOT_THE_CFLAGS} -Wstringop-truncation" 6193ac_save_c_werror_flag=$ac_c_werror_flag 6194ac_c_werror_flag=yes 6195cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6196/* end confdefs.h. */ 6197 6198int 6199main () 6200{ 6201 6202 ; 6203 return 0; 6204} 6205_ACEOF 6206if ac_fn_c_try_compile "$LINENO"; then : 6207 pgac_cv_prog_CC_cflags__Wstringop_truncation=yes 6208else 6209 pgac_cv_prog_CC_cflags__Wstringop_truncation=no 6210fi 6211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6212ac_c_werror_flag=$ac_save_c_werror_flag 6213CFLAGS="$pgac_save_CFLAGS" 6214CC="$pgac_save_CC" 6215fi 6216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wstringop_truncation" >&5 6217$as_echo "$pgac_cv_prog_CC_cflags__Wstringop_truncation" >&6; } 6218if test x"$pgac_cv_prog_CC_cflags__Wstringop_truncation" = x"yes"; then 6219 NOT_THE_CFLAGS="${NOT_THE_CFLAGS} -Wstringop-truncation" 6220fi 6221 6222 6223 if test -n "$NOT_THE_CFLAGS"; then 6224 CFLAGS="$CFLAGS -Wno-stringop-truncation" 6225 fi 6226elif test "$ICC" = yes; then 6227 # Intel's compiler has a bug/misoptimization in checking for 6228 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS. 6229 6230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -mp1, for CFLAGS" >&5 6231$as_echo_n "checking whether ${CC} supports -mp1, for CFLAGS... " >&6; } 6232if ${pgac_cv_prog_CC_cflags__mp1+:} false; then : 6233 $as_echo_n "(cached) " >&6 6234else 6235 pgac_save_CFLAGS=$CFLAGS 6236pgac_save_CC=$CC 6237CC=${CC} 6238CFLAGS="${CFLAGS} -mp1" 6239ac_save_c_werror_flag=$ac_c_werror_flag 6240ac_c_werror_flag=yes 6241cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6242/* end confdefs.h. */ 6243 6244int 6245main () 6246{ 6247 6248 ; 6249 return 0; 6250} 6251_ACEOF 6252if ac_fn_c_try_compile "$LINENO"; then : 6253 pgac_cv_prog_CC_cflags__mp1=yes 6254else 6255 pgac_cv_prog_CC_cflags__mp1=no 6256fi 6257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6258ac_c_werror_flag=$ac_save_c_werror_flag 6259CFLAGS="$pgac_save_CFLAGS" 6260CC="$pgac_save_CC" 6261fi 6262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__mp1" >&5 6263$as_echo "$pgac_cv_prog_CC_cflags__mp1" >&6; } 6264if test x"$pgac_cv_prog_CC_cflags__mp1" = x"yes"; then 6265 CFLAGS="${CFLAGS} -mp1" 6266fi 6267 6268 6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -mp1, for CXXFLAGS" >&5 6270$as_echo_n "checking whether ${CXX} supports -mp1, for CXXFLAGS... " >&6; } 6271if ${pgac_cv_prog_CXX_cxxflags__mp1+:} false; then : 6272 $as_echo_n "(cached) " >&6 6273else 6274 pgac_save_CXXFLAGS=$CXXFLAGS 6275pgac_save_CXX=$CXX 6276CXX=${CXX} 6277CXXFLAGS="${CXXFLAGS} -mp1" 6278ac_save_cxx_werror_flag=$ac_cxx_werror_flag 6279ac_cxx_werror_flag=yes 6280ac_ext=cpp 6281ac_cpp='$CXXCPP $CPPFLAGS' 6282ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6283ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6284ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6285 6286cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6287/* end confdefs.h. */ 6288 6289int 6290main () 6291{ 6292 6293 ; 6294 return 0; 6295} 6296_ACEOF 6297if ac_fn_cxx_try_compile "$LINENO"; then : 6298 pgac_cv_prog_CXX_cxxflags__mp1=yes 6299else 6300 pgac_cv_prog_CXX_cxxflags__mp1=no 6301fi 6302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6303ac_ext=c 6304ac_cpp='$CPP $CPPFLAGS' 6305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6307ac_compiler_gnu=$ac_cv_c_compiler_gnu 6308 6309ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6310CXXFLAGS="$pgac_save_CXXFLAGS" 6311CXX="$pgac_save_CXX" 6312fi 6313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__mp1" >&5 6314$as_echo "$pgac_cv_prog_CXX_cxxflags__mp1" >&6; } 6315if test x"$pgac_cv_prog_CXX_cxxflags__mp1" = x"yes"; then 6316 CXXFLAGS="${CXXFLAGS} -mp1" 6317fi 6318 6319 6320 # Make sure strict aliasing is off (though this is said to be the default) 6321 6322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -fno-strict-aliasing, for CFLAGS" >&5 6323$as_echo_n "checking whether ${CC} supports -fno-strict-aliasing, for CFLAGS... " >&6; } 6324if ${pgac_cv_prog_CC_cflags__fno_strict_aliasing+:} false; then : 6325 $as_echo_n "(cached) " >&6 6326else 6327 pgac_save_CFLAGS=$CFLAGS 6328pgac_save_CC=$CC 6329CC=${CC} 6330CFLAGS="${CFLAGS} -fno-strict-aliasing" 6331ac_save_c_werror_flag=$ac_c_werror_flag 6332ac_c_werror_flag=yes 6333cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6334/* end confdefs.h. */ 6335 6336int 6337main () 6338{ 6339 6340 ; 6341 return 0; 6342} 6343_ACEOF 6344if ac_fn_c_try_compile "$LINENO"; then : 6345 pgac_cv_prog_CC_cflags__fno_strict_aliasing=yes 6346else 6347 pgac_cv_prog_CC_cflags__fno_strict_aliasing=no 6348fi 6349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6350ac_c_werror_flag=$ac_save_c_werror_flag 6351CFLAGS="$pgac_save_CFLAGS" 6352CC="$pgac_save_CC" 6353fi 6354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__fno_strict_aliasing" >&5 6355$as_echo "$pgac_cv_prog_CC_cflags__fno_strict_aliasing" >&6; } 6356if test x"$pgac_cv_prog_CC_cflags__fno_strict_aliasing" = x"yes"; then 6357 CFLAGS="${CFLAGS} -fno-strict-aliasing" 6358fi 6359 6360 6361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -fno-strict-aliasing, for CXXFLAGS" >&5 6362$as_echo_n "checking whether ${CXX} supports -fno-strict-aliasing, for CXXFLAGS... " >&6; } 6363if ${pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing+:} false; then : 6364 $as_echo_n "(cached) " >&6 6365else 6366 pgac_save_CXXFLAGS=$CXXFLAGS 6367pgac_save_CXX=$CXX 6368CXX=${CXX} 6369CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing" 6370ac_save_cxx_werror_flag=$ac_cxx_werror_flag 6371ac_cxx_werror_flag=yes 6372ac_ext=cpp 6373ac_cpp='$CXXCPP $CPPFLAGS' 6374ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6375ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6376ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6377 6378cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6379/* end confdefs.h. */ 6380 6381int 6382main () 6383{ 6384 6385 ; 6386 return 0; 6387} 6388_ACEOF 6389if ac_fn_cxx_try_compile "$LINENO"; then : 6390 pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing=yes 6391else 6392 pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing=no 6393fi 6394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6395ac_ext=c 6396ac_cpp='$CPP $CPPFLAGS' 6397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6399ac_compiler_gnu=$ac_cv_c_compiler_gnu 6400 6401ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6402CXXFLAGS="$pgac_save_CXXFLAGS" 6403CXX="$pgac_save_CXX" 6404fi 6405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" >&5 6406$as_echo "$pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" >&6; } 6407if test x"$pgac_cv_prog_CXX_cxxflags__fno_strict_aliasing" = x"yes"; then 6408 CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing" 6409fi 6410 6411 6412elif test "$PORTNAME" = "aix"; then 6413 # AIX's xlc has to have strict aliasing turned off too 6414 6415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -qnoansialias, for CFLAGS" >&5 6416$as_echo_n "checking whether ${CC} supports -qnoansialias, for CFLAGS... " >&6; } 6417if ${pgac_cv_prog_CC_cflags__qnoansialias+:} false; then : 6418 $as_echo_n "(cached) " >&6 6419else 6420 pgac_save_CFLAGS=$CFLAGS 6421pgac_save_CC=$CC 6422CC=${CC} 6423CFLAGS="${CFLAGS} -qnoansialias" 6424ac_save_c_werror_flag=$ac_c_werror_flag 6425ac_c_werror_flag=yes 6426cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6427/* end confdefs.h. */ 6428 6429int 6430main () 6431{ 6432 6433 ; 6434 return 0; 6435} 6436_ACEOF 6437if ac_fn_c_try_compile "$LINENO"; then : 6438 pgac_cv_prog_CC_cflags__qnoansialias=yes 6439else 6440 pgac_cv_prog_CC_cflags__qnoansialias=no 6441fi 6442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6443ac_c_werror_flag=$ac_save_c_werror_flag 6444CFLAGS="$pgac_save_CFLAGS" 6445CC="$pgac_save_CC" 6446fi 6447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__qnoansialias" >&5 6448$as_echo "$pgac_cv_prog_CC_cflags__qnoansialias" >&6; } 6449if test x"$pgac_cv_prog_CC_cflags__qnoansialias" = x"yes"; then 6450 CFLAGS="${CFLAGS} -qnoansialias" 6451fi 6452 6453 6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -qnoansialias, for CXXFLAGS" >&5 6455$as_echo_n "checking whether ${CXX} supports -qnoansialias, for CXXFLAGS... " >&6; } 6456if ${pgac_cv_prog_CXX_cxxflags__qnoansialias+:} false; then : 6457 $as_echo_n "(cached) " >&6 6458else 6459 pgac_save_CXXFLAGS=$CXXFLAGS 6460pgac_save_CXX=$CXX 6461CXX=${CXX} 6462CXXFLAGS="${CXXFLAGS} -qnoansialias" 6463ac_save_cxx_werror_flag=$ac_cxx_werror_flag 6464ac_cxx_werror_flag=yes 6465ac_ext=cpp 6466ac_cpp='$CXXCPP $CPPFLAGS' 6467ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6468ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6469ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6470 6471cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6472/* end confdefs.h. */ 6473 6474int 6475main () 6476{ 6477 6478 ; 6479 return 0; 6480} 6481_ACEOF 6482if ac_fn_cxx_try_compile "$LINENO"; then : 6483 pgac_cv_prog_CXX_cxxflags__qnoansialias=yes 6484else 6485 pgac_cv_prog_CXX_cxxflags__qnoansialias=no 6486fi 6487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6488ac_ext=c 6489ac_cpp='$CPP $CPPFLAGS' 6490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6492ac_compiler_gnu=$ac_cv_c_compiler_gnu 6493 6494ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6495CXXFLAGS="$pgac_save_CXXFLAGS" 6496CXX="$pgac_save_CXX" 6497fi 6498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__qnoansialias" >&5 6499$as_echo "$pgac_cv_prog_CXX_cxxflags__qnoansialias" >&6; } 6500if test x"$pgac_cv_prog_CXX_cxxflags__qnoansialias" = x"yes"; then 6501 CXXFLAGS="${CXXFLAGS} -qnoansialias" 6502fi 6503 6504 6505 6506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -qlonglong, for CFLAGS" >&5 6507$as_echo_n "checking whether ${CC} supports -qlonglong, for CFLAGS... " >&6; } 6508if ${pgac_cv_prog_CC_cflags__qlonglong+:} false; then : 6509 $as_echo_n "(cached) " >&6 6510else 6511 pgac_save_CFLAGS=$CFLAGS 6512pgac_save_CC=$CC 6513CC=${CC} 6514CFLAGS="${CFLAGS} -qlonglong" 6515ac_save_c_werror_flag=$ac_c_werror_flag 6516ac_c_werror_flag=yes 6517cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6518/* end confdefs.h. */ 6519 6520int 6521main () 6522{ 6523 6524 ; 6525 return 0; 6526} 6527_ACEOF 6528if ac_fn_c_try_compile "$LINENO"; then : 6529 pgac_cv_prog_CC_cflags__qlonglong=yes 6530else 6531 pgac_cv_prog_CC_cflags__qlonglong=no 6532fi 6533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6534ac_c_werror_flag=$ac_save_c_werror_flag 6535CFLAGS="$pgac_save_CFLAGS" 6536CC="$pgac_save_CC" 6537fi 6538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__qlonglong" >&5 6539$as_echo "$pgac_cv_prog_CC_cflags__qlonglong" >&6; } 6540if test x"$pgac_cv_prog_CC_cflags__qlonglong" = x"yes"; then 6541 CFLAGS="${CFLAGS} -qlonglong" 6542fi 6543 6544 6545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -qlonglong, for CXXFLAGS" >&5 6546$as_echo_n "checking whether ${CXX} supports -qlonglong, for CXXFLAGS... " >&6; } 6547if ${pgac_cv_prog_CXX_cxxflags__qlonglong+:} false; then : 6548 $as_echo_n "(cached) " >&6 6549else 6550 pgac_save_CXXFLAGS=$CXXFLAGS 6551pgac_save_CXX=$CXX 6552CXX=${CXX} 6553CXXFLAGS="${CXXFLAGS} -qlonglong" 6554ac_save_cxx_werror_flag=$ac_cxx_werror_flag 6555ac_cxx_werror_flag=yes 6556ac_ext=cpp 6557ac_cpp='$CXXCPP $CPPFLAGS' 6558ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6559ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6560ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6561 6562cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6563/* end confdefs.h. */ 6564 6565int 6566main () 6567{ 6568 6569 ; 6570 return 0; 6571} 6572_ACEOF 6573if ac_fn_cxx_try_compile "$LINENO"; then : 6574 pgac_cv_prog_CXX_cxxflags__qlonglong=yes 6575else 6576 pgac_cv_prog_CXX_cxxflags__qlonglong=no 6577fi 6578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6579ac_ext=c 6580ac_cpp='$CPP $CPPFLAGS' 6581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6583ac_compiler_gnu=$ac_cv_c_compiler_gnu 6584 6585ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6586CXXFLAGS="$pgac_save_CXXFLAGS" 6587CXX="$pgac_save_CXX" 6588fi 6589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags__qlonglong" >&5 6590$as_echo "$pgac_cv_prog_CXX_cxxflags__qlonglong" >&6; } 6591if test x"$pgac_cv_prog_CXX_cxxflags__qlonglong" = x"yes"; then 6592 CXXFLAGS="${CXXFLAGS} -qlonglong" 6593fi 6594 6595 6596elif test "$PORTNAME" = "hpux"; then 6597 # On some versions of HP-UX, libm functions do not set errno by default. 6598 # Fix that by using +Olibmerrno if the compiler recognizes it. 6599 6600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports +Olibmerrno, for CFLAGS" >&5 6601$as_echo_n "checking whether ${CC} supports +Olibmerrno, for CFLAGS... " >&6; } 6602if ${pgac_cv_prog_CC_cflags_pOlibmerrno+:} false; then : 6603 $as_echo_n "(cached) " >&6 6604else 6605 pgac_save_CFLAGS=$CFLAGS 6606pgac_save_CC=$CC 6607CC=${CC} 6608CFLAGS="${CFLAGS} +Olibmerrno" 6609ac_save_c_werror_flag=$ac_c_werror_flag 6610ac_c_werror_flag=yes 6611cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6612/* end confdefs.h. */ 6613 6614int 6615main () 6616{ 6617 6618 ; 6619 return 0; 6620} 6621_ACEOF 6622if ac_fn_c_try_compile "$LINENO"; then : 6623 pgac_cv_prog_CC_cflags_pOlibmerrno=yes 6624else 6625 pgac_cv_prog_CC_cflags_pOlibmerrno=no 6626fi 6627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6628ac_c_werror_flag=$ac_save_c_werror_flag 6629CFLAGS="$pgac_save_CFLAGS" 6630CC="$pgac_save_CC" 6631fi 6632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags_pOlibmerrno" >&5 6633$as_echo "$pgac_cv_prog_CC_cflags_pOlibmerrno" >&6; } 6634if test x"$pgac_cv_prog_CC_cflags_pOlibmerrno" = x"yes"; then 6635 CFLAGS="${CFLAGS} +Olibmerrno" 6636fi 6637 6638 6639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports +Olibmerrno, for CXXFLAGS" >&5 6640$as_echo_n "checking whether ${CXX} supports +Olibmerrno, for CXXFLAGS... " >&6; } 6641if ${pgac_cv_prog_CXX_cxxflags_pOlibmerrno+:} false; then : 6642 $as_echo_n "(cached) " >&6 6643else 6644 pgac_save_CXXFLAGS=$CXXFLAGS 6645pgac_save_CXX=$CXX 6646CXX=${CXX} 6647CXXFLAGS="${CXXFLAGS} +Olibmerrno" 6648ac_save_cxx_werror_flag=$ac_cxx_werror_flag 6649ac_cxx_werror_flag=yes 6650ac_ext=cpp 6651ac_cpp='$CXXCPP $CPPFLAGS' 6652ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6653ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6654ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6655 6656cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6657/* end confdefs.h. */ 6658 6659int 6660main () 6661{ 6662 6663 ; 6664 return 0; 6665} 6666_ACEOF 6667if ac_fn_cxx_try_compile "$LINENO"; then : 6668 pgac_cv_prog_CXX_cxxflags_pOlibmerrno=yes 6669else 6670 pgac_cv_prog_CXX_cxxflags_pOlibmerrno=no 6671fi 6672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6673ac_ext=c 6674ac_cpp='$CPP $CPPFLAGS' 6675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6677ac_compiler_gnu=$ac_cv_c_compiler_gnu 6678 6679ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6680CXXFLAGS="$pgac_save_CXXFLAGS" 6681CXX="$pgac_save_CXX" 6682fi 6683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CXX_cxxflags_pOlibmerrno" >&5 6684$as_echo "$pgac_cv_prog_CXX_cxxflags_pOlibmerrno" >&6; } 6685if test x"$pgac_cv_prog_CXX_cxxflags_pOlibmerrno" = x"yes"; then 6686 CXXFLAGS="${CXXFLAGS} +Olibmerrno" 6687fi 6688 6689 6690fi 6691 6692 6693 6694# Determine flags used to emit bitcode for JIT inlining. Need to test 6695# for behaviour changing compiler flags, to keep compatibility with 6696# compiler used for normal postgres code. 6697if test "$with_llvm" = yes ; then 6698 CLANGXX="$CLANG -xc++" 6699 6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -fno-strict-aliasing, for BITCODE_CFLAGS" >&5 6701$as_echo_n "checking whether ${CLANG} supports -fno-strict-aliasing, for BITCODE_CFLAGS... " >&6; } 6702if ${pgac_cv_prog_CLANG_cflags__fno_strict_aliasing+:} false; then : 6703 $as_echo_n "(cached) " >&6 6704else 6705 pgac_save_CFLAGS=$CFLAGS 6706pgac_save_CC=$CC 6707CC=${CLANG} 6708CFLAGS="${BITCODE_CFLAGS} -fno-strict-aliasing" 6709ac_save_c_werror_flag=$ac_c_werror_flag 6710ac_c_werror_flag=yes 6711cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6712/* end confdefs.h. */ 6713 6714int 6715main () 6716{ 6717 6718 ; 6719 return 0; 6720} 6721_ACEOF 6722if ac_fn_c_try_compile "$LINENO"; then : 6723 pgac_cv_prog_CLANG_cflags__fno_strict_aliasing=yes 6724else 6725 pgac_cv_prog_CLANG_cflags__fno_strict_aliasing=no 6726fi 6727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6728ac_c_werror_flag=$ac_save_c_werror_flag 6729CFLAGS="$pgac_save_CFLAGS" 6730CC="$pgac_save_CC" 6731fi 6732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__fno_strict_aliasing" >&5 6733$as_echo "$pgac_cv_prog_CLANG_cflags__fno_strict_aliasing" >&6; } 6734if test x"$pgac_cv_prog_CLANG_cflags__fno_strict_aliasing" = x"yes"; then 6735 BITCODE_CFLAGS="${BITCODE_CFLAGS} -fno-strict-aliasing" 6736fi 6737 6738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANGXX} supports -fno-strict-aliasing, for BITCODE_CXXFLAGS" >&5 6739$as_echo_n "checking whether ${CLANGXX} supports -fno-strict-aliasing, for BITCODE_CXXFLAGS... " >&6; } 6740if ${pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing+:} false; then : 6741 $as_echo_n "(cached) " >&6 6742else 6743 pgac_save_CXXFLAGS=$CXXFLAGS 6744pgac_save_CXX=$CXX 6745CXX=${CLANGXX} 6746CXXFLAGS="${BITCODE_CXXFLAGS} -fno-strict-aliasing" 6747ac_save_cxx_werror_flag=$ac_cxx_werror_flag 6748ac_cxx_werror_flag=yes 6749ac_ext=cpp 6750ac_cpp='$CXXCPP $CPPFLAGS' 6751ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6752ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6753ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6754 6755cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6756/* end confdefs.h. */ 6757 6758int 6759main () 6760{ 6761 6762 ; 6763 return 0; 6764} 6765_ACEOF 6766if ac_fn_cxx_try_compile "$LINENO"; then : 6767 pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing=yes 6768else 6769 pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing=no 6770fi 6771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6772ac_ext=c 6773ac_cpp='$CPP $CPPFLAGS' 6774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6776ac_compiler_gnu=$ac_cv_c_compiler_gnu 6777 6778ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6779CXXFLAGS="$pgac_save_CXXFLAGS" 6780CXX="$pgac_save_CXX" 6781fi 6782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing" >&5 6783$as_echo "$pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing" >&6; } 6784if test x"$pgac_cv_prog_CLANGXX_cxxflags__fno_strict_aliasing" = x"yes"; then 6785 BITCODE_CXXFLAGS="${BITCODE_CXXFLAGS} -fno-strict-aliasing" 6786fi 6787 6788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -fwrapv, for BITCODE_CFLAGS" >&5 6789$as_echo_n "checking whether ${CLANG} supports -fwrapv, for BITCODE_CFLAGS... " >&6; } 6790if ${pgac_cv_prog_CLANG_cflags__fwrapv+:} false; then : 6791 $as_echo_n "(cached) " >&6 6792else 6793 pgac_save_CFLAGS=$CFLAGS 6794pgac_save_CC=$CC 6795CC=${CLANG} 6796CFLAGS="${BITCODE_CFLAGS} -fwrapv" 6797ac_save_c_werror_flag=$ac_c_werror_flag 6798ac_c_werror_flag=yes 6799cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6800/* end confdefs.h. */ 6801 6802int 6803main () 6804{ 6805 6806 ; 6807 return 0; 6808} 6809_ACEOF 6810if ac_fn_c_try_compile "$LINENO"; then : 6811 pgac_cv_prog_CLANG_cflags__fwrapv=yes 6812else 6813 pgac_cv_prog_CLANG_cflags__fwrapv=no 6814fi 6815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6816ac_c_werror_flag=$ac_save_c_werror_flag 6817CFLAGS="$pgac_save_CFLAGS" 6818CC="$pgac_save_CC" 6819fi 6820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__fwrapv" >&5 6821$as_echo "$pgac_cv_prog_CLANG_cflags__fwrapv" >&6; } 6822if test x"$pgac_cv_prog_CLANG_cflags__fwrapv" = x"yes"; then 6823 BITCODE_CFLAGS="${BITCODE_CFLAGS} -fwrapv" 6824fi 6825 6826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANGXX} supports -fwrapv, for BITCODE_CXXFLAGS" >&5 6827$as_echo_n "checking whether ${CLANGXX} supports -fwrapv, for BITCODE_CXXFLAGS... " >&6; } 6828if ${pgac_cv_prog_CLANGXX_cxxflags__fwrapv+:} false; then : 6829 $as_echo_n "(cached) " >&6 6830else 6831 pgac_save_CXXFLAGS=$CXXFLAGS 6832pgac_save_CXX=$CXX 6833CXX=${CLANGXX} 6834CXXFLAGS="${BITCODE_CXXFLAGS} -fwrapv" 6835ac_save_cxx_werror_flag=$ac_cxx_werror_flag 6836ac_cxx_werror_flag=yes 6837ac_ext=cpp 6838ac_cpp='$CXXCPP $CPPFLAGS' 6839ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6840ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6841ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6842 6843cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6844/* end confdefs.h. */ 6845 6846int 6847main () 6848{ 6849 6850 ; 6851 return 0; 6852} 6853_ACEOF 6854if ac_fn_cxx_try_compile "$LINENO"; then : 6855 pgac_cv_prog_CLANGXX_cxxflags__fwrapv=yes 6856else 6857 pgac_cv_prog_CLANGXX_cxxflags__fwrapv=no 6858fi 6859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6860ac_ext=c 6861ac_cpp='$CPP $CPPFLAGS' 6862ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6863ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6864ac_compiler_gnu=$ac_cv_c_compiler_gnu 6865 6866ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6867CXXFLAGS="$pgac_save_CXXFLAGS" 6868CXX="$pgac_save_CXX" 6869fi 6870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANGXX_cxxflags__fwrapv" >&5 6871$as_echo "$pgac_cv_prog_CLANGXX_cxxflags__fwrapv" >&6; } 6872if test x"$pgac_cv_prog_CLANGXX_cxxflags__fwrapv" = x"yes"; then 6873 BITCODE_CXXFLAGS="${BITCODE_CXXFLAGS} -fwrapv" 6874fi 6875 6876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANG} supports -fexcess-precision=standard, for BITCODE_CFLAGS" >&5 6877$as_echo_n "checking whether ${CLANG} supports -fexcess-precision=standard, for BITCODE_CFLAGS... " >&6; } 6878if ${pgac_cv_prog_CLANG_cflags__fexcess_precision_standard+:} false; then : 6879 $as_echo_n "(cached) " >&6 6880else 6881 pgac_save_CFLAGS=$CFLAGS 6882pgac_save_CC=$CC 6883CC=${CLANG} 6884CFLAGS="${BITCODE_CFLAGS} -fexcess-precision=standard" 6885ac_save_c_werror_flag=$ac_c_werror_flag 6886ac_c_werror_flag=yes 6887cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6888/* end confdefs.h. */ 6889 6890int 6891main () 6892{ 6893 6894 ; 6895 return 0; 6896} 6897_ACEOF 6898if ac_fn_c_try_compile "$LINENO"; then : 6899 pgac_cv_prog_CLANG_cflags__fexcess_precision_standard=yes 6900else 6901 pgac_cv_prog_CLANG_cflags__fexcess_precision_standard=no 6902fi 6903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6904ac_c_werror_flag=$ac_save_c_werror_flag 6905CFLAGS="$pgac_save_CFLAGS" 6906CC="$pgac_save_CC" 6907fi 6908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANG_cflags__fexcess_precision_standard" >&5 6909$as_echo "$pgac_cv_prog_CLANG_cflags__fexcess_precision_standard" >&6; } 6910if test x"$pgac_cv_prog_CLANG_cflags__fexcess_precision_standard" = x"yes"; then 6911 BITCODE_CFLAGS="${BITCODE_CFLAGS} -fexcess-precision=standard" 6912fi 6913 6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CLANGXX} supports -fexcess-precision=standard, for BITCODE_CXXFLAGS" >&5 6915$as_echo_n "checking whether ${CLANGXX} supports -fexcess-precision=standard, for BITCODE_CXXFLAGS... " >&6; } 6916if ${pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard+:} false; then : 6917 $as_echo_n "(cached) " >&6 6918else 6919 pgac_save_CXXFLAGS=$CXXFLAGS 6920pgac_save_CXX=$CXX 6921CXX=${CLANGXX} 6922CXXFLAGS="${BITCODE_CXXFLAGS} -fexcess-precision=standard" 6923ac_save_cxx_werror_flag=$ac_cxx_werror_flag 6924ac_cxx_werror_flag=yes 6925ac_ext=cpp 6926ac_cpp='$CXXCPP $CPPFLAGS' 6927ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6928ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6929ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6930 6931cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6932/* end confdefs.h. */ 6933 6934int 6935main () 6936{ 6937 6938 ; 6939 return 0; 6940} 6941_ACEOF 6942if ac_fn_cxx_try_compile "$LINENO"; then : 6943 pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard=yes 6944else 6945 pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard=no 6946fi 6947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6948ac_ext=c 6949ac_cpp='$CPP $CPPFLAGS' 6950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6952ac_compiler_gnu=$ac_cv_c_compiler_gnu 6953 6954ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6955CXXFLAGS="$pgac_save_CXXFLAGS" 6956CXX="$pgac_save_CXX" 6957fi 6958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard" >&5 6959$as_echo "$pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard" >&6; } 6960if test x"$pgac_cv_prog_CLANGXX_cxxflags__fexcess_precision_standard" = x"yes"; then 6961 BITCODE_CXXFLAGS="${BITCODE_CXXFLAGS} -fexcess-precision=standard" 6962fi 6963 6964fi 6965 6966# supply -g if --enable-debug 6967if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then 6968 CFLAGS="$CFLAGS -g" 6969fi 6970 6971if test "$enable_debug" = yes && test "$ac_cv_prog_cxx_g" = yes; then 6972 CXXFLAGS="$CXXFLAGS -g" 6973fi 6974 6975# enable code coverage if --enable-coverage 6976if test "$enable_coverage" = yes; then 6977 if test "$GCC" = yes; then 6978 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage" 6979 CXXFLAGS="$CXXFLAGS -fprofile-arcs -ftest-coverage" 6980 else 6981 as_fn_error $? "--enable-coverage is supported only when using GCC" "$LINENO" 5 6982 fi 6983fi 6984 6985# enable profiling if --enable-profiling 6986if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then 6987 if test "$GCC" = yes; then 6988 6989$as_echo "#define PROFILE_PID_DIR 1" >>confdefs.h 6990 6991 CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS" 6992 CXXFLAGS="$CXXFLAGS -pg $PLATFORM_PROFILE_FLAGS" 6993 else 6994 as_fn_error $? "--enable-profiling is supported only when using GCC" "$LINENO" 5 6995 fi 6996fi 6997 6998# We already have this in Makefile.win32, but configure needs it too 6999if test "$PORTNAME" = "win32"; then 7000 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32" 7001fi 7002 7003# Now that we're done automatically adding stuff to C[XX]FLAGS, put back the 7004# user-specified flags (if any) at the end. This lets users override 7005# the automatic additions. 7006CFLAGS="$CFLAGS $user_CFLAGS" 7007CXXFLAGS="$CXXFLAGS $user_CXXFLAGS" 7008BITCODE_CFLAGS="$BITCODE_CFLAGS $user_BITCODE_CFLAGS" 7009BITCODE_CXXFLAGS="$BITCODE_CXXFLAGS $user_BITCODE_CXXFLAGS" 7010 7011 7012 7013 7014# The template file must set up CFLAGS_SL; we don't support user override 7015 7016 7017# Check if the compiler still works with the final flag settings 7018# (note, we're not checking that for CXX, which is optional) 7019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler still works" >&5 7020$as_echo_n "checking whether the C compiler still works... " >&6; } 7021cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7022/* end confdefs.h. */ 7023 7024int 7025main () 7026{ 7027return 0; 7028 ; 7029 return 0; 7030} 7031_ACEOF 7032if ac_fn_c_try_link "$LINENO"; then : 7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7034$as_echo "yes" >&6; } 7035else 7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7037$as_echo "no" >&6; } 7038 as_fn_error $? "cannot proceed" "$LINENO" 5 7039fi 7040rm -f core conftest.err conftest.$ac_objext \ 7041 conftest$ac_exeext conftest.$ac_ext 7042 7043# Defend against gcc -ffast-math 7044if test "$GCC" = yes; then 7045cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7046/* end confdefs.h. */ 7047 7048int 7049main () 7050{ 7051#ifdef __FAST_MATH__ 7052choke me 7053#endif 7054 ; 7055 return 0; 7056} 7057_ACEOF 7058if ac_fn_c_try_compile "$LINENO"; then : 7059 7060else 7061 as_fn_error $? "do not put -ffast-math in CFLAGS" "$LINENO" 5 7062fi 7063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7064fi 7065 7066# Defend against clang being used on x86-32 without SSE2 enabled. As current 7067# versions of clang do not understand -fexcess-precision=standard, the use of 7068# x87 floating point operations leads to problems like isinf possibly returning 7069# false for a value that is infinite when converted from the 80bit register to 7070# the 8byte memory representation. 7071# 7072# Only perform the test if the compiler doesn't understand 7073# -fexcess-precision=standard, that way a potentially fixed compiler will work 7074# automatically. 7075if test "$pgac_cv_prog_CC_cflags__fexcess_precision_standard" = no; then 7076cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7077/* end confdefs.h. */ 7078 7079int 7080main () 7081{ 7082 7083#if defined(__clang__) && defined(__i386__) && !defined(__SSE2_MATH__) 7084choke me 7085#endif 7086 7087 ; 7088 return 0; 7089} 7090_ACEOF 7091if ac_fn_c_try_compile "$LINENO"; then : 7092 7093else 7094 as_fn_error $? "Compiling PostgreSQL with clang, on 32bit x86, requires SSE2 support. Use -msse2 or use gcc." "$LINENO" 5 7095fi 7096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7097fi 7098 7099ac_ext=c 7100ac_cpp='$CPP $CPPFLAGS' 7101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7103ac_compiler_gnu=$ac_cv_c_compiler_gnu 7104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7105$as_echo_n "checking how to run the C preprocessor... " >&6; } 7106# On Suns, sometimes $CPP names a directory. 7107if test -n "$CPP" && test -d "$CPP"; then 7108 CPP= 7109fi 7110if test -z "$CPP"; then 7111 if ${ac_cv_prog_CPP+:} false; then : 7112 $as_echo_n "(cached) " >&6 7113else 7114 # Double quotes because CPP needs to be expanded 7115 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7116 do 7117 ac_preproc_ok=false 7118for ac_c_preproc_warn_flag in '' yes 7119do 7120 # Use a header file that comes with gcc, so configuring glibc 7121 # with a fresh cross-compiler works. 7122 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7123 # <limits.h> exists even on freestanding compilers. 7124 # On the NeXT, cc -E runs the code through the compiler's parser, 7125 # not just through cpp. "Syntax error" is here to catch this case. 7126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7127/* end confdefs.h. */ 7128#ifdef __STDC__ 7129# include <limits.h> 7130#else 7131# include <assert.h> 7132#endif 7133 Syntax error 7134_ACEOF 7135if ac_fn_c_try_cpp "$LINENO"; then : 7136 7137else 7138 # Broken: fails on valid input. 7139continue 7140fi 7141rm -f conftest.err conftest.i conftest.$ac_ext 7142 7143 # OK, works on sane cases. Now check whether nonexistent headers 7144 # can be detected and how. 7145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7146/* end confdefs.h. */ 7147#include <ac_nonexistent.h> 7148_ACEOF 7149if ac_fn_c_try_cpp "$LINENO"; then : 7150 # Broken: success on invalid input. 7151continue 7152else 7153 # Passes both tests. 7154ac_preproc_ok=: 7155break 7156fi 7157rm -f conftest.err conftest.i conftest.$ac_ext 7158 7159done 7160# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7161rm -f conftest.i conftest.err conftest.$ac_ext 7162if $ac_preproc_ok; then : 7163 break 7164fi 7165 7166 done 7167 ac_cv_prog_CPP=$CPP 7168 7169fi 7170 CPP=$ac_cv_prog_CPP 7171else 7172 ac_cv_prog_CPP=$CPP 7173fi 7174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7175$as_echo "$CPP" >&6; } 7176ac_preproc_ok=false 7177for ac_c_preproc_warn_flag in '' yes 7178do 7179 # Use a header file that comes with gcc, so configuring glibc 7180 # with a fresh cross-compiler works. 7181 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7182 # <limits.h> exists even on freestanding compilers. 7183 # On the NeXT, cc -E runs the code through the compiler's parser, 7184 # not just through cpp. "Syntax error" is here to catch this case. 7185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7186/* end confdefs.h. */ 7187#ifdef __STDC__ 7188# include <limits.h> 7189#else 7190# include <assert.h> 7191#endif 7192 Syntax error 7193_ACEOF 7194if ac_fn_c_try_cpp "$LINENO"; then : 7195 7196else 7197 # Broken: fails on valid input. 7198continue 7199fi 7200rm -f conftest.err conftest.i conftest.$ac_ext 7201 7202 # OK, works on sane cases. Now check whether nonexistent headers 7203 # can be detected and how. 7204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7205/* end confdefs.h. */ 7206#include <ac_nonexistent.h> 7207_ACEOF 7208if ac_fn_c_try_cpp "$LINENO"; then : 7209 # Broken: success on invalid input. 7210continue 7211else 7212 # Passes both tests. 7213ac_preproc_ok=: 7214break 7215fi 7216rm -f conftest.err conftest.i conftest.$ac_ext 7217 7218done 7219# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7220rm -f conftest.i conftest.err conftest.$ac_ext 7221if $ac_preproc_ok; then : 7222 7223else 7224 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7225$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7226as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7227See \`config.log' for more details" "$LINENO" 5; } 7228fi 7229 7230ac_ext=c 7231ac_cpp='$CPP $CPPFLAGS' 7232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7234ac_compiler_gnu=$ac_cv_c_compiler_gnu 7235 7236 7237 7238 7239# 7240# Set up TAS assembly code if needed; the template file has now had its 7241# chance to request this. 7242# 7243ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}" 7244 7245 7246if test "$need_tas" = yes ; then 7247 TAS=tas.o 7248else 7249 TAS="" 7250fi 7251 7252 7253# 7254# Set up pkg_config in case we need it below 7255# 7256 7257 7258 7259 7260 7261 7262 7263if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 7264 if test -n "$ac_tool_prefix"; then 7265 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 7266set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 7267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7268$as_echo_n "checking for $ac_word... " >&6; } 7269if ${ac_cv_path_PKG_CONFIG+:} false; then : 7270 $as_echo_n "(cached) " >&6 7271else 7272 case $PKG_CONFIG in 7273 [\\/]* | ?:[\\/]*) 7274 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 7275 ;; 7276 *) 7277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7278for as_dir in $PATH 7279do 7280 IFS=$as_save_IFS 7281 test -z "$as_dir" && as_dir=. 7282 for ac_exec_ext in '' $ac_executable_extensions; do 7283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7284 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 7285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7286 break 2 7287 fi 7288done 7289 done 7290IFS=$as_save_IFS 7291 7292 ;; 7293esac 7294fi 7295PKG_CONFIG=$ac_cv_path_PKG_CONFIG 7296if test -n "$PKG_CONFIG"; then 7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 7298$as_echo "$PKG_CONFIG" >&6; } 7299else 7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7301$as_echo "no" >&6; } 7302fi 7303 7304 7305fi 7306if test -z "$ac_cv_path_PKG_CONFIG"; then 7307 ac_pt_PKG_CONFIG=$PKG_CONFIG 7308 # Extract the first word of "pkg-config", so it can be a program name with args. 7309set dummy pkg-config; ac_word=$2 7310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7311$as_echo_n "checking for $ac_word... " >&6; } 7312if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 7313 $as_echo_n "(cached) " >&6 7314else 7315 case $ac_pt_PKG_CONFIG in 7316 [\\/]* | ?:[\\/]*) 7317 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 7318 ;; 7319 *) 7320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7321for as_dir in $PATH 7322do 7323 IFS=$as_save_IFS 7324 test -z "$as_dir" && as_dir=. 7325 for ac_exec_ext in '' $ac_executable_extensions; do 7326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7327 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 7328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7329 break 2 7330 fi 7331done 7332 done 7333IFS=$as_save_IFS 7334 7335 ;; 7336esac 7337fi 7338ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 7339if test -n "$ac_pt_PKG_CONFIG"; then 7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 7341$as_echo "$ac_pt_PKG_CONFIG" >&6; } 7342else 7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7344$as_echo "no" >&6; } 7345fi 7346 7347 if test "x$ac_pt_PKG_CONFIG" = x; then 7348 PKG_CONFIG="" 7349 else 7350 case $cross_compiling:$ac_tool_warned in 7351yes:) 7352{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7353$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7354ac_tool_warned=yes ;; 7355esac 7356 PKG_CONFIG=$ac_pt_PKG_CONFIG 7357 fi 7358else 7359 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 7360fi 7361 7362fi 7363if test -n "$PKG_CONFIG"; then 7364 _pkg_min_version=0.9.0 7365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 7366$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 7367 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7369$as_echo "yes" >&6; } 7370 else 7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7372$as_echo "no" >&6; } 7373 PKG_CONFIG="" 7374 fi 7375fi 7376 7377# 7378# Automatic dependency tracking 7379# 7380 7381 7382# Check whether --enable-depend was given. 7383if test "${enable_depend+set}" = set; then : 7384 enableval=$enable_depend; 7385 case $enableval in 7386 yes) 7387 autodepend=yes 7388 ;; 7389 no) 7390 : 7391 ;; 7392 *) 7393 as_fn_error $? "no argument expected for --enable-depend option" "$LINENO" 5 7394 ;; 7395 esac 7396 7397else 7398 enable_depend=no 7399 7400fi 7401 7402 7403 7404 7405 7406# 7407# Enable assert checks 7408# 7409 7410 7411# Check whether --enable-cassert was given. 7412if test "${enable_cassert+set}" = set; then : 7413 enableval=$enable_cassert; 7414 case $enableval in 7415 yes) 7416 7417$as_echo "#define USE_ASSERT_CHECKING 1" >>confdefs.h 7418 7419 ;; 7420 no) 7421 : 7422 ;; 7423 *) 7424 as_fn_error $? "no argument expected for --enable-cassert option" "$LINENO" 5 7425 ;; 7426 esac 7427 7428else 7429 enable_cassert=no 7430 7431fi 7432 7433 7434 7435 7436# 7437# Include directories 7438# 7439ac_save_IFS=$IFS 7440IFS="${IFS}${PATH_SEPARATOR}" 7441# SRCH_INC comes from the template file 7442for dir in $with_includes $SRCH_INC; do 7443 if test -d "$dir"; then 7444 INCLUDES="$INCLUDES -I$dir" 7445 else 7446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Include directory $dir does not exist." >&5 7447$as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;} 7448 fi 7449done 7450IFS=$ac_save_IFS 7451 7452 7453 7454# 7455# Library directories 7456# 7457ac_save_IFS=$IFS 7458IFS="${IFS}${PATH_SEPARATOR}" 7459# LIBRARY_DIRS comes from command line, SRCH_LIB from template file. 7460for dir in $LIBRARY_DIRS $SRCH_LIB; do 7461 if test -d "$dir"; then 7462 LIBDIRS="$LIBDIRS -L$dir" 7463 else 7464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Library directory $dir does not exist." >&5 7465$as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;} 7466 fi 7467done 7468IFS=$ac_save_IFS 7469 7470# 7471# Enable thread-safe client libraries 7472# 7473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking allow thread-safe client libraries" >&5 7474$as_echo_n "checking allow thread-safe client libraries... " >&6; } 7475 7476 7477# Check whether --enable-thread-safety was given. 7478if test "${enable_thread_safety+set}" = set; then : 7479 enableval=$enable_thread_safety; 7480 case $enableval in 7481 yes) 7482 : 7483 ;; 7484 no) 7485 : 7486 ;; 7487 *) 7488 as_fn_error $? "no argument expected for --enable-thread-safety option" "$LINENO" 5 7489 ;; 7490 esac 7491 7492else 7493 enable_thread_safety=yes 7494 7495fi 7496 7497 7498if test "$enable_thread_safety" = yes; then 7499 7500$as_echo "#define ENABLE_THREAD_SAFETY 1" >>confdefs.h 7501 7502fi 7503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_thread_safety" >&5 7504$as_echo "$enable_thread_safety" >&6; } 7505 7506 7507# 7508# ICU 7509# 7510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with ICU support" >&5 7511$as_echo_n "checking whether to build with ICU support... " >&6; } 7512 7513 7514 7515# Check whether --with-icu was given. 7516if test "${with_icu+set}" = set; then : 7517 withval=$with_icu; 7518 case $withval in 7519 yes) 7520 7521$as_echo "#define USE_ICU 1" >>confdefs.h 7522 7523 ;; 7524 no) 7525 : 7526 ;; 7527 *) 7528 as_fn_error $? "no argument expected for --with-icu option" "$LINENO" 5 7529 ;; 7530 esac 7531 7532else 7533 with_icu=no 7534 7535fi 7536 7537 7538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_icu" >&5 7539$as_echo "$with_icu" >&6; } 7540 7541 7542if test "$with_icu" = yes; then 7543 7544pkg_failed=no 7545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for icu-uc icu-i18n" >&5 7546$as_echo_n "checking for icu-uc icu-i18n... " >&6; } 7547 7548if test -n "$ICU_CFLAGS"; then 7549 pkg_cv_ICU_CFLAGS="$ICU_CFLAGS" 7550 elif test -n "$PKG_CONFIG"; then 7551 if test -n "$PKG_CONFIG" && \ 7552 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc icu-i18n\""; } >&5 7553 ($PKG_CONFIG --exists --print-errors "icu-uc icu-i18n") 2>&5 7554 ac_status=$? 7555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7556 test $ac_status = 0; }; then 7557 pkg_cv_ICU_CFLAGS=`$PKG_CONFIG --cflags "icu-uc icu-i18n" 2>/dev/null` 7558 test "x$?" != "x0" && pkg_failed=yes 7559else 7560 pkg_failed=yes 7561fi 7562 else 7563 pkg_failed=untried 7564fi 7565if test -n "$ICU_LIBS"; then 7566 pkg_cv_ICU_LIBS="$ICU_LIBS" 7567 elif test -n "$PKG_CONFIG"; then 7568 if test -n "$PKG_CONFIG" && \ 7569 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc icu-i18n\""; } >&5 7570 ($PKG_CONFIG --exists --print-errors "icu-uc icu-i18n") 2>&5 7571 ac_status=$? 7572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7573 test $ac_status = 0; }; then 7574 pkg_cv_ICU_LIBS=`$PKG_CONFIG --libs "icu-uc icu-i18n" 2>/dev/null` 7575 test "x$?" != "x0" && pkg_failed=yes 7576else 7577 pkg_failed=yes 7578fi 7579 else 7580 pkg_failed=untried 7581fi 7582 7583 7584 7585if test $pkg_failed = yes; then 7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7587$as_echo "no" >&6; } 7588 7589if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 7590 _pkg_short_errors_supported=yes 7591else 7592 _pkg_short_errors_supported=no 7593fi 7594 if test $_pkg_short_errors_supported = yes; then 7595 ICU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "icu-uc icu-i18n" 2>&1` 7596 else 7597 ICU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "icu-uc icu-i18n" 2>&1` 7598 fi 7599 # Put the nasty error message in config.log where it belongs 7600 echo "$ICU_PKG_ERRORS" >&5 7601 7602 as_fn_error $? "Package requirements (icu-uc icu-i18n) were not met: 7603 7604$ICU_PKG_ERRORS 7605 7606Consider adjusting the PKG_CONFIG_PATH environment variable if you 7607installed software in a non-standard prefix. 7608 7609Alternatively, you may set the environment variables ICU_CFLAGS 7610and ICU_LIBS to avoid the need to call pkg-config. 7611See the pkg-config man page for more details." "$LINENO" 5 7612elif test $pkg_failed = untried; then 7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7614$as_echo "no" >&6; } 7615 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7616$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7617as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 7618is in your PATH or set the PKG_CONFIG environment variable to the full 7619path to pkg-config. 7620 7621Alternatively, you may set the environment variables ICU_CFLAGS 7622and ICU_LIBS to avoid the need to call pkg-config. 7623See the pkg-config man page for more details. 7624 7625To get pkg-config, see <http://pkg-config.freedesktop.org/>. 7626See \`config.log' for more details" "$LINENO" 5; } 7627else 7628 ICU_CFLAGS=$pkg_cv_ICU_CFLAGS 7629 ICU_LIBS=$pkg_cv_ICU_LIBS 7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7631$as_echo "yes" >&6; } 7632 7633fi 7634fi 7635 7636# 7637# Optionally build Tcl modules (PL/Tcl) 7638# 7639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with Tcl" >&5 7640$as_echo_n "checking whether to build with Tcl... " >&6; } 7641 7642 7643 7644# Check whether --with-tcl was given. 7645if test "${with_tcl+set}" = set; then : 7646 withval=$with_tcl; 7647 case $withval in 7648 yes) 7649 : 7650 ;; 7651 no) 7652 : 7653 ;; 7654 *) 7655 as_fn_error $? "no argument expected for --with-tcl option" "$LINENO" 5 7656 ;; 7657 esac 7658 7659else 7660 with_tcl=no 7661 7662fi 7663 7664 7665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcl" >&5 7666$as_echo "$with_tcl" >&6; } 7667 7668 7669# We see if the path to the Tcl/Tk configuration scripts is specified. 7670# This will override the use of tclsh to find the paths to search. 7671 7672 7673 7674 7675# Check whether --with-tclconfig was given. 7676if test "${with_tclconfig+set}" = set; then : 7677 withval=$with_tclconfig; 7678 case $withval in 7679 yes) 7680 as_fn_error $? "argument required for --with-tclconfig option" "$LINENO" 5 7681 ;; 7682 no) 7683 as_fn_error $? "argument required for --with-tclconfig option" "$LINENO" 5 7684 ;; 7685 *) 7686 7687 ;; 7688 esac 7689 7690fi 7691 7692 7693 7694# 7695# Optionally build Perl modules (PL/Perl) 7696# 7697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Perl modules" >&5 7698$as_echo_n "checking whether to build Perl modules... " >&6; } 7699 7700 7701 7702# Check whether --with-perl was given. 7703if test "${with_perl+set}" = set; then : 7704 withval=$with_perl; 7705 case $withval in 7706 yes) 7707 : 7708 ;; 7709 no) 7710 : 7711 ;; 7712 *) 7713 as_fn_error $? "no argument expected for --with-perl option" "$LINENO" 5 7714 ;; 7715 esac 7716 7717else 7718 with_perl=no 7719 7720fi 7721 7722 7723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_perl" >&5 7724$as_echo "$with_perl" >&6; } 7725 7726 7727# 7728# Optionally build Python modules (PL/Python) 7729# 7730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Python modules" >&5 7731$as_echo_n "checking whether to build Python modules... " >&6; } 7732 7733 7734 7735# Check whether --with-python was given. 7736if test "${with_python+set}" = set; then : 7737 withval=$with_python; 7738 case $withval in 7739 yes) 7740 : 7741 ;; 7742 no) 7743 : 7744 ;; 7745 *) 7746 as_fn_error $? "no argument expected for --with-python option" "$LINENO" 5 7747 ;; 7748 esac 7749 7750else 7751 with_python=no 7752 7753fi 7754 7755 7756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5 7757$as_echo "$with_python" >&6; } 7758 7759 7760# 7761# GSSAPI 7762# 7763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with GSSAPI support" >&5 7764$as_echo_n "checking whether to build with GSSAPI support... " >&6; } 7765 7766 7767 7768# Check whether --with-gssapi was given. 7769if test "${with_gssapi+set}" = set; then : 7770 withval=$with_gssapi; 7771 case $withval in 7772 yes) 7773 7774 7775$as_echo "#define ENABLE_GSS 1" >>confdefs.h 7776 7777 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab" 7778 7779 ;; 7780 no) 7781 : 7782 ;; 7783 *) 7784 as_fn_error $? "no argument expected for --with-gssapi option" "$LINENO" 5 7785 ;; 7786 esac 7787 7788else 7789 with_gssapi=no 7790 7791fi 7792 7793 7794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_gssapi" >&5 7795$as_echo "$with_gssapi" >&6; } 7796 7797 7798 7799 7800 7801 7802# 7803# Kerberos configuration parameters 7804# 7805 7806 7807 7808# Check whether --with-krb-srvnam was given. 7809if test "${with_krb_srvnam+set}" = set; then : 7810 withval=$with_krb_srvnam; 7811 case $withval in 7812 yes) 7813 as_fn_error $? "argument required for --with-krb-srvnam option" "$LINENO" 5 7814 ;; 7815 no) 7816 as_fn_error $? "argument required for --with-krb-srvnam option" "$LINENO" 5 7817 ;; 7818 *) 7819 7820 ;; 7821 esac 7822 7823else 7824 with_krb_srvnam="postgres" 7825fi 7826 7827 7828 7829 7830cat >>confdefs.h <<_ACEOF 7831#define PG_KRB_SRVNAM "$with_krb_srvnam" 7832_ACEOF 7833 7834 7835 7836# 7837# PAM 7838# 7839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with PAM support" >&5 7840$as_echo_n "checking whether to build with PAM support... " >&6; } 7841 7842 7843 7844# Check whether --with-pam was given. 7845if test "${with_pam+set}" = set; then : 7846 withval=$with_pam; 7847 case $withval in 7848 yes) 7849 7850$as_echo "#define USE_PAM 1" >>confdefs.h 7851 7852 ;; 7853 no) 7854 : 7855 ;; 7856 *) 7857 as_fn_error $? "no argument expected for --with-pam option" "$LINENO" 5 7858 ;; 7859 esac 7860 7861else 7862 with_pam=no 7863 7864fi 7865 7866 7867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pam" >&5 7868$as_echo "$with_pam" >&6; } 7869 7870 7871# 7872# BSD AUTH 7873# 7874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with BSD Authentication support" >&5 7875$as_echo_n "checking whether to build with BSD Authentication support... " >&6; } 7876 7877 7878 7879# Check whether --with-bsd-auth was given. 7880if test "${with_bsd_auth+set}" = set; then : 7881 withval=$with_bsd_auth; 7882 case $withval in 7883 yes) 7884 7885$as_echo "#define USE_BSD_AUTH 1" >>confdefs.h 7886 7887 ;; 7888 no) 7889 : 7890 ;; 7891 *) 7892 as_fn_error $? "no argument expected for --with-bsd-auth option" "$LINENO" 5 7893 ;; 7894 esac 7895 7896else 7897 with_bsd_auth=no 7898 7899fi 7900 7901 7902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_bsd_auth" >&5 7903$as_echo "$with_bsd_auth" >&6; } 7904 7905 7906# 7907# LDAP 7908# 7909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with LDAP support" >&5 7910$as_echo_n "checking whether to build with LDAP support... " >&6; } 7911 7912 7913 7914# Check whether --with-ldap was given. 7915if test "${with_ldap+set}" = set; then : 7916 withval=$with_ldap; 7917 case $withval in 7918 yes) 7919 7920$as_echo "#define USE_LDAP 1" >>confdefs.h 7921 7922 ;; 7923 no) 7924 : 7925 ;; 7926 *) 7927 as_fn_error $? "no argument expected for --with-ldap option" "$LINENO" 5 7928 ;; 7929 esac 7930 7931else 7932 with_ldap=no 7933 7934fi 7935 7936 7937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ldap" >&5 7938$as_echo "$with_ldap" >&6; } 7939 7940 7941 7942# 7943# Bonjour 7944# 7945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with Bonjour support" >&5 7946$as_echo_n "checking whether to build with Bonjour support... " >&6; } 7947 7948 7949 7950# Check whether --with-bonjour was given. 7951if test "${with_bonjour+set}" = set; then : 7952 withval=$with_bonjour; 7953 case $withval in 7954 yes) 7955 7956$as_echo "#define USE_BONJOUR 1" >>confdefs.h 7957 7958 ;; 7959 no) 7960 : 7961 ;; 7962 *) 7963 as_fn_error $? "no argument expected for --with-bonjour option" "$LINENO" 5 7964 ;; 7965 esac 7966 7967else 7968 with_bonjour=no 7969 7970fi 7971 7972 7973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_bonjour" >&5 7974$as_echo "$with_bonjour" >&6; } 7975 7976 7977# 7978# OpenSSL 7979# 7980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with OpenSSL support" >&5 7981$as_echo_n "checking whether to build with OpenSSL support... " >&6; } 7982 7983 7984 7985# Check whether --with-openssl was given. 7986if test "${with_openssl+set}" = set; then : 7987 withval=$with_openssl; 7988 case $withval in 7989 yes) 7990 7991$as_echo "#define USE_OPENSSL 1" >>confdefs.h 7992 7993 ;; 7994 no) 7995 : 7996 ;; 7997 *) 7998 as_fn_error $? "no argument expected for --with-openssl option" "$LINENO" 5 7999 ;; 8000 esac 8001 8002else 8003 with_openssl=no 8004 8005fi 8006 8007 8008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_openssl" >&5 8009$as_echo "$with_openssl" >&6; } 8010 8011 8012# 8013# SELinux 8014# 8015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with SELinux support" >&5 8016$as_echo_n "checking whether to build with SELinux support... " >&6; } 8017 8018 8019 8020# Check whether --with-selinux was given. 8021if test "${with_selinux+set}" = set; then : 8022 withval=$with_selinux; 8023 case $withval in 8024 yes) 8025 : 8026 ;; 8027 no) 8028 : 8029 ;; 8030 *) 8031 as_fn_error $? "no argument expected for --with-selinux option" "$LINENO" 5 8032 ;; 8033 esac 8034 8035else 8036 with_selinux=no 8037 8038fi 8039 8040 8041 8042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_selinux" >&5 8043$as_echo "$with_selinux" >&6; } 8044 8045# 8046# Systemd 8047# 8048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with systemd support" >&5 8049$as_echo_n "checking whether to build with systemd support... " >&6; } 8050 8051 8052 8053# Check whether --with-systemd was given. 8054if test "${with_systemd+set}" = set; then : 8055 withval=$with_systemd; 8056 case $withval in 8057 yes) 8058 8059$as_echo "#define USE_SYSTEMD 1" >>confdefs.h 8060 8061 ;; 8062 no) 8063 : 8064 ;; 8065 *) 8066 as_fn_error $? "no argument expected for --with-systemd option" "$LINENO" 5 8067 ;; 8068 esac 8069 8070else 8071 with_systemd=no 8072 8073fi 8074 8075 8076 8077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemd" >&5 8078$as_echo "$with_systemd" >&6; } 8079 8080# 8081# Readline 8082# 8083 8084 8085 8086# Check whether --with-readline was given. 8087if test "${with_readline+set}" = set; then : 8088 withval=$with_readline; 8089 case $withval in 8090 yes) 8091 : 8092 ;; 8093 no) 8094 : 8095 ;; 8096 *) 8097 as_fn_error $? "no argument expected for --with-readline option" "$LINENO" 5 8098 ;; 8099 esac 8100 8101else 8102 with_readline=yes 8103 8104fi 8105 8106 8107# readline on MinGW has problems with backslashes in psql and other bugs. 8108# This is particularly a problem with non-US code pages. 8109# Therefore disable its use until we understand the cause. 2004-07-20 8110if test "$PORTNAME" = "win32"; then 8111 if test "$with_readline" = yes; then 8112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Readline does not work on MinGW --- disabling" >&5 8113$as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;} 8114 with_readline=no 8115 fi 8116fi 8117 8118 8119 8120# 8121# Prefer libedit 8122# 8123 8124 8125 8126# Check whether --with-libedit-preferred was given. 8127if test "${with_libedit_preferred+set}" = set; then : 8128 withval=$with_libedit_preferred; 8129 case $withval in 8130 yes) 8131 : 8132 ;; 8133 no) 8134 : 8135 ;; 8136 *) 8137 as_fn_error $? "no argument expected for --with-libedit-preferred option" "$LINENO" 5 8138 ;; 8139 esac 8140 8141else 8142 with_libedit_preferred=no 8143 8144fi 8145 8146 8147 8148 8149# 8150# UUID library 8151# 8152# There are at least three UUID libraries in common use: the FreeBSD/NetBSD 8153# library, the e2fsprogs libuuid (now part of util-linux-ng), and the OSSP 8154# UUID library. More than one of these might be present on a given platform, 8155# so we make the user say which one she wants. 8156# 8157 8158 8159 8160# Check whether --with-uuid was given. 8161if test "${with_uuid+set}" = set; then : 8162 withval=$with_uuid; 8163 case $withval in 8164 yes) 8165 as_fn_error $? "argument required for --with-uuid option" "$LINENO" 5 8166 ;; 8167 no) 8168 as_fn_error $? "argument required for --with-uuid option" "$LINENO" 5 8169 ;; 8170 *) 8171 8172 ;; 8173 esac 8174 8175fi 8176 8177 8178if test x"$with_uuid" = x"" ; then 8179 with_uuid=no 8180fi 8181 8182 8183 8184# Check whether --with-ossp-uuid was given. 8185if test "${with_ossp_uuid+set}" = set; then : 8186 withval=$with_ossp_uuid; 8187 case $withval in 8188 yes) 8189 : 8190 ;; 8191 no) 8192 : 8193 ;; 8194 *) 8195 as_fn_error $? "no argument expected for --with-ossp-uuid option" "$LINENO" 5 8196 ;; 8197 esac 8198 8199else 8200 with_ossp_uuid=no 8201 8202fi 8203 8204 8205if test "$with_ossp_uuid" = yes ; then 8206 with_uuid=ossp 8207fi 8208 8209if test "$with_uuid" = bsd ; then 8210 8211$as_echo "#define HAVE_UUID_BSD 1" >>confdefs.h 8212 8213 UUID_EXTRA_OBJS="md5.o sha1.o" 8214elif test "$with_uuid" = e2fs ; then 8215 8216$as_echo "#define HAVE_UUID_E2FS 1" >>confdefs.h 8217 8218 UUID_EXTRA_OBJS="md5.o sha1.o" 8219elif test "$with_uuid" = ossp ; then 8220 8221$as_echo "#define HAVE_UUID_OSSP 1" >>confdefs.h 8222 8223 UUID_EXTRA_OBJS="" 8224elif test "$with_uuid" = no ; then 8225 UUID_EXTRA_OBJS="" 8226else 8227 as_fn_error $? "--with-uuid must specify one of bsd, e2fs, or ossp" "$LINENO" 5 8228fi 8229 8230 8231 8232 8233# 8234# XML 8235# 8236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with XML support" >&5 8237$as_echo_n "checking whether to build with XML support... " >&6; } 8238 8239 8240 8241# Check whether --with-libxml was given. 8242if test "${with_libxml+set}" = set; then : 8243 withval=$with_libxml; 8244 case $withval in 8245 yes) 8246 8247$as_echo "#define USE_LIBXML 1" >>confdefs.h 8248 8249 ;; 8250 no) 8251 : 8252 ;; 8253 *) 8254 as_fn_error $? "no argument expected for --with-libxml option" "$LINENO" 5 8255 ;; 8256 esac 8257 8258else 8259 with_libxml=no 8260 8261fi 8262 8263 8264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_libxml" >&5 8265$as_echo "$with_libxml" >&6; } 8266 8267 8268if test "$with_libxml" = yes ; then 8269 # Check pkg-config, then xml2-config. But for backwards compatibility, 8270 # setting XML2_CONFIG overrides pkg-config. 8271 have_libxml2_pkg_config=no 8272 if test -z "$XML2_CONFIG" -a -n "$PKG_CONFIG"; then 8273 8274pkg_failed=no 8275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.6.23" >&5 8276$as_echo_n "checking for libxml-2.0 >= 2.6.23... " >&6; } 8277 8278if test -n "$XML2_CFLAGS"; then 8279 pkg_cv_XML2_CFLAGS="$XML2_CFLAGS" 8280 elif test -n "$PKG_CONFIG"; then 8281 if test -n "$PKG_CONFIG" && \ 8282 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.23\""; } >&5 8283 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.23") 2>&5 8284 ac_status=$? 8285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8286 test $ac_status = 0; }; then 8287 pkg_cv_XML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.23" 2>/dev/null` 8288 test "x$?" != "x0" && pkg_failed=yes 8289else 8290 pkg_failed=yes 8291fi 8292 else 8293 pkg_failed=untried 8294fi 8295if test -n "$XML2_LIBS"; then 8296 pkg_cv_XML2_LIBS="$XML2_LIBS" 8297 elif test -n "$PKG_CONFIG"; then 8298 if test -n "$PKG_CONFIG" && \ 8299 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.23\""; } >&5 8300 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.23") 2>&5 8301 ac_status=$? 8302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8303 test $ac_status = 0; }; then 8304 pkg_cv_XML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.23" 2>/dev/null` 8305 test "x$?" != "x0" && pkg_failed=yes 8306else 8307 pkg_failed=yes 8308fi 8309 else 8310 pkg_failed=untried 8311fi 8312 8313 8314 8315if test $pkg_failed = yes; then 8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8317$as_echo "no" >&6; } 8318 8319if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 8320 _pkg_short_errors_supported=yes 8321else 8322 _pkg_short_errors_supported=no 8323fi 8324 if test $_pkg_short_errors_supported = yes; then 8325 XML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6.23" 2>&1` 8326 else 8327 XML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6.23" 2>&1` 8328 fi 8329 # Put the nasty error message in config.log where it belongs 8330 echo "$XML2_PKG_ERRORS" >&5 8331 8332 # do nothing 8333elif test $pkg_failed = untried; then 8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8335$as_echo "no" >&6; } 8336 # do nothing 8337else 8338 XML2_CFLAGS=$pkg_cv_XML2_CFLAGS 8339 XML2_LIBS=$pkg_cv_XML2_LIBS 8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8341$as_echo "yes" >&6; } 8342 have_libxml2_pkg_config=yes 8343fi 8344 fi 8345 if test "$have_libxml2_pkg_config" = no ; then 8346 if test -z "$XML2_CONFIG"; then 8347 for ac_prog in xml2-config 8348do 8349 # Extract the first word of "$ac_prog", so it can be a program name with args. 8350set dummy $ac_prog; ac_word=$2 8351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8352$as_echo_n "checking for $ac_word... " >&6; } 8353if ${ac_cv_path_XML2_CONFIG+:} false; then : 8354 $as_echo_n "(cached) " >&6 8355else 8356 case $XML2_CONFIG in 8357 [\\/]* | ?:[\\/]*) 8358 ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path. 8359 ;; 8360 *) 8361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8362for as_dir in $PATH 8363do 8364 IFS=$as_save_IFS 8365 test -z "$as_dir" && as_dir=. 8366 for ac_exec_ext in '' $ac_executable_extensions; do 8367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8368 ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext" 8369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8370 break 2 8371 fi 8372done 8373 done 8374IFS=$as_save_IFS 8375 8376 ;; 8377esac 8378fi 8379XML2_CONFIG=$ac_cv_path_XML2_CONFIG 8380if test -n "$XML2_CONFIG"; then 8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5 8382$as_echo "$XML2_CONFIG" >&6; } 8383else 8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8385$as_echo "no" >&6; } 8386fi 8387 8388 8389 test -n "$XML2_CONFIG" && break 8390done 8391 8392else 8393 # Report the value of XML2_CONFIG in configure's output in all cases. 8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML2_CONFIG" >&5 8395$as_echo_n "checking for XML2_CONFIG... " >&6; } 8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5 8397$as_echo "$XML2_CONFIG" >&6; } 8398fi 8399 8400 if test -n "$XML2_CONFIG"; then 8401 XML2_CFLAGS=`$XML2_CONFIG --cflags` 8402 XML2_LIBS=`$XML2_CONFIG --libs` 8403 fi 8404 fi 8405 # Note the user could also set XML2_CFLAGS/XML2_LIBS directly 8406 for pgac_option in $XML2_CFLAGS; do 8407 case $pgac_option in 8408 -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";; 8409 esac 8410 done 8411 for pgac_option in $XML2_LIBS; do 8412 case $pgac_option in 8413 -L*) LDFLAGS="$LDFLAGS $pgac_option";; 8414 esac 8415 done 8416fi 8417 8418 8419# 8420# XSLT 8421# 8422 8423 8424 8425# Check whether --with-libxslt was given. 8426if test "${with_libxslt+set}" = set; then : 8427 withval=$with_libxslt; 8428 case $withval in 8429 yes) 8430 8431$as_echo "#define USE_LIBXSLT 1" >>confdefs.h 8432 8433 ;; 8434 no) 8435 : 8436 ;; 8437 *) 8438 as_fn_error $? "no argument expected for --with-libxslt option" "$LINENO" 5 8439 ;; 8440 esac 8441 8442else 8443 with_libxslt=no 8444 8445fi 8446 8447 8448 8449 8450 8451 8452# 8453# tzdata 8454# 8455 8456 8457 8458# Check whether --with-system-tzdata was given. 8459if test "${with_system_tzdata+set}" = set; then : 8460 withval=$with_system_tzdata; 8461 case $withval in 8462 yes) 8463 as_fn_error $? "argument required for --with-system-tzdata option" "$LINENO" 5 8464 ;; 8465 no) 8466 as_fn_error $? "argument required for --with-system-tzdata option" "$LINENO" 5 8467 ;; 8468 *) 8469 8470 ;; 8471 esac 8472 8473fi 8474 8475 8476 8477 8478# 8479# Zlib 8480# 8481 8482 8483 8484# Check whether --with-zlib was given. 8485if test "${with_zlib+set}" = set; then : 8486 withval=$with_zlib; 8487 case $withval in 8488 yes) 8489 : 8490 ;; 8491 no) 8492 : 8493 ;; 8494 *) 8495 as_fn_error $? "no argument expected for --with-zlib option" "$LINENO" 5 8496 ;; 8497 esac 8498 8499else 8500 with_zlib=yes 8501 8502fi 8503 8504 8505 8506 8507# 8508# Assignments 8509# 8510 8511CPPFLAGS="$CPPFLAGS $INCLUDES" 8512LDFLAGS="$LDFLAGS $LIBDIRS" 8513 8514 8515 8516 8517 8518# Check whether --with-gnu-ld was given. 8519if test "${with_gnu_ld+set}" = set; then : 8520 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 8521else 8522 with_gnu_ld=no 8523fi 8524 8525ac_prog=ld 8526if test "$GCC" = yes; then 8527 # Check if gcc -print-prog-name=ld gives a path. 8528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 8529$as_echo_n "checking for ld used by GCC... " >&6; } 8530 case $host in 8531 *-*-mingw*) 8532 # gcc leaves a trailing carriage return which upsets mingw 8533 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 8534 *) 8535 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 8536 esac 8537 case "$ac_prog" in 8538 # Accept absolute paths. 8539 [\\/]* | [A-Za-z]:[\\/]*) 8540 re_direlt='/[^/][^/]*/\.\./' 8541 # Canonicalize the path of ld 8542 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 8543 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 8544 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 8545 done 8546 test -z "$LD" && LD="$ac_prog" 8547 ;; 8548 "") 8549 # If it fails, then pretend we aren't using GCC. 8550 ac_prog=ld 8551 ;; 8552 *) 8553 # If it is relative, then search for the first ld in PATH. 8554 with_gnu_ld=unknown 8555 ;; 8556 esac 8557elif test "$with_gnu_ld" = yes; then 8558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 8559$as_echo_n "checking for GNU ld... " >&6; } 8560else 8561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 8562$as_echo_n "checking for non-GNU ld... " >&6; } 8563fi 8564if ${ac_cv_path_LD+:} false; then : 8565 $as_echo_n "(cached) " >&6 8566else 8567 if test -z "$LD"; then 8568 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 8569 for ac_dir in $PATH; do 8570 test -z "$ac_dir" && ac_dir=. 8571 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 8572 ac_cv_path_LD="$ac_dir/$ac_prog" 8573 # Check to see if the program is GNU ld. I'd rather use --version, 8574 # but apparently some GNU ld's only accept -v. 8575 # Break only if it was the GNU/non-GNU ld that we prefer. 8576 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 8577 test "$with_gnu_ld" != no && break 8578 else 8579 test "$with_gnu_ld" != yes && break 8580 fi 8581 fi 8582 done 8583 IFS="$ac_save_ifs" 8584else 8585 ac_cv_path_LD="$LD" # Let the user override the test with a path. 8586fi 8587fi 8588 8589LD="$ac_cv_path_LD" 8590if test -n "$LD"; then 8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 8592$as_echo "$LD" >&6; } 8593else 8594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8595$as_echo "no" >&6; } 8596fi 8597test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 8598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 8599$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 8600if ${ac_cv_prog_gnu_ld+:} false; then : 8601 $as_echo_n "(cached) " >&6 8602else 8603 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 8604if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 8605 ac_cv_prog_gnu_ld=yes 8606else 8607 ac_cv_prog_gnu_ld=no 8608fi 8609fi 8610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gnu_ld" >&5 8611$as_echo "$ac_cv_prog_gnu_ld" >&6; } 8612with_gnu_ld=$ac_cv_prog_gnu_ld 8613 8614 8615 8616 8617if test -n "$ac_tool_prefix"; then 8618 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 8619set dummy ${ac_tool_prefix}ranlib; ac_word=$2 8620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8621$as_echo_n "checking for $ac_word... " >&6; } 8622if ${ac_cv_prog_RANLIB+:} false; then : 8623 $as_echo_n "(cached) " >&6 8624else 8625 if test -n "$RANLIB"; then 8626 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 8627else 8628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8629for as_dir in $PATH 8630do 8631 IFS=$as_save_IFS 8632 test -z "$as_dir" && as_dir=. 8633 for ac_exec_ext in '' $ac_executable_extensions; do 8634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8635 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 8636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8637 break 2 8638 fi 8639done 8640 done 8641IFS=$as_save_IFS 8642 8643fi 8644fi 8645RANLIB=$ac_cv_prog_RANLIB 8646if test -n "$RANLIB"; then 8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 8648$as_echo "$RANLIB" >&6; } 8649else 8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8651$as_echo "no" >&6; } 8652fi 8653 8654 8655fi 8656if test -z "$ac_cv_prog_RANLIB"; then 8657 ac_ct_RANLIB=$RANLIB 8658 # Extract the first word of "ranlib", so it can be a program name with args. 8659set dummy ranlib; ac_word=$2 8660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8661$as_echo_n "checking for $ac_word... " >&6; } 8662if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 8663 $as_echo_n "(cached) " >&6 8664else 8665 if test -n "$ac_ct_RANLIB"; then 8666 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 8667else 8668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8669for as_dir in $PATH 8670do 8671 IFS=$as_save_IFS 8672 test -z "$as_dir" && as_dir=. 8673 for ac_exec_ext in '' $ac_executable_extensions; do 8674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8675 ac_cv_prog_ac_ct_RANLIB="ranlib" 8676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8677 break 2 8678 fi 8679done 8680 done 8681IFS=$as_save_IFS 8682 8683fi 8684fi 8685ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 8686if test -n "$ac_ct_RANLIB"; then 8687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 8688$as_echo "$ac_ct_RANLIB" >&6; } 8689else 8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8691$as_echo "no" >&6; } 8692fi 8693 8694 if test "x$ac_ct_RANLIB" = x; then 8695 RANLIB=":" 8696 else 8697 case $cross_compiling:$ac_tool_warned in 8698yes:) 8699{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8700$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8701ac_tool_warned=yes ;; 8702esac 8703 RANLIB=$ac_ct_RANLIB 8704 fi 8705else 8706 RANLIB="$ac_cv_prog_RANLIB" 8707fi 8708 8709 8710 if test -n "$ac_tool_prefix"; then 8711 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 8712set dummy ${ac_tool_prefix}strip; ac_word=$2 8713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8714$as_echo_n "checking for $ac_word... " >&6; } 8715if ${ac_cv_prog_STRIP+:} false; then : 8716 $as_echo_n "(cached) " >&6 8717else 8718 if test -n "$STRIP"; then 8719 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 8720else 8721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8722for as_dir in $PATH 8723do 8724 IFS=$as_save_IFS 8725 test -z "$as_dir" && as_dir=. 8726 for ac_exec_ext in '' $ac_executable_extensions; do 8727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8728 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 8729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8730 break 2 8731 fi 8732done 8733 done 8734IFS=$as_save_IFS 8735 8736fi 8737fi 8738STRIP=$ac_cv_prog_STRIP 8739if test -n "$STRIP"; then 8740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 8741$as_echo "$STRIP" >&6; } 8742else 8743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8744$as_echo "no" >&6; } 8745fi 8746 8747 8748fi 8749if test -z "$ac_cv_prog_STRIP"; then 8750 ac_ct_STRIP=$STRIP 8751 # Extract the first word of "strip", so it can be a program name with args. 8752set dummy strip; ac_word=$2 8753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8754$as_echo_n "checking for $ac_word... " >&6; } 8755if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 8756 $as_echo_n "(cached) " >&6 8757else 8758 if test -n "$ac_ct_STRIP"; then 8759 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 8760else 8761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8762for as_dir in $PATH 8763do 8764 IFS=$as_save_IFS 8765 test -z "$as_dir" && as_dir=. 8766 for ac_exec_ext in '' $ac_executable_extensions; do 8767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8768 ac_cv_prog_ac_ct_STRIP="strip" 8769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8770 break 2 8771 fi 8772done 8773 done 8774IFS=$as_save_IFS 8775 8776fi 8777fi 8778ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 8779if test -n "$ac_ct_STRIP"; then 8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 8781$as_echo "$ac_ct_STRIP" >&6; } 8782else 8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8784$as_echo "no" >&6; } 8785fi 8786 8787 if test "x$ac_ct_STRIP" = x; then 8788 STRIP=":" 8789 else 8790 case $cross_compiling:$ac_tool_warned in 8791yes:) 8792{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8793$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8794ac_tool_warned=yes ;; 8795esac 8796 STRIP=$ac_ct_STRIP 8797 fi 8798else 8799 STRIP="$ac_cv_prog_STRIP" 8800fi 8801 8802 8803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is possible to strip libraries" >&5 8804$as_echo_n "checking whether it is possible to strip libraries... " >&6; } 8805 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then 8806 STRIP_STATIC_LIB="$STRIP -x" 8807 STRIP_SHARED_LIB="$STRIP --strip-unneeded" 8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8809$as_echo "yes" >&6; } 8810 else 8811 case $host_os in 8812 darwin*) 8813 STRIP="$STRIP -x" 8814 STRIP_STATIC_LIB=$STRIP 8815 STRIP_SHARED_LIB=$STRIP 8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8817$as_echo "yes" >&6; } 8818 ;; 8819 *) 8820 STRIP_STATIC_LIB=: 8821 STRIP_SHARED_LIB=: 8822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8823$as_echo "no" >&6; } 8824 ;; 8825 esac 8826 fi 8827 8828 8829 8830if test -n "$ac_tool_prefix"; then 8831 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 8832set dummy ${ac_tool_prefix}ar; ac_word=$2 8833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8834$as_echo_n "checking for $ac_word... " >&6; } 8835if ${ac_cv_prog_AR+:} false; then : 8836 $as_echo_n "(cached) " >&6 8837else 8838 if test -n "$AR"; then 8839 ac_cv_prog_AR="$AR" # Let the user override the test. 8840else 8841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8842for as_dir in $PATH 8843do 8844 IFS=$as_save_IFS 8845 test -z "$as_dir" && as_dir=. 8846 for ac_exec_ext in '' $ac_executable_extensions; do 8847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8848 ac_cv_prog_AR="${ac_tool_prefix}ar" 8849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8850 break 2 8851 fi 8852done 8853 done 8854IFS=$as_save_IFS 8855 8856fi 8857fi 8858AR=$ac_cv_prog_AR 8859if test -n "$AR"; then 8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8861$as_echo "$AR" >&6; } 8862else 8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8864$as_echo "no" >&6; } 8865fi 8866 8867 8868fi 8869if test -z "$ac_cv_prog_AR"; then 8870 ac_ct_AR=$AR 8871 # Extract the first word of "ar", so it can be a program name with args. 8872set dummy ar; ac_word=$2 8873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8874$as_echo_n "checking for $ac_word... " >&6; } 8875if ${ac_cv_prog_ac_ct_AR+:} false; then : 8876 $as_echo_n "(cached) " >&6 8877else 8878 if test -n "$ac_ct_AR"; then 8879 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 8880else 8881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8882for as_dir in $PATH 8883do 8884 IFS=$as_save_IFS 8885 test -z "$as_dir" && as_dir=. 8886 for ac_exec_ext in '' $ac_executable_extensions; do 8887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8888 ac_cv_prog_ac_ct_AR="ar" 8889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8890 break 2 8891 fi 8892done 8893 done 8894IFS=$as_save_IFS 8895 8896fi 8897fi 8898ac_ct_AR=$ac_cv_prog_ac_ct_AR 8899if test -n "$ac_ct_AR"; then 8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 8901$as_echo "$ac_ct_AR" >&6; } 8902else 8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8904$as_echo "no" >&6; } 8905fi 8906 8907 if test "x$ac_ct_AR" = x; then 8908 AR="ar" 8909 else 8910 case $cross_compiling:$ac_tool_warned in 8911yes:) 8912{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8913$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8914ac_tool_warned=yes ;; 8915esac 8916 AR=$ac_ct_AR 8917 fi 8918else 8919 AR="$ac_cv_prog_AR" 8920fi 8921 8922if test "$PORTNAME" = "win32"; then 8923 if test -n "$ac_tool_prefix"; then 8924 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8925set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8927$as_echo_n "checking for $ac_word... " >&6; } 8928if ${ac_cv_prog_DLLTOOL+:} false; then : 8929 $as_echo_n "(cached) " >&6 8930else 8931 if test -n "$DLLTOOL"; then 8932 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8933else 8934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8935for as_dir in $PATH 8936do 8937 IFS=$as_save_IFS 8938 test -z "$as_dir" && as_dir=. 8939 for ac_exec_ext in '' $ac_executable_extensions; do 8940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8941 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8943 break 2 8944 fi 8945done 8946 done 8947IFS=$as_save_IFS 8948 8949fi 8950fi 8951DLLTOOL=$ac_cv_prog_DLLTOOL 8952if test -n "$DLLTOOL"; then 8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8954$as_echo "$DLLTOOL" >&6; } 8955else 8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8957$as_echo "no" >&6; } 8958fi 8959 8960 8961fi 8962if test -z "$ac_cv_prog_DLLTOOL"; then 8963 ac_ct_DLLTOOL=$DLLTOOL 8964 # Extract the first word of "dlltool", so it can be a program name with args. 8965set dummy dlltool; ac_word=$2 8966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8967$as_echo_n "checking for $ac_word... " >&6; } 8968if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 8969 $as_echo_n "(cached) " >&6 8970else 8971 if test -n "$ac_ct_DLLTOOL"; then 8972 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8973else 8974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8975for as_dir in $PATH 8976do 8977 IFS=$as_save_IFS 8978 test -z "$as_dir" && as_dir=. 8979 for ac_exec_ext in '' $ac_executable_extensions; do 8980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8981 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8983 break 2 8984 fi 8985done 8986 done 8987IFS=$as_save_IFS 8988 8989fi 8990fi 8991ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8992if test -n "$ac_ct_DLLTOOL"; then 8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8994$as_echo "$ac_ct_DLLTOOL" >&6; } 8995else 8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8997$as_echo "no" >&6; } 8998fi 8999 9000 if test "x$ac_ct_DLLTOOL" = x; then 9001 DLLTOOL="dlltool" 9002 else 9003 case $cross_compiling:$ac_tool_warned in 9004yes:) 9005{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9006$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9007ac_tool_warned=yes ;; 9008esac 9009 DLLTOOL=$ac_ct_DLLTOOL 9010 fi 9011else 9012 DLLTOOL="$ac_cv_prog_DLLTOOL" 9013fi 9014 9015 if test -n "$ac_tool_prefix"; then 9016 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args. 9017set dummy ${ac_tool_prefix}dllwrap; ac_word=$2 9018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9019$as_echo_n "checking for $ac_word... " >&6; } 9020if ${ac_cv_prog_DLLWRAP+:} false; then : 9021 $as_echo_n "(cached) " >&6 9022else 9023 if test -n "$DLLWRAP"; then 9024 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test. 9025else 9026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9027for as_dir in $PATH 9028do 9029 IFS=$as_save_IFS 9030 test -z "$as_dir" && as_dir=. 9031 for ac_exec_ext in '' $ac_executable_extensions; do 9032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9033 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap" 9034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9035 break 2 9036 fi 9037done 9038 done 9039IFS=$as_save_IFS 9040 9041fi 9042fi 9043DLLWRAP=$ac_cv_prog_DLLWRAP 9044if test -n "$DLLWRAP"; then 9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5 9046$as_echo "$DLLWRAP" >&6; } 9047else 9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9049$as_echo "no" >&6; } 9050fi 9051 9052 9053fi 9054if test -z "$ac_cv_prog_DLLWRAP"; then 9055 ac_ct_DLLWRAP=$DLLWRAP 9056 # Extract the first word of "dllwrap", so it can be a program name with args. 9057set dummy dllwrap; ac_word=$2 9058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9059$as_echo_n "checking for $ac_word... " >&6; } 9060if ${ac_cv_prog_ac_ct_DLLWRAP+:} false; then : 9061 $as_echo_n "(cached) " >&6 9062else 9063 if test -n "$ac_ct_DLLWRAP"; then 9064 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test. 9065else 9066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9067for as_dir in $PATH 9068do 9069 IFS=$as_save_IFS 9070 test -z "$as_dir" && as_dir=. 9071 for ac_exec_ext in '' $ac_executable_extensions; do 9072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9073 ac_cv_prog_ac_ct_DLLWRAP="dllwrap" 9074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9075 break 2 9076 fi 9077done 9078 done 9079IFS=$as_save_IFS 9080 9081fi 9082fi 9083ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP 9084if test -n "$ac_ct_DLLWRAP"; then 9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5 9086$as_echo "$ac_ct_DLLWRAP" >&6; } 9087else 9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9089$as_echo "no" >&6; } 9090fi 9091 9092 if test "x$ac_ct_DLLWRAP" = x; then 9093 DLLWRAP="dllwrap" 9094 else 9095 case $cross_compiling:$ac_tool_warned in 9096yes:) 9097{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9098$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9099ac_tool_warned=yes ;; 9100esac 9101 DLLWRAP=$ac_ct_DLLWRAP 9102 fi 9103else 9104 DLLWRAP="$ac_cv_prog_DLLWRAP" 9105fi 9106 9107 if test -n "$ac_tool_prefix"; then 9108 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 9109set dummy ${ac_tool_prefix}windres; ac_word=$2 9110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9111$as_echo_n "checking for $ac_word... " >&6; } 9112if ${ac_cv_prog_WINDRES+:} false; then : 9113 $as_echo_n "(cached) " >&6 9114else 9115 if test -n "$WINDRES"; then 9116 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 9117else 9118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9119for as_dir in $PATH 9120do 9121 IFS=$as_save_IFS 9122 test -z "$as_dir" && as_dir=. 9123 for ac_exec_ext in '' $ac_executable_extensions; do 9124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9125 ac_cv_prog_WINDRES="${ac_tool_prefix}windres" 9126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9127 break 2 9128 fi 9129done 9130 done 9131IFS=$as_save_IFS 9132 9133fi 9134fi 9135WINDRES=$ac_cv_prog_WINDRES 9136if test -n "$WINDRES"; then 9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 9138$as_echo "$WINDRES" >&6; } 9139else 9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9141$as_echo "no" >&6; } 9142fi 9143 9144 9145fi 9146if test -z "$ac_cv_prog_WINDRES"; then 9147 ac_ct_WINDRES=$WINDRES 9148 # Extract the first word of "windres", so it can be a program name with args. 9149set dummy windres; ac_word=$2 9150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9151$as_echo_n "checking for $ac_word... " >&6; } 9152if ${ac_cv_prog_ac_ct_WINDRES+:} false; then : 9153 $as_echo_n "(cached) " >&6 9154else 9155 if test -n "$ac_ct_WINDRES"; then 9156 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. 9157else 9158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9159for as_dir in $PATH 9160do 9161 IFS=$as_save_IFS 9162 test -z "$as_dir" && as_dir=. 9163 for ac_exec_ext in '' $ac_executable_extensions; do 9164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9165 ac_cv_prog_ac_ct_WINDRES="windres" 9166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9167 break 2 9168 fi 9169done 9170 done 9171IFS=$as_save_IFS 9172 9173fi 9174fi 9175ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES 9176if test -n "$ac_ct_WINDRES"; then 9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 9178$as_echo "$ac_ct_WINDRES" >&6; } 9179else 9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9181$as_echo "no" >&6; } 9182fi 9183 9184 if test "x$ac_ct_WINDRES" = x; then 9185 WINDRES="windres" 9186 else 9187 case $cross_compiling:$ac_tool_warned in 9188yes:) 9189{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9190$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9191ac_tool_warned=yes ;; 9192esac 9193 WINDRES=$ac_ct_WINDRES 9194 fi 9195else 9196 WINDRES="$ac_cv_prog_WINDRES" 9197fi 9198 9199fi 9200 9201# Find a good install program. We prefer a C program (faster), 9202# so one script is as good as another. But avoid the broken or 9203# incompatible versions: 9204# SysV /etc/install, /usr/sbin/install 9205# SunOS /usr/etc/install 9206# IRIX /sbin/install 9207# AIX /bin/install 9208# AmigaOS /C/install, which installs bootblocks on floppy discs 9209# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 9210# AFS /usr/afsws/bin/install, which mishandles nonexistent args 9211# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 9212# OS/2's system install, which has a completely different semantic 9213# ./install, which can be erroneously created by make from ./install.sh. 9214# Reject install programs that cannot install multiple files. 9215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 9216$as_echo_n "checking for a BSD-compatible install... " >&6; } 9217if test -z "$INSTALL"; then 9218if ${ac_cv_path_install+:} false; then : 9219 $as_echo_n "(cached) " >&6 9220else 9221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9222for as_dir in $PATH 9223do 9224 IFS=$as_save_IFS 9225 test -z "$as_dir" && as_dir=. 9226 # Account for people who put trailing slashes in PATH elements. 9227case $as_dir/ in #(( 9228 ./ | .// | /[cC]/* | \ 9229 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 9230 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 9231 /usr/ucb/* ) ;; 9232 *) 9233 # OSF1 and SCO ODT 3.0 have their own names for install. 9234 # Don't use installbsd from OSF since it installs stuff as root 9235 # by default. 9236 for ac_prog in ginstall scoinst install; do 9237 for ac_exec_ext in '' $ac_executable_extensions; do 9238 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 9239 if test $ac_prog = install && 9240 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 9241 # AIX install. It has an incompatible calling convention. 9242 : 9243 elif test $ac_prog = install && 9244 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 9245 # program-specific install script used by HP pwplus--don't use. 9246 : 9247 else 9248 rm -rf conftest.one conftest.two conftest.dir 9249 echo one > conftest.one 9250 echo two > conftest.two 9251 mkdir conftest.dir 9252 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 9253 test -s conftest.one && test -s conftest.two && 9254 test -s conftest.dir/conftest.one && 9255 test -s conftest.dir/conftest.two 9256 then 9257 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 9258 break 3 9259 fi 9260 fi 9261 fi 9262 done 9263 done 9264 ;; 9265esac 9266 9267 done 9268IFS=$as_save_IFS 9269 9270rm -rf conftest.one conftest.two conftest.dir 9271 9272fi 9273 if test "${ac_cv_path_install+set}" = set; then 9274 INSTALL=$ac_cv_path_install 9275 else 9276 # As a last resort, use the slow shell script. Don't cache a 9277 # value for INSTALL within a source directory, because that will 9278 # break other packages using the cache if that directory is 9279 # removed, or if the value is a relative name. 9280 INSTALL=$ac_install_sh 9281 fi 9282fi 9283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 9284$as_echo "$INSTALL" >&6; } 9285 9286# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 9287# It thinks the first close brace ends the variable substitution. 9288test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 9289 9290test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 9291 9292test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 9293 9294# When Autoconf chooses install-sh as install program it tries to generate 9295# a relative path to it in each makefile where it substitutes it. This clashes 9296# with our Makefile.global concept. This workaround helps. 9297case $INSTALL in 9298 *install-sh*) install_bin='';; 9299 *) install_bin=$INSTALL;; 9300esac 9301 9302 9303if test -z "$TAR"; then 9304 for ac_prog in tar 9305do 9306 # Extract the first word of "$ac_prog", so it can be a program name with args. 9307set dummy $ac_prog; ac_word=$2 9308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9309$as_echo_n "checking for $ac_word... " >&6; } 9310if ${ac_cv_path_TAR+:} false; then : 9311 $as_echo_n "(cached) " >&6 9312else 9313 case $TAR in 9314 [\\/]* | ?:[\\/]*) 9315 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9316 ;; 9317 *) 9318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9319for as_dir in $PATH 9320do 9321 IFS=$as_save_IFS 9322 test -z "$as_dir" && as_dir=. 9323 for ac_exec_ext in '' $ac_executable_extensions; do 9324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9325 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9327 break 2 9328 fi 9329done 9330 done 9331IFS=$as_save_IFS 9332 9333 ;; 9334esac 9335fi 9336TAR=$ac_cv_path_TAR 9337if test -n "$TAR"; then 9338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9339$as_echo "$TAR" >&6; } 9340else 9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9342$as_echo "no" >&6; } 9343fi 9344 9345 9346 test -n "$TAR" && break 9347done 9348 9349else 9350 # Report the value of TAR in configure's output in all cases. 9351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5 9352$as_echo_n "checking for TAR... " >&6; } 9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9354$as_echo "$TAR" >&6; } 9355fi 9356 9357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 9358$as_echo_n "checking whether ln -s works... " >&6; } 9359LN_S=$as_ln_s 9360if test "$LN_S" = "ln -s"; then 9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9362$as_echo "yes" >&6; } 9363else 9364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 9365$as_echo "no, using $LN_S" >&6; } 9366fi 9367 9368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 9369$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 9370if test -z "$MKDIR_P"; then 9371 if ${ac_cv_path_mkdir+:} false; then : 9372 $as_echo_n "(cached) " >&6 9373else 9374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9375for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 9376do 9377 IFS=$as_save_IFS 9378 test -z "$as_dir" && as_dir=. 9379 for ac_prog in mkdir gmkdir; do 9380 for ac_exec_ext in '' $ac_executable_extensions; do 9381 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 9382 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 9383 'mkdir (GNU coreutils) '* | \ 9384 'mkdir (coreutils) '* | \ 9385 'mkdir (fileutils) '4.1*) 9386 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 9387 break 3;; 9388 esac 9389 done 9390 done 9391 done 9392IFS=$as_save_IFS 9393 9394fi 9395 9396 test -d ./--version && rmdir ./--version 9397 if test "${ac_cv_path_mkdir+set}" = set; then 9398 MKDIR_P="$ac_cv_path_mkdir -p" 9399 else 9400 # As a last resort, use the slow shell script. Don't cache a 9401 # value for MKDIR_P within a source directory, because that will 9402 # break other packages using the cache if that directory is 9403 # removed, or if the value is a relative name. 9404 MKDIR_P="$ac_install_sh -d" 9405 fi 9406fi 9407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 9408$as_echo "$MKDIR_P" >&6; } 9409 9410# When Autoconf chooses install-sh as mkdir -p program it tries to generate 9411# a relative path to it in each makefile where it substitutes it. This clashes 9412# with our Makefile.global concept. This workaround helps. 9413case $MKDIR_P in 9414 *install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';; 9415esac 9416 9417if test -z "$BISON"; then 9418 for ac_prog in bison 9419do 9420 # Extract the first word of "$ac_prog", so it can be a program name with args. 9421set dummy $ac_prog; ac_word=$2 9422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9423$as_echo_n "checking for $ac_word... " >&6; } 9424if ${ac_cv_path_BISON+:} false; then : 9425 $as_echo_n "(cached) " >&6 9426else 9427 case $BISON in 9428 [\\/]* | ?:[\\/]*) 9429 ac_cv_path_BISON="$BISON" # Let the user override the test with a path. 9430 ;; 9431 *) 9432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9433for as_dir in $PATH 9434do 9435 IFS=$as_save_IFS 9436 test -z "$as_dir" && as_dir=. 9437 for ac_exec_ext in '' $ac_executable_extensions; do 9438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9439 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext" 9440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9441 break 2 9442 fi 9443done 9444 done 9445IFS=$as_save_IFS 9446 9447 ;; 9448esac 9449fi 9450BISON=$ac_cv_path_BISON 9451if test -n "$BISON"; then 9452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 9453$as_echo "$BISON" >&6; } 9454else 9455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9456$as_echo "no" >&6; } 9457fi 9458 9459 9460 test -n "$BISON" && break 9461done 9462 9463else 9464 # Report the value of BISON in configure's output in all cases. 9465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BISON" >&5 9466$as_echo_n "checking for BISON... " >&6; } 9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 9468$as_echo "$BISON" >&6; } 9469fi 9470 9471 9472if test "$BISON"; then 9473 pgac_bison_version=`$BISON --version 2>/dev/null | sed q` 9474 { $as_echo "$as_me:${as_lineno-$LINENO}: using $pgac_bison_version" >&5 9475$as_echo "$as_me: using $pgac_bison_version" >&6;} 9476 if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}' 9477 then 9478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 9479*** The installed version of Bison, $BISON, is too old to use with PostgreSQL. 9480*** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5 9481$as_echo "$as_me: WARNING: 9482*** The installed version of Bison, $BISON, is too old to use with PostgreSQL. 9483*** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;} 9484 BISON="" 9485 fi 9486 # Bison >=3.0 issues warnings about %name-prefix="base_yy", instead 9487 # of the now preferred %name-prefix "base_yy", but the latter 9488 # doesn't work with Bison 2.3 or less. So for now we silence the 9489 # deprecation warnings. 9490 if echo "$pgac_bison_version" | $AWK '{ if ($4 >= 3) exit 0; else exit 1;}' 9491 then 9492 BISONFLAGS="$BISONFLAGS -Wno-deprecated" 9493 fi 9494fi 9495 9496if test -z "$BISON"; then 9497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 9498*** Without Bison you will not be able to build PostgreSQL from Git nor 9499*** change any of the parser definition files. You can obtain Bison from 9500*** a GNU mirror site. (If you are using the official distribution of 9501*** PostgreSQL then you do not need to worry about this, because the Bison 9502*** output is pre-generated.)" >&5 9503$as_echo "$as_me: WARNING: 9504*** Without Bison you will not be able to build PostgreSQL from Git nor 9505*** change any of the parser definition files. You can obtain Bison from 9506*** a GNU mirror site. (If you are using the official distribution of 9507*** PostgreSQL then you do not need to worry about this, because the Bison 9508*** output is pre-generated.)" >&2;} 9509fi 9510 9511 9512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex" >&5 9513$as_echo_n "checking for flex... " >&6; } 9514if ${pgac_cv_path_flex+:} false; then : 9515 $as_echo_n "(cached) " >&6 9516else 9517 # Let the user override the test 9518if test -n "$FLEX"; then 9519 pgac_cv_path_flex=$FLEX 9520else 9521 pgac_save_IFS=$IFS 9522 IFS=$PATH_SEPARATOR 9523 for pgac_dir in $PATH; do 9524 IFS=$pgac_save_IFS 9525 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then 9526 pgac_dir=`pwd` 9527 fi 9528 for pgac_prog in flex lex; do 9529 pgac_candidate="$pgac_dir/$pgac_prog" 9530 if test -f "$pgac_candidate" \ 9531 && $pgac_candidate --version </dev/null >/dev/null 2>&1 9532 then 9533 echo '%%' > conftest.l 9534 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then 9535 pgac_flex_version=`$pgac_candidate --version 2>/dev/null` 9536 if echo "$pgac_flex_version" | sed 's/[.a-z]/ /g' | $AWK '{ if ($1 == 2 && ($2 > 5 || ($2 == 5 && $3 >= 31))) exit 0; else exit 1;}' 9537 then 9538 pgac_cv_path_flex=$pgac_candidate 9539 break 2 9540 else 9541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 9542*** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL. 9543*** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5 9544$as_echo "$as_me: WARNING: 9545*** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL. 9546*** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;} 9547 fi 9548 fi 9549 fi 9550 done 9551 done 9552 rm -f conftest.l lex.yy.c 9553 : ${pgac_cv_path_flex=no} 9554fi 9555 9556fi 9557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_path_flex" >&5 9558$as_echo "$pgac_cv_path_flex" >&6; } 9559if test x"$pgac_cv_path_flex" = x"no"; then 9560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 9561*** Without Flex you will not be able to build PostgreSQL from Git nor 9562*** change any of the scanner definition files. You can obtain Flex from 9563*** a GNU mirror site. (If you are using the official distribution of 9564*** PostgreSQL then you do not need to worry about this because the Flex 9565*** output is pre-generated.)" >&5 9566$as_echo "$as_me: WARNING: 9567*** Without Flex you will not be able to build PostgreSQL from Git nor 9568*** change any of the scanner definition files. You can obtain Flex from 9569*** a GNU mirror site. (If you are using the official distribution of 9570*** PostgreSQL then you do not need to worry about this because the Flex 9571*** output is pre-generated.)" >&2;} 9572 9573 FLEX= 9574else 9575 FLEX=$pgac_cv_path_flex 9576 pgac_flex_version=`$FLEX --version 2>/dev/null` 9577 { $as_echo "$as_me:${as_lineno-$LINENO}: using $pgac_flex_version" >&5 9578$as_echo "$as_me: using $pgac_flex_version" >&6;} 9579fi 9580 9581 9582 9583 9584 9585if test -z "$PERL"; then 9586 for ac_prog in perl 9587do 9588 # Extract the first word of "$ac_prog", so it can be a program name with args. 9589set dummy $ac_prog; ac_word=$2 9590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9591$as_echo_n "checking for $ac_word... " >&6; } 9592if ${ac_cv_path_PERL+:} false; then : 9593 $as_echo_n "(cached) " >&6 9594else 9595 case $PERL in 9596 [\\/]* | ?:[\\/]*) 9597 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 9598 ;; 9599 *) 9600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9601for as_dir in $PATH 9602do 9603 IFS=$as_save_IFS 9604 test -z "$as_dir" && as_dir=. 9605 for ac_exec_ext in '' $ac_executable_extensions; do 9606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9607 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 9608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9609 break 2 9610 fi 9611done 9612 done 9613IFS=$as_save_IFS 9614 9615 ;; 9616esac 9617fi 9618PERL=$ac_cv_path_PERL 9619if test -n "$PERL"; then 9620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 9621$as_echo "$PERL" >&6; } 9622else 9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9624$as_echo "no" >&6; } 9625fi 9626 9627 9628 test -n "$PERL" && break 9629done 9630 9631else 9632 # Report the value of PERL in configure's output in all cases. 9633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PERL" >&5 9634$as_echo_n "checking for PERL... " >&6; } 9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 9636$as_echo "$PERL" >&6; } 9637fi 9638 9639 9640if test "$PERL"; then 9641 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'` 9642 { $as_echo "$as_me:${as_lineno-$LINENO}: using perl $pgac_perl_version" >&5 9643$as_echo "$as_me: using perl $pgac_perl_version" >&6;} 9644 if echo "$pgac_perl_version" | sed 's/[.a-z_]/ /g' | \ 9645 $AWK '{ if ($1 == 5 && $2 >= 8) exit 1; else exit 0;}' 9646 then 9647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 9648*** The installed version of Perl, $PERL, is too old to use with PostgreSQL. 9649*** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&5 9650$as_echo "$as_me: WARNING: 9651*** The installed version of Perl, $PERL, is too old to use with PostgreSQL. 9652*** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&2;} 9653 PERL="" 9654 fi 9655fi 9656 9657if test -z "$PERL"; then 9658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 9659*** Without Perl you will not be able to build PostgreSQL from Git. 9660*** You can obtain Perl from any CPAN mirror site. 9661*** (If you are using the official distribution of PostgreSQL then you do not 9662*** need to worry about this, because the Perl output is pre-generated.)" >&5 9663$as_echo "$as_me: WARNING: 9664*** Without Perl you will not be able to build PostgreSQL from Git. 9665*** You can obtain Perl from any CPAN mirror site. 9666*** (If you are using the official distribution of PostgreSQL then you do not 9667*** need to worry about this, because the Perl output is pre-generated.)" >&2;} 9668fi 9669 9670if test "$with_perl" = yes; then 9671 if test -z "$PERL"; then 9672 as_fn_error $? "Perl not found" "$LINENO" 5 9673 fi 9674 9675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl archlibexp" >&5 9676$as_echo_n "checking for Perl archlibexp... " >&6; } 9677perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'` 9678test "$PORTNAME" = "win32" && perl_archlibexp=`echo $perl_archlibexp | sed 's,\\\\,/,g'` 9679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_archlibexp" >&5 9680$as_echo "$perl_archlibexp" >&6; } 9681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl privlibexp" >&5 9682$as_echo_n "checking for Perl privlibexp... " >&6; } 9683perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'` 9684test "$PORTNAME" = "win32" && perl_privlibexp=`echo $perl_privlibexp | sed 's,\\\\,/,g'` 9685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_privlibexp" >&5 9686$as_echo "$perl_privlibexp" >&6; } 9687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl useshrplib" >&5 9688$as_echo_n "checking for Perl useshrplib... " >&6; } 9689perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'` 9690test "$PORTNAME" = "win32" && perl_useshrplib=`echo $perl_useshrplib | sed 's,\\\\,/,g'` 9691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_useshrplib" >&5 9692$as_echo "$perl_useshrplib" >&6; } 9693 if test "$perl_useshrplib" != yes && test "$perl_useshrplib" != true; then 9694 as_fn_error $? "cannot build PL/Perl because libperl is not a shared library 9695You might have to rebuild your Perl installation. Refer to the 9696documentation for details. Use --without-perl to disable building 9697PL/Perl." "$LINENO" 5 9698 fi 9699 # On most platforms, archlibexp is also where the Perl include files live ... 9700 perl_includespec="-I$perl_archlibexp/CORE" 9701 # ... but on newer macOS versions, we must use -iwithsysroot to look 9702 # under $PG_SYSROOT 9703 if test \! -f "$perl_archlibexp/CORE/perl.h" ; then 9704 if test -f "$PG_SYSROOT$perl_archlibexp/CORE/perl.h" ; then 9705 perl_includespec="-iwithsysroot $perl_archlibexp/CORE" 9706 fi 9707 fi 9708 9709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS recommended by Perl" >&5 9710$as_echo_n "checking for CFLAGS recommended by Perl... " >&6; } 9711perl_ccflags=`$PERL -MConfig -e 'print $Config{ccflags}'` 9712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_ccflags" >&5 9713$as_echo "$perl_ccflags" >&6; } 9714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS to compile embedded Perl" >&5 9715$as_echo_n "checking for CFLAGS to compile embedded Perl... " >&6; } 9716perl_embed_ccflags=`$PERL -MConfig -e 'foreach $f (split(" ",$Config{ccflags})) {print $f, " " if ($f =~ /^-D[^_]/ || $f =~ /^-D_USE_32BIT_TIME_T/)}'` 9717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_embed_ccflags" >&5 9718$as_echo "$perl_embed_ccflags" >&6; } 9719 9720 9721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for flags to link embedded Perl" >&5 9722$as_echo_n "checking for flags to link embedded Perl... " >&6; } 9723if test "$PORTNAME" = "win32" ; then 9724 perl_lib=`basename $perl_archlibexp/CORE/perl[5-9]*.lib .lib` 9725 if test -e "$perl_archlibexp/CORE/$perl_lib.lib"; then 9726 perl_embed_ldflags="-L$perl_archlibexp/CORE -l$perl_lib" 9727 else 9728 perl_lib=`basename $perl_archlibexp/CORE/libperl[5-9]*.a .a | sed 's/^lib//'` 9729 if test -e "$perl_archlibexp/CORE/lib$perl_lib.a"; then 9730 perl_embed_ldflags="-L$perl_archlibexp/CORE -l$perl_lib" 9731 fi 9732 fi 9733else 9734 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts` 9735 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'` 9736 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"` 9737fi 9738if test -z "$perl_embed_ldflags" ; then 9739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9740$as_echo "no" >&6; } 9741 as_fn_error $? "could not determine flags for linking embedded Perl. 9742This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not 9743installed." "$LINENO" 5 9744else 9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_embed_ldflags" >&5 9746$as_echo "$perl_embed_ldflags" >&6; } 9747fi 9748 9749fi 9750 9751if test "$with_python" = yes; then 9752 if test -z "$PYTHON"; then 9753 for ac_prog in python python3 python2 9754do 9755 # Extract the first word of "$ac_prog", so it can be a program name with args. 9756set dummy $ac_prog; ac_word=$2 9757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9758$as_echo_n "checking for $ac_word... " >&6; } 9759if ${ac_cv_path_PYTHON+:} false; then : 9760 $as_echo_n "(cached) " >&6 9761else 9762 case $PYTHON in 9763 [\\/]* | ?:[\\/]*) 9764 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 9765 ;; 9766 *) 9767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9768for as_dir in $PATH 9769do 9770 IFS=$as_save_IFS 9771 test -z "$as_dir" && as_dir=. 9772 for ac_exec_ext in '' $ac_executable_extensions; do 9773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9774 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 9775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9776 break 2 9777 fi 9778done 9779 done 9780IFS=$as_save_IFS 9781 9782 ;; 9783esac 9784fi 9785PYTHON=$ac_cv_path_PYTHON 9786if test -n "$PYTHON"; then 9787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 9788$as_echo "$PYTHON" >&6; } 9789else 9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9791$as_echo "no" >&6; } 9792fi 9793 9794 9795 test -n "$PYTHON" && break 9796done 9797 9798else 9799 # Report the value of PYTHON in configure's output in all cases. 9800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYTHON" >&5 9801$as_echo_n "checking for PYTHON... " >&6; } 9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 9803$as_echo "$PYTHON" >&6; } 9804fi 9805 9806if test x"$PYTHON" = x""; then 9807 as_fn_error $? "Python not found" "$LINENO" 5 9808fi 9809 9810 9811python_fullversion=`${PYTHON} -c "import sys; print(sys.version)" | sed q` 9812{ $as_echo "$as_me:${as_lineno-$LINENO}: using python $python_fullversion" >&5 9813$as_echo "$as_me: using python $python_fullversion" >&6;} 9814# python_fullversion is typically n.n.n plus some trailing junk 9815python_majorversion=`echo "$python_fullversion" | sed 's/^\([0-9]*\).*/\1/'` 9816python_minorversion=`echo "$python_fullversion" | sed 's/^[0-9]*\.\([0-9]*\).*/\1/'` 9817python_version=`echo "$python_fullversion" | sed 's/^\([0-9]*\.[0-9]*\).*/\1/'` 9818# Reject unsupported Python versions as soon as practical. 9819if test "$python_majorversion" -lt 3 -a "$python_minorversion" -lt 6; then 9820 as_fn_error $? "Python version $python_version is too old (version 2.6 or later is required)" "$LINENO" 5 9821fi 9822 9823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python distutils module" >&5 9824$as_echo_n "checking for Python distutils module... " >&6; } 9825if "${PYTHON}" -c 'import distutils' 2>&5 9826then 9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9828$as_echo "yes" >&6; } 9829else 9830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9831$as_echo "no" >&6; } 9832 as_fn_error $? "distutils module not found" "$LINENO" 5 9833fi 9834 9835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Python configuration directory" >&5 9836$as_echo_n "checking Python configuration directory... " >&6; } 9837python_configdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBPL'))))"` 9838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_configdir" >&5 9839$as_echo "$python_configdir" >&6; } 9840 9841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Python include directories" >&5 9842$as_echo_n "checking Python include directories... " >&6; } 9843python_includespec=`${PYTHON} -c " 9844import distutils.sysconfig 9845a = '-I' + distutils.sysconfig.get_python_inc(False) 9846b = '-I' + distutils.sysconfig.get_python_inc(True) 9847if a == b: 9848 print(a) 9849else: 9850 print(a + ' ' + b)"` 9851if test "$PORTNAME" = win32 ; then 9852 python_includespec=`echo $python_includespec | sed 's,[\],/,g'` 9853fi 9854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_includespec" >&5 9855$as_echo "$python_includespec" >&6; } 9856 9857 9858 9859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link an embedded Python application" >&5 9860$as_echo_n "checking how to link an embedded Python application... " >&6; } 9861 9862python_libdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"` 9863python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"` 9864 9865# If LDLIBRARY exists and has a shlib extension, use it verbatim. 9866ldlibrary=`echo "${python_ldlibrary}" | sed -e 's/\.so$//' -e 's/\.dll$//' -e 's/\.dylib$//' -e 's/\.sl$//'` 9867if test -e "${python_libdir}/${python_ldlibrary}" -a x"${python_ldlibrary}" != x"${ldlibrary}" 9868then 9869 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"` 9870 found_shlib=1 9871else 9872 # Otherwise, guess the base name of the shlib. 9873 # LDVERSION was added in Python 3.2, before that use VERSION, 9874 # or failing that, $python_version from _PGAC_CHECK_PYTHON_DIRS. 9875 python_ldversion=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDVERSION'))))"` 9876 if test x"${python_ldversion}" != x""; then 9877 ldlibrary="python${python_ldversion}" 9878 else 9879 python_version_var=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('VERSION'))))"` 9880 if test x"${python_version_var}" != x""; then 9881 ldlibrary="python${python_version_var}" 9882 else 9883 ldlibrary="python${python_version}" 9884 fi 9885 fi 9886 # Search for a likely-looking file. 9887 found_shlib=0 9888 for d in "${python_libdir}" "${python_configdir}" /usr/lib64 /usr/lib 9889 do 9890 # We don't know the platform DLSUFFIX here, so check 'em all. 9891 for e in .so .dll .dylib .sl; do 9892 if test -e "$d/lib${ldlibrary}$e"; then 9893 python_libdir="$d" 9894 found_shlib=1 9895 break 2 9896 fi 9897 done 9898 done 9899 # Some platforms (OpenBSD) require us to accept a bare versioned shlib 9900 # (".so.n.n") as well. However, check this only after failing to find 9901 # ".so" anywhere, because yet other platforms (Debian) put the .so 9902 # symlink in a different directory from the underlying versioned shlib. 9903 if test "$found_shlib" != 1; then 9904 for d in "${python_libdir}" "${python_configdir}" /usr/lib64 /usr/lib 9905 do 9906 for f in "$d/lib${ldlibrary}.so."* ; do 9907 if test -e "$f"; then 9908 python_libdir="$d" 9909 found_shlib=1 9910 break 2 9911 fi 9912 done 9913 done 9914 fi 9915 # As usual, Windows has its own ideas. Possible default library 9916 # locations include c:/Windows/System32 and (for Cygwin) /usr/bin, 9917 # and the "lib" prefix might not be there. 9918 if test "$found_shlib" != 1 -a \( "$PORTNAME" = win32 -o "$PORTNAME" = cygwin \); then 9919 for d in "${python_libdir}" "${python_configdir}" c:/Windows/System32 /usr/bin 9920 do 9921 for f in "$d/lib${ldlibrary}.dll" "$d/${ldlibrary}.dll" ; do 9922 if test -e "$f"; then 9923 python_libdir="$d" 9924 found_shlib=1 9925 break 2 9926 fi 9927 done 9928 done 9929 fi 9930fi 9931if test "$found_shlib" != 1; then 9932 as_fn_error $? "could not find shared library for Python 9933You might have to rebuild your Python installation. Refer to the 9934documentation for details. Use --without-python to disable building 9935PL/Python." "$LINENO" 5 9936fi 9937python_libspec="-L${python_libdir} -l${ldlibrary}" 9938 9939python_additional_libs=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"` 9940 9941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_libspec} ${python_additional_libs}" >&5 9942$as_echo "${python_libspec} ${python_additional_libs}" >&6; } 9943 9944 9945 9946fi 9947 9948if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then 9949 if test -z "$ZIC"; then 9950 for ac_prog in zic 9951do 9952 # Extract the first word of "$ac_prog", so it can be a program name with args. 9953set dummy $ac_prog; ac_word=$2 9954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9955$as_echo_n "checking for $ac_word... " >&6; } 9956if ${ac_cv_path_ZIC+:} false; then : 9957 $as_echo_n "(cached) " >&6 9958else 9959 case $ZIC in 9960 [\\/]* | ?:[\\/]*) 9961 ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path. 9962 ;; 9963 *) 9964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9965for as_dir in $PATH 9966do 9967 IFS=$as_save_IFS 9968 test -z "$as_dir" && as_dir=. 9969 for ac_exec_ext in '' $ac_executable_extensions; do 9970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9971 ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext" 9972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9973 break 2 9974 fi 9975done 9976 done 9977IFS=$as_save_IFS 9978 9979 ;; 9980esac 9981fi 9982ZIC=$ac_cv_path_ZIC 9983if test -n "$ZIC"; then 9984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIC" >&5 9985$as_echo "$ZIC" >&6; } 9986else 9987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9988$as_echo "no" >&6; } 9989fi 9990 9991 9992 test -n "$ZIC" && break 9993done 9994 9995else 9996 # Report the value of ZIC in configure's output in all cases. 9997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIC" >&5 9998$as_echo_n "checking for ZIC... " >&6; } 9999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIC" >&5 10000$as_echo "$ZIC" >&6; } 10001fi 10002 10003 if test -z "$ZIC"; then 10004 as_fn_error $? " 10005When cross-compiling, either use the option --with-system-tzdata to use 10006existing time-zone data, or set the environment variable ZIC to a zic 10007program to use during the build." "$LINENO" 5 10008 fi 10009fi 10010 10011# 10012# Pthreads 10013# 10014# For each platform, we need to know about any special compile and link 10015# libraries, and whether the normal C function names are thread-safe. 10016# See the comment at the top of src/port/thread.c for more information. 10017# WIN32 doesn't need the pthread tests; it always uses threads 10018# 10019# These tests are run before the library-tests, because linking with the 10020# other libraries can pull in the pthread functions as a side-effect. We 10021# want to use the -pthread or similar flags directly, and not rely on 10022# the side-effects of linking with some other library. 10023 10024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 10025$as_echo_n "checking for a sed that does not truncate output... " >&6; } 10026if ${ac_cv_path_SED+:} false; then : 10027 $as_echo_n "(cached) " >&6 10028else 10029 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 10030 for ac_i in 1 2 3 4 5 6 7; do 10031 ac_script="$ac_script$as_nl$ac_script" 10032 done 10033 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 10034 { ac_script=; unset ac_script;} 10035 if test -z "$SED"; then 10036 ac_path_SED_found=false 10037 # Loop through the user's path and test for each of PROGNAME-LIST 10038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10039for as_dir in $PATH 10040do 10041 IFS=$as_save_IFS 10042 test -z "$as_dir" && as_dir=. 10043 for ac_prog in sed gsed; do 10044 for ac_exec_ext in '' $ac_executable_extensions; do 10045 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 10046 as_fn_executable_p "$ac_path_SED" || continue 10047# Check for GNU ac_path_SED and select it if it is found. 10048 # Check for GNU $ac_path_SED 10049case `"$ac_path_SED" --version 2>&1` in 10050*GNU*) 10051 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 10052*) 10053 ac_count=0 10054 $as_echo_n 0123456789 >"conftest.in" 10055 while : 10056 do 10057 cat "conftest.in" "conftest.in" >"conftest.tmp" 10058 mv "conftest.tmp" "conftest.in" 10059 cp "conftest.in" "conftest.nl" 10060 $as_echo '' >> "conftest.nl" 10061 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 10062 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 10063 as_fn_arith $ac_count + 1 && ac_count=$as_val 10064 if test $ac_count -gt ${ac_path_SED_max-0}; then 10065 # Best one so far, save it but keep looking for a better one 10066 ac_cv_path_SED="$ac_path_SED" 10067 ac_path_SED_max=$ac_count 10068 fi 10069 # 10*(2^10) chars as input seems more than enough 10070 test $ac_count -gt 10 && break 10071 done 10072 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 10073esac 10074 10075 $ac_path_SED_found && break 3 10076 done 10077 done 10078 done 10079IFS=$as_save_IFS 10080 if test -z "$ac_cv_path_SED"; then 10081 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 10082 fi 10083else 10084 ac_cv_path_SED=$SED 10085fi 10086 10087fi 10088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 10089$as_echo "$ac_cv_path_SED" >&6; } 10090 SED="$ac_cv_path_SED" 10091 rm -f conftest.sed 10092 10093 10094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 10095$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 10096if ${ac_cv_path_GREP+:} false; then : 10097 $as_echo_n "(cached) " >&6 10098else 10099 if test -z "$GREP"; then 10100 ac_path_GREP_found=false 10101 # Loop through the user's path and test for each of PROGNAME-LIST 10102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10103for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 10104do 10105 IFS=$as_save_IFS 10106 test -z "$as_dir" && as_dir=. 10107 for ac_prog in grep ggrep; do 10108 for ac_exec_ext in '' $ac_executable_extensions; do 10109 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 10110 as_fn_executable_p "$ac_path_GREP" || continue 10111# Check for GNU ac_path_GREP and select it if it is found. 10112 # Check for GNU $ac_path_GREP 10113case `"$ac_path_GREP" --version 2>&1` in 10114*GNU*) 10115 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 10116*) 10117 ac_count=0 10118 $as_echo_n 0123456789 >"conftest.in" 10119 while : 10120 do 10121 cat "conftest.in" "conftest.in" >"conftest.tmp" 10122 mv "conftest.tmp" "conftest.in" 10123 cp "conftest.in" "conftest.nl" 10124 $as_echo 'GREP' >> "conftest.nl" 10125 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 10126 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 10127 as_fn_arith $ac_count + 1 && ac_count=$as_val 10128 if test $ac_count -gt ${ac_path_GREP_max-0}; then 10129 # Best one so far, save it but keep looking for a better one 10130 ac_cv_path_GREP="$ac_path_GREP" 10131 ac_path_GREP_max=$ac_count 10132 fi 10133 # 10*(2^10) chars as input seems more than enough 10134 test $ac_count -gt 10 && break 10135 done 10136 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 10137esac 10138 10139 $ac_path_GREP_found && break 3 10140 done 10141 done 10142 done 10143IFS=$as_save_IFS 10144 if test -z "$ac_cv_path_GREP"; then 10145 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 10146 fi 10147else 10148 ac_cv_path_GREP=$GREP 10149fi 10150 10151fi 10152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 10153$as_echo "$ac_cv_path_GREP" >&6; } 10154 GREP="$ac_cv_path_GREP" 10155 10156 10157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 10158$as_echo_n "checking for egrep... " >&6; } 10159if ${ac_cv_path_EGREP+:} false; then : 10160 $as_echo_n "(cached) " >&6 10161else 10162 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 10163 then ac_cv_path_EGREP="$GREP -E" 10164 else 10165 if test -z "$EGREP"; then 10166 ac_path_EGREP_found=false 10167 # Loop through the user's path and test for each of PROGNAME-LIST 10168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10169for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 10170do 10171 IFS=$as_save_IFS 10172 test -z "$as_dir" && as_dir=. 10173 for ac_prog in egrep; do 10174 for ac_exec_ext in '' $ac_executable_extensions; do 10175 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 10176 as_fn_executable_p "$ac_path_EGREP" || continue 10177# Check for GNU ac_path_EGREP and select it if it is found. 10178 # Check for GNU $ac_path_EGREP 10179case `"$ac_path_EGREP" --version 2>&1` in 10180*GNU*) 10181 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 10182*) 10183 ac_count=0 10184 $as_echo_n 0123456789 >"conftest.in" 10185 while : 10186 do 10187 cat "conftest.in" "conftest.in" >"conftest.tmp" 10188 mv "conftest.tmp" "conftest.in" 10189 cp "conftest.in" "conftest.nl" 10190 $as_echo 'EGREP' >> "conftest.nl" 10191 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 10192 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 10193 as_fn_arith $ac_count + 1 && ac_count=$as_val 10194 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 10195 # Best one so far, save it but keep looking for a better one 10196 ac_cv_path_EGREP="$ac_path_EGREP" 10197 ac_path_EGREP_max=$ac_count 10198 fi 10199 # 10*(2^10) chars as input seems more than enough 10200 test $ac_count -gt 10 && break 10201 done 10202 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 10203esac 10204 10205 $ac_path_EGREP_found && break 3 10206 done 10207 done 10208 done 10209IFS=$as_save_IFS 10210 if test -z "$ac_cv_path_EGREP"; then 10211 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 10212 fi 10213else 10214 ac_cv_path_EGREP=$EGREP 10215fi 10216 10217 fi 10218fi 10219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 10220$as_echo "$ac_cv_path_EGREP" >&6; } 10221 EGREP="$ac_cv_path_EGREP" 10222 10223 10224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 10225$as_echo_n "checking for ANSI C header files... " >&6; } 10226if ${ac_cv_header_stdc+:} false; then : 10227 $as_echo_n "(cached) " >&6 10228else 10229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10230/* end confdefs.h. */ 10231#include <stdlib.h> 10232#include <stdarg.h> 10233#include <string.h> 10234#include <float.h> 10235 10236int 10237main () 10238{ 10239 10240 ; 10241 return 0; 10242} 10243_ACEOF 10244if ac_fn_c_try_compile "$LINENO"; then : 10245 ac_cv_header_stdc=yes 10246else 10247 ac_cv_header_stdc=no 10248fi 10249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10250 10251if test $ac_cv_header_stdc = yes; then 10252 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 10253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10254/* end confdefs.h. */ 10255#include <string.h> 10256 10257_ACEOF 10258if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10259 $EGREP "memchr" >/dev/null 2>&1; then : 10260 10261else 10262 ac_cv_header_stdc=no 10263fi 10264rm -f conftest* 10265 10266fi 10267 10268if test $ac_cv_header_stdc = yes; then 10269 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 10270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10271/* end confdefs.h. */ 10272#include <stdlib.h> 10273 10274_ACEOF 10275if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10276 $EGREP "free" >/dev/null 2>&1; then : 10277 10278else 10279 ac_cv_header_stdc=no 10280fi 10281rm -f conftest* 10282 10283fi 10284 10285if test $ac_cv_header_stdc = yes; then 10286 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 10287 if test "$cross_compiling" = yes; then : 10288 : 10289else 10290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10291/* end confdefs.h. */ 10292#include <ctype.h> 10293#include <stdlib.h> 10294#if ((' ' & 0x0FF) == 0x020) 10295# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 10296# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 10297#else 10298# define ISLOWER(c) \ 10299 (('a' <= (c) && (c) <= 'i') \ 10300 || ('j' <= (c) && (c) <= 'r') \ 10301 || ('s' <= (c) && (c) <= 'z')) 10302# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 10303#endif 10304 10305#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 10306int 10307main () 10308{ 10309 int i; 10310 for (i = 0; i < 256; i++) 10311 if (XOR (islower (i), ISLOWER (i)) 10312 || toupper (i) != TOUPPER (i)) 10313 return 2; 10314 return 0; 10315} 10316_ACEOF 10317if ac_fn_c_try_run "$LINENO"; then : 10318 10319else 10320 ac_cv_header_stdc=no 10321fi 10322rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10323 conftest.$ac_objext conftest.beam conftest.$ac_ext 10324fi 10325 10326fi 10327fi 10328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 10329$as_echo "$ac_cv_header_stdc" >&6; } 10330if test $ac_cv_header_stdc = yes; then 10331 10332$as_echo "#define STDC_HEADERS 1" >>confdefs.h 10333 10334fi 10335 10336# On IRIX 5.3, sys/types and inttypes.h are conflicting. 10337for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 10338 inttypes.h stdint.h unistd.h 10339do : 10340 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10341ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 10342" 10343if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10344 cat >>confdefs.h <<_ACEOF 10345#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10346_ACEOF 10347 10348fi 10349 10350done 10351 10352 10353if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then : 10354 # then 10355 10356 10357 10358 10359ac_ext=c 10360ac_cpp='$CPP $CPPFLAGS' 10361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10363ac_compiler_gnu=$ac_cv_c_compiler_gnu 10364 10365ax_pthread_ok=no 10366 10367# We used to check for pthread.h first, but this fails if pthread.h 10368# requires special compiler flags (e.g. on Tru64 or Sequent). 10369# It gets checked for in the link test anyway. 10370 10371# First of all, check if the user has set any of the PTHREAD_LIBS, 10372# etcetera environment variables, and if threads linking works using 10373# them: 10374if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then 10375 ax_pthread_save_CC="$CC" 10376 ax_pthread_save_CFLAGS="$CFLAGS" 10377 ax_pthread_save_LIBS="$LIBS" 10378 if test "x$PTHREAD_CC" != "x"; then : 10379 CC="$PTHREAD_CC" 10380fi 10381 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 10382 LIBS="$PTHREAD_LIBS $LIBS" 10383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5 10384$as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; } 10385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10386/* end confdefs.h. */ 10387 10388/* Override any GCC internal prototype to avoid an error. 10389 Use char because int might match the return type of a GCC 10390 builtin and then its argument prototype would still apply. */ 10391#ifdef __cplusplus 10392extern "C" 10393#endif 10394char pthread_join (); 10395int 10396main () 10397{ 10398return pthread_join (); 10399 ; 10400 return 0; 10401} 10402_ACEOF 10403if ac_fn_c_try_link "$LINENO"; then : 10404 ax_pthread_ok=yes 10405fi 10406rm -f core conftest.err conftest.$ac_objext \ 10407 conftest$ac_exeext conftest.$ac_ext 10408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 10409$as_echo "$ax_pthread_ok" >&6; } 10410 if test "x$ax_pthread_ok" = "xno"; then 10411 PTHREAD_LIBS="" 10412 PTHREAD_CFLAGS="" 10413 fi 10414 CC="$ax_pthread_save_CC" 10415 CFLAGS="$ax_pthread_save_CFLAGS" 10416 LIBS="$ax_pthread_save_LIBS" 10417fi 10418 10419# We must check for the threads library under a number of different 10420# names; the ordering is very important because some systems 10421# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 10422# libraries is broken (non-POSIX). 10423 10424# Create a list of thread flags to try. Items starting with a "-" are 10425# C compiler flags, and other items are library names, except for "none" 10426# which indicates that we try without any flags at all, and "pthread-config" 10427# which is a program returning the flags for the Pth emulation library. 10428 10429ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 10430 10431# The ordering *is* (sometimes) important. Some notes on the 10432# individual items follow: 10433 10434# pthreads: AIX (must check this before -lpthread) 10435# none: in case threads are in libc; should be tried before -Kthread and 10436# other compiler flags to prevent continual compiler warnings 10437# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 10438# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64 10439# (Note: HP C rejects this with "bad form for `-t' option") 10440# -pthreads: Solaris/gcc (Note: HP C also rejects) 10441# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 10442# doesn't hurt to check since this sometimes defines pthreads and 10443# -D_REENTRANT too), HP C (must be checked before -lpthread, which 10444# is present but should not be used directly; and before -mthreads, 10445# because the compiler interprets this as "-mt" + "-hreads") 10446# -mthreads: Mingw32/gcc, Lynx/gcc 10447# pthread: Linux, etcetera 10448# --thread-safe: KAI C++ 10449# pthread-config: use pthread-config program (for GNU Pth library) 10450 10451case $host_os in 10452 10453 freebsd*) 10454 10455 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 10456 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 10457 10458 ax_pthread_flags="-kthread lthread $ax_pthread_flags" 10459 ;; 10460 10461 hpux*) 10462 10463 # From the cc(1) man page: "[-mt] Sets various -D flags to enable 10464 # multi-threading and also sets -lpthread." 10465 10466 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags" 10467 ;; 10468 10469 openedition*) 10470 10471 # IBM z/OS requires a feature-test macro to be defined in order to 10472 # enable POSIX threads at all, so give the user a hint if this is 10473 # not set. (We don't define these ourselves, as they can affect 10474 # other portions of the system API in unpredictable ways.) 10475 10476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10477/* end confdefs.h. */ 10478 10479# if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS) 10480 AX_PTHREAD_ZOS_MISSING 10481# endif 10482 10483_ACEOF 10484if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10485 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then : 10486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5 10487$as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;} 10488fi 10489rm -f conftest* 10490 10491 ;; 10492 10493 solaris*) 10494 10495 # On Solaris (at least, for some versions), libc contains stubbed 10496 # (non-functional) versions of the pthreads routines, so link-based 10497 # tests will erroneously succeed. (N.B.: The stubs are missing 10498 # pthread_cleanup_push, or rather a function called by this macro, 10499 # so we could check for that, but who knows whether they'll stub 10500 # that too in a future libc.) So we'll check first for the 10501 # standard Solaris way of linking pthreads (-mt -lpthread). 10502 10503 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags" 10504 ;; 10505esac 10506 10507# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC) 10508 10509if test "x$GCC" = "xyes"; then : 10510 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags" 10511fi 10512 10513# The presence of a feature test macro requesting re-entrant function 10514# definitions is, on some systems, a strong hint that pthreads support is 10515# correctly enabled 10516 10517case $host_os in 10518 darwin* | hpux* | linux* | osf* | solaris*) 10519 ax_pthread_check_macro="_REENTRANT" 10520 ;; 10521 10522 aix*) 10523 ax_pthread_check_macro="_THREAD_SAFE" 10524 ;; 10525 10526 *) 10527 ax_pthread_check_macro="--" 10528 ;; 10529esac 10530if test "x$ax_pthread_check_macro" = "x--"; then : 10531 ax_pthread_check_cond=0 10532else 10533 ax_pthread_check_cond="!defined($ax_pthread_check_macro)" 10534fi 10535 10536# Are we compiling with Clang? 10537 10538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5 10539$as_echo_n "checking whether $CC is Clang... " >&6; } 10540if ${ax_cv_PTHREAD_CLANG+:} false; then : 10541 $as_echo_n "(cached) " >&6 10542else 10543 ax_cv_PTHREAD_CLANG=no 10544 # Note that Autoconf sets GCC=yes for Clang as well as GCC 10545 if test "x$GCC" = "xyes"; then 10546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10547/* end confdefs.h. */ 10548/* Note: Clang 2.7 lacks __clang_[a-z]+__ */ 10549# if defined(__clang__) && defined(__llvm__) 10550 AX_PTHREAD_CC_IS_CLANG 10551# endif 10552 10553_ACEOF 10554if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10555 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then : 10556 ax_cv_PTHREAD_CLANG=yes 10557fi 10558rm -f conftest* 10559 10560 fi 10561 10562fi 10563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5 10564$as_echo "$ax_cv_PTHREAD_CLANG" >&6; } 10565ax_pthread_clang="$ax_cv_PTHREAD_CLANG" 10566 10567ax_pthread_clang_warning=no 10568 10569# Clang needs special handling, because older versions handle the -pthread 10570# option in a rather... idiosyncratic way 10571 10572if test "x$ax_pthread_clang" = "xyes"; then 10573 10574 # Clang takes -pthread; it has never supported any other flag 10575 10576 # (Note 1: This will need to be revisited if a system that Clang 10577 # supports has POSIX threads in a separate library. This tends not 10578 # to be the way of modern systems, but it's conceivable.) 10579 10580 # (Note 2: On some systems, notably Darwin, -pthread is not needed 10581 # to get POSIX threads support; the API is always present and 10582 # active. We could reasonably leave PTHREAD_CFLAGS empty. But 10583 # -pthread does define _REENTRANT, and while the Darwin headers 10584 # ignore this macro, third-party headers might not.) 10585 10586 PTHREAD_CFLAGS="-pthread" 10587 PTHREAD_LIBS= 10588 10589 ax_pthread_ok=yes 10590 10591 # However, older versions of Clang make a point of warning the user 10592 # that, in an invocation where only linking and no compilation is 10593 # taking place, the -pthread option has no effect ("argument unused 10594 # during compilation"). They expect -pthread to be passed in only 10595 # when source code is being compiled. 10596 # 10597 # Problem is, this is at odds with the way Automake and most other 10598 # C build frameworks function, which is that the same flags used in 10599 # compilation (CFLAGS) are also used in linking. Many systems 10600 # supported by AX_PTHREAD require exactly this for POSIX threads 10601 # support, and in fact it is often not straightforward to specify a 10602 # flag that is used only in the compilation phase and not in 10603 # linking. Such a scenario is extremely rare in practice. 10604 # 10605 # Even though use of the -pthread flag in linking would only print 10606 # a warning, this can be a nuisance for well-run software projects 10607 # that build with -Werror. So if the active version of Clang has 10608 # this misfeature, we search for an option to squash it. 10609 10610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5 10611$as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; } 10612if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then : 10613 $as_echo_n "(cached) " >&6 10614else 10615 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown 10616 # Create an alternate version of $ac_link that compiles and 10617 # links in two steps (.c -> .o, .o -> exe) instead of one 10618 # (.c -> exe), because the warning occurs only in the second 10619 # step 10620 ax_pthread_save_ac_link="$ac_link" 10621 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g' 10622 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"` 10623 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)" 10624 ax_pthread_save_CFLAGS="$CFLAGS" 10625 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do 10626 if test "x$ax_pthread_try" = "xunknown"; then : 10627 break 10628fi 10629 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS" 10630 ac_link="$ax_pthread_save_ac_link" 10631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10632/* end confdefs.h. */ 10633int main(void){return 0;} 10634_ACEOF 10635if ac_fn_c_try_link "$LINENO"; then : 10636 ac_link="$ax_pthread_2step_ac_link" 10637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10638/* end confdefs.h. */ 10639int main(void){return 0;} 10640_ACEOF 10641if ac_fn_c_try_link "$LINENO"; then : 10642 break 10643fi 10644rm -f core conftest.err conftest.$ac_objext \ 10645 conftest$ac_exeext conftest.$ac_ext 10646 10647fi 10648rm -f core conftest.err conftest.$ac_objext \ 10649 conftest$ac_exeext conftest.$ac_ext 10650 done 10651 ac_link="$ax_pthread_save_ac_link" 10652 CFLAGS="$ax_pthread_save_CFLAGS" 10653 if test "x$ax_pthread_try" = "x"; then : 10654 ax_pthread_try=no 10655fi 10656 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try" 10657 10658fi 10659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5 10660$as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; } 10661 10662 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in 10663 no | unknown) ;; 10664 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;; 10665 esac 10666 10667fi # $ax_pthread_clang = yes 10668 10669if test "x$ax_pthread_ok" = "xno"; then 10670for ax_pthread_try_flag in $ax_pthread_flags; do 10671 10672 case $ax_pthread_try_flag in 10673 none) 10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 10675$as_echo_n "checking whether pthreads work without any flags... " >&6; } 10676 ;; 10677 10678 -mt,pthread) 10679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5 10680$as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; } 10681 PTHREAD_CFLAGS="-mt" 10682 PTHREAD_LIBS="-lpthread" 10683 ;; 10684 10685 -*) 10686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5 10687$as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; } 10688 PTHREAD_CFLAGS="$ax_pthread_try_flag" 10689 ;; 10690 10691 pthread-config) 10692 # Extract the first word of "pthread-config", so it can be a program name with args. 10693set dummy pthread-config; ac_word=$2 10694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10695$as_echo_n "checking for $ac_word... " >&6; } 10696if ${ac_cv_prog_ax_pthread_config+:} false; then : 10697 $as_echo_n "(cached) " >&6 10698else 10699 if test -n "$ax_pthread_config"; then 10700 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 10701else 10702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10703for as_dir in $PATH 10704do 10705 IFS=$as_save_IFS 10706 test -z "$as_dir" && as_dir=. 10707 for ac_exec_ext in '' $ac_executable_extensions; do 10708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10709 ac_cv_prog_ax_pthread_config="yes" 10710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10711 break 2 10712 fi 10713done 10714 done 10715IFS=$as_save_IFS 10716 10717 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 10718fi 10719fi 10720ax_pthread_config=$ac_cv_prog_ax_pthread_config 10721if test -n "$ax_pthread_config"; then 10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 10723$as_echo "$ax_pthread_config" >&6; } 10724else 10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10726$as_echo "no" >&6; } 10727fi 10728 10729 10730 if test "x$ax_pthread_config" = "xno"; then : 10731 continue 10732fi 10733 PTHREAD_CFLAGS="`pthread-config --cflags`" 10734 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 10735 ;; 10736 10737 *) 10738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5 10739$as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; } 10740 PTHREAD_LIBS="-l$ax_pthread_try_flag" 10741 ;; 10742 esac 10743 10744 ax_pthread_save_CFLAGS="$CFLAGS" 10745 ax_pthread_save_LIBS="$LIBS" 10746 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 10747 LIBS="$PTHREAD_LIBS $LIBS" 10748 10749 # Check for various functions. We must include pthread.h, 10750 # since some functions may be macros. (On the Sequent, we 10751 # need a special flag -Kthread to make this header compile.) 10752 # We check for pthread_join because it is in -lpthread on IRIX 10753 # while pthread_create is in libc. We check for pthread_attr_init 10754 # due to DEC craziness with -lpthreads. We check for 10755 # pthread_cleanup_push because it is one of the few pthread 10756 # functions on Solaris that doesn't have a non-functional libc stub. 10757 # We try pthread_create on general principles. 10758 10759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10760/* end confdefs.h. */ 10761#include <pthread.h> 10762# if $ax_pthread_check_cond 10763# error "$ax_pthread_check_macro must be defined" 10764# endif 10765 static void routine(void *a) { a = 0; } 10766 static void *start_routine(void *a) { return a; } 10767int 10768main () 10769{ 10770pthread_t th; pthread_attr_t attr; 10771 pthread_create(&th, 0, start_routine, 0); 10772 pthread_join(th, 0); 10773 pthread_attr_init(&attr); 10774 pthread_cleanup_push(routine, 0); 10775 pthread_cleanup_pop(0) /* ; */ 10776 ; 10777 return 0; 10778} 10779_ACEOF 10780if ac_fn_c_try_link "$LINENO"; then : 10781 ax_pthread_ok=yes 10782fi 10783rm -f core conftest.err conftest.$ac_objext \ 10784 conftest$ac_exeext conftest.$ac_ext 10785 10786 CFLAGS="$ax_pthread_save_CFLAGS" 10787 LIBS="$ax_pthread_save_LIBS" 10788 10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 10790$as_echo "$ax_pthread_ok" >&6; } 10791 if test "x$ax_pthread_ok" = "xyes"; then : 10792 break 10793fi 10794 10795 PTHREAD_LIBS="" 10796 PTHREAD_CFLAGS="" 10797done 10798fi 10799 10800# Various other checks: 10801if test "x$ax_pthread_ok" = "xyes"; then 10802 ax_pthread_save_CFLAGS="$CFLAGS" 10803 ax_pthread_save_LIBS="$LIBS" 10804 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 10805 LIBS="$PTHREAD_LIBS $LIBS" 10806 10807 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 10808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 10809$as_echo_n "checking for joinable pthread attribute... " >&6; } 10810if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then : 10811 $as_echo_n "(cached) " >&6 10812else 10813 ax_cv_PTHREAD_JOINABLE_ATTR=unknown 10814 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 10815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10816/* end confdefs.h. */ 10817#include <pthread.h> 10818int 10819main () 10820{ 10821int attr = $ax_pthread_attr; return attr /* ; */ 10822 ; 10823 return 0; 10824} 10825_ACEOF 10826if ac_fn_c_try_link "$LINENO"; then : 10827 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break 10828fi 10829rm -f core conftest.err conftest.$ac_objext \ 10830 conftest$ac_exeext conftest.$ac_ext 10831 done 10832 10833fi 10834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5 10835$as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; } 10836 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \ 10837 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \ 10838 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then : 10839 10840cat >>confdefs.h <<_ACEOF 10841#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR 10842_ACEOF 10843 10844 ax_pthread_joinable_attr_defined=yes 10845 10846fi 10847 10848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5 10849$as_echo_n "checking whether more special flags are required for pthreads... " >&6; } 10850if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then : 10851 $as_echo_n "(cached) " >&6 10852else 10853 ax_cv_PTHREAD_SPECIAL_FLAGS=no 10854 case $host_os in 10855 solaris*) 10856 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS" 10857 ;; 10858 esac 10859 10860fi 10861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5 10862$as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; } 10863 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \ 10864 test "x$ax_pthread_special_flags_added" != "xyes"; then : 10865 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS" 10866 ax_pthread_special_flags_added=yes 10867fi 10868 10869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 10870$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } 10871if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : 10872 $as_echo_n "(cached) " >&6 10873else 10874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10875/* end confdefs.h. */ 10876#include <pthread.h> 10877int 10878main () 10879{ 10880int i = PTHREAD_PRIO_INHERIT; 10881 ; 10882 return 0; 10883} 10884_ACEOF 10885if ac_fn_c_try_link "$LINENO"; then : 10886 ax_cv_PTHREAD_PRIO_INHERIT=yes 10887else 10888 ax_cv_PTHREAD_PRIO_INHERIT=no 10889fi 10890rm -f core conftest.err conftest.$ac_objext \ 10891 conftest$ac_exeext conftest.$ac_ext 10892 10893fi 10894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 10895$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 10896 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \ 10897 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then : 10898 10899$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 10900 10901 ax_pthread_prio_inherit_defined=yes 10902 10903fi 10904 10905 CFLAGS="$ax_pthread_save_CFLAGS" 10906 LIBS="$ax_pthread_save_LIBS" 10907 10908 # More AIX lossage: compile with *_r variant 10909 if test "x$GCC" != "xyes"; then 10910 case $host_os in 10911 aix*) 10912 case "x/$CC" in #( 10913 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 10914 #handle absolute path differently from PATH based program lookup 10915 case "x$CC" in #( 10916 x/*) : 10917 if as_fn_executable_p ${CC}_r; then : 10918 PTHREAD_CC="${CC}_r" 10919fi ;; #( 10920 *) : 10921 for ac_prog in ${CC}_r 10922do 10923 # Extract the first word of "$ac_prog", so it can be a program name with args. 10924set dummy $ac_prog; ac_word=$2 10925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10926$as_echo_n "checking for $ac_word... " >&6; } 10927if ${ac_cv_prog_PTHREAD_CC+:} false; then : 10928 $as_echo_n "(cached) " >&6 10929else 10930 if test -n "$PTHREAD_CC"; then 10931 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 10932else 10933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10934for as_dir in $PATH 10935do 10936 IFS=$as_save_IFS 10937 test -z "$as_dir" && as_dir=. 10938 for ac_exec_ext in '' $ac_executable_extensions; do 10939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10940 ac_cv_prog_PTHREAD_CC="$ac_prog" 10941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10942 break 2 10943 fi 10944done 10945 done 10946IFS=$as_save_IFS 10947 10948fi 10949fi 10950PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 10951if test -n "$PTHREAD_CC"; then 10952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 10953$as_echo "$PTHREAD_CC" >&6; } 10954else 10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10956$as_echo "no" >&6; } 10957fi 10958 10959 10960 test -n "$PTHREAD_CC" && break 10961done 10962test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 10963 ;; 10964esac ;; #( 10965 *) : 10966 ;; 10967esac 10968 ;; 10969 esac 10970 fi 10971fi 10972 10973test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 10974 10975 10976 10977 10978 10979# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 10980if test "x$ax_pthread_ok" = "xyes"; then 10981 10982$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 10983 10984 : 10985else 10986 ax_pthread_ok=no 10987 10988fi 10989ac_ext=c 10990ac_cpp='$CPP $CPPFLAGS' 10991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10993ac_compiler_gnu=$ac_cv_c_compiler_gnu 10994 10995 # set thread flags 10996 10997# Some platforms use these, so just define them. They can't hurt if they 10998# are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS 10999# enables 5-arg getpwuid_r, among other things. 11000PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS" 11001 11002# Check for *_r functions 11003_CFLAGS="$CFLAGS" 11004_LIBS="$LIBS" 11005CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 11006LIBS="$LIBS $PTHREAD_LIBS" 11007 11008ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 11009if test "x$ac_cv_header_pthread_h" = xyes; then : 11010 11011else 11012 as_fn_error $? " 11013pthread.h not found; use --disable-thread-safety to disable thread safety" "$LINENO" 5 11014fi 11015 11016 11017 11018for ac_func in strerror_r getpwuid_r gethostbyname_r 11019do : 11020 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11021ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 11022if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 11023 cat >>confdefs.h <<_ACEOF 11024#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11025_ACEOF 11026 11027fi 11028done 11029 11030 11031# Do test here with the proper thread flags 11032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns int" >&5 11033$as_echo_n "checking whether strerror_r returns int... " >&6; } 11034if ${pgac_cv_func_strerror_r_int+:} false; then : 11035 $as_echo_n "(cached) " >&6 11036else 11037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11038/* end confdefs.h. */ 11039#include <string.h> 11040int 11041main () 11042{ 11043char buf[100]; 11044 switch (strerror_r(1, buf, sizeof(buf))) 11045 { case 0: break; default: break; } 11046 11047 ; 11048 return 0; 11049} 11050_ACEOF 11051if ac_fn_c_try_compile "$LINENO"; then : 11052 pgac_cv_func_strerror_r_int=yes 11053else 11054 pgac_cv_func_strerror_r_int=no 11055fi 11056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11057fi 11058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_strerror_r_int" >&5 11059$as_echo "$pgac_cv_func_strerror_r_int" >&6; } 11060if test x"$pgac_cv_func_strerror_r_int" = xyes ; then 11061 11062$as_echo "#define STRERROR_R_INT 1" >>confdefs.h 11063 11064fi 11065 11066 11067CFLAGS="$_CFLAGS" 11068LIBS="$_LIBS" 11069 11070 11071else 11072 # else 11073# do not use values from template file 11074PTHREAD_CFLAGS= 11075PTHREAD_LIBS= 11076 11077fi # fi 11078 11079 11080 11081 11082 11083## 11084## Libraries 11085## 11086## Most libraries are included only if they demonstrably provide a function 11087## we need, but libm is an exception: always include it, because there are 11088## too many compilers that play cute optimization games that will break 11089## probes for standard functions such as pow(). 11090## 11091 11092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5 11093$as_echo_n "checking for main in -lm... " >&6; } 11094if ${ac_cv_lib_m_main+:} false; then : 11095 $as_echo_n "(cached) " >&6 11096else 11097 ac_check_lib_save_LIBS=$LIBS 11098LIBS="-lm $LIBS" 11099cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11100/* end confdefs.h. */ 11101 11102 11103int 11104main () 11105{ 11106return main (); 11107 ; 11108 return 0; 11109} 11110_ACEOF 11111if ac_fn_c_try_link "$LINENO"; then : 11112 ac_cv_lib_m_main=yes 11113else 11114 ac_cv_lib_m_main=no 11115fi 11116rm -f core conftest.err conftest.$ac_objext \ 11117 conftest$ac_exeext conftest.$ac_ext 11118LIBS=$ac_check_lib_save_LIBS 11119fi 11120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5 11121$as_echo "$ac_cv_lib_m_main" >&6; } 11122if test "x$ac_cv_lib_m_main" = xyes; then : 11123 cat >>confdefs.h <<_ACEOF 11124#define HAVE_LIBM 1 11125_ACEOF 11126 11127 LIBS="-lm $LIBS" 11128 11129fi 11130 11131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setproctitle" >&5 11132$as_echo_n "checking for library containing setproctitle... " >&6; } 11133if ${ac_cv_search_setproctitle+:} false; then : 11134 $as_echo_n "(cached) " >&6 11135else 11136 ac_func_search_save_LIBS=$LIBS 11137cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11138/* end confdefs.h. */ 11139 11140/* Override any GCC internal prototype to avoid an error. 11141 Use char because int might match the return type of a GCC 11142 builtin and then its argument prototype would still apply. */ 11143#ifdef __cplusplus 11144extern "C" 11145#endif 11146char setproctitle (); 11147int 11148main () 11149{ 11150return setproctitle (); 11151 ; 11152 return 0; 11153} 11154_ACEOF 11155for ac_lib in '' util; do 11156 if test -z "$ac_lib"; then 11157 ac_res="none required" 11158 else 11159 ac_res=-l$ac_lib 11160 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11161 fi 11162 if ac_fn_c_try_link "$LINENO"; then : 11163 ac_cv_search_setproctitle=$ac_res 11164fi 11165rm -f core conftest.err conftest.$ac_objext \ 11166 conftest$ac_exeext 11167 if ${ac_cv_search_setproctitle+:} false; then : 11168 break 11169fi 11170done 11171if ${ac_cv_search_setproctitle+:} false; then : 11172 11173else 11174 ac_cv_search_setproctitle=no 11175fi 11176rm conftest.$ac_ext 11177LIBS=$ac_func_search_save_LIBS 11178fi 11179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setproctitle" >&5 11180$as_echo "$ac_cv_search_setproctitle" >&6; } 11181ac_res=$ac_cv_search_setproctitle 11182if test "$ac_res" != no; then : 11183 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11184 11185fi 11186 11187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 11188$as_echo_n "checking for library containing dlopen... " >&6; } 11189if ${ac_cv_search_dlopen+:} false; then : 11190 $as_echo_n "(cached) " >&6 11191else 11192 ac_func_search_save_LIBS=$LIBS 11193cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11194/* end confdefs.h. */ 11195 11196/* Override any GCC internal prototype to avoid an error. 11197 Use char because int might match the return type of a GCC 11198 builtin and then its argument prototype would still apply. */ 11199#ifdef __cplusplus 11200extern "C" 11201#endif 11202char dlopen (); 11203int 11204main () 11205{ 11206return dlopen (); 11207 ; 11208 return 0; 11209} 11210_ACEOF 11211for ac_lib in '' dl; do 11212 if test -z "$ac_lib"; then 11213 ac_res="none required" 11214 else 11215 ac_res=-l$ac_lib 11216 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11217 fi 11218 if ac_fn_c_try_link "$LINENO"; then : 11219 ac_cv_search_dlopen=$ac_res 11220fi 11221rm -f core conftest.err conftest.$ac_objext \ 11222 conftest$ac_exeext 11223 if ${ac_cv_search_dlopen+:} false; then : 11224 break 11225fi 11226done 11227if ${ac_cv_search_dlopen+:} false; then : 11228 11229else 11230 ac_cv_search_dlopen=no 11231fi 11232rm conftest.$ac_ext 11233LIBS=$ac_func_search_save_LIBS 11234fi 11235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 11236$as_echo "$ac_cv_search_dlopen" >&6; } 11237ac_res=$ac_cv_search_dlopen 11238if test "$ac_res" != no; then : 11239 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11240 11241fi 11242 11243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 11244$as_echo_n "checking for library containing socket... " >&6; } 11245if ${ac_cv_search_socket+:} false; then : 11246 $as_echo_n "(cached) " >&6 11247else 11248 ac_func_search_save_LIBS=$LIBS 11249cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11250/* end confdefs.h. */ 11251 11252/* Override any GCC internal prototype to avoid an error. 11253 Use char because int might match the return type of a GCC 11254 builtin and then its argument prototype would still apply. */ 11255#ifdef __cplusplus 11256extern "C" 11257#endif 11258char socket (); 11259int 11260main () 11261{ 11262return socket (); 11263 ; 11264 return 0; 11265} 11266_ACEOF 11267for ac_lib in '' socket ws2_32; do 11268 if test -z "$ac_lib"; then 11269 ac_res="none required" 11270 else 11271 ac_res=-l$ac_lib 11272 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11273 fi 11274 if ac_fn_c_try_link "$LINENO"; then : 11275 ac_cv_search_socket=$ac_res 11276fi 11277rm -f core conftest.err conftest.$ac_objext \ 11278 conftest$ac_exeext 11279 if ${ac_cv_search_socket+:} false; then : 11280 break 11281fi 11282done 11283if ${ac_cv_search_socket+:} false; then : 11284 11285else 11286 ac_cv_search_socket=no 11287fi 11288rm conftest.$ac_ext 11289LIBS=$ac_func_search_save_LIBS 11290fi 11291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 11292$as_echo "$ac_cv_search_socket" >&6; } 11293ac_res=$ac_cv_search_socket 11294if test "$ac_res" != no; then : 11295 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11296 11297fi 11298 11299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5 11300$as_echo_n "checking for library containing shl_load... " >&6; } 11301if ${ac_cv_search_shl_load+:} false; then : 11302 $as_echo_n "(cached) " >&6 11303else 11304 ac_func_search_save_LIBS=$LIBS 11305cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11306/* end confdefs.h. */ 11307 11308/* Override any GCC internal prototype to avoid an error. 11309 Use char because int might match the return type of a GCC 11310 builtin and then its argument prototype would still apply. */ 11311#ifdef __cplusplus 11312extern "C" 11313#endif 11314char shl_load (); 11315int 11316main () 11317{ 11318return shl_load (); 11319 ; 11320 return 0; 11321} 11322_ACEOF 11323for ac_lib in '' dld; do 11324 if test -z "$ac_lib"; then 11325 ac_res="none required" 11326 else 11327 ac_res=-l$ac_lib 11328 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11329 fi 11330 if ac_fn_c_try_link "$LINENO"; then : 11331 ac_cv_search_shl_load=$ac_res 11332fi 11333rm -f core conftest.err conftest.$ac_objext \ 11334 conftest$ac_exeext 11335 if ${ac_cv_search_shl_load+:} false; then : 11336 break 11337fi 11338done 11339if ${ac_cv_search_shl_load+:} false; then : 11340 11341else 11342 ac_cv_search_shl_load=no 11343fi 11344rm conftest.$ac_ext 11345LIBS=$ac_func_search_save_LIBS 11346fi 11347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5 11348$as_echo "$ac_cv_search_shl_load" >&6; } 11349ac_res=$ac_cv_search_shl_load 11350if test "$ac_res" != no; then : 11351 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11352 11353fi 11354 11355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getopt_long" >&5 11356$as_echo_n "checking for library containing getopt_long... " >&6; } 11357if ${ac_cv_search_getopt_long+:} false; then : 11358 $as_echo_n "(cached) " >&6 11359else 11360 ac_func_search_save_LIBS=$LIBS 11361cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11362/* end confdefs.h. */ 11363 11364/* Override any GCC internal prototype to avoid an error. 11365 Use char because int might match the return type of a GCC 11366 builtin and then its argument prototype would still apply. */ 11367#ifdef __cplusplus 11368extern "C" 11369#endif 11370char getopt_long (); 11371int 11372main () 11373{ 11374return getopt_long (); 11375 ; 11376 return 0; 11377} 11378_ACEOF 11379for ac_lib in '' getopt gnugetopt; do 11380 if test -z "$ac_lib"; then 11381 ac_res="none required" 11382 else 11383 ac_res=-l$ac_lib 11384 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11385 fi 11386 if ac_fn_c_try_link "$LINENO"; then : 11387 ac_cv_search_getopt_long=$ac_res 11388fi 11389rm -f core conftest.err conftest.$ac_objext \ 11390 conftest$ac_exeext 11391 if ${ac_cv_search_getopt_long+:} false; then : 11392 break 11393fi 11394done 11395if ${ac_cv_search_getopt_long+:} false; then : 11396 11397else 11398 ac_cv_search_getopt_long=no 11399fi 11400rm conftest.$ac_ext 11401LIBS=$ac_func_search_save_LIBS 11402fi 11403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getopt_long" >&5 11404$as_echo "$ac_cv_search_getopt_long" >&6; } 11405ac_res=$ac_cv_search_getopt_long 11406if test "$ac_res" != no; then : 11407 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11408 11409fi 11410 11411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5 11412$as_echo_n "checking for library containing shm_open... " >&6; } 11413if ${ac_cv_search_shm_open+:} false; then : 11414 $as_echo_n "(cached) " >&6 11415else 11416 ac_func_search_save_LIBS=$LIBS 11417cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11418/* end confdefs.h. */ 11419 11420/* Override any GCC internal prototype to avoid an error. 11421 Use char because int might match the return type of a GCC 11422 builtin and then its argument prototype would still apply. */ 11423#ifdef __cplusplus 11424extern "C" 11425#endif 11426char shm_open (); 11427int 11428main () 11429{ 11430return shm_open (); 11431 ; 11432 return 0; 11433} 11434_ACEOF 11435for ac_lib in '' rt; do 11436 if test -z "$ac_lib"; then 11437 ac_res="none required" 11438 else 11439 ac_res=-l$ac_lib 11440 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11441 fi 11442 if ac_fn_c_try_link "$LINENO"; then : 11443 ac_cv_search_shm_open=$ac_res 11444fi 11445rm -f core conftest.err conftest.$ac_objext \ 11446 conftest$ac_exeext 11447 if ${ac_cv_search_shm_open+:} false; then : 11448 break 11449fi 11450done 11451if ${ac_cv_search_shm_open+:} false; then : 11452 11453else 11454 ac_cv_search_shm_open=no 11455fi 11456rm conftest.$ac_ext 11457LIBS=$ac_func_search_save_LIBS 11458fi 11459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5 11460$as_echo "$ac_cv_search_shm_open" >&6; } 11461ac_res=$ac_cv_search_shm_open 11462if test "$ac_res" != no; then : 11463 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11464 11465fi 11466 11467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_unlink" >&5 11468$as_echo_n "checking for library containing shm_unlink... " >&6; } 11469if ${ac_cv_search_shm_unlink+:} false; then : 11470 $as_echo_n "(cached) " >&6 11471else 11472 ac_func_search_save_LIBS=$LIBS 11473cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11474/* end confdefs.h. */ 11475 11476/* Override any GCC internal prototype to avoid an error. 11477 Use char because int might match the return type of a GCC 11478 builtin and then its argument prototype would still apply. */ 11479#ifdef __cplusplus 11480extern "C" 11481#endif 11482char shm_unlink (); 11483int 11484main () 11485{ 11486return shm_unlink (); 11487 ; 11488 return 0; 11489} 11490_ACEOF 11491for ac_lib in '' rt; do 11492 if test -z "$ac_lib"; then 11493 ac_res="none required" 11494 else 11495 ac_res=-l$ac_lib 11496 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11497 fi 11498 if ac_fn_c_try_link "$LINENO"; then : 11499 ac_cv_search_shm_unlink=$ac_res 11500fi 11501rm -f core conftest.err conftest.$ac_objext \ 11502 conftest$ac_exeext 11503 if ${ac_cv_search_shm_unlink+:} false; then : 11504 break 11505fi 11506done 11507if ${ac_cv_search_shm_unlink+:} false; then : 11508 11509else 11510 ac_cv_search_shm_unlink=no 11511fi 11512rm conftest.$ac_ext 11513LIBS=$ac_func_search_save_LIBS 11514fi 11515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_unlink" >&5 11516$as_echo "$ac_cv_search_shm_unlink" >&6; } 11517ac_res=$ac_cv_search_shm_unlink 11518if test "$ac_res" != no; then : 11519 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11520 11521fi 11522 11523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 11524$as_echo_n "checking for library containing clock_gettime... " >&6; } 11525if ${ac_cv_search_clock_gettime+:} false; then : 11526 $as_echo_n "(cached) " >&6 11527else 11528 ac_func_search_save_LIBS=$LIBS 11529cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11530/* end confdefs.h. */ 11531 11532/* Override any GCC internal prototype to avoid an error. 11533 Use char because int might match the return type of a GCC 11534 builtin and then its argument prototype would still apply. */ 11535#ifdef __cplusplus 11536extern "C" 11537#endif 11538char clock_gettime (); 11539int 11540main () 11541{ 11542return clock_gettime (); 11543 ; 11544 return 0; 11545} 11546_ACEOF 11547for ac_lib in '' rt posix4; do 11548 if test -z "$ac_lib"; then 11549 ac_res="none required" 11550 else 11551 ac_res=-l$ac_lib 11552 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11553 fi 11554 if ac_fn_c_try_link "$LINENO"; then : 11555 ac_cv_search_clock_gettime=$ac_res 11556fi 11557rm -f core conftest.err conftest.$ac_objext \ 11558 conftest$ac_exeext 11559 if ${ac_cv_search_clock_gettime+:} false; then : 11560 break 11561fi 11562done 11563if ${ac_cv_search_clock_gettime+:} false; then : 11564 11565else 11566 ac_cv_search_clock_gettime=no 11567fi 11568rm conftest.$ac_ext 11569LIBS=$ac_func_search_save_LIBS 11570fi 11571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 11572$as_echo "$ac_cv_search_clock_gettime" >&6; } 11573ac_res=$ac_cv_search_clock_gettime 11574if test "$ac_res" != no; then : 11575 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11576 11577fi 11578 11579# Solaris: 11580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5 11581$as_echo_n "checking for library containing fdatasync... " >&6; } 11582if ${ac_cv_search_fdatasync+:} false; then : 11583 $as_echo_n "(cached) " >&6 11584else 11585 ac_func_search_save_LIBS=$LIBS 11586cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11587/* end confdefs.h. */ 11588 11589/* Override any GCC internal prototype to avoid an error. 11590 Use char because int might match the return type of a GCC 11591 builtin and then its argument prototype would still apply. */ 11592#ifdef __cplusplus 11593extern "C" 11594#endif 11595char fdatasync (); 11596int 11597main () 11598{ 11599return fdatasync (); 11600 ; 11601 return 0; 11602} 11603_ACEOF 11604for ac_lib in '' rt posix4; do 11605 if test -z "$ac_lib"; then 11606 ac_res="none required" 11607 else 11608 ac_res=-l$ac_lib 11609 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11610 fi 11611 if ac_fn_c_try_link "$LINENO"; then : 11612 ac_cv_search_fdatasync=$ac_res 11613fi 11614rm -f core conftest.err conftest.$ac_objext \ 11615 conftest$ac_exeext 11616 if ${ac_cv_search_fdatasync+:} false; then : 11617 break 11618fi 11619done 11620if ${ac_cv_search_fdatasync+:} false; then : 11621 11622else 11623 ac_cv_search_fdatasync=no 11624fi 11625rm conftest.$ac_ext 11626LIBS=$ac_func_search_save_LIBS 11627fi 11628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5 11629$as_echo "$ac_cv_search_fdatasync" >&6; } 11630ac_res=$ac_cv_search_fdatasync 11631if test "$ac_res" != no; then : 11632 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11633 11634fi 11635 11636# Required for thread_test.c on Solaris 11637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5 11638$as_echo_n "checking for library containing sched_yield... " >&6; } 11639if ${ac_cv_search_sched_yield+:} false; then : 11640 $as_echo_n "(cached) " >&6 11641else 11642 ac_func_search_save_LIBS=$LIBS 11643cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11644/* end confdefs.h. */ 11645 11646/* Override any GCC internal prototype to avoid an error. 11647 Use char because int might match the return type of a GCC 11648 builtin and then its argument prototype would still apply. */ 11649#ifdef __cplusplus 11650extern "C" 11651#endif 11652char sched_yield (); 11653int 11654main () 11655{ 11656return sched_yield (); 11657 ; 11658 return 0; 11659} 11660_ACEOF 11661for ac_lib in '' rt; do 11662 if test -z "$ac_lib"; then 11663 ac_res="none required" 11664 else 11665 ac_res=-l$ac_lib 11666 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11667 fi 11668 if ac_fn_c_try_link "$LINENO"; then : 11669 ac_cv_search_sched_yield=$ac_res 11670fi 11671rm -f core conftest.err conftest.$ac_objext \ 11672 conftest$ac_exeext 11673 if ${ac_cv_search_sched_yield+:} false; then : 11674 break 11675fi 11676done 11677if ${ac_cv_search_sched_yield+:} false; then : 11678 11679else 11680 ac_cv_search_sched_yield=no 11681fi 11682rm conftest.$ac_ext 11683LIBS=$ac_func_search_save_LIBS 11684fi 11685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5 11686$as_echo "$ac_cv_search_sched_yield" >&6; } 11687ac_res=$ac_cv_search_sched_yield 11688if test "$ac_res" != no; then : 11689 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11690 11691fi 11692 11693# Required for thread_test.c on Solaris 2.5: 11694# Other ports use it too (HP-UX) so test unconditionally 11695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname_r" >&5 11696$as_echo_n "checking for library containing gethostbyname_r... " >&6; } 11697if ${ac_cv_search_gethostbyname_r+:} false; then : 11698 $as_echo_n "(cached) " >&6 11699else 11700 ac_func_search_save_LIBS=$LIBS 11701cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11702/* end confdefs.h. */ 11703 11704/* Override any GCC internal prototype to avoid an error. 11705 Use char because int might match the return type of a GCC 11706 builtin and then its argument prototype would still apply. */ 11707#ifdef __cplusplus 11708extern "C" 11709#endif 11710char gethostbyname_r (); 11711int 11712main () 11713{ 11714return gethostbyname_r (); 11715 ; 11716 return 0; 11717} 11718_ACEOF 11719for ac_lib in '' nsl; do 11720 if test -z "$ac_lib"; then 11721 ac_res="none required" 11722 else 11723 ac_res=-l$ac_lib 11724 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11725 fi 11726 if ac_fn_c_try_link "$LINENO"; then : 11727 ac_cv_search_gethostbyname_r=$ac_res 11728fi 11729rm -f core conftest.err conftest.$ac_objext \ 11730 conftest$ac_exeext 11731 if ${ac_cv_search_gethostbyname_r+:} false; then : 11732 break 11733fi 11734done 11735if ${ac_cv_search_gethostbyname_r+:} false; then : 11736 11737else 11738 ac_cv_search_gethostbyname_r=no 11739fi 11740rm conftest.$ac_ext 11741LIBS=$ac_func_search_save_LIBS 11742fi 11743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname_r" >&5 11744$as_echo "$ac_cv_search_gethostbyname_r" >&6; } 11745ac_res=$ac_cv_search_gethostbyname_r 11746if test "$ac_res" != no; then : 11747 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11748 11749fi 11750 11751# Cygwin: 11752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shmget" >&5 11753$as_echo_n "checking for library containing shmget... " >&6; } 11754if ${ac_cv_search_shmget+:} false; then : 11755 $as_echo_n "(cached) " >&6 11756else 11757 ac_func_search_save_LIBS=$LIBS 11758cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11759/* end confdefs.h. */ 11760 11761/* Override any GCC internal prototype to avoid an error. 11762 Use char because int might match the return type of a GCC 11763 builtin and then its argument prototype would still apply. */ 11764#ifdef __cplusplus 11765extern "C" 11766#endif 11767char shmget (); 11768int 11769main () 11770{ 11771return shmget (); 11772 ; 11773 return 0; 11774} 11775_ACEOF 11776for ac_lib in '' cygipc; do 11777 if test -z "$ac_lib"; then 11778 ac_res="none required" 11779 else 11780 ac_res=-l$ac_lib 11781 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11782 fi 11783 if ac_fn_c_try_link "$LINENO"; then : 11784 ac_cv_search_shmget=$ac_res 11785fi 11786rm -f core conftest.err conftest.$ac_objext \ 11787 conftest$ac_exeext 11788 if ${ac_cv_search_shmget+:} false; then : 11789 break 11790fi 11791done 11792if ${ac_cv_search_shmget+:} false; then : 11793 11794else 11795 ac_cv_search_shmget=no 11796fi 11797rm conftest.$ac_ext 11798LIBS=$ac_func_search_save_LIBS 11799fi 11800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shmget" >&5 11801$as_echo "$ac_cv_search_shmget" >&6; } 11802ac_res=$ac_cv_search_shmget 11803if test "$ac_res" != no; then : 11804 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11805 11806fi 11807 11808# *BSD: 11809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols" >&5 11810$as_echo_n "checking for library containing backtrace_symbols... " >&6; } 11811if ${ac_cv_search_backtrace_symbols+:} false; then : 11812 $as_echo_n "(cached) " >&6 11813else 11814 ac_func_search_save_LIBS=$LIBS 11815cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11816/* end confdefs.h. */ 11817 11818/* Override any GCC internal prototype to avoid an error. 11819 Use char because int might match the return type of a GCC 11820 builtin and then its argument prototype would still apply. */ 11821#ifdef __cplusplus 11822extern "C" 11823#endif 11824char backtrace_symbols (); 11825int 11826main () 11827{ 11828return backtrace_symbols (); 11829 ; 11830 return 0; 11831} 11832_ACEOF 11833for ac_lib in '' execinfo; do 11834 if test -z "$ac_lib"; then 11835 ac_res="none required" 11836 else 11837 ac_res=-l$ac_lib 11838 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11839 fi 11840 if ac_fn_c_try_link "$LINENO"; then : 11841 ac_cv_search_backtrace_symbols=$ac_res 11842fi 11843rm -f core conftest.err conftest.$ac_objext \ 11844 conftest$ac_exeext 11845 if ${ac_cv_search_backtrace_symbols+:} false; then : 11846 break 11847fi 11848done 11849if ${ac_cv_search_backtrace_symbols+:} false; then : 11850 11851else 11852 ac_cv_search_backtrace_symbols=no 11853fi 11854rm conftest.$ac_ext 11855LIBS=$ac_func_search_save_LIBS 11856fi 11857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols" >&5 11858$as_echo "$ac_cv_search_backtrace_symbols" >&6; } 11859ac_res=$ac_cv_search_backtrace_symbols 11860if test "$ac_res" != no; then : 11861 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11862 11863fi 11864 11865 11866if test "$with_readline" = yes; then 11867 11868 11869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5 11870$as_echo_n "checking for library containing readline... " >&6; } 11871if ${pgac_cv_check_readline+:} false; then : 11872 $as_echo_n "(cached) " >&6 11873else 11874 pgac_cv_check_readline=no 11875pgac_save_LIBS=$LIBS 11876if test x"$with_libedit_preferred" != x"yes" 11877then READLINE_ORDER="-lreadline -ledit" 11878else READLINE_ORDER="-ledit -lreadline" 11879fi 11880for pgac_rllib in $READLINE_ORDER ; do 11881 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do 11882 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS" 11883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11884/* end confdefs.h. */ 11885 11886/* Override any GCC internal prototype to avoid an error. 11887 Use char because int might match the return type of a GCC 11888 builtin and then its argument prototype would still apply. */ 11889#ifdef __cplusplus 11890extern "C" 11891#endif 11892char readline (); 11893int 11894main () 11895{ 11896return readline (); 11897 ; 11898 return 0; 11899} 11900_ACEOF 11901if ac_fn_c_try_link "$LINENO"; then : 11902 11903 # Older NetBSD and OpenBSD have a broken linker that does not 11904 # recognize dependent libraries; assume curses is needed if we didn't 11905 # find any dependency. 11906 case $host_os in 11907 netbsd* | openbsd*) 11908 if test x"$pgac_lib" = x"" ; then 11909 pgac_lib=" -lcurses" 11910 fi ;; 11911 esac 11912 11913 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}" 11914 break 11915 11916fi 11917rm -f core conftest.err conftest.$ac_objext \ 11918 conftest$ac_exeext conftest.$ac_ext 11919 done 11920 if test "$pgac_cv_check_readline" != no ; then 11921 break 11922 fi 11923done 11924LIBS=$pgac_save_LIBS 11925 11926fi 11927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_check_readline" >&5 11928$as_echo "$pgac_cv_check_readline" >&6; } 11929if test "$pgac_cv_check_readline" != no ; then 11930 LIBS="$pgac_cv_check_readline $LIBS" 11931 11932$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h 11933 11934fi 11935 11936 11937 if test x"$pgac_cv_check_readline" = x"no"; then 11938 as_fn_error $? "readline library not found 11939If you have readline already installed, see config.log for details on the 11940failure. It is possible the compiler isn't looking in the proper directory. 11941Use --without-readline to disable readline support." "$LINENO" 5 11942 fi 11943fi 11944 11945if test "$with_zlib" = yes; then 11946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5 11947$as_echo_n "checking for inflate in -lz... " >&6; } 11948if ${ac_cv_lib_z_inflate+:} false; then : 11949 $as_echo_n "(cached) " >&6 11950else 11951 ac_check_lib_save_LIBS=$LIBS 11952LIBS="-lz $LIBS" 11953cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11954/* end confdefs.h. */ 11955 11956/* Override any GCC internal prototype to avoid an error. 11957 Use char because int might match the return type of a GCC 11958 builtin and then its argument prototype would still apply. */ 11959#ifdef __cplusplus 11960extern "C" 11961#endif 11962char inflate (); 11963int 11964main () 11965{ 11966return inflate (); 11967 ; 11968 return 0; 11969} 11970_ACEOF 11971if ac_fn_c_try_link "$LINENO"; then : 11972 ac_cv_lib_z_inflate=yes 11973else 11974 ac_cv_lib_z_inflate=no 11975fi 11976rm -f core conftest.err conftest.$ac_objext \ 11977 conftest$ac_exeext conftest.$ac_ext 11978LIBS=$ac_check_lib_save_LIBS 11979fi 11980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5 11981$as_echo "$ac_cv_lib_z_inflate" >&6; } 11982if test "x$ac_cv_lib_z_inflate" = xyes; then : 11983 cat >>confdefs.h <<_ACEOF 11984#define HAVE_LIBZ 1 11985_ACEOF 11986 11987 LIBS="-lz $LIBS" 11988 11989else 11990 as_fn_error $? "zlib library not found 11991If you have zlib already installed, see config.log for details on the 11992failure. It is possible the compiler isn't looking in the proper directory. 11993Use --without-zlib to disable zlib support." "$LINENO" 5 11994fi 11995 11996fi 11997 11998if test "$enable_spinlocks" = yes; then 11999 12000$as_echo "#define HAVE_SPINLOCKS 1" >>confdefs.h 12001 12002else 12003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 12004*** Not using spinlocks will cause poor performance." >&5 12005$as_echo "$as_me: WARNING: 12006*** Not using spinlocks will cause poor performance." >&2;} 12007fi 12008 12009if test "$enable_atomics" = yes; then 12010 12011$as_echo "#define HAVE_ATOMICS 1" >>confdefs.h 12012 12013else 12014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 12015*** Not using atomic operations will cause poor performance." >&5 12016$as_echo "$as_me: WARNING: 12017*** Not using atomic operations will cause poor performance." >&2;} 12018fi 12019 12020if test "$with_gssapi" = yes ; then 12021 if test "$PORTNAME" != "win32"; then 12022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_init_sec_context" >&5 12023$as_echo_n "checking for library containing gss_init_sec_context... " >&6; } 12024if ${ac_cv_search_gss_init_sec_context+:} false; then : 12025 $as_echo_n "(cached) " >&6 12026else 12027 ac_func_search_save_LIBS=$LIBS 12028cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12029/* end confdefs.h. */ 12030 12031/* Override any GCC internal prototype to avoid an error. 12032 Use char because int might match the return type of a GCC 12033 builtin and then its argument prototype would still apply. */ 12034#ifdef __cplusplus 12035extern "C" 12036#endif 12037char gss_init_sec_context (); 12038int 12039main () 12040{ 12041return gss_init_sec_context (); 12042 ; 12043 return 0; 12044} 12045_ACEOF 12046for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do 12047 if test -z "$ac_lib"; then 12048 ac_res="none required" 12049 else 12050 ac_res=-l$ac_lib 12051 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12052 fi 12053 if ac_fn_c_try_link "$LINENO"; then : 12054 ac_cv_search_gss_init_sec_context=$ac_res 12055fi 12056rm -f core conftest.err conftest.$ac_objext \ 12057 conftest$ac_exeext 12058 if ${ac_cv_search_gss_init_sec_context+:} false; then : 12059 break 12060fi 12061done 12062if ${ac_cv_search_gss_init_sec_context+:} false; then : 12063 12064else 12065 ac_cv_search_gss_init_sec_context=no 12066fi 12067rm conftest.$ac_ext 12068LIBS=$ac_func_search_save_LIBS 12069fi 12070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_init_sec_context" >&5 12071$as_echo "$ac_cv_search_gss_init_sec_context" >&6; } 12072ac_res=$ac_cv_search_gss_init_sec_context 12073if test "$ac_res" != no; then : 12074 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12075 12076else 12077 as_fn_error $? "could not find function 'gss_init_sec_context' required for GSSAPI" "$LINENO" 5 12078fi 12079 12080 else 12081 LIBS="$LIBS -lgssapi32" 12082 fi 12083fi 12084 12085if test "$with_openssl" = yes ; then 12086 if test "$PORTNAME" != "win32"; then 12087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_new_ex_data in -lcrypto" >&5 12088$as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; } 12089if ${ac_cv_lib_crypto_CRYPTO_new_ex_data+:} false; then : 12090 $as_echo_n "(cached) " >&6 12091else 12092 ac_check_lib_save_LIBS=$LIBS 12093LIBS="-lcrypto $LIBS" 12094cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12095/* end confdefs.h. */ 12096 12097/* Override any GCC internal prototype to avoid an error. 12098 Use char because int might match the return type of a GCC 12099 builtin and then its argument prototype would still apply. */ 12100#ifdef __cplusplus 12101extern "C" 12102#endif 12103char CRYPTO_new_ex_data (); 12104int 12105main () 12106{ 12107return CRYPTO_new_ex_data (); 12108 ; 12109 return 0; 12110} 12111_ACEOF 12112if ac_fn_c_try_link "$LINENO"; then : 12113 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes 12114else 12115 ac_cv_lib_crypto_CRYPTO_new_ex_data=no 12116fi 12117rm -f core conftest.err conftest.$ac_objext \ 12118 conftest$ac_exeext conftest.$ac_ext 12119LIBS=$ac_check_lib_save_LIBS 12120fi 12121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5 12122$as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; } 12123if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = xyes; then : 12124 cat >>confdefs.h <<_ACEOF 12125#define HAVE_LIBCRYPTO 1 12126_ACEOF 12127 12128 LIBS="-lcrypto $LIBS" 12129 12130else 12131 as_fn_error $? "library 'crypto' is required for OpenSSL" "$LINENO" 5 12132fi 12133 12134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5 12135$as_echo_n "checking for SSL_new in -lssl... " >&6; } 12136if ${ac_cv_lib_ssl_SSL_new+:} false; then : 12137 $as_echo_n "(cached) " >&6 12138else 12139 ac_check_lib_save_LIBS=$LIBS 12140LIBS="-lssl $LIBS" 12141cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12142/* end confdefs.h. */ 12143 12144/* Override any GCC internal prototype to avoid an error. 12145 Use char because int might match the return type of a GCC 12146 builtin and then its argument prototype would still apply. */ 12147#ifdef __cplusplus 12148extern "C" 12149#endif 12150char SSL_new (); 12151int 12152main () 12153{ 12154return SSL_new (); 12155 ; 12156 return 0; 12157} 12158_ACEOF 12159if ac_fn_c_try_link "$LINENO"; then : 12160 ac_cv_lib_ssl_SSL_new=yes 12161else 12162 ac_cv_lib_ssl_SSL_new=no 12163fi 12164rm -f core conftest.err conftest.$ac_objext \ 12165 conftest$ac_exeext conftest.$ac_ext 12166LIBS=$ac_check_lib_save_LIBS 12167fi 12168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5 12169$as_echo "$ac_cv_lib_ssl_SSL_new" >&6; } 12170if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then : 12171 cat >>confdefs.h <<_ACEOF 12172#define HAVE_LIBSSL 1 12173_ACEOF 12174 12175 LIBS="-lssl $LIBS" 12176 12177else 12178 as_fn_error $? "library 'ssl' is required for OpenSSL" "$LINENO" 5 12179fi 12180 12181 else 12182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing CRYPTO_new_ex_data" >&5 12183$as_echo_n "checking for library containing CRYPTO_new_ex_data... " >&6; } 12184if ${ac_cv_search_CRYPTO_new_ex_data+:} false; then : 12185 $as_echo_n "(cached) " >&6 12186else 12187 ac_func_search_save_LIBS=$LIBS 12188cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12189/* end confdefs.h. */ 12190 12191/* Override any GCC internal prototype to avoid an error. 12192 Use char because int might match the return type of a GCC 12193 builtin and then its argument prototype would still apply. */ 12194#ifdef __cplusplus 12195extern "C" 12196#endif 12197char CRYPTO_new_ex_data (); 12198int 12199main () 12200{ 12201return CRYPTO_new_ex_data (); 12202 ; 12203 return 0; 12204} 12205_ACEOF 12206for ac_lib in '' eay32 crypto; do 12207 if test -z "$ac_lib"; then 12208 ac_res="none required" 12209 else 12210 ac_res=-l$ac_lib 12211 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12212 fi 12213 if ac_fn_c_try_link "$LINENO"; then : 12214 ac_cv_search_CRYPTO_new_ex_data=$ac_res 12215fi 12216rm -f core conftest.err conftest.$ac_objext \ 12217 conftest$ac_exeext 12218 if ${ac_cv_search_CRYPTO_new_ex_data+:} false; then : 12219 break 12220fi 12221done 12222if ${ac_cv_search_CRYPTO_new_ex_data+:} false; then : 12223 12224else 12225 ac_cv_search_CRYPTO_new_ex_data=no 12226fi 12227rm conftest.$ac_ext 12228LIBS=$ac_func_search_save_LIBS 12229fi 12230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_CRYPTO_new_ex_data" >&5 12231$as_echo "$ac_cv_search_CRYPTO_new_ex_data" >&6; } 12232ac_res=$ac_cv_search_CRYPTO_new_ex_data 12233if test "$ac_res" != no; then : 12234 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12235 12236else 12237 as_fn_error $? "library 'eay32' or 'crypto' is required for OpenSSL" "$LINENO" 5 12238fi 12239 12240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_new" >&5 12241$as_echo_n "checking for library containing SSL_new... " >&6; } 12242if ${ac_cv_search_SSL_new+:} false; then : 12243 $as_echo_n "(cached) " >&6 12244else 12245 ac_func_search_save_LIBS=$LIBS 12246cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12247/* end confdefs.h. */ 12248 12249/* Override any GCC internal prototype to avoid an error. 12250 Use char because int might match the return type of a GCC 12251 builtin and then its argument prototype would still apply. */ 12252#ifdef __cplusplus 12253extern "C" 12254#endif 12255char SSL_new (); 12256int 12257main () 12258{ 12259return SSL_new (); 12260 ; 12261 return 0; 12262} 12263_ACEOF 12264for ac_lib in '' ssleay32 ssl; do 12265 if test -z "$ac_lib"; then 12266 ac_res="none required" 12267 else 12268 ac_res=-l$ac_lib 12269 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12270 fi 12271 if ac_fn_c_try_link "$LINENO"; then : 12272 ac_cv_search_SSL_new=$ac_res 12273fi 12274rm -f core conftest.err conftest.$ac_objext \ 12275 conftest$ac_exeext 12276 if ${ac_cv_search_SSL_new+:} false; then : 12277 break 12278fi 12279done 12280if ${ac_cv_search_SSL_new+:} false; then : 12281 12282else 12283 ac_cv_search_SSL_new=no 12284fi 12285rm conftest.$ac_ext 12286LIBS=$ac_func_search_save_LIBS 12287fi 12288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_new" >&5 12289$as_echo "$ac_cv_search_SSL_new" >&6; } 12290ac_res=$ac_cv_search_SSL_new 12291if test "$ac_res" != no; then : 12292 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12293 12294else 12295 as_fn_error $? "library 'ssleay32' or 'ssl' is required for OpenSSL" "$LINENO" 5 12296fi 12297 12298 fi 12299 # Function introduced in OpenSSL 1.0.2. 12300 for ac_func in X509_get_signature_nid 12301do : 12302 ac_fn_c_check_func "$LINENO" "X509_get_signature_nid" "ac_cv_func_X509_get_signature_nid" 12303if test "x$ac_cv_func_X509_get_signature_nid" = xyes; then : 12304 cat >>confdefs.h <<_ACEOF 12305#define HAVE_X509_GET_SIGNATURE_NID 1 12306_ACEOF 12307 12308fi 12309done 12310 12311 # Functions introduced in OpenSSL 1.1.0. We used to check for 12312 # OPENSSL_VERSION_NUMBER, but that didn't work with 1.1.0, because LibreSSL 12313 # defines OPENSSL_VERSION_NUMBER to claim version 2.0.0, even though it 12314 # doesn't have these OpenSSL 1.1.0 functions. So check for individual 12315 # functions. 12316 for ac_func in OPENSSL_init_ssl BIO_get_data BIO_meth_new ASN1_STRING_get0_data 12317do : 12318 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12319ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12320if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12321 cat >>confdefs.h <<_ACEOF 12322#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12323_ACEOF 12324 12325fi 12326done 12327 12328 # OpenSSL versions before 1.1.0 required setting callback functions, for 12329 # thread-safety. In 1.1.0, it's no longer required, and CRYPTO_lock() 12330 # function was removed. 12331 for ac_func in CRYPTO_lock 12332do : 12333 ac_fn_c_check_func "$LINENO" "CRYPTO_lock" "ac_cv_func_CRYPTO_lock" 12334if test "x$ac_cv_func_CRYPTO_lock" = xyes; then : 12335 cat >>confdefs.h <<_ACEOF 12336#define HAVE_CRYPTO_LOCK 1 12337_ACEOF 12338 12339fi 12340done 12341 12342fi 12343 12344if test "$with_pam" = yes ; then 12345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5 12346$as_echo_n "checking for pam_start in -lpam... " >&6; } 12347if ${ac_cv_lib_pam_pam_start+:} false; then : 12348 $as_echo_n "(cached) " >&6 12349else 12350 ac_check_lib_save_LIBS=$LIBS 12351LIBS="-lpam $LIBS" 12352cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12353/* end confdefs.h. */ 12354 12355/* Override any GCC internal prototype to avoid an error. 12356 Use char because int might match the return type of a GCC 12357 builtin and then its argument prototype would still apply. */ 12358#ifdef __cplusplus 12359extern "C" 12360#endif 12361char pam_start (); 12362int 12363main () 12364{ 12365return pam_start (); 12366 ; 12367 return 0; 12368} 12369_ACEOF 12370if ac_fn_c_try_link "$LINENO"; then : 12371 ac_cv_lib_pam_pam_start=yes 12372else 12373 ac_cv_lib_pam_pam_start=no 12374fi 12375rm -f core conftest.err conftest.$ac_objext \ 12376 conftest$ac_exeext conftest.$ac_ext 12377LIBS=$ac_check_lib_save_LIBS 12378fi 12379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5 12380$as_echo "$ac_cv_lib_pam_pam_start" >&6; } 12381if test "x$ac_cv_lib_pam_pam_start" = xyes; then : 12382 cat >>confdefs.h <<_ACEOF 12383#define HAVE_LIBPAM 1 12384_ACEOF 12385 12386 LIBS="-lpam $LIBS" 12387 12388else 12389 as_fn_error $? "library 'pam' is required for PAM" "$LINENO" 5 12390fi 12391 12392fi 12393 12394if test "$with_libxml" = yes ; then 12395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSaveToBuffer in -lxml2" >&5 12396$as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; } 12397if ${ac_cv_lib_xml2_xmlSaveToBuffer+:} false; then : 12398 $as_echo_n "(cached) " >&6 12399else 12400 ac_check_lib_save_LIBS=$LIBS 12401LIBS="-lxml2 $LIBS" 12402cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12403/* end confdefs.h. */ 12404 12405/* Override any GCC internal prototype to avoid an error. 12406 Use char because int might match the return type of a GCC 12407 builtin and then its argument prototype would still apply. */ 12408#ifdef __cplusplus 12409extern "C" 12410#endif 12411char xmlSaveToBuffer (); 12412int 12413main () 12414{ 12415return xmlSaveToBuffer (); 12416 ; 12417 return 0; 12418} 12419_ACEOF 12420if ac_fn_c_try_link "$LINENO"; then : 12421 ac_cv_lib_xml2_xmlSaveToBuffer=yes 12422else 12423 ac_cv_lib_xml2_xmlSaveToBuffer=no 12424fi 12425rm -f core conftest.err conftest.$ac_objext \ 12426 conftest$ac_exeext conftest.$ac_ext 12427LIBS=$ac_check_lib_save_LIBS 12428fi 12429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5 12430$as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; } 12431if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = xyes; then : 12432 cat >>confdefs.h <<_ACEOF 12433#define HAVE_LIBXML2 1 12434_ACEOF 12435 12436 LIBS="-lxml2 $LIBS" 12437 12438else 12439 as_fn_error $? "library 'xml2' (version >= 2.6.23) is required for XML support" "$LINENO" 5 12440fi 12441 12442fi 12443 12444if test "$with_libxslt" = yes ; then 12445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xsltCleanupGlobals in -lxslt" >&5 12446$as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; } 12447if ${ac_cv_lib_xslt_xsltCleanupGlobals+:} false; then : 12448 $as_echo_n "(cached) " >&6 12449else 12450 ac_check_lib_save_LIBS=$LIBS 12451LIBS="-lxslt $LIBS" 12452cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12453/* end confdefs.h. */ 12454 12455/* Override any GCC internal prototype to avoid an error. 12456 Use char because int might match the return type of a GCC 12457 builtin and then its argument prototype would still apply. */ 12458#ifdef __cplusplus 12459extern "C" 12460#endif 12461char xsltCleanupGlobals (); 12462int 12463main () 12464{ 12465return xsltCleanupGlobals (); 12466 ; 12467 return 0; 12468} 12469_ACEOF 12470if ac_fn_c_try_link "$LINENO"; then : 12471 ac_cv_lib_xslt_xsltCleanupGlobals=yes 12472else 12473 ac_cv_lib_xslt_xsltCleanupGlobals=no 12474fi 12475rm -f core conftest.err conftest.$ac_objext \ 12476 conftest$ac_exeext conftest.$ac_ext 12477LIBS=$ac_check_lib_save_LIBS 12478fi 12479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5 12480$as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; } 12481if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = xyes; then : 12482 cat >>confdefs.h <<_ACEOF 12483#define HAVE_LIBXSLT 1 12484_ACEOF 12485 12486 LIBS="-lxslt $LIBS" 12487 12488else 12489 as_fn_error $? "library 'xslt' is required for XSLT support" "$LINENO" 5 12490fi 12491 12492fi 12493 12494# Note: We can test for libldap_r only after we know PTHREAD_LIBS; 12495# also, on AIX, we may need to have openssl in LIBS for this step. 12496if test "$with_ldap" = yes ; then 12497 _LIBS="$LIBS" 12498 if test "$PORTNAME" != "win32"; then 12499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lldap" >&5 12500$as_echo_n "checking for ldap_bind in -lldap... " >&6; } 12501if ${ac_cv_lib_ldap_ldap_bind+:} false; then : 12502 $as_echo_n "(cached) " >&6 12503else 12504 ac_check_lib_save_LIBS=$LIBS 12505LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS" 12506cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12507/* end confdefs.h. */ 12508 12509/* Override any GCC internal prototype to avoid an error. 12510 Use char because int might match the return type of a GCC 12511 builtin and then its argument prototype would still apply. */ 12512#ifdef __cplusplus 12513extern "C" 12514#endif 12515char ldap_bind (); 12516int 12517main () 12518{ 12519return ldap_bind (); 12520 ; 12521 return 0; 12522} 12523_ACEOF 12524if ac_fn_c_try_link "$LINENO"; then : 12525 ac_cv_lib_ldap_ldap_bind=yes 12526else 12527 ac_cv_lib_ldap_ldap_bind=no 12528fi 12529rm -f core conftest.err conftest.$ac_objext \ 12530 conftest$ac_exeext conftest.$ac_ext 12531LIBS=$ac_check_lib_save_LIBS 12532fi 12533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_bind" >&5 12534$as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; } 12535if test "x$ac_cv_lib_ldap_ldap_bind" = xyes; then : 12536 cat >>confdefs.h <<_ACEOF 12537#define HAVE_LIBLDAP 1 12538_ACEOF 12539 12540 LIBS="-lldap $LIBS" 12541 12542else 12543 as_fn_error $? "library 'ldap' is required for LDAP" "$LINENO" 5 12544fi 12545 12546 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS" 12547 # This test is carried out against libldap. 12548 for ac_func in ldap_initialize 12549do : 12550 ac_fn_c_check_func "$LINENO" "ldap_initialize" "ac_cv_func_ldap_initialize" 12551if test "x$ac_cv_func_ldap_initialize" = xyes; then : 12552 cat >>confdefs.h <<_ACEOF 12553#define HAVE_LDAP_INITIALIZE 1 12554_ACEOF 12555 12556fi 12557done 12558 12559 if test "$enable_thread_safety" = yes; then 12560 # Use ldap_r for FE if available, else assume ldap is thread-safe. 12561 # On some platforms ldap_r fails to link without PTHREAD_LIBS. 12562 LIBS="$_LIBS" 12563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lldap_r" >&5 12564$as_echo_n "checking for ldap_bind in -lldap_r... " >&6; } 12565if ${ac_cv_lib_ldap_r_ldap_bind+:} false; then : 12566 $as_echo_n "(cached) " >&6 12567else 12568 ac_check_lib_save_LIBS=$LIBS 12569LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS" 12570cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12571/* end confdefs.h. */ 12572 12573/* Override any GCC internal prototype to avoid an error. 12574 Use char because int might match the return type of a GCC 12575 builtin and then its argument prototype would still apply. */ 12576#ifdef __cplusplus 12577extern "C" 12578#endif 12579char ldap_bind (); 12580int 12581main () 12582{ 12583return ldap_bind (); 12584 ; 12585 return 0; 12586} 12587_ACEOF 12588if ac_fn_c_try_link "$LINENO"; then : 12589 ac_cv_lib_ldap_r_ldap_bind=yes 12590else 12591 ac_cv_lib_ldap_r_ldap_bind=no 12592fi 12593rm -f core conftest.err conftest.$ac_objext \ 12594 conftest$ac_exeext conftest.$ac_ext 12595LIBS=$ac_check_lib_save_LIBS 12596fi 12597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_bind" >&5 12598$as_echo "$ac_cv_lib_ldap_r_ldap_bind" >&6; } 12599if test "x$ac_cv_lib_ldap_r_ldap_bind" = xyes; then : 12600 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS" 12601else 12602 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS" 12603fi 12604 12605 else 12606 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS" 12607 fi 12608 else 12609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lwldap32" >&5 12610$as_echo_n "checking for ldap_bind in -lwldap32... " >&6; } 12611if ${ac_cv_lib_wldap32_ldap_bind+:} false; then : 12612 $as_echo_n "(cached) " >&6 12613else 12614 ac_check_lib_save_LIBS=$LIBS 12615LIBS="-lwldap32 $LIBS" 12616cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12617/* end confdefs.h. */ 12618 12619/* Override any GCC internal prototype to avoid an error. 12620 Use char because int might match the return type of a GCC 12621 builtin and then its argument prototype would still apply. */ 12622#ifdef __cplusplus 12623extern "C" 12624#endif 12625char ldap_bind (); 12626int 12627main () 12628{ 12629return ldap_bind (); 12630 ; 12631 return 0; 12632} 12633_ACEOF 12634if ac_fn_c_try_link "$LINENO"; then : 12635 ac_cv_lib_wldap32_ldap_bind=yes 12636else 12637 ac_cv_lib_wldap32_ldap_bind=no 12638fi 12639rm -f core conftest.err conftest.$ac_objext \ 12640 conftest$ac_exeext conftest.$ac_ext 12641LIBS=$ac_check_lib_save_LIBS 12642fi 12643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wldap32_ldap_bind" >&5 12644$as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; } 12645if test "x$ac_cv_lib_wldap32_ldap_bind" = xyes; then : 12646 cat >>confdefs.h <<_ACEOF 12647#define HAVE_LIBWLDAP32 1 12648_ACEOF 12649 12650 LIBS="-lwldap32 $LIBS" 12651 12652else 12653 as_fn_error $? "library 'wldap32' is required for LDAP" "$LINENO" 5 12654fi 12655 12656 LDAP_LIBS_FE="-lwldap32" 12657 LDAP_LIBS_BE="-lwldap32" 12658 fi 12659 LIBS="$_LIBS" 12660fi 12661 12662 12663 12664# for contrib/sepgsql 12665if test "$with_selinux" = yes; then 12666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for security_compute_create_name in -lselinux" >&5 12667$as_echo_n "checking for security_compute_create_name in -lselinux... " >&6; } 12668if ${ac_cv_lib_selinux_security_compute_create_name+:} false; then : 12669 $as_echo_n "(cached) " >&6 12670else 12671 ac_check_lib_save_LIBS=$LIBS 12672LIBS="-lselinux $LIBS" 12673cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12674/* end confdefs.h. */ 12675 12676/* Override any GCC internal prototype to avoid an error. 12677 Use char because int might match the return type of a GCC 12678 builtin and then its argument prototype would still apply. */ 12679#ifdef __cplusplus 12680extern "C" 12681#endif 12682char security_compute_create_name (); 12683int 12684main () 12685{ 12686return security_compute_create_name (); 12687 ; 12688 return 0; 12689} 12690_ACEOF 12691if ac_fn_c_try_link "$LINENO"; then : 12692 ac_cv_lib_selinux_security_compute_create_name=yes 12693else 12694 ac_cv_lib_selinux_security_compute_create_name=no 12695fi 12696rm -f core conftest.err conftest.$ac_objext \ 12697 conftest$ac_exeext conftest.$ac_ext 12698LIBS=$ac_check_lib_save_LIBS 12699fi 12700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_security_compute_create_name" >&5 12701$as_echo "$ac_cv_lib_selinux_security_compute_create_name" >&6; } 12702if test "x$ac_cv_lib_selinux_security_compute_create_name" = xyes; then : 12703 cat >>confdefs.h <<_ACEOF 12704#define HAVE_LIBSELINUX 1 12705_ACEOF 12706 12707 LIBS="-lselinux $LIBS" 12708 12709else 12710 as_fn_error $? "library 'libselinux', version 2.1.10 or newer, is required for SELinux support" "$LINENO" 5 12711fi 12712 12713fi 12714 12715# for contrib/uuid-ossp 12716if test "$with_uuid" = bsd ; then 12717 # On BSD, the UUID functions are in libc 12718 ac_fn_c_check_func "$LINENO" "uuid_to_string" "ac_cv_func_uuid_to_string" 12719if test "x$ac_cv_func_uuid_to_string" = xyes; then : 12720 UUID_LIBS="" 12721else 12722 as_fn_error $? "BSD UUID functions are not present" "$LINENO" 5 12723fi 12724 12725elif test "$with_uuid" = e2fs ; then 12726 # On macOS, the UUID functions are in libc 12727 ac_fn_c_check_func "$LINENO" "uuid_generate" "ac_cv_func_uuid_generate" 12728if test "x$ac_cv_func_uuid_generate" = xyes; then : 12729 UUID_LIBS="" 12730else 12731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 12732$as_echo_n "checking for uuid_generate in -luuid... " >&6; } 12733if ${ac_cv_lib_uuid_uuid_generate+:} false; then : 12734 $as_echo_n "(cached) " >&6 12735else 12736 ac_check_lib_save_LIBS=$LIBS 12737LIBS="-luuid $LIBS" 12738cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12739/* end confdefs.h. */ 12740 12741/* Override any GCC internal prototype to avoid an error. 12742 Use char because int might match the return type of a GCC 12743 builtin and then its argument prototype would still apply. */ 12744#ifdef __cplusplus 12745extern "C" 12746#endif 12747char uuid_generate (); 12748int 12749main () 12750{ 12751return uuid_generate (); 12752 ; 12753 return 0; 12754} 12755_ACEOF 12756if ac_fn_c_try_link "$LINENO"; then : 12757 ac_cv_lib_uuid_uuid_generate=yes 12758else 12759 ac_cv_lib_uuid_uuid_generate=no 12760fi 12761rm -f core conftest.err conftest.$ac_objext \ 12762 conftest$ac_exeext conftest.$ac_ext 12763LIBS=$ac_check_lib_save_LIBS 12764fi 12765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 12766$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } 12767if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then : 12768 UUID_LIBS="-luuid" 12769else 12770 as_fn_error $? "library 'uuid' is required for E2FS UUID" "$LINENO" 5 12771fi 12772 12773fi 12774 12775elif test "$with_uuid" = ossp ; then 12776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_export in -lossp-uuid" >&5 12777$as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; } 12778if ${ac_cv_lib_ossp_uuid_uuid_export+:} false; then : 12779 $as_echo_n "(cached) " >&6 12780else 12781 ac_check_lib_save_LIBS=$LIBS 12782LIBS="-lossp-uuid $LIBS" 12783cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12784/* end confdefs.h. */ 12785 12786/* Override any GCC internal prototype to avoid an error. 12787 Use char because int might match the return type of a GCC 12788 builtin and then its argument prototype would still apply. */ 12789#ifdef __cplusplus 12790extern "C" 12791#endif 12792char uuid_export (); 12793int 12794main () 12795{ 12796return uuid_export (); 12797 ; 12798 return 0; 12799} 12800_ACEOF 12801if ac_fn_c_try_link "$LINENO"; then : 12802 ac_cv_lib_ossp_uuid_uuid_export=yes 12803else 12804 ac_cv_lib_ossp_uuid_uuid_export=no 12805fi 12806rm -f core conftest.err conftest.$ac_objext \ 12807 conftest$ac_exeext conftest.$ac_ext 12808LIBS=$ac_check_lib_save_LIBS 12809fi 12810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5 12811$as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; } 12812if test "x$ac_cv_lib_ossp_uuid_uuid_export" = xyes; then : 12813 UUID_LIBS="-lossp-uuid" 12814else 12815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_export in -luuid" >&5 12816$as_echo_n "checking for uuid_export in -luuid... " >&6; } 12817if ${ac_cv_lib_uuid_uuid_export+:} false; then : 12818 $as_echo_n "(cached) " >&6 12819else 12820 ac_check_lib_save_LIBS=$LIBS 12821LIBS="-luuid $LIBS" 12822cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12823/* end confdefs.h. */ 12824 12825/* Override any GCC internal prototype to avoid an error. 12826 Use char because int might match the return type of a GCC 12827 builtin and then its argument prototype would still apply. */ 12828#ifdef __cplusplus 12829extern "C" 12830#endif 12831char uuid_export (); 12832int 12833main () 12834{ 12835return uuid_export (); 12836 ; 12837 return 0; 12838} 12839_ACEOF 12840if ac_fn_c_try_link "$LINENO"; then : 12841 ac_cv_lib_uuid_uuid_export=yes 12842else 12843 ac_cv_lib_uuid_uuid_export=no 12844fi 12845rm -f core conftest.err conftest.$ac_objext \ 12846 conftest$ac_exeext conftest.$ac_ext 12847LIBS=$ac_check_lib_save_LIBS 12848fi 12849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_export" >&5 12850$as_echo "$ac_cv_lib_uuid_uuid_export" >&6; } 12851if test "x$ac_cv_lib_uuid_uuid_export" = xyes; then : 12852 UUID_LIBS="-luuid" 12853else 12854 as_fn_error $? "library 'ossp-uuid' or 'uuid' is required for OSSP UUID" "$LINENO" 5 12855fi 12856 12857fi 12858 12859fi 12860 12861 12862 12863## 12864## Header files 12865## 12866 12867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 12868$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 12869if ${ac_cv_header_stdbool_h+:} false; then : 12870 $as_echo_n "(cached) " >&6 12871else 12872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12873/* end confdefs.h. */ 12874 12875 #include <stdbool.h> 12876 #ifndef bool 12877 "error: bool is not defined" 12878 #endif 12879 #ifndef false 12880 "error: false is not defined" 12881 #endif 12882 #if false 12883 "error: false is not 0" 12884 #endif 12885 #ifndef true 12886 "error: true is not defined" 12887 #endif 12888 #if true != 1 12889 "error: true is not 1" 12890 #endif 12891 #ifndef __bool_true_false_are_defined 12892 "error: __bool_true_false_are_defined is not defined" 12893 #endif 12894 12895 struct s { _Bool s: 1; _Bool t; } s; 12896 12897 char a[true == 1 ? 1 : -1]; 12898 char b[false == 0 ? 1 : -1]; 12899 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 12900 char d[(bool) 0.5 == true ? 1 : -1]; 12901 /* See body of main program for 'e'. */ 12902 char f[(_Bool) 0.0 == false ? 1 : -1]; 12903 char g[true]; 12904 char h[sizeof (_Bool)]; 12905 char i[sizeof s.t]; 12906 enum { j = false, k = true, l = false * true, m = true * 256 }; 12907 /* The following fails for 12908 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 12909 _Bool n[m]; 12910 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 12911 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 12912 /* Catch a bug in an HP-UX C compiler. See 12913 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 12914 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 12915 */ 12916 _Bool q = true; 12917 _Bool *pq = &q; 12918 12919int 12920main () 12921{ 12922 12923 bool e = &s; 12924 *pq |= q; 12925 *pq |= ! q; 12926 /* Refer to every declared value, to avoid compiler optimizations. */ 12927 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 12928 + !m + !n + !o + !p + !q + !pq); 12929 12930 ; 12931 return 0; 12932} 12933_ACEOF 12934if ac_fn_c_try_compile "$LINENO"; then : 12935 ac_cv_header_stdbool_h=yes 12936else 12937 ac_cv_header_stdbool_h=no 12938fi 12939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12940fi 12941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 12942$as_echo "$ac_cv_header_stdbool_h" >&6; } 12943 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 12944if test "x$ac_cv_type__Bool" = xyes; then : 12945 12946cat >>confdefs.h <<_ACEOF 12947#define HAVE__BOOL 1 12948_ACEOF 12949 12950 12951fi 12952 12953 12954if test $ac_cv_header_stdbool_h = yes; then 12955 12956$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h 12957 12958fi 12959 12960 12961for ac_header in atomic.h copyfile.h execinfo.h getopt.h ifaddrs.h langinfo.h mbarrier.h poll.h sys/epoll.h sys/event.h sys/ipc.h sys/prctl.h sys/procctl.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/sockio.h sys/tas.h sys/un.h termios.h ucred.h wctype.h 12962do : 12963 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12964ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12965if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12966 cat >>confdefs.h <<_ACEOF 12967#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12968_ACEOF 12969 12970fi 12971 12972done 12973 12974 12975# On BSD, test for net/if.h will fail unless sys/socket.h 12976# is included first. 12977for ac_header in net/if.h 12978do : 12979 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default 12980#include <sys/socket.h> 12981 12982" 12983if test "x$ac_cv_header_net_if_h" = xyes; then : 12984 cat >>confdefs.h <<_ACEOF 12985#define HAVE_NET_IF_H 1 12986_ACEOF 12987 12988fi 12989 12990done 12991 12992 12993# On OpenBSD, test for sys/ucred.h will fail unless sys/param.h 12994# is included first. 12995for ac_header in sys/ucred.h 12996do : 12997 ac_fn_c_check_header_compile "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default 12998#include <sys/param.h> 12999 13000" 13001if test "x$ac_cv_header_sys_ucred_h" = xyes; then : 13002 cat >>confdefs.h <<_ACEOF 13003#define HAVE_SYS_UCRED_H 1 13004_ACEOF 13005 13006fi 13007 13008done 13009 13010 13011# At least on IRIX, test for netinet/tcp.h will fail unless 13012# netinet/in.h is included first. 13013for ac_header in netinet/tcp.h 13014do : 13015 ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default 13016#include <netinet/in.h> 13017 13018" 13019if test "x$ac_cv_header_netinet_tcp_h" = xyes; then : 13020 cat >>confdefs.h <<_ACEOF 13021#define HAVE_NETINET_TCP_H 1 13022_ACEOF 13023 13024fi 13025 13026done 13027 13028 13029if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then 13030 for ac_header in readline/readline.h 13031do : 13032 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default" 13033if test "x$ac_cv_header_readline_readline_h" = xyes; then : 13034 cat >>confdefs.h <<_ACEOF 13035#define HAVE_READLINE_READLINE_H 1 13036_ACEOF 13037 13038else 13039 for ac_header in readline.h 13040do : 13041 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default" 13042if test "x$ac_cv_header_readline_h" = xyes; then : 13043 cat >>confdefs.h <<_ACEOF 13044#define HAVE_READLINE_H 1 13045_ACEOF 13046 13047else 13048 as_fn_error $? "readline header not found 13049If you have readline already installed, see config.log for details on the 13050failure. It is possible the compiler isn't looking in the proper directory. 13051Use --without-readline to disable readline support." "$LINENO" 5 13052fi 13053 13054done 13055 13056fi 13057 13058done 13059 13060 for ac_header in readline/history.h 13061do : 13062 ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default" 13063if test "x$ac_cv_header_readline_history_h" = xyes; then : 13064 cat >>confdefs.h <<_ACEOF 13065#define HAVE_READLINE_HISTORY_H 1 13066_ACEOF 13067 13068else 13069 for ac_header in history.h 13070do : 13071 ac_fn_c_check_header_mongrel "$LINENO" "history.h" "ac_cv_header_history_h" "$ac_includes_default" 13072if test "x$ac_cv_header_history_h" = xyes; then : 13073 cat >>confdefs.h <<_ACEOF 13074#define HAVE_HISTORY_H 1 13075_ACEOF 13076 13077else 13078 as_fn_error $? "history header not found 13079If you have readline already installed, see config.log for details on the 13080failure. It is possible the compiler isn't looking in the proper directory. 13081Use --without-readline to disable readline support." "$LINENO" 5 13082fi 13083 13084done 13085 13086fi 13087 13088done 13089 13090fi 13091 13092if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then 13093# Some installations of libedit usurp /usr/include/readline/, which seems 13094# bad practice, since in combined installations readline will have its headers 13095# there. We might have to resort to AC_EGREP checks to make sure we found 13096# the proper header... 13097 for ac_header in editline/readline.h 13098do : 13099 ac_fn_c_check_header_mongrel "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default" 13100if test "x$ac_cv_header_editline_readline_h" = xyes; then : 13101 cat >>confdefs.h <<_ACEOF 13102#define HAVE_EDITLINE_READLINE_H 1 13103_ACEOF 13104 13105else 13106 for ac_header in readline.h 13107do : 13108 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default" 13109if test "x$ac_cv_header_readline_h" = xyes; then : 13110 cat >>confdefs.h <<_ACEOF 13111#define HAVE_READLINE_H 1 13112_ACEOF 13113 13114else 13115 for ac_header in readline/readline.h 13116do : 13117 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default" 13118if test "x$ac_cv_header_readline_readline_h" = xyes; then : 13119 cat >>confdefs.h <<_ACEOF 13120#define HAVE_READLINE_READLINE_H 1 13121_ACEOF 13122 13123else 13124 as_fn_error $? "readline header not found 13125If you have libedit already installed, see config.log for details on the 13126failure. It is possible the compiler isn't looking in the proper directory. 13127Use --without-readline to disable libedit support." "$LINENO" 5 13128fi 13129 13130done 13131 13132fi 13133 13134done 13135 13136fi 13137 13138done 13139 13140# Note: in a libedit installation, history.h is sometimes a dummy, and may 13141# not be there at all. Hence, don't complain if not found. We must check 13142# though, since in yet other versions it is an independent header. 13143 for ac_header in editline/history.h 13144do : 13145 ac_fn_c_check_header_mongrel "$LINENO" "editline/history.h" "ac_cv_header_editline_history_h" "$ac_includes_default" 13146if test "x$ac_cv_header_editline_history_h" = xyes; then : 13147 cat >>confdefs.h <<_ACEOF 13148#define HAVE_EDITLINE_HISTORY_H 1 13149_ACEOF 13150 13151else 13152 for ac_header in history.h 13153do : 13154 ac_fn_c_check_header_mongrel "$LINENO" "history.h" "ac_cv_header_history_h" "$ac_includes_default" 13155if test "x$ac_cv_header_history_h" = xyes; then : 13156 cat >>confdefs.h <<_ACEOF 13157#define HAVE_HISTORY_H 1 13158_ACEOF 13159 13160else 13161 for ac_header in readline/history.h 13162do : 13163 ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default" 13164if test "x$ac_cv_header_readline_history_h" = xyes; then : 13165 cat >>confdefs.h <<_ACEOF 13166#define HAVE_READLINE_HISTORY_H 1 13167_ACEOF 13168 13169fi 13170 13171done 13172 13173fi 13174 13175done 13176 13177fi 13178 13179done 13180 13181fi 13182 13183if test "$with_zlib" = yes; then 13184 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 13185if test "x$ac_cv_header_zlib_h" = xyes; then : 13186 13187else 13188 as_fn_error $? "zlib header not found 13189If you have zlib already installed, see config.log for details on the 13190failure. It is possible the compiler isn't looking in the proper directory. 13191Use --without-zlib to disable zlib support." "$LINENO" 5 13192fi 13193 13194 13195fi 13196 13197if test "$with_gssapi" = yes ; then 13198 for ac_header in gssapi/gssapi.h 13199do : 13200 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default" 13201if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then : 13202 cat >>confdefs.h <<_ACEOF 13203#define HAVE_GSSAPI_GSSAPI_H 1 13204_ACEOF 13205 13206else 13207 for ac_header in gssapi.h 13208do : 13209 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default" 13210if test "x$ac_cv_header_gssapi_h" = xyes; then : 13211 cat >>confdefs.h <<_ACEOF 13212#define HAVE_GSSAPI_H 1 13213_ACEOF 13214 13215else 13216 as_fn_error $? "gssapi.h header file is required for GSSAPI" "$LINENO" 5 13217fi 13218 13219done 13220 13221fi 13222 13223done 13224 13225fi 13226 13227if test "$with_openssl" = yes ; then 13228 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default" 13229if test "x$ac_cv_header_openssl_ssl_h" = xyes; then : 13230 13231else 13232 as_fn_error $? "header file <openssl/ssl.h> is required for OpenSSL" "$LINENO" 5 13233fi 13234 13235 13236 ac_fn_c_check_header_mongrel "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default" 13237if test "x$ac_cv_header_openssl_err_h" = xyes; then : 13238 13239else 13240 as_fn_error $? "header file <openssl/err.h> is required for OpenSSL" "$LINENO" 5 13241fi 13242 13243 13244fi 13245 13246if test "$with_pam" = yes ; then 13247 for ac_header in security/pam_appl.h 13248do : 13249 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default" 13250if test "x$ac_cv_header_security_pam_appl_h" = xyes; then : 13251 cat >>confdefs.h <<_ACEOF 13252#define HAVE_SECURITY_PAM_APPL_H 1 13253_ACEOF 13254 13255else 13256 for ac_header in pam/pam_appl.h 13257do : 13258 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default" 13259if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then : 13260 cat >>confdefs.h <<_ACEOF 13261#define HAVE_PAM_PAM_APPL_H 1 13262_ACEOF 13263 13264else 13265 as_fn_error $? "header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." "$LINENO" 5 13266fi 13267 13268done 13269 13270fi 13271 13272done 13273 13274fi 13275 13276if test "$with_bsd_auth" = yes ; then 13277 ac_fn_c_check_header_mongrel "$LINENO" "bsd_auth.h" "ac_cv_header_bsd_auth_h" "$ac_includes_default" 13278if test "x$ac_cv_header_bsd_auth_h" = xyes; then : 13279 13280else 13281 as_fn_error $? "header file <bsd_auth.h> is required for BSD Authentication support" "$LINENO" 5 13282fi 13283 13284 13285fi 13286 13287if test "$with_systemd" = yes ; then 13288 ac_fn_c_check_header_mongrel "$LINENO" "systemd/sd-daemon.h" "ac_cv_header_systemd_sd_daemon_h" "$ac_includes_default" 13289if test "x$ac_cv_header_systemd_sd_daemon_h" = xyes; then : 13290 13291else 13292 as_fn_error $? "header file <systemd/sd-daemon.h> is required for systemd support" "$LINENO" 5 13293fi 13294 13295 13296fi 13297 13298if test "$with_libxml" = yes ; then 13299 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default" 13300if test "x$ac_cv_header_libxml_parser_h" = xyes; then : 13301 13302else 13303 as_fn_error $? "header file <libxml/parser.h> is required for XML support" "$LINENO" 5 13304fi 13305 13306 13307fi 13308 13309if test "$with_libxslt" = yes ; then 13310 ac_fn_c_check_header_mongrel "$LINENO" "libxslt/xslt.h" "ac_cv_header_libxslt_xslt_h" "$ac_includes_default" 13311if test "x$ac_cv_header_libxslt_xslt_h" = xyes; then : 13312 13313else 13314 as_fn_error $? "header file <libxslt/xslt.h> is required for XSLT support" "$LINENO" 5 13315fi 13316 13317 13318fi 13319 13320if test "$with_ldap" = yes ; then 13321 if test "$PORTNAME" != "win32"; then 13322 for ac_header in ldap.h 13323do : 13324 ac_fn_c_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default" 13325if test "x$ac_cv_header_ldap_h" = xyes; then : 13326 cat >>confdefs.h <<_ACEOF 13327#define HAVE_LDAP_H 1 13328_ACEOF 13329 13330else 13331 as_fn_error $? "header file <ldap.h> is required for LDAP" "$LINENO" 5 13332fi 13333 13334done 13335 13336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible LDAP implementation" >&5 13337$as_echo_n "checking for compatible LDAP implementation... " >&6; } 13338if ${pgac_cv_ldap_safe+:} false; then : 13339 $as_echo_n "(cached) " >&6 13340else 13341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13342/* end confdefs.h. */ 13343#include <ldap.h> 13344#if !defined(LDAP_VENDOR_VERSION) || \ 13345 (defined(LDAP_API_FEATURE_X_OPENLDAP) && \ 13346 LDAP_VENDOR_VERSION >= 20424 && LDAP_VENDOR_VERSION <= 20431) 13347choke me 13348#endif 13349int 13350main () 13351{ 13352 13353 ; 13354 return 0; 13355} 13356_ACEOF 13357if ac_fn_c_try_compile "$LINENO"; then : 13358 pgac_cv_ldap_safe=yes 13359else 13360 pgac_cv_ldap_safe=no 13361fi 13362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13363fi 13364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_ldap_safe" >&5 13365$as_echo "$pgac_cv_ldap_safe" >&6; } 13366 13367if test "$pgac_cv_ldap_safe" != yes; then 13368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 13369*** With OpenLDAP versions 2.4.24 through 2.4.31, inclusive, each backend 13370*** process that loads libpq (via WAL receiver, dblink, or postgres_fdw) and 13371*** also uses LDAP will crash on exit." >&5 13372$as_echo "$as_me: WARNING: 13373*** With OpenLDAP versions 2.4.24 through 2.4.31, inclusive, each backend 13374*** process that loads libpq (via WAL receiver, dblink, or postgres_fdw) and 13375*** also uses LDAP will crash on exit." >&2;} 13376fi 13377 else 13378 for ac_header in winldap.h 13379do : 13380 ac_fn_c_check_header_compile "$LINENO" "winldap.h" "ac_cv_header_winldap_h" "$ac_includes_default 13381#include <windows.h> 13382 13383" 13384if test "x$ac_cv_header_winldap_h" = xyes; then : 13385 cat >>confdefs.h <<_ACEOF 13386#define HAVE_WINLDAP_H 1 13387_ACEOF 13388 13389else 13390 as_fn_error $? "header file <winldap.h> is required for LDAP" "$LINENO" 5 13391fi 13392 13393done 13394 13395 fi 13396fi 13397 13398if test "$with_bonjour" = yes ; then 13399 ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default" 13400if test "x$ac_cv_header_dns_sd_h" = xyes; then : 13401 13402else 13403 as_fn_error $? "header file <dns_sd.h> is required for Bonjour" "$LINENO" 5 13404fi 13405 13406 13407fi 13408 13409# for contrib/uuid-ossp 13410if test "$with_uuid" = bsd ; then 13411 for ac_header in uuid.h 13412do : 13413 ac_fn_c_check_header_mongrel "$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default" 13414if test "x$ac_cv_header_uuid_h" = xyes; then : 13415 cat >>confdefs.h <<_ACEOF 13416#define HAVE_UUID_H 1 13417_ACEOF 13418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13419/* end confdefs.h. */ 13420#include <uuid.h> 13421 13422_ACEOF 13423if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13424 $EGREP "uuid_to_string" >/dev/null 2>&1; then : 13425 13426else 13427 as_fn_error $? "header file <uuid.h> does not match BSD UUID library" "$LINENO" 5 13428fi 13429rm -f conftest* 13430 13431else 13432 as_fn_error $? "header file <uuid.h> is required for BSD UUID" "$LINENO" 5 13433fi 13434 13435done 13436 13437elif test "$with_uuid" = e2fs ; then 13438 for ac_header in uuid/uuid.h 13439do : 13440 ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default" 13441if test "x$ac_cv_header_uuid_uuid_h" = xyes; then : 13442 cat >>confdefs.h <<_ACEOF 13443#define HAVE_UUID_UUID_H 1 13444_ACEOF 13445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13446/* end confdefs.h. */ 13447#include <uuid/uuid.h> 13448 13449_ACEOF 13450if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13451 $EGREP "uuid_generate" >/dev/null 2>&1; then : 13452 13453else 13454 as_fn_error $? "header file <uuid/uuid.h> does not match E2FS UUID library" "$LINENO" 5 13455fi 13456rm -f conftest* 13457 13458else 13459 for ac_header in uuid.h 13460do : 13461 ac_fn_c_check_header_mongrel "$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default" 13462if test "x$ac_cv_header_uuid_h" = xyes; then : 13463 cat >>confdefs.h <<_ACEOF 13464#define HAVE_UUID_H 1 13465_ACEOF 13466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13467/* end confdefs.h. */ 13468#include <uuid.h> 13469 13470_ACEOF 13471if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13472 $EGREP "uuid_generate" >/dev/null 2>&1; then : 13473 13474else 13475 as_fn_error $? "header file <uuid.h> does not match E2FS UUID library" "$LINENO" 5 13476fi 13477rm -f conftest* 13478 13479else 13480 as_fn_error $? "header file <uuid/uuid.h> or <uuid.h> is required for E2FS UUID" "$LINENO" 5 13481fi 13482 13483done 13484 13485fi 13486 13487done 13488 13489elif test "$with_uuid" = ossp ; then 13490 for ac_header in ossp/uuid.h 13491do : 13492 ac_fn_c_check_header_mongrel "$LINENO" "ossp/uuid.h" "ac_cv_header_ossp_uuid_h" "$ac_includes_default" 13493if test "x$ac_cv_header_ossp_uuid_h" = xyes; then : 13494 cat >>confdefs.h <<_ACEOF 13495#define HAVE_OSSP_UUID_H 1 13496_ACEOF 13497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13498/* end confdefs.h. */ 13499#include <ossp/uuid.h> 13500 13501_ACEOF 13502if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13503 $EGREP "uuid_export" >/dev/null 2>&1; then : 13504 13505else 13506 as_fn_error $? "header file <ossp/uuid.h> does not match OSSP UUID library" "$LINENO" 5 13507fi 13508rm -f conftest* 13509 13510else 13511 for ac_header in uuid.h 13512do : 13513 ac_fn_c_check_header_mongrel "$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default" 13514if test "x$ac_cv_header_uuid_h" = xyes; then : 13515 cat >>confdefs.h <<_ACEOF 13516#define HAVE_UUID_H 1 13517_ACEOF 13518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13519/* end confdefs.h. */ 13520#include <uuid.h> 13521 13522_ACEOF 13523if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13524 $EGREP "uuid_export" >/dev/null 2>&1; then : 13525 13526else 13527 as_fn_error $? "header file <uuid.h> does not match OSSP UUID library" "$LINENO" 5 13528fi 13529rm -f conftest* 13530 13531else 13532 as_fn_error $? "header file <ossp/uuid.h> or <uuid.h> is required for OSSP UUID" "$LINENO" 5 13533fi 13534 13535done 13536 13537fi 13538 13539done 13540 13541fi 13542 13543if test "$PORTNAME" = "win32" ; then 13544 for ac_header in crtdefs.h 13545do : 13546 ac_fn_c_check_header_mongrel "$LINENO" "crtdefs.h" "ac_cv_header_crtdefs_h" "$ac_includes_default" 13547if test "x$ac_cv_header_crtdefs_h" = xyes; then : 13548 cat >>confdefs.h <<_ACEOF 13549#define HAVE_CRTDEFS_H 1 13550_ACEOF 13551 13552fi 13553 13554done 13555 13556fi 13557 13558## 13559## Types, structures, compiler characteristics 13560## 13561 13562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 13563$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 13564if ${ac_cv_c_bigendian+:} false; then : 13565 $as_echo_n "(cached) " >&6 13566else 13567 ac_cv_c_bigendian=unknown 13568 # See if we're dealing with a universal compiler. 13569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13570/* end confdefs.h. */ 13571#ifndef __APPLE_CC__ 13572 not a universal capable compiler 13573 #endif 13574 typedef int dummy; 13575 13576_ACEOF 13577if ac_fn_c_try_compile "$LINENO"; then : 13578 13579 # Check for potential -arch flags. It is not universal unless 13580 # there are at least two -arch flags with different values. 13581 ac_arch= 13582 ac_prev= 13583 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 13584 if test -n "$ac_prev"; then 13585 case $ac_word in 13586 i?86 | x86_64 | ppc | ppc64) 13587 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 13588 ac_arch=$ac_word 13589 else 13590 ac_cv_c_bigendian=universal 13591 break 13592 fi 13593 ;; 13594 esac 13595 ac_prev= 13596 elif test "x$ac_word" = "x-arch"; then 13597 ac_prev=arch 13598 fi 13599 done 13600fi 13601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13602 if test $ac_cv_c_bigendian = unknown; then 13603 # See if sys/param.h defines the BYTE_ORDER macro. 13604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13605/* end confdefs.h. */ 13606#include <sys/types.h> 13607 #include <sys/param.h> 13608 13609int 13610main () 13611{ 13612#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 13613 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 13614 && LITTLE_ENDIAN) 13615 bogus endian macros 13616 #endif 13617 13618 ; 13619 return 0; 13620} 13621_ACEOF 13622if ac_fn_c_try_compile "$LINENO"; then : 13623 # It does; now see whether it defined to BIG_ENDIAN or not. 13624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13625/* end confdefs.h. */ 13626#include <sys/types.h> 13627 #include <sys/param.h> 13628 13629int 13630main () 13631{ 13632#if BYTE_ORDER != BIG_ENDIAN 13633 not big endian 13634 #endif 13635 13636 ; 13637 return 0; 13638} 13639_ACEOF 13640if ac_fn_c_try_compile "$LINENO"; then : 13641 ac_cv_c_bigendian=yes 13642else 13643 ac_cv_c_bigendian=no 13644fi 13645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13646fi 13647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13648 fi 13649 if test $ac_cv_c_bigendian = unknown; then 13650 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 13651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13652/* end confdefs.h. */ 13653#include <limits.h> 13654 13655int 13656main () 13657{ 13658#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 13659 bogus endian macros 13660 #endif 13661 13662 ; 13663 return 0; 13664} 13665_ACEOF 13666if ac_fn_c_try_compile "$LINENO"; then : 13667 # It does; now see whether it defined to _BIG_ENDIAN or not. 13668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13669/* end confdefs.h. */ 13670#include <limits.h> 13671 13672int 13673main () 13674{ 13675#ifndef _BIG_ENDIAN 13676 not big endian 13677 #endif 13678 13679 ; 13680 return 0; 13681} 13682_ACEOF 13683if ac_fn_c_try_compile "$LINENO"; then : 13684 ac_cv_c_bigendian=yes 13685else 13686 ac_cv_c_bigendian=no 13687fi 13688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13689fi 13690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13691 fi 13692 if test $ac_cv_c_bigendian = unknown; then 13693 # Compile a test program. 13694 if test "$cross_compiling" = yes; then : 13695 # Try to guess by grepping values from an object file. 13696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13697/* end confdefs.h. */ 13698short int ascii_mm[] = 13699 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 13700 short int ascii_ii[] = 13701 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 13702 int use_ascii (int i) { 13703 return ascii_mm[i] + ascii_ii[i]; 13704 } 13705 short int ebcdic_ii[] = 13706 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 13707 short int ebcdic_mm[] = 13708 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 13709 int use_ebcdic (int i) { 13710 return ebcdic_mm[i] + ebcdic_ii[i]; 13711 } 13712 extern int foo; 13713 13714int 13715main () 13716{ 13717return use_ascii (foo) == use_ebcdic (foo); 13718 ; 13719 return 0; 13720} 13721_ACEOF 13722if ac_fn_c_try_compile "$LINENO"; then : 13723 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 13724 ac_cv_c_bigendian=yes 13725 fi 13726 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 13727 if test "$ac_cv_c_bigendian" = unknown; then 13728 ac_cv_c_bigendian=no 13729 else 13730 # finding both strings is unlikely to happen, but who knows? 13731 ac_cv_c_bigendian=unknown 13732 fi 13733 fi 13734fi 13735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13736else 13737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13738/* end confdefs.h. */ 13739$ac_includes_default 13740int 13741main () 13742{ 13743 13744 /* Are we little or big endian? From Harbison&Steele. */ 13745 union 13746 { 13747 long int l; 13748 char c[sizeof (long int)]; 13749 } u; 13750 u.l = 1; 13751 return u.c[sizeof (long int) - 1] == 1; 13752 13753 ; 13754 return 0; 13755} 13756_ACEOF 13757if ac_fn_c_try_run "$LINENO"; then : 13758 ac_cv_c_bigendian=no 13759else 13760 ac_cv_c_bigendian=yes 13761fi 13762rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13763 conftest.$ac_objext conftest.beam conftest.$ac_ext 13764fi 13765 13766 fi 13767fi 13768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 13769$as_echo "$ac_cv_c_bigendian" >&6; } 13770 case $ac_cv_c_bigendian in #( 13771 yes) 13772 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 13773;; #( 13774 no) 13775 ;; #( 13776 universal) 13777 13778$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 13779 13780 ;; #( 13781 *) 13782 as_fn_error $? "unknown endianness 13783 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 13784 esac 13785 13786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 13787$as_echo_n "checking for inline... " >&6; } 13788if ${ac_cv_c_inline+:} false; then : 13789 $as_echo_n "(cached) " >&6 13790else 13791 ac_cv_c_inline=no 13792for ac_kw in inline __inline__ __inline; do 13793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13794/* end confdefs.h. */ 13795#ifndef __cplusplus 13796typedef int foo_t; 13797static $ac_kw foo_t static_foo () {return 0; } 13798$ac_kw foo_t foo () {return 0; } 13799#endif 13800 13801_ACEOF 13802if ac_fn_c_try_compile "$LINENO"; then : 13803 ac_cv_c_inline=$ac_kw 13804fi 13805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13806 test "$ac_cv_c_inline" != no && break 13807done 13808 13809fi 13810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 13811$as_echo "$ac_cv_c_inline" >&6; } 13812 13813case $ac_cv_c_inline in 13814 inline | yes) ;; 13815 *) 13816 case $ac_cv_c_inline in 13817 no) ac_val=;; 13818 *) ac_val=$ac_cv_c_inline;; 13819 esac 13820 cat >>confdefs.h <<_ACEOF 13821#ifndef __cplusplus 13822#define inline $ac_val 13823#endif 13824_ACEOF 13825 ;; 13826esac 13827 13828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf format archetype" >&5 13829$as_echo_n "checking for printf format archetype... " >&6; } 13830if ${pgac_cv_printf_archetype+:} false; then : 13831 $as_echo_n "(cached) " >&6 13832else 13833 pgac_cv_printf_archetype=gnu_printf 13834ac_save_c_werror_flag=$ac_c_werror_flag 13835ac_c_werror_flag=yes 13836cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13837/* end confdefs.h. */ 13838extern void pgac_write(int ignore, const char *fmt,...) 13839__attribute__((format($pgac_cv_printf_archetype, 2, 3))); 13840int 13841main () 13842{ 13843pgac_write(0, "error %s: %m", "foo"); 13844 ; 13845 return 0; 13846} 13847_ACEOF 13848if ac_fn_c_try_compile "$LINENO"; then : 13849 ac_archetype_ok=yes 13850else 13851 ac_archetype_ok=no 13852fi 13853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13854ac_c_werror_flag=$ac_save_c_werror_flag 13855 13856if [ "$ac_archetype_ok" = no ]; then 13857 pgac_cv_printf_archetype=__syslog__ 13858 ac_save_c_werror_flag=$ac_c_werror_flag 13859ac_c_werror_flag=yes 13860cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13861/* end confdefs.h. */ 13862extern void pgac_write(int ignore, const char *fmt,...) 13863__attribute__((format($pgac_cv_printf_archetype, 2, 3))); 13864int 13865main () 13866{ 13867pgac_write(0, "error %s: %m", "foo"); 13868 ; 13869 return 0; 13870} 13871_ACEOF 13872if ac_fn_c_try_compile "$LINENO"; then : 13873 ac_archetype_ok=yes 13874else 13875 ac_archetype_ok=no 13876fi 13877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13878ac_c_werror_flag=$ac_save_c_werror_flag 13879 13880 if [ "$ac_archetype_ok" = no ]; then 13881 pgac_cv_printf_archetype=printf 13882 fi 13883fi 13884fi 13885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_printf_archetype" >&5 13886$as_echo "$pgac_cv_printf_archetype" >&6; } 13887 13888cat >>confdefs.h <<_ACEOF 13889#define PG_PRINTF_ATTRIBUTE $pgac_cv_printf_archetype 13890_ACEOF 13891 13892 13893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __func__" >&5 13894$as_echo_n "checking for __func__... " >&6; } 13895if ${pgac_cv_funcname_func_support+:} false; then : 13896 $as_echo_n "(cached) " >&6 13897else 13898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13899/* end confdefs.h. */ 13900#include <stdio.h> 13901int 13902main () 13903{ 13904printf("%s\n", __func__); 13905 ; 13906 return 0; 13907} 13908_ACEOF 13909if ac_fn_c_try_compile "$LINENO"; then : 13910 pgac_cv_funcname_func_support=yes 13911else 13912 pgac_cv_funcname_func_support=no 13913fi 13914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13915fi 13916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_funcname_func_support" >&5 13917$as_echo "$pgac_cv_funcname_func_support" >&6; } 13918if test x"$pgac_cv_funcname_func_support" = xyes ; then 13919 13920$as_echo "#define HAVE_FUNCNAME__FUNC 1" >>confdefs.h 13921 13922else 13923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __FUNCTION__" >&5 13924$as_echo_n "checking for __FUNCTION__... " >&6; } 13925if ${pgac_cv_funcname_function_support+:} false; then : 13926 $as_echo_n "(cached) " >&6 13927else 13928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13929/* end confdefs.h. */ 13930#include <stdio.h> 13931int 13932main () 13933{ 13934printf("%s\n", __FUNCTION__); 13935 ; 13936 return 0; 13937} 13938_ACEOF 13939if ac_fn_c_try_compile "$LINENO"; then : 13940 pgac_cv_funcname_function_support=yes 13941else 13942 pgac_cv_funcname_function_support=no 13943fi 13944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13945fi 13946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_funcname_function_support" >&5 13947$as_echo "$pgac_cv_funcname_function_support" >&6; } 13948if test x"$pgac_cv_funcname_function_support" = xyes ; then 13949 13950$as_echo "#define HAVE_FUNCNAME__FUNCTION 1" >>confdefs.h 13951 13952fi 13953fi 13954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Static_assert" >&5 13955$as_echo_n "checking for _Static_assert... " >&6; } 13956if ${pgac_cv__static_assert+:} false; then : 13957 $as_echo_n "(cached) " >&6 13958else 13959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13960/* end confdefs.h. */ 13961 13962int 13963main () 13964{ 13965({ _Static_assert(1, "foo"); }) 13966 ; 13967 return 0; 13968} 13969_ACEOF 13970if ac_fn_c_try_link "$LINENO"; then : 13971 pgac_cv__static_assert=yes 13972else 13973 pgac_cv__static_assert=no 13974fi 13975rm -f core conftest.err conftest.$ac_objext \ 13976 conftest$ac_exeext conftest.$ac_ext 13977fi 13978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__static_assert" >&5 13979$as_echo "$pgac_cv__static_assert" >&6; } 13980if test x"$pgac_cv__static_assert" = xyes ; then 13981 13982$as_echo "#define HAVE__STATIC_ASSERT 1" >>confdefs.h 13983 13984fi 13985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5 13986$as_echo_n "checking for typeof... " >&6; } 13987if ${pgac_cv_c_typeof+:} false; then : 13988 $as_echo_n "(cached) " >&6 13989else 13990 pgac_cv_c_typeof=no 13991for pgac_kw in typeof __typeof__ decltype; do 13992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13993/* end confdefs.h. */ 13994 13995int 13996main () 13997{ 13998int x = 0; 13999$pgac_kw(x) y; 14000y = x; 14001return y; 14002 ; 14003 return 0; 14004} 14005_ACEOF 14006if ac_fn_c_try_compile "$LINENO"; then : 14007 pgac_cv_c_typeof=$pgac_kw 14008fi 14009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14010 test "$pgac_cv_c_typeof" != no && break 14011done 14012fi 14013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_c_typeof" >&5 14014$as_echo "$pgac_cv_c_typeof" >&6; } 14015if test "$pgac_cv_c_typeof" != no; then 14016 14017$as_echo "#define HAVE_TYPEOF 1" >>confdefs.h 14018 14019 if test "$pgac_cv_c_typeof" != typeof; then 14020 14021cat >>confdefs.h <<_ACEOF 14022#define typeof $pgac_cv_c_typeof 14023_ACEOF 14024 14025 fi 14026fi 14027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_types_compatible_p" >&5 14028$as_echo_n "checking for __builtin_types_compatible_p... " >&6; } 14029if ${pgac_cv__types_compatible+:} false; then : 14030 $as_echo_n "(cached) " >&6 14031else 14032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14033/* end confdefs.h. */ 14034 14035int 14036main () 14037{ 14038 int x; static int y[__builtin_types_compatible_p(__typeof__(x), int)]; 14039 ; 14040 return 0; 14041} 14042_ACEOF 14043if ac_fn_c_try_compile "$LINENO"; then : 14044 pgac_cv__types_compatible=yes 14045else 14046 pgac_cv__types_compatible=no 14047fi 14048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14049fi 14050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__types_compatible" >&5 14051$as_echo "$pgac_cv__types_compatible" >&6; } 14052if test x"$pgac_cv__types_compatible" = xyes ; then 14053 14054$as_echo "#define HAVE__BUILTIN_TYPES_COMPATIBLE_P 1" >>confdefs.h 14055 14056fi 14057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_constant_p" >&5 14058$as_echo_n "checking for __builtin_constant_p... " >&6; } 14059if ${pgac_cv__builtin_constant_p+:} false; then : 14060 $as_echo_n "(cached) " >&6 14061else 14062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14063/* end confdefs.h. */ 14064static int x; 14065 static int y[__builtin_constant_p(x) ? x : 1]; 14066 static int z[__builtin_constant_p("string literal") ? 1 : x]; 14067 14068 14069_ACEOF 14070if ac_fn_c_try_compile "$LINENO"; then : 14071 pgac_cv__builtin_constant_p=yes 14072else 14073 pgac_cv__builtin_constant_p=no 14074fi 14075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14076fi 14077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_constant_p" >&5 14078$as_echo "$pgac_cv__builtin_constant_p" >&6; } 14079if test x"$pgac_cv__builtin_constant_p" = xyes ; then 14080 14081$as_echo "#define HAVE__BUILTIN_CONSTANT_P 1" >>confdefs.h 14082 14083fi 14084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unreachable" >&5 14085$as_echo_n "checking for __builtin_unreachable... " >&6; } 14086if ${pgac_cv__builtin_unreachable+:} false; then : 14087 $as_echo_n "(cached) " >&6 14088else 14089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14090/* end confdefs.h. */ 14091 14092int 14093main () 14094{ 14095__builtin_unreachable(); 14096 ; 14097 return 0; 14098} 14099_ACEOF 14100if ac_fn_c_try_link "$LINENO"; then : 14101 pgac_cv__builtin_unreachable=yes 14102else 14103 pgac_cv__builtin_unreachable=no 14104fi 14105rm -f core conftest.err conftest.$ac_objext \ 14106 conftest$ac_exeext conftest.$ac_ext 14107fi 14108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_unreachable" >&5 14109$as_echo "$pgac_cv__builtin_unreachable" >&6; } 14110if test x"$pgac_cv__builtin_unreachable" = xyes ; then 14111 14112$as_echo "#define HAVE__BUILTIN_UNREACHABLE 1" >>confdefs.h 14113 14114fi 14115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for computed goto support" >&5 14116$as_echo_n "checking for computed goto support... " >&6; } 14117if ${pgac_cv_computed_goto+:} false; then : 14118 $as_echo_n "(cached) " >&6 14119else 14120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14121/* end confdefs.h. */ 14122 14123int 14124main () 14125{ 14126void *labeladdrs[] = {&&my_label}; 14127 goto *labeladdrs[0]; 14128 my_label: 14129 return 1; 14130 14131 ; 14132 return 0; 14133} 14134_ACEOF 14135if ac_fn_c_try_compile "$LINENO"; then : 14136 pgac_cv_computed_goto=yes 14137else 14138 pgac_cv_computed_goto=no 14139fi 14140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14141fi 14142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_computed_goto" >&5 14143$as_echo "$pgac_cv_computed_goto" >&6; } 14144if test x"$pgac_cv_computed_goto" = xyes ; then 14145 14146$as_echo "#define HAVE_COMPUTED_GOTO 1" >>confdefs.h 14147 14148fi 14149ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> 14150#include <time.h> 14151 14152" 14153if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : 14154 14155cat >>confdefs.h <<_ACEOF 14156#define HAVE_STRUCT_TM_TM_ZONE 1 14157_ACEOF 14158 14159 14160fi 14161 14162 14163ac_fn_c_check_type "$LINENO" "union semun" "ac_cv_type_union_semun" "#include <sys/types.h> 14164#ifdef HAVE_SYS_IPC_H 14165#include <sys/ipc.h> 14166#endif 14167#ifdef HAVE_SYS_SEM_H 14168#include <sys/sem.h> 14169#endif 14170" 14171if test "x$ac_cv_type_union_semun" = xyes; then : 14172 14173cat >>confdefs.h <<_ACEOF 14174#define HAVE_UNION_SEMUN 1 14175_ACEOF 14176 14177 14178fi 14179 14180ac_fn_c_check_type "$LINENO" "struct sockaddr_un" "ac_cv_type_struct_sockaddr_un" "#include <sys/types.h> 14181#ifdef HAVE_SYS_UN_H 14182#include <sys/un.h> 14183#endif 14184 14185" 14186if test "x$ac_cv_type_struct_sockaddr_un" = xyes; then : 14187 14188cat >>confdefs.h <<_ACEOF 14189#define HAVE_STRUCT_SOCKADDR_UN 1 14190_ACEOF 14191 14192 14193fi 14194 14195ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h> 14196#include <sys/socket.h> 14197 14198" 14199if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then : 14200 14201cat >>confdefs.h <<_ACEOF 14202#define HAVE_STRUCT_SOCKADDR_STORAGE 1 14203_ACEOF 14204 14205 14206fi 14207 14208ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h> 14209#include <sys/socket.h> 14210 14211" 14212if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then : 14213 14214cat >>confdefs.h <<_ACEOF 14215#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1 14216_ACEOF 14217 14218 14219fi 14220ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "#include <sys/types.h> 14221#include <sys/socket.h> 14222 14223" 14224if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then : 14225 14226cat >>confdefs.h <<_ACEOF 14227#define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1 14228_ACEOF 14229 14230 14231fi 14232ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_len" "ac_cv_member_struct_sockaddr_storage_ss_len" "#include <sys/types.h> 14233#include <sys/socket.h> 14234 14235" 14236if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = xyes; then : 14237 14238cat >>confdefs.h <<_ACEOF 14239#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1 14240_ACEOF 14241 14242 14243fi 14244ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_len" "ac_cv_member_struct_sockaddr_storage___ss_len" "#include <sys/types.h> 14245#include <sys/socket.h> 14246 14247" 14248if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = xyes; then : 14249 14250cat >>confdefs.h <<_ACEOF 14251#define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1 14252_ACEOF 14253 14254 14255fi 14256ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h> 14257#include <sys/socket.h> 14258 14259" 14260if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then : 14261 14262cat >>confdefs.h <<_ACEOF 14263#define HAVE_STRUCT_SOCKADDR_SA_LEN 1 14264_ACEOF 14265 14266 14267fi 14268 14269ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h> 14270#include <sys/socket.h> 14271#include <netdb.h> 14272 14273" 14274if test "x$ac_cv_type_struct_addrinfo" = xyes; then : 14275 14276cat >>confdefs.h <<_ACEOF 14277#define HAVE_STRUCT_ADDRINFO 1 14278_ACEOF 14279 14280 14281fi 14282 14283 14284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale_t" >&5 14285$as_echo_n "checking for locale_t... " >&6; } 14286if ${pgac_cv_type_locale_t+:} false; then : 14287 $as_echo_n "(cached) " >&6 14288else 14289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14290/* end confdefs.h. */ 14291#include <locale.h> 14292locale_t x; 14293int 14294main () 14295{ 14296 14297 ; 14298 return 0; 14299} 14300_ACEOF 14301if ac_fn_c_try_compile "$LINENO"; then : 14302 pgac_cv_type_locale_t=yes 14303else 14304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14305/* end confdefs.h. */ 14306#include <xlocale.h> 14307locale_t x; 14308int 14309main () 14310{ 14311 14312 ; 14313 return 0; 14314} 14315_ACEOF 14316if ac_fn_c_try_compile "$LINENO"; then : 14317 pgac_cv_type_locale_t='yes (in xlocale.h)' 14318else 14319 pgac_cv_type_locale_t=no 14320fi 14321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14322fi 14323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14324fi 14325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_locale_t" >&5 14326$as_echo "$pgac_cv_type_locale_t" >&6; } 14327if test "$pgac_cv_type_locale_t" != no; then 14328 14329$as_echo "#define HAVE_LOCALE_T 1" >>confdefs.h 14330 14331fi 14332if test "$pgac_cv_type_locale_t" = 'yes (in xlocale.h)'; then 14333 14334$as_echo "#define LOCALE_T_IN_XLOCALE 1" >>confdefs.h 14335 14336fi 14337 14338# MSVC doesn't cope well with defining restrict to __restrict, the 14339# spelling it understands, because it conflicts with 14340# __declspec(restrict). Therefore we define pg_restrict to the 14341# appropriate definition, which presumably won't conflict. 14342# 14343# Allow platforms with buggy compilers to force restrict to not be 14344# used by setting $FORCE_DISABLE_RESTRICT=yes in the relevant 14345# template. 14346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 14347$as_echo_n "checking for C/C++ restrict keyword... " >&6; } 14348if ${ac_cv_c_restrict+:} false; then : 14349 $as_echo_n "(cached) " >&6 14350else 14351 ac_cv_c_restrict=no 14352 # The order here caters to the fact that C++ does not require restrict. 14353 for ac_kw in __restrict __restrict__ _Restrict restrict; do 14354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14355/* end confdefs.h. */ 14356typedef int * int_ptr; 14357 int foo (int_ptr $ac_kw ip) { 14358 return ip[0]; 14359 } 14360int 14361main () 14362{ 14363int s[1]; 14364 int * $ac_kw t = s; 14365 t[0] = 0; 14366 return foo(t) 14367 ; 14368 return 0; 14369} 14370_ACEOF 14371if ac_fn_c_try_compile "$LINENO"; then : 14372 ac_cv_c_restrict=$ac_kw 14373fi 14374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14375 test "$ac_cv_c_restrict" != no && break 14376 done 14377 14378fi 14379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 14380$as_echo "$ac_cv_c_restrict" >&6; } 14381 14382 case $ac_cv_c_restrict in 14383 restrict) ;; 14384 no) $as_echo "#define restrict /**/" >>confdefs.h 14385 ;; 14386 *) cat >>confdefs.h <<_ACEOF 14387#define restrict $ac_cv_c_restrict 14388_ACEOF 14389 ;; 14390 esac 14391 14392if test "$ac_cv_c_restrict" = "no" -o "x$FORCE_DISABLE_RESTRICT" = "xyes"; then 14393 pg_restrict="" 14394else 14395 pg_restrict="$ac_cv_c_restrict" 14396fi 14397 14398cat >>confdefs.h <<_ACEOF 14399#define pg_restrict $pg_restrict 14400_ACEOF 14401 14402 14403ac_fn_c_check_type "$LINENO" "struct cmsgcred" "ac_cv_type_struct_cmsgcred" "#include <sys/socket.h> 14404#include <sys/param.h> 14405#ifdef HAVE_SYS_UCRED_H 14406#include <sys/ucred.h> 14407#endif 14408" 14409if test "x$ac_cv_type_struct_cmsgcred" = xyes; then : 14410 14411cat >>confdefs.h <<_ACEOF 14412#define HAVE_STRUCT_CMSGCRED 1 14413_ACEOF 14414 14415 14416fi 14417 14418 14419ac_fn_c_check_type "$LINENO" "struct option" "ac_cv_type_struct_option" "#ifdef HAVE_GETOPT_H 14420#include <getopt.h> 14421#endif 14422" 14423if test "x$ac_cv_type_struct_option" = xyes; then : 14424 14425cat >>confdefs.h <<_ACEOF 14426#define HAVE_STRUCT_OPTION 1 14427_ACEOF 14428 14429 14430fi 14431 14432 14433if test "$with_zlib" = yes; then 14434 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4 14435 # did not). While we could work around the lack of z_streamp, it 14436 # seems unwise to encourage people to use such old zlib versions... 14437 ac_fn_c_check_type "$LINENO" "z_streamp" "ac_cv_type_z_streamp" "#include <zlib.h> 14438" 14439if test "x$ac_cv_type_z_streamp" = xyes; then : 14440 14441else 14442 as_fn_error $? "zlib version is too old 14443Use --without-zlib to disable zlib support." "$LINENO" 5 14444fi 14445 14446fi 14447 14448case $host_cpu in 14449 x86_64) 14450 # On x86_64, check if we can compile a popcntq instruction 14451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports x86_64 popcntq" >&5 14452$as_echo_n "checking whether assembler supports x86_64 popcntq... " >&6; } 14453if ${pgac_cv_have_x86_64_popcntq+:} false; then : 14454 $as_echo_n "(cached) " >&6 14455else 14456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14457/* end confdefs.h. */ 14458 14459int 14460main () 14461{ 14462long long x = 1; long long r; 14463 __asm__ __volatile__ (" popcntq %1,%0\n" : "=q"(r) : "rm"(x)); 14464 ; 14465 return 0; 14466} 14467_ACEOF 14468if ac_fn_c_try_compile "$LINENO"; then : 14469 pgac_cv_have_x86_64_popcntq=yes 14470else 14471 pgac_cv_have_x86_64_popcntq=no 14472fi 14473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14474fi 14475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_have_x86_64_popcntq" >&5 14476$as_echo "$pgac_cv_have_x86_64_popcntq" >&6; } 14477 if test x"$pgac_cv_have_x86_64_popcntq" = xyes ; then 14478 14479$as_echo "#define HAVE_X86_64_POPCNTQ 1" >>confdefs.h 14480 14481 fi 14482 ;; 14483 ppc*|powerpc*) 14484 # On PPC, check if assembler supports LWARX instruction's mutex hint bit 14485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports lwarx hint bit" >&5 14486$as_echo_n "checking whether assembler supports lwarx hint bit... " >&6; } 14487if ${pgac_cv_have_ppc_mutex_hint+:} false; then : 14488 $as_echo_n "(cached) " >&6 14489else 14490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14491/* end confdefs.h. */ 14492 14493int 14494main () 14495{ 14496int a = 0; int *p = &a; int r; 14497 __asm__ __volatile__ (" lwarx %0,0,%1,1\n" : "=&r"(r) : "r"(p)); 14498 ; 14499 return 0; 14500} 14501_ACEOF 14502if ac_fn_c_try_compile "$LINENO"; then : 14503 pgac_cv_have_ppc_mutex_hint=yes 14504else 14505 pgac_cv_have_ppc_mutex_hint=no 14506fi 14507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14508fi 14509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_have_ppc_mutex_hint" >&5 14510$as_echo "$pgac_cv_have_ppc_mutex_hint" >&6; } 14511 if test x"$pgac_cv_have_ppc_mutex_hint" = xyes ; then 14512 14513$as_echo "#define HAVE_PPC_LWARX_MUTEX_HINT 1" >>confdefs.h 14514 14515 fi 14516 # Check if compiler accepts "i"(x) when __builtin_constant_p(x). 14517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __builtin_constant_p(x) implies \"i\"(x) acceptance" >&5 14518$as_echo_n "checking whether __builtin_constant_p(x) implies \"i\"(x) acceptance... " >&6; } 14519if ${pgac_cv_have_i_constraint__builtin_constant_p+:} false; then : 14520 $as_echo_n "(cached) " >&6 14521else 14522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14523/* end confdefs.h. */ 14524static inline int 14525 addi(int ra, int si) 14526 { 14527 int res = 0; 14528 if (__builtin_constant_p(si)) 14529 __asm__ __volatile__( 14530 " addi %0,%1,%2\n" : "=r"(res) : "b"(ra), "i"(si)); 14531 return res; 14532 } 14533 int test_adds(int x) { return addi(3, x) + addi(x, 5); } 14534int 14535main () 14536{ 14537 14538 ; 14539 return 0; 14540} 14541_ACEOF 14542if ac_fn_c_try_compile "$LINENO"; then : 14543 pgac_cv_have_i_constraint__builtin_constant_p=yes 14544else 14545 pgac_cv_have_i_constraint__builtin_constant_p=no 14546fi 14547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14548fi 14549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_have_i_constraint__builtin_constant_p" >&5 14550$as_echo "$pgac_cv_have_i_constraint__builtin_constant_p" >&6; } 14551 if test x"$pgac_cv_have_i_constraint__builtin_constant_p" = xyes ; then 14552 14553$as_echo "#define HAVE_I_CONSTRAINT__BUILTIN_CONSTANT_P 1" >>confdefs.h 14554 14555 fi 14556 ;; 14557esac 14558 14559# Check largefile support. You might think this is a system service not a 14560# compiler characteristic, but you'd be wrong. We must check this before 14561# probing existence of related functions such as fseeko, since the largefile 14562# defines can affect what is generated for that. 14563if test "$PORTNAME" != "win32"; then 14564 # Check whether --enable-largefile was given. 14565if test "${enable_largefile+set}" = set; then : 14566 enableval=$enable_largefile; 14567fi 14568 14569if test "$enable_largefile" != no; then 14570 14571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 14572$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 14573if ${ac_cv_sys_largefile_CC+:} false; then : 14574 $as_echo_n "(cached) " >&6 14575else 14576 ac_cv_sys_largefile_CC=no 14577 if test "$GCC" != yes; then 14578 ac_save_CC=$CC 14579 while :; do 14580 # IRIX 6.2 and later do not support large files by default, 14581 # so use the C compiler's -n32 option if that helps. 14582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14583/* end confdefs.h. */ 14584#include <sys/types.h> 14585 /* Check that off_t can represent 2**63 - 1 correctly. 14586 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14587 since some C++ compilers masquerading as C compilers 14588 incorrectly reject 9223372036854775807. */ 14589#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14590 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14591 && LARGE_OFF_T % 2147483647 == 1) 14592 ? 1 : -1]; 14593int 14594main () 14595{ 14596 14597 ; 14598 return 0; 14599} 14600_ACEOF 14601 if ac_fn_c_try_compile "$LINENO"; then : 14602 break 14603fi 14604rm -f core conftest.err conftest.$ac_objext 14605 CC="$CC -n32" 14606 if ac_fn_c_try_compile "$LINENO"; then : 14607 ac_cv_sys_largefile_CC=' -n32'; break 14608fi 14609rm -f core conftest.err conftest.$ac_objext 14610 break 14611 done 14612 CC=$ac_save_CC 14613 rm -f conftest.$ac_ext 14614 fi 14615fi 14616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 14617$as_echo "$ac_cv_sys_largefile_CC" >&6; } 14618 if test "$ac_cv_sys_largefile_CC" != no; then 14619 CC=$CC$ac_cv_sys_largefile_CC 14620 fi 14621 14622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 14623$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 14624if ${ac_cv_sys_file_offset_bits+:} false; then : 14625 $as_echo_n "(cached) " >&6 14626else 14627 while :; do 14628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14629/* end confdefs.h. */ 14630#include <sys/types.h> 14631 /* Check that off_t can represent 2**63 - 1 correctly. 14632 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14633 since some C++ compilers masquerading as C compilers 14634 incorrectly reject 9223372036854775807. */ 14635#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14636 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14637 && LARGE_OFF_T % 2147483647 == 1) 14638 ? 1 : -1]; 14639int 14640main () 14641{ 14642 14643 ; 14644 return 0; 14645} 14646_ACEOF 14647if ac_fn_c_try_compile "$LINENO"; then : 14648 ac_cv_sys_file_offset_bits=no; break 14649fi 14650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14652/* end confdefs.h. */ 14653#define _FILE_OFFSET_BITS 64 14654#include <sys/types.h> 14655 /* Check that off_t can represent 2**63 - 1 correctly. 14656 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14657 since some C++ compilers masquerading as C compilers 14658 incorrectly reject 9223372036854775807. */ 14659#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14660 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14661 && LARGE_OFF_T % 2147483647 == 1) 14662 ? 1 : -1]; 14663int 14664main () 14665{ 14666 14667 ; 14668 return 0; 14669} 14670_ACEOF 14671if ac_fn_c_try_compile "$LINENO"; then : 14672 ac_cv_sys_file_offset_bits=64; break 14673fi 14674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14675 ac_cv_sys_file_offset_bits=unknown 14676 break 14677done 14678fi 14679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 14680$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 14681case $ac_cv_sys_file_offset_bits in #( 14682 no | unknown) ;; 14683 *) 14684cat >>confdefs.h <<_ACEOF 14685#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 14686_ACEOF 14687;; 14688esac 14689rm -rf conftest* 14690 if test $ac_cv_sys_file_offset_bits = unknown; then 14691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 14692$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 14693if ${ac_cv_sys_large_files+:} false; then : 14694 $as_echo_n "(cached) " >&6 14695else 14696 while :; do 14697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14698/* end confdefs.h. */ 14699#include <sys/types.h> 14700 /* Check that off_t can represent 2**63 - 1 correctly. 14701 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14702 since some C++ compilers masquerading as C compilers 14703 incorrectly reject 9223372036854775807. */ 14704#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14705 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14706 && LARGE_OFF_T % 2147483647 == 1) 14707 ? 1 : -1]; 14708int 14709main () 14710{ 14711 14712 ; 14713 return 0; 14714} 14715_ACEOF 14716if ac_fn_c_try_compile "$LINENO"; then : 14717 ac_cv_sys_large_files=no; break 14718fi 14719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14721/* end confdefs.h. */ 14722#define _LARGE_FILES 1 14723#include <sys/types.h> 14724 /* Check that off_t can represent 2**63 - 1 correctly. 14725 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14726 since some C++ compilers masquerading as C compilers 14727 incorrectly reject 9223372036854775807. */ 14728#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14729 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14730 && LARGE_OFF_T % 2147483647 == 1) 14731 ? 1 : -1]; 14732int 14733main () 14734{ 14735 14736 ; 14737 return 0; 14738} 14739_ACEOF 14740if ac_fn_c_try_compile "$LINENO"; then : 14741 ac_cv_sys_large_files=1; break 14742fi 14743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14744 ac_cv_sys_large_files=unknown 14745 break 14746done 14747fi 14748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 14749$as_echo "$ac_cv_sys_large_files" >&6; } 14750case $ac_cv_sys_large_files in #( 14751 no | unknown) ;; 14752 *) 14753cat >>confdefs.h <<_ACEOF 14754#define _LARGE_FILES $ac_cv_sys_large_files 14755_ACEOF 14756;; 14757esac 14758rm -rf conftest* 14759 fi 14760 14761 14762fi 14763 14764 14765fi 14766 14767# The cast to long int works around a bug in the HP C Compiler 14768# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14769# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14770# This bug is HP SR number 8606223364. 14771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 14772$as_echo_n "checking size of off_t... " >&6; } 14773if ${ac_cv_sizeof_off_t+:} false; then : 14774 $as_echo_n "(cached) " >&6 14775else 14776 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : 14777 14778else 14779 if test "$ac_cv_type_off_t" = yes; then 14780 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14781$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14782as_fn_error 77 "cannot compute sizeof (off_t) 14783See \`config.log' for more details" "$LINENO" 5; } 14784 else 14785 ac_cv_sizeof_off_t=0 14786 fi 14787fi 14788 14789fi 14790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 14791$as_echo "$ac_cv_sizeof_off_t" >&6; } 14792 14793 14794 14795cat >>confdefs.h <<_ACEOF 14796#define SIZEOF_OFF_T $ac_cv_sizeof_off_t 14797_ACEOF 14798 14799 14800 14801# If we don't have largefile support, can't handle segsize >= 2GB. 14802if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then 14803 as_fn_error $? "Large file support is not enabled. Segment size cannot be larger than 1GB." "$LINENO" 5 14804fi 14805 14806# The cast to long int works around a bug in the HP C Compiler 14807# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14808# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14809# This bug is HP SR number 8606223364. 14810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of bool" >&5 14811$as_echo_n "checking size of bool... " >&6; } 14812if ${ac_cv_sizeof_bool+:} false; then : 14813 $as_echo_n "(cached) " >&6 14814else 14815 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (bool))" "ac_cv_sizeof_bool" "#ifdef HAVE_STDBOOL_H 14816#include <stdbool.h> 14817#endif 14818"; then : 14819 14820else 14821 if test "$ac_cv_type_bool" = yes; then 14822 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14823$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14824as_fn_error 77 "cannot compute sizeof (bool) 14825See \`config.log' for more details" "$LINENO" 5; } 14826 else 14827 ac_cv_sizeof_bool=0 14828 fi 14829fi 14830 14831fi 14832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_bool" >&5 14833$as_echo "$ac_cv_sizeof_bool" >&6; } 14834 14835 14836 14837cat >>confdefs.h <<_ACEOF 14838#define SIZEOF_BOOL $ac_cv_sizeof_bool 14839_ACEOF 14840 14841 14842 14843if test "$ac_cv_header_stdbool_h" = yes -a "$ac_cv_sizeof_bool" = 1; then 14844 14845$as_echo "#define PG_USE_STDBOOL 1" >>confdefs.h 14846 14847fi 14848 14849 14850## 14851## Functions, global variables 14852## 14853 14854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int timezone" >&5 14855$as_echo_n "checking for int timezone... " >&6; } 14856if ${pgac_cv_var_int_timezone+:} false; then : 14857 $as_echo_n "(cached) " >&6 14858else 14859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14860/* end confdefs.h. */ 14861#include <time.h> 14862int res; 14863int 14864main () 14865{ 14866#ifndef __CYGWIN__ 14867res = timezone / 60; 14868#else 14869res = _timezone / 60; 14870#endif 14871 ; 14872 return 0; 14873} 14874_ACEOF 14875if ac_fn_c_try_link "$LINENO"; then : 14876 pgac_cv_var_int_timezone=yes 14877else 14878 pgac_cv_var_int_timezone=no 14879fi 14880rm -f core conftest.err conftest.$ac_objext \ 14881 conftest$ac_exeext conftest.$ac_ext 14882fi 14883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_timezone" >&5 14884$as_echo "$pgac_cv_var_int_timezone" >&6; } 14885if test x"$pgac_cv_var_int_timezone" = xyes ; then 14886 14887$as_echo "#define HAVE_INT_TIMEZONE 1" >>confdefs.h 14888 14889fi 14890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for accept()" >&5 14891$as_echo_n "checking types of arguments for accept()... " >&6; } 14892 if ${ac_cv_func_accept_return+:} false; then : 14893 $as_echo_n "(cached) " >&6 14894else 14895 if ${ac_cv_func_accept_arg1+:} false; then : 14896 $as_echo_n "(cached) " >&6 14897else 14898 if ${ac_cv_func_accept_arg2+:} false; then : 14899 $as_echo_n "(cached) " >&6 14900else 14901 if ${ac_cv_func_accept_arg3+:} false; then : 14902 $as_echo_n "(cached) " >&6 14903else 14904 for ac_cv_func_accept_return in 'int' 'SOCKET WSAAPI' 'unsigned int PASCAL'; do 14905 for ac_cv_func_accept_arg1 in 'int' 'SOCKET' 'unsigned int'; do 14906 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do 14907 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do 14908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14909/* end confdefs.h. */ 14910#include <sys/types.h> 14911#include <sys/socket.h> 14912extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *); 14913_ACEOF 14914if ac_fn_c_try_compile "$LINENO"; then : 14915 ac_not_found=no; break 4 14916else 14917 ac_not_found=yes 14918fi 14919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14920 done 14921 done 14922 done 14923 done 14924 if test "$ac_not_found" = yes; then 14925 as_fn_error $? "could not determine argument types" "$LINENO" 5 14926 fi 14927 if test "$ac_cv_func_accept_arg3" = "void"; then 14928 ac_cv_func_accept_arg3=int 14929 fi 14930 14931fi 14932 14933fi 14934 14935fi 14936 14937fi 14938 { $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 14939$as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; } 14940 14941cat >>confdefs.h <<_ACEOF 14942#define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return 14943_ACEOF 14944 14945 14946cat >>confdefs.h <<_ACEOF 14947#define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1 14948_ACEOF 14949 14950 14951cat >>confdefs.h <<_ACEOF 14952#define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2 14953_ACEOF 14954 14955 14956cat >>confdefs.h <<_ACEOF 14957#define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3 14958_ACEOF 14959 14960 14961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday takes only one argument" >&5 14962$as_echo_n "checking whether gettimeofday takes only one argument... " >&6; } 14963if ${pgac_cv_func_gettimeofday_1arg+:} false; then : 14964 $as_echo_n "(cached) " >&6 14965else 14966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14967/* end confdefs.h. */ 14968#include <sys/time.h> 14969int 14970main () 14971{ 14972struct timeval *tp; 14973struct timezone *tzp; 14974gettimeofday(tp,tzp); 14975 ; 14976 return 0; 14977} 14978_ACEOF 14979if ac_fn_c_try_compile "$LINENO"; then : 14980 pgac_cv_func_gettimeofday_1arg=no 14981else 14982 pgac_cv_func_gettimeofday_1arg=yes 14983fi 14984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14985fi 14986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_gettimeofday_1arg" >&5 14987$as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; } 14988if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then 14989 14990$as_echo "#define GETTIMEOFDAY_1ARG 1" >>confdefs.h 14991 14992fi 14993 14994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wcstombs_l declaration" >&5 14995$as_echo_n "checking for wcstombs_l declaration... " >&6; } 14996if ${pgac_cv_func_wcstombs_l+:} false; then : 14997 $as_echo_n "(cached) " >&6 14998else 14999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15000/* end confdefs.h. */ 15001#include <stdlib.h> 15002#include <locale.h> 15003int 15004main () 15005{ 15006#ifndef wcstombs_l 15007(void) wcstombs_l; 15008#endif 15009 ; 15010 return 0; 15011} 15012_ACEOF 15013if ac_fn_c_try_compile "$LINENO"; then : 15014 pgac_cv_func_wcstombs_l='yes' 15015else 15016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15017/* end confdefs.h. */ 15018#include <stdlib.h> 15019#include <locale.h> 15020#include <xlocale.h> 15021int 15022main () 15023{ 15024#ifndef wcstombs_l 15025(void) wcstombs_l; 15026#endif 15027 ; 15028 return 0; 15029} 15030_ACEOF 15031if ac_fn_c_try_compile "$LINENO"; then : 15032 pgac_cv_func_wcstombs_l='yes (in xlocale.h)' 15033else 15034 pgac_cv_func_wcstombs_l='no' 15035fi 15036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15037fi 15038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15039fi 15040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_wcstombs_l" >&5 15041$as_echo "$pgac_cv_func_wcstombs_l" >&6; } 15042if test "$pgac_cv_func_wcstombs_l" = 'yes (in xlocale.h)'; then 15043 15044$as_echo "#define WCSTOMBS_L_IN_XLOCALE 1" >>confdefs.h 15045 15046fi 15047 15048# Some versions of libedit contain strlcpy(), setproctitle(), and other 15049# symbols that that library has no business exposing to the world. Pending 15050# acquisition of a clue by those developers, ignore libedit (including its 15051# possible alias of libreadline) while checking for everything else. 15052LIBS_including_readline="$LIBS" 15053LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'` 15054 15055for ac_func in backtrace_symbols clock_gettime copyfile fdatasync getifaddrs getpeerucred getrlimit kqueue mbstowcs_l memset_s poll posix_fallocate ppoll pstat pthread_is_threaded_np readlink setproctitle setproctitle_fast setsid shm_open strchrnul strsignal symlink sync_file_range uselocale wcstombs_l 15056do : 15057 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15058ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15059if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 15060 cat >>confdefs.h <<_ACEOF 15061#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15062_ACEOF 15063 15064fi 15065done 15066 15067 15068# These typically are compiler builtins, for which AC_CHECK_FUNCS fails. 15069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap16" >&5 15070$as_echo_n "checking for __builtin_bswap16... " >&6; } 15071if ${pgac_cv__builtin_bswap16+:} false; then : 15072 $as_echo_n "(cached) " >&6 15073else 15074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15075/* end confdefs.h. */ 15076 15077int 15078call__builtin_bswap16(int x) 15079{ 15080 return __builtin_bswap16(x); 15081} 15082int 15083main () 15084{ 15085 15086 ; 15087 return 0; 15088} 15089_ACEOF 15090if ac_fn_c_try_link "$LINENO"; then : 15091 pgac_cv__builtin_bswap16=yes 15092else 15093 pgac_cv__builtin_bswap16=no 15094fi 15095rm -f core conftest.err conftest.$ac_objext \ 15096 conftest$ac_exeext conftest.$ac_ext 15097fi 15098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_bswap16" >&5 15099$as_echo "$pgac_cv__builtin_bswap16" >&6; } 15100if test x"${pgac_cv__builtin_bswap16}" = xyes ; then 15101 15102cat >>confdefs.h <<_ACEOF 15103#define HAVE__BUILTIN_BSWAP16 1 15104_ACEOF 15105 15106fi 15107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap32" >&5 15108$as_echo_n "checking for __builtin_bswap32... " >&6; } 15109if ${pgac_cv__builtin_bswap32+:} false; then : 15110 $as_echo_n "(cached) " >&6 15111else 15112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15113/* end confdefs.h. */ 15114 15115int 15116call__builtin_bswap32(int x) 15117{ 15118 return __builtin_bswap32(x); 15119} 15120int 15121main () 15122{ 15123 15124 ; 15125 return 0; 15126} 15127_ACEOF 15128if ac_fn_c_try_link "$LINENO"; then : 15129 pgac_cv__builtin_bswap32=yes 15130else 15131 pgac_cv__builtin_bswap32=no 15132fi 15133rm -f core conftest.err conftest.$ac_objext \ 15134 conftest$ac_exeext conftest.$ac_ext 15135fi 15136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_bswap32" >&5 15137$as_echo "$pgac_cv__builtin_bswap32" >&6; } 15138if test x"${pgac_cv__builtin_bswap32}" = xyes ; then 15139 15140cat >>confdefs.h <<_ACEOF 15141#define HAVE__BUILTIN_BSWAP32 1 15142_ACEOF 15143 15144fi 15145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap64" >&5 15146$as_echo_n "checking for __builtin_bswap64... " >&6; } 15147if ${pgac_cv__builtin_bswap64+:} false; then : 15148 $as_echo_n "(cached) " >&6 15149else 15150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15151/* end confdefs.h. */ 15152 15153int 15154call__builtin_bswap64(long int x) 15155{ 15156 return __builtin_bswap64(x); 15157} 15158int 15159main () 15160{ 15161 15162 ; 15163 return 0; 15164} 15165_ACEOF 15166if ac_fn_c_try_link "$LINENO"; then : 15167 pgac_cv__builtin_bswap64=yes 15168else 15169 pgac_cv__builtin_bswap64=no 15170fi 15171rm -f core conftest.err conftest.$ac_objext \ 15172 conftest$ac_exeext conftest.$ac_ext 15173fi 15174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_bswap64" >&5 15175$as_echo "$pgac_cv__builtin_bswap64" >&6; } 15176if test x"${pgac_cv__builtin_bswap64}" = xyes ; then 15177 15178cat >>confdefs.h <<_ACEOF 15179#define HAVE__BUILTIN_BSWAP64 1 15180_ACEOF 15181 15182fi 15183# We assume that we needn't test all widths of these explicitly: 15184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5 15185$as_echo_n "checking for __builtin_clz... " >&6; } 15186if ${pgac_cv__builtin_clz+:} false; then : 15187 $as_echo_n "(cached) " >&6 15188else 15189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15190/* end confdefs.h. */ 15191 15192int 15193call__builtin_clz(unsigned int x) 15194{ 15195 return __builtin_clz(x); 15196} 15197int 15198main () 15199{ 15200 15201 ; 15202 return 0; 15203} 15204_ACEOF 15205if ac_fn_c_try_link "$LINENO"; then : 15206 pgac_cv__builtin_clz=yes 15207else 15208 pgac_cv__builtin_clz=no 15209fi 15210rm -f core conftest.err conftest.$ac_objext \ 15211 conftest$ac_exeext conftest.$ac_ext 15212fi 15213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_clz" >&5 15214$as_echo "$pgac_cv__builtin_clz" >&6; } 15215if test x"${pgac_cv__builtin_clz}" = xyes ; then 15216 15217cat >>confdefs.h <<_ACEOF 15218#define HAVE__BUILTIN_CLZ 1 15219_ACEOF 15220 15221fi 15222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_ctz" >&5 15223$as_echo_n "checking for __builtin_ctz... " >&6; } 15224if ${pgac_cv__builtin_ctz+:} false; then : 15225 $as_echo_n "(cached) " >&6 15226else 15227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15228/* end confdefs.h. */ 15229 15230int 15231call__builtin_ctz(unsigned int x) 15232{ 15233 return __builtin_ctz(x); 15234} 15235int 15236main () 15237{ 15238 15239 ; 15240 return 0; 15241} 15242_ACEOF 15243if ac_fn_c_try_link "$LINENO"; then : 15244 pgac_cv__builtin_ctz=yes 15245else 15246 pgac_cv__builtin_ctz=no 15247fi 15248rm -f core conftest.err conftest.$ac_objext \ 15249 conftest$ac_exeext conftest.$ac_ext 15250fi 15251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_ctz" >&5 15252$as_echo "$pgac_cv__builtin_ctz" >&6; } 15253if test x"${pgac_cv__builtin_ctz}" = xyes ; then 15254 15255cat >>confdefs.h <<_ACEOF 15256#define HAVE__BUILTIN_CTZ 1 15257_ACEOF 15258 15259fi 15260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_popcount" >&5 15261$as_echo_n "checking for __builtin_popcount... " >&6; } 15262if ${pgac_cv__builtin_popcount+:} false; then : 15263 $as_echo_n "(cached) " >&6 15264else 15265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15266/* end confdefs.h. */ 15267 15268int 15269call__builtin_popcount(unsigned int x) 15270{ 15271 return __builtin_popcount(x); 15272} 15273int 15274main () 15275{ 15276 15277 ; 15278 return 0; 15279} 15280_ACEOF 15281if ac_fn_c_try_link "$LINENO"; then : 15282 pgac_cv__builtin_popcount=yes 15283else 15284 pgac_cv__builtin_popcount=no 15285fi 15286rm -f core conftest.err conftest.$ac_objext \ 15287 conftest$ac_exeext conftest.$ac_ext 15288fi 15289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_popcount" >&5 15290$as_echo "$pgac_cv__builtin_popcount" >&6; } 15291if test x"${pgac_cv__builtin_popcount}" = xyes ; then 15292 15293cat >>confdefs.h <<_ACEOF 15294#define HAVE__BUILTIN_POPCOUNT 1 15295_ACEOF 15296 15297fi 15298 15299# We require 64-bit fseeko() to be available, but run this check anyway 15300# in case it finds that _LARGEFILE_SOURCE has to be #define'd for that. 15301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 15302$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 15303if ${ac_cv_sys_largefile_source+:} false; then : 15304 $as_echo_n "(cached) " >&6 15305else 15306 while :; do 15307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15308/* end confdefs.h. */ 15309#include <sys/types.h> /* for off_t */ 15310 #include <stdio.h> 15311int 15312main () 15313{ 15314int (*fp) (FILE *, off_t, int) = fseeko; 15315 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 15316 ; 15317 return 0; 15318} 15319_ACEOF 15320if ac_fn_c_try_link "$LINENO"; then : 15321 ac_cv_sys_largefile_source=no; break 15322fi 15323rm -f core conftest.err conftest.$ac_objext \ 15324 conftest$ac_exeext conftest.$ac_ext 15325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15326/* end confdefs.h. */ 15327#define _LARGEFILE_SOURCE 1 15328#include <sys/types.h> /* for off_t */ 15329 #include <stdio.h> 15330int 15331main () 15332{ 15333int (*fp) (FILE *, off_t, int) = fseeko; 15334 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 15335 ; 15336 return 0; 15337} 15338_ACEOF 15339if ac_fn_c_try_link "$LINENO"; then : 15340 ac_cv_sys_largefile_source=1; break 15341fi 15342rm -f core conftest.err conftest.$ac_objext \ 15343 conftest$ac_exeext conftest.$ac_ext 15344 ac_cv_sys_largefile_source=unknown 15345 break 15346done 15347fi 15348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 15349$as_echo "$ac_cv_sys_largefile_source" >&6; } 15350case $ac_cv_sys_largefile_source in #( 15351 no | unknown) ;; 15352 *) 15353cat >>confdefs.h <<_ACEOF 15354#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 15355_ACEOF 15356;; 15357esac 15358rm -rf conftest* 15359 15360# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 15361# in glibc 2.1.3, but that breaks too many other things. 15362# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 15363if test $ac_cv_sys_largefile_source != unknown; then 15364 15365$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 15366 15367fi 15368 15369 15370# posix_fadvise() is a no-op on Solaris, so don't incur function overhead 15371# by calling it, 2009-04-02 15372# http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c 15373# The Clang compiler raises a warning for an undeclared identifier that matches 15374# a compiler builtin function. All extant Clang versions are affected, as of 15375# Clang 3.6.0. Test a builtin known to every version. This problem affects the 15376# C and Objective C languages, but Clang does report an error under C++ and 15377# Objective C++. 15378# 15379# Passing -fno-builtin to the compiler would suppress this problem. That 15380# strategy would have the advantage of being insensitive to stray warnings, but 15381# it would make tests less realistic. 15382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how $CC reports undeclared, standard C functions" >&5 15383$as_echo_n "checking how $CC reports undeclared, standard C functions... " >&6; } 15384if ${ac_cv_c_decl_report+:} false; then : 15385 $as_echo_n "(cached) " >&6 15386else 15387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15388/* end confdefs.h. */ 15389 15390int 15391main () 15392{ 15393(void) strchr; 15394 ; 15395 return 0; 15396} 15397_ACEOF 15398if ac_fn_c_try_compile "$LINENO"; then : 15399 if test -s conftest.err; then : 15400 # For AC_CHECK_DECL to react to warnings, the compiler must be silent on 15401 # valid AC_CHECK_DECL input. No library function is consistently available 15402 # on freestanding implementations, so test against a dummy declaration. 15403 # Include always-available headers on the off chance that they somehow 15404 # elicit warnings. 15405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15406/* end confdefs.h. */ 15407#include <float.h> 15408#include <limits.h> 15409#include <stdarg.h> 15410#include <stddef.h> 15411extern void ac_decl (int, char *); 15412int 15413main () 15414{ 15415#ifdef __cplusplus 15416 (void) ac_decl ((int) 0, (char *) 0); 15417 (void) ac_decl; 15418#else 15419 (void) ac_decl; 15420#endif 15421 15422 ; 15423 return 0; 15424} 15425_ACEOF 15426if ac_fn_c_try_compile "$LINENO"; then : 15427 if test -s conftest.err; then : 15428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15429$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15430as_fn_error $? "cannot detect from compiler exit status or warnings 15431See \`config.log' for more details" "$LINENO" 5; } 15432else 15433 ac_cv_c_decl_report=warning 15434fi 15435else 15436 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15437$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15438as_fn_error $? "cannot compile a simple declaration test 15439See \`config.log' for more details" "$LINENO" 5; } 15440fi 15441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15442else 15443 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15444$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15445as_fn_error $? "compiler does not report undeclared identifiers 15446See \`config.log' for more details" "$LINENO" 5; } 15447fi 15448else 15449 ac_cv_c_decl_report=error 15450fi 15451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15452fi 15453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_decl_report" >&5 15454$as_echo "$ac_cv_c_decl_report" >&6; } 15455 15456case $ac_cv_c_decl_report in 15457 warning) ac_c_decl_warn_flag=yes ;; 15458 *) ac_c_decl_warn_flag= ;; 15459esac 15460 15461if test "$PORTNAME" != "solaris"; then : 15462 15463for ac_func in posix_fadvise 15464do : 15465 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise" 15466if test "x$ac_cv_func_posix_fadvise" = xyes; then : 15467 cat >>confdefs.h <<_ACEOF 15468#define HAVE_POSIX_FADVISE 1 15469_ACEOF 15470 15471fi 15472done 15473 15474ac_fn_c_check_decl "$LINENO" "posix_fadvise" "ac_cv_have_decl_posix_fadvise" "#include <fcntl.h> 15475" 15476if test "x$ac_cv_have_decl_posix_fadvise" = xyes; then : 15477 ac_have_decl=1 15478else 15479 ac_have_decl=0 15480fi 15481 15482cat >>confdefs.h <<_ACEOF 15483#define HAVE_DECL_POSIX_FADVISE $ac_have_decl 15484_ACEOF 15485 15486 15487fi # fi 15488 15489ac_fn_c_check_decl "$LINENO" "fdatasync" "ac_cv_have_decl_fdatasync" "#include <unistd.h> 15490" 15491if test "x$ac_cv_have_decl_fdatasync" = xyes; then : 15492 ac_have_decl=1 15493else 15494 ac_have_decl=0 15495fi 15496 15497cat >>confdefs.h <<_ACEOF 15498#define HAVE_DECL_FDATASYNC $ac_have_decl 15499_ACEOF 15500 15501ac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default" 15502if test "x$ac_cv_have_decl_strlcat" = xyes; then : 15503 ac_have_decl=1 15504else 15505 ac_have_decl=0 15506fi 15507 15508cat >>confdefs.h <<_ACEOF 15509#define HAVE_DECL_STRLCAT $ac_have_decl 15510_ACEOF 15511ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default" 15512if test "x$ac_cv_have_decl_strlcpy" = xyes; then : 15513 ac_have_decl=1 15514else 15515 ac_have_decl=0 15516fi 15517 15518cat >>confdefs.h <<_ACEOF 15519#define HAVE_DECL_STRLCPY $ac_have_decl 15520_ACEOF 15521ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default" 15522if test "x$ac_cv_have_decl_strnlen" = xyes; then : 15523 ac_have_decl=1 15524else 15525 ac_have_decl=0 15526fi 15527 15528cat >>confdefs.h <<_ACEOF 15529#define HAVE_DECL_STRNLEN $ac_have_decl 15530_ACEOF 15531 15532# This is probably only present on macOS, but may as well check always 15533ac_fn_c_check_decl "$LINENO" "F_FULLFSYNC" "ac_cv_have_decl_F_FULLFSYNC" "#include <fcntl.h> 15534" 15535if test "x$ac_cv_have_decl_F_FULLFSYNC" = xyes; then : 15536 ac_have_decl=1 15537else 15538 ac_have_decl=0 15539fi 15540 15541cat >>confdefs.h <<_ACEOF 15542#define HAVE_DECL_F_FULLFSYNC $ac_have_decl 15543_ACEOF 15544 15545 15546ac_fn_c_check_decl "$LINENO" "RTLD_GLOBAL" "ac_cv_have_decl_RTLD_GLOBAL" "#include <dlfcn.h> 15547" 15548if test "x$ac_cv_have_decl_RTLD_GLOBAL" = xyes; then : 15549 ac_have_decl=1 15550else 15551 ac_have_decl=0 15552fi 15553 15554cat >>confdefs.h <<_ACEOF 15555#define HAVE_DECL_RTLD_GLOBAL $ac_have_decl 15556_ACEOF 15557ac_fn_c_check_decl "$LINENO" "RTLD_NOW" "ac_cv_have_decl_RTLD_NOW" "#include <dlfcn.h> 15558" 15559if test "x$ac_cv_have_decl_RTLD_NOW" = xyes; then : 15560 ac_have_decl=1 15561else 15562 ac_have_decl=0 15563fi 15564 15565cat >>confdefs.h <<_ACEOF 15566#define HAVE_DECL_RTLD_NOW $ac_have_decl 15567_ACEOF 15568 15569 15570ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "$ac_includes_default 15571#include <netinet/in.h> 15572" 15573if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then : 15574 15575$as_echo "#define HAVE_IPV6 1" >>confdefs.h 15576 15577fi 15578 15579 15580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PS_STRINGS" >&5 15581$as_echo_n "checking for PS_STRINGS... " >&6; } 15582if ${pgac_cv_var_PS_STRINGS+:} false; then : 15583 $as_echo_n "(cached) " >&6 15584else 15585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15586/* end confdefs.h. */ 15587#include <machine/vmparam.h> 15588#include <sys/exec.h> 15589 15590int 15591main () 15592{ 15593PS_STRINGS->ps_nargvstr = 1; 15594PS_STRINGS->ps_argvstr = "foo"; 15595 ; 15596 return 0; 15597} 15598_ACEOF 15599if ac_fn_c_try_link "$LINENO"; then : 15600 pgac_cv_var_PS_STRINGS=yes 15601else 15602 pgac_cv_var_PS_STRINGS=no 15603fi 15604rm -f core conftest.err conftest.$ac_objext \ 15605 conftest$ac_exeext conftest.$ac_ext 15606fi 15607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_PS_STRINGS" >&5 15608$as_echo "$pgac_cv_var_PS_STRINGS" >&6; } 15609if test "$pgac_cv_var_PS_STRINGS" = yes ; then 15610 15611$as_echo "#define HAVE_PS_STRINGS 1" >>confdefs.h 15612 15613fi 15614 15615ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 15616if test "x$ac_cv_func_dlopen" = xyes; then : 15617 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h 15618 15619else 15620 case " $LIBOBJS " in 15621 *" dlopen.$ac_objext "* ) ;; 15622 *) LIBOBJS="$LIBOBJS dlopen.$ac_objext" 15623 ;; 15624esac 15625 15626fi 15627 15628ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero" 15629if test "x$ac_cv_func_explicit_bzero" = xyes; then : 15630 $as_echo "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h 15631 15632else 15633 case " $LIBOBJS " in 15634 *" explicit_bzero.$ac_objext "* ) ;; 15635 *) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext" 15636 ;; 15637esac 15638 15639fi 15640 15641ac_fn_c_check_func "$LINENO" "fls" "ac_cv_func_fls" 15642if test "x$ac_cv_func_fls" = xyes; then : 15643 $as_echo "#define HAVE_FLS 1" >>confdefs.h 15644 15645else 15646 case " $LIBOBJS " in 15647 *" fls.$ac_objext "* ) ;; 15648 *) LIBOBJS="$LIBOBJS fls.$ac_objext" 15649 ;; 15650esac 15651 15652fi 15653 15654ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt" 15655if test "x$ac_cv_func_getopt" = xyes; then : 15656 $as_echo "#define HAVE_GETOPT 1" >>confdefs.h 15657 15658else 15659 case " $LIBOBJS " in 15660 *" getopt.$ac_objext "* ) ;; 15661 *) LIBOBJS="$LIBOBJS getopt.$ac_objext" 15662 ;; 15663esac 15664 15665fi 15666 15667ac_fn_c_check_func "$LINENO" "getpeereid" "ac_cv_func_getpeereid" 15668if test "x$ac_cv_func_getpeereid" = xyes; then : 15669 $as_echo "#define HAVE_GETPEEREID 1" >>confdefs.h 15670 15671else 15672 case " $LIBOBJS " in 15673 *" getpeereid.$ac_objext "* ) ;; 15674 *) LIBOBJS="$LIBOBJS getpeereid.$ac_objext" 15675 ;; 15676esac 15677 15678fi 15679 15680ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage" 15681if test "x$ac_cv_func_getrusage" = xyes; then : 15682 $as_echo "#define HAVE_GETRUSAGE 1" >>confdefs.h 15683 15684else 15685 case " $LIBOBJS " in 15686 *" getrusage.$ac_objext "* ) ;; 15687 *) LIBOBJS="$LIBOBJS getrusage.$ac_objext" 15688 ;; 15689esac 15690 15691fi 15692 15693ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton" 15694if test "x$ac_cv_func_inet_aton" = xyes; then : 15695 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h 15696 15697else 15698 case " $LIBOBJS " in 15699 *" inet_aton.$ac_objext "* ) ;; 15700 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext" 15701 ;; 15702esac 15703 15704fi 15705 15706ac_fn_c_check_func "$LINENO" "link" "ac_cv_func_link" 15707if test "x$ac_cv_func_link" = xyes; then : 15708 $as_echo "#define HAVE_LINK 1" >>confdefs.h 15709 15710else 15711 case " $LIBOBJS " in 15712 *" link.$ac_objext "* ) ;; 15713 *) LIBOBJS="$LIBOBJS link.$ac_objext" 15714 ;; 15715esac 15716 15717fi 15718 15719ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp" 15720if test "x$ac_cv_func_mkdtemp" = xyes; then : 15721 $as_echo "#define HAVE_MKDTEMP 1" >>confdefs.h 15722 15723else 15724 case " $LIBOBJS " in 15725 *" mkdtemp.$ac_objext "* ) ;; 15726 *) LIBOBJS="$LIBOBJS mkdtemp.$ac_objext" 15727 ;; 15728esac 15729 15730fi 15731 15732ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread" 15733if test "x$ac_cv_func_pread" = xyes; then : 15734 $as_echo "#define HAVE_PREAD 1" >>confdefs.h 15735 15736else 15737 case " $LIBOBJS " in 15738 *" pread.$ac_objext "* ) ;; 15739 *) LIBOBJS="$LIBOBJS pread.$ac_objext" 15740 ;; 15741esac 15742 15743fi 15744 15745ac_fn_c_check_func "$LINENO" "pwrite" "ac_cv_func_pwrite" 15746if test "x$ac_cv_func_pwrite" = xyes; then : 15747 $as_echo "#define HAVE_PWRITE 1" >>confdefs.h 15748 15749else 15750 case " $LIBOBJS " in 15751 *" pwrite.$ac_objext "* ) ;; 15752 *) LIBOBJS="$LIBOBJS pwrite.$ac_objext" 15753 ;; 15754esac 15755 15756fi 15757 15758ac_fn_c_check_func "$LINENO" "random" "ac_cv_func_random" 15759if test "x$ac_cv_func_random" = xyes; then : 15760 $as_echo "#define HAVE_RANDOM 1" >>confdefs.h 15761 15762else 15763 case " $LIBOBJS " in 15764 *" random.$ac_objext "* ) ;; 15765 *) LIBOBJS="$LIBOBJS random.$ac_objext" 15766 ;; 15767esac 15768 15769fi 15770 15771ac_fn_c_check_func "$LINENO" "srandom" "ac_cv_func_srandom" 15772if test "x$ac_cv_func_srandom" = xyes; then : 15773 $as_echo "#define HAVE_SRANDOM 1" >>confdefs.h 15774 15775else 15776 case " $LIBOBJS " in 15777 *" srandom.$ac_objext "* ) ;; 15778 *) LIBOBJS="$LIBOBJS srandom.$ac_objext" 15779 ;; 15780esac 15781 15782fi 15783 15784ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 15785if test "x$ac_cv_func_strlcat" = xyes; then : 15786 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h 15787 15788else 15789 case " $LIBOBJS " in 15790 *" strlcat.$ac_objext "* ) ;; 15791 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" 15792 ;; 15793esac 15794 15795fi 15796 15797ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 15798if test "x$ac_cv_func_strlcpy" = xyes; then : 15799 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h 15800 15801else 15802 case " $LIBOBJS " in 15803 *" strlcpy.$ac_objext "* ) ;; 15804 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 15805 ;; 15806esac 15807 15808fi 15809 15810ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen" 15811if test "x$ac_cv_func_strnlen" = xyes; then : 15812 $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h 15813 15814else 15815 case " $LIBOBJS " in 15816 *" strnlen.$ac_objext "* ) ;; 15817 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext" 15818 ;; 15819esac 15820 15821fi 15822 15823ac_fn_c_check_func "$LINENO" "strtof" "ac_cv_func_strtof" 15824if test "x$ac_cv_func_strtof" = xyes; then : 15825 $as_echo "#define HAVE_STRTOF 1" >>confdefs.h 15826 15827else 15828 case " $LIBOBJS " in 15829 *" strtof.$ac_objext "* ) ;; 15830 *) LIBOBJS="$LIBOBJS strtof.$ac_objext" 15831 ;; 15832esac 15833 15834fi 15835 15836 15837 15838if test "$PORTNAME" = "win32" -o "$PORTNAME" = "cygwin"; then 15839 # Cygwin and (apparently, based on test results) Mingw both 15840 # have a broken strtof(), so substitute the same replacement 15841 # code we use with VS2013. That's not a perfect fix, since 15842 # (unlike with VS2013) it doesn't avoid double-rounding, but 15843 # we have no better options. To get that, though, we have to 15844 # force the file to be compiled despite HAVE_STRTOF. 15845 case " $LIBOBJS " in 15846 *" strtof.$ac_objext "* ) ;; 15847 *) LIBOBJS="$LIBOBJS strtof.$ac_objext" 15848 ;; 15849esac 15850 15851 { $as_echo "$as_me:${as_lineno-$LINENO}: On $host_os we will use our strtof wrapper." >&5 15852$as_echo "$as_me: On $host_os we will use our strtof wrapper." >&6;} 15853fi 15854 15855case $host_os in 15856 # Windows uses a specialised env handler 15857 mingw*) 15858 15859$as_echo "#define HAVE_SETENV 1" >>confdefs.h 15860 15861 15862$as_echo "#define HAVE_UNSETENV 1" >>confdefs.h 15863 15864 ac_cv_func_setenv=yes 15865 ac_cv_func_unsetenv=yes 15866 ;; 15867 *) 15868 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv" 15869if test "x$ac_cv_func_setenv" = xyes; then : 15870 $as_echo "#define HAVE_SETENV 1" >>confdefs.h 15871 15872else 15873 case " $LIBOBJS " in 15874 *" setenv.$ac_objext "* ) ;; 15875 *) LIBOBJS="$LIBOBJS setenv.$ac_objext" 15876 ;; 15877esac 15878 15879fi 15880 15881ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv" 15882if test "x$ac_cv_func_unsetenv" = xyes; then : 15883 $as_echo "#define HAVE_UNSETENV 1" >>confdefs.h 15884 15885else 15886 case " $LIBOBJS " in 15887 *" unsetenv.$ac_objext "* ) ;; 15888 *) LIBOBJS="$LIBOBJS unsetenv.$ac_objext" 15889 ;; 15890esac 15891 15892fi 15893 15894 15895 ;; 15896esac 15897 15898# System's version of getaddrinfo(), if any, may be used only if we found 15899# a definition for struct addrinfo; see notes in src/include/getaddrinfo.h. 15900# We use only our own getaddrinfo.c on Windows, but it's time to revisit that. 15901if test x"$ac_cv_type_struct_addrinfo" = xyes && \ 15902 test "$PORTNAME" != "win32"; then 15903 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 15904if test "x$ac_cv_func_getaddrinfo" = xyes; then : 15905 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h 15906 15907else 15908 case " $LIBOBJS " in 15909 *" getaddrinfo.$ac_objext "* ) ;; 15910 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" 15911 ;; 15912esac 15913 15914fi 15915 15916 15917else 15918 case " $LIBOBJS " in 15919 *" getaddrinfo.$ac_objext "* ) ;; 15920 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" 15921 ;; 15922esac 15923 15924fi 15925 15926# Similarly, use system's getopt_long() only if system provides struct option. 15927if test x"$ac_cv_type_struct_option" = xyes ; then 15928 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long" 15929if test "x$ac_cv_func_getopt_long" = xyes; then : 15930 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h 15931 15932else 15933 case " $LIBOBJS " in 15934 *" getopt_long.$ac_objext "* ) ;; 15935 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext" 15936 ;; 15937esac 15938 15939fi 15940 15941 15942else 15943 case " $LIBOBJS " in 15944 *" getopt_long.$ac_objext "* ) ;; 15945 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext" 15946 ;; 15947esac 15948 15949fi 15950 15951# On OpenBSD and Solaris, getopt() doesn't do what we want for long options 15952# (i.e., allow '-' as a flag character), so use our version on those platforms. 15953if test "$PORTNAME" = "openbsd" -o "$PORTNAME" = "solaris"; then 15954 case " $LIBOBJS " in 15955 *" getopt.$ac_objext "* ) ;; 15956 *) LIBOBJS="$LIBOBJS getopt.$ac_objext" 15957 ;; 15958esac 15959 15960fi 15961 15962# mingw has adopted a GNU-centric interpretation of optind/optreset, 15963# so always use our version on Windows. 15964if test "$PORTNAME" = "win32"; then 15965 case " $LIBOBJS " in 15966 *" getopt.$ac_objext "* ) ;; 15967 *) LIBOBJS="$LIBOBJS getopt.$ac_objext" 15968 ;; 15969esac 15970 15971 case " $LIBOBJS " in 15972 *" getopt_long.$ac_objext "* ) ;; 15973 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext" 15974 ;; 15975esac 15976 15977fi 15978 15979# Win32 (really MinGW) support 15980if test "$PORTNAME" = "win32"; then 15981 for ac_func in _configthreadlocale 15982do : 15983 ac_fn_c_check_func "$LINENO" "_configthreadlocale" "ac_cv_func__configthreadlocale" 15984if test "x$ac_cv_func__configthreadlocale" = xyes; then : 15985 cat >>confdefs.h <<_ACEOF 15986#define HAVE__CONFIGTHREADLOCALE 1 15987_ACEOF 15988 15989fi 15990done 15991 15992 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" 15993if test "x$ac_cv_func_gettimeofday" = xyes; then : 15994 $as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h 15995 15996else 15997 case " $LIBOBJS " in 15998 *" gettimeofday.$ac_objext "* ) ;; 15999 *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" 16000 ;; 16001esac 16002 16003fi 16004 16005 16006 case " $LIBOBJS " in 16007 *" dirmod.$ac_objext "* ) ;; 16008 *) LIBOBJS="$LIBOBJS dirmod.$ac_objext" 16009 ;; 16010esac 16011 16012 case " $LIBOBJS " in 16013 *" kill.$ac_objext "* ) ;; 16014 *) LIBOBJS="$LIBOBJS kill.$ac_objext" 16015 ;; 16016esac 16017 16018 case " $LIBOBJS " in 16019 *" open.$ac_objext "* ) ;; 16020 *) LIBOBJS="$LIBOBJS open.$ac_objext" 16021 ;; 16022esac 16023 16024 case " $LIBOBJS " in 16025 *" system.$ac_objext "* ) ;; 16026 *) LIBOBJS="$LIBOBJS system.$ac_objext" 16027 ;; 16028esac 16029 16030 case " $LIBOBJS " in 16031 *" win32env.$ac_objext "* ) ;; 16032 *) LIBOBJS="$LIBOBJS win32env.$ac_objext" 16033 ;; 16034esac 16035 16036 case " $LIBOBJS " in 16037 *" win32error.$ac_objext "* ) ;; 16038 *) LIBOBJS="$LIBOBJS win32error.$ac_objext" 16039 ;; 16040esac 16041 16042 case " $LIBOBJS " in 16043 *" win32security.$ac_objext "* ) ;; 16044 *) LIBOBJS="$LIBOBJS win32security.$ac_objext" 16045 ;; 16046esac 16047 16048 case " $LIBOBJS " in 16049 *" win32setlocale.$ac_objext "* ) ;; 16050 *) LIBOBJS="$LIBOBJS win32setlocale.$ac_objext" 16051 ;; 16052esac 16053 16054 16055$as_echo "#define HAVE_SYMLINK 1" >>confdefs.h 16056 16057 ac_fn_c_check_type "$LINENO" "MINIDUMP_TYPE" "ac_cv_type_MINIDUMP_TYPE" " 16058#define WIN32_LEAN_AND_MEAN 16059#include <windows.h> 16060#include <string.h> 16061#include <dbghelp.h> 16062" 16063if test "x$ac_cv_type_MINIDUMP_TYPE" = xyes; then : 16064 16065cat >>confdefs.h <<_ACEOF 16066#define HAVE_MINIDUMP_TYPE 1 16067_ACEOF 16068 16069pgac_minidump_type=yes 16070else 16071 pgac_minidump_type=no 16072fi 16073 16074fi 16075if test x"$pgac_minidump_type" = x"yes" ; then 16076 have_win32_dbghelp=yes 16077 16078else 16079 have_win32_dbghelp=no 16080 16081fi 16082 16083# Cygwin needs only a bit of that 16084if test "$PORTNAME" = "cygwin"; then 16085 case " $LIBOBJS " in 16086 *" dirmod.$ac_objext "* ) ;; 16087 *) LIBOBJS="$LIBOBJS dirmod.$ac_objext" 16088 ;; 16089esac 16090 16091fi 16092 16093ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog" 16094if test "x$ac_cv_func_syslog" = xyes; then : 16095 ac_fn_c_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default" 16096if test "x$ac_cv_header_syslog_h" = xyes; then : 16097 16098$as_echo "#define HAVE_SYSLOG 1" >>confdefs.h 16099 16100fi 16101 16102 16103fi 16104 16105 16106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for opterr" >&5 16107$as_echo_n "checking for opterr... " >&6; } 16108if ${pgac_cv_var_int_opterr+:} false; then : 16109 $as_echo_n "(cached) " >&6 16110else 16111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16112/* end confdefs.h. */ 16113#include <unistd.h> 16114int 16115main () 16116{ 16117extern int opterr; opterr = 1; 16118 ; 16119 return 0; 16120} 16121_ACEOF 16122if ac_fn_c_try_link "$LINENO"; then : 16123 pgac_cv_var_int_opterr=yes 16124else 16125 pgac_cv_var_int_opterr=no 16126fi 16127rm -f core conftest.err conftest.$ac_objext \ 16128 conftest$ac_exeext conftest.$ac_ext 16129fi 16130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_opterr" >&5 16131$as_echo "$pgac_cv_var_int_opterr" >&6; } 16132if test x"$pgac_cv_var_int_opterr" = x"yes"; then 16133 16134$as_echo "#define HAVE_INT_OPTERR 1" >>confdefs.h 16135 16136fi 16137 16138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5 16139$as_echo_n "checking for optreset... " >&6; } 16140if ${pgac_cv_var_int_optreset+:} false; then : 16141 $as_echo_n "(cached) " >&6 16142else 16143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16144/* end confdefs.h. */ 16145#include <unistd.h> 16146int 16147main () 16148{ 16149extern int optreset; optreset = 1; 16150 ; 16151 return 0; 16152} 16153_ACEOF 16154if ac_fn_c_try_link "$LINENO"; then : 16155 pgac_cv_var_int_optreset=yes 16156else 16157 pgac_cv_var_int_optreset=no 16158fi 16159rm -f core conftest.err conftest.$ac_objext \ 16160 conftest$ac_exeext conftest.$ac_ext 16161fi 16162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_optreset" >&5 16163$as_echo "$pgac_cv_var_int_optreset" >&6; } 16164if test x"$pgac_cv_var_int_optreset" = x"yes"; then 16165 16166$as_echo "#define HAVE_INT_OPTRESET 1" >>confdefs.h 16167 16168fi 16169 16170for ac_func in strtoll __strtoll strtoq 16171do : 16172 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16173ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16174if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16175 cat >>confdefs.h <<_ACEOF 16176#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16177_ACEOF 16178 break 16179fi 16180done 16181 16182for ac_func in strtoull __strtoull strtouq 16183do : 16184 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16185ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16186if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16187 cat >>confdefs.h <<_ACEOF 16188#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16189_ACEOF 16190 break 16191fi 16192done 16193 16194# strto[u]ll may exist but not be declared 16195ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default" 16196if test "x$ac_cv_have_decl_strtoll" = xyes; then : 16197 ac_have_decl=1 16198else 16199 ac_have_decl=0 16200fi 16201 16202cat >>confdefs.h <<_ACEOF 16203#define HAVE_DECL_STRTOLL $ac_have_decl 16204_ACEOF 16205ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default" 16206if test "x$ac_cv_have_decl_strtoull" = xyes; then : 16207 ac_have_decl=1 16208else 16209 ac_have_decl=0 16210fi 16211 16212cat >>confdefs.h <<_ACEOF 16213#define HAVE_DECL_STRTOULL $ac_have_decl 16214_ACEOF 16215 16216 16217if test "$with_icu" = yes; then 16218 ac_save_CPPFLAGS=$CPPFLAGS 16219 CPPFLAGS="$ICU_CFLAGS $CPPFLAGS" 16220 16221 # Verify we have ICU's header files 16222 ac_fn_c_check_header_mongrel "$LINENO" "unicode/ucol.h" "ac_cv_header_unicode_ucol_h" "$ac_includes_default" 16223if test "x$ac_cv_header_unicode_ucol_h" = xyes; then : 16224 16225else 16226 as_fn_error $? "header file <unicode/ucol.h> is required for ICU" "$LINENO" 5 16227fi 16228 16229 16230 16231 CPPFLAGS=$ac_save_CPPFLAGS 16232fi 16233 16234if test "$with_llvm" = yes; then 16235 16236 # Check which functionality is present 16237 SAVE_CPPFLAGS="$CPPFLAGS" 16238 CPPFLAGS="$CPPFLAGS $LLVM_CPPFLAGS" 16239 ac_fn_c_check_decl "$LINENO" "LLVMOrcGetSymbolAddressIn" "ac_cv_have_decl_LLVMOrcGetSymbolAddressIn" "#include <llvm-c/OrcBindings.h> 16240" 16241if test "x$ac_cv_have_decl_LLVMOrcGetSymbolAddressIn" = xyes; then : 16242 ac_have_decl=1 16243else 16244 ac_have_decl=0 16245fi 16246 16247cat >>confdefs.h <<_ACEOF 16248#define HAVE_DECL_LLVMORCGETSYMBOLADDRESSIN $ac_have_decl 16249_ACEOF 16250 16251 ac_fn_c_check_decl "$LINENO" "LLVMGetHostCPUName" "ac_cv_have_decl_LLVMGetHostCPUName" "#include <llvm-c/TargetMachine.h> 16252" 16253if test "x$ac_cv_have_decl_LLVMGetHostCPUName" = xyes; then : 16254 ac_have_decl=1 16255else 16256 ac_have_decl=0 16257fi 16258 16259cat >>confdefs.h <<_ACEOF 16260#define HAVE_DECL_LLVMGETHOSTCPUNAME $ac_have_decl 16261_ACEOF 16262ac_fn_c_check_decl "$LINENO" "LLVMGetHostCPUFeatures" "ac_cv_have_decl_LLVMGetHostCPUFeatures" "#include <llvm-c/TargetMachine.h> 16263" 16264if test "x$ac_cv_have_decl_LLVMGetHostCPUFeatures" = xyes; then : 16265 ac_have_decl=1 16266else 16267 ac_have_decl=0 16268fi 16269 16270cat >>confdefs.h <<_ACEOF 16271#define HAVE_DECL_LLVMGETHOSTCPUFEATURES $ac_have_decl 16272_ACEOF 16273 16274 ac_fn_c_check_decl "$LINENO" "LLVMCreateGDBRegistrationListener" "ac_cv_have_decl_LLVMCreateGDBRegistrationListener" "#include <llvm-c/ExecutionEngine.h> 16275" 16276if test "x$ac_cv_have_decl_LLVMCreateGDBRegistrationListener" = xyes; then : 16277 ac_have_decl=1 16278else 16279 ac_have_decl=0 16280fi 16281 16282cat >>confdefs.h <<_ACEOF 16283#define HAVE_DECL_LLVMCREATEGDBREGISTRATIONLISTENER $ac_have_decl 16284_ACEOF 16285ac_fn_c_check_decl "$LINENO" "LLVMCreatePerfJITEventListener" "ac_cv_have_decl_LLVMCreatePerfJITEventListener" "#include <llvm-c/ExecutionEngine.h> 16286" 16287if test "x$ac_cv_have_decl_LLVMCreatePerfJITEventListener" = xyes; then : 16288 ac_have_decl=1 16289else 16290 ac_have_decl=0 16291fi 16292 16293cat >>confdefs.h <<_ACEOF 16294#define HAVE_DECL_LLVMCREATEPERFJITEVENTLISTENER $ac_have_decl 16295_ACEOF 16296 16297 CPPFLAGS="$SAVE_CPPFLAGS" 16298 16299fi 16300 16301# Lastly, restore full LIBS list and check for readline/libedit symbols 16302LIBS="$LIBS_including_readline" 16303 16304if test "$with_readline" = yes; then 16305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_append_character" >&5 16306$as_echo_n "checking for rl_completion_append_character... " >&6; } 16307if ${pgac_cv_var_rl_completion_append_character+:} false; then : 16308 $as_echo_n "(cached) " >&6 16309else 16310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16311/* end confdefs.h. */ 16312#include <stdio.h> 16313#if defined(HAVE_READLINE_READLINE_H) 16314#include <readline/readline.h> 16315#elif defined(HAVE_EDITLINE_READLINE_H) 16316#include <editline/readline.h> 16317#elif defined(HAVE_READLINE_H) 16318#include <readline.h> 16319#endif 16320 16321int 16322main () 16323{ 16324rl_completion_append_character = 'x'; 16325 ; 16326 return 0; 16327} 16328_ACEOF 16329if ac_fn_c_try_link "$LINENO"; then : 16330 pgac_cv_var_rl_completion_append_character=yes 16331else 16332 pgac_cv_var_rl_completion_append_character=no 16333fi 16334rm -f core conftest.err conftest.$ac_objext \ 16335 conftest$ac_exeext conftest.$ac_ext 16336fi 16337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_rl_completion_append_character" >&5 16338$as_echo "$pgac_cv_var_rl_completion_append_character" >&6; } 16339if test x"$pgac_cv_var_rl_completion_append_character" = x"yes"; then 16340 16341$as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h 16342 16343fi 16344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_suppress_quote" >&5 16345$as_echo_n "checking for rl_completion_suppress_quote... " >&6; } 16346if ${pgac_cv_var_rl_completion_suppress_quote+:} false; then : 16347 $as_echo_n "(cached) " >&6 16348else 16349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16350/* end confdefs.h. */ 16351#include <stdio.h> 16352#if defined(HAVE_READLINE_READLINE_H) 16353#include <readline/readline.h> 16354#elif defined(HAVE_EDITLINE_READLINE_H) 16355#include <editline/readline.h> 16356#elif defined(HAVE_READLINE_H) 16357#include <readline.h> 16358#endif 16359 16360int 16361main () 16362{ 16363rl_completion_suppress_quote = 1; 16364 ; 16365 return 0; 16366} 16367_ACEOF 16368if ac_fn_c_try_link "$LINENO"; then : 16369 pgac_cv_var_rl_completion_suppress_quote=yes 16370else 16371 pgac_cv_var_rl_completion_suppress_quote=no 16372fi 16373rm -f core conftest.err conftest.$ac_objext \ 16374 conftest$ac_exeext conftest.$ac_ext 16375fi 16376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_rl_completion_suppress_quote" >&5 16377$as_echo "$pgac_cv_var_rl_completion_suppress_quote" >&6; } 16378if test x"$pgac_cv_var_rl_completion_suppress_quote" = x"yes"; then 16379 16380$as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_QUOTE 1" >>confdefs.h 16381 16382fi 16383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_filename_quote_characters" >&5 16384$as_echo_n "checking for rl_filename_quote_characters... " >&6; } 16385if ${pgac_cv_var_rl_filename_quote_characters+:} false; then : 16386 $as_echo_n "(cached) " >&6 16387else 16388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16389/* end confdefs.h. */ 16390#include <stdio.h> 16391#if defined(HAVE_READLINE_READLINE_H) 16392#include <readline/readline.h> 16393#elif defined(HAVE_EDITLINE_READLINE_H) 16394#include <editline/readline.h> 16395#elif defined(HAVE_READLINE_H) 16396#include <readline.h> 16397#endif 16398 16399int 16400main () 16401{ 16402rl_filename_quote_characters = "x"; 16403 ; 16404 return 0; 16405} 16406_ACEOF 16407if ac_fn_c_try_link "$LINENO"; then : 16408 pgac_cv_var_rl_filename_quote_characters=yes 16409else 16410 pgac_cv_var_rl_filename_quote_characters=no 16411fi 16412rm -f core conftest.err conftest.$ac_objext \ 16413 conftest$ac_exeext conftest.$ac_ext 16414fi 16415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_rl_filename_quote_characters" >&5 16416$as_echo "$pgac_cv_var_rl_filename_quote_characters" >&6; } 16417if test x"$pgac_cv_var_rl_filename_quote_characters" = x"yes"; then 16418 16419$as_echo "#define HAVE_RL_FILENAME_QUOTE_CHARACTERS 1" >>confdefs.h 16420 16421fi 16422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_filename_quoting_function" >&5 16423$as_echo_n "checking for rl_filename_quoting_function... " >&6; } 16424if ${pgac_cv_var_rl_filename_quoting_function+:} false; then : 16425 $as_echo_n "(cached) " >&6 16426else 16427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16428/* end confdefs.h. */ 16429#include <stdio.h> 16430#if defined(HAVE_READLINE_READLINE_H) 16431#include <readline/readline.h> 16432#elif defined(HAVE_EDITLINE_READLINE_H) 16433#include <editline/readline.h> 16434#elif defined(HAVE_READLINE_H) 16435#include <readline.h> 16436#endif 16437 16438int 16439main () 16440{ 16441rl_filename_quoting_function = 0; 16442 ; 16443 return 0; 16444} 16445_ACEOF 16446if ac_fn_c_try_link "$LINENO"; then : 16447 pgac_cv_var_rl_filename_quoting_function=yes 16448else 16449 pgac_cv_var_rl_filename_quoting_function=no 16450fi 16451rm -f core conftest.err conftest.$ac_objext \ 16452 conftest$ac_exeext conftest.$ac_ext 16453fi 16454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_rl_filename_quoting_function" >&5 16455$as_echo "$pgac_cv_var_rl_filename_quoting_function" >&6; } 16456if test x"$pgac_cv_var_rl_filename_quoting_function" = x"yes"; then 16457 16458$as_echo "#define HAVE_RL_FILENAME_QUOTING_FUNCTION 1" >>confdefs.h 16459 16460fi 16461 16462 for ac_func in rl_completion_matches rl_filename_completion_function rl_reset_screen_size 16463do : 16464 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16465ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16466if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16467 cat >>confdefs.h <<_ACEOF 16468#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16469_ACEOF 16470 16471fi 16472done 16473 16474 for ac_func in append_history history_truncate_file 16475do : 16476 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16477ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16478if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16479 cat >>confdefs.h <<_ACEOF 16480#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16481_ACEOF 16482 16483fi 16484done 16485 16486fi 16487 16488 16489# This test makes sure that run tests work at all. Sometimes a shared 16490# library is found by the linker, but the runtime linker can't find it. 16491# This check should come after all modifications of compiler or linker 16492# variables, and before any other run tests. 16493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking test program" >&5 16494$as_echo_n "checking test program... " >&6; } 16495if test "$cross_compiling" = yes; then : 16496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5 16497$as_echo "cross-compiling" >&6; } 16498else 16499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16500/* end confdefs.h. */ 16501int main() { return 0; } 16502_ACEOF 16503if ac_fn_c_try_run "$LINENO"; then : 16504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 16505$as_echo "ok" >&6; } 16506else 16507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 16508$as_echo "failed" >&6; } 16509as_fn_error $? " 16510Could not execute a simple test program. This may be a problem 16511related to locating shared libraries. Check the file 'config.log' 16512for the exact reason." "$LINENO" 5 16513fi 16514rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16515 conftest.$ac_objext conftest.beam conftest.$ac_ext 16516fi 16517 16518 16519# -------------------- 16520# Run tests below here 16521# -------------------- 16522 16523 16524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long int is 64 bits" >&5 16525$as_echo_n "checking whether long int is 64 bits... " >&6; } 16526if ${pgac_cv_type_long_int_64+:} false; then : 16527 $as_echo_n "(cached) " >&6 16528else 16529 if test "$cross_compiling" = yes; then : 16530 # If cross-compiling, check the size reported by the compiler and 16531# trust that the arithmetic works. 16532cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16533/* end confdefs.h. */ 16534 16535int 16536main () 16537{ 16538static int test_array [1 - 2 * !(sizeof(long int) == 8)]; 16539test_array [0] = 0; 16540return test_array [0]; 16541 16542 ; 16543 return 0; 16544} 16545_ACEOF 16546if ac_fn_c_try_compile "$LINENO"; then : 16547 pgac_cv_type_long_int_64=yes 16548else 16549 pgac_cv_type_long_int_64=no 16550fi 16551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16552else 16553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16554/* end confdefs.h. */ 16555typedef long int ac_int64; 16556 16557/* 16558 * These are globals to discourage the compiler from folding all the 16559 * arithmetic tests down to compile-time constants. 16560 */ 16561ac_int64 a = 20000001; 16562ac_int64 b = 40000005; 16563 16564int does_int64_work() 16565{ 16566 ac_int64 c,d; 16567 16568 if (sizeof(ac_int64) != 8) 16569 return 0; /* definitely not the right size */ 16570 16571 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */ 16572 c = a * b; 16573 d = (c + b) / b; 16574 if (d != a+1) 16575 return 0; 16576 return 1; 16577} 16578 16579int 16580main() { 16581 return (! does_int64_work()); 16582} 16583_ACEOF 16584if ac_fn_c_try_run "$LINENO"; then : 16585 pgac_cv_type_long_int_64=yes 16586else 16587 pgac_cv_type_long_int_64=no 16588fi 16589rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16590 conftest.$ac_objext conftest.beam conftest.$ac_ext 16591fi 16592 16593fi 16594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_long_int_64" >&5 16595$as_echo "$pgac_cv_type_long_int_64" >&6; } 16596 16597HAVE_LONG_INT_64=$pgac_cv_type_long_int_64 16598if test x"$pgac_cv_type_long_int_64" = xyes ; then 16599 16600$as_echo "#define HAVE_LONG_INT_64 1" >>confdefs.h 16601 16602fi 16603 16604 16605if test x"$HAVE_LONG_INT_64" = x"yes" ; then 16606 pg_int64_type="long int" 16607else 16608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long long int is 64 bits" >&5 16609$as_echo_n "checking whether long long int is 64 bits... " >&6; } 16610if ${pgac_cv_type_long_long_int_64+:} false; then : 16611 $as_echo_n "(cached) " >&6 16612else 16613 if test "$cross_compiling" = yes; then : 16614 # If cross-compiling, check the size reported by the compiler and 16615# trust that the arithmetic works. 16616cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16617/* end confdefs.h. */ 16618 16619int 16620main () 16621{ 16622static int test_array [1 - 2 * !(sizeof(long long int) == 8)]; 16623test_array [0] = 0; 16624return test_array [0]; 16625 16626 ; 16627 return 0; 16628} 16629_ACEOF 16630if ac_fn_c_try_compile "$LINENO"; then : 16631 pgac_cv_type_long_long_int_64=yes 16632else 16633 pgac_cv_type_long_long_int_64=no 16634fi 16635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16636else 16637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16638/* end confdefs.h. */ 16639typedef long long int ac_int64; 16640 16641/* 16642 * These are globals to discourage the compiler from folding all the 16643 * arithmetic tests down to compile-time constants. 16644 */ 16645ac_int64 a = 20000001; 16646ac_int64 b = 40000005; 16647 16648int does_int64_work() 16649{ 16650 ac_int64 c,d; 16651 16652 if (sizeof(ac_int64) != 8) 16653 return 0; /* definitely not the right size */ 16654 16655 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */ 16656 c = a * b; 16657 d = (c + b) / b; 16658 if (d != a+1) 16659 return 0; 16660 return 1; 16661} 16662 16663int 16664main() { 16665 return (! does_int64_work()); 16666} 16667_ACEOF 16668if ac_fn_c_try_run "$LINENO"; then : 16669 pgac_cv_type_long_long_int_64=yes 16670else 16671 pgac_cv_type_long_long_int_64=no 16672fi 16673rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16674 conftest.$ac_objext conftest.beam conftest.$ac_ext 16675fi 16676 16677fi 16678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_long_long_int_64" >&5 16679$as_echo "$pgac_cv_type_long_long_int_64" >&6; } 16680 16681HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64 16682if test x"$pgac_cv_type_long_long_int_64" = xyes ; then 16683 16684$as_echo "#define HAVE_LONG_LONG_INT_64 1" >>confdefs.h 16685 16686fi 16687 16688 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then 16689 pg_int64_type="long long int" 16690 else 16691 as_fn_error $? "Cannot find a working 64-bit integer type." "$LINENO" 5 16692 fi 16693fi 16694 16695 16696cat >>confdefs.h <<_ACEOF 16697#define PG_INT64_TYPE $pg_int64_type 16698_ACEOF 16699 16700 16701# Select the printf length modifier that goes with that, too. 16702if test x"$pg_int64_type" = x"long long int" ; then 16703 INT64_MODIFIER='"ll"' 16704else 16705 INT64_MODIFIER='"l"' 16706fi 16707 16708 16709cat >>confdefs.h <<_ACEOF 16710#define INT64_MODIFIER $INT64_MODIFIER 16711_ACEOF 16712 16713 16714# has to be down here, rather than with the other builtins, because 16715# the test uses PG_INT64_TYPE. 16716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_mul_overflow" >&5 16717$as_echo_n "checking for __builtin_mul_overflow... " >&6; } 16718if ${pgac_cv__builtin_op_overflow+:} false; then : 16719 $as_echo_n "(cached) " >&6 16720else 16721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16722/* end confdefs.h. */ 16723 16724PG_INT64_TYPE a = 1; 16725PG_INT64_TYPE b = 1; 16726PG_INT64_TYPE result; 16727int oflo; 16728 16729int 16730main () 16731{ 16732oflo = __builtin_mul_overflow(a, b, &result); 16733 ; 16734 return 0; 16735} 16736_ACEOF 16737if ac_fn_c_try_link "$LINENO"; then : 16738 pgac_cv__builtin_op_overflow=yes 16739else 16740 pgac_cv__builtin_op_overflow=no 16741fi 16742rm -f core conftest.err conftest.$ac_objext \ 16743 conftest$ac_exeext conftest.$ac_ext 16744fi 16745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__builtin_op_overflow" >&5 16746$as_echo "$pgac_cv__builtin_op_overflow" >&6; } 16747if test x"$pgac_cv__builtin_op_overflow" = xyes ; then 16748 16749$as_echo "#define HAVE__BUILTIN_OP_OVERFLOW 1" >>confdefs.h 16750 16751fi 16752 16753# Check size of void *, size_t (enables tweaks for > 32bit address space) 16754# The cast to long int works around a bug in the HP C Compiler 16755# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16756# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16757# This bug is HP SR number 8606223364. 16758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 16759$as_echo_n "checking size of void *... " >&6; } 16760if ${ac_cv_sizeof_void_p+:} false; then : 16761 $as_echo_n "(cached) " >&6 16762else 16763 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 16764 16765else 16766 if test "$ac_cv_type_void_p" = yes; then 16767 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16768$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16769as_fn_error 77 "cannot compute sizeof (void *) 16770See \`config.log' for more details" "$LINENO" 5; } 16771 else 16772 ac_cv_sizeof_void_p=0 16773 fi 16774fi 16775 16776fi 16777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 16778$as_echo "$ac_cv_sizeof_void_p" >&6; } 16779 16780 16781 16782cat >>confdefs.h <<_ACEOF 16783#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 16784_ACEOF 16785 16786 16787# The cast to long int works around a bug in the HP C Compiler 16788# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16789# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16790# This bug is HP SR number 8606223364. 16791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 16792$as_echo_n "checking size of size_t... " >&6; } 16793if ${ac_cv_sizeof_size_t+:} false; then : 16794 $as_echo_n "(cached) " >&6 16795else 16796 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : 16797 16798else 16799 if test "$ac_cv_type_size_t" = yes; then 16800 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16801$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16802as_fn_error 77 "cannot compute sizeof (size_t) 16803See \`config.log' for more details" "$LINENO" 5; } 16804 else 16805 ac_cv_sizeof_size_t=0 16806 fi 16807fi 16808 16809fi 16810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 16811$as_echo "$ac_cv_sizeof_size_t" >&6; } 16812 16813 16814 16815cat >>confdefs.h <<_ACEOF 16816#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t 16817_ACEOF 16818 16819 16820# The cast to long int works around a bug in the HP C Compiler 16821# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16822# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16823# This bug is HP SR number 8606223364. 16824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 16825$as_echo_n "checking size of long... " >&6; } 16826if ${ac_cv_sizeof_long+:} false; then : 16827 $as_echo_n "(cached) " >&6 16828else 16829 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 16830 16831else 16832 if test "$ac_cv_type_long" = yes; then 16833 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16834$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16835as_fn_error 77 "cannot compute sizeof (long) 16836See \`config.log' for more details" "$LINENO" 5; } 16837 else 16838 ac_cv_sizeof_long=0 16839 fi 16840fi 16841 16842fi 16843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 16844$as_echo "$ac_cv_sizeof_long" >&6; } 16845 16846 16847 16848cat >>confdefs.h <<_ACEOF 16849#define SIZEOF_LONG $ac_cv_sizeof_long 16850_ACEOF 16851 16852 16853 16854# Determine memory alignment requirements for the basic C data types. 16855 16856# The cast to long int works around a bug in the HP C Compiler, 16857# see AC_CHECK_SIZEOF for more information. 16858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of short" >&5 16859$as_echo_n "checking alignment of short... " >&6; } 16860if ${ac_cv_alignof_short+:} false; then : 16861 $as_echo_n "(cached) " >&6 16862else 16863 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_short" "$ac_includes_default 16864#ifndef offsetof 16865# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 16866#endif 16867typedef struct { char x; short y; } ac__type_alignof_;"; then : 16868 16869else 16870 if test "$ac_cv_type_short" = yes; then 16871 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16872$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16873as_fn_error 77 "cannot compute alignment of short 16874See \`config.log' for more details" "$LINENO" 5; } 16875 else 16876 ac_cv_alignof_short=0 16877 fi 16878fi 16879 16880fi 16881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_short" >&5 16882$as_echo "$ac_cv_alignof_short" >&6; } 16883 16884 16885 16886cat >>confdefs.h <<_ACEOF 16887#define ALIGNOF_SHORT $ac_cv_alignof_short 16888_ACEOF 16889 16890 16891# The cast to long int works around a bug in the HP C Compiler, 16892# see AC_CHECK_SIZEOF for more information. 16893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int" >&5 16894$as_echo_n "checking alignment of int... " >&6; } 16895if ${ac_cv_alignof_int+:} false; then : 16896 $as_echo_n "(cached) " >&6 16897else 16898 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_int" "$ac_includes_default 16899#ifndef offsetof 16900# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 16901#endif 16902typedef struct { char x; int y; } ac__type_alignof_;"; then : 16903 16904else 16905 if test "$ac_cv_type_int" = yes; then 16906 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16907$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16908as_fn_error 77 "cannot compute alignment of int 16909See \`config.log' for more details" "$LINENO" 5; } 16910 else 16911 ac_cv_alignof_int=0 16912 fi 16913fi 16914 16915fi 16916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_int" >&5 16917$as_echo "$ac_cv_alignof_int" >&6; } 16918 16919 16920 16921cat >>confdefs.h <<_ACEOF 16922#define ALIGNOF_INT $ac_cv_alignof_int 16923_ACEOF 16924 16925 16926# The cast to long int works around a bug in the HP C Compiler, 16927# see AC_CHECK_SIZEOF for more information. 16928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long" >&5 16929$as_echo_n "checking alignment of long... " >&6; } 16930if ${ac_cv_alignof_long+:} false; then : 16931 $as_echo_n "(cached) " >&6 16932else 16933 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long" "$ac_includes_default 16934#ifndef offsetof 16935# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 16936#endif 16937typedef struct { char x; long y; } ac__type_alignof_;"; then : 16938 16939else 16940 if test "$ac_cv_type_long" = yes; then 16941 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16942$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16943as_fn_error 77 "cannot compute alignment of long 16944See \`config.log' for more details" "$LINENO" 5; } 16945 else 16946 ac_cv_alignof_long=0 16947 fi 16948fi 16949 16950fi 16951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long" >&5 16952$as_echo "$ac_cv_alignof_long" >&6; } 16953 16954 16955 16956cat >>confdefs.h <<_ACEOF 16957#define ALIGNOF_LONG $ac_cv_alignof_long 16958_ACEOF 16959 16960 16961if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then 16962 # The cast to long int works around a bug in the HP C Compiler, 16963# see AC_CHECK_SIZEOF for more information. 16964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long long int" >&5 16965$as_echo_n "checking alignment of long long int... " >&6; } 16966if ${ac_cv_alignof_long_long_int+:} false; then : 16967 $as_echo_n "(cached) " >&6 16968else 16969 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long_long_int" "$ac_includes_default 16970#ifndef offsetof 16971# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 16972#endif 16973typedef struct { char x; long long int y; } ac__type_alignof_;"; then : 16974 16975else 16976 if test "$ac_cv_type_long_long_int" = yes; then 16977 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16978$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16979as_fn_error 77 "cannot compute alignment of long long int 16980See \`config.log' for more details" "$LINENO" 5; } 16981 else 16982 ac_cv_alignof_long_long_int=0 16983 fi 16984fi 16985 16986fi 16987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long_long_int" >&5 16988$as_echo "$ac_cv_alignof_long_long_int" >&6; } 16989 16990 16991 16992cat >>confdefs.h <<_ACEOF 16993#define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int 16994_ACEOF 16995 16996 16997fi 16998# The cast to long int works around a bug in the HP C Compiler, 16999# see AC_CHECK_SIZEOF for more information. 17000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of double" >&5 17001$as_echo_n "checking alignment of double... " >&6; } 17002if ${ac_cv_alignof_double+:} false; then : 17003 $as_echo_n "(cached) " >&6 17004else 17005 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_double" "$ac_includes_default 17006#ifndef offsetof 17007# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 17008#endif 17009typedef struct { char x; double y; } ac__type_alignof_;"; then : 17010 17011else 17012 if test "$ac_cv_type_double" = yes; then 17013 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17014$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17015as_fn_error 77 "cannot compute alignment of double 17016See \`config.log' for more details" "$LINENO" 5; } 17017 else 17018 ac_cv_alignof_double=0 17019 fi 17020fi 17021 17022fi 17023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_double" >&5 17024$as_echo "$ac_cv_alignof_double" >&6; } 17025 17026 17027 17028cat >>confdefs.h <<_ACEOF 17029#define ALIGNOF_DOUBLE $ac_cv_alignof_double 17030_ACEOF 17031 17032 17033 17034# Compute maximum alignment of any basic type. 17035# We assume long's alignment is at least as strong as char, short, or int; 17036# but we must check long long (if it is being used for int64) and double. 17037# Note that we intentionally do not consider any types wider than 64 bits, 17038# as allowing MAXIMUM_ALIGNOF to exceed 8 would be too much of a penalty 17039# for disk and memory space. 17040 17041MAX_ALIGNOF=$ac_cv_alignof_long 17042if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then 17043 MAX_ALIGNOF=$ac_cv_alignof_double 17044fi 17045if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then 17046 MAX_ALIGNOF="$ac_cv_alignof_long_long_int" 17047fi 17048 17049cat >>confdefs.h <<_ACEOF 17050#define MAXIMUM_ALIGNOF $MAX_ALIGNOF 17051_ACEOF 17052 17053 17054 17055# Some platforms predefine the types int8, int16, etc. Only check 17056# a (hopefully) representative subset. 17057ac_fn_c_check_type "$LINENO" "int8" "ac_cv_type_int8" "#include <stdio.h> 17058" 17059if test "x$ac_cv_type_int8" = xyes; then : 17060 17061cat >>confdefs.h <<_ACEOF 17062#define HAVE_INT8 1 17063_ACEOF 17064 17065 17066fi 17067ac_fn_c_check_type "$LINENO" "uint8" "ac_cv_type_uint8" "#include <stdio.h> 17068" 17069if test "x$ac_cv_type_uint8" = xyes; then : 17070 17071cat >>confdefs.h <<_ACEOF 17072#define HAVE_UINT8 1 17073_ACEOF 17074 17075 17076fi 17077ac_fn_c_check_type "$LINENO" "int64" "ac_cv_type_int64" "#include <stdio.h> 17078" 17079if test "x$ac_cv_type_int64" = xyes; then : 17080 17081cat >>confdefs.h <<_ACEOF 17082#define HAVE_INT64 1 17083_ACEOF 17084 17085 17086fi 17087ac_fn_c_check_type "$LINENO" "uint64" "ac_cv_type_uint64" "#include <stdio.h> 17088" 17089if test "x$ac_cv_type_uint64" = xyes; then : 17090 17091cat >>confdefs.h <<_ACEOF 17092#define HAVE_UINT64 1 17093_ACEOF 17094 17095 17096fi 17097 17098 17099# Some compilers offer a 128-bit integer scalar type. 17100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __int128" >&5 17101$as_echo_n "checking for __int128... " >&6; } 17102if ${pgac_cv__128bit_int+:} false; then : 17103 $as_echo_n "(cached) " >&6 17104else 17105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17106/* end confdefs.h. */ 17107 17108/* 17109 * We don't actually run this test, just link it to verify that any support 17110 * functions needed for __int128 are present. 17111 * 17112 * These are globals to discourage the compiler from folding all the 17113 * arithmetic tests down to compile-time constants. We do not have 17114 * convenient support for 128bit literals at this point... 17115 */ 17116__int128 a = 48828125; 17117__int128 b = 97656250; 17118 17119int 17120main () 17121{ 17122 17123__int128 c,d; 17124a = (a << 12) + 1; /* 200000000001 */ 17125b = (b << 12) + 5; /* 400000000005 */ 17126/* try the most relevant arithmetic ops */ 17127c = a * b; 17128d = (c + b) / b; 17129/* must use the results, else compiler may optimize arithmetic away */ 17130if (d != a+1) 17131 return 1; 17132 17133 ; 17134 return 0; 17135} 17136_ACEOF 17137if ac_fn_c_try_link "$LINENO"; then : 17138 pgac_cv__128bit_int=yes 17139else 17140 pgac_cv__128bit_int=no 17141fi 17142rm -f core conftest.err conftest.$ac_objext \ 17143 conftest$ac_exeext conftest.$ac_ext 17144fi 17145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__128bit_int" >&5 17146$as_echo "$pgac_cv__128bit_int" >&6; } 17147if test x"$pgac_cv__128bit_int" = xyes ; then 17148 # Use of non-default alignment with __int128 tickles bugs in some compilers. 17149 # If not cross-compiling, we can test for bugs and disable use of __int128 17150 # with buggy compilers. If cross-compiling, hope for the best. 17151 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83925 17152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __int128 alignment bug" >&5 17153$as_echo_n "checking for __int128 alignment bug... " >&6; } 17154if ${pgac_cv__128bit_int_bug+:} false; then : 17155 $as_echo_n "(cached) " >&6 17156else 17157 if test "$cross_compiling" = yes; then : 17158 pgac_cv__128bit_int_bug="assuming ok" 17159else 17160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17161/* end confdefs.h. */ 17162 17163/* This must match the corresponding code in c.h: */ 17164#if defined(__GNUC__) || defined(__SUNPRO_C) || defined(__IBMC__) 17165#define pg_attribute_aligned(a) __attribute__((aligned(a))) 17166#endif 17167typedef __int128 int128a 17168#if defined(pg_attribute_aligned) 17169pg_attribute_aligned(8) 17170#endif 17171; 17172int128a holder; 17173void pass_by_val(void *buffer, int128a par) { holder = par; } 17174 17175int 17176main () 17177{ 17178 17179long int i64 = 97656225L << 12; 17180int128a q; 17181pass_by_val(main, (int128a) i64); 17182q = (int128a) i64; 17183if (q != holder) 17184 return 1; 17185 17186 ; 17187 return 0; 17188} 17189_ACEOF 17190if ac_fn_c_try_run "$LINENO"; then : 17191 pgac_cv__128bit_int_bug=ok 17192else 17193 pgac_cv__128bit_int_bug=broken 17194fi 17195rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17196 conftest.$ac_objext conftest.beam conftest.$ac_ext 17197fi 17198 17199fi 17200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__128bit_int_bug" >&5 17201$as_echo "$pgac_cv__128bit_int_bug" >&6; } 17202 if test x"$pgac_cv__128bit_int_bug" != xbroken ; then 17203 17204$as_echo "#define PG_INT128_TYPE __int128" >>confdefs.h 17205 17206 # The cast to long int works around a bug in the HP C Compiler, 17207# see AC_CHECK_SIZEOF for more information. 17208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of PG_INT128_TYPE" >&5 17209$as_echo_n "checking alignment of PG_INT128_TYPE... " >&6; } 17210if ${ac_cv_alignof_PG_INT128_TYPE+:} false; then : 17211 $as_echo_n "(cached) " >&6 17212else 17213 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_PG_INT128_TYPE" "$ac_includes_default 17214#ifndef offsetof 17215# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 17216#endif 17217typedef struct { char x; PG_INT128_TYPE y; } ac__type_alignof_;"; then : 17218 17219else 17220 if test "$ac_cv_type_PG_INT128_TYPE" = yes; then 17221 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17222$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17223as_fn_error 77 "cannot compute alignment of PG_INT128_TYPE 17224See \`config.log' for more details" "$LINENO" 5; } 17225 else 17226 ac_cv_alignof_PG_INT128_TYPE=0 17227 fi 17228fi 17229 17230fi 17231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_PG_INT128_TYPE" >&5 17232$as_echo "$ac_cv_alignof_PG_INT128_TYPE" >&6; } 17233 17234 17235 17236cat >>confdefs.h <<_ACEOF 17237#define ALIGNOF_PG_INT128_TYPE $ac_cv_alignof_PG_INT128_TYPE 17238_ACEOF 17239 17240 17241 fi 17242fi 17243 17244# Check for various atomic operations now that we have checked how to declare 17245# 64bit integers. 17246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync char locking functions" >&5 17247$as_echo_n "checking for builtin __sync char locking functions... " >&6; } 17248if ${pgac_cv_gcc_sync_char_tas+:} false; then : 17249 $as_echo_n "(cached) " >&6 17250else 17251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17252/* end confdefs.h. */ 17253 17254int 17255main () 17256{ 17257char lock = 0; 17258 __sync_lock_test_and_set(&lock, 1); 17259 __sync_lock_release(&lock); 17260 ; 17261 return 0; 17262} 17263_ACEOF 17264if ac_fn_c_try_link "$LINENO"; then : 17265 pgac_cv_gcc_sync_char_tas="yes" 17266else 17267 pgac_cv_gcc_sync_char_tas="no" 17268fi 17269rm -f core conftest.err conftest.$ac_objext \ 17270 conftest$ac_exeext conftest.$ac_ext 17271fi 17272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_char_tas" >&5 17273$as_echo "$pgac_cv_gcc_sync_char_tas" >&6; } 17274if test x"$pgac_cv_gcc_sync_char_tas" = x"yes"; then 17275 17276$as_echo "#define HAVE_GCC__SYNC_CHAR_TAS 1" >>confdefs.h 17277 17278fi 17279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int32 locking functions" >&5 17280$as_echo_n "checking for builtin __sync int32 locking functions... " >&6; } 17281if ${pgac_cv_gcc_sync_int32_tas+:} false; then : 17282 $as_echo_n "(cached) " >&6 17283else 17284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17285/* end confdefs.h. */ 17286 17287int 17288main () 17289{ 17290int lock = 0; 17291 __sync_lock_test_and_set(&lock, 1); 17292 __sync_lock_release(&lock); 17293 ; 17294 return 0; 17295} 17296_ACEOF 17297if ac_fn_c_try_link "$LINENO"; then : 17298 pgac_cv_gcc_sync_int32_tas="yes" 17299else 17300 pgac_cv_gcc_sync_int32_tas="no" 17301fi 17302rm -f core conftest.err conftest.$ac_objext \ 17303 conftest$ac_exeext conftest.$ac_ext 17304fi 17305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int32_tas" >&5 17306$as_echo "$pgac_cv_gcc_sync_int32_tas" >&6; } 17307if test x"$pgac_cv_gcc_sync_int32_tas" = x"yes"; then 17308 17309$as_echo "#define HAVE_GCC__SYNC_INT32_TAS 1" >>confdefs.h 17310 17311fi 17312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int32 atomic operations" >&5 17313$as_echo_n "checking for builtin __sync int32 atomic operations... " >&6; } 17314if ${pgac_cv_gcc_sync_int32_cas+:} false; then : 17315 $as_echo_n "(cached) " >&6 17316else 17317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17318/* end confdefs.h. */ 17319 17320int 17321main () 17322{ 17323int val = 0; 17324 __sync_val_compare_and_swap(&val, 0, 37); 17325 ; 17326 return 0; 17327} 17328_ACEOF 17329if ac_fn_c_try_link "$LINENO"; then : 17330 pgac_cv_gcc_sync_int32_cas="yes" 17331else 17332 pgac_cv_gcc_sync_int32_cas="no" 17333fi 17334rm -f core conftest.err conftest.$ac_objext \ 17335 conftest$ac_exeext conftest.$ac_ext 17336fi 17337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int32_cas" >&5 17338$as_echo "$pgac_cv_gcc_sync_int32_cas" >&6; } 17339if test x"$pgac_cv_gcc_sync_int32_cas" = x"yes"; then 17340 17341$as_echo "#define HAVE_GCC__SYNC_INT32_CAS 1" >>confdefs.h 17342 17343fi 17344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __sync int64 atomic operations" >&5 17345$as_echo_n "checking for builtin __sync int64 atomic operations... " >&6; } 17346if ${pgac_cv_gcc_sync_int64_cas+:} false; then : 17347 $as_echo_n "(cached) " >&6 17348else 17349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17350/* end confdefs.h. */ 17351 17352int 17353main () 17354{ 17355PG_INT64_TYPE lock = 0; 17356 __sync_val_compare_and_swap(&lock, 0, (PG_INT64_TYPE) 37); 17357 ; 17358 return 0; 17359} 17360_ACEOF 17361if ac_fn_c_try_link "$LINENO"; then : 17362 pgac_cv_gcc_sync_int64_cas="yes" 17363else 17364 pgac_cv_gcc_sync_int64_cas="no" 17365fi 17366rm -f core conftest.err conftest.$ac_objext \ 17367 conftest$ac_exeext conftest.$ac_ext 17368fi 17369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_sync_int64_cas" >&5 17370$as_echo "$pgac_cv_gcc_sync_int64_cas" >&6; } 17371if test x"$pgac_cv_gcc_sync_int64_cas" = x"yes"; then 17372 17373$as_echo "#define HAVE_GCC__SYNC_INT64_CAS 1" >>confdefs.h 17374 17375fi 17376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __atomic int32 atomic operations" >&5 17377$as_echo_n "checking for builtin __atomic int32 atomic operations... " >&6; } 17378if ${pgac_cv_gcc_atomic_int32_cas+:} false; then : 17379 $as_echo_n "(cached) " >&6 17380else 17381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17382/* end confdefs.h. */ 17383 17384int 17385main () 17386{ 17387int val = 0; 17388 int expect = 0; 17389 __atomic_compare_exchange_n(&val, &expect, 37, 0, __ATOMIC_SEQ_CST, __ATOMIC_RELAXED); 17390 ; 17391 return 0; 17392} 17393_ACEOF 17394if ac_fn_c_try_link "$LINENO"; then : 17395 pgac_cv_gcc_atomic_int32_cas="yes" 17396else 17397 pgac_cv_gcc_atomic_int32_cas="no" 17398fi 17399rm -f core conftest.err conftest.$ac_objext \ 17400 conftest$ac_exeext conftest.$ac_ext 17401fi 17402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_atomic_int32_cas" >&5 17403$as_echo "$pgac_cv_gcc_atomic_int32_cas" >&6; } 17404if test x"$pgac_cv_gcc_atomic_int32_cas" = x"yes"; then 17405 17406$as_echo "#define HAVE_GCC__ATOMIC_INT32_CAS 1" >>confdefs.h 17407 17408fi 17409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin __atomic int64 atomic operations" >&5 17410$as_echo_n "checking for builtin __atomic int64 atomic operations... " >&6; } 17411if ${pgac_cv_gcc_atomic_int64_cas+:} false; then : 17412 $as_echo_n "(cached) " >&6 17413else 17414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17415/* end confdefs.h. */ 17416 17417int 17418main () 17419{ 17420PG_INT64_TYPE val = 0; 17421 PG_INT64_TYPE expect = 0; 17422 __atomic_compare_exchange_n(&val, &expect, 37, 0, __ATOMIC_SEQ_CST, __ATOMIC_RELAXED); 17423 ; 17424 return 0; 17425} 17426_ACEOF 17427if ac_fn_c_try_link "$LINENO"; then : 17428 pgac_cv_gcc_atomic_int64_cas="yes" 17429else 17430 pgac_cv_gcc_atomic_int64_cas="no" 17431fi 17432rm -f core conftest.err conftest.$ac_objext \ 17433 conftest$ac_exeext conftest.$ac_ext 17434fi 17435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_gcc_atomic_int64_cas" >&5 17436$as_echo "$pgac_cv_gcc_atomic_int64_cas" >&6; } 17437if test x"$pgac_cv_gcc_atomic_int64_cas" = x"yes"; then 17438 17439$as_echo "#define HAVE_GCC__ATOMIC_INT64_CAS 1" >>confdefs.h 17440 17441fi 17442 17443 17444# Check for x86 cpuid instruction 17445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __get_cpuid" >&5 17446$as_echo_n "checking for __get_cpuid... " >&6; } 17447if ${pgac_cv__get_cpuid+:} false; then : 17448 $as_echo_n "(cached) " >&6 17449else 17450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17451/* end confdefs.h. */ 17452#include <cpuid.h> 17453int 17454main () 17455{ 17456unsigned int exx[4] = {0, 0, 0, 0}; 17457 __get_cpuid(1, &exx[0], &exx[1], &exx[2], &exx[3]); 17458 17459 ; 17460 return 0; 17461} 17462_ACEOF 17463if ac_fn_c_try_link "$LINENO"; then : 17464 pgac_cv__get_cpuid="yes" 17465else 17466 pgac_cv__get_cpuid="no" 17467fi 17468rm -f core conftest.err conftest.$ac_objext \ 17469 conftest$ac_exeext conftest.$ac_ext 17470fi 17471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__get_cpuid" >&5 17472$as_echo "$pgac_cv__get_cpuid" >&6; } 17473if test x"$pgac_cv__get_cpuid" = x"yes"; then 17474 17475$as_echo "#define HAVE__GET_CPUID 1" >>confdefs.h 17476 17477fi 17478 17479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __cpuid" >&5 17480$as_echo_n "checking for __cpuid... " >&6; } 17481if ${pgac_cv__cpuid+:} false; then : 17482 $as_echo_n "(cached) " >&6 17483else 17484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17485/* end confdefs.h. */ 17486#include <intrin.h> 17487int 17488main () 17489{ 17490unsigned int exx[4] = {0, 0, 0, 0}; 17491 __get_cpuid(exx[0], 1); 17492 17493 ; 17494 return 0; 17495} 17496_ACEOF 17497if ac_fn_c_try_link "$LINENO"; then : 17498 pgac_cv__cpuid="yes" 17499else 17500 pgac_cv__cpuid="no" 17501fi 17502rm -f core conftest.err conftest.$ac_objext \ 17503 conftest$ac_exeext conftest.$ac_ext 17504fi 17505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__cpuid" >&5 17506$as_echo "$pgac_cv__cpuid" >&6; } 17507if test x"$pgac_cv__cpuid" = x"yes"; then 17508 17509$as_echo "#define HAVE__CPUID 1" >>confdefs.h 17510 17511fi 17512 17513# Check for Intel SSE 4.2 intrinsics to do CRC calculations. 17514# 17515# First check if the _mm_crc32_u8 and _mm_crc32_u64 intrinsics can be used 17516# with the default compiler flags. If not, check if adding the -msse4.2 17517# flag helps. CFLAGS_SSE42 is set to -msse4.2 if that's required. 17518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=" >&5 17519$as_echo_n "checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=... " >&6; } 17520if ${pgac_cv_sse42_crc32_intrinsics_+:} false; then : 17521 $as_echo_n "(cached) " >&6 17522else 17523 pgac_save_CFLAGS=$CFLAGS 17524CFLAGS="$pgac_save_CFLAGS " 17525cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17526/* end confdefs.h. */ 17527#include <nmmintrin.h> 17528int 17529main () 17530{ 17531unsigned int crc = 0; 17532 crc = _mm_crc32_u8(crc, 0); 17533 crc = _mm_crc32_u32(crc, 0); 17534 /* return computed value, to prevent the above being optimized away */ 17535 return crc == 0; 17536 ; 17537 return 0; 17538} 17539_ACEOF 17540if ac_fn_c_try_link "$LINENO"; then : 17541 pgac_cv_sse42_crc32_intrinsics_=yes 17542else 17543 pgac_cv_sse42_crc32_intrinsics_=no 17544fi 17545rm -f core conftest.err conftest.$ac_objext \ 17546 conftest$ac_exeext conftest.$ac_ext 17547CFLAGS="$pgac_save_CFLAGS" 17548fi 17549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_sse42_crc32_intrinsics_" >&5 17550$as_echo "$pgac_cv_sse42_crc32_intrinsics_" >&6; } 17551if test x"$pgac_cv_sse42_crc32_intrinsics_" = x"yes"; then 17552 CFLAGS_SSE42="" 17553 pgac_sse42_crc32_intrinsics=yes 17554fi 17555 17556if test x"$pgac_sse42_crc32_intrinsics" != x"yes"; then 17557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=-msse4.2" >&5 17558$as_echo_n "checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=-msse4.2... " >&6; } 17559if ${pgac_cv_sse42_crc32_intrinsics__msse4_2+:} false; then : 17560 $as_echo_n "(cached) " >&6 17561else 17562 pgac_save_CFLAGS=$CFLAGS 17563CFLAGS="$pgac_save_CFLAGS -msse4.2" 17564cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17565/* end confdefs.h. */ 17566#include <nmmintrin.h> 17567int 17568main () 17569{ 17570unsigned int crc = 0; 17571 crc = _mm_crc32_u8(crc, 0); 17572 crc = _mm_crc32_u32(crc, 0); 17573 /* return computed value, to prevent the above being optimized away */ 17574 return crc == 0; 17575 ; 17576 return 0; 17577} 17578_ACEOF 17579if ac_fn_c_try_link "$LINENO"; then : 17580 pgac_cv_sse42_crc32_intrinsics__msse4_2=yes 17581else 17582 pgac_cv_sse42_crc32_intrinsics__msse4_2=no 17583fi 17584rm -f core conftest.err conftest.$ac_objext \ 17585 conftest$ac_exeext conftest.$ac_ext 17586CFLAGS="$pgac_save_CFLAGS" 17587fi 17588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_sse42_crc32_intrinsics__msse4_2" >&5 17589$as_echo "$pgac_cv_sse42_crc32_intrinsics__msse4_2" >&6; } 17590if test x"$pgac_cv_sse42_crc32_intrinsics__msse4_2" = x"yes"; then 17591 CFLAGS_SSE42="-msse4.2" 17592 pgac_sse42_crc32_intrinsics=yes 17593fi 17594 17595fi 17596 17597 17598# Are we targeting a processor that supports SSE 4.2? gcc, clang and icc all 17599# define __SSE4_2__ in that case. 17600cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17601/* end confdefs.h. */ 17602 17603int 17604main () 17605{ 17606 17607#ifndef __SSE4_2__ 17608#error __SSE4_2__ not defined 17609#endif 17610 17611 ; 17612 return 0; 17613} 17614_ACEOF 17615if ac_fn_c_try_compile "$LINENO"; then : 17616 SSE4_2_TARGETED=1 17617fi 17618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17619 17620# Check for ARMv8 CRC Extension intrinsics to do CRC calculations. 17621# 17622# First check if __crc32c* intrinsics can be used with the default compiler 17623# flags. If not, check if adding -march=armv8-a+crc flag helps. 17624# CFLAGS_ARMV8_CRC32C is set if the extra flag is required. 17625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=" >&5 17626$as_echo_n "checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=... " >&6; } 17627if ${pgac_cv_armv8_crc32c_intrinsics_+:} false; then : 17628 $as_echo_n "(cached) " >&6 17629else 17630 pgac_save_CFLAGS=$CFLAGS 17631CFLAGS="$pgac_save_CFLAGS " 17632cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17633/* end confdefs.h. */ 17634#include <arm_acle.h> 17635int 17636main () 17637{ 17638unsigned int crc = 0; 17639 crc = __crc32cb(crc, 0); 17640 crc = __crc32ch(crc, 0); 17641 crc = __crc32cw(crc, 0); 17642 crc = __crc32cd(crc, 0); 17643 /* return computed value, to prevent the above being optimized away */ 17644 return crc == 0; 17645 ; 17646 return 0; 17647} 17648_ACEOF 17649if ac_fn_c_try_link "$LINENO"; then : 17650 pgac_cv_armv8_crc32c_intrinsics_=yes 17651else 17652 pgac_cv_armv8_crc32c_intrinsics_=no 17653fi 17654rm -f core conftest.err conftest.$ac_objext \ 17655 conftest$ac_exeext conftest.$ac_ext 17656CFLAGS="$pgac_save_CFLAGS" 17657fi 17658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_armv8_crc32c_intrinsics_" >&5 17659$as_echo "$pgac_cv_armv8_crc32c_intrinsics_" >&6; } 17660if test x"$pgac_cv_armv8_crc32c_intrinsics_" = x"yes"; then 17661 CFLAGS_ARMV8_CRC32C="" 17662 pgac_armv8_crc32c_intrinsics=yes 17663fi 17664 17665if test x"$pgac_armv8_crc32c_intrinsics" != x"yes"; then 17666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=-march=armv8-a+crc" >&5 17667$as_echo_n "checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=-march=armv8-a+crc... " >&6; } 17668if ${pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc+:} false; then : 17669 $as_echo_n "(cached) " >&6 17670else 17671 pgac_save_CFLAGS=$CFLAGS 17672CFLAGS="$pgac_save_CFLAGS -march=armv8-a+crc" 17673cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17674/* end confdefs.h. */ 17675#include <arm_acle.h> 17676int 17677main () 17678{ 17679unsigned int crc = 0; 17680 crc = __crc32cb(crc, 0); 17681 crc = __crc32ch(crc, 0); 17682 crc = __crc32cw(crc, 0); 17683 crc = __crc32cd(crc, 0); 17684 /* return computed value, to prevent the above being optimized away */ 17685 return crc == 0; 17686 ; 17687 return 0; 17688} 17689_ACEOF 17690if ac_fn_c_try_link "$LINENO"; then : 17691 pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc=yes 17692else 17693 pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc=no 17694fi 17695rm -f core conftest.err conftest.$ac_objext \ 17696 conftest$ac_exeext conftest.$ac_ext 17697CFLAGS="$pgac_save_CFLAGS" 17698fi 17699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc" >&5 17700$as_echo "$pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc" >&6; } 17701if test x"$pgac_cv_armv8_crc32c_intrinsics__march_armv8_apcrc" = x"yes"; then 17702 CFLAGS_ARMV8_CRC32C="-march=armv8-a+crc" 17703 pgac_armv8_crc32c_intrinsics=yes 17704fi 17705 17706fi 17707 17708 17709# Select CRC-32C implementation. 17710# 17711# If we are targeting a processor that has Intel SSE 4.2 instructions, we can 17712# use the special CRC instructions for calculating CRC-32C. If we're not 17713# targeting such a processor, but we can nevertheless produce code that uses 17714# the SSE intrinsics, perhaps with some extra CFLAGS, compile both 17715# implementations and select which one to use at runtime, depending on whether 17716# SSE 4.2 is supported by the processor we're running on. 17717# 17718# Similarly, if we are targeting an ARM processor that has the CRC 17719# instructions that are part of the ARMv8 CRC Extension, use them. And if 17720# we're not targeting such a processor, but can nevertheless produce code that 17721# uses the CRC instructions, compile both, and select at runtime. 17722# 17723# You can override this logic by setting the appropriate USE_*_CRC32 flag to 1 17724# in the template or configure command line. 17725if test x"$USE_SLICING_BY_8_CRC32C" = x"" && test x"$USE_SSE42_CRC32C" = x"" && test x"$USE_SSE42_CRC32C_WITH_RUNTIME_CHECK" = x"" && test x"$USE_ARMV8_CRC32C" = x"" && test x"$USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK" = x""; then 17726 # Use Intel SSE 4.2 if available. 17727 if test x"$pgac_sse42_crc32_intrinsics" = x"yes" && test x"$SSE4_2_TARGETED" = x"1" ; then 17728 USE_SSE42_CRC32C=1 17729 else 17730 # Intel SSE 4.2, with runtime check? The CPUID instruction is needed for 17731 # the runtime check. 17732 if test x"$pgac_sse42_crc32_intrinsics" = x"yes" && (test x"$pgac_cv__get_cpuid" = x"yes" || test x"$pgac_cv__cpuid" = x"yes"); then 17733 USE_SSE42_CRC32C_WITH_RUNTIME_CHECK=1 17734 else 17735 # Use ARM CRC Extension if available. 17736 if test x"$pgac_armv8_crc32c_intrinsics" = x"yes" && test x"$CFLAGS_ARMV8_CRC32C" = x""; then 17737 USE_ARMV8_CRC32C=1 17738 else 17739 # ARM CRC Extension, with runtime check? 17740 if test x"$pgac_armv8_crc32c_intrinsics" = x"yes"; then 17741 USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK=1 17742 else 17743 # fall back to slicing-by-8 algorithm, which doesn't require any 17744 # special CPU support. 17745 USE_SLICING_BY_8_CRC32C=1 17746 fi 17747 fi 17748 fi 17749 fi 17750fi 17751 17752# Set PG_CRC32C_OBJS appropriately depending on the selected implementation. 17753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which CRC-32C implementation to use" >&5 17754$as_echo_n "checking which CRC-32C implementation to use... " >&6; } 17755if test x"$USE_SSE42_CRC32C" = x"1"; then 17756 17757$as_echo "#define USE_SSE42_CRC32C 1" >>confdefs.h 17758 17759 PG_CRC32C_OBJS="pg_crc32c_sse42.o" 17760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SSE 4.2" >&5 17761$as_echo "SSE 4.2" >&6; } 17762else 17763 if test x"$USE_SSE42_CRC32C_WITH_RUNTIME_CHECK" = x"1"; then 17764 17765$as_echo "#define USE_SSE42_CRC32C_WITH_RUNTIME_CHECK 1" >>confdefs.h 17766 17767 PG_CRC32C_OBJS="pg_crc32c_sse42.o pg_crc32c_sb8.o pg_crc32c_sse42_choose.o" 17768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SSE 4.2 with runtime check" >&5 17769$as_echo "SSE 4.2 with runtime check" >&6; } 17770 else 17771 if test x"$USE_ARMV8_CRC32C" = x"1"; then 17772 17773$as_echo "#define USE_ARMV8_CRC32C 1" >>confdefs.h 17774 17775 PG_CRC32C_OBJS="pg_crc32c_armv8.o" 17776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ARMv8 CRC instructions" >&5 17777$as_echo "ARMv8 CRC instructions" >&6; } 17778 else 17779 if test x"$USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK" = x"1"; then 17780 17781$as_echo "#define USE_ARMV8_CRC32C_WITH_RUNTIME_CHECK 1" >>confdefs.h 17782 17783 PG_CRC32C_OBJS="pg_crc32c_armv8.o pg_crc32c_sb8.o pg_crc32c_armv8_choose.o" 17784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ARMv8 CRC instructions with runtime check" >&5 17785$as_echo "ARMv8 CRC instructions with runtime check" >&6; } 17786 else 17787 17788$as_echo "#define USE_SLICING_BY_8_CRC32C 1" >>confdefs.h 17789 17790 PG_CRC32C_OBJS="pg_crc32c_sb8.o" 17791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: slicing-by-8" >&5 17792$as_echo "slicing-by-8" >&6; } 17793 fi 17794 fi 17795 fi 17796fi 17797 17798 17799 17800# Select semaphore implementation type. 17801if test "$PORTNAME" != "win32"; then 17802 if test x"$PREFERRED_SEMAPHORES" = x"NAMED_POSIX" ; then 17803 # Need sem_open for this 17804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_open" >&5 17805$as_echo_n "checking for library containing sem_open... " >&6; } 17806if ${ac_cv_search_sem_open+:} false; then : 17807 $as_echo_n "(cached) " >&6 17808else 17809 ac_func_search_save_LIBS=$LIBS 17810cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17811/* end confdefs.h. */ 17812 17813/* Override any GCC internal prototype to avoid an error. 17814 Use char because int might match the return type of a GCC 17815 builtin and then its argument prototype would still apply. */ 17816#ifdef __cplusplus 17817extern "C" 17818#endif 17819char sem_open (); 17820int 17821main () 17822{ 17823return sem_open (); 17824 ; 17825 return 0; 17826} 17827_ACEOF 17828for ac_lib in '' rt pthread; do 17829 if test -z "$ac_lib"; then 17830 ac_res="none required" 17831 else 17832 ac_res=-l$ac_lib 17833 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17834 fi 17835 if ac_fn_c_try_link "$LINENO"; then : 17836 ac_cv_search_sem_open=$ac_res 17837fi 17838rm -f core conftest.err conftest.$ac_objext \ 17839 conftest$ac_exeext 17840 if ${ac_cv_search_sem_open+:} false; then : 17841 break 17842fi 17843done 17844if ${ac_cv_search_sem_open+:} false; then : 17845 17846else 17847 ac_cv_search_sem_open=no 17848fi 17849rm conftest.$ac_ext 17850LIBS=$ac_func_search_save_LIBS 17851fi 17852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_open" >&5 17853$as_echo "$ac_cv_search_sem_open" >&6; } 17854ac_res=$ac_cv_search_sem_open 17855if test "$ac_res" != no; then : 17856 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17857 USE_NAMED_POSIX_SEMAPHORES=1 17858fi 17859 17860 fi 17861 if test x"$PREFERRED_SEMAPHORES" = x"UNNAMED_POSIX" ; then 17862 # Need sem_init for this 17863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5 17864$as_echo_n "checking for library containing sem_init... " >&6; } 17865if ${ac_cv_search_sem_init+:} false; then : 17866 $as_echo_n "(cached) " >&6 17867else 17868 ac_func_search_save_LIBS=$LIBS 17869cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17870/* end confdefs.h. */ 17871 17872/* Override any GCC internal prototype to avoid an error. 17873 Use char because int might match the return type of a GCC 17874 builtin and then its argument prototype would still apply. */ 17875#ifdef __cplusplus 17876extern "C" 17877#endif 17878char sem_init (); 17879int 17880main () 17881{ 17882return sem_init (); 17883 ; 17884 return 0; 17885} 17886_ACEOF 17887for ac_lib in '' rt pthread; do 17888 if test -z "$ac_lib"; then 17889 ac_res="none required" 17890 else 17891 ac_res=-l$ac_lib 17892 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17893 fi 17894 if ac_fn_c_try_link "$LINENO"; then : 17895 ac_cv_search_sem_init=$ac_res 17896fi 17897rm -f core conftest.err conftest.$ac_objext \ 17898 conftest$ac_exeext 17899 if ${ac_cv_search_sem_init+:} false; then : 17900 break 17901fi 17902done 17903if ${ac_cv_search_sem_init+:} false; then : 17904 17905else 17906 ac_cv_search_sem_init=no 17907fi 17908rm conftest.$ac_ext 17909LIBS=$ac_func_search_save_LIBS 17910fi 17911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5 17912$as_echo "$ac_cv_search_sem_init" >&6; } 17913ac_res=$ac_cv_search_sem_init 17914if test "$ac_res" != no; then : 17915 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17916 USE_UNNAMED_POSIX_SEMAPHORES=1 17917fi 17918 17919 fi 17920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which semaphore API to use" >&5 17921$as_echo_n "checking which semaphore API to use... " >&6; } 17922 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then 17923 17924$as_echo "#define USE_NAMED_POSIX_SEMAPHORES 1" >>confdefs.h 17925 17926 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c" 17927 sematype="named POSIX" 17928 else 17929 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then 17930 17931$as_echo "#define USE_UNNAMED_POSIX_SEMAPHORES 1" >>confdefs.h 17932 17933 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c" 17934 sematype="unnamed POSIX" 17935 else 17936 17937$as_echo "#define USE_SYSV_SEMAPHORES 1" >>confdefs.h 17938 17939 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c" 17940 sematype="System V" 17941 fi 17942 fi 17943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sematype" >&5 17944$as_echo "$sematype" >&6; } 17945else 17946 17947$as_echo "#define USE_WIN32_SEMAPHORES 1" >>confdefs.h 17948 17949 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c" 17950fi 17951 17952 17953# Select shared-memory implementation type. 17954if test "$PORTNAME" != "win32"; then 17955 17956$as_echo "#define USE_SYSV_SHARED_MEMORY 1" >>confdefs.h 17957 17958 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c" 17959else 17960 17961$as_echo "#define USE_WIN32_SHARED_MEMORY 1" >>confdefs.h 17962 17963 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c" 17964fi 17965 17966# Select random number source 17967# 17968# You can override this logic by setting the appropriate USE_*RANDOM flag to 1 17969# in the template or configure command line. 17970 17971# If not selected manually, try to select a source automatically. 17972if test x"$USE_OPENSSL_RANDOM" = x"" && test x"$USE_WIN32_RANDOM" = x"" && test x"$USE_DEV_URANDOM" = x"" ; then 17973 if test x"$with_openssl" = x"yes" ; then 17974 USE_OPENSSL_RANDOM=1 17975 elif test "$PORTNAME" = "win32" ; then 17976 USE_WIN32_RANDOM=1 17977 else 17978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/urandom" >&5 17979$as_echo_n "checking for /dev/urandom... " >&6; } 17980if ${ac_cv_file__dev_urandom+:} false; then : 17981 $as_echo_n "(cached) " >&6 17982else 17983 test "$cross_compiling" = yes && 17984 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 17985if test -r "/dev/urandom"; then 17986 ac_cv_file__dev_urandom=yes 17987else 17988 ac_cv_file__dev_urandom=no 17989fi 17990fi 17991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_urandom" >&5 17992$as_echo "$ac_cv_file__dev_urandom" >&6; } 17993if test "x$ac_cv_file__dev_urandom" = xyes; then : 17994 17995fi 17996 17997 17998 if test x"$ac_cv_file__dev_urandom" = x"yes" ; then 17999 USE_DEV_URANDOM=1 18000 fi 18001 fi 18002fi 18003 18004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which random number source to use" >&5 18005$as_echo_n "checking which random number source to use... " >&6; } 18006if test x"$USE_OPENSSL_RANDOM" = x"1" ; then 18007 18008$as_echo "#define USE_OPENSSL_RANDOM 1" >>confdefs.h 18009 18010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenSSL" >&5 18011$as_echo "OpenSSL" >&6; } 18012elif test x"$USE_WIN32_RANDOM" = x"1" ; then 18013 18014$as_echo "#define USE_WIN32_RANDOM 1" >>confdefs.h 18015 18016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows native" >&5 18017$as_echo "Windows native" >&6; } 18018elif test x"$USE_DEV_URANDOM" = x"1" ; then 18019 18020$as_echo "#define USE_DEV_URANDOM 1" >>confdefs.h 18021 18022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /dev/urandom" >&5 18023$as_echo "/dev/urandom" >&6; } 18024else 18025 as_fn_error $? " 18026no source of strong random numbers was found 18027PostgreSQL can use OpenSSL or /dev/urandom as a source of random numbers." "$LINENO" 5 18028fi 18029 18030# If not set in template file, set bytes to use libc memset() 18031if test x"$MEMSET_LOOP_LIMIT" = x"" ; then 18032 MEMSET_LOOP_LIMIT=1024 18033fi 18034 18035cat >>confdefs.h <<_ACEOF 18036#define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT} 18037_ACEOF 18038 18039 18040 18041if test "$enable_nls" = yes ; then 18042 18043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind_textdomain_codeset" >&5 18044$as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; } 18045if ${ac_cv_search_bind_textdomain_codeset+:} false; then : 18046 $as_echo_n "(cached) " >&6 18047else 18048 ac_func_search_save_LIBS=$LIBS 18049cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18050/* end confdefs.h. */ 18051 18052/* Override any GCC internal prototype to avoid an error. 18053 Use char because int might match the return type of a GCC 18054 builtin and then its argument prototype would still apply. */ 18055#ifdef __cplusplus 18056extern "C" 18057#endif 18058char bind_textdomain_codeset (); 18059int 18060main () 18061{ 18062return bind_textdomain_codeset (); 18063 ; 18064 return 0; 18065} 18066_ACEOF 18067for ac_lib in '' intl; do 18068 if test -z "$ac_lib"; then 18069 ac_res="none required" 18070 else 18071 ac_res=-l$ac_lib 18072 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18073 fi 18074 if ac_fn_c_try_link "$LINENO"; then : 18075 ac_cv_search_bind_textdomain_codeset=$ac_res 18076fi 18077rm -f core conftest.err conftest.$ac_objext \ 18078 conftest$ac_exeext 18079 if ${ac_cv_search_bind_textdomain_codeset+:} false; then : 18080 break 18081fi 18082done 18083if ${ac_cv_search_bind_textdomain_codeset+:} false; then : 18084 18085else 18086 ac_cv_search_bind_textdomain_codeset=no 18087fi 18088rm conftest.$ac_ext 18089LIBS=$ac_func_search_save_LIBS 18090fi 18091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind_textdomain_codeset" >&5 18092$as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; } 18093ac_res=$ac_cv_search_bind_textdomain_codeset 18094if test "$ac_res" != no; then : 18095 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18096 18097else 18098 as_fn_error $? "a gettext implementation is required for NLS" "$LINENO" 5 18099fi 18100 18101 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default" 18102if test "x$ac_cv_header_libintl_h" = xyes; then : 18103 18104else 18105 as_fn_error $? "header file <libintl.h> is required for NLS" "$LINENO" 5 18106fi 18107 18108 18109 if test -z "$MSGFMT"; then 18110 for ac_prog in msgfmt 18111do 18112 # Extract the first word of "$ac_prog", so it can be a program name with args. 18113set dummy $ac_prog; ac_word=$2 18114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18115$as_echo_n "checking for $ac_word... " >&6; } 18116if ${ac_cv_path_MSGFMT+:} false; then : 18117 $as_echo_n "(cached) " >&6 18118else 18119 case $MSGFMT in 18120 [\\/]* | ?:[\\/]*) 18121 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 18122 ;; 18123 *) 18124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18125for as_dir in $PATH 18126do 18127 IFS=$as_save_IFS 18128 test -z "$as_dir" && as_dir=. 18129 for ac_exec_ext in '' $ac_executable_extensions; do 18130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18131 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" 18132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18133 break 2 18134 fi 18135done 18136 done 18137IFS=$as_save_IFS 18138 18139 ;; 18140esac 18141fi 18142MSGFMT=$ac_cv_path_MSGFMT 18143if test -n "$MSGFMT"; then 18144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 18145$as_echo "$MSGFMT" >&6; } 18146else 18147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18148$as_echo "no" >&6; } 18149fi 18150 18151 18152 test -n "$MSGFMT" && break 18153done 18154 18155else 18156 # Report the value of MSGFMT in configure's output in all cases. 18157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSGFMT" >&5 18158$as_echo_n "checking for MSGFMT... " >&6; } 18159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 18160$as_echo "$MSGFMT" >&6; } 18161fi 18162 18163 if test -z "$MSGFMT"; then 18164 as_fn_error $? "msgfmt is required for NLS" "$LINENO" 5 18165 fi 18166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msgfmt flags" >&5 18167$as_echo_n "checking for msgfmt flags... " >&6; } 18168if ${pgac_cv_msgfmt_flags+:} false; then : 18169 $as_echo_n "(cached) " >&6 18170else 18171 if test x"$MSGFMT" != x"" && "$MSGFMT" --version 2>&1 | grep "GNU" >/dev/null; then 18172 pgac_cv_msgfmt_flags=-c 18173fi 18174fi 18175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_msgfmt_flags" >&5 18176$as_echo "$pgac_cv_msgfmt_flags" >&6; } 18177 MSGFMT_FLAGS=$pgac_cv_msgfmt_flags 18178 18179 if test -z "$MSGMERGE"; then 18180 for ac_prog in msgmerge 18181do 18182 # Extract the first word of "$ac_prog", so it can be a program name with args. 18183set dummy $ac_prog; ac_word=$2 18184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18185$as_echo_n "checking for $ac_word... " >&6; } 18186if ${ac_cv_path_MSGMERGE+:} false; then : 18187 $as_echo_n "(cached) " >&6 18188else 18189 case $MSGMERGE in 18190 [\\/]* | ?:[\\/]*) 18191 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 18192 ;; 18193 *) 18194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18195for as_dir in $PATH 18196do 18197 IFS=$as_save_IFS 18198 test -z "$as_dir" && as_dir=. 18199 for ac_exec_ext in '' $ac_executable_extensions; do 18200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18201 ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext" 18202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18203 break 2 18204 fi 18205done 18206 done 18207IFS=$as_save_IFS 18208 18209 ;; 18210esac 18211fi 18212MSGMERGE=$ac_cv_path_MSGMERGE 18213if test -n "$MSGMERGE"; then 18214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 18215$as_echo "$MSGMERGE" >&6; } 18216else 18217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18218$as_echo "no" >&6; } 18219fi 18220 18221 18222 test -n "$MSGMERGE" && break 18223done 18224 18225else 18226 # Report the value of MSGMERGE in configure's output in all cases. 18227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSGMERGE" >&5 18228$as_echo_n "checking for MSGMERGE... " >&6; } 18229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 18230$as_echo "$MSGMERGE" >&6; } 18231fi 18232 18233 if test -z "$XGETTEXT"; then 18234 for ac_prog in xgettext 18235do 18236 # Extract the first word of "$ac_prog", so it can be a program name with args. 18237set dummy $ac_prog; ac_word=$2 18238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18239$as_echo_n "checking for $ac_word... " >&6; } 18240if ${ac_cv_path_XGETTEXT+:} false; then : 18241 $as_echo_n "(cached) " >&6 18242else 18243 case $XGETTEXT in 18244 [\\/]* | ?:[\\/]*) 18245 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 18246 ;; 18247 *) 18248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18249for as_dir in $PATH 18250do 18251 IFS=$as_save_IFS 18252 test -z "$as_dir" && as_dir=. 18253 for ac_exec_ext in '' $ac_executable_extensions; do 18254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18255 ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext" 18256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18257 break 2 18258 fi 18259done 18260 done 18261IFS=$as_save_IFS 18262 18263 ;; 18264esac 18265fi 18266XGETTEXT=$ac_cv_path_XGETTEXT 18267if test -n "$XGETTEXT"; then 18268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 18269$as_echo "$XGETTEXT" >&6; } 18270else 18271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18272$as_echo "no" >&6; } 18273fi 18274 18275 18276 test -n "$XGETTEXT" && break 18277done 18278 18279else 18280 # Report the value of XGETTEXT in configure's output in all cases. 18281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGETTEXT" >&5 18282$as_echo_n "checking for XGETTEXT... " >&6; } 18283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 18284$as_echo "$XGETTEXT" >&6; } 18285fi 18286 18287 18288fi 18289 18290# Check for Tcl configuration script tclConfig.sh 18291if test "$with_tcl" = yes; then 18292 if test -z "$TCLSH"; then 18293 for ac_prog in tclsh tcl tclsh8.6 tclsh86 tclsh8.5 tclsh85 tclsh8.4 tclsh84 18294do 18295 # Extract the first word of "$ac_prog", so it can be a program name with args. 18296set dummy $ac_prog; ac_word=$2 18297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18298$as_echo_n "checking for $ac_word... " >&6; } 18299if ${ac_cv_path_TCLSH+:} false; then : 18300 $as_echo_n "(cached) " >&6 18301else 18302 case $TCLSH in 18303 [\\/]* | ?:[\\/]*) 18304 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path. 18305 ;; 18306 *) 18307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18308for as_dir in $PATH 18309do 18310 IFS=$as_save_IFS 18311 test -z "$as_dir" && as_dir=. 18312 for ac_exec_ext in '' $ac_executable_extensions; do 18313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18314 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext" 18315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18316 break 2 18317 fi 18318done 18319 done 18320IFS=$as_save_IFS 18321 18322 ;; 18323esac 18324fi 18325TCLSH=$ac_cv_path_TCLSH 18326if test -n "$TCLSH"; then 18327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5 18328$as_echo "$TCLSH" >&6; } 18329else 18330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18331$as_echo "no" >&6; } 18332fi 18333 18334 18335 test -n "$TCLSH" && break 18336done 18337 18338else 18339 # Report the value of TCLSH in configure's output in all cases. 18340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCLSH" >&5 18341$as_echo_n "checking for TCLSH... " >&6; } 18342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5 18343$as_echo "$TCLSH" >&6; } 18344fi 18345 18346if test x"$TCLSH" = x""; then 18347 as_fn_error $? "Tcl shell not found" "$LINENO" 5 18348fi 18349 18350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclConfig.sh" >&5 18351$as_echo_n "checking for tclConfig.sh... " >&6; } 18352# Let user override test 18353if test -z "$TCL_CONFIG_SH"; then 18354 pgac_test_dirs="$with_tclconfig" 18355 18356 set X $pgac_test_dirs; shift 18357 if test $# -eq 0; then 18358 test -z "$TCLSH" && as_fn_error $? "unable to locate tclConfig.sh because no Tcl shell was found" "$LINENO" 5 18359 pgac_test_dirs=`echo 'puts $auto_path' | $TCLSH` 18360 # On newer macOS, $auto_path frequently doesn't include the place 18361 # where tclConfig.sh actually lives. Append that to the end, so as not 18362 # to break cases where a non-default Tcl installation is being used. 18363 if test -d "$PG_SYSROOT/System/Library/Frameworks/Tcl.framework" ; then 18364 pgac_test_dirs="$pgac_test_dirs $PG_SYSROOT/System/Library/Frameworks/Tcl.framework" 18365 fi 18366 set X $pgac_test_dirs; shift 18367 fi 18368 18369 for pgac_dir do 18370 if test -r "$pgac_dir/tclConfig.sh"; then 18371 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh 18372 break 18373 fi 18374 done 18375fi 18376 18377if test -z "$TCL_CONFIG_SH"; then 18378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18379$as_echo "no" >&6; } 18380 as_fn_error $? "file 'tclConfig.sh' is required for Tcl" "$LINENO" 5 18381else 18382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCL_CONFIG_SH" >&5 18383$as_echo "$TCL_CONFIG_SH" >&6; } 18384fi 18385 18386 18387 18388 . "$TCL_CONFIG_SH" 18389eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\" 18390eval TCL_LIBS=\"$TCL_LIBS\" 18391eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\" 18392eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\" 18393 18394 if test "$TCL_SHARED_BUILD" != 1; then 18395 as_fn_error $? "cannot build PL/Tcl because Tcl is not a shared library 18396Use --without-tcl to disable building PL/Tcl." "$LINENO" 5 18397 fi 18398 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h> 18399 ac_save_CPPFLAGS=$CPPFLAGS 18400 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS" 18401 ac_fn_c_check_header_mongrel "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default" 18402if test "x$ac_cv_header_tcl_h" = xyes; then : 18403 18404else 18405 as_fn_error $? "header file <tcl.h> is required for Tcl" "$LINENO" 5 18406fi 18407 18408 18409 CPPFLAGS=$ac_save_CPPFLAGS 18410fi 18411 18412# check for <perl.h> 18413if test "$with_perl" = yes; then 18414 ac_save_CPPFLAGS=$CPPFLAGS 18415 CPPFLAGS="$CPPFLAGS $perl_includespec" 18416 ac_fn_c_check_header_compile "$LINENO" "perl.h" "ac_cv_header_perl_h" "#include <EXTERN.h> 18417" 18418if test "x$ac_cv_header_perl_h" = xyes; then : 18419 18420else 18421 as_fn_error $? "header file <perl.h> is required for Perl" "$LINENO" 5 18422fi 18423 18424 18425 # While we're at it, check that we can link to libperl. 18426 # On most platforms, if perl.h is there then libperl.so will be too, but at 18427 # this writing Debian packages them separately. There is no known reason to 18428 # waste cycles on separate probes for the Tcl or Python libraries, though. 18429 # On some Red Hat platforms, the link attempt can fail if we don't use 18430 # CFLAGS_SL while building the test program. 18431 ac_save_CFLAGS=$CFLAGS 18432 CFLAGS="$CFLAGS $CFLAGS_SL" 18433 pgac_save_LIBS=$LIBS 18434 LIBS="$perl_embed_ldflags" 18435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libperl" >&5 18436$as_echo_n "checking for libperl... " >&6; } 18437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18438/* end confdefs.h. */ 18439 18440#include <EXTERN.h> 18441#include <perl.h> 18442 18443int 18444main () 18445{ 18446perl_alloc(); 18447 ; 18448 return 0; 18449} 18450_ACEOF 18451if ac_fn_c_try_link "$LINENO"; then : 18452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18453$as_echo "yes" >&6; } 18454else 18455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18456$as_echo "no" >&6; } 18457 as_fn_error $? "libperl library is required for Perl" "$LINENO" 5 18458fi 18459rm -f core conftest.err conftest.$ac_objext \ 18460 conftest$ac_exeext conftest.$ac_ext 18461 LIBS=$pgac_save_LIBS 18462 CFLAGS=$ac_save_CFLAGS 18463 CPPFLAGS=$ac_save_CPPFLAGS 18464fi 18465 18466# check for <Python.h> 18467if test "$with_python" = yes; then 18468 ac_save_CPPFLAGS=$CPPFLAGS 18469 CPPFLAGS="$python_includespec $CPPFLAGS" 18470 ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default" 18471if test "x$ac_cv_header_Python_h" = xyes; then : 18472 18473else 18474 as_fn_error $? "header file <Python.h> is required for Python" "$LINENO" 5 18475fi 18476 18477 18478 CPPFLAGS=$ac_save_CPPFLAGS 18479fi 18480 18481# 18482# Check for documentation-building tools 18483# 18484if test -z "$XMLLINT"; then 18485 for ac_prog in xmllint 18486do 18487 # Extract the first word of "$ac_prog", so it can be a program name with args. 18488set dummy $ac_prog; ac_word=$2 18489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18490$as_echo_n "checking for $ac_word... " >&6; } 18491if ${ac_cv_path_XMLLINT+:} false; then : 18492 $as_echo_n "(cached) " >&6 18493else 18494 case $XMLLINT in 18495 [\\/]* | ?:[\\/]*) 18496 ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path. 18497 ;; 18498 *) 18499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18500for as_dir in $PATH 18501do 18502 IFS=$as_save_IFS 18503 test -z "$as_dir" && as_dir=. 18504 for ac_exec_ext in '' $ac_executable_extensions; do 18505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18506 ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext" 18507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18508 break 2 18509 fi 18510done 18511 done 18512IFS=$as_save_IFS 18513 18514 ;; 18515esac 18516fi 18517XMLLINT=$ac_cv_path_XMLLINT 18518if test -n "$XMLLINT"; then 18519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5 18520$as_echo "$XMLLINT" >&6; } 18521else 18522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18523$as_echo "no" >&6; } 18524fi 18525 18526 18527 test -n "$XMLLINT" && break 18528done 18529 18530else 18531 # Report the value of XMLLINT in configure's output in all cases. 18532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMLLINT" >&5 18533$as_echo_n "checking for XMLLINT... " >&6; } 18534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5 18535$as_echo "$XMLLINT" >&6; } 18536fi 18537 18538if test -z "$XSLTPROC"; then 18539 for ac_prog in xsltproc 18540do 18541 # Extract the first word of "$ac_prog", so it can be a program name with args. 18542set dummy $ac_prog; ac_word=$2 18543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18544$as_echo_n "checking for $ac_word... " >&6; } 18545if ${ac_cv_path_XSLTPROC+:} false; then : 18546 $as_echo_n "(cached) " >&6 18547else 18548 case $XSLTPROC in 18549 [\\/]* | ?:[\\/]*) 18550 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 18551 ;; 18552 *) 18553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18554for as_dir in $PATH 18555do 18556 IFS=$as_save_IFS 18557 test -z "$as_dir" && as_dir=. 18558 for ac_exec_ext in '' $ac_executable_extensions; do 18559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18560 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 18561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18562 break 2 18563 fi 18564done 18565 done 18566IFS=$as_save_IFS 18567 18568 ;; 18569esac 18570fi 18571XSLTPROC=$ac_cv_path_XSLTPROC 18572if test -n "$XSLTPROC"; then 18573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 18574$as_echo "$XSLTPROC" >&6; } 18575else 18576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18577$as_echo "no" >&6; } 18578fi 18579 18580 18581 test -n "$XSLTPROC" && break 18582done 18583 18584else 18585 # Report the value of XSLTPROC in configure's output in all cases. 18586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSLTPROC" >&5 18587$as_echo_n "checking for XSLTPROC... " >&6; } 18588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 18589$as_echo "$XSLTPROC" >&6; } 18590fi 18591 18592if test -z "$FOP"; then 18593 for ac_prog in fop 18594do 18595 # Extract the first word of "$ac_prog", so it can be a program name with args. 18596set dummy $ac_prog; ac_word=$2 18597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18598$as_echo_n "checking for $ac_word... " >&6; } 18599if ${ac_cv_path_FOP+:} false; then : 18600 $as_echo_n "(cached) " >&6 18601else 18602 case $FOP in 18603 [\\/]* | ?:[\\/]*) 18604 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 18605 ;; 18606 *) 18607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18608for as_dir in $PATH 18609do 18610 IFS=$as_save_IFS 18611 test -z "$as_dir" && as_dir=. 18612 for ac_exec_ext in '' $ac_executable_extensions; do 18613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18614 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 18615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18616 break 2 18617 fi 18618done 18619 done 18620IFS=$as_save_IFS 18621 18622 ;; 18623esac 18624fi 18625FOP=$ac_cv_path_FOP 18626if test -n "$FOP"; then 18627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 18628$as_echo "$FOP" >&6; } 18629else 18630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18631$as_echo "no" >&6; } 18632fi 18633 18634 18635 test -n "$FOP" && break 18636done 18637 18638else 18639 # Report the value of FOP in configure's output in all cases. 18640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FOP" >&5 18641$as_echo_n "checking for FOP... " >&6; } 18642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 18643$as_echo "$FOP" >&6; } 18644fi 18645 18646if test -z "$DBTOEPUB"; then 18647 for ac_prog in dbtoepub 18648do 18649 # Extract the first word of "$ac_prog", so it can be a program name with args. 18650set dummy $ac_prog; ac_word=$2 18651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18652$as_echo_n "checking for $ac_word... " >&6; } 18653if ${ac_cv_path_DBTOEPUB+:} false; then : 18654 $as_echo_n "(cached) " >&6 18655else 18656 case $DBTOEPUB in 18657 [\\/]* | ?:[\\/]*) 18658 ac_cv_path_DBTOEPUB="$DBTOEPUB" # Let the user override the test with a path. 18659 ;; 18660 *) 18661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18662for as_dir in $PATH 18663do 18664 IFS=$as_save_IFS 18665 test -z "$as_dir" && as_dir=. 18666 for ac_exec_ext in '' $ac_executable_extensions; do 18667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18668 ac_cv_path_DBTOEPUB="$as_dir/$ac_word$ac_exec_ext" 18669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18670 break 2 18671 fi 18672done 18673 done 18674IFS=$as_save_IFS 18675 18676 ;; 18677esac 18678fi 18679DBTOEPUB=$ac_cv_path_DBTOEPUB 18680if test -n "$DBTOEPUB"; then 18681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBTOEPUB" >&5 18682$as_echo "$DBTOEPUB" >&6; } 18683else 18684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18685$as_echo "no" >&6; } 18686fi 18687 18688 18689 test -n "$DBTOEPUB" && break 18690done 18691 18692else 18693 # Report the value of DBTOEPUB in configure's output in all cases. 18694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBTOEPUB" >&5 18695$as_echo_n "checking for DBTOEPUB... " >&6; } 18696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBTOEPUB" >&5 18697$as_echo "$DBTOEPUB" >&6; } 18698fi 18699 18700 18701# 18702# Check for test tools 18703# 18704if test "$enable_tap_tests" = yes; then 18705 # Check for necessary modules, unless user has specified the "prove" to use; 18706 # in that case it's her responsibility to have a working configuration. 18707 # (prove might be part of a different Perl installation than perl, eg on 18708 # MSys, so the result of AX_PROG_PERL_MODULES could be irrelevant anyway.) 18709 if test -z "$PROVE"; then 18710 # Test::More and Time::HiRes are supposed to be part of core Perl, 18711 # but some distros omit them in a minimal installation. 18712 18713 18714 18715 18716 18717 18718 18719 18720 18721 18722# Make sure we have perl 18723if test -z "$PERL"; then 18724# Extract the first word of "perl", so it can be a program name with args. 18725set dummy perl; ac_word=$2 18726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18727$as_echo_n "checking for $ac_word... " >&6; } 18728if ${ac_cv_prog_PERL+:} false; then : 18729 $as_echo_n "(cached) " >&6 18730else 18731 if test -n "$PERL"; then 18732 ac_cv_prog_PERL="$PERL" # Let the user override the test. 18733else 18734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18735for as_dir in $PATH 18736do 18737 IFS=$as_save_IFS 18738 test -z "$as_dir" && as_dir=. 18739 for ac_exec_ext in '' $ac_executable_extensions; do 18740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18741 ac_cv_prog_PERL="perl" 18742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18743 break 2 18744 fi 18745done 18746 done 18747IFS=$as_save_IFS 18748 18749fi 18750fi 18751PERL=$ac_cv_prog_PERL 18752if test -n "$PERL"; then 18753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 18754$as_echo "$PERL" >&6; } 18755else 18756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18757$as_echo "no" >&6; } 18758fi 18759 18760 18761fi 18762 18763if test "x$PERL" != x; then 18764 ax_perl_modules_failed=0 18765 for ax_perl_module in 'IPC::Run' 'Test::More 0.87' 'Time::HiRes' ; do 18766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl module $ax_perl_module" >&5 18767$as_echo_n "checking for perl module $ax_perl_module... " >&6; } 18768 18769 # Would be nice to log result here, but can't rely on autoconf internals 18770 $PERL -e "use $ax_perl_module; exit" > /dev/null 2>&1 18771 if test $? -ne 0; then 18772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18773$as_echo "no" >&6; }; 18774 ax_perl_modules_failed=1 18775 else 18776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 18777$as_echo "ok" >&6; }; 18778 fi 18779 done 18780 18781 # Run optional shell commands 18782 if test "$ax_perl_modules_failed" = 0; then 18783 : 18784 18785 else 18786 : 18787 as_fn_error $? "Additional Perl modules are required to run TAP tests" "$LINENO" 5 18788 fi 18789else 18790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5 18791$as_echo "$as_me: WARNING: could not find perl" >&2;} 18792fi 18793 fi 18794 # Now make sure we know where prove is 18795 if test -z "$PROVE"; then 18796 for ac_prog in prove 18797do 18798 # Extract the first word of "$ac_prog", so it can be a program name with args. 18799set dummy $ac_prog; ac_word=$2 18800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18801$as_echo_n "checking for $ac_word... " >&6; } 18802if ${ac_cv_path_PROVE+:} false; then : 18803 $as_echo_n "(cached) " >&6 18804else 18805 case $PROVE in 18806 [\\/]* | ?:[\\/]*) 18807 ac_cv_path_PROVE="$PROVE" # Let the user override the test with a path. 18808 ;; 18809 *) 18810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18811for as_dir in $PATH 18812do 18813 IFS=$as_save_IFS 18814 test -z "$as_dir" && as_dir=. 18815 for ac_exec_ext in '' $ac_executable_extensions; do 18816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18817 ac_cv_path_PROVE="$as_dir/$ac_word$ac_exec_ext" 18818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18819 break 2 18820 fi 18821done 18822 done 18823IFS=$as_save_IFS 18824 18825 ;; 18826esac 18827fi 18828PROVE=$ac_cv_path_PROVE 18829if test -n "$PROVE"; then 18830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROVE" >&5 18831$as_echo "$PROVE" >&6; } 18832else 18833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18834$as_echo "no" >&6; } 18835fi 18836 18837 18838 test -n "$PROVE" && break 18839done 18840 18841else 18842 # Report the value of PROVE in configure's output in all cases. 18843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PROVE" >&5 18844$as_echo_n "checking for PROVE... " >&6; } 18845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROVE" >&5 18846$as_echo "$PROVE" >&6; } 18847fi 18848 18849 if test -z "$PROVE"; then 18850 as_fn_error $? "prove not found" "$LINENO" 5 18851 fi 18852fi 18853 18854# Thread testing 18855 18856# We have to run the thread test near the end so we have all our symbols 18857# defined. Cross compiling throws a warning. 18858# 18859if test "$enable_thread_safety" = yes; then 18860if test "$PORTNAME" != "win32" 18861then 18862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking thread safety of required library functions" >&5 18863$as_echo_n "checking thread safety of required library functions... " >&6; } 18864 18865_CFLAGS="$CFLAGS" 18866_LIBS="$LIBS" 18867CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE" 18868LIBS="$LIBS $PTHREAD_LIBS" 18869if test "$cross_compiling" = yes; then : 18870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: maybe" >&5 18871$as_echo "maybe" >&6; } 18872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 18873*** Skipping thread test program because of cross-compile build. 18874*** Run the program in src/test/thread on the target machine. 18875" >&5 18876$as_echo "$as_me: WARNING: 18877*** Skipping thread test program because of cross-compile build. 18878*** Run the program in src/test/thread on the target machine. 18879" >&2;} 18880else 18881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18882/* end confdefs.h. */ 18883#include "$srcdir/src/test/thread/thread_test.c" 18884_ACEOF 18885if ac_fn_c_try_run "$LINENO"; then : 18886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18887$as_echo "yes" >&6; } 18888else 18889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18890$as_echo "no" >&6; } 18891 as_fn_error $? "thread test program failed 18892This platform is not thread-safe. Check the file 'config.log' or compile 18893and run src/test/thread/thread_test for the exact reason. 18894Use --disable-thread-safety to disable thread safety." "$LINENO" 5 18895fi 18896rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18897 conftest.$ac_objext conftest.beam conftest.$ac_ext 18898fi 18899 18900CFLAGS="$_CFLAGS" 18901LIBS="$_LIBS" 18902else 18903{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** skipping thread test on Win32" >&5 18904$as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;} 18905fi 18906fi 18907 18908# If compiler will take -Wl,--as-needed (or various platform-specific 18909# spellings thereof) then add that to LDFLAGS. This is much easier than 18910# trying to filter LIBS to the minimum for each executable. 18911# On (at least) some Red-Hat-derived systems, this switch breaks linking to 18912# libreadline; therefore we postpone testing it until we know what library 18913# dependencies readline has. The test code will try to link with $LIBS. 18914if test "$with_readline" = yes; then 18915 link_test_func=readline 18916else 18917 link_test_func=exit 18918fi 18919 18920if test "$PORTNAME" = "darwin"; then 18921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,-dead_strip_dylibs" >&5 18922$as_echo_n "checking whether $CC supports -Wl,-dead_strip_dylibs... " >&6; } 18923if ${pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs+:} false; then : 18924 $as_echo_n "(cached) " >&6 18925else 18926 pgac_save_LDFLAGS=$LDFLAGS 18927LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs" 18928if test "$cross_compiling" = yes; then : 18929 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs="assuming no" 18930else 18931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18932/* end confdefs.h. */ 18933extern void $link_test_func (); void (*fptr) () = $link_test_func; 18934int 18935main () 18936{ 18937 18938 ; 18939 return 0; 18940} 18941_ACEOF 18942if ac_fn_c_try_run "$LINENO"; then : 18943 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=yes 18944else 18945 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=no 18946fi 18947rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18948 conftest.$ac_objext conftest.beam conftest.$ac_ext 18949fi 18950 18951LDFLAGS="$pgac_save_LDFLAGS" 18952fi 18953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&5 18954$as_echo "$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&6; } 18955if test x"$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" = x"yes"; then 18956 LDFLAGS="$LDFLAGS -Wl,-dead_strip_dylibs" 18957fi 18958 18959elif test "$PORTNAME" = "openbsd"; then 18960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,-Bdynamic" >&5 18961$as_echo_n "checking whether $CC supports -Wl,-Bdynamic... " >&6; } 18962if ${pgac_cv_prog_cc_ldflags__Wl__Bdynamic+:} false; then : 18963 $as_echo_n "(cached) " >&6 18964else 18965 pgac_save_LDFLAGS=$LDFLAGS 18966LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic" 18967if test "$cross_compiling" = yes; then : 18968 pgac_cv_prog_cc_ldflags__Wl__Bdynamic="assuming no" 18969else 18970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18971/* end confdefs.h. */ 18972extern void $link_test_func (); void (*fptr) () = $link_test_func; 18973int 18974main () 18975{ 18976 18977 ; 18978 return 0; 18979} 18980_ACEOF 18981if ac_fn_c_try_run "$LINENO"; then : 18982 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=yes 18983else 18984 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=no 18985fi 18986rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18987 conftest.$ac_objext conftest.beam conftest.$ac_ext 18988fi 18989 18990LDFLAGS="$pgac_save_LDFLAGS" 18991fi 18992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&5 18993$as_echo "$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&6; } 18994if test x"$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" = x"yes"; then 18995 LDFLAGS="$LDFLAGS -Wl,-Bdynamic" 18996fi 18997 18998else 18999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,--as-needed" >&5 19000$as_echo_n "checking whether $CC supports -Wl,--as-needed... " >&6; } 19001if ${pgac_cv_prog_cc_ldflags__Wl___as_needed+:} false; then : 19002 $as_echo_n "(cached) " >&6 19003else 19004 pgac_save_LDFLAGS=$LDFLAGS 19005LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed" 19006if test "$cross_compiling" = yes; then : 19007 pgac_cv_prog_cc_ldflags__Wl___as_needed="assuming no" 19008else 19009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19010/* end confdefs.h. */ 19011extern void $link_test_func (); void (*fptr) () = $link_test_func; 19012int 19013main () 19014{ 19015 19016 ; 19017 return 0; 19018} 19019_ACEOF 19020if ac_fn_c_try_run "$LINENO"; then : 19021 pgac_cv_prog_cc_ldflags__Wl___as_needed=yes 19022else 19023 pgac_cv_prog_cc_ldflags__Wl___as_needed=no 19024fi 19025rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19026 conftest.$ac_objext conftest.beam conftest.$ac_ext 19027fi 19028 19029LDFLAGS="$pgac_save_LDFLAGS" 19030fi 19031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_cc_ldflags__Wl___as_needed" >&5 19032$as_echo "$pgac_cv_prog_cc_ldflags__Wl___as_needed" >&6; } 19033if test x"$pgac_cv_prog_cc_ldflags__Wl___as_needed" = x"yes"; then 19034 LDFLAGS="$LDFLAGS -Wl,--as-needed" 19035fi 19036 19037fi 19038 19039# Create compiler version string 19040if test x"$GCC" = x"yes" ; then 19041 cc_string=`${CC} --version | sed q` 19042 case $cc_string in [A-Za-z]*) ;; *) cc_string="GCC $cc_string";; esac 19043elif test x"$SUN_STUDIO_CC" = x"yes" ; then 19044 cc_string=`${CC} -V 2>&1 | sed q` 19045else 19046 cc_string=$CC 19047fi 19048 19049 19050cat >>confdefs.h <<_ACEOF 19051#define PG_VERSION_STR "PostgreSQL $PG_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit" 19052_ACEOF 19053 19054 19055# Supply a numeric version string for use by 3rd party add-ons 19056# awk -F is a regex on some platforms, and not on others, so make "." a tab 19057PG_VERSION_NUM="`echo $PG_MAJORVERSION $PG_MINORVERSION | 19058$AWK '{printf "%d%04d", $1, $2}'`" 19059 19060cat >>confdefs.h <<_ACEOF 19061#define PG_VERSION_NUM $PG_VERSION_NUM 19062_ACEOF 19063 19064 19065 19066# If we are inserting PG_SYSROOT into CPPFLAGS, do so symbolically not 19067# literally, so that it's possible to override it at build time using 19068# a command like "make ... PG_SYSROOT=path". This has to be done after 19069# we've finished all configure checks that depend on CPPFLAGS. 19070# The same for LDFLAGS, too. 19071if test x"$PG_SYSROOT" != x; then 19072 CPPFLAGS=`echo "$CPPFLAGS" | sed -e "s| $PG_SYSROOT | \\\$(PG_SYSROOT) |"` 19073 LDFLAGS=`echo "$LDFLAGS" | sed -e "s| $PG_SYSROOT | \\\$(PG_SYSROOT) |"` 19074fi 19075 19076 19077 19078# Begin output steps 19079 19080{ $as_echo "$as_me:${as_lineno-$LINENO}: using compiler=$cc_string" >&5 19081$as_echo "$as_me: using compiler=$cc_string" >&6;} 19082{ $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS=$CFLAGS" >&5 19083$as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;} 19084{ $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS=$CPPFLAGS" >&5 19085$as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;} 19086{ $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS=$LDFLAGS" >&5 19087$as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;} 19088# Currently only used when LLVM is used 19089if test "$with_llvm" = yes ; then 19090 { $as_echo "$as_me:${as_lineno-$LINENO}: using CXX=$CXX" >&5 19091$as_echo "$as_me: using CXX=$CXX" >&6;} 19092 { $as_echo "$as_me:${as_lineno-$LINENO}: using CXXFLAGS=$CXXFLAGS" >&5 19093$as_echo "$as_me: using CXXFLAGS=$CXXFLAGS" >&6;} 19094 { $as_echo "$as_me:${as_lineno-$LINENO}: using CLANG=$CLANG" >&5 19095$as_echo "$as_me: using CLANG=$CLANG" >&6;} 19096 { $as_echo "$as_me:${as_lineno-$LINENO}: using BITCODE_CFLAGS=$BITCODE_CFLAGS" >&5 19097$as_echo "$as_me: using BITCODE_CFLAGS=$BITCODE_CFLAGS" >&6;} 19098 { $as_echo "$as_me:${as_lineno-$LINENO}: using BITCODE_CXXFLAGS=$BITCODE_CXXFLAGS" >&5 19099$as_echo "$as_me: using BITCODE_CXXFLAGS=$BITCODE_CXXFLAGS" >&6;} 19100fi 19101 19102# prepare build tree if outside source tree 19103# Note 1: test -ef might not exist, but it's more reliable than `pwd`. 19104# Note 2: /bin/pwd might be better than shell's built-in at getting 19105# a symlink-free name. 19106if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then 19107 vpath_build=no 19108else 19109 vpath_build=yes 19110 if test "$no_create" != yes; then 19111 $as_echo_n "preparing build tree... " >&6 19112 pgac_abs_top_srcdir=`cd "$srcdir" && pwd` 19113 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \ 19114 || as_fn_error $? "failed" "$LINENO" 5 19115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 19116$as_echo "done" >&6; } 19117 fi 19118fi 19119 19120 19121 19122ac_config_files="$ac_config_files GNUmakefile src/Makefile.global" 19123 19124 19125ac_config_links="$ac_config_links src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION} src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION} src/include/pg_config_os.h:src/include/port/${template}.h src/Makefile.port:src/makefiles/Makefile.${template}" 19126 19127 19128if test "$PORTNAME" = "win32"; then 19129ac_config_commands="$ac_config_commands check_win32_symlinks" 19130 19131fi 19132 19133ac_config_headers="$ac_config_headers src/include/pg_config.h" 19134 19135 19136ac_config_headers="$ac_config_headers src/include/pg_config_ext.h" 19137 19138 19139ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h" 19140 19141 19142cat >confcache <<\_ACEOF 19143# This file is a shell script that caches the results of configure 19144# tests run on this system so they can be shared between configure 19145# scripts and configure runs, see configure's option --config-cache. 19146# It is not useful on other systems. If it contains results you don't 19147# want to keep, you may remove or edit it. 19148# 19149# config.status only pays attention to the cache file if you give it 19150# the --recheck option to rerun configure. 19151# 19152# `ac_cv_env_foo' variables (set or unset) will be overridden when 19153# loading this file, other *unset* `ac_cv_foo' will be assigned the 19154# following values. 19155 19156_ACEOF 19157 19158# The following way of writing the cache mishandles newlines in values, 19159# but we know of no workaround that is simple, portable, and efficient. 19160# So, we kill variables containing newlines. 19161# Ultrix sh set writes to stderr and can't be redirected directly, 19162# and sets the high bit in the cache file unless we assign to the vars. 19163( 19164 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19165 eval ac_val=\$$ac_var 19166 case $ac_val in #( 19167 *${as_nl}*) 19168 case $ac_var in #( 19169 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19170$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19171 esac 19172 case $ac_var in #( 19173 _ | IFS | as_nl) ;; #( 19174 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19175 *) { eval $ac_var=; unset $ac_var;} ;; 19176 esac ;; 19177 esac 19178 done 19179 19180 (set) 2>&1 | 19181 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19182 *${as_nl}ac_space=\ *) 19183 # `set' does not quote correctly, so add quotes: double-quote 19184 # substitution turns \\\\ into \\, and sed turns \\ into \. 19185 sed -n \ 19186 "s/'/'\\\\''/g; 19187 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19188 ;; #( 19189 *) 19190 # `set' quotes correctly as required by POSIX, so do not add quotes. 19191 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19192 ;; 19193 esac | 19194 sort 19195) | 19196 sed ' 19197 /^ac_cv_env_/b end 19198 t clear 19199 :clear 19200 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19201 t end 19202 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19203 :end' >>confcache 19204if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19205 if test -w "$cache_file"; then 19206 if test "x$cache_file" != "x/dev/null"; then 19207 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19208$as_echo "$as_me: updating cache $cache_file" >&6;} 19209 if test ! -f "$cache_file" || test -h "$cache_file"; then 19210 cat confcache >"$cache_file" 19211 else 19212 case $cache_file in #( 19213 */* | ?:*) 19214 mv -f confcache "$cache_file"$$ && 19215 mv -f "$cache_file"$$ "$cache_file" ;; #( 19216 *) 19217 mv -f confcache "$cache_file" ;; 19218 esac 19219 fi 19220 fi 19221 else 19222 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19223$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 19224 fi 19225fi 19226rm -f confcache 19227 19228test "x$prefix" = xNONE && prefix=$ac_default_prefix 19229# Let make expand exec_prefix. 19230test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19231 19232DEFS=-DHAVE_CONFIG_H 19233 19234ac_libobjs= 19235ac_ltlibobjs= 19236U= 19237for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19238 # 1. Remove the extension, and $U if already installed. 19239 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19240 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 19241 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19242 # will be set to the directory where LIBOBJS objects are built. 19243 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19244 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19245done 19246LIBOBJS=$ac_libobjs 19247 19248LTLIBOBJS=$ac_ltlibobjs 19249 19250 19251 19252 19253: "${CONFIG_STATUS=./config.status}" 19254ac_write_fail=0 19255ac_clean_files_save=$ac_clean_files 19256ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19257{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19258$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 19259as_write_fail=0 19260cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19261#! $SHELL 19262# Generated by $as_me. 19263# Run this file to recreate the current configuration. 19264# Compiler output produced by configure, useful for debugging 19265# configure, is in config.log if it exists. 19266 19267debug=false 19268ac_cs_recheck=false 19269ac_cs_silent=false 19270 19271SHELL=\${CONFIG_SHELL-$SHELL} 19272export SHELL 19273_ASEOF 19274cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19275## -------------------- ## 19276## M4sh Initialization. ## 19277## -------------------- ## 19278 19279# Be more Bourne compatible 19280DUALCASE=1; export DUALCASE # for MKS sh 19281if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 19282 emulate sh 19283 NULLCMD=: 19284 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19285 # is contrary to our usage. Disable this feature. 19286 alias -g '${1+"$@"}'='"$@"' 19287 setopt NO_GLOB_SUBST 19288else 19289 case `(set -o) 2>/dev/null` in #( 19290 *posix*) : 19291 set -o posix ;; #( 19292 *) : 19293 ;; 19294esac 19295fi 19296 19297 19298as_nl=' 19299' 19300export as_nl 19301# Printing a long string crashes Solaris 7 /usr/bin/printf. 19302as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 19303as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 19304as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 19305# Prefer a ksh shell builtin over an external printf program on Solaris, 19306# but without wasting forks for bash or zsh. 19307if test -z "$BASH_VERSION$ZSH_VERSION" \ 19308 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 19309 as_echo='print -r --' 19310 as_echo_n='print -rn --' 19311elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 19312 as_echo='printf %s\n' 19313 as_echo_n='printf %s' 19314else 19315 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 19316 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 19317 as_echo_n='/usr/ucb/echo -n' 19318 else 19319 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 19320 as_echo_n_body='eval 19321 arg=$1; 19322 case $arg in #( 19323 *"$as_nl"*) 19324 expr "X$arg" : "X\\(.*\\)$as_nl"; 19325 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 19326 esac; 19327 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 19328 ' 19329 export as_echo_n_body 19330 as_echo_n='sh -c $as_echo_n_body as_echo' 19331 fi 19332 export as_echo_body 19333 as_echo='sh -c $as_echo_body as_echo' 19334fi 19335 19336# The user is always right. 19337if test "${PATH_SEPARATOR+set}" != set; then 19338 PATH_SEPARATOR=: 19339 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19340 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19341 PATH_SEPARATOR=';' 19342 } 19343fi 19344 19345 19346# IFS 19347# We need space, tab and new line, in precisely that order. Quoting is 19348# there to prevent editors from complaining about space-tab. 19349# (If _AS_PATH_WALK were called with IFS unset, it would disable word 19350# splitting by setting IFS to empty value.) 19351IFS=" "" $as_nl" 19352 19353# Find who we are. Look in the path if we contain no directory separator. 19354as_myself= 19355case $0 in #(( 19356 *[\\/]* ) as_myself=$0 ;; 19357 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19358for as_dir in $PATH 19359do 19360 IFS=$as_save_IFS 19361 test -z "$as_dir" && as_dir=. 19362 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19363 done 19364IFS=$as_save_IFS 19365 19366 ;; 19367esac 19368# We did not find ourselves, most probably we were run as `sh COMMAND' 19369# in which case we are not to be found in the path. 19370if test "x$as_myself" = x; then 19371 as_myself=$0 19372fi 19373if test ! -f "$as_myself"; then 19374 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19375 exit 1 19376fi 19377 19378# Unset variables that we do not need and which cause bugs (e.g. in 19379# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 19380# suppresses any "Segmentation fault" message there. '((' could 19381# trigger a bug in pdksh 5.2.14. 19382for as_var in BASH_ENV ENV MAIL MAILPATH 19383do eval test x\${$as_var+set} = xset \ 19384 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19385done 19386PS1='$ ' 19387PS2='> ' 19388PS4='+ ' 19389 19390# NLS nuisances. 19391LC_ALL=C 19392export LC_ALL 19393LANGUAGE=C 19394export LANGUAGE 19395 19396# CDPATH. 19397(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19398 19399 19400# as_fn_error STATUS ERROR [LINENO LOG_FD] 19401# ---------------------------------------- 19402# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19403# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19404# script with STATUS, using 1 if that was 0. 19405as_fn_error () 19406{ 19407 as_status=$1; test $as_status -eq 0 && as_status=1 19408 if test "$4"; then 19409 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19410 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19411 fi 19412 $as_echo "$as_me: error: $2" >&2 19413 as_fn_exit $as_status 19414} # as_fn_error 19415 19416 19417# as_fn_set_status STATUS 19418# ----------------------- 19419# Set $? to STATUS, without forking. 19420as_fn_set_status () 19421{ 19422 return $1 19423} # as_fn_set_status 19424 19425# as_fn_exit STATUS 19426# ----------------- 19427# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19428as_fn_exit () 19429{ 19430 set +e 19431 as_fn_set_status $1 19432 exit $1 19433} # as_fn_exit 19434 19435# as_fn_unset VAR 19436# --------------- 19437# Portably unset VAR. 19438as_fn_unset () 19439{ 19440 { eval $1=; unset $1;} 19441} 19442as_unset=as_fn_unset 19443# as_fn_append VAR VALUE 19444# ---------------------- 19445# Append the text in VALUE to the end of the definition contained in VAR. Take 19446# advantage of any shell optimizations that allow amortized linear growth over 19447# repeated appends, instead of the typical quadratic growth present in naive 19448# implementations. 19449if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 19450 eval 'as_fn_append () 19451 { 19452 eval $1+=\$2 19453 }' 19454else 19455 as_fn_append () 19456 { 19457 eval $1=\$$1\$2 19458 } 19459fi # as_fn_append 19460 19461# as_fn_arith ARG... 19462# ------------------ 19463# Perform arithmetic evaluation on the ARGs, and store the result in the 19464# global $as_val. Take advantage of shells that can avoid forks. The arguments 19465# must be portable across $(()) and expr. 19466if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 19467 eval 'as_fn_arith () 19468 { 19469 as_val=$(( $* )) 19470 }' 19471else 19472 as_fn_arith () 19473 { 19474 as_val=`expr "$@" || test $? -eq 1` 19475 } 19476fi # as_fn_arith 19477 19478 19479if expr a : '\(a\)' >/dev/null 2>&1 && 19480 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19481 as_expr=expr 19482else 19483 as_expr=false 19484fi 19485 19486if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19487 as_basename=basename 19488else 19489 as_basename=false 19490fi 19491 19492if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19493 as_dirname=dirname 19494else 19495 as_dirname=false 19496fi 19497 19498as_me=`$as_basename -- "$0" || 19499$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19500 X"$0" : 'X\(//\)$' \| \ 19501 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19502$as_echo X/"$0" | 19503 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19504 s//\1/ 19505 q 19506 } 19507 /^X\/\(\/\/\)$/{ 19508 s//\1/ 19509 q 19510 } 19511 /^X\/\(\/\).*/{ 19512 s//\1/ 19513 q 19514 } 19515 s/.*/./; q'` 19516 19517# Avoid depending upon Character Ranges. 19518as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19519as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19520as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19521as_cr_digits='0123456789' 19522as_cr_alnum=$as_cr_Letters$as_cr_digits 19523 19524ECHO_C= ECHO_N= ECHO_T= 19525case `echo -n x` in #((((( 19526-n*) 19527 case `echo 'xy\c'` in 19528 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19529 xy) ECHO_C='\c';; 19530 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19531 ECHO_T=' ';; 19532 esac;; 19533*) 19534 ECHO_N='-n';; 19535esac 19536 19537rm -f conf$$ conf$$.exe conf$$.file 19538if test -d conf$$.dir; then 19539 rm -f conf$$.dir/conf$$.file 19540else 19541 rm -f conf$$.dir 19542 mkdir conf$$.dir 2>/dev/null 19543fi 19544if (echo >conf$$.file) 2>/dev/null; then 19545 if ln -s conf$$.file conf$$ 2>/dev/null; then 19546 as_ln_s='ln -s' 19547 # ... but there are two gotchas: 19548 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19549 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19550 # In both cases, we have to default to `cp -pR'. 19551 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19552 as_ln_s='cp -pR' 19553 elif ln conf$$.file conf$$ 2>/dev/null; then 19554 as_ln_s=ln 19555 else 19556 as_ln_s='cp -pR' 19557 fi 19558else 19559 as_ln_s='cp -pR' 19560fi 19561rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19562rmdir conf$$.dir 2>/dev/null 19563 19564 19565# as_fn_mkdir_p 19566# ------------- 19567# Create "$as_dir" as a directory, including parents if necessary. 19568as_fn_mkdir_p () 19569{ 19570 19571 case $as_dir in #( 19572 -*) as_dir=./$as_dir;; 19573 esac 19574 test -d "$as_dir" || eval $as_mkdir_p || { 19575 as_dirs= 19576 while :; do 19577 case $as_dir in #( 19578 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19579 *) as_qdir=$as_dir;; 19580 esac 19581 as_dirs="'$as_qdir' $as_dirs" 19582 as_dir=`$as_dirname -- "$as_dir" || 19583$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19584 X"$as_dir" : 'X\(//\)[^/]' \| \ 19585 X"$as_dir" : 'X\(//\)$' \| \ 19586 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19587$as_echo X"$as_dir" | 19588 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19589 s//\1/ 19590 q 19591 } 19592 /^X\(\/\/\)[^/].*/{ 19593 s//\1/ 19594 q 19595 } 19596 /^X\(\/\/\)$/{ 19597 s//\1/ 19598 q 19599 } 19600 /^X\(\/\).*/{ 19601 s//\1/ 19602 q 19603 } 19604 s/.*/./; q'` 19605 test -d "$as_dir" && break 19606 done 19607 test -z "$as_dirs" || eval "mkdir $as_dirs" 19608 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19609 19610 19611} # as_fn_mkdir_p 19612if mkdir -p . 2>/dev/null; then 19613 as_mkdir_p='mkdir -p "$as_dir"' 19614else 19615 test -d ./-p && rmdir ./-p 19616 as_mkdir_p=false 19617fi 19618 19619 19620# as_fn_executable_p FILE 19621# ----------------------- 19622# Test if FILE is an executable regular file. 19623as_fn_executable_p () 19624{ 19625 test -f "$1" && test -x "$1" 19626} # as_fn_executable_p 19627as_test_x='test -x' 19628as_executable_p=as_fn_executable_p 19629 19630# Sed expression to map a string onto a valid CPP name. 19631as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19632 19633# Sed expression to map a string onto a valid variable name. 19634as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19635 19636 19637exec 6>&1 19638## ----------------------------------- ## 19639## Main body of $CONFIG_STATUS script. ## 19640## ----------------------------------- ## 19641_ASEOF 19642test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19643 19644cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19645# Save the log message, to keep $0 and so on meaningful, and to 19646# report actual input values of CONFIG_FILES etc. instead of their 19647# values after options handling. 19648ac_log=" 19649This file was extended by PostgreSQL $as_me 13.5, which was 19650generated by GNU Autoconf 2.69. Invocation command line was 19651 19652 CONFIG_FILES = $CONFIG_FILES 19653 CONFIG_HEADERS = $CONFIG_HEADERS 19654 CONFIG_LINKS = $CONFIG_LINKS 19655 CONFIG_COMMANDS = $CONFIG_COMMANDS 19656 $ $0 $@ 19657 19658on `(hostname || uname -n) 2>/dev/null | sed 1q` 19659" 19660 19661_ACEOF 19662 19663case $ac_config_files in *" 19664"*) set x $ac_config_files; shift; ac_config_files=$*;; 19665esac 19666 19667case $ac_config_headers in *" 19668"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19669esac 19670 19671 19672cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19673# Files that config.status was made for. 19674config_files="$ac_config_files" 19675config_headers="$ac_config_headers" 19676config_links="$ac_config_links" 19677config_commands="$ac_config_commands" 19678 19679_ACEOF 19680 19681cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19682ac_cs_usage="\ 19683\`$as_me' instantiates files and other configuration actions 19684from templates according to the current configuration. Unless the files 19685and actions are specified as TAGs, all are instantiated by default. 19686 19687Usage: $0 [OPTION]... [TAG]... 19688 19689 -h, --help print this help, then exit 19690 -V, --version print version number and configuration settings, then exit 19691 --config print configuration, then exit 19692 -q, --quiet, --silent 19693 do not print progress messages 19694 -d, --debug don't remove temporary files 19695 --recheck update $as_me by reconfiguring in the same conditions 19696 --file=FILE[:TEMPLATE] 19697 instantiate the configuration file FILE 19698 --header=FILE[:TEMPLATE] 19699 instantiate the configuration header FILE 19700 19701Configuration files: 19702$config_files 19703 19704Configuration headers: 19705$config_headers 19706 19707Configuration links: 19708$config_links 19709 19710Configuration commands: 19711$config_commands 19712 19713Report bugs to <pgsql-bugs@lists.postgresql.org>. 19714PostgreSQL home page: <https://www.postgresql.org/>." 19715 19716_ACEOF 19717cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19718ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19719ac_cs_version="\\ 19720PostgreSQL config.status 13.5 19721configured by $0, generated by GNU Autoconf 2.69, 19722 with options \\"\$ac_cs_config\\" 19723 19724Copyright (C) 2012 Free Software Foundation, Inc. 19725This config.status script is free software; the Free Software Foundation 19726gives unlimited permission to copy, distribute and modify it." 19727 19728ac_pwd='$ac_pwd' 19729srcdir='$srcdir' 19730INSTALL='$INSTALL' 19731MKDIR_P='$MKDIR_P' 19732AWK='$AWK' 19733test -n "\$AWK" || AWK=awk 19734_ACEOF 19735 19736cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19737# The default lists apply if the user does not specify any file. 19738ac_need_defaults=: 19739while test $# != 0 19740do 19741 case $1 in 19742 --*=?*) 19743 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19744 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19745 ac_shift=: 19746 ;; 19747 --*=) 19748 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19749 ac_optarg= 19750 ac_shift=: 19751 ;; 19752 *) 19753 ac_option=$1 19754 ac_optarg=$2 19755 ac_shift=shift 19756 ;; 19757 esac 19758 19759 case $ac_option in 19760 # Handling of the options. 19761 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19762 ac_cs_recheck=: ;; 19763 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19764 $as_echo "$ac_cs_version"; exit ;; 19765 --config | --confi | --conf | --con | --co | --c ) 19766 $as_echo "$ac_cs_config"; exit ;; 19767 --debug | --debu | --deb | --de | --d | -d ) 19768 debug=: ;; 19769 --file | --fil | --fi | --f ) 19770 $ac_shift 19771 case $ac_optarg in 19772 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19773 '') as_fn_error $? "missing file argument" ;; 19774 esac 19775 as_fn_append CONFIG_FILES " '$ac_optarg'" 19776 ac_need_defaults=false;; 19777 --header | --heade | --head | --hea ) 19778 $ac_shift 19779 case $ac_optarg in 19780 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19781 esac 19782 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19783 ac_need_defaults=false;; 19784 --he | --h) 19785 # Conflict between --help and --header 19786 as_fn_error $? "ambiguous option: \`$1' 19787Try \`$0 --help' for more information.";; 19788 --help | --hel | -h ) 19789 $as_echo "$ac_cs_usage"; exit ;; 19790 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19791 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19792 ac_cs_silent=: ;; 19793 19794 # This is an error. 19795 -*) as_fn_error $? "unrecognized option: \`$1' 19796Try \`$0 --help' for more information." ;; 19797 19798 *) as_fn_append ac_config_targets " $1" 19799 ac_need_defaults=false ;; 19800 19801 esac 19802 shift 19803done 19804 19805ac_configure_extra_args= 19806 19807if $ac_cs_silent; then 19808 exec 6>/dev/null 19809 ac_configure_extra_args="$ac_configure_extra_args --silent" 19810fi 19811 19812_ACEOF 19813cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19814if \$ac_cs_recheck; then 19815 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19816 shift 19817 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19818 CONFIG_SHELL='$SHELL' 19819 export CONFIG_SHELL 19820 exec "\$@" 19821fi 19822 19823_ACEOF 19824cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19825exec 5>>config.log 19826{ 19827 echo 19828 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19829## Running $as_me. ## 19830_ASBOX 19831 $as_echo "$ac_log" 19832} >&5 19833 19834_ACEOF 19835cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19836_ACEOF 19837 19838cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19839 19840# Handling of arguments. 19841for ac_config_target in $ac_config_targets 19842do 19843 case $ac_config_target in 19844 "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;; 19845 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;; 19846 "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;; 19847 "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;; 19848 "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;; 19849 "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;; 19850 "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;; 19851 "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;; 19852 "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;; 19853 "src/include/pg_config_ext.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config_ext.h" ;; 19854 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;; 19855 19856 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19857 esac 19858done 19859 19860 19861# If the user did not use the arguments to specify the items to instantiate, 19862# then the envvar interface is used. Set only those that are not. 19863# We use the long form for the default assignment because of an extremely 19864# bizarre bug on SunOS 4.1.3. 19865if $ac_need_defaults; then 19866 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19867 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19868 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links 19869 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19870fi 19871 19872# Have a temporary directory for convenience. Make it in the build tree 19873# simply because there is no reason against having it here, and in addition, 19874# creating and moving files from /tmp can sometimes cause problems. 19875# Hook for its removal unless debugging. 19876# Note that there is a small window in which the directory will not be cleaned: 19877# after its creation but before its name has been assigned to `$tmp'. 19878$debug || 19879{ 19880 tmp= ac_tmp= 19881 trap 'exit_status=$? 19882 : "${ac_tmp:=$tmp}" 19883 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19884' 0 19885 trap 'as_fn_exit 1' 1 2 13 15 19886} 19887# Create a (secure) tmp directory for tmp files. 19888 19889{ 19890 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19891 test -d "$tmp" 19892} || 19893{ 19894 tmp=./conf$$-$RANDOM 19895 (umask 077 && mkdir "$tmp") 19896} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19897ac_tmp=$tmp 19898 19899# Set up the scripts for CONFIG_FILES section. 19900# No need to generate them if there are no CONFIG_FILES. 19901# This happens for instance with `./config.status config.h'. 19902if test -n "$CONFIG_FILES"; then 19903 19904 19905ac_cr=`echo X | tr X '\015'` 19906# On cygwin, bash can eat \r inside `` if the user requested igncr. 19907# But we know of no other shell where ac_cr would be empty at this 19908# point, so we can use a bashism as a fallback. 19909if test "x$ac_cr" = x; then 19910 eval ac_cr=\$\'\\r\' 19911fi 19912ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19913if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19914 ac_cs_awk_cr='\\r' 19915else 19916 ac_cs_awk_cr=$ac_cr 19917fi 19918 19919echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19920_ACEOF 19921 19922 19923{ 19924 echo "cat >conf$$subs.awk <<_ACEOF" && 19925 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19926 echo "_ACEOF" 19927} >conf$$subs.sh || 19928 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19929ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19930ac_delim='%!_!# ' 19931for ac_last_try in false false false false false :; do 19932 . ./conf$$subs.sh || 19933 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19934 19935 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19936 if test $ac_delim_n = $ac_delim_num; then 19937 break 19938 elif $ac_last_try; then 19939 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19940 else 19941 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19942 fi 19943done 19944rm -f conf$$subs.sh 19945 19946cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19947cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19948_ACEOF 19949sed -n ' 19950h 19951s/^/S["/; s/!.*/"]=/ 19952p 19953g 19954s/^[^!]*!// 19955:repl 19956t repl 19957s/'"$ac_delim"'$// 19958t delim 19959:nl 19960h 19961s/\(.\{148\}\)..*/\1/ 19962t more1 19963s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19964p 19965n 19966b repl 19967:more1 19968s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19969p 19970g 19971s/.\{148\}// 19972t nl 19973:delim 19974h 19975s/\(.\{148\}\)..*/\1/ 19976t more2 19977s/["\\]/\\&/g; s/^/"/; s/$/"/ 19978p 19979b 19980:more2 19981s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19982p 19983g 19984s/.\{148\}// 19985t delim 19986' <conf$$subs.awk | sed ' 19987/^[^""]/{ 19988 N 19989 s/\n// 19990} 19991' >>$CONFIG_STATUS || ac_write_fail=1 19992rm -f conf$$subs.awk 19993cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19994_ACAWK 19995cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19996 for (key in S) S_is_set[key] = 1 19997 FS = "" 19998 19999} 20000{ 20001 line = $ 0 20002 nfields = split(line, field, "@") 20003 substed = 0 20004 len = length(field[1]) 20005 for (i = 2; i < nfields; i++) { 20006 key = field[i] 20007 keylen = length(key) 20008 if (S_is_set[key]) { 20009 value = S[key] 20010 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20011 len += length(value) + length(field[++i]) 20012 substed = 1 20013 } else 20014 len += 1 + keylen 20015 } 20016 20017 print line 20018} 20019 20020_ACAWK 20021_ACEOF 20022cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20023if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20024 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20025else 20026 cat 20027fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20028 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20029_ACEOF 20030 20031# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20032# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20033# trailing colons and then remove the whole line if VPATH becomes empty 20034# (actually we leave an empty line to preserve line numbers). 20035if test "x$srcdir" = x.; then 20036 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20037h 20038s/// 20039s/^/:/ 20040s/[ ]*$/:/ 20041s/:\$(srcdir):/:/g 20042s/:\${srcdir}:/:/g 20043s/:@srcdir@:/:/g 20044s/^:*// 20045s/:*$// 20046x 20047s/\(=[ ]*\).*/\1/ 20048G 20049s/\n// 20050s/^[^=]*=[ ]*$// 20051}' 20052fi 20053 20054cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20055fi # test -n "$CONFIG_FILES" 20056 20057# Set up the scripts for CONFIG_HEADERS section. 20058# No need to generate them if there are no CONFIG_HEADERS. 20059# This happens for instance with `./config.status Makefile'. 20060if test -n "$CONFIG_HEADERS"; then 20061cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20062BEGIN { 20063_ACEOF 20064 20065# Transform confdefs.h into an awk script `defines.awk', embedded as 20066# here-document in config.status, that substitutes the proper values into 20067# config.h.in to produce config.h. 20068 20069# Create a delimiter string that does not exist in confdefs.h, to ease 20070# handling of long lines. 20071ac_delim='%!_!# ' 20072for ac_last_try in false false :; do 20073 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 20074 if test -z "$ac_tt"; then 20075 break 20076 elif $ac_last_try; then 20077 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 20078 else 20079 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20080 fi 20081done 20082 20083# For the awk script, D is an array of macro values keyed by name, 20084# likewise P contains macro parameters if any. Preserve backslash 20085# newline sequences. 20086 20087ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20088sed -n ' 20089s/.\{148\}/&'"$ac_delim"'/g 20090t rset 20091:rset 20092s/^[ ]*#[ ]*define[ ][ ]*/ / 20093t def 20094d 20095:def 20096s/\\$// 20097t bsnl 20098s/["\\]/\\&/g 20099s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20100D["\1"]=" \3"/p 20101s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20102d 20103:bsnl 20104s/["\\]/\\&/g 20105s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20106D["\1"]=" \3\\\\\\n"\\/p 20107t cont 20108s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20109t cont 20110d 20111:cont 20112n 20113s/.\{148\}/&'"$ac_delim"'/g 20114t clear 20115:clear 20116s/\\$// 20117t bsnlc 20118s/["\\]/\\&/g; s/^/"/; s/$/"/p 20119d 20120:bsnlc 20121s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20122b cont 20123' <confdefs.h | sed ' 20124s/'"$ac_delim"'/"\\\ 20125"/g' >>$CONFIG_STATUS || ac_write_fail=1 20126 20127cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20128 for (key in D) D_is_set[key] = 1 20129 FS = "" 20130} 20131/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20132 line = \$ 0 20133 split(line, arg, " ") 20134 if (arg[1] == "#") { 20135 defundef = arg[2] 20136 mac1 = arg[3] 20137 } else { 20138 defundef = substr(arg[1], 2) 20139 mac1 = arg[2] 20140 } 20141 split(mac1, mac2, "(") #) 20142 macro = mac2[1] 20143 prefix = substr(line, 1, index(line, defundef) - 1) 20144 if (D_is_set[macro]) { 20145 # Preserve the white space surrounding the "#". 20146 print prefix "define", macro P[macro] D[macro] 20147 next 20148 } else { 20149 # Replace #undef with comments. This is necessary, for example, 20150 # in the case of _POSIX_SOURCE, which is predefined and required 20151 # on some systems where configure will not decide to define it. 20152 if (defundef == "undef") { 20153 print "/*", prefix defundef, macro, "*/" 20154 next 20155 } 20156 } 20157} 20158{ print } 20159_ACAWK 20160_ACEOF 20161cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20162 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20163fi # test -n "$CONFIG_HEADERS" 20164 20165 20166eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS" 20167shift 20168for ac_tag 20169do 20170 case $ac_tag in 20171 :[FHLC]) ac_mode=$ac_tag; continue;; 20172 esac 20173 case $ac_mode$ac_tag in 20174 :[FHL]*:*);; 20175 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20176 :[FH]-) ac_tag=-:-;; 20177 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20178 esac 20179 ac_save_IFS=$IFS 20180 IFS=: 20181 set x $ac_tag 20182 IFS=$ac_save_IFS 20183 shift 20184 ac_file=$1 20185 shift 20186 20187 case $ac_mode in 20188 :L) ac_source=$1;; 20189 :[FH]) 20190 ac_file_inputs= 20191 for ac_f 20192 do 20193 case $ac_f in 20194 -) ac_f="$ac_tmp/stdin";; 20195 *) # Look for the file first in the build tree, then in the source tree 20196 # (if the path is not absolute). The absolute path cannot be DOS-style, 20197 # because $ac_f cannot contain `:'. 20198 test -f "$ac_f" || 20199 case $ac_f in 20200 [\\/$]*) false;; 20201 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20202 esac || 20203 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20204 esac 20205 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20206 as_fn_append ac_file_inputs " '$ac_f'" 20207 done 20208 20209 # Let's still pretend it is `configure' which instantiates (i.e., don't 20210 # use $as_me), people would be surprised to read: 20211 # /* config.h. Generated by config.status. */ 20212 configure_input='Generated from '` 20213 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20214 `' by configure.' 20215 if test x"$ac_file" != x-; then 20216 configure_input="$ac_file. $configure_input" 20217 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20218$as_echo "$as_me: creating $ac_file" >&6;} 20219 fi 20220 # Neutralize special characters interpreted by sed in replacement strings. 20221 case $configure_input in #( 20222 *\&* | *\|* | *\\* ) 20223 ac_sed_conf_input=`$as_echo "$configure_input" | 20224 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20225 *) ac_sed_conf_input=$configure_input;; 20226 esac 20227 20228 case $ac_tag in 20229 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20230 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20231 esac 20232 ;; 20233 esac 20234 20235 ac_dir=`$as_dirname -- "$ac_file" || 20236$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20237 X"$ac_file" : 'X\(//\)[^/]' \| \ 20238 X"$ac_file" : 'X\(//\)$' \| \ 20239 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20240$as_echo X"$ac_file" | 20241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20242 s//\1/ 20243 q 20244 } 20245 /^X\(\/\/\)[^/].*/{ 20246 s//\1/ 20247 q 20248 } 20249 /^X\(\/\/\)$/{ 20250 s//\1/ 20251 q 20252 } 20253 /^X\(\/\).*/{ 20254 s//\1/ 20255 q 20256 } 20257 s/.*/./; q'` 20258 as_dir="$ac_dir"; as_fn_mkdir_p 20259 ac_builddir=. 20260 20261case "$ac_dir" in 20262.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20263*) 20264 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20265 # A ".." for each directory in $ac_dir_suffix. 20266 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20267 case $ac_top_builddir_sub in 20268 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20269 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20270 esac ;; 20271esac 20272ac_abs_top_builddir=$ac_pwd 20273ac_abs_builddir=$ac_pwd$ac_dir_suffix 20274# for backward compatibility: 20275ac_top_builddir=$ac_top_build_prefix 20276 20277case $srcdir in 20278 .) # We are building in place. 20279 ac_srcdir=. 20280 ac_top_srcdir=$ac_top_builddir_sub 20281 ac_abs_top_srcdir=$ac_pwd ;; 20282 [\\/]* | ?:[\\/]* ) # Absolute name. 20283 ac_srcdir=$srcdir$ac_dir_suffix; 20284 ac_top_srcdir=$srcdir 20285 ac_abs_top_srcdir=$srcdir ;; 20286 *) # Relative name. 20287 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20288 ac_top_srcdir=$ac_top_build_prefix$srcdir 20289 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20290esac 20291ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20292 20293 20294 case $ac_mode in 20295 :F) 20296 # 20297 # CONFIG_FILE 20298 # 20299 20300 case $INSTALL in 20301 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20302 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20303 esac 20304 ac_MKDIR_P=$MKDIR_P 20305 case $MKDIR_P in 20306 [\\/$]* | ?:[\\/]* ) ;; 20307 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20308 esac 20309_ACEOF 20310 20311cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20312# If the template does not know about datarootdir, expand it. 20313# FIXME: This hack should be removed a few years after 2.60. 20314ac_datarootdir_hack=; ac_datarootdir_seen= 20315ac_sed_dataroot=' 20316/datarootdir/ { 20317 p 20318 q 20319} 20320/@datadir@/p 20321/@docdir@/p 20322/@infodir@/p 20323/@localedir@/p 20324/@mandir@/p' 20325case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20326*datarootdir*) ac_datarootdir_seen=yes;; 20327*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20329$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20330_ACEOF 20331cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20332 ac_datarootdir_hack=' 20333 s&@datadir@&$datadir&g 20334 s&@docdir@&$docdir&g 20335 s&@infodir@&$infodir&g 20336 s&@localedir@&$localedir&g 20337 s&@mandir@&$mandir&g 20338 s&\\\${datarootdir}&$datarootdir&g' ;; 20339esac 20340_ACEOF 20341 20342# Neutralize VPATH when `$srcdir' = `.'. 20343# Shell code in configure.ac might set extrasub. 20344# FIXME: do we really want to maintain this feature? 20345cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20346ac_sed_extra="$ac_vpsub 20347$extrasub 20348_ACEOF 20349cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20350:t 20351/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20352s|@configure_input@|$ac_sed_conf_input|;t t 20353s&@top_builddir@&$ac_top_builddir_sub&;t t 20354s&@top_build_prefix@&$ac_top_build_prefix&;t t 20355s&@srcdir@&$ac_srcdir&;t t 20356s&@abs_srcdir@&$ac_abs_srcdir&;t t 20357s&@top_srcdir@&$ac_top_srcdir&;t t 20358s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20359s&@builddir@&$ac_builddir&;t t 20360s&@abs_builddir@&$ac_abs_builddir&;t t 20361s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20362s&@INSTALL@&$ac_INSTALL&;t t 20363s&@MKDIR_P@&$ac_MKDIR_P&;t t 20364$ac_datarootdir_hack 20365" 20366eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20367 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20368 20369test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20370 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20371 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20372 "$ac_tmp/out"`; test -z "$ac_out"; } && 20373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20374which seems to be undefined. Please make sure it is defined" >&5 20375$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20376which seems to be undefined. Please make sure it is defined" >&2;} 20377 20378 rm -f "$ac_tmp/stdin" 20379 case $ac_file in 20380 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20381 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20382 esac \ 20383 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20384 ;; 20385 :H) 20386 # 20387 # CONFIG_HEADER 20388 # 20389 if test x"$ac_file" != x-; then 20390 { 20391 $as_echo "/* $configure_input */" \ 20392 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20393 } >"$ac_tmp/config.h" \ 20394 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20395 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20396 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20397$as_echo "$as_me: $ac_file is unchanged" >&6;} 20398 else 20399 rm -f "$ac_file" 20400 mv "$ac_tmp/config.h" "$ac_file" \ 20401 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20402 fi 20403 else 20404 $as_echo "/* $configure_input */" \ 20405 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20406 || as_fn_error $? "could not create -" "$LINENO" 5 20407 fi 20408 ;; 20409 :L) 20410 # 20411 # CONFIG_LINK 20412 # 20413 20414 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then 20415 : 20416 else 20417 # Prefer the file from the source tree if names are identical. 20418 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then 20419 ac_source=$srcdir/$ac_source 20420 fi 20421 20422 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5 20423$as_echo "$as_me: linking $ac_source to $ac_file" >&6;} 20424 20425 if test ! -r "$ac_source"; then 20426 as_fn_error $? "$ac_source: file not found" "$LINENO" 5 20427 fi 20428 rm -f "$ac_file" 20429 20430 # Try a relative symlink, then a hard link, then a copy. 20431 case $ac_source in 20432 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;; 20433 *) ac_rel_source=$ac_top_build_prefix$ac_source ;; 20434 esac 20435 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null || 20436 ln "$ac_source" "$ac_file" 2>/dev/null || 20437 cp -p "$ac_source" "$ac_file" || 20438 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5 20439 fi 20440 ;; 20441 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20442$as_echo "$as_me: executing $ac_file commands" >&6;} 20443 ;; 20444 esac 20445 20446 20447 case $ac_file$ac_mode in 20448 "check_win32_symlinks":C) 20449# Links sometimes fail undetected on Mingw - 20450# so here we detect it and warn the user 20451for FILE in $CONFIG_LINKS 20452 do 20453 # test -e works for symlinks in the MinGW console 20454 test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** link for $FILE -- please fix by hand" >&5 20455$as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;} 20456 done 20457 ;; 20458 "src/include/pg_config.h":H) 20459# Update timestamp for pg_config.h (see Makefile.global) 20460echo >src/include/stamp-h 20461 ;; 20462 "src/include/pg_config_ext.h":H) 20463# Update timestamp for pg_config_ext.h (see Makefile.global) 20464echo >src/include/stamp-ext-h 20465 ;; 20466 "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;; 20467 20468 esac 20469done # for ac_tag 20470 20471 20472as_fn_exit 0 20473_ACEOF 20474ac_clean_files=$ac_clean_files_save 20475 20476test $ac_write_fail = 0 || 20477 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20478 20479 20480# configure is writing to config.log, and then calls config.status. 20481# config.status does its own redirection, appending to config.log. 20482# Unfortunately, on DOS this fails, as config.log is still kept open 20483# by configure, so config.status won't be able to write to it; its 20484# output is simply discarded. So we exec the FD to /dev/null, 20485# effectively closing config.log, so it can be properly (re)opened and 20486# appended to by config.status. When coming back to configure, we 20487# need to make the FD available again. 20488if test "$no_create" != yes; then 20489 ac_cs_success=: 20490 ac_config_status_args= 20491 test "$silent" = yes && 20492 ac_config_status_args="$ac_config_status_args --quiet" 20493 exec 5>/dev/null 20494 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20495 exec 5>>config.log 20496 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20497 # would make configure fail if this is the last instruction. 20498 $ac_cs_success || as_fn_exit 1 20499fi 20500if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20502$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20503fi 20504 20505