1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for pgpool-II 4.1.10. 4# 5# Report bugs to <pgpool-hackers@pgpool.net>. 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## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: pgpool-hackers@pgpool.net about your system, including 279$0: any error possibly output before this message. Then 280$0: install a modern shell, or manually run the script 281$0: under such a shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='pgpool-II' 592PACKAGE_TARNAME='pgpool-II' 593PACKAGE_VERSION='4.1.10' 594PACKAGE_STRING='pgpool-II 4.1.10' 595PACKAGE_BUGREPORT='pgpool-hackers@pgpool.net' 596PACKAGE_URL='' 597 598# Factoring default headers for most tests. 599ac_includes_default="\ 600#include <stdio.h> 601#ifdef HAVE_SYS_TYPES_H 602# include <sys/types.h> 603#endif 604#ifdef HAVE_SYS_STAT_H 605# include <sys/stat.h> 606#endif 607#ifdef STDC_HEADERS 608# include <stdlib.h> 609# include <stddef.h> 610#else 611# ifdef HAVE_STDLIB_H 612# include <stdlib.h> 613# endif 614#endif 615#ifdef HAVE_STRING_H 616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 617# include <memory.h> 618# endif 619# include <string.h> 620#endif 621#ifdef HAVE_STRINGS_H 622# include <strings.h> 623#endif 624#ifdef HAVE_INTTYPES_H 625# include <inttypes.h> 626#endif 627#ifdef HAVE_STDINT_H 628# include <stdint.h> 629#endif 630#ifdef HAVE_UNISTD_H 631# include <unistd.h> 632#endif" 633 634ac_subst_vars='am__EXEEXT_FALSE 635am__EXEEXT_TRUE 636LTLIBOBJS 637enable_rpath_FALSE 638enable_rpath_TRUE 639MEMCACHED_DIR 640PGSQL_BIN_DIR 641PGSQL_LIB_DIR 642PGSQL_INCLUDE_DIR 643MEMCACHED_RPATH_OPT 644MEMCACHED_LINK_OPT 645MEMCACHED_INCLUDE_OPT 646PGCONFIG 647use_repl_snprintf_FALSE 648use_repl_snprintf_TRUE 649LIBOBJS 650STYLE_ENV_SET_FALSE 651STYLE_ENV_SET_TRUE 652STYLE 653XSLTPROC_HTML_FLAGS 654SUNIFDEF 655LYNX 656PERL 657OSX 658XMLLINT 659XSLTPROC 660COLLATEINDEX 661CATALOG 662DOCBOOKSTYLE 663have_docbook 664can_build_docs_FALSE 665can_build_docs_TRUE 666JADE 667NSGMLS 668YFLAGS 669YACC 670LEXLIB 671LEX_OUTPUT_ROOT 672LEX 673CPP 674OTOOL64 675OTOOL 676LIPO 677NMEDIT 678DSYMUTIL 679MANIFEST_TOOL 680RANLIB 681ac_ct_AR 682AR 683DLLTOOL 684OBJDUMP 685LN_S 686NM 687ac_ct_DUMPBIN 688DUMPBIN 689LD 690FGREP 691EGREP 692GREP 693SED 694host_os 695host_vendor 696host_cpu 697host 698build_os 699build_vendor 700build_cpu 701build 702LIBTOOL 703AR_FLAGS 704MAINT 705MAINTAINER_MODE_FALSE 706MAINTAINER_MODE_TRUE 707AM_BACKSLASH 708AM_DEFAULT_VERBOSITY 709AM_DEFAULT_V 710AM_V 711am__untar 712am__tar 713AMTAR 714am__leading_dot 715SET_MAKE 716AWK 717mkdir_p 718MKDIR_P 719INSTALL_STRIP_PROGRAM 720STRIP 721install_sh 722MAKEINFO 723AUTOHEADER 724AUTOMAKE 725AUTOCONF 726ACLOCAL 727VERSION 728PACKAGE 729CYGPATH_W 730am__isrc 731INSTALL_DATA 732INSTALL_SCRIPT 733INSTALL_PROGRAM 734OBJEXT 735EXEEXT 736ac_ct_CC 737CPPFLAGS 738LDFLAGS 739CFLAGS 740CC 741target_alias 742host_alias 743build_alias 744LIBS 745ECHO_T 746ECHO_N 747ECHO_C 748DEFS 749mandir 750localedir 751libdir 752psdir 753pdfdir 754dvidir 755htmldir 756infodir 757docdir 758oldincludedir 759includedir 760localstatedir 761sharedstatedir 762sysconfdir 763datadir 764datarootdir 765libexecdir 766sbindir 767bindir 768program_transform_name 769prefix 770exec_prefix 771PACKAGE_URL 772PACKAGE_BUGREPORT 773PACKAGE_STRING 774PACKAGE_VERSION 775PACKAGE_TARNAME 776PACKAGE_NAME 777PATH_SEPARATOR 778SHELL' 779ac_subst_files='' 780ac_user_opts=' 781enable_option_checking 782enable_silent_rules 783enable_maintainer_mode 784enable_shared 785enable_static 786with_pic 787enable_fast_install 788with_gnu_ld 789with_sysroot 790enable_libtool_lock 791enable_float4_byval 792enable_float8_byval 793with_pgsql 794with_pgsql_includedir 795with_pgsql_libdir 796with_pgsql_bindir 797with_sunifdef 798with_openssl 799with_pam 800with_memcached 801enable_rpath 802enable_sequence_lock 803enable_table_lock 804enable_cassert 805' 806 ac_precious_vars='build_alias 807host_alias 808target_alias 809CC 810CFLAGS 811LDFLAGS 812LIBS 813CPPFLAGS 814CPP 815YACC 816YFLAGS 817DOCBOOKSTYLE' 818 819 820# Initialize some variables set by options. 821ac_init_help= 822ac_init_version=false 823ac_unrecognized_opts= 824ac_unrecognized_sep= 825# The variables have the same names as the options, with 826# dashes changed to underlines. 827cache_file=/dev/null 828exec_prefix=NONE 829no_create= 830no_recursion= 831prefix=NONE 832program_prefix=NONE 833program_suffix=NONE 834program_transform_name=s,x,x, 835silent= 836site= 837srcdir= 838verbose= 839x_includes=NONE 840x_libraries=NONE 841 842# Installation directory options. 843# These are left unexpanded so users can "make install exec_prefix=/foo" 844# and all the variables that are supposed to be based on exec_prefix 845# by default will actually change. 846# Use braces instead of parens because sh, perl, etc. also accept them. 847# (The list follows the same order as the GNU Coding Standards.) 848bindir='${exec_prefix}/bin' 849sbindir='${exec_prefix}/sbin' 850libexecdir='${exec_prefix}/libexec' 851datarootdir='${prefix}/share' 852datadir='${datarootdir}' 853sysconfdir='${prefix}/etc' 854sharedstatedir='${prefix}/com' 855localstatedir='${prefix}/var' 856includedir='${prefix}/include' 857oldincludedir='/usr/include' 858docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 859infodir='${datarootdir}/info' 860htmldir='${docdir}' 861dvidir='${docdir}' 862pdfdir='${docdir}' 863psdir='${docdir}' 864libdir='${exec_prefix}/lib' 865localedir='${datarootdir}/locale' 866mandir='${datarootdir}/man' 867 868ac_prev= 869ac_dashdash= 870for ac_option 871do 872 # If the previous option needs an argument, assign it. 873 if test -n "$ac_prev"; then 874 eval $ac_prev=\$ac_option 875 ac_prev= 876 continue 877 fi 878 879 case $ac_option in 880 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 881 *=) ac_optarg= ;; 882 *) ac_optarg=yes ;; 883 esac 884 885 # Accept the important Cygnus configure options, so we can diagnose typos. 886 887 case $ac_dashdash$ac_option in 888 --) 889 ac_dashdash=yes ;; 890 891 -bindir | --bindir | --bindi | --bind | --bin | --bi) 892 ac_prev=bindir ;; 893 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 894 bindir=$ac_optarg ;; 895 896 -build | --build | --buil | --bui | --bu) 897 ac_prev=build_alias ;; 898 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 899 build_alias=$ac_optarg ;; 900 901 -cache-file | --cache-file | --cache-fil | --cache-fi \ 902 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 903 ac_prev=cache_file ;; 904 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 905 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 906 cache_file=$ac_optarg ;; 907 908 --config-cache | -C) 909 cache_file=config.cache ;; 910 911 -datadir | --datadir | --datadi | --datad) 912 ac_prev=datadir ;; 913 -datadir=* | --datadir=* | --datadi=* | --datad=*) 914 datadir=$ac_optarg ;; 915 916 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 917 | --dataroo | --dataro | --datar) 918 ac_prev=datarootdir ;; 919 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 920 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 921 datarootdir=$ac_optarg ;; 922 923 -disable-* | --disable-*) 924 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 925 # Reject names that are not valid shell variable names. 926 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 927 as_fn_error $? "invalid feature name: $ac_useropt" 928 ac_useropt_orig=$ac_useropt 929 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 930 case $ac_user_opts in 931 *" 932"enable_$ac_useropt" 933"*) ;; 934 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 935 ac_unrecognized_sep=', ';; 936 esac 937 eval enable_$ac_useropt=no ;; 938 939 -docdir | --docdir | --docdi | --doc | --do) 940 ac_prev=docdir ;; 941 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 942 docdir=$ac_optarg ;; 943 944 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 945 ac_prev=dvidir ;; 946 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 947 dvidir=$ac_optarg ;; 948 949 -enable-* | --enable-*) 950 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 951 # Reject names that are not valid shell variable names. 952 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 953 as_fn_error $? "invalid feature name: $ac_useropt" 954 ac_useropt_orig=$ac_useropt 955 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 956 case $ac_user_opts in 957 *" 958"enable_$ac_useropt" 959"*) ;; 960 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 961 ac_unrecognized_sep=', ';; 962 esac 963 eval enable_$ac_useropt=\$ac_optarg ;; 964 965 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 966 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 967 | --exec | --exe | --ex) 968 ac_prev=exec_prefix ;; 969 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 970 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 971 | --exec=* | --exe=* | --ex=*) 972 exec_prefix=$ac_optarg ;; 973 974 -gas | --gas | --ga | --g) 975 # Obsolete; use --with-gas. 976 with_gas=yes ;; 977 978 -help | --help | --hel | --he | -h) 979 ac_init_help=long ;; 980 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 981 ac_init_help=recursive ;; 982 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 983 ac_init_help=short ;; 984 985 -host | --host | --hos | --ho) 986 ac_prev=host_alias ;; 987 -host=* | --host=* | --hos=* | --ho=*) 988 host_alias=$ac_optarg ;; 989 990 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 991 ac_prev=htmldir ;; 992 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 993 | --ht=*) 994 htmldir=$ac_optarg ;; 995 996 -includedir | --includedir | --includedi | --included | --include \ 997 | --includ | --inclu | --incl | --inc) 998 ac_prev=includedir ;; 999 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1000 | --includ=* | --inclu=* | --incl=* | --inc=*) 1001 includedir=$ac_optarg ;; 1002 1003 -infodir | --infodir | --infodi | --infod | --info | --inf) 1004 ac_prev=infodir ;; 1005 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1006 infodir=$ac_optarg ;; 1007 1008 -libdir | --libdir | --libdi | --libd) 1009 ac_prev=libdir ;; 1010 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1011 libdir=$ac_optarg ;; 1012 1013 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1014 | --libexe | --libex | --libe) 1015 ac_prev=libexecdir ;; 1016 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1017 | --libexe=* | --libex=* | --libe=*) 1018 libexecdir=$ac_optarg ;; 1019 1020 -localedir | --localedir | --localedi | --localed | --locale) 1021 ac_prev=localedir ;; 1022 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1023 localedir=$ac_optarg ;; 1024 1025 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1026 | --localstate | --localstat | --localsta | --localst | --locals) 1027 ac_prev=localstatedir ;; 1028 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1029 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1030 localstatedir=$ac_optarg ;; 1031 1032 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1033 ac_prev=mandir ;; 1034 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1035 mandir=$ac_optarg ;; 1036 1037 -nfp | --nfp | --nf) 1038 # Obsolete; use --without-fp. 1039 with_fp=no ;; 1040 1041 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1042 | --no-cr | --no-c | -n) 1043 no_create=yes ;; 1044 1045 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1046 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1047 no_recursion=yes ;; 1048 1049 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1050 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1051 | --oldin | --oldi | --old | --ol | --o) 1052 ac_prev=oldincludedir ;; 1053 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1054 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1055 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1056 oldincludedir=$ac_optarg ;; 1057 1058 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1059 ac_prev=prefix ;; 1060 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1061 prefix=$ac_optarg ;; 1062 1063 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1064 | --program-pre | --program-pr | --program-p) 1065 ac_prev=program_prefix ;; 1066 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1067 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1068 program_prefix=$ac_optarg ;; 1069 1070 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1071 | --program-suf | --program-su | --program-s) 1072 ac_prev=program_suffix ;; 1073 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1074 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1075 program_suffix=$ac_optarg ;; 1076 1077 -program-transform-name | --program-transform-name \ 1078 | --program-transform-nam | --program-transform-na \ 1079 | --program-transform-n | --program-transform- \ 1080 | --program-transform | --program-transfor \ 1081 | --program-transfo | --program-transf \ 1082 | --program-trans | --program-tran \ 1083 | --progr-tra | --program-tr | --program-t) 1084 ac_prev=program_transform_name ;; 1085 -program-transform-name=* | --program-transform-name=* \ 1086 | --program-transform-nam=* | --program-transform-na=* \ 1087 | --program-transform-n=* | --program-transform-=* \ 1088 | --program-transform=* | --program-transfor=* \ 1089 | --program-transfo=* | --program-transf=* \ 1090 | --program-trans=* | --program-tran=* \ 1091 | --progr-tra=* | --program-tr=* | --program-t=*) 1092 program_transform_name=$ac_optarg ;; 1093 1094 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1095 ac_prev=pdfdir ;; 1096 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1097 pdfdir=$ac_optarg ;; 1098 1099 -psdir | --psdir | --psdi | --psd | --ps) 1100 ac_prev=psdir ;; 1101 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1102 psdir=$ac_optarg ;; 1103 1104 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1105 | -silent | --silent | --silen | --sile | --sil) 1106 silent=yes ;; 1107 1108 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1109 ac_prev=sbindir ;; 1110 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1111 | --sbi=* | --sb=*) 1112 sbindir=$ac_optarg ;; 1113 1114 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1115 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1116 | --sharedst | --shareds | --shared | --share | --shar \ 1117 | --sha | --sh) 1118 ac_prev=sharedstatedir ;; 1119 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1120 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1121 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1122 | --sha=* | --sh=*) 1123 sharedstatedir=$ac_optarg ;; 1124 1125 -site | --site | --sit) 1126 ac_prev=site ;; 1127 -site=* | --site=* | --sit=*) 1128 site=$ac_optarg ;; 1129 1130 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1131 ac_prev=srcdir ;; 1132 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1133 srcdir=$ac_optarg ;; 1134 1135 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1136 | --syscon | --sysco | --sysc | --sys | --sy) 1137 ac_prev=sysconfdir ;; 1138 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1139 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1140 sysconfdir=$ac_optarg ;; 1141 1142 -target | --target | --targe | --targ | --tar | --ta | --t) 1143 ac_prev=target_alias ;; 1144 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1145 target_alias=$ac_optarg ;; 1146 1147 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1148 verbose=yes ;; 1149 1150 -version | --version | --versio | --versi | --vers | -V) 1151 ac_init_version=: ;; 1152 1153 -with-* | --with-*) 1154 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1155 # Reject names that are not valid shell variable names. 1156 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1157 as_fn_error $? "invalid package name: $ac_useropt" 1158 ac_useropt_orig=$ac_useropt 1159 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1160 case $ac_user_opts in 1161 *" 1162"with_$ac_useropt" 1163"*) ;; 1164 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1165 ac_unrecognized_sep=', ';; 1166 esac 1167 eval with_$ac_useropt=\$ac_optarg ;; 1168 1169 -without-* | --without-*) 1170 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1171 # Reject names that are not valid shell variable names. 1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1173 as_fn_error $? "invalid package name: $ac_useropt" 1174 ac_useropt_orig=$ac_useropt 1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1176 case $ac_user_opts in 1177 *" 1178"with_$ac_useropt" 1179"*) ;; 1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1181 ac_unrecognized_sep=', ';; 1182 esac 1183 eval with_$ac_useropt=no ;; 1184 1185 --x) 1186 # Obsolete; use --with-x. 1187 with_x=yes ;; 1188 1189 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1190 | --x-incl | --x-inc | --x-in | --x-i) 1191 ac_prev=x_includes ;; 1192 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1193 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1194 x_includes=$ac_optarg ;; 1195 1196 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1197 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1198 ac_prev=x_libraries ;; 1199 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1200 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1201 x_libraries=$ac_optarg ;; 1202 1203 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1204Try \`$0 --help' for more information" 1205 ;; 1206 1207 *=*) 1208 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1209 # Reject names that are not valid shell variable names. 1210 case $ac_envvar in #( 1211 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1212 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1213 esac 1214 eval $ac_envvar=\$ac_optarg 1215 export $ac_envvar ;; 1216 1217 *) 1218 # FIXME: should be removed in autoconf 3.0. 1219 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1220 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1221 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1222 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1223 ;; 1224 1225 esac 1226done 1227 1228if test -n "$ac_prev"; then 1229 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1230 as_fn_error $? "missing argument to $ac_option" 1231fi 1232 1233if test -n "$ac_unrecognized_opts"; then 1234 case $enable_option_checking in 1235 no) ;; 1236 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1237 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1238 esac 1239fi 1240 1241# Check all directory arguments for consistency. 1242for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1243 datadir sysconfdir sharedstatedir localstatedir includedir \ 1244 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1245 libdir localedir mandir 1246do 1247 eval ac_val=\$$ac_var 1248 # Remove trailing slashes. 1249 case $ac_val in 1250 */ ) 1251 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1252 eval $ac_var=\$ac_val;; 1253 esac 1254 # Be sure to have absolute directory names. 1255 case $ac_val in 1256 [\\/$]* | ?:[\\/]* ) continue;; 1257 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1258 esac 1259 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1260done 1261 1262# There might be people who depend on the old broken behavior: `$host' 1263# used to hold the argument of --host etc. 1264# FIXME: To remove some day. 1265build=$build_alias 1266host=$host_alias 1267target=$target_alias 1268 1269# FIXME: To remove some day. 1270if test "x$host_alias" != x; then 1271 if test "x$build_alias" = x; then 1272 cross_compiling=maybe 1273 elif test "x$build_alias" != "x$host_alias"; then 1274 cross_compiling=yes 1275 fi 1276fi 1277 1278ac_tool_prefix= 1279test -n "$host_alias" && ac_tool_prefix=$host_alias- 1280 1281test "$silent" = yes && exec 6>/dev/null 1282 1283 1284ac_pwd=`pwd` && test -n "$ac_pwd" && 1285ac_ls_di=`ls -di .` && 1286ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1287 as_fn_error $? "working directory cannot be determined" 1288test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1289 as_fn_error $? "pwd does not report name of working directory" 1290 1291 1292# Find the source files, if location was not specified. 1293if test -z "$srcdir"; then 1294 ac_srcdir_defaulted=yes 1295 # Try the directory containing this script, then the parent directory. 1296 ac_confdir=`$as_dirname -- "$as_myself" || 1297$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1298 X"$as_myself" : 'X\(//\)[^/]' \| \ 1299 X"$as_myself" : 'X\(//\)$' \| \ 1300 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1301$as_echo X"$as_myself" | 1302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1303 s//\1/ 1304 q 1305 } 1306 /^X\(\/\/\)[^/].*/{ 1307 s//\1/ 1308 q 1309 } 1310 /^X\(\/\/\)$/{ 1311 s//\1/ 1312 q 1313 } 1314 /^X\(\/\).*/{ 1315 s//\1/ 1316 q 1317 } 1318 s/.*/./; q'` 1319 srcdir=$ac_confdir 1320 if test ! -r "$srcdir/$ac_unique_file"; then 1321 srcdir=.. 1322 fi 1323else 1324 ac_srcdir_defaulted=no 1325fi 1326if test ! -r "$srcdir/$ac_unique_file"; then 1327 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1328 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1329fi 1330ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1331ac_abs_confdir=`( 1332 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1333 pwd)` 1334# When building in place, set srcdir=. 1335if test "$ac_abs_confdir" = "$ac_pwd"; then 1336 srcdir=. 1337fi 1338# Remove unnecessary trailing slashes from srcdir. 1339# Double slashes in file names in object file debugging info 1340# mess up M-x gdb in Emacs. 1341case $srcdir in 1342*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1343esac 1344for ac_var in $ac_precious_vars; do 1345 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1346 eval ac_env_${ac_var}_value=\$${ac_var} 1347 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1348 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1349done 1350 1351# 1352# Report the --help message. 1353# 1354if test "$ac_init_help" = "long"; then 1355 # Omit some internal or obsolete options to make the list less imposing. 1356 # This message is too long to be a string in the A/UX 3.1 sh. 1357 cat <<_ACEOF 1358\`configure' configures pgpool-II 4.1.10 to adapt to many kinds of systems. 1359 1360Usage: $0 [OPTION]... [VAR=VALUE]... 1361 1362To assign environment variables (e.g., CC, CFLAGS...), specify them as 1363VAR=VALUE. See below for descriptions of some of the useful variables. 1364 1365Defaults for the options are specified in brackets. 1366 1367Configuration: 1368 -h, --help display this help and exit 1369 --help=short display options specific to this package 1370 --help=recursive display the short help of all the included packages 1371 -V, --version display version information and exit 1372 -q, --quiet, --silent do not print \`checking ...' messages 1373 --cache-file=FILE cache test results in FILE [disabled] 1374 -C, --config-cache alias for \`--cache-file=config.cache' 1375 -n, --no-create do not create output files 1376 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1377 1378Installation directories: 1379 --prefix=PREFIX install architecture-independent files in PREFIX 1380 [$ac_default_prefix] 1381 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1382 [PREFIX] 1383 1384By default, \`make install' will install all the files in 1385\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1386an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1387for instance \`--prefix=\$HOME'. 1388 1389For better control, use the options below. 1390 1391Fine tuning of the installation directories: 1392 --bindir=DIR user executables [EPREFIX/bin] 1393 --sbindir=DIR system admin executables [EPREFIX/sbin] 1394 --libexecdir=DIR program executables [EPREFIX/libexec] 1395 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1396 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1397 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1398 --libdir=DIR object code libraries [EPREFIX/lib] 1399 --includedir=DIR C header files [PREFIX/include] 1400 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1401 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1402 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1403 --infodir=DIR info documentation [DATAROOTDIR/info] 1404 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1405 --mandir=DIR man documentation [DATAROOTDIR/man] 1406 --docdir=DIR documentation root [DATAROOTDIR/doc/pgpool-II] 1407 --htmldir=DIR html documentation [DOCDIR] 1408 --dvidir=DIR dvi documentation [DOCDIR] 1409 --pdfdir=DIR pdf documentation [DOCDIR] 1410 --psdir=DIR ps documentation [DOCDIR] 1411_ACEOF 1412 1413 cat <<\_ACEOF 1414 1415Program names: 1416 --program-prefix=PREFIX prepend PREFIX to installed program names 1417 --program-suffix=SUFFIX append SUFFIX to installed program names 1418 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1419 1420System types: 1421 --build=BUILD configure for building on BUILD [guessed] 1422 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1423_ACEOF 1424fi 1425 1426if test -n "$ac_init_help"; then 1427 case $ac_init_help in 1428 short | recursive ) echo "Configuration of pgpool-II 4.1.10:";; 1429 esac 1430 cat <<\_ACEOF 1431 1432Optional Features: 1433 --disable-option-checking ignore unrecognized --enable/--with options 1434 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1435 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1436 --enable-silent-rules less verbose build output (undo: "make V=1") 1437 --disable-silent-rules verbose build output (undo: "make V=0") 1438 --enable-maintainer-mode 1439 enable make rules and dependencies not useful (and 1440 sometimes confusing) to the casual installer 1441 --enable-shared[=PKGS] build shared libraries [default=yes] 1442 --enable-static[=PKGS] build static libraries [default=yes] 1443 --enable-fast-install[=PKGS] 1444 optimize for fast installation [default=yes] 1445 --disable-libtool-lock avoid locking (might break parallel builds) 1446 --disable-float4-byval disable float4 passed by value 1447 --disable-float8-byval disable float8 passed by value 1448 --disable-rpath do not embed shared library search path in executables 1449 --enable-sequence-lock insert_lock compatible with pgpool-II 3.0 series 1450 (until 3.0.4) 1451 --enable-table-lock insert_lock compatible with pgpool-II 2.2 and 2.3 1452 series 1453 --enable-cassert build with assertion checks 1454 1455Optional Packages: 1456 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1457 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1458 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1459 both] 1460 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1461 --with-sysroot=DIR Search for dependent libraries within DIR 1462 (or the compiler's sysroot if not specified). 1463 --with-pgsql=DIR site header files for PostgreSQL in DIR 1464 --with-pgsql-includedir=DIR site header files for PostgreSQL in DIR 1465 --with-pgsql-libdir=DIR site library files for PostgreSQL in DIR 1466 --with-pgsql-bindir=DIR site executable files for PostgreSQL in DIR 1467 --with-sunifdef=DIR install path for sunifdef utility 1468 --with-openssl build with OpenSSL support 1469 --with-pam build with PAM support 1470 --with-memcached=DIR site header files for libmemcached in DIR 1471 1472Some influential environment variables: 1473 CC C compiler command 1474 CFLAGS C compiler flags 1475 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1476 nonstandard directory <lib dir> 1477 LIBS libraries to pass to the linker, e.g. -l<library> 1478 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1479 you have headers in a nonstandard directory <include dir> 1480 CPP C preprocessor 1481 YACC The `Yet Another Compiler Compiler' implementation to use. 1482 Defaults to the first program found out of: `bison -y', `byacc', 1483 `yacc'. 1484 YFLAGS The list of arguments that will be passed by default to $YACC. 1485 This script will default YFLAGS to the empty string to avoid a 1486 default value of `-d' given by some make applications. 1487 DOCBOOKSTYLE 1488 location of DocBook stylesheets 1489 1490Use these variables to override the choices made by `configure' or to help 1491it to find libraries and programs with nonstandard names/locations. 1492 1493Report bugs to <pgpool-hackers@pgpool.net>. 1494_ACEOF 1495ac_status=$? 1496fi 1497 1498if test "$ac_init_help" = "recursive"; then 1499 # If there are subdirs, report their specific --help. 1500 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1501 test -d "$ac_dir" || 1502 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1503 continue 1504 ac_builddir=. 1505 1506case "$ac_dir" in 1507.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1508*) 1509 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1510 # A ".." for each directory in $ac_dir_suffix. 1511 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1512 case $ac_top_builddir_sub in 1513 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1514 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1515 esac ;; 1516esac 1517ac_abs_top_builddir=$ac_pwd 1518ac_abs_builddir=$ac_pwd$ac_dir_suffix 1519# for backward compatibility: 1520ac_top_builddir=$ac_top_build_prefix 1521 1522case $srcdir in 1523 .) # We are building in place. 1524 ac_srcdir=. 1525 ac_top_srcdir=$ac_top_builddir_sub 1526 ac_abs_top_srcdir=$ac_pwd ;; 1527 [\\/]* | ?:[\\/]* ) # Absolute name. 1528 ac_srcdir=$srcdir$ac_dir_suffix; 1529 ac_top_srcdir=$srcdir 1530 ac_abs_top_srcdir=$srcdir ;; 1531 *) # Relative name. 1532 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1533 ac_top_srcdir=$ac_top_build_prefix$srcdir 1534 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1535esac 1536ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1537 1538 cd "$ac_dir" || { ac_status=$?; continue; } 1539 # Check for guested configure. 1540 if test -f "$ac_srcdir/configure.gnu"; then 1541 echo && 1542 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1543 elif test -f "$ac_srcdir/configure"; then 1544 echo && 1545 $SHELL "$ac_srcdir/configure" --help=recursive 1546 else 1547 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1548 fi || ac_status=$? 1549 cd "$ac_pwd" || { ac_status=$?; break; } 1550 done 1551fi 1552 1553test -n "$ac_init_help" && exit $ac_status 1554if $ac_init_version; then 1555 cat <<\_ACEOF 1556pgpool-II configure 4.1.10 1557generated by GNU Autoconf 2.69 1558 1559Copyright (C) 2012 Free Software Foundation, Inc. 1560This configure script is free software; the Free Software Foundation 1561gives unlimited permission to copy, distribute and modify it. 1562_ACEOF 1563 exit 1564fi 1565 1566## ------------------------ ## 1567## Autoconf initialization. ## 1568## ------------------------ ## 1569 1570# ac_fn_c_try_compile LINENO 1571# -------------------------- 1572# Try to compile conftest.$ac_ext, and return whether this succeeded. 1573ac_fn_c_try_compile () 1574{ 1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1576 rm -f conftest.$ac_objext 1577 if { { ac_try="$ac_compile" 1578case "(($ac_try" in 1579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1580 *) ac_try_echo=$ac_try;; 1581esac 1582eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1583$as_echo "$ac_try_echo"; } >&5 1584 (eval "$ac_compile") 2>conftest.err 1585 ac_status=$? 1586 if test -s conftest.err; then 1587 grep -v '^ *+' conftest.err >conftest.er1 1588 cat conftest.er1 >&5 1589 mv -f conftest.er1 conftest.err 1590 fi 1591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1592 test $ac_status = 0; } && { 1593 test -z "$ac_c_werror_flag" || 1594 test ! -s conftest.err 1595 } && test -s conftest.$ac_objext; then : 1596 ac_retval=0 1597else 1598 $as_echo "$as_me: failed program was:" >&5 1599sed 's/^/| /' conftest.$ac_ext >&5 1600 1601 ac_retval=1 1602fi 1603 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1604 as_fn_set_status $ac_retval 1605 1606} # ac_fn_c_try_compile 1607 1608# ac_fn_c_try_link LINENO 1609# ----------------------- 1610# Try to link conftest.$ac_ext, and return whether this succeeded. 1611ac_fn_c_try_link () 1612{ 1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1614 rm -f conftest.$ac_objext conftest$ac_exeext 1615 if { { ac_try="$ac_link" 1616case "(($ac_try" in 1617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1618 *) ac_try_echo=$ac_try;; 1619esac 1620eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1621$as_echo "$ac_try_echo"; } >&5 1622 (eval "$ac_link") 2>conftest.err 1623 ac_status=$? 1624 if test -s conftest.err; then 1625 grep -v '^ *+' conftest.err >conftest.er1 1626 cat conftest.er1 >&5 1627 mv -f conftest.er1 conftest.err 1628 fi 1629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1630 test $ac_status = 0; } && { 1631 test -z "$ac_c_werror_flag" || 1632 test ! -s conftest.err 1633 } && test -s conftest$ac_exeext && { 1634 test "$cross_compiling" = yes || 1635 test -x conftest$ac_exeext 1636 }; then : 1637 ac_retval=0 1638else 1639 $as_echo "$as_me: failed program was:" >&5 1640sed 's/^/| /' conftest.$ac_ext >&5 1641 1642 ac_retval=1 1643fi 1644 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1645 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1646 # interfere with the next link command; also delete a directory that is 1647 # left behind by Apple's compiler. We do this before executing the actions. 1648 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1650 as_fn_set_status $ac_retval 1651 1652} # ac_fn_c_try_link 1653 1654# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1655# ------------------------------------------------------- 1656# Tests whether HEADER exists and can be compiled using the include files in 1657# INCLUDES, setting the cache variable VAR accordingly. 1658ac_fn_c_check_header_compile () 1659{ 1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1662$as_echo_n "checking for $2... " >&6; } 1663if eval \${$3+:} false; then : 1664 $as_echo_n "(cached) " >&6 1665else 1666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1667/* end confdefs.h. */ 1668$4 1669#include <$2> 1670_ACEOF 1671if ac_fn_c_try_compile "$LINENO"; then : 1672 eval "$3=yes" 1673else 1674 eval "$3=no" 1675fi 1676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1677fi 1678eval ac_res=\$$3 1679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1680$as_echo "$ac_res" >&6; } 1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1682 1683} # ac_fn_c_check_header_compile 1684 1685# ac_fn_c_try_cpp LINENO 1686# ---------------------- 1687# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1688ac_fn_c_try_cpp () 1689{ 1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1691 if { { ac_try="$ac_cpp conftest.$ac_ext" 1692case "(($ac_try" in 1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1694 *) ac_try_echo=$ac_try;; 1695esac 1696eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1697$as_echo "$ac_try_echo"; } >&5 1698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1699 ac_status=$? 1700 if test -s conftest.err; then 1701 grep -v '^ *+' conftest.err >conftest.er1 1702 cat conftest.er1 >&5 1703 mv -f conftest.er1 conftest.err 1704 fi 1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1706 test $ac_status = 0; } > conftest.i && { 1707 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1708 test ! -s conftest.err 1709 }; then : 1710 ac_retval=0 1711else 1712 $as_echo "$as_me: failed program was:" >&5 1713sed 's/^/| /' conftest.$ac_ext >&5 1714 1715 ac_retval=1 1716fi 1717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1718 as_fn_set_status $ac_retval 1719 1720} # ac_fn_c_try_cpp 1721 1722# ac_fn_c_try_run LINENO 1723# ---------------------- 1724# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1725# that executables *can* be run. 1726ac_fn_c_try_run () 1727{ 1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1729 if { { ac_try="$ac_link" 1730case "(($ac_try" in 1731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1732 *) ac_try_echo=$ac_try;; 1733esac 1734eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1735$as_echo "$ac_try_echo"; } >&5 1736 (eval "$ac_link") 2>&5 1737 ac_status=$? 1738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1739 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1740 { { case "(($ac_try" in 1741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1742 *) ac_try_echo=$ac_try;; 1743esac 1744eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1745$as_echo "$ac_try_echo"; } >&5 1746 (eval "$ac_try") 2>&5 1747 ac_status=$? 1748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1749 test $ac_status = 0; }; }; then : 1750 ac_retval=0 1751else 1752 $as_echo "$as_me: program exited with status $ac_status" >&5 1753 $as_echo "$as_me: failed program was:" >&5 1754sed 's/^/| /' conftest.$ac_ext >&5 1755 1756 ac_retval=$ac_status 1757fi 1758 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1759 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1760 as_fn_set_status $ac_retval 1761 1762} # ac_fn_c_try_run 1763 1764# ac_fn_c_check_func LINENO FUNC VAR 1765# ---------------------------------- 1766# Tests whether FUNC exists, setting the cache variable VAR accordingly 1767ac_fn_c_check_func () 1768{ 1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1771$as_echo_n "checking for $2... " >&6; } 1772if eval \${$3+:} false; then : 1773 $as_echo_n "(cached) " >&6 1774else 1775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1776/* end confdefs.h. */ 1777/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1778 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1779#define $2 innocuous_$2 1780 1781/* System header to define __stub macros and hopefully few prototypes, 1782 which can conflict with char $2 (); below. 1783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1784 <limits.h> exists even on freestanding compilers. */ 1785 1786#ifdef __STDC__ 1787# include <limits.h> 1788#else 1789# include <assert.h> 1790#endif 1791 1792#undef $2 1793 1794/* Override any GCC internal prototype to avoid an error. 1795 Use char because int might match the return type of a GCC 1796 builtin and then its argument prototype would still apply. */ 1797#ifdef __cplusplus 1798extern "C" 1799#endif 1800char $2 (); 1801/* The GNU C library defines this for functions which it implements 1802 to always fail with ENOSYS. Some functions are actually named 1803 something starting with __ and the normal name is an alias. */ 1804#if defined __stub_$2 || defined __stub___$2 1805choke me 1806#endif 1807 1808int 1809main () 1810{ 1811return $2 (); 1812 ; 1813 return 0; 1814} 1815_ACEOF 1816if ac_fn_c_try_link "$LINENO"; then : 1817 eval "$3=yes" 1818else 1819 eval "$3=no" 1820fi 1821rm -f core conftest.err conftest.$ac_objext \ 1822 conftest$ac_exeext conftest.$ac_ext 1823fi 1824eval ac_res=\$$3 1825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1826$as_echo "$ac_res" >&6; } 1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1828 1829} # ac_fn_c_check_func 1830 1831# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1832# ------------------------------------------------------- 1833# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1834# the include files in INCLUDES and setting the cache variable VAR 1835# accordingly. 1836ac_fn_c_check_header_mongrel () 1837{ 1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1839 if eval \${$3+:} false; then : 1840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1841$as_echo_n "checking for $2... " >&6; } 1842if eval \${$3+:} false; then : 1843 $as_echo_n "(cached) " >&6 1844fi 1845eval ac_res=\$$3 1846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1847$as_echo "$ac_res" >&6; } 1848else 1849 # Is the header compilable? 1850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1851$as_echo_n "checking $2 usability... " >&6; } 1852cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1853/* end confdefs.h. */ 1854$4 1855#include <$2> 1856_ACEOF 1857if ac_fn_c_try_compile "$LINENO"; then : 1858 ac_header_compiler=yes 1859else 1860 ac_header_compiler=no 1861fi 1862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1864$as_echo "$ac_header_compiler" >&6; } 1865 1866# Is the header present? 1867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1868$as_echo_n "checking $2 presence... " >&6; } 1869cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1870/* end confdefs.h. */ 1871#include <$2> 1872_ACEOF 1873if ac_fn_c_try_cpp "$LINENO"; then : 1874 ac_header_preproc=yes 1875else 1876 ac_header_preproc=no 1877fi 1878rm -f conftest.err conftest.i conftest.$ac_ext 1879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1880$as_echo "$ac_header_preproc" >&6; } 1881 1882# So? What about this header? 1883case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1884 yes:no: ) 1885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1886$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1888$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1889 ;; 1890 no:yes:* ) 1891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1892$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1894$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1896$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1898$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1900$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1901( $as_echo "## ---------------------------------------- ## 1902## Report this to pgpool-hackers@pgpool.net ## 1903## ---------------------------------------- ##" 1904 ) | sed "s/^/$as_me: WARNING: /" >&2 1905 ;; 1906esac 1907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1908$as_echo_n "checking for $2... " >&6; } 1909if eval \${$3+:} false; then : 1910 $as_echo_n "(cached) " >&6 1911else 1912 eval "$3=\$ac_header_compiler" 1913fi 1914eval ac_res=\$$3 1915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1916$as_echo "$ac_res" >&6; } 1917fi 1918 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1919 1920} # ac_fn_c_check_header_mongrel 1921 1922# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1923# ------------------------------------------- 1924# Tests whether TYPE exists after having included INCLUDES, setting cache 1925# variable VAR accordingly. 1926ac_fn_c_check_type () 1927{ 1928 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1930$as_echo_n "checking for $2... " >&6; } 1931if eval \${$3+:} false; then : 1932 $as_echo_n "(cached) " >&6 1933else 1934 eval "$3=no" 1935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1936/* end confdefs.h. */ 1937$4 1938int 1939main () 1940{ 1941if (sizeof ($2)) 1942 return 0; 1943 ; 1944 return 0; 1945} 1946_ACEOF 1947if ac_fn_c_try_compile "$LINENO"; then : 1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1949/* end confdefs.h. */ 1950$4 1951int 1952main () 1953{ 1954if (sizeof (($2))) 1955 return 0; 1956 ; 1957 return 0; 1958} 1959_ACEOF 1960if ac_fn_c_try_compile "$LINENO"; then : 1961 1962else 1963 eval "$3=yes" 1964fi 1965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1966fi 1967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1968fi 1969eval ac_res=\$$3 1970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1971$as_echo "$ac_res" >&6; } 1972 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1973 1974} # ac_fn_c_check_type 1975 1976# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1977# -------------------------------------------- 1978# Tries to find the compile-time value of EXPR in a program that includes 1979# INCLUDES, setting VAR accordingly. Returns whether the value could be 1980# computed 1981ac_fn_c_compute_int () 1982{ 1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1984 if test "$cross_compiling" = yes; then 1985 # Depending upon the size, compute the lo and hi bounds. 1986cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1987/* end confdefs.h. */ 1988$4 1989int 1990main () 1991{ 1992static int test_array [1 - 2 * !(($2) >= 0)]; 1993test_array [0] = 0; 1994return test_array [0]; 1995 1996 ; 1997 return 0; 1998} 1999_ACEOF 2000if ac_fn_c_try_compile "$LINENO"; then : 2001 ac_lo=0 ac_mid=0 2002 while :; do 2003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2004/* end confdefs.h. */ 2005$4 2006int 2007main () 2008{ 2009static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2010test_array [0] = 0; 2011return test_array [0]; 2012 2013 ; 2014 return 0; 2015} 2016_ACEOF 2017if ac_fn_c_try_compile "$LINENO"; then : 2018 ac_hi=$ac_mid; break 2019else 2020 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2021 if test $ac_lo -le $ac_mid; then 2022 ac_lo= ac_hi= 2023 break 2024 fi 2025 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2026fi 2027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2028 done 2029else 2030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2031/* end confdefs.h. */ 2032$4 2033int 2034main () 2035{ 2036static int test_array [1 - 2 * !(($2) < 0)]; 2037test_array [0] = 0; 2038return test_array [0]; 2039 2040 ; 2041 return 0; 2042} 2043_ACEOF 2044if ac_fn_c_try_compile "$LINENO"; then : 2045 ac_hi=-1 ac_mid=-1 2046 while :; do 2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2048/* end confdefs.h. */ 2049$4 2050int 2051main () 2052{ 2053static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2054test_array [0] = 0; 2055return test_array [0]; 2056 2057 ; 2058 return 0; 2059} 2060_ACEOF 2061if ac_fn_c_try_compile "$LINENO"; then : 2062 ac_lo=$ac_mid; break 2063else 2064 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2065 if test $ac_mid -le $ac_hi; then 2066 ac_lo= ac_hi= 2067 break 2068 fi 2069 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2070fi 2071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2072 done 2073else 2074 ac_lo= ac_hi= 2075fi 2076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2077fi 2078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2079# Binary search between lo and hi bounds. 2080while test "x$ac_lo" != "x$ac_hi"; do 2081 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2083/* end confdefs.h. */ 2084$4 2085int 2086main () 2087{ 2088static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2089test_array [0] = 0; 2090return test_array [0]; 2091 2092 ; 2093 return 0; 2094} 2095_ACEOF 2096if ac_fn_c_try_compile "$LINENO"; then : 2097 ac_hi=$ac_mid 2098else 2099 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2100fi 2101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2102done 2103case $ac_lo in #(( 2104?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2105'') ac_retval=1 ;; 2106esac 2107 else 2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2109/* end confdefs.h. */ 2110$4 2111static long int longval () { return $2; } 2112static unsigned long int ulongval () { return $2; } 2113#include <stdio.h> 2114#include <stdlib.h> 2115int 2116main () 2117{ 2118 2119 FILE *f = fopen ("conftest.val", "w"); 2120 if (! f) 2121 return 1; 2122 if (($2) < 0) 2123 { 2124 long int i = longval (); 2125 if (i != ($2)) 2126 return 1; 2127 fprintf (f, "%ld", i); 2128 } 2129 else 2130 { 2131 unsigned long int i = ulongval (); 2132 if (i != ($2)) 2133 return 1; 2134 fprintf (f, "%lu", i); 2135 } 2136 /* Do not output a trailing newline, as this causes \r\n confusion 2137 on some platforms. */ 2138 return ferror (f) || fclose (f) != 0; 2139 2140 ; 2141 return 0; 2142} 2143_ACEOF 2144if ac_fn_c_try_run "$LINENO"; then : 2145 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2146else 2147 ac_retval=1 2148fi 2149rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2150 conftest.$ac_objext conftest.beam conftest.$ac_ext 2151rm -f conftest.val 2152 2153 fi 2154 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2155 as_fn_set_status $ac_retval 2156 2157} # ac_fn_c_compute_int 2158 2159# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2160# ---------------------------------------------------- 2161# Tries to find if the field MEMBER exists in type AGGR, after including 2162# INCLUDES, setting cache variable VAR accordingly. 2163ac_fn_c_check_member () 2164{ 2165 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2167$as_echo_n "checking for $2.$3... " >&6; } 2168if eval \${$4+:} false; then : 2169 $as_echo_n "(cached) " >&6 2170else 2171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2172/* end confdefs.h. */ 2173$5 2174int 2175main () 2176{ 2177static $2 ac_aggr; 2178if (ac_aggr.$3) 2179return 0; 2180 ; 2181 return 0; 2182} 2183_ACEOF 2184if ac_fn_c_try_compile "$LINENO"; then : 2185 eval "$4=yes" 2186else 2187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2188/* end confdefs.h. */ 2189$5 2190int 2191main () 2192{ 2193static $2 ac_aggr; 2194if (sizeof ac_aggr.$3) 2195return 0; 2196 ; 2197 return 0; 2198} 2199_ACEOF 2200if ac_fn_c_try_compile "$LINENO"; then : 2201 eval "$4=yes" 2202else 2203 eval "$4=no" 2204fi 2205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2206fi 2207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2208fi 2209eval ac_res=\$$4 2210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2211$as_echo "$ac_res" >&6; } 2212 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2213 2214} # ac_fn_c_check_member 2215cat >config.log <<_ACEOF 2216This file contains any messages produced by compilers while 2217running configure, to aid debugging if configure makes a mistake. 2218 2219It was created by pgpool-II $as_me 4.1.10, which was 2220generated by GNU Autoconf 2.69. Invocation command line was 2221 2222 $ $0 $@ 2223 2224_ACEOF 2225exec 5>>config.log 2226{ 2227cat <<_ASUNAME 2228## --------- ## 2229## Platform. ## 2230## --------- ## 2231 2232hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2233uname -m = `(uname -m) 2>/dev/null || echo unknown` 2234uname -r = `(uname -r) 2>/dev/null || echo unknown` 2235uname -s = `(uname -s) 2>/dev/null || echo unknown` 2236uname -v = `(uname -v) 2>/dev/null || echo unknown` 2237 2238/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2239/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2240 2241/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2242/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2243/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2244/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2245/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2246/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2247/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2248 2249_ASUNAME 2250 2251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2252for as_dir in $PATH 2253do 2254 IFS=$as_save_IFS 2255 test -z "$as_dir" && as_dir=. 2256 $as_echo "PATH: $as_dir" 2257 done 2258IFS=$as_save_IFS 2259 2260} >&5 2261 2262cat >&5 <<_ACEOF 2263 2264 2265## ----------- ## 2266## Core tests. ## 2267## ----------- ## 2268 2269_ACEOF 2270 2271 2272# Keep a trace of the command line. 2273# Strip out --no-create and --no-recursion so they do not pile up. 2274# Strip out --silent because we don't want to record it for future runs. 2275# Also quote any args containing shell meta-characters. 2276# Make two passes to allow for proper duplicate-argument suppression. 2277ac_configure_args= 2278ac_configure_args0= 2279ac_configure_args1= 2280ac_must_keep_next=false 2281for ac_pass in 1 2 2282do 2283 for ac_arg 2284 do 2285 case $ac_arg in 2286 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2287 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2288 | -silent | --silent | --silen | --sile | --sil) 2289 continue ;; 2290 *\'*) 2291 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2292 esac 2293 case $ac_pass in 2294 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2295 2) 2296 as_fn_append ac_configure_args1 " '$ac_arg'" 2297 if test $ac_must_keep_next = true; then 2298 ac_must_keep_next=false # Got value, back to normal. 2299 else 2300 case $ac_arg in 2301 *=* | --config-cache | -C | -disable-* | --disable-* \ 2302 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2303 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2304 | -with-* | --with-* | -without-* | --without-* | --x) 2305 case "$ac_configure_args0 " in 2306 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2307 esac 2308 ;; 2309 -* ) ac_must_keep_next=true ;; 2310 esac 2311 fi 2312 as_fn_append ac_configure_args " '$ac_arg'" 2313 ;; 2314 esac 2315 done 2316done 2317{ ac_configure_args0=; unset ac_configure_args0;} 2318{ ac_configure_args1=; unset ac_configure_args1;} 2319 2320# When interrupted or exit'd, cleanup temporary files, and complete 2321# config.log. We remove comments because anyway the quotes in there 2322# would cause problems or look ugly. 2323# WARNING: Use '\'' to represent an apostrophe within the trap. 2324# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2325trap 'exit_status=$? 2326 # Save into config.log some information that might help in debugging. 2327 { 2328 echo 2329 2330 $as_echo "## ---------------- ## 2331## Cache variables. ## 2332## ---------------- ##" 2333 echo 2334 # The following way of writing the cache mishandles newlines in values, 2335( 2336 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2337 eval ac_val=\$$ac_var 2338 case $ac_val in #( 2339 *${as_nl}*) 2340 case $ac_var in #( 2341 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2342$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2343 esac 2344 case $ac_var in #( 2345 _ | IFS | as_nl) ;; #( 2346 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2347 *) { eval $ac_var=; unset $ac_var;} ;; 2348 esac ;; 2349 esac 2350 done 2351 (set) 2>&1 | 2352 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2353 *${as_nl}ac_space=\ *) 2354 sed -n \ 2355 "s/'\''/'\''\\\\'\'''\''/g; 2356 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2357 ;; #( 2358 *) 2359 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2360 ;; 2361 esac | 2362 sort 2363) 2364 echo 2365 2366 $as_echo "## ----------------- ## 2367## Output variables. ## 2368## ----------------- ##" 2369 echo 2370 for ac_var in $ac_subst_vars 2371 do 2372 eval ac_val=\$$ac_var 2373 case $ac_val in 2374 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2375 esac 2376 $as_echo "$ac_var='\''$ac_val'\''" 2377 done | sort 2378 echo 2379 2380 if test -n "$ac_subst_files"; then 2381 $as_echo "## ------------------- ## 2382## File substitutions. ## 2383## ------------------- ##" 2384 echo 2385 for ac_var in $ac_subst_files 2386 do 2387 eval ac_val=\$$ac_var 2388 case $ac_val in 2389 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2390 esac 2391 $as_echo "$ac_var='\''$ac_val'\''" 2392 done | sort 2393 echo 2394 fi 2395 2396 if test -s confdefs.h; then 2397 $as_echo "## ----------- ## 2398## confdefs.h. ## 2399## ----------- ##" 2400 echo 2401 cat confdefs.h 2402 echo 2403 fi 2404 test "$ac_signal" != 0 && 2405 $as_echo "$as_me: caught signal $ac_signal" 2406 $as_echo "$as_me: exit $exit_status" 2407 } >&5 2408 rm -f core *.core core.conftest.* && 2409 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2410 exit $exit_status 2411' 0 2412for ac_signal in 1 2 13 15; do 2413 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2414done 2415ac_signal=0 2416 2417# confdefs.h avoids OS command line length limits that DEFS can exceed. 2418rm -f -r conftest* confdefs.h 2419 2420$as_echo "/* confdefs.h */" > confdefs.h 2421 2422# Predefined preprocessor variables. 2423 2424cat >>confdefs.h <<_ACEOF 2425#define PACKAGE_NAME "$PACKAGE_NAME" 2426_ACEOF 2427 2428cat >>confdefs.h <<_ACEOF 2429#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2430_ACEOF 2431 2432cat >>confdefs.h <<_ACEOF 2433#define PACKAGE_VERSION "$PACKAGE_VERSION" 2434_ACEOF 2435 2436cat >>confdefs.h <<_ACEOF 2437#define PACKAGE_STRING "$PACKAGE_STRING" 2438_ACEOF 2439 2440cat >>confdefs.h <<_ACEOF 2441#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2442_ACEOF 2443 2444cat >>confdefs.h <<_ACEOF 2445#define PACKAGE_URL "$PACKAGE_URL" 2446_ACEOF 2447 2448 2449# Let the site file select an alternate cache file if it wants to. 2450# Prefer an explicitly selected file to automatically selected ones. 2451ac_site_file1=NONE 2452ac_site_file2=NONE 2453if test -n "$CONFIG_SITE"; then 2454 # We do not want a PATH search for config.site. 2455 case $CONFIG_SITE in #(( 2456 -*) ac_site_file1=./$CONFIG_SITE;; 2457 */*) ac_site_file1=$CONFIG_SITE;; 2458 *) ac_site_file1=./$CONFIG_SITE;; 2459 esac 2460elif test "x$prefix" != xNONE; then 2461 ac_site_file1=$prefix/share/config.site 2462 ac_site_file2=$prefix/etc/config.site 2463else 2464 ac_site_file1=$ac_default_prefix/share/config.site 2465 ac_site_file2=$ac_default_prefix/etc/config.site 2466fi 2467for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2468do 2469 test "x$ac_site_file" = xNONE && continue 2470 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2471 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2472$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2473 sed 's/^/| /' "$ac_site_file" >&5 2474 . "$ac_site_file" \ 2475 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2476$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2477as_fn_error $? "failed to load site script $ac_site_file 2478See \`config.log' for more details" "$LINENO" 5; } 2479 fi 2480done 2481 2482if test -r "$cache_file"; then 2483 # Some versions of bash will fail to source /dev/null (special files 2484 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2485 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2486 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2487$as_echo "$as_me: loading cache $cache_file" >&6;} 2488 case $cache_file in 2489 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2490 *) . "./$cache_file";; 2491 esac 2492 fi 2493else 2494 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2495$as_echo "$as_me: creating cache $cache_file" >&6;} 2496 >$cache_file 2497fi 2498 2499# Check that the precious variables saved in the cache have kept the same 2500# value. 2501ac_cache_corrupted=false 2502for ac_var in $ac_precious_vars; do 2503 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2504 eval ac_new_set=\$ac_env_${ac_var}_set 2505 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2506 eval ac_new_val=\$ac_env_${ac_var}_value 2507 case $ac_old_set,$ac_new_set in 2508 set,) 2509 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2510$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2511 ac_cache_corrupted=: ;; 2512 ,set) 2513 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2514$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2515 ac_cache_corrupted=: ;; 2516 ,);; 2517 *) 2518 if test "x$ac_old_val" != "x$ac_new_val"; then 2519 # differences in whitespace do not lead to failure. 2520 ac_old_val_w=`echo x $ac_old_val` 2521 ac_new_val_w=`echo x $ac_new_val` 2522 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2523 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2524$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2525 ac_cache_corrupted=: 2526 else 2527 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2528$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2529 eval $ac_var=\$ac_old_val 2530 fi 2531 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2532$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2533 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2534$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2535 fi;; 2536 esac 2537 # Pass precious variables to config.status. 2538 if test "$ac_new_set" = set; then 2539 case $ac_new_val in 2540 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2541 *) ac_arg=$ac_var=$ac_new_val ;; 2542 esac 2543 case " $ac_configure_args " in 2544 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2545 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2546 esac 2547 fi 2548done 2549if $ac_cache_corrupted; then 2550 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2551$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2552 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2553$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2554 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2555fi 2556## -------------------- ## 2557## Main body of script. ## 2558## -------------------- ## 2559 2560ac_ext=c 2561ac_cpp='$CPP $CPPFLAGS' 2562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2564ac_compiler_gnu=$ac_cv_c_compiler_gnu 2565 2566 2567 2568ac_ext=c 2569ac_cpp='$CPP $CPPFLAGS' 2570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2572ac_compiler_gnu=$ac_cv_c_compiler_gnu 2573if test -n "$ac_tool_prefix"; then 2574 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2575set dummy ${ac_tool_prefix}gcc; ac_word=$2 2576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2577$as_echo_n "checking for $ac_word... " >&6; } 2578if ${ac_cv_prog_CC+:} false; then : 2579 $as_echo_n "(cached) " >&6 2580else 2581 if test -n "$CC"; then 2582 ac_cv_prog_CC="$CC" # Let the user override the test. 2583else 2584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2585for as_dir in $PATH 2586do 2587 IFS=$as_save_IFS 2588 test -z "$as_dir" && as_dir=. 2589 for ac_exec_ext in '' $ac_executable_extensions; do 2590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2591 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2593 break 2 2594 fi 2595done 2596 done 2597IFS=$as_save_IFS 2598 2599fi 2600fi 2601CC=$ac_cv_prog_CC 2602if test -n "$CC"; then 2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2604$as_echo "$CC" >&6; } 2605else 2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2607$as_echo "no" >&6; } 2608fi 2609 2610 2611fi 2612if test -z "$ac_cv_prog_CC"; then 2613 ac_ct_CC=$CC 2614 # Extract the first word of "gcc", so it can be a program name with args. 2615set dummy gcc; ac_word=$2 2616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2617$as_echo_n "checking for $ac_word... " >&6; } 2618if ${ac_cv_prog_ac_ct_CC+:} false; then : 2619 $as_echo_n "(cached) " >&6 2620else 2621 if test -n "$ac_ct_CC"; then 2622 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2623else 2624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2625for as_dir in $PATH 2626do 2627 IFS=$as_save_IFS 2628 test -z "$as_dir" && as_dir=. 2629 for ac_exec_ext in '' $ac_executable_extensions; do 2630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2631 ac_cv_prog_ac_ct_CC="gcc" 2632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2633 break 2 2634 fi 2635done 2636 done 2637IFS=$as_save_IFS 2638 2639fi 2640fi 2641ac_ct_CC=$ac_cv_prog_ac_ct_CC 2642if test -n "$ac_ct_CC"; then 2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2644$as_echo "$ac_ct_CC" >&6; } 2645else 2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2647$as_echo "no" >&6; } 2648fi 2649 2650 if test "x$ac_ct_CC" = x; then 2651 CC="" 2652 else 2653 case $cross_compiling:$ac_tool_warned in 2654yes:) 2655{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2656$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2657ac_tool_warned=yes ;; 2658esac 2659 CC=$ac_ct_CC 2660 fi 2661else 2662 CC="$ac_cv_prog_CC" 2663fi 2664 2665if test -z "$CC"; then 2666 if test -n "$ac_tool_prefix"; then 2667 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2668set dummy ${ac_tool_prefix}cc; ac_word=$2 2669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2670$as_echo_n "checking for $ac_word... " >&6; } 2671if ${ac_cv_prog_CC+:} false; then : 2672 $as_echo_n "(cached) " >&6 2673else 2674 if test -n "$CC"; then 2675 ac_cv_prog_CC="$CC" # Let the user override the test. 2676else 2677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2678for as_dir in $PATH 2679do 2680 IFS=$as_save_IFS 2681 test -z "$as_dir" && as_dir=. 2682 for ac_exec_ext in '' $ac_executable_extensions; do 2683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2684 ac_cv_prog_CC="${ac_tool_prefix}cc" 2685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2686 break 2 2687 fi 2688done 2689 done 2690IFS=$as_save_IFS 2691 2692fi 2693fi 2694CC=$ac_cv_prog_CC 2695if test -n "$CC"; then 2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2697$as_echo "$CC" >&6; } 2698else 2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2700$as_echo "no" >&6; } 2701fi 2702 2703 2704 fi 2705fi 2706if test -z "$CC"; then 2707 # Extract the first word of "cc", so it can be a program name with args. 2708set dummy cc; ac_word=$2 2709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2710$as_echo_n "checking for $ac_word... " >&6; } 2711if ${ac_cv_prog_CC+:} false; then : 2712 $as_echo_n "(cached) " >&6 2713else 2714 if test -n "$CC"; then 2715 ac_cv_prog_CC="$CC" # Let the user override the test. 2716else 2717 ac_prog_rejected=no 2718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2719for as_dir in $PATH 2720do 2721 IFS=$as_save_IFS 2722 test -z "$as_dir" && as_dir=. 2723 for ac_exec_ext in '' $ac_executable_extensions; do 2724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2725 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2726 ac_prog_rejected=yes 2727 continue 2728 fi 2729 ac_cv_prog_CC="cc" 2730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2731 break 2 2732 fi 2733done 2734 done 2735IFS=$as_save_IFS 2736 2737if test $ac_prog_rejected = yes; then 2738 # We found a bogon in the path, so make sure we never use it. 2739 set dummy $ac_cv_prog_CC 2740 shift 2741 if test $# != 0; then 2742 # We chose a different compiler from the bogus one. 2743 # However, it has the same basename, so the bogon will be chosen 2744 # first if we set CC to just the basename; use the full file name. 2745 shift 2746 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2747 fi 2748fi 2749fi 2750fi 2751CC=$ac_cv_prog_CC 2752if test -n "$CC"; then 2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2754$as_echo "$CC" >&6; } 2755else 2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2757$as_echo "no" >&6; } 2758fi 2759 2760 2761fi 2762if test -z "$CC"; then 2763 if test -n "$ac_tool_prefix"; then 2764 for ac_prog in cl.exe 2765 do 2766 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2767set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2769$as_echo_n "checking for $ac_word... " >&6; } 2770if ${ac_cv_prog_CC+:} false; then : 2771 $as_echo_n "(cached) " >&6 2772else 2773 if test -n "$CC"; then 2774 ac_cv_prog_CC="$CC" # Let the user override the test. 2775else 2776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2777for as_dir in $PATH 2778do 2779 IFS=$as_save_IFS 2780 test -z "$as_dir" && as_dir=. 2781 for ac_exec_ext in '' $ac_executable_extensions; do 2782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2783 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2785 break 2 2786 fi 2787done 2788 done 2789IFS=$as_save_IFS 2790 2791fi 2792fi 2793CC=$ac_cv_prog_CC 2794if test -n "$CC"; then 2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2796$as_echo "$CC" >&6; } 2797else 2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2799$as_echo "no" >&6; } 2800fi 2801 2802 2803 test -n "$CC" && break 2804 done 2805fi 2806if test -z "$CC"; then 2807 ac_ct_CC=$CC 2808 for ac_prog in cl.exe 2809do 2810 # Extract the first word of "$ac_prog", so it can be a program name with args. 2811set dummy $ac_prog; ac_word=$2 2812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2813$as_echo_n "checking for $ac_word... " >&6; } 2814if ${ac_cv_prog_ac_ct_CC+:} false; then : 2815 $as_echo_n "(cached) " >&6 2816else 2817 if test -n "$ac_ct_CC"; then 2818 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2819else 2820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2821for as_dir in $PATH 2822do 2823 IFS=$as_save_IFS 2824 test -z "$as_dir" && as_dir=. 2825 for ac_exec_ext in '' $ac_executable_extensions; do 2826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2827 ac_cv_prog_ac_ct_CC="$ac_prog" 2828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2829 break 2 2830 fi 2831done 2832 done 2833IFS=$as_save_IFS 2834 2835fi 2836fi 2837ac_ct_CC=$ac_cv_prog_ac_ct_CC 2838if test -n "$ac_ct_CC"; then 2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2840$as_echo "$ac_ct_CC" >&6; } 2841else 2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2843$as_echo "no" >&6; } 2844fi 2845 2846 2847 test -n "$ac_ct_CC" && break 2848done 2849 2850 if test "x$ac_ct_CC" = x; then 2851 CC="" 2852 else 2853 case $cross_compiling:$ac_tool_warned in 2854yes:) 2855{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2856$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2857ac_tool_warned=yes ;; 2858esac 2859 CC=$ac_ct_CC 2860 fi 2861fi 2862 2863fi 2864 2865 2866test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2867$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2868as_fn_error $? "no acceptable C compiler found in \$PATH 2869See \`config.log' for more details" "$LINENO" 5; } 2870 2871# Provide some information about the compiler. 2872$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2873set X $ac_compile 2874ac_compiler=$2 2875for ac_option in --version -v -V -qversion; do 2876 { { ac_try="$ac_compiler $ac_option >&5" 2877case "(($ac_try" in 2878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2879 *) ac_try_echo=$ac_try;; 2880esac 2881eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2882$as_echo "$ac_try_echo"; } >&5 2883 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2884 ac_status=$? 2885 if test -s conftest.err; then 2886 sed '10a\ 2887... rest of stderr output deleted ... 2888 10q' conftest.err >conftest.er1 2889 cat conftest.er1 >&5 2890 fi 2891 rm -f conftest.er1 conftest.err 2892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2893 test $ac_status = 0; } 2894done 2895 2896cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2897/* end confdefs.h. */ 2898 2899int 2900main () 2901{ 2902 2903 ; 2904 return 0; 2905} 2906_ACEOF 2907ac_clean_files_save=$ac_clean_files 2908ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2909# Try to create an executable without -o first, disregard a.out. 2910# It will help us diagnose broken compilers, and finding out an intuition 2911# of exeext. 2912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2913$as_echo_n "checking whether the C compiler works... " >&6; } 2914ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2915 2916# The possible output files: 2917ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2918 2919ac_rmfiles= 2920for ac_file in $ac_files 2921do 2922 case $ac_file in 2923 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2924 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2925 esac 2926done 2927rm -f $ac_rmfiles 2928 2929if { { ac_try="$ac_link_default" 2930case "(($ac_try" in 2931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2932 *) ac_try_echo=$ac_try;; 2933esac 2934eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2935$as_echo "$ac_try_echo"; } >&5 2936 (eval "$ac_link_default") 2>&5 2937 ac_status=$? 2938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2939 test $ac_status = 0; }; then : 2940 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2941# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2942# in a Makefile. We should not override ac_cv_exeext if it was cached, 2943# so that the user can short-circuit this test for compilers unknown to 2944# Autoconf. 2945for ac_file in $ac_files '' 2946do 2947 test -f "$ac_file" || continue 2948 case $ac_file in 2949 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2950 ;; 2951 [ab].out ) 2952 # We found the default executable, but exeext='' is most 2953 # certainly right. 2954 break;; 2955 *.* ) 2956 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2957 then :; else 2958 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2959 fi 2960 # We set ac_cv_exeext here because the later test for it is not 2961 # safe: cross compilers may not add the suffix if given an `-o' 2962 # argument, so we may need to know it at that point already. 2963 # Even if this section looks crufty: it has the advantage of 2964 # actually working. 2965 break;; 2966 * ) 2967 break;; 2968 esac 2969done 2970test "$ac_cv_exeext" = no && ac_cv_exeext= 2971 2972else 2973 ac_file='' 2974fi 2975if test -z "$ac_file"; then : 2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2977$as_echo "no" >&6; } 2978$as_echo "$as_me: failed program was:" >&5 2979sed 's/^/| /' conftest.$ac_ext >&5 2980 2981{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2982$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2983as_fn_error 77 "C compiler cannot create executables 2984See \`config.log' for more details" "$LINENO" 5; } 2985else 2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2987$as_echo "yes" >&6; } 2988fi 2989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2990$as_echo_n "checking for C compiler default output file name... " >&6; } 2991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2992$as_echo "$ac_file" >&6; } 2993ac_exeext=$ac_cv_exeext 2994 2995rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2996ac_clean_files=$ac_clean_files_save 2997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2998$as_echo_n "checking for suffix of executables... " >&6; } 2999if { { ac_try="$ac_link" 3000case "(($ac_try" in 3001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3002 *) ac_try_echo=$ac_try;; 3003esac 3004eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3005$as_echo "$ac_try_echo"; } >&5 3006 (eval "$ac_link") 2>&5 3007 ac_status=$? 3008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3009 test $ac_status = 0; }; then : 3010 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3011# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3012# work properly (i.e., refer to `conftest.exe'), while it won't with 3013# `rm'. 3014for ac_file in conftest.exe conftest conftest.*; do 3015 test -f "$ac_file" || continue 3016 case $ac_file in 3017 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3018 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3019 break;; 3020 * ) break;; 3021 esac 3022done 3023else 3024 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3025$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3026as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3027See \`config.log' for more details" "$LINENO" 5; } 3028fi 3029rm -f conftest conftest$ac_cv_exeext 3030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3031$as_echo "$ac_cv_exeext" >&6; } 3032 3033rm -f conftest.$ac_ext 3034EXEEXT=$ac_cv_exeext 3035ac_exeext=$EXEEXT 3036cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3037/* end confdefs.h. */ 3038#include <stdio.h> 3039int 3040main () 3041{ 3042FILE *f = fopen ("conftest.out", "w"); 3043 return ferror (f) || fclose (f) != 0; 3044 3045 ; 3046 return 0; 3047} 3048_ACEOF 3049ac_clean_files="$ac_clean_files conftest.out" 3050# Check that the compiler produces executables we can run. If not, either 3051# the compiler is broken, or we cross compile. 3052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3053$as_echo_n "checking whether we are cross compiling... " >&6; } 3054if test "$cross_compiling" != yes; then 3055 { { ac_try="$ac_link" 3056case "(($ac_try" in 3057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3058 *) ac_try_echo=$ac_try;; 3059esac 3060eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3061$as_echo "$ac_try_echo"; } >&5 3062 (eval "$ac_link") 2>&5 3063 ac_status=$? 3064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3065 test $ac_status = 0; } 3066 if { ac_try='./conftest$ac_cv_exeext' 3067 { { case "(($ac_try" in 3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3069 *) ac_try_echo=$ac_try;; 3070esac 3071eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3072$as_echo "$ac_try_echo"; } >&5 3073 (eval "$ac_try") 2>&5 3074 ac_status=$? 3075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3076 test $ac_status = 0; }; }; then 3077 cross_compiling=no 3078 else 3079 if test "$cross_compiling" = maybe; then 3080 cross_compiling=yes 3081 else 3082 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3083$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3084as_fn_error $? "cannot run C compiled programs. 3085If you meant to cross compile, use \`--host'. 3086See \`config.log' for more details" "$LINENO" 5; } 3087 fi 3088 fi 3089fi 3090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3091$as_echo "$cross_compiling" >&6; } 3092 3093rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3094ac_clean_files=$ac_clean_files_save 3095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3096$as_echo_n "checking for suffix of object files... " >&6; } 3097if ${ac_cv_objext+:} false; then : 3098 $as_echo_n "(cached) " >&6 3099else 3100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3101/* end confdefs.h. */ 3102 3103int 3104main () 3105{ 3106 3107 ; 3108 return 0; 3109} 3110_ACEOF 3111rm -f conftest.o conftest.obj 3112if { { ac_try="$ac_compile" 3113case "(($ac_try" in 3114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3115 *) ac_try_echo=$ac_try;; 3116esac 3117eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3118$as_echo "$ac_try_echo"; } >&5 3119 (eval "$ac_compile") 2>&5 3120 ac_status=$? 3121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3122 test $ac_status = 0; }; then : 3123 for ac_file in conftest.o conftest.obj conftest.*; do 3124 test -f "$ac_file" || continue; 3125 case $ac_file in 3126 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3127 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3128 break;; 3129 esac 3130done 3131else 3132 $as_echo "$as_me: failed program was:" >&5 3133sed 's/^/| /' conftest.$ac_ext >&5 3134 3135{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3136$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3137as_fn_error $? "cannot compute suffix of object files: cannot compile 3138See \`config.log' for more details" "$LINENO" 5; } 3139fi 3140rm -f conftest.$ac_cv_objext conftest.$ac_ext 3141fi 3142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3143$as_echo "$ac_cv_objext" >&6; } 3144OBJEXT=$ac_cv_objext 3145ac_objext=$OBJEXT 3146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3147$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3148if ${ac_cv_c_compiler_gnu+:} false; then : 3149 $as_echo_n "(cached) " >&6 3150else 3151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3152/* end confdefs.h. */ 3153 3154int 3155main () 3156{ 3157#ifndef __GNUC__ 3158 choke me 3159#endif 3160 3161 ; 3162 return 0; 3163} 3164_ACEOF 3165if ac_fn_c_try_compile "$LINENO"; then : 3166 ac_compiler_gnu=yes 3167else 3168 ac_compiler_gnu=no 3169fi 3170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3171ac_cv_c_compiler_gnu=$ac_compiler_gnu 3172 3173fi 3174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3175$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3176if test $ac_compiler_gnu = yes; then 3177 GCC=yes 3178else 3179 GCC= 3180fi 3181ac_test_CFLAGS=${CFLAGS+set} 3182ac_save_CFLAGS=$CFLAGS 3183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3184$as_echo_n "checking whether $CC accepts -g... " >&6; } 3185if ${ac_cv_prog_cc_g+:} false; then : 3186 $as_echo_n "(cached) " >&6 3187else 3188 ac_save_c_werror_flag=$ac_c_werror_flag 3189 ac_c_werror_flag=yes 3190 ac_cv_prog_cc_g=no 3191 CFLAGS="-g" 3192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3193/* end confdefs.h. */ 3194 3195int 3196main () 3197{ 3198 3199 ; 3200 return 0; 3201} 3202_ACEOF 3203if ac_fn_c_try_compile "$LINENO"; then : 3204 ac_cv_prog_cc_g=yes 3205else 3206 CFLAGS="" 3207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3208/* end confdefs.h. */ 3209 3210int 3211main () 3212{ 3213 3214 ; 3215 return 0; 3216} 3217_ACEOF 3218if ac_fn_c_try_compile "$LINENO"; then : 3219 3220else 3221 ac_c_werror_flag=$ac_save_c_werror_flag 3222 CFLAGS="-g" 3223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3224/* end confdefs.h. */ 3225 3226int 3227main () 3228{ 3229 3230 ; 3231 return 0; 3232} 3233_ACEOF 3234if ac_fn_c_try_compile "$LINENO"; then : 3235 ac_cv_prog_cc_g=yes 3236fi 3237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3238fi 3239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3240fi 3241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3242 ac_c_werror_flag=$ac_save_c_werror_flag 3243fi 3244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3245$as_echo "$ac_cv_prog_cc_g" >&6; } 3246if test "$ac_test_CFLAGS" = set; then 3247 CFLAGS=$ac_save_CFLAGS 3248elif test $ac_cv_prog_cc_g = yes; then 3249 if test "$GCC" = yes; then 3250 CFLAGS="-g -O2" 3251 else 3252 CFLAGS="-g" 3253 fi 3254else 3255 if test "$GCC" = yes; then 3256 CFLAGS="-O2" 3257 else 3258 CFLAGS= 3259 fi 3260fi 3261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3262$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3263if ${ac_cv_prog_cc_c89+:} false; then : 3264 $as_echo_n "(cached) " >&6 3265else 3266 ac_cv_prog_cc_c89=no 3267ac_save_CC=$CC 3268cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3269/* end confdefs.h. */ 3270#include <stdarg.h> 3271#include <stdio.h> 3272struct stat; 3273/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3274struct buf { int x; }; 3275FILE * (*rcsopen) (struct buf *, struct stat *, int); 3276static char *e (p, i) 3277 char **p; 3278 int i; 3279{ 3280 return p[i]; 3281} 3282static char *f (char * (*g) (char **, int), char **p, ...) 3283{ 3284 char *s; 3285 va_list v; 3286 va_start (v,p); 3287 s = g (p, va_arg (v,int)); 3288 va_end (v); 3289 return s; 3290} 3291 3292/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3293 function prototypes and stuff, but not '\xHH' hex character constants. 3294 These don't provoke an error unfortunately, instead are silently treated 3295 as 'x'. The following induces an error, until -std is added to get 3296 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3297 array size at least. It's necessary to write '\x00'==0 to get something 3298 that's true only with -std. */ 3299int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3300 3301/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3302 inside strings and character constants. */ 3303#define FOO(x) 'x' 3304int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3305 3306int test (int i, double x); 3307struct s1 {int (*f) (int a);}; 3308struct s2 {int (*f) (double a);}; 3309int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3310int argc; 3311char **argv; 3312int 3313main () 3314{ 3315return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3316 ; 3317 return 0; 3318} 3319_ACEOF 3320for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3321 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3322do 3323 CC="$ac_save_CC $ac_arg" 3324 if ac_fn_c_try_compile "$LINENO"; then : 3325 ac_cv_prog_cc_c89=$ac_arg 3326fi 3327rm -f core conftest.err conftest.$ac_objext 3328 test "x$ac_cv_prog_cc_c89" != "xno" && break 3329done 3330rm -f conftest.$ac_ext 3331CC=$ac_save_CC 3332 3333fi 3334# AC_CACHE_VAL 3335case "x$ac_cv_prog_cc_c89" in 3336 x) 3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3338$as_echo "none needed" >&6; } ;; 3339 xno) 3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3341$as_echo "unsupported" >&6; } ;; 3342 *) 3343 CC="$CC $ac_cv_prog_cc_c89" 3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3345$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3346esac 3347if test "x$ac_cv_prog_cc_c89" != xno; then : 3348 3349fi 3350 3351ac_ext=c 3352ac_cpp='$CPP $CPPFLAGS' 3353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3355ac_compiler_gnu=$ac_cv_c_compiler_gnu 3356 3357 3358am__api_version='1.13' 3359 3360ac_aux_dir= 3361for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 3362 if test -f "$ac_dir/install-sh"; then 3363 ac_aux_dir=$ac_dir 3364 ac_install_sh="$ac_aux_dir/install-sh -c" 3365 break 3366 elif test -f "$ac_dir/install.sh"; then 3367 ac_aux_dir=$ac_dir 3368 ac_install_sh="$ac_aux_dir/install.sh -c" 3369 break 3370 elif test -f "$ac_dir/shtool"; then 3371 ac_aux_dir=$ac_dir 3372 ac_install_sh="$ac_aux_dir/shtool install -c" 3373 break 3374 fi 3375done 3376if test -z "$ac_aux_dir"; then 3377 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 3378fi 3379 3380# These three variables are undocumented and unsupported, 3381# and are intended to be withdrawn in a future Autoconf release. 3382# They can cause serious problems if a builder's source tree is in a directory 3383# whose full name contains unusual characters. 3384ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3385ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3386ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3387 3388 3389# Find a good install program. We prefer a C program (faster), 3390# so one script is as good as another. But avoid the broken or 3391# incompatible versions: 3392# SysV /etc/install, /usr/sbin/install 3393# SunOS /usr/etc/install 3394# IRIX /sbin/install 3395# AIX /bin/install 3396# AmigaOS /C/install, which installs bootblocks on floppy discs 3397# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3398# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3399# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3400# OS/2's system install, which has a completely different semantic 3401# ./install, which can be erroneously created by make from ./install.sh. 3402# Reject install programs that cannot install multiple files. 3403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3404$as_echo_n "checking for a BSD-compatible install... " >&6; } 3405if test -z "$INSTALL"; then 3406if ${ac_cv_path_install+:} false; then : 3407 $as_echo_n "(cached) " >&6 3408else 3409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3410for as_dir in $PATH 3411do 3412 IFS=$as_save_IFS 3413 test -z "$as_dir" && as_dir=. 3414 # Account for people who put trailing slashes in PATH elements. 3415case $as_dir/ in #(( 3416 ./ | .// | /[cC]/* | \ 3417 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3418 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3419 /usr/ucb/* ) ;; 3420 *) 3421 # OSF1 and SCO ODT 3.0 have their own names for install. 3422 # Don't use installbsd from OSF since it installs stuff as root 3423 # by default. 3424 for ac_prog in ginstall scoinst install; do 3425 for ac_exec_ext in '' $ac_executable_extensions; do 3426 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3427 if test $ac_prog = install && 3428 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3429 # AIX install. It has an incompatible calling convention. 3430 : 3431 elif test $ac_prog = install && 3432 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3433 # program-specific install script used by HP pwplus--don't use. 3434 : 3435 else 3436 rm -rf conftest.one conftest.two conftest.dir 3437 echo one > conftest.one 3438 echo two > conftest.two 3439 mkdir conftest.dir 3440 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3441 test -s conftest.one && test -s conftest.two && 3442 test -s conftest.dir/conftest.one && 3443 test -s conftest.dir/conftest.two 3444 then 3445 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3446 break 3 3447 fi 3448 fi 3449 fi 3450 done 3451 done 3452 ;; 3453esac 3454 3455 done 3456IFS=$as_save_IFS 3457 3458rm -rf conftest.one conftest.two conftest.dir 3459 3460fi 3461 if test "${ac_cv_path_install+set}" = set; then 3462 INSTALL=$ac_cv_path_install 3463 else 3464 # As a last resort, use the slow shell script. Don't cache a 3465 # value for INSTALL within a source directory, because that will 3466 # break other packages using the cache if that directory is 3467 # removed, or if the value is a relative name. 3468 INSTALL=$ac_install_sh 3469 fi 3470fi 3471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3472$as_echo "$INSTALL" >&6; } 3473 3474# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3475# It thinks the first close brace ends the variable substitution. 3476test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3477 3478test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3479 3480test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3481 3482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3483$as_echo_n "checking whether build environment is sane... " >&6; } 3484# Reject unsafe characters in $srcdir or the absolute working directory 3485# name. Accept space and tab only in the latter. 3486am_lf=' 3487' 3488case `pwd` in 3489 *[\\\"\#\$\&\'\`$am_lf]*) 3490 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3491esac 3492case $srcdir in 3493 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3494 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3495esac 3496 3497# Do 'set' in a subshell so we don't clobber the current shell's 3498# arguments. Must try -L first in case configure is actually a 3499# symlink; some systems play weird games with the mod time of symlinks 3500# (eg FreeBSD returns the mod time of the symlink's containing 3501# directory). 3502if ( 3503 am_has_slept=no 3504 for am_try in 1 2; do 3505 echo "timestamp, slept: $am_has_slept" > conftest.file 3506 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3507 if test "$*" = "X"; then 3508 # -L didn't work. 3509 set X `ls -t "$srcdir/configure" conftest.file` 3510 fi 3511 if test "$*" != "X $srcdir/configure conftest.file" \ 3512 && test "$*" != "X conftest.file $srcdir/configure"; then 3513 3514 # If neither matched, then we have a broken ls. This can happen 3515 # if, for instance, CONFIG_SHELL is bash and it inherits a 3516 # broken ls alias from the environment. This has actually 3517 # happened. Such a system could not be considered "sane". 3518 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3519 alias in your environment" "$LINENO" 5 3520 fi 3521 if test "$2" = conftest.file || test $am_try -eq 2; then 3522 break 3523 fi 3524 # Just in case. 3525 sleep 1 3526 am_has_slept=yes 3527 done 3528 test "$2" = conftest.file 3529 ) 3530then 3531 # Ok. 3532 : 3533else 3534 as_fn_error $? "newly created file is older than distributed files! 3535Check your system clock" "$LINENO" 5 3536fi 3537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3538$as_echo "yes" >&6; } 3539# If we didn't sleep, we still need to ensure time stamps of config.status and 3540# generated files are strictly newer. 3541am_sleep_pid= 3542if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3543 ( sleep 1 ) & 3544 am_sleep_pid=$! 3545fi 3546 3547rm -f conftest.file 3548 3549test "$program_prefix" != NONE && 3550 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3551# Use a double $ so make ignores it. 3552test "$program_suffix" != NONE && 3553 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3554# Double any \ or $. 3555# By default was `s,x,x', remove it if useless. 3556ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3557program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3558 3559# expand $ac_aux_dir to an absolute path 3560am_aux_dir=`cd $ac_aux_dir && pwd` 3561 3562if test x"${MISSING+set}" != xset; then 3563 case $am_aux_dir in 3564 *\ * | *\ *) 3565 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3566 *) 3567 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3568 esac 3569fi 3570# Use eval to expand $SHELL 3571if eval "$MISSING --is-lightweight"; then 3572 am_missing_run="$MISSING " 3573else 3574 am_missing_run= 3575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3576$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3577fi 3578 3579if test x"${install_sh}" != xset; then 3580 case $am_aux_dir in 3581 *\ * | *\ *) 3582 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3583 *) 3584 install_sh="\${SHELL} $am_aux_dir/install-sh" 3585 esac 3586fi 3587 3588# Installed binaries are usually stripped using 'strip' when the user 3589# run "make install-strip". However 'strip' might not be the right 3590# tool to use in cross-compilation environments, therefore Automake 3591# will honor the 'STRIP' environment variable to overrule this program. 3592if test "$cross_compiling" != no; then 3593 if test -n "$ac_tool_prefix"; then 3594 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3595set dummy ${ac_tool_prefix}strip; ac_word=$2 3596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3597$as_echo_n "checking for $ac_word... " >&6; } 3598if ${ac_cv_prog_STRIP+:} false; then : 3599 $as_echo_n "(cached) " >&6 3600else 3601 if test -n "$STRIP"; then 3602 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3603else 3604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3605for as_dir in $PATH 3606do 3607 IFS=$as_save_IFS 3608 test -z "$as_dir" && as_dir=. 3609 for ac_exec_ext in '' $ac_executable_extensions; do 3610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3611 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3613 break 2 3614 fi 3615done 3616 done 3617IFS=$as_save_IFS 3618 3619fi 3620fi 3621STRIP=$ac_cv_prog_STRIP 3622if test -n "$STRIP"; then 3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3624$as_echo "$STRIP" >&6; } 3625else 3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3627$as_echo "no" >&6; } 3628fi 3629 3630 3631fi 3632if test -z "$ac_cv_prog_STRIP"; then 3633 ac_ct_STRIP=$STRIP 3634 # Extract the first word of "strip", so it can be a program name with args. 3635set dummy strip; ac_word=$2 3636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3637$as_echo_n "checking for $ac_word... " >&6; } 3638if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3639 $as_echo_n "(cached) " >&6 3640else 3641 if test -n "$ac_ct_STRIP"; then 3642 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3643else 3644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3645for as_dir in $PATH 3646do 3647 IFS=$as_save_IFS 3648 test -z "$as_dir" && as_dir=. 3649 for ac_exec_ext in '' $ac_executable_extensions; do 3650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3651 ac_cv_prog_ac_ct_STRIP="strip" 3652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3653 break 2 3654 fi 3655done 3656 done 3657IFS=$as_save_IFS 3658 3659fi 3660fi 3661ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3662if test -n "$ac_ct_STRIP"; then 3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3664$as_echo "$ac_ct_STRIP" >&6; } 3665else 3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3667$as_echo "no" >&6; } 3668fi 3669 3670 if test "x$ac_ct_STRIP" = x; then 3671 STRIP=":" 3672 else 3673 case $cross_compiling:$ac_tool_warned in 3674yes:) 3675{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3676$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3677ac_tool_warned=yes ;; 3678esac 3679 STRIP=$ac_ct_STRIP 3680 fi 3681else 3682 STRIP="$ac_cv_prog_STRIP" 3683fi 3684 3685fi 3686INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3687 3688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3689$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3690if test -z "$MKDIR_P"; then 3691 if ${ac_cv_path_mkdir+:} false; then : 3692 $as_echo_n "(cached) " >&6 3693else 3694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3695for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3696do 3697 IFS=$as_save_IFS 3698 test -z "$as_dir" && as_dir=. 3699 for ac_prog in mkdir gmkdir; do 3700 for ac_exec_ext in '' $ac_executable_extensions; do 3701 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3702 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3703 'mkdir (GNU coreutils) '* | \ 3704 'mkdir (coreutils) '* | \ 3705 'mkdir (fileutils) '4.1*) 3706 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3707 break 3;; 3708 esac 3709 done 3710 done 3711 done 3712IFS=$as_save_IFS 3713 3714fi 3715 3716 test -d ./--version && rmdir ./--version 3717 if test "${ac_cv_path_mkdir+set}" = set; then 3718 MKDIR_P="$ac_cv_path_mkdir -p" 3719 else 3720 # As a last resort, use the slow shell script. Don't cache a 3721 # value for MKDIR_P within a source directory, because that will 3722 # break other packages using the cache if that directory is 3723 # removed, or if the value is a relative name. 3724 MKDIR_P="$ac_install_sh -d" 3725 fi 3726fi 3727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3728$as_echo "$MKDIR_P" >&6; } 3729 3730for ac_prog in gawk mawk nawk awk 3731do 3732 # Extract the first word of "$ac_prog", so it can be a program name with args. 3733set dummy $ac_prog; ac_word=$2 3734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3735$as_echo_n "checking for $ac_word... " >&6; } 3736if ${ac_cv_prog_AWK+:} false; then : 3737 $as_echo_n "(cached) " >&6 3738else 3739 if test -n "$AWK"; then 3740 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3741else 3742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3743for as_dir in $PATH 3744do 3745 IFS=$as_save_IFS 3746 test -z "$as_dir" && as_dir=. 3747 for ac_exec_ext in '' $ac_executable_extensions; do 3748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3749 ac_cv_prog_AWK="$ac_prog" 3750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3751 break 2 3752 fi 3753done 3754 done 3755IFS=$as_save_IFS 3756 3757fi 3758fi 3759AWK=$ac_cv_prog_AWK 3760if test -n "$AWK"; then 3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3762$as_echo "$AWK" >&6; } 3763else 3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3765$as_echo "no" >&6; } 3766fi 3767 3768 3769 test -n "$AWK" && break 3770done 3771 3772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3773$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3774set x ${MAKE-make} 3775ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3776if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3777 $as_echo_n "(cached) " >&6 3778else 3779 cat >conftest.make <<\_ACEOF 3780SHELL = /bin/sh 3781all: 3782 @echo '@@@%%%=$(MAKE)=@@@%%%' 3783_ACEOF 3784# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3785case `${MAKE-make} -f conftest.make 2>/dev/null` in 3786 *@@@%%%=?*=@@@%%%*) 3787 eval ac_cv_prog_make_${ac_make}_set=yes;; 3788 *) 3789 eval ac_cv_prog_make_${ac_make}_set=no;; 3790esac 3791rm -f conftest.make 3792fi 3793if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3795$as_echo "yes" >&6; } 3796 SET_MAKE= 3797else 3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3799$as_echo "no" >&6; } 3800 SET_MAKE="MAKE=${MAKE-make}" 3801fi 3802 3803rm -rf .tst 2>/dev/null 3804mkdir .tst 2>/dev/null 3805if test -d .tst; then 3806 am__leading_dot=. 3807else 3808 am__leading_dot=_ 3809fi 3810rmdir .tst 2>/dev/null 3811 3812# Check whether --enable-silent-rules was given. 3813if test "${enable_silent_rules+set}" = set; then : 3814 enableval=$enable_silent_rules; 3815fi 3816 3817case $enable_silent_rules in # ((( 3818 yes) AM_DEFAULT_VERBOSITY=0;; 3819 no) AM_DEFAULT_VERBOSITY=1;; 3820 *) AM_DEFAULT_VERBOSITY=1;; 3821esac 3822am_make=${MAKE-make} 3823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3824$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3825if ${am_cv_make_support_nested_variables+:} false; then : 3826 $as_echo_n "(cached) " >&6 3827else 3828 if $as_echo 'TRUE=$(BAR$(V)) 3829BAR0=false 3830BAR1=true 3831V=1 3832am__doit: 3833 @$(TRUE) 3834.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3835 am_cv_make_support_nested_variables=yes 3836else 3837 am_cv_make_support_nested_variables=no 3838fi 3839fi 3840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3841$as_echo "$am_cv_make_support_nested_variables" >&6; } 3842if test $am_cv_make_support_nested_variables = yes; then 3843 AM_V='$(V)' 3844 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3845else 3846 AM_V=$AM_DEFAULT_VERBOSITY 3847 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3848fi 3849AM_BACKSLASH='\' 3850 3851if test "`cd $srcdir && pwd`" != "`pwd`"; then 3852 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3853 # is not polluted with repeated "-I." 3854 am__isrc=' -I$(srcdir)' 3855 # test to see if srcdir already configured 3856 if test -f $srcdir/config.status; then 3857 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3858 fi 3859fi 3860 3861# test whether we have cygpath 3862if test -z "$CYGPATH_W"; then 3863 if (cygpath --version) >/dev/null 2>/dev/null; then 3864 CYGPATH_W='cygpath -w' 3865 else 3866 CYGPATH_W=echo 3867 fi 3868fi 3869 3870 3871# Define the identity of the package. 3872 PACKAGE='pgpool-II' 3873 VERSION='4.1.10' 3874 3875 3876cat >>confdefs.h <<_ACEOF 3877#define PACKAGE "$PACKAGE" 3878_ACEOF 3879 3880 3881cat >>confdefs.h <<_ACEOF 3882#define VERSION "$VERSION" 3883_ACEOF 3884 3885# Some tools Automake needs. 3886 3887ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3888 3889 3890AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3891 3892 3893AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3894 3895 3896AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3897 3898 3899MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3900 3901# For better backward compatibility. To be removed once Automake 1.9.x 3902# dies out for good. For more background, see: 3903# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3904# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3905mkdir_p='$(MKDIR_P)' 3906 3907# We need awk for the "check" target. The system "awk" is bad on 3908# some platforms. 3909# Always define AMTAR for backward compatibility. Yes, it's still used 3910# in the wild :-( We should find a proper way to deprecate it ... 3911AMTAR='$${TAR-tar}' 3912 3913 3914# We'll loop over all known methods to create a tar archive until one works. 3915_am_tools='gnutar pax cpio none' 3916 3917am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3918 3919 3920 3921 3922 3923 3924 3925 3926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3927$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3928 # Check whether --enable-maintainer-mode was given. 3929if test "${enable_maintainer_mode+set}" = set; then : 3930 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3931else 3932 USE_MAINTAINER_MODE=no 3933fi 3934 3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3936$as_echo "$USE_MAINTAINER_MODE" >&6; } 3937 if test $USE_MAINTAINER_MODE = yes; then 3938 MAINTAINER_MODE_TRUE= 3939 MAINTAINER_MODE_FALSE='#' 3940else 3941 MAINTAINER_MODE_TRUE='#' 3942 MAINTAINER_MODE_FALSE= 3943fi 3944 3945 MAINT=$MAINTAINER_MODE_TRUE 3946 3947 3948 3949# AC_PROG_RANLIB 3950AR_FLAGS="cr" 3951 3952case `pwd` in 3953 *\ * | *\ *) 3954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3955$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3956esac 3957 3958 3959 3960macro_version='2.4.2' 3961macro_revision='1.3337' 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975ltmain="$ac_aux_dir/ltmain.sh" 3976 3977# Make sure we can run config.sub. 3978$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3979 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3980 3981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3982$as_echo_n "checking build system type... " >&6; } 3983if ${ac_cv_build+:} false; then : 3984 $as_echo_n "(cached) " >&6 3985else 3986 ac_build_alias=$build_alias 3987test "x$ac_build_alias" = x && 3988 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3989test "x$ac_build_alias" = x && 3990 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3991ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3992 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3993 3994fi 3995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3996$as_echo "$ac_cv_build" >&6; } 3997case $ac_cv_build in 3998*-*-*) ;; 3999*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4000esac 4001build=$ac_cv_build 4002ac_save_IFS=$IFS; IFS='-' 4003set x $ac_cv_build 4004shift 4005build_cpu=$1 4006build_vendor=$2 4007shift; shift 4008# Remember, the first character of IFS is used to create $*, 4009# except with old shells: 4010build_os=$* 4011IFS=$ac_save_IFS 4012case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4013 4014 4015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4016$as_echo_n "checking host system type... " >&6; } 4017if ${ac_cv_host+:} false; then : 4018 $as_echo_n "(cached) " >&6 4019else 4020 if test "x$host_alias" = x; then 4021 ac_cv_host=$ac_cv_build 4022else 4023 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4024 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4025fi 4026 4027fi 4028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4029$as_echo "$ac_cv_host" >&6; } 4030case $ac_cv_host in 4031*-*-*) ;; 4032*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4033esac 4034host=$ac_cv_host 4035ac_save_IFS=$IFS; IFS='-' 4036set x $ac_cv_host 4037shift 4038host_cpu=$1 4039host_vendor=$2 4040shift; shift 4041# Remember, the first character of IFS is used to create $*, 4042# except with old shells: 4043host_os=$* 4044IFS=$ac_save_IFS 4045case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4046 4047 4048# Backslashify metacharacters that are still active within 4049# double-quoted strings. 4050sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4051 4052# Same as above, but do not quote variable references. 4053double_quote_subst='s/\(["`\\]\)/\\\1/g' 4054 4055# Sed substitution to delay expansion of an escaped shell variable in a 4056# double_quote_subst'ed string. 4057delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4058 4059# Sed substitution to delay expansion of an escaped single quote. 4060delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4061 4062# Sed substitution to avoid accidental globbing in evaled expressions 4063no_glob_subst='s/\*/\\\*/g' 4064 4065ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4066ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4067ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4068 4069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4070$as_echo_n "checking how to print strings... " >&6; } 4071# Test print first, because it will be a builtin if present. 4072if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4073 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4074 ECHO='print -r --' 4075elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4076 ECHO='printf %s\n' 4077else 4078 # Use this function as a fallback that always works. 4079 func_fallback_echo () 4080 { 4081 eval 'cat <<_LTECHO_EOF 4082$1 4083_LTECHO_EOF' 4084 } 4085 ECHO='func_fallback_echo' 4086fi 4087 4088# func_echo_all arg... 4089# Invoke $ECHO with all args, space-separated. 4090func_echo_all () 4091{ 4092 $ECHO "" 4093} 4094 4095case "$ECHO" in 4096 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4097$as_echo "printf" >&6; } ;; 4098 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4099$as_echo "print -r" >&6; } ;; 4100 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4101$as_echo "cat" >&6; } ;; 4102esac 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4118$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4119if ${ac_cv_path_SED+:} false; then : 4120 $as_echo_n "(cached) " >&6 4121else 4122 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4123 for ac_i in 1 2 3 4 5 6 7; do 4124 ac_script="$ac_script$as_nl$ac_script" 4125 done 4126 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4127 { ac_script=; unset ac_script;} 4128 if test -z "$SED"; then 4129 ac_path_SED_found=false 4130 # Loop through the user's path and test for each of PROGNAME-LIST 4131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4132for as_dir in $PATH 4133do 4134 IFS=$as_save_IFS 4135 test -z "$as_dir" && as_dir=. 4136 for ac_prog in sed gsed; do 4137 for ac_exec_ext in '' $ac_executable_extensions; do 4138 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4139 as_fn_executable_p "$ac_path_SED" || continue 4140# Check for GNU ac_path_SED and select it if it is found. 4141 # Check for GNU $ac_path_SED 4142case `"$ac_path_SED" --version 2>&1` in 4143*GNU*) 4144 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4145*) 4146 ac_count=0 4147 $as_echo_n 0123456789 >"conftest.in" 4148 while : 4149 do 4150 cat "conftest.in" "conftest.in" >"conftest.tmp" 4151 mv "conftest.tmp" "conftest.in" 4152 cp "conftest.in" "conftest.nl" 4153 $as_echo '' >> "conftest.nl" 4154 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4155 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4156 as_fn_arith $ac_count + 1 && ac_count=$as_val 4157 if test $ac_count -gt ${ac_path_SED_max-0}; then 4158 # Best one so far, save it but keep looking for a better one 4159 ac_cv_path_SED="$ac_path_SED" 4160 ac_path_SED_max=$ac_count 4161 fi 4162 # 10*(2^10) chars as input seems more than enough 4163 test $ac_count -gt 10 && break 4164 done 4165 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4166esac 4167 4168 $ac_path_SED_found && break 3 4169 done 4170 done 4171 done 4172IFS=$as_save_IFS 4173 if test -z "$ac_cv_path_SED"; then 4174 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4175 fi 4176else 4177 ac_cv_path_SED=$SED 4178fi 4179 4180fi 4181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4182$as_echo "$ac_cv_path_SED" >&6; } 4183 SED="$ac_cv_path_SED" 4184 rm -f conftest.sed 4185 4186test -z "$SED" && SED=sed 4187Xsed="$SED -e 1s/^X//" 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4200$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4201if ${ac_cv_path_GREP+:} false; then : 4202 $as_echo_n "(cached) " >&6 4203else 4204 if test -z "$GREP"; then 4205 ac_path_GREP_found=false 4206 # Loop through the user's path and test for each of PROGNAME-LIST 4207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4208for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4209do 4210 IFS=$as_save_IFS 4211 test -z "$as_dir" && as_dir=. 4212 for ac_prog in grep ggrep; do 4213 for ac_exec_ext in '' $ac_executable_extensions; do 4214 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4215 as_fn_executable_p "$ac_path_GREP" || continue 4216# Check for GNU ac_path_GREP and select it if it is found. 4217 # Check for GNU $ac_path_GREP 4218case `"$ac_path_GREP" --version 2>&1` in 4219*GNU*) 4220 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4221*) 4222 ac_count=0 4223 $as_echo_n 0123456789 >"conftest.in" 4224 while : 4225 do 4226 cat "conftest.in" "conftest.in" >"conftest.tmp" 4227 mv "conftest.tmp" "conftest.in" 4228 cp "conftest.in" "conftest.nl" 4229 $as_echo 'GREP' >> "conftest.nl" 4230 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4231 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4232 as_fn_arith $ac_count + 1 && ac_count=$as_val 4233 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4234 # Best one so far, save it but keep looking for a better one 4235 ac_cv_path_GREP="$ac_path_GREP" 4236 ac_path_GREP_max=$ac_count 4237 fi 4238 # 10*(2^10) chars as input seems more than enough 4239 test $ac_count -gt 10 && break 4240 done 4241 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4242esac 4243 4244 $ac_path_GREP_found && break 3 4245 done 4246 done 4247 done 4248IFS=$as_save_IFS 4249 if test -z "$ac_cv_path_GREP"; then 4250 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4251 fi 4252else 4253 ac_cv_path_GREP=$GREP 4254fi 4255 4256fi 4257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4258$as_echo "$ac_cv_path_GREP" >&6; } 4259 GREP="$ac_cv_path_GREP" 4260 4261 4262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4263$as_echo_n "checking for egrep... " >&6; } 4264if ${ac_cv_path_EGREP+:} false; then : 4265 $as_echo_n "(cached) " >&6 4266else 4267 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4268 then ac_cv_path_EGREP="$GREP -E" 4269 else 4270 if test -z "$EGREP"; then 4271 ac_path_EGREP_found=false 4272 # Loop through the user's path and test for each of PROGNAME-LIST 4273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4274for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4275do 4276 IFS=$as_save_IFS 4277 test -z "$as_dir" && as_dir=. 4278 for ac_prog in egrep; do 4279 for ac_exec_ext in '' $ac_executable_extensions; do 4280 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4281 as_fn_executable_p "$ac_path_EGREP" || continue 4282# Check for GNU ac_path_EGREP and select it if it is found. 4283 # Check for GNU $ac_path_EGREP 4284case `"$ac_path_EGREP" --version 2>&1` in 4285*GNU*) 4286 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4287*) 4288 ac_count=0 4289 $as_echo_n 0123456789 >"conftest.in" 4290 while : 4291 do 4292 cat "conftest.in" "conftest.in" >"conftest.tmp" 4293 mv "conftest.tmp" "conftest.in" 4294 cp "conftest.in" "conftest.nl" 4295 $as_echo 'EGREP' >> "conftest.nl" 4296 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4297 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4298 as_fn_arith $ac_count + 1 && ac_count=$as_val 4299 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4300 # Best one so far, save it but keep looking for a better one 4301 ac_cv_path_EGREP="$ac_path_EGREP" 4302 ac_path_EGREP_max=$ac_count 4303 fi 4304 # 10*(2^10) chars as input seems more than enough 4305 test $ac_count -gt 10 && break 4306 done 4307 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4308esac 4309 4310 $ac_path_EGREP_found && break 3 4311 done 4312 done 4313 done 4314IFS=$as_save_IFS 4315 if test -z "$ac_cv_path_EGREP"; then 4316 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4317 fi 4318else 4319 ac_cv_path_EGREP=$EGREP 4320fi 4321 4322 fi 4323fi 4324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4325$as_echo "$ac_cv_path_EGREP" >&6; } 4326 EGREP="$ac_cv_path_EGREP" 4327 4328 4329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4330$as_echo_n "checking for fgrep... " >&6; } 4331if ${ac_cv_path_FGREP+:} false; then : 4332 $as_echo_n "(cached) " >&6 4333else 4334 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4335 then ac_cv_path_FGREP="$GREP -F" 4336 else 4337 if test -z "$FGREP"; then 4338 ac_path_FGREP_found=false 4339 # Loop through the user's path and test for each of PROGNAME-LIST 4340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4341for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4342do 4343 IFS=$as_save_IFS 4344 test -z "$as_dir" && as_dir=. 4345 for ac_prog in fgrep; do 4346 for ac_exec_ext in '' $ac_executable_extensions; do 4347 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4348 as_fn_executable_p "$ac_path_FGREP" || continue 4349# Check for GNU ac_path_FGREP and select it if it is found. 4350 # Check for GNU $ac_path_FGREP 4351case `"$ac_path_FGREP" --version 2>&1` in 4352*GNU*) 4353 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4354*) 4355 ac_count=0 4356 $as_echo_n 0123456789 >"conftest.in" 4357 while : 4358 do 4359 cat "conftest.in" "conftest.in" >"conftest.tmp" 4360 mv "conftest.tmp" "conftest.in" 4361 cp "conftest.in" "conftest.nl" 4362 $as_echo 'FGREP' >> "conftest.nl" 4363 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4364 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4365 as_fn_arith $ac_count + 1 && ac_count=$as_val 4366 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4367 # Best one so far, save it but keep looking for a better one 4368 ac_cv_path_FGREP="$ac_path_FGREP" 4369 ac_path_FGREP_max=$ac_count 4370 fi 4371 # 10*(2^10) chars as input seems more than enough 4372 test $ac_count -gt 10 && break 4373 done 4374 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4375esac 4376 4377 $ac_path_FGREP_found && break 3 4378 done 4379 done 4380 done 4381IFS=$as_save_IFS 4382 if test -z "$ac_cv_path_FGREP"; then 4383 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4384 fi 4385else 4386 ac_cv_path_FGREP=$FGREP 4387fi 4388 4389 fi 4390fi 4391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4392$as_echo "$ac_cv_path_FGREP" >&6; } 4393 FGREP="$ac_cv_path_FGREP" 4394 4395 4396test -z "$GREP" && GREP=grep 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416# Check whether --with-gnu-ld was given. 4417if test "${with_gnu_ld+set}" = set; then : 4418 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4419else 4420 with_gnu_ld=no 4421fi 4422 4423ac_prog=ld 4424if test "$GCC" = yes; then 4425 # Check if gcc -print-prog-name=ld gives a path. 4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4427$as_echo_n "checking for ld used by $CC... " >&6; } 4428 case $host in 4429 *-*-mingw*) 4430 # gcc leaves a trailing carriage return which upsets mingw 4431 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4432 *) 4433 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4434 esac 4435 case $ac_prog in 4436 # Accept absolute paths. 4437 [\\/]* | ?:[\\/]*) 4438 re_direlt='/[^/][^/]*/\.\./' 4439 # Canonicalize the pathname of ld 4440 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4441 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4442 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4443 done 4444 test -z "$LD" && LD="$ac_prog" 4445 ;; 4446 "") 4447 # If it fails, then pretend we aren't using GCC. 4448 ac_prog=ld 4449 ;; 4450 *) 4451 # If it is relative, then search for the first ld in PATH. 4452 with_gnu_ld=unknown 4453 ;; 4454 esac 4455elif test "$with_gnu_ld" = yes; then 4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4457$as_echo_n "checking for GNU ld... " >&6; } 4458else 4459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4460$as_echo_n "checking for non-GNU ld... " >&6; } 4461fi 4462if ${lt_cv_path_LD+:} false; then : 4463 $as_echo_n "(cached) " >&6 4464else 4465 if test -z "$LD"; then 4466 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4467 for ac_dir in $PATH; do 4468 IFS="$lt_save_ifs" 4469 test -z "$ac_dir" && ac_dir=. 4470 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4471 lt_cv_path_LD="$ac_dir/$ac_prog" 4472 # Check to see if the program is GNU ld. I'd rather use --version, 4473 # but apparently some variants of GNU ld only accept -v. 4474 # Break only if it was the GNU/non-GNU ld that we prefer. 4475 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4476 *GNU* | *'with BFD'*) 4477 test "$with_gnu_ld" != no && break 4478 ;; 4479 *) 4480 test "$with_gnu_ld" != yes && break 4481 ;; 4482 esac 4483 fi 4484 done 4485 IFS="$lt_save_ifs" 4486else 4487 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4488fi 4489fi 4490 4491LD="$lt_cv_path_LD" 4492if test -n "$LD"; then 4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4494$as_echo "$LD" >&6; } 4495else 4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4497$as_echo "no" >&6; } 4498fi 4499test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4501$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4502if ${lt_cv_prog_gnu_ld+:} false; then : 4503 $as_echo_n "(cached) " >&6 4504else 4505 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4506case `$LD -v 2>&1 </dev/null` in 4507*GNU* | *'with BFD'*) 4508 lt_cv_prog_gnu_ld=yes 4509 ;; 4510*) 4511 lt_cv_prog_gnu_ld=no 4512 ;; 4513esac 4514fi 4515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4516$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4517with_gnu_ld=$lt_cv_prog_gnu_ld 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4528$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4529if ${lt_cv_path_NM+:} false; then : 4530 $as_echo_n "(cached) " >&6 4531else 4532 if test -n "$NM"; then 4533 # Let the user override the test. 4534 lt_cv_path_NM="$NM" 4535else 4536 lt_nm_to_check="${ac_tool_prefix}nm" 4537 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4538 lt_nm_to_check="$lt_nm_to_check nm" 4539 fi 4540 for lt_tmp_nm in $lt_nm_to_check; do 4541 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4542 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4543 IFS="$lt_save_ifs" 4544 test -z "$ac_dir" && ac_dir=. 4545 tmp_nm="$ac_dir/$lt_tmp_nm" 4546 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4547 # Check to see if the nm accepts a BSD-compat flag. 4548 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4549 # nm: unknown option "B" ignored 4550 # Tru64's nm complains that /dev/null is an invalid object file 4551 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4552 */dev/null* | *'Invalid file or object type'*) 4553 lt_cv_path_NM="$tmp_nm -B" 4554 break 4555 ;; 4556 *) 4557 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4558 */dev/null*) 4559 lt_cv_path_NM="$tmp_nm -p" 4560 break 4561 ;; 4562 *) 4563 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4564 continue # so that we can try to find one that supports BSD flags 4565 ;; 4566 esac 4567 ;; 4568 esac 4569 fi 4570 done 4571 IFS="$lt_save_ifs" 4572 done 4573 : ${lt_cv_path_NM=no} 4574fi 4575fi 4576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4577$as_echo "$lt_cv_path_NM" >&6; } 4578if test "$lt_cv_path_NM" != "no"; then 4579 NM="$lt_cv_path_NM" 4580else 4581 # Didn't find any BSD compatible name lister, look for dumpbin. 4582 if test -n "$DUMPBIN"; then : 4583 # Let the user override the test. 4584 else 4585 if test -n "$ac_tool_prefix"; then 4586 for ac_prog in dumpbin "link -dump" 4587 do 4588 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4589set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4591$as_echo_n "checking for $ac_word... " >&6; } 4592if ${ac_cv_prog_DUMPBIN+:} false; then : 4593 $as_echo_n "(cached) " >&6 4594else 4595 if test -n "$DUMPBIN"; then 4596 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4597else 4598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4599for as_dir in $PATH 4600do 4601 IFS=$as_save_IFS 4602 test -z "$as_dir" && as_dir=. 4603 for ac_exec_ext in '' $ac_executable_extensions; do 4604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4605 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4607 break 2 4608 fi 4609done 4610 done 4611IFS=$as_save_IFS 4612 4613fi 4614fi 4615DUMPBIN=$ac_cv_prog_DUMPBIN 4616if test -n "$DUMPBIN"; then 4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4618$as_echo "$DUMPBIN" >&6; } 4619else 4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4621$as_echo "no" >&6; } 4622fi 4623 4624 4625 test -n "$DUMPBIN" && break 4626 done 4627fi 4628if test -z "$DUMPBIN"; then 4629 ac_ct_DUMPBIN=$DUMPBIN 4630 for ac_prog in dumpbin "link -dump" 4631do 4632 # Extract the first word of "$ac_prog", so it can be a program name with args. 4633set dummy $ac_prog; ac_word=$2 4634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4635$as_echo_n "checking for $ac_word... " >&6; } 4636if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4637 $as_echo_n "(cached) " >&6 4638else 4639 if test -n "$ac_ct_DUMPBIN"; then 4640 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4641else 4642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4643for as_dir in $PATH 4644do 4645 IFS=$as_save_IFS 4646 test -z "$as_dir" && as_dir=. 4647 for ac_exec_ext in '' $ac_executable_extensions; do 4648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4649 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4651 break 2 4652 fi 4653done 4654 done 4655IFS=$as_save_IFS 4656 4657fi 4658fi 4659ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4660if test -n "$ac_ct_DUMPBIN"; then 4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4662$as_echo "$ac_ct_DUMPBIN" >&6; } 4663else 4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4665$as_echo "no" >&6; } 4666fi 4667 4668 4669 test -n "$ac_ct_DUMPBIN" && break 4670done 4671 4672 if test "x$ac_ct_DUMPBIN" = x; then 4673 DUMPBIN=":" 4674 else 4675 case $cross_compiling:$ac_tool_warned in 4676yes:) 4677{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4678$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4679ac_tool_warned=yes ;; 4680esac 4681 DUMPBIN=$ac_ct_DUMPBIN 4682 fi 4683fi 4684 4685 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4686 *COFF*) 4687 DUMPBIN="$DUMPBIN -symbols" 4688 ;; 4689 *) 4690 DUMPBIN=: 4691 ;; 4692 esac 4693 fi 4694 4695 if test "$DUMPBIN" != ":"; then 4696 NM="$DUMPBIN" 4697 fi 4698fi 4699test -z "$NM" && NM=nm 4700 4701 4702 4703 4704 4705 4706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4707$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4708if ${lt_cv_nm_interface+:} false; then : 4709 $as_echo_n "(cached) " >&6 4710else 4711 lt_cv_nm_interface="BSD nm" 4712 echo "int some_variable = 0;" > conftest.$ac_ext 4713 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4714 (eval "$ac_compile" 2>conftest.err) 4715 cat conftest.err >&5 4716 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4717 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4718 cat conftest.err >&5 4719 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4720 cat conftest.out >&5 4721 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4722 lt_cv_nm_interface="MS dumpbin" 4723 fi 4724 rm -f conftest* 4725fi 4726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4727$as_echo "$lt_cv_nm_interface" >&6; } 4728 4729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4730$as_echo_n "checking whether ln -s works... " >&6; } 4731LN_S=$as_ln_s 4732if test "$LN_S" = "ln -s"; then 4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4734$as_echo "yes" >&6; } 4735else 4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4737$as_echo "no, using $LN_S" >&6; } 4738fi 4739 4740# find the maximum length of command line arguments 4741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4742$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4743if ${lt_cv_sys_max_cmd_len+:} false; then : 4744 $as_echo_n "(cached) " >&6 4745else 4746 i=0 4747 teststring="ABCD" 4748 4749 case $build_os in 4750 msdosdjgpp*) 4751 # On DJGPP, this test can blow up pretty badly due to problems in libc 4752 # (any single argument exceeding 2000 bytes causes a buffer overrun 4753 # during glob expansion). Even if it were fixed, the result of this 4754 # check would be larger than it should be. 4755 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4756 ;; 4757 4758 gnu*) 4759 # Under GNU Hurd, this test is not required because there is 4760 # no limit to the length of command line arguments. 4761 # Libtool will interpret -1 as no limit whatsoever 4762 lt_cv_sys_max_cmd_len=-1; 4763 ;; 4764 4765 cygwin* | mingw* | cegcc*) 4766 # On Win9x/ME, this test blows up -- it succeeds, but takes 4767 # about 5 minutes as the teststring grows exponentially. 4768 # Worse, since 9x/ME are not pre-emptively multitasking, 4769 # you end up with a "frozen" computer, even though with patience 4770 # the test eventually succeeds (with a max line length of 256k). 4771 # Instead, let's just punt: use the minimum linelength reported by 4772 # all of the supported platforms: 8192 (on NT/2K/XP). 4773 lt_cv_sys_max_cmd_len=8192; 4774 ;; 4775 4776 mint*) 4777 # On MiNT this can take a long time and run out of memory. 4778 lt_cv_sys_max_cmd_len=8192; 4779 ;; 4780 4781 amigaos*) 4782 # On AmigaOS with pdksh, this test takes hours, literally. 4783 # So we just punt and use a minimum line length of 8192. 4784 lt_cv_sys_max_cmd_len=8192; 4785 ;; 4786 4787 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4788 # This has been around since 386BSD, at least. Likely further. 4789 if test -x /sbin/sysctl; then 4790 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4791 elif test -x /usr/sbin/sysctl; then 4792 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4793 else 4794 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4795 fi 4796 # And add a safety zone 4797 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4798 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4799 ;; 4800 4801 interix*) 4802 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4803 lt_cv_sys_max_cmd_len=196608 4804 ;; 4805 4806 os2*) 4807 # The test takes a long time on OS/2. 4808 lt_cv_sys_max_cmd_len=8192 4809 ;; 4810 4811 osf*) 4812 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4813 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4814 # nice to cause kernel panics so lets avoid the loop below. 4815 # First set a reasonable default. 4816 lt_cv_sys_max_cmd_len=16384 4817 # 4818 if test -x /sbin/sysconfig; then 4819 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4820 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4821 esac 4822 fi 4823 ;; 4824 sco3.2v5*) 4825 lt_cv_sys_max_cmd_len=102400 4826 ;; 4827 sysv5* | sco5v6* | sysv4.2uw2*) 4828 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4829 if test -n "$kargmax"; then 4830 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4831 else 4832 lt_cv_sys_max_cmd_len=32768 4833 fi 4834 ;; 4835 *) 4836 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4837 if test -n "$lt_cv_sys_max_cmd_len"; then 4838 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4839 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4840 else 4841 # Make teststring a little bigger before we do anything with it. 4842 # a 1K string should be a reasonable start. 4843 for i in 1 2 3 4 5 6 7 8 ; do 4844 teststring=$teststring$teststring 4845 done 4846 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4847 # If test is not a shell built-in, we'll probably end up computing a 4848 # maximum length that is only half of the actual maximum length, but 4849 # we can't tell. 4850 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 4851 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4852 test $i != 17 # 1/2 MB should be enough 4853 do 4854 i=`expr $i + 1` 4855 teststring=$teststring$teststring 4856 done 4857 # Only check the string length outside the loop. 4858 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4859 teststring= 4860 # Add a significant safety factor because C++ compilers can tack on 4861 # massive amounts of additional arguments before passing them to the 4862 # linker. It appears as though 1/2 is a usable value. 4863 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4864 fi 4865 ;; 4866 esac 4867 4868fi 4869 4870if test -n $lt_cv_sys_max_cmd_len ; then 4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4872$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4873else 4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4875$as_echo "none" >&6; } 4876fi 4877max_cmd_len=$lt_cv_sys_max_cmd_len 4878 4879 4880 4881 4882 4883 4884: ${CP="cp -f"} 4885: ${MV="mv -f"} 4886: ${RM="rm -f"} 4887 4888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4889$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4890# Try some XSI features 4891xsi_shell=no 4892( _lt_dummy="a/b/c" 4893 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 4894 = c,a/b,b/c, \ 4895 && eval 'test $(( 1 + 1 )) -eq 2 \ 4896 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4897 && xsi_shell=yes 4898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4899$as_echo "$xsi_shell" >&6; } 4900 4901 4902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4903$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4904lt_shell_append=no 4905( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4906 >/dev/null 2>&1 \ 4907 && lt_shell_append=yes 4908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4909$as_echo "$lt_shell_append" >&6; } 4910 4911 4912if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4913 lt_unset=unset 4914else 4915 lt_unset=false 4916fi 4917 4918 4919 4920 4921 4922# test EBCDIC or ASCII 4923case `echo X|tr X '\101'` in 4924 A) # ASCII based system 4925 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4926 lt_SP2NL='tr \040 \012' 4927 lt_NL2SP='tr \015\012 \040\040' 4928 ;; 4929 *) # EBCDIC based system 4930 lt_SP2NL='tr \100 \n' 4931 lt_NL2SP='tr \r\n \100\100' 4932 ;; 4933esac 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4944$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4945if ${lt_cv_to_host_file_cmd+:} false; then : 4946 $as_echo_n "(cached) " >&6 4947else 4948 case $host in 4949 *-*-mingw* ) 4950 case $build in 4951 *-*-mingw* ) # actually msys 4952 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4953 ;; 4954 *-*-cygwin* ) 4955 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4956 ;; 4957 * ) # otherwise, assume *nix 4958 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4959 ;; 4960 esac 4961 ;; 4962 *-*-cygwin* ) 4963 case $build in 4964 *-*-mingw* ) # actually msys 4965 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4966 ;; 4967 *-*-cygwin* ) 4968 lt_cv_to_host_file_cmd=func_convert_file_noop 4969 ;; 4970 * ) # otherwise, assume *nix 4971 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4972 ;; 4973 esac 4974 ;; 4975 * ) # unhandled hosts (and "normal" native builds) 4976 lt_cv_to_host_file_cmd=func_convert_file_noop 4977 ;; 4978esac 4979 4980fi 4981 4982to_host_file_cmd=$lt_cv_to_host_file_cmd 4983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4984$as_echo "$lt_cv_to_host_file_cmd" >&6; } 4985 4986 4987 4988 4989 4990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4991$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4992if ${lt_cv_to_tool_file_cmd+:} false; then : 4993 $as_echo_n "(cached) " >&6 4994else 4995 #assume ordinary cross tools, or native build. 4996lt_cv_to_tool_file_cmd=func_convert_file_noop 4997case $host in 4998 *-*-mingw* ) 4999 case $build in 5000 *-*-mingw* ) # actually msys 5001 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5002 ;; 5003 esac 5004 ;; 5005esac 5006 5007fi 5008 5009to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5011$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5012 5013 5014 5015 5016 5017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5018$as_echo_n "checking for $LD option to reload object files... " >&6; } 5019if ${lt_cv_ld_reload_flag+:} false; then : 5020 $as_echo_n "(cached) " >&6 5021else 5022 lt_cv_ld_reload_flag='-r' 5023fi 5024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5025$as_echo "$lt_cv_ld_reload_flag" >&6; } 5026reload_flag=$lt_cv_ld_reload_flag 5027case $reload_flag in 5028"" | " "*) ;; 5029*) reload_flag=" $reload_flag" ;; 5030esac 5031reload_cmds='$LD$reload_flag -o $output$reload_objs' 5032case $host_os in 5033 cygwin* | mingw* | pw32* | cegcc*) 5034 if test "$GCC" != yes; then 5035 reload_cmds=false 5036 fi 5037 ;; 5038 darwin*) 5039 if test "$GCC" = yes; then 5040 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5041 else 5042 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5043 fi 5044 ;; 5045esac 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055if test -n "$ac_tool_prefix"; then 5056 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5057set dummy ${ac_tool_prefix}objdump; ac_word=$2 5058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5059$as_echo_n "checking for $ac_word... " >&6; } 5060if ${ac_cv_prog_OBJDUMP+:} false; then : 5061 $as_echo_n "(cached) " >&6 5062else 5063 if test -n "$OBJDUMP"; then 5064 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5065else 5066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5067for as_dir in $PATH 5068do 5069 IFS=$as_save_IFS 5070 test -z "$as_dir" && as_dir=. 5071 for ac_exec_ext in '' $ac_executable_extensions; do 5072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5073 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5075 break 2 5076 fi 5077done 5078 done 5079IFS=$as_save_IFS 5080 5081fi 5082fi 5083OBJDUMP=$ac_cv_prog_OBJDUMP 5084if test -n "$OBJDUMP"; then 5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5086$as_echo "$OBJDUMP" >&6; } 5087else 5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5089$as_echo "no" >&6; } 5090fi 5091 5092 5093fi 5094if test -z "$ac_cv_prog_OBJDUMP"; then 5095 ac_ct_OBJDUMP=$OBJDUMP 5096 # Extract the first word of "objdump", so it can be a program name with args. 5097set dummy objdump; ac_word=$2 5098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5099$as_echo_n "checking for $ac_word... " >&6; } 5100if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5101 $as_echo_n "(cached) " >&6 5102else 5103 if test -n "$ac_ct_OBJDUMP"; then 5104 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5105else 5106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5107for as_dir in $PATH 5108do 5109 IFS=$as_save_IFS 5110 test -z "$as_dir" && as_dir=. 5111 for ac_exec_ext in '' $ac_executable_extensions; do 5112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5113 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5115 break 2 5116 fi 5117done 5118 done 5119IFS=$as_save_IFS 5120 5121fi 5122fi 5123ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5124if test -n "$ac_ct_OBJDUMP"; then 5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5126$as_echo "$ac_ct_OBJDUMP" >&6; } 5127else 5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5129$as_echo "no" >&6; } 5130fi 5131 5132 if test "x$ac_ct_OBJDUMP" = x; then 5133 OBJDUMP="false" 5134 else 5135 case $cross_compiling:$ac_tool_warned in 5136yes:) 5137{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5138$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5139ac_tool_warned=yes ;; 5140esac 5141 OBJDUMP=$ac_ct_OBJDUMP 5142 fi 5143else 5144 OBJDUMP="$ac_cv_prog_OBJDUMP" 5145fi 5146 5147test -z "$OBJDUMP" && OBJDUMP=objdump 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5158$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5159if ${lt_cv_deplibs_check_method+:} false; then : 5160 $as_echo_n "(cached) " >&6 5161else 5162 lt_cv_file_magic_cmd='$MAGIC_CMD' 5163lt_cv_file_magic_test_file= 5164lt_cv_deplibs_check_method='unknown' 5165# Need to set the preceding variable on all platforms that support 5166# interlibrary dependencies. 5167# 'none' -- dependencies not supported. 5168# `unknown' -- same as none, but documents that we really don't know. 5169# 'pass_all' -- all dependencies passed with no checks. 5170# 'test_compile' -- check by making test program. 5171# 'file_magic [[regex]]' -- check by looking for files in library path 5172# which responds to the $file_magic_cmd with a given extended regex. 5173# If you have `file' or equivalent on your system and you're not sure 5174# whether `pass_all' will *always* work, you probably want this one. 5175 5176case $host_os in 5177aix[4-9]*) 5178 lt_cv_deplibs_check_method=pass_all 5179 ;; 5180 5181beos*) 5182 lt_cv_deplibs_check_method=pass_all 5183 ;; 5184 5185bsdi[45]*) 5186 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5187 lt_cv_file_magic_cmd='/usr/bin/file -L' 5188 lt_cv_file_magic_test_file=/shlib/libc.so 5189 ;; 5190 5191cygwin*) 5192 # func_win32_libid is a shell function defined in ltmain.sh 5193 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5194 lt_cv_file_magic_cmd='func_win32_libid' 5195 ;; 5196 5197mingw* | pw32*) 5198 # Base MSYS/MinGW do not provide the 'file' command needed by 5199 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5200 # unless we find 'file', for example because we are cross-compiling. 5201 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5202 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5203 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5204 lt_cv_file_magic_cmd='func_win32_libid' 5205 else 5206 # Keep this pattern in sync with the one in func_win32_libid. 5207 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5208 lt_cv_file_magic_cmd='$OBJDUMP -f' 5209 fi 5210 ;; 5211 5212cegcc*) 5213 # use the weaker test based on 'objdump'. See mingw*. 5214 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5215 lt_cv_file_magic_cmd='$OBJDUMP -f' 5216 ;; 5217 5218darwin* | rhapsody*) 5219 lt_cv_deplibs_check_method=pass_all 5220 ;; 5221 5222freebsd* | dragonfly*) 5223 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5224 case $host_cpu in 5225 i*86 ) 5226 # Not sure whether the presence of OpenBSD here was a mistake. 5227 # Let's accept both of them until this is cleared up. 5228 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5229 lt_cv_file_magic_cmd=/usr/bin/file 5230 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5231 ;; 5232 esac 5233 else 5234 lt_cv_deplibs_check_method=pass_all 5235 fi 5236 ;; 5237 5238gnu*) 5239 lt_cv_deplibs_check_method=pass_all 5240 ;; 5241 5242haiku*) 5243 lt_cv_deplibs_check_method=pass_all 5244 ;; 5245 5246hpux10.20* | hpux11*) 5247 lt_cv_file_magic_cmd=/usr/bin/file 5248 case $host_cpu in 5249 ia64*) 5250 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5251 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5252 ;; 5253 hppa*64*) 5254 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' 5255 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5256 ;; 5257 *) 5258 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5259 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5260 ;; 5261 esac 5262 ;; 5263 5264interix[3-9]*) 5265 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5266 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5267 ;; 5268 5269irix5* | irix6* | nonstopux*) 5270 case $LD in 5271 *-32|*"-32 ") libmagic=32-bit;; 5272 *-n32|*"-n32 ") libmagic=N32;; 5273 *-64|*"-64 ") libmagic=64-bit;; 5274 *) libmagic=never-match;; 5275 esac 5276 lt_cv_deplibs_check_method=pass_all 5277 ;; 5278 5279# This must be glibc/ELF. 5280linux* | k*bsd*-gnu | kopensolaris*-gnu) 5281 lt_cv_deplibs_check_method=pass_all 5282 ;; 5283 5284netbsd* | netbsdelf*-gnu) 5285 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5286 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5287 else 5288 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5289 fi 5290 ;; 5291 5292newos6*) 5293 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5294 lt_cv_file_magic_cmd=/usr/bin/file 5295 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5296 ;; 5297 5298*nto* | *qnx*) 5299 lt_cv_deplibs_check_method=pass_all 5300 ;; 5301 5302openbsd*) 5303 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5304 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5305 else 5306 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5307 fi 5308 ;; 5309 5310osf3* | osf4* | osf5*) 5311 lt_cv_deplibs_check_method=pass_all 5312 ;; 5313 5314rdos*) 5315 lt_cv_deplibs_check_method=pass_all 5316 ;; 5317 5318solaris*) 5319 lt_cv_deplibs_check_method=pass_all 5320 ;; 5321 5322sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5323 lt_cv_deplibs_check_method=pass_all 5324 ;; 5325 5326sysv4 | sysv4.3*) 5327 case $host_vendor in 5328 motorola) 5329 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' 5330 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5331 ;; 5332 ncr) 5333 lt_cv_deplibs_check_method=pass_all 5334 ;; 5335 sequent) 5336 lt_cv_file_magic_cmd='/bin/file' 5337 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5338 ;; 5339 sni) 5340 lt_cv_file_magic_cmd='/bin/file' 5341 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5342 lt_cv_file_magic_test_file=/lib/libc.so 5343 ;; 5344 siemens) 5345 lt_cv_deplibs_check_method=pass_all 5346 ;; 5347 pc) 5348 lt_cv_deplibs_check_method=pass_all 5349 ;; 5350 esac 5351 ;; 5352 5353tpf*) 5354 lt_cv_deplibs_check_method=pass_all 5355 ;; 5356esac 5357 5358fi 5359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5360$as_echo "$lt_cv_deplibs_check_method" >&6; } 5361 5362file_magic_glob= 5363want_nocaseglob=no 5364if test "$build" = "$host"; then 5365 case $host_os in 5366 mingw* | pw32*) 5367 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5368 want_nocaseglob=yes 5369 else 5370 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5371 fi 5372 ;; 5373 esac 5374fi 5375 5376file_magic_cmd=$lt_cv_file_magic_cmd 5377deplibs_check_method=$lt_cv_deplibs_check_method 5378test -z "$deplibs_check_method" && deplibs_check_method=unknown 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401if test -n "$ac_tool_prefix"; then 5402 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5403set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5405$as_echo_n "checking for $ac_word... " >&6; } 5406if ${ac_cv_prog_DLLTOOL+:} false; then : 5407 $as_echo_n "(cached) " >&6 5408else 5409 if test -n "$DLLTOOL"; then 5410 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5411else 5412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5413for as_dir in $PATH 5414do 5415 IFS=$as_save_IFS 5416 test -z "$as_dir" && as_dir=. 5417 for ac_exec_ext in '' $ac_executable_extensions; do 5418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5419 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5421 break 2 5422 fi 5423done 5424 done 5425IFS=$as_save_IFS 5426 5427fi 5428fi 5429DLLTOOL=$ac_cv_prog_DLLTOOL 5430if test -n "$DLLTOOL"; then 5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5432$as_echo "$DLLTOOL" >&6; } 5433else 5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5435$as_echo "no" >&6; } 5436fi 5437 5438 5439fi 5440if test -z "$ac_cv_prog_DLLTOOL"; then 5441 ac_ct_DLLTOOL=$DLLTOOL 5442 # Extract the first word of "dlltool", so it can be a program name with args. 5443set dummy dlltool; ac_word=$2 5444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5445$as_echo_n "checking for $ac_word... " >&6; } 5446if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5447 $as_echo_n "(cached) " >&6 5448else 5449 if test -n "$ac_ct_DLLTOOL"; then 5450 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5451else 5452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5453for as_dir in $PATH 5454do 5455 IFS=$as_save_IFS 5456 test -z "$as_dir" && as_dir=. 5457 for ac_exec_ext in '' $ac_executable_extensions; do 5458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5459 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5461 break 2 5462 fi 5463done 5464 done 5465IFS=$as_save_IFS 5466 5467fi 5468fi 5469ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5470if test -n "$ac_ct_DLLTOOL"; then 5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5472$as_echo "$ac_ct_DLLTOOL" >&6; } 5473else 5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5475$as_echo "no" >&6; } 5476fi 5477 5478 if test "x$ac_ct_DLLTOOL" = x; then 5479 DLLTOOL="false" 5480 else 5481 case $cross_compiling:$ac_tool_warned in 5482yes:) 5483{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5484$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5485ac_tool_warned=yes ;; 5486esac 5487 DLLTOOL=$ac_ct_DLLTOOL 5488 fi 5489else 5490 DLLTOOL="$ac_cv_prog_DLLTOOL" 5491fi 5492 5493test -z "$DLLTOOL" && DLLTOOL=dlltool 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5505$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5506if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5507 $as_echo_n "(cached) " >&6 5508else 5509 lt_cv_sharedlib_from_linklib_cmd='unknown' 5510 5511case $host_os in 5512cygwin* | mingw* | pw32* | cegcc*) 5513 # two different shell functions defined in ltmain.sh 5514 # decide which to use based on capabilities of $DLLTOOL 5515 case `$DLLTOOL --help 2>&1` in 5516 *--identify-strict*) 5517 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5518 ;; 5519 *) 5520 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5521 ;; 5522 esac 5523 ;; 5524*) 5525 # fallback: assume linklib IS sharedlib 5526 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5527 ;; 5528esac 5529 5530fi 5531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5532$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5533sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5534test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5535 5536 5537 5538 5539 5540 5541 5542 5543if test -n "$ac_tool_prefix"; then 5544 for ac_prog in ar 5545 do 5546 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5547set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5549$as_echo_n "checking for $ac_word... " >&6; } 5550if ${ac_cv_prog_AR+:} false; then : 5551 $as_echo_n "(cached) " >&6 5552else 5553 if test -n "$AR"; then 5554 ac_cv_prog_AR="$AR" # Let the user override the test. 5555else 5556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5557for as_dir in $PATH 5558do 5559 IFS=$as_save_IFS 5560 test -z "$as_dir" && as_dir=. 5561 for ac_exec_ext in '' $ac_executable_extensions; do 5562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5563 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5565 break 2 5566 fi 5567done 5568 done 5569IFS=$as_save_IFS 5570 5571fi 5572fi 5573AR=$ac_cv_prog_AR 5574if test -n "$AR"; then 5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5576$as_echo "$AR" >&6; } 5577else 5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5579$as_echo "no" >&6; } 5580fi 5581 5582 5583 test -n "$AR" && break 5584 done 5585fi 5586if test -z "$AR"; then 5587 ac_ct_AR=$AR 5588 for ac_prog in ar 5589do 5590 # Extract the first word of "$ac_prog", so it can be a program name with args. 5591set dummy $ac_prog; ac_word=$2 5592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5593$as_echo_n "checking for $ac_word... " >&6; } 5594if ${ac_cv_prog_ac_ct_AR+:} false; then : 5595 $as_echo_n "(cached) " >&6 5596else 5597 if test -n "$ac_ct_AR"; then 5598 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5599else 5600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5601for as_dir in $PATH 5602do 5603 IFS=$as_save_IFS 5604 test -z "$as_dir" && as_dir=. 5605 for ac_exec_ext in '' $ac_executable_extensions; do 5606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5607 ac_cv_prog_ac_ct_AR="$ac_prog" 5608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5609 break 2 5610 fi 5611done 5612 done 5613IFS=$as_save_IFS 5614 5615fi 5616fi 5617ac_ct_AR=$ac_cv_prog_ac_ct_AR 5618if test -n "$ac_ct_AR"; then 5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5620$as_echo "$ac_ct_AR" >&6; } 5621else 5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5623$as_echo "no" >&6; } 5624fi 5625 5626 5627 test -n "$ac_ct_AR" && break 5628done 5629 5630 if test "x$ac_ct_AR" = x; then 5631 AR="false" 5632 else 5633 case $cross_compiling:$ac_tool_warned in 5634yes:) 5635{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5636$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5637ac_tool_warned=yes ;; 5638esac 5639 AR=$ac_ct_AR 5640 fi 5641fi 5642 5643: ${AR=ar} 5644: ${AR_FLAGS=cru} 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5657$as_echo_n "checking for archiver @FILE support... " >&6; } 5658if ${lt_cv_ar_at_file+:} false; then : 5659 $as_echo_n "(cached) " >&6 5660else 5661 lt_cv_ar_at_file=no 5662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5663/* end confdefs.h. */ 5664 5665int 5666main () 5667{ 5668 5669 ; 5670 return 0; 5671} 5672_ACEOF 5673if ac_fn_c_try_compile "$LINENO"; then : 5674 echo conftest.$ac_objext > conftest.lst 5675 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5676 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5677 (eval $lt_ar_try) 2>&5 5678 ac_status=$? 5679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5680 test $ac_status = 0; } 5681 if test "$ac_status" -eq 0; then 5682 # Ensure the archiver fails upon bogus file names. 5683 rm -f conftest.$ac_objext libconftest.a 5684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5685 (eval $lt_ar_try) 2>&5 5686 ac_status=$? 5687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5688 test $ac_status = 0; } 5689 if test "$ac_status" -ne 0; then 5690 lt_cv_ar_at_file=@ 5691 fi 5692 fi 5693 rm -f conftest.* libconftest.a 5694 5695fi 5696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5697 5698fi 5699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5700$as_echo "$lt_cv_ar_at_file" >&6; } 5701 5702if test "x$lt_cv_ar_at_file" = xno; then 5703 archiver_list_spec= 5704else 5705 archiver_list_spec=$lt_cv_ar_at_file 5706fi 5707 5708 5709 5710 5711 5712 5713 5714if test -n "$ac_tool_prefix"; then 5715 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5716set dummy ${ac_tool_prefix}strip; ac_word=$2 5717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5718$as_echo_n "checking for $ac_word... " >&6; } 5719if ${ac_cv_prog_STRIP+:} false; then : 5720 $as_echo_n "(cached) " >&6 5721else 5722 if test -n "$STRIP"; then 5723 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5724else 5725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5726for as_dir in $PATH 5727do 5728 IFS=$as_save_IFS 5729 test -z "$as_dir" && as_dir=. 5730 for ac_exec_ext in '' $ac_executable_extensions; do 5731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5732 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5734 break 2 5735 fi 5736done 5737 done 5738IFS=$as_save_IFS 5739 5740fi 5741fi 5742STRIP=$ac_cv_prog_STRIP 5743if test -n "$STRIP"; then 5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5745$as_echo "$STRIP" >&6; } 5746else 5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5748$as_echo "no" >&6; } 5749fi 5750 5751 5752fi 5753if test -z "$ac_cv_prog_STRIP"; then 5754 ac_ct_STRIP=$STRIP 5755 # Extract the first word of "strip", so it can be a program name with args. 5756set dummy strip; ac_word=$2 5757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5758$as_echo_n "checking for $ac_word... " >&6; } 5759if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5760 $as_echo_n "(cached) " >&6 5761else 5762 if test -n "$ac_ct_STRIP"; then 5763 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5764else 5765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5766for as_dir in $PATH 5767do 5768 IFS=$as_save_IFS 5769 test -z "$as_dir" && as_dir=. 5770 for ac_exec_ext in '' $ac_executable_extensions; do 5771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5772 ac_cv_prog_ac_ct_STRIP="strip" 5773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5774 break 2 5775 fi 5776done 5777 done 5778IFS=$as_save_IFS 5779 5780fi 5781fi 5782ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5783if test -n "$ac_ct_STRIP"; then 5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5785$as_echo "$ac_ct_STRIP" >&6; } 5786else 5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5788$as_echo "no" >&6; } 5789fi 5790 5791 if test "x$ac_ct_STRIP" = x; then 5792 STRIP=":" 5793 else 5794 case $cross_compiling:$ac_tool_warned in 5795yes:) 5796{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5797$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5798ac_tool_warned=yes ;; 5799esac 5800 STRIP=$ac_ct_STRIP 5801 fi 5802else 5803 STRIP="$ac_cv_prog_STRIP" 5804fi 5805 5806test -z "$STRIP" && STRIP=: 5807 5808 5809 5810 5811 5812 5813if test -n "$ac_tool_prefix"; then 5814 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5815set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5817$as_echo_n "checking for $ac_word... " >&6; } 5818if ${ac_cv_prog_RANLIB+:} false; then : 5819 $as_echo_n "(cached) " >&6 5820else 5821 if test -n "$RANLIB"; then 5822 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5823else 5824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5825for as_dir in $PATH 5826do 5827 IFS=$as_save_IFS 5828 test -z "$as_dir" && as_dir=. 5829 for ac_exec_ext in '' $ac_executable_extensions; do 5830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5831 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5833 break 2 5834 fi 5835done 5836 done 5837IFS=$as_save_IFS 5838 5839fi 5840fi 5841RANLIB=$ac_cv_prog_RANLIB 5842if test -n "$RANLIB"; then 5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5844$as_echo "$RANLIB" >&6; } 5845else 5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5847$as_echo "no" >&6; } 5848fi 5849 5850 5851fi 5852if test -z "$ac_cv_prog_RANLIB"; then 5853 ac_ct_RANLIB=$RANLIB 5854 # Extract the first word of "ranlib", so it can be a program name with args. 5855set dummy ranlib; ac_word=$2 5856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5857$as_echo_n "checking for $ac_word... " >&6; } 5858if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5859 $as_echo_n "(cached) " >&6 5860else 5861 if test -n "$ac_ct_RANLIB"; then 5862 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5863else 5864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5865for as_dir in $PATH 5866do 5867 IFS=$as_save_IFS 5868 test -z "$as_dir" && as_dir=. 5869 for ac_exec_ext in '' $ac_executable_extensions; do 5870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5871 ac_cv_prog_ac_ct_RANLIB="ranlib" 5872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5873 break 2 5874 fi 5875done 5876 done 5877IFS=$as_save_IFS 5878 5879fi 5880fi 5881ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5882if test -n "$ac_ct_RANLIB"; then 5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5884$as_echo "$ac_ct_RANLIB" >&6; } 5885else 5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5887$as_echo "no" >&6; } 5888fi 5889 5890 if test "x$ac_ct_RANLIB" = x; then 5891 RANLIB=":" 5892 else 5893 case $cross_compiling:$ac_tool_warned in 5894yes:) 5895{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5896$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5897ac_tool_warned=yes ;; 5898esac 5899 RANLIB=$ac_ct_RANLIB 5900 fi 5901else 5902 RANLIB="$ac_cv_prog_RANLIB" 5903fi 5904 5905test -z "$RANLIB" && RANLIB=: 5906 5907 5908 5909 5910 5911 5912# Determine commands to create old-style static archives. 5913old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5914old_postinstall_cmds='chmod 644 $oldlib' 5915old_postuninstall_cmds= 5916 5917if test -n "$RANLIB"; then 5918 case $host_os in 5919 openbsd*) 5920 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5921 ;; 5922 *) 5923 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5924 ;; 5925 esac 5926 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5927fi 5928 5929case $host_os in 5930 darwin*) 5931 lock_old_archive_extraction=yes ;; 5932 *) 5933 lock_old_archive_extraction=no ;; 5934esac 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974# If no C compiler was specified, use CC. 5975LTCC=${LTCC-"$CC"} 5976 5977# If no C compiler flags were specified, use CFLAGS. 5978LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5979 5980# Allow CC to be a program name with arguments. 5981compiler=$CC 5982 5983 5984# Check for command to grab the raw symbol name followed by C symbol from nm. 5985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5986$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5987if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5988 $as_echo_n "(cached) " >&6 5989else 5990 5991# These are sane defaults that work on at least a few old systems. 5992# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5993 5994# Character class describing NM global symbol codes. 5995symcode='[BCDEGRST]' 5996 5997# Regexp to match symbols that can be accessed directly from C. 5998sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5999 6000# Define system-specific variables. 6001case $host_os in 6002aix*) 6003 symcode='[BCDT]' 6004 ;; 6005cygwin* | mingw* | pw32* | cegcc*) 6006 symcode='[ABCDGISTW]' 6007 ;; 6008hpux*) 6009 if test "$host_cpu" = ia64; then 6010 symcode='[ABCDEGRST]' 6011 fi 6012 ;; 6013irix* | nonstopux*) 6014 symcode='[BCDEGRST]' 6015 ;; 6016osf*) 6017 symcode='[BCDEGQRST]' 6018 ;; 6019solaris*) 6020 symcode='[BDRT]' 6021 ;; 6022sco3.2v5*) 6023 symcode='[DT]' 6024 ;; 6025sysv4.2uw2*) 6026 symcode='[DT]' 6027 ;; 6028sysv5* | sco5v6* | unixware* | OpenUNIX*) 6029 symcode='[ABDT]' 6030 ;; 6031sysv4) 6032 symcode='[DFNSTU]' 6033 ;; 6034esac 6035 6036# If we're using GNU nm, then use its standard symbol codes. 6037case `$NM -V 2>&1` in 6038*GNU* | *'with BFD'*) 6039 symcode='[ABCDGIRSTW]' ;; 6040esac 6041 6042# Transform an extracted symbol line into a proper C declaration. 6043# Some systems (esp. on ia64) link data and code symbols differently, 6044# so use this general approach. 6045lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6046 6047# Transform an extracted symbol line into symbol name and symbol address 6048lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6049lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 6050 6051# Handle CRLF in mingw tool chain 6052opt_cr= 6053case $build_os in 6054mingw*) 6055 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6056 ;; 6057esac 6058 6059# Try without a prefix underscore, then with it. 6060for ac_symprfx in "" "_"; do 6061 6062 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6063 symxfrm="\\1 $ac_symprfx\\2 \\2" 6064 6065 # Write the raw and C identifiers. 6066 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6067 # Fake it for dumpbin and say T for any non-static function 6068 # and D for any global variable. 6069 # Also find C++ and __fastcall symbols from MSVC++, 6070 # which start with @ or ?. 6071 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6072" {last_section=section; section=\$ 3};"\ 6073" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6074" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6075" \$ 0!~/External *\|/{next};"\ 6076" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6077" {if(hide[section]) next};"\ 6078" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6079" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6080" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6081" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6082" ' prfx=^$ac_symprfx" 6083 else 6084 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6085 fi 6086 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6087 6088 # Check to see that the pipe works correctly. 6089 pipe_works=no 6090 6091 rm -f conftest* 6092 cat > conftest.$ac_ext <<_LT_EOF 6093#ifdef __cplusplus 6094extern "C" { 6095#endif 6096char nm_test_var; 6097void nm_test_func(void); 6098void nm_test_func(void){} 6099#ifdef __cplusplus 6100} 6101#endif 6102int main(){nm_test_var='a';nm_test_func();return(0);} 6103_LT_EOF 6104 6105 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6106 (eval $ac_compile) 2>&5 6107 ac_status=$? 6108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6109 test $ac_status = 0; }; then 6110 # Now try to grab the symbols. 6111 nlist=conftest.nm 6112 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6113 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6114 ac_status=$? 6115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6116 test $ac_status = 0; } && test -s "$nlist"; then 6117 # Try sorting and uniquifying the output. 6118 if sort "$nlist" | uniq > "$nlist"T; then 6119 mv -f "$nlist"T "$nlist" 6120 else 6121 rm -f "$nlist"T 6122 fi 6123 6124 # Make sure that we snagged all the symbols we need. 6125 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6126 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6127 cat <<_LT_EOF > conftest.$ac_ext 6128/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6129#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6130/* DATA imports from DLLs on WIN32 con't be const, because runtime 6131 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6132# define LT_DLSYM_CONST 6133#elif defined(__osf__) 6134/* This system does not cope well with relocations in const data. */ 6135# define LT_DLSYM_CONST 6136#else 6137# define LT_DLSYM_CONST const 6138#endif 6139 6140#ifdef __cplusplus 6141extern "C" { 6142#endif 6143 6144_LT_EOF 6145 # Now generate the symbol file. 6146 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6147 6148 cat <<_LT_EOF >> conftest.$ac_ext 6149 6150/* The mapping between symbol names and symbols. */ 6151LT_DLSYM_CONST struct { 6152 const char *name; 6153 void *address; 6154} 6155lt__PROGRAM__LTX_preloaded_symbols[] = 6156{ 6157 { "@PROGRAM@", (void *) 0 }, 6158_LT_EOF 6159 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6160 cat <<\_LT_EOF >> conftest.$ac_ext 6161 {0, (void *) 0} 6162}; 6163 6164/* This works around a problem in FreeBSD linker */ 6165#ifdef FREEBSD_WORKAROUND 6166static const void *lt_preloaded_setup() { 6167 return lt__PROGRAM__LTX_preloaded_symbols; 6168} 6169#endif 6170 6171#ifdef __cplusplus 6172} 6173#endif 6174_LT_EOF 6175 # Now try linking the two files. 6176 mv conftest.$ac_objext conftstm.$ac_objext 6177 lt_globsym_save_LIBS=$LIBS 6178 lt_globsym_save_CFLAGS=$CFLAGS 6179 LIBS="conftstm.$ac_objext" 6180 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6181 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6182 (eval $ac_link) 2>&5 6183 ac_status=$? 6184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6185 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6186 pipe_works=yes 6187 fi 6188 LIBS=$lt_globsym_save_LIBS 6189 CFLAGS=$lt_globsym_save_CFLAGS 6190 else 6191 echo "cannot find nm_test_func in $nlist" >&5 6192 fi 6193 else 6194 echo "cannot find nm_test_var in $nlist" >&5 6195 fi 6196 else 6197 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6198 fi 6199 else 6200 echo "$progname: failed program was:" >&5 6201 cat conftest.$ac_ext >&5 6202 fi 6203 rm -rf conftest* conftst* 6204 6205 # Do not use the global_symbol_pipe unless it works. 6206 if test "$pipe_works" = yes; then 6207 break 6208 else 6209 lt_cv_sys_global_symbol_pipe= 6210 fi 6211done 6212 6213fi 6214 6215if test -z "$lt_cv_sys_global_symbol_pipe"; then 6216 lt_cv_sys_global_symbol_to_cdecl= 6217fi 6218if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6220$as_echo "failed" >&6; } 6221else 6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6223$as_echo "ok" >&6; } 6224fi 6225 6226# Response file support. 6227if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6228 nm_file_list_spec='@' 6229elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6230 nm_file_list_spec='@' 6231fi 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6260$as_echo_n "checking for sysroot... " >&6; } 6261 6262# Check whether --with-sysroot was given. 6263if test "${with_sysroot+set}" = set; then : 6264 withval=$with_sysroot; 6265else 6266 with_sysroot=no 6267fi 6268 6269 6270lt_sysroot= 6271case ${with_sysroot} in #( 6272 yes) 6273 if test "$GCC" = yes; then 6274 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6275 fi 6276 ;; #( 6277 /*) 6278 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6279 ;; #( 6280 no|'') 6281 ;; #( 6282 *) 6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6284$as_echo "${with_sysroot}" >&6; } 6285 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6286 ;; 6287esac 6288 6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6290$as_echo "${lt_sysroot:-no}" >&6; } 6291 6292 6293 6294 6295 6296# Check whether --enable-libtool-lock was given. 6297if test "${enable_libtool_lock+set}" = set; then : 6298 enableval=$enable_libtool_lock; 6299fi 6300 6301test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6302 6303# Some flags need to be propagated to the compiler or linker for good 6304# libtool support. 6305case $host in 6306ia64-*-hpux*) 6307 # Find out which ABI we are using. 6308 echo 'int i;' > conftest.$ac_ext 6309 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6310 (eval $ac_compile) 2>&5 6311 ac_status=$? 6312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6313 test $ac_status = 0; }; then 6314 case `/usr/bin/file conftest.$ac_objext` in 6315 *ELF-32*) 6316 HPUX_IA64_MODE="32" 6317 ;; 6318 *ELF-64*) 6319 HPUX_IA64_MODE="64" 6320 ;; 6321 esac 6322 fi 6323 rm -rf conftest* 6324 ;; 6325*-*-irix6*) 6326 # Find out which ABI we are using. 6327 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6328 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6329 (eval $ac_compile) 2>&5 6330 ac_status=$? 6331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6332 test $ac_status = 0; }; then 6333 if test "$lt_cv_prog_gnu_ld" = yes; then 6334 case `/usr/bin/file conftest.$ac_objext` in 6335 *32-bit*) 6336 LD="${LD-ld} -melf32bsmip" 6337 ;; 6338 *N32*) 6339 LD="${LD-ld} -melf32bmipn32" 6340 ;; 6341 *64-bit*) 6342 LD="${LD-ld} -melf64bmip" 6343 ;; 6344 esac 6345 else 6346 case `/usr/bin/file conftest.$ac_objext` in 6347 *32-bit*) 6348 LD="${LD-ld} -32" 6349 ;; 6350 *N32*) 6351 LD="${LD-ld} -n32" 6352 ;; 6353 *64-bit*) 6354 LD="${LD-ld} -64" 6355 ;; 6356 esac 6357 fi 6358 fi 6359 rm -rf conftest* 6360 ;; 6361 6362x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6363s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6364 # Find out which ABI we are using. 6365 echo 'int i;' > conftest.$ac_ext 6366 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6367 (eval $ac_compile) 2>&5 6368 ac_status=$? 6369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6370 test $ac_status = 0; }; then 6371 case `/usr/bin/file conftest.o` in 6372 *32-bit*) 6373 case $host in 6374 x86_64-*kfreebsd*-gnu) 6375 LD="${LD-ld} -m elf_i386_fbsd" 6376 ;; 6377 x86_64-*linux*) 6378 LD="${LD-ld} -m elf_i386" 6379 ;; 6380 ppc64-*linux*|powerpc64-*linux*) 6381 LD="${LD-ld} -m elf32ppclinux" 6382 ;; 6383 s390x-*linux*) 6384 LD="${LD-ld} -m elf_s390" 6385 ;; 6386 sparc64-*linux*) 6387 LD="${LD-ld} -m elf32_sparc" 6388 ;; 6389 esac 6390 ;; 6391 *64-bit*) 6392 case $host in 6393 x86_64-*kfreebsd*-gnu) 6394 LD="${LD-ld} -m elf_x86_64_fbsd" 6395 ;; 6396 x86_64-*linux*) 6397 LD="${LD-ld} -m elf_x86_64" 6398 ;; 6399 ppc*-*linux*|powerpc*-*linux*) 6400 LD="${LD-ld} -m elf64ppc" 6401 ;; 6402 s390*-*linux*|s390*-*tpf*) 6403 LD="${LD-ld} -m elf64_s390" 6404 ;; 6405 sparc*-*linux*) 6406 LD="${LD-ld} -m elf64_sparc" 6407 ;; 6408 esac 6409 ;; 6410 esac 6411 fi 6412 rm -rf conftest* 6413 ;; 6414 6415*-*-sco3.2v5*) 6416 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6417 SAVE_CFLAGS="$CFLAGS" 6418 CFLAGS="$CFLAGS -belf" 6419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6420$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6421if ${lt_cv_cc_needs_belf+:} false; then : 6422 $as_echo_n "(cached) " >&6 6423else 6424 ac_ext=c 6425ac_cpp='$CPP $CPPFLAGS' 6426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6428ac_compiler_gnu=$ac_cv_c_compiler_gnu 6429 6430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6431/* end confdefs.h. */ 6432 6433int 6434main () 6435{ 6436 6437 ; 6438 return 0; 6439} 6440_ACEOF 6441if ac_fn_c_try_link "$LINENO"; then : 6442 lt_cv_cc_needs_belf=yes 6443else 6444 lt_cv_cc_needs_belf=no 6445fi 6446rm -f core conftest.err conftest.$ac_objext \ 6447 conftest$ac_exeext conftest.$ac_ext 6448 ac_ext=c 6449ac_cpp='$CPP $CPPFLAGS' 6450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6452ac_compiler_gnu=$ac_cv_c_compiler_gnu 6453 6454fi 6455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6456$as_echo "$lt_cv_cc_needs_belf" >&6; } 6457 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6458 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6459 CFLAGS="$SAVE_CFLAGS" 6460 fi 6461 ;; 6462*-*solaris*) 6463 # Find out which ABI we are using. 6464 echo 'int i;' > conftest.$ac_ext 6465 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6466 (eval $ac_compile) 2>&5 6467 ac_status=$? 6468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6469 test $ac_status = 0; }; then 6470 case `/usr/bin/file conftest.o` in 6471 *64-bit*) 6472 case $lt_cv_prog_gnu_ld in 6473 yes*) 6474 case $host in 6475 i?86-*-solaris*) 6476 LD="${LD-ld} -m elf_x86_64" 6477 ;; 6478 sparc*-*-solaris*) 6479 LD="${LD-ld} -m elf64_sparc" 6480 ;; 6481 esac 6482 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6483 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6484 LD="${LD-ld}_sol2" 6485 fi 6486 ;; 6487 *) 6488 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6489 LD="${LD-ld} -64" 6490 fi 6491 ;; 6492 esac 6493 ;; 6494 esac 6495 fi 6496 rm -rf conftest* 6497 ;; 6498esac 6499 6500need_locks="$enable_libtool_lock" 6501 6502if test -n "$ac_tool_prefix"; then 6503 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6504set dummy ${ac_tool_prefix}mt; ac_word=$2 6505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6506$as_echo_n "checking for $ac_word... " >&6; } 6507if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6508 $as_echo_n "(cached) " >&6 6509else 6510 if test -n "$MANIFEST_TOOL"; then 6511 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6512else 6513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6514for as_dir in $PATH 6515do 6516 IFS=$as_save_IFS 6517 test -z "$as_dir" && as_dir=. 6518 for ac_exec_ext in '' $ac_executable_extensions; do 6519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6520 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6522 break 2 6523 fi 6524done 6525 done 6526IFS=$as_save_IFS 6527 6528fi 6529fi 6530MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6531if test -n "$MANIFEST_TOOL"; then 6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6533$as_echo "$MANIFEST_TOOL" >&6; } 6534else 6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6536$as_echo "no" >&6; } 6537fi 6538 6539 6540fi 6541if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6542 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6543 # Extract the first word of "mt", so it can be a program name with args. 6544set dummy mt; ac_word=$2 6545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6546$as_echo_n "checking for $ac_word... " >&6; } 6547if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6548 $as_echo_n "(cached) " >&6 6549else 6550 if test -n "$ac_ct_MANIFEST_TOOL"; then 6551 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6552else 6553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6554for as_dir in $PATH 6555do 6556 IFS=$as_save_IFS 6557 test -z "$as_dir" && as_dir=. 6558 for ac_exec_ext in '' $ac_executable_extensions; do 6559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6560 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6562 break 2 6563 fi 6564done 6565 done 6566IFS=$as_save_IFS 6567 6568fi 6569fi 6570ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6571if test -n "$ac_ct_MANIFEST_TOOL"; then 6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6573$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6574else 6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6576$as_echo "no" >&6; } 6577fi 6578 6579 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6580 MANIFEST_TOOL=":" 6581 else 6582 case $cross_compiling:$ac_tool_warned in 6583yes:) 6584{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6585$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6586ac_tool_warned=yes ;; 6587esac 6588 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6589 fi 6590else 6591 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6592fi 6593 6594test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6596$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6597if ${lt_cv_path_mainfest_tool+:} false; then : 6598 $as_echo_n "(cached) " >&6 6599else 6600 lt_cv_path_mainfest_tool=no 6601 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6602 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6603 cat conftest.err >&5 6604 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6605 lt_cv_path_mainfest_tool=yes 6606 fi 6607 rm -f conftest* 6608fi 6609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6610$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6611if test "x$lt_cv_path_mainfest_tool" != xyes; then 6612 MANIFEST_TOOL=: 6613fi 6614 6615 6616 6617 6618 6619 6620 case $host_os in 6621 rhapsody* | darwin*) 6622 if test -n "$ac_tool_prefix"; then 6623 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6624set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6626$as_echo_n "checking for $ac_word... " >&6; } 6627if ${ac_cv_prog_DSYMUTIL+:} false; then : 6628 $as_echo_n "(cached) " >&6 6629else 6630 if test -n "$DSYMUTIL"; then 6631 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6632else 6633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6634for as_dir in $PATH 6635do 6636 IFS=$as_save_IFS 6637 test -z "$as_dir" && as_dir=. 6638 for ac_exec_ext in '' $ac_executable_extensions; do 6639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6640 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6642 break 2 6643 fi 6644done 6645 done 6646IFS=$as_save_IFS 6647 6648fi 6649fi 6650DSYMUTIL=$ac_cv_prog_DSYMUTIL 6651if test -n "$DSYMUTIL"; then 6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6653$as_echo "$DSYMUTIL" >&6; } 6654else 6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6656$as_echo "no" >&6; } 6657fi 6658 6659 6660fi 6661if test -z "$ac_cv_prog_DSYMUTIL"; then 6662 ac_ct_DSYMUTIL=$DSYMUTIL 6663 # Extract the first word of "dsymutil", so it can be a program name with args. 6664set dummy dsymutil; ac_word=$2 6665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6666$as_echo_n "checking for $ac_word... " >&6; } 6667if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6668 $as_echo_n "(cached) " >&6 6669else 6670 if test -n "$ac_ct_DSYMUTIL"; then 6671 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6672else 6673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6674for as_dir in $PATH 6675do 6676 IFS=$as_save_IFS 6677 test -z "$as_dir" && as_dir=. 6678 for ac_exec_ext in '' $ac_executable_extensions; do 6679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6680 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6682 break 2 6683 fi 6684done 6685 done 6686IFS=$as_save_IFS 6687 6688fi 6689fi 6690ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6691if test -n "$ac_ct_DSYMUTIL"; then 6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6693$as_echo "$ac_ct_DSYMUTIL" >&6; } 6694else 6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6696$as_echo "no" >&6; } 6697fi 6698 6699 if test "x$ac_ct_DSYMUTIL" = x; then 6700 DSYMUTIL=":" 6701 else 6702 case $cross_compiling:$ac_tool_warned in 6703yes:) 6704{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6705$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6706ac_tool_warned=yes ;; 6707esac 6708 DSYMUTIL=$ac_ct_DSYMUTIL 6709 fi 6710else 6711 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6712fi 6713 6714 if test -n "$ac_tool_prefix"; then 6715 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6716set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6718$as_echo_n "checking for $ac_word... " >&6; } 6719if ${ac_cv_prog_NMEDIT+:} false; then : 6720 $as_echo_n "(cached) " >&6 6721else 6722 if test -n "$NMEDIT"; then 6723 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6724else 6725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6726for as_dir in $PATH 6727do 6728 IFS=$as_save_IFS 6729 test -z "$as_dir" && as_dir=. 6730 for ac_exec_ext in '' $ac_executable_extensions; do 6731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6732 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6734 break 2 6735 fi 6736done 6737 done 6738IFS=$as_save_IFS 6739 6740fi 6741fi 6742NMEDIT=$ac_cv_prog_NMEDIT 6743if test -n "$NMEDIT"; then 6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6745$as_echo "$NMEDIT" >&6; } 6746else 6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6748$as_echo "no" >&6; } 6749fi 6750 6751 6752fi 6753if test -z "$ac_cv_prog_NMEDIT"; then 6754 ac_ct_NMEDIT=$NMEDIT 6755 # Extract the first word of "nmedit", so it can be a program name with args. 6756set dummy nmedit; ac_word=$2 6757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6758$as_echo_n "checking for $ac_word... " >&6; } 6759if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6760 $as_echo_n "(cached) " >&6 6761else 6762 if test -n "$ac_ct_NMEDIT"; then 6763 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6764else 6765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6766for as_dir in $PATH 6767do 6768 IFS=$as_save_IFS 6769 test -z "$as_dir" && as_dir=. 6770 for ac_exec_ext in '' $ac_executable_extensions; do 6771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6772 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6774 break 2 6775 fi 6776done 6777 done 6778IFS=$as_save_IFS 6779 6780fi 6781fi 6782ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6783if test -n "$ac_ct_NMEDIT"; then 6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6785$as_echo "$ac_ct_NMEDIT" >&6; } 6786else 6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6788$as_echo "no" >&6; } 6789fi 6790 6791 if test "x$ac_ct_NMEDIT" = x; then 6792 NMEDIT=":" 6793 else 6794 case $cross_compiling:$ac_tool_warned in 6795yes:) 6796{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6797$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6798ac_tool_warned=yes ;; 6799esac 6800 NMEDIT=$ac_ct_NMEDIT 6801 fi 6802else 6803 NMEDIT="$ac_cv_prog_NMEDIT" 6804fi 6805 6806 if test -n "$ac_tool_prefix"; then 6807 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6808set dummy ${ac_tool_prefix}lipo; ac_word=$2 6809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6810$as_echo_n "checking for $ac_word... " >&6; } 6811if ${ac_cv_prog_LIPO+:} false; then : 6812 $as_echo_n "(cached) " >&6 6813else 6814 if test -n "$LIPO"; then 6815 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6816else 6817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6818for as_dir in $PATH 6819do 6820 IFS=$as_save_IFS 6821 test -z "$as_dir" && as_dir=. 6822 for ac_exec_ext in '' $ac_executable_extensions; do 6823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6824 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6826 break 2 6827 fi 6828done 6829 done 6830IFS=$as_save_IFS 6831 6832fi 6833fi 6834LIPO=$ac_cv_prog_LIPO 6835if test -n "$LIPO"; then 6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6837$as_echo "$LIPO" >&6; } 6838else 6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6840$as_echo "no" >&6; } 6841fi 6842 6843 6844fi 6845if test -z "$ac_cv_prog_LIPO"; then 6846 ac_ct_LIPO=$LIPO 6847 # Extract the first word of "lipo", so it can be a program name with args. 6848set dummy lipo; ac_word=$2 6849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6850$as_echo_n "checking for $ac_word... " >&6; } 6851if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6852 $as_echo_n "(cached) " >&6 6853else 6854 if test -n "$ac_ct_LIPO"; then 6855 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6856else 6857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6858for as_dir in $PATH 6859do 6860 IFS=$as_save_IFS 6861 test -z "$as_dir" && as_dir=. 6862 for ac_exec_ext in '' $ac_executable_extensions; do 6863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6864 ac_cv_prog_ac_ct_LIPO="lipo" 6865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6866 break 2 6867 fi 6868done 6869 done 6870IFS=$as_save_IFS 6871 6872fi 6873fi 6874ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6875if test -n "$ac_ct_LIPO"; then 6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6877$as_echo "$ac_ct_LIPO" >&6; } 6878else 6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6880$as_echo "no" >&6; } 6881fi 6882 6883 if test "x$ac_ct_LIPO" = x; then 6884 LIPO=":" 6885 else 6886 case $cross_compiling:$ac_tool_warned in 6887yes:) 6888{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6889$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6890ac_tool_warned=yes ;; 6891esac 6892 LIPO=$ac_ct_LIPO 6893 fi 6894else 6895 LIPO="$ac_cv_prog_LIPO" 6896fi 6897 6898 if test -n "$ac_tool_prefix"; then 6899 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6900set dummy ${ac_tool_prefix}otool; ac_word=$2 6901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6902$as_echo_n "checking for $ac_word... " >&6; } 6903if ${ac_cv_prog_OTOOL+:} false; then : 6904 $as_echo_n "(cached) " >&6 6905else 6906 if test -n "$OTOOL"; then 6907 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6908else 6909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6910for as_dir in $PATH 6911do 6912 IFS=$as_save_IFS 6913 test -z "$as_dir" && as_dir=. 6914 for ac_exec_ext in '' $ac_executable_extensions; do 6915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6916 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6918 break 2 6919 fi 6920done 6921 done 6922IFS=$as_save_IFS 6923 6924fi 6925fi 6926OTOOL=$ac_cv_prog_OTOOL 6927if test -n "$OTOOL"; then 6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6929$as_echo "$OTOOL" >&6; } 6930else 6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6932$as_echo "no" >&6; } 6933fi 6934 6935 6936fi 6937if test -z "$ac_cv_prog_OTOOL"; then 6938 ac_ct_OTOOL=$OTOOL 6939 # Extract the first word of "otool", so it can be a program name with args. 6940set dummy otool; ac_word=$2 6941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6942$as_echo_n "checking for $ac_word... " >&6; } 6943if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 6944 $as_echo_n "(cached) " >&6 6945else 6946 if test -n "$ac_ct_OTOOL"; then 6947 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6948else 6949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6950for as_dir in $PATH 6951do 6952 IFS=$as_save_IFS 6953 test -z "$as_dir" && as_dir=. 6954 for ac_exec_ext in '' $ac_executable_extensions; do 6955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6956 ac_cv_prog_ac_ct_OTOOL="otool" 6957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6958 break 2 6959 fi 6960done 6961 done 6962IFS=$as_save_IFS 6963 6964fi 6965fi 6966ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6967if test -n "$ac_ct_OTOOL"; then 6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6969$as_echo "$ac_ct_OTOOL" >&6; } 6970else 6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6972$as_echo "no" >&6; } 6973fi 6974 6975 if test "x$ac_ct_OTOOL" = x; then 6976 OTOOL=":" 6977 else 6978 case $cross_compiling:$ac_tool_warned in 6979yes:) 6980{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6981$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6982ac_tool_warned=yes ;; 6983esac 6984 OTOOL=$ac_ct_OTOOL 6985 fi 6986else 6987 OTOOL="$ac_cv_prog_OTOOL" 6988fi 6989 6990 if test -n "$ac_tool_prefix"; then 6991 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6992set dummy ${ac_tool_prefix}otool64; ac_word=$2 6993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6994$as_echo_n "checking for $ac_word... " >&6; } 6995if ${ac_cv_prog_OTOOL64+:} false; then : 6996 $as_echo_n "(cached) " >&6 6997else 6998 if test -n "$OTOOL64"; then 6999 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7000else 7001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7002for as_dir in $PATH 7003do 7004 IFS=$as_save_IFS 7005 test -z "$as_dir" && as_dir=. 7006 for ac_exec_ext in '' $ac_executable_extensions; do 7007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7008 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7010 break 2 7011 fi 7012done 7013 done 7014IFS=$as_save_IFS 7015 7016fi 7017fi 7018OTOOL64=$ac_cv_prog_OTOOL64 7019if test -n "$OTOOL64"; then 7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7021$as_echo "$OTOOL64" >&6; } 7022else 7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7024$as_echo "no" >&6; } 7025fi 7026 7027 7028fi 7029if test -z "$ac_cv_prog_OTOOL64"; then 7030 ac_ct_OTOOL64=$OTOOL64 7031 # Extract the first word of "otool64", so it can be a program name with args. 7032set dummy otool64; ac_word=$2 7033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7034$as_echo_n "checking for $ac_word... " >&6; } 7035if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7036 $as_echo_n "(cached) " >&6 7037else 7038 if test -n "$ac_ct_OTOOL64"; then 7039 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7040else 7041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7042for as_dir in $PATH 7043do 7044 IFS=$as_save_IFS 7045 test -z "$as_dir" && as_dir=. 7046 for ac_exec_ext in '' $ac_executable_extensions; do 7047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7048 ac_cv_prog_ac_ct_OTOOL64="otool64" 7049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7050 break 2 7051 fi 7052done 7053 done 7054IFS=$as_save_IFS 7055 7056fi 7057fi 7058ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7059if test -n "$ac_ct_OTOOL64"; then 7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7061$as_echo "$ac_ct_OTOOL64" >&6; } 7062else 7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7064$as_echo "no" >&6; } 7065fi 7066 7067 if test "x$ac_ct_OTOOL64" = x; then 7068 OTOOL64=":" 7069 else 7070 case $cross_compiling:$ac_tool_warned in 7071yes:) 7072{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7073$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7074ac_tool_warned=yes ;; 7075esac 7076 OTOOL64=$ac_ct_OTOOL64 7077 fi 7078else 7079 OTOOL64="$ac_cv_prog_OTOOL64" 7080fi 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7109$as_echo_n "checking for -single_module linker flag... " >&6; } 7110if ${lt_cv_apple_cc_single_mod+:} false; then : 7111 $as_echo_n "(cached) " >&6 7112else 7113 lt_cv_apple_cc_single_mod=no 7114 if test -z "${LT_MULTI_MODULE}"; then 7115 # By default we will add the -single_module flag. You can override 7116 # by either setting the environment variable LT_MULTI_MODULE 7117 # non-empty at configure time, or by adding -multi_module to the 7118 # link flags. 7119 rm -rf libconftest.dylib* 7120 echo "int foo(void){return 1;}" > conftest.c 7121 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7122-dynamiclib -Wl,-single_module conftest.c" >&5 7123 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7124 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7125 _lt_result=$? 7126 # If there is a non-empty error log, and "single_module" 7127 # appears in it, assume the flag caused a linker warning 7128 if test -s conftest.err && $GREP single_module conftest.err; then 7129 cat conftest.err >&5 7130 # Otherwise, if the output was created with a 0 exit code from 7131 # the compiler, it worked. 7132 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7133 lt_cv_apple_cc_single_mod=yes 7134 else 7135 cat conftest.err >&5 7136 fi 7137 rm -rf libconftest.dylib* 7138 rm -f conftest.* 7139 fi 7140fi 7141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7142$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7143 7144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7145$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7146if ${lt_cv_ld_exported_symbols_list+:} false; then : 7147 $as_echo_n "(cached) " >&6 7148else 7149 lt_cv_ld_exported_symbols_list=no 7150 save_LDFLAGS=$LDFLAGS 7151 echo "_main" > conftest.sym 7152 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7154/* end confdefs.h. */ 7155 7156int 7157main () 7158{ 7159 7160 ; 7161 return 0; 7162} 7163_ACEOF 7164if ac_fn_c_try_link "$LINENO"; then : 7165 lt_cv_ld_exported_symbols_list=yes 7166else 7167 lt_cv_ld_exported_symbols_list=no 7168fi 7169rm -f core conftest.err conftest.$ac_objext \ 7170 conftest$ac_exeext conftest.$ac_ext 7171 LDFLAGS="$save_LDFLAGS" 7172 7173fi 7174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7175$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7176 7177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7178$as_echo_n "checking for -force_load linker flag... " >&6; } 7179if ${lt_cv_ld_force_load+:} false; then : 7180 $as_echo_n "(cached) " >&6 7181else 7182 lt_cv_ld_force_load=no 7183 cat > conftest.c << _LT_EOF 7184int forced_loaded() { return 2;} 7185_LT_EOF 7186 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7187 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7188 echo "$AR cru libconftest.a conftest.o" >&5 7189 $AR cru libconftest.a conftest.o 2>&5 7190 echo "$RANLIB libconftest.a" >&5 7191 $RANLIB libconftest.a 2>&5 7192 cat > conftest.c << _LT_EOF 7193int main() { return 0;} 7194_LT_EOF 7195 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7196 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7197 _lt_result=$? 7198 if test -s conftest.err && $GREP force_load conftest.err; then 7199 cat conftest.err >&5 7200 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7201 lt_cv_ld_force_load=yes 7202 else 7203 cat conftest.err >&5 7204 fi 7205 rm -f conftest.err libconftest.a conftest conftest.c 7206 rm -rf conftest.dSYM 7207 7208fi 7209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7210$as_echo "$lt_cv_ld_force_load" >&6; } 7211 case $host_os in 7212 rhapsody* | darwin1.[012]) 7213 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7214 darwin1.*) 7215 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7216 darwin*) # darwin 5.x on 7217 # if running on 10.5 or later, the deployment target defaults 7218 # to the OS version, if on x86, and 10.4, the deployment 7219 # target defaults to 10.4. Don't you love it? 7220 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7221 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7222 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7223 10.[012]*) 7224 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7225 10.*) 7226 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7227 esac 7228 ;; 7229 esac 7230 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7231 _lt_dar_single_mod='$single_module' 7232 fi 7233 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7234 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7235 else 7236 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7237 fi 7238 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7239 _lt_dsymutil='~$DSYMUTIL $lib || :' 7240 else 7241 _lt_dsymutil= 7242 fi 7243 ;; 7244 esac 7245 7246ac_ext=c 7247ac_cpp='$CPP $CPPFLAGS' 7248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7250ac_compiler_gnu=$ac_cv_c_compiler_gnu 7251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7252$as_echo_n "checking how to run the C preprocessor... " >&6; } 7253# On Suns, sometimes $CPP names a directory. 7254if test -n "$CPP" && test -d "$CPP"; then 7255 CPP= 7256fi 7257if test -z "$CPP"; then 7258 if ${ac_cv_prog_CPP+:} false; then : 7259 $as_echo_n "(cached) " >&6 7260else 7261 # Double quotes because CPP needs to be expanded 7262 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7263 do 7264 ac_preproc_ok=false 7265for ac_c_preproc_warn_flag in '' yes 7266do 7267 # Use a header file that comes with gcc, so configuring glibc 7268 # with a fresh cross-compiler works. 7269 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7270 # <limits.h> exists even on freestanding compilers. 7271 # On the NeXT, cc -E runs the code through the compiler's parser, 7272 # not just through cpp. "Syntax error" is here to catch this case. 7273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7274/* end confdefs.h. */ 7275#ifdef __STDC__ 7276# include <limits.h> 7277#else 7278# include <assert.h> 7279#endif 7280 Syntax error 7281_ACEOF 7282if ac_fn_c_try_cpp "$LINENO"; then : 7283 7284else 7285 # Broken: fails on valid input. 7286continue 7287fi 7288rm -f conftest.err conftest.i conftest.$ac_ext 7289 7290 # OK, works on sane cases. Now check whether nonexistent headers 7291 # can be detected and how. 7292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7293/* end confdefs.h. */ 7294#include <ac_nonexistent.h> 7295_ACEOF 7296if ac_fn_c_try_cpp "$LINENO"; then : 7297 # Broken: success on invalid input. 7298continue 7299else 7300 # Passes both tests. 7301ac_preproc_ok=: 7302break 7303fi 7304rm -f conftest.err conftest.i conftest.$ac_ext 7305 7306done 7307# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7308rm -f conftest.i conftest.err conftest.$ac_ext 7309if $ac_preproc_ok; then : 7310 break 7311fi 7312 7313 done 7314 ac_cv_prog_CPP=$CPP 7315 7316fi 7317 CPP=$ac_cv_prog_CPP 7318else 7319 ac_cv_prog_CPP=$CPP 7320fi 7321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7322$as_echo "$CPP" >&6; } 7323ac_preproc_ok=false 7324for ac_c_preproc_warn_flag in '' yes 7325do 7326 # Use a header file that comes with gcc, so configuring glibc 7327 # with a fresh cross-compiler works. 7328 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7329 # <limits.h> exists even on freestanding compilers. 7330 # On the NeXT, cc -E runs the code through the compiler's parser, 7331 # not just through cpp. "Syntax error" is here to catch this case. 7332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7333/* end confdefs.h. */ 7334#ifdef __STDC__ 7335# include <limits.h> 7336#else 7337# include <assert.h> 7338#endif 7339 Syntax error 7340_ACEOF 7341if ac_fn_c_try_cpp "$LINENO"; then : 7342 7343else 7344 # Broken: fails on valid input. 7345continue 7346fi 7347rm -f conftest.err conftest.i conftest.$ac_ext 7348 7349 # OK, works on sane cases. Now check whether nonexistent headers 7350 # can be detected and how. 7351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7352/* end confdefs.h. */ 7353#include <ac_nonexistent.h> 7354_ACEOF 7355if ac_fn_c_try_cpp "$LINENO"; then : 7356 # Broken: success on invalid input. 7357continue 7358else 7359 # Passes both tests. 7360ac_preproc_ok=: 7361break 7362fi 7363rm -f conftest.err conftest.i conftest.$ac_ext 7364 7365done 7366# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7367rm -f conftest.i conftest.err conftest.$ac_ext 7368if $ac_preproc_ok; then : 7369 7370else 7371 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7372$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7373as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7374See \`config.log' for more details" "$LINENO" 5; } 7375fi 7376 7377ac_ext=c 7378ac_cpp='$CPP $CPPFLAGS' 7379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7381ac_compiler_gnu=$ac_cv_c_compiler_gnu 7382 7383 7384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7385$as_echo_n "checking for ANSI C header files... " >&6; } 7386if ${ac_cv_header_stdc+:} false; then : 7387 $as_echo_n "(cached) " >&6 7388else 7389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7390/* end confdefs.h. */ 7391#include <stdlib.h> 7392#include <stdarg.h> 7393#include <string.h> 7394#include <float.h> 7395 7396int 7397main () 7398{ 7399 7400 ; 7401 return 0; 7402} 7403_ACEOF 7404if ac_fn_c_try_compile "$LINENO"; then : 7405 ac_cv_header_stdc=yes 7406else 7407 ac_cv_header_stdc=no 7408fi 7409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7410 7411if test $ac_cv_header_stdc = yes; then 7412 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7414/* end confdefs.h. */ 7415#include <string.h> 7416 7417_ACEOF 7418if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7419 $EGREP "memchr" >/dev/null 2>&1; then : 7420 7421else 7422 ac_cv_header_stdc=no 7423fi 7424rm -f conftest* 7425 7426fi 7427 7428if test $ac_cv_header_stdc = yes; then 7429 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7431/* end confdefs.h. */ 7432#include <stdlib.h> 7433 7434_ACEOF 7435if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7436 $EGREP "free" >/dev/null 2>&1; then : 7437 7438else 7439 ac_cv_header_stdc=no 7440fi 7441rm -f conftest* 7442 7443fi 7444 7445if test $ac_cv_header_stdc = yes; then 7446 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7447 if test "$cross_compiling" = yes; then : 7448 : 7449else 7450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7451/* end confdefs.h. */ 7452#include <ctype.h> 7453#include <stdlib.h> 7454#if ((' ' & 0x0FF) == 0x020) 7455# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7456# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7457#else 7458# define ISLOWER(c) \ 7459 (('a' <= (c) && (c) <= 'i') \ 7460 || ('j' <= (c) && (c) <= 'r') \ 7461 || ('s' <= (c) && (c) <= 'z')) 7462# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7463#endif 7464 7465#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7466int 7467main () 7468{ 7469 int i; 7470 for (i = 0; i < 256; i++) 7471 if (XOR (islower (i), ISLOWER (i)) 7472 || toupper (i) != TOUPPER (i)) 7473 return 2; 7474 return 0; 7475} 7476_ACEOF 7477if ac_fn_c_try_run "$LINENO"; then : 7478 7479else 7480 ac_cv_header_stdc=no 7481fi 7482rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7483 conftest.$ac_objext conftest.beam conftest.$ac_ext 7484fi 7485 7486fi 7487fi 7488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7489$as_echo "$ac_cv_header_stdc" >&6; } 7490if test $ac_cv_header_stdc = yes; then 7491 7492$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7493 7494fi 7495 7496# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7497for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7498 inttypes.h stdint.h unistd.h 7499do : 7500 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7501ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7502" 7503if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7504 cat >>confdefs.h <<_ACEOF 7505#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7506_ACEOF 7507 7508fi 7509 7510done 7511 7512 7513for ac_header in dlfcn.h 7514do : 7515 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7516" 7517if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7518 cat >>confdefs.h <<_ACEOF 7519#define HAVE_DLFCN_H 1 7520_ACEOF 7521 7522fi 7523 7524done 7525 7526 7527 7528 7529 7530# Set options 7531 7532 7533 7534 enable_dlopen=no 7535 7536 7537 enable_win32_dll=no 7538 7539 7540 # Check whether --enable-shared was given. 7541if test "${enable_shared+set}" = set; then : 7542 enableval=$enable_shared; p=${PACKAGE-default} 7543 case $enableval in 7544 yes) enable_shared=yes ;; 7545 no) enable_shared=no ;; 7546 *) 7547 enable_shared=no 7548 # Look at the argument we got. We use all the common list separators. 7549 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7550 for pkg in $enableval; do 7551 IFS="$lt_save_ifs" 7552 if test "X$pkg" = "X$p"; then 7553 enable_shared=yes 7554 fi 7555 done 7556 IFS="$lt_save_ifs" 7557 ;; 7558 esac 7559else 7560 enable_shared=yes 7561fi 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 # Check whether --enable-static was given. 7572if test "${enable_static+set}" = set; then : 7573 enableval=$enable_static; p=${PACKAGE-default} 7574 case $enableval in 7575 yes) enable_static=yes ;; 7576 no) enable_static=no ;; 7577 *) 7578 enable_static=no 7579 # Look at the argument we got. We use all the common list separators. 7580 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7581 for pkg in $enableval; do 7582 IFS="$lt_save_ifs" 7583 if test "X$pkg" = "X$p"; then 7584 enable_static=yes 7585 fi 7586 done 7587 IFS="$lt_save_ifs" 7588 ;; 7589 esac 7590else 7591 enable_static=yes 7592fi 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603# Check whether --with-pic was given. 7604if test "${with_pic+set}" = set; then : 7605 withval=$with_pic; lt_p=${PACKAGE-default} 7606 case $withval in 7607 yes|no) pic_mode=$withval ;; 7608 *) 7609 pic_mode=default 7610 # Look at the argument we got. We use all the common list separators. 7611 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7612 for lt_pkg in $withval; do 7613 IFS="$lt_save_ifs" 7614 if test "X$lt_pkg" = "X$lt_p"; then 7615 pic_mode=yes 7616 fi 7617 done 7618 IFS="$lt_save_ifs" 7619 ;; 7620 esac 7621else 7622 pic_mode=default 7623fi 7624 7625 7626test -z "$pic_mode" && pic_mode=default 7627 7628 7629 7630 7631 7632 7633 7634 # Check whether --enable-fast-install was given. 7635if test "${enable_fast_install+set}" = set; then : 7636 enableval=$enable_fast_install; p=${PACKAGE-default} 7637 case $enableval in 7638 yes) enable_fast_install=yes ;; 7639 no) enable_fast_install=no ;; 7640 *) 7641 enable_fast_install=no 7642 # Look at the argument we got. We use all the common list separators. 7643 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7644 for pkg in $enableval; do 7645 IFS="$lt_save_ifs" 7646 if test "X$pkg" = "X$p"; then 7647 enable_fast_install=yes 7648 fi 7649 done 7650 IFS="$lt_save_ifs" 7651 ;; 7652 esac 7653else 7654 enable_fast_install=yes 7655fi 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667# This can be used to rebuild libtool when needed 7668LIBTOOL_DEPS="$ltmain" 7669 7670# Always use our own libtool. 7671LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702test -z "$LN_S" && LN_S="ln -s" 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717if test -n "${ZSH_VERSION+set}" ; then 7718 setopt NO_GLOB_SUBST 7719fi 7720 7721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7722$as_echo_n "checking for objdir... " >&6; } 7723if ${lt_cv_objdir+:} false; then : 7724 $as_echo_n "(cached) " >&6 7725else 7726 rm -f .libs 2>/dev/null 7727mkdir .libs 2>/dev/null 7728if test -d .libs; then 7729 lt_cv_objdir=.libs 7730else 7731 # MS-DOS does not allow filenames that begin with a dot. 7732 lt_cv_objdir=_libs 7733fi 7734rmdir .libs 2>/dev/null 7735fi 7736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7737$as_echo "$lt_cv_objdir" >&6; } 7738objdir=$lt_cv_objdir 7739 7740 7741 7742 7743 7744cat >>confdefs.h <<_ACEOF 7745#define LT_OBJDIR "$lt_cv_objdir/" 7746_ACEOF 7747 7748 7749 7750 7751case $host_os in 7752aix3*) 7753 # AIX sometimes has problems with the GCC collect2 program. For some 7754 # reason, if we set the COLLECT_NAMES environment variable, the problems 7755 # vanish in a puff of smoke. 7756 if test "X${COLLECT_NAMES+set}" != Xset; then 7757 COLLECT_NAMES= 7758 export COLLECT_NAMES 7759 fi 7760 ;; 7761esac 7762 7763# Global variables: 7764ofile=libtool 7765can_build_shared=yes 7766 7767# All known linkers require a `.a' archive for static linking (except MSVC, 7768# which needs '.lib'). 7769libext=a 7770 7771with_gnu_ld="$lt_cv_prog_gnu_ld" 7772 7773old_CC="$CC" 7774old_CFLAGS="$CFLAGS" 7775 7776# Set sane defaults for various variables 7777test -z "$CC" && CC=cc 7778test -z "$LTCC" && LTCC=$CC 7779test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7780test -z "$LD" && LD=ld 7781test -z "$ac_objext" && ac_objext=o 7782 7783for cc_temp in $compiler""; do 7784 case $cc_temp in 7785 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7786 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7787 \-*) ;; 7788 *) break;; 7789 esac 7790done 7791cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7792 7793 7794# Only perform the check for file, if the check method requires it 7795test -z "$MAGIC_CMD" && MAGIC_CMD=file 7796case $deplibs_check_method in 7797file_magic*) 7798 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7800$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7801if ${lt_cv_path_MAGIC_CMD+:} false; then : 7802 $as_echo_n "(cached) " >&6 7803else 7804 case $MAGIC_CMD in 7805[\\/*] | ?:[\\/]*) 7806 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7807 ;; 7808*) 7809 lt_save_MAGIC_CMD="$MAGIC_CMD" 7810 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7811 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7812 for ac_dir in $ac_dummy; do 7813 IFS="$lt_save_ifs" 7814 test -z "$ac_dir" && ac_dir=. 7815 if test -f $ac_dir/${ac_tool_prefix}file; then 7816 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7817 if test -n "$file_magic_test_file"; then 7818 case $deplibs_check_method in 7819 "file_magic "*) 7820 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7821 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7822 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7823 $EGREP "$file_magic_regex" > /dev/null; then 7824 : 7825 else 7826 cat <<_LT_EOF 1>&2 7827 7828*** Warning: the command libtool uses to detect shared libraries, 7829*** $file_magic_cmd, produces output that libtool cannot recognize. 7830*** The result is that libtool may fail to recognize shared libraries 7831*** as such. This will affect the creation of libtool libraries that 7832*** depend on shared libraries, but programs linked with such libtool 7833*** libraries will work regardless of this problem. Nevertheless, you 7834*** may want to report the problem to your system manager and/or to 7835*** bug-libtool@gnu.org 7836 7837_LT_EOF 7838 fi ;; 7839 esac 7840 fi 7841 break 7842 fi 7843 done 7844 IFS="$lt_save_ifs" 7845 MAGIC_CMD="$lt_save_MAGIC_CMD" 7846 ;; 7847esac 7848fi 7849 7850MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7851if test -n "$MAGIC_CMD"; then 7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7853$as_echo "$MAGIC_CMD" >&6; } 7854else 7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7856$as_echo "no" >&6; } 7857fi 7858 7859 7860 7861 7862 7863if test -z "$lt_cv_path_MAGIC_CMD"; then 7864 if test -n "$ac_tool_prefix"; then 7865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7866$as_echo_n "checking for file... " >&6; } 7867if ${lt_cv_path_MAGIC_CMD+:} false; then : 7868 $as_echo_n "(cached) " >&6 7869else 7870 case $MAGIC_CMD in 7871[\\/*] | ?:[\\/]*) 7872 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7873 ;; 7874*) 7875 lt_save_MAGIC_CMD="$MAGIC_CMD" 7876 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7877 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7878 for ac_dir in $ac_dummy; do 7879 IFS="$lt_save_ifs" 7880 test -z "$ac_dir" && ac_dir=. 7881 if test -f $ac_dir/file; then 7882 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7883 if test -n "$file_magic_test_file"; then 7884 case $deplibs_check_method in 7885 "file_magic "*) 7886 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7887 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7888 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7889 $EGREP "$file_magic_regex" > /dev/null; then 7890 : 7891 else 7892 cat <<_LT_EOF 1>&2 7893 7894*** Warning: the command libtool uses to detect shared libraries, 7895*** $file_magic_cmd, produces output that libtool cannot recognize. 7896*** The result is that libtool may fail to recognize shared libraries 7897*** as such. This will affect the creation of libtool libraries that 7898*** depend on shared libraries, but programs linked with such libtool 7899*** libraries will work regardless of this problem. Nevertheless, you 7900*** may want to report the problem to your system manager and/or to 7901*** bug-libtool@gnu.org 7902 7903_LT_EOF 7904 fi ;; 7905 esac 7906 fi 7907 break 7908 fi 7909 done 7910 IFS="$lt_save_ifs" 7911 MAGIC_CMD="$lt_save_MAGIC_CMD" 7912 ;; 7913esac 7914fi 7915 7916MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7917if test -n "$MAGIC_CMD"; then 7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7919$as_echo "$MAGIC_CMD" >&6; } 7920else 7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7922$as_echo "no" >&6; } 7923fi 7924 7925 7926 else 7927 MAGIC_CMD=: 7928 fi 7929fi 7930 7931 fi 7932 ;; 7933esac 7934 7935# Use C for the default configuration in the libtool script 7936 7937lt_save_CC="$CC" 7938ac_ext=c 7939ac_cpp='$CPP $CPPFLAGS' 7940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7942ac_compiler_gnu=$ac_cv_c_compiler_gnu 7943 7944 7945# Source file extension for C test sources. 7946ac_ext=c 7947 7948# Object file extension for compiled C test sources. 7949objext=o 7950objext=$objext 7951 7952# Code to be used in simple compile tests 7953lt_simple_compile_test_code="int some_variable = 0;" 7954 7955# Code to be used in simple link tests 7956lt_simple_link_test_code='int main(){return(0);}' 7957 7958 7959 7960 7961 7962 7963 7964# If no C compiler was specified, use CC. 7965LTCC=${LTCC-"$CC"} 7966 7967# If no C compiler flags were specified, use CFLAGS. 7968LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7969 7970# Allow CC to be a program name with arguments. 7971compiler=$CC 7972 7973# Save the default compiler, since it gets overwritten when the other 7974# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7975compiler_DEFAULT=$CC 7976 7977# save warnings/boilerplate of simple test code 7978ac_outfile=conftest.$ac_objext 7979echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7980eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7981_lt_compiler_boilerplate=`cat conftest.err` 7982$RM conftest* 7983 7984ac_outfile=conftest.$ac_objext 7985echo "$lt_simple_link_test_code" >conftest.$ac_ext 7986eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7987_lt_linker_boilerplate=`cat conftest.err` 7988$RM -r conftest* 7989 7990 7991## CAVEAT EMPTOR: 7992## There is no encapsulation within the following macros, do not change 7993## the running order or otherwise move them around unless you know exactly 7994## what you are doing... 7995if test -n "$compiler"; then 7996 7997lt_prog_compiler_no_builtin_flag= 7998 7999if test "$GCC" = yes; then 8000 case $cc_basename in 8001 nvcc*) 8002 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8003 *) 8004 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8005 esac 8006 8007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8008$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8009if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8010 $as_echo_n "(cached) " >&6 8011else 8012 lt_cv_prog_compiler_rtti_exceptions=no 8013 ac_outfile=conftest.$ac_objext 8014 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8015 lt_compiler_flag="-fno-rtti -fno-exceptions" 8016 # Insert the option either (1) after the last *FLAGS variable, or 8017 # (2) before a word containing "conftest.", or (3) at the end. 8018 # Note that $ac_compile itself does not contain backslashes and begins 8019 # with a dollar sign (not a hyphen), so the echo should work correctly. 8020 # The option is referenced via a variable to avoid confusing sed. 8021 lt_compile=`echo "$ac_compile" | $SED \ 8022 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8023 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8024 -e 's:$: $lt_compiler_flag:'` 8025 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8026 (eval "$lt_compile" 2>conftest.err) 8027 ac_status=$? 8028 cat conftest.err >&5 8029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8030 if (exit $ac_status) && test -s "$ac_outfile"; then 8031 # The compiler can only warn and ignore the option if not recognized 8032 # So say no if there are warnings other than the usual output. 8033 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8034 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8035 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8036 lt_cv_prog_compiler_rtti_exceptions=yes 8037 fi 8038 fi 8039 $RM conftest* 8040 8041fi 8042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8043$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8044 8045if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8046 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8047else 8048 : 8049fi 8050 8051fi 8052 8053 8054 8055 8056 8057 8058 lt_prog_compiler_wl= 8059lt_prog_compiler_pic= 8060lt_prog_compiler_static= 8061 8062 8063 if test "$GCC" = yes; then 8064 lt_prog_compiler_wl='-Wl,' 8065 lt_prog_compiler_static='-static' 8066 8067 case $host_os in 8068 aix*) 8069 # All AIX code is PIC. 8070 if test "$host_cpu" = ia64; then 8071 # AIX 5 now supports IA64 processor 8072 lt_prog_compiler_static='-Bstatic' 8073 fi 8074 ;; 8075 8076 amigaos*) 8077 case $host_cpu in 8078 powerpc) 8079 # see comment about AmigaOS4 .so support 8080 lt_prog_compiler_pic='-fPIC' 8081 ;; 8082 m68k) 8083 # FIXME: we need at least 68020 code to build shared libraries, but 8084 # adding the `-m68020' flag to GCC prevents building anything better, 8085 # like `-m68040'. 8086 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8087 ;; 8088 esac 8089 ;; 8090 8091 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8092 # PIC is the default for these OSes. 8093 ;; 8094 8095 mingw* | cygwin* | pw32* | os2* | cegcc*) 8096 # This hack is so that the source file can tell whether it is being 8097 # built for inclusion in a dll (and should export symbols for example). 8098 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8099 # (--disable-auto-import) libraries 8100 lt_prog_compiler_pic='-DDLL_EXPORT' 8101 ;; 8102 8103 darwin* | rhapsody*) 8104 # PIC is the default on this platform 8105 # Common symbols not allowed in MH_DYLIB files 8106 lt_prog_compiler_pic='-fno-common' 8107 ;; 8108 8109 haiku*) 8110 # PIC is the default for Haiku. 8111 # The "-static" flag exists, but is broken. 8112 lt_prog_compiler_static= 8113 ;; 8114 8115 hpux*) 8116 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8117 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8118 # sets the default TLS model and affects inlining. 8119 case $host_cpu in 8120 hppa*64*) 8121 # +Z the default 8122 ;; 8123 *) 8124 lt_prog_compiler_pic='-fPIC' 8125 ;; 8126 esac 8127 ;; 8128 8129 interix[3-9]*) 8130 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8131 # Instead, we relocate shared libraries at runtime. 8132 ;; 8133 8134 msdosdjgpp*) 8135 # Just because we use GCC doesn't mean we suddenly get shared libraries 8136 # on systems that don't support them. 8137 lt_prog_compiler_can_build_shared=no 8138 enable_shared=no 8139 ;; 8140 8141 *nto* | *qnx*) 8142 # QNX uses GNU C++, but need to define -shared option too, otherwise 8143 # it will coredump. 8144 lt_prog_compiler_pic='-fPIC -shared' 8145 ;; 8146 8147 sysv4*MP*) 8148 if test -d /usr/nec; then 8149 lt_prog_compiler_pic=-Kconform_pic 8150 fi 8151 ;; 8152 8153 *) 8154 lt_prog_compiler_pic='-fPIC' 8155 ;; 8156 esac 8157 8158 case $cc_basename in 8159 nvcc*) # Cuda Compiler Driver 2.2 8160 lt_prog_compiler_wl='-Xlinker ' 8161 if test -n "$lt_prog_compiler_pic"; then 8162 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8163 fi 8164 ;; 8165 esac 8166 else 8167 # PORTME Check for flag to pass linker flags through the system compiler. 8168 case $host_os in 8169 aix*) 8170 lt_prog_compiler_wl='-Wl,' 8171 if test "$host_cpu" = ia64; then 8172 # AIX 5 now supports IA64 processor 8173 lt_prog_compiler_static='-Bstatic' 8174 else 8175 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8176 fi 8177 ;; 8178 8179 mingw* | cygwin* | pw32* | os2* | cegcc*) 8180 # This hack is so that the source file can tell whether it is being 8181 # built for inclusion in a dll (and should export symbols for example). 8182 lt_prog_compiler_pic='-DDLL_EXPORT' 8183 ;; 8184 8185 hpux9* | hpux10* | hpux11*) 8186 lt_prog_compiler_wl='-Wl,' 8187 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8188 # not for PA HP-UX. 8189 case $host_cpu in 8190 hppa*64*|ia64*) 8191 # +Z the default 8192 ;; 8193 *) 8194 lt_prog_compiler_pic='+Z' 8195 ;; 8196 esac 8197 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8198 lt_prog_compiler_static='${wl}-a ${wl}archive' 8199 ;; 8200 8201 irix5* | irix6* | nonstopux*) 8202 lt_prog_compiler_wl='-Wl,' 8203 # PIC (with -KPIC) is the default. 8204 lt_prog_compiler_static='-non_shared' 8205 ;; 8206 8207 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8208 case $cc_basename in 8209 # old Intel for x86_64 which still supported -KPIC. 8210 ecc*) 8211 lt_prog_compiler_wl='-Wl,' 8212 lt_prog_compiler_pic='-KPIC' 8213 lt_prog_compiler_static='-static' 8214 ;; 8215 # icc used to be incompatible with GCC. 8216 # ICC 10 doesn't accept -KPIC any more. 8217 icc* | ifort*) 8218 lt_prog_compiler_wl='-Wl,' 8219 lt_prog_compiler_pic='-fPIC' 8220 lt_prog_compiler_static='-static' 8221 ;; 8222 # Lahey Fortran 8.1. 8223 lf95*) 8224 lt_prog_compiler_wl='-Wl,' 8225 lt_prog_compiler_pic='--shared' 8226 lt_prog_compiler_static='--static' 8227 ;; 8228 nagfor*) 8229 # NAG Fortran compiler 8230 lt_prog_compiler_wl='-Wl,-Wl,,' 8231 lt_prog_compiler_pic='-PIC' 8232 lt_prog_compiler_static='-Bstatic' 8233 ;; 8234 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8235 # Portland Group compilers (*not* the Pentium gcc compiler, 8236 # which looks to be a dead project) 8237 lt_prog_compiler_wl='-Wl,' 8238 lt_prog_compiler_pic='-fpic' 8239 lt_prog_compiler_static='-Bstatic' 8240 ;; 8241 ccc*) 8242 lt_prog_compiler_wl='-Wl,' 8243 # All Alpha code is PIC. 8244 lt_prog_compiler_static='-non_shared' 8245 ;; 8246 xl* | bgxl* | bgf* | mpixl*) 8247 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8248 lt_prog_compiler_wl='-Wl,' 8249 lt_prog_compiler_pic='-qpic' 8250 lt_prog_compiler_static='-qstaticlink' 8251 ;; 8252 *) 8253 case `$CC -V 2>&1 | sed 5q` in 8254 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8255 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8256 lt_prog_compiler_pic='-KPIC' 8257 lt_prog_compiler_static='-Bstatic' 8258 lt_prog_compiler_wl='' 8259 ;; 8260 *Sun\ F* | *Sun*Fortran*) 8261 lt_prog_compiler_pic='-KPIC' 8262 lt_prog_compiler_static='-Bstatic' 8263 lt_prog_compiler_wl='-Qoption ld ' 8264 ;; 8265 *Sun\ C*) 8266 # Sun C 5.9 8267 lt_prog_compiler_pic='-KPIC' 8268 lt_prog_compiler_static='-Bstatic' 8269 lt_prog_compiler_wl='-Wl,' 8270 ;; 8271 *Intel*\ [CF]*Compiler*) 8272 lt_prog_compiler_wl='-Wl,' 8273 lt_prog_compiler_pic='-fPIC' 8274 lt_prog_compiler_static='-static' 8275 ;; 8276 *Portland\ Group*) 8277 lt_prog_compiler_wl='-Wl,' 8278 lt_prog_compiler_pic='-fpic' 8279 lt_prog_compiler_static='-Bstatic' 8280 ;; 8281 esac 8282 ;; 8283 esac 8284 ;; 8285 8286 newsos6) 8287 lt_prog_compiler_pic='-KPIC' 8288 lt_prog_compiler_static='-Bstatic' 8289 ;; 8290 8291 *nto* | *qnx*) 8292 # QNX uses GNU C++, but need to define -shared option too, otherwise 8293 # it will coredump. 8294 lt_prog_compiler_pic='-fPIC -shared' 8295 ;; 8296 8297 osf3* | osf4* | osf5*) 8298 lt_prog_compiler_wl='-Wl,' 8299 # All OSF/1 code is PIC. 8300 lt_prog_compiler_static='-non_shared' 8301 ;; 8302 8303 rdos*) 8304 lt_prog_compiler_static='-non_shared' 8305 ;; 8306 8307 solaris*) 8308 lt_prog_compiler_pic='-KPIC' 8309 lt_prog_compiler_static='-Bstatic' 8310 case $cc_basename in 8311 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8312 lt_prog_compiler_wl='-Qoption ld ';; 8313 *) 8314 lt_prog_compiler_wl='-Wl,';; 8315 esac 8316 ;; 8317 8318 sunos4*) 8319 lt_prog_compiler_wl='-Qoption ld ' 8320 lt_prog_compiler_pic='-PIC' 8321 lt_prog_compiler_static='-Bstatic' 8322 ;; 8323 8324 sysv4 | sysv4.2uw2* | sysv4.3*) 8325 lt_prog_compiler_wl='-Wl,' 8326 lt_prog_compiler_pic='-KPIC' 8327 lt_prog_compiler_static='-Bstatic' 8328 ;; 8329 8330 sysv4*MP*) 8331 if test -d /usr/nec ;then 8332 lt_prog_compiler_pic='-Kconform_pic' 8333 lt_prog_compiler_static='-Bstatic' 8334 fi 8335 ;; 8336 8337 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8338 lt_prog_compiler_wl='-Wl,' 8339 lt_prog_compiler_pic='-KPIC' 8340 lt_prog_compiler_static='-Bstatic' 8341 ;; 8342 8343 unicos*) 8344 lt_prog_compiler_wl='-Wl,' 8345 lt_prog_compiler_can_build_shared=no 8346 ;; 8347 8348 uts4*) 8349 lt_prog_compiler_pic='-pic' 8350 lt_prog_compiler_static='-Bstatic' 8351 ;; 8352 8353 *) 8354 lt_prog_compiler_can_build_shared=no 8355 ;; 8356 esac 8357 fi 8358 8359case $host_os in 8360 # For platforms which do not support PIC, -DPIC is meaningless: 8361 *djgpp*) 8362 lt_prog_compiler_pic= 8363 ;; 8364 *) 8365 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8366 ;; 8367esac 8368 8369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8370$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8371if ${lt_cv_prog_compiler_pic+:} false; then : 8372 $as_echo_n "(cached) " >&6 8373else 8374 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8375fi 8376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8377$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8378lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8379 8380# 8381# Check to make sure the PIC flag actually works. 8382# 8383if test -n "$lt_prog_compiler_pic"; then 8384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8385$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8386if ${lt_cv_prog_compiler_pic_works+:} false; then : 8387 $as_echo_n "(cached) " >&6 8388else 8389 lt_cv_prog_compiler_pic_works=no 8390 ac_outfile=conftest.$ac_objext 8391 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8392 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8393 # Insert the option either (1) after the last *FLAGS variable, or 8394 # (2) before a word containing "conftest.", or (3) at the end. 8395 # Note that $ac_compile itself does not contain backslashes and begins 8396 # with a dollar sign (not a hyphen), so the echo should work correctly. 8397 # The option is referenced via a variable to avoid confusing sed. 8398 lt_compile=`echo "$ac_compile" | $SED \ 8399 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8400 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8401 -e 's:$: $lt_compiler_flag:'` 8402 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8403 (eval "$lt_compile" 2>conftest.err) 8404 ac_status=$? 8405 cat conftest.err >&5 8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8407 if (exit $ac_status) && test -s "$ac_outfile"; then 8408 # The compiler can only warn and ignore the option if not recognized 8409 # So say no if there are warnings other than the usual output. 8410 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8411 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8412 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8413 lt_cv_prog_compiler_pic_works=yes 8414 fi 8415 fi 8416 $RM conftest* 8417 8418fi 8419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8420$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8421 8422if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8423 case $lt_prog_compiler_pic in 8424 "" | " "*) ;; 8425 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8426 esac 8427else 8428 lt_prog_compiler_pic= 8429 lt_prog_compiler_can_build_shared=no 8430fi 8431 8432fi 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444# 8445# Check to make sure the static flag actually works. 8446# 8447wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8449$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8450if ${lt_cv_prog_compiler_static_works+:} false; then : 8451 $as_echo_n "(cached) " >&6 8452else 8453 lt_cv_prog_compiler_static_works=no 8454 save_LDFLAGS="$LDFLAGS" 8455 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8456 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8457 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8458 # The linker can only warn and ignore the option if not recognized 8459 # So say no if there are warnings 8460 if test -s conftest.err; then 8461 # Append any errors to the config.log. 8462 cat conftest.err 1>&5 8463 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8464 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8465 if diff conftest.exp conftest.er2 >/dev/null; then 8466 lt_cv_prog_compiler_static_works=yes 8467 fi 8468 else 8469 lt_cv_prog_compiler_static_works=yes 8470 fi 8471 fi 8472 $RM -r conftest* 8473 LDFLAGS="$save_LDFLAGS" 8474 8475fi 8476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8477$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8478 8479if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8480 : 8481else 8482 lt_prog_compiler_static= 8483fi 8484 8485 8486 8487 8488 8489 8490 8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8492$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8493if ${lt_cv_prog_compiler_c_o+:} false; then : 8494 $as_echo_n "(cached) " >&6 8495else 8496 lt_cv_prog_compiler_c_o=no 8497 $RM -r conftest 2>/dev/null 8498 mkdir conftest 8499 cd conftest 8500 mkdir out 8501 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8502 8503 lt_compiler_flag="-o out/conftest2.$ac_objext" 8504 # Insert the option either (1) after the last *FLAGS variable, or 8505 # (2) before a word containing "conftest.", or (3) at the end. 8506 # Note that $ac_compile itself does not contain backslashes and begins 8507 # with a dollar sign (not a hyphen), so the echo should work correctly. 8508 lt_compile=`echo "$ac_compile" | $SED \ 8509 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8510 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8511 -e 's:$: $lt_compiler_flag:'` 8512 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8513 (eval "$lt_compile" 2>out/conftest.err) 8514 ac_status=$? 8515 cat out/conftest.err >&5 8516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8517 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8518 then 8519 # The compiler can only warn and ignore the option if not recognized 8520 # So say no if there are warnings 8521 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8522 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8523 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8524 lt_cv_prog_compiler_c_o=yes 8525 fi 8526 fi 8527 chmod u+w . 2>&5 8528 $RM conftest* 8529 # SGI C++ compiler will create directory out/ii_files/ for 8530 # template instantiation 8531 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8532 $RM out/* && rmdir out 8533 cd .. 8534 $RM -r conftest 8535 $RM conftest* 8536 8537fi 8538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8539$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8540 8541 8542 8543 8544 8545 8546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8547$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8548if ${lt_cv_prog_compiler_c_o+:} false; then : 8549 $as_echo_n "(cached) " >&6 8550else 8551 lt_cv_prog_compiler_c_o=no 8552 $RM -r conftest 2>/dev/null 8553 mkdir conftest 8554 cd conftest 8555 mkdir out 8556 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8557 8558 lt_compiler_flag="-o out/conftest2.$ac_objext" 8559 # Insert the option either (1) after the last *FLAGS variable, or 8560 # (2) before a word containing "conftest.", or (3) at the end. 8561 # Note that $ac_compile itself does not contain backslashes and begins 8562 # with a dollar sign (not a hyphen), so the echo should work correctly. 8563 lt_compile=`echo "$ac_compile" | $SED \ 8564 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8565 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8566 -e 's:$: $lt_compiler_flag:'` 8567 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8568 (eval "$lt_compile" 2>out/conftest.err) 8569 ac_status=$? 8570 cat out/conftest.err >&5 8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8572 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8573 then 8574 # The compiler can only warn and ignore the option if not recognized 8575 # So say no if there are warnings 8576 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8577 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8578 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8579 lt_cv_prog_compiler_c_o=yes 8580 fi 8581 fi 8582 chmod u+w . 2>&5 8583 $RM conftest* 8584 # SGI C++ compiler will create directory out/ii_files/ for 8585 # template instantiation 8586 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8587 $RM out/* && rmdir out 8588 cd .. 8589 $RM -r conftest 8590 $RM conftest* 8591 8592fi 8593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8594$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8595 8596 8597 8598 8599hard_links="nottested" 8600if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8601 # do not overwrite the value of need_locks provided by the user 8602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8603$as_echo_n "checking if we can lock with hard links... " >&6; } 8604 hard_links=yes 8605 $RM conftest* 8606 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8607 touch conftest.a 8608 ln conftest.a conftest.b 2>&5 || hard_links=no 8609 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8611$as_echo "$hard_links" >&6; } 8612 if test "$hard_links" = no; then 8613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8614$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8615 need_locks=warn 8616 fi 8617else 8618 need_locks=no 8619fi 8620 8621 8622 8623 8624 8625 8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8627$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8628 8629 runpath_var= 8630 allow_undefined_flag= 8631 always_export_symbols=no 8632 archive_cmds= 8633 archive_expsym_cmds= 8634 compiler_needs_object=no 8635 enable_shared_with_static_runtimes=no 8636 export_dynamic_flag_spec= 8637 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8638 hardcode_automatic=no 8639 hardcode_direct=no 8640 hardcode_direct_absolute=no 8641 hardcode_libdir_flag_spec= 8642 hardcode_libdir_separator= 8643 hardcode_minus_L=no 8644 hardcode_shlibpath_var=unsupported 8645 inherit_rpath=no 8646 link_all_deplibs=unknown 8647 module_cmds= 8648 module_expsym_cmds= 8649 old_archive_from_new_cmds= 8650 old_archive_from_expsyms_cmds= 8651 thread_safe_flag_spec= 8652 whole_archive_flag_spec= 8653 # include_expsyms should be a list of space-separated symbols to be *always* 8654 # included in the symbol list 8655 include_expsyms= 8656 # exclude_expsyms can be an extended regexp of symbols to exclude 8657 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8658 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8659 # as well as any symbol that contains `d'. 8660 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8661 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8662 # platforms (ab)use it in PIC code, but their linkers get confused if 8663 # the symbol is explicitly referenced. Since portable code cannot 8664 # rely on this symbol name, it's probably fine to never include it in 8665 # preloaded symbol tables. 8666 # Exclude shared library initialization/finalization symbols. 8667 extract_expsyms_cmds= 8668 8669 case $host_os in 8670 cygwin* | mingw* | pw32* | cegcc*) 8671 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8672 # When not using gcc, we currently assume that we are using 8673 # Microsoft Visual C++. 8674 if test "$GCC" != yes; then 8675 with_gnu_ld=no 8676 fi 8677 ;; 8678 interix*) 8679 # we just hope/assume this is gcc and not c89 (= MSVC++) 8680 with_gnu_ld=yes 8681 ;; 8682 openbsd*) 8683 with_gnu_ld=no 8684 ;; 8685 linux* | k*bsd*-gnu | gnu*) 8686 link_all_deplibs=no 8687 ;; 8688 esac 8689 8690 ld_shlibs=yes 8691 8692 # On some targets, GNU ld is compatible enough with the native linker 8693 # that we're better off using the native interface for both. 8694 lt_use_gnu_ld_interface=no 8695 if test "$with_gnu_ld" = yes; then 8696 case $host_os in 8697 aix*) 8698 # The AIX port of GNU ld has always aspired to compatibility 8699 # with the native linker. However, as the warning in the GNU ld 8700 # block says, versions before 2.19.5* couldn't really create working 8701 # shared libraries, regardless of the interface used. 8702 case `$LD -v 2>&1` in 8703 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8704 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8705 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8706 *) 8707 lt_use_gnu_ld_interface=yes 8708 ;; 8709 esac 8710 ;; 8711 *) 8712 lt_use_gnu_ld_interface=yes 8713 ;; 8714 esac 8715 fi 8716 8717 if test "$lt_use_gnu_ld_interface" = yes; then 8718 # If archive_cmds runs LD, not CC, wlarc should be empty 8719 wlarc='${wl}' 8720 8721 # Set some defaults for GNU ld with shared library support. These 8722 # are reset later if shared libraries are not supported. Putting them 8723 # here allows them to be overridden if necessary. 8724 runpath_var=LD_RUN_PATH 8725 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8726 export_dynamic_flag_spec='${wl}--export-dynamic' 8727 # ancient GNU ld didn't support --whole-archive et. al. 8728 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8729 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8730 else 8731 whole_archive_flag_spec= 8732 fi 8733 supports_anon_versioning=no 8734 case `$LD -v 2>&1` in 8735 *GNU\ gold*) supports_anon_versioning=yes ;; 8736 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8737 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8738 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8739 *\ 2.11.*) ;; # other 2.11 versions 8740 *) supports_anon_versioning=yes ;; 8741 esac 8742 8743 # See if GNU ld supports shared libraries. 8744 case $host_os in 8745 aix[3-9]*) 8746 # On AIX/PPC, the GNU linker is very broken 8747 if test "$host_cpu" != ia64; then 8748 ld_shlibs=no 8749 cat <<_LT_EOF 1>&2 8750 8751*** Warning: the GNU linker, at least up to release 2.19, is reported 8752*** to be unable to reliably create shared libraries on AIX. 8753*** Therefore, libtool is disabling shared libraries support. If you 8754*** really care for shared libraries, you may want to install binutils 8755*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8756*** You will then need to restart the configuration process. 8757 8758_LT_EOF 8759 fi 8760 ;; 8761 8762 amigaos*) 8763 case $host_cpu in 8764 powerpc) 8765 # see comment about AmigaOS4 .so support 8766 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8767 archive_expsym_cmds='' 8768 ;; 8769 m68k) 8770 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 8771 hardcode_libdir_flag_spec='-L$libdir' 8772 hardcode_minus_L=yes 8773 ;; 8774 esac 8775 ;; 8776 8777 beos*) 8778 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8779 allow_undefined_flag=unsupported 8780 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8781 # support --undefined. This deserves some investigation. FIXME 8782 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8783 else 8784 ld_shlibs=no 8785 fi 8786 ;; 8787 8788 cygwin* | mingw* | pw32* | cegcc*) 8789 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8790 # as there is no search path for DLLs. 8791 hardcode_libdir_flag_spec='-L$libdir' 8792 export_dynamic_flag_spec='${wl}--export-all-symbols' 8793 allow_undefined_flag=unsupported 8794 always_export_symbols=no 8795 enable_shared_with_static_runtimes=yes 8796 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 8797 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8798 8799 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8800 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8801 # If the export-symbols file already is a .def file (1st line 8802 # is EXPORTS), use it as is; otherwise, prepend... 8803 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8804 cp $export_symbols $output_objdir/$soname.def; 8805 else 8806 echo EXPORTS > $output_objdir/$soname.def; 8807 cat $export_symbols >> $output_objdir/$soname.def; 8808 fi~ 8809 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8810 else 8811 ld_shlibs=no 8812 fi 8813 ;; 8814 8815 haiku*) 8816 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8817 link_all_deplibs=yes 8818 ;; 8819 8820 interix[3-9]*) 8821 hardcode_direct=no 8822 hardcode_shlibpath_var=no 8823 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8824 export_dynamic_flag_spec='${wl}-E' 8825 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8826 # Instead, shared libraries are loaded at an image base (0x10000000 by 8827 # default) and relocated if they conflict, which is a slow very memory 8828 # consuming and fragmenting process. To avoid this, we pick a random, 8829 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8830 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8831 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8832 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8833 ;; 8834 8835 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8836 tmp_diet=no 8837 if test "$host_os" = linux-dietlibc; then 8838 case $cc_basename in 8839 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8840 esac 8841 fi 8842 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8843 && test "$tmp_diet" = no 8844 then 8845 tmp_addflag=' $pic_flag' 8846 tmp_sharedflag='-shared' 8847 case $cc_basename,$host_cpu in 8848 pgcc*) # Portland Group C compiler 8849 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 8850 tmp_addflag=' $pic_flag' 8851 ;; 8852 pgf77* | pgf90* | pgf95* | pgfortran*) 8853 # Portland Group f77 and f90 compilers 8854 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 8855 tmp_addflag=' $pic_flag -Mnomain' ;; 8856 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8857 tmp_addflag=' -i_dynamic' ;; 8858 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8859 tmp_addflag=' -i_dynamic -nofor_main' ;; 8860 ifc* | ifort*) # Intel Fortran compiler 8861 tmp_addflag=' -nofor_main' ;; 8862 lf95*) # Lahey Fortran 8.1 8863 whole_archive_flag_spec= 8864 tmp_sharedflag='--shared' ;; 8865 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8866 tmp_sharedflag='-qmkshrobj' 8867 tmp_addflag= ;; 8868 nvcc*) # Cuda Compiler Driver 2.2 8869 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 8870 compiler_needs_object=yes 8871 ;; 8872 esac 8873 case `$CC -V 2>&1 | sed 5q` in 8874 *Sun\ C*) # Sun C 5.9 8875 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 8876 compiler_needs_object=yes 8877 tmp_sharedflag='-G' ;; 8878 *Sun\ F*) # Sun Fortran 8.3 8879 tmp_sharedflag='-G' ;; 8880 esac 8881 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8882 8883 if test "x$supports_anon_versioning" = xyes; then 8884 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8885 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8886 echo "local: *; };" >> $output_objdir/$libname.ver~ 8887 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8888 fi 8889 8890 case $cc_basename in 8891 xlf* | bgf* | bgxlf* | mpixlf*) 8892 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8893 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8894 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8895 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 8896 if test "x$supports_anon_versioning" = xyes; then 8897 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8898 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8899 echo "local: *; };" >> $output_objdir/$libname.ver~ 8900 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8901 fi 8902 ;; 8903 esac 8904 else 8905 ld_shlibs=no 8906 fi 8907 ;; 8908 8909 netbsd* | netbsdelf*-gnu) 8910 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8911 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8912 wlarc= 8913 else 8914 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8915 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8916 fi 8917 ;; 8918 8919 solaris*) 8920 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8921 ld_shlibs=no 8922 cat <<_LT_EOF 1>&2 8923 8924*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8925*** create shared libraries on Solaris systems. Therefore, libtool 8926*** is disabling shared libraries support. We urge you to upgrade GNU 8927*** binutils to release 2.9.1 or newer. Another option is to modify 8928*** your PATH or compiler configuration so that the native linker is 8929*** used, and then restart. 8930 8931_LT_EOF 8932 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8933 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8934 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8935 else 8936 ld_shlibs=no 8937 fi 8938 ;; 8939 8940 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8941 case `$LD -v 2>&1` in 8942 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8943 ld_shlibs=no 8944 cat <<_LT_EOF 1>&2 8945 8946*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8947*** reliably create shared libraries on SCO systems. Therefore, libtool 8948*** is disabling shared libraries support. We urge you to upgrade GNU 8949*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8950*** your PATH or compiler configuration so that the native linker is 8951*** used, and then restart. 8952 8953_LT_EOF 8954 ;; 8955 *) 8956 # For security reasons, it is highly recommended that you always 8957 # use absolute paths for naming shared libraries, and exclude the 8958 # DT_RUNPATH tag from executables and libraries. But doing so 8959 # requires that you compile everything twice, which is a pain. 8960 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8961 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8962 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8963 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8964 else 8965 ld_shlibs=no 8966 fi 8967 ;; 8968 esac 8969 ;; 8970 8971 sunos4*) 8972 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8973 wlarc= 8974 hardcode_direct=yes 8975 hardcode_shlibpath_var=no 8976 ;; 8977 8978 *) 8979 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8980 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8981 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8982 else 8983 ld_shlibs=no 8984 fi 8985 ;; 8986 esac 8987 8988 if test "$ld_shlibs" = no; then 8989 runpath_var= 8990 hardcode_libdir_flag_spec= 8991 export_dynamic_flag_spec= 8992 whole_archive_flag_spec= 8993 fi 8994 else 8995 # PORTME fill in a description of your system's linker (not GNU ld) 8996 case $host_os in 8997 aix3*) 8998 allow_undefined_flag=unsupported 8999 always_export_symbols=yes 9000 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 9001 # Note: this linker hardcodes the directories in LIBPATH if there 9002 # are no directories specified by -L. 9003 hardcode_minus_L=yes 9004 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9005 # Neither direct hardcoding nor static linking is supported with a 9006 # broken collect2. 9007 hardcode_direct=unsupported 9008 fi 9009 ;; 9010 9011 aix[4-9]*) 9012 if test "$host_cpu" = ia64; then 9013 # On IA64, the linker does run time linking by default, so we don't 9014 # have to do anything special. 9015 aix_use_runtimelinking=no 9016 exp_sym_flag='-Bexport' 9017 no_entry_flag="" 9018 else 9019 # If we're using GNU nm, then we don't want the "-C" option. 9020 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9021 # Also, AIX nm treats weak defined symbols like other global 9022 # defined symbols, whereas GNU nm marks them as "W". 9023 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9024 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9025 else 9026 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9027 fi 9028 aix_use_runtimelinking=no 9029 9030 # Test if we are trying to use run time linking or normal 9031 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9032 # need to do runtime linking. 9033 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9034 for ld_flag in $LDFLAGS; do 9035 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9036 aix_use_runtimelinking=yes 9037 break 9038 fi 9039 done 9040 ;; 9041 esac 9042 9043 exp_sym_flag='-bexport' 9044 no_entry_flag='-bnoentry' 9045 fi 9046 9047 # When large executables or shared objects are built, AIX ld can 9048 # have problems creating the table of contents. If linking a library 9049 # or program results in "error TOC overflow" add -mminimal-toc to 9050 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9051 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9052 9053 archive_cmds='' 9054 hardcode_direct=yes 9055 hardcode_direct_absolute=yes 9056 hardcode_libdir_separator=':' 9057 link_all_deplibs=yes 9058 file_list_spec='${wl}-f,' 9059 9060 if test "$GCC" = yes; then 9061 case $host_os in aix4.[012]|aix4.[012].*) 9062 # We only want to do this on AIX 4.2 and lower, the check 9063 # below for broken collect2 doesn't work under 4.3+ 9064 collect2name=`${CC} -print-prog-name=collect2` 9065 if test -f "$collect2name" && 9066 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9067 then 9068 # We have reworked collect2 9069 : 9070 else 9071 # We have old collect2 9072 hardcode_direct=unsupported 9073 # It fails to find uninstalled libraries when the uninstalled 9074 # path is not listed in the libpath. Setting hardcode_minus_L 9075 # to unsupported forces relinking 9076 hardcode_minus_L=yes 9077 hardcode_libdir_flag_spec='-L$libdir' 9078 hardcode_libdir_separator= 9079 fi 9080 ;; 9081 esac 9082 shared_flag='-shared' 9083 if test "$aix_use_runtimelinking" = yes; then 9084 shared_flag="$shared_flag "'${wl}-G' 9085 fi 9086 link_all_deplibs=no 9087 else 9088 # not using gcc 9089 if test "$host_cpu" = ia64; then 9090 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9091 # chokes on -Wl,-G. The following line is correct: 9092 shared_flag='-G' 9093 else 9094 if test "$aix_use_runtimelinking" = yes; then 9095 shared_flag='${wl}-G' 9096 else 9097 shared_flag='${wl}-bM:SRE' 9098 fi 9099 fi 9100 fi 9101 9102 export_dynamic_flag_spec='${wl}-bexpall' 9103 # It seems that -bexpall does not export symbols beginning with 9104 # underscore (_), so it is better to generate a list of symbols to export. 9105 always_export_symbols=yes 9106 if test "$aix_use_runtimelinking" = yes; then 9107 # Warning - without using the other runtime loading flags (-brtl), 9108 # -berok will link without error, but may produce a broken library. 9109 allow_undefined_flag='-berok' 9110 # Determine the default libpath from the value encoded in an 9111 # empty executable. 9112 if test "${lt_cv_aix_libpath+set}" = set; then 9113 aix_libpath=$lt_cv_aix_libpath 9114else 9115 if ${lt_cv_aix_libpath_+:} false; then : 9116 $as_echo_n "(cached) " >&6 9117else 9118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9119/* end confdefs.h. */ 9120 9121int 9122main () 9123{ 9124 9125 ; 9126 return 0; 9127} 9128_ACEOF 9129if ac_fn_c_try_link "$LINENO"; then : 9130 9131 lt_aix_libpath_sed=' 9132 /Import File Strings/,/^$/ { 9133 /^0/ { 9134 s/^0 *\([^ ]*\) *$/\1/ 9135 p 9136 } 9137 }' 9138 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9139 # Check for a 64-bit object if we didn't find anything. 9140 if test -z "$lt_cv_aix_libpath_"; then 9141 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9142 fi 9143fi 9144rm -f core conftest.err conftest.$ac_objext \ 9145 conftest$ac_exeext conftest.$ac_ext 9146 if test -z "$lt_cv_aix_libpath_"; then 9147 lt_cv_aix_libpath_="/usr/lib:/lib" 9148 fi 9149 9150fi 9151 9152 aix_libpath=$lt_cv_aix_libpath_ 9153fi 9154 9155 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9156 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9157 else 9158 if test "$host_cpu" = ia64; then 9159 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9160 allow_undefined_flag="-z nodefs" 9161 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 9162 else 9163 # Determine the default libpath from the value encoded in an 9164 # empty executable. 9165 if test "${lt_cv_aix_libpath+set}" = set; then 9166 aix_libpath=$lt_cv_aix_libpath 9167else 9168 if ${lt_cv_aix_libpath_+:} false; then : 9169 $as_echo_n "(cached) " >&6 9170else 9171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9172/* end confdefs.h. */ 9173 9174int 9175main () 9176{ 9177 9178 ; 9179 return 0; 9180} 9181_ACEOF 9182if ac_fn_c_try_link "$LINENO"; then : 9183 9184 lt_aix_libpath_sed=' 9185 /Import File Strings/,/^$/ { 9186 /^0/ { 9187 s/^0 *\([^ ]*\) *$/\1/ 9188 p 9189 } 9190 }' 9191 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9192 # Check for a 64-bit object if we didn't find anything. 9193 if test -z "$lt_cv_aix_libpath_"; then 9194 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9195 fi 9196fi 9197rm -f core conftest.err conftest.$ac_objext \ 9198 conftest$ac_exeext conftest.$ac_ext 9199 if test -z "$lt_cv_aix_libpath_"; then 9200 lt_cv_aix_libpath_="/usr/lib:/lib" 9201 fi 9202 9203fi 9204 9205 aix_libpath=$lt_cv_aix_libpath_ 9206fi 9207 9208 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9209 # Warning - without using the other run time loading flags, 9210 # -berok will link without error, but may produce a broken library. 9211 no_undefined_flag=' ${wl}-bernotok' 9212 allow_undefined_flag=' ${wl}-berok' 9213 if test "$with_gnu_ld" = yes; then 9214 # We only use this code for GNU lds that support --whole-archive. 9215 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9216 else 9217 # Exported symbols can be pulled into shared objects from archives 9218 whole_archive_flag_spec='$convenience' 9219 fi 9220 archive_cmds_need_lc=yes 9221 # This is similar to how AIX traditionally builds its shared libraries. 9222 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 9223 fi 9224 fi 9225 ;; 9226 9227 amigaos*) 9228 case $host_cpu in 9229 powerpc) 9230 # see comment about AmigaOS4 .so support 9231 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9232 archive_expsym_cmds='' 9233 ;; 9234 m68k) 9235 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 9236 hardcode_libdir_flag_spec='-L$libdir' 9237 hardcode_minus_L=yes 9238 ;; 9239 esac 9240 ;; 9241 9242 bsdi[45]*) 9243 export_dynamic_flag_spec=-rdynamic 9244 ;; 9245 9246 cygwin* | mingw* | pw32* | cegcc*) 9247 # When not using gcc, we currently assume that we are using 9248 # Microsoft Visual C++. 9249 # hardcode_libdir_flag_spec is actually meaningless, as there is 9250 # no search path for DLLs. 9251 case $cc_basename in 9252 cl*) 9253 # Native MSVC 9254 hardcode_libdir_flag_spec=' ' 9255 allow_undefined_flag=unsupported 9256 always_export_symbols=yes 9257 file_list_spec='@' 9258 # Tell ltmain to make .lib files, not .a files. 9259 libext=lib 9260 # Tell ltmain to make .dll files, not .so files. 9261 shrext_cmds=".dll" 9262 # FIXME: Setting linknames here is a bad hack. 9263 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9264 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9265 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9266 else 9267 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9268 fi~ 9269 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9270 linknames=' 9271 # The linker will not automatically build a static lib if we build a DLL. 9272 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9273 enable_shared_with_static_runtimes=yes 9274 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9275 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9276 # Don't use ranlib 9277 old_postinstall_cmds='chmod 644 $oldlib' 9278 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9279 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9280 case $lt_outputfile in 9281 *.exe|*.EXE) ;; 9282 *) 9283 lt_outputfile="$lt_outputfile.exe" 9284 lt_tool_outputfile="$lt_tool_outputfile.exe" 9285 ;; 9286 esac~ 9287 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9288 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9289 $RM "$lt_outputfile.manifest"; 9290 fi' 9291 ;; 9292 *) 9293 # Assume MSVC wrapper 9294 hardcode_libdir_flag_spec=' ' 9295 allow_undefined_flag=unsupported 9296 # Tell ltmain to make .lib files, not .a files. 9297 libext=lib 9298 # Tell ltmain to make .dll files, not .so files. 9299 shrext_cmds=".dll" 9300 # FIXME: Setting linknames here is a bad hack. 9301 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9302 # The linker will automatically build a .lib file if we build a DLL. 9303 old_archive_from_new_cmds='true' 9304 # FIXME: Should let the user specify the lib program. 9305 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9306 enable_shared_with_static_runtimes=yes 9307 ;; 9308 esac 9309 ;; 9310 9311 darwin* | rhapsody*) 9312 9313 9314 archive_cmds_need_lc=no 9315 hardcode_direct=no 9316 hardcode_automatic=yes 9317 hardcode_shlibpath_var=unsupported 9318 if test "$lt_cv_ld_force_load" = "yes"; then 9319 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 9320 9321 else 9322 whole_archive_flag_spec='' 9323 fi 9324 link_all_deplibs=yes 9325 allow_undefined_flag="$_lt_dar_allow_undefined" 9326 case $cc_basename in 9327 ifort*) _lt_dar_can_shared=yes ;; 9328 *) _lt_dar_can_shared=$GCC ;; 9329 esac 9330 if test "$_lt_dar_can_shared" = "yes"; then 9331 output_verbose_link_cmd=func_echo_all 9332 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9333 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9334 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 9335 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 9336 9337 else 9338 ld_shlibs=no 9339 fi 9340 9341 ;; 9342 9343 dgux*) 9344 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9345 hardcode_libdir_flag_spec='-L$libdir' 9346 hardcode_shlibpath_var=no 9347 ;; 9348 9349 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9350 # support. Future versions do this automatically, but an explicit c++rt0.o 9351 # does not break anything, and helps significantly (at the cost of a little 9352 # extra space). 9353 freebsd2.2*) 9354 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9355 hardcode_libdir_flag_spec='-R$libdir' 9356 hardcode_direct=yes 9357 hardcode_shlibpath_var=no 9358 ;; 9359 9360 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9361 freebsd2.*) 9362 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9363 hardcode_direct=yes 9364 hardcode_minus_L=yes 9365 hardcode_shlibpath_var=no 9366 ;; 9367 9368 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9369 freebsd* | dragonfly*) 9370 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9371 hardcode_libdir_flag_spec='-R$libdir' 9372 hardcode_direct=yes 9373 hardcode_shlibpath_var=no 9374 ;; 9375 9376 hpux9*) 9377 if test "$GCC" = yes; then 9378 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9379 else 9380 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9381 fi 9382 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9383 hardcode_libdir_separator=: 9384 hardcode_direct=yes 9385 9386 # hardcode_minus_L: Not really in the search PATH, 9387 # but as the default location of the library. 9388 hardcode_minus_L=yes 9389 export_dynamic_flag_spec='${wl}-E' 9390 ;; 9391 9392 hpux10*) 9393 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9394 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9395 else 9396 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9397 fi 9398 if test "$with_gnu_ld" = no; then 9399 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9400 hardcode_libdir_separator=: 9401 hardcode_direct=yes 9402 hardcode_direct_absolute=yes 9403 export_dynamic_flag_spec='${wl}-E' 9404 # hardcode_minus_L: Not really in the search PATH, 9405 # but as the default location of the library. 9406 hardcode_minus_L=yes 9407 fi 9408 ;; 9409 9410 hpux11*) 9411 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9412 case $host_cpu in 9413 hppa*64*) 9414 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9415 ;; 9416 ia64*) 9417 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9418 ;; 9419 *) 9420 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9421 ;; 9422 esac 9423 else 9424 case $host_cpu in 9425 hppa*64*) 9426 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9427 ;; 9428 ia64*) 9429 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9430 ;; 9431 *) 9432 9433 # Older versions of the 11.00 compiler do not understand -b yet 9434 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9436$as_echo_n "checking if $CC understands -b... " >&6; } 9437if ${lt_cv_prog_compiler__b+:} false; then : 9438 $as_echo_n "(cached) " >&6 9439else 9440 lt_cv_prog_compiler__b=no 9441 save_LDFLAGS="$LDFLAGS" 9442 LDFLAGS="$LDFLAGS -b" 9443 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9444 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9445 # The linker can only warn and ignore the option if not recognized 9446 # So say no if there are warnings 9447 if test -s conftest.err; then 9448 # Append any errors to the config.log. 9449 cat conftest.err 1>&5 9450 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9451 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9452 if diff conftest.exp conftest.er2 >/dev/null; then 9453 lt_cv_prog_compiler__b=yes 9454 fi 9455 else 9456 lt_cv_prog_compiler__b=yes 9457 fi 9458 fi 9459 $RM -r conftest* 9460 LDFLAGS="$save_LDFLAGS" 9461 9462fi 9463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9464$as_echo "$lt_cv_prog_compiler__b" >&6; } 9465 9466if test x"$lt_cv_prog_compiler__b" = xyes; then 9467 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9468else 9469 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9470fi 9471 9472 ;; 9473 esac 9474 fi 9475 if test "$with_gnu_ld" = no; then 9476 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9477 hardcode_libdir_separator=: 9478 9479 case $host_cpu in 9480 hppa*64*|ia64*) 9481 hardcode_direct=no 9482 hardcode_shlibpath_var=no 9483 ;; 9484 *) 9485 hardcode_direct=yes 9486 hardcode_direct_absolute=yes 9487 export_dynamic_flag_spec='${wl}-E' 9488 9489 # hardcode_minus_L: Not really in the search PATH, 9490 # but as the default location of the library. 9491 hardcode_minus_L=yes 9492 ;; 9493 esac 9494 fi 9495 ;; 9496 9497 irix5* | irix6* | nonstopux*) 9498 if test "$GCC" = yes; then 9499 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9500 # Try to use the -exported_symbol ld option, if it does not 9501 # work, assume that -exports_file does not work either and 9502 # implicitly export all symbols. 9503 # This should be the same for all languages, so no per-tag cache variable. 9504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9505$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9506if ${lt_cv_irix_exported_symbol+:} false; then : 9507 $as_echo_n "(cached) " >&6 9508else 9509 save_LDFLAGS="$LDFLAGS" 9510 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9512/* end confdefs.h. */ 9513int foo (void) { return 0; } 9514_ACEOF 9515if ac_fn_c_try_link "$LINENO"; then : 9516 lt_cv_irix_exported_symbol=yes 9517else 9518 lt_cv_irix_exported_symbol=no 9519fi 9520rm -f core conftest.err conftest.$ac_objext \ 9521 conftest$ac_exeext conftest.$ac_ext 9522 LDFLAGS="$save_LDFLAGS" 9523fi 9524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9525$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9526 if test "$lt_cv_irix_exported_symbol" = yes; then 9527 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 9528 fi 9529 else 9530 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 9531 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 9532 fi 9533 archive_cmds_need_lc='no' 9534 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9535 hardcode_libdir_separator=: 9536 inherit_rpath=yes 9537 link_all_deplibs=yes 9538 ;; 9539 9540 netbsd* | netbsdelf*-gnu) 9541 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9542 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9543 else 9544 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9545 fi 9546 hardcode_libdir_flag_spec='-R$libdir' 9547 hardcode_direct=yes 9548 hardcode_shlibpath_var=no 9549 ;; 9550 9551 newsos6) 9552 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9553 hardcode_direct=yes 9554 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9555 hardcode_libdir_separator=: 9556 hardcode_shlibpath_var=no 9557 ;; 9558 9559 *nto* | *qnx*) 9560 ;; 9561 9562 openbsd*) 9563 if test -f /usr/libexec/ld.so; then 9564 hardcode_direct=yes 9565 hardcode_shlibpath_var=no 9566 hardcode_direct_absolute=yes 9567 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9568 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9569 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9570 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9571 export_dynamic_flag_spec='${wl}-E' 9572 else 9573 case $host_os in 9574 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9575 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9576 hardcode_libdir_flag_spec='-R$libdir' 9577 ;; 9578 *) 9579 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9580 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9581 ;; 9582 esac 9583 fi 9584 else 9585 ld_shlibs=no 9586 fi 9587 ;; 9588 9589 os2*) 9590 hardcode_libdir_flag_spec='-L$libdir' 9591 hardcode_minus_L=yes 9592 allow_undefined_flag=unsupported 9593 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 9594 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9595 ;; 9596 9597 osf3*) 9598 if test "$GCC" = yes; then 9599 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9600 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9601 else 9602 allow_undefined_flag=' -expect_unresolved \*' 9603 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 9604 fi 9605 archive_cmds_need_lc='no' 9606 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9607 hardcode_libdir_separator=: 9608 ;; 9609 9610 osf4* | osf5*) # as osf3* with the addition of -msym flag 9611 if test "$GCC" = yes; then 9612 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9613 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9614 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9615 else 9616 allow_undefined_flag=' -expect_unresolved \*' 9617 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 9618 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 9619 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 9620 9621 # Both c and cxx compiler support -rpath directly 9622 hardcode_libdir_flag_spec='-rpath $libdir' 9623 fi 9624 archive_cmds_need_lc='no' 9625 hardcode_libdir_separator=: 9626 ;; 9627 9628 solaris*) 9629 no_undefined_flag=' -z defs' 9630 if test "$GCC" = yes; then 9631 wlarc='${wl}' 9632 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9633 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9634 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9635 else 9636 case `$CC -V 2>&1` in 9637 *"Compilers 5.0"*) 9638 wlarc='' 9639 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9640 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9641 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9642 ;; 9643 *) 9644 wlarc='${wl}' 9645 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9646 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9647 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9648 ;; 9649 esac 9650 fi 9651 hardcode_libdir_flag_spec='-R$libdir' 9652 hardcode_shlibpath_var=no 9653 case $host_os in 9654 solaris2.[0-5] | solaris2.[0-5].*) ;; 9655 *) 9656 # The compiler driver will combine and reorder linker options, 9657 # but understands `-z linker_flag'. GCC discards it without `$wl', 9658 # but is careful enough not to reorder. 9659 # Supported since Solaris 2.6 (maybe 2.5.1?) 9660 if test "$GCC" = yes; then 9661 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9662 else 9663 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9664 fi 9665 ;; 9666 esac 9667 link_all_deplibs=yes 9668 ;; 9669 9670 sunos4*) 9671 if test "x$host_vendor" = xsequent; then 9672 # Use $CC to link under sequent, because it throws in some extra .o 9673 # files that make .init and .fini sections work. 9674 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9675 else 9676 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9677 fi 9678 hardcode_libdir_flag_spec='-L$libdir' 9679 hardcode_direct=yes 9680 hardcode_minus_L=yes 9681 hardcode_shlibpath_var=no 9682 ;; 9683 9684 sysv4) 9685 case $host_vendor in 9686 sni) 9687 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9688 hardcode_direct=yes # is this really true??? 9689 ;; 9690 siemens) 9691 ## LD is ld it makes a PLAMLIB 9692 ## CC just makes a GrossModule. 9693 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9694 reload_cmds='$CC -r -o $output$reload_objs' 9695 hardcode_direct=no 9696 ;; 9697 motorola) 9698 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9699 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9700 ;; 9701 esac 9702 runpath_var='LD_RUN_PATH' 9703 hardcode_shlibpath_var=no 9704 ;; 9705 9706 sysv4.3*) 9707 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9708 hardcode_shlibpath_var=no 9709 export_dynamic_flag_spec='-Bexport' 9710 ;; 9711 9712 sysv4*MP*) 9713 if test -d /usr/nec; then 9714 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9715 hardcode_shlibpath_var=no 9716 runpath_var=LD_RUN_PATH 9717 hardcode_runpath_var=yes 9718 ld_shlibs=yes 9719 fi 9720 ;; 9721 9722 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9723 no_undefined_flag='${wl}-z,text' 9724 archive_cmds_need_lc=no 9725 hardcode_shlibpath_var=no 9726 runpath_var='LD_RUN_PATH' 9727 9728 if test "$GCC" = yes; then 9729 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9730 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9731 else 9732 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9733 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9734 fi 9735 ;; 9736 9737 sysv5* | sco3.2v5* | sco5v6*) 9738 # Note: We can NOT use -z defs as we might desire, because we do not 9739 # link with -lc, and that would cause any symbols used from libc to 9740 # always be unresolved, which means just about no library would 9741 # ever link correctly. If we're not using GNU ld we use -z text 9742 # though, which does catch some bad symbols but isn't as heavy-handed 9743 # as -z defs. 9744 no_undefined_flag='${wl}-z,text' 9745 allow_undefined_flag='${wl}-z,nodefs' 9746 archive_cmds_need_lc=no 9747 hardcode_shlibpath_var=no 9748 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9749 hardcode_libdir_separator=':' 9750 link_all_deplibs=yes 9751 export_dynamic_flag_spec='${wl}-Bexport' 9752 runpath_var='LD_RUN_PATH' 9753 9754 if test "$GCC" = yes; then 9755 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9756 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9757 else 9758 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9759 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9760 fi 9761 ;; 9762 9763 uts4*) 9764 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9765 hardcode_libdir_flag_spec='-L$libdir' 9766 hardcode_shlibpath_var=no 9767 ;; 9768 9769 *) 9770 ld_shlibs=no 9771 ;; 9772 esac 9773 9774 if test x$host_vendor = xsni; then 9775 case $host in 9776 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9777 export_dynamic_flag_spec='${wl}-Blargedynsym' 9778 ;; 9779 esac 9780 fi 9781 fi 9782 9783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9784$as_echo "$ld_shlibs" >&6; } 9785test "$ld_shlibs" = no && can_build_shared=no 9786 9787with_gnu_ld=$with_gnu_ld 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803# 9804# Do we need to explicitly link libc? 9805# 9806case "x$archive_cmds_need_lc" in 9807x|xyes) 9808 # Assume -lc should be added 9809 archive_cmds_need_lc=yes 9810 9811 if test "$enable_shared" = yes && test "$GCC" = yes; then 9812 case $archive_cmds in 9813 *'~'*) 9814 # FIXME: we may have to deal with multi-command sequences. 9815 ;; 9816 '$CC '*) 9817 # Test whether the compiler implicitly links with -lc since on some 9818 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9819 # to ld, don't add -lc before -lgcc. 9820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9821$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9822if ${lt_cv_archive_cmds_need_lc+:} false; then : 9823 $as_echo_n "(cached) " >&6 9824else 9825 $RM conftest* 9826 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9827 9828 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9829 (eval $ac_compile) 2>&5 9830 ac_status=$? 9831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9832 test $ac_status = 0; } 2>conftest.err; then 9833 soname=conftest 9834 lib=conftest 9835 libobjs=conftest.$ac_objext 9836 deplibs= 9837 wl=$lt_prog_compiler_wl 9838 pic_flag=$lt_prog_compiler_pic 9839 compiler_flags=-v 9840 linker_flags=-v 9841 verstring= 9842 output_objdir=. 9843 libname=conftest 9844 lt_save_allow_undefined_flag=$allow_undefined_flag 9845 allow_undefined_flag= 9846 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9847 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9848 ac_status=$? 9849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9850 test $ac_status = 0; } 9851 then 9852 lt_cv_archive_cmds_need_lc=no 9853 else 9854 lt_cv_archive_cmds_need_lc=yes 9855 fi 9856 allow_undefined_flag=$lt_save_allow_undefined_flag 9857 else 9858 cat conftest.err 1>&5 9859 fi 9860 $RM conftest* 9861 9862fi 9863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9864$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9865 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9866 ;; 9867 esac 9868 fi 9869 ;; 9870esac 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10024$as_echo_n "checking dynamic linker characteristics... " >&6; } 10025 10026if test "$GCC" = yes; then 10027 case $host_os in 10028 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10029 *) lt_awk_arg="/^libraries:/" ;; 10030 esac 10031 case $host_os in 10032 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10033 *) lt_sed_strip_eq="s,=/,/,g" ;; 10034 esac 10035 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10036 case $lt_search_path_spec in 10037 *\;*) 10038 # if the path contains ";" then we assume it to be the separator 10039 # otherwise default to the standard path separator (i.e. ":") - it is 10040 # assumed that no part of a normal pathname contains ";" but that should 10041 # okay in the real world where ";" in dirpaths is itself problematic. 10042 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10043 ;; 10044 *) 10045 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10046 ;; 10047 esac 10048 # Ok, now we have the path, separated by spaces, we can step through it 10049 # and add multilib dir if necessary. 10050 lt_tmp_lt_search_path_spec= 10051 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10052 for lt_sys_path in $lt_search_path_spec; do 10053 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10054 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10055 else 10056 test -d "$lt_sys_path" && \ 10057 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10058 fi 10059 done 10060 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10061BEGIN {RS=" "; FS="/|\n";} { 10062 lt_foo=""; 10063 lt_count=0; 10064 for (lt_i = NF; lt_i > 0; lt_i--) { 10065 if ($lt_i != "" && $lt_i != ".") { 10066 if ($lt_i == "..") { 10067 lt_count++; 10068 } else { 10069 if (lt_count == 0) { 10070 lt_foo="/" $lt_i lt_foo; 10071 } else { 10072 lt_count--; 10073 } 10074 } 10075 } 10076 } 10077 if (lt_foo != "") { lt_freq[lt_foo]++; } 10078 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10079}'` 10080 # AWK program above erroneously prepends '/' to C:/dos/paths 10081 # for these hosts. 10082 case $host_os in 10083 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10084 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10085 esac 10086 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10087else 10088 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10089fi 10090library_names_spec= 10091libname_spec='lib$name' 10092soname_spec= 10093shrext_cmds=".so" 10094postinstall_cmds= 10095postuninstall_cmds= 10096finish_cmds= 10097finish_eval= 10098shlibpath_var= 10099shlibpath_overrides_runpath=unknown 10100version_type=none 10101dynamic_linker="$host_os ld.so" 10102sys_lib_dlsearch_path_spec="/lib /usr/lib" 10103need_lib_prefix=unknown 10104hardcode_into_libs=no 10105 10106# when you set need_version to no, make sure it does not cause -set_version 10107# flags to be left without arguments 10108need_version=unknown 10109 10110case $host_os in 10111aix3*) 10112 version_type=linux # correct to gnu/linux during the next big refactor 10113 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10114 shlibpath_var=LIBPATH 10115 10116 # AIX 3 has no versioning support, so we append a major version to the name. 10117 soname_spec='${libname}${release}${shared_ext}$major' 10118 ;; 10119 10120aix[4-9]*) 10121 version_type=linux # correct to gnu/linux during the next big refactor 10122 need_lib_prefix=no 10123 need_version=no 10124 hardcode_into_libs=yes 10125 if test "$host_cpu" = ia64; then 10126 # AIX 5 supports IA64 10127 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10128 shlibpath_var=LD_LIBRARY_PATH 10129 else 10130 # With GCC up to 2.95.x, collect2 would create an import file 10131 # for dependence libraries. The import file would start with 10132 # the line `#! .'. This would cause the generated library to 10133 # depend on `.', always an invalid library. This was fixed in 10134 # development snapshots of GCC prior to 3.0. 10135 case $host_os in 10136 aix4 | aix4.[01] | aix4.[01].*) 10137 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10138 echo ' yes ' 10139 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10140 : 10141 else 10142 can_build_shared=no 10143 fi 10144 ;; 10145 esac 10146 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10147 # soname into executable. Probably we can add versioning support to 10148 # collect2, so additional links can be useful in future. 10149 if test "$aix_use_runtimelinking" = yes; then 10150 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10151 # instead of lib<name>.a to let people know that these are not 10152 # typical AIX shared libraries. 10153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10154 else 10155 # We preserve .a as extension for shared libraries through AIX4.2 10156 # and later when we are not doing run time linking. 10157 library_names_spec='${libname}${release}.a $libname.a' 10158 soname_spec='${libname}${release}${shared_ext}$major' 10159 fi 10160 shlibpath_var=LIBPATH 10161 fi 10162 ;; 10163 10164amigaos*) 10165 case $host_cpu in 10166 powerpc) 10167 # Since July 2007 AmigaOS4 officially supports .so libraries. 10168 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10170 ;; 10171 m68k) 10172 library_names_spec='$libname.ixlibrary $libname.a' 10173 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10174 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 10175 ;; 10176 esac 10177 ;; 10178 10179beos*) 10180 library_names_spec='${libname}${shared_ext}' 10181 dynamic_linker="$host_os ld.so" 10182 shlibpath_var=LIBRARY_PATH 10183 ;; 10184 10185bsdi[45]*) 10186 version_type=linux # correct to gnu/linux during the next big refactor 10187 need_version=no 10188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10189 soname_spec='${libname}${release}${shared_ext}$major' 10190 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10191 shlibpath_var=LD_LIBRARY_PATH 10192 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10193 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10194 # the default ld.so.conf also contains /usr/contrib/lib and 10195 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10196 # libtool to hard-code these into programs 10197 ;; 10198 10199cygwin* | mingw* | pw32* | cegcc*) 10200 version_type=windows 10201 shrext_cmds=".dll" 10202 need_version=no 10203 need_lib_prefix=no 10204 10205 case $GCC,$cc_basename in 10206 yes,*) 10207 # gcc 10208 library_names_spec='$libname.dll.a' 10209 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10210 postinstall_cmds='base_file=`basename \${file}`~ 10211 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10212 dldir=$destdir/`dirname \$dlpath`~ 10213 test -d \$dldir || mkdir -p \$dldir~ 10214 $install_prog $dir/$dlname \$dldir/$dlname~ 10215 chmod a+x \$dldir/$dlname~ 10216 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10217 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10218 fi' 10219 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10220 dlpath=$dir/\$dldll~ 10221 $RM \$dlpath' 10222 shlibpath_overrides_runpath=yes 10223 10224 case $host_os in 10225 cygwin*) 10226 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10227 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10228 10229 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10230 ;; 10231 mingw* | cegcc*) 10232 # MinGW DLLs use traditional 'lib' prefix 10233 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10234 ;; 10235 pw32*) 10236 # pw32 DLLs use 'pw' prefix rather than 'lib' 10237 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10238 ;; 10239 esac 10240 dynamic_linker='Win32 ld.exe' 10241 ;; 10242 10243 *,cl*) 10244 # Native MSVC 10245 libname_spec='$name' 10246 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10247 library_names_spec='${libname}.dll.lib' 10248 10249 case $build_os in 10250 mingw*) 10251 sys_lib_search_path_spec= 10252 lt_save_ifs=$IFS 10253 IFS=';' 10254 for lt_path in $LIB 10255 do 10256 IFS=$lt_save_ifs 10257 # Let DOS variable expansion print the short 8.3 style file name. 10258 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10259 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10260 done 10261 IFS=$lt_save_ifs 10262 # Convert to MSYS style. 10263 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10264 ;; 10265 cygwin*) 10266 # Convert to unix form, then to dos form, then back to unix form 10267 # but this time dos style (no spaces!) so that the unix form looks 10268 # like /cygdrive/c/PROGRA~1:/cygdr... 10269 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10270 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10271 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10272 ;; 10273 *) 10274 sys_lib_search_path_spec="$LIB" 10275 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10276 # It is most probably a Windows format PATH. 10277 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10278 else 10279 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10280 fi 10281 # FIXME: find the short name or the path components, as spaces are 10282 # common. (e.g. "Program Files" -> "PROGRA~1") 10283 ;; 10284 esac 10285 10286 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10287 postinstall_cmds='base_file=`basename \${file}`~ 10288 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10289 dldir=$destdir/`dirname \$dlpath`~ 10290 test -d \$dldir || mkdir -p \$dldir~ 10291 $install_prog $dir/$dlname \$dldir/$dlname' 10292 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10293 dlpath=$dir/\$dldll~ 10294 $RM \$dlpath' 10295 shlibpath_overrides_runpath=yes 10296 dynamic_linker='Win32 link.exe' 10297 ;; 10298 10299 *) 10300 # Assume MSVC wrapper 10301 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10302 dynamic_linker='Win32 ld.exe' 10303 ;; 10304 esac 10305 # FIXME: first we should search . and the directory the executable is in 10306 shlibpath_var=PATH 10307 ;; 10308 10309darwin* | rhapsody*) 10310 dynamic_linker="$host_os dyld" 10311 version_type=darwin 10312 need_lib_prefix=no 10313 need_version=no 10314 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10315 soname_spec='${libname}${release}${major}$shared_ext' 10316 shlibpath_overrides_runpath=yes 10317 shlibpath_var=DYLD_LIBRARY_PATH 10318 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10319 10320 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10321 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10322 ;; 10323 10324dgux*) 10325 version_type=linux # correct to gnu/linux during the next big refactor 10326 need_lib_prefix=no 10327 need_version=no 10328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10329 soname_spec='${libname}${release}${shared_ext}$major' 10330 shlibpath_var=LD_LIBRARY_PATH 10331 ;; 10332 10333freebsd* | dragonfly*) 10334 # DragonFly does not have aout. When/if they implement a new 10335 # versioning mechanism, adjust this. 10336 if test -x /usr/bin/objformat; then 10337 objformat=`/usr/bin/objformat` 10338 else 10339 case $host_os in 10340 freebsd[23].*) objformat=aout ;; 10341 *) objformat=elf ;; 10342 esac 10343 fi 10344 version_type=freebsd-$objformat 10345 case $version_type in 10346 freebsd-elf*) 10347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10348 need_version=no 10349 need_lib_prefix=no 10350 ;; 10351 freebsd-*) 10352 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10353 need_version=yes 10354 ;; 10355 esac 10356 shlibpath_var=LD_LIBRARY_PATH 10357 case $host_os in 10358 freebsd2.*) 10359 shlibpath_overrides_runpath=yes 10360 ;; 10361 freebsd3.[01]* | freebsdelf3.[01]*) 10362 shlibpath_overrides_runpath=yes 10363 hardcode_into_libs=yes 10364 ;; 10365 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10366 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10367 shlibpath_overrides_runpath=no 10368 hardcode_into_libs=yes 10369 ;; 10370 *) # from 4.6 on, and DragonFly 10371 shlibpath_overrides_runpath=yes 10372 hardcode_into_libs=yes 10373 ;; 10374 esac 10375 ;; 10376 10377gnu*) 10378 version_type=linux # correct to gnu/linux during the next big refactor 10379 need_lib_prefix=no 10380 need_version=no 10381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10382 soname_spec='${libname}${release}${shared_ext}$major' 10383 shlibpath_var=LD_LIBRARY_PATH 10384 shlibpath_overrides_runpath=no 10385 hardcode_into_libs=yes 10386 ;; 10387 10388haiku*) 10389 version_type=linux # correct to gnu/linux during the next big refactor 10390 need_lib_prefix=no 10391 need_version=no 10392 dynamic_linker="$host_os runtime_loader" 10393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10394 soname_spec='${libname}${release}${shared_ext}$major' 10395 shlibpath_var=LIBRARY_PATH 10396 shlibpath_overrides_runpath=yes 10397 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10398 hardcode_into_libs=yes 10399 ;; 10400 10401hpux9* | hpux10* | hpux11*) 10402 # Give a soname corresponding to the major version so that dld.sl refuses to 10403 # link against other versions. 10404 version_type=sunos 10405 need_lib_prefix=no 10406 need_version=no 10407 case $host_cpu in 10408 ia64*) 10409 shrext_cmds='.so' 10410 hardcode_into_libs=yes 10411 dynamic_linker="$host_os dld.so" 10412 shlibpath_var=LD_LIBRARY_PATH 10413 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10415 soname_spec='${libname}${release}${shared_ext}$major' 10416 if test "X$HPUX_IA64_MODE" = X32; then 10417 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10418 else 10419 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10420 fi 10421 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10422 ;; 10423 hppa*64*) 10424 shrext_cmds='.sl' 10425 hardcode_into_libs=yes 10426 dynamic_linker="$host_os dld.sl" 10427 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10428 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10430 soname_spec='${libname}${release}${shared_ext}$major' 10431 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10432 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10433 ;; 10434 *) 10435 shrext_cmds='.sl' 10436 dynamic_linker="$host_os dld.sl" 10437 shlibpath_var=SHLIB_PATH 10438 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10440 soname_spec='${libname}${release}${shared_ext}$major' 10441 ;; 10442 esac 10443 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10444 postinstall_cmds='chmod 555 $lib' 10445 # or fails outright, so override atomically: 10446 install_override_mode=555 10447 ;; 10448 10449interix[3-9]*) 10450 version_type=linux # correct to gnu/linux during the next big refactor 10451 need_lib_prefix=no 10452 need_version=no 10453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10454 soname_spec='${libname}${release}${shared_ext}$major' 10455 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10456 shlibpath_var=LD_LIBRARY_PATH 10457 shlibpath_overrides_runpath=no 10458 hardcode_into_libs=yes 10459 ;; 10460 10461irix5* | irix6* | nonstopux*) 10462 case $host_os in 10463 nonstopux*) version_type=nonstopux ;; 10464 *) 10465 if test "$lt_cv_prog_gnu_ld" = yes; then 10466 version_type=linux # correct to gnu/linux during the next big refactor 10467 else 10468 version_type=irix 10469 fi ;; 10470 esac 10471 need_lib_prefix=no 10472 need_version=no 10473 soname_spec='${libname}${release}${shared_ext}$major' 10474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10475 case $host_os in 10476 irix5* | nonstopux*) 10477 libsuff= shlibsuff= 10478 ;; 10479 *) 10480 case $LD in # libtool.m4 will add one of these switches to LD 10481 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10482 libsuff= shlibsuff= libmagic=32-bit;; 10483 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10484 libsuff=32 shlibsuff=N32 libmagic=N32;; 10485 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10486 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10487 *) libsuff= shlibsuff= libmagic=never-match;; 10488 esac 10489 ;; 10490 esac 10491 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10492 shlibpath_overrides_runpath=no 10493 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10494 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10495 hardcode_into_libs=yes 10496 ;; 10497 10498# No shared lib support for Linux oldld, aout, or coff. 10499linux*oldld* | linux*aout* | linux*coff*) 10500 dynamic_linker=no 10501 ;; 10502 10503# This must be glibc/ELF. 10504linux* | k*bsd*-gnu | kopensolaris*-gnu) 10505 version_type=linux # correct to gnu/linux during the next big refactor 10506 need_lib_prefix=no 10507 need_version=no 10508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10509 soname_spec='${libname}${release}${shared_ext}$major' 10510 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10511 shlibpath_var=LD_LIBRARY_PATH 10512 shlibpath_overrides_runpath=no 10513 10514 # Some binutils ld are patched to set DT_RUNPATH 10515 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10516 $as_echo_n "(cached) " >&6 10517else 10518 lt_cv_shlibpath_overrides_runpath=no 10519 save_LDFLAGS=$LDFLAGS 10520 save_libdir=$libdir 10521 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10522 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10524/* end confdefs.h. */ 10525 10526int 10527main () 10528{ 10529 10530 ; 10531 return 0; 10532} 10533_ACEOF 10534if ac_fn_c_try_link "$LINENO"; then : 10535 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10536 lt_cv_shlibpath_overrides_runpath=yes 10537fi 10538fi 10539rm -f core conftest.err conftest.$ac_objext \ 10540 conftest$ac_exeext conftest.$ac_ext 10541 LDFLAGS=$save_LDFLAGS 10542 libdir=$save_libdir 10543 10544fi 10545 10546 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10547 10548 # This implies no fast_install, which is unacceptable. 10549 # Some rework will be needed to allow for fast_install 10550 # before this can be enabled. 10551 hardcode_into_libs=yes 10552 10553 # Append ld.so.conf contents to the search path 10554 if test -f /etc/ld.so.conf; then 10555 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 10556 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10557 fi 10558 10559 # We used to test for /lib/ld.so.1 and disable shared libraries on 10560 # powerpc, because MkLinux only supported shared libraries with the 10561 # GNU dynamic linker. Since this was broken with cross compilers, 10562 # most powerpc-linux boxes support dynamic linking these days and 10563 # people can always --disable-shared, the test was removed, and we 10564 # assume the GNU/Linux dynamic linker is in use. 10565 dynamic_linker='GNU/Linux ld.so' 10566 ;; 10567 10568netbsdelf*-gnu) 10569 version_type=linux 10570 need_lib_prefix=no 10571 need_version=no 10572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10573 soname_spec='${libname}${release}${shared_ext}$major' 10574 shlibpath_var=LD_LIBRARY_PATH 10575 shlibpath_overrides_runpath=no 10576 hardcode_into_libs=yes 10577 dynamic_linker='NetBSD ld.elf_so' 10578 ;; 10579 10580netbsd*) 10581 version_type=sunos 10582 need_lib_prefix=no 10583 need_version=no 10584 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10586 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10587 dynamic_linker='NetBSD (a.out) ld.so' 10588 else 10589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10590 soname_spec='${libname}${release}${shared_ext}$major' 10591 dynamic_linker='NetBSD ld.elf_so' 10592 fi 10593 shlibpath_var=LD_LIBRARY_PATH 10594 shlibpath_overrides_runpath=yes 10595 hardcode_into_libs=yes 10596 ;; 10597 10598newsos6) 10599 version_type=linux # correct to gnu/linux during the next big refactor 10600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10601 shlibpath_var=LD_LIBRARY_PATH 10602 shlibpath_overrides_runpath=yes 10603 ;; 10604 10605*nto* | *qnx*) 10606 version_type=qnx 10607 need_lib_prefix=no 10608 need_version=no 10609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10610 soname_spec='${libname}${release}${shared_ext}$major' 10611 shlibpath_var=LD_LIBRARY_PATH 10612 shlibpath_overrides_runpath=no 10613 hardcode_into_libs=yes 10614 dynamic_linker='ldqnx.so' 10615 ;; 10616 10617openbsd*) 10618 version_type=sunos 10619 sys_lib_dlsearch_path_spec="/usr/lib" 10620 need_lib_prefix=no 10621 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10622 case $host_os in 10623 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10624 *) need_version=no ;; 10625 esac 10626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10627 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10628 shlibpath_var=LD_LIBRARY_PATH 10629 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10630 case $host_os in 10631 openbsd2.[89] | openbsd2.[89].*) 10632 shlibpath_overrides_runpath=no 10633 ;; 10634 *) 10635 shlibpath_overrides_runpath=yes 10636 ;; 10637 esac 10638 else 10639 shlibpath_overrides_runpath=yes 10640 fi 10641 ;; 10642 10643os2*) 10644 libname_spec='$name' 10645 shrext_cmds=".dll" 10646 need_lib_prefix=no 10647 library_names_spec='$libname${shared_ext} $libname.a' 10648 dynamic_linker='OS/2 ld.exe' 10649 shlibpath_var=LIBPATH 10650 ;; 10651 10652osf3* | osf4* | osf5*) 10653 version_type=osf 10654 need_lib_prefix=no 10655 need_version=no 10656 soname_spec='${libname}${release}${shared_ext}$major' 10657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10658 shlibpath_var=LD_LIBRARY_PATH 10659 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10660 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10661 ;; 10662 10663rdos*) 10664 dynamic_linker=no 10665 ;; 10666 10667solaris*) 10668 version_type=linux # correct to gnu/linux during the next big refactor 10669 need_lib_prefix=no 10670 need_version=no 10671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10672 soname_spec='${libname}${release}${shared_ext}$major' 10673 shlibpath_var=LD_LIBRARY_PATH 10674 shlibpath_overrides_runpath=yes 10675 hardcode_into_libs=yes 10676 # ldd complains unless libraries are executable 10677 postinstall_cmds='chmod +x $lib' 10678 ;; 10679 10680sunos4*) 10681 version_type=sunos 10682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10683 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10684 shlibpath_var=LD_LIBRARY_PATH 10685 shlibpath_overrides_runpath=yes 10686 if test "$with_gnu_ld" = yes; then 10687 need_lib_prefix=no 10688 fi 10689 need_version=yes 10690 ;; 10691 10692sysv4 | sysv4.3*) 10693 version_type=linux # correct to gnu/linux during the next big refactor 10694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10695 soname_spec='${libname}${release}${shared_ext}$major' 10696 shlibpath_var=LD_LIBRARY_PATH 10697 case $host_vendor in 10698 sni) 10699 shlibpath_overrides_runpath=no 10700 need_lib_prefix=no 10701 runpath_var=LD_RUN_PATH 10702 ;; 10703 siemens) 10704 need_lib_prefix=no 10705 ;; 10706 motorola) 10707 need_lib_prefix=no 10708 need_version=no 10709 shlibpath_overrides_runpath=no 10710 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10711 ;; 10712 esac 10713 ;; 10714 10715sysv4*MP*) 10716 if test -d /usr/nec ;then 10717 version_type=linux # correct to gnu/linux during the next big refactor 10718 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10719 soname_spec='$libname${shared_ext}.$major' 10720 shlibpath_var=LD_LIBRARY_PATH 10721 fi 10722 ;; 10723 10724sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10725 version_type=freebsd-elf 10726 need_lib_prefix=no 10727 need_version=no 10728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10729 soname_spec='${libname}${release}${shared_ext}$major' 10730 shlibpath_var=LD_LIBRARY_PATH 10731 shlibpath_overrides_runpath=yes 10732 hardcode_into_libs=yes 10733 if test "$with_gnu_ld" = yes; then 10734 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10735 else 10736 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10737 case $host_os in 10738 sco3.2v5*) 10739 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10740 ;; 10741 esac 10742 fi 10743 sys_lib_dlsearch_path_spec='/usr/lib' 10744 ;; 10745 10746tpf*) 10747 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10748 version_type=linux # correct to gnu/linux during the next big refactor 10749 need_lib_prefix=no 10750 need_version=no 10751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10752 shlibpath_var=LD_LIBRARY_PATH 10753 shlibpath_overrides_runpath=no 10754 hardcode_into_libs=yes 10755 ;; 10756 10757uts4*) 10758 version_type=linux # correct to gnu/linux during the next big refactor 10759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10760 soname_spec='${libname}${release}${shared_ext}$major' 10761 shlibpath_var=LD_LIBRARY_PATH 10762 ;; 10763 10764*) 10765 dynamic_linker=no 10766 ;; 10767esac 10768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10769$as_echo "$dynamic_linker" >&6; } 10770test "$dynamic_linker" = no && can_build_shared=no 10771 10772variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10773if test "$GCC" = yes; then 10774 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10775fi 10776 10777if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10778 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10779fi 10780if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10781 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10782fi 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10876$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10877hardcode_action= 10878if test -n "$hardcode_libdir_flag_spec" || 10879 test -n "$runpath_var" || 10880 test "X$hardcode_automatic" = "Xyes" ; then 10881 10882 # We can hardcode non-existent directories. 10883 if test "$hardcode_direct" != no && 10884 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10885 # have to relink, otherwise we might link with an installed library 10886 # when we should be linking with a yet-to-be-installed one 10887 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10888 test "$hardcode_minus_L" != no; then 10889 # Linking always hardcodes the temporary library directory. 10890 hardcode_action=relink 10891 else 10892 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10893 hardcode_action=immediate 10894 fi 10895else 10896 # We cannot hardcode anything, or else we can only hardcode existing 10897 # directories. 10898 hardcode_action=unsupported 10899fi 10900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10901$as_echo "$hardcode_action" >&6; } 10902 10903if test "$hardcode_action" = relink || 10904 test "$inherit_rpath" = yes; then 10905 # Fast installation is not supported 10906 enable_fast_install=no 10907elif test "$shlibpath_overrides_runpath" = yes || 10908 test "$enable_shared" = no; then 10909 # Fast installation is not necessary 10910 enable_fast_install=needless 10911fi 10912 10913 10914 10915 10916 10917 10918 if test "x$enable_dlopen" != xyes; then 10919 enable_dlopen=unknown 10920 enable_dlopen_self=unknown 10921 enable_dlopen_self_static=unknown 10922else 10923 lt_cv_dlopen=no 10924 lt_cv_dlopen_libs= 10925 10926 case $host_os in 10927 beos*) 10928 lt_cv_dlopen="load_add_on" 10929 lt_cv_dlopen_libs= 10930 lt_cv_dlopen_self=yes 10931 ;; 10932 10933 mingw* | pw32* | cegcc*) 10934 lt_cv_dlopen="LoadLibrary" 10935 lt_cv_dlopen_libs= 10936 ;; 10937 10938 cygwin*) 10939 lt_cv_dlopen="dlopen" 10940 lt_cv_dlopen_libs= 10941 ;; 10942 10943 darwin*) 10944 # if libdl is installed we need to link against it 10945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10946$as_echo_n "checking for dlopen in -ldl... " >&6; } 10947if ${ac_cv_lib_dl_dlopen+:} false; then : 10948 $as_echo_n "(cached) " >&6 10949else 10950 ac_check_lib_save_LIBS=$LIBS 10951LIBS="-ldl $LIBS" 10952cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10953/* end confdefs.h. */ 10954 10955/* Override any GCC internal prototype to avoid an error. 10956 Use char because int might match the return type of a GCC 10957 builtin and then its argument prototype would still apply. */ 10958#ifdef __cplusplus 10959extern "C" 10960#endif 10961char dlopen (); 10962int 10963main () 10964{ 10965return dlopen (); 10966 ; 10967 return 0; 10968} 10969_ACEOF 10970if ac_fn_c_try_link "$LINENO"; then : 10971 ac_cv_lib_dl_dlopen=yes 10972else 10973 ac_cv_lib_dl_dlopen=no 10974fi 10975rm -f core conftest.err conftest.$ac_objext \ 10976 conftest$ac_exeext conftest.$ac_ext 10977LIBS=$ac_check_lib_save_LIBS 10978fi 10979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10980$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10981if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10982 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10983else 10984 10985 lt_cv_dlopen="dyld" 10986 lt_cv_dlopen_libs= 10987 lt_cv_dlopen_self=yes 10988 10989fi 10990 10991 ;; 10992 10993 *) 10994 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10995if test "x$ac_cv_func_shl_load" = xyes; then : 10996 lt_cv_dlopen="shl_load" 10997else 10998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10999$as_echo_n "checking for shl_load in -ldld... " >&6; } 11000if ${ac_cv_lib_dld_shl_load+:} false; then : 11001 $as_echo_n "(cached) " >&6 11002else 11003 ac_check_lib_save_LIBS=$LIBS 11004LIBS="-ldld $LIBS" 11005cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11006/* end confdefs.h. */ 11007 11008/* Override any GCC internal prototype to avoid an error. 11009 Use char because int might match the return type of a GCC 11010 builtin and then its argument prototype would still apply. */ 11011#ifdef __cplusplus 11012extern "C" 11013#endif 11014char shl_load (); 11015int 11016main () 11017{ 11018return shl_load (); 11019 ; 11020 return 0; 11021} 11022_ACEOF 11023if ac_fn_c_try_link "$LINENO"; then : 11024 ac_cv_lib_dld_shl_load=yes 11025else 11026 ac_cv_lib_dld_shl_load=no 11027fi 11028rm -f core conftest.err conftest.$ac_objext \ 11029 conftest$ac_exeext conftest.$ac_ext 11030LIBS=$ac_check_lib_save_LIBS 11031fi 11032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11033$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11034if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11035 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11036else 11037 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11038if test "x$ac_cv_func_dlopen" = xyes; then : 11039 lt_cv_dlopen="dlopen" 11040else 11041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11042$as_echo_n "checking for dlopen in -ldl... " >&6; } 11043if ${ac_cv_lib_dl_dlopen+:} false; then : 11044 $as_echo_n "(cached) " >&6 11045else 11046 ac_check_lib_save_LIBS=$LIBS 11047LIBS="-ldl $LIBS" 11048cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11049/* end confdefs.h. */ 11050 11051/* Override any GCC internal prototype to avoid an error. 11052 Use char because int might match the return type of a GCC 11053 builtin and then its argument prototype would still apply. */ 11054#ifdef __cplusplus 11055extern "C" 11056#endif 11057char dlopen (); 11058int 11059main () 11060{ 11061return dlopen (); 11062 ; 11063 return 0; 11064} 11065_ACEOF 11066if ac_fn_c_try_link "$LINENO"; then : 11067 ac_cv_lib_dl_dlopen=yes 11068else 11069 ac_cv_lib_dl_dlopen=no 11070fi 11071rm -f core conftest.err conftest.$ac_objext \ 11072 conftest$ac_exeext conftest.$ac_ext 11073LIBS=$ac_check_lib_save_LIBS 11074fi 11075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11076$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11077if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11078 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11079else 11080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11081$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11082if ${ac_cv_lib_svld_dlopen+:} false; then : 11083 $as_echo_n "(cached) " >&6 11084else 11085 ac_check_lib_save_LIBS=$LIBS 11086LIBS="-lsvld $LIBS" 11087cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11088/* end confdefs.h. */ 11089 11090/* Override any GCC internal prototype to avoid an error. 11091 Use char because int might match the return type of a GCC 11092 builtin and then its argument prototype would still apply. */ 11093#ifdef __cplusplus 11094extern "C" 11095#endif 11096char dlopen (); 11097int 11098main () 11099{ 11100return dlopen (); 11101 ; 11102 return 0; 11103} 11104_ACEOF 11105if ac_fn_c_try_link "$LINENO"; then : 11106 ac_cv_lib_svld_dlopen=yes 11107else 11108 ac_cv_lib_svld_dlopen=no 11109fi 11110rm -f core conftest.err conftest.$ac_objext \ 11111 conftest$ac_exeext conftest.$ac_ext 11112LIBS=$ac_check_lib_save_LIBS 11113fi 11114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11115$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11116if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11117 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11118else 11119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11120$as_echo_n "checking for dld_link in -ldld... " >&6; } 11121if ${ac_cv_lib_dld_dld_link+:} false; then : 11122 $as_echo_n "(cached) " >&6 11123else 11124 ac_check_lib_save_LIBS=$LIBS 11125LIBS="-ldld $LIBS" 11126cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11127/* end confdefs.h. */ 11128 11129/* Override any GCC internal prototype to avoid an error. 11130 Use char because int might match the return type of a GCC 11131 builtin and then its argument prototype would still apply. */ 11132#ifdef __cplusplus 11133extern "C" 11134#endif 11135char dld_link (); 11136int 11137main () 11138{ 11139return dld_link (); 11140 ; 11141 return 0; 11142} 11143_ACEOF 11144if ac_fn_c_try_link "$LINENO"; then : 11145 ac_cv_lib_dld_dld_link=yes 11146else 11147 ac_cv_lib_dld_dld_link=no 11148fi 11149rm -f core conftest.err conftest.$ac_objext \ 11150 conftest$ac_exeext conftest.$ac_ext 11151LIBS=$ac_check_lib_save_LIBS 11152fi 11153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11154$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11155if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11156 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11157fi 11158 11159 11160fi 11161 11162 11163fi 11164 11165 11166fi 11167 11168 11169fi 11170 11171 11172fi 11173 11174 ;; 11175 esac 11176 11177 if test "x$lt_cv_dlopen" != xno; then 11178 enable_dlopen=yes 11179 else 11180 enable_dlopen=no 11181 fi 11182 11183 case $lt_cv_dlopen in 11184 dlopen) 11185 save_CPPFLAGS="$CPPFLAGS" 11186 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11187 11188 save_LDFLAGS="$LDFLAGS" 11189 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11190 11191 save_LIBS="$LIBS" 11192 LIBS="$lt_cv_dlopen_libs $LIBS" 11193 11194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11195$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11196if ${lt_cv_dlopen_self+:} false; then : 11197 $as_echo_n "(cached) " >&6 11198else 11199 if test "$cross_compiling" = yes; then : 11200 lt_cv_dlopen_self=cross 11201else 11202 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11203 lt_status=$lt_dlunknown 11204 cat > conftest.$ac_ext <<_LT_EOF 11205#line $LINENO "configure" 11206#include "confdefs.h" 11207 11208#if HAVE_DLFCN_H 11209#include <dlfcn.h> 11210#endif 11211 11212#include <stdio.h> 11213 11214#ifdef RTLD_GLOBAL 11215# define LT_DLGLOBAL RTLD_GLOBAL 11216#else 11217# ifdef DL_GLOBAL 11218# define LT_DLGLOBAL DL_GLOBAL 11219# else 11220# define LT_DLGLOBAL 0 11221# endif 11222#endif 11223 11224/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11225 find out it does not work in some platform. */ 11226#ifndef LT_DLLAZY_OR_NOW 11227# ifdef RTLD_LAZY 11228# define LT_DLLAZY_OR_NOW RTLD_LAZY 11229# else 11230# ifdef DL_LAZY 11231# define LT_DLLAZY_OR_NOW DL_LAZY 11232# else 11233# ifdef RTLD_NOW 11234# define LT_DLLAZY_OR_NOW RTLD_NOW 11235# else 11236# ifdef DL_NOW 11237# define LT_DLLAZY_OR_NOW DL_NOW 11238# else 11239# define LT_DLLAZY_OR_NOW 0 11240# endif 11241# endif 11242# endif 11243# endif 11244#endif 11245 11246/* When -fvisbility=hidden is used, assume the code has been annotated 11247 correspondingly for the symbols needed. */ 11248#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11249int fnord () __attribute__((visibility("default"))); 11250#endif 11251 11252int fnord () { return 42; } 11253int main () 11254{ 11255 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11256 int status = $lt_dlunknown; 11257 11258 if (self) 11259 { 11260 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11261 else 11262 { 11263 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11264 else puts (dlerror ()); 11265 } 11266 /* dlclose (self); */ 11267 } 11268 else 11269 puts (dlerror ()); 11270 11271 return status; 11272} 11273_LT_EOF 11274 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11275 (eval $ac_link) 2>&5 11276 ac_status=$? 11277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11278 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11279 (./conftest; exit; ) >&5 2>/dev/null 11280 lt_status=$? 11281 case x$lt_status in 11282 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11283 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11284 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11285 esac 11286 else : 11287 # compilation failed 11288 lt_cv_dlopen_self=no 11289 fi 11290fi 11291rm -fr conftest* 11292 11293 11294fi 11295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11296$as_echo "$lt_cv_dlopen_self" >&6; } 11297 11298 if test "x$lt_cv_dlopen_self" = xyes; then 11299 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11301$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11302if ${lt_cv_dlopen_self_static+:} false; then : 11303 $as_echo_n "(cached) " >&6 11304else 11305 if test "$cross_compiling" = yes; then : 11306 lt_cv_dlopen_self_static=cross 11307else 11308 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11309 lt_status=$lt_dlunknown 11310 cat > conftest.$ac_ext <<_LT_EOF 11311#line $LINENO "configure" 11312#include "confdefs.h" 11313 11314#if HAVE_DLFCN_H 11315#include <dlfcn.h> 11316#endif 11317 11318#include <stdio.h> 11319 11320#ifdef RTLD_GLOBAL 11321# define LT_DLGLOBAL RTLD_GLOBAL 11322#else 11323# ifdef DL_GLOBAL 11324# define LT_DLGLOBAL DL_GLOBAL 11325# else 11326# define LT_DLGLOBAL 0 11327# endif 11328#endif 11329 11330/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11331 find out it does not work in some platform. */ 11332#ifndef LT_DLLAZY_OR_NOW 11333# ifdef RTLD_LAZY 11334# define LT_DLLAZY_OR_NOW RTLD_LAZY 11335# else 11336# ifdef DL_LAZY 11337# define LT_DLLAZY_OR_NOW DL_LAZY 11338# else 11339# ifdef RTLD_NOW 11340# define LT_DLLAZY_OR_NOW RTLD_NOW 11341# else 11342# ifdef DL_NOW 11343# define LT_DLLAZY_OR_NOW DL_NOW 11344# else 11345# define LT_DLLAZY_OR_NOW 0 11346# endif 11347# endif 11348# endif 11349# endif 11350#endif 11351 11352/* When -fvisbility=hidden is used, assume the code has been annotated 11353 correspondingly for the symbols needed. */ 11354#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11355int fnord () __attribute__((visibility("default"))); 11356#endif 11357 11358int fnord () { return 42; } 11359int main () 11360{ 11361 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11362 int status = $lt_dlunknown; 11363 11364 if (self) 11365 { 11366 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11367 else 11368 { 11369 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11370 else puts (dlerror ()); 11371 } 11372 /* dlclose (self); */ 11373 } 11374 else 11375 puts (dlerror ()); 11376 11377 return status; 11378} 11379_LT_EOF 11380 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11381 (eval $ac_link) 2>&5 11382 ac_status=$? 11383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11384 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11385 (./conftest; exit; ) >&5 2>/dev/null 11386 lt_status=$? 11387 case x$lt_status in 11388 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11389 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11390 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11391 esac 11392 else : 11393 # compilation failed 11394 lt_cv_dlopen_self_static=no 11395 fi 11396fi 11397rm -fr conftest* 11398 11399 11400fi 11401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11402$as_echo "$lt_cv_dlopen_self_static" >&6; } 11403 fi 11404 11405 CPPFLAGS="$save_CPPFLAGS" 11406 LDFLAGS="$save_LDFLAGS" 11407 LIBS="$save_LIBS" 11408 ;; 11409 esac 11410 11411 case $lt_cv_dlopen_self in 11412 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11413 *) enable_dlopen_self=unknown ;; 11414 esac 11415 11416 case $lt_cv_dlopen_self_static in 11417 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11418 *) enable_dlopen_self_static=unknown ;; 11419 esac 11420fi 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438striplib= 11439old_striplib= 11440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11441$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11442if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11443 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11444 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11446$as_echo "yes" >&6; } 11447else 11448# FIXME - insert some real tests, host_os isn't really good enough 11449 case $host_os in 11450 darwin*) 11451 if test -n "$STRIP" ; then 11452 striplib="$STRIP -x" 11453 old_striplib="$STRIP -S" 11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11455$as_echo "yes" >&6; } 11456 else 11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11458$as_echo "no" >&6; } 11459 fi 11460 ;; 11461 *) 11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11463$as_echo "no" >&6; } 11464 ;; 11465 esac 11466fi 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 # Report which library types will actually be built 11480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11481$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11483$as_echo "$can_build_shared" >&6; } 11484 11485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11486$as_echo_n "checking whether to build shared libraries... " >&6; } 11487 test "$can_build_shared" = "no" && enable_shared=no 11488 11489 # On AIX, shared libraries and static libraries use the same namespace, and 11490 # are all built from PIC. 11491 case $host_os in 11492 aix3*) 11493 test "$enable_shared" = yes && enable_static=no 11494 if test -n "$RANLIB"; then 11495 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11496 postinstall_cmds='$RANLIB $lib' 11497 fi 11498 ;; 11499 11500 aix[4-9]*) 11501 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11502 test "$enable_shared" = yes && enable_static=no 11503 fi 11504 ;; 11505 esac 11506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11507$as_echo "$enable_shared" >&6; } 11508 11509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11510$as_echo_n "checking whether to build static libraries... " >&6; } 11511 # Make sure either enable_shared or enable_static is yes. 11512 test "$enable_shared" = yes || enable_static=yes 11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11514$as_echo "$enable_static" >&6; } 11515 11516 11517 11518 11519fi 11520ac_ext=c 11521ac_cpp='$CPP $CPPFLAGS' 11522ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11523ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11524ac_compiler_gnu=$ac_cv_c_compiler_gnu 11525 11526CC="$lt_save_CC" 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 ac_config_commands="$ac_config_commands libtool" 11543 11544 11545 11546 11547# Only expand once: 11548 11549 11550 11551for ac_prog in flex lex 11552do 11553 # Extract the first word of "$ac_prog", so it can be a program name with args. 11554set dummy $ac_prog; ac_word=$2 11555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11556$as_echo_n "checking for $ac_word... " >&6; } 11557if ${ac_cv_prog_LEX+:} false; then : 11558 $as_echo_n "(cached) " >&6 11559else 11560 if test -n "$LEX"; then 11561 ac_cv_prog_LEX="$LEX" # Let the user override the test. 11562else 11563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11564for as_dir in $PATH 11565do 11566 IFS=$as_save_IFS 11567 test -z "$as_dir" && as_dir=. 11568 for ac_exec_ext in '' $ac_executable_extensions; do 11569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11570 ac_cv_prog_LEX="$ac_prog" 11571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11572 break 2 11573 fi 11574done 11575 done 11576IFS=$as_save_IFS 11577 11578fi 11579fi 11580LEX=$ac_cv_prog_LEX 11581if test -n "$LEX"; then 11582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 11583$as_echo "$LEX" >&6; } 11584else 11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11586$as_echo "no" >&6; } 11587fi 11588 11589 11590 test -n "$LEX" && break 11591done 11592test -n "$LEX" || LEX=":" 11593 11594if test "x$LEX" != "x:"; then 11595 cat >conftest.l <<_ACEOF 11596%% 11597a { ECHO; } 11598b { REJECT; } 11599c { yymore (); } 11600d { yyless (1); } 11601e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 11602 yyless ((input () != 0)); } 11603f { unput (yytext[0]); } 11604. { BEGIN INITIAL; } 11605%% 11606#ifdef YYTEXT_POINTER 11607extern char *yytext; 11608#endif 11609int 11610main (void) 11611{ 11612 return ! yylex () + ! yywrap (); 11613} 11614_ACEOF 11615{ { ac_try="$LEX conftest.l" 11616case "(($ac_try" in 11617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11618 *) ac_try_echo=$ac_try;; 11619esac 11620eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 11621$as_echo "$ac_try_echo"; } >&5 11622 (eval "$LEX conftest.l") 2>&5 11623 ac_status=$? 11624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11625 test $ac_status = 0; } 11626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 11627$as_echo_n "checking lex output file root... " >&6; } 11628if ${ac_cv_prog_lex_root+:} false; then : 11629 $as_echo_n "(cached) " >&6 11630else 11631 11632if test -f lex.yy.c; then 11633 ac_cv_prog_lex_root=lex.yy 11634elif test -f lexyy.c; then 11635 ac_cv_prog_lex_root=lexyy 11636else 11637 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 11638fi 11639fi 11640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 11641$as_echo "$ac_cv_prog_lex_root" >&6; } 11642LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 11643 11644if test -z "${LEXLIB+set}"; then 11645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 11646$as_echo_n "checking lex library... " >&6; } 11647if ${ac_cv_lib_lex+:} false; then : 11648 $as_echo_n "(cached) " >&6 11649else 11650 11651 ac_save_LIBS=$LIBS 11652 ac_cv_lib_lex='none needed' 11653 for ac_lib in '' -lfl -ll; do 11654 LIBS="$ac_lib $ac_save_LIBS" 11655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11656/* end confdefs.h. */ 11657`cat $LEX_OUTPUT_ROOT.c` 11658_ACEOF 11659if ac_fn_c_try_link "$LINENO"; then : 11660 ac_cv_lib_lex=$ac_lib 11661fi 11662rm -f core conftest.err conftest.$ac_objext \ 11663 conftest$ac_exeext conftest.$ac_ext 11664 test "$ac_cv_lib_lex" != 'none needed' && break 11665 done 11666 LIBS=$ac_save_LIBS 11667 11668fi 11669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 11670$as_echo "$ac_cv_lib_lex" >&6; } 11671 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 11672fi 11673 11674 11675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 11676$as_echo_n "checking whether yytext is a pointer... " >&6; } 11677if ${ac_cv_prog_lex_yytext_pointer+:} false; then : 11678 $as_echo_n "(cached) " >&6 11679else 11680 # POSIX says lex can declare yytext either as a pointer or an array; the 11681# default is implementation-dependent. Figure out which it is, since 11682# not all implementations provide the %pointer and %array declarations. 11683ac_cv_prog_lex_yytext_pointer=no 11684ac_save_LIBS=$LIBS 11685LIBS="$LEXLIB $ac_save_LIBS" 11686cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11687/* end confdefs.h. */ 11688 11689 #define YYTEXT_POINTER 1 11690`cat $LEX_OUTPUT_ROOT.c` 11691_ACEOF 11692if ac_fn_c_try_link "$LINENO"; then : 11693 ac_cv_prog_lex_yytext_pointer=yes 11694fi 11695rm -f core conftest.err conftest.$ac_objext \ 11696 conftest$ac_exeext conftest.$ac_ext 11697LIBS=$ac_save_LIBS 11698 11699fi 11700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 11701$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } 11702if test $ac_cv_prog_lex_yytext_pointer = yes; then 11703 11704$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h 11705 11706fi 11707rm -f conftest.l $LEX_OUTPUT_ROOT.c 11708 11709fi 11710if test "$LEX" = :; then 11711 LEX=${am_missing_run}flex 11712fi 11713for ac_prog in 'bison -y' byacc 11714do 11715 # Extract the first word of "$ac_prog", so it can be a program name with args. 11716set dummy $ac_prog; ac_word=$2 11717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11718$as_echo_n "checking for $ac_word... " >&6; } 11719if ${ac_cv_prog_YACC+:} false; then : 11720 $as_echo_n "(cached) " >&6 11721else 11722 if test -n "$YACC"; then 11723 ac_cv_prog_YACC="$YACC" # Let the user override the test. 11724else 11725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11726for as_dir in $PATH 11727do 11728 IFS=$as_save_IFS 11729 test -z "$as_dir" && as_dir=. 11730 for ac_exec_ext in '' $ac_executable_extensions; do 11731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11732 ac_cv_prog_YACC="$ac_prog" 11733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11734 break 2 11735 fi 11736done 11737 done 11738IFS=$as_save_IFS 11739 11740fi 11741fi 11742YACC=$ac_cv_prog_YACC 11743if test -n "$YACC"; then 11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 11745$as_echo "$YACC" >&6; } 11746else 11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11748$as_echo "no" >&6; } 11749fi 11750 11751 11752 test -n "$YACC" && break 11753done 11754test -n "$YACC" || YACC="yacc" 11755 11756if test "x$CC" != xcc; then 11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 11758$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 11759else 11760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 11761$as_echo_n "checking whether cc understands -c and -o together... " >&6; } 11762fi 11763set dummy $CC; ac_cc=`$as_echo "$2" | 11764 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 11765if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : 11766 $as_echo_n "(cached) " >&6 11767else 11768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11769/* end confdefs.h. */ 11770 11771int 11772main () 11773{ 11774 11775 ; 11776 return 0; 11777} 11778_ACEOF 11779# Make sure it works both with $CC and with simple cc. 11780# We do the test twice because some compilers refuse to overwrite an 11781# existing .o file with -o, though they will create one. 11782ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 11783rm -f conftest2.* 11784if { { case "(($ac_try" in 11785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11786 *) ac_try_echo=$ac_try;; 11787esac 11788eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 11789$as_echo "$ac_try_echo"; } >&5 11790 (eval "$ac_try") 2>&5 11791 ac_status=$? 11792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11793 test $ac_status = 0; } && 11794 test -f conftest2.$ac_objext && { { case "(($ac_try" in 11795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11796 *) ac_try_echo=$ac_try;; 11797esac 11798eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 11799$as_echo "$ac_try_echo"; } >&5 11800 (eval "$ac_try") 2>&5 11801 ac_status=$? 11802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11803 test $ac_status = 0; }; 11804then 11805 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 11806 if test "x$CC" != xcc; then 11807 # Test first that cc exists at all. 11808 if { ac_try='cc -c conftest.$ac_ext >&5' 11809 { { case "(($ac_try" in 11810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11811 *) ac_try_echo=$ac_try;; 11812esac 11813eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 11814$as_echo "$ac_try_echo"; } >&5 11815 (eval "$ac_try") 2>&5 11816 ac_status=$? 11817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11818 test $ac_status = 0; }; }; then 11819 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 11820 rm -f conftest2.* 11821 if { { case "(($ac_try" in 11822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11823 *) ac_try_echo=$ac_try;; 11824esac 11825eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 11826$as_echo "$ac_try_echo"; } >&5 11827 (eval "$ac_try") 2>&5 11828 ac_status=$? 11829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11830 test $ac_status = 0; } && 11831 test -f conftest2.$ac_objext && { { case "(($ac_try" in 11832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11833 *) ac_try_echo=$ac_try;; 11834esac 11835eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 11836$as_echo "$ac_try_echo"; } >&5 11837 (eval "$ac_try") 2>&5 11838 ac_status=$? 11839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11840 test $ac_status = 0; }; 11841 then 11842 # cc works too. 11843 : 11844 else 11845 # cc exists but doesn't like -o. 11846 eval ac_cv_prog_cc_${ac_cc}_c_o=no 11847 fi 11848 fi 11849 fi 11850else 11851 eval ac_cv_prog_cc_${ac_cc}_c_o=no 11852fi 11853rm -f core conftest* 11854 11855fi 11856if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11858$as_echo "yes" >&6; } 11859else 11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11861$as_echo "no" >&6; } 11862 11863$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h 11864 11865fi 11866 11867# FIXME: we rely on the cache variable name because 11868# there is no other way. 11869set dummy $CC 11870am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 11871eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 11872if test "$am_t" != yes; then 11873 # Losing compiler, so override with the script. 11874 # FIXME: It is wrong to rewrite CC. 11875 # But if we don't then we get into trouble of one sort or another. 11876 # A longer-term fix would be to have automake use am__CC in this case, 11877 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 11878 CC="$am_aux_dir/compile $CC" 11879fi 11880 11881 11882 11883 11884# Check for docbook 11885for ac_prog in onsgmls nsgmls 11886do 11887 # Extract the first word of "$ac_prog", so it can be a program name with args. 11888set dummy $ac_prog; ac_word=$2 11889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11890$as_echo_n "checking for $ac_word... " >&6; } 11891if ${ac_cv_prog_NSGMLS+:} false; then : 11892 $as_echo_n "(cached) " >&6 11893else 11894 if test -n "$NSGMLS"; then 11895 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test. 11896else 11897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11898for as_dir in $PATH 11899do 11900 IFS=$as_save_IFS 11901 test -z "$as_dir" && as_dir=. 11902 for ac_exec_ext in '' $ac_executable_extensions; do 11903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11904 ac_cv_prog_NSGMLS="$ac_prog" 11905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11906 break 2 11907 fi 11908done 11909 done 11910IFS=$as_save_IFS 11911 11912fi 11913fi 11914NSGMLS=$ac_cv_prog_NSGMLS 11915if test -n "$NSGMLS"; then 11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NSGMLS" >&5 11917$as_echo "$NSGMLS" >&6; } 11918else 11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11920$as_echo "no" >&6; } 11921fi 11922 11923 11924 test -n "$NSGMLS" && break 11925done 11926 11927for ac_prog in openjade jade 11928do 11929 # Extract the first word of "$ac_prog", so it can be a program name with args. 11930set dummy $ac_prog; ac_word=$2 11931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11932$as_echo_n "checking for $ac_word... " >&6; } 11933if ${ac_cv_prog_JADE+:} false; then : 11934 $as_echo_n "(cached) " >&6 11935else 11936 if test -n "$JADE"; then 11937 ac_cv_prog_JADE="$JADE" # Let the user override the test. 11938else 11939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11940for as_dir in $PATH 11941do 11942 IFS=$as_save_IFS 11943 test -z "$as_dir" && as_dir=. 11944 for ac_exec_ext in '' $ac_executable_extensions; do 11945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11946 ac_cv_prog_JADE="$ac_prog" 11947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11948 break 2 11949 fi 11950done 11951 done 11952IFS=$as_save_IFS 11953 11954fi 11955fi 11956JADE=$ac_cv_prog_JADE 11957if test -n "$JADE"; then 11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JADE" >&5 11959$as_echo "$JADE" >&6; } 11960else 11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11962$as_echo "no" >&6; } 11963fi 11964 11965 11966 test -n "$JADE" && break 11967done 11968 11969 11970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DocBook V4.2" >&5 11971$as_echo_n "checking for DocBook V4.2... " >&6; } 11972if ${pgac_cv_check_docbook+:} false; then : 11973 $as_echo_n "(cached) " >&6 11974else 11975 cat >conftest.sgml <<EOF 11976<!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN"> 11977<book> 11978 <title>test</title> 11979 <chapter> 11980 <title>random</title> 11981 <sect1> 11982 <title>testsect</title> 11983 <para>text</para> 11984 </sect1> 11985 </chapter> 11986</book> 11987EOF 11988 11989pgac_cv_check_docbook=no 11990 11991if test -n "$NSGMLS"; then 11992 $NSGMLS -s conftest.sgml 1>&5 2>&1 11993 if test $? -eq 0; then 11994 pgac_cv_check_docbook=yes 11995 fi 11996fi 11997rm -f conftest.sgml 11998fi 11999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_check_docbook" >&5 12000$as_echo "$pgac_cv_check_docbook" >&6; } 12001 12002have_docbook=$pgac_cv_check_docbook 12003 if test "$pgac_cv_check_docbook" = "yes"; then 12004 can_build_docs_TRUE= 12005 can_build_docs_FALSE='#' 12006else 12007 can_build_docs_TRUE='#' 12008 can_build_docs_FALSE= 12009fi 12010 12011 12012 12013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DocBook stylesheets" >&5 12014$as_echo_n "checking for DocBook stylesheets... " >&6; } 12015if ${pgac_cv_path_stylesheets+:} false; then : 12016 $as_echo_n "(cached) " >&6 12017else 12018 if test -n "$DOCBOOKSTYLE"; then 12019 pgac_cv_path_stylesheets=$DOCBOOKSTYLE 12020else 12021 for pgac_prefix in /usr /usr/local /opt /sw; do 12022 for pgac_infix in share lib; do 12023 for pgac_postfix in \ 12024 sgml/stylesheets/nwalsh-modular \ 12025 sgml/stylesheets/docbook \ 12026 sgml/stylesheets/dsssl/docbook \ 12027 sgml/docbook-dsssl \ 12028 sgml/docbook/dsssl/modular \ 12029 sgml/docbook/stylesheet/dsssl/modular \ 12030 sgml/docbook/dsssl-stylesheets \ 12031 sgml/dsssl/docbook-dsssl-nwalsh 12032 do 12033 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix 12034 if test -r "$pgac_candidate/html/docbook.dsl" \ 12035 && test -r "$pgac_candidate/print/docbook.dsl" 12036 then 12037 pgac_cv_path_stylesheets=$pgac_candidate 12038 break 3 12039 fi 12040 done 12041 done 12042 done 12043fi 12044fi 12045 12046DOCBOOKSTYLE=$pgac_cv_path_stylesheets 12047 12048if test -n "$DOCBOOKSTYLE"; then 12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOCBOOKSTYLE" >&5 12050$as_echo "$DOCBOOKSTYLE" >&6; } 12051 CATALOG="-c ${DOCBOOKSTYLE}/catalog" 12052else 12053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12054$as_echo "no" >&6; } 12055 CATALOG= 12056fi 12057 12058 12059if test -n "$DOCBOOKSTYLE" -a -r "$DOCBOOKSTYLE/bin/collateindex.pl"; then 12060 COLLATEINDEX="$DOCBOOKSTYLE/bin/collateindex.pl" 12061 12062else 12063 # Extract the first word of "collateindex.pl", so it can be a program name with args. 12064set dummy collateindex.pl; ac_word=$2 12065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12066$as_echo_n "checking for $ac_word... " >&6; } 12067if ${ac_cv_path_COLLATEINDEX+:} false; then : 12068 $as_echo_n "(cached) " >&6 12069else 12070 case $COLLATEINDEX in 12071 [\\/]* | ?:[\\/]*) 12072 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path. 12073 ;; 12074 *) 12075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12076for as_dir in $PATH 12077do 12078 IFS=$as_save_IFS 12079 test -z "$as_dir" && as_dir=. 12080 for ac_exec_ext in '' $ac_executable_extensions; do 12081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12082 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext" 12083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12084 break 2 12085 fi 12086done 12087 done 12088IFS=$as_save_IFS 12089 12090 ;; 12091esac 12092fi 12093COLLATEINDEX=$ac_cv_path_COLLATEINDEX 12094if test -n "$COLLATEINDEX"; then 12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COLLATEINDEX" >&5 12096$as_echo "$COLLATEINDEX" >&6; } 12097else 12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12099$as_echo "no" >&6; } 12100fi 12101 12102 12103fi 12104for ac_prog in xsltproc 12105do 12106 # Extract the first word of "$ac_prog", so it can be a program name with args. 12107set dummy $ac_prog; ac_word=$2 12108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12109$as_echo_n "checking for $ac_word... " >&6; } 12110if ${ac_cv_prog_XSLTPROC+:} false; then : 12111 $as_echo_n "(cached) " >&6 12112else 12113 if test -n "$XSLTPROC"; then 12114 ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test. 12115else 12116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12117for as_dir in $PATH 12118do 12119 IFS=$as_save_IFS 12120 test -z "$as_dir" && as_dir=. 12121 for ac_exec_ext in '' $ac_executable_extensions; do 12122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12123 ac_cv_prog_XSLTPROC="$ac_prog" 12124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12125 break 2 12126 fi 12127done 12128 done 12129IFS=$as_save_IFS 12130 12131fi 12132fi 12133XSLTPROC=$ac_cv_prog_XSLTPROC 12134if test -n "$XSLTPROC"; then 12135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 12136$as_echo "$XSLTPROC" >&6; } 12137else 12138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12139$as_echo "no" >&6; } 12140fi 12141 12142 12143 test -n "$XSLTPROC" && break 12144done 12145 12146for ac_prog in xmllint 12147do 12148 # Extract the first word of "$ac_prog", so it can be a program name with args. 12149set dummy $ac_prog; ac_word=$2 12150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12151$as_echo_n "checking for $ac_word... " >&6; } 12152if ${ac_cv_prog_XMLLINT+:} false; then : 12153 $as_echo_n "(cached) " >&6 12154else 12155 if test -n "$XMLLINT"; then 12156 ac_cv_prog_XMLLINT="$XMLLINT" # Let the user override the test. 12157else 12158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12159for as_dir in $PATH 12160do 12161 IFS=$as_save_IFS 12162 test -z "$as_dir" && as_dir=. 12163 for ac_exec_ext in '' $ac_executable_extensions; do 12164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12165 ac_cv_prog_XMLLINT="$ac_prog" 12166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12167 break 2 12168 fi 12169done 12170 done 12171IFS=$as_save_IFS 12172 12173fi 12174fi 12175XMLLINT=$ac_cv_prog_XMLLINT 12176if test -n "$XMLLINT"; then 12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5 12178$as_echo "$XMLLINT" >&6; } 12179else 12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12181$as_echo "no" >&6; } 12182fi 12183 12184 12185 test -n "$XMLLINT" && break 12186done 12187 12188for ac_prog in osx sgml2xml sx 12189do 12190 # Extract the first word of "$ac_prog", so it can be a program name with args. 12191set dummy $ac_prog; ac_word=$2 12192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12193$as_echo_n "checking for $ac_word... " >&6; } 12194if ${ac_cv_prog_OSX+:} false; then : 12195 $as_echo_n "(cached) " >&6 12196else 12197 if test -n "$OSX"; then 12198 ac_cv_prog_OSX="$OSX" # Let the user override the test. 12199else 12200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12201for as_dir in $PATH 12202do 12203 IFS=$as_save_IFS 12204 test -z "$as_dir" && as_dir=. 12205 for ac_exec_ext in '' $ac_executable_extensions; do 12206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12207 ac_cv_prog_OSX="$ac_prog" 12208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12209 break 2 12210 fi 12211done 12212 done 12213IFS=$as_save_IFS 12214 12215fi 12216fi 12217OSX=$ac_cv_prog_OSX 12218if test -n "$OSX"; then 12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OSX" >&5 12220$as_echo "$OSX" >&6; } 12221else 12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12223$as_echo "no" >&6; } 12224fi 12225 12226 12227 test -n "$OSX" && break 12228done 12229 12230for ac_prog in perl 12231do 12232 # Extract the first word of "$ac_prog", so it can be a program name with args. 12233set dummy $ac_prog; ac_word=$2 12234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12235$as_echo_n "checking for $ac_word... " >&6; } 12236if ${ac_cv_prog_PERL+:} false; then : 12237 $as_echo_n "(cached) " >&6 12238else 12239 if test -n "$PERL"; then 12240 ac_cv_prog_PERL="$PERL" # Let the user override the test. 12241else 12242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12243for as_dir in $PATH 12244do 12245 IFS=$as_save_IFS 12246 test -z "$as_dir" && as_dir=. 12247 for ac_exec_ext in '' $ac_executable_extensions; do 12248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12249 ac_cv_prog_PERL="$ac_prog" 12250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12251 break 2 12252 fi 12253done 12254 done 12255IFS=$as_save_IFS 12256 12257fi 12258fi 12259PERL=$ac_cv_prog_PERL 12260if test -n "$PERL"; then 12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 12262$as_echo "$PERL" >&6; } 12263else 12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12265$as_echo "no" >&6; } 12266fi 12267 12268 12269 test -n "$PERL" && break 12270done 12271 12272for ac_prog in lynx 12273do 12274 # Extract the first word of "$ac_prog", so it can be a program name with args. 12275set dummy $ac_prog; ac_word=$2 12276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12277$as_echo_n "checking for $ac_word... " >&6; } 12278if ${ac_cv_prog_LYNX+:} false; then : 12279 $as_echo_n "(cached) " >&6 12280else 12281 if test -n "$LYNX"; then 12282 ac_cv_prog_LYNX="$LYNX" # Let the user override the test. 12283else 12284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12285for as_dir in $PATH 12286do 12287 IFS=$as_save_IFS 12288 test -z "$as_dir" && as_dir=. 12289 for ac_exec_ext in '' $ac_executable_extensions; do 12290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12291 ac_cv_prog_LYNX="$ac_prog" 12292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12293 break 2 12294 fi 12295done 12296 done 12297IFS=$as_save_IFS 12298 12299fi 12300fi 12301LYNX=$ac_cv_prog_LYNX 12302if test -n "$LYNX"; then 12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LYNX" >&5 12304$as_echo "$LYNX" >&6; } 12305else 12306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12307$as_echo "no" >&6; } 12308fi 12309 12310 12311 test -n "$LYNX" && break 12312done 12313 12314for ac_prog in sunifdef 12315do 12316 # Extract the first word of "$ac_prog", so it can be a program name with args. 12317set dummy $ac_prog; ac_word=$2 12318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12319$as_echo_n "checking for $ac_word... " >&6; } 12320if ${ac_cv_prog_SUNIFDEF+:} false; then : 12321 $as_echo_n "(cached) " >&6 12322else 12323 if test -n "$SUNIFDEF"; then 12324 ac_cv_prog_SUNIFDEF="$SUNIFDEF" # Let the user override the test. 12325else 12326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12327for as_dir in $PATH 12328do 12329 IFS=$as_save_IFS 12330 test -z "$as_dir" && as_dir=. 12331 for ac_exec_ext in '' $ac_executable_extensions; do 12332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12333 ac_cv_prog_SUNIFDEF="$ac_prog" 12334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12335 break 2 12336 fi 12337done 12338 done 12339IFS=$as_save_IFS 12340 12341fi 12342fi 12343SUNIFDEF=$ac_cv_prog_SUNIFDEF 12344if test -n "$SUNIFDEF"; then 12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUNIFDEF" >&5 12346$as_echo "$SUNIFDEF" >&6; } 12347else 12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12349$as_echo "no" >&6; } 12350fi 12351 12352 12353 test -n "$SUNIFDEF" && break 12354done 12355 12356 12357 12358 12359 if test ! -z "$STYLE"; then 12360 STYLE_ENV_SET_TRUE= 12361 STYLE_ENV_SET_FALSE='#' 12362else 12363 STYLE_ENV_SET_TRUE='#' 12364 STYLE_ENV_SET_FALSE= 12365fi 12366 12367 12368OLD_CFLAGS=$CFLAGS 12369CFLAGS="$CFLAGS -Wall" 12370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wall option" >&5 12371$as_echo_n "checking for -Wall option... " >&6; } 12372if ${ac_cv_wall+:} false; then : 12373 $as_echo_n "(cached) " >&6 12374else 12375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12376/* end confdefs.h. */ 12377 12378int 12379main () 12380{ 12381char a; 12382 ; 12383 return 0; 12384} 12385_ACEOF 12386if ac_fn_c_try_compile "$LINENO"; then : 12387 ac_cv_wall=yes 12388else 12389 ac_cv_wall=no 12390fi 12391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12392fi 12393 12394echo $ac_cv_wall 12395if test $ac_cv_wall = no; then 12396 CFLAGS=$OLD_CFLAGS 12397fi 12398 12399OLD_CFLAGS=$CFLAGS 12400CFLAGS="$CFLAGS -Wmissing-prototypes" 12401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wmissing-prototypes option" >&5 12402$as_echo_n "checking for -Wmissing-prototypes option... " >&6; } 12403if ${ac_cv_wmissing_prototypes+:} false; then : 12404 $as_echo_n "(cached) " >&6 12405else 12406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12407/* end confdefs.h. */ 12408 12409int 12410main () 12411{ 12412char a; 12413 ; 12414 return 0; 12415} 12416_ACEOF 12417if ac_fn_c_try_compile "$LINENO"; then : 12418 ac_cv_wmissing_prototypes=yes 12419else 12420 ac_cv_wmissing_prototypes=no 12421fi 12422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12423fi 12424 12425echo $ac_cv_wmissing_prototypes 12426if test $ac_cv_wmissing_prototypes = no; then 12427 CFLAGS=$OLD_CFLAGS 12428fi 12429 12430 12431OLD_CFLAGS=$CFLAGS 12432CFLAGS="$CFLAGS -Wmissing-declarations" 12433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wmissing-declarations option" >&5 12434$as_echo_n "checking for -Wmissing-declarations option... " >&6; } 12435if ${ac_cv_wmissing_declarations+:} false; then : 12436 $as_echo_n "(cached) " >&6 12437else 12438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12439/* end confdefs.h. */ 12440 12441int 12442main () 12443{ 12444char a; 12445 ; 12446 return 0; 12447} 12448_ACEOF 12449if ac_fn_c_try_compile "$LINENO"; then : 12450 ac_cv_wmissing_declarations=yes 12451else 12452 ac_cv_wmissing_declarations=no 12453fi 12454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12455fi 12456 12457echo $ac_cv_wmissing_declarations 12458if test $ac_cv_wmissing_declarations = no; then 12459 CFLAGS=$OLD_CFLAGS 12460fi 12461 12462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5 12463$as_echo_n "checking for main in -lm... " >&6; } 12464if ${ac_cv_lib_m_main+:} false; then : 12465 $as_echo_n "(cached) " >&6 12466else 12467 ac_check_lib_save_LIBS=$LIBS 12468LIBS="-lm $LIBS" 12469cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12470/* end confdefs.h. */ 12471 12472 12473int 12474main () 12475{ 12476return main (); 12477 ; 12478 return 0; 12479} 12480_ACEOF 12481if ac_fn_c_try_link "$LINENO"; then : 12482 ac_cv_lib_m_main=yes 12483else 12484 ac_cv_lib_m_main=no 12485fi 12486rm -f core conftest.err conftest.$ac_objext \ 12487 conftest$ac_exeext conftest.$ac_ext 12488LIBS=$ac_check_lib_save_LIBS 12489fi 12490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5 12491$as_echo "$ac_cv_lib_m_main" >&6; } 12492if test "x$ac_cv_lib_m_main" = xyes; then : 12493 cat >>confdefs.h <<_ACEOF 12494#define HAVE_LIBM 1 12495_ACEOF 12496 12497 LIBS="-lm $LIBS" 12498 12499fi 12500 12501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5 12502$as_echo_n "checking for main in -lnsl... " >&6; } 12503if ${ac_cv_lib_nsl_main+:} false; then : 12504 $as_echo_n "(cached) " >&6 12505else 12506 ac_check_lib_save_LIBS=$LIBS 12507LIBS="-lnsl $LIBS" 12508cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12509/* end confdefs.h. */ 12510 12511 12512int 12513main () 12514{ 12515return main (); 12516 ; 12517 return 0; 12518} 12519_ACEOF 12520if ac_fn_c_try_link "$LINENO"; then : 12521 ac_cv_lib_nsl_main=yes 12522else 12523 ac_cv_lib_nsl_main=no 12524fi 12525rm -f core conftest.err conftest.$ac_objext \ 12526 conftest$ac_exeext conftest.$ac_ext 12527LIBS=$ac_check_lib_save_LIBS 12528fi 12529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5 12530$as_echo "$ac_cv_lib_nsl_main" >&6; } 12531if test "x$ac_cv_lib_nsl_main" = xyes; then : 12532 cat >>confdefs.h <<_ACEOF 12533#define HAVE_LIBNSL 1 12534_ACEOF 12535 12536 LIBS="-lnsl $LIBS" 12537 12538fi 12539 12540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5 12541$as_echo_n "checking for main in -lsocket... " >&6; } 12542if ${ac_cv_lib_socket_main+:} false; then : 12543 $as_echo_n "(cached) " >&6 12544else 12545 ac_check_lib_save_LIBS=$LIBS 12546LIBS="-lsocket $LIBS" 12547cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12548/* end confdefs.h. */ 12549 12550 12551int 12552main () 12553{ 12554return main (); 12555 ; 12556 return 0; 12557} 12558_ACEOF 12559if ac_fn_c_try_link "$LINENO"; then : 12560 ac_cv_lib_socket_main=yes 12561else 12562 ac_cv_lib_socket_main=no 12563fi 12564rm -f core conftest.err conftest.$ac_objext \ 12565 conftest$ac_exeext conftest.$ac_ext 12566LIBS=$ac_check_lib_save_LIBS 12567fi 12568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5 12569$as_echo "$ac_cv_lib_socket_main" >&6; } 12570if test "x$ac_cv_lib_socket_main" = xyes; then : 12571 cat >>confdefs.h <<_ACEOF 12572#define HAVE_LIBSOCKET 1 12573_ACEOF 12574 12575 LIBS="-lsocket $LIBS" 12576 12577fi 12578 12579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lipc" >&5 12580$as_echo_n "checking for main in -lipc... " >&6; } 12581if ${ac_cv_lib_ipc_main+:} false; then : 12582 $as_echo_n "(cached) " >&6 12583else 12584 ac_check_lib_save_LIBS=$LIBS 12585LIBS="-lipc $LIBS" 12586cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12587/* end confdefs.h. */ 12588 12589 12590int 12591main () 12592{ 12593return main (); 12594 ; 12595 return 0; 12596} 12597_ACEOF 12598if ac_fn_c_try_link "$LINENO"; then : 12599 ac_cv_lib_ipc_main=yes 12600else 12601 ac_cv_lib_ipc_main=no 12602fi 12603rm -f core conftest.err conftest.$ac_objext \ 12604 conftest$ac_exeext conftest.$ac_ext 12605LIBS=$ac_check_lib_save_LIBS 12606fi 12607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_main" >&5 12608$as_echo "$ac_cv_lib_ipc_main" >&6; } 12609if test "x$ac_cv_lib_ipc_main" = xyes; then : 12610 cat >>confdefs.h <<_ACEOF 12611#define HAVE_LIBIPC 1 12612_ACEOF 12613 12614 LIBS="-lipc $LIBS" 12615 12616fi 12617 12618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lIPC" >&5 12619$as_echo_n "checking for main in -lIPC... " >&6; } 12620if ${ac_cv_lib_IPC_main+:} false; then : 12621 $as_echo_n "(cached) " >&6 12622else 12623 ac_check_lib_save_LIBS=$LIBS 12624LIBS="-lIPC $LIBS" 12625cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12626/* end confdefs.h. */ 12627 12628 12629int 12630main () 12631{ 12632return main (); 12633 ; 12634 return 0; 12635} 12636_ACEOF 12637if ac_fn_c_try_link "$LINENO"; then : 12638 ac_cv_lib_IPC_main=yes 12639else 12640 ac_cv_lib_IPC_main=no 12641fi 12642rm -f core conftest.err conftest.$ac_objext \ 12643 conftest$ac_exeext conftest.$ac_ext 12644LIBS=$ac_check_lib_save_LIBS 12645fi 12646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_IPC_main" >&5 12647$as_echo "$ac_cv_lib_IPC_main" >&6; } 12648if test "x$ac_cv_lib_IPC_main" = xyes; then : 12649 cat >>confdefs.h <<_ACEOF 12650#define HAVE_LIBIPC 1 12651_ACEOF 12652 12653 LIBS="-lIPC $LIBS" 12654 12655fi 12656 12657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -llc" >&5 12658$as_echo_n "checking for main in -llc... " >&6; } 12659if ${ac_cv_lib_lc_main+:} false; then : 12660 $as_echo_n "(cached) " >&6 12661else 12662 ac_check_lib_save_LIBS=$LIBS 12663LIBS="-llc $LIBS" 12664cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12665/* end confdefs.h. */ 12666 12667 12668int 12669main () 12670{ 12671return main (); 12672 ; 12673 return 0; 12674} 12675_ACEOF 12676if ac_fn_c_try_link "$LINENO"; then : 12677 ac_cv_lib_lc_main=yes 12678else 12679 ac_cv_lib_lc_main=no 12680fi 12681rm -f core conftest.err conftest.$ac_objext \ 12682 conftest$ac_exeext conftest.$ac_ext 12683LIBS=$ac_check_lib_save_LIBS 12684fi 12685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lc_main" >&5 12686$as_echo "$ac_cv_lib_lc_main" >&6; } 12687if test "x$ac_cv_lib_lc_main" = xyes; then : 12688 cat >>confdefs.h <<_ACEOF 12689#define HAVE_LIBLC 1 12690_ACEOF 12691 12692 LIBS="-llc $LIBS" 12693 12694fi 12695 12696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lBSD" >&5 12697$as_echo_n "checking for main in -lBSD... " >&6; } 12698if ${ac_cv_lib_BSD_main+:} false; then : 12699 $as_echo_n "(cached) " >&6 12700else 12701 ac_check_lib_save_LIBS=$LIBS 12702LIBS="-lBSD $LIBS" 12703cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12704/* end confdefs.h. */ 12705 12706 12707int 12708main () 12709{ 12710return main (); 12711 ; 12712 return 0; 12713} 12714_ACEOF 12715if ac_fn_c_try_link "$LINENO"; then : 12716 ac_cv_lib_BSD_main=yes 12717else 12718 ac_cv_lib_BSD_main=no 12719fi 12720rm -f core conftest.err conftest.$ac_objext \ 12721 conftest$ac_exeext conftest.$ac_ext 12722LIBS=$ac_check_lib_save_LIBS 12723fi 12724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_BSD_main" >&5 12725$as_echo "$ac_cv_lib_BSD_main" >&6; } 12726if test "x$ac_cv_lib_BSD_main" = xyes; then : 12727 cat >>confdefs.h <<_ACEOF 12728#define HAVE_LIBBSD 1 12729_ACEOF 12730 12731 LIBS="-lBSD $LIBS" 12732 12733fi 12734 12735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgen" >&5 12736$as_echo_n "checking for main in -lgen... " >&6; } 12737if ${ac_cv_lib_gen_main+:} false; then : 12738 $as_echo_n "(cached) " >&6 12739else 12740 ac_check_lib_save_LIBS=$LIBS 12741LIBS="-lgen $LIBS" 12742cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12743/* end confdefs.h. */ 12744 12745 12746int 12747main () 12748{ 12749return main (); 12750 ; 12751 return 0; 12752} 12753_ACEOF 12754if ac_fn_c_try_link "$LINENO"; then : 12755 ac_cv_lib_gen_main=yes 12756else 12757 ac_cv_lib_gen_main=no 12758fi 12759rm -f core conftest.err conftest.$ac_objext \ 12760 conftest$ac_exeext conftest.$ac_ext 12761LIBS=$ac_check_lib_save_LIBS 12762fi 12763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_main" >&5 12764$as_echo "$ac_cv_lib_gen_main" >&6; } 12765if test "x$ac_cv_lib_gen_main" = xyes; then : 12766 cat >>confdefs.h <<_ACEOF 12767#define HAVE_LIBGEN 1 12768_ACEOF 12769 12770 LIBS="-lgen $LIBS" 12771 12772fi 12773 12774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lPW" >&5 12775$as_echo_n "checking for main in -lPW... " >&6; } 12776if ${ac_cv_lib_PW_main+:} false; then : 12777 $as_echo_n "(cached) " >&6 12778else 12779 ac_check_lib_save_LIBS=$LIBS 12780LIBS="-lPW $LIBS" 12781cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12782/* end confdefs.h. */ 12783 12784 12785int 12786main () 12787{ 12788return main (); 12789 ; 12790 return 0; 12791} 12792_ACEOF 12793if ac_fn_c_try_link "$LINENO"; then : 12794 ac_cv_lib_PW_main=yes 12795else 12796 ac_cv_lib_PW_main=no 12797fi 12798rm -f core conftest.err conftest.$ac_objext \ 12799 conftest$ac_exeext conftest.$ac_ext 12800LIBS=$ac_check_lib_save_LIBS 12801fi 12802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_PW_main" >&5 12803$as_echo "$ac_cv_lib_PW_main" >&6; } 12804if test "x$ac_cv_lib_PW_main" = xyes; then : 12805 cat >>confdefs.h <<_ACEOF 12806#define HAVE_LIBPW 1 12807_ACEOF 12808 12809 LIBS="-lPW $LIBS" 12810 12811fi 12812 12813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lresolv" >&5 12814$as_echo_n "checking for main in -lresolv... " >&6; } 12815if ${ac_cv_lib_resolv_main+:} false; then : 12816 $as_echo_n "(cached) " >&6 12817else 12818 ac_check_lib_save_LIBS=$LIBS 12819LIBS="-lresolv $LIBS" 12820cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12821/* end confdefs.h. */ 12822 12823 12824int 12825main () 12826{ 12827return main (); 12828 ; 12829 return 0; 12830} 12831_ACEOF 12832if ac_fn_c_try_link "$LINENO"; then : 12833 ac_cv_lib_resolv_main=yes 12834else 12835 ac_cv_lib_resolv_main=no 12836fi 12837rm -f core conftest.err conftest.$ac_objext \ 12838 conftest$ac_exeext conftest.$ac_ext 12839LIBS=$ac_check_lib_save_LIBS 12840fi 12841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_main" >&5 12842$as_echo "$ac_cv_lib_resolv_main" >&6; } 12843if test "x$ac_cv_lib_resolv_main" = xyes; then : 12844 cat >>confdefs.h <<_ACEOF 12845#define HAVE_LIBRESOLV 1 12846_ACEOF 12847 12848 LIBS="-lresolv $LIBS" 12849 12850fi 12851 12852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypt" >&5 12853$as_echo_n "checking for main in -lcrypt... " >&6; } 12854if ${ac_cv_lib_crypt_main+:} false; then : 12855 $as_echo_n "(cached) " >&6 12856else 12857 ac_check_lib_save_LIBS=$LIBS 12858LIBS="-lcrypt $LIBS" 12859cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12860/* end confdefs.h. */ 12861 12862 12863int 12864main () 12865{ 12866return main (); 12867 ; 12868 return 0; 12869} 12870_ACEOF 12871if ac_fn_c_try_link "$LINENO"; then : 12872 ac_cv_lib_crypt_main=yes 12873else 12874 ac_cv_lib_crypt_main=no 12875fi 12876rm -f core conftest.err conftest.$ac_objext \ 12877 conftest$ac_exeext conftest.$ac_ext 12878LIBS=$ac_check_lib_save_LIBS 12879fi 12880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_main" >&5 12881$as_echo "$ac_cv_lib_crypt_main" >&6; } 12882if test "x$ac_cv_lib_crypt_main" = xyes; then : 12883 cat >>confdefs.h <<_ACEOF 12884#define HAVE_LIBCRYPT 1 12885_ACEOF 12886 12887 LIBS="-lcrypt $LIBS" 12888 12889fi 12890 12891 12892for ac_func in strlcat, strlcpy 12893do : 12894 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12895ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12896if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12897 cat >>confdefs.h <<_ACEOF 12898#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12899_ACEOF 12900 12901fi 12902done 12903 12904 12905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 12906$as_echo_n "checking for ANSI C header files... " >&6; } 12907if ${ac_cv_header_stdc+:} false; then : 12908 $as_echo_n "(cached) " >&6 12909else 12910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12911/* end confdefs.h. */ 12912#include <stdlib.h> 12913#include <stdarg.h> 12914#include <string.h> 12915#include <float.h> 12916 12917int 12918main () 12919{ 12920 12921 ; 12922 return 0; 12923} 12924_ACEOF 12925if ac_fn_c_try_compile "$LINENO"; then : 12926 ac_cv_header_stdc=yes 12927else 12928 ac_cv_header_stdc=no 12929fi 12930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12931 12932if test $ac_cv_header_stdc = yes; then 12933 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 12934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12935/* end confdefs.h. */ 12936#include <string.h> 12937 12938_ACEOF 12939if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12940 $EGREP "memchr" >/dev/null 2>&1; then : 12941 12942else 12943 ac_cv_header_stdc=no 12944fi 12945rm -f conftest* 12946 12947fi 12948 12949if test $ac_cv_header_stdc = yes; then 12950 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 12951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12952/* end confdefs.h. */ 12953#include <stdlib.h> 12954 12955_ACEOF 12956if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12957 $EGREP "free" >/dev/null 2>&1; then : 12958 12959else 12960 ac_cv_header_stdc=no 12961fi 12962rm -f conftest* 12963 12964fi 12965 12966if test $ac_cv_header_stdc = yes; then 12967 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 12968 if test "$cross_compiling" = yes; then : 12969 : 12970else 12971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12972/* end confdefs.h. */ 12973#include <ctype.h> 12974#include <stdlib.h> 12975#if ((' ' & 0x0FF) == 0x020) 12976# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 12977# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 12978#else 12979# define ISLOWER(c) \ 12980 (('a' <= (c) && (c) <= 'i') \ 12981 || ('j' <= (c) && (c) <= 'r') \ 12982 || ('s' <= (c) && (c) <= 'z')) 12983# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 12984#endif 12985 12986#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 12987int 12988main () 12989{ 12990 int i; 12991 for (i = 0; i < 256; i++) 12992 if (XOR (islower (i), ISLOWER (i)) 12993 || toupper (i) != TOUPPER (i)) 12994 return 2; 12995 return 0; 12996} 12997_ACEOF 12998if ac_fn_c_try_run "$LINENO"; then : 12999 13000else 13001 ac_cv_header_stdc=no 13002fi 13003rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13004 conftest.$ac_objext conftest.beam conftest.$ac_ext 13005fi 13006 13007fi 13008fi 13009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 13010$as_echo "$ac_cv_header_stdc" >&6; } 13011if test $ac_cv_header_stdc = yes; then 13012 13013$as_echo "#define STDC_HEADERS 1" >>confdefs.h 13014 13015fi 13016 13017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 13018$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 13019if ${ac_cv_header_sys_wait_h+:} false; then : 13020 $as_echo_n "(cached) " >&6 13021else 13022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13023/* end confdefs.h. */ 13024#include <sys/types.h> 13025#include <sys/wait.h> 13026#ifndef WEXITSTATUS 13027# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 13028#endif 13029#ifndef WIFEXITED 13030# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 13031#endif 13032 13033int 13034main () 13035{ 13036 int s; 13037 wait (&s); 13038 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 13039 ; 13040 return 0; 13041} 13042_ACEOF 13043if ac_fn_c_try_compile "$LINENO"; then : 13044 ac_cv_header_sys_wait_h=yes 13045else 13046 ac_cv_header_sys_wait_h=no 13047fi 13048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13049fi 13050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 13051$as_echo "$ac_cv_header_sys_wait_h" >&6; } 13052if test $ac_cv_header_sys_wait_h = yes; then 13053 13054$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 13055 13056fi 13057 13058for ac_header in fcntl.h unistd.h getopt.h netinet/tcp.h netinet/in.h netdb.h sys/param.h sys/types.h sys/socket.h sys/un.h sys/time.h sys/sem.h sys/shm.h sys/select.h crypt.h sys/pstat.h 13059do : 13060 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13061ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13062if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13063 cat >>confdefs.h <<_ACEOF 13064#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13065_ACEOF 13066 13067fi 13068 13069done 13070 13071ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default" 13072if test "x$ac_cv_header_termios_h" = xyes; then : 13073 13074$as_echo "#define HAVE_TERMIOS_H 1" >>confdefs.h 13075 13076fi 13077 13078 13079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 13080$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 13081if ${ac_cv_c_const+:} false; then : 13082 $as_echo_n "(cached) " >&6 13083else 13084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13085/* end confdefs.h. */ 13086 13087int 13088main () 13089{ 13090 13091#ifndef __cplusplus 13092 /* Ultrix mips cc rejects this sort of thing. */ 13093 typedef int charset[2]; 13094 const charset cs = { 0, 0 }; 13095 /* SunOS 4.1.1 cc rejects this. */ 13096 char const *const *pcpcc; 13097 char **ppc; 13098 /* NEC SVR4.0.2 mips cc rejects this. */ 13099 struct point {int x, y;}; 13100 static struct point const zero = {0,0}; 13101 /* AIX XL C 1.02.0.0 rejects this. 13102 It does not let you subtract one const X* pointer from another in 13103 an arm of an if-expression whose if-part is not a constant 13104 expression */ 13105 const char *g = "string"; 13106 pcpcc = &g + (g ? g-g : 0); 13107 /* HPUX 7.0 cc rejects these. */ 13108 ++pcpcc; 13109 ppc = (char**) pcpcc; 13110 pcpcc = (char const *const *) ppc; 13111 { /* SCO 3.2v4 cc rejects this sort of thing. */ 13112 char tx; 13113 char *t = &tx; 13114 char const *s = 0 ? (char *) 0 : (char const *) 0; 13115 13116 *t++ = 0; 13117 if (s) return 0; 13118 } 13119 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 13120 int x[] = {25, 17}; 13121 const int *foo = &x[0]; 13122 ++foo; 13123 } 13124 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 13125 typedef const int *iptr; 13126 iptr p = 0; 13127 ++p; 13128 } 13129 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 13130 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 13131 struct s { int j; const int *ap[3]; } bx; 13132 struct s *b = &bx; b->j = 5; 13133 } 13134 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 13135 const int foo = 10; 13136 if (!foo) return 0; 13137 } 13138 return !cs[0] && !zero.x; 13139#endif 13140 13141 ; 13142 return 0; 13143} 13144_ACEOF 13145if ac_fn_c_try_compile "$LINENO"; then : 13146 ac_cv_c_const=yes 13147else 13148 ac_cv_c_const=no 13149fi 13150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13151fi 13152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 13153$as_echo "$ac_cv_c_const" >&6; } 13154if test $ac_cv_c_const = no; then 13155 13156$as_echo "#define const /**/" >>confdefs.h 13157 13158fi 13159 13160ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 13161if test "x$ac_cv_type_pid_t" = xyes; then : 13162 13163else 13164 13165cat >>confdefs.h <<_ACEOF 13166#define pid_t int 13167_ACEOF 13168 13169fi 13170 13171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 13172$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 13173if ${ac_cv_header_time+:} false; then : 13174 $as_echo_n "(cached) " >&6 13175else 13176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13177/* end confdefs.h. */ 13178#include <sys/types.h> 13179#include <sys/time.h> 13180#include <time.h> 13181 13182int 13183main () 13184{ 13185if ((struct tm *) 0) 13186return 0; 13187 ; 13188 return 0; 13189} 13190_ACEOF 13191if ac_fn_c_try_compile "$LINENO"; then : 13192 ac_cv_header_time=yes 13193else 13194 ac_cv_header_time=no 13195fi 13196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13197fi 13198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 13199$as_echo "$ac_cv_header_time" >&6; } 13200if test $ac_cv_header_time = yes; then 13201 13202$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 13203 13204fi 13205 13206 13207 13208# Macros to detect C compiler features 13209# config/c-compiler.m4 13210 13211 13212# PGAC_C_SIGNED 13213# ------------- 13214# Check if the C compiler understands signed types. 13215# PGAC_C_SIGNED 13216 13217 13218 13219# PGAC_C_PRINTF_ARCHETYPE 13220# ----------------------- 13221# Select the format archetype to be used by gcc to check printf-type functions. 13222# We prefer "gnu_printf", as that most closely matches the features supported 13223# by src/port/snprintf.c (particularly the %m conversion spec). However, 13224# on some NetBSD versions, that doesn't work while "__syslog__" does. 13225# If all else fails, use "printf". 13226# PGAC_PRINTF_ARCHETYPE 13227 13228# Subroutine: test $pgac_cv_printf_archetype, set $ac_archetype_ok to yes or no 13229# PGAC_TEST_PRINTF_ARCHETYPE 13230 13231 13232# PGAC_TYPE_64BIT_INT(TYPE) 13233# ------------------------- 13234# Check if TYPE is a working 64 bit integer type. Set HAVE_TYPE_64 to 13235# yes or no respectively, and define HAVE_TYPE_64 if yes. 13236# PGAC_TYPE_64BIT_INT 13237 13238 13239# PGAC_TYPE_128BIT_INT 13240# --------------------- 13241# Check if __int128 is a working 128 bit integer type, and if so 13242# define PG_INT128_TYPE to that typename, and define ALIGNOF_PG_INT128_TYPE 13243# as its alignment requirement. 13244# 13245# This currently only detects a GCC/clang extension, but support for other 13246# environments may be added in the future. 13247# 13248# For the moment we only test for support for 128bit math; support for 13249# 128bit literals and snprintf is not required. 13250# PGAC_TYPE_128BIT_INT 13251 13252 13253# PGAC_C_FUNCNAME_SUPPORT 13254# ----------------------- 13255# Check if the C compiler understands __func__ (C99) or __FUNCTION__ (gcc). 13256# Define HAVE_FUNCNAME__FUNC or HAVE_FUNCNAME__FUNCTION accordingly. 13257# PGAC_C_FUNCNAME_SUPPORT 13258 13259 13260 13261# PGAC_C_STATIC_ASSERT 13262# -------------------- 13263# Check if the C compiler understands _Static_assert(), 13264# and define HAVE__STATIC_ASSERT if so. 13265# 13266# We actually check the syntax ({ _Static_assert(...) }), because we need 13267# gcc-style compound expressions to be able to wrap the thing into macros. 13268# PGAC_C_STATIC_ASSERT 13269 13270 13271 13272# PGAC_C_TYPEOF 13273# ------------- 13274# Check if the C compiler understands typeof or a variant. Define 13275# HAVE_TYPEOF if so, and define 'typeof' to the actual key word. 13276# 13277# PGAC_C_TYPEOF 13278 13279 13280 13281# PGAC_C_TYPES_COMPATIBLE 13282# ----------------------- 13283# Check if the C compiler understands __builtin_types_compatible_p, 13284# and define HAVE__BUILTIN_TYPES_COMPATIBLE_P if so. 13285# 13286# We check usage with __typeof__, though it's unlikely any compiler would 13287# have the former and not the latter. 13288# PGAC_C_TYPES_COMPATIBLE 13289 13290 13291# PGAC_C_BUILTIN_CONSTANT_P 13292# ------------------------- 13293# Check if the C compiler understands __builtin_constant_p(), 13294# and define HAVE__BUILTIN_CONSTANT_P if so. 13295# We need __builtin_constant_p("string literal") to be true, but some older 13296# compilers don't think that, so test for that case explicitly. 13297# PGAC_C_BUILTIN_CONSTANT_P 13298 13299 13300 13301# PGAC_C_BUILTIN_OP_OVERFLOW 13302# ------------------------- 13303# Check if the C compiler understands __builtin_$op_overflow(), 13304# and define HAVE__BUILTIN_OP_OVERFLOW if so. 13305# 13306# Check for the most complicated case, 64 bit multiplication, as a 13307# proxy for all of the operations. To detect the case where the compiler 13308# knows the function but library support is missing, we must link not just 13309# compile, and store the results in global variables so the compiler doesn't 13310# optimize away the call. 13311# PGAC_C_BUILTIN_OP_OVERFLOW 13312 13313 13314 13315# PGAC_C_BUILTIN_UNREACHABLE 13316# -------------------------- 13317# Check if the C compiler understands __builtin_unreachable(), 13318# and define HAVE__BUILTIN_UNREACHABLE if so. 13319# 13320# NB: Don't get the idea of putting a for(;;); or such before the 13321# __builtin_unreachable() call. Some compilers would remove it before linking 13322# and only a warning instead of an error would be produced. 13323# PGAC_C_BUILTIN_UNREACHABLE 13324 13325 13326 13327# PGAC_C_COMPUTED_GOTO 13328# ----------------------- 13329# Check if the C compiler knows computed gotos (gcc extension, also 13330# available in at least clang). If so, define HAVE_COMPUTED_GOTO. 13331# 13332# Checking whether computed gotos are supported syntax-wise ought to 13333# be enough, as the syntax is otherwise illegal. 13334# PGAC_C_COMPUTED_GOTO 13335 13336 13337 13338# PGAC_CHECK_BUILTIN_FUNC 13339# ----------------------- 13340# This is similar to AC_CHECK_FUNCS(), except that it will work for compiler 13341# builtin functions, as that usually fails to. 13342# The first argument is the function name, eg [__builtin_clzl], and the 13343# second is its argument list, eg [unsigned long x]. The current coding 13344# works only for a single argument named x; we might generalize that later. 13345# It's assumed that the function's result type is coercible to int. 13346# On success, we define "HAVEfuncname" (there's usually more than enough 13347# underscores already, so we don't add another one). 13348# PGAC_CHECK_BUILTIN_FUNC 13349 13350 13351 13352# PGAC_PROG_VARCC_VARFLAGS_OPT 13353# ----------------------- 13354# Given a compiler, variable name and a string, check if the compiler 13355# supports the string as a command-line option. If it does, add the 13356# string to the given variable. 13357# PGAC_PROG_VARCC_VARFLAGS_OPT 13358 13359 13360 13361# PGAC_PROG_CC_CFLAGS_OPT 13362# ----------------------- 13363# Given a string, check if the compiler supports the string as a 13364# command-line option. If it does, add the string to CFLAGS. 13365# PGAC_PROG_CC_CFLAGS_OPT 13366 13367 13368 13369# PGAC_PROG_CC_VAR_OPT 13370# ----------------------- 13371# Given a variable name and a string, check if the compiler supports 13372# the string as a command-line option. If it does, add the string to 13373# the given variable. 13374# PGAC_PROG_CC_VAR_OPT 13375 13376 13377 13378# PGAC_PROG_VARCXX_VARFLAGS_OPT 13379# ----------------------- 13380# Given a compiler, variable name and a string, check if the compiler 13381# supports the string as a command-line option. If it does, add the 13382# string to the given variable. 13383# PGAC_PROG_VARCXX_VARFLAGS_OPT 13384 13385 13386 13387# PGAC_PROG_CXX_CFLAGS_OPT 13388# ----------------------- 13389# Given a string, check if the compiler supports the string as a 13390# command-line option. If it does, add the string to CXXFLAGS. 13391# PGAC_PROG_CXX_VAR_OPT 13392 13393 13394 13395# PGAC_PROG_CC_LDFLAGS_OPT 13396# ------------------------ 13397# Given a string, check if the compiler supports the string as a 13398# command-line option. If it does, add the string to LDFLAGS. 13399# For reasons you'd really rather not know about, this checks whether 13400# you can link to a particular function, not just whether you can link. 13401# In fact, we must actually check that the resulting program runs :-( 13402# PGAC_PROG_CC_LDFLAGS_OPT 13403 13404# PGAC_HAVE_GCC__SYNC_CHAR_TAS 13405# ------------------------- 13406# Check if the C compiler understands __sync_lock_test_and_set(char), 13407# and define HAVE_GCC__SYNC_CHAR_TAS 13408# 13409# NB: There are platforms where test_and_set is available but compare_and_swap 13410# is not, so test this separately. 13411# NB: Some platforms only do 32bit tas, others only do 8bit tas. Test both. 13412# PGAC_HAVE_GCC__SYNC_CHAR_TAS 13413 13414# PGAC_HAVE_GCC__SYNC_INT32_TAS 13415# ------------------------- 13416# Check if the C compiler understands __sync_lock_test_and_set(), 13417# and define HAVE_GCC__SYNC_INT32_TAS 13418# PGAC_HAVE_GCC__SYNC_INT32_TAS 13419 13420# PGAC_HAVE_GCC__SYNC_INT32_CAS 13421# ------------------------- 13422# Check if the C compiler understands __sync_compare_and_swap() for 32bit 13423# types, and define HAVE_GCC__SYNC_INT32_CAS if so. 13424# PGAC_HAVE_GCC__SYNC_INT32_CAS 13425 13426# PGAC_HAVE_GCC__SYNC_INT64_CAS 13427# ------------------------- 13428# Check if the C compiler understands __sync_compare_and_swap() for 64bit 13429# types, and define HAVE_GCC__SYNC_INT64_CAS if so. 13430# PGAC_HAVE_GCC__SYNC_INT64_CAS 13431 13432# PGAC_HAVE_GCC__ATOMIC_INT32_CAS 13433# ------------------------- 13434# Check if the C compiler understands __atomic_compare_exchange_n() for 32bit 13435# types, and define HAVE_GCC__ATOMIC_INT32_CAS if so. 13436# PGAC_HAVE_GCC__ATOMIC_INT32_CAS 13437 13438# PGAC_HAVE_GCC__ATOMIC_INT64_CAS 13439# ------------------------- 13440# Check if the C compiler understands __atomic_compare_exchange_n() for 64bit 13441# types, and define HAVE_GCC__ATOMIC_INT64_CAS if so. 13442# PGAC_HAVE_GCC__ATOMIC_INT64_CAS 13443 13444# PGAC_SSE42_CRC32_INTRINSICS 13445# ----------------------- 13446# Check if the compiler supports the x86 CRC instructions added in SSE 4.2, 13447# using the _mm_crc32_u8 and _mm_crc32_u32 intrinsic functions. (We don't 13448# test the 8-byte variant, _mm_crc32_u64, but it is assumed to be present if 13449# the other ones are, on x86-64 platforms) 13450# 13451# An optional compiler flag can be passed as argument (e.g. -msse4.2). If the 13452# intrinsics are supported, sets pgac_sse42_crc32_intrinsics, and CFLAGS_SSE42. 13453# PGAC_SSE42_CRC32_INTRINSICS 13454 13455 13456# PGAC_ARMV8_CRC32C_INTRINSICS 13457# ----------------------- 13458# Check if the compiler supports the CRC32C instructions using the __crc32cb, 13459# __crc32ch, __crc32cw, and __crc32cd intrinsic functions. These instructions 13460# were first introduced in ARMv8 in the optional CRC Extension, and became 13461# mandatory in ARMv8.1. 13462# 13463# An optional compiler flag can be passed as argument (e.g. 13464# -march=armv8-a+crc). If the intrinsics are supported, sets 13465# pgac_armv8_crc32c_intrinsics, and CFLAGS_ARMV8_CRC32C. 13466# PGAC_ARMV8_CRC32C_INTRINSICS 13467 13468# Macros that test various C library quirks 13469# $PostgreSQL: pgsql/config/c-library.m4,v 1.33 2008/08/21 13:53:28 petere Exp $ 13470 13471 13472# PGAC_VAR_INT_TIMEZONE 13473# --------------------- 13474# Check if the global variable `timezone' exists. If so, define 13475# HAVE_INT_TIMEZONE. 13476# PGAC_VAR_INT_TIMEZONE 13477 13478 13479# PGAC_STRUCT_TIMEZONE 13480# ------------------ 13481# Figure out how to get the current timezone. If `struct tm' has a 13482# `tm_zone' member, define `HAVE_TM_ZONE'. Also, if the 13483# external array `tzname' is found, define `HAVE_TZNAME'. 13484# This is the same as the standard macro AC_STRUCT_TIMEZONE, except that 13485# tzname[] is checked for regardless of whether we find tm_zone. 13486# PGAC_STRUCT_TIMEZONE 13487 13488 13489# PGAC_FUNC_GETTIMEOFDAY_1ARG 13490# --------------------------- 13491# Check if gettimeofday() has only one arguments. (Normal is two.) 13492# If so, define GETTIMEOFDAY_1ARG. 13493# PGAC_FUNC_GETTIMEOFDAY_1ARG 13494 13495 13496# PGAC_FUNC_GETPWUID_R_5ARG 13497# --------------------------- 13498# Check if getpwuid_r() takes a fifth argument (later POSIX standard, not draft version) 13499# If so, define GETPWUID_R_5ARG 13500# PGAC_FUNC_GETPWUID_R_5ARG 13501 13502 13503# PGAC_FUNC_STRERROR_R_INT 13504# --------------------------- 13505# Check if strerror_r() returns an int (SUSv3) rather than a char * (GNU libc) 13506# If so, define STRERROR_R_INT 13507# PGAC_FUNC_STRERROR_R_INT 13508 13509 13510# PGAC_UNION_SEMUN 13511# ---------------- 13512# Check if `union semun' exists. Define HAVE_UNION_SEMUN if so. 13513# If it doesn't then one could define it as 13514# union semun { int val; struct semid_ds *buf; unsigned short *array; } 13515# PGAC_UNION_SEMUN 13516 13517 13518# PGAC_STRUCT_SOCKADDR_UN 13519# ----------------------- 13520# If `struct sockaddr_un' exists, define HAVE_UNIX_SOCKETS. 13521# (Requires test for <sys/un.h>!) 13522# PGAC_STRUCT_SOCKADDR_UN 13523 13524 13525# PGAC_STRUCT_SOCKADDR_STORAGE 13526# ---------------------------- 13527# If `struct sockaddr_storage' exists, define HAVE_STRUCT_SOCKADDR_STORAGE. 13528# If it is missing then one could define it. 13529# PGAC_STRUCT_SOCKADDR_STORAGE 13530 13531# PGAC_STRUCT_SOCKADDR_STORAGE_MEMBERS 13532# -------------------------------------- 13533# Check the members of `struct sockaddr_storage'. We need to know about 13534# ss_family and ss_len. (Some platforms follow RFC 2553 and call them 13535# __ss_family and __ss_len.) We also check struct sockaddr's sa_len; 13536# if we have to define our own `struct sockaddr_storage', this tells us 13537# whether we need to provide an ss_len field. 13538# PGAC_STRUCT_SOCKADDR_STORAGE_MEMBERS 13539 13540 13541# PGAC_STRUCT_ADDRINFO 13542# ----------------------- 13543# If `struct addrinfo' exists, define HAVE_STRUCT_ADDRINFO. 13544# PGAC_STRUCT_ADDRINFO 13545 13546 13547# PGAC_FUNC_POSIX_SIGNALS 13548# ----------------------- 13549# Check to see if the machine has the POSIX signal interface. Define 13550# HAVE_POSIX_SIGNALS if so. Also set the output variable HAVE_POSIX_SIGNALS 13551# to yes or no. 13552# 13553# Note that this test only compiles a test program, it doesn't check 13554# whether the routines actually work. If that becomes a problem, make 13555# a fancier check. 13556# PGAC_FUNC_POSIX_SIGNALS 13557 13558 13559# PGAC_FUNC_SNPRINTF_LONG_LONG_INT_FORMAT 13560# --------------------------------------- 13561# Determine which format snprintf uses for long long int. We handle 13562# %lld, %qd, %I64d. The result is in shell variable 13563# LONG_LONG_INT_FORMAT. 13564# 13565# MinGW uses '%I64d', though gcc throws an warning with -Wall, 13566# while '%lld' doesn't generate a warning, but doesn't work. 13567# 13568# PGAC_FUNC_SNPRINTF_LONG_LONG_INT_FORMAT 13569 13570 13571# PGAC_FUNC_PRINTF_ARG_CONTROL 13572# --------------------------------------- 13573# Determine if printf supports %1$ argument selection, e.g. %5$ selects 13574# the fifth argument after the printf print string. 13575# This is not in the C99 standard, but in the Single Unix Specification (SUS). 13576# It is used in our language translation strings. 13577# 13578# PGAC_FUNC_PRINTF_ARG_CONTROL 13579 13580 13581# backport from Autoconf 2.61a 13582# http://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=commitdiff;h=f0c325537a22105536ac8c4e88656e50f9946486 13583 13584# AC_FUNC_FSEEKO 13585# -------------- 13586 13587 13588# AC_FUNC_FSEEKO 13589 13590# $PostgreSQL: pgsql/config/general.m4,v 1.10 2008/10/29 09:27:24 petere Exp $ 13591 13592# This file defines new macros to process configure command line 13593# arguments, to replace the brain-dead AC_ARG_WITH and AC_ARG_ENABLE. 13594# The flaw in these is particularly that they only differentiate 13595# between "given" and "not given" and do not provide enough help to 13596# process arguments that only accept "yes/no", that require an 13597# argument (other than "yes/no"), etc. 13598# 13599# The point of this implementation is to reduce code size and 13600# redundancy in configure.in and to improve robustness and consistency 13601# in the option evaluation code. 13602 13603 13604# Convert type and name to shell variable name (e.g., "enable_long_strings") 13605 13606 13607 13608# PGAC_ARG(TYPE, NAME, HELP-STRING-LHS-EXTRA, HELP-STRING-RHS, 13609# [ACTION-IF-YES], [ACTION-IF-NO], [ACTION-IF-ARG], 13610# [ACTION-IF-OMITTED]) 13611# ------------------------------------------------------------ 13612# This is the base layer. TYPE is either "with" or "enable", depending 13613# on what you like. NAME is the rest of the option name. 13614# HELP-STRING-LHS-EXTRA is a string to append to the option name on 13615# the left-hand side of the help output, e.g., an argument name. If 13616# set to "-", append nothing, but let the option appear in the 13617# negative form (disable/without). HELP-STRING-RHS is the option 13618# description, for the right-hand side of the help output. 13619# ACTION-IF-YES is executed if the option is given without an argument 13620# (or "yes", which is the same); similar for ACTION-IF-NO. 13621 13622# PGAC_ARG 13623 13624# PGAC_ARG_CHECK() 13625# ---------------- 13626# Checks if the user passed any --with/without/enable/disable 13627# arguments that were not defined. Just prints out a warning message, 13628# so this should be called near the end, so the user will see it. 13629 13630# PGAC_ARG_CHECK 13631 13632# PGAC_ARG_BOOL(TYPE, NAME, DEFAULT, HELP-STRING-RHS, 13633# [ACTION-IF-YES], [ACTION-IF-NO]) 13634# --------------------------------------------------- 13635# Accept a boolean option, that is, one that only takes yes or no. 13636# ("no" is equivalent to "disable" or "without"). DEFAULT is what 13637# should be done if the option is omitted; it should be "yes" or "no". 13638# (Consequently, one of ACTION-IF-YES and ACTION-IF-NO will always 13639# execute.) 13640 13641# PGAC_ARG_BOOL 13642 13643 13644# PGAC_ARG_REQ(TYPE, NAME, HELP-ARGNAME, HELP-STRING-RHS, 13645# [ACTION-IF-GIVEN], [ACTION-IF-NOT-GIVEN]) 13646# ------------------------------------------------------- 13647# This option will require an argument; "yes" or "no" will not be 13648# accepted. HELP-ARGNAME is a name for the argument for the help output. 13649 13650# PGAC_ARG_REQ 13651 13652 13653# PGAC_ARG_OPTARG(TYPE, NAME, HELP-ARGNAME, HELP-STRING-RHS, 13654# [DEFAULT-ACTION], [ARG-ACTION], 13655# [ACTION-ENABLED], [ACTION-DISABLED]) 13656# ---------------------------------------------------------- 13657# This will create an option that behaves as follows: If omitted, or 13658# called with "no", then set the enable_variable to "no" and do 13659# nothing else. If called with "yes", then execute DEFAULT-ACTION. If 13660# called with argument, set enable_variable to "yes" and execute 13661# ARG-ACTION. Additionally, execute ACTION-ENABLED if we ended up with 13662# "yes" either way, else ACTION-DISABLED. 13663# 13664# The intent is to allow enabling a feature, and optionally pass an 13665# additional piece of information. 13666 13667# PGAC_ARG_OPTARG 13668 13669 13670pgac_need_repl_snprintf=no 13671for ac_func in snprintf 13672do : 13673 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" 13674if test "x$ac_cv_func_snprintf" = xyes; then : 13675 cat >>confdefs.h <<_ACEOF 13676#define HAVE_SNPRINTF 1 13677_ACEOF 13678 13679else 13680 pgac_need_repl_snprintf=yes 13681fi 13682done 13683 13684for ac_func in vsnprintf 13685do : 13686 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf" 13687if test "x$ac_cv_func_vsnprintf" = xyes; then : 13688 cat >>confdefs.h <<_ACEOF 13689#define HAVE_VSNPRINTF 1 13690_ACEOF 13691 13692else 13693 pgac_need_repl_snprintf=yes 13694fi 13695done 13696 13697 13698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long int is 64 bits" >&5 13699$as_echo_n "checking whether long int is 64 bits... " >&6; } 13700if ${pgac_cv_type_long_int_64+:} false; then : 13701 $as_echo_n "(cached) " >&6 13702else 13703 if test "$cross_compiling" = yes; then : 13704 # If cross-compiling, check the size reported by the compiler and 13705# trust that the arithmetic works. 13706cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13707/* end confdefs.h. */ 13708 13709int 13710main () 13711{ 13712static int test_array [1 - 2 * !(sizeof(long int) == 8)]; 13713test_array [0] = 0; 13714return test_array [0]; 13715 13716 ; 13717 return 0; 13718} 13719_ACEOF 13720if ac_fn_c_try_compile "$LINENO"; then : 13721 pgac_cv_type_long_int_64=yes 13722else 13723 pgac_cv_type_long_int_64=no 13724fi 13725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13726else 13727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13728/* end confdefs.h. */ 13729typedef long int ac_int64; 13730 13731/* 13732 * These are globals to discourage the compiler from folding all the 13733 * arithmetic tests down to compile-time constants. 13734 */ 13735ac_int64 a = 20000001; 13736ac_int64 b = 40000005; 13737 13738int does_int64_work() 13739{ 13740 ac_int64 c,d; 13741 13742 if (sizeof(ac_int64) != 8) 13743 return 0; /* definitely not the right size */ 13744 13745 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */ 13746 c = a * b; 13747 d = (c + b) / b; 13748 if (d != a+1) 13749 return 0; 13750 return 1; 13751} 13752 13753int 13754main() { 13755 return (! does_int64_work()); 13756} 13757_ACEOF 13758if ac_fn_c_try_run "$LINENO"; then : 13759 pgac_cv_type_long_int_64=yes 13760else 13761 pgac_cv_type_long_int_64=no 13762fi 13763rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13764 conftest.$ac_objext conftest.beam conftest.$ac_ext 13765fi 13766 13767fi 13768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_long_int_64" >&5 13769$as_echo "$pgac_cv_type_long_int_64" >&6; } 13770 13771HAVE_LONG_INT_64=$pgac_cv_type_long_int_64 13772if test x"$pgac_cv_type_long_int_64" = xyes ; then 13773 13774$as_echo "#define HAVE_LONG_INT_64 1" >>confdefs.h 13775 13776fi 13777 13778 13779if test x"$HAVE_LONG_INT_64" = x"no" ; then 13780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long long int is 64 bits" >&5 13781$as_echo_n "checking whether long long int is 64 bits... " >&6; } 13782if ${pgac_cv_type_long_long_int_64+:} false; then : 13783 $as_echo_n "(cached) " >&6 13784else 13785 if test "$cross_compiling" = yes; then : 13786 # If cross-compiling, check the size reported by the compiler and 13787# trust that the arithmetic works. 13788cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13789/* end confdefs.h. */ 13790 13791int 13792main () 13793{ 13794static int test_array [1 - 2 * !(sizeof(long long int) == 8)]; 13795test_array [0] = 0; 13796return test_array [0]; 13797 13798 ; 13799 return 0; 13800} 13801_ACEOF 13802if ac_fn_c_try_compile "$LINENO"; then : 13803 pgac_cv_type_long_long_int_64=yes 13804else 13805 pgac_cv_type_long_long_int_64=no 13806fi 13807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13808else 13809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13810/* end confdefs.h. */ 13811typedef long long int ac_int64; 13812 13813/* 13814 * These are globals to discourage the compiler from folding all the 13815 * arithmetic tests down to compile-time constants. 13816 */ 13817ac_int64 a = 20000001; 13818ac_int64 b = 40000005; 13819 13820int does_int64_work() 13821{ 13822 ac_int64 c,d; 13823 13824 if (sizeof(ac_int64) != 8) 13825 return 0; /* definitely not the right size */ 13826 13827 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */ 13828 c = a * b; 13829 d = (c + b) / b; 13830 if (d != a+1) 13831 return 0; 13832 return 1; 13833} 13834 13835int 13836main() { 13837 return (! does_int64_work()); 13838} 13839_ACEOF 13840if ac_fn_c_try_run "$LINENO"; then : 13841 pgac_cv_type_long_long_int_64=yes 13842else 13843 pgac_cv_type_long_long_int_64=no 13844fi 13845rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13846 conftest.$ac_objext conftest.beam conftest.$ac_ext 13847fi 13848 13849fi 13850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_type_long_long_int_64" >&5 13851$as_echo "$pgac_cv_type_long_long_int_64" >&6; } 13852 13853HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64 13854if test x"$pgac_cv_type_long_long_int_64" = xyes ; then 13855 13856$as_echo "#define HAVE_LONG_LONG_INT_64 1" >>confdefs.h 13857 13858fi 13859 13860fi 13861 13862 13863if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then 13864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13865/* end confdefs.h. */ 13866 13867#define INT64CONST(x) x##LL 13868long long int foo = INT64CONST(0x1234567890123456); 13869 13870int 13871main () 13872{ 13873 13874 ; 13875 return 0; 13876} 13877_ACEOF 13878if ac_fn_c_try_compile "$LINENO"; then : 13879 13880$as_echo "#define HAVE_LL_CONSTANTS 1" >>confdefs.h 13881 13882fi 13883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13884fi 13885 13886# If we found "long int" is 64 bits, assume snprintf handles it. If 13887# we found we need to use "long long int", better check. We cope with 13888# snprintfs that use %lld, %qd, or %I64d as the format. If none of these 13889# work, fall back to our own snprintf emulation (which we know uses %lld). 13890 13891if test "$HAVE_LONG_LONG_INT_64" = yes ; then 13892 if test $pgac_need_repl_snprintf = no; then 13893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking snprintf format for long long int" >&5 13894$as_echo_n "checking snprintf format for long long int... " >&6; } 13895if ${pgac_cv_snprintf_long_long_int_format+:} false; then : 13896 $as_echo_n "(cached) " >&6 13897else 13898 for pgac_format in '%lld' '%qd' '%I64d'; do 13899if test "$cross_compiling" = yes; then : 13900 pgac_cv_snprintf_long_long_int_format=cross; break 13901else 13902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13903/* end confdefs.h. */ 13904#include <stdio.h> 13905typedef long long int ac_int64; 13906#define INT64_FORMAT "$pgac_format" 13907 13908ac_int64 a = 20000001; 13909ac_int64 b = 40000005; 13910 13911int does_int64_snprintf_work() 13912{ 13913 ac_int64 c; 13914 char buf[100]; 13915 13916 if (sizeof(ac_int64) != 8) 13917 return 0; /* doesn't look like the right size */ 13918 13919 c = a * b; 13920 snprintf(buf, 100, INT64_FORMAT, c); 13921 if (strcmp(buf, "800000140000005") != 0) 13922 return 0; /* either multiply or snprintf is busted */ 13923 return 1; 13924} 13925main() { 13926 exit(! does_int64_snprintf_work()); 13927} 13928_ACEOF 13929if ac_fn_c_try_run "$LINENO"; then : 13930 pgac_cv_snprintf_long_long_int_format=$pgac_format; break 13931fi 13932rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13933 conftest.$ac_objext conftest.beam conftest.$ac_ext 13934fi 13935 13936done 13937fi 13938 13939LONG_LONG_INT_FORMAT='' 13940 13941case $pgac_cv_snprintf_long_long_int_format in 13942 cross) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test (not on host machine)" >&5 13943$as_echo "cannot test (not on host machine)" >&6; };; 13944 ?*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_snprintf_long_long_int_format" >&5 13945$as_echo "$pgac_cv_snprintf_long_long_int_format" >&6; } 13946 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;; 13947 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 13948$as_echo "none" >&6; };; 13949esac 13950 if test "$LONG_LONG_INT_FORMAT" = ""; then 13951 # Force usage of our own snprintf, since system snprintf is broken 13952 pgac_need_repl_snprintf=yes 13953 LONG_LONG_INT_FORMAT='%lld' 13954 fi 13955 else 13956 # Here if we previously decided we needed to use our own snprintf 13957 LONG_LONG_INT_FORMAT='%lld' 13958 fi 13959 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'` 13960 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\"" 13961 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\"" 13962else 13963 # Here if we are not using 'long long int' at all 13964 INT64_FORMAT='"%ld"' 13965 UINT64_FORMAT='"%lu"' 13966fi 13967 13968# disable useless truncation warnings from gcc 8+ 13969NOT_THE_CFLAGS="" 13970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Wformat-truncation, for NOT_THE_CFLAGS" >&5 13971$as_echo_n "checking whether ${CC} supports -Wformat-truncation, for NOT_THE_CFLAGS... " >&6; } 13972if ${pgac_cv_prog_CC_cflags__Wformat_truncation+:} false; then : 13973 $as_echo_n "(cached) " >&6 13974else 13975 pgac_save_CFLAGS=$CFLAGS 13976pgac_save_CC=$CC 13977CC=${CC} 13978CFLAGS="${NOT_THE_CFLAGS} -Wformat-truncation" 13979ac_save_c_werror_flag=$ac_c_werror_flag 13980ac_c_werror_flag=yes 13981cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13982/* end confdefs.h. */ 13983 13984int 13985main () 13986{ 13987 13988 ; 13989 return 0; 13990} 13991_ACEOF 13992if ac_fn_c_try_compile "$LINENO"; then : 13993 pgac_cv_prog_CC_cflags__Wformat_truncation=yes 13994else 13995 pgac_cv_prog_CC_cflags__Wformat_truncation=no 13996fi 13997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13998ac_c_werror_flag=$ac_save_c_werror_flag 13999CFLAGS="$pgac_save_CFLAGS" 14000CC="$pgac_save_CC" 14001fi 14002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_prog_CC_cflags__Wformat_truncation" >&5 14003$as_echo "$pgac_cv_prog_CC_cflags__Wformat_truncation" >&6; } 14004if test x"$pgac_cv_prog_CC_cflags__Wformat_truncation" = x"yes"; then 14005 NOT_THE_CFLAGS="${NOT_THE_CFLAGS} -Wformat-truncation" 14006fi 14007 14008 14009if test -n "$NOT_THE_CFLAGS"; then 14010 CFLAGS="$CFLAGS -Wno-format-truncation" 14011fi 14012 14013 14014cat >>confdefs.h <<_ACEOF 14015#define PACKAGE "$PACKAGE" 14016_ACEOF 14017 14018 14019 14020cat >>confdefs.h <<_ACEOF 14021#define VERSION "$VERSION" 14022_ACEOF 14023 14024 14025 14026cat >>confdefs.h <<_ACEOF 14027#define INT64_FORMAT $INT64_FORMAT 14028_ACEOF 14029 14030 14031 14032cat >>confdefs.h <<_ACEOF 14033#define UINT64_FORMAT $UINT64_FORMAT 14034_ACEOF 14035 14036 14037# Now we have checked all the reasons to replace snprintf 14038if test $pgac_need_repl_snprintf = yes; then 14039 14040$as_echo "#define USE_REPL_SNPRINTF 1" >>confdefs.h 14041 14042 case " $LIBOBJS " in 14043 *" snprintf.$ac_objext "* ) ;; 14044 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 14045 ;; 14046esac 14047 14048fi 14049 if test $pgac_need_repl_snprintf = yes; then 14050 use_repl_snprintf_TRUE= 14051 use_repl_snprintf_FALSE='#' 14052else 14053 use_repl_snprintf_TRUE='#' 14054 use_repl_snprintf_FALSE= 14055fi 14056 14057# Need a #define for the size of Datum (unsigned long) 14058# The cast to long int works around a bug in the HP C Compiler 14059# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14060# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14061# This bug is HP SR number 8606223364. 14062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 14063$as_echo_n "checking size of unsigned long... " >&6; } 14064if ${ac_cv_sizeof_unsigned_long+:} false; then : 14065 $as_echo_n "(cached) " >&6 14066else 14067 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then : 14068 14069else 14070 if test "$ac_cv_type_unsigned_long" = yes; then 14071 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14072$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14073as_fn_error 77 "cannot compute sizeof (unsigned long) 14074See \`config.log' for more details" "$LINENO" 5; } 14075 else 14076 ac_cv_sizeof_unsigned_long=0 14077 fi 14078fi 14079 14080fi 14081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 14082$as_echo "$ac_cv_sizeof_unsigned_long" >&6; } 14083 14084 14085 14086cat >>confdefs.h <<_ACEOF 14087#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long 14088_ACEOF 14089 14090 14091 14092# And check size of void *, size_t (enables tweaks for > 32bit address space) 14093# The cast to long int works around a bug in the HP C Compiler 14094# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14095# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14096# This bug is HP SR number 8606223364. 14097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 14098$as_echo_n "checking size of void *... " >&6; } 14099if ${ac_cv_sizeof_void_p+:} false; then : 14100 $as_echo_n "(cached) " >&6 14101else 14102 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 14103 14104else 14105 if test "$ac_cv_type_void_p" = yes; then 14106 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14107$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14108as_fn_error 77 "cannot compute sizeof (void *) 14109See \`config.log' for more details" "$LINENO" 5; } 14110 else 14111 ac_cv_sizeof_void_p=0 14112 fi 14113fi 14114 14115fi 14116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 14117$as_echo "$ac_cv_sizeof_void_p" >&6; } 14118 14119 14120 14121cat >>confdefs.h <<_ACEOF 14122#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 14123_ACEOF 14124 14125 14126# The cast to long int works around a bug in the HP C Compiler 14127# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14128# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14129# This bug is HP SR number 8606223364. 14130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 14131$as_echo_n "checking size of size_t... " >&6; } 14132if ${ac_cv_sizeof_size_t+:} false; then : 14133 $as_echo_n "(cached) " >&6 14134else 14135 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : 14136 14137else 14138 if test "$ac_cv_type_size_t" = yes; then 14139 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14140$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14141as_fn_error 77 "cannot compute sizeof (size_t) 14142See \`config.log' for more details" "$LINENO" 5; } 14143 else 14144 ac_cv_sizeof_size_t=0 14145 fi 14146fi 14147 14148fi 14149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 14150$as_echo "$ac_cv_sizeof_size_t" >&6; } 14151 14152 14153 14154cat >>confdefs.h <<_ACEOF 14155#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t 14156_ACEOF 14157 14158 14159 14160# Decide whether float4 is passed by value: user-selectable, enabled by default 14161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with float4 passed by value" >&5 14162$as_echo_n "checking whether to build with float4 passed by value... " >&6; } 14163 14164pgac_args="$pgac_args enable_float4_byval" 14165 14166# Check whether --enable-float4-byval was given. 14167if test "${enable_float4_byval+set}" = set; then : 14168 enableval=$enable_float4_byval; 14169 case $enableval in 14170 yes) 14171 14172$as_echo "#define USE_FLOAT4_BYVAL 1" >>confdefs.h 14173 14174 float4passbyval=true 14175 ;; 14176 no) 14177 float4passbyval=false 14178 ;; 14179 *) 14180 as_fn_error $? "no argument expected for --enable-float4-byval option" "$LINENO" 5 14181 ;; 14182 esac 14183 14184else 14185 enable_float4_byval=yes 14186 14187$as_echo "#define USE_FLOAT4_BYVAL 1" >>confdefs.h 14188 14189 float4passbyval=true 14190fi 14191 14192 14193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_float4_byval" >&5 14194$as_echo "$enable_float4_byval" >&6; } 14195 14196cat >>confdefs.h <<_ACEOF 14197#define FLOAT4PASSBYVAL $float4passbyval 14198_ACEOF 14199 14200 14201# Decide whether float8 is passed by value. 14202# Note: this setting also controls int8 and related types such as timestamp. 14203# If sizeof(Datum) >= 8, this is user-selectable, enabled by default. 14204# If not, trying to select it is an error. 14205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with float8 passed by value" >&5 14206$as_echo_n "checking whether to build with float8 passed by value... " >&6; } 14207if test $ac_cv_sizeof_unsigned_long -ge 8 ; then 14208 14209pgac_args="$pgac_args enable_float8_byval" 14210 14211# Check whether --enable-float8-byval was given. 14212if test "${enable_float8_byval+set}" = set; then : 14213 enableval=$enable_float8_byval; 14214 case $enableval in 14215 yes) 14216 : 14217 ;; 14218 no) 14219 : 14220 ;; 14221 *) 14222 as_fn_error $? "no argument expected for --enable-float8-byval option" "$LINENO" 5 14223 ;; 14224 esac 14225 14226else 14227 enable_float8_byval=yes 14228 14229fi 14230 14231 14232else 14233 14234pgac_args="$pgac_args enable_float8_byval" 14235 14236# Check whether --enable-float8-byval was given. 14237if test "${enable_float8_byval+set}" = set; then : 14238 enableval=$enable_float8_byval; 14239 case $enableval in 14240 yes) 14241 : 14242 ;; 14243 no) 14244 : 14245 ;; 14246 *) 14247 as_fn_error $? "no argument expected for --enable-float8-byval option" "$LINENO" 5 14248 ;; 14249 esac 14250 14251else 14252 enable_float8_byval=no 14253 14254fi 14255 14256 14257 if test "$enable_float8_byval" = yes ; then 14258 as_fn_error $? "--enable-float8-byval is not supported on 32-bit platforms." "$LINENO" 5 14259 fi 14260fi 14261if test "$enable_float8_byval" = yes ; then 14262 14263$as_echo "#define USE_FLOAT8_BYVAL 1" >>confdefs.h 14264 14265 float8passbyval=true 14266else 14267 float8passbyval=false 14268fi 14269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_float8_byval" >&5 14270$as_echo "$enable_float8_byval" >&6; } 14271 14272cat >>confdefs.h <<_ACEOF 14273#define FLOAT8PASSBYVAL $float8passbyval 14274_ACEOF 14275 14276 14277 14278 14279 14280# $PostgreSQL: pgsql/config/ac_func_accept_argtypes.m4,v 1.6 2003/11/29 19:51:17 pgsql Exp $ 14281# This comes from the official Autoconf macro archive at 14282# <http://research.cys.de/autoconf-archive/> 14283# (I removed the $ before the Id CVS keyword below.) 14284 14285 14286 14287# PostgreSQL local changes: In the original version ACCEPT_TYPE_ARG3 14288# is a pointer type. That's kind of useless because then you can't 14289# use the macro to define a corresponding variable. We also make the 14290# reasonable(?) assumption that you can use arg3 for getsocktype etc. 14291# as well (i.e., anywhere POSIX.2 has socklen_t). 14292# 14293# arg2 can also be `const' (e.g., RH 4.2). Change the order of tests 14294# for arg3 so that `int' is first, in case there is no prototype at all. 14295# 14296# Solaris 7 and 8 have arg3 as 'void *' (disguised as 'Psocklen_t' 14297# which is *not* 'socklen_t *'). If we detect that, then we assume 14298# 'int' as the result, because that ought to work best. 14299# 14300# On Win32, accept() returns 'unsigned int PASCAL' 14301 14302 14303 14304ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h> 14305#ifdef HAVE_SYS_SOCKET_H 14306#include <sys/socket.h> 14307#endif 14308 14309" 14310if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then : 14311 14312cat >>confdefs.h <<_ACEOF 14313#define HAVE_STRUCT_SOCKADDR_STORAGE 1 14314_ACEOF 14315 14316 14317fi 14318 14319ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h> 14320#ifdef HAVE_SYS_SOCKET_H 14321#include <sys/socket.h> 14322#endif 14323 14324" 14325if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then : 14326 14327cat >>confdefs.h <<_ACEOF 14328#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1 14329_ACEOF 14330 14331 14332fi 14333ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "#include <sys/types.h> 14334#ifdef HAVE_SYS_SOCKET_H 14335#include <sys/socket.h> 14336#endif 14337 14338" 14339if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then : 14340 14341cat >>confdefs.h <<_ACEOF 14342#define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1 14343_ACEOF 14344 14345 14346fi 14347ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_len" "ac_cv_member_struct_sockaddr_storage_ss_len" "#include <sys/types.h> 14348#ifdef HAVE_SYS_SOCKET_H 14349#include <sys/socket.h> 14350#endif 14351 14352" 14353if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = xyes; then : 14354 14355cat >>confdefs.h <<_ACEOF 14356#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1 14357_ACEOF 14358 14359 14360fi 14361ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_len" "ac_cv_member_struct_sockaddr_storage___ss_len" "#include <sys/types.h> 14362#ifdef HAVE_SYS_SOCKET_H 14363#include <sys/socket.h> 14364#endif 14365 14366" 14367if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = xyes; then : 14368 14369cat >>confdefs.h <<_ACEOF 14370#define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1 14371_ACEOF 14372 14373 14374fi 14375ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h> 14376#ifdef HAVE_SYS_SOCKET_H 14377#include <sys/socket.h> 14378#endif 14379 14380" 14381if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then : 14382 14383cat >>confdefs.h <<_ACEOF 14384#define HAVE_STRUCT_SOCKADDR_SA_LEN 1 14385_ACEOF 14386 14387 14388fi 14389 14390 14391ac_fn_c_check_type "$LINENO" "union semun" "ac_cv_type_union_semun" "#include <sys/types.h> 14392#include <sys/ipc.h> 14393#include <sys/sem.h> 14394" 14395if test "x$ac_cv_type_union_semun" = xyes; then : 14396 14397cat >>confdefs.h <<_ACEOF 14398#define HAVE_UNION_SEMUN 1 14399_ACEOF 14400 14401 14402fi 14403 14404 14405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 14406$as_echo_n "checking return type of signal handlers... " >&6; } 14407if ${ac_cv_type_signal+:} false; then : 14408 $as_echo_n "(cached) " >&6 14409else 14410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14411/* end confdefs.h. */ 14412#include <sys/types.h> 14413#include <signal.h> 14414 14415int 14416main () 14417{ 14418return *(signal (0, 0)) (0) == 1; 14419 ; 14420 return 0; 14421} 14422_ACEOF 14423if ac_fn_c_try_compile "$LINENO"; then : 14424 ac_cv_type_signal=int 14425else 14426 ac_cv_type_signal=void 14427fi 14428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14429fi 14430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 14431$as_echo "$ac_cv_type_signal" >&6; } 14432 14433cat >>confdefs.h <<_ACEOF 14434#define RETSIGTYPE $ac_cv_type_signal 14435_ACEOF 14436 14437 14438for ac_func in vprintf 14439do : 14440 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" 14441if test "x$ac_cv_func_vprintf" = xyes; then : 14442 cat >>confdefs.h <<_ACEOF 14443#define HAVE_VPRINTF 1 14444_ACEOF 14445 14446ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" 14447if test "x$ac_cv_func__doprnt" = xyes; then : 14448 14449$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h 14450 14451fi 14452 14453fi 14454done 14455 14456 14457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wait3 that fills in rusage" >&5 14458$as_echo_n "checking for wait3 that fills in rusage... " >&6; } 14459if ${ac_cv_func_wait3_rusage+:} false; then : 14460 $as_echo_n "(cached) " >&6 14461else 14462 if test "$cross_compiling" = yes; then : 14463 ac_cv_func_wait3_rusage=no 14464else 14465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14466/* end confdefs.h. */ 14467$ac_includes_default 14468#include <sys/time.h> 14469#include <sys/resource.h> 14470#include <sys/wait.h> 14471/* HP-UX has wait3 but does not fill in rusage at all. */ 14472int 14473main () 14474{ 14475 struct rusage r; 14476 int i; 14477 /* Use a field that we can force nonzero -- 14478 voluntary context switches. 14479 For systems like NeXT and OSF/1 that don't set it, 14480 also use the system CPU time. And page faults (I/O) for Linux. */ 14481 r.ru_nvcsw = 0; 14482 r.ru_stime.tv_sec = 0; 14483 r.ru_stime.tv_usec = 0; 14484 r.ru_majflt = r.ru_minflt = 0; 14485 switch (fork ()) 14486 { 14487 case 0: /* Child. */ 14488 sleep(1); /* Give up the CPU. */ 14489 _exit(0); 14490 break; 14491 case -1: /* What can we do? */ 14492 _exit(0); 14493 break; 14494 default: /* Parent. */ 14495 wait3(&i, 0, &r); 14496 /* Avoid "text file busy" from rm on fast HP-UX machines. */ 14497 sleep(2); 14498 return (r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0 14499 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0); 14500 } 14501} 14502_ACEOF 14503if ac_fn_c_try_run "$LINENO"; then : 14504 ac_cv_func_wait3_rusage=yes 14505else 14506 ac_cv_func_wait3_rusage=no 14507fi 14508rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14509 conftest.$ac_objext conftest.beam conftest.$ac_ext 14510fi 14511 14512fi 14513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_wait3_rusage" >&5 14514$as_echo "$ac_cv_func_wait3_rusage" >&6; } 14515if test $ac_cv_func_wait3_rusage = yes; then 14516 14517$as_echo "#define HAVE_WAIT3 1" >>confdefs.h 14518 14519fi 14520 14521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for accept()" >&5 14522$as_echo_n "checking types of arguments for accept()... " >&6; } 14523 if ${ac_cv_func_accept_return+:} false; then : 14524 $as_echo_n "(cached) " >&6 14525else 14526 if ${ac_cv_func_accept_arg1+:} false; then : 14527 $as_echo_n "(cached) " >&6 14528else 14529 if ${ac_cv_func_accept_arg2+:} false; then : 14530 $as_echo_n "(cached) " >&6 14531else 14532 if ${ac_cv_func_accept_arg3+:} false; then : 14533 $as_echo_n "(cached) " >&6 14534else 14535 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do 14536 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do 14537 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do 14538 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do 14539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14540/* end confdefs.h. */ 14541#ifdef HAVE_SYS_TYPES_H 14542#include <sys/types.h> 14543#endif 14544#ifdef HAVE_SYS_SOCKET_H 14545#include <sys/socket.h> 14546#endif 14547extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *); 14548int 14549main () 14550{ 14551 14552 ; 14553 return 0; 14554} 14555_ACEOF 14556if ac_fn_c_try_compile "$LINENO"; then : 14557 ac_not_found=no; break 4 14558else 14559 ac_not_found=yes 14560fi 14561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14562 done 14563 done 14564 done 14565 done 14566 if test "$ac_not_found" = yes; then 14567 as_fn_error $? "could not determine argument types" "$LINENO" 5 14568 fi 14569 if test "$ac_cv_func_accept_arg3" = "void"; then 14570 ac_cv_func_accept_arg3=int 14571 fi 14572 14573fi 14574 14575fi 14576 14577fi 14578 14579fi 14580 { $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 14581$as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; } 14582 14583cat >>confdefs.h <<_ACEOF 14584#define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return 14585_ACEOF 14586 14587 14588cat >>confdefs.h <<_ACEOF 14589#define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1 14590_ACEOF 14591 14592 14593cat >>confdefs.h <<_ACEOF 14594#define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2 14595_ACEOF 14596 14597 14598cat >>confdefs.h <<_ACEOF 14599#define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3 14600_ACEOF 14601 14602 14603for ac_func in setsid select socket sigprocmask strdup strerror strftime strtok asprintf vasprintf gai_strerror hstrerror pstat setproctitle syslog 14604do : 14605 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14606ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14607if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14608 cat >>confdefs.h <<_ACEOF 14609#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14610_ACEOF 14611 14612fi 14613done 14614 14615 14616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_types_compatible_p" >&5 14617$as_echo_n "checking for __builtin_types_compatible_p... " >&6; } 14618if ${pgac_cv__types_compatible+:} false; then : 14619 $as_echo_n "(cached) " >&6 14620else 14621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14622/* end confdefs.h. */ 14623 14624int 14625main () 14626{ 14627 int x; static int y[__builtin_types_compatible_p(__typeof__(x), int)]; 14628 ; 14629 return 0; 14630} 14631_ACEOF 14632if ac_fn_c_try_compile "$LINENO"; then : 14633 pgac_cv__types_compatible=yes 14634else 14635 pgac_cv__types_compatible=no 14636fi 14637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14638fi 14639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__types_compatible" >&5 14640$as_echo "$pgac_cv__types_compatible" >&6; } 14641if test x"$pgac_cv__types_compatible" = xyes ; then 14642 14643$as_echo "#define HAVE__BUILTIN_TYPES_COMPATIBLE_P 1" >>confdefs.h 14644 14645fi 14646 14647for ac_prog in pg_config 14648do 14649 # Extract the first word of "$ac_prog", so it can be a program name with args. 14650set dummy $ac_prog; ac_word=$2 14651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14652$as_echo_n "checking for $ac_word... " >&6; } 14653if ${ac_cv_prog_PGCONFIG+:} false; then : 14654 $as_echo_n "(cached) " >&6 14655else 14656 if test -n "$PGCONFIG"; then 14657 ac_cv_prog_PGCONFIG="$PGCONFIG" # Let the user override the test. 14658else 14659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14660for as_dir in $PATH 14661do 14662 IFS=$as_save_IFS 14663 test -z "$as_dir" && as_dir=. 14664 for ac_exec_ext in '' $ac_executable_extensions; do 14665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14666 ac_cv_prog_PGCONFIG="$ac_prog" 14667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14668 break 2 14669 fi 14670done 14671 done 14672IFS=$as_save_IFS 14673 14674fi 14675fi 14676PGCONFIG=$ac_cv_prog_PGCONFIG 14677if test -n "$PGCONFIG"; then 14678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGCONFIG" >&5 14679$as_echo "$PGCONFIG" >&6; } 14680else 14681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14682$as_echo "no" >&6; } 14683fi 14684 14685 14686 test -n "$PGCONFIG" && break 14687done 14688 14689 14690if test -z $PGCONFIG 14691then 14692 PGSQL_INCLUDE_DIR=/usr/local/pgsql/include 14693 PGSQL_LIB_DIR=/usr/local/pgsql/lib 14694 PGSQL_BIN_DIR=/usr/local/pgsql/bin 14695else 14696 PGSQL_INCLUDE_DIR=`pg_config --includedir` 14697 PGSQL_LIB_DIR=`pg_config --libdir` 14698 PGSQL_BIN_DIR=`pg_config --bindir` 14699fi 14700 14701 14702# Check whether --with-pgsql was given. 14703if test "${with_pgsql+set}" = set; then : 14704 withval=$with_pgsql; 14705 case "$withval" in 14706 "" | y | ye | yes | n | no) 14707 as_fn_error $? "*** You must supply an argument to the --with-pgsql option." "$LINENO" 5 14708 ;; 14709 esac 14710 PGSQL_INCLUDE_DIR="$withval"/include 14711 PGSQL_LIB_DIR="$withval"/lib 14712 PGSQL_BIN_DIR="$withval"/bin 14713 14714fi 14715 14716 14717 14718# Check whether --with-pgsql-includedir was given. 14719if test "${with_pgsql_includedir+set}" = set; then : 14720 withval=$with_pgsql_includedir; 14721 case "$withval" in 14722 "" | y | ye | yes | n | no) 14723 as_fn_error $? "*** You must supply an argument to the --with-pgsql-includedir option." "$LINENO" 5 14724 ;; 14725 esac 14726 PGSQL_INCLUDE_DIR="$withval" 14727 14728fi 14729 14730 14731 14732# Check whether --with-pgsql-libdir was given. 14733if test "${with_pgsql_libdir+set}" = set; then : 14734 withval=$with_pgsql_libdir; 14735 case "$withval" in 14736 "" | y | ye | yes | n | no) 14737 as_fn_error $? "*** You must supply an argument to the --with-pgsql-libdir option." "$LINENO" 5 14738 ;; 14739 esac 14740 PGSQL_LIB_DIR="$withval" 14741 14742fi 14743 14744 14745 14746# Check whether --with-pgsql-bindir was given. 14747if test "${with_pgsql_bindir+set}" = set; then : 14748 withval=$with_pgsql_bindir; 14749 case "$withval" in 14750 "" | y | ye | yes | n | no) 14751 as_fn_error $? "*** You must supply an argument to the --with-pgsql-bindir option." "$LINENO" 5 14752 ;; 14753 esac 14754 PGSQL_BIN_DIR="$withval" 14755 14756fi 14757 14758 14759 14760# Check whether --with-sunifdef was given. 14761if test "${with_sunifdef+set}" = set; then : 14762 withval=$with_sunifdef; 14763 case "$withval" in 14764 "" | y | ye | yes | n | no) 14765 as_fn_error $? "*** You must supply an argument to the --with-sunifdef option." "$LINENO" 5 14766 ;; 14767 esac 14768 SUNIFDEF="$withval"/sunifdef 14769 14770fi 14771 14772 14773 14774# Check whether --with-openssl was given. 14775if test "${with_openssl+set}" = set; then : 14776 withval=$with_openssl; 14777else 14778 openssl=no 14779fi 14780 14781 14782if test "$with_openssl" = yes || test "$with_openssl" = auto; then 14783 for ac_header in openssl/ssl.h 14784do : 14785 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default" 14786if test "x$ac_cv_header_openssl_ssl_h" = xyes; then : 14787 cat >>confdefs.h <<_ACEOF 14788#define HAVE_OPENSSL_SSL_H 1 14789_ACEOF 14790 14791$as_echo "#define USE_SSL 1" >>confdefs.h 14792 14793else 14794 14795 if test "$with_openssl" = yes; then 14796 as_fn_error $? "header file <openssl/ssl.h> is required for SSL" "$LINENO" 5 14797 else 14798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: header file <openssl/ssl.h> is required for SSL" >&5 14799$as_echo "$as_me: WARNING: header file <openssl/ssl.h> is required for SSL" >&2;} 14800 fi 14801 14802fi 14803 14804done 14805 14806 14807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_new_ex_data in -lcrypto" >&5 14808$as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; } 14809if ${ac_cv_lib_crypto_CRYPTO_new_ex_data+:} false; then : 14810 $as_echo_n "(cached) " >&6 14811else 14812 ac_check_lib_save_LIBS=$LIBS 14813LIBS="-lcrypto $LIBS" 14814cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14815/* end confdefs.h. */ 14816 14817/* Override any GCC internal prototype to avoid an error. 14818 Use char because int might match the return type of a GCC 14819 builtin and then its argument prototype would still apply. */ 14820#ifdef __cplusplus 14821extern "C" 14822#endif 14823char CRYPTO_new_ex_data (); 14824int 14825main () 14826{ 14827return CRYPTO_new_ex_data (); 14828 ; 14829 return 0; 14830} 14831_ACEOF 14832if ac_fn_c_try_link "$LINENO"; then : 14833 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes 14834else 14835 ac_cv_lib_crypto_CRYPTO_new_ex_data=no 14836fi 14837rm -f core conftest.err conftest.$ac_objext \ 14838 conftest$ac_exeext conftest.$ac_ext 14839LIBS=$ac_check_lib_save_LIBS 14840fi 14841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5 14842$as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; } 14843if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = xyes; then : 14844 cat >>confdefs.h <<_ACEOF 14845#define HAVE_LIBCRYPTO 1 14846_ACEOF 14847 14848 LIBS="-lcrypto $LIBS" 14849 14850else 14851 as_fn_error $? "library 'crypto' is required for OpenSSL" "$LINENO" 5 14852fi 14853 14854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5 14855$as_echo_n "checking for SSL_new in -lssl... " >&6; } 14856if ${ac_cv_lib_ssl_SSL_new+:} false; then : 14857 $as_echo_n "(cached) " >&6 14858else 14859 ac_check_lib_save_LIBS=$LIBS 14860LIBS="-lssl $LIBS" 14861cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14862/* end confdefs.h. */ 14863 14864/* Override any GCC internal prototype to avoid an error. 14865 Use char because int might match the return type of a GCC 14866 builtin and then its argument prototype would still apply. */ 14867#ifdef __cplusplus 14868extern "C" 14869#endif 14870char SSL_new (); 14871int 14872main () 14873{ 14874return SSL_new (); 14875 ; 14876 return 0; 14877} 14878_ACEOF 14879if ac_fn_c_try_link "$LINENO"; then : 14880 ac_cv_lib_ssl_SSL_new=yes 14881else 14882 ac_cv_lib_ssl_SSL_new=no 14883fi 14884rm -f core conftest.err conftest.$ac_objext \ 14885 conftest$ac_exeext conftest.$ac_ext 14886LIBS=$ac_check_lib_save_LIBS 14887fi 14888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5 14889$as_echo "$ac_cv_lib_ssl_SSL_new" >&6; } 14890if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then : 14891 cat >>confdefs.h <<_ACEOF 14892#define HAVE_LIBSSL 1 14893_ACEOF 14894 14895 LIBS="-lssl $LIBS" 14896 14897else 14898 as_fn_error $? "library 'ssl' is required for OpenSSL" "$LINENO" 5 14899fi 14900 14901fi 14902 14903 14904# Check whether --with-pam was given. 14905if test "${with_pam+set}" = set; then : 14906 withval=$with_pam; 14907$as_echo "#define USE_PAM 1" >>confdefs.h 14908 14909fi 14910 14911if test "$with_pam" = yes ; then 14912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5 14913$as_echo_n "checking for pam_start in -lpam... " >&6; } 14914if ${ac_cv_lib_pam_pam_start+:} false; then : 14915 $as_echo_n "(cached) " >&6 14916else 14917 ac_check_lib_save_LIBS=$LIBS 14918LIBS="-lpam $LIBS" 14919cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14920/* end confdefs.h. */ 14921 14922/* Override any GCC internal prototype to avoid an error. 14923 Use char because int might match the return type of a GCC 14924 builtin and then its argument prototype would still apply. */ 14925#ifdef __cplusplus 14926extern "C" 14927#endif 14928char pam_start (); 14929int 14930main () 14931{ 14932return pam_start (); 14933 ; 14934 return 0; 14935} 14936_ACEOF 14937if ac_fn_c_try_link "$LINENO"; then : 14938 ac_cv_lib_pam_pam_start=yes 14939else 14940 ac_cv_lib_pam_pam_start=no 14941fi 14942rm -f core conftest.err conftest.$ac_objext \ 14943 conftest$ac_exeext conftest.$ac_ext 14944LIBS=$ac_check_lib_save_LIBS 14945fi 14946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5 14947$as_echo "$ac_cv_lib_pam_pam_start" >&6; } 14948if test "x$ac_cv_lib_pam_pam_start" = xyes; then : 14949 cat >>confdefs.h <<_ACEOF 14950#define HAVE_LIBPAM 1 14951_ACEOF 14952 14953 LIBS="-lpam $LIBS" 14954 14955else 14956 as_fn_error $? "library 'pam' is required for PAM" "$LINENO" 5 14957fi 14958 14959 for ac_header in security/pam_appl.h 14960do : 14961 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default" 14962if test "x$ac_cv_header_security_pam_appl_h" = xyes; then : 14963 cat >>confdefs.h <<_ACEOF 14964#define HAVE_SECURITY_PAM_APPL_H 1 14965_ACEOF 14966 14967else 14968 for ac_header in pam/pam_appl.h 14969do : 14970 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default" 14971if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then : 14972 cat >>confdefs.h <<_ACEOF 14973#define HAVE_PAM_PAM_APPL_H 1 14974_ACEOF 14975 14976else 14977 as_fn_error $? "header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." "$LINENO" 5 14978fi 14979 14980done 14981 14982fi 14983 14984done 14985 14986fi 14987 14988 14989 14990# Check whether --with-memcached was given. 14991if test "${with_memcached+set}" = set; then : 14992 withval=$with_memcached; 14993 case "$withval" in 14994 "" | y | ye | yes | n | no) 14995 as_fn_error $? "*** You must supply an argument to the --with-memcached option." "$LINENO" 5 14996 ;; 14997 *) 14998 14999 MEMCACHED_INCLUDE_DIR="$withval"/include 15000 MEMCACHED_LIB_DIR="$withval"/lib 15001 OLD_CFLAGS="$CFLAGS" 15002 CFLAGS="$CFLAGS -I$MEMCACHED_INCLUDE_DIR" 15003 for ac_header in libmemcached/memcached.h 15004do : 15005 ac_fn_c_check_header_mongrel "$LINENO" "libmemcached/memcached.h" "ac_cv_header_libmemcached_memcached_h" "$ac_includes_default" 15006if test "x$ac_cv_header_libmemcached_memcached_h" = xyes; then : 15007 cat >>confdefs.h <<_ACEOF 15008#define HAVE_LIBMEMCACHED_MEMCACHED_H 1 15009_ACEOF 15010 15011$as_echo "#define USE_MEMCACHED 1" >>confdefs.h 15012 15013else 15014 as_fn_error $? "header file <libmemcached/memcached.h> is required for memcached support" "$LINENO" 5 15015fi 15016 15017done 15018 15019 CFLAGS=$OLD_CFLAGS 15020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memcached_create in -lmemcached" >&5 15021$as_echo_n "checking for memcached_create in -lmemcached... " >&6; } 15022if ${ac_cv_lib_memcached_memcached_create+:} false; then : 15023 $as_echo_n "(cached) " >&6 15024else 15025 ac_check_lib_save_LIBS=$LIBS 15026LIBS="-lmemcached $LIBS" 15027cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15028/* end confdefs.h. */ 15029 15030/* Override any GCC internal prototype to avoid an error. 15031 Use char because int might match the return type of a GCC 15032 builtin and then its argument prototype would still apply. */ 15033#ifdef __cplusplus 15034extern "C" 15035#endif 15036char memcached_create (); 15037int 15038main () 15039{ 15040return memcached_create (); 15041 ; 15042 return 0; 15043} 15044_ACEOF 15045if ac_fn_c_try_link "$LINENO"; then : 15046 ac_cv_lib_memcached_memcached_create=yes 15047else 15048 ac_cv_lib_memcached_memcached_create=no 15049fi 15050rm -f core conftest.err conftest.$ac_objext \ 15051 conftest$ac_exeext conftest.$ac_ext 15052LIBS=$ac_check_lib_save_LIBS 15053fi 15054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_memcached_memcached_create" >&5 15055$as_echo "$ac_cv_lib_memcached_memcached_create" >&6; } 15056if test "x$ac_cv_lib_memcached_memcached_create" = xyes; then : 15057 cat >>confdefs.h <<_ACEOF 15058#define HAVE_LIBMEMCACHED 1 15059_ACEOF 15060 15061 LIBS="-lmemcached $LIBS" 15062 15063else 15064 as_fn_error $? "libmemcached is not installed" "$LINENO" 5 15065fi 15066 15067 MEMCACHED_INCLUDE_OPT="-I $MEMCACHED_INCLUDE_DIR" 15068 MEMCACHED_LINK_OPT="-L$MEMCACHED_LIB_DIR" 15069 MEMCACHED_RPATH_OPT="-rpath $MEMCACHED_LIB_DIR" 15070 ;; 15071 esac 15072 15073fi 15074 15075 15076CFLAGS="$CFLAGS -fno-strict-aliasing" 15077 15078 15079 15080 15081 15082OLD_LDFLAGS="$LDFLAGS" 15083LDFLAGS="-L$PGSQL_LIB_DIR $LDFLAGS" 15084OLD_LIBS="$LIBS" 15085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQexecPrepared in -lpq" >&5 15086$as_echo_n "checking for PQexecPrepared in -lpq... " >&6; } 15087if ${ac_cv_lib_pq_PQexecPrepared+:} false; then : 15088 $as_echo_n "(cached) " >&6 15089else 15090 ac_check_lib_save_LIBS=$LIBS 15091LIBS="-lpq $LIBS" 15092cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15093/* end confdefs.h. */ 15094 15095/* Override any GCC internal prototype to avoid an error. 15096 Use char because int might match the return type of a GCC 15097 builtin and then its argument prototype would still apply. */ 15098#ifdef __cplusplus 15099extern "C" 15100#endif 15101char PQexecPrepared (); 15102int 15103main () 15104{ 15105return PQexecPrepared (); 15106 ; 15107 return 0; 15108} 15109_ACEOF 15110if ac_fn_c_try_link "$LINENO"; then : 15111 ac_cv_lib_pq_PQexecPrepared=yes 15112else 15113 ac_cv_lib_pq_PQexecPrepared=no 15114fi 15115rm -f core conftest.err conftest.$ac_objext \ 15116 conftest$ac_exeext conftest.$ac_ext 15117LIBS=$ac_check_lib_save_LIBS 15118fi 15119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQexecPrepared" >&5 15120$as_echo "$ac_cv_lib_pq_PQexecPrepared" >&6; } 15121if test "x$ac_cv_lib_pq_PQexecPrepared" = xyes; then : 15122 cat >>confdefs.h <<_ACEOF 15123#define HAVE_LIBPQ 1 15124_ACEOF 15125 15126 LIBS="-lpq $LIBS" 15127 15128else 15129 as_fn_error $? "libpq is not installed or libpq is old" "$LINENO" 5 15130fi 15131 15132for ac_func in PQprepare 15133do : 15134 ac_fn_c_check_func "$LINENO" "PQprepare" "ac_cv_func_PQprepare" 15135if test "x$ac_cv_func_PQprepare" = xyes; then : 15136 cat >>confdefs.h <<_ACEOF 15137#define HAVE_PQPREPARE 1 15138_ACEOF 15139 15140fi 15141done 15142 15143LDFLAGS="$OLD_LDFLAGS" 15144LIBS="$OLD_LIBS" 15145 15146 15147 15148 15149 15150 15151# --enable(disable)-rpath option 15152# Check whether --enable-rpath was given. 15153if test "${enable_rpath+set}" = set; then : 15154 enableval=$enable_rpath; case "${enableval}" in 15155 yes) rpath=yes ;; 15156 no) rpath=no ;; 15157 esac 15158else 15159 rpath=yes 15160 15161fi 15162 15163 if test x$rpath = xyes; then 15164 enable_rpath_TRUE= 15165 enable_rpath_FALSE='#' 15166else 15167 enable_rpath_TRUE='#' 15168 enable_rpath_FALSE= 15169fi 15170 15171 15172# Decide whether to use row lock against the sequence table for insert_lock. 15173# This lock method is compatible with pgpool-II 3.0 series(until 3.0.4). 15174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use row lock against the sequence table for insert_lock" >&5 15175$as_echo_n "checking whether to use row lock against the sequence table for insert_lock... " >&6; } 15176 15177pgac_args="$pgac_args enable_sequence_lock" 15178 15179# Check whether --enable-sequence-lock was given. 15180if test "${enable_sequence_lock+set}" = set; then : 15181 enableval=$enable_sequence_lock; 15182 case $enableval in 15183 yes) 15184 : 15185 ;; 15186 no) 15187 : 15188 ;; 15189 *) 15190 as_fn_error $? "no argument expected for --enable-sequence-lock option" "$LINENO" 5 15191 ;; 15192 esac 15193 15194else 15195 enable_sequence_lock=no 15196 15197fi 15198 15199 15200if test "$enable_sequence_lock" = yes && test "$enable_table_lock" = yes ; then 15201 as_fn_error $? "--enable-table-lock cannot be enabled at the same time." "$LINENO" 5 15202fi 15203if test "$enable_sequence_lock" = yes ; then 15204 15205$as_echo "#define USE_SEQUENCE_LOCK 1" >>confdefs.h 15206 15207fi 15208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_sequence_lock" >&5 15209$as_echo "$enable_sequence_lock" >&6; } 15210 15211# Decide whether to use table lock against the target table for insert_lock. 15212# This lock method is compatible with pgpool-II 2.2 and 2.3 series. 15213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use table lock against the target table for insert_lock" >&5 15214$as_echo_n "checking whether to use table lock against the target table for insert_lock... " >&6; } 15215 15216pgac_args="$pgac_args enable_table_lock" 15217 15218# Check whether --enable-table-lock was given. 15219if test "${enable_table_lock+set}" = set; then : 15220 enableval=$enable_table_lock; 15221 case $enableval in 15222 yes) 15223 : 15224 ;; 15225 no) 15226 : 15227 ;; 15228 *) 15229 as_fn_error $? "no argument expected for --enable-table-lock option" "$LINENO" 5 15230 ;; 15231 esac 15232 15233else 15234 enable_table_lock=no 15235 15236fi 15237 15238 15239if test "$enable_table_lock" = yes && test "$enable_sequence_lock" = yes ; then 15240 as_fn_error $? "--enable-sequence-lock cannot be enabled at the same time." "$LINENO" 5 15241fi 15242if test "$enable_table_lock" = yes ; then 15243 15244$as_echo "#define USE_TABLE_LOCK 1" >>confdefs.h 15245 15246fi 15247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_table_lock" >&5 15248$as_echo "$enable_table_lock" >&6; } 15249 15250 15251pgac_args="$pgac_args enable_cassert" 15252 15253# Check whether --enable-cassert was given. 15254if test "${enable_cassert+set}" = set; then : 15255 enableval=$enable_cassert; 15256 case $enableval in 15257 yes) 15258 : 15259 ;; 15260 no) 15261 : 15262 ;; 15263 *) 15264 as_fn_error $? "no argument expected for --enable-cassert option" "$LINENO" 5 15265 ;; 15266 esac 15267 15268else 15269 enable_cassert=no 15270 15271fi 15272 15273 15274if test "$enable_cassert" = yes ; then 15275 15276$as_echo "#define USE_ASSERT_CHECKING 1" >>confdefs.h 15277 15278fi 15279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: enable cassert = $enable_cassert" >&5 15280$as_echo "enable cassert = $enable_cassert" >&6; } 15281 15282ac_config_headers="$ac_config_headers src/include/config.h" 15283 15284 15285ac_config_files="$ac_config_files Makefile doc/Makefile doc/src/Makefile doc/src/sgml/Makefile doc.ja/Makefile doc.ja/src/Makefile doc.ja/src/sgml/Makefile src/Makefile src/include/Makefile src/parser/Makefile src/libs/Makefile src/libs/pcp/Makefile src/tools/Makefile src/tools/pgmd5/Makefile src/tools/pgenc/Makefile src/tools/pcp/Makefile src/tools/pgproto/Makefile src/watchdog/Makefile" 15286 15287cat >confcache <<\_ACEOF 15288# This file is a shell script that caches the results of configure 15289# tests run on this system so they can be shared between configure 15290# scripts and configure runs, see configure's option --config-cache. 15291# It is not useful on other systems. If it contains results you don't 15292# want to keep, you may remove or edit it. 15293# 15294# config.status only pays attention to the cache file if you give it 15295# the --recheck option to rerun configure. 15296# 15297# `ac_cv_env_foo' variables (set or unset) will be overridden when 15298# loading this file, other *unset* `ac_cv_foo' will be assigned the 15299# following values. 15300 15301_ACEOF 15302 15303# The following way of writing the cache mishandles newlines in values, 15304# but we know of no workaround that is simple, portable, and efficient. 15305# So, we kill variables containing newlines. 15306# Ultrix sh set writes to stderr and can't be redirected directly, 15307# and sets the high bit in the cache file unless we assign to the vars. 15308( 15309 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 15310 eval ac_val=\$$ac_var 15311 case $ac_val in #( 15312 *${as_nl}*) 15313 case $ac_var in #( 15314 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 15315$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 15316 esac 15317 case $ac_var in #( 15318 _ | IFS | as_nl) ;; #( 15319 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 15320 *) { eval $ac_var=; unset $ac_var;} ;; 15321 esac ;; 15322 esac 15323 done 15324 15325 (set) 2>&1 | 15326 case $as_nl`(ac_space=' '; set) 2>&1` in #( 15327 *${as_nl}ac_space=\ *) 15328 # `set' does not quote correctly, so add quotes: double-quote 15329 # substitution turns \\\\ into \\, and sed turns \\ into \. 15330 sed -n \ 15331 "s/'/'\\\\''/g; 15332 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 15333 ;; #( 15334 *) 15335 # `set' quotes correctly as required by POSIX, so do not add quotes. 15336 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 15337 ;; 15338 esac | 15339 sort 15340) | 15341 sed ' 15342 /^ac_cv_env_/b end 15343 t clear 15344 :clear 15345 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 15346 t end 15347 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 15348 :end' >>confcache 15349if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 15350 if test -w "$cache_file"; then 15351 if test "x$cache_file" != "x/dev/null"; then 15352 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 15353$as_echo "$as_me: updating cache $cache_file" >&6;} 15354 if test ! -f "$cache_file" || test -h "$cache_file"; then 15355 cat confcache >"$cache_file" 15356 else 15357 case $cache_file in #( 15358 */* | ?:*) 15359 mv -f confcache "$cache_file"$$ && 15360 mv -f "$cache_file"$$ "$cache_file" ;; #( 15361 *) 15362 mv -f confcache "$cache_file" ;; 15363 esac 15364 fi 15365 fi 15366 else 15367 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 15368$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 15369 fi 15370fi 15371rm -f confcache 15372 15373test "x$prefix" = xNONE && prefix=$ac_default_prefix 15374# Let make expand exec_prefix. 15375test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15376 15377DEFS=-DHAVE_CONFIG_H 15378 15379ac_libobjs= 15380ac_ltlibobjs= 15381for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 15382 # 1. Remove the extension, and $U if already installed. 15383 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 15384 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 15385 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 15386 # will be set to the directory where LIBOBJS objects are built. 15387 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 15388 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 15389done 15390LIBOBJS=$ac_libobjs 15391 15392LTLIBOBJS=$ac_ltlibobjs 15393 15394 15395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 15396$as_echo_n "checking that generated files are newer than configure... " >&6; } 15397 if test -n "$am_sleep_pid"; then 15398 # Hide warnings about reused PIDs. 15399 wait $am_sleep_pid 2>/dev/null 15400 fi 15401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 15402$as_echo "done" >&6; } 15403 if test -n "$EXEEXT"; then 15404 am__EXEEXT_TRUE= 15405 am__EXEEXT_FALSE='#' 15406else 15407 am__EXEEXT_TRUE='#' 15408 am__EXEEXT_FALSE= 15409fi 15410 15411if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 15412 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 15413Usually this means the macro was only invoked conditionally." "$LINENO" 5 15414fi 15415if test -z "${can_build_docs_TRUE}" && test -z "${can_build_docs_FALSE}"; then 15416 as_fn_error $? "conditional \"can_build_docs\" was never defined. 15417Usually this means the macro was only invoked conditionally." "$LINENO" 5 15418fi 15419if test -z "${STYLE_ENV_SET_TRUE}" && test -z "${STYLE_ENV_SET_FALSE}"; then 15420 as_fn_error $? "conditional \"STYLE_ENV_SET\" was never defined. 15421Usually this means the macro was only invoked conditionally." "$LINENO" 5 15422fi 15423if test -z "${use_repl_snprintf_TRUE}" && test -z "${use_repl_snprintf_FALSE}"; then 15424 as_fn_error $? "conditional \"use_repl_snprintf\" was never defined. 15425Usually this means the macro was only invoked conditionally." "$LINENO" 5 15426fi 15427if test -z "${enable_rpath_TRUE}" && test -z "${enable_rpath_FALSE}"; then 15428 as_fn_error $? "conditional \"enable_rpath\" was never defined. 15429Usually this means the macro was only invoked conditionally." "$LINENO" 5 15430fi 15431 15432: "${CONFIG_STATUS=./config.status}" 15433ac_write_fail=0 15434ac_clean_files_save=$ac_clean_files 15435ac_clean_files="$ac_clean_files $CONFIG_STATUS" 15436{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 15437$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 15438as_write_fail=0 15439cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 15440#! $SHELL 15441# Generated by $as_me. 15442# Run this file to recreate the current configuration. 15443# Compiler output produced by configure, useful for debugging 15444# configure, is in config.log if it exists. 15445 15446debug=false 15447ac_cs_recheck=false 15448ac_cs_silent=false 15449 15450SHELL=\${CONFIG_SHELL-$SHELL} 15451export SHELL 15452_ASEOF 15453cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 15454## -------------------- ## 15455## M4sh Initialization. ## 15456## -------------------- ## 15457 15458# Be more Bourne compatible 15459DUALCASE=1; export DUALCASE # for MKS sh 15460if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 15461 emulate sh 15462 NULLCMD=: 15463 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 15464 # is contrary to our usage. Disable this feature. 15465 alias -g '${1+"$@"}'='"$@"' 15466 setopt NO_GLOB_SUBST 15467else 15468 case `(set -o) 2>/dev/null` in #( 15469 *posix*) : 15470 set -o posix ;; #( 15471 *) : 15472 ;; 15473esac 15474fi 15475 15476 15477as_nl=' 15478' 15479export as_nl 15480# Printing a long string crashes Solaris 7 /usr/bin/printf. 15481as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 15482as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 15483as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 15484# Prefer a ksh shell builtin over an external printf program on Solaris, 15485# but without wasting forks for bash or zsh. 15486if test -z "$BASH_VERSION$ZSH_VERSION" \ 15487 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 15488 as_echo='print -r --' 15489 as_echo_n='print -rn --' 15490elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 15491 as_echo='printf %s\n' 15492 as_echo_n='printf %s' 15493else 15494 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 15495 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 15496 as_echo_n='/usr/ucb/echo -n' 15497 else 15498 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 15499 as_echo_n_body='eval 15500 arg=$1; 15501 case $arg in #( 15502 *"$as_nl"*) 15503 expr "X$arg" : "X\\(.*\\)$as_nl"; 15504 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 15505 esac; 15506 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 15507 ' 15508 export as_echo_n_body 15509 as_echo_n='sh -c $as_echo_n_body as_echo' 15510 fi 15511 export as_echo_body 15512 as_echo='sh -c $as_echo_body as_echo' 15513fi 15514 15515# The user is always right. 15516if test "${PATH_SEPARATOR+set}" != set; then 15517 PATH_SEPARATOR=: 15518 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 15519 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 15520 PATH_SEPARATOR=';' 15521 } 15522fi 15523 15524 15525# IFS 15526# We need space, tab and new line, in precisely that order. Quoting is 15527# there to prevent editors from complaining about space-tab. 15528# (If _AS_PATH_WALK were called with IFS unset, it would disable word 15529# splitting by setting IFS to empty value.) 15530IFS=" "" $as_nl" 15531 15532# Find who we are. Look in the path if we contain no directory separator. 15533as_myself= 15534case $0 in #(( 15535 *[\\/]* ) as_myself=$0 ;; 15536 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15537for as_dir in $PATH 15538do 15539 IFS=$as_save_IFS 15540 test -z "$as_dir" && as_dir=. 15541 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 15542 done 15543IFS=$as_save_IFS 15544 15545 ;; 15546esac 15547# We did not find ourselves, most probably we were run as `sh COMMAND' 15548# in which case we are not to be found in the path. 15549if test "x$as_myself" = x; then 15550 as_myself=$0 15551fi 15552if test ! -f "$as_myself"; then 15553 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 15554 exit 1 15555fi 15556 15557# Unset variables that we do not need and which cause bugs (e.g. in 15558# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 15559# suppresses any "Segmentation fault" message there. '((' could 15560# trigger a bug in pdksh 5.2.14. 15561for as_var in BASH_ENV ENV MAIL MAILPATH 15562do eval test x\${$as_var+set} = xset \ 15563 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 15564done 15565PS1='$ ' 15566PS2='> ' 15567PS4='+ ' 15568 15569# NLS nuisances. 15570LC_ALL=C 15571export LC_ALL 15572LANGUAGE=C 15573export LANGUAGE 15574 15575# CDPATH. 15576(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15577 15578 15579# as_fn_error STATUS ERROR [LINENO LOG_FD] 15580# ---------------------------------------- 15581# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 15582# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 15583# script with STATUS, using 1 if that was 0. 15584as_fn_error () 15585{ 15586 as_status=$1; test $as_status -eq 0 && as_status=1 15587 if test "$4"; then 15588 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15589 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 15590 fi 15591 $as_echo "$as_me: error: $2" >&2 15592 as_fn_exit $as_status 15593} # as_fn_error 15594 15595 15596# as_fn_set_status STATUS 15597# ----------------------- 15598# Set $? to STATUS, without forking. 15599as_fn_set_status () 15600{ 15601 return $1 15602} # as_fn_set_status 15603 15604# as_fn_exit STATUS 15605# ----------------- 15606# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 15607as_fn_exit () 15608{ 15609 set +e 15610 as_fn_set_status $1 15611 exit $1 15612} # as_fn_exit 15613 15614# as_fn_unset VAR 15615# --------------- 15616# Portably unset VAR. 15617as_fn_unset () 15618{ 15619 { eval $1=; unset $1;} 15620} 15621as_unset=as_fn_unset 15622# as_fn_append VAR VALUE 15623# ---------------------- 15624# Append the text in VALUE to the end of the definition contained in VAR. Take 15625# advantage of any shell optimizations that allow amortized linear growth over 15626# repeated appends, instead of the typical quadratic growth present in naive 15627# implementations. 15628if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 15629 eval 'as_fn_append () 15630 { 15631 eval $1+=\$2 15632 }' 15633else 15634 as_fn_append () 15635 { 15636 eval $1=\$$1\$2 15637 } 15638fi # as_fn_append 15639 15640# as_fn_arith ARG... 15641# ------------------ 15642# Perform arithmetic evaluation on the ARGs, and store the result in the 15643# global $as_val. Take advantage of shells that can avoid forks. The arguments 15644# must be portable across $(()) and expr. 15645if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 15646 eval 'as_fn_arith () 15647 { 15648 as_val=$(( $* )) 15649 }' 15650else 15651 as_fn_arith () 15652 { 15653 as_val=`expr "$@" || test $? -eq 1` 15654 } 15655fi # as_fn_arith 15656 15657 15658if expr a : '\(a\)' >/dev/null 2>&1 && 15659 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15660 as_expr=expr 15661else 15662 as_expr=false 15663fi 15664 15665if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 15666 as_basename=basename 15667else 15668 as_basename=false 15669fi 15670 15671if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 15672 as_dirname=dirname 15673else 15674 as_dirname=false 15675fi 15676 15677as_me=`$as_basename -- "$0" || 15678$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 15679 X"$0" : 'X\(//\)$' \| \ 15680 X"$0" : 'X\(/\)' \| . 2>/dev/null || 15681$as_echo X/"$0" | 15682 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15683 s//\1/ 15684 q 15685 } 15686 /^X\/\(\/\/\)$/{ 15687 s//\1/ 15688 q 15689 } 15690 /^X\/\(\/\).*/{ 15691 s//\1/ 15692 q 15693 } 15694 s/.*/./; q'` 15695 15696# Avoid depending upon Character Ranges. 15697as_cr_letters='abcdefghijklmnopqrstuvwxyz' 15698as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 15699as_cr_Letters=$as_cr_letters$as_cr_LETTERS 15700as_cr_digits='0123456789' 15701as_cr_alnum=$as_cr_Letters$as_cr_digits 15702 15703ECHO_C= ECHO_N= ECHO_T= 15704case `echo -n x` in #((((( 15705-n*) 15706 case `echo 'xy\c'` in 15707 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 15708 xy) ECHO_C='\c';; 15709 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 15710 ECHO_T=' ';; 15711 esac;; 15712*) 15713 ECHO_N='-n';; 15714esac 15715 15716rm -f conf$$ conf$$.exe conf$$.file 15717if test -d conf$$.dir; then 15718 rm -f conf$$.dir/conf$$.file 15719else 15720 rm -f conf$$.dir 15721 mkdir conf$$.dir 2>/dev/null 15722fi 15723if (echo >conf$$.file) 2>/dev/null; then 15724 if ln -s conf$$.file conf$$ 2>/dev/null; then 15725 as_ln_s='ln -s' 15726 # ... but there are two gotchas: 15727 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 15728 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 15729 # In both cases, we have to default to `cp -pR'. 15730 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 15731 as_ln_s='cp -pR' 15732 elif ln conf$$.file conf$$ 2>/dev/null; then 15733 as_ln_s=ln 15734 else 15735 as_ln_s='cp -pR' 15736 fi 15737else 15738 as_ln_s='cp -pR' 15739fi 15740rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 15741rmdir conf$$.dir 2>/dev/null 15742 15743 15744# as_fn_mkdir_p 15745# ------------- 15746# Create "$as_dir" as a directory, including parents if necessary. 15747as_fn_mkdir_p () 15748{ 15749 15750 case $as_dir in #( 15751 -*) as_dir=./$as_dir;; 15752 esac 15753 test -d "$as_dir" || eval $as_mkdir_p || { 15754 as_dirs= 15755 while :; do 15756 case $as_dir in #( 15757 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15758 *) as_qdir=$as_dir;; 15759 esac 15760 as_dirs="'$as_qdir' $as_dirs" 15761 as_dir=`$as_dirname -- "$as_dir" || 15762$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15763 X"$as_dir" : 'X\(//\)[^/]' \| \ 15764 X"$as_dir" : 'X\(//\)$' \| \ 15765 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15766$as_echo X"$as_dir" | 15767 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15768 s//\1/ 15769 q 15770 } 15771 /^X\(\/\/\)[^/].*/{ 15772 s//\1/ 15773 q 15774 } 15775 /^X\(\/\/\)$/{ 15776 s//\1/ 15777 q 15778 } 15779 /^X\(\/\).*/{ 15780 s//\1/ 15781 q 15782 } 15783 s/.*/./; q'` 15784 test -d "$as_dir" && break 15785 done 15786 test -z "$as_dirs" || eval "mkdir $as_dirs" 15787 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 15788 15789 15790} # as_fn_mkdir_p 15791if mkdir -p . 2>/dev/null; then 15792 as_mkdir_p='mkdir -p "$as_dir"' 15793else 15794 test -d ./-p && rmdir ./-p 15795 as_mkdir_p=false 15796fi 15797 15798 15799# as_fn_executable_p FILE 15800# ----------------------- 15801# Test if FILE is an executable regular file. 15802as_fn_executable_p () 15803{ 15804 test -f "$1" && test -x "$1" 15805} # as_fn_executable_p 15806as_test_x='test -x' 15807as_executable_p=as_fn_executable_p 15808 15809# Sed expression to map a string onto a valid CPP name. 15810as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 15811 15812# Sed expression to map a string onto a valid variable name. 15813as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 15814 15815 15816exec 6>&1 15817## ----------------------------------- ## 15818## Main body of $CONFIG_STATUS script. ## 15819## ----------------------------------- ## 15820_ASEOF 15821test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 15822 15823cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15824# Save the log message, to keep $0 and so on meaningful, and to 15825# report actual input values of CONFIG_FILES etc. instead of their 15826# values after options handling. 15827ac_log=" 15828This file was extended by pgpool-II $as_me 4.1.10, which was 15829generated by GNU Autoconf 2.69. Invocation command line was 15830 15831 CONFIG_FILES = $CONFIG_FILES 15832 CONFIG_HEADERS = $CONFIG_HEADERS 15833 CONFIG_LINKS = $CONFIG_LINKS 15834 CONFIG_COMMANDS = $CONFIG_COMMANDS 15835 $ $0 $@ 15836 15837on `(hostname || uname -n) 2>/dev/null | sed 1q` 15838" 15839 15840_ACEOF 15841 15842case $ac_config_files in *" 15843"*) set x $ac_config_files; shift; ac_config_files=$*;; 15844esac 15845 15846case $ac_config_headers in *" 15847"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 15848esac 15849 15850 15851cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15852# Files that config.status was made for. 15853config_files="$ac_config_files" 15854config_headers="$ac_config_headers" 15855config_commands="$ac_config_commands" 15856 15857_ACEOF 15858 15859cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15860ac_cs_usage="\ 15861\`$as_me' instantiates files and other configuration actions 15862from templates according to the current configuration. Unless the files 15863and actions are specified as TAGs, all are instantiated by default. 15864 15865Usage: $0 [OPTION]... [TAG]... 15866 15867 -h, --help print this help, then exit 15868 -V, --version print version number and configuration settings, then exit 15869 --config print configuration, then exit 15870 -q, --quiet, --silent 15871 do not print progress messages 15872 -d, --debug don't remove temporary files 15873 --recheck update $as_me by reconfiguring in the same conditions 15874 --file=FILE[:TEMPLATE] 15875 instantiate the configuration file FILE 15876 --header=FILE[:TEMPLATE] 15877 instantiate the configuration header FILE 15878 15879Configuration files: 15880$config_files 15881 15882Configuration headers: 15883$config_headers 15884 15885Configuration commands: 15886$config_commands 15887 15888Report bugs to <pgpool-hackers@pgpool.net>." 15889 15890_ACEOF 15891cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15892ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 15893ac_cs_version="\\ 15894pgpool-II config.status 4.1.10 15895configured by $0, generated by GNU Autoconf 2.69, 15896 with options \\"\$ac_cs_config\\" 15897 15898Copyright (C) 2012 Free Software Foundation, Inc. 15899This config.status script is free software; the Free Software Foundation 15900gives unlimited permission to copy, distribute and modify it." 15901 15902ac_pwd='$ac_pwd' 15903srcdir='$srcdir' 15904INSTALL='$INSTALL' 15905MKDIR_P='$MKDIR_P' 15906AWK='$AWK' 15907test -n "\$AWK" || AWK=awk 15908_ACEOF 15909 15910cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15911# The default lists apply if the user does not specify any file. 15912ac_need_defaults=: 15913while test $# != 0 15914do 15915 case $1 in 15916 --*=?*) 15917 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15918 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 15919 ac_shift=: 15920 ;; 15921 --*=) 15922 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15923 ac_optarg= 15924 ac_shift=: 15925 ;; 15926 *) 15927 ac_option=$1 15928 ac_optarg=$2 15929 ac_shift=shift 15930 ;; 15931 esac 15932 15933 case $ac_option in 15934 # Handling of the options. 15935 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 15936 ac_cs_recheck=: ;; 15937 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 15938 $as_echo "$ac_cs_version"; exit ;; 15939 --config | --confi | --conf | --con | --co | --c ) 15940 $as_echo "$ac_cs_config"; exit ;; 15941 --debug | --debu | --deb | --de | --d | -d ) 15942 debug=: ;; 15943 --file | --fil | --fi | --f ) 15944 $ac_shift 15945 case $ac_optarg in 15946 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15947 '') as_fn_error $? "missing file argument" ;; 15948 esac 15949 as_fn_append CONFIG_FILES " '$ac_optarg'" 15950 ac_need_defaults=false;; 15951 --header | --heade | --head | --hea ) 15952 $ac_shift 15953 case $ac_optarg in 15954 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15955 esac 15956 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 15957 ac_need_defaults=false;; 15958 --he | --h) 15959 # Conflict between --help and --header 15960 as_fn_error $? "ambiguous option: \`$1' 15961Try \`$0 --help' for more information.";; 15962 --help | --hel | -h ) 15963 $as_echo "$ac_cs_usage"; exit ;; 15964 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 15965 | -silent | --silent | --silen | --sile | --sil | --si | --s) 15966 ac_cs_silent=: ;; 15967 15968 # This is an error. 15969 -*) as_fn_error $? "unrecognized option: \`$1' 15970Try \`$0 --help' for more information." ;; 15971 15972 *) as_fn_append ac_config_targets " $1" 15973 ac_need_defaults=false ;; 15974 15975 esac 15976 shift 15977done 15978 15979ac_configure_extra_args= 15980 15981if $ac_cs_silent; then 15982 exec 6>/dev/null 15983 ac_configure_extra_args="$ac_configure_extra_args --silent" 15984fi 15985 15986_ACEOF 15987cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15988if \$ac_cs_recheck; then 15989 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 15990 shift 15991 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 15992 CONFIG_SHELL='$SHELL' 15993 export CONFIG_SHELL 15994 exec "\$@" 15995fi 15996 15997_ACEOF 15998cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15999exec 5>>config.log 16000{ 16001 echo 16002 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 16003## Running $as_me. ## 16004_ASBOX 16005 $as_echo "$ac_log" 16006} >&5 16007 16008_ACEOF 16009cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16010# 16011# INIT-COMMANDS 16012# 16013 16014 16015# The HP-UX ksh and POSIX shell print the target directory to stdout 16016# if CDPATH is set. 16017(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16018 16019sed_quote_subst='$sed_quote_subst' 16020double_quote_subst='$double_quote_subst' 16021delay_variable_subst='$delay_variable_subst' 16022macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 16023macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 16024enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 16025enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 16026pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 16027enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 16028SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 16029ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 16030PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 16031host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 16032host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 16033host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 16034build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 16035build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 16036build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 16037SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 16038Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 16039GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 16040EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 16041FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 16042LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 16043NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 16044LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 16045max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 16046ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 16047exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 16048lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 16049lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 16050lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 16051lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 16052lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 16053reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 16054reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 16055OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 16056deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 16057file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 16058file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 16059want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 16060DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 16061sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 16062AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 16063AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 16064archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 16065STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 16066RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 16067old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16068old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16069old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 16070lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 16071CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 16072CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 16073compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 16074GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 16075lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 16076lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 16077lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 16078lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' 16079nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 16080lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 16081objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 16082MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 16083lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 16084lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 16085lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 16086lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 16087lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 16088need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 16089MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 16090DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 16091NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 16092LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 16093OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 16094OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 16095libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 16096shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 16097extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16098archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 16099enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 16100export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 16101whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 16102compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 16103old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 16104old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16105archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 16106archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16107module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 16108module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16109with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 16110allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 16111no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 16112hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 16113hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 16114hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 16115hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 16116hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 16117hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 16118hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 16119inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 16120link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 16121always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 16122export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 16123exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 16124include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 16125prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 16126postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 16127file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 16128variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 16129need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 16130need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 16131version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 16132runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 16133shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 16134shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 16135libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 16136library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 16137soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 16138install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 16139postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16140postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16141finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 16142finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 16143hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 16144sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 16145sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 16146hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 16147enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 16148enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 16149enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 16150old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 16151striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 16152 16153LTCC='$LTCC' 16154LTCFLAGS='$LTCFLAGS' 16155compiler='$compiler_DEFAULT' 16156 16157# A function that is used when there is no print builtin or printf. 16158func_fallback_echo () 16159{ 16160 eval 'cat <<_LTECHO_EOF 16161\$1 16162_LTECHO_EOF' 16163} 16164 16165# Quote evaled strings. 16166for var in SHELL \ 16167ECHO \ 16168PATH_SEPARATOR \ 16169SED \ 16170GREP \ 16171EGREP \ 16172FGREP \ 16173LD \ 16174NM \ 16175LN_S \ 16176lt_SP2NL \ 16177lt_NL2SP \ 16178reload_flag \ 16179OBJDUMP \ 16180deplibs_check_method \ 16181file_magic_cmd \ 16182file_magic_glob \ 16183want_nocaseglob \ 16184DLLTOOL \ 16185sharedlib_from_linklib_cmd \ 16186AR \ 16187AR_FLAGS \ 16188archiver_list_spec \ 16189STRIP \ 16190RANLIB \ 16191CC \ 16192CFLAGS \ 16193compiler \ 16194lt_cv_sys_global_symbol_pipe \ 16195lt_cv_sys_global_symbol_to_cdecl \ 16196lt_cv_sys_global_symbol_to_c_name_address \ 16197lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 16198nm_file_list_spec \ 16199lt_prog_compiler_no_builtin_flag \ 16200lt_prog_compiler_pic \ 16201lt_prog_compiler_wl \ 16202lt_prog_compiler_static \ 16203lt_cv_prog_compiler_c_o \ 16204need_locks \ 16205MANIFEST_TOOL \ 16206DSYMUTIL \ 16207NMEDIT \ 16208LIPO \ 16209OTOOL \ 16210OTOOL64 \ 16211shrext_cmds \ 16212export_dynamic_flag_spec \ 16213whole_archive_flag_spec \ 16214compiler_needs_object \ 16215with_gnu_ld \ 16216allow_undefined_flag \ 16217no_undefined_flag \ 16218hardcode_libdir_flag_spec \ 16219hardcode_libdir_separator \ 16220exclude_expsyms \ 16221include_expsyms \ 16222file_list_spec \ 16223variables_saved_for_relink \ 16224libname_spec \ 16225library_names_spec \ 16226soname_spec \ 16227install_override_mode \ 16228finish_eval \ 16229old_striplib \ 16230striplib; do 16231 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16232 *[\\\\\\\`\\"\\\$]*) 16233 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 16234 ;; 16235 *) 16236 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16237 ;; 16238 esac 16239done 16240 16241# Double-quote double-evaled strings. 16242for var in reload_cmds \ 16243old_postinstall_cmds \ 16244old_postuninstall_cmds \ 16245old_archive_cmds \ 16246extract_expsyms_cmds \ 16247old_archive_from_new_cmds \ 16248old_archive_from_expsyms_cmds \ 16249archive_cmds \ 16250archive_expsym_cmds \ 16251module_cmds \ 16252module_expsym_cmds \ 16253export_symbols_cmds \ 16254prelink_cmds \ 16255postlink_cmds \ 16256postinstall_cmds \ 16257postuninstall_cmds \ 16258finish_cmds \ 16259sys_lib_search_path_spec \ 16260sys_lib_dlsearch_path_spec; do 16261 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16262 *[\\\\\\\`\\"\\\$]*) 16263 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 16264 ;; 16265 *) 16266 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16267 ;; 16268 esac 16269done 16270 16271ac_aux_dir='$ac_aux_dir' 16272xsi_shell='$xsi_shell' 16273lt_shell_append='$lt_shell_append' 16274 16275# See if we are running on zsh, and set the options which allow our 16276# commands through without removal of \ escapes INIT. 16277if test -n "\${ZSH_VERSION+set}" ; then 16278 setopt NO_GLOB_SUBST 16279fi 16280 16281 16282 PACKAGE='$PACKAGE' 16283 VERSION='$VERSION' 16284 TIMESTAMP='$TIMESTAMP' 16285 RM='$RM' 16286 ofile='$ofile' 16287 16288 16289 16290 16291_ACEOF 16292 16293cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16294 16295# Handling of arguments. 16296for ac_config_target in $ac_config_targets 16297do 16298 case $ac_config_target in 16299 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 16300 "src/include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/config.h" ;; 16301 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 16302 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 16303 "doc/src/Makefile") CONFIG_FILES="$CONFIG_FILES doc/src/Makefile" ;; 16304 "doc/src/sgml/Makefile") CONFIG_FILES="$CONFIG_FILES doc/src/sgml/Makefile" ;; 16305 "doc.ja/Makefile") CONFIG_FILES="$CONFIG_FILES doc.ja/Makefile" ;; 16306 "doc.ja/src/Makefile") CONFIG_FILES="$CONFIG_FILES doc.ja/src/Makefile" ;; 16307 "doc.ja/src/sgml/Makefile") CONFIG_FILES="$CONFIG_FILES doc.ja/src/sgml/Makefile" ;; 16308 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 16309 "src/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;; 16310 "src/parser/Makefile") CONFIG_FILES="$CONFIG_FILES src/parser/Makefile" ;; 16311 "src/libs/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/Makefile" ;; 16312 "src/libs/pcp/Makefile") CONFIG_FILES="$CONFIG_FILES src/libs/pcp/Makefile" ;; 16313 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;; 16314 "src/tools/pgmd5/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/pgmd5/Makefile" ;; 16315 "src/tools/pgenc/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/pgenc/Makefile" ;; 16316 "src/tools/pcp/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/pcp/Makefile" ;; 16317 "src/tools/pgproto/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/pgproto/Makefile" ;; 16318 "src/watchdog/Makefile") CONFIG_FILES="$CONFIG_FILES src/watchdog/Makefile" ;; 16319 16320 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 16321 esac 16322done 16323 16324 16325# If the user did not use the arguments to specify the items to instantiate, 16326# then the envvar interface is used. Set only those that are not. 16327# We use the long form for the default assignment because of an extremely 16328# bizarre bug on SunOS 4.1.3. 16329if $ac_need_defaults; then 16330 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 16331 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 16332 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 16333fi 16334 16335# Have a temporary directory for convenience. Make it in the build tree 16336# simply because there is no reason against having it here, and in addition, 16337# creating and moving files from /tmp can sometimes cause problems. 16338# Hook for its removal unless debugging. 16339# Note that there is a small window in which the directory will not be cleaned: 16340# after its creation but before its name has been assigned to `$tmp'. 16341$debug || 16342{ 16343 tmp= ac_tmp= 16344 trap 'exit_status=$? 16345 : "${ac_tmp:=$tmp}" 16346 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 16347' 0 16348 trap 'as_fn_exit 1' 1 2 13 15 16349} 16350# Create a (secure) tmp directory for tmp files. 16351 16352{ 16353 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 16354 test -d "$tmp" 16355} || 16356{ 16357 tmp=./conf$$-$RANDOM 16358 (umask 077 && mkdir "$tmp") 16359} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 16360ac_tmp=$tmp 16361 16362# Set up the scripts for CONFIG_FILES section. 16363# No need to generate them if there are no CONFIG_FILES. 16364# This happens for instance with `./config.status config.h'. 16365if test -n "$CONFIG_FILES"; then 16366 16367 16368ac_cr=`echo X | tr X '\015'` 16369# On cygwin, bash can eat \r inside `` if the user requested igncr. 16370# But we know of no other shell where ac_cr would be empty at this 16371# point, so we can use a bashism as a fallback. 16372if test "x$ac_cr" = x; then 16373 eval ac_cr=\$\'\\r\' 16374fi 16375ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 16376if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 16377 ac_cs_awk_cr='\\r' 16378else 16379 ac_cs_awk_cr=$ac_cr 16380fi 16381 16382echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 16383_ACEOF 16384 16385 16386{ 16387 echo "cat >conf$$subs.awk <<_ACEOF" && 16388 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 16389 echo "_ACEOF" 16390} >conf$$subs.sh || 16391 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16392ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 16393ac_delim='%!_!# ' 16394for ac_last_try in false false false false false :; do 16395 . ./conf$$subs.sh || 16396 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16397 16398 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 16399 if test $ac_delim_n = $ac_delim_num; then 16400 break 16401 elif $ac_last_try; then 16402 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16403 else 16404 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16405 fi 16406done 16407rm -f conf$$subs.sh 16408 16409cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16410cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 16411_ACEOF 16412sed -n ' 16413h 16414s/^/S["/; s/!.*/"]=/ 16415p 16416g 16417s/^[^!]*!// 16418:repl 16419t repl 16420s/'"$ac_delim"'$// 16421t delim 16422:nl 16423h 16424s/\(.\{148\}\)..*/\1/ 16425t more1 16426s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 16427p 16428n 16429b repl 16430:more1 16431s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16432p 16433g 16434s/.\{148\}// 16435t nl 16436:delim 16437h 16438s/\(.\{148\}\)..*/\1/ 16439t more2 16440s/["\\]/\\&/g; s/^/"/; s/$/"/ 16441p 16442b 16443:more2 16444s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16445p 16446g 16447s/.\{148\}// 16448t delim 16449' <conf$$subs.awk | sed ' 16450/^[^""]/{ 16451 N 16452 s/\n// 16453} 16454' >>$CONFIG_STATUS || ac_write_fail=1 16455rm -f conf$$subs.awk 16456cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16457_ACAWK 16458cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 16459 for (key in S) S_is_set[key] = 1 16460 FS = "" 16461 16462} 16463{ 16464 line = $ 0 16465 nfields = split(line, field, "@") 16466 substed = 0 16467 len = length(field[1]) 16468 for (i = 2; i < nfields; i++) { 16469 key = field[i] 16470 keylen = length(key) 16471 if (S_is_set[key]) { 16472 value = S[key] 16473 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 16474 len += length(value) + length(field[++i]) 16475 substed = 1 16476 } else 16477 len += 1 + keylen 16478 } 16479 16480 print line 16481} 16482 16483_ACAWK 16484_ACEOF 16485cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16486if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 16487 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 16488else 16489 cat 16490fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 16491 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 16492_ACEOF 16493 16494# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 16495# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 16496# trailing colons and then remove the whole line if VPATH becomes empty 16497# (actually we leave an empty line to preserve line numbers). 16498if test "x$srcdir" = x.; then 16499 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 16500h 16501s/// 16502s/^/:/ 16503s/[ ]*$/:/ 16504s/:\$(srcdir):/:/g 16505s/:\${srcdir}:/:/g 16506s/:@srcdir@:/:/g 16507s/^:*// 16508s/:*$// 16509x 16510s/\(=[ ]*\).*/\1/ 16511G 16512s/\n// 16513s/^[^=]*=[ ]*$// 16514}' 16515fi 16516 16517cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16518fi # test -n "$CONFIG_FILES" 16519 16520# Set up the scripts for CONFIG_HEADERS section. 16521# No need to generate them if there are no CONFIG_HEADERS. 16522# This happens for instance with `./config.status Makefile'. 16523if test -n "$CONFIG_HEADERS"; then 16524cat >"$ac_tmp/defines.awk" <<\_ACAWK || 16525BEGIN { 16526_ACEOF 16527 16528# Transform confdefs.h into an awk script `defines.awk', embedded as 16529# here-document in config.status, that substitutes the proper values into 16530# config.h.in to produce config.h. 16531 16532# Create a delimiter string that does not exist in confdefs.h, to ease 16533# handling of long lines. 16534ac_delim='%!_!# ' 16535for ac_last_try in false false :; do 16536 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 16537 if test -z "$ac_tt"; then 16538 break 16539 elif $ac_last_try; then 16540 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 16541 else 16542 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16543 fi 16544done 16545 16546# For the awk script, D is an array of macro values keyed by name, 16547# likewise P contains macro parameters if any. Preserve backslash 16548# newline sequences. 16549 16550ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 16551sed -n ' 16552s/.\{148\}/&'"$ac_delim"'/g 16553t rset 16554:rset 16555s/^[ ]*#[ ]*define[ ][ ]*/ / 16556t def 16557d 16558:def 16559s/\\$// 16560t bsnl 16561s/["\\]/\\&/g 16562s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16563D["\1"]=" \3"/p 16564s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 16565d 16566:bsnl 16567s/["\\]/\\&/g 16568s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16569D["\1"]=" \3\\\\\\n"\\/p 16570t cont 16571s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 16572t cont 16573d 16574:cont 16575n 16576s/.\{148\}/&'"$ac_delim"'/g 16577t clear 16578:clear 16579s/\\$// 16580t bsnlc 16581s/["\\]/\\&/g; s/^/"/; s/$/"/p 16582d 16583:bsnlc 16584s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 16585b cont 16586' <confdefs.h | sed ' 16587s/'"$ac_delim"'/"\\\ 16588"/g' >>$CONFIG_STATUS || ac_write_fail=1 16589 16590cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16591 for (key in D) D_is_set[key] = 1 16592 FS = "" 16593} 16594/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 16595 line = \$ 0 16596 split(line, arg, " ") 16597 if (arg[1] == "#") { 16598 defundef = arg[2] 16599 mac1 = arg[3] 16600 } else { 16601 defundef = substr(arg[1], 2) 16602 mac1 = arg[2] 16603 } 16604 split(mac1, mac2, "(") #) 16605 macro = mac2[1] 16606 prefix = substr(line, 1, index(line, defundef) - 1) 16607 if (D_is_set[macro]) { 16608 # Preserve the white space surrounding the "#". 16609 print prefix "define", macro P[macro] D[macro] 16610 next 16611 } else { 16612 # Replace #undef with comments. This is necessary, for example, 16613 # in the case of _POSIX_SOURCE, which is predefined and required 16614 # on some systems where configure will not decide to define it. 16615 if (defundef == "undef") { 16616 print "/*", prefix defundef, macro, "*/" 16617 next 16618 } 16619 } 16620} 16621{ print } 16622_ACAWK 16623_ACEOF 16624cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16625 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 16626fi # test -n "$CONFIG_HEADERS" 16627 16628 16629eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 16630shift 16631for ac_tag 16632do 16633 case $ac_tag in 16634 :[FHLC]) ac_mode=$ac_tag; continue;; 16635 esac 16636 case $ac_mode$ac_tag in 16637 :[FHL]*:*);; 16638 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 16639 :[FH]-) ac_tag=-:-;; 16640 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 16641 esac 16642 ac_save_IFS=$IFS 16643 IFS=: 16644 set x $ac_tag 16645 IFS=$ac_save_IFS 16646 shift 16647 ac_file=$1 16648 shift 16649 16650 case $ac_mode in 16651 :L) ac_source=$1;; 16652 :[FH]) 16653 ac_file_inputs= 16654 for ac_f 16655 do 16656 case $ac_f in 16657 -) ac_f="$ac_tmp/stdin";; 16658 *) # Look for the file first in the build tree, then in the source tree 16659 # (if the path is not absolute). The absolute path cannot be DOS-style, 16660 # because $ac_f cannot contain `:'. 16661 test -f "$ac_f" || 16662 case $ac_f in 16663 [\\/$]*) false;; 16664 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 16665 esac || 16666 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 16667 esac 16668 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 16669 as_fn_append ac_file_inputs " '$ac_f'" 16670 done 16671 16672 # Let's still pretend it is `configure' which instantiates (i.e., don't 16673 # use $as_me), people would be surprised to read: 16674 # /* config.h. Generated by config.status. */ 16675 configure_input='Generated from '` 16676 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 16677 `' by configure.' 16678 if test x"$ac_file" != x-; then 16679 configure_input="$ac_file. $configure_input" 16680 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 16681$as_echo "$as_me: creating $ac_file" >&6;} 16682 fi 16683 # Neutralize special characters interpreted by sed in replacement strings. 16684 case $configure_input in #( 16685 *\&* | *\|* | *\\* ) 16686 ac_sed_conf_input=`$as_echo "$configure_input" | 16687 sed 's/[\\\\&|]/\\\\&/g'`;; #( 16688 *) ac_sed_conf_input=$configure_input;; 16689 esac 16690 16691 case $ac_tag in 16692 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 16693 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 16694 esac 16695 ;; 16696 esac 16697 16698 ac_dir=`$as_dirname -- "$ac_file" || 16699$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16700 X"$ac_file" : 'X\(//\)[^/]' \| \ 16701 X"$ac_file" : 'X\(//\)$' \| \ 16702 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 16703$as_echo X"$ac_file" | 16704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16705 s//\1/ 16706 q 16707 } 16708 /^X\(\/\/\)[^/].*/{ 16709 s//\1/ 16710 q 16711 } 16712 /^X\(\/\/\)$/{ 16713 s//\1/ 16714 q 16715 } 16716 /^X\(\/\).*/{ 16717 s//\1/ 16718 q 16719 } 16720 s/.*/./; q'` 16721 as_dir="$ac_dir"; as_fn_mkdir_p 16722 ac_builddir=. 16723 16724case "$ac_dir" in 16725.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 16726*) 16727 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 16728 # A ".." for each directory in $ac_dir_suffix. 16729 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 16730 case $ac_top_builddir_sub in 16731 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 16732 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 16733 esac ;; 16734esac 16735ac_abs_top_builddir=$ac_pwd 16736ac_abs_builddir=$ac_pwd$ac_dir_suffix 16737# for backward compatibility: 16738ac_top_builddir=$ac_top_build_prefix 16739 16740case $srcdir in 16741 .) # We are building in place. 16742 ac_srcdir=. 16743 ac_top_srcdir=$ac_top_builddir_sub 16744 ac_abs_top_srcdir=$ac_pwd ;; 16745 [\\/]* | ?:[\\/]* ) # Absolute name. 16746 ac_srcdir=$srcdir$ac_dir_suffix; 16747 ac_top_srcdir=$srcdir 16748 ac_abs_top_srcdir=$srcdir ;; 16749 *) # Relative name. 16750 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 16751 ac_top_srcdir=$ac_top_build_prefix$srcdir 16752 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 16753esac 16754ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 16755 16756 16757 case $ac_mode in 16758 :F) 16759 # 16760 # CONFIG_FILE 16761 # 16762 16763 case $INSTALL in 16764 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 16765 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 16766 esac 16767 ac_MKDIR_P=$MKDIR_P 16768 case $MKDIR_P in 16769 [\\/$]* | ?:[\\/]* ) ;; 16770 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 16771 esac 16772_ACEOF 16773 16774cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16775# If the template does not know about datarootdir, expand it. 16776# FIXME: This hack should be removed a few years after 2.60. 16777ac_datarootdir_hack=; ac_datarootdir_seen= 16778ac_sed_dataroot=' 16779/datarootdir/ { 16780 p 16781 q 16782} 16783/@datadir@/p 16784/@docdir@/p 16785/@infodir@/p 16786/@localedir@/p 16787/@mandir@/p' 16788case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 16789*datarootdir*) ac_datarootdir_seen=yes;; 16790*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 16791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 16792$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 16793_ACEOF 16794cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16795 ac_datarootdir_hack=' 16796 s&@datadir@&$datadir&g 16797 s&@docdir@&$docdir&g 16798 s&@infodir@&$infodir&g 16799 s&@localedir@&$localedir&g 16800 s&@mandir@&$mandir&g 16801 s&\\\${datarootdir}&$datarootdir&g' ;; 16802esac 16803_ACEOF 16804 16805# Neutralize VPATH when `$srcdir' = `.'. 16806# Shell code in configure.ac might set extrasub. 16807# FIXME: do we really want to maintain this feature? 16808cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16809ac_sed_extra="$ac_vpsub 16810$extrasub 16811_ACEOF 16812cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16813:t 16814/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 16815s|@configure_input@|$ac_sed_conf_input|;t t 16816s&@top_builddir@&$ac_top_builddir_sub&;t t 16817s&@top_build_prefix@&$ac_top_build_prefix&;t t 16818s&@srcdir@&$ac_srcdir&;t t 16819s&@abs_srcdir@&$ac_abs_srcdir&;t t 16820s&@top_srcdir@&$ac_top_srcdir&;t t 16821s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 16822s&@builddir@&$ac_builddir&;t t 16823s&@abs_builddir@&$ac_abs_builddir&;t t 16824s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 16825s&@INSTALL@&$ac_INSTALL&;t t 16826s&@MKDIR_P@&$ac_MKDIR_P&;t t 16827$ac_datarootdir_hack 16828" 16829eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 16830 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16831 16832test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 16833 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 16834 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 16835 "$ac_tmp/out"`; test -z "$ac_out"; } && 16836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16837which seems to be undefined. Please make sure it is defined" >&5 16838$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16839which seems to be undefined. Please make sure it is defined" >&2;} 16840 16841 rm -f "$ac_tmp/stdin" 16842 case $ac_file in 16843 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 16844 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 16845 esac \ 16846 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16847 ;; 16848 :H) 16849 # 16850 # CONFIG_HEADER 16851 # 16852 if test x"$ac_file" != x-; then 16853 { 16854 $as_echo "/* $configure_input */" \ 16855 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 16856 } >"$ac_tmp/config.h" \ 16857 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16858 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 16859 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 16860$as_echo "$as_me: $ac_file is unchanged" >&6;} 16861 else 16862 rm -f "$ac_file" 16863 mv "$ac_tmp/config.h" "$ac_file" \ 16864 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16865 fi 16866 else 16867 $as_echo "/* $configure_input */" \ 16868 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 16869 || as_fn_error $? "could not create -" "$LINENO" 5 16870 fi 16871# Compute "$ac_file"'s index in $config_headers. 16872_am_arg="$ac_file" 16873_am_stamp_count=1 16874for _am_header in $config_headers :; do 16875 case $_am_header in 16876 $_am_arg | $_am_arg:* ) 16877 break ;; 16878 * ) 16879 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 16880 esac 16881done 16882echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 16883$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16884 X"$_am_arg" : 'X\(//\)[^/]' \| \ 16885 X"$_am_arg" : 'X\(//\)$' \| \ 16886 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 16887$as_echo X"$_am_arg" | 16888 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16889 s//\1/ 16890 q 16891 } 16892 /^X\(\/\/\)[^/].*/{ 16893 s//\1/ 16894 q 16895 } 16896 /^X\(\/\/\)$/{ 16897 s//\1/ 16898 q 16899 } 16900 /^X\(\/\).*/{ 16901 s//\1/ 16902 q 16903 } 16904 s/.*/./; q'`/stamp-h$_am_stamp_count 16905 ;; 16906 16907 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 16908$as_echo "$as_me: executing $ac_file commands" >&6;} 16909 ;; 16910 esac 16911 16912 16913 case $ac_file$ac_mode in 16914 "libtool":C) 16915 16916 # See if we are running on zsh, and set the options which allow our 16917 # commands through without removal of \ escapes. 16918 if test -n "${ZSH_VERSION+set}" ; then 16919 setopt NO_GLOB_SUBST 16920 fi 16921 16922 cfgfile="${ofile}T" 16923 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 16924 $RM "$cfgfile" 16925 16926 cat <<_LT_EOF >> "$cfgfile" 16927#! $SHELL 16928 16929# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 16930# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 16931# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16932# NOTE: Changes made to this file will be lost: look at ltmain.sh. 16933# 16934# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 16935# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 16936# Foundation, Inc. 16937# Written by Gordon Matzigkeit, 1996 16938# 16939# This file is part of GNU Libtool. 16940# 16941# GNU Libtool is free software; you can redistribute it and/or 16942# modify it under the terms of the GNU General Public License as 16943# published by the Free Software Foundation; either version 2 of 16944# the License, or (at your option) any later version. 16945# 16946# As a special exception to the GNU General Public License, 16947# if you distribute this file as part of a program or library that 16948# is built using GNU Libtool, you may include this file under the 16949# same distribution terms that you use for the rest of that program. 16950# 16951# GNU Libtool is distributed in the hope that it will be useful, 16952# but WITHOUT ANY WARRANTY; without even the implied warranty of 16953# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16954# GNU General Public License for more details. 16955# 16956# You should have received a copy of the GNU General Public License 16957# along with GNU Libtool; see the file COPYING. If not, a copy 16958# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 16959# obtained by writing to the Free Software Foundation, Inc., 16960# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 16961 16962 16963# The names of the tagged configurations supported by this script. 16964available_tags="" 16965 16966# ### BEGIN LIBTOOL CONFIG 16967 16968# Which release of libtool.m4 was used? 16969macro_version=$macro_version 16970macro_revision=$macro_revision 16971 16972# Whether or not to build shared libraries. 16973build_libtool_libs=$enable_shared 16974 16975# Whether or not to build static libraries. 16976build_old_libs=$enable_static 16977 16978# What type of objects to build. 16979pic_mode=$pic_mode 16980 16981# Whether or not to optimize for fast installation. 16982fast_install=$enable_fast_install 16983 16984# Shell to use when invoking shell scripts. 16985SHELL=$lt_SHELL 16986 16987# An echo program that protects backslashes. 16988ECHO=$lt_ECHO 16989 16990# The PATH separator for the build system. 16991PATH_SEPARATOR=$lt_PATH_SEPARATOR 16992 16993# The host system. 16994host_alias=$host_alias 16995host=$host 16996host_os=$host_os 16997 16998# The build system. 16999build_alias=$build_alias 17000build=$build 17001build_os=$build_os 17002 17003# A sed program that does not truncate output. 17004SED=$lt_SED 17005 17006# Sed that helps us avoid accidentally triggering echo(1) options like -n. 17007Xsed="\$SED -e 1s/^X//" 17008 17009# A grep program that handles long lines. 17010GREP=$lt_GREP 17011 17012# An ERE matcher. 17013EGREP=$lt_EGREP 17014 17015# A literal string matcher. 17016FGREP=$lt_FGREP 17017 17018# A BSD- or MS-compatible name lister. 17019NM=$lt_NM 17020 17021# Whether we need soft or hard links. 17022LN_S=$lt_LN_S 17023 17024# What is the maximum length of a command? 17025max_cmd_len=$max_cmd_len 17026 17027# Object file suffix (normally "o"). 17028objext=$ac_objext 17029 17030# Executable file suffix (normally ""). 17031exeext=$exeext 17032 17033# whether the shell understands "unset". 17034lt_unset=$lt_unset 17035 17036# turn spaces into newlines. 17037SP2NL=$lt_lt_SP2NL 17038 17039# turn newlines into spaces. 17040NL2SP=$lt_lt_NL2SP 17041 17042# convert \$build file names to \$host format. 17043to_host_file_cmd=$lt_cv_to_host_file_cmd 17044 17045# convert \$build files to toolchain format. 17046to_tool_file_cmd=$lt_cv_to_tool_file_cmd 17047 17048# An object symbol dumper. 17049OBJDUMP=$lt_OBJDUMP 17050 17051# Method to check whether dependent libraries are shared objects. 17052deplibs_check_method=$lt_deplibs_check_method 17053 17054# Command to use when deplibs_check_method = "file_magic". 17055file_magic_cmd=$lt_file_magic_cmd 17056 17057# How to find potential files when deplibs_check_method = "file_magic". 17058file_magic_glob=$lt_file_magic_glob 17059 17060# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 17061want_nocaseglob=$lt_want_nocaseglob 17062 17063# DLL creation program. 17064DLLTOOL=$lt_DLLTOOL 17065 17066# Command to associate shared and link libraries. 17067sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 17068 17069# The archiver. 17070AR=$lt_AR 17071 17072# Flags to create an archive. 17073AR_FLAGS=$lt_AR_FLAGS 17074 17075# How to feed a file listing to the archiver. 17076archiver_list_spec=$lt_archiver_list_spec 17077 17078# A symbol stripping program. 17079STRIP=$lt_STRIP 17080 17081# Commands used to install an old-style archive. 17082RANLIB=$lt_RANLIB 17083old_postinstall_cmds=$lt_old_postinstall_cmds 17084old_postuninstall_cmds=$lt_old_postuninstall_cmds 17085 17086# Whether to use a lock for old archive extraction. 17087lock_old_archive_extraction=$lock_old_archive_extraction 17088 17089# A C compiler. 17090LTCC=$lt_CC 17091 17092# LTCC compiler flags. 17093LTCFLAGS=$lt_CFLAGS 17094 17095# Take the output of nm and produce a listing of raw symbols and C names. 17096global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17097 17098# Transform the output of nm in a proper C declaration. 17099global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17100 17101# Transform the output of nm in a C name address pair. 17102global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17103 17104# Transform the output of nm in a C name address pair when lib prefix is needed. 17105global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 17106 17107# Specify filename containing input files for \$NM. 17108nm_file_list_spec=$lt_nm_file_list_spec 17109 17110# The root where to search for dependent libraries,and in which our libraries should be installed. 17111lt_sysroot=$lt_sysroot 17112 17113# The name of the directory that contains temporary libtool files. 17114objdir=$objdir 17115 17116# Used to examine libraries when file_magic_cmd begins with "file". 17117MAGIC_CMD=$MAGIC_CMD 17118 17119# Must we lock files when doing compilation? 17120need_locks=$lt_need_locks 17121 17122# Manifest tool. 17123MANIFEST_TOOL=$lt_MANIFEST_TOOL 17124 17125# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 17126DSYMUTIL=$lt_DSYMUTIL 17127 17128# Tool to change global to local symbols on Mac OS X. 17129NMEDIT=$lt_NMEDIT 17130 17131# Tool to manipulate fat objects and archives on Mac OS X. 17132LIPO=$lt_LIPO 17133 17134# ldd/readelf like tool for Mach-O binaries on Mac OS X. 17135OTOOL=$lt_OTOOL 17136 17137# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 17138OTOOL64=$lt_OTOOL64 17139 17140# Old archive suffix (normally "a"). 17141libext=$libext 17142 17143# Shared library suffix (normally ".so"). 17144shrext_cmds=$lt_shrext_cmds 17145 17146# The commands to extract the exported symbol list from a shared archive. 17147extract_expsyms_cmds=$lt_extract_expsyms_cmds 17148 17149# Variables whose values should be saved in libtool wrapper scripts and 17150# restored at link time. 17151variables_saved_for_relink=$lt_variables_saved_for_relink 17152 17153# Do we need the "lib" prefix for modules? 17154need_lib_prefix=$need_lib_prefix 17155 17156# Do we need a version for libraries? 17157need_version=$need_version 17158 17159# Library versioning type. 17160version_type=$version_type 17161 17162# Shared library runtime path variable. 17163runpath_var=$runpath_var 17164 17165# Shared library path variable. 17166shlibpath_var=$shlibpath_var 17167 17168# Is shlibpath searched before the hard-coded library search path? 17169shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17170 17171# Format of library name prefix. 17172libname_spec=$lt_libname_spec 17173 17174# List of archive names. First name is the real one, the rest are links. 17175# The last name is the one that the linker finds with -lNAME 17176library_names_spec=$lt_library_names_spec 17177 17178# The coded name of the library, if different from the real name. 17179soname_spec=$lt_soname_spec 17180 17181# Permission mode override for installation of shared libraries. 17182install_override_mode=$lt_install_override_mode 17183 17184# Command to use after installation of a shared archive. 17185postinstall_cmds=$lt_postinstall_cmds 17186 17187# Command to use after uninstallation of a shared archive. 17188postuninstall_cmds=$lt_postuninstall_cmds 17189 17190# Commands used to finish a libtool library installation in a directory. 17191finish_cmds=$lt_finish_cmds 17192 17193# As "finish_cmds", except a single script fragment to be evaled but 17194# not shown. 17195finish_eval=$lt_finish_eval 17196 17197# Whether we should hardcode library paths into libraries. 17198hardcode_into_libs=$hardcode_into_libs 17199 17200# Compile-time system search path for libraries. 17201sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17202 17203# Run-time system search path for libraries. 17204sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17205 17206# Whether dlopen is supported. 17207dlopen_support=$enable_dlopen 17208 17209# Whether dlopen of programs is supported. 17210dlopen_self=$enable_dlopen_self 17211 17212# Whether dlopen of statically linked programs is supported. 17213dlopen_self_static=$enable_dlopen_self_static 17214 17215# Commands to strip libraries. 17216old_striplib=$lt_old_striplib 17217striplib=$lt_striplib 17218 17219 17220# The linker used to build libraries. 17221LD=$lt_LD 17222 17223# How to create reloadable object files. 17224reload_flag=$lt_reload_flag 17225reload_cmds=$lt_reload_cmds 17226 17227# Commands used to build an old-style archive. 17228old_archive_cmds=$lt_old_archive_cmds 17229 17230# A language specific compiler. 17231CC=$lt_compiler 17232 17233# Is the compiler the GNU compiler? 17234with_gcc=$GCC 17235 17236# Compiler flag to turn off builtin functions. 17237no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 17238 17239# Additional compiler flags for building library objects. 17240pic_flag=$lt_lt_prog_compiler_pic 17241 17242# How to pass a linker flag through the compiler. 17243wl=$lt_lt_prog_compiler_wl 17244 17245# Compiler flag to prevent dynamic linking. 17246link_static_flag=$lt_lt_prog_compiler_static 17247 17248# Does compiler simultaneously support -c and -o options? 17249compiler_c_o=$lt_lt_cv_prog_compiler_c_o 17250 17251# Whether or not to add -lc for building shared libraries. 17252build_libtool_need_lc=$archive_cmds_need_lc 17253 17254# Whether or not to disallow shared libs when runtime libs are static. 17255allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 17256 17257# Compiler flag to allow reflexive dlopens. 17258export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 17259 17260# Compiler flag to generate shared objects directly from archives. 17261whole_archive_flag_spec=$lt_whole_archive_flag_spec 17262 17263# Whether the compiler copes with passing no objects directly. 17264compiler_needs_object=$lt_compiler_needs_object 17265 17266# Create an old-style archive from a shared archive. 17267old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 17268 17269# Create a temporary old-style archive to link instead of a shared archive. 17270old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 17271 17272# Commands used to build a shared archive. 17273archive_cmds=$lt_archive_cmds 17274archive_expsym_cmds=$lt_archive_expsym_cmds 17275 17276# Commands used to build a loadable module if different from building 17277# a shared archive. 17278module_cmds=$lt_module_cmds 17279module_expsym_cmds=$lt_module_expsym_cmds 17280 17281# Whether we are building with GNU ld or not. 17282with_gnu_ld=$lt_with_gnu_ld 17283 17284# Flag that allows shared libraries with undefined symbols to be built. 17285allow_undefined_flag=$lt_allow_undefined_flag 17286 17287# Flag that enforces no undefined symbols. 17288no_undefined_flag=$lt_no_undefined_flag 17289 17290# Flag to hardcode \$libdir into a binary during linking. 17291# This must work even if \$libdir does not exist 17292hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 17293 17294# Whether we need a single "-rpath" flag with a separated argument. 17295hardcode_libdir_separator=$lt_hardcode_libdir_separator 17296 17297# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17298# DIR into the resulting binary. 17299hardcode_direct=$hardcode_direct 17300 17301# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17302# DIR into the resulting binary and the resulting library dependency is 17303# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 17304# library is relocated. 17305hardcode_direct_absolute=$hardcode_direct_absolute 17306 17307# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 17308# into the resulting binary. 17309hardcode_minus_L=$hardcode_minus_L 17310 17311# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 17312# into the resulting binary. 17313hardcode_shlibpath_var=$hardcode_shlibpath_var 17314 17315# Set to "yes" if building a shared library automatically hardcodes DIR 17316# into the library and all subsequent libraries and executables linked 17317# against it. 17318hardcode_automatic=$hardcode_automatic 17319 17320# Set to yes if linker adds runtime paths of dependent libraries 17321# to runtime path list. 17322inherit_rpath=$inherit_rpath 17323 17324# Whether libtool must link a program against all its dependency libraries. 17325link_all_deplibs=$link_all_deplibs 17326 17327# Set to "yes" if exported symbols are required. 17328always_export_symbols=$always_export_symbols 17329 17330# The commands to list exported symbols. 17331export_symbols_cmds=$lt_export_symbols_cmds 17332 17333# Symbols that should not be listed in the preloaded symbols. 17334exclude_expsyms=$lt_exclude_expsyms 17335 17336# Symbols that must always be exported. 17337include_expsyms=$lt_include_expsyms 17338 17339# Commands necessary for linking programs (against libraries) with templates. 17340prelink_cmds=$lt_prelink_cmds 17341 17342# Commands necessary for finishing linking programs. 17343postlink_cmds=$lt_postlink_cmds 17344 17345# Specify filename containing input files. 17346file_list_spec=$lt_file_list_spec 17347 17348# How to hardcode a shared library path into an executable. 17349hardcode_action=$hardcode_action 17350 17351# ### END LIBTOOL CONFIG 17352 17353_LT_EOF 17354 17355 case $host_os in 17356 aix3*) 17357 cat <<\_LT_EOF >> "$cfgfile" 17358# AIX sometimes has problems with the GCC collect2 program. For some 17359# reason, if we set the COLLECT_NAMES environment variable, the problems 17360# vanish in a puff of smoke. 17361if test "X${COLLECT_NAMES+set}" != Xset; then 17362 COLLECT_NAMES= 17363 export COLLECT_NAMES 17364fi 17365_LT_EOF 17366 ;; 17367 esac 17368 17369 17370ltmain="$ac_aux_dir/ltmain.sh" 17371 17372 17373 # We use sed instead of cat because bash on DJGPP gets confused if 17374 # if finds mixed CR/LF and LF-only lines. Since sed operates in 17375 # text mode, it properly converts lines to CR/LF. This bash problem 17376 # is reportedly fixed, but why not run on old versions too? 17377 sed '$q' "$ltmain" >> "$cfgfile" \ 17378 || (rm -f "$cfgfile"; exit 1) 17379 17380 if test x"$xsi_shell" = xyes; then 17381 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 17382func_dirname ()\ 17383{\ 17384\ case ${1} in\ 17385\ */*) func_dirname_result="${1%/*}${2}" ;;\ 17386\ * ) func_dirname_result="${3}" ;;\ 17387\ esac\ 17388} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 17389 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17390 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17391test 0 -eq $? || _lt_function_replace_fail=: 17392 17393 17394 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 17395func_basename ()\ 17396{\ 17397\ func_basename_result="${1##*/}"\ 17398} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 17399 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17400 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17401test 0 -eq $? || _lt_function_replace_fail=: 17402 17403 17404 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 17405func_dirname_and_basename ()\ 17406{\ 17407\ case ${1} in\ 17408\ */*) func_dirname_result="${1%/*}${2}" ;;\ 17409\ * ) func_dirname_result="${3}" ;;\ 17410\ esac\ 17411\ func_basename_result="${1##*/}"\ 17412} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 17413 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17414 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17415test 0 -eq $? || _lt_function_replace_fail=: 17416 17417 17418 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 17419func_stripname ()\ 17420{\ 17421\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 17422\ # positional parameters, so assign one to ordinary parameter first.\ 17423\ func_stripname_result=${3}\ 17424\ func_stripname_result=${func_stripname_result#"${1}"}\ 17425\ func_stripname_result=${func_stripname_result%"${2}"}\ 17426} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 17427 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17428 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17429test 0 -eq $? || _lt_function_replace_fail=: 17430 17431 17432 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 17433func_split_long_opt ()\ 17434{\ 17435\ func_split_long_opt_name=${1%%=*}\ 17436\ func_split_long_opt_arg=${1#*=}\ 17437} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 17438 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17439 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17440test 0 -eq $? || _lt_function_replace_fail=: 17441 17442 17443 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 17444func_split_short_opt ()\ 17445{\ 17446\ func_split_short_opt_arg=${1#??}\ 17447\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 17448} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 17449 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17450 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17451test 0 -eq $? || _lt_function_replace_fail=: 17452 17453 17454 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 17455func_lo2o ()\ 17456{\ 17457\ case ${1} in\ 17458\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 17459\ *) func_lo2o_result=${1} ;;\ 17460\ esac\ 17461} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 17462 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17463 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17464test 0 -eq $? || _lt_function_replace_fail=: 17465 17466 17467 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 17468func_xform ()\ 17469{\ 17470 func_xform_result=${1%.*}.lo\ 17471} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 17472 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17473 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17474test 0 -eq $? || _lt_function_replace_fail=: 17475 17476 17477 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 17478func_arith ()\ 17479{\ 17480 func_arith_result=$(( $* ))\ 17481} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 17482 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17483 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17484test 0 -eq $? || _lt_function_replace_fail=: 17485 17486 17487 sed -e '/^func_len ()$/,/^} # func_len /c\ 17488func_len ()\ 17489{\ 17490 func_len_result=${#1}\ 17491} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 17492 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17493 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17494test 0 -eq $? || _lt_function_replace_fail=: 17495 17496fi 17497 17498if test x"$lt_shell_append" = xyes; then 17499 sed -e '/^func_append ()$/,/^} # func_append /c\ 17500func_append ()\ 17501{\ 17502 eval "${1}+=\\${2}"\ 17503} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 17504 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17505 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17506test 0 -eq $? || _lt_function_replace_fail=: 17507 17508 17509 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 17510func_append_quoted ()\ 17511{\ 17512\ func_quote_for_eval "${2}"\ 17513\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 17514} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 17515 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17516 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17517test 0 -eq $? || _lt_function_replace_fail=: 17518 17519 17520 # Save a `func_append' function call where possible by direct use of '+=' 17521 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 17522 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17523 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17524 test 0 -eq $? || _lt_function_replace_fail=: 17525else 17526 # Save a `func_append' function call even when '+=' is not available 17527 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 17528 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17529 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17530 test 0 -eq $? || _lt_function_replace_fail=: 17531fi 17532 17533if test x"$_lt_function_replace_fail" = x":"; then 17534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 17535$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 17536fi 17537 17538 17539 mv -f "$cfgfile" "$ofile" || 17540 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 17541 chmod +x "$ofile" 17542 17543 ;; 17544 17545 esac 17546done # for ac_tag 17547 17548 17549as_fn_exit 0 17550_ACEOF 17551ac_clean_files=$ac_clean_files_save 17552 17553test $ac_write_fail = 0 || 17554 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 17555 17556 17557# configure is writing to config.log, and then calls config.status. 17558# config.status does its own redirection, appending to config.log. 17559# Unfortunately, on DOS this fails, as config.log is still kept open 17560# by configure, so config.status won't be able to write to it; its 17561# output is simply discarded. So we exec the FD to /dev/null, 17562# effectively closing config.log, so it can be properly (re)opened and 17563# appended to by config.status. When coming back to configure, we 17564# need to make the FD available again. 17565if test "$no_create" != yes; then 17566 ac_cs_success=: 17567 ac_config_status_args= 17568 test "$silent" = yes && 17569 ac_config_status_args="$ac_config_status_args --quiet" 17570 exec 5>/dev/null 17571 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 17572 exec 5>>config.log 17573 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 17574 # would make configure fail if this is the last instruction. 17575 $ac_cs_success || as_fn_exit 1 17576fi 17577if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 17578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 17579$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 17580fi 17581 17582