1#! /bin/sh 2# From configure.ac Revision: 1.4 . 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by GNU Autoconf 2.69 for mifluz 0.26.0. 5# 6# Report bugs to <mifluz-bugs@gnu.org>. 7# 8# 9# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14# 15# 16# Copyright (c) 1999, 2000, 2001 The ht://Dig Group 17# For copyright details, see the file COPYING in your distribution 18# or the GNU General Public License version 2 or later 19# 20## -------------------- ## 21## M4sh Initialization. ## 22## -------------------- ## 23 24# Be more Bourne compatible 25DUALCASE=1; export DUALCASE # for MKS sh 26if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 27 emulate sh 28 NULLCMD=: 29 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 30 # is contrary to our usage. Disable this feature. 31 alias -g '${1+"$@"}'='"$@"' 32 setopt NO_GLOB_SUBST 33else 34 case `(set -o) 2>/dev/null` in #( 35 *posix*) : 36 set -o posix ;; #( 37 *) : 38 ;; 39esac 40fi 41 42 43as_nl=' 44' 45export as_nl 46# Printing a long string crashes Solaris 7 /usr/bin/printf. 47as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 49as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 50# Prefer a ksh shell builtin over an external printf program on Solaris, 51# but without wasting forks for bash or zsh. 52if test -z "$BASH_VERSION$ZSH_VERSION" \ 53 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 54 as_echo='print -r --' 55 as_echo_n='print -rn --' 56elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 57 as_echo='printf %s\n' 58 as_echo_n='printf %s' 59else 60 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 61 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 62 as_echo_n='/usr/ucb/echo -n' 63 else 64 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 65 as_echo_n_body='eval 66 arg=$1; 67 case $arg in #( 68 *"$as_nl"*) 69 expr "X$arg" : "X\\(.*\\)$as_nl"; 70 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 71 esac; 72 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 73 ' 74 export as_echo_n_body 75 as_echo_n='sh -c $as_echo_n_body as_echo' 76 fi 77 export as_echo_body 78 as_echo='sh -c $as_echo_body as_echo' 79fi 80 81# The user is always right. 82if test "${PATH_SEPARATOR+set}" != set; then 83 PATH_SEPARATOR=: 84 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 85 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 86 PATH_SEPARATOR=';' 87 } 88fi 89 90 91# IFS 92# We need space, tab and new line, in precisely that order. Quoting is 93# there to prevent editors from complaining about space-tab. 94# (If _AS_PATH_WALK were called with IFS unset, it would disable word 95# splitting by setting IFS to empty value.) 96IFS=" "" $as_nl" 97 98# Find who we are. Look in the path if we contain no directory separator. 99as_myself= 100case $0 in #(( 101 *[\\/]* ) as_myself=$0 ;; 102 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 103for as_dir in $PATH 104do 105 IFS=$as_save_IFS 106 test -z "$as_dir" && as_dir=. 107 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 108 done 109IFS=$as_save_IFS 110 111 ;; 112esac 113# We did not find ourselves, most probably we were run as `sh COMMAND' 114# in which case we are not to be found in the path. 115if test "x$as_myself" = x; then 116 as_myself=$0 117fi 118if test ! -f "$as_myself"; then 119 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 120 exit 1 121fi 122 123# Unset variables that we do not need and which cause bugs (e.g. in 124# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 125# suppresses any "Segmentation fault" message there. '((' could 126# trigger a bug in pdksh 5.2.14. 127for as_var in BASH_ENV ENV MAIL MAILPATH 128do eval test x\${$as_var+set} = xset \ 129 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 130done 131PS1='$ ' 132PS2='> ' 133PS4='+ ' 134 135# NLS nuisances. 136LC_ALL=C 137export LC_ALL 138LANGUAGE=C 139export LANGUAGE 140 141# CDPATH. 142(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 143 144# Use a proper internal environment variable to ensure we don't fall 145 # into an infinite loop, continuously re-executing ourselves. 146 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 147 _as_can_reexec=no; export _as_can_reexec; 148 # We cannot yet assume a decent shell, so we have to provide a 149# neutralization value for shells without unset; and this also 150# works around shells that cannot unset nonexistent variables. 151# Preserve -v and -x to the replacement shell. 152BASH_ENV=/dev/null 153ENV=/dev/null 154(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 155case $- in # (((( 156 *v*x* | *x*v* ) as_opts=-vx ;; 157 *v* ) as_opts=-v ;; 158 *x* ) as_opts=-x ;; 159 * ) as_opts= ;; 160esac 161exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 162# Admittedly, this is quite paranoid, since all the known shells bail 163# out after a failed `exec'. 164$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 165as_fn_exit 255 166 fi 167 # We don't want this to propagate to other subprocesses. 168 { _as_can_reexec=; unset _as_can_reexec;} 169if test "x$CONFIG_SHELL" = x; then 170 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 171 emulate sh 172 NULLCMD=: 173 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 174 # is contrary to our usage. Disable this feature. 175 alias -g '\${1+\"\$@\"}'='\"\$@\"' 176 setopt NO_GLOB_SUBST 177else 178 case \`(set -o) 2>/dev/null\` in #( 179 *posix*) : 180 set -o posix ;; #( 181 *) : 182 ;; 183esac 184fi 185" 186 as_required="as_fn_return () { (exit \$1); } 187as_fn_success () { as_fn_return 0; } 188as_fn_failure () { as_fn_return 1; } 189as_fn_ret_success () { return 0; } 190as_fn_ret_failure () { return 1; } 191 192exitcode=0 193as_fn_success || { exitcode=1; echo as_fn_success failed.; } 194as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 195as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 196as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 197if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 198 199else 200 exitcode=1; echo positional parameters were not saved. 201fi 202test x\$exitcode = x0 || exit 1 203test -x / || exit 1" 204 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 205 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 206 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 207 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 208test \$(( 1 + 1 )) = 2 || exit 1 209 210 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 211 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 212 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 213 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 214 PATH=/empty FPATH=/empty; export PATH FPATH 215 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 216 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 217 if (eval "$as_required") 2>/dev/null; then : 218 as_have_required=yes 219else 220 as_have_required=no 221fi 222 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 223 224else 225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 226as_found=false 227for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 228do 229 IFS=$as_save_IFS 230 test -z "$as_dir" && as_dir=. 231 as_found=: 232 case $as_dir in #( 233 /*) 234 for as_base in sh bash ksh sh5; do 235 # Try only shells that exist, to save several forks. 236 as_shell=$as_dir/$as_base 237 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 238 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 239 CONFIG_SHELL=$as_shell as_have_required=yes 240 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 241 break 2 242fi 243fi 244 done;; 245 esac 246 as_found=false 247done 248$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 249 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 250 CONFIG_SHELL=$SHELL as_have_required=yes 251fi; } 252IFS=$as_save_IFS 253 254 255 if test "x$CONFIG_SHELL" != x; then : 256 export CONFIG_SHELL 257 # We cannot yet assume a decent shell, so we have to provide a 258# neutralization value for shells without unset; and this also 259# works around shells that cannot unset nonexistent variables. 260# Preserve -v and -x to the replacement shell. 261BASH_ENV=/dev/null 262ENV=/dev/null 263(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 264case $- in # (((( 265 *v*x* | *x*v* ) as_opts=-vx ;; 266 *v* ) as_opts=-v ;; 267 *x* ) as_opts=-x ;; 268 * ) as_opts= ;; 269esac 270exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 271# Admittedly, this is quite paranoid, since all the known shells bail 272# out after a failed `exec'. 273$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 274exit 255 275fi 276 277 if test x$as_have_required = xno; then : 278 $as_echo "$0: This script requires a shell more modern than all" 279 $as_echo "$0: the shells that I found on your system." 280 if test x${ZSH_VERSION+set} = xset ; then 281 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 282 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 283 else 284 $as_echo "$0: Please tell bug-autoconf@gnu.org and 285$0: mifluz-bugs@gnu.org about your system, including any 286$0: error possibly output before this message. Then install 287$0: a modern shell, or manually run the script under such a 288$0: shell if you do have one." 289 fi 290 exit 1 291fi 292fi 293fi 294SHELL=${CONFIG_SHELL-/bin/sh} 295export SHELL 296# Unset more variables known to interfere with behavior of common tools. 297CLICOLOR_FORCE= GREP_OPTIONS= 298unset CLICOLOR_FORCE GREP_OPTIONS 299 300## --------------------- ## 301## M4sh Shell Functions. ## 302## --------------------- ## 303# as_fn_unset VAR 304# --------------- 305# Portably unset VAR. 306as_fn_unset () 307{ 308 { eval $1=; unset $1;} 309} 310as_unset=as_fn_unset 311 312# as_fn_set_status STATUS 313# ----------------------- 314# Set $? to STATUS, without forking. 315as_fn_set_status () 316{ 317 return $1 318} # as_fn_set_status 319 320# as_fn_exit STATUS 321# ----------------- 322# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 323as_fn_exit () 324{ 325 set +e 326 as_fn_set_status $1 327 exit $1 328} # as_fn_exit 329 330# as_fn_mkdir_p 331# ------------- 332# Create "$as_dir" as a directory, including parents if necessary. 333as_fn_mkdir_p () 334{ 335 336 case $as_dir in #( 337 -*) as_dir=./$as_dir;; 338 esac 339 test -d "$as_dir" || eval $as_mkdir_p || { 340 as_dirs= 341 while :; do 342 case $as_dir in #( 343 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 344 *) as_qdir=$as_dir;; 345 esac 346 as_dirs="'$as_qdir' $as_dirs" 347 as_dir=`$as_dirname -- "$as_dir" || 348$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 349 X"$as_dir" : 'X\(//\)[^/]' \| \ 350 X"$as_dir" : 'X\(//\)$' \| \ 351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 352$as_echo X"$as_dir" | 353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 354 s//\1/ 355 q 356 } 357 /^X\(\/\/\)[^/].*/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\/\)$/{ 362 s//\1/ 363 q 364 } 365 /^X\(\/\).*/{ 366 s//\1/ 367 q 368 } 369 s/.*/./; q'` 370 test -d "$as_dir" && break 371 done 372 test -z "$as_dirs" || eval "mkdir $as_dirs" 373 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 374 375 376} # as_fn_mkdir_p 377 378# as_fn_executable_p FILE 379# ----------------------- 380# Test if FILE is an executable regular file. 381as_fn_executable_p () 382{ 383 test -f "$1" && test -x "$1" 384} # as_fn_executable_p 385# as_fn_append VAR VALUE 386# ---------------------- 387# Append the text in VALUE to the end of the definition contained in VAR. Take 388# advantage of any shell optimizations that allow amortized linear growth over 389# repeated appends, instead of the typical quadratic growth present in naive 390# implementations. 391if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 392 eval 'as_fn_append () 393 { 394 eval $1+=\$2 395 }' 396else 397 as_fn_append () 398 { 399 eval $1=\$$1\$2 400 } 401fi # as_fn_append 402 403# as_fn_arith ARG... 404# ------------------ 405# Perform arithmetic evaluation on the ARGs, and store the result in the 406# global $as_val. Take advantage of shells that can avoid forks. The arguments 407# must be portable across $(()) and expr. 408if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 409 eval 'as_fn_arith () 410 { 411 as_val=$(( $* )) 412 }' 413else 414 as_fn_arith () 415 { 416 as_val=`expr "$@" || test $? -eq 1` 417 } 418fi # as_fn_arith 419 420 421# as_fn_error STATUS ERROR [LINENO LOG_FD] 422# ---------------------------------------- 423# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 424# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 425# script with STATUS, using 1 if that was 0. 426as_fn_error () 427{ 428 as_status=$1; test $as_status -eq 0 && as_status=1 429 if test "$4"; then 430 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 431 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 432 fi 433 $as_echo "$as_me: error: $2" >&2 434 as_fn_exit $as_status 435} # as_fn_error 436 437if expr a : '\(a\)' >/dev/null 2>&1 && 438 test "X`expr 00001 : '.*\(...\)'`" = X001; then 439 as_expr=expr 440else 441 as_expr=false 442fi 443 444if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 445 as_basename=basename 446else 447 as_basename=false 448fi 449 450if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 451 as_dirname=dirname 452else 453 as_dirname=false 454fi 455 456as_me=`$as_basename -- "$0" || 457$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 458 X"$0" : 'X\(//\)$' \| \ 459 X"$0" : 'X\(/\)' \| . 2>/dev/null || 460$as_echo X/"$0" | 461 sed '/^.*\/\([^/][^/]*\)\/*$/{ 462 s//\1/ 463 q 464 } 465 /^X\/\(\/\/\)$/{ 466 s//\1/ 467 q 468 } 469 /^X\/\(\/\).*/{ 470 s//\1/ 471 q 472 } 473 s/.*/./; q'` 474 475# Avoid depending upon Character Ranges. 476as_cr_letters='abcdefghijklmnopqrstuvwxyz' 477as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 478as_cr_Letters=$as_cr_letters$as_cr_LETTERS 479as_cr_digits='0123456789' 480as_cr_alnum=$as_cr_Letters$as_cr_digits 481 482 483 as_lineno_1=$LINENO as_lineno_1a=$LINENO 484 as_lineno_2=$LINENO as_lineno_2a=$LINENO 485 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 486 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 487 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 488 sed -n ' 489 p 490 /[$]LINENO/= 491 ' <$as_myself | 492 sed ' 493 s/[$]LINENO.*/&-/ 494 t lineno 495 b 496 :lineno 497 N 498 :loop 499 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 500 t loop 501 s/-\n.*// 502 ' >$as_me.lineno && 503 chmod +x "$as_me.lineno" || 504 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 505 506 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 507 # already done that, so ensure we don't try to do so again and fall 508 # in an infinite loop. This has already happened in practice. 509 _as_can_reexec=no; export _as_can_reexec 510 # Don't try to exec as it changes $[0], causing all sort of problems 511 # (the dirname of $[0] is not the place where we might find the 512 # original and so on. Autoconf is especially sensitive to this). 513 . "./$as_me.lineno" 514 # Exit status is that of the last command. 515 exit 516} 517 518ECHO_C= ECHO_N= ECHO_T= 519case `echo -n x` in #((((( 520-n*) 521 case `echo 'xy\c'` in 522 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 523 xy) ECHO_C='\c';; 524 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 525 ECHO_T=' ';; 526 esac;; 527*) 528 ECHO_N='-n';; 529esac 530 531rm -f conf$$ conf$$.exe conf$$.file 532if test -d conf$$.dir; then 533 rm -f conf$$.dir/conf$$.file 534else 535 rm -f conf$$.dir 536 mkdir conf$$.dir 2>/dev/null 537fi 538if (echo >conf$$.file) 2>/dev/null; then 539 if ln -s conf$$.file conf$$ 2>/dev/null; then 540 as_ln_s='ln -s' 541 # ... but there are two gotchas: 542 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 543 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 544 # In both cases, we have to default to `cp -pR'. 545 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 546 as_ln_s='cp -pR' 547 elif ln conf$$.file conf$$ 2>/dev/null; then 548 as_ln_s=ln 549 else 550 as_ln_s='cp -pR' 551 fi 552else 553 as_ln_s='cp -pR' 554fi 555rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 556rmdir conf$$.dir 2>/dev/null 557 558if mkdir -p . 2>/dev/null; then 559 as_mkdir_p='mkdir -p "$as_dir"' 560else 561 test -d ./-p && rmdir ./-p 562 as_mkdir_p=false 563fi 564 565as_test_x='test -x' 566as_executable_p=as_fn_executable_p 567 568# Sed expression to map a string onto a valid CPP name. 569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 570 571# Sed expression to map a string onto a valid variable name. 572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 573 574SHELL=${CONFIG_SHELL-/bin/sh} 575 576 577test -n "$DJDIR" || exec 7<&0 </dev/null 578exec 6>&1 579 580# Name of the host. 581# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 582# so uname gets run too. 583ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 584 585# 586# Initializations. 587# 588ac_default_prefix=/usr/local 589ac_clean_files= 590ac_config_libobj_dir=. 591LIBOBJS= 592cross_compiling=no 593subdirs= 594MFLAGS= 595MAKEFLAGS= 596 597# Identity of this package. 598PACKAGE_NAME='mifluz' 599PACKAGE_TARNAME='mifluz' 600PACKAGE_VERSION='0.26.0' 601PACKAGE_STRING='mifluz 0.26.0' 602PACKAGE_BUGREPORT='mifluz-bugs@gnu.org' 603PACKAGE_URL='' 604 605ac_unique_file="config.h.in" 606# Factoring default headers for most tests. 607ac_includes_default="\ 608#include <stdio.h> 609#ifdef HAVE_SYS_TYPES_H 610# include <sys/types.h> 611#endif 612#ifdef HAVE_SYS_STAT_H 613# include <sys/stat.h> 614#endif 615#ifdef STDC_HEADERS 616# include <stdlib.h> 617# include <stddef.h> 618#else 619# ifdef HAVE_STDLIB_H 620# include <stdlib.h> 621# endif 622#endif 623#ifdef HAVE_STRING_H 624# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 625# include <memory.h> 626# endif 627# include <string.h> 628#endif 629#ifdef HAVE_STRINGS_H 630# include <strings.h> 631#endif 632#ifdef HAVE_INTTYPES_H 633# include <inttypes.h> 634#endif 635#ifdef HAVE_STDINT_H 636# include <stdint.h> 637#endif 638#ifdef HAVE_UNISTD_H 639# include <unistd.h> 640#endif" 641 642ac_subst_vars='am__EXEEXT_FALSE 643am__EXEEXT_TRUE 644LTLIBOBJS 645ALLOCA 646LIBOBJS 647LTLIBICONV 648LIBICONV 649db_alignp_t_decl 650db_align_t_decl 651int32_decl 652u_int32_decl 653int16_decl 654u_int16_decl 655u_int8_decl 656u_long_decl 657u_int_decl 658u_short_decl 659u_char_decl 660ssize_t_decl 661CCACHE 662CXXCPP 663am__fastdepCXX_FALSE 664am__fastdepCXX_TRUE 665CXXDEPMODE 666ac_ct_CXX 667CXXFLAGS 668CXX 669YFLAGS 670YACC 671LEXLIB 672LEX_OUTPUT_ROOT 673LEX 674OTOOL64 675OTOOL 676LIPO 677NMEDIT 678DSYMUTIL 679MANIFEST_TOOL 680RANLIB 681ac_ct_AR 682DLLTOOL 683OBJDUMP 684LN_S 685NM 686ac_ct_DUMPBIN 687DUMPBIN 688LD 689FGREP 690LIBTOOL 691EGREP 692GREP 693CPP 694am__fastdepCC_FALSE 695am__fastdepCC_TRUE 696CCDEPMODE 697am__nodep 698AMDEPBACKSLASH 699AMDEP_FALSE 700AMDEP_TRUE 701am__quote 702am__include 703DEPDIR 704OBJEXT 705EXEEXT 706ac_ct_CC 707CPPFLAGS 708LDFLAGS 709CFLAGS 710CC 711host_os 712host_vendor 713host_cpu 714host 715build_os 716build_vendor 717build_cpu 718build 719TIMEV 720TIME 721TAR 722RRDTOOL 723DVIPS 724TEXI2DVI 725GUNZIP 726FIND 727PERL 728SED 729AR 730am__untar 731am__tar 732AMTAR 733am__leading_dot 734SET_MAKE 735AWK 736mkdir_p 737MKDIR_P 738INSTALL_STRIP_PROGRAM 739STRIP 740install_sh 741MAKEINFO 742AUTOHEADER 743AUTOMAKE 744AUTOCONF 745ACLOCAL 746VERSION 747PACKAGE 748CYGPATH_W 749am__isrc 750INSTALL_DATA 751INSTALL_SCRIPT 752INSTALL_PROGRAM 753MICRO_VERSION 754MINOR_VERSION 755MAJOR_VERSION 756target_alias 757host_alias 758build_alias 759LIBS 760ECHO_T 761ECHO_N 762ECHO_C 763DEFS 764mandir 765localedir 766libdir 767psdir 768pdfdir 769dvidir 770htmldir 771infodir 772docdir 773oldincludedir 774includedir 775localstatedir 776sharedstatedir 777sysconfdir 778datadir 779datarootdir 780libexecdir 781sbindir 782bindir 783program_transform_name 784prefix 785exec_prefix 786PACKAGE_URL 787PACKAGE_BUGREPORT 788PACKAGE_STRING 789PACKAGE_VERSION 790PACKAGE_TARNAME 791PACKAGE_NAME 792PATH_SEPARATOR 793SHELL' 794ac_subst_files='' 795ac_user_opts=' 796enable_option_checking 797enable_dependency_tracking 798enable_shared 799enable_static 800with_pic 801enable_fast_install 802with_gnu_ld 803with_sysroot 804enable_libtool_lock 805with_ccache 806with_dmalloc 807enable_bigfile 808enable_debug 809enable_debug_rop 810enable_debug_wop 811enable_diagnostic 812enable_posixmutexes 813enable_uimutexes 814with_zlib 815enable_rpath 816with_libiconv_prefix 817with_unac 818' 819 ac_precious_vars='build_alias 820host_alias 821target_alias 822CC 823CFLAGS 824LDFLAGS 825LIBS 826CPPFLAGS 827CPP 828YACC 829YFLAGS 830CXX 831CXXFLAGS 832CCC 833CXXCPP' 834 835 836# Initialize some variables set by options. 837ac_init_help= 838ac_init_version=false 839ac_unrecognized_opts= 840ac_unrecognized_sep= 841# The variables have the same names as the options, with 842# dashes changed to underlines. 843cache_file=/dev/null 844exec_prefix=NONE 845no_create= 846no_recursion= 847prefix=NONE 848program_prefix=NONE 849program_suffix=NONE 850program_transform_name=s,x,x, 851silent= 852site= 853srcdir= 854verbose= 855x_includes=NONE 856x_libraries=NONE 857 858# Installation directory options. 859# These are left unexpanded so users can "make install exec_prefix=/foo" 860# and all the variables that are supposed to be based on exec_prefix 861# by default will actually change. 862# Use braces instead of parens because sh, perl, etc. also accept them. 863# (The list follows the same order as the GNU Coding Standards.) 864bindir='${exec_prefix}/bin' 865sbindir='${exec_prefix}/sbin' 866libexecdir='${exec_prefix}/libexec' 867datarootdir='${prefix}/share' 868datadir='${datarootdir}' 869sysconfdir='${prefix}/etc' 870sharedstatedir='${prefix}/com' 871localstatedir='${prefix}/var' 872includedir='${prefix}/include' 873oldincludedir='/usr/include' 874docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 875infodir='${datarootdir}/info' 876htmldir='${docdir}' 877dvidir='${docdir}' 878pdfdir='${docdir}' 879psdir='${docdir}' 880libdir='${exec_prefix}/lib' 881localedir='${datarootdir}/locale' 882mandir='${datarootdir}/man' 883 884ac_prev= 885ac_dashdash= 886for ac_option 887do 888 # If the previous option needs an argument, assign it. 889 if test -n "$ac_prev"; then 890 eval $ac_prev=\$ac_option 891 ac_prev= 892 continue 893 fi 894 895 case $ac_option in 896 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 897 *=) ac_optarg= ;; 898 *) ac_optarg=yes ;; 899 esac 900 901 # Accept the important Cygnus configure options, so we can diagnose typos. 902 903 case $ac_dashdash$ac_option in 904 --) 905 ac_dashdash=yes ;; 906 907 -bindir | --bindir | --bindi | --bind | --bin | --bi) 908 ac_prev=bindir ;; 909 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 910 bindir=$ac_optarg ;; 911 912 -build | --build | --buil | --bui | --bu) 913 ac_prev=build_alias ;; 914 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 915 build_alias=$ac_optarg ;; 916 917 -cache-file | --cache-file | --cache-fil | --cache-fi \ 918 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 919 ac_prev=cache_file ;; 920 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 921 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 922 cache_file=$ac_optarg ;; 923 924 --config-cache | -C) 925 cache_file=config.cache ;; 926 927 -datadir | --datadir | --datadi | --datad) 928 ac_prev=datadir ;; 929 -datadir=* | --datadir=* | --datadi=* | --datad=*) 930 datadir=$ac_optarg ;; 931 932 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 933 | --dataroo | --dataro | --datar) 934 ac_prev=datarootdir ;; 935 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 936 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 937 datarootdir=$ac_optarg ;; 938 939 -disable-* | --disable-*) 940 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 941 # Reject names that are not valid shell variable names. 942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 943 as_fn_error $? "invalid feature name: $ac_useropt" 944 ac_useropt_orig=$ac_useropt 945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 946 case $ac_user_opts in 947 *" 948"enable_$ac_useropt" 949"*) ;; 950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 951 ac_unrecognized_sep=', ';; 952 esac 953 eval enable_$ac_useropt=no ;; 954 955 -docdir | --docdir | --docdi | --doc | --do) 956 ac_prev=docdir ;; 957 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 958 docdir=$ac_optarg ;; 959 960 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 961 ac_prev=dvidir ;; 962 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 963 dvidir=$ac_optarg ;; 964 965 -enable-* | --enable-*) 966 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 967 # Reject names that are not valid shell variable names. 968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 969 as_fn_error $? "invalid feature name: $ac_useropt" 970 ac_useropt_orig=$ac_useropt 971 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 972 case $ac_user_opts in 973 *" 974"enable_$ac_useropt" 975"*) ;; 976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 977 ac_unrecognized_sep=', ';; 978 esac 979 eval enable_$ac_useropt=\$ac_optarg ;; 980 981 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 982 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 983 | --exec | --exe | --ex) 984 ac_prev=exec_prefix ;; 985 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 986 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 987 | --exec=* | --exe=* | --ex=*) 988 exec_prefix=$ac_optarg ;; 989 990 -gas | --gas | --ga | --g) 991 # Obsolete; use --with-gas. 992 with_gas=yes ;; 993 994 -help | --help | --hel | --he | -h) 995 ac_init_help=long ;; 996 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 997 ac_init_help=recursive ;; 998 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 999 ac_init_help=short ;; 1000 1001 -host | --host | --hos | --ho) 1002 ac_prev=host_alias ;; 1003 -host=* | --host=* | --hos=* | --ho=*) 1004 host_alias=$ac_optarg ;; 1005 1006 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1007 ac_prev=htmldir ;; 1008 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1009 | --ht=*) 1010 htmldir=$ac_optarg ;; 1011 1012 -includedir | --includedir | --includedi | --included | --include \ 1013 | --includ | --inclu | --incl | --inc) 1014 ac_prev=includedir ;; 1015 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1016 | --includ=* | --inclu=* | --incl=* | --inc=*) 1017 includedir=$ac_optarg ;; 1018 1019 -infodir | --infodir | --infodi | --infod | --info | --inf) 1020 ac_prev=infodir ;; 1021 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1022 infodir=$ac_optarg ;; 1023 1024 -libdir | --libdir | --libdi | --libd) 1025 ac_prev=libdir ;; 1026 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1027 libdir=$ac_optarg ;; 1028 1029 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1030 | --libexe | --libex | --libe) 1031 ac_prev=libexecdir ;; 1032 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1033 | --libexe=* | --libex=* | --libe=*) 1034 libexecdir=$ac_optarg ;; 1035 1036 -localedir | --localedir | --localedi | --localed | --locale) 1037 ac_prev=localedir ;; 1038 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1039 localedir=$ac_optarg ;; 1040 1041 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1042 | --localstate | --localstat | --localsta | --localst | --locals) 1043 ac_prev=localstatedir ;; 1044 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1045 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1046 localstatedir=$ac_optarg ;; 1047 1048 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1049 ac_prev=mandir ;; 1050 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1051 mandir=$ac_optarg ;; 1052 1053 -nfp | --nfp | --nf) 1054 # Obsolete; use --without-fp. 1055 with_fp=no ;; 1056 1057 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1058 | --no-cr | --no-c | -n) 1059 no_create=yes ;; 1060 1061 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1062 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1063 no_recursion=yes ;; 1064 1065 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1066 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1067 | --oldin | --oldi | --old | --ol | --o) 1068 ac_prev=oldincludedir ;; 1069 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1070 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1071 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1072 oldincludedir=$ac_optarg ;; 1073 1074 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1075 ac_prev=prefix ;; 1076 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1077 prefix=$ac_optarg ;; 1078 1079 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1080 | --program-pre | --program-pr | --program-p) 1081 ac_prev=program_prefix ;; 1082 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1083 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1084 program_prefix=$ac_optarg ;; 1085 1086 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1087 | --program-suf | --program-su | --program-s) 1088 ac_prev=program_suffix ;; 1089 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1090 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1091 program_suffix=$ac_optarg ;; 1092 1093 -program-transform-name | --program-transform-name \ 1094 | --program-transform-nam | --program-transform-na \ 1095 | --program-transform-n | --program-transform- \ 1096 | --program-transform | --program-transfor \ 1097 | --program-transfo | --program-transf \ 1098 | --program-trans | --program-tran \ 1099 | --progr-tra | --program-tr | --program-t) 1100 ac_prev=program_transform_name ;; 1101 -program-transform-name=* | --program-transform-name=* \ 1102 | --program-transform-nam=* | --program-transform-na=* \ 1103 | --program-transform-n=* | --program-transform-=* \ 1104 | --program-transform=* | --program-transfor=* \ 1105 | --program-transfo=* | --program-transf=* \ 1106 | --program-trans=* | --program-tran=* \ 1107 | --progr-tra=* | --program-tr=* | --program-t=*) 1108 program_transform_name=$ac_optarg ;; 1109 1110 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1111 ac_prev=pdfdir ;; 1112 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1113 pdfdir=$ac_optarg ;; 1114 1115 -psdir | --psdir | --psdi | --psd | --ps) 1116 ac_prev=psdir ;; 1117 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1118 psdir=$ac_optarg ;; 1119 1120 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1121 | -silent | --silent | --silen | --sile | --sil) 1122 silent=yes ;; 1123 1124 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1125 ac_prev=sbindir ;; 1126 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1127 | --sbi=* | --sb=*) 1128 sbindir=$ac_optarg ;; 1129 1130 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1131 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1132 | --sharedst | --shareds | --shared | --share | --shar \ 1133 | --sha | --sh) 1134 ac_prev=sharedstatedir ;; 1135 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1136 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1137 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1138 | --sha=* | --sh=*) 1139 sharedstatedir=$ac_optarg ;; 1140 1141 -site | --site | --sit) 1142 ac_prev=site ;; 1143 -site=* | --site=* | --sit=*) 1144 site=$ac_optarg ;; 1145 1146 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1147 ac_prev=srcdir ;; 1148 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1149 srcdir=$ac_optarg ;; 1150 1151 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1152 | --syscon | --sysco | --sysc | --sys | --sy) 1153 ac_prev=sysconfdir ;; 1154 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1155 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1156 sysconfdir=$ac_optarg ;; 1157 1158 -target | --target | --targe | --targ | --tar | --ta | --t) 1159 ac_prev=target_alias ;; 1160 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1161 target_alias=$ac_optarg ;; 1162 1163 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1164 verbose=yes ;; 1165 1166 -version | --version | --versio | --versi | --vers | -V) 1167 ac_init_version=: ;; 1168 1169 -with-* | --with-*) 1170 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 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--with-$ac_useropt_orig" 1181 ac_unrecognized_sep=', ';; 1182 esac 1183 eval with_$ac_useropt=\$ac_optarg ;; 1184 1185 -without-* | --without-*) 1186 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1187 # Reject names that are not valid shell variable names. 1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1189 as_fn_error $? "invalid package name: $ac_useropt" 1190 ac_useropt_orig=$ac_useropt 1191 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1192 case $ac_user_opts in 1193 *" 1194"with_$ac_useropt" 1195"*) ;; 1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1197 ac_unrecognized_sep=', ';; 1198 esac 1199 eval with_$ac_useropt=no ;; 1200 1201 --x) 1202 # Obsolete; use --with-x. 1203 with_x=yes ;; 1204 1205 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1206 | --x-incl | --x-inc | --x-in | --x-i) 1207 ac_prev=x_includes ;; 1208 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1209 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1210 x_includes=$ac_optarg ;; 1211 1212 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1213 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1214 ac_prev=x_libraries ;; 1215 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1216 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1217 x_libraries=$ac_optarg ;; 1218 1219 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1220Try \`$0 --help' for more information" 1221 ;; 1222 1223 *=*) 1224 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1225 # Reject names that are not valid shell variable names. 1226 case $ac_envvar in #( 1227 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1228 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1229 esac 1230 eval $ac_envvar=\$ac_optarg 1231 export $ac_envvar ;; 1232 1233 *) 1234 # FIXME: should be removed in autoconf 3.0. 1235 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1236 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1237 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1238 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1239 ;; 1240 1241 esac 1242done 1243 1244if test -n "$ac_prev"; then 1245 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1246 as_fn_error $? "missing argument to $ac_option" 1247fi 1248 1249if test -n "$ac_unrecognized_opts"; then 1250 case $enable_option_checking in 1251 no) ;; 1252 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1253 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1254 esac 1255fi 1256 1257# Check all directory arguments for consistency. 1258for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1259 datadir sysconfdir sharedstatedir localstatedir includedir \ 1260 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1261 libdir localedir mandir 1262do 1263 eval ac_val=\$$ac_var 1264 # Remove trailing slashes. 1265 case $ac_val in 1266 */ ) 1267 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1268 eval $ac_var=\$ac_val;; 1269 esac 1270 # Be sure to have absolute directory names. 1271 case $ac_val in 1272 [\\/$]* | ?:[\\/]* ) continue;; 1273 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1274 esac 1275 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1276done 1277 1278# There might be people who depend on the old broken behavior: `$host' 1279# used to hold the argument of --host etc. 1280# FIXME: To remove some day. 1281build=$build_alias 1282host=$host_alias 1283target=$target_alias 1284 1285# FIXME: To remove some day. 1286if test "x$host_alias" != x; then 1287 if test "x$build_alias" = x; then 1288 cross_compiling=maybe 1289 elif test "x$build_alias" != "x$host_alias"; then 1290 cross_compiling=yes 1291 fi 1292fi 1293 1294ac_tool_prefix= 1295test -n "$host_alias" && ac_tool_prefix=$host_alias- 1296 1297test "$silent" = yes && exec 6>/dev/null 1298 1299 1300ac_pwd=`pwd` && test -n "$ac_pwd" && 1301ac_ls_di=`ls -di .` && 1302ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1303 as_fn_error $? "working directory cannot be determined" 1304test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1305 as_fn_error $? "pwd does not report name of working directory" 1306 1307 1308# Find the source files, if location was not specified. 1309if test -z "$srcdir"; then 1310 ac_srcdir_defaulted=yes 1311 # Try the directory containing this script, then the parent directory. 1312 ac_confdir=`$as_dirname -- "$as_myself" || 1313$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1314 X"$as_myself" : 'X\(//\)[^/]' \| \ 1315 X"$as_myself" : 'X\(//\)$' \| \ 1316 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1317$as_echo X"$as_myself" | 1318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1319 s//\1/ 1320 q 1321 } 1322 /^X\(\/\/\)[^/].*/{ 1323 s//\1/ 1324 q 1325 } 1326 /^X\(\/\/\)$/{ 1327 s//\1/ 1328 q 1329 } 1330 /^X\(\/\).*/{ 1331 s//\1/ 1332 q 1333 } 1334 s/.*/./; q'` 1335 srcdir=$ac_confdir 1336 if test ! -r "$srcdir/$ac_unique_file"; then 1337 srcdir=.. 1338 fi 1339else 1340 ac_srcdir_defaulted=no 1341fi 1342if test ! -r "$srcdir/$ac_unique_file"; then 1343 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1344 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1345fi 1346ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1347ac_abs_confdir=`( 1348 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1349 pwd)` 1350# When building in place, set srcdir=. 1351if test "$ac_abs_confdir" = "$ac_pwd"; then 1352 srcdir=. 1353fi 1354# Remove unnecessary trailing slashes from srcdir. 1355# Double slashes in file names in object file debugging info 1356# mess up M-x gdb in Emacs. 1357case $srcdir in 1358*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1359esac 1360for ac_var in $ac_precious_vars; do 1361 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1362 eval ac_env_${ac_var}_value=\$${ac_var} 1363 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1364 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1365done 1366 1367# 1368# Report the --help message. 1369# 1370if test "$ac_init_help" = "long"; then 1371 # Omit some internal or obsolete options to make the list less imposing. 1372 # This message is too long to be a string in the A/UX 3.1 sh. 1373 cat <<_ACEOF 1374\`configure' configures mifluz 0.26.0 to adapt to many kinds of systems. 1375 1376Usage: $0 [OPTION]... [VAR=VALUE]... 1377 1378To assign environment variables (e.g., CC, CFLAGS...), specify them as 1379VAR=VALUE. See below for descriptions of some of the useful variables. 1380 1381Defaults for the options are specified in brackets. 1382 1383Configuration: 1384 -h, --help display this help and exit 1385 --help=short display options specific to this package 1386 --help=recursive display the short help of all the included packages 1387 -V, --version display version information and exit 1388 -q, --quiet, --silent do not print \`checking ...' messages 1389 --cache-file=FILE cache test results in FILE [disabled] 1390 -C, --config-cache alias for \`--cache-file=config.cache' 1391 -n, --no-create do not create output files 1392 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1393 1394Installation directories: 1395 --prefix=PREFIX install architecture-independent files in PREFIX 1396 [$ac_default_prefix] 1397 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1398 [PREFIX] 1399 1400By default, \`make install' will install all the files in 1401\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1402an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1403for instance \`--prefix=\$HOME'. 1404 1405For better control, use the options below. 1406 1407Fine tuning of the installation directories: 1408 --bindir=DIR user executables [EPREFIX/bin] 1409 --sbindir=DIR system admin executables [EPREFIX/sbin] 1410 --libexecdir=DIR program executables [EPREFIX/libexec] 1411 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1412 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1413 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1414 --libdir=DIR object code libraries [EPREFIX/lib] 1415 --includedir=DIR C header files [PREFIX/include] 1416 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1417 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1418 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1419 --infodir=DIR info documentation [DATAROOTDIR/info] 1420 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1421 --mandir=DIR man documentation [DATAROOTDIR/man] 1422 --docdir=DIR documentation root [DATAROOTDIR/doc/mifluz] 1423 --htmldir=DIR html documentation [DOCDIR] 1424 --dvidir=DIR dvi documentation [DOCDIR] 1425 --pdfdir=DIR pdf documentation [DOCDIR] 1426 --psdir=DIR ps documentation [DOCDIR] 1427_ACEOF 1428 1429 cat <<\_ACEOF 1430 1431Program names: 1432 --program-prefix=PREFIX prepend PREFIX to installed program names 1433 --program-suffix=SUFFIX append SUFFIX to installed program names 1434 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1435 1436System types: 1437 --build=BUILD configure for building on BUILD [guessed] 1438 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1439_ACEOF 1440fi 1441 1442if test -n "$ac_init_help"; then 1443 case $ac_init_help in 1444 short | recursive ) echo "Configuration of mifluz 0.26.0:";; 1445 esac 1446 cat <<\_ACEOF 1447 1448Optional Features: 1449 --disable-option-checking ignore unrecognized --enable/--with options 1450 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1451 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1452 --disable-dependency-tracking speeds up one-time build 1453 --enable-dependency-tracking do not reject slow dependency extractors 1454 --enable-shared[=PKGS] build shared libraries [default=yes] 1455 --enable-static[=PKGS] build static libraries [default=yes] 1456 --enable-fast-install[=PKGS] 1457 optimize for fast installation [default=yes] 1458 --disable-libtool-lock avoid locking (might break parallel builds) 1459 --disable-bigfile Disable Linux, AIX, HP/UX, Solaris big files. 1460 --enable-debug Build a debugging version. 1461 --enable-debug_rop Build a version that logs read operations. 1462 --enable-debug_wop Build a version that logs write operations. 1463 --enable-diagnostic Build a version with run-time diagnostics. 1464 --enable-posixmutexes Use POSIX standard mutexes. 1465 --enable-uimutexes Use Unix International mutexes. 1466 --disable-rpath do not hardcode runtime library paths 1467 1468Optional Packages: 1469 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1470 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1471 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1472 both] 1473 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1474 --with-sysroot=DIR Search for dependent libraries within DIR 1475 (or the compiler's sysroot if not specified). 1476 --with-ccache use ccache for compiling. 1477 --with-dmalloc use dmalloc, as in http://www.dmalloc.com 1478 --with-zlib=DIR root directory path of zlib installation defaults to 1479 /usr/local or /usr if not found in /usr/local 1480 --without-zlib to disable zlib usage completely 1481 --with-gnu-ld assume the C compiler uses GNU ld default=no 1482 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1483 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1484 --with-unac=DIR root directory path of unac installation defaults to 1485 /usr/local or /usr if not found in /usr/local 1486 --without-unac to disable unac usage completely 1487 1488Some influential environment variables: 1489 CC C compiler command 1490 CFLAGS C compiler flags 1491 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1492 nonstandard directory <lib dir> 1493 LIBS libraries to pass to the linker, e.g. -l<library> 1494 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1495 you have headers in a nonstandard directory <include dir> 1496 CPP C preprocessor 1497 YACC The `Yet Another Compiler Compiler' implementation to use. 1498 Defaults to the first program found out of: `bison -y', `byacc', 1499 `yacc'. 1500 YFLAGS The list of arguments that will be passed by default to $YACC. 1501 This script will default YFLAGS to the empty string to avoid a 1502 default value of `-d' given by some make applications. 1503 CXX C++ compiler command 1504 CXXFLAGS C++ compiler flags 1505 CXXCPP C++ preprocessor 1506 1507Use these variables to override the choices made by `configure' or to help 1508it to find libraries and programs with nonstandard names/locations. 1509 1510Report bugs to <mifluz-bugs@gnu.org>. 1511_ACEOF 1512ac_status=$? 1513fi 1514 1515if test "$ac_init_help" = "recursive"; then 1516 # If there are subdirs, report their specific --help. 1517 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1518 test -d "$ac_dir" || 1519 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1520 continue 1521 ac_builddir=. 1522 1523case "$ac_dir" in 1524.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1525*) 1526 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1527 # A ".." for each directory in $ac_dir_suffix. 1528 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1529 case $ac_top_builddir_sub in 1530 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1531 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1532 esac ;; 1533esac 1534ac_abs_top_builddir=$ac_pwd 1535ac_abs_builddir=$ac_pwd$ac_dir_suffix 1536# for backward compatibility: 1537ac_top_builddir=$ac_top_build_prefix 1538 1539case $srcdir in 1540 .) # We are building in place. 1541 ac_srcdir=. 1542 ac_top_srcdir=$ac_top_builddir_sub 1543 ac_abs_top_srcdir=$ac_pwd ;; 1544 [\\/]* | ?:[\\/]* ) # Absolute name. 1545 ac_srcdir=$srcdir$ac_dir_suffix; 1546 ac_top_srcdir=$srcdir 1547 ac_abs_top_srcdir=$srcdir ;; 1548 *) # Relative name. 1549 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1550 ac_top_srcdir=$ac_top_build_prefix$srcdir 1551 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1552esac 1553ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1554 1555 cd "$ac_dir" || { ac_status=$?; continue; } 1556 # Check for guested configure. 1557 if test -f "$ac_srcdir/configure.gnu"; then 1558 echo && 1559 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1560 elif test -f "$ac_srcdir/configure"; then 1561 echo && 1562 $SHELL "$ac_srcdir/configure" --help=recursive 1563 else 1564 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1565 fi || ac_status=$? 1566 cd "$ac_pwd" || { ac_status=$?; break; } 1567 done 1568fi 1569 1570test -n "$ac_init_help" && exit $ac_status 1571if $ac_init_version; then 1572 cat <<\_ACEOF 1573mifluz configure 0.26.0 1574generated by GNU Autoconf 2.69 1575 1576Copyright (C) 2012 Free Software Foundation, Inc. 1577This configure script is free software; the Free Software Foundation 1578gives unlimited permission to copy, distribute and modify it. 1579 1580 1581Copyright (c) 1999, 2000, 2001 The ht://Dig Group 1582For copyright details, see the file COPYING in your distribution 1583or the GNU General Public License version 2 or later 1584 1585_ACEOF 1586 exit 1587fi 1588 1589## ------------------------ ## 1590## Autoconf initialization. ## 1591## ------------------------ ## 1592 1593# ac_fn_c_try_compile LINENO 1594# -------------------------- 1595# Try to compile conftest.$ac_ext, and return whether this succeeded. 1596ac_fn_c_try_compile () 1597{ 1598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1599 rm -f conftest.$ac_objext 1600 if { { ac_try="$ac_compile" 1601case "(($ac_try" in 1602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1603 *) ac_try_echo=$ac_try;; 1604esac 1605eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1606$as_echo "$ac_try_echo"; } >&5 1607 (eval "$ac_compile") 2>conftest.err 1608 ac_status=$? 1609 if test -s conftest.err; then 1610 grep -v '^ *+' conftest.err >conftest.er1 1611 cat conftest.er1 >&5 1612 mv -f conftest.er1 conftest.err 1613 fi 1614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1615 test $ac_status = 0; } && { 1616 test -z "$ac_c_werror_flag" || 1617 test ! -s conftest.err 1618 } && test -s conftest.$ac_objext; then : 1619 ac_retval=0 1620else 1621 $as_echo "$as_me: failed program was:" >&5 1622sed 's/^/| /' conftest.$ac_ext >&5 1623 1624 ac_retval=1 1625fi 1626 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1627 as_fn_set_status $ac_retval 1628 1629} # ac_fn_c_try_compile 1630 1631# ac_fn_c_try_cpp LINENO 1632# ---------------------- 1633# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1634ac_fn_c_try_cpp () 1635{ 1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1637 if { { ac_try="$ac_cpp conftest.$ac_ext" 1638case "(($ac_try" in 1639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1640 *) ac_try_echo=$ac_try;; 1641esac 1642eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1643$as_echo "$ac_try_echo"; } >&5 1644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1645 ac_status=$? 1646 if test -s conftest.err; then 1647 grep -v '^ *+' conftest.err >conftest.er1 1648 cat conftest.er1 >&5 1649 mv -f conftest.er1 conftest.err 1650 fi 1651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1652 test $ac_status = 0; } > conftest.i && { 1653 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1654 test ! -s conftest.err 1655 }; then : 1656 ac_retval=0 1657else 1658 $as_echo "$as_me: failed program was:" >&5 1659sed 's/^/| /' conftest.$ac_ext >&5 1660 1661 ac_retval=1 1662fi 1663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1664 as_fn_set_status $ac_retval 1665 1666} # ac_fn_c_try_cpp 1667 1668# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1669# ------------------------------------------------------- 1670# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1671# the include files in INCLUDES and setting the cache variable VAR 1672# accordingly. 1673ac_fn_c_check_header_mongrel () 1674{ 1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1676 if eval \${$3+:} false; then : 1677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1678$as_echo_n "checking for $2... " >&6; } 1679if eval \${$3+:} false; then : 1680 $as_echo_n "(cached) " >&6 1681fi 1682eval ac_res=\$$3 1683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1684$as_echo "$ac_res" >&6; } 1685else 1686 # Is the header compilable? 1687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1688$as_echo_n "checking $2 usability... " >&6; } 1689cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1690/* end confdefs.h. */ 1691$4 1692#include <$2> 1693_ACEOF 1694if ac_fn_c_try_compile "$LINENO"; then : 1695 ac_header_compiler=yes 1696else 1697 ac_header_compiler=no 1698fi 1699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1701$as_echo "$ac_header_compiler" >&6; } 1702 1703# Is the header present? 1704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1705$as_echo_n "checking $2 presence... " >&6; } 1706cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1707/* end confdefs.h. */ 1708#include <$2> 1709_ACEOF 1710if ac_fn_c_try_cpp "$LINENO"; then : 1711 ac_header_preproc=yes 1712else 1713 ac_header_preproc=no 1714fi 1715rm -f conftest.err conftest.i conftest.$ac_ext 1716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1717$as_echo "$ac_header_preproc" >&6; } 1718 1719# So? What about this header? 1720case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1721 yes:no: ) 1722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1723$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1725$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1726 ;; 1727 no:yes:* ) 1728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1729$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1731$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1733$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1735$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1737$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1738( $as_echo "## ---------------------------------- ## 1739## Report this to mifluz-bugs@gnu.org ## 1740## ---------------------------------- ##" 1741 ) | sed "s/^/$as_me: WARNING: /" >&2 1742 ;; 1743esac 1744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1745$as_echo_n "checking for $2... " >&6; } 1746if eval \${$3+:} false; then : 1747 $as_echo_n "(cached) " >&6 1748else 1749 eval "$3=\$ac_header_compiler" 1750fi 1751eval ac_res=\$$3 1752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1753$as_echo "$ac_res" >&6; } 1754fi 1755 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1756 1757} # ac_fn_c_check_header_mongrel 1758 1759# ac_fn_c_try_run LINENO 1760# ---------------------- 1761# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1762# that executables *can* be run. 1763ac_fn_c_try_run () 1764{ 1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1766 if { { ac_try="$ac_link" 1767case "(($ac_try" in 1768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1769 *) ac_try_echo=$ac_try;; 1770esac 1771eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1772$as_echo "$ac_try_echo"; } >&5 1773 (eval "$ac_link") 2>&5 1774 ac_status=$? 1775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1776 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1777 { { case "(($ac_try" in 1778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1779 *) ac_try_echo=$ac_try;; 1780esac 1781eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1782$as_echo "$ac_try_echo"; } >&5 1783 (eval "$ac_try") 2>&5 1784 ac_status=$? 1785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1786 test $ac_status = 0; }; }; then : 1787 ac_retval=0 1788else 1789 $as_echo "$as_me: program exited with status $ac_status" >&5 1790 $as_echo "$as_me: failed program was:" >&5 1791sed 's/^/| /' conftest.$ac_ext >&5 1792 1793 ac_retval=$ac_status 1794fi 1795 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1796 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1797 as_fn_set_status $ac_retval 1798 1799} # ac_fn_c_try_run 1800 1801# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1802# ------------------------------------------------------- 1803# Tests whether HEADER exists and can be compiled using the include files in 1804# INCLUDES, setting the cache variable VAR accordingly. 1805ac_fn_c_check_header_compile () 1806{ 1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1809$as_echo_n "checking for $2... " >&6; } 1810if eval \${$3+:} false; then : 1811 $as_echo_n "(cached) " >&6 1812else 1813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1814/* end confdefs.h. */ 1815$4 1816#include <$2> 1817_ACEOF 1818if ac_fn_c_try_compile "$LINENO"; then : 1819 eval "$3=yes" 1820else 1821 eval "$3=no" 1822fi 1823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1824fi 1825eval ac_res=\$$3 1826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1827$as_echo "$ac_res" >&6; } 1828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1829 1830} # ac_fn_c_check_header_compile 1831 1832# ac_fn_c_try_link LINENO 1833# ----------------------- 1834# Try to link conftest.$ac_ext, and return whether this succeeded. 1835ac_fn_c_try_link () 1836{ 1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1838 rm -f conftest.$ac_objext conftest$ac_exeext 1839 if { { ac_try="$ac_link" 1840case "(($ac_try" in 1841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1842 *) ac_try_echo=$ac_try;; 1843esac 1844eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1845$as_echo "$ac_try_echo"; } >&5 1846 (eval "$ac_link") 2>conftest.err 1847 ac_status=$? 1848 if test -s conftest.err; then 1849 grep -v '^ *+' conftest.err >conftest.er1 1850 cat conftest.er1 >&5 1851 mv -f conftest.er1 conftest.err 1852 fi 1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1854 test $ac_status = 0; } && { 1855 test -z "$ac_c_werror_flag" || 1856 test ! -s conftest.err 1857 } && test -s conftest$ac_exeext && { 1858 test "$cross_compiling" = yes || 1859 test -x conftest$ac_exeext 1860 }; then : 1861 ac_retval=0 1862else 1863 $as_echo "$as_me: failed program was:" >&5 1864sed 's/^/| /' conftest.$ac_ext >&5 1865 1866 ac_retval=1 1867fi 1868 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1869 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1870 # interfere with the next link command; also delete a directory that is 1871 # left behind by Apple's compiler. We do this before executing the actions. 1872 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1873 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1874 as_fn_set_status $ac_retval 1875 1876} # ac_fn_c_try_link 1877 1878# ac_fn_c_check_func LINENO FUNC VAR 1879# ---------------------------------- 1880# Tests whether FUNC exists, setting the cache variable VAR accordingly 1881ac_fn_c_check_func () 1882{ 1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1885$as_echo_n "checking for $2... " >&6; } 1886if eval \${$3+:} false; then : 1887 $as_echo_n "(cached) " >&6 1888else 1889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1890/* end confdefs.h. */ 1891/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1892 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1893#define $2 innocuous_$2 1894 1895/* System header to define __stub macros and hopefully few prototypes, 1896 which can conflict with char $2 (); below. 1897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1898 <limits.h> exists even on freestanding compilers. */ 1899 1900#ifdef __STDC__ 1901# include <limits.h> 1902#else 1903# include <assert.h> 1904#endif 1905 1906#undef $2 1907 1908/* Override any GCC internal prototype to avoid an error. 1909 Use char because int might match the return type of a GCC 1910 builtin and then its argument prototype would still apply. */ 1911#ifdef __cplusplus 1912extern "C" 1913#endif 1914char $2 (); 1915/* The GNU C library defines this for functions which it implements 1916 to always fail with ENOSYS. Some functions are actually named 1917 something starting with __ and the normal name is an alias. */ 1918#if defined __stub_$2 || defined __stub___$2 1919choke me 1920#endif 1921 1922int 1923main () 1924{ 1925return $2 (); 1926 ; 1927 return 0; 1928} 1929_ACEOF 1930if ac_fn_c_try_link "$LINENO"; then : 1931 eval "$3=yes" 1932else 1933 eval "$3=no" 1934fi 1935rm -f core conftest.err conftest.$ac_objext \ 1936 conftest$ac_exeext conftest.$ac_ext 1937fi 1938eval ac_res=\$$3 1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1940$as_echo "$ac_res" >&6; } 1941 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1942 1943} # ac_fn_c_check_func 1944 1945# ac_fn_cxx_try_compile LINENO 1946# ---------------------------- 1947# Try to compile conftest.$ac_ext, and return whether this succeeded. 1948ac_fn_cxx_try_compile () 1949{ 1950 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1951 rm -f conftest.$ac_objext 1952 if { { ac_try="$ac_compile" 1953case "(($ac_try" in 1954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1955 *) ac_try_echo=$ac_try;; 1956esac 1957eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1958$as_echo "$ac_try_echo"; } >&5 1959 (eval "$ac_compile") 2>conftest.err 1960 ac_status=$? 1961 if test -s conftest.err; then 1962 grep -v '^ *+' conftest.err >conftest.er1 1963 cat conftest.er1 >&5 1964 mv -f conftest.er1 conftest.err 1965 fi 1966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1967 test $ac_status = 0; } && { 1968 test -z "$ac_cxx_werror_flag" || 1969 test ! -s conftest.err 1970 } && test -s conftest.$ac_objext; then : 1971 ac_retval=0 1972else 1973 $as_echo "$as_me: failed program was:" >&5 1974sed 's/^/| /' conftest.$ac_ext >&5 1975 1976 ac_retval=1 1977fi 1978 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1979 as_fn_set_status $ac_retval 1980 1981} # ac_fn_cxx_try_compile 1982 1983# ac_fn_cxx_try_cpp LINENO 1984# ------------------------ 1985# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1986ac_fn_cxx_try_cpp () 1987{ 1988 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1989 if { { ac_try="$ac_cpp conftest.$ac_ext" 1990case "(($ac_try" in 1991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1992 *) ac_try_echo=$ac_try;; 1993esac 1994eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1995$as_echo "$ac_try_echo"; } >&5 1996 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1997 ac_status=$? 1998 if test -s conftest.err; then 1999 grep -v '^ *+' conftest.err >conftest.er1 2000 cat conftest.er1 >&5 2001 mv -f conftest.er1 conftest.err 2002 fi 2003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2004 test $ac_status = 0; } > conftest.i && { 2005 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2006 test ! -s conftest.err 2007 }; then : 2008 ac_retval=0 2009else 2010 $as_echo "$as_me: failed program was:" >&5 2011sed 's/^/| /' conftest.$ac_ext >&5 2012 2013 ac_retval=1 2014fi 2015 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2016 as_fn_set_status $ac_retval 2017 2018} # ac_fn_cxx_try_cpp 2019 2020# ac_fn_cxx_try_link LINENO 2021# ------------------------- 2022# Try to link conftest.$ac_ext, and return whether this succeeded. 2023ac_fn_cxx_try_link () 2024{ 2025 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2026 rm -f conftest.$ac_objext conftest$ac_exeext 2027 if { { ac_try="$ac_link" 2028case "(($ac_try" in 2029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2030 *) ac_try_echo=$ac_try;; 2031esac 2032eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2033$as_echo "$ac_try_echo"; } >&5 2034 (eval "$ac_link") 2>conftest.err 2035 ac_status=$? 2036 if test -s conftest.err; then 2037 grep -v '^ *+' conftest.err >conftest.er1 2038 cat conftest.er1 >&5 2039 mv -f conftest.er1 conftest.err 2040 fi 2041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2042 test $ac_status = 0; } && { 2043 test -z "$ac_cxx_werror_flag" || 2044 test ! -s conftest.err 2045 } && test -s conftest$ac_exeext && { 2046 test "$cross_compiling" = yes || 2047 test -x conftest$ac_exeext 2048 }; then : 2049 ac_retval=0 2050else 2051 $as_echo "$as_me: failed program was:" >&5 2052sed 's/^/| /' conftest.$ac_ext >&5 2053 2054 ac_retval=1 2055fi 2056 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2057 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2058 # interfere with the next link command; also delete a directory that is 2059 # left behind by Apple's compiler. We do this before executing the actions. 2060 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2061 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2062 as_fn_set_status $ac_retval 2063 2064} # ac_fn_cxx_try_link 2065 2066# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2067# ------------------------------------------- 2068# Tests whether TYPE exists after having included INCLUDES, setting cache 2069# variable VAR accordingly. 2070ac_fn_c_check_type () 2071{ 2072 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2074$as_echo_n "checking for $2... " >&6; } 2075if eval \${$3+:} false; then : 2076 $as_echo_n "(cached) " >&6 2077else 2078 eval "$3=no" 2079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2080/* end confdefs.h. */ 2081$4 2082int 2083main () 2084{ 2085if (sizeof ($2)) 2086 return 0; 2087 ; 2088 return 0; 2089} 2090_ACEOF 2091if ac_fn_c_try_compile "$LINENO"; then : 2092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2093/* end confdefs.h. */ 2094$4 2095int 2096main () 2097{ 2098if (sizeof (($2))) 2099 return 0; 2100 ; 2101 return 0; 2102} 2103_ACEOF 2104if ac_fn_c_try_compile "$LINENO"; then : 2105 2106else 2107 eval "$3=yes" 2108fi 2109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2110fi 2111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2112fi 2113eval ac_res=\$$3 2114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2115$as_echo "$ac_res" >&6; } 2116 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2117 2118} # ac_fn_c_check_type 2119 2120# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2121# --------------------------------------------------------- 2122# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2123# the include files in INCLUDES and setting the cache variable VAR 2124# accordingly. 2125ac_fn_cxx_check_header_mongrel () 2126{ 2127 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2128 if eval \${$3+:} false; then : 2129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2130$as_echo_n "checking for $2... " >&6; } 2131if eval \${$3+:} false; then : 2132 $as_echo_n "(cached) " >&6 2133fi 2134eval ac_res=\$$3 2135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2136$as_echo "$ac_res" >&6; } 2137else 2138 # Is the header compilable? 2139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2140$as_echo_n "checking $2 usability... " >&6; } 2141cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2142/* end confdefs.h. */ 2143$4 2144#include <$2> 2145_ACEOF 2146if ac_fn_cxx_try_compile "$LINENO"; then : 2147 ac_header_compiler=yes 2148else 2149 ac_header_compiler=no 2150fi 2151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2153$as_echo "$ac_header_compiler" >&6; } 2154 2155# Is the header present? 2156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2157$as_echo_n "checking $2 presence... " >&6; } 2158cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2159/* end confdefs.h. */ 2160#include <$2> 2161_ACEOF 2162if ac_fn_cxx_try_cpp "$LINENO"; then : 2163 ac_header_preproc=yes 2164else 2165 ac_header_preproc=no 2166fi 2167rm -f conftest.err conftest.i conftest.$ac_ext 2168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2169$as_echo "$ac_header_preproc" >&6; } 2170 2171# So? What about this header? 2172case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2173 yes:no: ) 2174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2175$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2177$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2178 ;; 2179 no:yes:* ) 2180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2181$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2183$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2185$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2187$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2189$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2190( $as_echo "## ---------------------------------- ## 2191## Report this to mifluz-bugs@gnu.org ## 2192## ---------------------------------- ##" 2193 ) | sed "s/^/$as_me: WARNING: /" >&2 2194 ;; 2195esac 2196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2197$as_echo_n "checking for $2... " >&6; } 2198if eval \${$3+:} false; then : 2199 $as_echo_n "(cached) " >&6 2200else 2201 eval "$3=\$ac_header_compiler" 2202fi 2203eval ac_res=\$$3 2204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2205$as_echo "$ac_res" >&6; } 2206fi 2207 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2208 2209} # ac_fn_cxx_check_header_mongrel 2210cat >config.log <<_ACEOF 2211This file contains any messages produced by compilers while 2212running configure, to aid debugging if configure makes a mistake. 2213 2214It was created by mifluz $as_me 0.26.0, which was 2215generated by GNU Autoconf 2.69. Invocation command line was 2216 2217 $ $0 $@ 2218 2219_ACEOF 2220exec 5>>config.log 2221{ 2222cat <<_ASUNAME 2223## --------- ## 2224## Platform. ## 2225## --------- ## 2226 2227hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2228uname -m = `(uname -m) 2>/dev/null || echo unknown` 2229uname -r = `(uname -r) 2>/dev/null || echo unknown` 2230uname -s = `(uname -s) 2>/dev/null || echo unknown` 2231uname -v = `(uname -v) 2>/dev/null || echo unknown` 2232 2233/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2234/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2235 2236/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2237/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2238/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2239/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2240/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2241/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2242/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2243 2244_ASUNAME 2245 2246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2247for as_dir in $PATH 2248do 2249 IFS=$as_save_IFS 2250 test -z "$as_dir" && as_dir=. 2251 $as_echo "PATH: $as_dir" 2252 done 2253IFS=$as_save_IFS 2254 2255} >&5 2256 2257cat >&5 <<_ACEOF 2258 2259 2260## ----------- ## 2261## Core tests. ## 2262## ----------- ## 2263 2264_ACEOF 2265 2266 2267# Keep a trace of the command line. 2268# Strip out --no-create and --no-recursion so they do not pile up. 2269# Strip out --silent because we don't want to record it for future runs. 2270# Also quote any args containing shell meta-characters. 2271# Make two passes to allow for proper duplicate-argument suppression. 2272ac_configure_args= 2273ac_configure_args0= 2274ac_configure_args1= 2275ac_must_keep_next=false 2276for ac_pass in 1 2 2277do 2278 for ac_arg 2279 do 2280 case $ac_arg in 2281 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2282 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2283 | -silent | --silent | --silen | --sile | --sil) 2284 continue ;; 2285 *\'*) 2286 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2287 esac 2288 case $ac_pass in 2289 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2290 2) 2291 as_fn_append ac_configure_args1 " '$ac_arg'" 2292 if test $ac_must_keep_next = true; then 2293 ac_must_keep_next=false # Got value, back to normal. 2294 else 2295 case $ac_arg in 2296 *=* | --config-cache | -C | -disable-* | --disable-* \ 2297 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2298 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2299 | -with-* | --with-* | -without-* | --without-* | --x) 2300 case "$ac_configure_args0 " in 2301 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2302 esac 2303 ;; 2304 -* ) ac_must_keep_next=true ;; 2305 esac 2306 fi 2307 as_fn_append ac_configure_args " '$ac_arg'" 2308 ;; 2309 esac 2310 done 2311done 2312{ ac_configure_args0=; unset ac_configure_args0;} 2313{ ac_configure_args1=; unset ac_configure_args1;} 2314 2315# When interrupted or exit'd, cleanup temporary files, and complete 2316# config.log. We remove comments because anyway the quotes in there 2317# would cause problems or look ugly. 2318# WARNING: Use '\'' to represent an apostrophe within the trap. 2319# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2320trap 'exit_status=$? 2321 # Save into config.log some information that might help in debugging. 2322 { 2323 echo 2324 2325 $as_echo "## ---------------- ## 2326## Cache variables. ## 2327## ---------------- ##" 2328 echo 2329 # The following way of writing the cache mishandles newlines in values, 2330( 2331 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2332 eval ac_val=\$$ac_var 2333 case $ac_val in #( 2334 *${as_nl}*) 2335 case $ac_var in #( 2336 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2337$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2338 esac 2339 case $ac_var in #( 2340 _ | IFS | as_nl) ;; #( 2341 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2342 *) { eval $ac_var=; unset $ac_var;} ;; 2343 esac ;; 2344 esac 2345 done 2346 (set) 2>&1 | 2347 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2348 *${as_nl}ac_space=\ *) 2349 sed -n \ 2350 "s/'\''/'\''\\\\'\'''\''/g; 2351 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2352 ;; #( 2353 *) 2354 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2355 ;; 2356 esac | 2357 sort 2358) 2359 echo 2360 2361 $as_echo "## ----------------- ## 2362## Output variables. ## 2363## ----------------- ##" 2364 echo 2365 for ac_var in $ac_subst_vars 2366 do 2367 eval ac_val=\$$ac_var 2368 case $ac_val in 2369 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2370 esac 2371 $as_echo "$ac_var='\''$ac_val'\''" 2372 done | sort 2373 echo 2374 2375 if test -n "$ac_subst_files"; then 2376 $as_echo "## ------------------- ## 2377## File substitutions. ## 2378## ------------------- ##" 2379 echo 2380 for ac_var in $ac_subst_files 2381 do 2382 eval ac_val=\$$ac_var 2383 case $ac_val in 2384 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2385 esac 2386 $as_echo "$ac_var='\''$ac_val'\''" 2387 done | sort 2388 echo 2389 fi 2390 2391 if test -s confdefs.h; then 2392 $as_echo "## ----------- ## 2393## confdefs.h. ## 2394## ----------- ##" 2395 echo 2396 cat confdefs.h 2397 echo 2398 fi 2399 test "$ac_signal" != 0 && 2400 $as_echo "$as_me: caught signal $ac_signal" 2401 $as_echo "$as_me: exit $exit_status" 2402 } >&5 2403 rm -f core *.core core.conftest.* && 2404 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2405 exit $exit_status 2406' 0 2407for ac_signal in 1 2 13 15; do 2408 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2409done 2410ac_signal=0 2411 2412# confdefs.h avoids OS command line length limits that DEFS can exceed. 2413rm -f -r conftest* confdefs.h 2414 2415$as_echo "/* confdefs.h */" > confdefs.h 2416 2417# Predefined preprocessor variables. 2418 2419cat >>confdefs.h <<_ACEOF 2420#define PACKAGE_NAME "$PACKAGE_NAME" 2421_ACEOF 2422 2423cat >>confdefs.h <<_ACEOF 2424#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2425_ACEOF 2426 2427cat >>confdefs.h <<_ACEOF 2428#define PACKAGE_VERSION "$PACKAGE_VERSION" 2429_ACEOF 2430 2431cat >>confdefs.h <<_ACEOF 2432#define PACKAGE_STRING "$PACKAGE_STRING" 2433_ACEOF 2434 2435cat >>confdefs.h <<_ACEOF 2436#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2437_ACEOF 2438 2439cat >>confdefs.h <<_ACEOF 2440#define PACKAGE_URL "$PACKAGE_URL" 2441_ACEOF 2442 2443 2444# Let the site file select an alternate cache file if it wants to. 2445# Prefer an explicitly selected file to automatically selected ones. 2446ac_site_file1=NONE 2447ac_site_file2=NONE 2448if test -n "$CONFIG_SITE"; then 2449 # We do not want a PATH search for config.site. 2450 case $CONFIG_SITE in #(( 2451 -*) ac_site_file1=./$CONFIG_SITE;; 2452 */*) ac_site_file1=$CONFIG_SITE;; 2453 *) ac_site_file1=./$CONFIG_SITE;; 2454 esac 2455elif test "x$prefix" != xNONE; then 2456 ac_site_file1=$prefix/share/config.site 2457 ac_site_file2=$prefix/etc/config.site 2458else 2459 ac_site_file1=$ac_default_prefix/share/config.site 2460 ac_site_file2=$ac_default_prefix/etc/config.site 2461fi 2462for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2463do 2464 test "x$ac_site_file" = xNONE && continue 2465 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2466 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2467$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2468 sed 's/^/| /' "$ac_site_file" >&5 2469 . "$ac_site_file" \ 2470 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2471$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2472as_fn_error $? "failed to load site script $ac_site_file 2473See \`config.log' for more details" "$LINENO" 5; } 2474 fi 2475done 2476 2477if test -r "$cache_file"; then 2478 # Some versions of bash will fail to source /dev/null (special files 2479 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2480 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2481 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2482$as_echo "$as_me: loading cache $cache_file" >&6;} 2483 case $cache_file in 2484 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2485 *) . "./$cache_file";; 2486 esac 2487 fi 2488else 2489 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2490$as_echo "$as_me: creating cache $cache_file" >&6;} 2491 >$cache_file 2492fi 2493 2494# Check that the precious variables saved in the cache have kept the same 2495# value. 2496ac_cache_corrupted=false 2497for ac_var in $ac_precious_vars; do 2498 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2499 eval ac_new_set=\$ac_env_${ac_var}_set 2500 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2501 eval ac_new_val=\$ac_env_${ac_var}_value 2502 case $ac_old_set,$ac_new_set in 2503 set,) 2504 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2505$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2506 ac_cache_corrupted=: ;; 2507 ,set) 2508 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2509$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2510 ac_cache_corrupted=: ;; 2511 ,);; 2512 *) 2513 if test "x$ac_old_val" != "x$ac_new_val"; then 2514 # differences in whitespace do not lead to failure. 2515 ac_old_val_w=`echo x $ac_old_val` 2516 ac_new_val_w=`echo x $ac_new_val` 2517 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2518 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2519$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2520 ac_cache_corrupted=: 2521 else 2522 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2523$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2524 eval $ac_var=\$ac_old_val 2525 fi 2526 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2527$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2528 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2529$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2530 fi;; 2531 esac 2532 # Pass precious variables to config.status. 2533 if test "$ac_new_set" = set; then 2534 case $ac_new_val in 2535 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2536 *) ac_arg=$ac_var=$ac_new_val ;; 2537 esac 2538 case " $ac_configure_args " in 2539 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2540 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2541 esac 2542 fi 2543done 2544if $ac_cache_corrupted; then 2545 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2546$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2547 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2548$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2549 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2550fi 2551## -------------------- ## 2552## Main body of script. ## 2553## -------------------- ## 2554 2555ac_ext=c 2556ac_cpp='$CPP $CPPFLAGS' 2557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2559ac_compiler_gnu=$ac_cv_c_compiler_gnu 2560 2561 2562ac_config_headers="$ac_config_headers config.h" 2563 2564 2565MAJOR_VERSION=`expr $PACKAGE_VERSION : '\([0-9][0-9]*\)'` 2566 2567MINOR_VERSION=`expr $PACKAGE_VERSION : '[0-9][0-9]*\.\([0-9][0-9]*\)'` 2568 2569MICRO_VERSION=`expr $PACKAGE_VERSION : '[0-9][0-9]*\.[0-9][0-9]*\.\([0-9][0-9]*\)'` 2570 2571am__api_version='1.11' 2572 2573ac_aux_dir= 2574for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2575 if test -f "$ac_dir/install-sh"; then 2576 ac_aux_dir=$ac_dir 2577 ac_install_sh="$ac_aux_dir/install-sh -c" 2578 break 2579 elif test -f "$ac_dir/install.sh"; then 2580 ac_aux_dir=$ac_dir 2581 ac_install_sh="$ac_aux_dir/install.sh -c" 2582 break 2583 elif test -f "$ac_dir/shtool"; then 2584 ac_aux_dir=$ac_dir 2585 ac_install_sh="$ac_aux_dir/shtool install -c" 2586 break 2587 fi 2588done 2589if test -z "$ac_aux_dir"; then 2590 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2591fi 2592 2593# These three variables are undocumented and unsupported, 2594# and are intended to be withdrawn in a future Autoconf release. 2595# They can cause serious problems if a builder's source tree is in a directory 2596# whose full name contains unusual characters. 2597ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2598ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2599ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2600 2601 2602# Find a good install program. We prefer a C program (faster), 2603# so one script is as good as another. But avoid the broken or 2604# incompatible versions: 2605# SysV /etc/install, /usr/sbin/install 2606# SunOS /usr/etc/install 2607# IRIX /sbin/install 2608# AIX /bin/install 2609# AmigaOS /C/install, which installs bootblocks on floppy discs 2610# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2611# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2612# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2613# OS/2's system install, which has a completely different semantic 2614# ./install, which can be erroneously created by make from ./install.sh. 2615# Reject install programs that cannot install multiple files. 2616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2617$as_echo_n "checking for a BSD-compatible install... " >&6; } 2618if test -z "$INSTALL"; then 2619if ${ac_cv_path_install+:} false; then : 2620 $as_echo_n "(cached) " >&6 2621else 2622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2623for as_dir in $PATH 2624do 2625 IFS=$as_save_IFS 2626 test -z "$as_dir" && as_dir=. 2627 # Account for people who put trailing slashes in PATH elements. 2628case $as_dir/ in #(( 2629 ./ | .// | /[cC]/* | \ 2630 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2631 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2632 /usr/ucb/* ) ;; 2633 *) 2634 # OSF1 and SCO ODT 3.0 have their own names for install. 2635 # Don't use installbsd from OSF since it installs stuff as root 2636 # by default. 2637 for ac_prog in ginstall scoinst install; do 2638 for ac_exec_ext in '' $ac_executable_extensions; do 2639 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2640 if test $ac_prog = install && 2641 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2642 # AIX install. It has an incompatible calling convention. 2643 : 2644 elif test $ac_prog = install && 2645 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2646 # program-specific install script used by HP pwplus--don't use. 2647 : 2648 else 2649 rm -rf conftest.one conftest.two conftest.dir 2650 echo one > conftest.one 2651 echo two > conftest.two 2652 mkdir conftest.dir 2653 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2654 test -s conftest.one && test -s conftest.two && 2655 test -s conftest.dir/conftest.one && 2656 test -s conftest.dir/conftest.two 2657 then 2658 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2659 break 3 2660 fi 2661 fi 2662 fi 2663 done 2664 done 2665 ;; 2666esac 2667 2668 done 2669IFS=$as_save_IFS 2670 2671rm -rf conftest.one conftest.two conftest.dir 2672 2673fi 2674 if test "${ac_cv_path_install+set}" = set; then 2675 INSTALL=$ac_cv_path_install 2676 else 2677 # As a last resort, use the slow shell script. Don't cache a 2678 # value for INSTALL within a source directory, because that will 2679 # break other packages using the cache if that directory is 2680 # removed, or if the value is a relative name. 2681 INSTALL=$ac_install_sh 2682 fi 2683fi 2684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2685$as_echo "$INSTALL" >&6; } 2686 2687# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2688# It thinks the first close brace ends the variable substitution. 2689test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2690 2691test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2692 2693test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2694 2695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2696$as_echo_n "checking whether build environment is sane... " >&6; } 2697# Just in case 2698sleep 1 2699echo timestamp > conftest.file 2700# Reject unsafe characters in $srcdir or the absolute working directory 2701# name. Accept space and tab only in the latter. 2702am_lf=' 2703' 2704case `pwd` in 2705 *[\\\"\#\$\&\'\`$am_lf]*) 2706 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2707esac 2708case $srcdir in 2709 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2710 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2711esac 2712 2713# Do `set' in a subshell so we don't clobber the current shell's 2714# arguments. Must try -L first in case configure is actually a 2715# symlink; some systems play weird games with the mod time of symlinks 2716# (eg FreeBSD returns the mod time of the symlink's containing 2717# directory). 2718if ( 2719 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2720 if test "$*" = "X"; then 2721 # -L didn't work. 2722 set X `ls -t "$srcdir/configure" conftest.file` 2723 fi 2724 rm -f conftest.file 2725 if test "$*" != "X $srcdir/configure conftest.file" \ 2726 && test "$*" != "X conftest.file $srcdir/configure"; then 2727 2728 # If neither matched, then we have a broken ls. This can happen 2729 # if, for instance, CONFIG_SHELL is bash and it inherits a 2730 # broken ls alias from the environment. This has actually 2731 # happened. Such a system could not be considered "sane". 2732 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2733alias in your environment" "$LINENO" 5 2734 fi 2735 2736 test "$2" = conftest.file 2737 ) 2738then 2739 # Ok. 2740 : 2741else 2742 as_fn_error $? "newly created file is older than distributed files! 2743Check your system clock" "$LINENO" 5 2744fi 2745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2746$as_echo "yes" >&6; } 2747test "$program_prefix" != NONE && 2748 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2749# Use a double $ so make ignores it. 2750test "$program_suffix" != NONE && 2751 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2752# Double any \ or $. 2753# By default was `s,x,x', remove it if useless. 2754ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2755program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2756 2757# expand $ac_aux_dir to an absolute path 2758am_aux_dir=`cd $ac_aux_dir && pwd` 2759 2760if test x"${MISSING+set}" != xset; then 2761 case $am_aux_dir in 2762 *\ * | *\ *) 2763 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2764 *) 2765 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2766 esac 2767fi 2768# Use eval to expand $SHELL 2769if eval "$MISSING --run true"; then 2770 am_missing_run="$MISSING --run " 2771else 2772 am_missing_run= 2773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2774$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2775fi 2776 2777if test x"${install_sh}" != xset; then 2778 case $am_aux_dir in 2779 *\ * | *\ *) 2780 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2781 *) 2782 install_sh="\${SHELL} $am_aux_dir/install-sh" 2783 esac 2784fi 2785 2786# Installed binaries are usually stripped using `strip' when the user 2787# run `make install-strip'. However `strip' might not be the right 2788# tool to use in cross-compilation environments, therefore Automake 2789# will honor the `STRIP' environment variable to overrule this program. 2790if test "$cross_compiling" != no; then 2791 if test -n "$ac_tool_prefix"; then 2792 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2793set dummy ${ac_tool_prefix}strip; ac_word=$2 2794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2795$as_echo_n "checking for $ac_word... " >&6; } 2796if ${ac_cv_prog_STRIP+:} false; then : 2797 $as_echo_n "(cached) " >&6 2798else 2799 if test -n "$STRIP"; then 2800 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2801else 2802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2803for as_dir in $PATH 2804do 2805 IFS=$as_save_IFS 2806 test -z "$as_dir" && as_dir=. 2807 for ac_exec_ext in '' $ac_executable_extensions; do 2808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2809 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2811 break 2 2812 fi 2813done 2814 done 2815IFS=$as_save_IFS 2816 2817fi 2818fi 2819STRIP=$ac_cv_prog_STRIP 2820if test -n "$STRIP"; then 2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2822$as_echo "$STRIP" >&6; } 2823else 2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2825$as_echo "no" >&6; } 2826fi 2827 2828 2829fi 2830if test -z "$ac_cv_prog_STRIP"; then 2831 ac_ct_STRIP=$STRIP 2832 # Extract the first word of "strip", so it can be a program name with args. 2833set dummy strip; ac_word=$2 2834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2835$as_echo_n "checking for $ac_word... " >&6; } 2836if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2837 $as_echo_n "(cached) " >&6 2838else 2839 if test -n "$ac_ct_STRIP"; then 2840 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2841else 2842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2843for as_dir in $PATH 2844do 2845 IFS=$as_save_IFS 2846 test -z "$as_dir" && as_dir=. 2847 for ac_exec_ext in '' $ac_executable_extensions; do 2848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2849 ac_cv_prog_ac_ct_STRIP="strip" 2850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2851 break 2 2852 fi 2853done 2854 done 2855IFS=$as_save_IFS 2856 2857fi 2858fi 2859ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2860if test -n "$ac_ct_STRIP"; then 2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2862$as_echo "$ac_ct_STRIP" >&6; } 2863else 2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2865$as_echo "no" >&6; } 2866fi 2867 2868 if test "x$ac_ct_STRIP" = x; then 2869 STRIP=":" 2870 else 2871 case $cross_compiling:$ac_tool_warned in 2872yes:) 2873{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2874$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2875ac_tool_warned=yes ;; 2876esac 2877 STRIP=$ac_ct_STRIP 2878 fi 2879else 2880 STRIP="$ac_cv_prog_STRIP" 2881fi 2882 2883fi 2884INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2885 2886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2887$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2888if test -z "$MKDIR_P"; then 2889 if ${ac_cv_path_mkdir+:} false; then : 2890 $as_echo_n "(cached) " >&6 2891else 2892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2893for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2894do 2895 IFS=$as_save_IFS 2896 test -z "$as_dir" && as_dir=. 2897 for ac_prog in mkdir gmkdir; do 2898 for ac_exec_ext in '' $ac_executable_extensions; do 2899 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2900 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2901 'mkdir (GNU coreutils) '* | \ 2902 'mkdir (coreutils) '* | \ 2903 'mkdir (fileutils) '4.1*) 2904 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2905 break 3;; 2906 esac 2907 done 2908 done 2909 done 2910IFS=$as_save_IFS 2911 2912fi 2913 2914 test -d ./--version && rmdir ./--version 2915 if test "${ac_cv_path_mkdir+set}" = set; then 2916 MKDIR_P="$ac_cv_path_mkdir -p" 2917 else 2918 # As a last resort, use the slow shell script. Don't cache a 2919 # value for MKDIR_P within a source directory, because that will 2920 # break other packages using the cache if that directory is 2921 # removed, or if the value is a relative name. 2922 MKDIR_P="$ac_install_sh -d" 2923 fi 2924fi 2925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2926$as_echo "$MKDIR_P" >&6; } 2927 2928mkdir_p="$MKDIR_P" 2929case $mkdir_p in 2930 [\\/$]* | ?:[\\/]*) ;; 2931 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2932esac 2933 2934for ac_prog in gawk mawk nawk awk 2935do 2936 # Extract the first word of "$ac_prog", so it can be a program name with args. 2937set dummy $ac_prog; ac_word=$2 2938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2939$as_echo_n "checking for $ac_word... " >&6; } 2940if ${ac_cv_prog_AWK+:} false; then : 2941 $as_echo_n "(cached) " >&6 2942else 2943 if test -n "$AWK"; then 2944 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2945else 2946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2947for as_dir in $PATH 2948do 2949 IFS=$as_save_IFS 2950 test -z "$as_dir" && as_dir=. 2951 for ac_exec_ext in '' $ac_executable_extensions; do 2952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2953 ac_cv_prog_AWK="$ac_prog" 2954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2955 break 2 2956 fi 2957done 2958 done 2959IFS=$as_save_IFS 2960 2961fi 2962fi 2963AWK=$ac_cv_prog_AWK 2964if test -n "$AWK"; then 2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2966$as_echo "$AWK" >&6; } 2967else 2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2969$as_echo "no" >&6; } 2970fi 2971 2972 2973 test -n "$AWK" && break 2974done 2975 2976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2977$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2978set x ${MAKE-make} 2979ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2980if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2981 $as_echo_n "(cached) " >&6 2982else 2983 cat >conftest.make <<\_ACEOF 2984SHELL = /bin/sh 2985all: 2986 @echo '@@@%%%=$(MAKE)=@@@%%%' 2987_ACEOF 2988# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2989case `${MAKE-make} -f conftest.make 2>/dev/null` in 2990 *@@@%%%=?*=@@@%%%*) 2991 eval ac_cv_prog_make_${ac_make}_set=yes;; 2992 *) 2993 eval ac_cv_prog_make_${ac_make}_set=no;; 2994esac 2995rm -f conftest.make 2996fi 2997if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2999$as_echo "yes" >&6; } 3000 SET_MAKE= 3001else 3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3003$as_echo "no" >&6; } 3004 SET_MAKE="MAKE=${MAKE-make}" 3005fi 3006 3007rm -rf .tst 2>/dev/null 3008mkdir .tst 2>/dev/null 3009if test -d .tst; then 3010 am__leading_dot=. 3011else 3012 am__leading_dot=_ 3013fi 3014rmdir .tst 2>/dev/null 3015 3016if test "`cd $srcdir && pwd`" != "`pwd`"; then 3017 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3018 # is not polluted with repeated "-I." 3019 am__isrc=' -I$(srcdir)' 3020 # test to see if srcdir already configured 3021 if test -f $srcdir/config.status; then 3022 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3023 fi 3024fi 3025 3026# test whether we have cygpath 3027if test -z "$CYGPATH_W"; then 3028 if (cygpath --version) >/dev/null 2>/dev/null; then 3029 CYGPATH_W='cygpath -w' 3030 else 3031 CYGPATH_W=echo 3032 fi 3033fi 3034 3035 3036# Define the identity of the package. 3037 PACKAGE=mifluz 3038 VERSION=$PACKAGE_VERSION 3039 3040 3041# Some tools Automake needs. 3042 3043ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3044 3045 3046AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3047 3048 3049AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3050 3051 3052AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3053 3054 3055MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3056 3057# We need awk for the "check" target. The system "awk" is bad on 3058# some platforms. 3059# Always define AMTAR for backward compatibility. Yes, it's still used 3060# in the wild :-( We should find a proper way to deprecate it ... 3061AMTAR='$${TAR-tar}' 3062 3063am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3076$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3077set x ${MAKE-make} 3078ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3079if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3080 $as_echo_n "(cached) " >&6 3081else 3082 cat >conftest.make <<\_ACEOF 3083SHELL = /bin/sh 3084all: 3085 @echo '@@@%%%=$(MAKE)=@@@%%%' 3086_ACEOF 3087# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3088case `${MAKE-make} -f conftest.make 2>/dev/null` in 3089 *@@@%%%=?*=@@@%%%*) 3090 eval ac_cv_prog_make_${ac_make}_set=yes;; 3091 *) 3092 eval ac_cv_prog_make_${ac_make}_set=no;; 3093esac 3094rm -f conftest.make 3095fi 3096if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3098$as_echo "yes" >&6; } 3099 SET_MAKE= 3100else 3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3102$as_echo "no" >&6; } 3103 SET_MAKE="MAKE=${MAKE-make}" 3104fi 3105 3106 3107# Extract the first word of "ar", so it can be a program name with args. 3108set dummy ar; ac_word=$2 3109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3110$as_echo_n "checking for $ac_word... " >&6; } 3111if ${ac_cv_path_AR+:} false; then : 3112 $as_echo_n "(cached) " >&6 3113else 3114 case $AR in 3115 [\\/]* | ?:[\\/]*) 3116 ac_cv_path_AR="$AR" # Let the user override the test with a path. 3117 ;; 3118 *) 3119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3120for as_dir in $PATH 3121do 3122 IFS=$as_save_IFS 3123 test -z "$as_dir" && as_dir=. 3124 for ac_exec_ext in '' $ac_executable_extensions; do 3125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3126 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 3127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3128 break 2 3129 fi 3130done 3131 done 3132IFS=$as_save_IFS 3133 3134 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar" 3135 ;; 3136esac 3137fi 3138AR=$ac_cv_path_AR 3139if test -n "$AR"; then 3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 3141$as_echo "$AR" >&6; } 3142else 3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3144$as_echo "no" >&6; } 3145fi 3146 3147 3148# Extract the first word of "sh", so it can be a program name with args. 3149set dummy sh; ac_word=$2 3150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3151$as_echo_n "checking for $ac_word... " >&6; } 3152if ${ac_cv_path_SHELL+:} false; then : 3153 $as_echo_n "(cached) " >&6 3154else 3155 case $SHELL in 3156 [\\/]* | ?:[\\/]*) 3157 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path. 3158 ;; 3159 *) 3160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3161for as_dir in $PATH 3162do 3163 IFS=$as_save_IFS 3164 test -z "$as_dir" && as_dir=. 3165 for ac_exec_ext in '' $ac_executable_extensions; do 3166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3167 ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext" 3168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3169 break 2 3170 fi 3171done 3172 done 3173IFS=$as_save_IFS 3174 3175 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL="/bin/sh" 3176 ;; 3177esac 3178fi 3179SHELL=$ac_cv_path_SHELL 3180if test -n "$SHELL"; then 3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHELL" >&5 3182$as_echo "$SHELL" >&6; } 3183else 3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3185$as_echo "no" >&6; } 3186fi 3187 3188 3189# Extract the first word of "sed", so it can be a program name with args. 3190set dummy sed; ac_word=$2 3191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3192$as_echo_n "checking for $ac_word... " >&6; } 3193if ${ac_cv_path_SED+:} false; then : 3194 $as_echo_n "(cached) " >&6 3195else 3196 case $SED in 3197 [\\/]* | ?:[\\/]*) 3198 ac_cv_path_SED="$SED" # Let the user override the test with a path. 3199 ;; 3200 *) 3201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3202for as_dir in $PATH 3203do 3204 IFS=$as_save_IFS 3205 test -z "$as_dir" && as_dir=. 3206 for ac_exec_ext in '' $ac_executable_extensions; do 3207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3208 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 3209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3210 break 2 3211 fi 3212done 3213 done 3214IFS=$as_save_IFS 3215 3216 test -z "$ac_cv_path_SED" && ac_cv_path_SED="/bin/sed" 3217 ;; 3218esac 3219fi 3220SED=$ac_cv_path_SED 3221if test -n "$SED"; then 3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 3223$as_echo "$SED" >&6; } 3224else 3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3226$as_echo "no" >&6; } 3227fi 3228 3229 3230# Extract the first word of "perl", so it can be a program name with args. 3231set dummy perl; ac_word=$2 3232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3233$as_echo_n "checking for $ac_word... " >&6; } 3234if ${ac_cv_path_PERL+:} false; then : 3235 $as_echo_n "(cached) " >&6 3236else 3237 case $PERL in 3238 [\\/]* | ?:[\\/]*) 3239 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 3240 ;; 3241 *) 3242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3243for as_dir in $PATH 3244do 3245 IFS=$as_save_IFS 3246 test -z "$as_dir" && as_dir=. 3247 for ac_exec_ext in '' $ac_executable_extensions; do 3248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3249 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 3250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3251 break 2 3252 fi 3253done 3254 done 3255IFS=$as_save_IFS 3256 3257 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/bin/perl" 3258 ;; 3259esac 3260fi 3261PERL=$ac_cv_path_PERL 3262if test -n "$PERL"; then 3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 3264$as_echo "$PERL" >&6; } 3265else 3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3267$as_echo "no" >&6; } 3268fi 3269 3270 3271# Extract the first word of "find", so it can be a program name with args. 3272set dummy find; ac_word=$2 3273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3274$as_echo_n "checking for $ac_word... " >&6; } 3275if ${ac_cv_path_FIND+:} false; then : 3276 $as_echo_n "(cached) " >&6 3277else 3278 case $FIND in 3279 [\\/]* | ?:[\\/]*) 3280 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 3281 ;; 3282 *) 3283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3284for as_dir in $PATH 3285do 3286 IFS=$as_save_IFS 3287 test -z "$as_dir" && as_dir=. 3288 for ac_exec_ext in '' $ac_executable_extensions; do 3289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3290 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 3291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3292 break 2 3293 fi 3294done 3295 done 3296IFS=$as_save_IFS 3297 3298 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="/bin/find" 3299 ;; 3300esac 3301fi 3302FIND=$ac_cv_path_FIND 3303if test -n "$FIND"; then 3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 3305$as_echo "$FIND" >&6; } 3306else 3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3308$as_echo "no" >&6; } 3309fi 3310 3311 3312# Extract the first word of "gunzip", so it can be a program name with args. 3313set dummy gunzip; ac_word=$2 3314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3315$as_echo_n "checking for $ac_word... " >&6; } 3316if ${ac_cv_path_GUNZIP+:} false; then : 3317 $as_echo_n "(cached) " >&6 3318else 3319 case $GUNZIP in 3320 [\\/]* | ?:[\\/]*) 3321 ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path. 3322 ;; 3323 *) 3324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3325for as_dir in $PATH 3326do 3327 IFS=$as_save_IFS 3328 test -z "$as_dir" && as_dir=. 3329 for ac_exec_ext in '' $ac_executable_extensions; do 3330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3331 ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext" 3332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3333 break 2 3334 fi 3335done 3336 done 3337IFS=$as_save_IFS 3338 3339 test -z "$ac_cv_path_GUNZIP" && ac_cv_path_GUNZIP="/bin/gunzip" 3340 ;; 3341esac 3342fi 3343GUNZIP=$ac_cv_path_GUNZIP 3344if test -n "$GUNZIP"; then 3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5 3346$as_echo "$GUNZIP" >&6; } 3347else 3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3349$as_echo "no" >&6; } 3350fi 3351 3352 3353# Extract the first word of "texi2dvi", so it can be a program name with args. 3354set dummy texi2dvi; ac_word=$2 3355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3356$as_echo_n "checking for $ac_word... " >&6; } 3357if ${ac_cv_path_TEXI2DVI+:} false; then : 3358 $as_echo_n "(cached) " >&6 3359else 3360 case $TEXI2DVI in 3361 [\\/]* | ?:[\\/]*) 3362 ac_cv_path_TEXI2DVI="$TEXI2DVI" # Let the user override the test with a path. 3363 ;; 3364 *) 3365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3366for as_dir in $PATH 3367do 3368 IFS=$as_save_IFS 3369 test -z "$as_dir" && as_dir=. 3370 for ac_exec_ext in '' $ac_executable_extensions; do 3371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3372 ac_cv_path_TEXI2DVI="$as_dir/$ac_word$ac_exec_ext" 3373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3374 break 2 3375 fi 3376done 3377 done 3378IFS=$as_save_IFS 3379 3380 ;; 3381esac 3382fi 3383TEXI2DVI=$ac_cv_path_TEXI2DVI 3384if test -n "$TEXI2DVI"; then 3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEXI2DVI" >&5 3386$as_echo "$TEXI2DVI" >&6; } 3387else 3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3389$as_echo "no" >&6; } 3390fi 3391 3392 3393# Extract the first word of "dvips", so it can be a program name with args. 3394set dummy dvips; ac_word=$2 3395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3396$as_echo_n "checking for $ac_word... " >&6; } 3397if ${ac_cv_path_DVIPS+:} false; then : 3398 $as_echo_n "(cached) " >&6 3399else 3400 case $DVIPS in 3401 [\\/]* | ?:[\\/]*) 3402 ac_cv_path_DVIPS="$DVIPS" # Let the user override the test with a path. 3403 ;; 3404 *) 3405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3406for as_dir in $PATH 3407do 3408 IFS=$as_save_IFS 3409 test -z "$as_dir" && as_dir=. 3410 for ac_exec_ext in '' $ac_executable_extensions; do 3411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3412 ac_cv_path_DVIPS="$as_dir/$ac_word$ac_exec_ext" 3413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3414 break 2 3415 fi 3416done 3417 done 3418IFS=$as_save_IFS 3419 3420 ;; 3421esac 3422fi 3423DVIPS=$ac_cv_path_DVIPS 3424if test -n "$DVIPS"; then 3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5 3426$as_echo "$DVIPS" >&6; } 3427else 3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3429$as_echo "no" >&6; } 3430fi 3431 3432 3433# Extract the first word of "makeinfo", so it can be a program name with args. 3434set dummy makeinfo; ac_word=$2 3435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3436$as_echo_n "checking for $ac_word... " >&6; } 3437if ${ac_cv_path_MAKEINFO+:} false; then : 3438 $as_echo_n "(cached) " >&6 3439else 3440 case $MAKEINFO in 3441 [\\/]* | ?:[\\/]*) 3442 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path. 3443 ;; 3444 *) 3445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3446for as_dir in $PATH 3447do 3448 IFS=$as_save_IFS 3449 test -z "$as_dir" && as_dir=. 3450 for ac_exec_ext in '' $ac_executable_extensions; do 3451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3452 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext" 3453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3454 break 2 3455 fi 3456done 3457 done 3458IFS=$as_save_IFS 3459 3460 ;; 3461esac 3462fi 3463MAKEINFO=$ac_cv_path_MAKEINFO 3464if test -n "$MAKEINFO"; then 3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 3466$as_echo "$MAKEINFO" >&6; } 3467else 3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3469$as_echo "no" >&6; } 3470fi 3471 3472 3473for ac_prog in rrdtool 3474do 3475 # Extract the first word of "$ac_prog", so it can be a program name with args. 3476set dummy $ac_prog; ac_word=$2 3477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3478$as_echo_n "checking for $ac_word... " >&6; } 3479if ${ac_cv_prog_RRDTOOL+:} false; then : 3480 $as_echo_n "(cached) " >&6 3481else 3482 if test -n "$RRDTOOL"; then 3483 ac_cv_prog_RRDTOOL="$RRDTOOL" # Let the user override the test. 3484else 3485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3486for as_dir in $PATH 3487do 3488 IFS=$as_save_IFS 3489 test -z "$as_dir" && as_dir=. 3490 for ac_exec_ext in '' $ac_executable_extensions; do 3491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3492 ac_cv_prog_RRDTOOL="$ac_prog" 3493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3494 break 2 3495 fi 3496done 3497 done 3498IFS=$as_save_IFS 3499 3500fi 3501fi 3502RRDTOOL=$ac_cv_prog_RRDTOOL 3503if test -n "$RRDTOOL"; then 3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RRDTOOL" >&5 3505$as_echo "$RRDTOOL" >&6; } 3506else 3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3508$as_echo "no" >&6; } 3509fi 3510 3511 3512 test -n "$RRDTOOL" && break 3513done 3514 3515for ac_prog in tar gtar gnutar 3516do 3517 # Extract the first word of "$ac_prog", so it can be a program name with args. 3518set dummy $ac_prog; ac_word=$2 3519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3520$as_echo_n "checking for $ac_word... " >&6; } 3521if ${ac_cv_prog_TAR+:} false; then : 3522 $as_echo_n "(cached) " >&6 3523else 3524 if test -n "$TAR"; then 3525 ac_cv_prog_TAR="$TAR" # Let the user override the test. 3526else 3527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3528for as_dir in $PATH 3529do 3530 IFS=$as_save_IFS 3531 test -z "$as_dir" && as_dir=. 3532 for ac_exec_ext in '' $ac_executable_extensions; do 3533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3534 ac_cv_prog_TAR="$ac_prog" 3535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3536 break 2 3537 fi 3538done 3539 done 3540IFS=$as_save_IFS 3541 3542fi 3543fi 3544TAR=$ac_cv_prog_TAR 3545if test -n "$TAR"; then 3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 3547$as_echo "$TAR" >&6; } 3548else 3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3550$as_echo "no" >&6; } 3551fi 3552 3553 3554 test -n "$TAR" && break 3555done 3556test -n "$TAR" || TAR="tar" 3557 3558 3559# Extract the first word of "time", so it can be a program name with args. 3560set dummy time; ac_word=$2 3561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3562$as_echo_n "checking for $ac_word... " >&6; } 3563if ${ac_cv_path_TIME+:} false; then : 3564 $as_echo_n "(cached) " >&6 3565else 3566 case $TIME in 3567 [\\/]* | ?:[\\/]*) 3568 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 3569 ;; 3570 *) 3571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3572for as_dir in $PATH 3573do 3574 IFS=$as_save_IFS 3575 test -z "$as_dir" && as_dir=. 3576 for ac_exec_ext in '' $ac_executable_extensions; do 3577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3578 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 3579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3580 break 2 3581 fi 3582done 3583 done 3584IFS=$as_save_IFS 3585 3586 test -z "$ac_cv_path_TIME" && ac_cv_path_TIME="time" 3587 ;; 3588esac 3589fi 3590TIME=$ac_cv_path_TIME 3591if test -n "$TIME"; then 3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 3593$as_echo "$TIME" >&6; } 3594else 3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3596$as_echo "no" >&6; } 3597fi 3598 3599 3600# 3601# Try various flags for verbose time information, 3602# if none works TIMEV is the same as TIME 3603# 3604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking verbose time flag" >&5 3605$as_echo_n "checking verbose time flag... " >&6; } 3606for timev in "$TIME -v" "$TIME -l" $TIME 3607do 3608 if $timev echo >/dev/null 2>&1 3609 then 3610 TIMEV=$timev 3611 break 3612 fi 3613done 3614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIMEV" >&5 3615$as_echo "$TIMEV" >&6; } 3616 3617 3618 3619 3620# Make sure we can run config.sub. 3621$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3622 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3623 3624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3625$as_echo_n "checking build system type... " >&6; } 3626if ${ac_cv_build+:} false; then : 3627 $as_echo_n "(cached) " >&6 3628else 3629 ac_build_alias=$build_alias 3630test "x$ac_build_alias" = x && 3631 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3632test "x$ac_build_alias" = x && 3633 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3634ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3635 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3636 3637fi 3638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3639$as_echo "$ac_cv_build" >&6; } 3640case $ac_cv_build in 3641*-*-*) ;; 3642*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3643esac 3644build=$ac_cv_build 3645ac_save_IFS=$IFS; IFS='-' 3646set x $ac_cv_build 3647shift 3648build_cpu=$1 3649build_vendor=$2 3650shift; shift 3651# Remember, the first character of IFS is used to create $*, 3652# except with old shells: 3653build_os=$* 3654IFS=$ac_save_IFS 3655case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3656 3657 3658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3659$as_echo_n "checking host system type... " >&6; } 3660if ${ac_cv_host+:} false; then : 3661 $as_echo_n "(cached) " >&6 3662else 3663 if test "x$host_alias" = x; then 3664 ac_cv_host=$ac_cv_build 3665else 3666 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3667 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3668fi 3669 3670fi 3671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3672$as_echo "$ac_cv_host" >&6; } 3673case $ac_cv_host in 3674*-*-*) ;; 3675*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3676esac 3677host=$ac_cv_host 3678ac_save_IFS=$IFS; IFS='-' 3679set x $ac_cv_host 3680shift 3681host_cpu=$1 3682host_vendor=$2 3683shift; shift 3684# Remember, the first character of IFS is used to create $*, 3685# except with old shells: 3686host_os=$* 3687IFS=$ac_save_IFS 3688case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3689 3690 3691 3692DEPDIR="${am__leading_dot}deps" 3693 3694ac_config_commands="$ac_config_commands depfiles" 3695 3696 3697am_make=${MAKE-make} 3698cat > confinc << 'END' 3699am__doit: 3700 @echo this is the am__doit target 3701.PHONY: am__doit 3702END 3703# If we don't find an include directive, just comment out the code. 3704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3705$as_echo_n "checking for style of include used by $am_make... " >&6; } 3706am__include="#" 3707am__quote= 3708_am_result=none 3709# First try GNU make style include. 3710echo "include confinc" > confmf 3711# Ignore all kinds of additional output from `make'. 3712case `$am_make -s -f confmf 2> /dev/null` in #( 3713*the\ am__doit\ target*) 3714 am__include=include 3715 am__quote= 3716 _am_result=GNU 3717 ;; 3718esac 3719# Now try BSD make style include. 3720if test "$am__include" = "#"; then 3721 echo '.include "confinc"' > confmf 3722 case `$am_make -s -f confmf 2> /dev/null` in #( 3723 *the\ am__doit\ target*) 3724 am__include=.include 3725 am__quote="\"" 3726 _am_result=BSD 3727 ;; 3728 esac 3729fi 3730 3731 3732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3733$as_echo "$_am_result" >&6; } 3734rm -f confinc confmf 3735 3736# Check whether --enable-dependency-tracking was given. 3737if test "${enable_dependency_tracking+set}" = set; then : 3738 enableval=$enable_dependency_tracking; 3739fi 3740 3741if test "x$enable_dependency_tracking" != xno; then 3742 am_depcomp="$ac_aux_dir/depcomp" 3743 AMDEPBACKSLASH='\' 3744 am__nodep='_no' 3745fi 3746 if test "x$enable_dependency_tracking" != xno; then 3747 AMDEP_TRUE= 3748 AMDEP_FALSE='#' 3749else 3750 AMDEP_TRUE='#' 3751 AMDEP_FALSE= 3752fi 3753 3754 3755ac_ext=c 3756ac_cpp='$CPP $CPPFLAGS' 3757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3759ac_compiler_gnu=$ac_cv_c_compiler_gnu 3760if test -n "$ac_tool_prefix"; then 3761 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3762set dummy ${ac_tool_prefix}gcc; ac_word=$2 3763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3764$as_echo_n "checking for $ac_word... " >&6; } 3765if ${ac_cv_prog_CC+:} false; then : 3766 $as_echo_n "(cached) " >&6 3767else 3768 if test -n "$CC"; then 3769 ac_cv_prog_CC="$CC" # Let the user override the test. 3770else 3771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3772for as_dir in $PATH 3773do 3774 IFS=$as_save_IFS 3775 test -z "$as_dir" && as_dir=. 3776 for ac_exec_ext in '' $ac_executable_extensions; do 3777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3778 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3780 break 2 3781 fi 3782done 3783 done 3784IFS=$as_save_IFS 3785 3786fi 3787fi 3788CC=$ac_cv_prog_CC 3789if test -n "$CC"; then 3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3791$as_echo "$CC" >&6; } 3792else 3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3794$as_echo "no" >&6; } 3795fi 3796 3797 3798fi 3799if test -z "$ac_cv_prog_CC"; then 3800 ac_ct_CC=$CC 3801 # Extract the first word of "gcc", so it can be a program name with args. 3802set dummy gcc; ac_word=$2 3803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3804$as_echo_n "checking for $ac_word... " >&6; } 3805if ${ac_cv_prog_ac_ct_CC+:} false; then : 3806 $as_echo_n "(cached) " >&6 3807else 3808 if test -n "$ac_ct_CC"; then 3809 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3810else 3811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3812for as_dir in $PATH 3813do 3814 IFS=$as_save_IFS 3815 test -z "$as_dir" && as_dir=. 3816 for ac_exec_ext in '' $ac_executable_extensions; do 3817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3818 ac_cv_prog_ac_ct_CC="gcc" 3819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3820 break 2 3821 fi 3822done 3823 done 3824IFS=$as_save_IFS 3825 3826fi 3827fi 3828ac_ct_CC=$ac_cv_prog_ac_ct_CC 3829if test -n "$ac_ct_CC"; then 3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3831$as_echo "$ac_ct_CC" >&6; } 3832else 3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3834$as_echo "no" >&6; } 3835fi 3836 3837 if test "x$ac_ct_CC" = x; then 3838 CC="" 3839 else 3840 case $cross_compiling:$ac_tool_warned in 3841yes:) 3842{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3843$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3844ac_tool_warned=yes ;; 3845esac 3846 CC=$ac_ct_CC 3847 fi 3848else 3849 CC="$ac_cv_prog_CC" 3850fi 3851 3852if test -z "$CC"; then 3853 if test -n "$ac_tool_prefix"; then 3854 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3855set dummy ${ac_tool_prefix}cc; ac_word=$2 3856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3857$as_echo_n "checking for $ac_word... " >&6; } 3858if ${ac_cv_prog_CC+:} false; then : 3859 $as_echo_n "(cached) " >&6 3860else 3861 if test -n "$CC"; then 3862 ac_cv_prog_CC="$CC" # Let the user override the test. 3863else 3864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3865for as_dir in $PATH 3866do 3867 IFS=$as_save_IFS 3868 test -z "$as_dir" && as_dir=. 3869 for ac_exec_ext in '' $ac_executable_extensions; do 3870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3871 ac_cv_prog_CC="${ac_tool_prefix}cc" 3872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3873 break 2 3874 fi 3875done 3876 done 3877IFS=$as_save_IFS 3878 3879fi 3880fi 3881CC=$ac_cv_prog_CC 3882if test -n "$CC"; then 3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3884$as_echo "$CC" >&6; } 3885else 3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3887$as_echo "no" >&6; } 3888fi 3889 3890 3891 fi 3892fi 3893if test -z "$CC"; then 3894 # Extract the first word of "cc", so it can be a program name with args. 3895set dummy cc; ac_word=$2 3896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3897$as_echo_n "checking for $ac_word... " >&6; } 3898if ${ac_cv_prog_CC+:} false; then : 3899 $as_echo_n "(cached) " >&6 3900else 3901 if test -n "$CC"; then 3902 ac_cv_prog_CC="$CC" # Let the user override the test. 3903else 3904 ac_prog_rejected=no 3905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3906for as_dir in $PATH 3907do 3908 IFS=$as_save_IFS 3909 test -z "$as_dir" && as_dir=. 3910 for ac_exec_ext in '' $ac_executable_extensions; do 3911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3912 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3913 ac_prog_rejected=yes 3914 continue 3915 fi 3916 ac_cv_prog_CC="cc" 3917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3918 break 2 3919 fi 3920done 3921 done 3922IFS=$as_save_IFS 3923 3924if test $ac_prog_rejected = yes; then 3925 # We found a bogon in the path, so make sure we never use it. 3926 set dummy $ac_cv_prog_CC 3927 shift 3928 if test $# != 0; then 3929 # We chose a different compiler from the bogus one. 3930 # However, it has the same basename, so the bogon will be chosen 3931 # first if we set CC to just the basename; use the full file name. 3932 shift 3933 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3934 fi 3935fi 3936fi 3937fi 3938CC=$ac_cv_prog_CC 3939if test -n "$CC"; then 3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3941$as_echo "$CC" >&6; } 3942else 3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3944$as_echo "no" >&6; } 3945fi 3946 3947 3948fi 3949if test -z "$CC"; then 3950 if test -n "$ac_tool_prefix"; then 3951 for ac_prog in cl.exe 3952 do 3953 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3954set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3956$as_echo_n "checking for $ac_word... " >&6; } 3957if ${ac_cv_prog_CC+:} false; then : 3958 $as_echo_n "(cached) " >&6 3959else 3960 if test -n "$CC"; then 3961 ac_cv_prog_CC="$CC" # Let the user override the test. 3962else 3963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3964for as_dir in $PATH 3965do 3966 IFS=$as_save_IFS 3967 test -z "$as_dir" && as_dir=. 3968 for ac_exec_ext in '' $ac_executable_extensions; do 3969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3970 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3972 break 2 3973 fi 3974done 3975 done 3976IFS=$as_save_IFS 3977 3978fi 3979fi 3980CC=$ac_cv_prog_CC 3981if test -n "$CC"; then 3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3983$as_echo "$CC" >&6; } 3984else 3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3986$as_echo "no" >&6; } 3987fi 3988 3989 3990 test -n "$CC" && break 3991 done 3992fi 3993if test -z "$CC"; then 3994 ac_ct_CC=$CC 3995 for ac_prog in cl.exe 3996do 3997 # Extract the first word of "$ac_prog", so it can be a program name with args. 3998set dummy $ac_prog; ac_word=$2 3999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4000$as_echo_n "checking for $ac_word... " >&6; } 4001if ${ac_cv_prog_ac_ct_CC+:} false; then : 4002 $as_echo_n "(cached) " >&6 4003else 4004 if test -n "$ac_ct_CC"; then 4005 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4006else 4007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4008for as_dir in $PATH 4009do 4010 IFS=$as_save_IFS 4011 test -z "$as_dir" && as_dir=. 4012 for ac_exec_ext in '' $ac_executable_extensions; do 4013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4014 ac_cv_prog_ac_ct_CC="$ac_prog" 4015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4016 break 2 4017 fi 4018done 4019 done 4020IFS=$as_save_IFS 4021 4022fi 4023fi 4024ac_ct_CC=$ac_cv_prog_ac_ct_CC 4025if test -n "$ac_ct_CC"; then 4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4027$as_echo "$ac_ct_CC" >&6; } 4028else 4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4030$as_echo "no" >&6; } 4031fi 4032 4033 4034 test -n "$ac_ct_CC" && break 4035done 4036 4037 if test "x$ac_ct_CC" = x; then 4038 CC="" 4039 else 4040 case $cross_compiling:$ac_tool_warned in 4041yes:) 4042{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4043$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4044ac_tool_warned=yes ;; 4045esac 4046 CC=$ac_ct_CC 4047 fi 4048fi 4049 4050fi 4051 4052 4053test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4054$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4055as_fn_error $? "no acceptable C compiler found in \$PATH 4056See \`config.log' for more details" "$LINENO" 5; } 4057 4058# Provide some information about the compiler. 4059$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4060set X $ac_compile 4061ac_compiler=$2 4062for ac_option in --version -v -V -qversion; do 4063 { { ac_try="$ac_compiler $ac_option >&5" 4064case "(($ac_try" in 4065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4066 *) ac_try_echo=$ac_try;; 4067esac 4068eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4069$as_echo "$ac_try_echo"; } >&5 4070 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4071 ac_status=$? 4072 if test -s conftest.err; then 4073 sed '10a\ 4074... rest of stderr output deleted ... 4075 10q' conftest.err >conftest.er1 4076 cat conftest.er1 >&5 4077 fi 4078 rm -f conftest.er1 conftest.err 4079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4080 test $ac_status = 0; } 4081done 4082 4083cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4084/* end confdefs.h. */ 4085 4086int 4087main () 4088{ 4089 4090 ; 4091 return 0; 4092} 4093_ACEOF 4094ac_clean_files_save=$ac_clean_files 4095ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4096# Try to create an executable without -o first, disregard a.out. 4097# It will help us diagnose broken compilers, and finding out an intuition 4098# of exeext. 4099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4100$as_echo_n "checking whether the C compiler works... " >&6; } 4101ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4102 4103# The possible output files: 4104ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4105 4106ac_rmfiles= 4107for ac_file in $ac_files 4108do 4109 case $ac_file in 4110 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4111 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4112 esac 4113done 4114rm -f $ac_rmfiles 4115 4116if { { ac_try="$ac_link_default" 4117case "(($ac_try" in 4118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4119 *) ac_try_echo=$ac_try;; 4120esac 4121eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4122$as_echo "$ac_try_echo"; } >&5 4123 (eval "$ac_link_default") 2>&5 4124 ac_status=$? 4125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4126 test $ac_status = 0; }; then : 4127 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4128# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4129# in a Makefile. We should not override ac_cv_exeext if it was cached, 4130# so that the user can short-circuit this test for compilers unknown to 4131# Autoconf. 4132for ac_file in $ac_files '' 4133do 4134 test -f "$ac_file" || continue 4135 case $ac_file in 4136 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4137 ;; 4138 [ab].out ) 4139 # We found the default executable, but exeext='' is most 4140 # certainly right. 4141 break;; 4142 *.* ) 4143 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4144 then :; else 4145 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4146 fi 4147 # We set ac_cv_exeext here because the later test for it is not 4148 # safe: cross compilers may not add the suffix if given an `-o' 4149 # argument, so we may need to know it at that point already. 4150 # Even if this section looks crufty: it has the advantage of 4151 # actually working. 4152 break;; 4153 * ) 4154 break;; 4155 esac 4156done 4157test "$ac_cv_exeext" = no && ac_cv_exeext= 4158 4159else 4160 ac_file='' 4161fi 4162if test -z "$ac_file"; then : 4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4164$as_echo "no" >&6; } 4165$as_echo "$as_me: failed program was:" >&5 4166sed 's/^/| /' conftest.$ac_ext >&5 4167 4168{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4169$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4170as_fn_error 77 "C compiler cannot create executables 4171See \`config.log' for more details" "$LINENO" 5; } 4172else 4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4174$as_echo "yes" >&6; } 4175fi 4176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4177$as_echo_n "checking for C compiler default output file name... " >&6; } 4178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4179$as_echo "$ac_file" >&6; } 4180ac_exeext=$ac_cv_exeext 4181 4182rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4183ac_clean_files=$ac_clean_files_save 4184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4185$as_echo_n "checking for suffix of executables... " >&6; } 4186if { { ac_try="$ac_link" 4187case "(($ac_try" in 4188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4189 *) ac_try_echo=$ac_try;; 4190esac 4191eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4192$as_echo "$ac_try_echo"; } >&5 4193 (eval "$ac_link") 2>&5 4194 ac_status=$? 4195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4196 test $ac_status = 0; }; then : 4197 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4198# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4199# work properly (i.e., refer to `conftest.exe'), while it won't with 4200# `rm'. 4201for ac_file in conftest.exe conftest conftest.*; do 4202 test -f "$ac_file" || continue 4203 case $ac_file in 4204 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4205 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4206 break;; 4207 * ) break;; 4208 esac 4209done 4210else 4211 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4212$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4213as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4214See \`config.log' for more details" "$LINENO" 5; } 4215fi 4216rm -f conftest conftest$ac_cv_exeext 4217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4218$as_echo "$ac_cv_exeext" >&6; } 4219 4220rm -f conftest.$ac_ext 4221EXEEXT=$ac_cv_exeext 4222ac_exeext=$EXEEXT 4223cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4224/* end confdefs.h. */ 4225#include <stdio.h> 4226int 4227main () 4228{ 4229FILE *f = fopen ("conftest.out", "w"); 4230 return ferror (f) || fclose (f) != 0; 4231 4232 ; 4233 return 0; 4234} 4235_ACEOF 4236ac_clean_files="$ac_clean_files conftest.out" 4237# Check that the compiler produces executables we can run. If not, either 4238# the compiler is broken, or we cross compile. 4239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4240$as_echo_n "checking whether we are cross compiling... " >&6; } 4241if test "$cross_compiling" != yes; then 4242 { { ac_try="$ac_link" 4243case "(($ac_try" in 4244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4245 *) ac_try_echo=$ac_try;; 4246esac 4247eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4248$as_echo "$ac_try_echo"; } >&5 4249 (eval "$ac_link") 2>&5 4250 ac_status=$? 4251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4252 test $ac_status = 0; } 4253 if { ac_try='./conftest$ac_cv_exeext' 4254 { { case "(($ac_try" in 4255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4256 *) ac_try_echo=$ac_try;; 4257esac 4258eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4259$as_echo "$ac_try_echo"; } >&5 4260 (eval "$ac_try") 2>&5 4261 ac_status=$? 4262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4263 test $ac_status = 0; }; }; then 4264 cross_compiling=no 4265 else 4266 if test "$cross_compiling" = maybe; then 4267 cross_compiling=yes 4268 else 4269 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4270$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4271as_fn_error $? "cannot run C compiled programs. 4272If you meant to cross compile, use \`--host'. 4273See \`config.log' for more details" "$LINENO" 5; } 4274 fi 4275 fi 4276fi 4277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4278$as_echo "$cross_compiling" >&6; } 4279 4280rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4281ac_clean_files=$ac_clean_files_save 4282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4283$as_echo_n "checking for suffix of object files... " >&6; } 4284if ${ac_cv_objext+:} false; then : 4285 $as_echo_n "(cached) " >&6 4286else 4287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4288/* end confdefs.h. */ 4289 4290int 4291main () 4292{ 4293 4294 ; 4295 return 0; 4296} 4297_ACEOF 4298rm -f conftest.o conftest.obj 4299if { { ac_try="$ac_compile" 4300case "(($ac_try" in 4301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4302 *) ac_try_echo=$ac_try;; 4303esac 4304eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4305$as_echo "$ac_try_echo"; } >&5 4306 (eval "$ac_compile") 2>&5 4307 ac_status=$? 4308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4309 test $ac_status = 0; }; then : 4310 for ac_file in conftest.o conftest.obj conftest.*; do 4311 test -f "$ac_file" || continue; 4312 case $ac_file in 4313 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4314 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4315 break;; 4316 esac 4317done 4318else 4319 $as_echo "$as_me: failed program was:" >&5 4320sed 's/^/| /' conftest.$ac_ext >&5 4321 4322{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4323$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4324as_fn_error $? "cannot compute suffix of object files: cannot compile 4325See \`config.log' for more details" "$LINENO" 5; } 4326fi 4327rm -f conftest.$ac_cv_objext conftest.$ac_ext 4328fi 4329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4330$as_echo "$ac_cv_objext" >&6; } 4331OBJEXT=$ac_cv_objext 4332ac_objext=$OBJEXT 4333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4334$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4335if ${ac_cv_c_compiler_gnu+:} false; then : 4336 $as_echo_n "(cached) " >&6 4337else 4338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4339/* end confdefs.h. */ 4340 4341int 4342main () 4343{ 4344#ifndef __GNUC__ 4345 choke me 4346#endif 4347 4348 ; 4349 return 0; 4350} 4351_ACEOF 4352if ac_fn_c_try_compile "$LINENO"; then : 4353 ac_compiler_gnu=yes 4354else 4355 ac_compiler_gnu=no 4356fi 4357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4358ac_cv_c_compiler_gnu=$ac_compiler_gnu 4359 4360fi 4361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4362$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4363if test $ac_compiler_gnu = yes; then 4364 GCC=yes 4365else 4366 GCC= 4367fi 4368ac_test_CFLAGS=${CFLAGS+set} 4369ac_save_CFLAGS=$CFLAGS 4370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4371$as_echo_n "checking whether $CC accepts -g... " >&6; } 4372if ${ac_cv_prog_cc_g+:} false; then : 4373 $as_echo_n "(cached) " >&6 4374else 4375 ac_save_c_werror_flag=$ac_c_werror_flag 4376 ac_c_werror_flag=yes 4377 ac_cv_prog_cc_g=no 4378 CFLAGS="-g" 4379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4380/* end confdefs.h. */ 4381 4382int 4383main () 4384{ 4385 4386 ; 4387 return 0; 4388} 4389_ACEOF 4390if ac_fn_c_try_compile "$LINENO"; then : 4391 ac_cv_prog_cc_g=yes 4392else 4393 CFLAGS="" 4394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4395/* end confdefs.h. */ 4396 4397int 4398main () 4399{ 4400 4401 ; 4402 return 0; 4403} 4404_ACEOF 4405if ac_fn_c_try_compile "$LINENO"; then : 4406 4407else 4408 ac_c_werror_flag=$ac_save_c_werror_flag 4409 CFLAGS="-g" 4410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4411/* end confdefs.h. */ 4412 4413int 4414main () 4415{ 4416 4417 ; 4418 return 0; 4419} 4420_ACEOF 4421if ac_fn_c_try_compile "$LINENO"; then : 4422 ac_cv_prog_cc_g=yes 4423fi 4424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4425fi 4426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4427fi 4428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4429 ac_c_werror_flag=$ac_save_c_werror_flag 4430fi 4431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4432$as_echo "$ac_cv_prog_cc_g" >&6; } 4433if test "$ac_test_CFLAGS" = set; then 4434 CFLAGS=$ac_save_CFLAGS 4435elif test $ac_cv_prog_cc_g = yes; then 4436 if test "$GCC" = yes; then 4437 CFLAGS="-g -O2" 4438 else 4439 CFLAGS="-g" 4440 fi 4441else 4442 if test "$GCC" = yes; then 4443 CFLAGS="-O2" 4444 else 4445 CFLAGS= 4446 fi 4447fi 4448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4449$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4450if ${ac_cv_prog_cc_c89+:} false; then : 4451 $as_echo_n "(cached) " >&6 4452else 4453 ac_cv_prog_cc_c89=no 4454ac_save_CC=$CC 4455cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4456/* end confdefs.h. */ 4457#include <stdarg.h> 4458#include <stdio.h> 4459struct stat; 4460/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4461struct buf { int x; }; 4462FILE * (*rcsopen) (struct buf *, struct stat *, int); 4463static char *e (p, i) 4464 char **p; 4465 int i; 4466{ 4467 return p[i]; 4468} 4469static char *f (char * (*g) (char **, int), char **p, ...) 4470{ 4471 char *s; 4472 va_list v; 4473 va_start (v,p); 4474 s = g (p, va_arg (v,int)); 4475 va_end (v); 4476 return s; 4477} 4478 4479/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4480 function prototypes and stuff, but not '\xHH' hex character constants. 4481 These don't provoke an error unfortunately, instead are silently treated 4482 as 'x'. The following induces an error, until -std is added to get 4483 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4484 array size at least. It's necessary to write '\x00'==0 to get something 4485 that's true only with -std. */ 4486int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4487 4488/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4489 inside strings and character constants. */ 4490#define FOO(x) 'x' 4491int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4492 4493int test (int i, double x); 4494struct s1 {int (*f) (int a);}; 4495struct s2 {int (*f) (double a);}; 4496int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4497int argc; 4498char **argv; 4499int 4500main () 4501{ 4502return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4503 ; 4504 return 0; 4505} 4506_ACEOF 4507for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4508 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4509do 4510 CC="$ac_save_CC $ac_arg" 4511 if ac_fn_c_try_compile "$LINENO"; then : 4512 ac_cv_prog_cc_c89=$ac_arg 4513fi 4514rm -f core conftest.err conftest.$ac_objext 4515 test "x$ac_cv_prog_cc_c89" != "xno" && break 4516done 4517rm -f conftest.$ac_ext 4518CC=$ac_save_CC 4519 4520fi 4521# AC_CACHE_VAL 4522case "x$ac_cv_prog_cc_c89" in 4523 x) 4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4525$as_echo "none needed" >&6; } ;; 4526 xno) 4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4528$as_echo "unsupported" >&6; } ;; 4529 *) 4530 CC="$CC $ac_cv_prog_cc_c89" 4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4532$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4533esac 4534if test "x$ac_cv_prog_cc_c89" != xno; then : 4535 4536fi 4537 4538ac_ext=c 4539ac_cpp='$CPP $CPPFLAGS' 4540ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4541ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4542ac_compiler_gnu=$ac_cv_c_compiler_gnu 4543 4544depcc="$CC" am_compiler_list= 4545 4546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4547$as_echo_n "checking dependency style of $depcc... " >&6; } 4548if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4549 $as_echo_n "(cached) " >&6 4550else 4551 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4552 # We make a subdir and do the tests there. Otherwise we can end up 4553 # making bogus files that we don't know about and never remove. For 4554 # instance it was reported that on HP-UX the gcc test will end up 4555 # making a dummy file named `D' -- because `-MD' means `put the output 4556 # in D'. 4557 rm -rf conftest.dir 4558 mkdir conftest.dir 4559 # Copy depcomp to subdir because otherwise we won't find it if we're 4560 # using a relative directory. 4561 cp "$am_depcomp" conftest.dir 4562 cd conftest.dir 4563 # We will build objects and dependencies in a subdirectory because 4564 # it helps to detect inapplicable dependency modes. For instance 4565 # both Tru64's cc and ICC support -MD to output dependencies as a 4566 # side effect of compilation, but ICC will put the dependencies in 4567 # the current directory while Tru64 will put them in the object 4568 # directory. 4569 mkdir sub 4570 4571 am_cv_CC_dependencies_compiler_type=none 4572 if test "$am_compiler_list" = ""; then 4573 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4574 fi 4575 am__universal=false 4576 case " $depcc " in #( 4577 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4578 esac 4579 4580 for depmode in $am_compiler_list; do 4581 # Setup a source with many dependencies, because some compilers 4582 # like to wrap large dependency lists on column 80 (with \), and 4583 # we should not choose a depcomp mode which is confused by this. 4584 # 4585 # We need to recreate these files for each test, as the compiler may 4586 # overwrite some of them when testing with obscure command lines. 4587 # This happens at least with the AIX C compiler. 4588 : > sub/conftest.c 4589 for i in 1 2 3 4 5 6; do 4590 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4591 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4592 # Solaris 8's {/usr,}/bin/sh. 4593 touch sub/conftst$i.h 4594 done 4595 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4596 4597 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4598 # mode. It turns out that the SunPro C++ compiler does not properly 4599 # handle `-M -o', and we need to detect this. Also, some Intel 4600 # versions had trouble with output in subdirs 4601 am__obj=sub/conftest.${OBJEXT-o} 4602 am__minus_obj="-o $am__obj" 4603 case $depmode in 4604 gcc) 4605 # This depmode causes a compiler race in universal mode. 4606 test "$am__universal" = false || continue 4607 ;; 4608 nosideeffect) 4609 # after this tag, mechanisms are not by side-effect, so they'll 4610 # only be used when explicitly requested 4611 if test "x$enable_dependency_tracking" = xyes; then 4612 continue 4613 else 4614 break 4615 fi 4616 ;; 4617 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4618 # This compiler won't grok `-c -o', but also, the minuso test has 4619 # not run yet. These depmodes are late enough in the game, and 4620 # so weak that their functioning should not be impacted. 4621 am__obj=conftest.${OBJEXT-o} 4622 am__minus_obj= 4623 ;; 4624 none) break ;; 4625 esac 4626 if depmode=$depmode \ 4627 source=sub/conftest.c object=$am__obj \ 4628 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4629 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4630 >/dev/null 2>conftest.err && 4631 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4632 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4633 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4634 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4635 # icc doesn't choke on unknown options, it will just issue warnings 4636 # or remarks (even with -Werror). So we grep stderr for any message 4637 # that says an option was ignored or not supported. 4638 # When given -MP, icc 7.0 and 7.1 complain thusly: 4639 # icc: Command line warning: ignoring option '-M'; no argument required 4640 # The diagnosis changed in icc 8.0: 4641 # icc: Command line remark: option '-MP' not supported 4642 if (grep 'ignoring option' conftest.err || 4643 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4644 am_cv_CC_dependencies_compiler_type=$depmode 4645 break 4646 fi 4647 fi 4648 done 4649 4650 cd .. 4651 rm -rf conftest.dir 4652else 4653 am_cv_CC_dependencies_compiler_type=none 4654fi 4655 4656fi 4657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4658$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4659CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4660 4661 if 4662 test "x$enable_dependency_tracking" != xno \ 4663 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4664 am__fastdepCC_TRUE= 4665 am__fastdepCC_FALSE='#' 4666else 4667 am__fastdepCC_TRUE='#' 4668 am__fastdepCC_FALSE= 4669fi 4670 4671 4672 4673ac_ext=c 4674ac_cpp='$CPP $CPPFLAGS' 4675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4677ac_compiler_gnu=$ac_cv_c_compiler_gnu 4678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4679$as_echo_n "checking how to run the C preprocessor... " >&6; } 4680# On Suns, sometimes $CPP names a directory. 4681if test -n "$CPP" && test -d "$CPP"; then 4682 CPP= 4683fi 4684if test -z "$CPP"; then 4685 if ${ac_cv_prog_CPP+:} false; then : 4686 $as_echo_n "(cached) " >&6 4687else 4688 # Double quotes because CPP needs to be expanded 4689 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4690 do 4691 ac_preproc_ok=false 4692for ac_c_preproc_warn_flag in '' yes 4693do 4694 # Use a header file that comes with gcc, so configuring glibc 4695 # with a fresh cross-compiler works. 4696 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4697 # <limits.h> exists even on freestanding compilers. 4698 # On the NeXT, cc -E runs the code through the compiler's parser, 4699 # not just through cpp. "Syntax error" is here to catch this case. 4700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4701/* end confdefs.h. */ 4702#ifdef __STDC__ 4703# include <limits.h> 4704#else 4705# include <assert.h> 4706#endif 4707 Syntax error 4708_ACEOF 4709if ac_fn_c_try_cpp "$LINENO"; then : 4710 4711else 4712 # Broken: fails on valid input. 4713continue 4714fi 4715rm -f conftest.err conftest.i conftest.$ac_ext 4716 4717 # OK, works on sane cases. Now check whether nonexistent headers 4718 # can be detected and how. 4719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4720/* end confdefs.h. */ 4721#include <ac_nonexistent.h> 4722_ACEOF 4723if ac_fn_c_try_cpp "$LINENO"; then : 4724 # Broken: success on invalid input. 4725continue 4726else 4727 # Passes both tests. 4728ac_preproc_ok=: 4729break 4730fi 4731rm -f conftest.err conftest.i conftest.$ac_ext 4732 4733done 4734# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4735rm -f conftest.i conftest.err conftest.$ac_ext 4736if $ac_preproc_ok; then : 4737 break 4738fi 4739 4740 done 4741 ac_cv_prog_CPP=$CPP 4742 4743fi 4744 CPP=$ac_cv_prog_CPP 4745else 4746 ac_cv_prog_CPP=$CPP 4747fi 4748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4749$as_echo "$CPP" >&6; } 4750ac_preproc_ok=false 4751for ac_c_preproc_warn_flag in '' yes 4752do 4753 # Use a header file that comes with gcc, so configuring glibc 4754 # with a fresh cross-compiler works. 4755 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4756 # <limits.h> exists even on freestanding compilers. 4757 # On the NeXT, cc -E runs the code through the compiler's parser, 4758 # not just through cpp. "Syntax error" is here to catch this case. 4759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4760/* end confdefs.h. */ 4761#ifdef __STDC__ 4762# include <limits.h> 4763#else 4764# include <assert.h> 4765#endif 4766 Syntax error 4767_ACEOF 4768if ac_fn_c_try_cpp "$LINENO"; then : 4769 4770else 4771 # Broken: fails on valid input. 4772continue 4773fi 4774rm -f conftest.err conftest.i conftest.$ac_ext 4775 4776 # OK, works on sane cases. Now check whether nonexistent headers 4777 # can be detected and how. 4778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4779/* end confdefs.h. */ 4780#include <ac_nonexistent.h> 4781_ACEOF 4782if ac_fn_c_try_cpp "$LINENO"; then : 4783 # Broken: success on invalid input. 4784continue 4785else 4786 # Passes both tests. 4787ac_preproc_ok=: 4788break 4789fi 4790rm -f conftest.err conftest.i conftest.$ac_ext 4791 4792done 4793# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4794rm -f conftest.i conftest.err conftest.$ac_ext 4795if $ac_preproc_ok; then : 4796 4797else 4798 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4799$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4800as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4801See \`config.log' for more details" "$LINENO" 5; } 4802fi 4803 4804ac_ext=c 4805ac_cpp='$CPP $CPPFLAGS' 4806ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4807ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4808ac_compiler_gnu=$ac_cv_c_compiler_gnu 4809 4810 4811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4812$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4813if ${ac_cv_path_GREP+:} false; then : 4814 $as_echo_n "(cached) " >&6 4815else 4816 if test -z "$GREP"; then 4817 ac_path_GREP_found=false 4818 # Loop through the user's path and test for each of PROGNAME-LIST 4819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4820for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4821do 4822 IFS=$as_save_IFS 4823 test -z "$as_dir" && as_dir=. 4824 for ac_prog in grep ggrep; do 4825 for ac_exec_ext in '' $ac_executable_extensions; do 4826 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4827 as_fn_executable_p "$ac_path_GREP" || continue 4828# Check for GNU ac_path_GREP and select it if it is found. 4829 # Check for GNU $ac_path_GREP 4830case `"$ac_path_GREP" --version 2>&1` in 4831*GNU*) 4832 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4833*) 4834 ac_count=0 4835 $as_echo_n 0123456789 >"conftest.in" 4836 while : 4837 do 4838 cat "conftest.in" "conftest.in" >"conftest.tmp" 4839 mv "conftest.tmp" "conftest.in" 4840 cp "conftest.in" "conftest.nl" 4841 $as_echo 'GREP' >> "conftest.nl" 4842 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4843 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4844 as_fn_arith $ac_count + 1 && ac_count=$as_val 4845 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4846 # Best one so far, save it but keep looking for a better one 4847 ac_cv_path_GREP="$ac_path_GREP" 4848 ac_path_GREP_max=$ac_count 4849 fi 4850 # 10*(2^10) chars as input seems more than enough 4851 test $ac_count -gt 10 && break 4852 done 4853 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4854esac 4855 4856 $ac_path_GREP_found && break 3 4857 done 4858 done 4859 done 4860IFS=$as_save_IFS 4861 if test -z "$ac_cv_path_GREP"; then 4862 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4863 fi 4864else 4865 ac_cv_path_GREP=$GREP 4866fi 4867 4868fi 4869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4870$as_echo "$ac_cv_path_GREP" >&6; } 4871 GREP="$ac_cv_path_GREP" 4872 4873 4874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4875$as_echo_n "checking for egrep... " >&6; } 4876if ${ac_cv_path_EGREP+:} false; then : 4877 $as_echo_n "(cached) " >&6 4878else 4879 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4880 then ac_cv_path_EGREP="$GREP -E" 4881 else 4882 if test -z "$EGREP"; then 4883 ac_path_EGREP_found=false 4884 # Loop through the user's path and test for each of PROGNAME-LIST 4885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4886for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4887do 4888 IFS=$as_save_IFS 4889 test -z "$as_dir" && as_dir=. 4890 for ac_prog in egrep; do 4891 for ac_exec_ext in '' $ac_executable_extensions; do 4892 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4893 as_fn_executable_p "$ac_path_EGREP" || continue 4894# Check for GNU ac_path_EGREP and select it if it is found. 4895 # Check for GNU $ac_path_EGREP 4896case `"$ac_path_EGREP" --version 2>&1` in 4897*GNU*) 4898 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4899*) 4900 ac_count=0 4901 $as_echo_n 0123456789 >"conftest.in" 4902 while : 4903 do 4904 cat "conftest.in" "conftest.in" >"conftest.tmp" 4905 mv "conftest.tmp" "conftest.in" 4906 cp "conftest.in" "conftest.nl" 4907 $as_echo 'EGREP' >> "conftest.nl" 4908 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4909 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4910 as_fn_arith $ac_count + 1 && ac_count=$as_val 4911 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4912 # Best one so far, save it but keep looking for a better one 4913 ac_cv_path_EGREP="$ac_path_EGREP" 4914 ac_path_EGREP_max=$ac_count 4915 fi 4916 # 10*(2^10) chars as input seems more than enough 4917 test $ac_count -gt 10 && break 4918 done 4919 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4920esac 4921 4922 $ac_path_EGREP_found && break 3 4923 done 4924 done 4925 done 4926IFS=$as_save_IFS 4927 if test -z "$ac_cv_path_EGREP"; then 4928 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4929 fi 4930else 4931 ac_cv_path_EGREP=$EGREP 4932fi 4933 4934 fi 4935fi 4936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4937$as_echo "$ac_cv_path_EGREP" >&6; } 4938 EGREP="$ac_cv_path_EGREP" 4939 4940 4941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4942$as_echo_n "checking for ANSI C header files... " >&6; } 4943if ${ac_cv_header_stdc+:} false; then : 4944 $as_echo_n "(cached) " >&6 4945else 4946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4947/* end confdefs.h. */ 4948#include <stdlib.h> 4949#include <stdarg.h> 4950#include <string.h> 4951#include <float.h> 4952 4953int 4954main () 4955{ 4956 4957 ; 4958 return 0; 4959} 4960_ACEOF 4961if ac_fn_c_try_compile "$LINENO"; then : 4962 ac_cv_header_stdc=yes 4963else 4964 ac_cv_header_stdc=no 4965fi 4966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4967 4968if test $ac_cv_header_stdc = yes; then 4969 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4971/* end confdefs.h. */ 4972#include <string.h> 4973 4974_ACEOF 4975if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4976 $EGREP "memchr" >/dev/null 2>&1; then : 4977 4978else 4979 ac_cv_header_stdc=no 4980fi 4981rm -f conftest* 4982 4983fi 4984 4985if test $ac_cv_header_stdc = yes; then 4986 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4988/* end confdefs.h. */ 4989#include <stdlib.h> 4990 4991_ACEOF 4992if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4993 $EGREP "free" >/dev/null 2>&1; then : 4994 4995else 4996 ac_cv_header_stdc=no 4997fi 4998rm -f conftest* 4999 5000fi 5001 5002if test $ac_cv_header_stdc = yes; then 5003 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5004 if test "$cross_compiling" = yes; then : 5005 : 5006else 5007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5008/* end confdefs.h. */ 5009#include <ctype.h> 5010#include <stdlib.h> 5011#if ((' ' & 0x0FF) == 0x020) 5012# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5013# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5014#else 5015# define ISLOWER(c) \ 5016 (('a' <= (c) && (c) <= 'i') \ 5017 || ('j' <= (c) && (c) <= 'r') \ 5018 || ('s' <= (c) && (c) <= 'z')) 5019# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5020#endif 5021 5022#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5023int 5024main () 5025{ 5026 int i; 5027 for (i = 0; i < 256; i++) 5028 if (XOR (islower (i), ISLOWER (i)) 5029 || toupper (i) != TOUPPER (i)) 5030 return 2; 5031 return 0; 5032} 5033_ACEOF 5034if ac_fn_c_try_run "$LINENO"; then : 5035 5036else 5037 ac_cv_header_stdc=no 5038fi 5039rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5040 conftest.$ac_objext conftest.beam conftest.$ac_ext 5041fi 5042 5043fi 5044fi 5045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5046$as_echo "$ac_cv_header_stdc" >&6; } 5047if test $ac_cv_header_stdc = yes; then 5048 5049$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5050 5051fi 5052 5053# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5054for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5055 inttypes.h stdint.h unistd.h 5056do : 5057 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5058ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5059" 5060if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5061 cat >>confdefs.h <<_ACEOF 5062#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5063_ACEOF 5064 5065fi 5066 5067done 5068 5069 5070 5071 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 5072if test "x$ac_cv_header_minix_config_h" = xyes; then : 5073 MINIX=yes 5074else 5075 MINIX= 5076fi 5077 5078 5079 if test "$MINIX" = yes; then 5080 5081$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 5082 5083 5084$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 5085 5086 5087$as_echo "#define _MINIX 1" >>confdefs.h 5088 5089 fi 5090 5091 5092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5093$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5094if ${ac_cv_safe_to_define___extensions__+:} false; then : 5095 $as_echo_n "(cached) " >&6 5096else 5097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5098/* end confdefs.h. */ 5099 5100# define __EXTENSIONS__ 1 5101 $ac_includes_default 5102int 5103main () 5104{ 5105 5106 ; 5107 return 0; 5108} 5109_ACEOF 5110if ac_fn_c_try_compile "$LINENO"; then : 5111 ac_cv_safe_to_define___extensions__=yes 5112else 5113 ac_cv_safe_to_define___extensions__=no 5114fi 5115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5116fi 5117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5118$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5119 test $ac_cv_safe_to_define___extensions__ = yes && 5120 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5121 5122 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5123 5124 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5125 5126 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5127 5128 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5129 5130 5131 5132case `pwd` in 5133 *\ * | *\ *) 5134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5135$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5136esac 5137 5138 5139 5140macro_version='2.4.2' 5141macro_revision='1.3337' 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155ltmain="$ac_aux_dir/ltmain.sh" 5156 5157# Backslashify metacharacters that are still active within 5158# double-quoted strings. 5159sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5160 5161# Same as above, but do not quote variable references. 5162double_quote_subst='s/\(["`\\]\)/\\\1/g' 5163 5164# Sed substitution to delay expansion of an escaped shell variable in a 5165# double_quote_subst'ed string. 5166delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5167 5168# Sed substitution to delay expansion of an escaped single quote. 5169delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5170 5171# Sed substitution to avoid accidental globbing in evaled expressions 5172no_glob_subst='s/\*/\\\*/g' 5173 5174ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5175ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5176ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5177 5178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5179$as_echo_n "checking how to print strings... " >&6; } 5180# Test print first, because it will be a builtin if present. 5181if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5182 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5183 ECHO='print -r --' 5184elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5185 ECHO='printf %s\n' 5186else 5187 # Use this function as a fallback that always works. 5188 func_fallback_echo () 5189 { 5190 eval 'cat <<_LTECHO_EOF 5191$1 5192_LTECHO_EOF' 5193 } 5194 ECHO='func_fallback_echo' 5195fi 5196 5197# func_echo_all arg... 5198# Invoke $ECHO with all args, space-separated. 5199func_echo_all () 5200{ 5201 $ECHO "" 5202} 5203 5204case "$ECHO" in 5205 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5206$as_echo "printf" >&6; } ;; 5207 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5208$as_echo "print -r" >&6; } ;; 5209 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5210$as_echo "cat" >&6; } ;; 5211esac 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5227$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5228if ${ac_cv_path_SED+:} false; then : 5229 $as_echo_n "(cached) " >&6 5230else 5231 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5232 for ac_i in 1 2 3 4 5 6 7; do 5233 ac_script="$ac_script$as_nl$ac_script" 5234 done 5235 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5236 { ac_script=; unset ac_script;} 5237 if test -z "$SED"; then 5238 ac_path_SED_found=false 5239 # Loop through the user's path and test for each of PROGNAME-LIST 5240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5241for as_dir in $PATH 5242do 5243 IFS=$as_save_IFS 5244 test -z "$as_dir" && as_dir=. 5245 for ac_prog in sed gsed; do 5246 for ac_exec_ext in '' $ac_executable_extensions; do 5247 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5248 as_fn_executable_p "$ac_path_SED" || continue 5249# Check for GNU ac_path_SED and select it if it is found. 5250 # Check for GNU $ac_path_SED 5251case `"$ac_path_SED" --version 2>&1` in 5252*GNU*) 5253 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5254*) 5255 ac_count=0 5256 $as_echo_n 0123456789 >"conftest.in" 5257 while : 5258 do 5259 cat "conftest.in" "conftest.in" >"conftest.tmp" 5260 mv "conftest.tmp" "conftest.in" 5261 cp "conftest.in" "conftest.nl" 5262 $as_echo '' >> "conftest.nl" 5263 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5264 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5265 as_fn_arith $ac_count + 1 && ac_count=$as_val 5266 if test $ac_count -gt ${ac_path_SED_max-0}; then 5267 # Best one so far, save it but keep looking for a better one 5268 ac_cv_path_SED="$ac_path_SED" 5269 ac_path_SED_max=$ac_count 5270 fi 5271 # 10*(2^10) chars as input seems more than enough 5272 test $ac_count -gt 10 && break 5273 done 5274 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5275esac 5276 5277 $ac_path_SED_found && break 3 5278 done 5279 done 5280 done 5281IFS=$as_save_IFS 5282 if test -z "$ac_cv_path_SED"; then 5283 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5284 fi 5285else 5286 ac_cv_path_SED=$SED 5287fi 5288 5289fi 5290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5291$as_echo "$ac_cv_path_SED" >&6; } 5292 SED="$ac_cv_path_SED" 5293 rm -f conftest.sed 5294 5295test -z "$SED" && SED=sed 5296Xsed="$SED -e 1s/^X//" 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5309$as_echo_n "checking for fgrep... " >&6; } 5310if ${ac_cv_path_FGREP+:} false; then : 5311 $as_echo_n "(cached) " >&6 5312else 5313 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5314 then ac_cv_path_FGREP="$GREP -F" 5315 else 5316 if test -z "$FGREP"; then 5317 ac_path_FGREP_found=false 5318 # Loop through the user's path and test for each of PROGNAME-LIST 5319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5320for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5321do 5322 IFS=$as_save_IFS 5323 test -z "$as_dir" && as_dir=. 5324 for ac_prog in fgrep; do 5325 for ac_exec_ext in '' $ac_executable_extensions; do 5326 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5327 as_fn_executable_p "$ac_path_FGREP" || continue 5328# Check for GNU ac_path_FGREP and select it if it is found. 5329 # Check for GNU $ac_path_FGREP 5330case `"$ac_path_FGREP" --version 2>&1` in 5331*GNU*) 5332 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5333*) 5334 ac_count=0 5335 $as_echo_n 0123456789 >"conftest.in" 5336 while : 5337 do 5338 cat "conftest.in" "conftest.in" >"conftest.tmp" 5339 mv "conftest.tmp" "conftest.in" 5340 cp "conftest.in" "conftest.nl" 5341 $as_echo 'FGREP' >> "conftest.nl" 5342 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5343 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5344 as_fn_arith $ac_count + 1 && ac_count=$as_val 5345 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5346 # Best one so far, save it but keep looking for a better one 5347 ac_cv_path_FGREP="$ac_path_FGREP" 5348 ac_path_FGREP_max=$ac_count 5349 fi 5350 # 10*(2^10) chars as input seems more than enough 5351 test $ac_count -gt 10 && break 5352 done 5353 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5354esac 5355 5356 $ac_path_FGREP_found && break 3 5357 done 5358 done 5359 done 5360IFS=$as_save_IFS 5361 if test -z "$ac_cv_path_FGREP"; then 5362 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5363 fi 5364else 5365 ac_cv_path_FGREP=$FGREP 5366fi 5367 5368 fi 5369fi 5370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5371$as_echo "$ac_cv_path_FGREP" >&6; } 5372 FGREP="$ac_cv_path_FGREP" 5373 5374 5375test -z "$GREP" && GREP=grep 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395# Check whether --with-gnu-ld was given. 5396if test "${with_gnu_ld+set}" = set; then : 5397 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5398else 5399 with_gnu_ld=no 5400fi 5401 5402ac_prog=ld 5403if test "$GCC" = yes; then 5404 # Check if gcc -print-prog-name=ld gives a path. 5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5406$as_echo_n "checking for ld used by $CC... " >&6; } 5407 case $host in 5408 *-*-mingw*) 5409 # gcc leaves a trailing carriage return which upsets mingw 5410 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5411 *) 5412 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5413 esac 5414 case $ac_prog in 5415 # Accept absolute paths. 5416 [\\/]* | ?:[\\/]*) 5417 re_direlt='/[^/][^/]*/\.\./' 5418 # Canonicalize the pathname of ld 5419 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5420 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5421 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5422 done 5423 test -z "$LD" && LD="$ac_prog" 5424 ;; 5425 "") 5426 # If it fails, then pretend we aren't using GCC. 5427 ac_prog=ld 5428 ;; 5429 *) 5430 # If it is relative, then search for the first ld in PATH. 5431 with_gnu_ld=unknown 5432 ;; 5433 esac 5434elif test "$with_gnu_ld" = yes; then 5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5436$as_echo_n "checking for GNU ld... " >&6; } 5437else 5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5439$as_echo_n "checking for non-GNU ld... " >&6; } 5440fi 5441if ${lt_cv_path_LD+:} false; then : 5442 $as_echo_n "(cached) " >&6 5443else 5444 if test -z "$LD"; then 5445 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5446 for ac_dir in $PATH; do 5447 IFS="$lt_save_ifs" 5448 test -z "$ac_dir" && ac_dir=. 5449 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5450 lt_cv_path_LD="$ac_dir/$ac_prog" 5451 # Check to see if the program is GNU ld. I'd rather use --version, 5452 # but apparently some variants of GNU ld only accept -v. 5453 # Break only if it was the GNU/non-GNU ld that we prefer. 5454 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5455 *GNU* | *'with BFD'*) 5456 test "$with_gnu_ld" != no && break 5457 ;; 5458 *) 5459 test "$with_gnu_ld" != yes && break 5460 ;; 5461 esac 5462 fi 5463 done 5464 IFS="$lt_save_ifs" 5465else 5466 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5467fi 5468fi 5469 5470LD="$lt_cv_path_LD" 5471if test -n "$LD"; then 5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5473$as_echo "$LD" >&6; } 5474else 5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5476$as_echo "no" >&6; } 5477fi 5478test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5480$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5481if ${lt_cv_prog_gnu_ld+:} false; then : 5482 $as_echo_n "(cached) " >&6 5483else 5484 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5485case `$LD -v 2>&1 </dev/null` in 5486*GNU* | *'with BFD'*) 5487 lt_cv_prog_gnu_ld=yes 5488 ;; 5489*) 5490 lt_cv_prog_gnu_ld=no 5491 ;; 5492esac 5493fi 5494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5495$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5496with_gnu_ld=$lt_cv_prog_gnu_ld 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5507$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5508if ${lt_cv_path_NM+:} false; then : 5509 $as_echo_n "(cached) " >&6 5510else 5511 if test -n "$NM"; then 5512 # Let the user override the test. 5513 lt_cv_path_NM="$NM" 5514else 5515 lt_nm_to_check="${ac_tool_prefix}nm" 5516 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5517 lt_nm_to_check="$lt_nm_to_check nm" 5518 fi 5519 for lt_tmp_nm in $lt_nm_to_check; do 5520 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5521 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5522 IFS="$lt_save_ifs" 5523 test -z "$ac_dir" && ac_dir=. 5524 tmp_nm="$ac_dir/$lt_tmp_nm" 5525 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5526 # Check to see if the nm accepts a BSD-compat flag. 5527 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5528 # nm: unknown option "B" ignored 5529 # Tru64's nm complains that /dev/null is an invalid object file 5530 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5531 */dev/null* | *'Invalid file or object type'*) 5532 lt_cv_path_NM="$tmp_nm -B" 5533 break 5534 ;; 5535 *) 5536 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5537 */dev/null*) 5538 lt_cv_path_NM="$tmp_nm -p" 5539 break 5540 ;; 5541 *) 5542 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5543 continue # so that we can try to find one that supports BSD flags 5544 ;; 5545 esac 5546 ;; 5547 esac 5548 fi 5549 done 5550 IFS="$lt_save_ifs" 5551 done 5552 : ${lt_cv_path_NM=no} 5553fi 5554fi 5555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5556$as_echo "$lt_cv_path_NM" >&6; } 5557if test "$lt_cv_path_NM" != "no"; then 5558 NM="$lt_cv_path_NM" 5559else 5560 # Didn't find any BSD compatible name lister, look for dumpbin. 5561 if test -n "$DUMPBIN"; then : 5562 # Let the user override the test. 5563 else 5564 if test -n "$ac_tool_prefix"; then 5565 for ac_prog in dumpbin "link -dump" 5566 do 5567 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5568set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5570$as_echo_n "checking for $ac_word... " >&6; } 5571if ${ac_cv_prog_DUMPBIN+:} false; then : 5572 $as_echo_n "(cached) " >&6 5573else 5574 if test -n "$DUMPBIN"; then 5575 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5576else 5577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5578for as_dir in $PATH 5579do 5580 IFS=$as_save_IFS 5581 test -z "$as_dir" && as_dir=. 5582 for ac_exec_ext in '' $ac_executable_extensions; do 5583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5584 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5586 break 2 5587 fi 5588done 5589 done 5590IFS=$as_save_IFS 5591 5592fi 5593fi 5594DUMPBIN=$ac_cv_prog_DUMPBIN 5595if test -n "$DUMPBIN"; then 5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5597$as_echo "$DUMPBIN" >&6; } 5598else 5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5600$as_echo "no" >&6; } 5601fi 5602 5603 5604 test -n "$DUMPBIN" && break 5605 done 5606fi 5607if test -z "$DUMPBIN"; then 5608 ac_ct_DUMPBIN=$DUMPBIN 5609 for ac_prog in dumpbin "link -dump" 5610do 5611 # Extract the first word of "$ac_prog", so it can be a program name with args. 5612set dummy $ac_prog; ac_word=$2 5613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5614$as_echo_n "checking for $ac_word... " >&6; } 5615if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5616 $as_echo_n "(cached) " >&6 5617else 5618 if test -n "$ac_ct_DUMPBIN"; then 5619 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5620else 5621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5622for as_dir in $PATH 5623do 5624 IFS=$as_save_IFS 5625 test -z "$as_dir" && as_dir=. 5626 for ac_exec_ext in '' $ac_executable_extensions; do 5627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5628 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5630 break 2 5631 fi 5632done 5633 done 5634IFS=$as_save_IFS 5635 5636fi 5637fi 5638ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5639if test -n "$ac_ct_DUMPBIN"; then 5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5641$as_echo "$ac_ct_DUMPBIN" >&6; } 5642else 5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5644$as_echo "no" >&6; } 5645fi 5646 5647 5648 test -n "$ac_ct_DUMPBIN" && break 5649done 5650 5651 if test "x$ac_ct_DUMPBIN" = x; then 5652 DUMPBIN=":" 5653 else 5654 case $cross_compiling:$ac_tool_warned in 5655yes:) 5656{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5657$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5658ac_tool_warned=yes ;; 5659esac 5660 DUMPBIN=$ac_ct_DUMPBIN 5661 fi 5662fi 5663 5664 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5665 *COFF*) 5666 DUMPBIN="$DUMPBIN -symbols" 5667 ;; 5668 *) 5669 DUMPBIN=: 5670 ;; 5671 esac 5672 fi 5673 5674 if test "$DUMPBIN" != ":"; then 5675 NM="$DUMPBIN" 5676 fi 5677fi 5678test -z "$NM" && NM=nm 5679 5680 5681 5682 5683 5684 5685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5686$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5687if ${lt_cv_nm_interface+:} false; then : 5688 $as_echo_n "(cached) " >&6 5689else 5690 lt_cv_nm_interface="BSD nm" 5691 echo "int some_variable = 0;" > conftest.$ac_ext 5692 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5693 (eval "$ac_compile" 2>conftest.err) 5694 cat conftest.err >&5 5695 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5696 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5697 cat conftest.err >&5 5698 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5699 cat conftest.out >&5 5700 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5701 lt_cv_nm_interface="MS dumpbin" 5702 fi 5703 rm -f conftest* 5704fi 5705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5706$as_echo "$lt_cv_nm_interface" >&6; } 5707 5708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5709$as_echo_n "checking whether ln -s works... " >&6; } 5710LN_S=$as_ln_s 5711if test "$LN_S" = "ln -s"; then 5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5713$as_echo "yes" >&6; } 5714else 5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5716$as_echo "no, using $LN_S" >&6; } 5717fi 5718 5719# find the maximum length of command line arguments 5720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5721$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5722if ${lt_cv_sys_max_cmd_len+:} false; then : 5723 $as_echo_n "(cached) " >&6 5724else 5725 i=0 5726 teststring="ABCD" 5727 5728 case $build_os in 5729 msdosdjgpp*) 5730 # On DJGPP, this test can blow up pretty badly due to problems in libc 5731 # (any single argument exceeding 2000 bytes causes a buffer overrun 5732 # during glob expansion). Even if it were fixed, the result of this 5733 # check would be larger than it should be. 5734 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5735 ;; 5736 5737 gnu*) 5738 # Under GNU Hurd, this test is not required because there is 5739 # no limit to the length of command line arguments. 5740 # Libtool will interpret -1 as no limit whatsoever 5741 lt_cv_sys_max_cmd_len=-1; 5742 ;; 5743 5744 cygwin* | mingw* | cegcc*) 5745 # On Win9x/ME, this test blows up -- it succeeds, but takes 5746 # about 5 minutes as the teststring grows exponentially. 5747 # Worse, since 9x/ME are not pre-emptively multitasking, 5748 # you end up with a "frozen" computer, even though with patience 5749 # the test eventually succeeds (with a max line length of 256k). 5750 # Instead, let's just punt: use the minimum linelength reported by 5751 # all of the supported platforms: 8192 (on NT/2K/XP). 5752 lt_cv_sys_max_cmd_len=8192; 5753 ;; 5754 5755 mint*) 5756 # On MiNT this can take a long time and run out of memory. 5757 lt_cv_sys_max_cmd_len=8192; 5758 ;; 5759 5760 amigaos*) 5761 # On AmigaOS with pdksh, this test takes hours, literally. 5762 # So we just punt and use a minimum line length of 8192. 5763 lt_cv_sys_max_cmd_len=8192; 5764 ;; 5765 5766 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5767 # This has been around since 386BSD, at least. Likely further. 5768 if test -x /sbin/sysctl; then 5769 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5770 elif test -x /usr/sbin/sysctl; then 5771 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5772 else 5773 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5774 fi 5775 # And add a safety zone 5776 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5777 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5778 ;; 5779 5780 interix*) 5781 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5782 lt_cv_sys_max_cmd_len=196608 5783 ;; 5784 5785 os2*) 5786 # The test takes a long time on OS/2. 5787 lt_cv_sys_max_cmd_len=8192 5788 ;; 5789 5790 osf*) 5791 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5792 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5793 # nice to cause kernel panics so lets avoid the loop below. 5794 # First set a reasonable default. 5795 lt_cv_sys_max_cmd_len=16384 5796 # 5797 if test -x /sbin/sysconfig; then 5798 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5799 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5800 esac 5801 fi 5802 ;; 5803 sco3.2v5*) 5804 lt_cv_sys_max_cmd_len=102400 5805 ;; 5806 sysv5* | sco5v6* | sysv4.2uw2*) 5807 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5808 if test -n "$kargmax"; then 5809 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5810 else 5811 lt_cv_sys_max_cmd_len=32768 5812 fi 5813 ;; 5814 *) 5815 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5816 if test -n "$lt_cv_sys_max_cmd_len"; then 5817 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5818 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5819 else 5820 # Make teststring a little bigger before we do anything with it. 5821 # a 1K string should be a reasonable start. 5822 for i in 1 2 3 4 5 6 7 8 ; do 5823 teststring=$teststring$teststring 5824 done 5825 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5826 # If test is not a shell built-in, we'll probably end up computing a 5827 # maximum length that is only half of the actual maximum length, but 5828 # we can't tell. 5829 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 5830 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5831 test $i != 17 # 1/2 MB should be enough 5832 do 5833 i=`expr $i + 1` 5834 teststring=$teststring$teststring 5835 done 5836 # Only check the string length outside the loop. 5837 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5838 teststring= 5839 # Add a significant safety factor because C++ compilers can tack on 5840 # massive amounts of additional arguments before passing them to the 5841 # linker. It appears as though 1/2 is a usable value. 5842 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5843 fi 5844 ;; 5845 esac 5846 5847fi 5848 5849if test -n $lt_cv_sys_max_cmd_len ; then 5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5851$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5852else 5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5854$as_echo "none" >&6; } 5855fi 5856max_cmd_len=$lt_cv_sys_max_cmd_len 5857 5858 5859 5860 5861 5862 5863: ${CP="cp -f"} 5864: ${MV="mv -f"} 5865: ${RM="rm -f"} 5866 5867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5868$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5869# Try some XSI features 5870xsi_shell=no 5871( _lt_dummy="a/b/c" 5872 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 5873 = c,a/b,b/c, \ 5874 && eval 'test $(( 1 + 1 )) -eq 2 \ 5875 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5876 && xsi_shell=yes 5877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5878$as_echo "$xsi_shell" >&6; } 5879 5880 5881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5882$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5883lt_shell_append=no 5884( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5885 >/dev/null 2>&1 \ 5886 && lt_shell_append=yes 5887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5888$as_echo "$lt_shell_append" >&6; } 5889 5890 5891if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5892 lt_unset=unset 5893else 5894 lt_unset=false 5895fi 5896 5897 5898 5899 5900 5901# test EBCDIC or ASCII 5902case `echo X|tr X '\101'` in 5903 A) # ASCII based system 5904 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5905 lt_SP2NL='tr \040 \012' 5906 lt_NL2SP='tr \015\012 \040\040' 5907 ;; 5908 *) # EBCDIC based system 5909 lt_SP2NL='tr \100 \n' 5910 lt_NL2SP='tr \r\n \100\100' 5911 ;; 5912esac 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5923$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5924if ${lt_cv_to_host_file_cmd+:} false; then : 5925 $as_echo_n "(cached) " >&6 5926else 5927 case $host in 5928 *-*-mingw* ) 5929 case $build in 5930 *-*-mingw* ) # actually msys 5931 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5932 ;; 5933 *-*-cygwin* ) 5934 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5935 ;; 5936 * ) # otherwise, assume *nix 5937 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5938 ;; 5939 esac 5940 ;; 5941 *-*-cygwin* ) 5942 case $build in 5943 *-*-mingw* ) # actually msys 5944 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5945 ;; 5946 *-*-cygwin* ) 5947 lt_cv_to_host_file_cmd=func_convert_file_noop 5948 ;; 5949 * ) # otherwise, assume *nix 5950 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5951 ;; 5952 esac 5953 ;; 5954 * ) # unhandled hosts (and "normal" native builds) 5955 lt_cv_to_host_file_cmd=func_convert_file_noop 5956 ;; 5957esac 5958 5959fi 5960 5961to_host_file_cmd=$lt_cv_to_host_file_cmd 5962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5963$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5964 5965 5966 5967 5968 5969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5970$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5971if ${lt_cv_to_tool_file_cmd+:} false; then : 5972 $as_echo_n "(cached) " >&6 5973else 5974 #assume ordinary cross tools, or native build. 5975lt_cv_to_tool_file_cmd=func_convert_file_noop 5976case $host in 5977 *-*-mingw* ) 5978 case $build in 5979 *-*-mingw* ) # actually msys 5980 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5981 ;; 5982 esac 5983 ;; 5984esac 5985 5986fi 5987 5988to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5990$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5991 5992 5993 5994 5995 5996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5997$as_echo_n "checking for $LD option to reload object files... " >&6; } 5998if ${lt_cv_ld_reload_flag+:} false; then : 5999 $as_echo_n "(cached) " >&6 6000else 6001 lt_cv_ld_reload_flag='-r' 6002fi 6003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6004$as_echo "$lt_cv_ld_reload_flag" >&6; } 6005reload_flag=$lt_cv_ld_reload_flag 6006case $reload_flag in 6007"" | " "*) ;; 6008*) reload_flag=" $reload_flag" ;; 6009esac 6010reload_cmds='$LD$reload_flag -o $output$reload_objs' 6011case $host_os in 6012 cygwin* | mingw* | pw32* | cegcc*) 6013 if test "$GCC" != yes; then 6014 reload_cmds=false 6015 fi 6016 ;; 6017 darwin*) 6018 if test "$GCC" = yes; then 6019 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6020 else 6021 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6022 fi 6023 ;; 6024esac 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034if test -n "$ac_tool_prefix"; then 6035 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6036set dummy ${ac_tool_prefix}objdump; ac_word=$2 6037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6038$as_echo_n "checking for $ac_word... " >&6; } 6039if ${ac_cv_prog_OBJDUMP+:} false; then : 6040 $as_echo_n "(cached) " >&6 6041else 6042 if test -n "$OBJDUMP"; then 6043 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6044else 6045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6046for as_dir in $PATH 6047do 6048 IFS=$as_save_IFS 6049 test -z "$as_dir" && as_dir=. 6050 for ac_exec_ext in '' $ac_executable_extensions; do 6051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6052 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6054 break 2 6055 fi 6056done 6057 done 6058IFS=$as_save_IFS 6059 6060fi 6061fi 6062OBJDUMP=$ac_cv_prog_OBJDUMP 6063if test -n "$OBJDUMP"; then 6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6065$as_echo "$OBJDUMP" >&6; } 6066else 6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6068$as_echo "no" >&6; } 6069fi 6070 6071 6072fi 6073if test -z "$ac_cv_prog_OBJDUMP"; then 6074 ac_ct_OBJDUMP=$OBJDUMP 6075 # Extract the first word of "objdump", so it can be a program name with args. 6076set dummy objdump; ac_word=$2 6077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6078$as_echo_n "checking for $ac_word... " >&6; } 6079if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6080 $as_echo_n "(cached) " >&6 6081else 6082 if test -n "$ac_ct_OBJDUMP"; then 6083 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6084else 6085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6086for as_dir in $PATH 6087do 6088 IFS=$as_save_IFS 6089 test -z "$as_dir" && as_dir=. 6090 for ac_exec_ext in '' $ac_executable_extensions; do 6091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6092 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6094 break 2 6095 fi 6096done 6097 done 6098IFS=$as_save_IFS 6099 6100fi 6101fi 6102ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6103if test -n "$ac_ct_OBJDUMP"; then 6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6105$as_echo "$ac_ct_OBJDUMP" >&6; } 6106else 6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6108$as_echo "no" >&6; } 6109fi 6110 6111 if test "x$ac_ct_OBJDUMP" = x; then 6112 OBJDUMP="false" 6113 else 6114 case $cross_compiling:$ac_tool_warned in 6115yes:) 6116{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6117$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6118ac_tool_warned=yes ;; 6119esac 6120 OBJDUMP=$ac_ct_OBJDUMP 6121 fi 6122else 6123 OBJDUMP="$ac_cv_prog_OBJDUMP" 6124fi 6125 6126test -z "$OBJDUMP" && OBJDUMP=objdump 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6137$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6138if ${lt_cv_deplibs_check_method+:} false; then : 6139 $as_echo_n "(cached) " >&6 6140else 6141 lt_cv_file_magic_cmd='$MAGIC_CMD' 6142lt_cv_file_magic_test_file= 6143lt_cv_deplibs_check_method='unknown' 6144# Need to set the preceding variable on all platforms that support 6145# interlibrary dependencies. 6146# 'none' -- dependencies not supported. 6147# `unknown' -- same as none, but documents that we really don't know. 6148# 'pass_all' -- all dependencies passed with no checks. 6149# 'test_compile' -- check by making test program. 6150# 'file_magic [[regex]]' -- check by looking for files in library path 6151# which responds to the $file_magic_cmd with a given extended regex. 6152# If you have `file' or equivalent on your system and you're not sure 6153# whether `pass_all' will *always* work, you probably want this one. 6154 6155case $host_os in 6156aix[4-9]*) 6157 lt_cv_deplibs_check_method=pass_all 6158 ;; 6159 6160beos*) 6161 lt_cv_deplibs_check_method=pass_all 6162 ;; 6163 6164bsdi[45]*) 6165 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6166 lt_cv_file_magic_cmd='/usr/bin/file -L' 6167 lt_cv_file_magic_test_file=/shlib/libc.so 6168 ;; 6169 6170cygwin*) 6171 # func_win32_libid is a shell function defined in ltmain.sh 6172 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6173 lt_cv_file_magic_cmd='func_win32_libid' 6174 ;; 6175 6176mingw* | pw32*) 6177 # Base MSYS/MinGW do not provide the 'file' command needed by 6178 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6179 # unless we find 'file', for example because we are cross-compiling. 6180 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 6181 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 6182 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6183 lt_cv_file_magic_cmd='func_win32_libid' 6184 else 6185 # Keep this pattern in sync with the one in func_win32_libid. 6186 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6187 lt_cv_file_magic_cmd='$OBJDUMP -f' 6188 fi 6189 ;; 6190 6191cegcc*) 6192 # use the weaker test based on 'objdump'. See mingw*. 6193 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6194 lt_cv_file_magic_cmd='$OBJDUMP -f' 6195 ;; 6196 6197darwin* | rhapsody*) 6198 lt_cv_deplibs_check_method=pass_all 6199 ;; 6200 6201freebsd* | dragonfly*) 6202 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6203 case $host_cpu in 6204 i*86 ) 6205 # Not sure whether the presence of OpenBSD here was a mistake. 6206 # Let's accept both of them until this is cleared up. 6207 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6208 lt_cv_file_magic_cmd=/usr/bin/file 6209 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6210 ;; 6211 esac 6212 else 6213 lt_cv_deplibs_check_method=pass_all 6214 fi 6215 ;; 6216 6217gnu*) 6218 lt_cv_deplibs_check_method=pass_all 6219 ;; 6220 6221haiku*) 6222 lt_cv_deplibs_check_method=pass_all 6223 ;; 6224 6225hpux10.20* | hpux11*) 6226 lt_cv_file_magic_cmd=/usr/bin/file 6227 case $host_cpu in 6228 ia64*) 6229 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6230 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6231 ;; 6232 hppa*64*) 6233 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]' 6234 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6235 ;; 6236 *) 6237 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6238 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6239 ;; 6240 esac 6241 ;; 6242 6243interix[3-9]*) 6244 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6245 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6246 ;; 6247 6248irix5* | irix6* | nonstopux*) 6249 case $LD in 6250 *-32|*"-32 ") libmagic=32-bit;; 6251 *-n32|*"-n32 ") libmagic=N32;; 6252 *-64|*"-64 ") libmagic=64-bit;; 6253 *) libmagic=never-match;; 6254 esac 6255 lt_cv_deplibs_check_method=pass_all 6256 ;; 6257 6258# This must be glibc/ELF. 6259linux* | k*bsd*-gnu | kopensolaris*-gnu) 6260 lt_cv_deplibs_check_method=pass_all 6261 ;; 6262 6263netbsd* | netbsdelf*-gnu) 6264 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6265 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6266 else 6267 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6268 fi 6269 ;; 6270 6271newos6*) 6272 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6273 lt_cv_file_magic_cmd=/usr/bin/file 6274 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6275 ;; 6276 6277*nto* | *qnx*) 6278 lt_cv_deplibs_check_method=pass_all 6279 ;; 6280 6281openbsd*) 6282 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6283 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6284 else 6285 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6286 fi 6287 ;; 6288 6289osf3* | osf4* | osf5*) 6290 lt_cv_deplibs_check_method=pass_all 6291 ;; 6292 6293rdos*) 6294 lt_cv_deplibs_check_method=pass_all 6295 ;; 6296 6297solaris*) 6298 lt_cv_deplibs_check_method=pass_all 6299 ;; 6300 6301sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6302 lt_cv_deplibs_check_method=pass_all 6303 ;; 6304 6305sysv4 | sysv4.3*) 6306 case $host_vendor in 6307 motorola) 6308 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]' 6309 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6310 ;; 6311 ncr) 6312 lt_cv_deplibs_check_method=pass_all 6313 ;; 6314 sequent) 6315 lt_cv_file_magic_cmd='/bin/file' 6316 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6317 ;; 6318 sni) 6319 lt_cv_file_magic_cmd='/bin/file' 6320 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6321 lt_cv_file_magic_test_file=/lib/libc.so 6322 ;; 6323 siemens) 6324 lt_cv_deplibs_check_method=pass_all 6325 ;; 6326 pc) 6327 lt_cv_deplibs_check_method=pass_all 6328 ;; 6329 esac 6330 ;; 6331 6332tpf*) 6333 lt_cv_deplibs_check_method=pass_all 6334 ;; 6335esac 6336 6337fi 6338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6339$as_echo "$lt_cv_deplibs_check_method" >&6; } 6340 6341file_magic_glob= 6342want_nocaseglob=no 6343if test "$build" = "$host"; then 6344 case $host_os in 6345 mingw* | pw32*) 6346 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6347 want_nocaseglob=yes 6348 else 6349 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6350 fi 6351 ;; 6352 esac 6353fi 6354 6355file_magic_cmd=$lt_cv_file_magic_cmd 6356deplibs_check_method=$lt_cv_deplibs_check_method 6357test -z "$deplibs_check_method" && deplibs_check_method=unknown 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380if test -n "$ac_tool_prefix"; then 6381 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6382set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6384$as_echo_n "checking for $ac_word... " >&6; } 6385if ${ac_cv_prog_DLLTOOL+:} false; then : 6386 $as_echo_n "(cached) " >&6 6387else 6388 if test -n "$DLLTOOL"; then 6389 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6390else 6391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6392for as_dir in $PATH 6393do 6394 IFS=$as_save_IFS 6395 test -z "$as_dir" && as_dir=. 6396 for ac_exec_ext in '' $ac_executable_extensions; do 6397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6398 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6400 break 2 6401 fi 6402done 6403 done 6404IFS=$as_save_IFS 6405 6406fi 6407fi 6408DLLTOOL=$ac_cv_prog_DLLTOOL 6409if test -n "$DLLTOOL"; then 6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6411$as_echo "$DLLTOOL" >&6; } 6412else 6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6414$as_echo "no" >&6; } 6415fi 6416 6417 6418fi 6419if test -z "$ac_cv_prog_DLLTOOL"; then 6420 ac_ct_DLLTOOL=$DLLTOOL 6421 # Extract the first word of "dlltool", so it can be a program name with args. 6422set dummy dlltool; ac_word=$2 6423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6424$as_echo_n "checking for $ac_word... " >&6; } 6425if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6426 $as_echo_n "(cached) " >&6 6427else 6428 if test -n "$ac_ct_DLLTOOL"; then 6429 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6430else 6431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6432for as_dir in $PATH 6433do 6434 IFS=$as_save_IFS 6435 test -z "$as_dir" && as_dir=. 6436 for ac_exec_ext in '' $ac_executable_extensions; do 6437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6438 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6440 break 2 6441 fi 6442done 6443 done 6444IFS=$as_save_IFS 6445 6446fi 6447fi 6448ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6449if test -n "$ac_ct_DLLTOOL"; then 6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6451$as_echo "$ac_ct_DLLTOOL" >&6; } 6452else 6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6454$as_echo "no" >&6; } 6455fi 6456 6457 if test "x$ac_ct_DLLTOOL" = x; then 6458 DLLTOOL="false" 6459 else 6460 case $cross_compiling:$ac_tool_warned in 6461yes:) 6462{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6463$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6464ac_tool_warned=yes ;; 6465esac 6466 DLLTOOL=$ac_ct_DLLTOOL 6467 fi 6468else 6469 DLLTOOL="$ac_cv_prog_DLLTOOL" 6470fi 6471 6472test -z "$DLLTOOL" && DLLTOOL=dlltool 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6484$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6485if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6486 $as_echo_n "(cached) " >&6 6487else 6488 lt_cv_sharedlib_from_linklib_cmd='unknown' 6489 6490case $host_os in 6491cygwin* | mingw* | pw32* | cegcc*) 6492 # two different shell functions defined in ltmain.sh 6493 # decide which to use based on capabilities of $DLLTOOL 6494 case `$DLLTOOL --help 2>&1` in 6495 *--identify-strict*) 6496 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6497 ;; 6498 *) 6499 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6500 ;; 6501 esac 6502 ;; 6503*) 6504 # fallback: assume linklib IS sharedlib 6505 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 6506 ;; 6507esac 6508 6509fi 6510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6511$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6512sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6513test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6514 6515 6516 6517 6518 6519 6520 6521if test -n "$ac_tool_prefix"; then 6522 for ac_prog in ar 6523 do 6524 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6525set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6527$as_echo_n "checking for $ac_word... " >&6; } 6528if ${ac_cv_prog_AR+:} false; then : 6529 $as_echo_n "(cached) " >&6 6530else 6531 if test -n "$AR"; then 6532 ac_cv_prog_AR="$AR" # Let the user override the test. 6533else 6534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6535for as_dir in $PATH 6536do 6537 IFS=$as_save_IFS 6538 test -z "$as_dir" && as_dir=. 6539 for ac_exec_ext in '' $ac_executable_extensions; do 6540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6541 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6543 break 2 6544 fi 6545done 6546 done 6547IFS=$as_save_IFS 6548 6549fi 6550fi 6551AR=$ac_cv_prog_AR 6552if test -n "$AR"; then 6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6554$as_echo "$AR" >&6; } 6555else 6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6557$as_echo "no" >&6; } 6558fi 6559 6560 6561 test -n "$AR" && break 6562 done 6563fi 6564if test -z "$AR"; then 6565 ac_ct_AR=$AR 6566 for ac_prog in ar 6567do 6568 # Extract the first word of "$ac_prog", so it can be a program name with args. 6569set dummy $ac_prog; ac_word=$2 6570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6571$as_echo_n "checking for $ac_word... " >&6; } 6572if ${ac_cv_prog_ac_ct_AR+:} false; then : 6573 $as_echo_n "(cached) " >&6 6574else 6575 if test -n "$ac_ct_AR"; then 6576 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6577else 6578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6579for as_dir in $PATH 6580do 6581 IFS=$as_save_IFS 6582 test -z "$as_dir" && as_dir=. 6583 for ac_exec_ext in '' $ac_executable_extensions; do 6584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6585 ac_cv_prog_ac_ct_AR="$ac_prog" 6586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6587 break 2 6588 fi 6589done 6590 done 6591IFS=$as_save_IFS 6592 6593fi 6594fi 6595ac_ct_AR=$ac_cv_prog_ac_ct_AR 6596if test -n "$ac_ct_AR"; then 6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6598$as_echo "$ac_ct_AR" >&6; } 6599else 6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6601$as_echo "no" >&6; } 6602fi 6603 6604 6605 test -n "$ac_ct_AR" && break 6606done 6607 6608 if test "x$ac_ct_AR" = x; then 6609 AR="false" 6610 else 6611 case $cross_compiling:$ac_tool_warned in 6612yes:) 6613{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6614$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6615ac_tool_warned=yes ;; 6616esac 6617 AR=$ac_ct_AR 6618 fi 6619fi 6620 6621: ${AR=ar} 6622: ${AR_FLAGS=cru} 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6635$as_echo_n "checking for archiver @FILE support... " >&6; } 6636if ${lt_cv_ar_at_file+:} false; then : 6637 $as_echo_n "(cached) " >&6 6638else 6639 lt_cv_ar_at_file=no 6640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6641/* end confdefs.h. */ 6642 6643int 6644main () 6645{ 6646 6647 ; 6648 return 0; 6649} 6650_ACEOF 6651if ac_fn_c_try_compile "$LINENO"; then : 6652 echo conftest.$ac_objext > conftest.lst 6653 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6654 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6655 (eval $lt_ar_try) 2>&5 6656 ac_status=$? 6657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6658 test $ac_status = 0; } 6659 if test "$ac_status" -eq 0; then 6660 # Ensure the archiver fails upon bogus file names. 6661 rm -f conftest.$ac_objext libconftest.a 6662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6663 (eval $lt_ar_try) 2>&5 6664 ac_status=$? 6665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6666 test $ac_status = 0; } 6667 if test "$ac_status" -ne 0; then 6668 lt_cv_ar_at_file=@ 6669 fi 6670 fi 6671 rm -f conftest.* libconftest.a 6672 6673fi 6674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6675 6676fi 6677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6678$as_echo "$lt_cv_ar_at_file" >&6; } 6679 6680if test "x$lt_cv_ar_at_file" = xno; then 6681 archiver_list_spec= 6682else 6683 archiver_list_spec=$lt_cv_ar_at_file 6684fi 6685 6686 6687 6688 6689 6690 6691 6692if test -n "$ac_tool_prefix"; then 6693 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6694set dummy ${ac_tool_prefix}strip; ac_word=$2 6695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6696$as_echo_n "checking for $ac_word... " >&6; } 6697if ${ac_cv_prog_STRIP+:} false; then : 6698 $as_echo_n "(cached) " >&6 6699else 6700 if test -n "$STRIP"; then 6701 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6702else 6703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6704for as_dir in $PATH 6705do 6706 IFS=$as_save_IFS 6707 test -z "$as_dir" && as_dir=. 6708 for ac_exec_ext in '' $ac_executable_extensions; do 6709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6710 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6712 break 2 6713 fi 6714done 6715 done 6716IFS=$as_save_IFS 6717 6718fi 6719fi 6720STRIP=$ac_cv_prog_STRIP 6721if test -n "$STRIP"; then 6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6723$as_echo "$STRIP" >&6; } 6724else 6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6726$as_echo "no" >&6; } 6727fi 6728 6729 6730fi 6731if test -z "$ac_cv_prog_STRIP"; then 6732 ac_ct_STRIP=$STRIP 6733 # Extract the first word of "strip", so it can be a program name with args. 6734set dummy strip; ac_word=$2 6735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6736$as_echo_n "checking for $ac_word... " >&6; } 6737if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6738 $as_echo_n "(cached) " >&6 6739else 6740 if test -n "$ac_ct_STRIP"; then 6741 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6742else 6743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6744for as_dir in $PATH 6745do 6746 IFS=$as_save_IFS 6747 test -z "$as_dir" && as_dir=. 6748 for ac_exec_ext in '' $ac_executable_extensions; do 6749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6750 ac_cv_prog_ac_ct_STRIP="strip" 6751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6752 break 2 6753 fi 6754done 6755 done 6756IFS=$as_save_IFS 6757 6758fi 6759fi 6760ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6761if test -n "$ac_ct_STRIP"; then 6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6763$as_echo "$ac_ct_STRIP" >&6; } 6764else 6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6766$as_echo "no" >&6; } 6767fi 6768 6769 if test "x$ac_ct_STRIP" = x; then 6770 STRIP=":" 6771 else 6772 case $cross_compiling:$ac_tool_warned in 6773yes:) 6774{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6775$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6776ac_tool_warned=yes ;; 6777esac 6778 STRIP=$ac_ct_STRIP 6779 fi 6780else 6781 STRIP="$ac_cv_prog_STRIP" 6782fi 6783 6784test -z "$STRIP" && STRIP=: 6785 6786 6787 6788 6789 6790 6791if test -n "$ac_tool_prefix"; then 6792 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6793set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6795$as_echo_n "checking for $ac_word... " >&6; } 6796if ${ac_cv_prog_RANLIB+:} false; then : 6797 $as_echo_n "(cached) " >&6 6798else 6799 if test -n "$RANLIB"; then 6800 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6801else 6802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6803for as_dir in $PATH 6804do 6805 IFS=$as_save_IFS 6806 test -z "$as_dir" && as_dir=. 6807 for ac_exec_ext in '' $ac_executable_extensions; do 6808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6809 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6811 break 2 6812 fi 6813done 6814 done 6815IFS=$as_save_IFS 6816 6817fi 6818fi 6819RANLIB=$ac_cv_prog_RANLIB 6820if test -n "$RANLIB"; then 6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6822$as_echo "$RANLIB" >&6; } 6823else 6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6825$as_echo "no" >&6; } 6826fi 6827 6828 6829fi 6830if test -z "$ac_cv_prog_RANLIB"; then 6831 ac_ct_RANLIB=$RANLIB 6832 # Extract the first word of "ranlib", so it can be a program name with args. 6833set dummy ranlib; ac_word=$2 6834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6835$as_echo_n "checking for $ac_word... " >&6; } 6836if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6837 $as_echo_n "(cached) " >&6 6838else 6839 if test -n "$ac_ct_RANLIB"; then 6840 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6841else 6842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6843for as_dir in $PATH 6844do 6845 IFS=$as_save_IFS 6846 test -z "$as_dir" && as_dir=. 6847 for ac_exec_ext in '' $ac_executable_extensions; do 6848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6849 ac_cv_prog_ac_ct_RANLIB="ranlib" 6850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6851 break 2 6852 fi 6853done 6854 done 6855IFS=$as_save_IFS 6856 6857fi 6858fi 6859ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6860if test -n "$ac_ct_RANLIB"; then 6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6862$as_echo "$ac_ct_RANLIB" >&6; } 6863else 6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6865$as_echo "no" >&6; } 6866fi 6867 6868 if test "x$ac_ct_RANLIB" = x; then 6869 RANLIB=":" 6870 else 6871 case $cross_compiling:$ac_tool_warned in 6872yes:) 6873{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6874$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6875ac_tool_warned=yes ;; 6876esac 6877 RANLIB=$ac_ct_RANLIB 6878 fi 6879else 6880 RANLIB="$ac_cv_prog_RANLIB" 6881fi 6882 6883test -z "$RANLIB" && RANLIB=: 6884 6885 6886 6887 6888 6889 6890# Determine commands to create old-style static archives. 6891old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6892old_postinstall_cmds='chmod 644 $oldlib' 6893old_postuninstall_cmds= 6894 6895if test -n "$RANLIB"; then 6896 case $host_os in 6897 openbsd*) 6898 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6899 ;; 6900 *) 6901 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6902 ;; 6903 esac 6904 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6905fi 6906 6907case $host_os in 6908 darwin*) 6909 lock_old_archive_extraction=yes ;; 6910 *) 6911 lock_old_archive_extraction=no ;; 6912esac 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952# If no C compiler was specified, use CC. 6953LTCC=${LTCC-"$CC"} 6954 6955# If no C compiler flags were specified, use CFLAGS. 6956LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6957 6958# Allow CC to be a program name with arguments. 6959compiler=$CC 6960 6961 6962# Check for command to grab the raw symbol name followed by C symbol from nm. 6963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6964$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6965if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6966 $as_echo_n "(cached) " >&6 6967else 6968 6969# These are sane defaults that work on at least a few old systems. 6970# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6971 6972# Character class describing NM global symbol codes. 6973symcode='[BCDEGRST]' 6974 6975# Regexp to match symbols that can be accessed directly from C. 6976sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6977 6978# Define system-specific variables. 6979case $host_os in 6980aix*) 6981 symcode='[BCDT]' 6982 ;; 6983cygwin* | mingw* | pw32* | cegcc*) 6984 symcode='[ABCDGISTW]' 6985 ;; 6986hpux*) 6987 if test "$host_cpu" = ia64; then 6988 symcode='[ABCDEGRST]' 6989 fi 6990 ;; 6991irix* | nonstopux*) 6992 symcode='[BCDEGRST]' 6993 ;; 6994osf*) 6995 symcode='[BCDEGQRST]' 6996 ;; 6997solaris*) 6998 symcode='[BDRT]' 6999 ;; 7000sco3.2v5*) 7001 symcode='[DT]' 7002 ;; 7003sysv4.2uw2*) 7004 symcode='[DT]' 7005 ;; 7006sysv5* | sco5v6* | unixware* | OpenUNIX*) 7007 symcode='[ABDT]' 7008 ;; 7009sysv4) 7010 symcode='[DFNSTU]' 7011 ;; 7012esac 7013 7014# If we're using GNU nm, then use its standard symbol codes. 7015case `$NM -V 2>&1` in 7016*GNU* | *'with BFD'*) 7017 symcode='[ABCDGIRSTW]' ;; 7018esac 7019 7020# Transform an extracted symbol line into a proper C declaration. 7021# Some systems (esp. on ia64) link data and code symbols differently, 7022# so use this general approach. 7023lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7024 7025# Transform an extracted symbol line into symbol name and symbol address 7026lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 7027lt_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'" 7028 7029# Handle CRLF in mingw tool chain 7030opt_cr= 7031case $build_os in 7032mingw*) 7033 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7034 ;; 7035esac 7036 7037# Try without a prefix underscore, then with it. 7038for ac_symprfx in "" "_"; do 7039 7040 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7041 symxfrm="\\1 $ac_symprfx\\2 \\2" 7042 7043 # Write the raw and C identifiers. 7044 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7045 # Fake it for dumpbin and say T for any non-static function 7046 # and D for any global variable. 7047 # Also find C++ and __fastcall symbols from MSVC++, 7048 # which start with @ or ?. 7049 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7050" {last_section=section; section=\$ 3};"\ 7051" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7052" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7053" \$ 0!~/External *\|/{next};"\ 7054" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7055" {if(hide[section]) next};"\ 7056" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 7057" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 7058" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 7059" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 7060" ' prfx=^$ac_symprfx" 7061 else 7062 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7063 fi 7064 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7065 7066 # Check to see that the pipe works correctly. 7067 pipe_works=no 7068 7069 rm -f conftest* 7070 cat > conftest.$ac_ext <<_LT_EOF 7071#ifdef __cplusplus 7072extern "C" { 7073#endif 7074char nm_test_var; 7075void nm_test_func(void); 7076void nm_test_func(void){} 7077#ifdef __cplusplus 7078} 7079#endif 7080int main(){nm_test_var='a';nm_test_func();return(0);} 7081_LT_EOF 7082 7083 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7084 (eval $ac_compile) 2>&5 7085 ac_status=$? 7086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7087 test $ac_status = 0; }; then 7088 # Now try to grab the symbols. 7089 nlist=conftest.nm 7090 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7091 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7092 ac_status=$? 7093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7094 test $ac_status = 0; } && test -s "$nlist"; then 7095 # Try sorting and uniquifying the output. 7096 if sort "$nlist" | uniq > "$nlist"T; then 7097 mv -f "$nlist"T "$nlist" 7098 else 7099 rm -f "$nlist"T 7100 fi 7101 7102 # Make sure that we snagged all the symbols we need. 7103 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7104 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7105 cat <<_LT_EOF > conftest.$ac_ext 7106/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7107#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 7108/* DATA imports from DLLs on WIN32 con't be const, because runtime 7109 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7110# define LT_DLSYM_CONST 7111#elif defined(__osf__) 7112/* This system does not cope well with relocations in const data. */ 7113# define LT_DLSYM_CONST 7114#else 7115# define LT_DLSYM_CONST const 7116#endif 7117 7118#ifdef __cplusplus 7119extern "C" { 7120#endif 7121 7122_LT_EOF 7123 # Now generate the symbol file. 7124 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7125 7126 cat <<_LT_EOF >> conftest.$ac_ext 7127 7128/* The mapping between symbol names and symbols. */ 7129LT_DLSYM_CONST struct { 7130 const char *name; 7131 void *address; 7132} 7133lt__PROGRAM__LTX_preloaded_symbols[] = 7134{ 7135 { "@PROGRAM@", (void *) 0 }, 7136_LT_EOF 7137 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7138 cat <<\_LT_EOF >> conftest.$ac_ext 7139 {0, (void *) 0} 7140}; 7141 7142/* This works around a problem in FreeBSD linker */ 7143#ifdef FREEBSD_WORKAROUND 7144static const void *lt_preloaded_setup() { 7145 return lt__PROGRAM__LTX_preloaded_symbols; 7146} 7147#endif 7148 7149#ifdef __cplusplus 7150} 7151#endif 7152_LT_EOF 7153 # Now try linking the two files. 7154 mv conftest.$ac_objext conftstm.$ac_objext 7155 lt_globsym_save_LIBS=$LIBS 7156 lt_globsym_save_CFLAGS=$CFLAGS 7157 LIBS="conftstm.$ac_objext" 7158 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7159 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7160 (eval $ac_link) 2>&5 7161 ac_status=$? 7162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7163 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 7164 pipe_works=yes 7165 fi 7166 LIBS=$lt_globsym_save_LIBS 7167 CFLAGS=$lt_globsym_save_CFLAGS 7168 else 7169 echo "cannot find nm_test_func in $nlist" >&5 7170 fi 7171 else 7172 echo "cannot find nm_test_var in $nlist" >&5 7173 fi 7174 else 7175 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7176 fi 7177 else 7178 echo "$progname: failed program was:" >&5 7179 cat conftest.$ac_ext >&5 7180 fi 7181 rm -rf conftest* conftst* 7182 7183 # Do not use the global_symbol_pipe unless it works. 7184 if test "$pipe_works" = yes; then 7185 break 7186 else 7187 lt_cv_sys_global_symbol_pipe= 7188 fi 7189done 7190 7191fi 7192 7193if test -z "$lt_cv_sys_global_symbol_pipe"; then 7194 lt_cv_sys_global_symbol_to_cdecl= 7195fi 7196if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7198$as_echo "failed" >&6; } 7199else 7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7201$as_echo "ok" >&6; } 7202fi 7203 7204# Response file support. 7205if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7206 nm_file_list_spec='@' 7207elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7208 nm_file_list_spec='@' 7209fi 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7238$as_echo_n "checking for sysroot... " >&6; } 7239 7240# Check whether --with-sysroot was given. 7241if test "${with_sysroot+set}" = set; then : 7242 withval=$with_sysroot; 7243else 7244 with_sysroot=no 7245fi 7246 7247 7248lt_sysroot= 7249case ${with_sysroot} in #( 7250 yes) 7251 if test "$GCC" = yes; then 7252 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7253 fi 7254 ;; #( 7255 /*) 7256 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7257 ;; #( 7258 no|'') 7259 ;; #( 7260 *) 7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 7262$as_echo "${with_sysroot}" >&6; } 7263 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7264 ;; 7265esac 7266 7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7268$as_echo "${lt_sysroot:-no}" >&6; } 7269 7270 7271 7272 7273 7274# Check whether --enable-libtool-lock was given. 7275if test "${enable_libtool_lock+set}" = set; then : 7276 enableval=$enable_libtool_lock; 7277fi 7278 7279test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7280 7281# Some flags need to be propagated to the compiler or linker for good 7282# libtool support. 7283case $host in 7284ia64-*-hpux*) 7285 # Find out which ABI we are using. 7286 echo 'int i;' > conftest.$ac_ext 7287 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7288 (eval $ac_compile) 2>&5 7289 ac_status=$? 7290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7291 test $ac_status = 0; }; then 7292 case `/usr/bin/file conftest.$ac_objext` in 7293 *ELF-32*) 7294 HPUX_IA64_MODE="32" 7295 ;; 7296 *ELF-64*) 7297 HPUX_IA64_MODE="64" 7298 ;; 7299 esac 7300 fi 7301 rm -rf conftest* 7302 ;; 7303*-*-irix6*) 7304 # Find out which ABI we are using. 7305 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7306 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7307 (eval $ac_compile) 2>&5 7308 ac_status=$? 7309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7310 test $ac_status = 0; }; then 7311 if test "$lt_cv_prog_gnu_ld" = yes; then 7312 case `/usr/bin/file conftest.$ac_objext` in 7313 *32-bit*) 7314 LD="${LD-ld} -melf32bsmip" 7315 ;; 7316 *N32*) 7317 LD="${LD-ld} -melf32bmipn32" 7318 ;; 7319 *64-bit*) 7320 LD="${LD-ld} -melf64bmip" 7321 ;; 7322 esac 7323 else 7324 case `/usr/bin/file conftest.$ac_objext` in 7325 *32-bit*) 7326 LD="${LD-ld} -32" 7327 ;; 7328 *N32*) 7329 LD="${LD-ld} -n32" 7330 ;; 7331 *64-bit*) 7332 LD="${LD-ld} -64" 7333 ;; 7334 esac 7335 fi 7336 fi 7337 rm -rf conftest* 7338 ;; 7339 7340x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 7341s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7342 # Find out which ABI we are using. 7343 echo 'int i;' > conftest.$ac_ext 7344 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7345 (eval $ac_compile) 2>&5 7346 ac_status=$? 7347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7348 test $ac_status = 0; }; then 7349 case `/usr/bin/file conftest.o` in 7350 *32-bit*) 7351 case $host in 7352 x86_64-*kfreebsd*-gnu) 7353 LD="${LD-ld} -m elf_i386_fbsd" 7354 ;; 7355 x86_64-*linux*) 7356 LD="${LD-ld} -m elf_i386" 7357 ;; 7358 ppc64-*linux*|powerpc64-*linux*) 7359 LD="${LD-ld} -m elf32ppclinux" 7360 ;; 7361 s390x-*linux*) 7362 LD="${LD-ld} -m elf_s390" 7363 ;; 7364 sparc64-*linux*) 7365 LD="${LD-ld} -m elf32_sparc" 7366 ;; 7367 esac 7368 ;; 7369 *64-bit*) 7370 case $host in 7371 x86_64-*kfreebsd*-gnu) 7372 LD="${LD-ld} -m elf_x86_64_fbsd" 7373 ;; 7374 x86_64-*linux*) 7375 LD="${LD-ld} -m elf_x86_64" 7376 ;; 7377 ppc*-*linux*|powerpc*-*linux*) 7378 LD="${LD-ld} -m elf64ppc" 7379 ;; 7380 s390*-*linux*|s390*-*tpf*) 7381 LD="${LD-ld} -m elf64_s390" 7382 ;; 7383 sparc*-*linux*) 7384 LD="${LD-ld} -m elf64_sparc" 7385 ;; 7386 esac 7387 ;; 7388 esac 7389 fi 7390 rm -rf conftest* 7391 ;; 7392 7393*-*-sco3.2v5*) 7394 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7395 SAVE_CFLAGS="$CFLAGS" 7396 CFLAGS="$CFLAGS -belf" 7397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7398$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7399if ${lt_cv_cc_needs_belf+:} false; then : 7400 $as_echo_n "(cached) " >&6 7401else 7402 ac_ext=c 7403ac_cpp='$CPP $CPPFLAGS' 7404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7406ac_compiler_gnu=$ac_cv_c_compiler_gnu 7407 7408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7409/* end confdefs.h. */ 7410 7411int 7412main () 7413{ 7414 7415 ; 7416 return 0; 7417} 7418_ACEOF 7419if ac_fn_c_try_link "$LINENO"; then : 7420 lt_cv_cc_needs_belf=yes 7421else 7422 lt_cv_cc_needs_belf=no 7423fi 7424rm -f core conftest.err conftest.$ac_objext \ 7425 conftest$ac_exeext conftest.$ac_ext 7426 ac_ext=c 7427ac_cpp='$CPP $CPPFLAGS' 7428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7430ac_compiler_gnu=$ac_cv_c_compiler_gnu 7431 7432fi 7433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7434$as_echo "$lt_cv_cc_needs_belf" >&6; } 7435 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7436 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7437 CFLAGS="$SAVE_CFLAGS" 7438 fi 7439 ;; 7440*-*solaris*) 7441 # Find out which ABI we are using. 7442 echo 'int i;' > conftest.$ac_ext 7443 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7444 (eval $ac_compile) 2>&5 7445 ac_status=$? 7446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7447 test $ac_status = 0; }; then 7448 case `/usr/bin/file conftest.o` in 7449 *64-bit*) 7450 case $lt_cv_prog_gnu_ld in 7451 yes*) 7452 case $host in 7453 i?86-*-solaris*) 7454 LD="${LD-ld} -m elf_x86_64" 7455 ;; 7456 sparc*-*-solaris*) 7457 LD="${LD-ld} -m elf64_sparc" 7458 ;; 7459 esac 7460 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7461 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7462 LD="${LD-ld}_sol2" 7463 fi 7464 ;; 7465 *) 7466 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7467 LD="${LD-ld} -64" 7468 fi 7469 ;; 7470 esac 7471 ;; 7472 esac 7473 fi 7474 rm -rf conftest* 7475 ;; 7476esac 7477 7478need_locks="$enable_libtool_lock" 7479 7480if test -n "$ac_tool_prefix"; then 7481 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7482set dummy ${ac_tool_prefix}mt; ac_word=$2 7483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7484$as_echo_n "checking for $ac_word... " >&6; } 7485if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7486 $as_echo_n "(cached) " >&6 7487else 7488 if test -n "$MANIFEST_TOOL"; then 7489 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7490else 7491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7492for as_dir in $PATH 7493do 7494 IFS=$as_save_IFS 7495 test -z "$as_dir" && as_dir=. 7496 for ac_exec_ext in '' $ac_executable_extensions; do 7497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7498 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7500 break 2 7501 fi 7502done 7503 done 7504IFS=$as_save_IFS 7505 7506fi 7507fi 7508MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7509if test -n "$MANIFEST_TOOL"; then 7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7511$as_echo "$MANIFEST_TOOL" >&6; } 7512else 7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7514$as_echo "no" >&6; } 7515fi 7516 7517 7518fi 7519if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7520 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7521 # Extract the first word of "mt", so it can be a program name with args. 7522set dummy mt; ac_word=$2 7523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7524$as_echo_n "checking for $ac_word... " >&6; } 7525if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7526 $as_echo_n "(cached) " >&6 7527else 7528 if test -n "$ac_ct_MANIFEST_TOOL"; then 7529 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7530else 7531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7532for as_dir in $PATH 7533do 7534 IFS=$as_save_IFS 7535 test -z "$as_dir" && as_dir=. 7536 for ac_exec_ext in '' $ac_executable_extensions; do 7537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7538 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7540 break 2 7541 fi 7542done 7543 done 7544IFS=$as_save_IFS 7545 7546fi 7547fi 7548ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7549if test -n "$ac_ct_MANIFEST_TOOL"; then 7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7551$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7552else 7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7554$as_echo "no" >&6; } 7555fi 7556 7557 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7558 MANIFEST_TOOL=":" 7559 else 7560 case $cross_compiling:$ac_tool_warned in 7561yes:) 7562{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7563$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7564ac_tool_warned=yes ;; 7565esac 7566 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7567 fi 7568else 7569 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7570fi 7571 7572test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7574$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7575if ${lt_cv_path_mainfest_tool+:} false; then : 7576 $as_echo_n "(cached) " >&6 7577else 7578 lt_cv_path_mainfest_tool=no 7579 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7580 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7581 cat conftest.err >&5 7582 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7583 lt_cv_path_mainfest_tool=yes 7584 fi 7585 rm -f conftest* 7586fi 7587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7588$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7589if test "x$lt_cv_path_mainfest_tool" != xyes; then 7590 MANIFEST_TOOL=: 7591fi 7592 7593 7594 7595 7596 7597 7598 case $host_os in 7599 rhapsody* | darwin*) 7600 if test -n "$ac_tool_prefix"; then 7601 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7602set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7604$as_echo_n "checking for $ac_word... " >&6; } 7605if ${ac_cv_prog_DSYMUTIL+:} false; then : 7606 $as_echo_n "(cached) " >&6 7607else 7608 if test -n "$DSYMUTIL"; then 7609 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7610else 7611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7612for as_dir in $PATH 7613do 7614 IFS=$as_save_IFS 7615 test -z "$as_dir" && as_dir=. 7616 for ac_exec_ext in '' $ac_executable_extensions; do 7617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7618 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7620 break 2 7621 fi 7622done 7623 done 7624IFS=$as_save_IFS 7625 7626fi 7627fi 7628DSYMUTIL=$ac_cv_prog_DSYMUTIL 7629if test -n "$DSYMUTIL"; then 7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7631$as_echo "$DSYMUTIL" >&6; } 7632else 7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7634$as_echo "no" >&6; } 7635fi 7636 7637 7638fi 7639if test -z "$ac_cv_prog_DSYMUTIL"; then 7640 ac_ct_DSYMUTIL=$DSYMUTIL 7641 # Extract the first word of "dsymutil", so it can be a program name with args. 7642set dummy dsymutil; ac_word=$2 7643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7644$as_echo_n "checking for $ac_word... " >&6; } 7645if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7646 $as_echo_n "(cached) " >&6 7647else 7648 if test -n "$ac_ct_DSYMUTIL"; then 7649 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7650else 7651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7652for as_dir in $PATH 7653do 7654 IFS=$as_save_IFS 7655 test -z "$as_dir" && as_dir=. 7656 for ac_exec_ext in '' $ac_executable_extensions; do 7657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7658 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7660 break 2 7661 fi 7662done 7663 done 7664IFS=$as_save_IFS 7665 7666fi 7667fi 7668ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7669if test -n "$ac_ct_DSYMUTIL"; then 7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7671$as_echo "$ac_ct_DSYMUTIL" >&6; } 7672else 7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7674$as_echo "no" >&6; } 7675fi 7676 7677 if test "x$ac_ct_DSYMUTIL" = x; then 7678 DSYMUTIL=":" 7679 else 7680 case $cross_compiling:$ac_tool_warned in 7681yes:) 7682{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7683$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7684ac_tool_warned=yes ;; 7685esac 7686 DSYMUTIL=$ac_ct_DSYMUTIL 7687 fi 7688else 7689 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7690fi 7691 7692 if test -n "$ac_tool_prefix"; then 7693 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7694set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7696$as_echo_n "checking for $ac_word... " >&6; } 7697if ${ac_cv_prog_NMEDIT+:} false; then : 7698 $as_echo_n "(cached) " >&6 7699else 7700 if test -n "$NMEDIT"; then 7701 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7702else 7703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7704for as_dir in $PATH 7705do 7706 IFS=$as_save_IFS 7707 test -z "$as_dir" && as_dir=. 7708 for ac_exec_ext in '' $ac_executable_extensions; do 7709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7710 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7712 break 2 7713 fi 7714done 7715 done 7716IFS=$as_save_IFS 7717 7718fi 7719fi 7720NMEDIT=$ac_cv_prog_NMEDIT 7721if test -n "$NMEDIT"; then 7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7723$as_echo "$NMEDIT" >&6; } 7724else 7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7726$as_echo "no" >&6; } 7727fi 7728 7729 7730fi 7731if test -z "$ac_cv_prog_NMEDIT"; then 7732 ac_ct_NMEDIT=$NMEDIT 7733 # Extract the first word of "nmedit", so it can be a program name with args. 7734set dummy nmedit; ac_word=$2 7735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7736$as_echo_n "checking for $ac_word... " >&6; } 7737if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7738 $as_echo_n "(cached) " >&6 7739else 7740 if test -n "$ac_ct_NMEDIT"; then 7741 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7742else 7743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7744for as_dir in $PATH 7745do 7746 IFS=$as_save_IFS 7747 test -z "$as_dir" && as_dir=. 7748 for ac_exec_ext in '' $ac_executable_extensions; do 7749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7750 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7752 break 2 7753 fi 7754done 7755 done 7756IFS=$as_save_IFS 7757 7758fi 7759fi 7760ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7761if test -n "$ac_ct_NMEDIT"; then 7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7763$as_echo "$ac_ct_NMEDIT" >&6; } 7764else 7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7766$as_echo "no" >&6; } 7767fi 7768 7769 if test "x$ac_ct_NMEDIT" = x; then 7770 NMEDIT=":" 7771 else 7772 case $cross_compiling:$ac_tool_warned in 7773yes:) 7774{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7775$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7776ac_tool_warned=yes ;; 7777esac 7778 NMEDIT=$ac_ct_NMEDIT 7779 fi 7780else 7781 NMEDIT="$ac_cv_prog_NMEDIT" 7782fi 7783 7784 if test -n "$ac_tool_prefix"; then 7785 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7786set dummy ${ac_tool_prefix}lipo; ac_word=$2 7787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7788$as_echo_n "checking for $ac_word... " >&6; } 7789if ${ac_cv_prog_LIPO+:} false; then : 7790 $as_echo_n "(cached) " >&6 7791else 7792 if test -n "$LIPO"; then 7793 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7794else 7795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7796for as_dir in $PATH 7797do 7798 IFS=$as_save_IFS 7799 test -z "$as_dir" && as_dir=. 7800 for ac_exec_ext in '' $ac_executable_extensions; do 7801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7802 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7804 break 2 7805 fi 7806done 7807 done 7808IFS=$as_save_IFS 7809 7810fi 7811fi 7812LIPO=$ac_cv_prog_LIPO 7813if test -n "$LIPO"; then 7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7815$as_echo "$LIPO" >&6; } 7816else 7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7818$as_echo "no" >&6; } 7819fi 7820 7821 7822fi 7823if test -z "$ac_cv_prog_LIPO"; then 7824 ac_ct_LIPO=$LIPO 7825 # Extract the first word of "lipo", so it can be a program name with args. 7826set dummy lipo; ac_word=$2 7827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7828$as_echo_n "checking for $ac_word... " >&6; } 7829if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7830 $as_echo_n "(cached) " >&6 7831else 7832 if test -n "$ac_ct_LIPO"; then 7833 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7834else 7835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7836for as_dir in $PATH 7837do 7838 IFS=$as_save_IFS 7839 test -z "$as_dir" && as_dir=. 7840 for ac_exec_ext in '' $ac_executable_extensions; do 7841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7842 ac_cv_prog_ac_ct_LIPO="lipo" 7843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7844 break 2 7845 fi 7846done 7847 done 7848IFS=$as_save_IFS 7849 7850fi 7851fi 7852ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7853if test -n "$ac_ct_LIPO"; then 7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7855$as_echo "$ac_ct_LIPO" >&6; } 7856else 7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7858$as_echo "no" >&6; } 7859fi 7860 7861 if test "x$ac_ct_LIPO" = x; then 7862 LIPO=":" 7863 else 7864 case $cross_compiling:$ac_tool_warned in 7865yes:) 7866{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7867$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7868ac_tool_warned=yes ;; 7869esac 7870 LIPO=$ac_ct_LIPO 7871 fi 7872else 7873 LIPO="$ac_cv_prog_LIPO" 7874fi 7875 7876 if test -n "$ac_tool_prefix"; then 7877 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7878set dummy ${ac_tool_prefix}otool; ac_word=$2 7879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7880$as_echo_n "checking for $ac_word... " >&6; } 7881if ${ac_cv_prog_OTOOL+:} false; then : 7882 $as_echo_n "(cached) " >&6 7883else 7884 if test -n "$OTOOL"; then 7885 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7886else 7887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7888for as_dir in $PATH 7889do 7890 IFS=$as_save_IFS 7891 test -z "$as_dir" && as_dir=. 7892 for ac_exec_ext in '' $ac_executable_extensions; do 7893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7894 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7896 break 2 7897 fi 7898done 7899 done 7900IFS=$as_save_IFS 7901 7902fi 7903fi 7904OTOOL=$ac_cv_prog_OTOOL 7905if test -n "$OTOOL"; then 7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7907$as_echo "$OTOOL" >&6; } 7908else 7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7910$as_echo "no" >&6; } 7911fi 7912 7913 7914fi 7915if test -z "$ac_cv_prog_OTOOL"; then 7916 ac_ct_OTOOL=$OTOOL 7917 # Extract the first word of "otool", so it can be a program name with args. 7918set dummy otool; ac_word=$2 7919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7920$as_echo_n "checking for $ac_word... " >&6; } 7921if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7922 $as_echo_n "(cached) " >&6 7923else 7924 if test -n "$ac_ct_OTOOL"; then 7925 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7926else 7927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7928for as_dir in $PATH 7929do 7930 IFS=$as_save_IFS 7931 test -z "$as_dir" && as_dir=. 7932 for ac_exec_ext in '' $ac_executable_extensions; do 7933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7934 ac_cv_prog_ac_ct_OTOOL="otool" 7935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7936 break 2 7937 fi 7938done 7939 done 7940IFS=$as_save_IFS 7941 7942fi 7943fi 7944ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7945if test -n "$ac_ct_OTOOL"; then 7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7947$as_echo "$ac_ct_OTOOL" >&6; } 7948else 7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7950$as_echo "no" >&6; } 7951fi 7952 7953 if test "x$ac_ct_OTOOL" = x; then 7954 OTOOL=":" 7955 else 7956 case $cross_compiling:$ac_tool_warned in 7957yes:) 7958{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7959$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7960ac_tool_warned=yes ;; 7961esac 7962 OTOOL=$ac_ct_OTOOL 7963 fi 7964else 7965 OTOOL="$ac_cv_prog_OTOOL" 7966fi 7967 7968 if test -n "$ac_tool_prefix"; then 7969 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7970set dummy ${ac_tool_prefix}otool64; ac_word=$2 7971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7972$as_echo_n "checking for $ac_word... " >&6; } 7973if ${ac_cv_prog_OTOOL64+:} false; then : 7974 $as_echo_n "(cached) " >&6 7975else 7976 if test -n "$OTOOL64"; then 7977 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7978else 7979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7980for as_dir in $PATH 7981do 7982 IFS=$as_save_IFS 7983 test -z "$as_dir" && as_dir=. 7984 for ac_exec_ext in '' $ac_executable_extensions; do 7985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7986 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7988 break 2 7989 fi 7990done 7991 done 7992IFS=$as_save_IFS 7993 7994fi 7995fi 7996OTOOL64=$ac_cv_prog_OTOOL64 7997if test -n "$OTOOL64"; then 7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7999$as_echo "$OTOOL64" >&6; } 8000else 8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8002$as_echo "no" >&6; } 8003fi 8004 8005 8006fi 8007if test -z "$ac_cv_prog_OTOOL64"; then 8008 ac_ct_OTOOL64=$OTOOL64 8009 # Extract the first word of "otool64", so it can be a program name with args. 8010set dummy otool64; ac_word=$2 8011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8012$as_echo_n "checking for $ac_word... " >&6; } 8013if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8014 $as_echo_n "(cached) " >&6 8015else 8016 if test -n "$ac_ct_OTOOL64"; then 8017 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8018else 8019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8020for as_dir in $PATH 8021do 8022 IFS=$as_save_IFS 8023 test -z "$as_dir" && as_dir=. 8024 for ac_exec_ext in '' $ac_executable_extensions; do 8025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8026 ac_cv_prog_ac_ct_OTOOL64="otool64" 8027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8028 break 2 8029 fi 8030done 8031 done 8032IFS=$as_save_IFS 8033 8034fi 8035fi 8036ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8037if test -n "$ac_ct_OTOOL64"; then 8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8039$as_echo "$ac_ct_OTOOL64" >&6; } 8040else 8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8042$as_echo "no" >&6; } 8043fi 8044 8045 if test "x$ac_ct_OTOOL64" = x; then 8046 OTOOL64=":" 8047 else 8048 case $cross_compiling:$ac_tool_warned in 8049yes:) 8050{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8051$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8052ac_tool_warned=yes ;; 8053esac 8054 OTOOL64=$ac_ct_OTOOL64 8055 fi 8056else 8057 OTOOL64="$ac_cv_prog_OTOOL64" 8058fi 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8087$as_echo_n "checking for -single_module linker flag... " >&6; } 8088if ${lt_cv_apple_cc_single_mod+:} false; then : 8089 $as_echo_n "(cached) " >&6 8090else 8091 lt_cv_apple_cc_single_mod=no 8092 if test -z "${LT_MULTI_MODULE}"; then 8093 # By default we will add the -single_module flag. You can override 8094 # by either setting the environment variable LT_MULTI_MODULE 8095 # non-empty at configure time, or by adding -multi_module to the 8096 # link flags. 8097 rm -rf libconftest.dylib* 8098 echo "int foo(void){return 1;}" > conftest.c 8099 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8100-dynamiclib -Wl,-single_module conftest.c" >&5 8101 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8102 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8103 _lt_result=$? 8104 # If there is a non-empty error log, and "single_module" 8105 # appears in it, assume the flag caused a linker warning 8106 if test -s conftest.err && $GREP single_module conftest.err; then 8107 cat conftest.err >&5 8108 # Otherwise, if the output was created with a 0 exit code from 8109 # the compiler, it worked. 8110 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 8111 lt_cv_apple_cc_single_mod=yes 8112 else 8113 cat conftest.err >&5 8114 fi 8115 rm -rf libconftest.dylib* 8116 rm -f conftest.* 8117 fi 8118fi 8119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8120$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8121 8122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8123$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8124if ${lt_cv_ld_exported_symbols_list+:} false; then : 8125 $as_echo_n "(cached) " >&6 8126else 8127 lt_cv_ld_exported_symbols_list=no 8128 save_LDFLAGS=$LDFLAGS 8129 echo "_main" > conftest.sym 8130 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8132/* end confdefs.h. */ 8133 8134int 8135main () 8136{ 8137 8138 ; 8139 return 0; 8140} 8141_ACEOF 8142if ac_fn_c_try_link "$LINENO"; then : 8143 lt_cv_ld_exported_symbols_list=yes 8144else 8145 lt_cv_ld_exported_symbols_list=no 8146fi 8147rm -f core conftest.err conftest.$ac_objext \ 8148 conftest$ac_exeext conftest.$ac_ext 8149 LDFLAGS="$save_LDFLAGS" 8150 8151fi 8152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8153$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8154 8155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8156$as_echo_n "checking for -force_load linker flag... " >&6; } 8157if ${lt_cv_ld_force_load+:} false; then : 8158 $as_echo_n "(cached) " >&6 8159else 8160 lt_cv_ld_force_load=no 8161 cat > conftest.c << _LT_EOF 8162int forced_loaded() { return 2;} 8163_LT_EOF 8164 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8165 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8166 echo "$AR cru libconftest.a conftest.o" >&5 8167 $AR cru libconftest.a conftest.o 2>&5 8168 echo "$RANLIB libconftest.a" >&5 8169 $RANLIB libconftest.a 2>&5 8170 cat > conftest.c << _LT_EOF 8171int main() { return 0;} 8172_LT_EOF 8173 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8174 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8175 _lt_result=$? 8176 if test -s conftest.err && $GREP force_load conftest.err; then 8177 cat conftest.err >&5 8178 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 8179 lt_cv_ld_force_load=yes 8180 else 8181 cat conftest.err >&5 8182 fi 8183 rm -f conftest.err libconftest.a conftest conftest.c 8184 rm -rf conftest.dSYM 8185 8186fi 8187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8188$as_echo "$lt_cv_ld_force_load" >&6; } 8189 case $host_os in 8190 rhapsody* | darwin1.[012]) 8191 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 8192 darwin1.*) 8193 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8194 darwin*) # darwin 5.x on 8195 # if running on 10.5 or later, the deployment target defaults 8196 # to the OS version, if on x86, and 10.4, the deployment 8197 # target defaults to 10.4. Don't you love it? 8198 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8199 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8200 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8201 10.[012]*) 8202 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8203 10.*) 8204 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8205 esac 8206 ;; 8207 esac 8208 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 8209 _lt_dar_single_mod='$single_module' 8210 fi 8211 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 8212 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 8213 else 8214 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 8215 fi 8216 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 8217 _lt_dsymutil='~$DSYMUTIL $lib || :' 8218 else 8219 _lt_dsymutil= 8220 fi 8221 ;; 8222 esac 8223 8224for ac_header in dlfcn.h 8225do : 8226 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8227" 8228if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8229 cat >>confdefs.h <<_ACEOF 8230#define HAVE_DLFCN_H 1 8231_ACEOF 8232 8233fi 8234 8235done 8236 8237 8238 8239 8240 8241# Set options 8242 8243 8244 8245 enable_dlopen=no 8246 8247 8248 enable_win32_dll=no 8249 8250 8251 # Check whether --enable-shared was given. 8252if test "${enable_shared+set}" = set; then : 8253 enableval=$enable_shared; p=${PACKAGE-default} 8254 case $enableval in 8255 yes) enable_shared=yes ;; 8256 no) enable_shared=no ;; 8257 *) 8258 enable_shared=no 8259 # Look at the argument we got. We use all the common list separators. 8260 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8261 for pkg in $enableval; do 8262 IFS="$lt_save_ifs" 8263 if test "X$pkg" = "X$p"; then 8264 enable_shared=yes 8265 fi 8266 done 8267 IFS="$lt_save_ifs" 8268 ;; 8269 esac 8270else 8271 enable_shared=yes 8272fi 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 # Check whether --enable-static was given. 8283if test "${enable_static+set}" = set; then : 8284 enableval=$enable_static; p=${PACKAGE-default} 8285 case $enableval in 8286 yes) enable_static=yes ;; 8287 no) enable_static=no ;; 8288 *) 8289 enable_static=no 8290 # Look at the argument we got. We use all the common list separators. 8291 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8292 for pkg in $enableval; do 8293 IFS="$lt_save_ifs" 8294 if test "X$pkg" = "X$p"; then 8295 enable_static=yes 8296 fi 8297 done 8298 IFS="$lt_save_ifs" 8299 ;; 8300 esac 8301else 8302 enable_static=yes 8303fi 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314# Check whether --with-pic was given. 8315if test "${with_pic+set}" = set; then : 8316 withval=$with_pic; lt_p=${PACKAGE-default} 8317 case $withval in 8318 yes|no) pic_mode=$withval ;; 8319 *) 8320 pic_mode=default 8321 # Look at the argument we got. We use all the common list separators. 8322 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8323 for lt_pkg in $withval; do 8324 IFS="$lt_save_ifs" 8325 if test "X$lt_pkg" = "X$lt_p"; then 8326 pic_mode=yes 8327 fi 8328 done 8329 IFS="$lt_save_ifs" 8330 ;; 8331 esac 8332else 8333 pic_mode=default 8334fi 8335 8336 8337test -z "$pic_mode" && pic_mode=default 8338 8339 8340 8341 8342 8343 8344 8345 # Check whether --enable-fast-install was given. 8346if test "${enable_fast_install+set}" = set; then : 8347 enableval=$enable_fast_install; p=${PACKAGE-default} 8348 case $enableval in 8349 yes) enable_fast_install=yes ;; 8350 no) enable_fast_install=no ;; 8351 *) 8352 enable_fast_install=no 8353 # Look at the argument we got. We use all the common list separators. 8354 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8355 for pkg in $enableval; do 8356 IFS="$lt_save_ifs" 8357 if test "X$pkg" = "X$p"; then 8358 enable_fast_install=yes 8359 fi 8360 done 8361 IFS="$lt_save_ifs" 8362 ;; 8363 esac 8364else 8365 enable_fast_install=yes 8366fi 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378# This can be used to rebuild libtool when needed 8379LIBTOOL_DEPS="$ltmain" 8380 8381# Always use our own libtool. 8382LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413test -z "$LN_S" && LN_S="ln -s" 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428if test -n "${ZSH_VERSION+set}" ; then 8429 setopt NO_GLOB_SUBST 8430fi 8431 8432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8433$as_echo_n "checking for objdir... " >&6; } 8434if ${lt_cv_objdir+:} false; then : 8435 $as_echo_n "(cached) " >&6 8436else 8437 rm -f .libs 2>/dev/null 8438mkdir .libs 2>/dev/null 8439if test -d .libs; then 8440 lt_cv_objdir=.libs 8441else 8442 # MS-DOS does not allow filenames that begin with a dot. 8443 lt_cv_objdir=_libs 8444fi 8445rmdir .libs 2>/dev/null 8446fi 8447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8448$as_echo "$lt_cv_objdir" >&6; } 8449objdir=$lt_cv_objdir 8450 8451 8452 8453 8454 8455cat >>confdefs.h <<_ACEOF 8456#define LT_OBJDIR "$lt_cv_objdir/" 8457_ACEOF 8458 8459 8460 8461 8462case $host_os in 8463aix3*) 8464 # AIX sometimes has problems with the GCC collect2 program. For some 8465 # reason, if we set the COLLECT_NAMES environment variable, the problems 8466 # vanish in a puff of smoke. 8467 if test "X${COLLECT_NAMES+set}" != Xset; then 8468 COLLECT_NAMES= 8469 export COLLECT_NAMES 8470 fi 8471 ;; 8472esac 8473 8474# Global variables: 8475ofile=libtool 8476can_build_shared=yes 8477 8478# All known linkers require a `.a' archive for static linking (except MSVC, 8479# which needs '.lib'). 8480libext=a 8481 8482with_gnu_ld="$lt_cv_prog_gnu_ld" 8483 8484old_CC="$CC" 8485old_CFLAGS="$CFLAGS" 8486 8487# Set sane defaults for various variables 8488test -z "$CC" && CC=cc 8489test -z "$LTCC" && LTCC=$CC 8490test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8491test -z "$LD" && LD=ld 8492test -z "$ac_objext" && ac_objext=o 8493 8494for cc_temp in $compiler""; do 8495 case $cc_temp in 8496 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8497 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8498 \-*) ;; 8499 *) break;; 8500 esac 8501done 8502cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8503 8504 8505# Only perform the check for file, if the check method requires it 8506test -z "$MAGIC_CMD" && MAGIC_CMD=file 8507case $deplibs_check_method in 8508file_magic*) 8509 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8511$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8512if ${lt_cv_path_MAGIC_CMD+:} false; then : 8513 $as_echo_n "(cached) " >&6 8514else 8515 case $MAGIC_CMD in 8516[\\/*] | ?:[\\/]*) 8517 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8518 ;; 8519*) 8520 lt_save_MAGIC_CMD="$MAGIC_CMD" 8521 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8522 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8523 for ac_dir in $ac_dummy; do 8524 IFS="$lt_save_ifs" 8525 test -z "$ac_dir" && ac_dir=. 8526 if test -f $ac_dir/${ac_tool_prefix}file; then 8527 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8528 if test -n "$file_magic_test_file"; then 8529 case $deplibs_check_method in 8530 "file_magic "*) 8531 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8532 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8533 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8534 $EGREP "$file_magic_regex" > /dev/null; then 8535 : 8536 else 8537 cat <<_LT_EOF 1>&2 8538 8539*** Warning: the command libtool uses to detect shared libraries, 8540*** $file_magic_cmd, produces output that libtool cannot recognize. 8541*** The result is that libtool may fail to recognize shared libraries 8542*** as such. This will affect the creation of libtool libraries that 8543*** depend on shared libraries, but programs linked with such libtool 8544*** libraries will work regardless of this problem. Nevertheless, you 8545*** may want to report the problem to your system manager and/or to 8546*** bug-libtool@gnu.org 8547 8548_LT_EOF 8549 fi ;; 8550 esac 8551 fi 8552 break 8553 fi 8554 done 8555 IFS="$lt_save_ifs" 8556 MAGIC_CMD="$lt_save_MAGIC_CMD" 8557 ;; 8558esac 8559fi 8560 8561MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8562if test -n "$MAGIC_CMD"; then 8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8564$as_echo "$MAGIC_CMD" >&6; } 8565else 8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8567$as_echo "no" >&6; } 8568fi 8569 8570 8571 8572 8573 8574if test -z "$lt_cv_path_MAGIC_CMD"; then 8575 if test -n "$ac_tool_prefix"; then 8576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8577$as_echo_n "checking for file... " >&6; } 8578if ${lt_cv_path_MAGIC_CMD+:} false; then : 8579 $as_echo_n "(cached) " >&6 8580else 8581 case $MAGIC_CMD in 8582[\\/*] | ?:[\\/]*) 8583 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8584 ;; 8585*) 8586 lt_save_MAGIC_CMD="$MAGIC_CMD" 8587 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8588 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8589 for ac_dir in $ac_dummy; do 8590 IFS="$lt_save_ifs" 8591 test -z "$ac_dir" && ac_dir=. 8592 if test -f $ac_dir/file; then 8593 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8594 if test -n "$file_magic_test_file"; then 8595 case $deplibs_check_method in 8596 "file_magic "*) 8597 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8598 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8599 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8600 $EGREP "$file_magic_regex" > /dev/null; then 8601 : 8602 else 8603 cat <<_LT_EOF 1>&2 8604 8605*** Warning: the command libtool uses to detect shared libraries, 8606*** $file_magic_cmd, produces output that libtool cannot recognize. 8607*** The result is that libtool may fail to recognize shared libraries 8608*** as such. This will affect the creation of libtool libraries that 8609*** depend on shared libraries, but programs linked with such libtool 8610*** libraries will work regardless of this problem. Nevertheless, you 8611*** may want to report the problem to your system manager and/or to 8612*** bug-libtool@gnu.org 8613 8614_LT_EOF 8615 fi ;; 8616 esac 8617 fi 8618 break 8619 fi 8620 done 8621 IFS="$lt_save_ifs" 8622 MAGIC_CMD="$lt_save_MAGIC_CMD" 8623 ;; 8624esac 8625fi 8626 8627MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8628if test -n "$MAGIC_CMD"; then 8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8630$as_echo "$MAGIC_CMD" >&6; } 8631else 8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8633$as_echo "no" >&6; } 8634fi 8635 8636 8637 else 8638 MAGIC_CMD=: 8639 fi 8640fi 8641 8642 fi 8643 ;; 8644esac 8645 8646# Use C for the default configuration in the libtool script 8647 8648lt_save_CC="$CC" 8649ac_ext=c 8650ac_cpp='$CPP $CPPFLAGS' 8651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8653ac_compiler_gnu=$ac_cv_c_compiler_gnu 8654 8655 8656# Source file extension for C test sources. 8657ac_ext=c 8658 8659# Object file extension for compiled C test sources. 8660objext=o 8661objext=$objext 8662 8663# Code to be used in simple compile tests 8664lt_simple_compile_test_code="int some_variable = 0;" 8665 8666# Code to be used in simple link tests 8667lt_simple_link_test_code='int main(){return(0);}' 8668 8669 8670 8671 8672 8673 8674 8675# If no C compiler was specified, use CC. 8676LTCC=${LTCC-"$CC"} 8677 8678# If no C compiler flags were specified, use CFLAGS. 8679LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8680 8681# Allow CC to be a program name with arguments. 8682compiler=$CC 8683 8684# Save the default compiler, since it gets overwritten when the other 8685# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8686compiler_DEFAULT=$CC 8687 8688# save warnings/boilerplate of simple test code 8689ac_outfile=conftest.$ac_objext 8690echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8691eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8692_lt_compiler_boilerplate=`cat conftest.err` 8693$RM conftest* 8694 8695ac_outfile=conftest.$ac_objext 8696echo "$lt_simple_link_test_code" >conftest.$ac_ext 8697eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8698_lt_linker_boilerplate=`cat conftest.err` 8699$RM -r conftest* 8700 8701 8702if test -n "$compiler"; then 8703 8704lt_prog_compiler_no_builtin_flag= 8705 8706if test "$GCC" = yes; then 8707 case $cc_basename in 8708 nvcc*) 8709 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8710 *) 8711 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8712 esac 8713 8714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8715$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8716if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8717 $as_echo_n "(cached) " >&6 8718else 8719 lt_cv_prog_compiler_rtti_exceptions=no 8720 ac_outfile=conftest.$ac_objext 8721 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8722 lt_compiler_flag="-fno-rtti -fno-exceptions" 8723 # Insert the option either (1) after the last *FLAGS variable, or 8724 # (2) before a word containing "conftest.", or (3) at the end. 8725 # Note that $ac_compile itself does not contain backslashes and begins 8726 # with a dollar sign (not a hyphen), so the echo should work correctly. 8727 # The option is referenced via a variable to avoid confusing sed. 8728 lt_compile=`echo "$ac_compile" | $SED \ 8729 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8730 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8731 -e 's:$: $lt_compiler_flag:'` 8732 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8733 (eval "$lt_compile" 2>conftest.err) 8734 ac_status=$? 8735 cat conftest.err >&5 8736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8737 if (exit $ac_status) && test -s "$ac_outfile"; then 8738 # The compiler can only warn and ignore the option if not recognized 8739 # So say no if there are warnings other than the usual output. 8740 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8741 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8742 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8743 lt_cv_prog_compiler_rtti_exceptions=yes 8744 fi 8745 fi 8746 $RM conftest* 8747 8748fi 8749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8750$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8751 8752if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8753 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8754else 8755 : 8756fi 8757 8758fi 8759 8760 8761 8762 8763 8764 8765 lt_prog_compiler_wl= 8766lt_prog_compiler_pic= 8767lt_prog_compiler_static= 8768 8769 8770 if test "$GCC" = yes; then 8771 lt_prog_compiler_wl='-Wl,' 8772 lt_prog_compiler_static='-static' 8773 8774 case $host_os in 8775 aix*) 8776 # All AIX code is PIC. 8777 if test "$host_cpu" = ia64; then 8778 # AIX 5 now supports IA64 processor 8779 lt_prog_compiler_static='-Bstatic' 8780 fi 8781 ;; 8782 8783 amigaos*) 8784 case $host_cpu in 8785 powerpc) 8786 # see comment about AmigaOS4 .so support 8787 lt_prog_compiler_pic='-fPIC' 8788 ;; 8789 m68k) 8790 # FIXME: we need at least 68020 code to build shared libraries, but 8791 # adding the `-m68020' flag to GCC prevents building anything better, 8792 # like `-m68040'. 8793 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8794 ;; 8795 esac 8796 ;; 8797 8798 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8799 # PIC is the default for these OSes. 8800 ;; 8801 8802 mingw* | cygwin* | pw32* | os2* | cegcc*) 8803 # This hack is so that the source file can tell whether it is being 8804 # built for inclusion in a dll (and should export symbols for example). 8805 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8806 # (--disable-auto-import) libraries 8807 lt_prog_compiler_pic='-DDLL_EXPORT' 8808 ;; 8809 8810 darwin* | rhapsody*) 8811 # PIC is the default on this platform 8812 # Common symbols not allowed in MH_DYLIB files 8813 lt_prog_compiler_pic='-fno-common' 8814 ;; 8815 8816 haiku*) 8817 # PIC is the default for Haiku. 8818 # The "-static" flag exists, but is broken. 8819 lt_prog_compiler_static= 8820 ;; 8821 8822 hpux*) 8823 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8824 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8825 # sets the default TLS model and affects inlining. 8826 case $host_cpu in 8827 hppa*64*) 8828 # +Z the default 8829 ;; 8830 *) 8831 lt_prog_compiler_pic='-fPIC' 8832 ;; 8833 esac 8834 ;; 8835 8836 interix[3-9]*) 8837 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8838 # Instead, we relocate shared libraries at runtime. 8839 ;; 8840 8841 msdosdjgpp*) 8842 # Just because we use GCC doesn't mean we suddenly get shared libraries 8843 # on systems that don't support them. 8844 lt_prog_compiler_can_build_shared=no 8845 enable_shared=no 8846 ;; 8847 8848 *nto* | *qnx*) 8849 # QNX uses GNU C++, but need to define -shared option too, otherwise 8850 # it will coredump. 8851 lt_prog_compiler_pic='-fPIC -shared' 8852 ;; 8853 8854 sysv4*MP*) 8855 if test -d /usr/nec; then 8856 lt_prog_compiler_pic=-Kconform_pic 8857 fi 8858 ;; 8859 8860 *) 8861 lt_prog_compiler_pic='-fPIC' 8862 ;; 8863 esac 8864 8865 case $cc_basename in 8866 nvcc*) # Cuda Compiler Driver 2.2 8867 lt_prog_compiler_wl='-Xlinker ' 8868 if test -n "$lt_prog_compiler_pic"; then 8869 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8870 fi 8871 ;; 8872 esac 8873 else 8874 # PORTME Check for flag to pass linker flags through the system compiler. 8875 case $host_os in 8876 aix*) 8877 lt_prog_compiler_wl='-Wl,' 8878 if test "$host_cpu" = ia64; then 8879 # AIX 5 now supports IA64 processor 8880 lt_prog_compiler_static='-Bstatic' 8881 else 8882 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8883 fi 8884 ;; 8885 8886 mingw* | cygwin* | pw32* | os2* | cegcc*) 8887 # This hack is so that the source file can tell whether it is being 8888 # built for inclusion in a dll (and should export symbols for example). 8889 lt_prog_compiler_pic='-DDLL_EXPORT' 8890 ;; 8891 8892 hpux9* | hpux10* | hpux11*) 8893 lt_prog_compiler_wl='-Wl,' 8894 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8895 # not for PA HP-UX. 8896 case $host_cpu in 8897 hppa*64*|ia64*) 8898 # +Z the default 8899 ;; 8900 *) 8901 lt_prog_compiler_pic='+Z' 8902 ;; 8903 esac 8904 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8905 lt_prog_compiler_static='${wl}-a ${wl}archive' 8906 ;; 8907 8908 irix5* | irix6* | nonstopux*) 8909 lt_prog_compiler_wl='-Wl,' 8910 # PIC (with -KPIC) is the default. 8911 lt_prog_compiler_static='-non_shared' 8912 ;; 8913 8914 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8915 case $cc_basename in 8916 # old Intel for x86_64 which still supported -KPIC. 8917 ecc*) 8918 lt_prog_compiler_wl='-Wl,' 8919 lt_prog_compiler_pic='-KPIC' 8920 lt_prog_compiler_static='-static' 8921 ;; 8922 # icc used to be incompatible with GCC. 8923 # ICC 10 doesn't accept -KPIC any more. 8924 icc* | ifort*) 8925 lt_prog_compiler_wl='-Wl,' 8926 lt_prog_compiler_pic='-fPIC' 8927 lt_prog_compiler_static='-static' 8928 ;; 8929 # Lahey Fortran 8.1. 8930 lf95*) 8931 lt_prog_compiler_wl='-Wl,' 8932 lt_prog_compiler_pic='--shared' 8933 lt_prog_compiler_static='--static' 8934 ;; 8935 nagfor*) 8936 # NAG Fortran compiler 8937 lt_prog_compiler_wl='-Wl,-Wl,,' 8938 lt_prog_compiler_pic='-PIC' 8939 lt_prog_compiler_static='-Bstatic' 8940 ;; 8941 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8942 # Portland Group compilers (*not* the Pentium gcc compiler, 8943 # which looks to be a dead project) 8944 lt_prog_compiler_wl='-Wl,' 8945 lt_prog_compiler_pic='-fpic' 8946 lt_prog_compiler_static='-Bstatic' 8947 ;; 8948 ccc*) 8949 lt_prog_compiler_wl='-Wl,' 8950 # All Alpha code is PIC. 8951 lt_prog_compiler_static='-non_shared' 8952 ;; 8953 xl* | bgxl* | bgf* | mpixl*) 8954 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8955 lt_prog_compiler_wl='-Wl,' 8956 lt_prog_compiler_pic='-qpic' 8957 lt_prog_compiler_static='-qstaticlink' 8958 ;; 8959 *) 8960 case `$CC -V 2>&1 | sed 5q` in 8961 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8962 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8963 lt_prog_compiler_pic='-KPIC' 8964 lt_prog_compiler_static='-Bstatic' 8965 lt_prog_compiler_wl='' 8966 ;; 8967 *Sun\ F* | *Sun*Fortran*) 8968 lt_prog_compiler_pic='-KPIC' 8969 lt_prog_compiler_static='-Bstatic' 8970 lt_prog_compiler_wl='-Qoption ld ' 8971 ;; 8972 *Sun\ C*) 8973 # Sun C 5.9 8974 lt_prog_compiler_pic='-KPIC' 8975 lt_prog_compiler_static='-Bstatic' 8976 lt_prog_compiler_wl='-Wl,' 8977 ;; 8978 *Intel*\ [CF]*Compiler*) 8979 lt_prog_compiler_wl='-Wl,' 8980 lt_prog_compiler_pic='-fPIC' 8981 lt_prog_compiler_static='-static' 8982 ;; 8983 *Portland\ Group*) 8984 lt_prog_compiler_wl='-Wl,' 8985 lt_prog_compiler_pic='-fpic' 8986 lt_prog_compiler_static='-Bstatic' 8987 ;; 8988 esac 8989 ;; 8990 esac 8991 ;; 8992 8993 newsos6) 8994 lt_prog_compiler_pic='-KPIC' 8995 lt_prog_compiler_static='-Bstatic' 8996 ;; 8997 8998 *nto* | *qnx*) 8999 # QNX uses GNU C++, but need to define -shared option too, otherwise 9000 # it will coredump. 9001 lt_prog_compiler_pic='-fPIC -shared' 9002 ;; 9003 9004 osf3* | osf4* | osf5*) 9005 lt_prog_compiler_wl='-Wl,' 9006 # All OSF/1 code is PIC. 9007 lt_prog_compiler_static='-non_shared' 9008 ;; 9009 9010 rdos*) 9011 lt_prog_compiler_static='-non_shared' 9012 ;; 9013 9014 solaris*) 9015 lt_prog_compiler_pic='-KPIC' 9016 lt_prog_compiler_static='-Bstatic' 9017 case $cc_basename in 9018 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9019 lt_prog_compiler_wl='-Qoption ld ';; 9020 *) 9021 lt_prog_compiler_wl='-Wl,';; 9022 esac 9023 ;; 9024 9025 sunos4*) 9026 lt_prog_compiler_wl='-Qoption ld ' 9027 lt_prog_compiler_pic='-PIC' 9028 lt_prog_compiler_static='-Bstatic' 9029 ;; 9030 9031 sysv4 | sysv4.2uw2* | sysv4.3*) 9032 lt_prog_compiler_wl='-Wl,' 9033 lt_prog_compiler_pic='-KPIC' 9034 lt_prog_compiler_static='-Bstatic' 9035 ;; 9036 9037 sysv4*MP*) 9038 if test -d /usr/nec ;then 9039 lt_prog_compiler_pic='-Kconform_pic' 9040 lt_prog_compiler_static='-Bstatic' 9041 fi 9042 ;; 9043 9044 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9045 lt_prog_compiler_wl='-Wl,' 9046 lt_prog_compiler_pic='-KPIC' 9047 lt_prog_compiler_static='-Bstatic' 9048 ;; 9049 9050 unicos*) 9051 lt_prog_compiler_wl='-Wl,' 9052 lt_prog_compiler_can_build_shared=no 9053 ;; 9054 9055 uts4*) 9056 lt_prog_compiler_pic='-pic' 9057 lt_prog_compiler_static='-Bstatic' 9058 ;; 9059 9060 *) 9061 lt_prog_compiler_can_build_shared=no 9062 ;; 9063 esac 9064 fi 9065 9066case $host_os in 9067 # For platforms which do not support PIC, -DPIC is meaningless: 9068 *djgpp*) 9069 lt_prog_compiler_pic= 9070 ;; 9071 *) 9072 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9073 ;; 9074esac 9075 9076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9077$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9078if ${lt_cv_prog_compiler_pic+:} false; then : 9079 $as_echo_n "(cached) " >&6 9080else 9081 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9082fi 9083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9084$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9085lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9086 9087# 9088# Check to make sure the PIC flag actually works. 9089# 9090if test -n "$lt_prog_compiler_pic"; then 9091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9092$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9093if ${lt_cv_prog_compiler_pic_works+:} false; then : 9094 $as_echo_n "(cached) " >&6 9095else 9096 lt_cv_prog_compiler_pic_works=no 9097 ac_outfile=conftest.$ac_objext 9098 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9099 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 9100 # Insert the option either (1) after the last *FLAGS variable, or 9101 # (2) before a word containing "conftest.", or (3) at the end. 9102 # Note that $ac_compile itself does not contain backslashes and begins 9103 # with a dollar sign (not a hyphen), so the echo should work correctly. 9104 # The option is referenced via a variable to avoid confusing sed. 9105 lt_compile=`echo "$ac_compile" | $SED \ 9106 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9107 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9108 -e 's:$: $lt_compiler_flag:'` 9109 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9110 (eval "$lt_compile" 2>conftest.err) 9111 ac_status=$? 9112 cat conftest.err >&5 9113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9114 if (exit $ac_status) && test -s "$ac_outfile"; then 9115 # The compiler can only warn and ignore the option if not recognized 9116 # So say no if there are warnings other than the usual output. 9117 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9118 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9119 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9120 lt_cv_prog_compiler_pic_works=yes 9121 fi 9122 fi 9123 $RM conftest* 9124 9125fi 9126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9127$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9128 9129if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 9130 case $lt_prog_compiler_pic in 9131 "" | " "*) ;; 9132 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9133 esac 9134else 9135 lt_prog_compiler_pic= 9136 lt_prog_compiler_can_build_shared=no 9137fi 9138 9139fi 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151# 9152# Check to make sure the static flag actually works. 9153# 9154wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9156$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9157if ${lt_cv_prog_compiler_static_works+:} false; then : 9158 $as_echo_n "(cached) " >&6 9159else 9160 lt_cv_prog_compiler_static_works=no 9161 save_LDFLAGS="$LDFLAGS" 9162 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9163 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9164 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9165 # The linker can only warn and ignore the option if not recognized 9166 # So say no if there are warnings 9167 if test -s conftest.err; then 9168 # Append any errors to the config.log. 9169 cat conftest.err 1>&5 9170 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9171 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9172 if diff conftest.exp conftest.er2 >/dev/null; then 9173 lt_cv_prog_compiler_static_works=yes 9174 fi 9175 else 9176 lt_cv_prog_compiler_static_works=yes 9177 fi 9178 fi 9179 $RM -r conftest* 9180 LDFLAGS="$save_LDFLAGS" 9181 9182fi 9183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9184$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9185 9186if test x"$lt_cv_prog_compiler_static_works" = xyes; then 9187 : 9188else 9189 lt_prog_compiler_static= 9190fi 9191 9192 9193 9194 9195 9196 9197 9198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9199$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9200if ${lt_cv_prog_compiler_c_o+:} false; then : 9201 $as_echo_n "(cached) " >&6 9202else 9203 lt_cv_prog_compiler_c_o=no 9204 $RM -r conftest 2>/dev/null 9205 mkdir conftest 9206 cd conftest 9207 mkdir out 9208 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9209 9210 lt_compiler_flag="-o out/conftest2.$ac_objext" 9211 # Insert the option either (1) after the last *FLAGS variable, or 9212 # (2) before a word containing "conftest.", or (3) at the end. 9213 # Note that $ac_compile itself does not contain backslashes and begins 9214 # with a dollar sign (not a hyphen), so the echo should work correctly. 9215 lt_compile=`echo "$ac_compile" | $SED \ 9216 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9217 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9218 -e 's:$: $lt_compiler_flag:'` 9219 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9220 (eval "$lt_compile" 2>out/conftest.err) 9221 ac_status=$? 9222 cat out/conftest.err >&5 9223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9224 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9225 then 9226 # The compiler can only warn and ignore the option if not recognized 9227 # So say no if there are warnings 9228 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9229 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9230 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9231 lt_cv_prog_compiler_c_o=yes 9232 fi 9233 fi 9234 chmod u+w . 2>&5 9235 $RM conftest* 9236 # SGI C++ compiler will create directory out/ii_files/ for 9237 # template instantiation 9238 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9239 $RM out/* && rmdir out 9240 cd .. 9241 $RM -r conftest 9242 $RM conftest* 9243 9244fi 9245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9246$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9247 9248 9249 9250 9251 9252 9253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9254$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9255if ${lt_cv_prog_compiler_c_o+:} false; then : 9256 $as_echo_n "(cached) " >&6 9257else 9258 lt_cv_prog_compiler_c_o=no 9259 $RM -r conftest 2>/dev/null 9260 mkdir conftest 9261 cd conftest 9262 mkdir out 9263 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9264 9265 lt_compiler_flag="-o out/conftest2.$ac_objext" 9266 # Insert the option either (1) after the last *FLAGS variable, or 9267 # (2) before a word containing "conftest.", or (3) at the end. 9268 # Note that $ac_compile itself does not contain backslashes and begins 9269 # with a dollar sign (not a hyphen), so the echo should work correctly. 9270 lt_compile=`echo "$ac_compile" | $SED \ 9271 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9272 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9273 -e 's:$: $lt_compiler_flag:'` 9274 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9275 (eval "$lt_compile" 2>out/conftest.err) 9276 ac_status=$? 9277 cat out/conftest.err >&5 9278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9279 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9280 then 9281 # The compiler can only warn and ignore the option if not recognized 9282 # So say no if there are warnings 9283 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9284 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9285 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9286 lt_cv_prog_compiler_c_o=yes 9287 fi 9288 fi 9289 chmod u+w . 2>&5 9290 $RM conftest* 9291 # SGI C++ compiler will create directory out/ii_files/ for 9292 # template instantiation 9293 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9294 $RM out/* && rmdir out 9295 cd .. 9296 $RM -r conftest 9297 $RM conftest* 9298 9299fi 9300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9301$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9302 9303 9304 9305 9306hard_links="nottested" 9307if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9308 # do not overwrite the value of need_locks provided by the user 9309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9310$as_echo_n "checking if we can lock with hard links... " >&6; } 9311 hard_links=yes 9312 $RM conftest* 9313 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9314 touch conftest.a 9315 ln conftest.a conftest.b 2>&5 || hard_links=no 9316 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9318$as_echo "$hard_links" >&6; } 9319 if test "$hard_links" = no; then 9320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9321$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9322 need_locks=warn 9323 fi 9324else 9325 need_locks=no 9326fi 9327 9328 9329 9330 9331 9332 9333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9334$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9335 9336 runpath_var= 9337 allow_undefined_flag= 9338 always_export_symbols=no 9339 archive_cmds= 9340 archive_expsym_cmds= 9341 compiler_needs_object=no 9342 enable_shared_with_static_runtimes=no 9343 export_dynamic_flag_spec= 9344 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9345 hardcode_automatic=no 9346 hardcode_direct=no 9347 hardcode_direct_absolute=no 9348 hardcode_libdir_flag_spec= 9349 hardcode_libdir_separator= 9350 hardcode_minus_L=no 9351 hardcode_shlibpath_var=unsupported 9352 inherit_rpath=no 9353 link_all_deplibs=unknown 9354 module_cmds= 9355 module_expsym_cmds= 9356 old_archive_from_new_cmds= 9357 old_archive_from_expsyms_cmds= 9358 thread_safe_flag_spec= 9359 whole_archive_flag_spec= 9360 # include_expsyms should be a list of space-separated symbols to be *always* 9361 # included in the symbol list 9362 include_expsyms= 9363 # exclude_expsyms can be an extended regexp of symbols to exclude 9364 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9365 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9366 # as well as any symbol that contains `d'. 9367 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9368 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9369 # platforms (ab)use it in PIC code, but their linkers get confused if 9370 # the symbol is explicitly referenced. Since portable code cannot 9371 # rely on this symbol name, it's probably fine to never include it in 9372 # preloaded symbol tables. 9373 # Exclude shared library initialization/finalization symbols. 9374 extract_expsyms_cmds= 9375 9376 case $host_os in 9377 cygwin* | mingw* | pw32* | cegcc*) 9378 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9379 # When not using gcc, we currently assume that we are using 9380 # Microsoft Visual C++. 9381 if test "$GCC" != yes; then 9382 with_gnu_ld=no 9383 fi 9384 ;; 9385 interix*) 9386 # we just hope/assume this is gcc and not c89 (= MSVC++) 9387 with_gnu_ld=yes 9388 ;; 9389 openbsd*) 9390 with_gnu_ld=no 9391 ;; 9392 linux* | k*bsd*-gnu | gnu*) 9393 link_all_deplibs=no 9394 ;; 9395 esac 9396 9397 ld_shlibs=yes 9398 9399 # On some targets, GNU ld is compatible enough with the native linker 9400 # that we're better off using the native interface for both. 9401 lt_use_gnu_ld_interface=no 9402 if test "$with_gnu_ld" = yes; then 9403 case $host_os in 9404 aix*) 9405 # The AIX port of GNU ld has always aspired to compatibility 9406 # with the native linker. However, as the warning in the GNU ld 9407 # block says, versions before 2.19.5* couldn't really create working 9408 # shared libraries, regardless of the interface used. 9409 case `$LD -v 2>&1` in 9410 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9411 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9412 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9413 *) 9414 lt_use_gnu_ld_interface=yes 9415 ;; 9416 esac 9417 ;; 9418 *) 9419 lt_use_gnu_ld_interface=yes 9420 ;; 9421 esac 9422 fi 9423 9424 if test "$lt_use_gnu_ld_interface" = yes; then 9425 # If archive_cmds runs LD, not CC, wlarc should be empty 9426 wlarc='${wl}' 9427 9428 # Set some defaults for GNU ld with shared library support. These 9429 # are reset later if shared libraries are not supported. Putting them 9430 # here allows them to be overridden if necessary. 9431 runpath_var=LD_RUN_PATH 9432 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9433 export_dynamic_flag_spec='${wl}--export-dynamic' 9434 # ancient GNU ld didn't support --whole-archive et. al. 9435 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9436 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9437 else 9438 whole_archive_flag_spec= 9439 fi 9440 supports_anon_versioning=no 9441 case `$LD -v 2>&1` in 9442 *GNU\ gold*) supports_anon_versioning=yes ;; 9443 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9444 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9445 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9446 *\ 2.11.*) ;; # other 2.11 versions 9447 *) supports_anon_versioning=yes ;; 9448 esac 9449 9450 # See if GNU ld supports shared libraries. 9451 case $host_os in 9452 aix[3-9]*) 9453 # On AIX/PPC, the GNU linker is very broken 9454 if test "$host_cpu" != ia64; then 9455 ld_shlibs=no 9456 cat <<_LT_EOF 1>&2 9457 9458*** Warning: the GNU linker, at least up to release 2.19, is reported 9459*** to be unable to reliably create shared libraries on AIX. 9460*** Therefore, libtool is disabling shared libraries support. If you 9461*** really care for shared libraries, you may want to install binutils 9462*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9463*** You will then need to restart the configuration process. 9464 9465_LT_EOF 9466 fi 9467 ;; 9468 9469 amigaos*) 9470 case $host_cpu in 9471 powerpc) 9472 # see comment about AmigaOS4 .so support 9473 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9474 archive_expsym_cmds='' 9475 ;; 9476 m68k) 9477 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)' 9478 hardcode_libdir_flag_spec='-L$libdir' 9479 hardcode_minus_L=yes 9480 ;; 9481 esac 9482 ;; 9483 9484 beos*) 9485 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9486 allow_undefined_flag=unsupported 9487 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9488 # support --undefined. This deserves some investigation. FIXME 9489 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9490 else 9491 ld_shlibs=no 9492 fi 9493 ;; 9494 9495 cygwin* | mingw* | pw32* | cegcc*) 9496 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9497 # as there is no search path for DLLs. 9498 hardcode_libdir_flag_spec='-L$libdir' 9499 export_dynamic_flag_spec='${wl}--export-all-symbols' 9500 allow_undefined_flag=unsupported 9501 always_export_symbols=no 9502 enable_shared_with_static_runtimes=yes 9503 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' 9504 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9505 9506 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9507 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9508 # If the export-symbols file already is a .def file (1st line 9509 # is EXPORTS), use it as is; otherwise, prepend... 9510 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9511 cp $export_symbols $output_objdir/$soname.def; 9512 else 9513 echo EXPORTS > $output_objdir/$soname.def; 9514 cat $export_symbols >> $output_objdir/$soname.def; 9515 fi~ 9516 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9517 else 9518 ld_shlibs=no 9519 fi 9520 ;; 9521 9522 haiku*) 9523 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9524 link_all_deplibs=yes 9525 ;; 9526 9527 interix[3-9]*) 9528 hardcode_direct=no 9529 hardcode_shlibpath_var=no 9530 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9531 export_dynamic_flag_spec='${wl}-E' 9532 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9533 # Instead, shared libraries are loaded at an image base (0x10000000 by 9534 # default) and relocated if they conflict, which is a slow very memory 9535 # consuming and fragmenting process. To avoid this, we pick a random, 9536 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9537 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9538 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9539 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' 9540 ;; 9541 9542 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9543 tmp_diet=no 9544 if test "$host_os" = linux-dietlibc; then 9545 case $cc_basename in 9546 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9547 esac 9548 fi 9549 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9550 && test "$tmp_diet" = no 9551 then 9552 tmp_addflag=' $pic_flag' 9553 tmp_sharedflag='-shared' 9554 case $cc_basename,$host_cpu in 9555 pgcc*) # Portland Group C compiler 9556 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' 9557 tmp_addflag=' $pic_flag' 9558 ;; 9559 pgf77* | pgf90* | pgf95* | pgfortran*) 9560 # Portland Group f77 and f90 compilers 9561 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' 9562 tmp_addflag=' $pic_flag -Mnomain' ;; 9563 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9564 tmp_addflag=' -i_dynamic' ;; 9565 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9566 tmp_addflag=' -i_dynamic -nofor_main' ;; 9567 ifc* | ifort*) # Intel Fortran compiler 9568 tmp_addflag=' -nofor_main' ;; 9569 lf95*) # Lahey Fortran 8.1 9570 whole_archive_flag_spec= 9571 tmp_sharedflag='--shared' ;; 9572 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9573 tmp_sharedflag='-qmkshrobj' 9574 tmp_addflag= ;; 9575 nvcc*) # Cuda Compiler Driver 2.2 9576 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' 9577 compiler_needs_object=yes 9578 ;; 9579 esac 9580 case `$CC -V 2>&1 | sed 5q` in 9581 *Sun\ C*) # Sun C 5.9 9582 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' 9583 compiler_needs_object=yes 9584 tmp_sharedflag='-G' ;; 9585 *Sun\ F*) # Sun Fortran 8.3 9586 tmp_sharedflag='-G' ;; 9587 esac 9588 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9589 9590 if test "x$supports_anon_versioning" = xyes; then 9591 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9592 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9593 echo "local: *; };" >> $output_objdir/$libname.ver~ 9594 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9595 fi 9596 9597 case $cc_basename in 9598 xlf* | bgf* | bgxlf* | mpixlf*) 9599 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9600 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9601 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9602 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9603 if test "x$supports_anon_versioning" = xyes; then 9604 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9605 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9606 echo "local: *; };" >> $output_objdir/$libname.ver~ 9607 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9608 fi 9609 ;; 9610 esac 9611 else 9612 ld_shlibs=no 9613 fi 9614 ;; 9615 9616 netbsd* | netbsdelf*-gnu) 9617 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9618 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9619 wlarc= 9620 else 9621 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9622 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9623 fi 9624 ;; 9625 9626 solaris*) 9627 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9628 ld_shlibs=no 9629 cat <<_LT_EOF 1>&2 9630 9631*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9632*** create shared libraries on Solaris systems. Therefore, libtool 9633*** is disabling shared libraries support. We urge you to upgrade GNU 9634*** binutils to release 2.9.1 or newer. Another option is to modify 9635*** your PATH or compiler configuration so that the native linker is 9636*** used, and then restart. 9637 9638_LT_EOF 9639 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9640 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9641 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9642 else 9643 ld_shlibs=no 9644 fi 9645 ;; 9646 9647 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9648 case `$LD -v 2>&1` in 9649 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9650 ld_shlibs=no 9651 cat <<_LT_EOF 1>&2 9652 9653*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9654*** reliably create shared libraries on SCO systems. Therefore, libtool 9655*** is disabling shared libraries support. We urge you to upgrade GNU 9656*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9657*** your PATH or compiler configuration so that the native linker is 9658*** used, and then restart. 9659 9660_LT_EOF 9661 ;; 9662 *) 9663 # For security reasons, it is highly recommended that you always 9664 # use absolute paths for naming shared libraries, and exclude the 9665 # DT_RUNPATH tag from executables and libraries. But doing so 9666 # requires that you compile everything twice, which is a pain. 9667 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9668 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9669 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9670 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9671 else 9672 ld_shlibs=no 9673 fi 9674 ;; 9675 esac 9676 ;; 9677 9678 sunos4*) 9679 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9680 wlarc= 9681 hardcode_direct=yes 9682 hardcode_shlibpath_var=no 9683 ;; 9684 9685 *) 9686 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9687 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9688 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9689 else 9690 ld_shlibs=no 9691 fi 9692 ;; 9693 esac 9694 9695 if test "$ld_shlibs" = no; then 9696 runpath_var= 9697 hardcode_libdir_flag_spec= 9698 export_dynamic_flag_spec= 9699 whole_archive_flag_spec= 9700 fi 9701 else 9702 # PORTME fill in a description of your system's linker (not GNU ld) 9703 case $host_os in 9704 aix3*) 9705 allow_undefined_flag=unsupported 9706 always_export_symbols=yes 9707 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' 9708 # Note: this linker hardcodes the directories in LIBPATH if there 9709 # are no directories specified by -L. 9710 hardcode_minus_L=yes 9711 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9712 # Neither direct hardcoding nor static linking is supported with a 9713 # broken collect2. 9714 hardcode_direct=unsupported 9715 fi 9716 ;; 9717 9718 aix[4-9]*) 9719 if test "$host_cpu" = ia64; then 9720 # On IA64, the linker does run time linking by default, so we don't 9721 # have to do anything special. 9722 aix_use_runtimelinking=no 9723 exp_sym_flag='-Bexport' 9724 no_entry_flag="" 9725 else 9726 # If we're using GNU nm, then we don't want the "-C" option. 9727 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9728 # Also, AIX nm treats weak defined symbols like other global 9729 # defined symbols, whereas GNU nm marks them as "W". 9730 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9731 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' 9732 else 9733 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' 9734 fi 9735 aix_use_runtimelinking=no 9736 9737 # Test if we are trying to use run time linking or normal 9738 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9739 # need to do runtime linking. 9740 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9741 for ld_flag in $LDFLAGS; do 9742 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9743 aix_use_runtimelinking=yes 9744 break 9745 fi 9746 done 9747 ;; 9748 esac 9749 9750 exp_sym_flag='-bexport' 9751 no_entry_flag='-bnoentry' 9752 fi 9753 9754 # When large executables or shared objects are built, AIX ld can 9755 # have problems creating the table of contents. If linking a library 9756 # or program results in "error TOC overflow" add -mminimal-toc to 9757 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9758 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9759 9760 archive_cmds='' 9761 hardcode_direct=yes 9762 hardcode_direct_absolute=yes 9763 hardcode_libdir_separator=':' 9764 link_all_deplibs=yes 9765 file_list_spec='${wl}-f,' 9766 9767 if test "$GCC" = yes; then 9768 case $host_os in aix4.[012]|aix4.[012].*) 9769 # We only want to do this on AIX 4.2 and lower, the check 9770 # below for broken collect2 doesn't work under 4.3+ 9771 collect2name=`${CC} -print-prog-name=collect2` 9772 if test -f "$collect2name" && 9773 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9774 then 9775 # We have reworked collect2 9776 : 9777 else 9778 # We have old collect2 9779 hardcode_direct=unsupported 9780 # It fails to find uninstalled libraries when the uninstalled 9781 # path is not listed in the libpath. Setting hardcode_minus_L 9782 # to unsupported forces relinking 9783 hardcode_minus_L=yes 9784 hardcode_libdir_flag_spec='-L$libdir' 9785 hardcode_libdir_separator= 9786 fi 9787 ;; 9788 esac 9789 shared_flag='-shared' 9790 if test "$aix_use_runtimelinking" = yes; then 9791 shared_flag="$shared_flag "'${wl}-G' 9792 fi 9793 link_all_deplibs=no 9794 else 9795 # not using gcc 9796 if test "$host_cpu" = ia64; then 9797 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9798 # chokes on -Wl,-G. The following line is correct: 9799 shared_flag='-G' 9800 else 9801 if test "$aix_use_runtimelinking" = yes; then 9802 shared_flag='${wl}-G' 9803 else 9804 shared_flag='${wl}-bM:SRE' 9805 fi 9806 fi 9807 fi 9808 9809 export_dynamic_flag_spec='${wl}-bexpall' 9810 # It seems that -bexpall does not export symbols beginning with 9811 # underscore (_), so it is better to generate a list of symbols to export. 9812 always_export_symbols=yes 9813 if test "$aix_use_runtimelinking" = yes; then 9814 # Warning - without using the other runtime loading flags (-brtl), 9815 # -berok will link without error, but may produce a broken library. 9816 allow_undefined_flag='-berok' 9817 # Determine the default libpath from the value encoded in an 9818 # empty executable. 9819 if test "${lt_cv_aix_libpath+set}" = set; then 9820 aix_libpath=$lt_cv_aix_libpath 9821else 9822 if ${lt_cv_aix_libpath_+:} false; then : 9823 $as_echo_n "(cached) " >&6 9824else 9825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9826/* end confdefs.h. */ 9827 9828int 9829main () 9830{ 9831 9832 ; 9833 return 0; 9834} 9835_ACEOF 9836if ac_fn_c_try_link "$LINENO"; then : 9837 9838 lt_aix_libpath_sed=' 9839 /Import File Strings/,/^$/ { 9840 /^0/ { 9841 s/^0 *\([^ ]*\) *$/\1/ 9842 p 9843 } 9844 }' 9845 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9846 # Check for a 64-bit object if we didn't find anything. 9847 if test -z "$lt_cv_aix_libpath_"; then 9848 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9849 fi 9850fi 9851rm -f core conftest.err conftest.$ac_objext \ 9852 conftest$ac_exeext conftest.$ac_ext 9853 if test -z "$lt_cv_aix_libpath_"; then 9854 lt_cv_aix_libpath_="/usr/lib:/lib" 9855 fi 9856 9857fi 9858 9859 aix_libpath=$lt_cv_aix_libpath_ 9860fi 9861 9862 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9863 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" 9864 else 9865 if test "$host_cpu" = ia64; then 9866 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9867 allow_undefined_flag="-z nodefs" 9868 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" 9869 else 9870 # Determine the default libpath from the value encoded in an 9871 # empty executable. 9872 if test "${lt_cv_aix_libpath+set}" = set; then 9873 aix_libpath=$lt_cv_aix_libpath 9874else 9875 if ${lt_cv_aix_libpath_+:} false; then : 9876 $as_echo_n "(cached) " >&6 9877else 9878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9879/* end confdefs.h. */ 9880 9881int 9882main () 9883{ 9884 9885 ; 9886 return 0; 9887} 9888_ACEOF 9889if ac_fn_c_try_link "$LINENO"; then : 9890 9891 lt_aix_libpath_sed=' 9892 /Import File Strings/,/^$/ { 9893 /^0/ { 9894 s/^0 *\([^ ]*\) *$/\1/ 9895 p 9896 } 9897 }' 9898 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9899 # Check for a 64-bit object if we didn't find anything. 9900 if test -z "$lt_cv_aix_libpath_"; then 9901 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9902 fi 9903fi 9904rm -f core conftest.err conftest.$ac_objext \ 9905 conftest$ac_exeext conftest.$ac_ext 9906 if test -z "$lt_cv_aix_libpath_"; then 9907 lt_cv_aix_libpath_="/usr/lib:/lib" 9908 fi 9909 9910fi 9911 9912 aix_libpath=$lt_cv_aix_libpath_ 9913fi 9914 9915 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9916 # Warning - without using the other run time loading flags, 9917 # -berok will link without error, but may produce a broken library. 9918 no_undefined_flag=' ${wl}-bernotok' 9919 allow_undefined_flag=' ${wl}-berok' 9920 if test "$with_gnu_ld" = yes; then 9921 # We only use this code for GNU lds that support --whole-archive. 9922 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9923 else 9924 # Exported symbols can be pulled into shared objects from archives 9925 whole_archive_flag_spec='$convenience' 9926 fi 9927 archive_cmds_need_lc=yes 9928 # This is similar to how AIX traditionally builds its shared libraries. 9929 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' 9930 fi 9931 fi 9932 ;; 9933 9934 amigaos*) 9935 case $host_cpu in 9936 powerpc) 9937 # see comment about AmigaOS4 .so support 9938 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9939 archive_expsym_cmds='' 9940 ;; 9941 m68k) 9942 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)' 9943 hardcode_libdir_flag_spec='-L$libdir' 9944 hardcode_minus_L=yes 9945 ;; 9946 esac 9947 ;; 9948 9949 bsdi[45]*) 9950 export_dynamic_flag_spec=-rdynamic 9951 ;; 9952 9953 cygwin* | mingw* | pw32* | cegcc*) 9954 # When not using gcc, we currently assume that we are using 9955 # Microsoft Visual C++. 9956 # hardcode_libdir_flag_spec is actually meaningless, as there is 9957 # no search path for DLLs. 9958 case $cc_basename in 9959 cl*) 9960 # Native MSVC 9961 hardcode_libdir_flag_spec=' ' 9962 allow_undefined_flag=unsupported 9963 always_export_symbols=yes 9964 file_list_spec='@' 9965 # Tell ltmain to make .lib files, not .a files. 9966 libext=lib 9967 # Tell ltmain to make .dll files, not .so files. 9968 shrext_cmds=".dll" 9969 # FIXME: Setting linknames here is a bad hack. 9970 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9971 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9972 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9973 else 9974 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9975 fi~ 9976 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9977 linknames=' 9978 # The linker will not automatically build a static lib if we build a DLL. 9979 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9980 enable_shared_with_static_runtimes=yes 9981 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9982 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9983 # Don't use ranlib 9984 old_postinstall_cmds='chmod 644 $oldlib' 9985 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9986 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9987 case $lt_outputfile in 9988 *.exe|*.EXE) ;; 9989 *) 9990 lt_outputfile="$lt_outputfile.exe" 9991 lt_tool_outputfile="$lt_tool_outputfile.exe" 9992 ;; 9993 esac~ 9994 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9995 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9996 $RM "$lt_outputfile.manifest"; 9997 fi' 9998 ;; 9999 *) 10000 # Assume MSVC wrapper 10001 hardcode_libdir_flag_spec=' ' 10002 allow_undefined_flag=unsupported 10003 # Tell ltmain to make .lib files, not .a files. 10004 libext=lib 10005 # Tell ltmain to make .dll files, not .so files. 10006 shrext_cmds=".dll" 10007 # FIXME: Setting linknames here is a bad hack. 10008 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10009 # The linker will automatically build a .lib file if we build a DLL. 10010 old_archive_from_new_cmds='true' 10011 # FIXME: Should let the user specify the lib program. 10012 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10013 enable_shared_with_static_runtimes=yes 10014 ;; 10015 esac 10016 ;; 10017 10018 darwin* | rhapsody*) 10019 10020 10021 archive_cmds_need_lc=no 10022 hardcode_direct=no 10023 hardcode_automatic=yes 10024 hardcode_shlibpath_var=unsupported 10025 if test "$lt_cv_ld_force_load" = "yes"; then 10026 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\"`' 10027 10028 else 10029 whole_archive_flag_spec='' 10030 fi 10031 link_all_deplibs=yes 10032 allow_undefined_flag="$_lt_dar_allow_undefined" 10033 case $cc_basename in 10034 ifort*) _lt_dar_can_shared=yes ;; 10035 *) _lt_dar_can_shared=$GCC ;; 10036 esac 10037 if test "$_lt_dar_can_shared" = "yes"; then 10038 output_verbose_link_cmd=func_echo_all 10039 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 10040 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 10041 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}" 10042 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}" 10043 10044 else 10045 ld_shlibs=no 10046 fi 10047 10048 ;; 10049 10050 dgux*) 10051 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10052 hardcode_libdir_flag_spec='-L$libdir' 10053 hardcode_shlibpath_var=no 10054 ;; 10055 10056 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10057 # support. Future versions do this automatically, but an explicit c++rt0.o 10058 # does not break anything, and helps significantly (at the cost of a little 10059 # extra space). 10060 freebsd2.2*) 10061 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10062 hardcode_libdir_flag_spec='-R$libdir' 10063 hardcode_direct=yes 10064 hardcode_shlibpath_var=no 10065 ;; 10066 10067 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10068 freebsd2.*) 10069 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10070 hardcode_direct=yes 10071 hardcode_minus_L=yes 10072 hardcode_shlibpath_var=no 10073 ;; 10074 10075 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10076 freebsd* | dragonfly*) 10077 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10078 hardcode_libdir_flag_spec='-R$libdir' 10079 hardcode_direct=yes 10080 hardcode_shlibpath_var=no 10081 ;; 10082 10083 hpux9*) 10084 if test "$GCC" = yes; then 10085 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' 10086 else 10087 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' 10088 fi 10089 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10090 hardcode_libdir_separator=: 10091 hardcode_direct=yes 10092 10093 # hardcode_minus_L: Not really in the search PATH, 10094 # but as the default location of the library. 10095 hardcode_minus_L=yes 10096 export_dynamic_flag_spec='${wl}-E' 10097 ;; 10098 10099 hpux10*) 10100 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10101 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10102 else 10103 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10104 fi 10105 if test "$with_gnu_ld" = no; then 10106 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10107 hardcode_libdir_separator=: 10108 hardcode_direct=yes 10109 hardcode_direct_absolute=yes 10110 export_dynamic_flag_spec='${wl}-E' 10111 # hardcode_minus_L: Not really in the search PATH, 10112 # but as the default location of the library. 10113 hardcode_minus_L=yes 10114 fi 10115 ;; 10116 10117 hpux11*) 10118 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10119 case $host_cpu in 10120 hppa*64*) 10121 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10122 ;; 10123 ia64*) 10124 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10125 ;; 10126 *) 10127 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10128 ;; 10129 esac 10130 else 10131 case $host_cpu in 10132 hppa*64*) 10133 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10134 ;; 10135 ia64*) 10136 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10137 ;; 10138 *) 10139 10140 # Older versions of the 11.00 compiler do not understand -b yet 10141 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10143$as_echo_n "checking if $CC understands -b... " >&6; } 10144if ${lt_cv_prog_compiler__b+:} false; then : 10145 $as_echo_n "(cached) " >&6 10146else 10147 lt_cv_prog_compiler__b=no 10148 save_LDFLAGS="$LDFLAGS" 10149 LDFLAGS="$LDFLAGS -b" 10150 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10151 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10152 # The linker can only warn and ignore the option if not recognized 10153 # So say no if there are warnings 10154 if test -s conftest.err; then 10155 # Append any errors to the config.log. 10156 cat conftest.err 1>&5 10157 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10158 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10159 if diff conftest.exp conftest.er2 >/dev/null; then 10160 lt_cv_prog_compiler__b=yes 10161 fi 10162 else 10163 lt_cv_prog_compiler__b=yes 10164 fi 10165 fi 10166 $RM -r conftest* 10167 LDFLAGS="$save_LDFLAGS" 10168 10169fi 10170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10171$as_echo "$lt_cv_prog_compiler__b" >&6; } 10172 10173if test x"$lt_cv_prog_compiler__b" = xyes; then 10174 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10175else 10176 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10177fi 10178 10179 ;; 10180 esac 10181 fi 10182 if test "$with_gnu_ld" = no; then 10183 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10184 hardcode_libdir_separator=: 10185 10186 case $host_cpu in 10187 hppa*64*|ia64*) 10188 hardcode_direct=no 10189 hardcode_shlibpath_var=no 10190 ;; 10191 *) 10192 hardcode_direct=yes 10193 hardcode_direct_absolute=yes 10194 export_dynamic_flag_spec='${wl}-E' 10195 10196 # hardcode_minus_L: Not really in the search PATH, 10197 # but as the default location of the library. 10198 hardcode_minus_L=yes 10199 ;; 10200 esac 10201 fi 10202 ;; 10203 10204 irix5* | irix6* | nonstopux*) 10205 if test "$GCC" = yes; then 10206 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' 10207 # Try to use the -exported_symbol ld option, if it does not 10208 # work, assume that -exports_file does not work either and 10209 # implicitly export all symbols. 10210 # This should be the same for all languages, so no per-tag cache variable. 10211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10212$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10213if ${lt_cv_irix_exported_symbol+:} false; then : 10214 $as_echo_n "(cached) " >&6 10215else 10216 save_LDFLAGS="$LDFLAGS" 10217 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 10218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10219/* end confdefs.h. */ 10220int foo (void) { return 0; } 10221_ACEOF 10222if ac_fn_c_try_link "$LINENO"; then : 10223 lt_cv_irix_exported_symbol=yes 10224else 10225 lt_cv_irix_exported_symbol=no 10226fi 10227rm -f core conftest.err conftest.$ac_objext \ 10228 conftest$ac_exeext conftest.$ac_ext 10229 LDFLAGS="$save_LDFLAGS" 10230fi 10231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10232$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10233 if test "$lt_cv_irix_exported_symbol" = yes; then 10234 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' 10235 fi 10236 else 10237 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' 10238 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' 10239 fi 10240 archive_cmds_need_lc='no' 10241 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10242 hardcode_libdir_separator=: 10243 inherit_rpath=yes 10244 link_all_deplibs=yes 10245 ;; 10246 10247 netbsd* | netbsdelf*-gnu) 10248 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10249 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10250 else 10251 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10252 fi 10253 hardcode_libdir_flag_spec='-R$libdir' 10254 hardcode_direct=yes 10255 hardcode_shlibpath_var=no 10256 ;; 10257 10258 newsos6) 10259 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10260 hardcode_direct=yes 10261 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10262 hardcode_libdir_separator=: 10263 hardcode_shlibpath_var=no 10264 ;; 10265 10266 *nto* | *qnx*) 10267 ;; 10268 10269 openbsd*) 10270 if test -f /usr/libexec/ld.so; then 10271 hardcode_direct=yes 10272 hardcode_shlibpath_var=no 10273 hardcode_direct_absolute=yes 10274 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10275 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10276 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10277 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10278 export_dynamic_flag_spec='${wl}-E' 10279 else 10280 case $host_os in 10281 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10282 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10283 hardcode_libdir_flag_spec='-R$libdir' 10284 ;; 10285 *) 10286 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10287 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10288 ;; 10289 esac 10290 fi 10291 else 10292 ld_shlibs=no 10293 fi 10294 ;; 10295 10296 os2*) 10297 hardcode_libdir_flag_spec='-L$libdir' 10298 hardcode_minus_L=yes 10299 allow_undefined_flag=unsupported 10300 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' 10301 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10302 ;; 10303 10304 osf3*) 10305 if test "$GCC" = yes; then 10306 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10307 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' 10308 else 10309 allow_undefined_flag=' -expect_unresolved \*' 10310 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' 10311 fi 10312 archive_cmds_need_lc='no' 10313 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10314 hardcode_libdir_separator=: 10315 ;; 10316 10317 osf4* | osf5*) # as osf3* with the addition of -msym flag 10318 if test "$GCC" = yes; then 10319 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10320 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' 10321 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10322 else 10323 allow_undefined_flag=' -expect_unresolved \*' 10324 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' 10325 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~ 10326 $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' 10327 10328 # Both c and cxx compiler support -rpath directly 10329 hardcode_libdir_flag_spec='-rpath $libdir' 10330 fi 10331 archive_cmds_need_lc='no' 10332 hardcode_libdir_separator=: 10333 ;; 10334 10335 solaris*) 10336 no_undefined_flag=' -z defs' 10337 if test "$GCC" = yes; then 10338 wlarc='${wl}' 10339 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10340 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10341 $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' 10342 else 10343 case `$CC -V 2>&1` in 10344 *"Compilers 5.0"*) 10345 wlarc='' 10346 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10347 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10348 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10349 ;; 10350 *) 10351 wlarc='${wl}' 10352 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10353 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10354 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10355 ;; 10356 esac 10357 fi 10358 hardcode_libdir_flag_spec='-R$libdir' 10359 hardcode_shlibpath_var=no 10360 case $host_os in 10361 solaris2.[0-5] | solaris2.[0-5].*) ;; 10362 *) 10363 # The compiler driver will combine and reorder linker options, 10364 # but understands `-z linker_flag'. GCC discards it without `$wl', 10365 # but is careful enough not to reorder. 10366 # Supported since Solaris 2.6 (maybe 2.5.1?) 10367 if test "$GCC" = yes; then 10368 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10369 else 10370 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10371 fi 10372 ;; 10373 esac 10374 link_all_deplibs=yes 10375 ;; 10376 10377 sunos4*) 10378 if test "x$host_vendor" = xsequent; then 10379 # Use $CC to link under sequent, because it throws in some extra .o 10380 # files that make .init and .fini sections work. 10381 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10382 else 10383 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10384 fi 10385 hardcode_libdir_flag_spec='-L$libdir' 10386 hardcode_direct=yes 10387 hardcode_minus_L=yes 10388 hardcode_shlibpath_var=no 10389 ;; 10390 10391 sysv4) 10392 case $host_vendor in 10393 sni) 10394 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10395 hardcode_direct=yes # is this really true??? 10396 ;; 10397 siemens) 10398 ## LD is ld it makes a PLAMLIB 10399 ## CC just makes a GrossModule. 10400 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10401 reload_cmds='$CC -r -o $output$reload_objs' 10402 hardcode_direct=no 10403 ;; 10404 motorola) 10405 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10406 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10407 ;; 10408 esac 10409 runpath_var='LD_RUN_PATH' 10410 hardcode_shlibpath_var=no 10411 ;; 10412 10413 sysv4.3*) 10414 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10415 hardcode_shlibpath_var=no 10416 export_dynamic_flag_spec='-Bexport' 10417 ;; 10418 10419 sysv4*MP*) 10420 if test -d /usr/nec; then 10421 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10422 hardcode_shlibpath_var=no 10423 runpath_var=LD_RUN_PATH 10424 hardcode_runpath_var=yes 10425 ld_shlibs=yes 10426 fi 10427 ;; 10428 10429 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10430 no_undefined_flag='${wl}-z,text' 10431 archive_cmds_need_lc=no 10432 hardcode_shlibpath_var=no 10433 runpath_var='LD_RUN_PATH' 10434 10435 if test "$GCC" = yes; then 10436 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10437 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10438 else 10439 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10440 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10441 fi 10442 ;; 10443 10444 sysv5* | sco3.2v5* | sco5v6*) 10445 # Note: We can NOT use -z defs as we might desire, because we do not 10446 # link with -lc, and that would cause any symbols used from libc to 10447 # always be unresolved, which means just about no library would 10448 # ever link correctly. If we're not using GNU ld we use -z text 10449 # though, which does catch some bad symbols but isn't as heavy-handed 10450 # as -z defs. 10451 no_undefined_flag='${wl}-z,text' 10452 allow_undefined_flag='${wl}-z,nodefs' 10453 archive_cmds_need_lc=no 10454 hardcode_shlibpath_var=no 10455 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10456 hardcode_libdir_separator=':' 10457 link_all_deplibs=yes 10458 export_dynamic_flag_spec='${wl}-Bexport' 10459 runpath_var='LD_RUN_PATH' 10460 10461 if test "$GCC" = yes; then 10462 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10463 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10464 else 10465 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10466 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10467 fi 10468 ;; 10469 10470 uts4*) 10471 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10472 hardcode_libdir_flag_spec='-L$libdir' 10473 hardcode_shlibpath_var=no 10474 ;; 10475 10476 *) 10477 ld_shlibs=no 10478 ;; 10479 esac 10480 10481 if test x$host_vendor = xsni; then 10482 case $host in 10483 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10484 export_dynamic_flag_spec='${wl}-Blargedynsym' 10485 ;; 10486 esac 10487 fi 10488 fi 10489 10490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10491$as_echo "$ld_shlibs" >&6; } 10492test "$ld_shlibs" = no && can_build_shared=no 10493 10494with_gnu_ld=$with_gnu_ld 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510# 10511# Do we need to explicitly link libc? 10512# 10513case "x$archive_cmds_need_lc" in 10514x|xyes) 10515 # Assume -lc should be added 10516 archive_cmds_need_lc=yes 10517 10518 if test "$enable_shared" = yes && test "$GCC" = yes; then 10519 case $archive_cmds in 10520 *'~'*) 10521 # FIXME: we may have to deal with multi-command sequences. 10522 ;; 10523 '$CC '*) 10524 # Test whether the compiler implicitly links with -lc since on some 10525 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10526 # to ld, don't add -lc before -lgcc. 10527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10528$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10529if ${lt_cv_archive_cmds_need_lc+:} false; then : 10530 $as_echo_n "(cached) " >&6 10531else 10532 $RM conftest* 10533 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10534 10535 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10536 (eval $ac_compile) 2>&5 10537 ac_status=$? 10538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10539 test $ac_status = 0; } 2>conftest.err; then 10540 soname=conftest 10541 lib=conftest 10542 libobjs=conftest.$ac_objext 10543 deplibs= 10544 wl=$lt_prog_compiler_wl 10545 pic_flag=$lt_prog_compiler_pic 10546 compiler_flags=-v 10547 linker_flags=-v 10548 verstring= 10549 output_objdir=. 10550 libname=conftest 10551 lt_save_allow_undefined_flag=$allow_undefined_flag 10552 allow_undefined_flag= 10553 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10554 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10555 ac_status=$? 10556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10557 test $ac_status = 0; } 10558 then 10559 lt_cv_archive_cmds_need_lc=no 10560 else 10561 lt_cv_archive_cmds_need_lc=yes 10562 fi 10563 allow_undefined_flag=$lt_save_allow_undefined_flag 10564 else 10565 cat conftest.err 1>&5 10566 fi 10567 $RM conftest* 10568 10569fi 10570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10571$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10572 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10573 ;; 10574 esac 10575 fi 10576 ;; 10577esac 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10731$as_echo_n "checking dynamic linker characteristics... " >&6; } 10732 10733if test "$GCC" = yes; then 10734 case $host_os in 10735 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10736 *) lt_awk_arg="/^libraries:/" ;; 10737 esac 10738 case $host_os in 10739 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10740 *) lt_sed_strip_eq="s,=/,/,g" ;; 10741 esac 10742 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10743 case $lt_search_path_spec in 10744 *\;*) 10745 # if the path contains ";" then we assume it to be the separator 10746 # otherwise default to the standard path separator (i.e. ":") - it is 10747 # assumed that no part of a normal pathname contains ";" but that should 10748 # okay in the real world where ";" in dirpaths is itself problematic. 10749 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10750 ;; 10751 *) 10752 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10753 ;; 10754 esac 10755 # Ok, now we have the path, separated by spaces, we can step through it 10756 # and add multilib dir if necessary. 10757 lt_tmp_lt_search_path_spec= 10758 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10759 for lt_sys_path in $lt_search_path_spec; do 10760 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10761 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10762 else 10763 test -d "$lt_sys_path" && \ 10764 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10765 fi 10766 done 10767 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10768BEGIN {RS=" "; FS="/|\n";} { 10769 lt_foo=""; 10770 lt_count=0; 10771 for (lt_i = NF; lt_i > 0; lt_i--) { 10772 if ($lt_i != "" && $lt_i != ".") { 10773 if ($lt_i == "..") { 10774 lt_count++; 10775 } else { 10776 if (lt_count == 0) { 10777 lt_foo="/" $lt_i lt_foo; 10778 } else { 10779 lt_count--; 10780 } 10781 } 10782 } 10783 } 10784 if (lt_foo != "") { lt_freq[lt_foo]++; } 10785 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10786}'` 10787 # AWK program above erroneously prepends '/' to C:/dos/paths 10788 # for these hosts. 10789 case $host_os in 10790 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10791 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10792 esac 10793 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10794else 10795 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10796fi 10797library_names_spec= 10798libname_spec='lib$name' 10799soname_spec= 10800shrext_cmds=".so" 10801postinstall_cmds= 10802postuninstall_cmds= 10803finish_cmds= 10804finish_eval= 10805shlibpath_var= 10806shlibpath_overrides_runpath=unknown 10807version_type=none 10808dynamic_linker="$host_os ld.so" 10809sys_lib_dlsearch_path_spec="/lib /usr/lib" 10810need_lib_prefix=unknown 10811hardcode_into_libs=no 10812 10813# when you set need_version to no, make sure it does not cause -set_version 10814# flags to be left without arguments 10815need_version=unknown 10816 10817case $host_os in 10818aix3*) 10819 version_type=linux # correct to gnu/linux during the next big refactor 10820 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10821 shlibpath_var=LIBPATH 10822 10823 # AIX 3 has no versioning support, so we append a major version to the name. 10824 soname_spec='${libname}${release}${shared_ext}$major' 10825 ;; 10826 10827aix[4-9]*) 10828 version_type=linux # correct to gnu/linux during the next big refactor 10829 need_lib_prefix=no 10830 need_version=no 10831 hardcode_into_libs=yes 10832 if test "$host_cpu" = ia64; then 10833 # AIX 5 supports IA64 10834 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10835 shlibpath_var=LD_LIBRARY_PATH 10836 else 10837 # With GCC up to 2.95.x, collect2 would create an import file 10838 # for dependence libraries. The import file would start with 10839 # the line `#! .'. This would cause the generated library to 10840 # depend on `.', always an invalid library. This was fixed in 10841 # development snapshots of GCC prior to 3.0. 10842 case $host_os in 10843 aix4 | aix4.[01] | aix4.[01].*) 10844 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10845 echo ' yes ' 10846 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10847 : 10848 else 10849 can_build_shared=no 10850 fi 10851 ;; 10852 esac 10853 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10854 # soname into executable. Probably we can add versioning support to 10855 # collect2, so additional links can be useful in future. 10856 if test "$aix_use_runtimelinking" = yes; then 10857 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10858 # instead of lib<name>.a to let people know that these are not 10859 # typical AIX shared libraries. 10860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10861 else 10862 # We preserve .a as extension for shared libraries through AIX4.2 10863 # and later when we are not doing run time linking. 10864 library_names_spec='${libname}${release}.a $libname.a' 10865 soname_spec='${libname}${release}${shared_ext}$major' 10866 fi 10867 shlibpath_var=LIBPATH 10868 fi 10869 ;; 10870 10871amigaos*) 10872 case $host_cpu in 10873 powerpc) 10874 # Since July 2007 AmigaOS4 officially supports .so libraries. 10875 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10877 ;; 10878 m68k) 10879 library_names_spec='$libname.ixlibrary $libname.a' 10880 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10881 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' 10882 ;; 10883 esac 10884 ;; 10885 10886beos*) 10887 library_names_spec='${libname}${shared_ext}' 10888 dynamic_linker="$host_os ld.so" 10889 shlibpath_var=LIBRARY_PATH 10890 ;; 10891 10892bsdi[45]*) 10893 version_type=linux # correct to gnu/linux during the next big refactor 10894 need_version=no 10895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10896 soname_spec='${libname}${release}${shared_ext}$major' 10897 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10898 shlibpath_var=LD_LIBRARY_PATH 10899 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10900 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10901 # the default ld.so.conf also contains /usr/contrib/lib and 10902 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10903 # libtool to hard-code these into programs 10904 ;; 10905 10906cygwin* | mingw* | pw32* | cegcc*) 10907 version_type=windows 10908 shrext_cmds=".dll" 10909 need_version=no 10910 need_lib_prefix=no 10911 10912 case $GCC,$cc_basename in 10913 yes,*) 10914 # gcc 10915 library_names_spec='$libname.dll.a' 10916 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10917 postinstall_cmds='base_file=`basename \${file}`~ 10918 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10919 dldir=$destdir/`dirname \$dlpath`~ 10920 test -d \$dldir || mkdir -p \$dldir~ 10921 $install_prog $dir/$dlname \$dldir/$dlname~ 10922 chmod a+x \$dldir/$dlname~ 10923 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10924 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10925 fi' 10926 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10927 dlpath=$dir/\$dldll~ 10928 $RM \$dlpath' 10929 shlibpath_overrides_runpath=yes 10930 10931 case $host_os in 10932 cygwin*) 10933 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10934 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10935 10936 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10937 ;; 10938 mingw* | cegcc*) 10939 # MinGW DLLs use traditional 'lib' prefix 10940 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10941 ;; 10942 pw32*) 10943 # pw32 DLLs use 'pw' prefix rather than 'lib' 10944 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10945 ;; 10946 esac 10947 dynamic_linker='Win32 ld.exe' 10948 ;; 10949 10950 *,cl*) 10951 # Native MSVC 10952 libname_spec='$name' 10953 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10954 library_names_spec='${libname}.dll.lib' 10955 10956 case $build_os in 10957 mingw*) 10958 sys_lib_search_path_spec= 10959 lt_save_ifs=$IFS 10960 IFS=';' 10961 for lt_path in $LIB 10962 do 10963 IFS=$lt_save_ifs 10964 # Let DOS variable expansion print the short 8.3 style file name. 10965 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10966 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10967 done 10968 IFS=$lt_save_ifs 10969 # Convert to MSYS style. 10970 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10971 ;; 10972 cygwin*) 10973 # Convert to unix form, then to dos form, then back to unix form 10974 # but this time dos style (no spaces!) so that the unix form looks 10975 # like /cygdrive/c/PROGRA~1:/cygdr... 10976 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10977 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10978 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10979 ;; 10980 *) 10981 sys_lib_search_path_spec="$LIB" 10982 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10983 # It is most probably a Windows format PATH. 10984 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10985 else 10986 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10987 fi 10988 # FIXME: find the short name or the path components, as spaces are 10989 # common. (e.g. "Program Files" -> "PROGRA~1") 10990 ;; 10991 esac 10992 10993 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10994 postinstall_cmds='base_file=`basename \${file}`~ 10995 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10996 dldir=$destdir/`dirname \$dlpath`~ 10997 test -d \$dldir || mkdir -p \$dldir~ 10998 $install_prog $dir/$dlname \$dldir/$dlname' 10999 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11000 dlpath=$dir/\$dldll~ 11001 $RM \$dlpath' 11002 shlibpath_overrides_runpath=yes 11003 dynamic_linker='Win32 link.exe' 11004 ;; 11005 11006 *) 11007 # Assume MSVC wrapper 11008 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11009 dynamic_linker='Win32 ld.exe' 11010 ;; 11011 esac 11012 # FIXME: first we should search . and the directory the executable is in 11013 shlibpath_var=PATH 11014 ;; 11015 11016darwin* | rhapsody*) 11017 dynamic_linker="$host_os dyld" 11018 version_type=darwin 11019 need_lib_prefix=no 11020 need_version=no 11021 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11022 soname_spec='${libname}${release}${major}$shared_ext' 11023 shlibpath_overrides_runpath=yes 11024 shlibpath_var=DYLD_LIBRARY_PATH 11025 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11026 11027 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11028 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11029 ;; 11030 11031dgux*) 11032 version_type=linux # correct to gnu/linux during the next big refactor 11033 need_lib_prefix=no 11034 need_version=no 11035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11036 soname_spec='${libname}${release}${shared_ext}$major' 11037 shlibpath_var=LD_LIBRARY_PATH 11038 ;; 11039 11040freebsd* | dragonfly*) 11041 # DragonFly does not have aout. When/if they implement a new 11042 # versioning mechanism, adjust this. 11043 if test -x /usr/bin/objformat; then 11044 objformat=`/usr/bin/objformat` 11045 else 11046 case $host_os in 11047 freebsd[23].*) objformat=aout ;; 11048 *) objformat=elf ;; 11049 esac 11050 fi 11051 version_type=freebsd-$objformat 11052 case $version_type in 11053 freebsd-elf*) 11054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11055 need_version=no 11056 need_lib_prefix=no 11057 ;; 11058 freebsd-*) 11059 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11060 need_version=yes 11061 ;; 11062 esac 11063 shlibpath_var=LD_LIBRARY_PATH 11064 case $host_os in 11065 freebsd2.*) 11066 shlibpath_overrides_runpath=yes 11067 ;; 11068 freebsd3.[01]* | freebsdelf3.[01]*) 11069 shlibpath_overrides_runpath=yes 11070 hardcode_into_libs=yes 11071 ;; 11072 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11073 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11074 shlibpath_overrides_runpath=no 11075 hardcode_into_libs=yes 11076 ;; 11077 *) # from 4.6 on, and DragonFly 11078 shlibpath_overrides_runpath=yes 11079 hardcode_into_libs=yes 11080 ;; 11081 esac 11082 ;; 11083 11084gnu*) 11085 version_type=linux # correct to gnu/linux during the next big refactor 11086 need_lib_prefix=no 11087 need_version=no 11088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11089 soname_spec='${libname}${release}${shared_ext}$major' 11090 shlibpath_var=LD_LIBRARY_PATH 11091 shlibpath_overrides_runpath=no 11092 hardcode_into_libs=yes 11093 ;; 11094 11095haiku*) 11096 version_type=linux # correct to gnu/linux during the next big refactor 11097 need_lib_prefix=no 11098 need_version=no 11099 dynamic_linker="$host_os runtime_loader" 11100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11101 soname_spec='${libname}${release}${shared_ext}$major' 11102 shlibpath_var=LIBRARY_PATH 11103 shlibpath_overrides_runpath=yes 11104 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11105 hardcode_into_libs=yes 11106 ;; 11107 11108hpux9* | hpux10* | hpux11*) 11109 # Give a soname corresponding to the major version so that dld.sl refuses to 11110 # link against other versions. 11111 version_type=sunos 11112 need_lib_prefix=no 11113 need_version=no 11114 case $host_cpu in 11115 ia64*) 11116 shrext_cmds='.so' 11117 hardcode_into_libs=yes 11118 dynamic_linker="$host_os dld.so" 11119 shlibpath_var=LD_LIBRARY_PATH 11120 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11122 soname_spec='${libname}${release}${shared_ext}$major' 11123 if test "X$HPUX_IA64_MODE" = X32; then 11124 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11125 else 11126 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11127 fi 11128 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11129 ;; 11130 hppa*64*) 11131 shrext_cmds='.sl' 11132 hardcode_into_libs=yes 11133 dynamic_linker="$host_os dld.sl" 11134 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11135 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11137 soname_spec='${libname}${release}${shared_ext}$major' 11138 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11139 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11140 ;; 11141 *) 11142 shrext_cmds='.sl' 11143 dynamic_linker="$host_os dld.sl" 11144 shlibpath_var=SHLIB_PATH 11145 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11147 soname_spec='${libname}${release}${shared_ext}$major' 11148 ;; 11149 esac 11150 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11151 postinstall_cmds='chmod 555 $lib' 11152 # or fails outright, so override atomically: 11153 install_override_mode=555 11154 ;; 11155 11156interix[3-9]*) 11157 version_type=linux # correct to gnu/linux during the next big refactor 11158 need_lib_prefix=no 11159 need_version=no 11160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11161 soname_spec='${libname}${release}${shared_ext}$major' 11162 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11163 shlibpath_var=LD_LIBRARY_PATH 11164 shlibpath_overrides_runpath=no 11165 hardcode_into_libs=yes 11166 ;; 11167 11168irix5* | irix6* | nonstopux*) 11169 case $host_os in 11170 nonstopux*) version_type=nonstopux ;; 11171 *) 11172 if test "$lt_cv_prog_gnu_ld" = yes; then 11173 version_type=linux # correct to gnu/linux during the next big refactor 11174 else 11175 version_type=irix 11176 fi ;; 11177 esac 11178 need_lib_prefix=no 11179 need_version=no 11180 soname_spec='${libname}${release}${shared_ext}$major' 11181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11182 case $host_os in 11183 irix5* | nonstopux*) 11184 libsuff= shlibsuff= 11185 ;; 11186 *) 11187 case $LD in # libtool.m4 will add one of these switches to LD 11188 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11189 libsuff= shlibsuff= libmagic=32-bit;; 11190 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11191 libsuff=32 shlibsuff=N32 libmagic=N32;; 11192 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11193 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11194 *) libsuff= shlibsuff= libmagic=never-match;; 11195 esac 11196 ;; 11197 esac 11198 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11199 shlibpath_overrides_runpath=no 11200 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11201 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11202 hardcode_into_libs=yes 11203 ;; 11204 11205# No shared lib support for Linux oldld, aout, or coff. 11206linux*oldld* | linux*aout* | linux*coff*) 11207 dynamic_linker=no 11208 ;; 11209 11210# This must be glibc/ELF. 11211linux* | k*bsd*-gnu | kopensolaris*-gnu) 11212 version_type=linux # correct to gnu/linux during the next big refactor 11213 need_lib_prefix=no 11214 need_version=no 11215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11216 soname_spec='${libname}${release}${shared_ext}$major' 11217 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11218 shlibpath_var=LD_LIBRARY_PATH 11219 shlibpath_overrides_runpath=no 11220 11221 # Some binutils ld are patched to set DT_RUNPATH 11222 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11223 $as_echo_n "(cached) " >&6 11224else 11225 lt_cv_shlibpath_overrides_runpath=no 11226 save_LDFLAGS=$LDFLAGS 11227 save_libdir=$libdir 11228 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11229 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11231/* end confdefs.h. */ 11232 11233int 11234main () 11235{ 11236 11237 ; 11238 return 0; 11239} 11240_ACEOF 11241if ac_fn_c_try_link "$LINENO"; then : 11242 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11243 lt_cv_shlibpath_overrides_runpath=yes 11244fi 11245fi 11246rm -f core conftest.err conftest.$ac_objext \ 11247 conftest$ac_exeext conftest.$ac_ext 11248 LDFLAGS=$save_LDFLAGS 11249 libdir=$save_libdir 11250 11251fi 11252 11253 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11254 11255 # This implies no fast_install, which is unacceptable. 11256 # Some rework will be needed to allow for fast_install 11257 # before this can be enabled. 11258 hardcode_into_libs=yes 11259 11260 # Append ld.so.conf contents to the search path 11261 if test -f /etc/ld.so.conf; then 11262 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' ' '` 11263 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11264 fi 11265 11266 # We used to test for /lib/ld.so.1 and disable shared libraries on 11267 # powerpc, because MkLinux only supported shared libraries with the 11268 # GNU dynamic linker. Since this was broken with cross compilers, 11269 # most powerpc-linux boxes support dynamic linking these days and 11270 # people can always --disable-shared, the test was removed, and we 11271 # assume the GNU/Linux dynamic linker is in use. 11272 dynamic_linker='GNU/Linux ld.so' 11273 ;; 11274 11275netbsdelf*-gnu) 11276 version_type=linux 11277 need_lib_prefix=no 11278 need_version=no 11279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11280 soname_spec='${libname}${release}${shared_ext}$major' 11281 shlibpath_var=LD_LIBRARY_PATH 11282 shlibpath_overrides_runpath=no 11283 hardcode_into_libs=yes 11284 dynamic_linker='NetBSD ld.elf_so' 11285 ;; 11286 11287netbsd*) 11288 version_type=sunos 11289 need_lib_prefix=no 11290 need_version=no 11291 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11293 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11294 dynamic_linker='NetBSD (a.out) ld.so' 11295 else 11296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11297 soname_spec='${libname}${release}${shared_ext}$major' 11298 dynamic_linker='NetBSD ld.elf_so' 11299 fi 11300 shlibpath_var=LD_LIBRARY_PATH 11301 shlibpath_overrides_runpath=yes 11302 hardcode_into_libs=yes 11303 ;; 11304 11305newsos6) 11306 version_type=linux # correct to gnu/linux during the next big refactor 11307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11308 shlibpath_var=LD_LIBRARY_PATH 11309 shlibpath_overrides_runpath=yes 11310 ;; 11311 11312*nto* | *qnx*) 11313 version_type=qnx 11314 need_lib_prefix=no 11315 need_version=no 11316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11317 soname_spec='${libname}${release}${shared_ext}$major' 11318 shlibpath_var=LD_LIBRARY_PATH 11319 shlibpath_overrides_runpath=no 11320 hardcode_into_libs=yes 11321 dynamic_linker='ldqnx.so' 11322 ;; 11323 11324openbsd*) 11325 version_type=sunos 11326 sys_lib_dlsearch_path_spec="/usr/lib" 11327 need_lib_prefix=no 11328 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11329 case $host_os in 11330 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11331 *) need_version=no ;; 11332 esac 11333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11334 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11335 shlibpath_var=LD_LIBRARY_PATH 11336 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11337 case $host_os in 11338 openbsd2.[89] | openbsd2.[89].*) 11339 shlibpath_overrides_runpath=no 11340 ;; 11341 *) 11342 shlibpath_overrides_runpath=yes 11343 ;; 11344 esac 11345 else 11346 shlibpath_overrides_runpath=yes 11347 fi 11348 ;; 11349 11350os2*) 11351 libname_spec='$name' 11352 shrext_cmds=".dll" 11353 need_lib_prefix=no 11354 library_names_spec='$libname${shared_ext} $libname.a' 11355 dynamic_linker='OS/2 ld.exe' 11356 shlibpath_var=LIBPATH 11357 ;; 11358 11359osf3* | osf4* | osf5*) 11360 version_type=osf 11361 need_lib_prefix=no 11362 need_version=no 11363 soname_spec='${libname}${release}${shared_ext}$major' 11364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11365 shlibpath_var=LD_LIBRARY_PATH 11366 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11367 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11368 ;; 11369 11370rdos*) 11371 dynamic_linker=no 11372 ;; 11373 11374solaris*) 11375 version_type=linux # correct to gnu/linux during the next big refactor 11376 need_lib_prefix=no 11377 need_version=no 11378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11379 soname_spec='${libname}${release}${shared_ext}$major' 11380 shlibpath_var=LD_LIBRARY_PATH 11381 shlibpath_overrides_runpath=yes 11382 hardcode_into_libs=yes 11383 # ldd complains unless libraries are executable 11384 postinstall_cmds='chmod +x $lib' 11385 ;; 11386 11387sunos4*) 11388 version_type=sunos 11389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11390 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11391 shlibpath_var=LD_LIBRARY_PATH 11392 shlibpath_overrides_runpath=yes 11393 if test "$with_gnu_ld" = yes; then 11394 need_lib_prefix=no 11395 fi 11396 need_version=yes 11397 ;; 11398 11399sysv4 | sysv4.3*) 11400 version_type=linux # correct to gnu/linux during the next big refactor 11401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11402 soname_spec='${libname}${release}${shared_ext}$major' 11403 shlibpath_var=LD_LIBRARY_PATH 11404 case $host_vendor in 11405 sni) 11406 shlibpath_overrides_runpath=no 11407 need_lib_prefix=no 11408 runpath_var=LD_RUN_PATH 11409 ;; 11410 siemens) 11411 need_lib_prefix=no 11412 ;; 11413 motorola) 11414 need_lib_prefix=no 11415 need_version=no 11416 shlibpath_overrides_runpath=no 11417 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11418 ;; 11419 esac 11420 ;; 11421 11422sysv4*MP*) 11423 if test -d /usr/nec ;then 11424 version_type=linux # correct to gnu/linux during the next big refactor 11425 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11426 soname_spec='$libname${shared_ext}.$major' 11427 shlibpath_var=LD_LIBRARY_PATH 11428 fi 11429 ;; 11430 11431sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11432 version_type=freebsd-elf 11433 need_lib_prefix=no 11434 need_version=no 11435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11436 soname_spec='${libname}${release}${shared_ext}$major' 11437 shlibpath_var=LD_LIBRARY_PATH 11438 shlibpath_overrides_runpath=yes 11439 hardcode_into_libs=yes 11440 if test "$with_gnu_ld" = yes; then 11441 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11442 else 11443 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11444 case $host_os in 11445 sco3.2v5*) 11446 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11447 ;; 11448 esac 11449 fi 11450 sys_lib_dlsearch_path_spec='/usr/lib' 11451 ;; 11452 11453tpf*) 11454 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11455 version_type=linux # correct to gnu/linux during the next big refactor 11456 need_lib_prefix=no 11457 need_version=no 11458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11459 shlibpath_var=LD_LIBRARY_PATH 11460 shlibpath_overrides_runpath=no 11461 hardcode_into_libs=yes 11462 ;; 11463 11464uts4*) 11465 version_type=linux # correct to gnu/linux during the next big refactor 11466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11467 soname_spec='${libname}${release}${shared_ext}$major' 11468 shlibpath_var=LD_LIBRARY_PATH 11469 ;; 11470 11471*) 11472 dynamic_linker=no 11473 ;; 11474esac 11475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11476$as_echo "$dynamic_linker" >&6; } 11477test "$dynamic_linker" = no && can_build_shared=no 11478 11479variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11480if test "$GCC" = yes; then 11481 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11482fi 11483 11484if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11485 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11486fi 11487if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11488 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11489fi 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 11563 11564 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 11577 11578 11579 11580 11581 11582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11583$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11584hardcode_action= 11585if test -n "$hardcode_libdir_flag_spec" || 11586 test -n "$runpath_var" || 11587 test "X$hardcode_automatic" = "Xyes" ; then 11588 11589 # We can hardcode non-existent directories. 11590 if test "$hardcode_direct" != no && 11591 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11592 # have to relink, otherwise we might link with an installed library 11593 # when we should be linking with a yet-to-be-installed one 11594 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11595 test "$hardcode_minus_L" != no; then 11596 # Linking always hardcodes the temporary library directory. 11597 hardcode_action=relink 11598 else 11599 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11600 hardcode_action=immediate 11601 fi 11602else 11603 # We cannot hardcode anything, or else we can only hardcode existing 11604 # directories. 11605 hardcode_action=unsupported 11606fi 11607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11608$as_echo "$hardcode_action" >&6; } 11609 11610if test "$hardcode_action" = relink || 11611 test "$inherit_rpath" = yes; then 11612 # Fast installation is not supported 11613 enable_fast_install=no 11614elif test "$shlibpath_overrides_runpath" = yes || 11615 test "$enable_shared" = no; then 11616 # Fast installation is not necessary 11617 enable_fast_install=needless 11618fi 11619 11620 11621 11622 11623 11624 11625 if test "x$enable_dlopen" != xyes; then 11626 enable_dlopen=unknown 11627 enable_dlopen_self=unknown 11628 enable_dlopen_self_static=unknown 11629else 11630 lt_cv_dlopen=no 11631 lt_cv_dlopen_libs= 11632 11633 case $host_os in 11634 beos*) 11635 lt_cv_dlopen="load_add_on" 11636 lt_cv_dlopen_libs= 11637 lt_cv_dlopen_self=yes 11638 ;; 11639 11640 mingw* | pw32* | cegcc*) 11641 lt_cv_dlopen="LoadLibrary" 11642 lt_cv_dlopen_libs= 11643 ;; 11644 11645 cygwin*) 11646 lt_cv_dlopen="dlopen" 11647 lt_cv_dlopen_libs= 11648 ;; 11649 11650 darwin*) 11651 # if libdl is installed we need to link against it 11652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11653$as_echo_n "checking for dlopen in -ldl... " >&6; } 11654if ${ac_cv_lib_dl_dlopen+:} false; then : 11655 $as_echo_n "(cached) " >&6 11656else 11657 ac_check_lib_save_LIBS=$LIBS 11658LIBS="-ldl $LIBS" 11659cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11660/* end confdefs.h. */ 11661 11662/* Override any GCC internal prototype to avoid an error. 11663 Use char because int might match the return type of a GCC 11664 builtin and then its argument prototype would still apply. */ 11665#ifdef __cplusplus 11666extern "C" 11667#endif 11668char dlopen (); 11669int 11670main () 11671{ 11672return dlopen (); 11673 ; 11674 return 0; 11675} 11676_ACEOF 11677if ac_fn_c_try_link "$LINENO"; then : 11678 ac_cv_lib_dl_dlopen=yes 11679else 11680 ac_cv_lib_dl_dlopen=no 11681fi 11682rm -f core conftest.err conftest.$ac_objext \ 11683 conftest$ac_exeext conftest.$ac_ext 11684LIBS=$ac_check_lib_save_LIBS 11685fi 11686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11687$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11688if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11689 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11690else 11691 11692 lt_cv_dlopen="dyld" 11693 lt_cv_dlopen_libs= 11694 lt_cv_dlopen_self=yes 11695 11696fi 11697 11698 ;; 11699 11700 *) 11701 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11702if test "x$ac_cv_func_shl_load" = xyes; then : 11703 lt_cv_dlopen="shl_load" 11704else 11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11706$as_echo_n "checking for shl_load in -ldld... " >&6; } 11707if ${ac_cv_lib_dld_shl_load+:} false; then : 11708 $as_echo_n "(cached) " >&6 11709else 11710 ac_check_lib_save_LIBS=$LIBS 11711LIBS="-ldld $LIBS" 11712cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11713/* end confdefs.h. */ 11714 11715/* Override any GCC internal prototype to avoid an error. 11716 Use char because int might match the return type of a GCC 11717 builtin and then its argument prototype would still apply. */ 11718#ifdef __cplusplus 11719extern "C" 11720#endif 11721char shl_load (); 11722int 11723main () 11724{ 11725return shl_load (); 11726 ; 11727 return 0; 11728} 11729_ACEOF 11730if ac_fn_c_try_link "$LINENO"; then : 11731 ac_cv_lib_dld_shl_load=yes 11732else 11733 ac_cv_lib_dld_shl_load=no 11734fi 11735rm -f core conftest.err conftest.$ac_objext \ 11736 conftest$ac_exeext conftest.$ac_ext 11737LIBS=$ac_check_lib_save_LIBS 11738fi 11739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11740$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11741if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11742 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11743else 11744 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11745if test "x$ac_cv_func_dlopen" = xyes; then : 11746 lt_cv_dlopen="dlopen" 11747else 11748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11749$as_echo_n "checking for dlopen in -ldl... " >&6; } 11750if ${ac_cv_lib_dl_dlopen+:} false; then : 11751 $as_echo_n "(cached) " >&6 11752else 11753 ac_check_lib_save_LIBS=$LIBS 11754LIBS="-ldl $LIBS" 11755cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11756/* end confdefs.h. */ 11757 11758/* Override any GCC internal prototype to avoid an error. 11759 Use char because int might match the return type of a GCC 11760 builtin and then its argument prototype would still apply. */ 11761#ifdef __cplusplus 11762extern "C" 11763#endif 11764char dlopen (); 11765int 11766main () 11767{ 11768return dlopen (); 11769 ; 11770 return 0; 11771} 11772_ACEOF 11773if ac_fn_c_try_link "$LINENO"; then : 11774 ac_cv_lib_dl_dlopen=yes 11775else 11776 ac_cv_lib_dl_dlopen=no 11777fi 11778rm -f core conftest.err conftest.$ac_objext \ 11779 conftest$ac_exeext conftest.$ac_ext 11780LIBS=$ac_check_lib_save_LIBS 11781fi 11782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11783$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11784if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11785 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11786else 11787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11788$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11789if ${ac_cv_lib_svld_dlopen+:} false; then : 11790 $as_echo_n "(cached) " >&6 11791else 11792 ac_check_lib_save_LIBS=$LIBS 11793LIBS="-lsvld $LIBS" 11794cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11795/* end confdefs.h. */ 11796 11797/* Override any GCC internal prototype to avoid an error. 11798 Use char because int might match the return type of a GCC 11799 builtin and then its argument prototype would still apply. */ 11800#ifdef __cplusplus 11801extern "C" 11802#endif 11803char dlopen (); 11804int 11805main () 11806{ 11807return dlopen (); 11808 ; 11809 return 0; 11810} 11811_ACEOF 11812if ac_fn_c_try_link "$LINENO"; then : 11813 ac_cv_lib_svld_dlopen=yes 11814else 11815 ac_cv_lib_svld_dlopen=no 11816fi 11817rm -f core conftest.err conftest.$ac_objext \ 11818 conftest$ac_exeext conftest.$ac_ext 11819LIBS=$ac_check_lib_save_LIBS 11820fi 11821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11822$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11823if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11824 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11825else 11826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11827$as_echo_n "checking for dld_link in -ldld... " >&6; } 11828if ${ac_cv_lib_dld_dld_link+:} false; then : 11829 $as_echo_n "(cached) " >&6 11830else 11831 ac_check_lib_save_LIBS=$LIBS 11832LIBS="-ldld $LIBS" 11833cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11834/* end confdefs.h. */ 11835 11836/* Override any GCC internal prototype to avoid an error. 11837 Use char because int might match the return type of a GCC 11838 builtin and then its argument prototype would still apply. */ 11839#ifdef __cplusplus 11840extern "C" 11841#endif 11842char dld_link (); 11843int 11844main () 11845{ 11846return dld_link (); 11847 ; 11848 return 0; 11849} 11850_ACEOF 11851if ac_fn_c_try_link "$LINENO"; then : 11852 ac_cv_lib_dld_dld_link=yes 11853else 11854 ac_cv_lib_dld_dld_link=no 11855fi 11856rm -f core conftest.err conftest.$ac_objext \ 11857 conftest$ac_exeext conftest.$ac_ext 11858LIBS=$ac_check_lib_save_LIBS 11859fi 11860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11861$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11862if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11863 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11864fi 11865 11866 11867fi 11868 11869 11870fi 11871 11872 11873fi 11874 11875 11876fi 11877 11878 11879fi 11880 11881 ;; 11882 esac 11883 11884 if test "x$lt_cv_dlopen" != xno; then 11885 enable_dlopen=yes 11886 else 11887 enable_dlopen=no 11888 fi 11889 11890 case $lt_cv_dlopen in 11891 dlopen) 11892 save_CPPFLAGS="$CPPFLAGS" 11893 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11894 11895 save_LDFLAGS="$LDFLAGS" 11896 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11897 11898 save_LIBS="$LIBS" 11899 LIBS="$lt_cv_dlopen_libs $LIBS" 11900 11901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11902$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11903if ${lt_cv_dlopen_self+:} false; then : 11904 $as_echo_n "(cached) " >&6 11905else 11906 if test "$cross_compiling" = yes; then : 11907 lt_cv_dlopen_self=cross 11908else 11909 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11910 lt_status=$lt_dlunknown 11911 cat > conftest.$ac_ext <<_LT_EOF 11912#line $LINENO "configure" 11913#include "confdefs.h" 11914 11915#if HAVE_DLFCN_H 11916#include <dlfcn.h> 11917#endif 11918 11919#include <stdio.h> 11920 11921#ifdef RTLD_GLOBAL 11922# define LT_DLGLOBAL RTLD_GLOBAL 11923#else 11924# ifdef DL_GLOBAL 11925# define LT_DLGLOBAL DL_GLOBAL 11926# else 11927# define LT_DLGLOBAL 0 11928# endif 11929#endif 11930 11931/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11932 find out it does not work in some platform. */ 11933#ifndef LT_DLLAZY_OR_NOW 11934# ifdef RTLD_LAZY 11935# define LT_DLLAZY_OR_NOW RTLD_LAZY 11936# else 11937# ifdef DL_LAZY 11938# define LT_DLLAZY_OR_NOW DL_LAZY 11939# else 11940# ifdef RTLD_NOW 11941# define LT_DLLAZY_OR_NOW RTLD_NOW 11942# else 11943# ifdef DL_NOW 11944# define LT_DLLAZY_OR_NOW DL_NOW 11945# else 11946# define LT_DLLAZY_OR_NOW 0 11947# endif 11948# endif 11949# endif 11950# endif 11951#endif 11952 11953/* When -fvisbility=hidden is used, assume the code has been annotated 11954 correspondingly for the symbols needed. */ 11955#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11956int fnord () __attribute__((visibility("default"))); 11957#endif 11958 11959int fnord () { return 42; } 11960int main () 11961{ 11962 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11963 int status = $lt_dlunknown; 11964 11965 if (self) 11966 { 11967 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11968 else 11969 { 11970 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11971 else puts (dlerror ()); 11972 } 11973 /* dlclose (self); */ 11974 } 11975 else 11976 puts (dlerror ()); 11977 11978 return status; 11979} 11980_LT_EOF 11981 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11982 (eval $ac_link) 2>&5 11983 ac_status=$? 11984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11985 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11986 (./conftest; exit; ) >&5 2>/dev/null 11987 lt_status=$? 11988 case x$lt_status in 11989 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11990 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11991 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11992 esac 11993 else : 11994 # compilation failed 11995 lt_cv_dlopen_self=no 11996 fi 11997fi 11998rm -fr conftest* 11999 12000 12001fi 12002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12003$as_echo "$lt_cv_dlopen_self" >&6; } 12004 12005 if test "x$lt_cv_dlopen_self" = xyes; then 12006 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12008$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12009if ${lt_cv_dlopen_self_static+:} false; then : 12010 $as_echo_n "(cached) " >&6 12011else 12012 if test "$cross_compiling" = yes; then : 12013 lt_cv_dlopen_self_static=cross 12014else 12015 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12016 lt_status=$lt_dlunknown 12017 cat > conftest.$ac_ext <<_LT_EOF 12018#line $LINENO "configure" 12019#include "confdefs.h" 12020 12021#if HAVE_DLFCN_H 12022#include <dlfcn.h> 12023#endif 12024 12025#include <stdio.h> 12026 12027#ifdef RTLD_GLOBAL 12028# define LT_DLGLOBAL RTLD_GLOBAL 12029#else 12030# ifdef DL_GLOBAL 12031# define LT_DLGLOBAL DL_GLOBAL 12032# else 12033# define LT_DLGLOBAL 0 12034# endif 12035#endif 12036 12037/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12038 find out it does not work in some platform. */ 12039#ifndef LT_DLLAZY_OR_NOW 12040# ifdef RTLD_LAZY 12041# define LT_DLLAZY_OR_NOW RTLD_LAZY 12042# else 12043# ifdef DL_LAZY 12044# define LT_DLLAZY_OR_NOW DL_LAZY 12045# else 12046# ifdef RTLD_NOW 12047# define LT_DLLAZY_OR_NOW RTLD_NOW 12048# else 12049# ifdef DL_NOW 12050# define LT_DLLAZY_OR_NOW DL_NOW 12051# else 12052# define LT_DLLAZY_OR_NOW 0 12053# endif 12054# endif 12055# endif 12056# endif 12057#endif 12058 12059/* When -fvisbility=hidden is used, assume the code has been annotated 12060 correspondingly for the symbols needed. */ 12061#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12062int fnord () __attribute__((visibility("default"))); 12063#endif 12064 12065int fnord () { return 42; } 12066int main () 12067{ 12068 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12069 int status = $lt_dlunknown; 12070 12071 if (self) 12072 { 12073 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12074 else 12075 { 12076 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12077 else puts (dlerror ()); 12078 } 12079 /* dlclose (self); */ 12080 } 12081 else 12082 puts (dlerror ()); 12083 12084 return status; 12085} 12086_LT_EOF 12087 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12088 (eval $ac_link) 2>&5 12089 ac_status=$? 12090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12091 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12092 (./conftest; exit; ) >&5 2>/dev/null 12093 lt_status=$? 12094 case x$lt_status in 12095 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12096 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12097 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12098 esac 12099 else : 12100 # compilation failed 12101 lt_cv_dlopen_self_static=no 12102 fi 12103fi 12104rm -fr conftest* 12105 12106 12107fi 12108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12109$as_echo "$lt_cv_dlopen_self_static" >&6; } 12110 fi 12111 12112 CPPFLAGS="$save_CPPFLAGS" 12113 LDFLAGS="$save_LDFLAGS" 12114 LIBS="$save_LIBS" 12115 ;; 12116 esac 12117 12118 case $lt_cv_dlopen_self in 12119 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12120 *) enable_dlopen_self=unknown ;; 12121 esac 12122 12123 case $lt_cv_dlopen_self_static in 12124 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12125 *) enable_dlopen_self_static=unknown ;; 12126 esac 12127fi 12128 12129 12130 12131 12132 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145striplib= 12146old_striplib= 12147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12148$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12149if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12150 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12151 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12153$as_echo "yes" >&6; } 12154else 12155# FIXME - insert some real tests, host_os isn't really good enough 12156 case $host_os in 12157 darwin*) 12158 if test -n "$STRIP" ; then 12159 striplib="$STRIP -x" 12160 old_striplib="$STRIP -S" 12161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12162$as_echo "yes" >&6; } 12163 else 12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12165$as_echo "no" >&6; } 12166 fi 12167 ;; 12168 *) 12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12170$as_echo "no" >&6; } 12171 ;; 12172 esac 12173fi 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 # Report which library types will actually be built 12187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12188$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12190$as_echo "$can_build_shared" >&6; } 12191 12192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12193$as_echo_n "checking whether to build shared libraries... " >&6; } 12194 test "$can_build_shared" = "no" && enable_shared=no 12195 12196 # On AIX, shared libraries and static libraries use the same namespace, and 12197 # are all built from PIC. 12198 case $host_os in 12199 aix3*) 12200 test "$enable_shared" = yes && enable_static=no 12201 if test -n "$RANLIB"; then 12202 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12203 postinstall_cmds='$RANLIB $lib' 12204 fi 12205 ;; 12206 12207 aix[4-9]*) 12208 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12209 test "$enable_shared" = yes && enable_static=no 12210 fi 12211 ;; 12212 esac 12213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12214$as_echo "$enable_shared" >&6; } 12215 12216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12217$as_echo_n "checking whether to build static libraries... " >&6; } 12218 # Make sure either enable_shared or enable_static is yes. 12219 test "$enable_shared" = yes || enable_static=yes 12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12221$as_echo "$enable_static" >&6; } 12222 12223 12224 12225 12226fi 12227ac_ext=c 12228ac_cpp='$CPP $CPPFLAGS' 12229ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12230ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12231ac_compiler_gnu=$ac_cv_c_compiler_gnu 12232 12233CC="$lt_save_CC" 12234 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 ac_config_commands="$ac_config_commands libtool" 12250 12251 12252 12253 12254# Only expand once: 12255 12256 12257for ac_prog in flex lex 12258do 12259 # Extract the first word of "$ac_prog", so it can be a program name with args. 12260set dummy $ac_prog; ac_word=$2 12261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12262$as_echo_n "checking for $ac_word... " >&6; } 12263if ${ac_cv_prog_LEX+:} false; then : 12264 $as_echo_n "(cached) " >&6 12265else 12266 if test -n "$LEX"; then 12267 ac_cv_prog_LEX="$LEX" # Let the user override the test. 12268else 12269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12270for as_dir in $PATH 12271do 12272 IFS=$as_save_IFS 12273 test -z "$as_dir" && as_dir=. 12274 for ac_exec_ext in '' $ac_executable_extensions; do 12275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12276 ac_cv_prog_LEX="$ac_prog" 12277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12278 break 2 12279 fi 12280done 12281 done 12282IFS=$as_save_IFS 12283 12284fi 12285fi 12286LEX=$ac_cv_prog_LEX 12287if test -n "$LEX"; then 12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 12289$as_echo "$LEX" >&6; } 12290else 12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12292$as_echo "no" >&6; } 12293fi 12294 12295 12296 test -n "$LEX" && break 12297done 12298test -n "$LEX" || LEX=":" 12299 12300if test "x$LEX" != "x:"; then 12301 cat >conftest.l <<_ACEOF 12302%% 12303a { ECHO; } 12304b { REJECT; } 12305c { yymore (); } 12306d { yyless (1); } 12307e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 12308 yyless ((input () != 0)); } 12309f { unput (yytext[0]); } 12310. { BEGIN INITIAL; } 12311%% 12312#ifdef YYTEXT_POINTER 12313extern char *yytext; 12314#endif 12315int 12316main (void) 12317{ 12318 return ! yylex () + ! yywrap (); 12319} 12320_ACEOF 12321{ { ac_try="$LEX conftest.l" 12322case "(($ac_try" in 12323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12324 *) ac_try_echo=$ac_try;; 12325esac 12326eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12327$as_echo "$ac_try_echo"; } >&5 12328 (eval "$LEX conftest.l") 2>&5 12329 ac_status=$? 12330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12331 test $ac_status = 0; } 12332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 12333$as_echo_n "checking lex output file root... " >&6; } 12334if ${ac_cv_prog_lex_root+:} false; then : 12335 $as_echo_n "(cached) " >&6 12336else 12337 12338if test -f lex.yy.c; then 12339 ac_cv_prog_lex_root=lex.yy 12340elif test -f lexyy.c; then 12341 ac_cv_prog_lex_root=lexyy 12342else 12343 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 12344fi 12345fi 12346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 12347$as_echo "$ac_cv_prog_lex_root" >&6; } 12348LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 12349 12350if test -z "${LEXLIB+set}"; then 12351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 12352$as_echo_n "checking lex library... " >&6; } 12353if ${ac_cv_lib_lex+:} false; then : 12354 $as_echo_n "(cached) " >&6 12355else 12356 12357 ac_save_LIBS=$LIBS 12358 ac_cv_lib_lex='none needed' 12359 for ac_lib in '' -lfl -ll; do 12360 LIBS="$ac_lib $ac_save_LIBS" 12361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12362/* end confdefs.h. */ 12363`cat $LEX_OUTPUT_ROOT.c` 12364_ACEOF 12365if ac_fn_c_try_link "$LINENO"; then : 12366 ac_cv_lib_lex=$ac_lib 12367fi 12368rm -f core conftest.err conftest.$ac_objext \ 12369 conftest$ac_exeext conftest.$ac_ext 12370 test "$ac_cv_lib_lex" != 'none needed' && break 12371 done 12372 LIBS=$ac_save_LIBS 12373 12374fi 12375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 12376$as_echo "$ac_cv_lib_lex" >&6; } 12377 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 12378fi 12379 12380 12381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 12382$as_echo_n "checking whether yytext is a pointer... " >&6; } 12383if ${ac_cv_prog_lex_yytext_pointer+:} false; then : 12384 $as_echo_n "(cached) " >&6 12385else 12386 # POSIX says lex can declare yytext either as a pointer or an array; the 12387# default is implementation-dependent. Figure out which it is, since 12388# not all implementations provide the %pointer and %array declarations. 12389ac_cv_prog_lex_yytext_pointer=no 12390ac_save_LIBS=$LIBS 12391LIBS="$LEXLIB $ac_save_LIBS" 12392cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12393/* end confdefs.h. */ 12394 12395 #define YYTEXT_POINTER 1 12396`cat $LEX_OUTPUT_ROOT.c` 12397_ACEOF 12398if ac_fn_c_try_link "$LINENO"; then : 12399 ac_cv_prog_lex_yytext_pointer=yes 12400fi 12401rm -f core conftest.err conftest.$ac_objext \ 12402 conftest$ac_exeext conftest.$ac_ext 12403LIBS=$ac_save_LIBS 12404 12405fi 12406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 12407$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } 12408if test $ac_cv_prog_lex_yytext_pointer = yes; then 12409 12410$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h 12411 12412fi 12413rm -f conftest.l $LEX_OUTPUT_ROOT.c 12414 12415fi 12416if test "$LEX" = :; then 12417 LEX=${am_missing_run}flex 12418fi 12419for ac_prog in 'bison -y' byacc 12420do 12421 # Extract the first word of "$ac_prog", so it can be a program name with args. 12422set dummy $ac_prog; ac_word=$2 12423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12424$as_echo_n "checking for $ac_word... " >&6; } 12425if ${ac_cv_prog_YACC+:} false; then : 12426 $as_echo_n "(cached) " >&6 12427else 12428 if test -n "$YACC"; then 12429 ac_cv_prog_YACC="$YACC" # Let the user override the test. 12430else 12431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12432for as_dir in $PATH 12433do 12434 IFS=$as_save_IFS 12435 test -z "$as_dir" && as_dir=. 12436 for ac_exec_ext in '' $ac_executable_extensions; do 12437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12438 ac_cv_prog_YACC="$ac_prog" 12439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12440 break 2 12441 fi 12442done 12443 done 12444IFS=$as_save_IFS 12445 12446fi 12447fi 12448YACC=$ac_cv_prog_YACC 12449if test -n "$YACC"; then 12450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 12451$as_echo "$YACC" >&6; } 12452else 12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12454$as_echo "no" >&6; } 12455fi 12456 12457 12458 test -n "$YACC" && break 12459done 12460test -n "$YACC" || YACC="yacc" 12461 12462 12463ac_ext=c 12464ac_cpp='$CPP $CPPFLAGS' 12465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12467ac_compiler_gnu=$ac_cv_c_compiler_gnu 12468if test -n "$ac_tool_prefix"; then 12469 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 12470set dummy ${ac_tool_prefix}gcc; ac_word=$2 12471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12472$as_echo_n "checking for $ac_word... " >&6; } 12473if ${ac_cv_prog_CC+:} false; then : 12474 $as_echo_n "(cached) " >&6 12475else 12476 if test -n "$CC"; then 12477 ac_cv_prog_CC="$CC" # Let the user override the test. 12478else 12479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12480for as_dir in $PATH 12481do 12482 IFS=$as_save_IFS 12483 test -z "$as_dir" && as_dir=. 12484 for ac_exec_ext in '' $ac_executable_extensions; do 12485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12486 ac_cv_prog_CC="${ac_tool_prefix}gcc" 12487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12488 break 2 12489 fi 12490done 12491 done 12492IFS=$as_save_IFS 12493 12494fi 12495fi 12496CC=$ac_cv_prog_CC 12497if test -n "$CC"; then 12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12499$as_echo "$CC" >&6; } 12500else 12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12502$as_echo "no" >&6; } 12503fi 12504 12505 12506fi 12507if test -z "$ac_cv_prog_CC"; then 12508 ac_ct_CC=$CC 12509 # Extract the first word of "gcc", so it can be a program name with args. 12510set dummy gcc; ac_word=$2 12511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12512$as_echo_n "checking for $ac_word... " >&6; } 12513if ${ac_cv_prog_ac_ct_CC+:} false; then : 12514 $as_echo_n "(cached) " >&6 12515else 12516 if test -n "$ac_ct_CC"; then 12517 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12518else 12519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12520for as_dir in $PATH 12521do 12522 IFS=$as_save_IFS 12523 test -z "$as_dir" && as_dir=. 12524 for ac_exec_ext in '' $ac_executable_extensions; do 12525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12526 ac_cv_prog_ac_ct_CC="gcc" 12527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12528 break 2 12529 fi 12530done 12531 done 12532IFS=$as_save_IFS 12533 12534fi 12535fi 12536ac_ct_CC=$ac_cv_prog_ac_ct_CC 12537if test -n "$ac_ct_CC"; then 12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12539$as_echo "$ac_ct_CC" >&6; } 12540else 12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12542$as_echo "no" >&6; } 12543fi 12544 12545 if test "x$ac_ct_CC" = x; then 12546 CC="" 12547 else 12548 case $cross_compiling:$ac_tool_warned in 12549yes:) 12550{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12551$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12552ac_tool_warned=yes ;; 12553esac 12554 CC=$ac_ct_CC 12555 fi 12556else 12557 CC="$ac_cv_prog_CC" 12558fi 12559 12560if test -z "$CC"; then 12561 if test -n "$ac_tool_prefix"; then 12562 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 12563set dummy ${ac_tool_prefix}cc; ac_word=$2 12564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12565$as_echo_n "checking for $ac_word... " >&6; } 12566if ${ac_cv_prog_CC+:} false; then : 12567 $as_echo_n "(cached) " >&6 12568else 12569 if test -n "$CC"; then 12570 ac_cv_prog_CC="$CC" # Let the user override the test. 12571else 12572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12573for as_dir in $PATH 12574do 12575 IFS=$as_save_IFS 12576 test -z "$as_dir" && as_dir=. 12577 for ac_exec_ext in '' $ac_executable_extensions; do 12578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12579 ac_cv_prog_CC="${ac_tool_prefix}cc" 12580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12581 break 2 12582 fi 12583done 12584 done 12585IFS=$as_save_IFS 12586 12587fi 12588fi 12589CC=$ac_cv_prog_CC 12590if test -n "$CC"; then 12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12592$as_echo "$CC" >&6; } 12593else 12594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12595$as_echo "no" >&6; } 12596fi 12597 12598 12599 fi 12600fi 12601if test -z "$CC"; then 12602 # Extract the first word of "cc", so it can be a program name with args. 12603set dummy cc; ac_word=$2 12604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12605$as_echo_n "checking for $ac_word... " >&6; } 12606if ${ac_cv_prog_CC+:} false; then : 12607 $as_echo_n "(cached) " >&6 12608else 12609 if test -n "$CC"; then 12610 ac_cv_prog_CC="$CC" # Let the user override the test. 12611else 12612 ac_prog_rejected=no 12613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12614for as_dir in $PATH 12615do 12616 IFS=$as_save_IFS 12617 test -z "$as_dir" && as_dir=. 12618 for ac_exec_ext in '' $ac_executable_extensions; do 12619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12620 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 12621 ac_prog_rejected=yes 12622 continue 12623 fi 12624 ac_cv_prog_CC="cc" 12625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12626 break 2 12627 fi 12628done 12629 done 12630IFS=$as_save_IFS 12631 12632if test $ac_prog_rejected = yes; then 12633 # We found a bogon in the path, so make sure we never use it. 12634 set dummy $ac_cv_prog_CC 12635 shift 12636 if test $# != 0; then 12637 # We chose a different compiler from the bogus one. 12638 # However, it has the same basename, so the bogon will be chosen 12639 # first if we set CC to just the basename; use the full file name. 12640 shift 12641 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 12642 fi 12643fi 12644fi 12645fi 12646CC=$ac_cv_prog_CC 12647if test -n "$CC"; then 12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12649$as_echo "$CC" >&6; } 12650else 12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12652$as_echo "no" >&6; } 12653fi 12654 12655 12656fi 12657if test -z "$CC"; then 12658 if test -n "$ac_tool_prefix"; then 12659 for ac_prog in cl.exe 12660 do 12661 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12662set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12664$as_echo_n "checking for $ac_word... " >&6; } 12665if ${ac_cv_prog_CC+:} false; then : 12666 $as_echo_n "(cached) " >&6 12667else 12668 if test -n "$CC"; then 12669 ac_cv_prog_CC="$CC" # Let the user override the test. 12670else 12671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12672for as_dir in $PATH 12673do 12674 IFS=$as_save_IFS 12675 test -z "$as_dir" && as_dir=. 12676 for ac_exec_ext in '' $ac_executable_extensions; do 12677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12678 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 12679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12680 break 2 12681 fi 12682done 12683 done 12684IFS=$as_save_IFS 12685 12686fi 12687fi 12688CC=$ac_cv_prog_CC 12689if test -n "$CC"; then 12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12691$as_echo "$CC" >&6; } 12692else 12693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12694$as_echo "no" >&6; } 12695fi 12696 12697 12698 test -n "$CC" && break 12699 done 12700fi 12701if test -z "$CC"; then 12702 ac_ct_CC=$CC 12703 for ac_prog in cl.exe 12704do 12705 # Extract the first word of "$ac_prog", so it can be a program name with args. 12706set dummy $ac_prog; ac_word=$2 12707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12708$as_echo_n "checking for $ac_word... " >&6; } 12709if ${ac_cv_prog_ac_ct_CC+:} false; then : 12710 $as_echo_n "(cached) " >&6 12711else 12712 if test -n "$ac_ct_CC"; then 12713 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12714else 12715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12716for as_dir in $PATH 12717do 12718 IFS=$as_save_IFS 12719 test -z "$as_dir" && as_dir=. 12720 for ac_exec_ext in '' $ac_executable_extensions; do 12721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12722 ac_cv_prog_ac_ct_CC="$ac_prog" 12723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12724 break 2 12725 fi 12726done 12727 done 12728IFS=$as_save_IFS 12729 12730fi 12731fi 12732ac_ct_CC=$ac_cv_prog_ac_ct_CC 12733if test -n "$ac_ct_CC"; then 12734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12735$as_echo "$ac_ct_CC" >&6; } 12736else 12737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12738$as_echo "no" >&6; } 12739fi 12740 12741 12742 test -n "$ac_ct_CC" && break 12743done 12744 12745 if test "x$ac_ct_CC" = x; then 12746 CC="" 12747 else 12748 case $cross_compiling:$ac_tool_warned in 12749yes:) 12750{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12751$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12752ac_tool_warned=yes ;; 12753esac 12754 CC=$ac_ct_CC 12755 fi 12756fi 12757 12758fi 12759 12760 12761test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12762$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12763as_fn_error $? "no acceptable C compiler found in \$PATH 12764See \`config.log' for more details" "$LINENO" 5; } 12765 12766# Provide some information about the compiler. 12767$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 12768set X $ac_compile 12769ac_compiler=$2 12770for ac_option in --version -v -V -qversion; do 12771 { { ac_try="$ac_compiler $ac_option >&5" 12772case "(($ac_try" in 12773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12774 *) ac_try_echo=$ac_try;; 12775esac 12776eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12777$as_echo "$ac_try_echo"; } >&5 12778 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 12779 ac_status=$? 12780 if test -s conftest.err; then 12781 sed '10a\ 12782... rest of stderr output deleted ... 12783 10q' conftest.err >conftest.er1 12784 cat conftest.er1 >&5 12785 fi 12786 rm -f conftest.er1 conftest.err 12787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12788 test $ac_status = 0; } 12789done 12790 12791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 12792$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 12793if ${ac_cv_c_compiler_gnu+:} false; then : 12794 $as_echo_n "(cached) " >&6 12795else 12796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12797/* end confdefs.h. */ 12798 12799int 12800main () 12801{ 12802#ifndef __GNUC__ 12803 choke me 12804#endif 12805 12806 ; 12807 return 0; 12808} 12809_ACEOF 12810if ac_fn_c_try_compile "$LINENO"; then : 12811 ac_compiler_gnu=yes 12812else 12813 ac_compiler_gnu=no 12814fi 12815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12816ac_cv_c_compiler_gnu=$ac_compiler_gnu 12817 12818fi 12819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 12820$as_echo "$ac_cv_c_compiler_gnu" >&6; } 12821if test $ac_compiler_gnu = yes; then 12822 GCC=yes 12823else 12824 GCC= 12825fi 12826ac_test_CFLAGS=${CFLAGS+set} 12827ac_save_CFLAGS=$CFLAGS 12828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 12829$as_echo_n "checking whether $CC accepts -g... " >&6; } 12830if ${ac_cv_prog_cc_g+:} false; then : 12831 $as_echo_n "(cached) " >&6 12832else 12833 ac_save_c_werror_flag=$ac_c_werror_flag 12834 ac_c_werror_flag=yes 12835 ac_cv_prog_cc_g=no 12836 CFLAGS="-g" 12837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12838/* end confdefs.h. */ 12839 12840int 12841main () 12842{ 12843 12844 ; 12845 return 0; 12846} 12847_ACEOF 12848if ac_fn_c_try_compile "$LINENO"; then : 12849 ac_cv_prog_cc_g=yes 12850else 12851 CFLAGS="" 12852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12853/* end confdefs.h. */ 12854 12855int 12856main () 12857{ 12858 12859 ; 12860 return 0; 12861} 12862_ACEOF 12863if ac_fn_c_try_compile "$LINENO"; then : 12864 12865else 12866 ac_c_werror_flag=$ac_save_c_werror_flag 12867 CFLAGS="-g" 12868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12869/* end confdefs.h. */ 12870 12871int 12872main () 12873{ 12874 12875 ; 12876 return 0; 12877} 12878_ACEOF 12879if ac_fn_c_try_compile "$LINENO"; then : 12880 ac_cv_prog_cc_g=yes 12881fi 12882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12883fi 12884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12885fi 12886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12887 ac_c_werror_flag=$ac_save_c_werror_flag 12888fi 12889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 12890$as_echo "$ac_cv_prog_cc_g" >&6; } 12891if test "$ac_test_CFLAGS" = set; then 12892 CFLAGS=$ac_save_CFLAGS 12893elif test $ac_cv_prog_cc_g = yes; then 12894 if test "$GCC" = yes; then 12895 CFLAGS="-g -O2" 12896 else 12897 CFLAGS="-g" 12898 fi 12899else 12900 if test "$GCC" = yes; then 12901 CFLAGS="-O2" 12902 else 12903 CFLAGS= 12904 fi 12905fi 12906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 12907$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 12908if ${ac_cv_prog_cc_c89+:} false; then : 12909 $as_echo_n "(cached) " >&6 12910else 12911 ac_cv_prog_cc_c89=no 12912ac_save_CC=$CC 12913cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12914/* end confdefs.h. */ 12915#include <stdarg.h> 12916#include <stdio.h> 12917struct stat; 12918/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 12919struct buf { int x; }; 12920FILE * (*rcsopen) (struct buf *, struct stat *, int); 12921static char *e (p, i) 12922 char **p; 12923 int i; 12924{ 12925 return p[i]; 12926} 12927static char *f (char * (*g) (char **, int), char **p, ...) 12928{ 12929 char *s; 12930 va_list v; 12931 va_start (v,p); 12932 s = g (p, va_arg (v,int)); 12933 va_end (v); 12934 return s; 12935} 12936 12937/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 12938 function prototypes and stuff, but not '\xHH' hex character constants. 12939 These don't provoke an error unfortunately, instead are silently treated 12940 as 'x'. The following induces an error, until -std is added to get 12941 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 12942 array size at least. It's necessary to write '\x00'==0 to get something 12943 that's true only with -std. */ 12944int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 12945 12946/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 12947 inside strings and character constants. */ 12948#define FOO(x) 'x' 12949int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 12950 12951int test (int i, double x); 12952struct s1 {int (*f) (int a);}; 12953struct s2 {int (*f) (double a);}; 12954int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 12955int argc; 12956char **argv; 12957int 12958main () 12959{ 12960return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 12961 ; 12962 return 0; 12963} 12964_ACEOF 12965for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 12966 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 12967do 12968 CC="$ac_save_CC $ac_arg" 12969 if ac_fn_c_try_compile "$LINENO"; then : 12970 ac_cv_prog_cc_c89=$ac_arg 12971fi 12972rm -f core conftest.err conftest.$ac_objext 12973 test "x$ac_cv_prog_cc_c89" != "xno" && break 12974done 12975rm -f conftest.$ac_ext 12976CC=$ac_save_CC 12977 12978fi 12979# AC_CACHE_VAL 12980case "x$ac_cv_prog_cc_c89" in 12981 x) 12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12983$as_echo "none needed" >&6; } ;; 12984 xno) 12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12986$as_echo "unsupported" >&6; } ;; 12987 *) 12988 CC="$CC $ac_cv_prog_cc_c89" 12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 12990$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 12991esac 12992if test "x$ac_cv_prog_cc_c89" != xno; then : 12993 12994fi 12995 12996ac_ext=c 12997ac_cpp='$CPP $CPPFLAGS' 12998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13000ac_compiler_gnu=$ac_cv_c_compiler_gnu 13001 13002depcc="$CC" am_compiler_list= 13003 13004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 13005$as_echo_n "checking dependency style of $depcc... " >&6; } 13006if ${am_cv_CC_dependencies_compiler_type+:} false; then : 13007 $as_echo_n "(cached) " >&6 13008else 13009 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 13010 # We make a subdir and do the tests there. Otherwise we can end up 13011 # making bogus files that we don't know about and never remove. For 13012 # instance it was reported that on HP-UX the gcc test will end up 13013 # making a dummy file named `D' -- because `-MD' means `put the output 13014 # in D'. 13015 rm -rf conftest.dir 13016 mkdir conftest.dir 13017 # Copy depcomp to subdir because otherwise we won't find it if we're 13018 # using a relative directory. 13019 cp "$am_depcomp" conftest.dir 13020 cd conftest.dir 13021 # We will build objects and dependencies in a subdirectory because 13022 # it helps to detect inapplicable dependency modes. For instance 13023 # both Tru64's cc and ICC support -MD to output dependencies as a 13024 # side effect of compilation, but ICC will put the dependencies in 13025 # the current directory while Tru64 will put them in the object 13026 # directory. 13027 mkdir sub 13028 13029 am_cv_CC_dependencies_compiler_type=none 13030 if test "$am_compiler_list" = ""; then 13031 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 13032 fi 13033 am__universal=false 13034 case " $depcc " in #( 13035 *\ -arch\ *\ -arch\ *) am__universal=true ;; 13036 esac 13037 13038 for depmode in $am_compiler_list; do 13039 # Setup a source with many dependencies, because some compilers 13040 # like to wrap large dependency lists on column 80 (with \), and 13041 # we should not choose a depcomp mode which is confused by this. 13042 # 13043 # We need to recreate these files for each test, as the compiler may 13044 # overwrite some of them when testing with obscure command lines. 13045 # This happens at least with the AIX C compiler. 13046 : > sub/conftest.c 13047 for i in 1 2 3 4 5 6; do 13048 echo '#include "conftst'$i'.h"' >> sub/conftest.c 13049 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 13050 # Solaris 8's {/usr,}/bin/sh. 13051 touch sub/conftst$i.h 13052 done 13053 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 13054 13055 # We check with `-c' and `-o' for the sake of the "dashmstdout" 13056 # mode. It turns out that the SunPro C++ compiler does not properly 13057 # handle `-M -o', and we need to detect this. Also, some Intel 13058 # versions had trouble with output in subdirs 13059 am__obj=sub/conftest.${OBJEXT-o} 13060 am__minus_obj="-o $am__obj" 13061 case $depmode in 13062 gcc) 13063 # This depmode causes a compiler race in universal mode. 13064 test "$am__universal" = false || continue 13065 ;; 13066 nosideeffect) 13067 # after this tag, mechanisms are not by side-effect, so they'll 13068 # only be used when explicitly requested 13069 if test "x$enable_dependency_tracking" = xyes; then 13070 continue 13071 else 13072 break 13073 fi 13074 ;; 13075 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 13076 # This compiler won't grok `-c -o', but also, the minuso test has 13077 # not run yet. These depmodes are late enough in the game, and 13078 # so weak that their functioning should not be impacted. 13079 am__obj=conftest.${OBJEXT-o} 13080 am__minus_obj= 13081 ;; 13082 none) break ;; 13083 esac 13084 if depmode=$depmode \ 13085 source=sub/conftest.c object=$am__obj \ 13086 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 13087 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 13088 >/dev/null 2>conftest.err && 13089 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 13090 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 13091 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 13092 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 13093 # icc doesn't choke on unknown options, it will just issue warnings 13094 # or remarks (even with -Werror). So we grep stderr for any message 13095 # that says an option was ignored or not supported. 13096 # When given -MP, icc 7.0 and 7.1 complain thusly: 13097 # icc: Command line warning: ignoring option '-M'; no argument required 13098 # The diagnosis changed in icc 8.0: 13099 # icc: Command line remark: option '-MP' not supported 13100 if (grep 'ignoring option' conftest.err || 13101 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 13102 am_cv_CC_dependencies_compiler_type=$depmode 13103 break 13104 fi 13105 fi 13106 done 13107 13108 cd .. 13109 rm -rf conftest.dir 13110else 13111 am_cv_CC_dependencies_compiler_type=none 13112fi 13113 13114fi 13115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 13116$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 13117CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 13118 13119 if 13120 test "x$enable_dependency_tracking" != xno \ 13121 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 13122 am__fastdepCC_TRUE= 13123 am__fastdepCC_FALSE='#' 13124else 13125 am__fastdepCC_TRUE='#' 13126 am__fastdepCC_FALSE= 13127fi 13128 13129 13130ac_ext=cpp 13131ac_cpp='$CXXCPP $CPPFLAGS' 13132ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13133ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13134ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13135if test -z "$CXX"; then 13136 if test -n "$CCC"; then 13137 CXX=$CCC 13138 else 13139 if test -n "$ac_tool_prefix"; then 13140 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 13141 do 13142 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 13143set dummy $ac_tool_prefix$ac_prog; ac_word=$2 13144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13145$as_echo_n "checking for $ac_word... " >&6; } 13146if ${ac_cv_prog_CXX+:} false; then : 13147 $as_echo_n "(cached) " >&6 13148else 13149 if test -n "$CXX"; then 13150 ac_cv_prog_CXX="$CXX" # Let the user override the test. 13151else 13152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13153for as_dir in $PATH 13154do 13155 IFS=$as_save_IFS 13156 test -z "$as_dir" && as_dir=. 13157 for ac_exec_ext in '' $ac_executable_extensions; do 13158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13159 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 13160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13161 break 2 13162 fi 13163done 13164 done 13165IFS=$as_save_IFS 13166 13167fi 13168fi 13169CXX=$ac_cv_prog_CXX 13170if test -n "$CXX"; then 13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 13172$as_echo "$CXX" >&6; } 13173else 13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13175$as_echo "no" >&6; } 13176fi 13177 13178 13179 test -n "$CXX" && break 13180 done 13181fi 13182if test -z "$CXX"; then 13183 ac_ct_CXX=$CXX 13184 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 13185do 13186 # Extract the first word of "$ac_prog", so it can be a program name with args. 13187set dummy $ac_prog; ac_word=$2 13188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13189$as_echo_n "checking for $ac_word... " >&6; } 13190if ${ac_cv_prog_ac_ct_CXX+:} false; then : 13191 $as_echo_n "(cached) " >&6 13192else 13193 if test -n "$ac_ct_CXX"; then 13194 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 13195else 13196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13197for as_dir in $PATH 13198do 13199 IFS=$as_save_IFS 13200 test -z "$as_dir" && as_dir=. 13201 for ac_exec_ext in '' $ac_executable_extensions; do 13202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13203 ac_cv_prog_ac_ct_CXX="$ac_prog" 13204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13205 break 2 13206 fi 13207done 13208 done 13209IFS=$as_save_IFS 13210 13211fi 13212fi 13213ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 13214if test -n "$ac_ct_CXX"; then 13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 13216$as_echo "$ac_ct_CXX" >&6; } 13217else 13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13219$as_echo "no" >&6; } 13220fi 13221 13222 13223 test -n "$ac_ct_CXX" && break 13224done 13225 13226 if test "x$ac_ct_CXX" = x; then 13227 CXX="g++" 13228 else 13229 case $cross_compiling:$ac_tool_warned in 13230yes:) 13231{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13232$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13233ac_tool_warned=yes ;; 13234esac 13235 CXX=$ac_ct_CXX 13236 fi 13237fi 13238 13239 fi 13240fi 13241# Provide some information about the compiler. 13242$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 13243set X $ac_compile 13244ac_compiler=$2 13245for ac_option in --version -v -V -qversion; do 13246 { { ac_try="$ac_compiler $ac_option >&5" 13247case "(($ac_try" in 13248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13249 *) ac_try_echo=$ac_try;; 13250esac 13251eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 13252$as_echo "$ac_try_echo"; } >&5 13253 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 13254 ac_status=$? 13255 if test -s conftest.err; then 13256 sed '10a\ 13257... rest of stderr output deleted ... 13258 10q' conftest.err >conftest.er1 13259 cat conftest.er1 >&5 13260 fi 13261 rm -f conftest.er1 conftest.err 13262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13263 test $ac_status = 0; } 13264done 13265 13266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 13267$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 13268if ${ac_cv_cxx_compiler_gnu+:} false; then : 13269 $as_echo_n "(cached) " >&6 13270else 13271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13272/* end confdefs.h. */ 13273 13274int 13275main () 13276{ 13277#ifndef __GNUC__ 13278 choke me 13279#endif 13280 13281 ; 13282 return 0; 13283} 13284_ACEOF 13285if ac_fn_cxx_try_compile "$LINENO"; then : 13286 ac_compiler_gnu=yes 13287else 13288 ac_compiler_gnu=no 13289fi 13290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13291ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 13292 13293fi 13294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 13295$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 13296if test $ac_compiler_gnu = yes; then 13297 GXX=yes 13298else 13299 GXX= 13300fi 13301ac_test_CXXFLAGS=${CXXFLAGS+set} 13302ac_save_CXXFLAGS=$CXXFLAGS 13303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 13304$as_echo_n "checking whether $CXX accepts -g... " >&6; } 13305if ${ac_cv_prog_cxx_g+:} false; then : 13306 $as_echo_n "(cached) " >&6 13307else 13308 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 13309 ac_cxx_werror_flag=yes 13310 ac_cv_prog_cxx_g=no 13311 CXXFLAGS="-g" 13312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13313/* end confdefs.h. */ 13314 13315int 13316main () 13317{ 13318 13319 ; 13320 return 0; 13321} 13322_ACEOF 13323if ac_fn_cxx_try_compile "$LINENO"; then : 13324 ac_cv_prog_cxx_g=yes 13325else 13326 CXXFLAGS="" 13327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13328/* end confdefs.h. */ 13329 13330int 13331main () 13332{ 13333 13334 ; 13335 return 0; 13336} 13337_ACEOF 13338if ac_fn_cxx_try_compile "$LINENO"; then : 13339 13340else 13341 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 13342 CXXFLAGS="-g" 13343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13344/* end confdefs.h. */ 13345 13346int 13347main () 13348{ 13349 13350 ; 13351 return 0; 13352} 13353_ACEOF 13354if ac_fn_cxx_try_compile "$LINENO"; then : 13355 ac_cv_prog_cxx_g=yes 13356fi 13357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13358fi 13359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13360fi 13361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13362 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 13363fi 13364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 13365$as_echo "$ac_cv_prog_cxx_g" >&6; } 13366if test "$ac_test_CXXFLAGS" = set; then 13367 CXXFLAGS=$ac_save_CXXFLAGS 13368elif test $ac_cv_prog_cxx_g = yes; then 13369 if test "$GXX" = yes; then 13370 CXXFLAGS="-g -O2" 13371 else 13372 CXXFLAGS="-g" 13373 fi 13374else 13375 if test "$GXX" = yes; then 13376 CXXFLAGS="-O2" 13377 else 13378 CXXFLAGS= 13379 fi 13380fi 13381ac_ext=c 13382ac_cpp='$CPP $CPPFLAGS' 13383ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13384ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13385ac_compiler_gnu=$ac_cv_c_compiler_gnu 13386 13387depcc="$CXX" am_compiler_list= 13388 13389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 13390$as_echo_n "checking dependency style of $depcc... " >&6; } 13391if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 13392 $as_echo_n "(cached) " >&6 13393else 13394 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 13395 # We make a subdir and do the tests there. Otherwise we can end up 13396 # making bogus files that we don't know about and never remove. For 13397 # instance it was reported that on HP-UX the gcc test will end up 13398 # making a dummy file named `D' -- because `-MD' means `put the output 13399 # in D'. 13400 rm -rf conftest.dir 13401 mkdir conftest.dir 13402 # Copy depcomp to subdir because otherwise we won't find it if we're 13403 # using a relative directory. 13404 cp "$am_depcomp" conftest.dir 13405 cd conftest.dir 13406 # We will build objects and dependencies in a subdirectory because 13407 # it helps to detect inapplicable dependency modes. For instance 13408 # both Tru64's cc and ICC support -MD to output dependencies as a 13409 # side effect of compilation, but ICC will put the dependencies in 13410 # the current directory while Tru64 will put them in the object 13411 # directory. 13412 mkdir sub 13413 13414 am_cv_CXX_dependencies_compiler_type=none 13415 if test "$am_compiler_list" = ""; then 13416 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 13417 fi 13418 am__universal=false 13419 case " $depcc " in #( 13420 *\ -arch\ *\ -arch\ *) am__universal=true ;; 13421 esac 13422 13423 for depmode in $am_compiler_list; do 13424 # Setup a source with many dependencies, because some compilers 13425 # like to wrap large dependency lists on column 80 (with \), and 13426 # we should not choose a depcomp mode which is confused by this. 13427 # 13428 # We need to recreate these files for each test, as the compiler may 13429 # overwrite some of them when testing with obscure command lines. 13430 # This happens at least with the AIX C compiler. 13431 : > sub/conftest.c 13432 for i in 1 2 3 4 5 6; do 13433 echo '#include "conftst'$i'.h"' >> sub/conftest.c 13434 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 13435 # Solaris 8's {/usr,}/bin/sh. 13436 touch sub/conftst$i.h 13437 done 13438 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 13439 13440 # We check with `-c' and `-o' for the sake of the "dashmstdout" 13441 # mode. It turns out that the SunPro C++ compiler does not properly 13442 # handle `-M -o', and we need to detect this. Also, some Intel 13443 # versions had trouble with output in subdirs 13444 am__obj=sub/conftest.${OBJEXT-o} 13445 am__minus_obj="-o $am__obj" 13446 case $depmode in 13447 gcc) 13448 # This depmode causes a compiler race in universal mode. 13449 test "$am__universal" = false || continue 13450 ;; 13451 nosideeffect) 13452 # after this tag, mechanisms are not by side-effect, so they'll 13453 # only be used when explicitly requested 13454 if test "x$enable_dependency_tracking" = xyes; then 13455 continue 13456 else 13457 break 13458 fi 13459 ;; 13460 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 13461 # This compiler won't grok `-c -o', but also, the minuso test has 13462 # not run yet. These depmodes are late enough in the game, and 13463 # so weak that their functioning should not be impacted. 13464 am__obj=conftest.${OBJEXT-o} 13465 am__minus_obj= 13466 ;; 13467 none) break ;; 13468 esac 13469 if depmode=$depmode \ 13470 source=sub/conftest.c object=$am__obj \ 13471 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 13472 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 13473 >/dev/null 2>conftest.err && 13474 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 13475 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 13476 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 13477 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 13478 # icc doesn't choke on unknown options, it will just issue warnings 13479 # or remarks (even with -Werror). So we grep stderr for any message 13480 # that says an option was ignored or not supported. 13481 # When given -MP, icc 7.0 and 7.1 complain thusly: 13482 # icc: Command line warning: ignoring option '-M'; no argument required 13483 # The diagnosis changed in icc 8.0: 13484 # icc: Command line remark: option '-MP' not supported 13485 if (grep 'ignoring option' conftest.err || 13486 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 13487 am_cv_CXX_dependencies_compiler_type=$depmode 13488 break 13489 fi 13490 fi 13491 done 13492 13493 cd .. 13494 rm -rf conftest.dir 13495else 13496 am_cv_CXX_dependencies_compiler_type=none 13497fi 13498 13499fi 13500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 13501$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 13502CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 13503 13504 if 13505 test "x$enable_dependency_tracking" != xno \ 13506 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 13507 am__fastdepCXX_TRUE= 13508 am__fastdepCXX_FALSE='#' 13509else 13510 am__fastdepCXX_TRUE='#' 13511 am__fastdepCXX_FALSE= 13512fi 13513 13514 13515 13516 13517func_stripname_cnf () 13518{ 13519 case ${2} in 13520 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 13521 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 13522 esac 13523} # func_stripname_cnf 13524 13525 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 13526 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 13527 (test "X$CXX" != "Xg++"))) ; then 13528 ac_ext=cpp 13529ac_cpp='$CXXCPP $CPPFLAGS' 13530ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13531ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13532ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 13534$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 13535if test -z "$CXXCPP"; then 13536 if ${ac_cv_prog_CXXCPP+:} false; then : 13537 $as_echo_n "(cached) " >&6 13538else 13539 # Double quotes because CXXCPP needs to be expanded 13540 for CXXCPP in "$CXX -E" "/lib/cpp" 13541 do 13542 ac_preproc_ok=false 13543for ac_cxx_preproc_warn_flag in '' yes 13544do 13545 # Use a header file that comes with gcc, so configuring glibc 13546 # with a fresh cross-compiler works. 13547 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13548 # <limits.h> exists even on freestanding compilers. 13549 # On the NeXT, cc -E runs the code through the compiler's parser, 13550 # not just through cpp. "Syntax error" is here to catch this case. 13551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13552/* end confdefs.h. */ 13553#ifdef __STDC__ 13554# include <limits.h> 13555#else 13556# include <assert.h> 13557#endif 13558 Syntax error 13559_ACEOF 13560if ac_fn_cxx_try_cpp "$LINENO"; then : 13561 13562else 13563 # Broken: fails on valid input. 13564continue 13565fi 13566rm -f conftest.err conftest.i conftest.$ac_ext 13567 13568 # OK, works on sane cases. Now check whether nonexistent headers 13569 # can be detected and how. 13570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13571/* end confdefs.h. */ 13572#include <ac_nonexistent.h> 13573_ACEOF 13574if ac_fn_cxx_try_cpp "$LINENO"; then : 13575 # Broken: success on invalid input. 13576continue 13577else 13578 # Passes both tests. 13579ac_preproc_ok=: 13580break 13581fi 13582rm -f conftest.err conftest.i conftest.$ac_ext 13583 13584done 13585# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13586rm -f conftest.i conftest.err conftest.$ac_ext 13587if $ac_preproc_ok; then : 13588 break 13589fi 13590 13591 done 13592 ac_cv_prog_CXXCPP=$CXXCPP 13593 13594fi 13595 CXXCPP=$ac_cv_prog_CXXCPP 13596else 13597 ac_cv_prog_CXXCPP=$CXXCPP 13598fi 13599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 13600$as_echo "$CXXCPP" >&6; } 13601ac_preproc_ok=false 13602for ac_cxx_preproc_warn_flag in '' yes 13603do 13604 # Use a header file that comes with gcc, so configuring glibc 13605 # with a fresh cross-compiler works. 13606 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13607 # <limits.h> exists even on freestanding compilers. 13608 # On the NeXT, cc -E runs the code through the compiler's parser, 13609 # not just through cpp. "Syntax error" is here to catch this case. 13610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13611/* end confdefs.h. */ 13612#ifdef __STDC__ 13613# include <limits.h> 13614#else 13615# include <assert.h> 13616#endif 13617 Syntax error 13618_ACEOF 13619if ac_fn_cxx_try_cpp "$LINENO"; then : 13620 13621else 13622 # Broken: fails on valid input. 13623continue 13624fi 13625rm -f conftest.err conftest.i conftest.$ac_ext 13626 13627 # OK, works on sane cases. Now check whether nonexistent headers 13628 # can be detected and how. 13629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13630/* end confdefs.h. */ 13631#include <ac_nonexistent.h> 13632_ACEOF 13633if ac_fn_cxx_try_cpp "$LINENO"; then : 13634 # Broken: success on invalid input. 13635continue 13636else 13637 # Passes both tests. 13638ac_preproc_ok=: 13639break 13640fi 13641rm -f conftest.err conftest.i conftest.$ac_ext 13642 13643done 13644# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13645rm -f conftest.i conftest.err conftest.$ac_ext 13646if $ac_preproc_ok; then : 13647 13648else 13649 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13650$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13651as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 13652See \`config.log' for more details" "$LINENO" 5; } 13653fi 13654 13655ac_ext=c 13656ac_cpp='$CPP $CPPFLAGS' 13657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13659ac_compiler_gnu=$ac_cv_c_compiler_gnu 13660 13661else 13662 _lt_caught_CXX_error=yes 13663fi 13664 13665ac_ext=cpp 13666ac_cpp='$CXXCPP $CPPFLAGS' 13667ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13668ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13669ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13670 13671archive_cmds_need_lc_CXX=no 13672allow_undefined_flag_CXX= 13673always_export_symbols_CXX=no 13674archive_expsym_cmds_CXX= 13675compiler_needs_object_CXX=no 13676export_dynamic_flag_spec_CXX= 13677hardcode_direct_CXX=no 13678hardcode_direct_absolute_CXX=no 13679hardcode_libdir_flag_spec_CXX= 13680hardcode_libdir_separator_CXX= 13681hardcode_minus_L_CXX=no 13682hardcode_shlibpath_var_CXX=unsupported 13683hardcode_automatic_CXX=no 13684inherit_rpath_CXX=no 13685module_cmds_CXX= 13686module_expsym_cmds_CXX= 13687link_all_deplibs_CXX=unknown 13688old_archive_cmds_CXX=$old_archive_cmds 13689reload_flag_CXX=$reload_flag 13690reload_cmds_CXX=$reload_cmds 13691no_undefined_flag_CXX= 13692whole_archive_flag_spec_CXX= 13693enable_shared_with_static_runtimes_CXX=no 13694 13695# Source file extension for C++ test sources. 13696ac_ext=cpp 13697 13698# Object file extension for compiled C++ test sources. 13699objext=o 13700objext_CXX=$objext 13701 13702# No sense in running all these tests if we already determined that 13703# the CXX compiler isn't working. Some variables (like enable_shared) 13704# are currently assumed to apply to all compilers on this platform, 13705# and will be corrupted by setting them based on a non-working compiler. 13706if test "$_lt_caught_CXX_error" != yes; then 13707 # Code to be used in simple compile tests 13708 lt_simple_compile_test_code="int some_variable = 0;" 13709 13710 # Code to be used in simple link tests 13711 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 13712 13713 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 13714 13715 13716 13717 13718 13719 13720# If no C compiler was specified, use CC. 13721LTCC=${LTCC-"$CC"} 13722 13723# If no C compiler flags were specified, use CFLAGS. 13724LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13725 13726# Allow CC to be a program name with arguments. 13727compiler=$CC 13728 13729 13730 # save warnings/boilerplate of simple test code 13731 ac_outfile=conftest.$ac_objext 13732echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13733eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13734_lt_compiler_boilerplate=`cat conftest.err` 13735$RM conftest* 13736 13737 ac_outfile=conftest.$ac_objext 13738echo "$lt_simple_link_test_code" >conftest.$ac_ext 13739eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13740_lt_linker_boilerplate=`cat conftest.err` 13741$RM -r conftest* 13742 13743 13744 # Allow CC to be a program name with arguments. 13745 lt_save_CC=$CC 13746 lt_save_CFLAGS=$CFLAGS 13747 lt_save_LD=$LD 13748 lt_save_GCC=$GCC 13749 GCC=$GXX 13750 lt_save_with_gnu_ld=$with_gnu_ld 13751 lt_save_path_LD=$lt_cv_path_LD 13752 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 13753 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 13754 else 13755 $as_unset lt_cv_prog_gnu_ld 13756 fi 13757 if test -n "${lt_cv_path_LDCXX+set}"; then 13758 lt_cv_path_LD=$lt_cv_path_LDCXX 13759 else 13760 $as_unset lt_cv_path_LD 13761 fi 13762 test -z "${LDCXX+set}" || LD=$LDCXX 13763 CC=${CXX-"c++"} 13764 CFLAGS=$CXXFLAGS 13765 compiler=$CC 13766 compiler_CXX=$CC 13767 for cc_temp in $compiler""; do 13768 case $cc_temp in 13769 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13770 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13771 \-*) ;; 13772 *) break;; 13773 esac 13774done 13775cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 13776 13777 13778 if test -n "$compiler"; then 13779 # We don't want -fno-exception when compiling C++ code, so set the 13780 # no_builtin_flag separately 13781 if test "$GXX" = yes; then 13782 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 13783 else 13784 lt_prog_compiler_no_builtin_flag_CXX= 13785 fi 13786 13787 if test "$GXX" = yes; then 13788 # Set up default GNU C++ configuration 13789 13790 13791 13792# Check whether --with-gnu-ld was given. 13793if test "${with_gnu_ld+set}" = set; then : 13794 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 13795else 13796 with_gnu_ld=no 13797fi 13798 13799ac_prog=ld 13800if test "$GCC" = yes; then 13801 # Check if gcc -print-prog-name=ld gives a path. 13802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 13803$as_echo_n "checking for ld used by $CC... " >&6; } 13804 case $host in 13805 *-*-mingw*) 13806 # gcc leaves a trailing carriage return which upsets mingw 13807 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13808 *) 13809 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13810 esac 13811 case $ac_prog in 13812 # Accept absolute paths. 13813 [\\/]* | ?:[\\/]*) 13814 re_direlt='/[^/][^/]*/\.\./' 13815 # Canonicalize the pathname of ld 13816 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 13817 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 13818 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 13819 done 13820 test -z "$LD" && LD="$ac_prog" 13821 ;; 13822 "") 13823 # If it fails, then pretend we aren't using GCC. 13824 ac_prog=ld 13825 ;; 13826 *) 13827 # If it is relative, then search for the first ld in PATH. 13828 with_gnu_ld=unknown 13829 ;; 13830 esac 13831elif test "$with_gnu_ld" = yes; then 13832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 13833$as_echo_n "checking for GNU ld... " >&6; } 13834else 13835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13836$as_echo_n "checking for non-GNU ld... " >&6; } 13837fi 13838if ${lt_cv_path_LD+:} false; then : 13839 $as_echo_n "(cached) " >&6 13840else 13841 if test -z "$LD"; then 13842 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 13843 for ac_dir in $PATH; do 13844 IFS="$lt_save_ifs" 13845 test -z "$ac_dir" && ac_dir=. 13846 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13847 lt_cv_path_LD="$ac_dir/$ac_prog" 13848 # Check to see if the program is GNU ld. I'd rather use --version, 13849 # but apparently some variants of GNU ld only accept -v. 13850 # Break only if it was the GNU/non-GNU ld that we prefer. 13851 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 13852 *GNU* | *'with BFD'*) 13853 test "$with_gnu_ld" != no && break 13854 ;; 13855 *) 13856 test "$with_gnu_ld" != yes && break 13857 ;; 13858 esac 13859 fi 13860 done 13861 IFS="$lt_save_ifs" 13862else 13863 lt_cv_path_LD="$LD" # Let the user override the test with a path. 13864fi 13865fi 13866 13867LD="$lt_cv_path_LD" 13868if test -n "$LD"; then 13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13870$as_echo "$LD" >&6; } 13871else 13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13873$as_echo "no" >&6; } 13874fi 13875test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 13876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13877$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13878if ${lt_cv_prog_gnu_ld+:} false; then : 13879 $as_echo_n "(cached) " >&6 13880else 13881 # I'd rather use --version here, but apparently some GNU lds only accept -v. 13882case `$LD -v 2>&1 </dev/null` in 13883*GNU* | *'with BFD'*) 13884 lt_cv_prog_gnu_ld=yes 13885 ;; 13886*) 13887 lt_cv_prog_gnu_ld=no 13888 ;; 13889esac 13890fi 13891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 13892$as_echo "$lt_cv_prog_gnu_ld" >&6; } 13893with_gnu_ld=$lt_cv_prog_gnu_ld 13894 13895 13896 13897 13898 13899 13900 13901 # Check if GNU C++ uses GNU ld as the underlying linker, since the 13902 # archiving commands below assume that GNU ld is being used. 13903 if test "$with_gnu_ld" = yes; then 13904 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13905 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13906 13907 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13908 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13909 13910 # If archive_cmds runs LD, not CC, wlarc should be empty 13911 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 13912 # investigate it a little bit more. (MM) 13913 wlarc='${wl}' 13914 13915 # ancient GNU ld didn't support --whole-archive et. al. 13916 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 13917 $GREP 'no-whole-archive' > /dev/null; then 13918 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13919 else 13920 whole_archive_flag_spec_CXX= 13921 fi 13922 else 13923 with_gnu_ld=no 13924 wlarc= 13925 13926 # A generic and very simple default shared library creation 13927 # command for GNU C++ for the case where it uses the native 13928 # linker, instead of GNU ld. If possible, this setting should 13929 # overridden to take advantage of the native linker features on 13930 # the platform it is being used on. 13931 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13932 fi 13933 13934 # Commands to make compiler produce verbose output that lists 13935 # what "hidden" libraries, object files and flags are used when 13936 # linking a shared library. 13937 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13938 13939 else 13940 GXX=no 13941 with_gnu_ld=no 13942 wlarc= 13943 fi 13944 13945 # PORTME: fill in a description of your system's C++ link characteristics 13946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13947$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13948 ld_shlibs_CXX=yes 13949 case $host_os in 13950 aix3*) 13951 # FIXME: insert proper C++ library support 13952 ld_shlibs_CXX=no 13953 ;; 13954 aix[4-9]*) 13955 if test "$host_cpu" = ia64; then 13956 # On IA64, the linker does run time linking by default, so we don't 13957 # have to do anything special. 13958 aix_use_runtimelinking=no 13959 exp_sym_flag='-Bexport' 13960 no_entry_flag="" 13961 else 13962 aix_use_runtimelinking=no 13963 13964 # Test if we are trying to use run time linking or normal 13965 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13966 # need to do runtime linking. 13967 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 13968 for ld_flag in $LDFLAGS; do 13969 case $ld_flag in 13970 *-brtl*) 13971 aix_use_runtimelinking=yes 13972 break 13973 ;; 13974 esac 13975 done 13976 ;; 13977 esac 13978 13979 exp_sym_flag='-bexport' 13980 no_entry_flag='-bnoentry' 13981 fi 13982 13983 # When large executables or shared objects are built, AIX ld can 13984 # have problems creating the table of contents. If linking a library 13985 # or program results in "error TOC overflow" add -mminimal-toc to 13986 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13987 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13988 13989 archive_cmds_CXX='' 13990 hardcode_direct_CXX=yes 13991 hardcode_direct_absolute_CXX=yes 13992 hardcode_libdir_separator_CXX=':' 13993 link_all_deplibs_CXX=yes 13994 file_list_spec_CXX='${wl}-f,' 13995 13996 if test "$GXX" = yes; then 13997 case $host_os in aix4.[012]|aix4.[012].*) 13998 # We only want to do this on AIX 4.2 and lower, the check 13999 # below for broken collect2 doesn't work under 4.3+ 14000 collect2name=`${CC} -print-prog-name=collect2` 14001 if test -f "$collect2name" && 14002 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 14003 then 14004 # We have reworked collect2 14005 : 14006 else 14007 # We have old collect2 14008 hardcode_direct_CXX=unsupported 14009 # It fails to find uninstalled libraries when the uninstalled 14010 # path is not listed in the libpath. Setting hardcode_minus_L 14011 # to unsupported forces relinking 14012 hardcode_minus_L_CXX=yes 14013 hardcode_libdir_flag_spec_CXX='-L$libdir' 14014 hardcode_libdir_separator_CXX= 14015 fi 14016 esac 14017 shared_flag='-shared' 14018 if test "$aix_use_runtimelinking" = yes; then 14019 shared_flag="$shared_flag "'${wl}-G' 14020 fi 14021 else 14022 # not using gcc 14023 if test "$host_cpu" = ia64; then 14024 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14025 # chokes on -Wl,-G. The following line is correct: 14026 shared_flag='-G' 14027 else 14028 if test "$aix_use_runtimelinking" = yes; then 14029 shared_flag='${wl}-G' 14030 else 14031 shared_flag='${wl}-bM:SRE' 14032 fi 14033 fi 14034 fi 14035 14036 export_dynamic_flag_spec_CXX='${wl}-bexpall' 14037 # It seems that -bexpall does not export symbols beginning with 14038 # underscore (_), so it is better to generate a list of symbols to 14039 # export. 14040 always_export_symbols_CXX=yes 14041 if test "$aix_use_runtimelinking" = yes; then 14042 # Warning - without using the other runtime loading flags (-brtl), 14043 # -berok will link without error, but may produce a broken library. 14044 allow_undefined_flag_CXX='-berok' 14045 # Determine the default libpath from the value encoded in an empty 14046 # executable. 14047 if test "${lt_cv_aix_libpath+set}" = set; then 14048 aix_libpath=$lt_cv_aix_libpath 14049else 14050 if ${lt_cv_aix_libpath__CXX+:} false; then : 14051 $as_echo_n "(cached) " >&6 14052else 14053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14054/* end confdefs.h. */ 14055 14056int 14057main () 14058{ 14059 14060 ; 14061 return 0; 14062} 14063_ACEOF 14064if ac_fn_cxx_try_link "$LINENO"; then : 14065 14066 lt_aix_libpath_sed=' 14067 /Import File Strings/,/^$/ { 14068 /^0/ { 14069 s/^0 *\([^ ]*\) *$/\1/ 14070 p 14071 } 14072 }' 14073 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14074 # Check for a 64-bit object if we didn't find anything. 14075 if test -z "$lt_cv_aix_libpath__CXX"; then 14076 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14077 fi 14078fi 14079rm -f core conftest.err conftest.$ac_objext \ 14080 conftest$ac_exeext conftest.$ac_ext 14081 if test -z "$lt_cv_aix_libpath__CXX"; then 14082 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 14083 fi 14084 14085fi 14086 14087 aix_libpath=$lt_cv_aix_libpath__CXX 14088fi 14089 14090 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 14091 14092 archive_expsym_cmds_CXX='$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" 14093 else 14094 if test "$host_cpu" = ia64; then 14095 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 14096 allow_undefined_flag_CXX="-z nodefs" 14097 archive_expsym_cmds_CXX="\$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" 14098 else 14099 # Determine the default libpath from the value encoded in an 14100 # empty executable. 14101 if test "${lt_cv_aix_libpath+set}" = set; then 14102 aix_libpath=$lt_cv_aix_libpath 14103else 14104 if ${lt_cv_aix_libpath__CXX+:} false; then : 14105 $as_echo_n "(cached) " >&6 14106else 14107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14108/* end confdefs.h. */ 14109 14110int 14111main () 14112{ 14113 14114 ; 14115 return 0; 14116} 14117_ACEOF 14118if ac_fn_cxx_try_link "$LINENO"; then : 14119 14120 lt_aix_libpath_sed=' 14121 /Import File Strings/,/^$/ { 14122 /^0/ { 14123 s/^0 *\([^ ]*\) *$/\1/ 14124 p 14125 } 14126 }' 14127 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14128 # Check for a 64-bit object if we didn't find anything. 14129 if test -z "$lt_cv_aix_libpath__CXX"; then 14130 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14131 fi 14132fi 14133rm -f core conftest.err conftest.$ac_objext \ 14134 conftest$ac_exeext conftest.$ac_ext 14135 if test -z "$lt_cv_aix_libpath__CXX"; then 14136 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 14137 fi 14138 14139fi 14140 14141 aix_libpath=$lt_cv_aix_libpath__CXX 14142fi 14143 14144 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 14145 # Warning - without using the other run time loading flags, 14146 # -berok will link without error, but may produce a broken library. 14147 no_undefined_flag_CXX=' ${wl}-bernotok' 14148 allow_undefined_flag_CXX=' ${wl}-berok' 14149 if test "$with_gnu_ld" = yes; then 14150 # We only use this code for GNU lds that support --whole-archive. 14151 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 14152 else 14153 # Exported symbols can be pulled into shared objects from archives 14154 whole_archive_flag_spec_CXX='$convenience' 14155 fi 14156 archive_cmds_need_lc_CXX=yes 14157 # This is similar to how AIX traditionally builds its shared 14158 # libraries. 14159 archive_expsym_cmds_CXX="\$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' 14160 fi 14161 fi 14162 ;; 14163 14164 beos*) 14165 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14166 allow_undefined_flag_CXX=unsupported 14167 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14168 # support --undefined. This deserves some investigation. FIXME 14169 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14170 else 14171 ld_shlibs_CXX=no 14172 fi 14173 ;; 14174 14175 chorus*) 14176 case $cc_basename in 14177 *) 14178 # FIXME: insert proper C++ library support 14179 ld_shlibs_CXX=no 14180 ;; 14181 esac 14182 ;; 14183 14184 cygwin* | mingw* | pw32* | cegcc*) 14185 case $GXX,$cc_basename in 14186 ,cl* | no,cl*) 14187 # Native MSVC 14188 # hardcode_libdir_flag_spec is actually meaningless, as there is 14189 # no search path for DLLs. 14190 hardcode_libdir_flag_spec_CXX=' ' 14191 allow_undefined_flag_CXX=unsupported 14192 always_export_symbols_CXX=yes 14193 file_list_spec_CXX='@' 14194 # Tell ltmain to make .lib files, not .a files. 14195 libext=lib 14196 # Tell ltmain to make .dll files, not .so files. 14197 shrext_cmds=".dll" 14198 # FIXME: Setting linknames here is a bad hack. 14199 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 14200 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14201 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 14202 else 14203 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 14204 fi~ 14205 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 14206 linknames=' 14207 # The linker will not automatically build a static lib if we build a DLL. 14208 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 14209 enable_shared_with_static_runtimes_CXX=yes 14210 # Don't use ranlib 14211 old_postinstall_cmds_CXX='chmod 644 $oldlib' 14212 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 14213 lt_tool_outputfile="@TOOL_OUTPUT@"~ 14214 case $lt_outputfile in 14215 *.exe|*.EXE) ;; 14216 *) 14217 lt_outputfile="$lt_outputfile.exe" 14218 lt_tool_outputfile="$lt_tool_outputfile.exe" 14219 ;; 14220 esac~ 14221 func_to_tool_file "$lt_outputfile"~ 14222 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 14223 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 14224 $RM "$lt_outputfile.manifest"; 14225 fi' 14226 ;; 14227 *) 14228 # g++ 14229 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 14230 # as there is no search path for DLLs. 14231 hardcode_libdir_flag_spec_CXX='-L$libdir' 14232 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 14233 allow_undefined_flag_CXX=unsupported 14234 always_export_symbols_CXX=no 14235 enable_shared_with_static_runtimes_CXX=yes 14236 14237 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 14238 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14239 # If the export-symbols file already is a .def file (1st line 14240 # is EXPORTS), use it as is; otherwise, prepend... 14241 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14242 cp $export_symbols $output_objdir/$soname.def; 14243 else 14244 echo EXPORTS > $output_objdir/$soname.def; 14245 cat $export_symbols >> $output_objdir/$soname.def; 14246 fi~ 14247 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14248 else 14249 ld_shlibs_CXX=no 14250 fi 14251 ;; 14252 esac 14253 ;; 14254 darwin* | rhapsody*) 14255 14256 14257 archive_cmds_need_lc_CXX=no 14258 hardcode_direct_CXX=no 14259 hardcode_automatic_CXX=yes 14260 hardcode_shlibpath_var_CXX=unsupported 14261 if test "$lt_cv_ld_force_load" = "yes"; then 14262 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 14263 14264 else 14265 whole_archive_flag_spec_CXX='' 14266 fi 14267 link_all_deplibs_CXX=yes 14268 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 14269 case $cc_basename in 14270 ifort*) _lt_dar_can_shared=yes ;; 14271 *) _lt_dar_can_shared=$GCC ;; 14272 esac 14273 if test "$_lt_dar_can_shared" = "yes"; then 14274 output_verbose_link_cmd=func_echo_all 14275 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 14276 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 14277 archive_expsym_cmds_CXX="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}" 14278 module_expsym_cmds_CXX="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}" 14279 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 14280 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" 14281 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" 14282 fi 14283 14284 else 14285 ld_shlibs_CXX=no 14286 fi 14287 14288 ;; 14289 14290 dgux*) 14291 case $cc_basename in 14292 ec++*) 14293 # FIXME: insert proper C++ library support 14294 ld_shlibs_CXX=no 14295 ;; 14296 ghcx*) 14297 # Green Hills C++ Compiler 14298 # FIXME: insert proper C++ library support 14299 ld_shlibs_CXX=no 14300 ;; 14301 *) 14302 # FIXME: insert proper C++ library support 14303 ld_shlibs_CXX=no 14304 ;; 14305 esac 14306 ;; 14307 14308 freebsd2.*) 14309 # C++ shared libraries reported to be fairly broken before 14310 # switch to ELF 14311 ld_shlibs_CXX=no 14312 ;; 14313 14314 freebsd-elf*) 14315 archive_cmds_need_lc_CXX=no 14316 ;; 14317 14318 freebsd* | dragonfly*) 14319 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 14320 # conventions 14321 ld_shlibs_CXX=yes 14322 ;; 14323 14324 gnu*) 14325 ;; 14326 14327 haiku*) 14328 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14329 link_all_deplibs_CXX=yes 14330 ;; 14331 14332 hpux9*) 14333 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 14334 hardcode_libdir_separator_CXX=: 14335 export_dynamic_flag_spec_CXX='${wl}-E' 14336 hardcode_direct_CXX=yes 14337 hardcode_minus_L_CXX=yes # Not in the search PATH, 14338 # but as the default 14339 # location of the library. 14340 14341 case $cc_basename in 14342 CC*) 14343 # FIXME: insert proper C++ library support 14344 ld_shlibs_CXX=no 14345 ;; 14346 aCC*) 14347 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 14348 # Commands to make compiler produce verbose output that lists 14349 # what "hidden" libraries, object files and flags are used when 14350 # linking a shared library. 14351 # 14352 # There doesn't appear to be a way to prevent this compiler from 14353 # explicitly linking system object files so we need to strip them 14354 # from the output so that they don't get included in the library 14355 # dependencies. 14356 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 14357 ;; 14358 *) 14359 if test "$GXX" = yes; then 14360 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 14361 else 14362 # FIXME: insert proper C++ library support 14363 ld_shlibs_CXX=no 14364 fi 14365 ;; 14366 esac 14367 ;; 14368 14369 hpux10*|hpux11*) 14370 if test $with_gnu_ld = no; then 14371 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 14372 hardcode_libdir_separator_CXX=: 14373 14374 case $host_cpu in 14375 hppa*64*|ia64*) 14376 ;; 14377 *) 14378 export_dynamic_flag_spec_CXX='${wl}-E' 14379 ;; 14380 esac 14381 fi 14382 case $host_cpu in 14383 hppa*64*|ia64*) 14384 hardcode_direct_CXX=no 14385 hardcode_shlibpath_var_CXX=no 14386 ;; 14387 *) 14388 hardcode_direct_CXX=yes 14389 hardcode_direct_absolute_CXX=yes 14390 hardcode_minus_L_CXX=yes # Not in the search PATH, 14391 # but as the default 14392 # location of the library. 14393 ;; 14394 esac 14395 14396 case $cc_basename in 14397 CC*) 14398 # FIXME: insert proper C++ library support 14399 ld_shlibs_CXX=no 14400 ;; 14401 aCC*) 14402 case $host_cpu in 14403 hppa*64*) 14404 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14405 ;; 14406 ia64*) 14407 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14408 ;; 14409 *) 14410 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14411 ;; 14412 esac 14413 # Commands to make compiler produce verbose output that lists 14414 # what "hidden" libraries, object files and flags are used when 14415 # linking a shared library. 14416 # 14417 # There doesn't appear to be a way to prevent this compiler from 14418 # explicitly linking system object files so we need to strip them 14419 # from the output so that they don't get included in the library 14420 # dependencies. 14421 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 14422 ;; 14423 *) 14424 if test "$GXX" = yes; then 14425 if test $with_gnu_ld = no; then 14426 case $host_cpu in 14427 hppa*64*) 14428 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14429 ;; 14430 ia64*) 14431 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14432 ;; 14433 *) 14434 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14435 ;; 14436 esac 14437 fi 14438 else 14439 # FIXME: insert proper C++ library support 14440 ld_shlibs_CXX=no 14441 fi 14442 ;; 14443 esac 14444 ;; 14445 14446 interix[3-9]*) 14447 hardcode_direct_CXX=no 14448 hardcode_shlibpath_var_CXX=no 14449 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 14450 export_dynamic_flag_spec_CXX='${wl}-E' 14451 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14452 # Instead, shared libraries are loaded at an image base (0x10000000 by 14453 # default) and relocated if they conflict, which is a slow very memory 14454 # consuming and fragmenting process. To avoid this, we pick a random, 14455 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14456 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14457 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 14458 archive_expsym_cmds_CXX='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' 14459 ;; 14460 irix5* | irix6*) 14461 case $cc_basename in 14462 CC*) 14463 # SGI C++ 14464 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 14465 14466 # Archives containing C++ object files must be created using 14467 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 14468 # necessary to make sure instantiated templates are included 14469 # in the archive. 14470 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 14471 ;; 14472 *) 14473 if test "$GXX" = yes; then 14474 if test "$with_gnu_ld" = no; then 14475 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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' 14476 else 14477 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' 14478 fi 14479 fi 14480 link_all_deplibs_CXX=yes 14481 ;; 14482 esac 14483 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 14484 hardcode_libdir_separator_CXX=: 14485 inherit_rpath_CXX=yes 14486 ;; 14487 14488 linux* | k*bsd*-gnu | kopensolaris*-gnu) 14489 case $cc_basename in 14490 KCC*) 14491 # Kuck and Associates, Inc. (KAI) C++ Compiler 14492 14493 # KCC will only create a shared library if the output file 14494 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14495 # to its proper name (with version) after linking. 14496 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 14497 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' 14498 # Commands to make compiler produce verbose output that lists 14499 # what "hidden" libraries, object files and flags are used when 14500 # linking a shared library. 14501 # 14502 # There doesn't appear to be a way to prevent this compiler from 14503 # explicitly linking system object files so we need to strip them 14504 # from the output so that they don't get included in the library 14505 # dependencies. 14506 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 14507 14508 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 14509 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 14510 14511 # Archives containing C++ object files must be created using 14512 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 14513 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 14514 ;; 14515 icpc* | ecpc* ) 14516 # Intel C++ 14517 with_gnu_ld=yes 14518 # version 8.0 and above of icpc choke on multiply defined symbols 14519 # if we add $predep_objects and $postdep_objects, however 7.1 and 14520 # earlier do not add the objects themselves. 14521 case `$CC -V 2>&1` in 14522 *"Version 7."*) 14523 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 14524 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14525 ;; 14526 *) # Version 8.0 or newer 14527 tmp_idyn= 14528 case $host_cpu in 14529 ia64*) tmp_idyn=' -i_dynamic';; 14530 esac 14531 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14532 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14533 ;; 14534 esac 14535 archive_cmds_need_lc_CXX=no 14536 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 14537 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 14538 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 14539 ;; 14540 pgCC* | pgcpp*) 14541 # Portland Group C++ compiler 14542 case `$CC -V` in 14543 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 14544 prelink_cmds_CXX='tpldir=Template.dir~ 14545 rm -rf $tpldir~ 14546 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 14547 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 14548 old_archive_cmds_CXX='tpldir=Template.dir~ 14549 rm -rf $tpldir~ 14550 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 14551 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 14552 $RANLIB $oldlib' 14553 archive_cmds_CXX='tpldir=Template.dir~ 14554 rm -rf $tpldir~ 14555 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14556 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 14557 archive_expsym_cmds_CXX='tpldir=Template.dir~ 14558 rm -rf $tpldir~ 14559 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14560 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 14561 ;; 14562 *) # Version 6 and above use weak symbols 14563 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 14564 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 14565 ;; 14566 esac 14567 14568 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 14569 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 14570 whole_archive_flag_spec_CXX='${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' 14571 ;; 14572 cxx*) 14573 # Compaq C++ 14574 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 14575 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' 14576 14577 runpath_var=LD_RUN_PATH 14578 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14579 hardcode_libdir_separator_CXX=: 14580 14581 # Commands to make compiler produce verbose output that lists 14582 # what "hidden" libraries, object files and flags are used when 14583 # linking a shared library. 14584 # 14585 # There doesn't appear to be a way to prevent this compiler from 14586 # explicitly linking system object files so we need to strip them 14587 # from the output so that they don't get included in the library 14588 # dependencies. 14589 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' 14590 ;; 14591 xl* | mpixl* | bgxl*) 14592 # IBM XL 8.0 on PPC, with GNU ld 14593 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 14594 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 14595 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14596 if test "x$supports_anon_versioning" = xyes; then 14597 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 14598 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14599 echo "local: *; };" >> $output_objdir/$libname.ver~ 14600 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14601 fi 14602 ;; 14603 *) 14604 case `$CC -V 2>&1 | sed 5q` in 14605 *Sun\ C*) 14606 # Sun C++ 5.9 14607 no_undefined_flag_CXX=' -zdefs' 14608 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14609 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 14610 hardcode_libdir_flag_spec_CXX='-R$libdir' 14611 whole_archive_flag_spec_CXX='${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' 14612 compiler_needs_object_CXX=yes 14613 14614 # Not sure whether something based on 14615 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 14616 # would be better. 14617 output_verbose_link_cmd='func_echo_all' 14618 14619 # Archives containing C++ object files must be created using 14620 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14621 # necessary to make sure instantiated templates are included 14622 # in the archive. 14623 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14624 ;; 14625 esac 14626 ;; 14627 esac 14628 ;; 14629 14630 lynxos*) 14631 # FIXME: insert proper C++ library support 14632 ld_shlibs_CXX=no 14633 ;; 14634 14635 m88k*) 14636 # FIXME: insert proper C++ library support 14637 ld_shlibs_CXX=no 14638 ;; 14639 14640 mvs*) 14641 case $cc_basename in 14642 cxx*) 14643 # FIXME: insert proper C++ library support 14644 ld_shlibs_CXX=no 14645 ;; 14646 *) 14647 # FIXME: insert proper C++ library support 14648 ld_shlibs_CXX=no 14649 ;; 14650 esac 14651 ;; 14652 14653 netbsd*) 14654 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14655 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 14656 wlarc= 14657 hardcode_libdir_flag_spec_CXX='-R$libdir' 14658 hardcode_direct_CXX=yes 14659 hardcode_shlibpath_var_CXX=no 14660 fi 14661 # Workaround some broken pre-1.5 toolchains 14662 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 14663 ;; 14664 14665 *nto* | *qnx*) 14666 ld_shlibs_CXX=yes 14667 ;; 14668 14669 openbsd2*) 14670 # C++ shared libraries are fairly broken 14671 ld_shlibs_CXX=no 14672 ;; 14673 14674 openbsd*) 14675 if test -f /usr/libexec/ld.so; then 14676 hardcode_direct_CXX=yes 14677 hardcode_shlibpath_var_CXX=no 14678 hardcode_direct_absolute_CXX=yes 14679 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14680 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 14681 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14682 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 14683 export_dynamic_flag_spec_CXX='${wl}-E' 14684 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14685 fi 14686 output_verbose_link_cmd=func_echo_all 14687 else 14688 ld_shlibs_CXX=no 14689 fi 14690 ;; 14691 14692 osf3* | osf4* | osf5*) 14693 case $cc_basename in 14694 KCC*) 14695 # Kuck and Associates, Inc. (KAI) C++ Compiler 14696 14697 # KCC will only create a shared library if the output file 14698 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14699 # to its proper name (with version) after linking. 14700 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 14701 14702 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 14703 hardcode_libdir_separator_CXX=: 14704 14705 # Archives containing C++ object files must be created using 14706 # the KAI C++ compiler. 14707 case $host in 14708 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 14709 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 14710 esac 14711 ;; 14712 RCC*) 14713 # Rational C++ 2.4.1 14714 # FIXME: insert proper C++ library support 14715 ld_shlibs_CXX=no 14716 ;; 14717 cxx*) 14718 case $host in 14719 osf3*) 14720 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 14721 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 14722 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 14723 ;; 14724 *) 14725 allow_undefined_flag_CXX=' -expect_unresolved \*' 14726 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 14727 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 14728 echo "-hidden">> $lib.exp~ 14729 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ 14730 $RM $lib.exp' 14731 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14732 ;; 14733 esac 14734 14735 hardcode_libdir_separator_CXX=: 14736 14737 # Commands to make compiler produce verbose output that lists 14738 # what "hidden" libraries, object files and flags are used when 14739 # linking a shared library. 14740 # 14741 # There doesn't appear to be a way to prevent this compiler from 14742 # explicitly linking system object files so we need to strip them 14743 # from the output so that they don't get included in the library 14744 # dependencies. 14745 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 14746 ;; 14747 *) 14748 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 14749 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 14750 case $host in 14751 osf3*) 14752 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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' 14753 ;; 14754 *) 14755 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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' 14756 ;; 14757 esac 14758 14759 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 14760 hardcode_libdir_separator_CXX=: 14761 14762 # Commands to make compiler produce verbose output that lists 14763 # what "hidden" libraries, object files and flags are used when 14764 # linking a shared library. 14765 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14766 14767 else 14768 # FIXME: insert proper C++ library support 14769 ld_shlibs_CXX=no 14770 fi 14771 ;; 14772 esac 14773 ;; 14774 14775 psos*) 14776 # FIXME: insert proper C++ library support 14777 ld_shlibs_CXX=no 14778 ;; 14779 14780 sunos4*) 14781 case $cc_basename in 14782 CC*) 14783 # Sun C++ 4.x 14784 # FIXME: insert proper C++ library support 14785 ld_shlibs_CXX=no 14786 ;; 14787 lcc*) 14788 # Lucid 14789 # FIXME: insert proper C++ library support 14790 ld_shlibs_CXX=no 14791 ;; 14792 *) 14793 # FIXME: insert proper C++ library support 14794 ld_shlibs_CXX=no 14795 ;; 14796 esac 14797 ;; 14798 14799 solaris*) 14800 case $cc_basename in 14801 CC* | sunCC*) 14802 # Sun C++ 4.2, 5.x and Centerline C++ 14803 archive_cmds_need_lc_CXX=yes 14804 no_undefined_flag_CXX=' -zdefs' 14805 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14806 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14807 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 14808 14809 hardcode_libdir_flag_spec_CXX='-R$libdir' 14810 hardcode_shlibpath_var_CXX=no 14811 case $host_os in 14812 solaris2.[0-5] | solaris2.[0-5].*) ;; 14813 *) 14814 # The compiler driver will combine and reorder linker options, 14815 # but understands `-z linker_flag'. 14816 # Supported since Solaris 2.6 (maybe 2.5.1?) 14817 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 14818 ;; 14819 esac 14820 link_all_deplibs_CXX=yes 14821 14822 output_verbose_link_cmd='func_echo_all' 14823 14824 # Archives containing C++ object files must be created using 14825 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14826 # necessary to make sure instantiated templates are included 14827 # in the archive. 14828 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14829 ;; 14830 gcx*) 14831 # Green Hills C++ Compiler 14832 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 14833 14834 # The C++ compiler must be used to create the archive. 14835 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 14836 ;; 14837 *) 14838 # GNU C++ compiler with Solaris linker 14839 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 14840 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 14841 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 14842 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 14843 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14844 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 14845 14846 # Commands to make compiler produce verbose output that lists 14847 # what "hidden" libraries, object files and flags are used when 14848 # linking a shared library. 14849 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14850 else 14851 # g++ 2.7 appears to require `-G' NOT `-shared' on this 14852 # platform. 14853 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 14854 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14855 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 14856 14857 # Commands to make compiler produce verbose output that lists 14858 # what "hidden" libraries, object files and flags are used when 14859 # linking a shared library. 14860 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14861 fi 14862 14863 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 14864 case $host_os in 14865 solaris2.[0-5] | solaris2.[0-5].*) ;; 14866 *) 14867 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 14868 ;; 14869 esac 14870 fi 14871 ;; 14872 esac 14873 ;; 14874 14875 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 14876 no_undefined_flag_CXX='${wl}-z,text' 14877 archive_cmds_need_lc_CXX=no 14878 hardcode_shlibpath_var_CXX=no 14879 runpath_var='LD_RUN_PATH' 14880 14881 case $cc_basename in 14882 CC*) 14883 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14884 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14885 ;; 14886 *) 14887 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14888 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14889 ;; 14890 esac 14891 ;; 14892 14893 sysv5* | sco3.2v5* | sco5v6*) 14894 # Note: We can NOT use -z defs as we might desire, because we do not 14895 # link with -lc, and that would cause any symbols used from libc to 14896 # always be unresolved, which means just about no library would 14897 # ever link correctly. If we're not using GNU ld we use -z text 14898 # though, which does catch some bad symbols but isn't as heavy-handed 14899 # as -z defs. 14900 no_undefined_flag_CXX='${wl}-z,text' 14901 allow_undefined_flag_CXX='${wl}-z,nodefs' 14902 archive_cmds_need_lc_CXX=no 14903 hardcode_shlibpath_var_CXX=no 14904 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 14905 hardcode_libdir_separator_CXX=':' 14906 link_all_deplibs_CXX=yes 14907 export_dynamic_flag_spec_CXX='${wl}-Bexport' 14908 runpath_var='LD_RUN_PATH' 14909 14910 case $cc_basename in 14911 CC*) 14912 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14913 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14914 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 14915 '"$old_archive_cmds_CXX" 14916 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 14917 '"$reload_cmds_CXX" 14918 ;; 14919 *) 14920 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14921 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14922 ;; 14923 esac 14924 ;; 14925 14926 tandem*) 14927 case $cc_basename in 14928 NCC*) 14929 # NonStop-UX NCC 3.20 14930 # FIXME: insert proper C++ library support 14931 ld_shlibs_CXX=no 14932 ;; 14933 *) 14934 # FIXME: insert proper C++ library support 14935 ld_shlibs_CXX=no 14936 ;; 14937 esac 14938 ;; 14939 14940 vxworks*) 14941 # FIXME: insert proper C++ library support 14942 ld_shlibs_CXX=no 14943 ;; 14944 14945 *) 14946 # FIXME: insert proper C++ library support 14947 ld_shlibs_CXX=no 14948 ;; 14949 esac 14950 14951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14952$as_echo "$ld_shlibs_CXX" >&6; } 14953 test "$ld_shlibs_CXX" = no && can_build_shared=no 14954 14955 GCC_CXX="$GXX" 14956 LD_CXX="$LD" 14957 14958 ## CAVEAT EMPTOR: 14959 ## There is no encapsulation within the following macros, do not change 14960 ## the running order or otherwise move them around unless you know exactly 14961 ## what you are doing... 14962 # Dependencies to place before and after the object being linked: 14963predep_objects_CXX= 14964postdep_objects_CXX= 14965predeps_CXX= 14966postdeps_CXX= 14967compiler_lib_search_path_CXX= 14968 14969cat > conftest.$ac_ext <<_LT_EOF 14970class Foo 14971{ 14972public: 14973 Foo (void) { a = 0; } 14974private: 14975 int a; 14976}; 14977_LT_EOF 14978 14979 14980_lt_libdeps_save_CFLAGS=$CFLAGS 14981case "$CC $CFLAGS " in #( 14982*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 14983*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 14984*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 14985esac 14986 14987if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14988 (eval $ac_compile) 2>&5 14989 ac_status=$? 14990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14991 test $ac_status = 0; }; then 14992 # Parse the compiler output and extract the necessary 14993 # objects, libraries and library flags. 14994 14995 # Sentinel used to keep track of whether or not we are before 14996 # the conftest object file. 14997 pre_test_object_deps_done=no 14998 14999 for p in `eval "$output_verbose_link_cmd"`; do 15000 case ${prev}${p} in 15001 15002 -L* | -R* | -l*) 15003 # Some compilers place space between "-{L,R}" and the path. 15004 # Remove the space. 15005 if test $p = "-L" || 15006 test $p = "-R"; then 15007 prev=$p 15008 continue 15009 fi 15010 15011 # Expand the sysroot to ease extracting the directories later. 15012 if test -z "$prev"; then 15013 case $p in 15014 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 15015 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 15016 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 15017 esac 15018 fi 15019 case $p in 15020 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 15021 esac 15022 if test "$pre_test_object_deps_done" = no; then 15023 case ${prev} in 15024 -L | -R) 15025 # Internal compiler library paths should come after those 15026 # provided the user. The postdeps already come after the 15027 # user supplied libs so there is no need to process them. 15028 if test -z "$compiler_lib_search_path_CXX"; then 15029 compiler_lib_search_path_CXX="${prev}${p}" 15030 else 15031 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 15032 fi 15033 ;; 15034 # The "-l" case would never come before the object being 15035 # linked, so don't bother handling this case. 15036 esac 15037 else 15038 if test -z "$postdeps_CXX"; then 15039 postdeps_CXX="${prev}${p}" 15040 else 15041 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 15042 fi 15043 fi 15044 prev= 15045 ;; 15046 15047 *.lto.$objext) ;; # Ignore GCC LTO objects 15048 *.$objext) 15049 # This assumes that the test object file only shows up 15050 # once in the compiler output. 15051 if test "$p" = "conftest.$objext"; then 15052 pre_test_object_deps_done=yes 15053 continue 15054 fi 15055 15056 if test "$pre_test_object_deps_done" = no; then 15057 if test -z "$predep_objects_CXX"; then 15058 predep_objects_CXX="$p" 15059 else 15060 predep_objects_CXX="$predep_objects_CXX $p" 15061 fi 15062 else 15063 if test -z "$postdep_objects_CXX"; then 15064 postdep_objects_CXX="$p" 15065 else 15066 postdep_objects_CXX="$postdep_objects_CXX $p" 15067 fi 15068 fi 15069 ;; 15070 15071 *) ;; # Ignore the rest. 15072 15073 esac 15074 done 15075 15076 # Clean up. 15077 rm -f a.out a.exe 15078else 15079 echo "libtool.m4: error: problem compiling CXX test program" 15080fi 15081 15082$RM -f confest.$objext 15083CFLAGS=$_lt_libdeps_save_CFLAGS 15084 15085# PORTME: override above test on systems where it is broken 15086case $host_os in 15087interix[3-9]*) 15088 # Interix 3.5 installs completely hosed .la files for C++, so rather than 15089 # hack all around it, let's just trust "g++" to DTRT. 15090 predep_objects_CXX= 15091 postdep_objects_CXX= 15092 postdeps_CXX= 15093 ;; 15094 15095linux*) 15096 case `$CC -V 2>&1 | sed 5q` in 15097 *Sun\ C*) 15098 # Sun C++ 5.9 15099 15100 # The more standards-conforming stlport4 library is 15101 # incompatible with the Cstd library. Avoid specifying 15102 # it if it's in CXXFLAGS. Ignore libCrun as 15103 # -library=stlport4 depends on it. 15104 case " $CXX $CXXFLAGS " in 15105 *" -library=stlport4 "*) 15106 solaris_use_stlport4=yes 15107 ;; 15108 esac 15109 15110 if test "$solaris_use_stlport4" != yes; then 15111 postdeps_CXX='-library=Cstd -library=Crun' 15112 fi 15113 ;; 15114 esac 15115 ;; 15116 15117solaris*) 15118 case $cc_basename in 15119 CC* | sunCC*) 15120 # The more standards-conforming stlport4 library is 15121 # incompatible with the Cstd library. Avoid specifying 15122 # it if it's in CXXFLAGS. Ignore libCrun as 15123 # -library=stlport4 depends on it. 15124 case " $CXX $CXXFLAGS " in 15125 *" -library=stlport4 "*) 15126 solaris_use_stlport4=yes 15127 ;; 15128 esac 15129 15130 # Adding this requires a known-good setup of shared libraries for 15131 # Sun compiler versions before 5.6, else PIC objects from an old 15132 # archive will be linked into the output, leading to subtle bugs. 15133 if test "$solaris_use_stlport4" != yes; then 15134 postdeps_CXX='-library=Cstd -library=Crun' 15135 fi 15136 ;; 15137 esac 15138 ;; 15139esac 15140 15141 15142case " $postdeps_CXX " in 15143*" -lc "*) archive_cmds_need_lc_CXX=no ;; 15144esac 15145 compiler_lib_search_dirs_CXX= 15146if test -n "${compiler_lib_search_path_CXX}"; then 15147 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 15148fi 15149 15150 15151 15152 15153 15154 15155 15156 15157 15158 15159 15160 15161 15162 15163 15164 15165 15166 15167 15168 15169 15170 15171 15172 15173 15174 15175 15176 15177 15178 15179 15180 lt_prog_compiler_wl_CXX= 15181lt_prog_compiler_pic_CXX= 15182lt_prog_compiler_static_CXX= 15183 15184 15185 # C++ specific cases for pic, static, wl, etc. 15186 if test "$GXX" = yes; then 15187 lt_prog_compiler_wl_CXX='-Wl,' 15188 lt_prog_compiler_static_CXX='-static' 15189 15190 case $host_os in 15191 aix*) 15192 # All AIX code is PIC. 15193 if test "$host_cpu" = ia64; then 15194 # AIX 5 now supports IA64 processor 15195 lt_prog_compiler_static_CXX='-Bstatic' 15196 fi 15197 ;; 15198 15199 amigaos*) 15200 case $host_cpu in 15201 powerpc) 15202 # see comment about AmigaOS4 .so support 15203 lt_prog_compiler_pic_CXX='-fPIC' 15204 ;; 15205 m68k) 15206 # FIXME: we need at least 68020 code to build shared libraries, but 15207 # adding the `-m68020' flag to GCC prevents building anything better, 15208 # like `-m68040'. 15209 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 15210 ;; 15211 esac 15212 ;; 15213 15214 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15215 # PIC is the default for these OSes. 15216 ;; 15217 mingw* | cygwin* | os2* | pw32* | cegcc*) 15218 # This hack is so that the source file can tell whether it is being 15219 # built for inclusion in a dll (and should export symbols for example). 15220 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15221 # (--disable-auto-import) libraries 15222 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15223 ;; 15224 darwin* | rhapsody*) 15225 # PIC is the default on this platform 15226 # Common symbols not allowed in MH_DYLIB files 15227 lt_prog_compiler_pic_CXX='-fno-common' 15228 ;; 15229 *djgpp*) 15230 # DJGPP does not support shared libraries at all 15231 lt_prog_compiler_pic_CXX= 15232 ;; 15233 haiku*) 15234 # PIC is the default for Haiku. 15235 # The "-static" flag exists, but is broken. 15236 lt_prog_compiler_static_CXX= 15237 ;; 15238 interix[3-9]*) 15239 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15240 # Instead, we relocate shared libraries at runtime. 15241 ;; 15242 sysv4*MP*) 15243 if test -d /usr/nec; then 15244 lt_prog_compiler_pic_CXX=-Kconform_pic 15245 fi 15246 ;; 15247 hpux*) 15248 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15249 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15250 # sets the default TLS model and affects inlining. 15251 case $host_cpu in 15252 hppa*64*) 15253 ;; 15254 *) 15255 lt_prog_compiler_pic_CXX='-fPIC' 15256 ;; 15257 esac 15258 ;; 15259 *qnx* | *nto*) 15260 # QNX uses GNU C++, but need to define -shared option too, otherwise 15261 # it will coredump. 15262 lt_prog_compiler_pic_CXX='-fPIC -shared' 15263 ;; 15264 *) 15265 lt_prog_compiler_pic_CXX='-fPIC' 15266 ;; 15267 esac 15268 else 15269 case $host_os in 15270 aix[4-9]*) 15271 # All AIX code is PIC. 15272 if test "$host_cpu" = ia64; then 15273 # AIX 5 now supports IA64 processor 15274 lt_prog_compiler_static_CXX='-Bstatic' 15275 else 15276 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 15277 fi 15278 ;; 15279 chorus*) 15280 case $cc_basename in 15281 cxch68*) 15282 # Green Hills C++ Compiler 15283 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 15284 ;; 15285 esac 15286 ;; 15287 mingw* | cygwin* | os2* | pw32* | cegcc*) 15288 # This hack is so that the source file can tell whether it is being 15289 # built for inclusion in a dll (and should export symbols for example). 15290 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15291 ;; 15292 dgux*) 15293 case $cc_basename in 15294 ec++*) 15295 lt_prog_compiler_pic_CXX='-KPIC' 15296 ;; 15297 ghcx*) 15298 # Green Hills C++ Compiler 15299 lt_prog_compiler_pic_CXX='-pic' 15300 ;; 15301 *) 15302 ;; 15303 esac 15304 ;; 15305 freebsd* | dragonfly*) 15306 # FreeBSD uses GNU C++ 15307 ;; 15308 hpux9* | hpux10* | hpux11*) 15309 case $cc_basename in 15310 CC*) 15311 lt_prog_compiler_wl_CXX='-Wl,' 15312 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 15313 if test "$host_cpu" != ia64; then 15314 lt_prog_compiler_pic_CXX='+Z' 15315 fi 15316 ;; 15317 aCC*) 15318 lt_prog_compiler_wl_CXX='-Wl,' 15319 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 15320 case $host_cpu in 15321 hppa*64*|ia64*) 15322 # +Z the default 15323 ;; 15324 *) 15325 lt_prog_compiler_pic_CXX='+Z' 15326 ;; 15327 esac 15328 ;; 15329 *) 15330 ;; 15331 esac 15332 ;; 15333 interix*) 15334 # This is c89, which is MS Visual C++ (no shared libs) 15335 # Anyone wants to do a port? 15336 ;; 15337 irix5* | irix6* | nonstopux*) 15338 case $cc_basename in 15339 CC*) 15340 lt_prog_compiler_wl_CXX='-Wl,' 15341 lt_prog_compiler_static_CXX='-non_shared' 15342 # CC pic flag -KPIC is the default. 15343 ;; 15344 *) 15345 ;; 15346 esac 15347 ;; 15348 linux* | k*bsd*-gnu | kopensolaris*-gnu) 15349 case $cc_basename in 15350 KCC*) 15351 # KAI C++ Compiler 15352 lt_prog_compiler_wl_CXX='--backend -Wl,' 15353 lt_prog_compiler_pic_CXX='-fPIC' 15354 ;; 15355 ecpc* ) 15356 # old Intel C++ for x86_64 which still supported -KPIC. 15357 lt_prog_compiler_wl_CXX='-Wl,' 15358 lt_prog_compiler_pic_CXX='-KPIC' 15359 lt_prog_compiler_static_CXX='-static' 15360 ;; 15361 icpc* ) 15362 # Intel C++, used to be incompatible with GCC. 15363 # ICC 10 doesn't accept -KPIC any more. 15364 lt_prog_compiler_wl_CXX='-Wl,' 15365 lt_prog_compiler_pic_CXX='-fPIC' 15366 lt_prog_compiler_static_CXX='-static' 15367 ;; 15368 pgCC* | pgcpp*) 15369 # Portland Group C++ compiler 15370 lt_prog_compiler_wl_CXX='-Wl,' 15371 lt_prog_compiler_pic_CXX='-fpic' 15372 lt_prog_compiler_static_CXX='-Bstatic' 15373 ;; 15374 cxx*) 15375 # Compaq C++ 15376 # Make sure the PIC flag is empty. It appears that all Alpha 15377 # Linux and Compaq Tru64 Unix objects are PIC. 15378 lt_prog_compiler_pic_CXX= 15379 lt_prog_compiler_static_CXX='-non_shared' 15380 ;; 15381 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 15382 # IBM XL 8.0, 9.0 on PPC and BlueGene 15383 lt_prog_compiler_wl_CXX='-Wl,' 15384 lt_prog_compiler_pic_CXX='-qpic' 15385 lt_prog_compiler_static_CXX='-qstaticlink' 15386 ;; 15387 *) 15388 case `$CC -V 2>&1 | sed 5q` in 15389 *Sun\ C*) 15390 # Sun C++ 5.9 15391 lt_prog_compiler_pic_CXX='-KPIC' 15392 lt_prog_compiler_static_CXX='-Bstatic' 15393 lt_prog_compiler_wl_CXX='-Qoption ld ' 15394 ;; 15395 esac 15396 ;; 15397 esac 15398 ;; 15399 lynxos*) 15400 ;; 15401 m88k*) 15402 ;; 15403 mvs*) 15404 case $cc_basename in 15405 cxx*) 15406 lt_prog_compiler_pic_CXX='-W c,exportall' 15407 ;; 15408 *) 15409 ;; 15410 esac 15411 ;; 15412 netbsd* | netbsdelf*-gnu) 15413 ;; 15414 *qnx* | *nto*) 15415 # QNX uses GNU C++, but need to define -shared option too, otherwise 15416 # it will coredump. 15417 lt_prog_compiler_pic_CXX='-fPIC -shared' 15418 ;; 15419 osf3* | osf4* | osf5*) 15420 case $cc_basename in 15421 KCC*) 15422 lt_prog_compiler_wl_CXX='--backend -Wl,' 15423 ;; 15424 RCC*) 15425 # Rational C++ 2.4.1 15426 lt_prog_compiler_pic_CXX='-pic' 15427 ;; 15428 cxx*) 15429 # Digital/Compaq C++ 15430 lt_prog_compiler_wl_CXX='-Wl,' 15431 # Make sure the PIC flag is empty. It appears that all Alpha 15432 # Linux and Compaq Tru64 Unix objects are PIC. 15433 lt_prog_compiler_pic_CXX= 15434 lt_prog_compiler_static_CXX='-non_shared' 15435 ;; 15436 *) 15437 ;; 15438 esac 15439 ;; 15440 psos*) 15441 ;; 15442 solaris*) 15443 case $cc_basename in 15444 CC* | sunCC*) 15445 # Sun C++ 4.2, 5.x and Centerline C++ 15446 lt_prog_compiler_pic_CXX='-KPIC' 15447 lt_prog_compiler_static_CXX='-Bstatic' 15448 lt_prog_compiler_wl_CXX='-Qoption ld ' 15449 ;; 15450 gcx*) 15451 # Green Hills C++ Compiler 15452 lt_prog_compiler_pic_CXX='-PIC' 15453 ;; 15454 *) 15455 ;; 15456 esac 15457 ;; 15458 sunos4*) 15459 case $cc_basename in 15460 CC*) 15461 # Sun C++ 4.x 15462 lt_prog_compiler_pic_CXX='-pic' 15463 lt_prog_compiler_static_CXX='-Bstatic' 15464 ;; 15465 lcc*) 15466 # Lucid 15467 lt_prog_compiler_pic_CXX='-pic' 15468 ;; 15469 *) 15470 ;; 15471 esac 15472 ;; 15473 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15474 case $cc_basename in 15475 CC*) 15476 lt_prog_compiler_wl_CXX='-Wl,' 15477 lt_prog_compiler_pic_CXX='-KPIC' 15478 lt_prog_compiler_static_CXX='-Bstatic' 15479 ;; 15480 esac 15481 ;; 15482 tandem*) 15483 case $cc_basename in 15484 NCC*) 15485 # NonStop-UX NCC 3.20 15486 lt_prog_compiler_pic_CXX='-KPIC' 15487 ;; 15488 *) 15489 ;; 15490 esac 15491 ;; 15492 vxworks*) 15493 ;; 15494 *) 15495 lt_prog_compiler_can_build_shared_CXX=no 15496 ;; 15497 esac 15498 fi 15499 15500case $host_os in 15501 # For platforms which do not support PIC, -DPIC is meaningless: 15502 *djgpp*) 15503 lt_prog_compiler_pic_CXX= 15504 ;; 15505 *) 15506 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 15507 ;; 15508esac 15509 15510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15511$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15512if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 15513 $as_echo_n "(cached) " >&6 15514else 15515 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 15516fi 15517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 15518$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 15519lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 15520 15521# 15522# Check to make sure the PIC flag actually works. 15523# 15524if test -n "$lt_prog_compiler_pic_CXX"; then 15525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 15526$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 15527if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 15528 $as_echo_n "(cached) " >&6 15529else 15530 lt_cv_prog_compiler_pic_works_CXX=no 15531 ac_outfile=conftest.$ac_objext 15532 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15533 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 15534 # Insert the option either (1) after the last *FLAGS variable, or 15535 # (2) before a word containing "conftest.", or (3) at the end. 15536 # Note that $ac_compile itself does not contain backslashes and begins 15537 # with a dollar sign (not a hyphen), so the echo should work correctly. 15538 # The option is referenced via a variable to avoid confusing sed. 15539 lt_compile=`echo "$ac_compile" | $SED \ 15540 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15541 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15542 -e 's:$: $lt_compiler_flag:'` 15543 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15544 (eval "$lt_compile" 2>conftest.err) 15545 ac_status=$? 15546 cat conftest.err >&5 15547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15548 if (exit $ac_status) && test -s "$ac_outfile"; then 15549 # The compiler can only warn and ignore the option if not recognized 15550 # So say no if there are warnings other than the usual output. 15551 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15552 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15553 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15554 lt_cv_prog_compiler_pic_works_CXX=yes 15555 fi 15556 fi 15557 $RM conftest* 15558 15559fi 15560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 15561$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 15562 15563if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 15564 case $lt_prog_compiler_pic_CXX in 15565 "" | " "*) ;; 15566 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 15567 esac 15568else 15569 lt_prog_compiler_pic_CXX= 15570 lt_prog_compiler_can_build_shared_CXX=no 15571fi 15572 15573fi 15574 15575 15576 15577 15578 15579# 15580# Check to make sure the static flag actually works. 15581# 15582wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 15583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15584$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15585if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 15586 $as_echo_n "(cached) " >&6 15587else 15588 lt_cv_prog_compiler_static_works_CXX=no 15589 save_LDFLAGS="$LDFLAGS" 15590 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15591 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15592 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15593 # The linker can only warn and ignore the option if not recognized 15594 # So say no if there are warnings 15595 if test -s conftest.err; then 15596 # Append any errors to the config.log. 15597 cat conftest.err 1>&5 15598 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15599 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15600 if diff conftest.exp conftest.er2 >/dev/null; then 15601 lt_cv_prog_compiler_static_works_CXX=yes 15602 fi 15603 else 15604 lt_cv_prog_compiler_static_works_CXX=yes 15605 fi 15606 fi 15607 $RM -r conftest* 15608 LDFLAGS="$save_LDFLAGS" 15609 15610fi 15611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 15612$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 15613 15614if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 15615 : 15616else 15617 lt_prog_compiler_static_CXX= 15618fi 15619 15620 15621 15622 15623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15624$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15625if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15626 $as_echo_n "(cached) " >&6 15627else 15628 lt_cv_prog_compiler_c_o_CXX=no 15629 $RM -r conftest 2>/dev/null 15630 mkdir conftest 15631 cd conftest 15632 mkdir out 15633 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15634 15635 lt_compiler_flag="-o out/conftest2.$ac_objext" 15636 # Insert the option either (1) after the last *FLAGS variable, or 15637 # (2) before a word containing "conftest.", or (3) at the end. 15638 # Note that $ac_compile itself does not contain backslashes and begins 15639 # with a dollar sign (not a hyphen), so the echo should work correctly. 15640 lt_compile=`echo "$ac_compile" | $SED \ 15641 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15642 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15643 -e 's:$: $lt_compiler_flag:'` 15644 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15645 (eval "$lt_compile" 2>out/conftest.err) 15646 ac_status=$? 15647 cat out/conftest.err >&5 15648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15649 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15650 then 15651 # The compiler can only warn and ignore the option if not recognized 15652 # So say no if there are warnings 15653 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15654 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15655 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15656 lt_cv_prog_compiler_c_o_CXX=yes 15657 fi 15658 fi 15659 chmod u+w . 2>&5 15660 $RM conftest* 15661 # SGI C++ compiler will create directory out/ii_files/ for 15662 # template instantiation 15663 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15664 $RM out/* && rmdir out 15665 cd .. 15666 $RM -r conftest 15667 $RM conftest* 15668 15669fi 15670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15671$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15672 15673 15674 15675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15676$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15677if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15678 $as_echo_n "(cached) " >&6 15679else 15680 lt_cv_prog_compiler_c_o_CXX=no 15681 $RM -r conftest 2>/dev/null 15682 mkdir conftest 15683 cd conftest 15684 mkdir out 15685 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15686 15687 lt_compiler_flag="-o out/conftest2.$ac_objext" 15688 # Insert the option either (1) after the last *FLAGS variable, or 15689 # (2) before a word containing "conftest.", or (3) at the end. 15690 # Note that $ac_compile itself does not contain backslashes and begins 15691 # with a dollar sign (not a hyphen), so the echo should work correctly. 15692 lt_compile=`echo "$ac_compile" | $SED \ 15693 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15694 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15695 -e 's:$: $lt_compiler_flag:'` 15696 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15697 (eval "$lt_compile" 2>out/conftest.err) 15698 ac_status=$? 15699 cat out/conftest.err >&5 15700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15701 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15702 then 15703 # The compiler can only warn and ignore the option if not recognized 15704 # So say no if there are warnings 15705 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15706 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15707 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15708 lt_cv_prog_compiler_c_o_CXX=yes 15709 fi 15710 fi 15711 chmod u+w . 2>&5 15712 $RM conftest* 15713 # SGI C++ compiler will create directory out/ii_files/ for 15714 # template instantiation 15715 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15716 $RM out/* && rmdir out 15717 cd .. 15718 $RM -r conftest 15719 $RM conftest* 15720 15721fi 15722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15723$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15724 15725 15726 15727 15728hard_links="nottested" 15729if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 15730 # do not overwrite the value of need_locks provided by the user 15731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15732$as_echo_n "checking if we can lock with hard links... " >&6; } 15733 hard_links=yes 15734 $RM conftest* 15735 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15736 touch conftest.a 15737 ln conftest.a conftest.b 2>&5 || hard_links=no 15738 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15740$as_echo "$hard_links" >&6; } 15741 if test "$hard_links" = no; then 15742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 15743$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 15744 need_locks=warn 15745 fi 15746else 15747 need_locks=no 15748fi 15749 15750 15751 15752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15753$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15754 15755 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15756 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15757 case $host_os in 15758 aix[4-9]*) 15759 # If we're using GNU nm, then we don't want the "-C" option. 15760 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15761 # Also, AIX nm treats weak defined symbols like other global defined 15762 # symbols, whereas GNU nm marks them as "W". 15763 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15764 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 15765 else 15766 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 15767 fi 15768 ;; 15769 pw32*) 15770 export_symbols_cmds_CXX="$ltdll_cmds" 15771 ;; 15772 cygwin* | mingw* | cegcc*) 15773 case $cc_basename in 15774 cl*) 15775 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 15776 ;; 15777 *) 15778 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 15779 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15780 ;; 15781 esac 15782 ;; 15783 linux* | k*bsd*-gnu | gnu*) 15784 link_all_deplibs_CXX=no 15785 ;; 15786 *) 15787 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15788 ;; 15789 esac 15790 15791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15792$as_echo "$ld_shlibs_CXX" >&6; } 15793test "$ld_shlibs_CXX" = no && can_build_shared=no 15794 15795with_gnu_ld_CXX=$with_gnu_ld 15796 15797 15798 15799 15800 15801 15802# 15803# Do we need to explicitly link libc? 15804# 15805case "x$archive_cmds_need_lc_CXX" in 15806x|xyes) 15807 # Assume -lc should be added 15808 archive_cmds_need_lc_CXX=yes 15809 15810 if test "$enable_shared" = yes && test "$GCC" = yes; then 15811 case $archive_cmds_CXX in 15812 *'~'*) 15813 # FIXME: we may have to deal with multi-command sequences. 15814 ;; 15815 '$CC '*) 15816 # Test whether the compiler implicitly links with -lc since on some 15817 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15818 # to ld, don't add -lc before -lgcc. 15819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15820$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15821if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 15822 $as_echo_n "(cached) " >&6 15823else 15824 $RM conftest* 15825 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15826 15827 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15828 (eval $ac_compile) 2>&5 15829 ac_status=$? 15830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15831 test $ac_status = 0; } 2>conftest.err; then 15832 soname=conftest 15833 lib=conftest 15834 libobjs=conftest.$ac_objext 15835 deplibs= 15836 wl=$lt_prog_compiler_wl_CXX 15837 pic_flag=$lt_prog_compiler_pic_CXX 15838 compiler_flags=-v 15839 linker_flags=-v 15840 verstring= 15841 output_objdir=. 15842 libname=conftest 15843 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 15844 allow_undefined_flag_CXX= 15845 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15846 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 15847 ac_status=$? 15848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15849 test $ac_status = 0; } 15850 then 15851 lt_cv_archive_cmds_need_lc_CXX=no 15852 else 15853 lt_cv_archive_cmds_need_lc_CXX=yes 15854 fi 15855 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 15856 else 15857 cat conftest.err 1>&5 15858 fi 15859 $RM conftest* 15860 15861fi 15862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 15863$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 15864 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 15865 ;; 15866 esac 15867 fi 15868 ;; 15869esac 15870 15871 15872 15873 15874 15875 15876 15877 15878 15879 15880 15881 15882 15883 15884 15885 15886 15887 15888 15889 15890 15891 15892 15893 15894 15895 15896 15897 15898 15899 15900 15901 15902 15903 15904 15905 15906 15907 15908 15909 15910 15911 15912 15913 15914 15915 15916 15917 15918 15919 15920 15921 15922 15923 15924 15925 15926 15927 15928 15929 15930 15931 15932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15933$as_echo_n "checking dynamic linker characteristics... " >&6; } 15934 15935library_names_spec= 15936libname_spec='lib$name' 15937soname_spec= 15938shrext_cmds=".so" 15939postinstall_cmds= 15940postuninstall_cmds= 15941finish_cmds= 15942finish_eval= 15943shlibpath_var= 15944shlibpath_overrides_runpath=unknown 15945version_type=none 15946dynamic_linker="$host_os ld.so" 15947sys_lib_dlsearch_path_spec="/lib /usr/lib" 15948need_lib_prefix=unknown 15949hardcode_into_libs=no 15950 15951# when you set need_version to no, make sure it does not cause -set_version 15952# flags to be left without arguments 15953need_version=unknown 15954 15955case $host_os in 15956aix3*) 15957 version_type=linux # correct to gnu/linux during the next big refactor 15958 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15959 shlibpath_var=LIBPATH 15960 15961 # AIX 3 has no versioning support, so we append a major version to the name. 15962 soname_spec='${libname}${release}${shared_ext}$major' 15963 ;; 15964 15965aix[4-9]*) 15966 version_type=linux # correct to gnu/linux during the next big refactor 15967 need_lib_prefix=no 15968 need_version=no 15969 hardcode_into_libs=yes 15970 if test "$host_cpu" = ia64; then 15971 # AIX 5 supports IA64 15972 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15973 shlibpath_var=LD_LIBRARY_PATH 15974 else 15975 # With GCC up to 2.95.x, collect2 would create an import file 15976 # for dependence libraries. The import file would start with 15977 # the line `#! .'. This would cause the generated library to 15978 # depend on `.', always an invalid library. This was fixed in 15979 # development snapshots of GCC prior to 3.0. 15980 case $host_os in 15981 aix4 | aix4.[01] | aix4.[01].*) 15982 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15983 echo ' yes ' 15984 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 15985 : 15986 else 15987 can_build_shared=no 15988 fi 15989 ;; 15990 esac 15991 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15992 # soname into executable. Probably we can add versioning support to 15993 # collect2, so additional links can be useful in future. 15994 if test "$aix_use_runtimelinking" = yes; then 15995 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15996 # instead of lib<name>.a to let people know that these are not 15997 # typical AIX shared libraries. 15998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15999 else 16000 # We preserve .a as extension for shared libraries through AIX4.2 16001 # and later when we are not doing run time linking. 16002 library_names_spec='${libname}${release}.a $libname.a' 16003 soname_spec='${libname}${release}${shared_ext}$major' 16004 fi 16005 shlibpath_var=LIBPATH 16006 fi 16007 ;; 16008 16009amigaos*) 16010 case $host_cpu in 16011 powerpc) 16012 # Since July 2007 AmigaOS4 officially supports .so libraries. 16013 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 16014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16015 ;; 16016 m68k) 16017 library_names_spec='$libname.ixlibrary $libname.a' 16018 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16019 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' 16020 ;; 16021 esac 16022 ;; 16023 16024beos*) 16025 library_names_spec='${libname}${shared_ext}' 16026 dynamic_linker="$host_os ld.so" 16027 shlibpath_var=LIBRARY_PATH 16028 ;; 16029 16030bsdi[45]*) 16031 version_type=linux # correct to gnu/linux during the next big refactor 16032 need_version=no 16033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16034 soname_spec='${libname}${release}${shared_ext}$major' 16035 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16036 shlibpath_var=LD_LIBRARY_PATH 16037 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16038 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16039 # the default ld.so.conf also contains /usr/contrib/lib and 16040 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16041 # libtool to hard-code these into programs 16042 ;; 16043 16044cygwin* | mingw* | pw32* | cegcc*) 16045 version_type=windows 16046 shrext_cmds=".dll" 16047 need_version=no 16048 need_lib_prefix=no 16049 16050 case $GCC,$cc_basename in 16051 yes,*) 16052 # gcc 16053 library_names_spec='$libname.dll.a' 16054 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16055 postinstall_cmds='base_file=`basename \${file}`~ 16056 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 16057 dldir=$destdir/`dirname \$dlpath`~ 16058 test -d \$dldir || mkdir -p \$dldir~ 16059 $install_prog $dir/$dlname \$dldir/$dlname~ 16060 chmod a+x \$dldir/$dlname~ 16061 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16062 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16063 fi' 16064 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16065 dlpath=$dir/\$dldll~ 16066 $RM \$dlpath' 16067 shlibpath_overrides_runpath=yes 16068 16069 case $host_os in 16070 cygwin*) 16071 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16072 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16073 16074 ;; 16075 mingw* | cegcc*) 16076 # MinGW DLLs use traditional 'lib' prefix 16077 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16078 ;; 16079 pw32*) 16080 # pw32 DLLs use 'pw' prefix rather than 'lib' 16081 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16082 ;; 16083 esac 16084 dynamic_linker='Win32 ld.exe' 16085 ;; 16086 16087 *,cl*) 16088 # Native MSVC 16089 libname_spec='$name' 16090 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16091 library_names_spec='${libname}.dll.lib' 16092 16093 case $build_os in 16094 mingw*) 16095 sys_lib_search_path_spec= 16096 lt_save_ifs=$IFS 16097 IFS=';' 16098 for lt_path in $LIB 16099 do 16100 IFS=$lt_save_ifs 16101 # Let DOS variable expansion print the short 8.3 style file name. 16102 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 16103 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 16104 done 16105 IFS=$lt_save_ifs 16106 # Convert to MSYS style. 16107 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 16108 ;; 16109 cygwin*) 16110 # Convert to unix form, then to dos form, then back to unix form 16111 # but this time dos style (no spaces!) so that the unix form looks 16112 # like /cygdrive/c/PROGRA~1:/cygdr... 16113 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 16114 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 16115 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16116 ;; 16117 *) 16118 sys_lib_search_path_spec="$LIB" 16119 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 16120 # It is most probably a Windows format PATH. 16121 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16122 else 16123 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16124 fi 16125 # FIXME: find the short name or the path components, as spaces are 16126 # common. (e.g. "Program Files" -> "PROGRA~1") 16127 ;; 16128 esac 16129 16130 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16131 postinstall_cmds='base_file=`basename \${file}`~ 16132 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 16133 dldir=$destdir/`dirname \$dlpath`~ 16134 test -d \$dldir || mkdir -p \$dldir~ 16135 $install_prog $dir/$dlname \$dldir/$dlname' 16136 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16137 dlpath=$dir/\$dldll~ 16138 $RM \$dlpath' 16139 shlibpath_overrides_runpath=yes 16140 dynamic_linker='Win32 link.exe' 16141 ;; 16142 16143 *) 16144 # Assume MSVC wrapper 16145 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 16146 dynamic_linker='Win32 ld.exe' 16147 ;; 16148 esac 16149 # FIXME: first we should search . and the directory the executable is in 16150 shlibpath_var=PATH 16151 ;; 16152 16153darwin* | rhapsody*) 16154 dynamic_linker="$host_os dyld" 16155 version_type=darwin 16156 need_lib_prefix=no 16157 need_version=no 16158 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 16159 soname_spec='${libname}${release}${major}$shared_ext' 16160 shlibpath_overrides_runpath=yes 16161 shlibpath_var=DYLD_LIBRARY_PATH 16162 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16163 16164 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16165 ;; 16166 16167dgux*) 16168 version_type=linux # correct to gnu/linux during the next big refactor 16169 need_lib_prefix=no 16170 need_version=no 16171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 16172 soname_spec='${libname}${release}${shared_ext}$major' 16173 shlibpath_var=LD_LIBRARY_PATH 16174 ;; 16175 16176freebsd* | dragonfly*) 16177 # DragonFly does not have aout. When/if they implement a new 16178 # versioning mechanism, adjust this. 16179 if test -x /usr/bin/objformat; then 16180 objformat=`/usr/bin/objformat` 16181 else 16182 case $host_os in 16183 freebsd[23].*) objformat=aout ;; 16184 *) objformat=elf ;; 16185 esac 16186 fi 16187 version_type=freebsd-$objformat 16188 case $version_type in 16189 freebsd-elf*) 16190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16191 need_version=no 16192 need_lib_prefix=no 16193 ;; 16194 freebsd-*) 16195 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 16196 need_version=yes 16197 ;; 16198 esac 16199 shlibpath_var=LD_LIBRARY_PATH 16200 case $host_os in 16201 freebsd2.*) 16202 shlibpath_overrides_runpath=yes 16203 ;; 16204 freebsd3.[01]* | freebsdelf3.[01]*) 16205 shlibpath_overrides_runpath=yes 16206 hardcode_into_libs=yes 16207 ;; 16208 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16209 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16210 shlibpath_overrides_runpath=no 16211 hardcode_into_libs=yes 16212 ;; 16213 *) # from 4.6 on, and DragonFly 16214 shlibpath_overrides_runpath=yes 16215 hardcode_into_libs=yes 16216 ;; 16217 esac 16218 ;; 16219 16220gnu*) 16221 version_type=linux # correct to gnu/linux during the next big refactor 16222 need_lib_prefix=no 16223 need_version=no 16224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16225 soname_spec='${libname}${release}${shared_ext}$major' 16226 shlibpath_var=LD_LIBRARY_PATH 16227 shlibpath_overrides_runpath=no 16228 hardcode_into_libs=yes 16229 ;; 16230 16231haiku*) 16232 version_type=linux # correct to gnu/linux during the next big refactor 16233 need_lib_prefix=no 16234 need_version=no 16235 dynamic_linker="$host_os runtime_loader" 16236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16237 soname_spec='${libname}${release}${shared_ext}$major' 16238 shlibpath_var=LIBRARY_PATH 16239 shlibpath_overrides_runpath=yes 16240 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 16241 hardcode_into_libs=yes 16242 ;; 16243 16244hpux9* | hpux10* | hpux11*) 16245 # Give a soname corresponding to the major version so that dld.sl refuses to 16246 # link against other versions. 16247 version_type=sunos 16248 need_lib_prefix=no 16249 need_version=no 16250 case $host_cpu in 16251 ia64*) 16252 shrext_cmds='.so' 16253 hardcode_into_libs=yes 16254 dynamic_linker="$host_os dld.so" 16255 shlibpath_var=LD_LIBRARY_PATH 16256 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16258 soname_spec='${libname}${release}${shared_ext}$major' 16259 if test "X$HPUX_IA64_MODE" = X32; then 16260 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16261 else 16262 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16263 fi 16264 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16265 ;; 16266 hppa*64*) 16267 shrext_cmds='.sl' 16268 hardcode_into_libs=yes 16269 dynamic_linker="$host_os dld.sl" 16270 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16271 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16273 soname_spec='${libname}${release}${shared_ext}$major' 16274 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16275 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16276 ;; 16277 *) 16278 shrext_cmds='.sl' 16279 dynamic_linker="$host_os dld.sl" 16280 shlibpath_var=SHLIB_PATH 16281 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16283 soname_spec='${libname}${release}${shared_ext}$major' 16284 ;; 16285 esac 16286 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 16287 postinstall_cmds='chmod 555 $lib' 16288 # or fails outright, so override atomically: 16289 install_override_mode=555 16290 ;; 16291 16292interix[3-9]*) 16293 version_type=linux # correct to gnu/linux during the next big refactor 16294 need_lib_prefix=no 16295 need_version=no 16296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16297 soname_spec='${libname}${release}${shared_ext}$major' 16298 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16299 shlibpath_var=LD_LIBRARY_PATH 16300 shlibpath_overrides_runpath=no 16301 hardcode_into_libs=yes 16302 ;; 16303 16304irix5* | irix6* | nonstopux*) 16305 case $host_os in 16306 nonstopux*) version_type=nonstopux ;; 16307 *) 16308 if test "$lt_cv_prog_gnu_ld" = yes; then 16309 version_type=linux # correct to gnu/linux during the next big refactor 16310 else 16311 version_type=irix 16312 fi ;; 16313 esac 16314 need_lib_prefix=no 16315 need_version=no 16316 soname_spec='${libname}${release}${shared_ext}$major' 16317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16318 case $host_os in 16319 irix5* | nonstopux*) 16320 libsuff= shlibsuff= 16321 ;; 16322 *) 16323 case $LD in # libtool.m4 will add one of these switches to LD 16324 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16325 libsuff= shlibsuff= libmagic=32-bit;; 16326 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16327 libsuff=32 shlibsuff=N32 libmagic=N32;; 16328 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16329 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16330 *) libsuff= shlibsuff= libmagic=never-match;; 16331 esac 16332 ;; 16333 esac 16334 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16335 shlibpath_overrides_runpath=no 16336 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16337 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16338 hardcode_into_libs=yes 16339 ;; 16340 16341# No shared lib support for Linux oldld, aout, or coff. 16342linux*oldld* | linux*aout* | linux*coff*) 16343 dynamic_linker=no 16344 ;; 16345 16346# This must be glibc/ELF. 16347linux* | k*bsd*-gnu | kopensolaris*-gnu) 16348 version_type=linux # correct to gnu/linux during the next big refactor 16349 need_lib_prefix=no 16350 need_version=no 16351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16352 soname_spec='${libname}${release}${shared_ext}$major' 16353 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16354 shlibpath_var=LD_LIBRARY_PATH 16355 shlibpath_overrides_runpath=no 16356 16357 # Some binutils ld are patched to set DT_RUNPATH 16358 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 16359 $as_echo_n "(cached) " >&6 16360else 16361 lt_cv_shlibpath_overrides_runpath=no 16362 save_LDFLAGS=$LDFLAGS 16363 save_libdir=$libdir 16364 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 16365 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 16366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16367/* end confdefs.h. */ 16368 16369int 16370main () 16371{ 16372 16373 ; 16374 return 0; 16375} 16376_ACEOF 16377if ac_fn_cxx_try_link "$LINENO"; then : 16378 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 16379 lt_cv_shlibpath_overrides_runpath=yes 16380fi 16381fi 16382rm -f core conftest.err conftest.$ac_objext \ 16383 conftest$ac_exeext conftest.$ac_ext 16384 LDFLAGS=$save_LDFLAGS 16385 libdir=$save_libdir 16386 16387fi 16388 16389 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 16390 16391 # This implies no fast_install, which is unacceptable. 16392 # Some rework will be needed to allow for fast_install 16393 # before this can be enabled. 16394 hardcode_into_libs=yes 16395 16396 # Append ld.so.conf contents to the search path 16397 if test -f /etc/ld.so.conf; then 16398 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' ' '` 16399 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16400 fi 16401 16402 # We used to test for /lib/ld.so.1 and disable shared libraries on 16403 # powerpc, because MkLinux only supported shared libraries with the 16404 # GNU dynamic linker. Since this was broken with cross compilers, 16405 # most powerpc-linux boxes support dynamic linking these days and 16406 # people can always --disable-shared, the test was removed, and we 16407 # assume the GNU/Linux dynamic linker is in use. 16408 dynamic_linker='GNU/Linux ld.so' 16409 ;; 16410 16411netbsdelf*-gnu) 16412 version_type=linux 16413 need_lib_prefix=no 16414 need_version=no 16415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16416 soname_spec='${libname}${release}${shared_ext}$major' 16417 shlibpath_var=LD_LIBRARY_PATH 16418 shlibpath_overrides_runpath=no 16419 hardcode_into_libs=yes 16420 dynamic_linker='NetBSD ld.elf_so' 16421 ;; 16422 16423netbsd*) 16424 version_type=sunos 16425 need_lib_prefix=no 16426 need_version=no 16427 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16429 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16430 dynamic_linker='NetBSD (a.out) ld.so' 16431 else 16432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16433 soname_spec='${libname}${release}${shared_ext}$major' 16434 dynamic_linker='NetBSD ld.elf_so' 16435 fi 16436 shlibpath_var=LD_LIBRARY_PATH 16437 shlibpath_overrides_runpath=yes 16438 hardcode_into_libs=yes 16439 ;; 16440 16441newsos6) 16442 version_type=linux # correct to gnu/linux during the next big refactor 16443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16444 shlibpath_var=LD_LIBRARY_PATH 16445 shlibpath_overrides_runpath=yes 16446 ;; 16447 16448*nto* | *qnx*) 16449 version_type=qnx 16450 need_lib_prefix=no 16451 need_version=no 16452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16453 soname_spec='${libname}${release}${shared_ext}$major' 16454 shlibpath_var=LD_LIBRARY_PATH 16455 shlibpath_overrides_runpath=no 16456 hardcode_into_libs=yes 16457 dynamic_linker='ldqnx.so' 16458 ;; 16459 16460openbsd*) 16461 version_type=sunos 16462 sys_lib_dlsearch_path_spec="/usr/lib" 16463 need_lib_prefix=no 16464 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16465 case $host_os in 16466 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16467 *) need_version=no ;; 16468 esac 16469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16470 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16471 shlibpath_var=LD_LIBRARY_PATH 16472 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16473 case $host_os in 16474 openbsd2.[89] | openbsd2.[89].*) 16475 shlibpath_overrides_runpath=no 16476 ;; 16477 *) 16478 shlibpath_overrides_runpath=yes 16479 ;; 16480 esac 16481 else 16482 shlibpath_overrides_runpath=yes 16483 fi 16484 ;; 16485 16486os2*) 16487 libname_spec='$name' 16488 shrext_cmds=".dll" 16489 need_lib_prefix=no 16490 library_names_spec='$libname${shared_ext} $libname.a' 16491 dynamic_linker='OS/2 ld.exe' 16492 shlibpath_var=LIBPATH 16493 ;; 16494 16495osf3* | osf4* | osf5*) 16496 version_type=osf 16497 need_lib_prefix=no 16498 need_version=no 16499 soname_spec='${libname}${release}${shared_ext}$major' 16500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16501 shlibpath_var=LD_LIBRARY_PATH 16502 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16503 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16504 ;; 16505 16506rdos*) 16507 dynamic_linker=no 16508 ;; 16509 16510solaris*) 16511 version_type=linux # correct to gnu/linux during the next big refactor 16512 need_lib_prefix=no 16513 need_version=no 16514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16515 soname_spec='${libname}${release}${shared_ext}$major' 16516 shlibpath_var=LD_LIBRARY_PATH 16517 shlibpath_overrides_runpath=yes 16518 hardcode_into_libs=yes 16519 # ldd complains unless libraries are executable 16520 postinstall_cmds='chmod +x $lib' 16521 ;; 16522 16523sunos4*) 16524 version_type=sunos 16525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16526 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16527 shlibpath_var=LD_LIBRARY_PATH 16528 shlibpath_overrides_runpath=yes 16529 if test "$with_gnu_ld" = yes; then 16530 need_lib_prefix=no 16531 fi 16532 need_version=yes 16533 ;; 16534 16535sysv4 | sysv4.3*) 16536 version_type=linux # correct to gnu/linux during the next big refactor 16537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16538 soname_spec='${libname}${release}${shared_ext}$major' 16539 shlibpath_var=LD_LIBRARY_PATH 16540 case $host_vendor in 16541 sni) 16542 shlibpath_overrides_runpath=no 16543 need_lib_prefix=no 16544 runpath_var=LD_RUN_PATH 16545 ;; 16546 siemens) 16547 need_lib_prefix=no 16548 ;; 16549 motorola) 16550 need_lib_prefix=no 16551 need_version=no 16552 shlibpath_overrides_runpath=no 16553 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16554 ;; 16555 esac 16556 ;; 16557 16558sysv4*MP*) 16559 if test -d /usr/nec ;then 16560 version_type=linux # correct to gnu/linux during the next big refactor 16561 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16562 soname_spec='$libname${shared_ext}.$major' 16563 shlibpath_var=LD_LIBRARY_PATH 16564 fi 16565 ;; 16566 16567sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16568 version_type=freebsd-elf 16569 need_lib_prefix=no 16570 need_version=no 16571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16572 soname_spec='${libname}${release}${shared_ext}$major' 16573 shlibpath_var=LD_LIBRARY_PATH 16574 shlibpath_overrides_runpath=yes 16575 hardcode_into_libs=yes 16576 if test "$with_gnu_ld" = yes; then 16577 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16578 else 16579 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16580 case $host_os in 16581 sco3.2v5*) 16582 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16583 ;; 16584 esac 16585 fi 16586 sys_lib_dlsearch_path_spec='/usr/lib' 16587 ;; 16588 16589tpf*) 16590 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 16591 version_type=linux # correct to gnu/linux during the next big refactor 16592 need_lib_prefix=no 16593 need_version=no 16594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16595 shlibpath_var=LD_LIBRARY_PATH 16596 shlibpath_overrides_runpath=no 16597 hardcode_into_libs=yes 16598 ;; 16599 16600uts4*) 16601 version_type=linux # correct to gnu/linux during the next big refactor 16602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16603 soname_spec='${libname}${release}${shared_ext}$major' 16604 shlibpath_var=LD_LIBRARY_PATH 16605 ;; 16606 16607*) 16608 dynamic_linker=no 16609 ;; 16610esac 16611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 16612$as_echo "$dynamic_linker" >&6; } 16613test "$dynamic_linker" = no && can_build_shared=no 16614 16615variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16616if test "$GCC" = yes; then 16617 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16618fi 16619 16620if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 16621 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 16622fi 16623if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 16624 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 16625fi 16626 16627 16628 16629 16630 16631 16632 16633 16634 16635 16636 16637 16638 16639 16640 16641 16642 16643 16644 16645 16646 16647 16648 16649 16650 16651 16652 16653 16654 16655 16656 16657 16658 16659 16660 16661 16662 16663 16664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 16665$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16666hardcode_action_CXX= 16667if test -n "$hardcode_libdir_flag_spec_CXX" || 16668 test -n "$runpath_var_CXX" || 16669 test "X$hardcode_automatic_CXX" = "Xyes" ; then 16670 16671 # We can hardcode non-existent directories. 16672 if test "$hardcode_direct_CXX" != no && 16673 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16674 # have to relink, otherwise we might link with an installed library 16675 # when we should be linking with a yet-to-be-installed one 16676 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 16677 test "$hardcode_minus_L_CXX" != no; then 16678 # Linking always hardcodes the temporary library directory. 16679 hardcode_action_CXX=relink 16680 else 16681 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16682 hardcode_action_CXX=immediate 16683 fi 16684else 16685 # We cannot hardcode anything, or else we can only hardcode existing 16686 # directories. 16687 hardcode_action_CXX=unsupported 16688fi 16689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 16690$as_echo "$hardcode_action_CXX" >&6; } 16691 16692if test "$hardcode_action_CXX" = relink || 16693 test "$inherit_rpath_CXX" = yes; then 16694 # Fast installation is not supported 16695 enable_fast_install=no 16696elif test "$shlibpath_overrides_runpath" = yes || 16697 test "$enable_shared" = no; then 16698 # Fast installation is not necessary 16699 enable_fast_install=needless 16700fi 16701 16702 16703 16704 16705 16706 16707 16708 fi # test -n "$compiler" 16709 16710 CC=$lt_save_CC 16711 CFLAGS=$lt_save_CFLAGS 16712 LDCXX=$LD 16713 LD=$lt_save_LD 16714 GCC=$lt_save_GCC 16715 with_gnu_ld=$lt_save_with_gnu_ld 16716 lt_cv_path_LDCXX=$lt_cv_path_LD 16717 lt_cv_path_LD=$lt_save_path_LD 16718 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 16719 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 16720fi # test "$_lt_caught_CXX_error" != yes 16721 16722ac_ext=c 16723ac_cpp='$CPP $CPPFLAGS' 16724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16726ac_compiler_gnu=$ac_cv_c_compiler_gnu 16727 16728 16729 16730 16731 16732# Check whether --with-ccache was given. 16733if test "${with_ccache+set}" = set; then : 16734 withval=$with_ccache; using_ccache=$with_ccache 16735 16736fi 16737 16738 16739# Extract the first word of "ccache", so it can be a program name with args. 16740set dummy ccache; ac_word=$2 16741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16742$as_echo_n "checking for $ac_word... " >&6; } 16743if ${ac_cv_path_CCACHE+:} false; then : 16744 $as_echo_n "(cached) " >&6 16745else 16746 case $CCACHE in 16747 [\\/]* | ?:[\\/]*) 16748 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 16749 ;; 16750 *) 16751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16752for as_dir in $PATH 16753do 16754 IFS=$as_save_IFS 16755 test -z "$as_dir" && as_dir=. 16756 for ac_exec_ext in '' $ac_executable_extensions; do 16757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16758 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 16759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16760 break 2 16761 fi 16762done 16763 done 16764IFS=$as_save_IFS 16765 16766 ;; 16767esac 16768fi 16769CCACHE=$ac_cv_path_CCACHE 16770if test -n "$CCACHE"; then 16771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 16772$as_echo "$CCACHE" >&6; } 16773else 16774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16775$as_echo "no" >&6; } 16776fi 16777 16778 16779if test "$CCACHE" -a "$using_ccache" = "yes" 16780then 16781 CC="ccache $CC" 16782 CXX="ccache $CXX" 16783fi 16784 16785 16786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking maximum warning verbosity option" >&5 16787$as_echo_n "checking maximum warning verbosity option... " >&6; } 16788if test -n "$CXX" 16789then 16790 if test "$GXX" = "yes" 16791 then 16792 ac_compile_warnings_plusplus_opt='-Wall -Woverloaded-virtual' 16793 fi 16794 CXXFLAGS="$CXXFLAGS $ac_compile_warnings_plusplus_opt" 16795 ac_compile_warnings_msg="$ac_compile_warnings_plusplus_opt for C++" 16796fi 16797 16798if test -n "$CC" 16799then 16800 if test "$GCC" = "yes" 16801 then 16802 ac_compile_warnings_opt='-Wall -Wmissing-declarations -Wmissing-prototypes' 16803 fi 16804 CFLAGS="$CFLAGS $ac_compile_warnings_opt" 16805 ac_compile_warnings_msg="$ac_compile_warnings_msg $ac_compile_warnings_opt for C" 16806fi 16807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_compile_warnings_msg" >&5 16808$as_echo "$ac_compile_warnings_msg" >&6; } 16809unset ac_compile_warnings_msg 16810unset ac_compile_warnings_opt 16811unset ac_compile_warnings_plusplus_opt 16812 16813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking adding -fno-rtti to g++" >&5 16814$as_echo_n "checking adding -fno-rtti to g++... " >&6; } 16815if test -n "$CXX" 16816then 16817 if test "$GXX" = "yes" 16818 then 16819 CXXFLAGS_save="$CXXFLAGS" 16820 CXXFLAGS="$CXXFLAGS -fno-rtti" 16821 ac_ext=cpp 16822ac_cpp='$CXXCPP $CPPFLAGS' 16823ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16824ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16825ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 16826 16827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16828/* end confdefs.h. */ 16829 16830int 16831main () 16832{ 16833 16834 ; 16835 return 0; 16836} 16837_ACEOF 16838if ac_fn_cxx_try_compile "$LINENO"; then : 16839 16840else 16841 CXXFLAGS="$CXXFLAGS_save" 16842fi 16843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16844 ac_ext=c 16845ac_cpp='$CPP $CPPFLAGS' 16846ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16847ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16848ac_compiler_gnu=$ac_cv_c_compiler_gnu 16849 16850 fi 16851fi 16852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 16853$as_echo "ok" >&6; } 16854 16855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking adding -fno-exceptions to g++" >&5 16856$as_echo_n "checking adding -fno-exceptions to g++... " >&6; } 16857if test -n "$CXX" 16858then 16859 if test "$GXX" = "yes" 16860 then 16861 CXXFLAGS_save="$CXXFLAGS" 16862 CXXFLAGS="$CXXFLAGS -fno-exceptions" 16863 ac_ext=cpp 16864ac_cpp='$CXXCPP $CPPFLAGS' 16865ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16866ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16867ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 16868 16869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16870/* end confdefs.h. */ 16871 16872int 16873main () 16874{ 16875 16876 ; 16877 return 0; 16878} 16879_ACEOF 16880if ac_fn_cxx_try_compile "$LINENO"; then : 16881 16882else 16883 CXXFLAGS="$CXXFLAGS_save" 16884fi 16885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16886 ac_ext=c 16887ac_cpp='$CPP $CPPFLAGS' 16888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16890ac_compiler_gnu=$ac_cv_c_compiler_gnu 16891 16892 fi 16893fi 16894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 16895$as_echo "ok" >&6; } 16896 16897 16898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5 16899$as_echo_n "checking if malloc debugging is wanted... " >&6; } 16900 16901# Check whether --with-dmalloc was given. 16902if test "${with_dmalloc+set}" = set; then : 16903 withval=$with_dmalloc; if test "$withval" = yes; then 16904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16905$as_echo "yes" >&6; } 16906 16907$as_echo "#define WITH_DMALLOC 1" >>confdefs.h 16908 16909 LIBS="$LIBS -ldmalloc" 16910 LDFLAGS="$LDFLAGS -g" 16911else 16912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16913$as_echo "no" >&6; } 16914fi 16915else 16916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16917$as_echo "no" >&6; } 16918fi 16919 16920 16921 16922 16923 16924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --disable-bigfile option specified" >&5 16925$as_echo_n "checking if --disable-bigfile option specified... " >&6; } 16926# Check whether --enable-bigfile was given. 16927if test "${enable_bigfile+set}" = set; then : 16928 enableval=$enable_bigfile; db_cv_bigfile="yes" 16929else 16930 db_cv_bigfile="no" 16931fi 16932 16933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_bigfile" >&5 16934$as_echo "$db_cv_bigfile" >&6; } 16935 16936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-debug option specified" >&5 16937$as_echo_n "checking if --enable-debug option specified... " >&6; } 16938# Check whether --enable-debug was given. 16939if test "${enable_debug+set}" = set; then : 16940 enableval=$enable_debug; db_cv_debug="$enable_debug" 16941else 16942 db_cv_debug="no" 16943fi 16944 16945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_debug" >&5 16946$as_echo "$db_cv_debug" >&6; } 16947 16948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-debug_rop option specified" >&5 16949$as_echo_n "checking if --enable-debug_rop option specified... " >&6; } 16950# Check whether --enable-debug_rop was given. 16951if test "${enable_debug_rop+set}" = set; then : 16952 enableval=$enable_debug_rop; db_cv_debug_rop="$enable_debug_rop" 16953else 16954 db_cv_debug_rop="no" 16955fi 16956 16957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_debug_rop" >&5 16958$as_echo "$db_cv_debug_rop" >&6; } 16959 16960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-debug_wop option specified" >&5 16961$as_echo_n "checking if --enable-debug_wop option specified... " >&6; } 16962# Check whether --enable-debug_wop was given. 16963if test "${enable_debug_wop+set}" = set; then : 16964 enableval=$enable_debug_wop; db_cv_debug_wop="$enable_debug_wop" 16965else 16966 db_cv_debug_wop="no" 16967fi 16968 16969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_debug_wop" >&5 16970$as_echo "$db_cv_debug_wop" >&6; } 16971 16972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-diagnostic option specified" >&5 16973$as_echo_n "checking if --enable-diagnostic option specified... " >&6; } 16974# Check whether --enable-diagnostic was given. 16975if test "${enable_diagnostic+set}" = set; then : 16976 enableval=$enable_diagnostic; db_cv_diagnostic="$enable_diagnostic" 16977else 16978 db_cv_diagnostic="no" 16979fi 16980 16981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_diagnostic" >&5 16982$as_echo "$db_cv_diagnostic" >&6; } 16983 16984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-posixmutexes option specified" >&5 16985$as_echo_n "checking if --enable-posixmutexes option specified... " >&6; } 16986# Check whether --enable-posixmutexes was given. 16987if test "${enable_posixmutexes+set}" = set; then : 16988 enableval=$enable_posixmutexes; db_cv_posixmutexes="$enable_posixmutexes" 16989else 16990 db_cv_posixmutexes="no" 16991fi 16992 16993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_posixmutexes" >&5 16994$as_echo "$db_cv_posixmutexes" >&6; } 16995 16996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-uimutexes option specified" >&5 16997$as_echo_n "checking if --enable-uimutexes option specified... " >&6; } 16998# Check whether --enable-uimutexes was given. 16999if test "${enable_uimutexes+set}" = set; then : 17000 enableval=$enable_uimutexes; db_cv_uimutexes="$enable_uimutexes" 17001else 17002 db_cv_uimutexes="no" 17003fi 17004 17005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_uimutexes" >&5 17006$as_echo "$db_cv_uimutexes" >&6; } 17007 17008 17009 17010optimize_def="-O" 17011case "$host_os" in 17012aix4.*) optimize_def="-O2" 17013 CC=${CC-"xlc_r"} 17014 CPPFLAGS="-D_THREAD_SAFE $CPPFLAGS";; 17015bsdi3*) CC=${CC-"shlicc2"} 17016 optimize_def="-O2" 17017 LIBS="-lipc $LIBS";; 17018bsdi*) optimize_def="-O2";; 17019freebsd*) optimize_def="-O2" 17020 CPPFLAGS="-D_THREAD_SAFE -pthread $CPPFLAGS";; 17021hpux*) CPPFLAGS="-D_REENTRANT $CPPFLAGS";; 17022irix*) optimize_def="-O2" 17023 CPPFLAGS="-D_SGI_MP_SOURCE $CPPFLAGS";; 17024linux*) optimize_def="-O2" 17025 CPPFLAGS="-D_REENTRANT $CPPFLAGS";; 17026mpeix*) CPPFLAGS="-D_POSIX_SOURCE -D_SOCKET_SOURCE $CPPFLAGS" 17027 LIBS="-lsocket -lsvipc $LIBS";; 17028osf*) CPPFLAGS="-D_REENTRANT $CPPFLAGS";; 17029sco3.2v4*) CC=${CC-"cc -belf"} 17030 LIBS="-lsocket -lnsl_s $LIBS";; 17031sco*) CC=${CC-"cc -belf"} 17032 LIBS="-lsocket -lnsl $LIBS";; 17033solaris*) CPPFLAGS="-D_REENTRANT $CPPFLAGS";; 17034esac 17035 17036if test "$db_cv_debug" = yes; then 17037 17038$as_echo "#define DEBUG /**/" >>confdefs.h 17039 17040 CFLAGS="$CFLAGS -g" 17041 CXXFLAGS="$CXXFLAGS -g" 17042fi 17043 17044if test "$db_cv_diagnostic" = yes; then 17045 17046$as_echo "#define DIAGNOSTIC /**/" >>confdefs.h 17047 17048fi 17049if test "$db_cv_debug_rop" = yes; then 17050 17051$as_echo "#define DEBUG_ROP /**/" >>confdefs.h 17052 17053fi 17054if test "$db_cv_debug_wop" = yes; then 17055 17056$as_echo "#define DEBUG_WOP /**/" >>confdefs.h 17057 17058fi 17059 17060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 17061$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 17062if ${ac_cv_c_bigendian+:} false; then : 17063 $as_echo_n "(cached) " >&6 17064else 17065 ac_cv_c_bigendian=unknown 17066 # See if we're dealing with a universal compiler. 17067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17068/* end confdefs.h. */ 17069#ifndef __APPLE_CC__ 17070 not a universal capable compiler 17071 #endif 17072 typedef int dummy; 17073 17074_ACEOF 17075if ac_fn_c_try_compile "$LINENO"; then : 17076 17077 # Check for potential -arch flags. It is not universal unless 17078 # there are at least two -arch flags with different values. 17079 ac_arch= 17080 ac_prev= 17081 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 17082 if test -n "$ac_prev"; then 17083 case $ac_word in 17084 i?86 | x86_64 | ppc | ppc64) 17085 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 17086 ac_arch=$ac_word 17087 else 17088 ac_cv_c_bigendian=universal 17089 break 17090 fi 17091 ;; 17092 esac 17093 ac_prev= 17094 elif test "x$ac_word" = "x-arch"; then 17095 ac_prev=arch 17096 fi 17097 done 17098fi 17099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17100 if test $ac_cv_c_bigendian = unknown; then 17101 # See if sys/param.h defines the BYTE_ORDER macro. 17102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17103/* end confdefs.h. */ 17104#include <sys/types.h> 17105 #include <sys/param.h> 17106 17107int 17108main () 17109{ 17110#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 17111 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 17112 && LITTLE_ENDIAN) 17113 bogus endian macros 17114 #endif 17115 17116 ; 17117 return 0; 17118} 17119_ACEOF 17120if ac_fn_c_try_compile "$LINENO"; then : 17121 # It does; now see whether it defined to BIG_ENDIAN or not. 17122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17123/* end confdefs.h. */ 17124#include <sys/types.h> 17125 #include <sys/param.h> 17126 17127int 17128main () 17129{ 17130#if BYTE_ORDER != BIG_ENDIAN 17131 not big endian 17132 #endif 17133 17134 ; 17135 return 0; 17136} 17137_ACEOF 17138if ac_fn_c_try_compile "$LINENO"; then : 17139 ac_cv_c_bigendian=yes 17140else 17141 ac_cv_c_bigendian=no 17142fi 17143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17144fi 17145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17146 fi 17147 if test $ac_cv_c_bigendian = unknown; then 17148 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 17149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17150/* end confdefs.h. */ 17151#include <limits.h> 17152 17153int 17154main () 17155{ 17156#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 17157 bogus endian macros 17158 #endif 17159 17160 ; 17161 return 0; 17162} 17163_ACEOF 17164if ac_fn_c_try_compile "$LINENO"; then : 17165 # It does; now see whether it defined to _BIG_ENDIAN or not. 17166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17167/* end confdefs.h. */ 17168#include <limits.h> 17169 17170int 17171main () 17172{ 17173#ifndef _BIG_ENDIAN 17174 not big endian 17175 #endif 17176 17177 ; 17178 return 0; 17179} 17180_ACEOF 17181if ac_fn_c_try_compile "$LINENO"; then : 17182 ac_cv_c_bigendian=yes 17183else 17184 ac_cv_c_bigendian=no 17185fi 17186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17187fi 17188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17189 fi 17190 if test $ac_cv_c_bigendian = unknown; then 17191 # Compile a test program. 17192 if test "$cross_compiling" = yes; then : 17193 # Try to guess by grepping values from an object file. 17194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17195/* end confdefs.h. */ 17196short int ascii_mm[] = 17197 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 17198 short int ascii_ii[] = 17199 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 17200 int use_ascii (int i) { 17201 return ascii_mm[i] + ascii_ii[i]; 17202 } 17203 short int ebcdic_ii[] = 17204 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 17205 short int ebcdic_mm[] = 17206 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 17207 int use_ebcdic (int i) { 17208 return ebcdic_mm[i] + ebcdic_ii[i]; 17209 } 17210 extern int foo; 17211 17212int 17213main () 17214{ 17215return use_ascii (foo) == use_ebcdic (foo); 17216 ; 17217 return 0; 17218} 17219_ACEOF 17220if ac_fn_c_try_compile "$LINENO"; then : 17221 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 17222 ac_cv_c_bigendian=yes 17223 fi 17224 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 17225 if test "$ac_cv_c_bigendian" = unknown; then 17226 ac_cv_c_bigendian=no 17227 else 17228 # finding both strings is unlikely to happen, but who knows? 17229 ac_cv_c_bigendian=unknown 17230 fi 17231 fi 17232fi 17233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17234else 17235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17236/* end confdefs.h. */ 17237$ac_includes_default 17238int 17239main () 17240{ 17241 17242 /* Are we little or big endian? From Harbison&Steele. */ 17243 union 17244 { 17245 long int l; 17246 char c[sizeof (long int)]; 17247 } u; 17248 u.l = 1; 17249 return u.c[sizeof (long int) - 1] == 1; 17250 17251 ; 17252 return 0; 17253} 17254_ACEOF 17255if ac_fn_c_try_run "$LINENO"; then : 17256 ac_cv_c_bigendian=no 17257else 17258 ac_cv_c_bigendian=yes 17259fi 17260rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17261 conftest.$ac_objext conftest.beam conftest.$ac_ext 17262fi 17263 17264 fi 17265fi 17266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 17267$as_echo "$ac_cv_c_bigendian" >&6; } 17268 case $ac_cv_c_bigendian in #( 17269 yes) 17270 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 17271;; #( 17272 no) 17273 ;; #( 17274 universal) 17275 17276$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 17277 17278 ;; #( 17279 *) 17280 as_fn_error $? "unknown endianness 17281 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 17282 esac 17283 17284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 17285$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 17286if ${ac_cv_c_const+:} false; then : 17287 $as_echo_n "(cached) " >&6 17288else 17289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17290/* end confdefs.h. */ 17291 17292int 17293main () 17294{ 17295 17296#ifndef __cplusplus 17297 /* Ultrix mips cc rejects this sort of thing. */ 17298 typedef int charset[2]; 17299 const charset cs = { 0, 0 }; 17300 /* SunOS 4.1.1 cc rejects this. */ 17301 char const *const *pcpcc; 17302 char **ppc; 17303 /* NEC SVR4.0.2 mips cc rejects this. */ 17304 struct point {int x, y;}; 17305 static struct point const zero = {0,0}; 17306 /* AIX XL C 1.02.0.0 rejects this. 17307 It does not let you subtract one const X* pointer from another in 17308 an arm of an if-expression whose if-part is not a constant 17309 expression */ 17310 const char *g = "string"; 17311 pcpcc = &g + (g ? g-g : 0); 17312 /* HPUX 7.0 cc rejects these. */ 17313 ++pcpcc; 17314 ppc = (char**) pcpcc; 17315 pcpcc = (char const *const *) ppc; 17316 { /* SCO 3.2v4 cc rejects this sort of thing. */ 17317 char tx; 17318 char *t = &tx; 17319 char const *s = 0 ? (char *) 0 : (char const *) 0; 17320 17321 *t++ = 0; 17322 if (s) return 0; 17323 } 17324 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 17325 int x[] = {25, 17}; 17326 const int *foo = &x[0]; 17327 ++foo; 17328 } 17329 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 17330 typedef const int *iptr; 17331 iptr p = 0; 17332 ++p; 17333 } 17334 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 17335 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 17336 struct s { int j; const int *ap[3]; } bx; 17337 struct s *b = &bx; b->j = 5; 17338 } 17339 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 17340 const int foo = 10; 17341 if (!foo) return 0; 17342 } 17343 return !cs[0] && !zero.x; 17344#endif 17345 17346 ; 17347 return 0; 17348} 17349_ACEOF 17350if ac_fn_c_try_compile "$LINENO"; then : 17351 ac_cv_c_const=yes 17352else 17353 ac_cv_c_const=no 17354fi 17355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17356fi 17357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 17358$as_echo "$ac_cv_c_const" >&6; } 17359if test $ac_cv_c_const = no; then 17360 17361$as_echo "#define const /**/" >>confdefs.h 17362 17363fi 17364 17365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5 17366$as_echo_n "checking whether stat file-mode macros are broken... " >&6; } 17367if ${ac_cv_header_stat_broken+:} false; then : 17368 $as_echo_n "(cached) " >&6 17369else 17370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17371/* end confdefs.h. */ 17372#include <sys/types.h> 17373#include <sys/stat.h> 17374 17375#if defined S_ISBLK && defined S_IFDIR 17376extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; 17377#endif 17378 17379#if defined S_ISBLK && defined S_IFCHR 17380extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; 17381#endif 17382 17383#if defined S_ISLNK && defined S_IFREG 17384extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; 17385#endif 17386 17387#if defined S_ISSOCK && defined S_IFREG 17388extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; 17389#endif 17390 17391_ACEOF 17392if ac_fn_c_try_compile "$LINENO"; then : 17393 ac_cv_header_stat_broken=no 17394else 17395 ac_cv_header_stat_broken=yes 17396fi 17397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17398fi 17399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5 17400$as_echo "$ac_cv_header_stat_broken" >&6; } 17401if test $ac_cv_header_stat_broken = yes; then 17402 17403$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h 17404 17405fi 17406 17407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 17408$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 17409if ${ac_cv_header_time+:} false; then : 17410 $as_echo_n "(cached) " >&6 17411else 17412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17413/* end confdefs.h. */ 17414#include <sys/types.h> 17415#include <sys/time.h> 17416#include <time.h> 17417 17418int 17419main () 17420{ 17421if ((struct tm *) 0) 17422return 0; 17423 ; 17424 return 0; 17425} 17426_ACEOF 17427if ac_fn_c_try_compile "$LINENO"; then : 17428 ac_cv_header_time=yes 17429else 17430 ac_cv_header_time=no 17431fi 17432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17433fi 17434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 17435$as_echo "$ac_cv_header_time" >&6; } 17436if test $ac_cv_header_time = yes; then 17437 17438$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 17439 17440fi 17441 17442ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 17443if test "x$ac_cv_type_mode_t" = xyes; then : 17444 17445else 17446 17447cat >>confdefs.h <<_ACEOF 17448#define mode_t int 17449_ACEOF 17450 17451fi 17452 17453ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 17454if test "x$ac_cv_type_off_t" = xyes; then : 17455 17456else 17457 17458cat >>confdefs.h <<_ACEOF 17459#define off_t long int 17460_ACEOF 17461 17462fi 17463 17464ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 17465if test "x$ac_cv_type_pid_t" = xyes; then : 17466 17467else 17468 17469cat >>confdefs.h <<_ACEOF 17470#define pid_t int 17471_ACEOF 17472 17473fi 17474 17475ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 17476if test "x$ac_cv_type_size_t" = xyes; then : 17477 17478else 17479 17480cat >>confdefs.h <<_ACEOF 17481#define size_t unsigned int 17482_ACEOF 17483 17484fi 17485 17486 17487 17488 17489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5 17490$as_echo_n "checking for ssize_t... " >&6; } 17491if ${db_cv_ssize_t+:} false; then : 17492 $as_echo_n "(cached) " >&6 17493else 17494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17495/* end confdefs.h. */ 17496#include <sys/types.h> 17497int 17498main () 17499{ 17500ssize_t foo; 17501 ; 17502 return 0; 17503} 17504_ACEOF 17505if ac_fn_c_try_compile "$LINENO"; then : 17506 db_cv_ssize_t=yes 17507else 17508 db_cv_ssize_t=no 17509fi 17510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17511fi 17512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_ssize_t" >&5 17513$as_echo "$db_cv_ssize_t" >&6; } 17514if test "$db_cv_ssize_t" = no; then 17515 ssize_t_decl="typedef int ssize_t;" 17516fi 17517 17518 17519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_char" >&5 17520$as_echo_n "checking for u_char... " >&6; } 17521if ${db_cv_uchar+:} false; then : 17522 $as_echo_n "(cached) " >&6 17523else 17524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17525/* end confdefs.h. */ 17526#include <sys/types.h> 17527int 17528main () 17529{ 17530u_char foo; 17531 ; 17532 return 0; 17533} 17534_ACEOF 17535if ac_fn_c_try_compile "$LINENO"; then : 17536 db_cv_uchar=yes 17537else 17538 db_cv_uchar=no 17539fi 17540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17541fi 17542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_uchar" >&5 17543$as_echo "$db_cv_uchar" >&6; } 17544if test "$db_cv_uchar" = no; then 17545 u_char_decl="typedef unsigned char u_char;" 17546fi 17547 17548 17549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_short" >&5 17550$as_echo_n "checking for u_short... " >&6; } 17551if ${db_cv_ushort+:} false; then : 17552 $as_echo_n "(cached) " >&6 17553else 17554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17555/* end confdefs.h. */ 17556#include <sys/types.h> 17557int 17558main () 17559{ 17560u_short foo; 17561 ; 17562 return 0; 17563} 17564_ACEOF 17565if ac_fn_c_try_compile "$LINENO"; then : 17566 db_cv_ushort=yes 17567else 17568 db_cv_ushort=no 17569fi 17570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17571fi 17572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_ushort" >&5 17573$as_echo "$db_cv_ushort" >&6; } 17574if test "$db_cv_ushort" = no; then 17575 u_short_decl="typedef unsigned short u_short;" 17576fi 17577 17578 17579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int" >&5 17580$as_echo_n "checking for u_int... " >&6; } 17581if ${db_cv_uint+:} false; then : 17582 $as_echo_n "(cached) " >&6 17583else 17584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17585/* end confdefs.h. */ 17586#include <sys/types.h> 17587int 17588main () 17589{ 17590u_int foo; 17591 ; 17592 return 0; 17593} 17594_ACEOF 17595if ac_fn_c_try_compile "$LINENO"; then : 17596 db_cv_uint=yes 17597else 17598 db_cv_uint=no 17599fi 17600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17601fi 17602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_uint" >&5 17603$as_echo "$db_cv_uint" >&6; } 17604if test "$db_cv_uint" = no; then 17605 u_int_decl="typedef unsigned int u_int;" 17606fi 17607 17608 17609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_long" >&5 17610$as_echo_n "checking for u_long... " >&6; } 17611if ${db_cv_ulong+:} false; then : 17612 $as_echo_n "(cached) " >&6 17613else 17614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17615/* end confdefs.h. */ 17616#include <sys/types.h> 17617int 17618main () 17619{ 17620u_long foo; 17621 ; 17622 return 0; 17623} 17624_ACEOF 17625if ac_fn_c_try_compile "$LINENO"; then : 17626 db_cv_ulong=yes 17627else 17628 db_cv_ulong=no 17629fi 17630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17631fi 17632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_ulong" >&5 17633$as_echo "$db_cv_ulong" >&6; } 17634if test "$db_cv_ulong" = no; then 17635 u_long_decl="typedef unsigned long u_long;" 17636fi 17637 17638 17639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int8_t" >&5 17640$as_echo_n "checking for u_int8_t... " >&6; } 17641if ${db_cv_uint8+:} false; then : 17642 $as_echo_n "(cached) " >&6 17643else 17644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17645/* end confdefs.h. */ 17646#include <sys/types.h> 17647int 17648main () 17649{ 17650u_int8_t foo; 17651 ; 17652 return 0; 17653} 17654_ACEOF 17655if ac_fn_c_try_compile "$LINENO"; then : 17656 db_cv_uint8=yes 17657else 17658 if test "$cross_compiling" = yes; then : 17659 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17660$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17661as_fn_error $? "cannot run test program while cross compiling 17662See \`config.log' for more details" "$LINENO" 5; } 17663else 17664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17665/* end confdefs.h. */ 17666main(){exit(sizeof(unsigned char) != 1);} 17667_ACEOF 17668if ac_fn_c_try_run "$LINENO"; then : 17669 db_cv_uint8="unsigned char" 17670else 17671 db_cv_uint8=no 17672fi 17673rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17674 conftest.$ac_objext conftest.beam conftest.$ac_ext 17675fi 17676 17677fi 17678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17679fi 17680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_uint8" >&5 17681$as_echo "$db_cv_uint8" >&6; } 17682if test "$db_cv_uint8" = no; then 17683 as_fn_error $? "No unsigned 8-bit integral type." "$LINENO" 5 17684fi 17685if test "$db_cv_uint8" != yes; then 17686 u_int8_decl="typedef $db_cv_uint8 u_int8_t;" 17687fi 17688 17689 17690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int16_t" >&5 17691$as_echo_n "checking for u_int16_t... " >&6; } 17692if ${db_cv_uint16+:} false; then : 17693 $as_echo_n "(cached) " >&6 17694else 17695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17696/* end confdefs.h. */ 17697#include <sys/types.h> 17698int 17699main () 17700{ 17701u_int16_t foo; 17702 ; 17703 return 0; 17704} 17705_ACEOF 17706if ac_fn_c_try_compile "$LINENO"; then : 17707 db_cv_uint16=yes 17708else 17709 if test "$cross_compiling" = yes; then : 17710 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17711$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17712as_fn_error $? "cannot run test program while cross compiling 17713See \`config.log' for more details" "$LINENO" 5; } 17714else 17715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17716/* end confdefs.h. */ 17717main(){exit(sizeof(unsigned short) != 2);} 17718_ACEOF 17719if ac_fn_c_try_run "$LINENO"; then : 17720 db_cv_uint16="unsigned short" 17721else 17722 if test "$cross_compiling" = yes; then : 17723 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17724$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17725as_fn_error $? "cannot run test program while cross compiling 17726See \`config.log' for more details" "$LINENO" 5; } 17727else 17728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17729/* end confdefs.h. */ 17730main(){exit(sizeof(unsigned int) != 2);} 17731_ACEOF 17732if ac_fn_c_try_run "$LINENO"; then : 17733 db_cv_uint16="unsigned int" 17734else 17735 db_cv_uint16=no 17736fi 17737rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17738 conftest.$ac_objext conftest.beam conftest.$ac_ext 17739fi 17740 17741fi 17742rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17743 conftest.$ac_objext conftest.beam conftest.$ac_ext 17744fi 17745 17746fi 17747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17748fi 17749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_uint16" >&5 17750$as_echo "$db_cv_uint16" >&6; } 17751if test "$db_cv_uint16" = no; then 17752 as_fn_error $? "No unsigned 16-bit integral type." "$LINENO" 5 17753fi 17754if test "$db_cv_uint16" != yes; then 17755 u_int16_decl="typedef $db_cv_uint16 u_int16_t;" 17756fi 17757 17758 17759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int16_t" >&5 17760$as_echo_n "checking for int16_t... " >&6; } 17761if ${db_cv_int16+:} false; then : 17762 $as_echo_n "(cached) " >&6 17763else 17764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17765/* end confdefs.h. */ 17766#include <sys/types.h> 17767int 17768main () 17769{ 17770int16_t foo; 17771 ; 17772 return 0; 17773} 17774_ACEOF 17775if ac_fn_c_try_compile "$LINENO"; then : 17776 db_cv_int16=yes 17777else 17778 if test "$cross_compiling" = yes; then : 17779 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17780$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17781as_fn_error $? "cannot run test program while cross compiling 17782See \`config.log' for more details" "$LINENO" 5; } 17783else 17784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17785/* end confdefs.h. */ 17786main(){exit(sizeof(short) != 2);} 17787_ACEOF 17788if ac_fn_c_try_run "$LINENO"; then : 17789 db_cv_int16="short" 17790else 17791 if test "$cross_compiling" = yes; then : 17792 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17793$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17794as_fn_error $? "cannot run test program while cross compiling 17795See \`config.log' for more details" "$LINENO" 5; } 17796else 17797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17798/* end confdefs.h. */ 17799main(){exit(sizeof(int) != 2);} 17800_ACEOF 17801if ac_fn_c_try_run "$LINENO"; then : 17802 db_cv_int16="int" 17803else 17804 db_cv_int16=no 17805fi 17806rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17807 conftest.$ac_objext conftest.beam conftest.$ac_ext 17808fi 17809 17810fi 17811rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17812 conftest.$ac_objext conftest.beam conftest.$ac_ext 17813fi 17814 17815fi 17816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17817fi 17818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_int16" >&5 17819$as_echo "$db_cv_int16" >&6; } 17820if test "$db_cv_int16" = no; then 17821 as_fn_error $? "No signed 16-bit integral type." "$LINENO" 5 17822fi 17823if test "$db_cv_int16" != yes; then 17824 int16_decl="typedef $db_cv_int16 int16_t;" 17825fi 17826 17827 17828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int32_t" >&5 17829$as_echo_n "checking for u_int32_t... " >&6; } 17830if ${db_cv_uint32+:} false; then : 17831 $as_echo_n "(cached) " >&6 17832else 17833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17834/* end confdefs.h. */ 17835#include <sys/types.h> 17836int 17837main () 17838{ 17839u_int32_t foo; 17840 ; 17841 return 0; 17842} 17843_ACEOF 17844if ac_fn_c_try_compile "$LINENO"; then : 17845 db_cv_uint32=yes 17846else 17847 if test "$cross_compiling" = yes; then : 17848 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17849$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17850as_fn_error $? "cannot run test program while cross compiling 17851See \`config.log' for more details" "$LINENO" 5; } 17852else 17853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17854/* end confdefs.h. */ 17855main(){exit(sizeof(unsigned int) != 4);} 17856_ACEOF 17857if ac_fn_c_try_run "$LINENO"; then : 17858 db_cv_uint32="unsigned int" 17859else 17860 if test "$cross_compiling" = yes; then : 17861 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17862$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17863as_fn_error $? "cannot run test program while cross compiling 17864See \`config.log' for more details" "$LINENO" 5; } 17865else 17866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17867/* end confdefs.h. */ 17868main(){exit(sizeof(unsigned long) != 4);} 17869_ACEOF 17870if ac_fn_c_try_run "$LINENO"; then : 17871 db_cv_uint32="unsigned long" 17872else 17873 db_cv_uint32=no 17874fi 17875rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17876 conftest.$ac_objext conftest.beam conftest.$ac_ext 17877fi 17878 17879fi 17880rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17881 conftest.$ac_objext conftest.beam conftest.$ac_ext 17882fi 17883 17884fi 17885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17886fi 17887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_uint32" >&5 17888$as_echo "$db_cv_uint32" >&6; } 17889if test "$db_cv_uint32" = no; then 17890 as_fn_error $? "No unsigned 32-bit integral type." "$LINENO" 5 17891fi 17892if test "$db_cv_uint32" != yes; then 17893 u_int32_decl="typedef $db_cv_uint32 u_int32_t;" 17894fi 17895 17896 17897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int32_t" >&5 17898$as_echo_n "checking for int32_t... " >&6; } 17899if ${db_cv_int32+:} false; then : 17900 $as_echo_n "(cached) " >&6 17901else 17902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17903/* end confdefs.h. */ 17904#include <sys/types.h> 17905int 17906main () 17907{ 17908int32_t foo; 17909 ; 17910 return 0; 17911} 17912_ACEOF 17913if ac_fn_c_try_compile "$LINENO"; then : 17914 db_cv_int32=yes 17915else 17916 if test "$cross_compiling" = yes; then : 17917 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17918$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17919as_fn_error $? "cannot run test program while cross compiling 17920See \`config.log' for more details" "$LINENO" 5; } 17921else 17922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17923/* end confdefs.h. */ 17924main(){exit(sizeof(int) != 4);} 17925_ACEOF 17926if ac_fn_c_try_run "$LINENO"; then : 17927 db_cv_int32="int" 17928else 17929 if test "$cross_compiling" = yes; then : 17930 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17931$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17932as_fn_error $? "cannot run test program while cross compiling 17933See \`config.log' for more details" "$LINENO" 5; } 17934else 17935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17936/* end confdefs.h. */ 17937main(){exit(sizeof(long) != 4);} 17938_ACEOF 17939if ac_fn_c_try_run "$LINENO"; then : 17940 db_cv_int32="long" 17941else 17942 db_cv_int32=no 17943fi 17944rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17945 conftest.$ac_objext conftest.beam conftest.$ac_ext 17946fi 17947 17948fi 17949rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17950 conftest.$ac_objext conftest.beam conftest.$ac_ext 17951fi 17952 17953fi 17954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17955fi 17956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_int32" >&5 17957$as_echo "$db_cv_int32" >&6; } 17958if test "$db_cv_int32" = no; then 17959 as_fn_error $? "No signed 32-bit integral type." "$LINENO" 5 17960fi 17961if test "$db_cv_int32" != yes; then 17962 int32_decl="typedef $db_cv_int32 int32_t;" 17963fi 17964 17965 17966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for largest integral type" >&5 17967$as_echo_n "checking for largest integral type... " >&6; } 17968if ${db_cv_align_t+:} false; then : 17969 $as_echo_n "(cached) " >&6 17970else 17971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17972/* end confdefs.h. */ 17973#include <sys/types.h> 17974int 17975main () 17976{ 17977long long foo; 17978 ; 17979 return 0; 17980} 17981_ACEOF 17982if ac_fn_c_try_compile "$LINENO"; then : 17983 db_cv_align_t="unsigned long long" 17984else 17985 db_cv_align_t="unsigned long" 17986fi 17987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17988fi 17989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_align_t" >&5 17990$as_echo "$db_cv_align_t" >&6; } 17991db_align_t_decl="typedef $db_cv_align_t db_align_t;" 17992 17993 17994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for integral type equal to pointer size" >&5 17995$as_echo_n "checking for integral type equal to pointer size... " >&6; } 17996if ${db_cv_alignp_t+:} false; then : 17997 $as_echo_n "(cached) " >&6 17998else 17999 db_cv_alignp_t=$db_cv_align_t 18000if test "$cross_compiling" = yes; then : 18001 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18002$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18003as_fn_error $? "cannot run test program while cross compiling 18004See \`config.log' for more details" "$LINENO" 5; } 18005else 18006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18007/* end confdefs.h. */ 18008main(){exit(sizeof(unsigned int) != sizeof(char *));} 18009_ACEOF 18010if ac_fn_c_try_run "$LINENO"; then : 18011 db_cv_alignp_t="unsigned int" 18012fi 18013rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18014 conftest.$ac_objext conftest.beam conftest.$ac_ext 18015fi 18016 18017if test "$cross_compiling" = yes; then : 18018 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18019$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18020as_fn_error $? "cannot run test program while cross compiling 18021See \`config.log' for more details" "$LINENO" 5; } 18022else 18023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18024/* end confdefs.h. */ 18025main(){exit(sizeof(unsigned long) != sizeof(char *));} 18026_ACEOF 18027if ac_fn_c_try_run "$LINENO"; then : 18028 db_cv_alignp_t="unsigned long" 18029fi 18030rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18031 conftest.$ac_objext conftest.beam conftest.$ac_ext 18032fi 18033 18034if test "$cross_compiling" = yes; then : 18035 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18036$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18037as_fn_error $? "cannot run test program while cross compiling 18038See \`config.log' for more details" "$LINENO" 5; } 18039else 18040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18041/* end confdefs.h. */ 18042main(){exit(sizeof(unsigned long long) != sizeof(char *));} 18043_ACEOF 18044if ac_fn_c_try_run "$LINENO"; then : 18045 db_cv_alignp_t="unsigned long long" 18046fi 18047rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18048 conftest.$ac_objext conftest.beam conftest.$ac_ext 18049fi 18050 18051fi 18052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_alignp_t" >&5 18053$as_echo "$db_cv_alignp_t" >&6; } 18054db_alignp_t_decl="typedef $db_cv_alignp_t db_alignp_t;" 18055 18056 18057 18058ac_header_dirent=no 18059for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 18060 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 18061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 18062$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 18063if eval \${$as_ac_Header+:} false; then : 18064 $as_echo_n "(cached) " >&6 18065else 18066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18067/* end confdefs.h. */ 18068#include <sys/types.h> 18069#include <$ac_hdr> 18070 18071int 18072main () 18073{ 18074if ((DIR *) 0) 18075return 0; 18076 ; 18077 return 0; 18078} 18079_ACEOF 18080if ac_fn_c_try_compile "$LINENO"; then : 18081 eval "$as_ac_Header=yes" 18082else 18083 eval "$as_ac_Header=no" 18084fi 18085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18086fi 18087eval ac_res=\$$as_ac_Header 18088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18089$as_echo "$ac_res" >&6; } 18090if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18091 cat >>confdefs.h <<_ACEOF 18092#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 18093_ACEOF 18094 18095ac_header_dirent=$ac_hdr; break 18096fi 18097 18098done 18099# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 18100if test $ac_header_dirent = dirent.h; then 18101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 18102$as_echo_n "checking for library containing opendir... " >&6; } 18103if ${ac_cv_search_opendir+:} false; then : 18104 $as_echo_n "(cached) " >&6 18105else 18106 ac_func_search_save_LIBS=$LIBS 18107cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18108/* end confdefs.h. */ 18109 18110/* Override any GCC internal prototype to avoid an error. 18111 Use char because int might match the return type of a GCC 18112 builtin and then its argument prototype would still apply. */ 18113#ifdef __cplusplus 18114extern "C" 18115#endif 18116char opendir (); 18117int 18118main () 18119{ 18120return opendir (); 18121 ; 18122 return 0; 18123} 18124_ACEOF 18125for ac_lib in '' dir; do 18126 if test -z "$ac_lib"; then 18127 ac_res="none required" 18128 else 18129 ac_res=-l$ac_lib 18130 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18131 fi 18132 if ac_fn_c_try_link "$LINENO"; then : 18133 ac_cv_search_opendir=$ac_res 18134fi 18135rm -f core conftest.err conftest.$ac_objext \ 18136 conftest$ac_exeext 18137 if ${ac_cv_search_opendir+:} false; then : 18138 break 18139fi 18140done 18141if ${ac_cv_search_opendir+:} false; then : 18142 18143else 18144 ac_cv_search_opendir=no 18145fi 18146rm conftest.$ac_ext 18147LIBS=$ac_func_search_save_LIBS 18148fi 18149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 18150$as_echo "$ac_cv_search_opendir" >&6; } 18151ac_res=$ac_cv_search_opendir 18152if test "$ac_res" != no; then : 18153 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18154 18155fi 18156 18157else 18158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 18159$as_echo_n "checking for library containing opendir... " >&6; } 18160if ${ac_cv_search_opendir+:} false; then : 18161 $as_echo_n "(cached) " >&6 18162else 18163 ac_func_search_save_LIBS=$LIBS 18164cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18165/* end confdefs.h. */ 18166 18167/* Override any GCC internal prototype to avoid an error. 18168 Use char because int might match the return type of a GCC 18169 builtin and then its argument prototype would still apply. */ 18170#ifdef __cplusplus 18171extern "C" 18172#endif 18173char opendir (); 18174int 18175main () 18176{ 18177return opendir (); 18178 ; 18179 return 0; 18180} 18181_ACEOF 18182for ac_lib in '' x; do 18183 if test -z "$ac_lib"; then 18184 ac_res="none required" 18185 else 18186 ac_res=-l$ac_lib 18187 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18188 fi 18189 if ac_fn_c_try_link "$LINENO"; then : 18190 ac_cv_search_opendir=$ac_res 18191fi 18192rm -f core conftest.err conftest.$ac_objext \ 18193 conftest$ac_exeext 18194 if ${ac_cv_search_opendir+:} false; then : 18195 break 18196fi 18197done 18198if ${ac_cv_search_opendir+:} false; then : 18199 18200else 18201 ac_cv_search_opendir=no 18202fi 18203rm conftest.$ac_ext 18204LIBS=$ac_func_search_save_LIBS 18205fi 18206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 18207$as_echo "$ac_cv_search_opendir" >&6; } 18208ac_res=$ac_cv_search_opendir 18209if test "$ac_res" != no; then : 18210 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18211 18212fi 18213 18214fi 18215 18216for ac_header in sys/select.h 18217do : 18218 ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default" 18219if test "x$ac_cv_header_sys_select_h" = xyes; then : 18220 cat >>confdefs.h <<_ACEOF 18221#define HAVE_SYS_SELECT_H 1 18222_ACEOF 18223 18224fi 18225 18226done 18227 18228for ac_header in sys/time.h 18229do : 18230 ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" 18231if test "x$ac_cv_header_sys_time_h" = xyes; then : 18232 cat >>confdefs.h <<_ACEOF 18233#define HAVE_SYS_TIME_H 1 18234_ACEOF 18235 18236fi 18237 18238done 18239 18240 18241 18242 18243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mutexes" >&5 18244$as_echo_n "checking for mutexes... " >&6; } 18245if ${db_cv_mutex+:} false; then : 18246 $as_echo_n "(cached) " >&6 18247else 18248 db_cv_mutex=no 18249 18250orig_libs=$LIBS 18251 18252if test "$db_cv_posixmutexes" = yes; then 18253 db_cv_mutex="POSIX/pthreads/library" 18254fi 18255 18256if test "$db_cv_uimutexes" = yes; then 18257 db_cv_mutex="UI/threads/library" 18258fi 18259 18260if test "$db_cv_mutex" = no; then 18261if test "$cross_compiling" = yes; then : 18262 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18263$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18264as_fn_error $? "cannot run test program while cross compiling 18265See \`config.log' for more details" "$LINENO" 5; } 18266else 18267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18268/* end confdefs.h. */ 18269 18270#include <synch.h> 18271main(){ 18272 static lwp_mutex_t mi = SHAREDMUTEX; 18273 static lwp_cond_t ci = SHAREDCV; 18274 lwp_mutex_t mutex = mi; 18275 lwp_cond_t cond = ci; 18276 exit ( 18277 _lwp_mutex_lock(&mutex) || 18278 _lwp_mutex_unlock(&mutex)); 18279} 18280_ACEOF 18281if ac_fn_c_try_run "$LINENO"; then : 18282 db_cv_mutex="Solaris/lwp" 18283fi 18284rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18285 conftest.$ac_objext conftest.beam conftest.$ac_ext 18286fi 18287 18288fi 18289 18290if test "$db_cv_mutex" = no; then 18291LIBS="-lthread $LIBS" 18292if test "$cross_compiling" = yes; then : 18293 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18294$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18295as_fn_error $? "cannot run test program while cross compiling 18296See \`config.log' for more details" "$LINENO" 5; } 18297else 18298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18299/* end confdefs.h. */ 18300 18301#include <thread.h> 18302#include <synch.h> 18303main(){ 18304 mutex_t mutex; 18305 cond_t cond; 18306 int type = USYNC_PROCESS; 18307 exit ( 18308 mutex_init(&mutex, type, NULL) || 18309 cond_init(&cond, type, NULL) || 18310 mutex_lock(&mutex) || 18311 mutex_unlock(&mutex)); 18312} 18313_ACEOF 18314if ac_fn_c_try_run "$LINENO"; then : 18315 db_cv_mutex="UI/threads/library" 18316fi 18317rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18318 conftest.$ac_objext conftest.beam conftest.$ac_ext 18319fi 18320 18321LIBS="$orig_libs" 18322fi 18323if test "$db_cv_mutex" = no; then 18324if test "$cross_compiling" = yes; then : 18325 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18326$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18327as_fn_error $? "cannot run test program while cross compiling 18328See \`config.log' for more details" "$LINENO" 5; } 18329else 18330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18331/* end confdefs.h. */ 18332 18333#include <thread.h> 18334#include <synch.h> 18335main(){ 18336 mutex_t mutex; 18337 cond_t cond; 18338 int type = USYNC_PROCESS; 18339 exit ( 18340 mutex_init(&mutex, type, NULL) || 18341 cond_init(&cond, type, NULL) || 18342 mutex_lock(&mutex) || 18343 mutex_unlock(&mutex)); 18344} 18345_ACEOF 18346if ac_fn_c_try_run "$LINENO"; then : 18347 db_cv_mutex="UI/threads" 18348fi 18349rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18350 conftest.$ac_objext conftest.beam conftest.$ac_ext 18351fi 18352 18353fi 18354 18355if test "$db_cv_mutex" = no; then 18356if test "$cross_compiling" = yes; then : 18357 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18358$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18359as_fn_error $? "cannot run test program while cross compiling 18360See \`config.log' for more details" "$LINENO" 5; } 18361else 18362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18363/* end confdefs.h. */ 18364 18365#include <pthread.h> 18366main(){ 18367 pthread_cond_t cond; 18368 pthread_mutex_t mutex; 18369 pthread_condattr_t condattr; 18370 pthread_mutexattr_t mutexattr; 18371 exit ( 18372 pthread_condattr_init(&condattr) || 18373 pthread_condattr_setpshared(&condattr, PTHREAD_PROCESS_SHARED) || 18374 pthread_mutexattr_init(&mutexattr) || 18375 pthread_mutexattr_setpshared(&mutexattr, PTHREAD_PROCESS_SHARED) || 18376 pthread_cond_init(&cond, &condattr) || 18377 pthread_mutex_init(&mutex, &mutexattr) || 18378 pthread_mutex_lock(&mutex) || 18379 pthread_mutex_unlock(&mutex) || 18380 pthread_mutex_destroy(&mutex) || 18381 pthread_cond_destroy(&cond) || 18382 pthread_condattr_destroy(&condattr) || 18383 pthread_mutexattr_destroy(&mutexattr)); 18384} 18385_ACEOF 18386if ac_fn_c_try_run "$LINENO"; then : 18387 db_cv_mutex="POSIX/pthreads" 18388fi 18389rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18390 conftest.$ac_objext conftest.beam conftest.$ac_ext 18391fi 18392 18393fi 18394if test "$db_cv_mutex" = no; then 18395LIBS="-lpthread $LIBS" 18396if test "$cross_compiling" = yes; then : 18397 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18398$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18399as_fn_error $? "cannot run test program while cross compiling 18400See \`config.log' for more details" "$LINENO" 5; } 18401else 18402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18403/* end confdefs.h. */ 18404 18405#include <pthread.h> 18406main(){ 18407 pthread_cond_t cond; 18408 pthread_mutex_t mutex; 18409 pthread_condattr_t condattr; 18410 pthread_mutexattr_t mutexattr; 18411 exit ( 18412 pthread_condattr_init(&condattr) || 18413 pthread_condattr_setpshared(&condattr, PTHREAD_PROCESS_SHARED) || 18414 pthread_mutexattr_init(&mutexattr) || 18415 pthread_mutexattr_setpshared(&mutexattr, PTHREAD_PROCESS_SHARED) || 18416 pthread_cond_init(&cond, &condattr) || 18417 pthread_mutex_init(&mutex, &mutexattr) || 18418 pthread_mutex_lock(&mutex) || 18419 pthread_mutex_unlock(&mutex) || 18420 pthread_mutex_destroy(&mutex) || 18421 pthread_cond_destroy(&cond) || 18422 pthread_condattr_destroy(&condattr) || 18423 pthread_mutexattr_destroy(&mutexattr)); 18424} 18425_ACEOF 18426if ac_fn_c_try_run "$LINENO"; then : 18427 db_cv_mutex="POSIX/pthreads/library" 18428fi 18429rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18430 conftest.$ac_objext conftest.beam conftest.$ac_ext 18431fi 18432 18433LIBS="$orig_libs" 18434fi 18435 18436if test "$db_cv_mutex" = no; then 18437if test "$cross_compiling" = yes; then : 18438 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18439$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18440as_fn_error $? "cannot run test program while cross compiling 18441See \`config.log' for more details" "$LINENO" 5; } 18442else 18443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18444/* end confdefs.h. */ 18445 18446#include <sys/mman.h> 18447main(){ 18448#if defined(__hppa) 18449 typedef msemaphore tsl_t; 18450 msemaphore x; 18451 msem_init(&x, 0); 18452 msem_lock(&x, 0); 18453 msem_unlock(&x, 0); 18454 exit(0); 18455#else 18456 exit(1); 18457#endif 18458} 18459_ACEOF 18460if ac_fn_c_try_run "$LINENO"; then : 18461 db_cv_mutex="HP/msem_init" 18462fi 18463rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18464 conftest.$ac_objext conftest.beam conftest.$ac_ext 18465fi 18466 18467fi 18468 18469if test "$db_cv_mutex" = no; then 18470if test "$cross_compiling" = yes; then : 18471 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18472$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18473as_fn_error $? "cannot run test program while cross compiling 18474See \`config.log' for more details" "$LINENO" 5; } 18475else 18476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18477/* end confdefs.h. */ 18478 18479#include <sys/types.h> 18480#include <sys/mman.h>; 18481main(){ 18482 typedef msemaphore tsl_t; 18483 msemaphore x; 18484 msem_init(&x, 0); 18485 msem_lock(&x, 0); 18486 msem_unlock(&x, 0); 18487 exit(0); 18488} 18489_ACEOF 18490if ac_fn_c_try_run "$LINENO"; then : 18491 db_cv_mutex="UNIX/msem_init" 18492fi 18493rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18494 conftest.$ac_objext conftest.beam conftest.$ac_ext 18495fi 18496 18497fi 18498 18499if test "$db_cv_mutex" = no; then 18500LIBS="$LIBS -lmproc" 18501cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18502/* end confdefs.h. */ 18503#include <ulocks.h> 18504int 18505main () 18506{ 18507typedef spinlock_t tsl_t; 18508spinlock_t x; initspin(&x, 1); cspinlock(&x); spinunlock(&x); 18509 ; 18510 return 0; 18511} 18512_ACEOF 18513if ac_fn_c_try_link "$LINENO"; then : 18514 db_cv_mutex="ReliantUNIX/initspin" 18515fi 18516rm -f core conftest.err conftest.$ac_objext \ 18517 conftest$ac_exeext conftest.$ac_ext 18518LIBS="$orig_libs" 18519fi 18520 18521if test "$db_cv_mutex" = no; then 18522if test "$cross_compiling" = yes; then : 18523 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18524$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18525as_fn_error $? "cannot run test program while cross compiling 18526See \`config.log' for more details" "$LINENO" 5; } 18527else 18528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18529/* end confdefs.h. */ 18530 18531main(){ 18532#if defined(__USLC__) 18533 exit(0); 18534#endif 18535 exit(1); 18536} 18537_ACEOF 18538if ac_fn_c_try_run "$LINENO"; then : 18539 db_cv_mutex="SCO/x86/cc-assembly" 18540fi 18541rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18542 conftest.$ac_objext conftest.beam conftest.$ac_ext 18543fi 18544 18545fi 18546 18547if test "$db_cv_mutex" = no; then 18548cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18549/* end confdefs.h. */ 18550#include <abi_mutex.h> 18551int 18552main () 18553{ 18554typedef abilock_t tsl_t; 18555abilock_t x; init_lock(&x); acquire_lock(&x); release_lock(&x); 18556 ; 18557 return 0; 18558} 18559_ACEOF 18560if ac_fn_c_try_link "$LINENO"; then : 18561 db_cv_mutex="SGI/init_lock" 18562fi 18563rm -f core conftest.err conftest.$ac_objext \ 18564 conftest$ac_exeext conftest.$ac_ext 18565fi 18566 18567if test "$db_cv_mutex" = DOESNT_WORK; then 18568cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18569/* end confdefs.h. */ 18570#include <synch.h> 18571int 18572main () 18573{ 18574typedef sema_t tsl_t; 18575 sema_t x; 18576 sema_init(&x, 1, USYNC_PROCESS, NULL); sema_wait(&x); sema_post(&x); 18577 ; 18578 return 0; 18579} 18580_ACEOF 18581if ac_fn_c_try_link "$LINENO"; then : 18582 db_cv_mutex="UNIX/sema_init" 18583fi 18584rm -f core conftest.err conftest.$ac_objext \ 18585 conftest$ac_exeext conftest.$ac_ext 18586fi 18587 18588if test "$db_cv_mutex" = no; then 18589cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18590/* end confdefs.h. */ 18591#include <sys/machlock.h> 18592int 18593main () 18594{ 18595typedef lock_t tsl_t; 18596 lock_t x; 18597 _lock_try(&x); _lock_clear(&x); 18598 ; 18599 return 0; 18600} 18601_ACEOF 18602if ac_fn_c_try_link "$LINENO"; then : 18603 db_cv_mutex="Solaris/_lock_try" 18604fi 18605rm -f core conftest.err conftest.$ac_objext \ 18606 conftest$ac_exeext conftest.$ac_ext 18607fi 18608 18609if test "$db_cv_mutex" = no; then 18610cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18611/* end confdefs.h. */ 18612#include <sys/atomic_op.h> 18613int 18614main () 18615{ 18616int x; _check_lock(&x,0,1); _clear_lock(&x,0); 18617 ; 18618 return 0; 18619} 18620_ACEOF 18621if ac_fn_c_try_link "$LINENO"; then : 18622 db_cv_mutex="AIX/_check_lock" 18623fi 18624rm -f core conftest.err conftest.$ac_objext \ 18625 conftest$ac_exeext conftest.$ac_ext 18626fi 18627 18628if test "$db_cv_mutex" = DOESNT_WORK; then 18629if test "$cross_compiling" = yes; then : 18630 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18631$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18632as_fn_error $? "cannot run test program while cross compiling 18633See \`config.log' for more details" "$LINENO" 5; } 18634else 18635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18636/* end confdefs.h. */ 18637main(){ 18638#if defined(__alpha) 18639#if defined(__GNUC__) 18640exit(0); 18641#endif 18642#endif 18643exit(1);} 18644_ACEOF 18645if ac_fn_c_try_run "$LINENO"; then : 18646 db_cv_mutex="ALPHA/gcc-assembly" 18647fi 18648rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18649 conftest.$ac_objext conftest.beam conftest.$ac_ext 18650fi 18651 18652fi 18653 18654if test "$db_cv_mutex" = no; then 18655if test "$cross_compiling" = yes; then : 18656 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18657$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18658as_fn_error $? "cannot run test program while cross compiling 18659See \`config.log' for more details" "$LINENO" 5; } 18660else 18661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18662/* end confdefs.h. */ 18663main(){ 18664#if defined(__hppa) 18665#if defined(__GNUC__) 18666exit(0); 18667#endif 18668#endif 18669exit(1);} 18670_ACEOF 18671if ac_fn_c_try_run "$LINENO"; then : 18672 db_cv_mutex="HPPA/gcc-assembly" 18673fi 18674rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18675 conftest.$ac_objext conftest.beam conftest.$ac_ext 18676fi 18677 18678fi 18679 18680if test "$db_cv_mutex" = DOESNT_WORK; then 18681if test "$cross_compiling" = yes; then : 18682 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18683$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18684as_fn_error $? "cannot run test program while cross compiling 18685See \`config.log' for more details" "$LINENO" 5; } 18686else 18687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18688/* end confdefs.h. */ 18689main(){ 18690#if defined(__sparc__) 18691#if defined(__GNUC__) 18692 exit(0); 18693#endif 18694#endif 18695 exit(1); 18696} 18697_ACEOF 18698if ac_fn_c_try_run "$LINENO"; then : 18699 db_cv_mutex="Sparc/gcc-assembly" 18700fi 18701rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18702 conftest.$ac_objext conftest.beam conftest.$ac_ext 18703fi 18704 18705fi 18706 18707if test "$db_cv_mutex" = no; then 18708if test "$cross_compiling" = yes; then : 18709 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18710$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18711as_fn_error $? "cannot run test program while cross compiling 18712See \`config.log' for more details" "$LINENO" 5; } 18713else 18714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18715/* end confdefs.h. */ 18716main(){ 18717#if (defined(mc68020) || defined(sun3)) 18718#if defined(__GNUC__) 18719 exit(0); 18720#endif 18721#endif 18722 exit(1); 18723} 18724_ACEOF 18725if ac_fn_c_try_run "$LINENO"; then : 18726 db_cv_mutex="68K/gcc-assembly" 18727fi 18728rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18729 conftest.$ac_objext conftest.beam conftest.$ac_ext 18730fi 18731 18732fi 18733 18734if test "$db_cv_mutex" = no; then 18735if test "$cross_compiling" = yes; then : 18736 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18737$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18738as_fn_error $? "cannot run test program while cross compiling 18739See \`config.log' for more details" "$LINENO" 5; } 18740else 18741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18742/* end confdefs.h. */ 18743main(){ 18744#if defined(i386) 18745#if defined(__GNUC__) 18746 exit(0); 18747#endif 18748#endif 18749 exit(1); 18750} 18751_ACEOF 18752if ac_fn_c_try_run "$LINENO"; then : 18753 db_cv_mutex="x86/gcc-assembly" 18754fi 18755rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18756 conftest.$ac_objext conftest.beam conftest.$ac_ext 18757fi 18758 18759fi 18760 18761if test "$db_cv_mutex" = no; then 18762if test "$cross_compiling" = yes; then : 18763 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18764$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18765as_fn_error $? "cannot run test program while cross compiling 18766See \`config.log' for more details" "$LINENO" 5; } 18767else 18768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18769/* end confdefs.h. */ 18770main(){ 18771#if defined(__ia64) 18772#if defined(__GNUC__) 18773 exit(0); 18774#endif 18775#endif 18776 exit(1); 18777} 18778_ACEOF 18779if ac_fn_c_try_run "$LINENO"; then : 18780 db_cv_mutex="ia64/gcc-assembly" 18781fi 18782rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18783 conftest.$ac_objext conftest.beam conftest.$ac_ext 18784fi 18785 18786fi 18787 18788if test "$db_cv_mutex" = no; then 18789if test "$cross_compiling" = yes; then : 18790 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18791$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18792as_fn_error $? "cannot run test program while cross compiling 18793See \`config.log' for more details" "$LINENO" 5; } 18794else 18795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18796/* end confdefs.h. */ 18797main(){ 18798#if defined(_UTS) 18799 exit(0); 18800#endif 18801 exit(1); 18802} 18803_ACEOF 18804if ac_fn_c_try_run "$LINENO"; then : 18805 db_cv_mutex="UTS/cc-assembly" 18806fi 18807rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18808 conftest.$ac_objext conftest.beam conftest.$ac_ext 18809fi 18810 18811fi 18812 18813fi 18814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_mutex" >&5 18815$as_echo "$db_cv_mutex" >&6; } 18816 18817if test "$db_cv_mutex" = no; then 18818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: THREAD MUTEXES NOT AVAILABLE FOR THIS COMPILER/ARCHITECTURE." >&5 18819$as_echo "$as_me: WARNING: THREAD MUTEXES NOT AVAILABLE FOR THIS COMPILER/ARCHITECTURE." >&2;} 18820 18821$as_echo "#define HAVE_MUTEX_FCNTL /**/" >>confdefs.h 18822 18823else 18824 18825$as_echo "#define HAVE_MUTEX_THREADS /**/" >>confdefs.h 18826 18827fi 18828 18829case "$db_cv_mutex" in 1883068K/gcc-assembly) 18831$as_echo "#define HAVE_MUTEX_TAS /**/" >>confdefs.h 18832 18833 18834$as_echo "#define HAVE_MUTEX_68K_GCC_ASSEMBLY /**/" >>confdefs.h 18835;; 18836AIX/_check_lock) 18837$as_echo "#define HAVE_MUTEX_TAS /**/" >>confdefs.h 18838 18839 18840$as_echo "#define HAVE_MUTEX_AIX_CHECK_LOCK /**/" >>confdefs.h 18841;; 18842ALPHA/gcc-assembly) 18843$as_echo "#define HAVE_MUTEX_TAS /**/" >>confdefs.h 18844 18845 18846$as_echo "#define HAVE_MUTEX_ALPHA_GCC_ASSEMBLY /**/" >>confdefs.h 18847;; 18848HP/msem_init) 18849$as_echo "#define HAVE_MUTEX_TAS /**/" >>confdefs.h 18850 18851 18852$as_echo "#define HAVE_MUTEX_HPPA_MSEM_INIT /**/" >>confdefs.h 18853;; 18854HPPA/gcc-assembly) 18855$as_echo "#define HAVE_MUTEX_TAS /**/" >>confdefs.h 18856 18857 18858$as_echo "#define HAVE_MUTEX_HPPA_GCC_ASSEMBLY /**/" >>confdefs.h 18859;; 18860ia64/gcc-assembly) 18861$as_echo "#define HAVE_MUTEX_TAS /**/" >>confdefs.h 18862 18863 18864$as_echo "#define HAVE_MUTEX_IA64_GCC_ASSEMBLY /**/" >>confdefs.h 18865;; 18866POSIX/pthreads) 18867$as_echo "#define HAVE_MUTEX_PTHREAD /**/" >>confdefs.h 18868 18869 18870$as_echo "#define HAVE_MUTEX_PTHREADS /**/" >>confdefs.h 18871;; 18872POSIX/pthreads/library) LIBS="-lpthread $LIBS" 18873 18874$as_echo "#define HAVE_MUTEX_PTHREAD /**/" >>confdefs.h 18875 18876 18877$as_echo "#define HAVE_MUTEX_PTHREADS /**/" >>confdefs.h 18878;; 18879ReliantUNIX/initspin) LIBS="$LIBS -lmproc" 18880 18881$as_echo "#define HAVE_MUTEX_TAS /**/" >>confdefs.h 18882 18883 18884$as_echo "#define HAVE_MUTEX_RELIANTUNIX_INITSPIN /**/" >>confdefs.h 18885;; 18886SCO/x86/cc-assembly) 18887$as_echo "#define HAVE_MUTEX_TAS /**/" >>confdefs.h 18888 18889 18890$as_echo "#define HAVE_MUTEX_SCO_X86_CC_ASSEMBLY /**/" >>confdefs.h 18891;; 18892SGI/init_lock) 18893$as_echo "#define HAVE_MUTEX_TAS /**/" >>confdefs.h 18894 18895 18896$as_echo "#define HAVE_MUTEX_SGI_INIT_LOCK /**/" >>confdefs.h 18897;; 18898Solaris/_lock_try) 18899$as_echo "#define HAVE_MUTEX_TAS /**/" >>confdefs.h 18900 18901 18902$as_echo "#define HAVE_MUTEX_SOLARIS_LOCK_TRY /**/" >>confdefs.h 18903;; 18904Solaris/lwp) 18905$as_echo "#define HAVE_MUTEX_PTHREAD /**/" >>confdefs.h 18906 18907 18908$as_echo "#define HAVE_MUTEX_SOLARIS_LWP /**/" >>confdefs.h 18909;; 18910Sparc/gcc-assembly) 18911$as_echo "#define HAVE_MUTEX_TAS /**/" >>confdefs.h 18912 18913 18914$as_echo "#define HAVE_MUTEX_SPARC_GCC_ASSEMBLY /**/" >>confdefs.h 18915;; 18916UI/threads) 18917$as_echo "#define HAVE_MUTEX_PTHREAD /**/" >>confdefs.h 18918 18919 18920$as_echo "#define HAVE_MUTEX_UI_THREADS /**/" >>confdefs.h 18921;; 18922UI/threads/library) LIBS="-lthread $LIBS" 18923 18924$as_echo "#define HAVE_MUTEX_PTHREAD /**/" >>confdefs.h 18925 18926 18927$as_echo "#define HAVE_MUTEX_UI_THREADS /**/" >>confdefs.h 18928;; 18929UNIX/msem_init) 18930$as_echo "#define HAVE_MUTEX_TAS /**/" >>confdefs.h 18931 18932 18933$as_echo "#define HAVE_MUTEX_MSEM_INIT /**/" >>confdefs.h 18934;; 18935UNIX/sema_init) 18936$as_echo "#define HAVE_MUTEX_TAS /**/" >>confdefs.h 18937 18938 18939$as_echo "#define HAVE_MUTEX_SEMA_INIT /**/" >>confdefs.h 18940;; 18941UTS/cc-assembly) ADDITIONAL_OBJS="$ADDITIONAL_OBJS uts4.cc${o}" 18942 18943$as_echo "#define HAVE_MUTEX_UTS_CC_ASSEMBLY /**/" >>confdefs.h 18944;; 18945x86/gcc-assembly) 18946$as_echo "#define HAVE_MUTEX_TAS /**/" >>confdefs.h 18947 18948 18949$as_echo "#define HAVE_MUTEX_X86_GCC_ASSEMBLY /**/" >>confdefs.h 18950;; 18951esac 18952 18953 18954for ac_func in getuid pstat_getdynamic sysconf 18955do : 18956 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 18957ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 18958if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 18959 cat >>confdefs.h <<_ACEOF 18960#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 18961_ACEOF 18962 18963fi 18964done 18965 18966for ac_func in sched_yield yield 18967do : 18968 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 18969ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 18970if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 18971 cat >>confdefs.h <<_ACEOF 18972#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 18973_ACEOF 18974 18975fi 18976done 18977 18978 18979case "$host_os" in 18980hpux*|linux*) 18981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pread/pwrite interfaces ignored on $host_os." >&5 18982$as_echo "$as_me: WARNING: pread/pwrite interfaces ignored on $host_os." >&2;};; 18983*) for ac_func in pread pwrite 18984do : 18985 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 18986ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 18987if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 18988 cat >>confdefs.h <<_ACEOF 18989#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 18990_ACEOF 18991 18992fi 18993done 18994 18995esac 18996 18997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcntl/F_SETFD" >&5 18998$as_echo_n "checking for fcntl/F_SETFD... " >&6; } 18999if ${db_cv_fcntl_f_setfd+:} false; then : 19000 $as_echo_n "(cached) " >&6 19001else 19002 if test "$cross_compiling" = yes; then : 19003 : 19004else 19005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19006/* end confdefs.h. */ 19007 19008#include <sys/types.h> 19009#include <fcntl.h> 19010main(){exit(fcntl(1, F_SETFD, 1) == -1);} 19011_ACEOF 19012if ac_fn_c_try_run "$LINENO"; then : 19013 db_cv_fcntl_f_setfd=yes 19014else 19015 db_cv_fcntl_f_setfd=no 19016fi 19017rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19018 conftest.$ac_objext conftest.beam conftest.$ac_ext 19019fi 19020 19021fi 19022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_fcntl_f_setfd" >&5 19023$as_echo "$db_cv_fcntl_f_setfd" >&6; } 19024if test "$db_cv_fcntl_f_setfd" = yes; then 19025 19026$as_echo "#define HAVE_FCNTL_F_SETFD /**/" >>confdefs.h 19027 19028fi 19029 19030 19031for ac_func in qsort 19032do : 19033 ac_fn_c_check_func "$LINENO" "qsort" "ac_cv_func_qsort" 19034if test "x$ac_cv_func_qsort" = xyes; then : 19035 cat >>confdefs.h <<_ACEOF 19036#define HAVE_QSORT 1 19037_ACEOF 19038 19039else 19040 as_fn_error $? "No qsort library function." "$LINENO" 5 19041fi 19042done 19043 19044for ac_func in select 19045do : 19046 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select" 19047if test "x$ac_cv_func_select" = xyes; then : 19048 cat >>confdefs.h <<_ACEOF 19049#define HAVE_SELECT 1 19050_ACEOF 19051 19052else 19053 as_fn_error $? "No select library function." "$LINENO" 5 19054fi 19055done 19056 19057 19058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int type sprintf return value" >&5 19059$as_echo_n "checking for int type sprintf return value... " >&6; } 19060if ${db_cv_sprintf_count+:} false; then : 19061 $as_echo_n "(cached) " >&6 19062else 19063 if test "$cross_compiling" = yes; then : 19064 : 19065else 19066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19067/* end confdefs.h. */ 19068main(){char buf[20]; exit(sprintf(buf, "XXX") != 3);} 19069_ACEOF 19070if ac_fn_c_try_run "$LINENO"; then : 19071 db_cv_sprintf_count=yes 19072else 19073 db_cv_sprintf_count=no 19074fi 19075rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19076 conftest.$ac_objext conftest.beam conftest.$ac_ext 19077fi 19078 19079fi 19080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_cv_sprintf_count" >&5 19081$as_echo "$db_cv_sprintf_count" >&6; } 19082if test "$db_cv_sprintf_count" = no; then 19083 19084$as_echo "#define SPRINTF_RET_CHARPNT /**/" >>confdefs.h 19085 19086fi 19087 19088mmap_ok=no 19089case "$host_os" in 19090ultrix*) 19091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mmap(2) interface ignored on Ultrix." >&5 19092$as_echo "$as_me: WARNING: mmap(2) interface ignored on Ultrix." >&2;};; 19093bsdi*) 19094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mlock(2) interface ignored on BSD/OS." >&5 19095$as_echo "$as_me: WARNING: mlock(2) interface ignored on BSD/OS." >&2;} 19096 mmap_ok=yes 19097 for ac_func in mmap munmap 19098do : 19099 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 19100ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 19101if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 19102 cat >>confdefs.h <<_ACEOF 19103#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 19104_ACEOF 19105 19106else 19107 mmap_ok=no 19108fi 19109done 19110;; 19111*) 19112 mmap_ok=yes 19113 for ac_func in mlock munlock 19114do : 19115 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 19116ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 19117if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 19118 cat >>confdefs.h <<_ACEOF 19119#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 19120_ACEOF 19121 19122fi 19123done 19124 19125 for ac_func in mmap munmap 19126do : 19127 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 19128ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 19129if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 19130 cat >>confdefs.h <<_ACEOF 19131#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 19132_ACEOF 19133 19134else 19135 mmap_ok=no 19136fi 19137done 19138;; 19139esac 19140 19141shmget_ok=no 19142case "$host_os" in 19143sunos*) 19144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shmget(2) interface ignored on SunOS." >&5 19145$as_echo "$as_me: WARNING: shmget(2) interface ignored on SunOS." >&2;};; 19146*) 19147 shmget_ok=yes 19148 for ac_func in shmget 19149do : 19150 ac_fn_c_check_func "$LINENO" "shmget" "ac_cv_func_shmget" 19151if test "x$ac_cv_func_shmget" = xyes; then : 19152 cat >>confdefs.h <<_ACEOF 19153#define HAVE_SHMGET 1 19154_ACEOF 19155 19156else 19157 shmget_ok=no 19158fi 19159done 19160;; 19161esac 19162 19163if test "$mmap_ok" = no -a "$shmget_ok" = no; then 19164 as_fn_error $? "Neither mmap/munmap(2) or shmget(2) library functions." "$LINENO" 5 19165fi 19166 19167# 19168# Handle user hints 19169# 19170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if zlib is wanted" >&5 19171$as_echo_n "checking if zlib is wanted... " >&6; } 19172 19173# Check whether --with-zlib was given. 19174if test "${with_zlib+set}" = set; then : 19175 withval=$with_zlib; if test "$withval" != no ; then 19176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19177$as_echo "yes" >&6; } 19178 ZLIB_HOME="$withval" 19179else 19180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19181$as_echo "no" >&6; } 19182fi 19183else 19184 19185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19186$as_echo "yes" >&6; } 19187ZLIB_HOME=/usr/local 19188if test ! -f "${ZLIB_HOME}/include/zlib.h" 19189then 19190 ZLIB_HOME=/usr 19191fi 19192 19193fi 19194 19195 19196# 19197# Locate zlib, if wanted 19198# 19199if test -n "${ZLIB_HOME}" 19200then 19201 # 19202 # Adding /usr/lib or /usr/include to the flags/libs may 19203 # hurt if using a compiler not installed in the standard 19204 # place. 19205 # 19206 if test "${ZLIB_HOME}" != "/usr" 19207 then 19208 LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib" 19209 CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include" 19210 fi 19211 ac_ext=c 19212ac_cpp='$CPP $CPPFLAGS' 19213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19215ac_compiler_gnu=$ac_cv_c_compiler_gnu 19216 19217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5 19218$as_echo_n "checking for inflateEnd in -lz... " >&6; } 19219if ${ac_cv_lib_z_inflateEnd+:} false; then : 19220 $as_echo_n "(cached) " >&6 19221else 19222 ac_check_lib_save_LIBS=$LIBS 19223LIBS="-lz $LIBS" 19224cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19225/* end confdefs.h. */ 19226 19227/* Override any GCC internal prototype to avoid an error. 19228 Use char because int might match the return type of a GCC 19229 builtin and then its argument prototype would still apply. */ 19230#ifdef __cplusplus 19231extern "C" 19232#endif 19233char inflateEnd (); 19234int 19235main () 19236{ 19237return inflateEnd (); 19238 ; 19239 return 0; 19240} 19241_ACEOF 19242if ac_fn_c_try_link "$LINENO"; then : 19243 ac_cv_lib_z_inflateEnd=yes 19244else 19245 ac_cv_lib_z_inflateEnd=no 19246fi 19247rm -f core conftest.err conftest.$ac_objext \ 19248 conftest$ac_exeext conftest.$ac_ext 19249LIBS=$ac_check_lib_save_LIBS 19250fi 19251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5 19252$as_echo "$ac_cv_lib_z_inflateEnd" >&6; } 19253if test "x$ac_cv_lib_z_inflateEnd" = xyes; then : 19254 cat >>confdefs.h <<_ACEOF 19255#define HAVE_LIBZ 1 19256_ACEOF 19257 19258 LIBS="-lz $LIBS" 19259 19260else 19261 as_fn_error $? "library not found check config.log" "$LINENO" 5 19262fi 19263 19264 for ac_header in zlib.h 19265do : 19266 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 19267if test "x$ac_cv_header_zlib_h" = xyes; then : 19268 cat >>confdefs.h <<_ACEOF 19269#define HAVE_ZLIB_H 1 19270_ACEOF 19271 19272else 19273 as_fn_error $? "header not found check config.log" "$LINENO" 5 19274fi 19275 19276done 19277 19278 ac_ext=c 19279ac_cpp='$CPP $CPPFLAGS' 19280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19282ac_compiler_gnu=$ac_cv_c_compiler_gnu 19283 19284fi 19285 19286 19287 19288 if test "X$prefix" = "XNONE"; then 19289 acl_final_prefix="$ac_default_prefix" 19290 else 19291 acl_final_prefix="$prefix" 19292 fi 19293 if test "X$exec_prefix" = "XNONE"; then 19294 acl_final_exec_prefix='${prefix}' 19295 else 19296 acl_final_exec_prefix="$exec_prefix" 19297 fi 19298 acl_save_prefix="$prefix" 19299 prefix="$acl_final_prefix" 19300 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 19301 prefix="$acl_save_prefix" 19302 19303 19304# Check whether --with-gnu-ld was given. 19305if test "${with_gnu_ld+set}" = set; then : 19306 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 19307else 19308 with_gnu_ld=no 19309fi 19310 19311# Prepare PATH_SEPARATOR. 19312# The user is always right. 19313if test "${PATH_SEPARATOR+set}" != set; then 19314 echo "#! /bin/sh" >conf$$.sh 19315 echo "exit 0" >>conf$$.sh 19316 chmod +x conf$$.sh 19317 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 19318 PATH_SEPARATOR=';' 19319 else 19320 PATH_SEPARATOR=: 19321 fi 19322 rm -f conf$$.sh 19323fi 19324ac_prog=ld 19325if test "$GCC" = yes; then 19326 # Check if gcc -print-prog-name=ld gives a path. 19327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 19328$as_echo_n "checking for ld used by GCC... " >&6; } 19329 case $host in 19330 *-*-mingw*) 19331 # gcc leaves a trailing carriage return which upsets mingw 19332 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 19333 *) 19334 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 19335 esac 19336 case $ac_prog in 19337 # Accept absolute paths. 19338 [\\/]* | [A-Za-z]:[\\/]*) 19339 re_direlt='/[^/][^/]*/\.\./' 19340 # Canonicalize the path of ld 19341 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 19342 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 19343 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 19344 done 19345 test -z "$LD" && LD="$ac_prog" 19346 ;; 19347 "") 19348 # If it fails, then pretend we aren't using GCC. 19349 ac_prog=ld 19350 ;; 19351 *) 19352 # If it is relative, then search for the first ld in PATH. 19353 with_gnu_ld=unknown 19354 ;; 19355 esac 19356elif test "$with_gnu_ld" = yes; then 19357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 19358$as_echo_n "checking for GNU ld... " >&6; } 19359else 19360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 19361$as_echo_n "checking for non-GNU ld... " >&6; } 19362fi 19363if ${acl_cv_path_LD+:} false; then : 19364 $as_echo_n "(cached) " >&6 19365else 19366 if test -z "$LD"; then 19367 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 19368 for ac_dir in $PATH; do 19369 test -z "$ac_dir" && ac_dir=. 19370 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 19371 acl_cv_path_LD="$ac_dir/$ac_prog" 19372 # Check to see if the program is GNU ld. I'd rather use --version, 19373 # but apparently some GNU ld's only accept -v. 19374 # Break only if it was the GNU/non-GNU ld that we prefer. 19375 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in 19376 *GNU* | *'with BFD'*) 19377 test "$with_gnu_ld" != no && break ;; 19378 *) 19379 test "$with_gnu_ld" != yes && break ;; 19380 esac 19381 fi 19382 done 19383 IFS="$ac_save_ifs" 19384else 19385 acl_cv_path_LD="$LD" # Let the user override the test with a path. 19386fi 19387fi 19388 19389LD="$acl_cv_path_LD" 19390if test -n "$LD"; then 19391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 19392$as_echo "$LD" >&6; } 19393else 19394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19395$as_echo "no" >&6; } 19396fi 19397test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 19398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 19399$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 19400if ${acl_cv_prog_gnu_ld+:} false; then : 19401 $as_echo_n "(cached) " >&6 19402else 19403 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 19404case `$LD -v 2>&1 </dev/null` in 19405*GNU* | *'with BFD'*) 19406 acl_cv_prog_gnu_ld=yes ;; 19407*) 19408 acl_cv_prog_gnu_ld=no ;; 19409esac 19410fi 19411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 19412$as_echo "$acl_cv_prog_gnu_ld" >&6; } 19413with_gnu_ld=$acl_cv_prog_gnu_ld 19414 19415 19416 19417 19418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 19419$as_echo_n "checking for shared library run path origin... " >&6; } 19420if ${acl_cv_rpath+:} false; then : 19421 $as_echo_n "(cached) " >&6 19422else 19423 19424 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 19425 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 19426 . ./conftest.sh 19427 rm -f ./conftest.sh 19428 acl_cv_rpath=done 19429 19430fi 19431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 19432$as_echo "$acl_cv_rpath" >&6; } 19433 wl="$acl_cv_wl" 19434 acl_libext="$acl_cv_libext" 19435 acl_shlibext="$acl_cv_shlibext" 19436 acl_libname_spec="$acl_cv_libname_spec" 19437 acl_library_names_spec="$acl_cv_library_names_spec" 19438 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 19439 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 19440 acl_hardcode_direct="$acl_cv_hardcode_direct" 19441 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" 19442 # Check whether --enable-rpath was given. 19443if test "${enable_rpath+set}" = set; then : 19444 enableval=$enable_rpath; : 19445else 19446 enable_rpath=yes 19447fi 19448 19449 19450 19451 19452 acl_libdirstem=lib 19453 acl_libdirstem2= 19454 case "$host_os" in 19455 solaris*) 19456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 19457$as_echo_n "checking for 64-bit host... " >&6; } 19458if ${gl_cv_solaris_64bit+:} false; then : 19459 $as_echo_n "(cached) " >&6 19460else 19461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19462/* end confdefs.h. */ 19463 19464#ifdef _LP64 19465sixtyfour bits 19466#endif 19467 19468_ACEOF 19469if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19470 $EGREP "sixtyfour bits" >/dev/null 2>&1; then : 19471 gl_cv_solaris_64bit=yes 19472else 19473 gl_cv_solaris_64bit=no 19474fi 19475rm -f conftest* 19476 19477 19478fi 19479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 19480$as_echo "$gl_cv_solaris_64bit" >&6; } 19481 if test $gl_cv_solaris_64bit = yes; then 19482 acl_libdirstem=lib/64 19483 case "$host_cpu" in 19484 sparc*) acl_libdirstem2=lib/sparcv9 ;; 19485 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; 19486 esac 19487 fi 19488 ;; 19489 *) 19490 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` 19491 if test -n "$searchpath"; then 19492 acl_save_IFS="${IFS= }"; IFS=":" 19493 for searchdir in $searchpath; do 19494 if test -d "$searchdir"; then 19495 case "$searchdir" in 19496 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; 19497 */../ | */.. ) 19498 # Better ignore directories of this form. They are misleading. 19499 ;; 19500 *) searchdir=`cd "$searchdir" && pwd` 19501 case "$searchdir" in 19502 */lib64 ) acl_libdirstem=lib64 ;; 19503 esac ;; 19504 esac 19505 fi 19506 done 19507 IFS="$acl_save_IFS" 19508 fi 19509 ;; 19510 esac 19511 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" 19512 19513 19514 19515 19516 19517 19518 19519 19520 19521 19522 19523 19524 use_additional=yes 19525 19526 acl_save_prefix="$prefix" 19527 prefix="$acl_final_prefix" 19528 acl_save_exec_prefix="$exec_prefix" 19529 exec_prefix="$acl_final_exec_prefix" 19530 19531 eval additional_includedir=\"$includedir\" 19532 eval additional_libdir=\"$libdir\" 19533 19534 exec_prefix="$acl_save_exec_prefix" 19535 prefix="$acl_save_prefix" 19536 19537 19538# Check whether --with-libiconv-prefix was given. 19539if test "${with_libiconv_prefix+set}" = set; then : 19540 withval=$with_libiconv_prefix; 19541 if test "X$withval" = "Xno"; then 19542 use_additional=no 19543 else 19544 if test "X$withval" = "X"; then 19545 19546 acl_save_prefix="$prefix" 19547 prefix="$acl_final_prefix" 19548 acl_save_exec_prefix="$exec_prefix" 19549 exec_prefix="$acl_final_exec_prefix" 19550 19551 eval additional_includedir=\"$includedir\" 19552 eval additional_libdir=\"$libdir\" 19553 19554 exec_prefix="$acl_save_exec_prefix" 19555 prefix="$acl_save_prefix" 19556 19557 else 19558 additional_includedir="$withval/include" 19559 additional_libdir="$withval/$acl_libdirstem" 19560 if test "$acl_libdirstem2" != "$acl_libdirstem" \ 19561 && ! test -d "$withval/$acl_libdirstem"; then 19562 additional_libdir="$withval/$acl_libdirstem2" 19563 fi 19564 fi 19565 fi 19566 19567fi 19568 19569 LIBICONV= 19570 LTLIBICONV= 19571 INCICONV= 19572 LIBICONV_PREFIX= 19573 HAVE_LIBICONV= 19574 rpathdirs= 19575 ltrpathdirs= 19576 names_already_handled= 19577 names_next_round='iconv ' 19578 while test -n "$names_next_round"; do 19579 names_this_round="$names_next_round" 19580 names_next_round= 19581 for name in $names_this_round; do 19582 already_handled= 19583 for n in $names_already_handled; do 19584 if test "$n" = "$name"; then 19585 already_handled=yes 19586 break 19587 fi 19588 done 19589 if test -z "$already_handled"; then 19590 names_already_handled="$names_already_handled $name" 19591 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 19592 eval value=\"\$HAVE_LIB$uppername\" 19593 if test -n "$value"; then 19594 if test "$value" = yes; then 19595 eval value=\"\$LIB$uppername\" 19596 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 19597 eval value=\"\$LTLIB$uppername\" 19598 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 19599 else 19600 : 19601 fi 19602 else 19603 found_dir= 19604 found_la= 19605 found_so= 19606 found_a= 19607 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 19608 if test -n "$acl_shlibext"; then 19609 shrext=".$acl_shlibext" # typically: shrext=.so 19610 else 19611 shrext= 19612 fi 19613 if test $use_additional = yes; then 19614 dir="$additional_libdir" 19615 if test -n "$acl_shlibext"; then 19616 if test -f "$dir/$libname$shrext"; then 19617 found_dir="$dir" 19618 found_so="$dir/$libname$shrext" 19619 else 19620 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 19621 ver=`(cd "$dir" && \ 19622 for f in "$libname$shrext".*; do echo "$f"; done \ 19623 | sed -e "s,^$libname$shrext\\\\.,," \ 19624 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 19625 | sed 1q ) 2>/dev/null` 19626 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 19627 found_dir="$dir" 19628 found_so="$dir/$libname$shrext.$ver" 19629 fi 19630 else 19631 eval library_names=\"$acl_library_names_spec\" 19632 for f in $library_names; do 19633 if test -f "$dir/$f"; then 19634 found_dir="$dir" 19635 found_so="$dir/$f" 19636 break 19637 fi 19638 done 19639 fi 19640 fi 19641 fi 19642 if test "X$found_dir" = "X"; then 19643 if test -f "$dir/$libname.$acl_libext"; then 19644 found_dir="$dir" 19645 found_a="$dir/$libname.$acl_libext" 19646 fi 19647 fi 19648 if test "X$found_dir" != "X"; then 19649 if test -f "$dir/$libname.la"; then 19650 found_la="$dir/$libname.la" 19651 fi 19652 fi 19653 fi 19654 if test "X$found_dir" = "X"; then 19655 for x in $LDFLAGS $LTLIBICONV; do 19656 19657 acl_save_prefix="$prefix" 19658 prefix="$acl_final_prefix" 19659 acl_save_exec_prefix="$exec_prefix" 19660 exec_prefix="$acl_final_exec_prefix" 19661 eval x=\"$x\" 19662 exec_prefix="$acl_save_exec_prefix" 19663 prefix="$acl_save_prefix" 19664 19665 case "$x" in 19666 -L*) 19667 dir=`echo "X$x" | sed -e 's/^X-L//'` 19668 if test -n "$acl_shlibext"; then 19669 if test -f "$dir/$libname$shrext"; then 19670 found_dir="$dir" 19671 found_so="$dir/$libname$shrext" 19672 else 19673 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 19674 ver=`(cd "$dir" && \ 19675 for f in "$libname$shrext".*; do echo "$f"; done \ 19676 | sed -e "s,^$libname$shrext\\\\.,," \ 19677 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 19678 | sed 1q ) 2>/dev/null` 19679 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 19680 found_dir="$dir" 19681 found_so="$dir/$libname$shrext.$ver" 19682 fi 19683 else 19684 eval library_names=\"$acl_library_names_spec\" 19685 for f in $library_names; do 19686 if test -f "$dir/$f"; then 19687 found_dir="$dir" 19688 found_so="$dir/$f" 19689 break 19690 fi 19691 done 19692 fi 19693 fi 19694 fi 19695 if test "X$found_dir" = "X"; then 19696 if test -f "$dir/$libname.$acl_libext"; then 19697 found_dir="$dir" 19698 found_a="$dir/$libname.$acl_libext" 19699 fi 19700 fi 19701 if test "X$found_dir" != "X"; then 19702 if test -f "$dir/$libname.la"; then 19703 found_la="$dir/$libname.la" 19704 fi 19705 fi 19706 ;; 19707 esac 19708 if test "X$found_dir" != "X"; then 19709 break 19710 fi 19711 done 19712 fi 19713 if test "X$found_dir" != "X"; then 19714 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 19715 if test "X$found_so" != "X"; then 19716 if test "$enable_rpath" = no \ 19717 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 19718 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then 19719 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 19720 else 19721 haveit= 19722 for x in $ltrpathdirs; do 19723 if test "X$x" = "X$found_dir"; then 19724 haveit=yes 19725 break 19726 fi 19727 done 19728 if test -z "$haveit"; then 19729 ltrpathdirs="$ltrpathdirs $found_dir" 19730 fi 19731 if test "$acl_hardcode_direct" = yes; then 19732 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 19733 else 19734 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 19735 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 19736 haveit= 19737 for x in $rpathdirs; do 19738 if test "X$x" = "X$found_dir"; then 19739 haveit=yes 19740 break 19741 fi 19742 done 19743 if test -z "$haveit"; then 19744 rpathdirs="$rpathdirs $found_dir" 19745 fi 19746 else 19747 haveit= 19748 for x in $LDFLAGS $LIBICONV; do 19749 19750 acl_save_prefix="$prefix" 19751 prefix="$acl_final_prefix" 19752 acl_save_exec_prefix="$exec_prefix" 19753 exec_prefix="$acl_final_exec_prefix" 19754 eval x=\"$x\" 19755 exec_prefix="$acl_save_exec_prefix" 19756 prefix="$acl_save_prefix" 19757 19758 if test "X$x" = "X-L$found_dir"; then 19759 haveit=yes 19760 break 19761 fi 19762 done 19763 if test -z "$haveit"; then 19764 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 19765 fi 19766 if test "$acl_hardcode_minus_L" != no; then 19767 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 19768 else 19769 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 19770 fi 19771 fi 19772 fi 19773 fi 19774 else 19775 if test "X$found_a" != "X"; then 19776 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 19777 else 19778 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 19779 fi 19780 fi 19781 additional_includedir= 19782 case "$found_dir" in 19783 */$acl_libdirstem | */$acl_libdirstem/) 19784 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 19785 if test "$name" = 'iconv'; then 19786 LIBICONV_PREFIX="$basedir" 19787 fi 19788 additional_includedir="$basedir/include" 19789 ;; 19790 */$acl_libdirstem2 | */$acl_libdirstem2/) 19791 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 19792 if test "$name" = 'iconv'; then 19793 LIBICONV_PREFIX="$basedir" 19794 fi 19795 additional_includedir="$basedir/include" 19796 ;; 19797 esac 19798 if test "X$additional_includedir" != "X"; then 19799 if test "X$additional_includedir" != "X/usr/include"; then 19800 haveit= 19801 if test "X$additional_includedir" = "X/usr/local/include"; then 19802 if test -n "$GCC"; then 19803 case $host_os in 19804 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 19805 esac 19806 fi 19807 fi 19808 if test -z "$haveit"; then 19809 for x in $CPPFLAGS $INCICONV; do 19810 19811 acl_save_prefix="$prefix" 19812 prefix="$acl_final_prefix" 19813 acl_save_exec_prefix="$exec_prefix" 19814 exec_prefix="$acl_final_exec_prefix" 19815 eval x=\"$x\" 19816 exec_prefix="$acl_save_exec_prefix" 19817 prefix="$acl_save_prefix" 19818 19819 if test "X$x" = "X-I$additional_includedir"; then 19820 haveit=yes 19821 break 19822 fi 19823 done 19824 if test -z "$haveit"; then 19825 if test -d "$additional_includedir"; then 19826 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 19827 fi 19828 fi 19829 fi 19830 fi 19831 fi 19832 if test -n "$found_la"; then 19833 save_libdir="$libdir" 19834 case "$found_la" in 19835 */* | *\\*) . "$found_la" ;; 19836 *) . "./$found_la" ;; 19837 esac 19838 libdir="$save_libdir" 19839 for dep in $dependency_libs; do 19840 case "$dep" in 19841 -L*) 19842 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 19843 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ 19844 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then 19845 haveit= 19846 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ 19847 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then 19848 if test -n "$GCC"; then 19849 case $host_os in 19850 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 19851 esac 19852 fi 19853 fi 19854 if test -z "$haveit"; then 19855 haveit= 19856 for x in $LDFLAGS $LIBICONV; do 19857 19858 acl_save_prefix="$prefix" 19859 prefix="$acl_final_prefix" 19860 acl_save_exec_prefix="$exec_prefix" 19861 exec_prefix="$acl_final_exec_prefix" 19862 eval x=\"$x\" 19863 exec_prefix="$acl_save_exec_prefix" 19864 prefix="$acl_save_prefix" 19865 19866 if test "X$x" = "X-L$additional_libdir"; then 19867 haveit=yes 19868 break 19869 fi 19870 done 19871 if test -z "$haveit"; then 19872 if test -d "$additional_libdir"; then 19873 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 19874 fi 19875 fi 19876 haveit= 19877 for x in $LDFLAGS $LTLIBICONV; do 19878 19879 acl_save_prefix="$prefix" 19880 prefix="$acl_final_prefix" 19881 acl_save_exec_prefix="$exec_prefix" 19882 exec_prefix="$acl_final_exec_prefix" 19883 eval x=\"$x\" 19884 exec_prefix="$acl_save_exec_prefix" 19885 prefix="$acl_save_prefix" 19886 19887 if test "X$x" = "X-L$additional_libdir"; then 19888 haveit=yes 19889 break 19890 fi 19891 done 19892 if test -z "$haveit"; then 19893 if test -d "$additional_libdir"; then 19894 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 19895 fi 19896 fi 19897 fi 19898 fi 19899 ;; 19900 -R*) 19901 dir=`echo "X$dep" | sed -e 's/^X-R//'` 19902 if test "$enable_rpath" != no; then 19903 haveit= 19904 for x in $rpathdirs; do 19905 if test "X$x" = "X$dir"; then 19906 haveit=yes 19907 break 19908 fi 19909 done 19910 if test -z "$haveit"; then 19911 rpathdirs="$rpathdirs $dir" 19912 fi 19913 haveit= 19914 for x in $ltrpathdirs; do 19915 if test "X$x" = "X$dir"; then 19916 haveit=yes 19917 break 19918 fi 19919 done 19920 if test -z "$haveit"; then 19921 ltrpathdirs="$ltrpathdirs $dir" 19922 fi 19923 fi 19924 ;; 19925 -l*) 19926 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 19927 ;; 19928 *.la) 19929 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 19930 ;; 19931 *) 19932 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 19933 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 19934 ;; 19935 esac 19936 done 19937 fi 19938 else 19939 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 19940 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 19941 fi 19942 fi 19943 fi 19944 done 19945 done 19946 if test "X$rpathdirs" != "X"; then 19947 if test -n "$acl_hardcode_libdir_separator"; then 19948 alldirs= 19949 for found_dir in $rpathdirs; do 19950 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 19951 done 19952 acl_save_libdir="$libdir" 19953 libdir="$alldirs" 19954 eval flag=\"$acl_hardcode_libdir_flag_spec\" 19955 libdir="$acl_save_libdir" 19956 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 19957 else 19958 for found_dir in $rpathdirs; do 19959 acl_save_libdir="$libdir" 19960 libdir="$found_dir" 19961 eval flag=\"$acl_hardcode_libdir_flag_spec\" 19962 libdir="$acl_save_libdir" 19963 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 19964 done 19965 fi 19966 fi 19967 if test "X$ltrpathdirs" != "X"; then 19968 for found_dir in $ltrpathdirs; do 19969 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 19970 done 19971 fi 19972 19973 19974 19975 19976 19977 19978 19979 19980 19981 19982 19983 19984 am_save_CPPFLAGS="$CPPFLAGS" 19985 19986 for element in $INCICONV; do 19987 haveit= 19988 for x in $CPPFLAGS; do 19989 19990 acl_save_prefix="$prefix" 19991 prefix="$acl_final_prefix" 19992 acl_save_exec_prefix="$exec_prefix" 19993 exec_prefix="$acl_final_exec_prefix" 19994 eval x=\"$x\" 19995 exec_prefix="$acl_save_exec_prefix" 19996 prefix="$acl_save_prefix" 19997 19998 if test "X$x" = "X$element"; then 19999 haveit=yes 20000 break 20001 fi 20002 done 20003 if test -z "$haveit"; then 20004 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 20005 fi 20006 done 20007 20008 20009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 20010$as_echo_n "checking for iconv... " >&6; } 20011if ${am_cv_func_iconv+:} false; then : 20012 $as_echo_n "(cached) " >&6 20013else 20014 20015 am_cv_func_iconv="no, consider installing GNU libiconv" 20016 am_cv_lib_iconv=no 20017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20018/* end confdefs.h. */ 20019#include <stdlib.h> 20020#include <iconv.h> 20021int 20022main () 20023{ 20024iconv_t cd = iconv_open("",""); 20025 iconv(cd,NULL,NULL,NULL,NULL); 20026 iconv_close(cd); 20027 ; 20028 return 0; 20029} 20030_ACEOF 20031if ac_fn_c_try_link "$LINENO"; then : 20032 am_cv_func_iconv=yes 20033fi 20034rm -f core conftest.err conftest.$ac_objext \ 20035 conftest$ac_exeext conftest.$ac_ext 20036 if test "$am_cv_func_iconv" != yes; then 20037 am_save_LIBS="$LIBS" 20038 LIBS="$LIBS $LIBICONV" 20039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20040/* end confdefs.h. */ 20041#include <stdlib.h> 20042#include <iconv.h> 20043int 20044main () 20045{ 20046iconv_t cd = iconv_open("",""); 20047 iconv(cd,NULL,NULL,NULL,NULL); 20048 iconv_close(cd); 20049 ; 20050 return 0; 20051} 20052_ACEOF 20053if ac_fn_c_try_link "$LINENO"; then : 20054 am_cv_lib_iconv=yes 20055 am_cv_func_iconv=yes 20056fi 20057rm -f core conftest.err conftest.$ac_objext \ 20058 conftest$ac_exeext conftest.$ac_ext 20059 LIBS="$am_save_LIBS" 20060 fi 20061 20062fi 20063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 20064$as_echo "$am_cv_func_iconv" >&6; } 20065 if test "$am_cv_func_iconv" = yes; then 20066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 20067$as_echo_n "checking for working iconv... " >&6; } 20068if ${am_cv_func_iconv_works+:} false; then : 20069 $as_echo_n "(cached) " >&6 20070else 20071 20072 am_save_LIBS="$LIBS" 20073 if test $am_cv_lib_iconv = yes; then 20074 LIBS="$LIBS $LIBICONV" 20075 fi 20076 if test "$cross_compiling" = yes; then : 20077 case "$host_os" in 20078 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; 20079 *) am_cv_func_iconv_works="guessing yes" ;; 20080 esac 20081else 20082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20083/* end confdefs.h. */ 20084 20085#include <iconv.h> 20086#include <string.h> 20087int main () 20088{ 20089 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful 20090 returns. */ 20091 { 20092 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); 20093 if (cd_utf8_to_88591 != (iconv_t)(-1)) 20094 { 20095 static const char input[] = "\342\202\254"; /* EURO SIGN */ 20096 char buf[10]; 20097 const char *inptr = input; 20098 size_t inbytesleft = strlen (input); 20099 char *outptr = buf; 20100 size_t outbytesleft = sizeof (buf); 20101 size_t res = iconv (cd_utf8_to_88591, 20102 (char **) &inptr, &inbytesleft, 20103 &outptr, &outbytesleft); 20104 if (res == 0) 20105 return 1; 20106 } 20107 } 20108 /* Test against Solaris 10 bug: Failures are not distinguishable from 20109 successful returns. */ 20110 { 20111 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); 20112 if (cd_ascii_to_88591 != (iconv_t)(-1)) 20113 { 20114 static const char input[] = "\263"; 20115 char buf[10]; 20116 const char *inptr = input; 20117 size_t inbytesleft = strlen (input); 20118 char *outptr = buf; 20119 size_t outbytesleft = sizeof (buf); 20120 size_t res = iconv (cd_ascii_to_88591, 20121 (char **) &inptr, &inbytesleft, 20122 &outptr, &outbytesleft); 20123 if (res == 0) 20124 return 1; 20125 } 20126 } 20127#if 0 /* This bug could be worked around by the caller. */ 20128 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ 20129 { 20130 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); 20131 if (cd_88591_to_utf8 != (iconv_t)(-1)) 20132 { 20133 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; 20134 char buf[50]; 20135 const char *inptr = input; 20136 size_t inbytesleft = strlen (input); 20137 char *outptr = buf; 20138 size_t outbytesleft = sizeof (buf); 20139 size_t res = iconv (cd_88591_to_utf8, 20140 (char **) &inptr, &inbytesleft, 20141 &outptr, &outbytesleft); 20142 if ((int)res > 0) 20143 return 1; 20144 } 20145 } 20146#endif 20147 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is 20148 provided. */ 20149 if (/* Try standardized names. */ 20150 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) 20151 /* Try IRIX, OSF/1 names. */ 20152 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) 20153 /* Try AIX names. */ 20154 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) 20155 /* Try HP-UX names. */ 20156 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) 20157 return 1; 20158 return 0; 20159} 20160_ACEOF 20161if ac_fn_c_try_run "$LINENO"; then : 20162 am_cv_func_iconv_works=yes 20163else 20164 am_cv_func_iconv_works=no 20165fi 20166rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20167 conftest.$ac_objext conftest.beam conftest.$ac_ext 20168fi 20169 20170 LIBS="$am_save_LIBS" 20171 20172fi 20173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 20174$as_echo "$am_cv_func_iconv_works" >&6; } 20175 case "$am_cv_func_iconv_works" in 20176 *no) am_func_iconv=no am_cv_lib_iconv=no ;; 20177 *) am_func_iconv=yes ;; 20178 esac 20179 else 20180 am_func_iconv=no am_cv_lib_iconv=no 20181 fi 20182 if test "$am_func_iconv" = yes; then 20183 20184$as_echo "#define HAVE_ICONV 1" >>confdefs.h 20185 20186 fi 20187 if test "$am_cv_lib_iconv" = yes; then 20188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 20189$as_echo_n "checking how to link with libiconv... " >&6; } 20190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 20191$as_echo "$LIBICONV" >&6; } 20192 else 20193 CPPFLAGS="$am_save_CPPFLAGS" 20194 LIBICONV= 20195 LTLIBICONV= 20196 fi 20197 20198 20199 20200 if test "$am_cv_func_iconv" = yes; then 20201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 20202$as_echo_n "checking for iconv declaration... " >&6; } 20203 if ${am_cv_proto_iconv+:} false; then : 20204 $as_echo_n "(cached) " >&6 20205else 20206 20207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20208/* end confdefs.h. */ 20209 20210#include <stdlib.h> 20211#include <iconv.h> 20212extern 20213#ifdef __cplusplus 20214"C" 20215#endif 20216#if defined(__STDC__) || defined(__cplusplus) 20217size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 20218#else 20219size_t iconv(); 20220#endif 20221 20222int 20223main () 20224{ 20225 20226 ; 20227 return 0; 20228} 20229_ACEOF 20230if ac_fn_c_try_compile "$LINENO"; then : 20231 am_cv_proto_iconv_arg1="" 20232else 20233 am_cv_proto_iconv_arg1="const" 20234fi 20235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20236 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" 20237fi 20238 20239 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 20240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 20241 $am_cv_proto_iconv" >&5 20242$as_echo " 20243 $am_cv_proto_iconv" >&6; } 20244 20245cat >>confdefs.h <<_ACEOF 20246#define ICONV_CONST $am_cv_proto_iconv_arg1 20247_ACEOF 20248 20249 fi 20250 20251# 20252# Handle user hints 20253# 20254 20255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if unac is wanted" >&5 20256$as_echo_n "checking if unac is wanted... " >&6; } 20257 20258# Check whether --with-unac was given. 20259if test "${with_unac+set}" = set; then : 20260 withval=$with_unac; if test "$withval" != no ; then 20261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20262$as_echo "yes" >&6; } 20263 if test "$withval" = "yes" 20264 then 20265 UNACL_HOME=/usr/local 20266 if test ! -f "${UNACL_HOME}/include/unac.h" 20267 then 20268 UNACL_HOME=/usr 20269 fi 20270 else 20271 UNACL_HOME="$withval" 20272 fi 20273else 20274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20275$as_echo "no" >&6; } 20276fi 20277else 20278 20279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20280$as_echo "no" >&6; } 20281 20282fi 20283 20284 20285# 20286# Locate unac, if wanted 20287# 20288if test -n "${UNACL_HOME}" 20289then 20290 # 20291 # Adding /usr/lib or /usr/include to the flags/libs may 20292 # hurt if using a compiler not installed in the standard 20293 # place. 20294 # 20295 if test "${UNACL_HOME}" != "/usr" 20296 then 20297 LDFLAGS="-L${UNACL_HOME}/lib $LDFLAGS" 20298 CPPFLAGS="-I${UNACL_HOME}/include $CPPFLAGS" 20299 fi 20300 20301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lunac" >&5 20302$as_echo_n "checking for main in -lunac... " >&6; } 20303if ${ac_cv_lib_unac_main+:} false; then : 20304 $as_echo_n "(cached) " >&6 20305else 20306 ac_check_lib_save_LIBS=$LIBS 20307LIBS="-lunac $LIBS" 20308cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20309/* end confdefs.h. */ 20310 20311 20312int 20313main () 20314{ 20315return main (); 20316 ; 20317 return 0; 20318} 20319_ACEOF 20320if ac_fn_c_try_link "$LINENO"; then : 20321 ac_cv_lib_unac_main=yes 20322else 20323 ac_cv_lib_unac_main=no 20324fi 20325rm -f core conftest.err conftest.$ac_objext \ 20326 conftest$ac_exeext conftest.$ac_ext 20327LIBS=$ac_check_lib_save_LIBS 20328fi 20329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unac_main" >&5 20330$as_echo "$ac_cv_lib_unac_main" >&6; } 20331if test "x$ac_cv_lib_unac_main" = xyes; then : 20332 cat >>confdefs.h <<_ACEOF 20333#define HAVE_LIBUNAC 1 20334_ACEOF 20335 20336 LIBS="-lunac $LIBS" 20337 20338fi 20339 20340 for ac_header in unac.h 20341do : 20342 ac_fn_c_check_header_mongrel "$LINENO" "unac.h" "ac_cv_header_unac_h" "$ac_includes_default" 20343if test "x$ac_cv_header_unac_h" = xyes; then : 20344 cat >>confdefs.h <<_ACEOF 20345#define HAVE_UNAC_H 1 20346_ACEOF 20347 20348fi 20349 20350done 20351 20352fi 20353 20354 20355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 20356$as_echo_n "checking for ANSI C header files... " >&6; } 20357if ${ac_cv_header_stdc+:} false; then : 20358 $as_echo_n "(cached) " >&6 20359else 20360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20361/* end confdefs.h. */ 20362#include <stdlib.h> 20363#include <stdarg.h> 20364#include <string.h> 20365#include <float.h> 20366 20367int 20368main () 20369{ 20370 20371 ; 20372 return 0; 20373} 20374_ACEOF 20375if ac_fn_c_try_compile "$LINENO"; then : 20376 ac_cv_header_stdc=yes 20377else 20378 ac_cv_header_stdc=no 20379fi 20380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20381 20382if test $ac_cv_header_stdc = yes; then 20383 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 20384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20385/* end confdefs.h. */ 20386#include <string.h> 20387 20388_ACEOF 20389if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20390 $EGREP "memchr" >/dev/null 2>&1; then : 20391 20392else 20393 ac_cv_header_stdc=no 20394fi 20395rm -f conftest* 20396 20397fi 20398 20399if test $ac_cv_header_stdc = yes; then 20400 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 20401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20402/* end confdefs.h. */ 20403#include <stdlib.h> 20404 20405_ACEOF 20406if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20407 $EGREP "free" >/dev/null 2>&1; then : 20408 20409else 20410 ac_cv_header_stdc=no 20411fi 20412rm -f conftest* 20413 20414fi 20415 20416if test $ac_cv_header_stdc = yes; then 20417 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 20418 if test "$cross_compiling" = yes; then : 20419 : 20420else 20421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20422/* end confdefs.h. */ 20423#include <ctype.h> 20424#include <stdlib.h> 20425#if ((' ' & 0x0FF) == 0x020) 20426# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 20427# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 20428#else 20429# define ISLOWER(c) \ 20430 (('a' <= (c) && (c) <= 'i') \ 20431 || ('j' <= (c) && (c) <= 'r') \ 20432 || ('s' <= (c) && (c) <= 'z')) 20433# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 20434#endif 20435 20436#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 20437int 20438main () 20439{ 20440 int i; 20441 for (i = 0; i < 256; i++) 20442 if (XOR (islower (i), ISLOWER (i)) 20443 || toupper (i) != TOUPPER (i)) 20444 return 2; 20445 return 0; 20446} 20447_ACEOF 20448if ac_fn_c_try_run "$LINENO"; then : 20449 20450else 20451 ac_cv_header_stdc=no 20452fi 20453rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20454 conftest.$ac_objext conftest.beam conftest.$ac_ext 20455fi 20456 20457fi 20458fi 20459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 20460$as_echo "$ac_cv_header_stdc" >&6; } 20461if test $ac_cv_header_stdc = yes; then 20462 20463$as_echo "#define STDC_HEADERS 1" >>confdefs.h 20464 20465fi 20466 20467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 20468$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 20469if ${ac_cv_header_time+:} false; then : 20470 $as_echo_n "(cached) " >&6 20471else 20472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20473/* end confdefs.h. */ 20474#include <sys/types.h> 20475#include <sys/time.h> 20476#include <time.h> 20477 20478int 20479main () 20480{ 20481if ((struct tm *) 0) 20482return 0; 20483 ; 20484 return 0; 20485} 20486_ACEOF 20487if ac_fn_c_try_compile "$LINENO"; then : 20488 ac_cv_header_time=yes 20489else 20490 ac_cv_header_time=no 20491fi 20492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20493fi 20494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 20495$as_echo "$ac_cv_header_time" >&6; } 20496if test $ac_cv_header_time = yes; then 20497 20498$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 20499 20500fi 20501 20502 20503ac_ext=cpp 20504ac_cpp='$CXXCPP $CPPFLAGS' 20505ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20506ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20507ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20508 20509 20510for ac_header in fcntl.h limits.h malloc.h sys/file.h sys/ioctl.h sys/time.h unistd.h getopt.h strings.h zlib.h 20511do : 20512 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20513ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 20514if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 20515 cat >>confdefs.h <<_ACEOF 20516#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20517_ACEOF 20518 20519fi 20520 20521done 20522 20523#AC_CHECK_HEADER(fstream.h,nofstream=0,nofstream=1) 20524#if test "x$nofstream" = "x1" ; then 20525#AC_MSG_ERROR([To compile, you will need a C++ library. Try installing libstdc++.]) 20526#fi 20527 20528ac_ext=c 20529ac_cpp='$CPP $CPPFLAGS' 20530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20532ac_compiler_gnu=$ac_cv_c_compiler_gnu 20533 20534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 20535$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 20536if ${ac_cv_c_const+:} false; then : 20537 $as_echo_n "(cached) " >&6 20538else 20539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20540/* end confdefs.h. */ 20541 20542int 20543main () 20544{ 20545 20546#ifndef __cplusplus 20547 /* Ultrix mips cc rejects this sort of thing. */ 20548 typedef int charset[2]; 20549 const charset cs = { 0, 0 }; 20550 /* SunOS 4.1.1 cc rejects this. */ 20551 char const *const *pcpcc; 20552 char **ppc; 20553 /* NEC SVR4.0.2 mips cc rejects this. */ 20554 struct point {int x, y;}; 20555 static struct point const zero = {0,0}; 20556 /* AIX XL C 1.02.0.0 rejects this. 20557 It does not let you subtract one const X* pointer from another in 20558 an arm of an if-expression whose if-part is not a constant 20559 expression */ 20560 const char *g = "string"; 20561 pcpcc = &g + (g ? g-g : 0); 20562 /* HPUX 7.0 cc rejects these. */ 20563 ++pcpcc; 20564 ppc = (char**) pcpcc; 20565 pcpcc = (char const *const *) ppc; 20566 { /* SCO 3.2v4 cc rejects this sort of thing. */ 20567 char tx; 20568 char *t = &tx; 20569 char const *s = 0 ? (char *) 0 : (char const *) 0; 20570 20571 *t++ = 0; 20572 if (s) return 0; 20573 } 20574 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 20575 int x[] = {25, 17}; 20576 const int *foo = &x[0]; 20577 ++foo; 20578 } 20579 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 20580 typedef const int *iptr; 20581 iptr p = 0; 20582 ++p; 20583 } 20584 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 20585 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 20586 struct s { int j; const int *ap[3]; } bx; 20587 struct s *b = &bx; b->j = 5; 20588 } 20589 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 20590 const int foo = 10; 20591 if (!foo) return 0; 20592 } 20593 return !cs[0] && !zero.x; 20594#endif 20595 20596 ; 20597 return 0; 20598} 20599_ACEOF 20600if ac_fn_c_try_compile "$LINENO"; then : 20601 ac_cv_c_const=yes 20602else 20603 ac_cv_c_const=no 20604fi 20605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20606fi 20607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 20608$as_echo "$ac_cv_c_const" >&6; } 20609if test $ac_cv_c_const = no; then 20610 20611$as_echo "#define const /**/" >>confdefs.h 20612 20613fi 20614 20615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 20616$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 20617if ${ac_cv_struct_tm+:} false; then : 20618 $as_echo_n "(cached) " >&6 20619else 20620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20621/* end confdefs.h. */ 20622#include <sys/types.h> 20623#include <time.h> 20624 20625int 20626main () 20627{ 20628struct tm tm; 20629 int *p = &tm.tm_sec; 20630 return !p; 20631 ; 20632 return 0; 20633} 20634_ACEOF 20635if ac_fn_c_try_compile "$LINENO"; then : 20636 ac_cv_struct_tm=time.h 20637else 20638 ac_cv_struct_tm=sys/time.h 20639fi 20640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20641fi 20642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 20643$as_echo "$ac_cv_struct_tm" >&6; } 20644if test $ac_cv_struct_tm = sys/time.h; then 20645 20646$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 20647 20648fi 20649 20650 20651for ac_func in strdup strstr strtoul 20652do : 20653 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20654ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 20655if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 20656 cat >>confdefs.h <<_ACEOF 20657#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20658_ACEOF 20659 20660fi 20661done 20662 20663ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd" 20664if test "x$ac_cv_func_getcwd" = xyes; then : 20665 $as_echo "#define HAVE_GETCWD 1" >>confdefs.h 20666 20667else 20668 case " $LIBOBJS " in 20669 *" getcwd.$ac_objext "* ) ;; 20670 *) LIBOBJS="$LIBOBJS getcwd.$ac_objext" 20671 ;; 20672esac 20673 20674fi 20675 20676ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror" 20677if test "x$ac_cv_func_strerror" = xyes; then : 20678 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h 20679 20680else 20681 case " $LIBOBJS " in 20682 *" strerror.$ac_objext "* ) ;; 20683 *) LIBOBJS="$LIBOBJS strerror.$ac_objext" 20684 ;; 20685esac 20686 20687fi 20688 20689ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp" 20690if test "x$ac_cv_func_memcmp" = xyes; then : 20691 $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h 20692 20693else 20694 case " $LIBOBJS " in 20695 *" memcmp.$ac_objext "* ) ;; 20696 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 20697 ;; 20698esac 20699 20700fi 20701 20702ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy" 20703if test "x$ac_cv_func_memcpy" = xyes; then : 20704 $as_echo "#define HAVE_MEMCPY 1" >>confdefs.h 20705 20706else 20707 case " $LIBOBJS " in 20708 *" memcpy.$ac_objext "* ) ;; 20709 *) LIBOBJS="$LIBOBJS memcpy.$ac_objext" 20710 ;; 20711esac 20712 20713fi 20714 20715ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" 20716if test "x$ac_cv_func_memmove" = xyes; then : 20717 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h 20718 20719else 20720 case " $LIBOBJS " in 20721 *" memmove.$ac_objext "* ) ;; 20722 *) LIBOBJS="$LIBOBJS memmove.$ac_objext" 20723 ;; 20724esac 20725 20726fi 20727 20728ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise" 20729if test "x$ac_cv_func_raise" = xyes; then : 20730 $as_echo "#define HAVE_RAISE 1" >>confdefs.h 20731 20732else 20733 case " $LIBOBJS " in 20734 *" raise.$ac_objext "* ) ;; 20735 *) LIBOBJS="$LIBOBJS raise.$ac_objext" 20736 ;; 20737esac 20738 20739fi 20740 20741 20742ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" 20743if test "x$ac_cv_func_snprintf" = xyes; then : 20744 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h 20745 20746else 20747 case " $LIBOBJS " in 20748 *" snprintf.$ac_objext "* ) ;; 20749 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 20750 ;; 20751esac 20752 20753fi 20754 20755ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf" 20756if test "x$ac_cv_func_vsnprintf" = xyes; then : 20757 $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h 20758 20759else 20760 case " $LIBOBJS " in 20761 *" vsnprintf.$ac_objext "* ) ;; 20762 *) LIBOBJS="$LIBOBJS vsnprintf.$ac_objext" 20763 ;; 20764esac 20765 20766fi 20767 20768ac_fn_c_check_func "$LINENO" "strncoll" "ac_cv_func_strncoll" 20769if test "x$ac_cv_func_strncoll" = xyes; then : 20770 $as_echo "#define HAVE_STRNCOLL 1" >>confdefs.h 20771 20772else 20773 case " $LIBOBJS " in 20774 *" strncoll.$ac_objext "* ) ;; 20775 *) LIBOBJS="$LIBOBJS strncoll.$ac_objext" 20776 ;; 20777esac 20778 20779fi 20780 20781 20782ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 20783if test "x$ac_cv_func_strcasecmp" = xyes; then : 20784 $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h 20785 20786else 20787 case " $LIBOBJS " in 20788 *" strcasecmp.$ac_objext "* ) ;; 20789 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext" 20790 ;; 20791esac 20792 20793fi 20794 20795ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp" 20796if test "x$ac_cv_func_strncasecmp" = xyes; then : 20797 $as_echo "#define HAVE_STRNCASECMP 1" >>confdefs.h 20798 20799else 20800 case " $LIBOBJS " in 20801 *" strncasecmp.$ac_objext "* ) ;; 20802 *) LIBOBJS="$LIBOBJS strncasecmp.$ac_objext" 20803 ;; 20804esac 20805 20806fi 20807 20808ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr" 20809if test "x$ac_cv_func_strcasestr" = xyes; then : 20810 $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h 20811 20812else 20813 case " $LIBOBJS " in 20814 *" strcasestr.$ac_objext "* ) ;; 20815 *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext" 20816 ;; 20817esac 20818 20819fi 20820 20821 20822# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 20823# for constant arguments. Useless! 20824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 20825$as_echo_n "checking for working alloca.h... " >&6; } 20826if ${ac_cv_working_alloca_h+:} false; then : 20827 $as_echo_n "(cached) " >&6 20828else 20829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20830/* end confdefs.h. */ 20831#include <alloca.h> 20832int 20833main () 20834{ 20835char *p = (char *) alloca (2 * sizeof (int)); 20836 if (p) return 0; 20837 ; 20838 return 0; 20839} 20840_ACEOF 20841if ac_fn_c_try_link "$LINENO"; then : 20842 ac_cv_working_alloca_h=yes 20843else 20844 ac_cv_working_alloca_h=no 20845fi 20846rm -f core conftest.err conftest.$ac_objext \ 20847 conftest$ac_exeext conftest.$ac_ext 20848fi 20849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 20850$as_echo "$ac_cv_working_alloca_h" >&6; } 20851if test $ac_cv_working_alloca_h = yes; then 20852 20853$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 20854 20855fi 20856 20857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 20858$as_echo_n "checking for alloca... " >&6; } 20859if ${ac_cv_func_alloca_works+:} false; then : 20860 $as_echo_n "(cached) " >&6 20861else 20862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20863/* end confdefs.h. */ 20864#ifdef __GNUC__ 20865# define alloca __builtin_alloca 20866#else 20867# ifdef _MSC_VER 20868# include <malloc.h> 20869# define alloca _alloca 20870# else 20871# ifdef HAVE_ALLOCA_H 20872# include <alloca.h> 20873# else 20874# ifdef _AIX 20875 #pragma alloca 20876# else 20877# ifndef alloca /* predefined by HP cc +Olibcalls */ 20878void *alloca (size_t); 20879# endif 20880# endif 20881# endif 20882# endif 20883#endif 20884 20885int 20886main () 20887{ 20888char *p = (char *) alloca (1); 20889 if (p) return 0; 20890 ; 20891 return 0; 20892} 20893_ACEOF 20894if ac_fn_c_try_link "$LINENO"; then : 20895 ac_cv_func_alloca_works=yes 20896else 20897 ac_cv_func_alloca_works=no 20898fi 20899rm -f core conftest.err conftest.$ac_objext \ 20900 conftest$ac_exeext conftest.$ac_ext 20901fi 20902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 20903$as_echo "$ac_cv_func_alloca_works" >&6; } 20904 20905if test $ac_cv_func_alloca_works = yes; then 20906 20907$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 20908 20909else 20910 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 20911# that cause trouble. Some versions do not even contain alloca or 20912# contain a buggy version. If you still want to use their alloca, 20913# use ar to extract alloca.o from them instead of compiling alloca.c. 20914 20915ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 20916 20917$as_echo "#define C_ALLOCA 1" >>confdefs.h 20918 20919 20920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 20921$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 20922if ${ac_cv_os_cray+:} false; then : 20923 $as_echo_n "(cached) " >&6 20924else 20925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20926/* end confdefs.h. */ 20927#if defined CRAY && ! defined CRAY2 20928webecray 20929#else 20930wenotbecray 20931#endif 20932 20933_ACEOF 20934if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20935 $EGREP "webecray" >/dev/null 2>&1; then : 20936 ac_cv_os_cray=yes 20937else 20938 ac_cv_os_cray=no 20939fi 20940rm -f conftest* 20941 20942fi 20943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 20944$as_echo "$ac_cv_os_cray" >&6; } 20945if test $ac_cv_os_cray = yes; then 20946 for ac_func in _getb67 GETB67 getb67; do 20947 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20948ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 20949if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 20950 20951cat >>confdefs.h <<_ACEOF 20952#define CRAY_STACKSEG_END $ac_func 20953_ACEOF 20954 20955 break 20956fi 20957 20958 done 20959fi 20960 20961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 20962$as_echo_n "checking stack direction for C alloca... " >&6; } 20963if ${ac_cv_c_stack_direction+:} false; then : 20964 $as_echo_n "(cached) " >&6 20965else 20966 if test "$cross_compiling" = yes; then : 20967 ac_cv_c_stack_direction=0 20968else 20969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20970/* end confdefs.h. */ 20971$ac_includes_default 20972int 20973find_stack_direction (int *addr, int depth) 20974{ 20975 int dir, dummy = 0; 20976 if (! addr) 20977 addr = &dummy; 20978 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; 20979 dir = depth ? find_stack_direction (addr, depth - 1) : 0; 20980 return dir + dummy; 20981} 20982 20983int 20984main (int argc, char **argv) 20985{ 20986 return find_stack_direction (0, argc + !argv + 20) < 0; 20987} 20988_ACEOF 20989if ac_fn_c_try_run "$LINENO"; then : 20990 ac_cv_c_stack_direction=1 20991else 20992 ac_cv_c_stack_direction=-1 20993fi 20994rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20995 conftest.$ac_objext conftest.beam conftest.$ac_ext 20996fi 20997 20998fi 20999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 21000$as_echo "$ac_cv_c_stack_direction" >&6; } 21001cat >>confdefs.h <<_ACEOF 21002#define STACK_DIRECTION $ac_cv_c_stack_direction 21003_ACEOF 21004 21005 21006fi 21007 21008for ac_func in strftime 21009do : 21010 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" 21011if test "x$ac_cv_func_strftime" = xyes; then : 21012 cat >>confdefs.h <<_ACEOF 21013#define HAVE_STRFTIME 1 21014_ACEOF 21015 21016else 21017 # strftime is in -lintl on SCO UNIX. 21018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5 21019$as_echo_n "checking for strftime in -lintl... " >&6; } 21020if ${ac_cv_lib_intl_strftime+:} false; then : 21021 $as_echo_n "(cached) " >&6 21022else 21023 ac_check_lib_save_LIBS=$LIBS 21024LIBS="-lintl $LIBS" 21025cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21026/* end confdefs.h. */ 21027 21028/* Override any GCC internal prototype to avoid an error. 21029 Use char because int might match the return type of a GCC 21030 builtin and then its argument prototype would still apply. */ 21031#ifdef __cplusplus 21032extern "C" 21033#endif 21034char strftime (); 21035int 21036main () 21037{ 21038return strftime (); 21039 ; 21040 return 0; 21041} 21042_ACEOF 21043if ac_fn_c_try_link "$LINENO"; then : 21044 ac_cv_lib_intl_strftime=yes 21045else 21046 ac_cv_lib_intl_strftime=no 21047fi 21048rm -f core conftest.err conftest.$ac_objext \ 21049 conftest$ac_exeext conftest.$ac_ext 21050LIBS=$ac_check_lib_save_LIBS 21051fi 21052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5 21053$as_echo "$ac_cv_lib_intl_strftime" >&6; } 21054if test "x$ac_cv_lib_intl_strftime" = xyes; then : 21055 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h 21056 21057LIBS="-lintl $LIBS" 21058fi 21059 21060fi 21061done 21062 21063 21064for ac_func in strptime 21065do : 21066 ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime" 21067if test "x$ac_cv_func_strptime" = xyes; then : 21068 cat >>confdefs.h <<_ACEOF 21069#define HAVE_STRPTIME 1 21070_ACEOF 21071 21072fi 21073done 21074 21075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strptime declaration in time.h" >&5 21076$as_echo_n "checking for strptime declaration in time.h... " >&6; } 21077cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21078/* end confdefs.h. */ 21079#include <time.h> 21080 21081_ACEOF 21082if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21083 $EGREP "strptime" >/dev/null 2>&1; then : 21084 21085 21086$as_echo "#define HAVE_STRPTIME_DECL /**/" >>confdefs.h 21087 21088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21089$as_echo "yes" >&6; } 21090 21091else 21092 21093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21094$as_echo "no" >&6; } 21095 21096fi 21097rm -f conftest* 21098 21099 21100 21101for ac_func in localtime_r timegm 21102do : 21103 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 21104ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 21105if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 21106 cat >>confdefs.h <<_ACEOF 21107#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 21108_ACEOF 21109 21110fi 21111done 21112 21113 21114if test "$db_cv_bigfile" = no; then 21115 offset_bits=false 21116 case "$host_os" in 21117 solaris2.8|hpux*) 21118 if test "$db_cv_cxx" = "yes"; then 21119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Large file and C++ API support are incompatible on HP-UX" >&5 21120$as_echo "$as_me: WARNING: Large file and C++ API support are incompatible on HP-UX" >&2;} 21121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: and Solaris 8; large file support has been turned off." >&5 21122$as_echo "$as_me: WARNING: and Solaris 8; large file support has been turned off." >&2;} 21123 else 21124 offset_bits=true 21125 fi;; 21126 aix*|solaris*) 21127 offset_bits=true ;; 21128 linux*) if test "$build_cpu" = "i686" 21129 then 21130 offset_bits=true 21131 21132$as_echo "#define HAVE_LARGEFILE_SOURCE /**/" >>confdefs.h 21133 21134 fi 21135 ;; 21136 esac 21137 if $offset_bits 21138 then 21139 21140$as_echo "#define HAVE_FILE_OFFSET_BITS /**/" >>confdefs.h 21141 21142 fi 21143fi 21144 21145ac_ext=cpp 21146ac_cpp='$CXXCPP $CPPFLAGS' 21147ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21148ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21149ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21150 21151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bool data type?" >&5 21152$as_echo_n "checking for bool data type?... " >&6; } 21153cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21154/* end confdefs.h. */ 21155 21156int 21157main () 21158{ 21159bool i; 21160 ; 21161 return 0; 21162} 21163_ACEOF 21164if ac_fn_cxx_try_compile "$LINENO"; then : 21165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21166$as_echo "yes" >&6; }; 21167$as_echo "#define HAVE_BOOL /**/" >>confdefs.h 21168 21169else 21170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21171$as_echo "no" >&6; } 21172fi 21173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21174 21175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for true and false?" >&5 21176$as_echo_n "checking for true and false?... " >&6; } 21177cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21178/* end confdefs.h. */ 21179 21180int 21181main () 21182{ 21183int i, j; i= true; j= false; 21184 ; 21185 return 0; 21186} 21187_ACEOF 21188if ac_fn_cxx_try_compile "$LINENO"; then : 21189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21190$as_echo "yes" >&6; } 21191 21192$as_echo "#define HAVE_TRUE /**/" >>confdefs.h 21193 21194 21195$as_echo "#define HAVE_FALSE /**/" >>confdefs.h 21196 21197else 21198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21199$as_echo "no" >&6; } 21200fi 21201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21202 21203ac_ext=c 21204ac_cpp='$CPP $CPPFLAGS' 21205ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21206ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21207ac_compiler_gnu=$ac_cv_c_compiler_gnu 21208 21209if test ! -d "./db"; then 21210 mkdir db 21211fi 21212 21213ac_config_files="$ac_config_files mifluz-config" 21214 21215ac_config_files="$ac_config_files Makefile mifluz.spec clib/Makefile db/Makefile db/db.h mifluz/Makefile htdb/Makefile search/Makefile doc/Makefile test/Makefile test/test_functions examples/Makefile man/Makefile" 21216 21217cat >confcache <<\_ACEOF 21218# This file is a shell script that caches the results of configure 21219# tests run on this system so they can be shared between configure 21220# scripts and configure runs, see configure's option --config-cache. 21221# It is not useful on other systems. If it contains results you don't 21222# want to keep, you may remove or edit it. 21223# 21224# config.status only pays attention to the cache file if you give it 21225# the --recheck option to rerun configure. 21226# 21227# `ac_cv_env_foo' variables (set or unset) will be overridden when 21228# loading this file, other *unset* `ac_cv_foo' will be assigned the 21229# following values. 21230 21231_ACEOF 21232 21233# The following way of writing the cache mishandles newlines in values, 21234# but we know of no workaround that is simple, portable, and efficient. 21235# So, we kill variables containing newlines. 21236# Ultrix sh set writes to stderr and can't be redirected directly, 21237# and sets the high bit in the cache file unless we assign to the vars. 21238( 21239 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21240 eval ac_val=\$$ac_var 21241 case $ac_val in #( 21242 *${as_nl}*) 21243 case $ac_var in #( 21244 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 21245$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 21246 esac 21247 case $ac_var in #( 21248 _ | IFS | as_nl) ;; #( 21249 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 21250 *) { eval $ac_var=; unset $ac_var;} ;; 21251 esac ;; 21252 esac 21253 done 21254 21255 (set) 2>&1 | 21256 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21257 *${as_nl}ac_space=\ *) 21258 # `set' does not quote correctly, so add quotes: double-quote 21259 # substitution turns \\\\ into \\, and sed turns \\ into \. 21260 sed -n \ 21261 "s/'/'\\\\''/g; 21262 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21263 ;; #( 21264 *) 21265 # `set' quotes correctly as required by POSIX, so do not add quotes. 21266 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21267 ;; 21268 esac | 21269 sort 21270) | 21271 sed ' 21272 /^ac_cv_env_/b end 21273 t clear 21274 :clear 21275 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21276 t end 21277 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21278 :end' >>confcache 21279if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21280 if test -w "$cache_file"; then 21281 if test "x$cache_file" != "x/dev/null"; then 21282 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 21283$as_echo "$as_me: updating cache $cache_file" >&6;} 21284 if test ! -f "$cache_file" || test -h "$cache_file"; then 21285 cat confcache >"$cache_file" 21286 else 21287 case $cache_file in #( 21288 */* | ?:*) 21289 mv -f confcache "$cache_file"$$ && 21290 mv -f "$cache_file"$$ "$cache_file" ;; #( 21291 *) 21292 mv -f confcache "$cache_file" ;; 21293 esac 21294 fi 21295 fi 21296 else 21297 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 21298$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21299 fi 21300fi 21301rm -f confcache 21302 21303test "x$prefix" = xNONE && prefix=$ac_default_prefix 21304# Let make expand exec_prefix. 21305test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21306 21307DEFS=-DHAVE_CONFIG_H 21308 21309ac_libobjs= 21310ac_ltlibobjs= 21311U= 21312for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21313 # 1. Remove the extension, and $U if already installed. 21314 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21315 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 21316 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21317 # will be set to the directory where LIBOBJS objects are built. 21318 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21319 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 21320done 21321LIBOBJS=$ac_libobjs 21322 21323LTLIBOBJS=$ac_ltlibobjs 21324 21325 21326 if test -n "$EXEEXT"; then 21327 am__EXEEXT_TRUE= 21328 am__EXEEXT_FALSE='#' 21329else 21330 am__EXEEXT_TRUE='#' 21331 am__EXEEXT_FALSE= 21332fi 21333 21334if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21335 as_fn_error $? "conditional \"AMDEP\" was never defined. 21336Usually this means the macro was only invoked conditionally." "$LINENO" 5 21337fi 21338if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21339 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 21340Usually this means the macro was only invoked conditionally." "$LINENO" 5 21341fi 21342if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21343 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 21344Usually this means the macro was only invoked conditionally." "$LINENO" 5 21345fi 21346if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 21347 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 21348Usually this means the macro was only invoked conditionally." "$LINENO" 5 21349fi 21350 21351 21352: "${CONFIG_STATUS=./config.status}" 21353ac_write_fail=0 21354ac_clean_files_save=$ac_clean_files 21355ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21356{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 21357$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 21358as_write_fail=0 21359cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 21360#! $SHELL 21361# Generated by $as_me. 21362# Run this file to recreate the current configuration. 21363# Compiler output produced by configure, useful for debugging 21364# configure, is in config.log if it exists. 21365 21366debug=false 21367ac_cs_recheck=false 21368ac_cs_silent=false 21369 21370SHELL=\${CONFIG_SHELL-$SHELL} 21371export SHELL 21372_ASEOF 21373cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 21374## -------------------- ## 21375## M4sh Initialization. ## 21376## -------------------- ## 21377 21378# Be more Bourne compatible 21379DUALCASE=1; export DUALCASE # for MKS sh 21380if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 21381 emulate sh 21382 NULLCMD=: 21383 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21384 # is contrary to our usage. Disable this feature. 21385 alias -g '${1+"$@"}'='"$@"' 21386 setopt NO_GLOB_SUBST 21387else 21388 case `(set -o) 2>/dev/null` in #( 21389 *posix*) : 21390 set -o posix ;; #( 21391 *) : 21392 ;; 21393esac 21394fi 21395 21396 21397as_nl=' 21398' 21399export as_nl 21400# Printing a long string crashes Solaris 7 /usr/bin/printf. 21401as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 21402as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 21403as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 21404# Prefer a ksh shell builtin over an external printf program on Solaris, 21405# but without wasting forks for bash or zsh. 21406if test -z "$BASH_VERSION$ZSH_VERSION" \ 21407 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 21408 as_echo='print -r --' 21409 as_echo_n='print -rn --' 21410elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 21411 as_echo='printf %s\n' 21412 as_echo_n='printf %s' 21413else 21414 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 21415 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 21416 as_echo_n='/usr/ucb/echo -n' 21417 else 21418 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 21419 as_echo_n_body='eval 21420 arg=$1; 21421 case $arg in #( 21422 *"$as_nl"*) 21423 expr "X$arg" : "X\\(.*\\)$as_nl"; 21424 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 21425 esac; 21426 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 21427 ' 21428 export as_echo_n_body 21429 as_echo_n='sh -c $as_echo_n_body as_echo' 21430 fi 21431 export as_echo_body 21432 as_echo='sh -c $as_echo_body as_echo' 21433fi 21434 21435# The user is always right. 21436if test "${PATH_SEPARATOR+set}" != set; then 21437 PATH_SEPARATOR=: 21438 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 21439 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 21440 PATH_SEPARATOR=';' 21441 } 21442fi 21443 21444 21445# IFS 21446# We need space, tab and new line, in precisely that order. Quoting is 21447# there to prevent editors from complaining about space-tab. 21448# (If _AS_PATH_WALK were called with IFS unset, it would disable word 21449# splitting by setting IFS to empty value.) 21450IFS=" "" $as_nl" 21451 21452# Find who we are. Look in the path if we contain no directory separator. 21453as_myself= 21454case $0 in #(( 21455 *[\\/]* ) as_myself=$0 ;; 21456 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21457for as_dir in $PATH 21458do 21459 IFS=$as_save_IFS 21460 test -z "$as_dir" && as_dir=. 21461 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21462 done 21463IFS=$as_save_IFS 21464 21465 ;; 21466esac 21467# We did not find ourselves, most probably we were run as `sh COMMAND' 21468# in which case we are not to be found in the path. 21469if test "x$as_myself" = x; then 21470 as_myself=$0 21471fi 21472if test ! -f "$as_myself"; then 21473 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21474 exit 1 21475fi 21476 21477# Unset variables that we do not need and which cause bugs (e.g. in 21478# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 21479# suppresses any "Segmentation fault" message there. '((' could 21480# trigger a bug in pdksh 5.2.14. 21481for as_var in BASH_ENV ENV MAIL MAILPATH 21482do eval test x\${$as_var+set} = xset \ 21483 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 21484done 21485PS1='$ ' 21486PS2='> ' 21487PS4='+ ' 21488 21489# NLS nuisances. 21490LC_ALL=C 21491export LC_ALL 21492LANGUAGE=C 21493export LANGUAGE 21494 21495# CDPATH. 21496(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21497 21498 21499# as_fn_error STATUS ERROR [LINENO LOG_FD] 21500# ---------------------------------------- 21501# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 21502# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 21503# script with STATUS, using 1 if that was 0. 21504as_fn_error () 21505{ 21506 as_status=$1; test $as_status -eq 0 && as_status=1 21507 if test "$4"; then 21508 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 21509 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 21510 fi 21511 $as_echo "$as_me: error: $2" >&2 21512 as_fn_exit $as_status 21513} # as_fn_error 21514 21515 21516# as_fn_set_status STATUS 21517# ----------------------- 21518# Set $? to STATUS, without forking. 21519as_fn_set_status () 21520{ 21521 return $1 21522} # as_fn_set_status 21523 21524# as_fn_exit STATUS 21525# ----------------- 21526# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 21527as_fn_exit () 21528{ 21529 set +e 21530 as_fn_set_status $1 21531 exit $1 21532} # as_fn_exit 21533 21534# as_fn_unset VAR 21535# --------------- 21536# Portably unset VAR. 21537as_fn_unset () 21538{ 21539 { eval $1=; unset $1;} 21540} 21541as_unset=as_fn_unset 21542# as_fn_append VAR VALUE 21543# ---------------------- 21544# Append the text in VALUE to the end of the definition contained in VAR. Take 21545# advantage of any shell optimizations that allow amortized linear growth over 21546# repeated appends, instead of the typical quadratic growth present in naive 21547# implementations. 21548if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 21549 eval 'as_fn_append () 21550 { 21551 eval $1+=\$2 21552 }' 21553else 21554 as_fn_append () 21555 { 21556 eval $1=\$$1\$2 21557 } 21558fi # as_fn_append 21559 21560# as_fn_arith ARG... 21561# ------------------ 21562# Perform arithmetic evaluation on the ARGs, and store the result in the 21563# global $as_val. Take advantage of shells that can avoid forks. The arguments 21564# must be portable across $(()) and expr. 21565if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 21566 eval 'as_fn_arith () 21567 { 21568 as_val=$(( $* )) 21569 }' 21570else 21571 as_fn_arith () 21572 { 21573 as_val=`expr "$@" || test $? -eq 1` 21574 } 21575fi # as_fn_arith 21576 21577 21578if expr a : '\(a\)' >/dev/null 2>&1 && 21579 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21580 as_expr=expr 21581else 21582 as_expr=false 21583fi 21584 21585if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21586 as_basename=basename 21587else 21588 as_basename=false 21589fi 21590 21591if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21592 as_dirname=dirname 21593else 21594 as_dirname=false 21595fi 21596 21597as_me=`$as_basename -- "$0" || 21598$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21599 X"$0" : 'X\(//\)$' \| \ 21600 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21601$as_echo X/"$0" | 21602 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21603 s//\1/ 21604 q 21605 } 21606 /^X\/\(\/\/\)$/{ 21607 s//\1/ 21608 q 21609 } 21610 /^X\/\(\/\).*/{ 21611 s//\1/ 21612 q 21613 } 21614 s/.*/./; q'` 21615 21616# Avoid depending upon Character Ranges. 21617as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21618as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21619as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21620as_cr_digits='0123456789' 21621as_cr_alnum=$as_cr_Letters$as_cr_digits 21622 21623ECHO_C= ECHO_N= ECHO_T= 21624case `echo -n x` in #((((( 21625-n*) 21626 case `echo 'xy\c'` in 21627 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21628 xy) ECHO_C='\c';; 21629 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 21630 ECHO_T=' ';; 21631 esac;; 21632*) 21633 ECHO_N='-n';; 21634esac 21635 21636rm -f conf$$ conf$$.exe conf$$.file 21637if test -d conf$$.dir; then 21638 rm -f conf$$.dir/conf$$.file 21639else 21640 rm -f conf$$.dir 21641 mkdir conf$$.dir 2>/dev/null 21642fi 21643if (echo >conf$$.file) 2>/dev/null; then 21644 if ln -s conf$$.file conf$$ 2>/dev/null; then 21645 as_ln_s='ln -s' 21646 # ... but there are two gotchas: 21647 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21648 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21649 # In both cases, we have to default to `cp -pR'. 21650 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21651 as_ln_s='cp -pR' 21652 elif ln conf$$.file conf$$ 2>/dev/null; then 21653 as_ln_s=ln 21654 else 21655 as_ln_s='cp -pR' 21656 fi 21657else 21658 as_ln_s='cp -pR' 21659fi 21660rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21661rmdir conf$$.dir 2>/dev/null 21662 21663 21664# as_fn_mkdir_p 21665# ------------- 21666# Create "$as_dir" as a directory, including parents if necessary. 21667as_fn_mkdir_p () 21668{ 21669 21670 case $as_dir in #( 21671 -*) as_dir=./$as_dir;; 21672 esac 21673 test -d "$as_dir" || eval $as_mkdir_p || { 21674 as_dirs= 21675 while :; do 21676 case $as_dir in #( 21677 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 21678 *) as_qdir=$as_dir;; 21679 esac 21680 as_dirs="'$as_qdir' $as_dirs" 21681 as_dir=`$as_dirname -- "$as_dir" || 21682$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21683 X"$as_dir" : 'X\(//\)[^/]' \| \ 21684 X"$as_dir" : 'X\(//\)$' \| \ 21685 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21686$as_echo X"$as_dir" | 21687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21688 s//\1/ 21689 q 21690 } 21691 /^X\(\/\/\)[^/].*/{ 21692 s//\1/ 21693 q 21694 } 21695 /^X\(\/\/\)$/{ 21696 s//\1/ 21697 q 21698 } 21699 /^X\(\/\).*/{ 21700 s//\1/ 21701 q 21702 } 21703 s/.*/./; q'` 21704 test -d "$as_dir" && break 21705 done 21706 test -z "$as_dirs" || eval "mkdir $as_dirs" 21707 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 21708 21709 21710} # as_fn_mkdir_p 21711if mkdir -p . 2>/dev/null; then 21712 as_mkdir_p='mkdir -p "$as_dir"' 21713else 21714 test -d ./-p && rmdir ./-p 21715 as_mkdir_p=false 21716fi 21717 21718 21719# as_fn_executable_p FILE 21720# ----------------------- 21721# Test if FILE is an executable regular file. 21722as_fn_executable_p () 21723{ 21724 test -f "$1" && test -x "$1" 21725} # as_fn_executable_p 21726as_test_x='test -x' 21727as_executable_p=as_fn_executable_p 21728 21729# Sed expression to map a string onto a valid CPP name. 21730as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21731 21732# Sed expression to map a string onto a valid variable name. 21733as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21734 21735 21736exec 6>&1 21737## ----------------------------------- ## 21738## Main body of $CONFIG_STATUS script. ## 21739## ----------------------------------- ## 21740_ASEOF 21741test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 21742 21743cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21744# Save the log message, to keep $0 and so on meaningful, and to 21745# report actual input values of CONFIG_FILES etc. instead of their 21746# values after options handling. 21747ac_log=" 21748This file was extended by mifluz $as_me 0.26.0, which was 21749generated by GNU Autoconf 2.69. Invocation command line was 21750 21751 CONFIG_FILES = $CONFIG_FILES 21752 CONFIG_HEADERS = $CONFIG_HEADERS 21753 CONFIG_LINKS = $CONFIG_LINKS 21754 CONFIG_COMMANDS = $CONFIG_COMMANDS 21755 $ $0 $@ 21756 21757on `(hostname || uname -n) 2>/dev/null | sed 1q` 21758" 21759 21760_ACEOF 21761 21762case $ac_config_files in *" 21763"*) set x $ac_config_files; shift; ac_config_files=$*;; 21764esac 21765 21766case $ac_config_headers in *" 21767"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 21768esac 21769 21770 21771cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21772# Files that config.status was made for. 21773config_files="$ac_config_files" 21774config_headers="$ac_config_headers" 21775config_commands="$ac_config_commands" 21776 21777_ACEOF 21778 21779cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21780ac_cs_usage="\ 21781\`$as_me' instantiates files and other configuration actions 21782from templates according to the current configuration. Unless the files 21783and actions are specified as TAGs, all are instantiated by default. 21784 21785Usage: $0 [OPTION]... [TAG]... 21786 21787 -h, --help print this help, then exit 21788 -V, --version print version number and configuration settings, then exit 21789 --config print configuration, then exit 21790 -q, --quiet, --silent 21791 do not print progress messages 21792 -d, --debug don't remove temporary files 21793 --recheck update $as_me by reconfiguring in the same conditions 21794 --file=FILE[:TEMPLATE] 21795 instantiate the configuration file FILE 21796 --header=FILE[:TEMPLATE] 21797 instantiate the configuration header FILE 21798 21799Configuration files: 21800$config_files 21801 21802Configuration headers: 21803$config_headers 21804 21805Configuration commands: 21806$config_commands 21807 21808Report bugs to <mifluz-bugs@gnu.org>." 21809 21810_ACEOF 21811cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21812ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 21813ac_cs_version="\\ 21814mifluz config.status 0.26.0 21815configured by $0, generated by GNU Autoconf 2.69, 21816 with options \\"\$ac_cs_config\\" 21817 21818Copyright (C) 2012 Free Software Foundation, Inc. 21819This config.status script is free software; the Free Software Foundation 21820gives unlimited permission to copy, distribute and modify it." 21821 21822ac_pwd='$ac_pwd' 21823srcdir='$srcdir' 21824INSTALL='$INSTALL' 21825MKDIR_P='$MKDIR_P' 21826AWK='$AWK' 21827test -n "\$AWK" || AWK=awk 21828_ACEOF 21829 21830cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21831# The default lists apply if the user does not specify any file. 21832ac_need_defaults=: 21833while test $# != 0 21834do 21835 case $1 in 21836 --*=?*) 21837 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21838 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21839 ac_shift=: 21840 ;; 21841 --*=) 21842 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21843 ac_optarg= 21844 ac_shift=: 21845 ;; 21846 *) 21847 ac_option=$1 21848 ac_optarg=$2 21849 ac_shift=shift 21850 ;; 21851 esac 21852 21853 case $ac_option in 21854 # Handling of the options. 21855 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21856 ac_cs_recheck=: ;; 21857 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21858 $as_echo "$ac_cs_version"; exit ;; 21859 --config | --confi | --conf | --con | --co | --c ) 21860 $as_echo "$ac_cs_config"; exit ;; 21861 --debug | --debu | --deb | --de | --d | -d ) 21862 debug=: ;; 21863 --file | --fil | --fi | --f ) 21864 $ac_shift 21865 case $ac_optarg in 21866 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21867 '') as_fn_error $? "missing file argument" ;; 21868 esac 21869 as_fn_append CONFIG_FILES " '$ac_optarg'" 21870 ac_need_defaults=false;; 21871 --header | --heade | --head | --hea ) 21872 $ac_shift 21873 case $ac_optarg in 21874 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21875 esac 21876 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 21877 ac_need_defaults=false;; 21878 --he | --h) 21879 # Conflict between --help and --header 21880 as_fn_error $? "ambiguous option: \`$1' 21881Try \`$0 --help' for more information.";; 21882 --help | --hel | -h ) 21883 $as_echo "$ac_cs_usage"; exit ;; 21884 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21885 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21886 ac_cs_silent=: ;; 21887 21888 # This is an error. 21889 -*) as_fn_error $? "unrecognized option: \`$1' 21890Try \`$0 --help' for more information." ;; 21891 21892 *) as_fn_append ac_config_targets " $1" 21893 ac_need_defaults=false ;; 21894 21895 esac 21896 shift 21897done 21898 21899ac_configure_extra_args= 21900 21901if $ac_cs_silent; then 21902 exec 6>/dev/null 21903 ac_configure_extra_args="$ac_configure_extra_args --silent" 21904fi 21905 21906_ACEOF 21907cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21908if \$ac_cs_recheck; then 21909 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21910 shift 21911 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 21912 CONFIG_SHELL='$SHELL' 21913 export CONFIG_SHELL 21914 exec "\$@" 21915fi 21916 21917_ACEOF 21918cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21919exec 5>>config.log 21920{ 21921 echo 21922 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21923## Running $as_me. ## 21924_ASBOX 21925 $as_echo "$ac_log" 21926} >&5 21927 21928_ACEOF 21929cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21930# 21931# INIT-COMMANDS 21932# 21933AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 21934 21935 21936# The HP-UX ksh and POSIX shell print the target directory to stdout 21937# if CDPATH is set. 21938(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21939 21940sed_quote_subst='$sed_quote_subst' 21941double_quote_subst='$double_quote_subst' 21942delay_variable_subst='$delay_variable_subst' 21943macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 21944macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 21945enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 21946enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 21947pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 21948enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 21949SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 21950ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 21951PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 21952host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 21953host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 21954host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 21955build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 21956build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 21957build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 21958SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 21959Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 21960GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 21961EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 21962FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 21963LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 21964NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 21965LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 21966max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 21967ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 21968exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 21969lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 21970lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 21971lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 21972lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 21973lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 21974reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 21975reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 21976OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 21977deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 21978file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 21979file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 21980want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 21981DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 21982sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 21983AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 21984AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 21985archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 21986STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 21987RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 21988old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21989old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21990old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 21991lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 21992CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 21993CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 21994compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 21995GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 21996lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 21997lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 21998lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 21999lt_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"`' 22000nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 22001lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 22002objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 22003MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 22004lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 22005lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 22006lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 22007lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 22008lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 22009need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 22010MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 22011DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 22012NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 22013LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 22014OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 22015OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 22016libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 22017shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 22018extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 22019archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 22020enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 22021export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 22022whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 22023compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 22024old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 22025old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 22026archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 22027archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 22028module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 22029module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 22030with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 22031allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 22032no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 22033hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 22034hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 22035hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 22036hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 22037hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 22038hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 22039hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 22040inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 22041link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 22042always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 22043export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 22044exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 22045include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 22046prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 22047postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 22048file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 22049variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 22050need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 22051need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 22052version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 22053runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 22054shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 22055shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 22056libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 22057library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 22058soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 22059install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 22060postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 22061postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 22062finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 22063finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 22064hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 22065sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 22066sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 22067hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 22068enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 22069enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 22070enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 22071old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 22072striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 22073compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 22074predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 22075postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 22076predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 22077postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 22078compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 22079LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 22080reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 22081reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 22082old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 22083compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 22084GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 22085lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 22086lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 22087lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 22088lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 22089lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 22090archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 22091enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 22092export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 22093whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 22094compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 22095old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 22096old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 22097archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 22098archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 22099module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 22100module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 22101with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 22102allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 22103no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 22104hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 22105hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 22106hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 22107hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 22108hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 22109hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 22110hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 22111inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 22112link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 22113always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 22114export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 22115exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 22116include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 22117prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 22118postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 22119file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 22120hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 22121compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 22122predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 22123postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 22124predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 22125postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 22126compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 22127 22128LTCC='$LTCC' 22129LTCFLAGS='$LTCFLAGS' 22130compiler='$compiler_DEFAULT' 22131 22132# A function that is used when there is no print builtin or printf. 22133func_fallback_echo () 22134{ 22135 eval 'cat <<_LTECHO_EOF 22136\$1 22137_LTECHO_EOF' 22138} 22139 22140# Quote evaled strings. 22141for var in SHELL \ 22142ECHO \ 22143PATH_SEPARATOR \ 22144SED \ 22145GREP \ 22146EGREP \ 22147FGREP \ 22148LD \ 22149NM \ 22150LN_S \ 22151lt_SP2NL \ 22152lt_NL2SP \ 22153reload_flag \ 22154OBJDUMP \ 22155deplibs_check_method \ 22156file_magic_cmd \ 22157file_magic_glob \ 22158want_nocaseglob \ 22159DLLTOOL \ 22160sharedlib_from_linklib_cmd \ 22161AR \ 22162AR_FLAGS \ 22163archiver_list_spec \ 22164STRIP \ 22165RANLIB \ 22166CC \ 22167CFLAGS \ 22168compiler \ 22169lt_cv_sys_global_symbol_pipe \ 22170lt_cv_sys_global_symbol_to_cdecl \ 22171lt_cv_sys_global_symbol_to_c_name_address \ 22172lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 22173nm_file_list_spec \ 22174lt_prog_compiler_no_builtin_flag \ 22175lt_prog_compiler_pic \ 22176lt_prog_compiler_wl \ 22177lt_prog_compiler_static \ 22178lt_cv_prog_compiler_c_o \ 22179need_locks \ 22180MANIFEST_TOOL \ 22181DSYMUTIL \ 22182NMEDIT \ 22183LIPO \ 22184OTOOL \ 22185OTOOL64 \ 22186shrext_cmds \ 22187export_dynamic_flag_spec \ 22188whole_archive_flag_spec \ 22189compiler_needs_object \ 22190with_gnu_ld \ 22191allow_undefined_flag \ 22192no_undefined_flag \ 22193hardcode_libdir_flag_spec \ 22194hardcode_libdir_separator \ 22195exclude_expsyms \ 22196include_expsyms \ 22197file_list_spec \ 22198variables_saved_for_relink \ 22199libname_spec \ 22200library_names_spec \ 22201soname_spec \ 22202install_override_mode \ 22203finish_eval \ 22204old_striplib \ 22205striplib \ 22206compiler_lib_search_dirs \ 22207predep_objects \ 22208postdep_objects \ 22209predeps \ 22210postdeps \ 22211compiler_lib_search_path \ 22212LD_CXX \ 22213reload_flag_CXX \ 22214compiler_CXX \ 22215lt_prog_compiler_no_builtin_flag_CXX \ 22216lt_prog_compiler_pic_CXX \ 22217lt_prog_compiler_wl_CXX \ 22218lt_prog_compiler_static_CXX \ 22219lt_cv_prog_compiler_c_o_CXX \ 22220export_dynamic_flag_spec_CXX \ 22221whole_archive_flag_spec_CXX \ 22222compiler_needs_object_CXX \ 22223with_gnu_ld_CXX \ 22224allow_undefined_flag_CXX \ 22225no_undefined_flag_CXX \ 22226hardcode_libdir_flag_spec_CXX \ 22227hardcode_libdir_separator_CXX \ 22228exclude_expsyms_CXX \ 22229include_expsyms_CXX \ 22230file_list_spec_CXX \ 22231compiler_lib_search_dirs_CXX \ 22232predep_objects_CXX \ 22233postdep_objects_CXX \ 22234predeps_CXX \ 22235postdeps_CXX \ 22236compiler_lib_search_path_CXX; do 22237 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22238 *[\\\\\\\`\\"\\\$]*) 22239 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 22240 ;; 22241 *) 22242 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22243 ;; 22244 esac 22245done 22246 22247# Double-quote double-evaled strings. 22248for var in reload_cmds \ 22249old_postinstall_cmds \ 22250old_postuninstall_cmds \ 22251old_archive_cmds \ 22252extract_expsyms_cmds \ 22253old_archive_from_new_cmds \ 22254old_archive_from_expsyms_cmds \ 22255archive_cmds \ 22256archive_expsym_cmds \ 22257module_cmds \ 22258module_expsym_cmds \ 22259export_symbols_cmds \ 22260prelink_cmds \ 22261postlink_cmds \ 22262postinstall_cmds \ 22263postuninstall_cmds \ 22264finish_cmds \ 22265sys_lib_search_path_spec \ 22266sys_lib_dlsearch_path_spec \ 22267reload_cmds_CXX \ 22268old_archive_cmds_CXX \ 22269old_archive_from_new_cmds_CXX \ 22270old_archive_from_expsyms_cmds_CXX \ 22271archive_cmds_CXX \ 22272archive_expsym_cmds_CXX \ 22273module_cmds_CXX \ 22274module_expsym_cmds_CXX \ 22275export_symbols_cmds_CXX \ 22276prelink_cmds_CXX \ 22277postlink_cmds_CXX; do 22278 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22279 *[\\\\\\\`\\"\\\$]*) 22280 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 22281 ;; 22282 *) 22283 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22284 ;; 22285 esac 22286done 22287 22288ac_aux_dir='$ac_aux_dir' 22289xsi_shell='$xsi_shell' 22290lt_shell_append='$lt_shell_append' 22291 22292# See if we are running on zsh, and set the options which allow our 22293# commands through without removal of \ escapes INIT. 22294if test -n "\${ZSH_VERSION+set}" ; then 22295 setopt NO_GLOB_SUBST 22296fi 22297 22298 22299 PACKAGE='$PACKAGE' 22300 VERSION='$VERSION' 22301 TIMESTAMP='$TIMESTAMP' 22302 RM='$RM' 22303 ofile='$ofile' 22304 22305 22306 22307 22308 22309 22310_ACEOF 22311 22312cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22313 22314# Handling of arguments. 22315for ac_config_target in $ac_config_targets 22316do 22317 case $ac_config_target in 22318 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 22319 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 22320 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 22321 "mifluz-config") CONFIG_FILES="$CONFIG_FILES mifluz-config" ;; 22322 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22323 "mifluz.spec") CONFIG_FILES="$CONFIG_FILES mifluz.spec" ;; 22324 "clib/Makefile") CONFIG_FILES="$CONFIG_FILES clib/Makefile" ;; 22325 "db/Makefile") CONFIG_FILES="$CONFIG_FILES db/Makefile" ;; 22326 "db/db.h") CONFIG_FILES="$CONFIG_FILES db/db.h" ;; 22327 "mifluz/Makefile") CONFIG_FILES="$CONFIG_FILES mifluz/Makefile" ;; 22328 "htdb/Makefile") CONFIG_FILES="$CONFIG_FILES htdb/Makefile" ;; 22329 "search/Makefile") CONFIG_FILES="$CONFIG_FILES search/Makefile" ;; 22330 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 22331 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 22332 "test/test_functions") CONFIG_FILES="$CONFIG_FILES test/test_functions" ;; 22333 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; 22334 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 22335 22336 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 22337 esac 22338done 22339 22340 22341# If the user did not use the arguments to specify the items to instantiate, 22342# then the envvar interface is used. Set only those that are not. 22343# We use the long form for the default assignment because of an extremely 22344# bizarre bug on SunOS 4.1.3. 22345if $ac_need_defaults; then 22346 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22347 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 22348 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22349fi 22350 22351# Have a temporary directory for convenience. Make it in the build tree 22352# simply because there is no reason against having it here, and in addition, 22353# creating and moving files from /tmp can sometimes cause problems. 22354# Hook for its removal unless debugging. 22355# Note that there is a small window in which the directory will not be cleaned: 22356# after its creation but before its name has been assigned to `$tmp'. 22357$debug || 22358{ 22359 tmp= ac_tmp= 22360 trap 'exit_status=$? 22361 : "${ac_tmp:=$tmp}" 22362 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 22363' 0 22364 trap 'as_fn_exit 1' 1 2 13 15 22365} 22366# Create a (secure) tmp directory for tmp files. 22367 22368{ 22369 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22370 test -d "$tmp" 22371} || 22372{ 22373 tmp=./conf$$-$RANDOM 22374 (umask 077 && mkdir "$tmp") 22375} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 22376ac_tmp=$tmp 22377 22378# Set up the scripts for CONFIG_FILES section. 22379# No need to generate them if there are no CONFIG_FILES. 22380# This happens for instance with `./config.status config.h'. 22381if test -n "$CONFIG_FILES"; then 22382 22383 22384ac_cr=`echo X | tr X '\015'` 22385# On cygwin, bash can eat \r inside `` if the user requested igncr. 22386# But we know of no other shell where ac_cr would be empty at this 22387# point, so we can use a bashism as a fallback. 22388if test "x$ac_cr" = x; then 22389 eval ac_cr=\$\'\\r\' 22390fi 22391ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 22392if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 22393 ac_cs_awk_cr='\\r' 22394else 22395 ac_cs_awk_cr=$ac_cr 22396fi 22397 22398echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 22399_ACEOF 22400 22401 22402{ 22403 echo "cat >conf$$subs.awk <<_ACEOF" && 22404 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 22405 echo "_ACEOF" 22406} >conf$$subs.sh || 22407 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22408ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 22409ac_delim='%!_!# ' 22410for ac_last_try in false false false false false :; do 22411 . ./conf$$subs.sh || 22412 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22413 22414 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 22415 if test $ac_delim_n = $ac_delim_num; then 22416 break 22417 elif $ac_last_try; then 22418 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22419 else 22420 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22421 fi 22422done 22423rm -f conf$$subs.sh 22424 22425cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22426cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 22427_ACEOF 22428sed -n ' 22429h 22430s/^/S["/; s/!.*/"]=/ 22431p 22432g 22433s/^[^!]*!// 22434:repl 22435t repl 22436s/'"$ac_delim"'$// 22437t delim 22438:nl 22439h 22440s/\(.\{148\}\)..*/\1/ 22441t more1 22442s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 22443p 22444n 22445b repl 22446:more1 22447s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22448p 22449g 22450s/.\{148\}// 22451t nl 22452:delim 22453h 22454s/\(.\{148\}\)..*/\1/ 22455t more2 22456s/["\\]/\\&/g; s/^/"/; s/$/"/ 22457p 22458b 22459:more2 22460s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22461p 22462g 22463s/.\{148\}// 22464t delim 22465' <conf$$subs.awk | sed ' 22466/^[^""]/{ 22467 N 22468 s/\n// 22469} 22470' >>$CONFIG_STATUS || ac_write_fail=1 22471rm -f conf$$subs.awk 22472cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22473_ACAWK 22474cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 22475 for (key in S) S_is_set[key] = 1 22476 FS = "" 22477 22478} 22479{ 22480 line = $ 0 22481 nfields = split(line, field, "@") 22482 substed = 0 22483 len = length(field[1]) 22484 for (i = 2; i < nfields; i++) { 22485 key = field[i] 22486 keylen = length(key) 22487 if (S_is_set[key]) { 22488 value = S[key] 22489 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 22490 len += length(value) + length(field[++i]) 22491 substed = 1 22492 } else 22493 len += 1 + keylen 22494 } 22495 22496 print line 22497} 22498 22499_ACAWK 22500_ACEOF 22501cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22502if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 22503 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 22504else 22505 cat 22506fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 22507 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 22508_ACEOF 22509 22510# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 22511# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 22512# trailing colons and then remove the whole line if VPATH becomes empty 22513# (actually we leave an empty line to preserve line numbers). 22514if test "x$srcdir" = x.; then 22515 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 22516h 22517s/// 22518s/^/:/ 22519s/[ ]*$/:/ 22520s/:\$(srcdir):/:/g 22521s/:\${srcdir}:/:/g 22522s/:@srcdir@:/:/g 22523s/^:*// 22524s/:*$// 22525x 22526s/\(=[ ]*\).*/\1/ 22527G 22528s/\n// 22529s/^[^=]*=[ ]*$// 22530}' 22531fi 22532 22533cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22534fi # test -n "$CONFIG_FILES" 22535 22536# Set up the scripts for CONFIG_HEADERS section. 22537# No need to generate them if there are no CONFIG_HEADERS. 22538# This happens for instance with `./config.status Makefile'. 22539if test -n "$CONFIG_HEADERS"; then 22540cat >"$ac_tmp/defines.awk" <<\_ACAWK || 22541BEGIN { 22542_ACEOF 22543 22544# Transform confdefs.h into an awk script `defines.awk', embedded as 22545# here-document in config.status, that substitutes the proper values into 22546# config.h.in to produce config.h. 22547 22548# Create a delimiter string that does not exist in confdefs.h, to ease 22549# handling of long lines. 22550ac_delim='%!_!# ' 22551for ac_last_try in false false :; do 22552 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 22553 if test -z "$ac_tt"; then 22554 break 22555 elif $ac_last_try; then 22556 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 22557 else 22558 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22559 fi 22560done 22561 22562# For the awk script, D is an array of macro values keyed by name, 22563# likewise P contains macro parameters if any. Preserve backslash 22564# newline sequences. 22565 22566ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22567sed -n ' 22568s/.\{148\}/&'"$ac_delim"'/g 22569t rset 22570:rset 22571s/^[ ]*#[ ]*define[ ][ ]*/ / 22572t def 22573d 22574:def 22575s/\\$// 22576t bsnl 22577s/["\\]/\\&/g 22578s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22579D["\1"]=" \3"/p 22580s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 22581d 22582:bsnl 22583s/["\\]/\\&/g 22584s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22585D["\1"]=" \3\\\\\\n"\\/p 22586t cont 22587s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 22588t cont 22589d 22590:cont 22591n 22592s/.\{148\}/&'"$ac_delim"'/g 22593t clear 22594:clear 22595s/\\$// 22596t bsnlc 22597s/["\\]/\\&/g; s/^/"/; s/$/"/p 22598d 22599:bsnlc 22600s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 22601b cont 22602' <confdefs.h | sed ' 22603s/'"$ac_delim"'/"\\\ 22604"/g' >>$CONFIG_STATUS || ac_write_fail=1 22605 22606cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22607 for (key in D) D_is_set[key] = 1 22608 FS = "" 22609} 22610/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 22611 line = \$ 0 22612 split(line, arg, " ") 22613 if (arg[1] == "#") { 22614 defundef = arg[2] 22615 mac1 = arg[3] 22616 } else { 22617 defundef = substr(arg[1], 2) 22618 mac1 = arg[2] 22619 } 22620 split(mac1, mac2, "(") #) 22621 macro = mac2[1] 22622 prefix = substr(line, 1, index(line, defundef) - 1) 22623 if (D_is_set[macro]) { 22624 # Preserve the white space surrounding the "#". 22625 print prefix "define", macro P[macro] D[macro] 22626 next 22627 } else { 22628 # Replace #undef with comments. This is necessary, for example, 22629 # in the case of _POSIX_SOURCE, which is predefined and required 22630 # on some systems where configure will not decide to define it. 22631 if (defundef == "undef") { 22632 print "/*", prefix defundef, macro, "*/" 22633 next 22634 } 22635 } 22636} 22637{ print } 22638_ACAWK 22639_ACEOF 22640cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22641 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 22642fi # test -n "$CONFIG_HEADERS" 22643 22644 22645eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 22646shift 22647for ac_tag 22648do 22649 case $ac_tag in 22650 :[FHLC]) ac_mode=$ac_tag; continue;; 22651 esac 22652 case $ac_mode$ac_tag in 22653 :[FHL]*:*);; 22654 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 22655 :[FH]-) ac_tag=-:-;; 22656 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22657 esac 22658 ac_save_IFS=$IFS 22659 IFS=: 22660 set x $ac_tag 22661 IFS=$ac_save_IFS 22662 shift 22663 ac_file=$1 22664 shift 22665 22666 case $ac_mode in 22667 :L) ac_source=$1;; 22668 :[FH]) 22669 ac_file_inputs= 22670 for ac_f 22671 do 22672 case $ac_f in 22673 -) ac_f="$ac_tmp/stdin";; 22674 *) # Look for the file first in the build tree, then in the source tree 22675 # (if the path is not absolute). The absolute path cannot be DOS-style, 22676 # because $ac_f cannot contain `:'. 22677 test -f "$ac_f" || 22678 case $ac_f in 22679 [\\/$]*) false;; 22680 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22681 esac || 22682 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 22683 esac 22684 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 22685 as_fn_append ac_file_inputs " '$ac_f'" 22686 done 22687 22688 # Let's still pretend it is `configure' which instantiates (i.e., don't 22689 # use $as_me), people would be surprised to read: 22690 # /* config.h. Generated by config.status. */ 22691 configure_input='Generated from '` 22692 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 22693 `' by configure.' 22694 if test x"$ac_file" != x-; then 22695 configure_input="$ac_file. $configure_input" 22696 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 22697$as_echo "$as_me: creating $ac_file" >&6;} 22698 fi 22699 # Neutralize special characters interpreted by sed in replacement strings. 22700 case $configure_input in #( 22701 *\&* | *\|* | *\\* ) 22702 ac_sed_conf_input=`$as_echo "$configure_input" | 22703 sed 's/[\\\\&|]/\\\\&/g'`;; #( 22704 *) ac_sed_conf_input=$configure_input;; 22705 esac 22706 22707 case $ac_tag in 22708 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 22709 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 22710 esac 22711 ;; 22712 esac 22713 22714 ac_dir=`$as_dirname -- "$ac_file" || 22715$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22716 X"$ac_file" : 'X\(//\)[^/]' \| \ 22717 X"$ac_file" : 'X\(//\)$' \| \ 22718 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22719$as_echo X"$ac_file" | 22720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22721 s//\1/ 22722 q 22723 } 22724 /^X\(\/\/\)[^/].*/{ 22725 s//\1/ 22726 q 22727 } 22728 /^X\(\/\/\)$/{ 22729 s//\1/ 22730 q 22731 } 22732 /^X\(\/\).*/{ 22733 s//\1/ 22734 q 22735 } 22736 s/.*/./; q'` 22737 as_dir="$ac_dir"; as_fn_mkdir_p 22738 ac_builddir=. 22739 22740case "$ac_dir" in 22741.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22742*) 22743 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 22744 # A ".." for each directory in $ac_dir_suffix. 22745 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 22746 case $ac_top_builddir_sub in 22747 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22748 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22749 esac ;; 22750esac 22751ac_abs_top_builddir=$ac_pwd 22752ac_abs_builddir=$ac_pwd$ac_dir_suffix 22753# for backward compatibility: 22754ac_top_builddir=$ac_top_build_prefix 22755 22756case $srcdir in 22757 .) # We are building in place. 22758 ac_srcdir=. 22759 ac_top_srcdir=$ac_top_builddir_sub 22760 ac_abs_top_srcdir=$ac_pwd ;; 22761 [\\/]* | ?:[\\/]* ) # Absolute name. 22762 ac_srcdir=$srcdir$ac_dir_suffix; 22763 ac_top_srcdir=$srcdir 22764 ac_abs_top_srcdir=$srcdir ;; 22765 *) # Relative name. 22766 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22767 ac_top_srcdir=$ac_top_build_prefix$srcdir 22768 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22769esac 22770ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22771 22772 22773 case $ac_mode in 22774 :F) 22775 # 22776 # CONFIG_FILE 22777 # 22778 22779 case $INSTALL in 22780 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22781 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22782 esac 22783 ac_MKDIR_P=$MKDIR_P 22784 case $MKDIR_P in 22785 [\\/$]* | ?:[\\/]* ) ;; 22786 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 22787 esac 22788_ACEOF 22789 22790cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22791# If the template does not know about datarootdir, expand it. 22792# FIXME: This hack should be removed a few years after 2.60. 22793ac_datarootdir_hack=; ac_datarootdir_seen= 22794ac_sed_dataroot=' 22795/datarootdir/ { 22796 p 22797 q 22798} 22799/@datadir@/p 22800/@docdir@/p 22801/@infodir@/p 22802/@localedir@/p 22803/@mandir@/p' 22804case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 22805*datarootdir*) ac_datarootdir_seen=yes;; 22806*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22808$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22809_ACEOF 22810cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22811 ac_datarootdir_hack=' 22812 s&@datadir@&$datadir&g 22813 s&@docdir@&$docdir&g 22814 s&@infodir@&$infodir&g 22815 s&@localedir@&$localedir&g 22816 s&@mandir@&$mandir&g 22817 s&\\\${datarootdir}&$datarootdir&g' ;; 22818esac 22819_ACEOF 22820 22821# Neutralize VPATH when `$srcdir' = `.'. 22822# Shell code in configure.ac might set extrasub. 22823# FIXME: do we really want to maintain this feature? 22824cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22825ac_sed_extra="$ac_vpsub 22826$extrasub 22827_ACEOF 22828cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22829:t 22830/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22831s|@configure_input@|$ac_sed_conf_input|;t t 22832s&@top_builddir@&$ac_top_builddir_sub&;t t 22833s&@top_build_prefix@&$ac_top_build_prefix&;t t 22834s&@srcdir@&$ac_srcdir&;t t 22835s&@abs_srcdir@&$ac_abs_srcdir&;t t 22836s&@top_srcdir@&$ac_top_srcdir&;t t 22837s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22838s&@builddir@&$ac_builddir&;t t 22839s&@abs_builddir@&$ac_abs_builddir&;t t 22840s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22841s&@INSTALL@&$ac_INSTALL&;t t 22842s&@MKDIR_P@&$ac_MKDIR_P&;t t 22843$ac_datarootdir_hack 22844" 22845eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 22846 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22847 22848test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22849 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 22850 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 22851 "$ac_tmp/out"`; test -z "$ac_out"; } && 22852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22853which seems to be undefined. Please make sure it is defined" >&5 22854$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22855which seems to be undefined. Please make sure it is defined" >&2;} 22856 22857 rm -f "$ac_tmp/stdin" 22858 case $ac_file in 22859 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 22860 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 22861 esac \ 22862 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22863 ;; 22864 :H) 22865 # 22866 # CONFIG_HEADER 22867 # 22868 if test x"$ac_file" != x-; then 22869 { 22870 $as_echo "/* $configure_input */" \ 22871 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 22872 } >"$ac_tmp/config.h" \ 22873 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22874 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 22875 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 22876$as_echo "$as_me: $ac_file is unchanged" >&6;} 22877 else 22878 rm -f "$ac_file" 22879 mv "$ac_tmp/config.h" "$ac_file" \ 22880 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22881 fi 22882 else 22883 $as_echo "/* $configure_input */" \ 22884 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 22885 || as_fn_error $? "could not create -" "$LINENO" 5 22886 fi 22887# Compute "$ac_file"'s index in $config_headers. 22888_am_arg="$ac_file" 22889_am_stamp_count=1 22890for _am_header in $config_headers :; do 22891 case $_am_header in 22892 $_am_arg | $_am_arg:* ) 22893 break ;; 22894 * ) 22895 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22896 esac 22897done 22898echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 22899$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22900 X"$_am_arg" : 'X\(//\)[^/]' \| \ 22901 X"$_am_arg" : 'X\(//\)$' \| \ 22902 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 22903$as_echo X"$_am_arg" | 22904 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22905 s//\1/ 22906 q 22907 } 22908 /^X\(\/\/\)[^/].*/{ 22909 s//\1/ 22910 q 22911 } 22912 /^X\(\/\/\)$/{ 22913 s//\1/ 22914 q 22915 } 22916 /^X\(\/\).*/{ 22917 s//\1/ 22918 q 22919 } 22920 s/.*/./; q'`/stamp-h$_am_stamp_count 22921 ;; 22922 22923 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 22924$as_echo "$as_me: executing $ac_file commands" >&6;} 22925 ;; 22926 esac 22927 22928 22929 case $ac_file$ac_mode in 22930 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 22931 # Autoconf 2.62 quotes --file arguments for eval, but not when files 22932 # are listed without --file. Let's play safe and only enable the eval 22933 # if we detect the quoting. 22934 case $CONFIG_FILES in 22935 *\'*) eval set x "$CONFIG_FILES" ;; 22936 *) set x $CONFIG_FILES ;; 22937 esac 22938 shift 22939 for mf 22940 do 22941 # Strip MF so we end up with the name of the file. 22942 mf=`echo "$mf" | sed -e 's/:.*$//'` 22943 # Check whether this is an Automake generated Makefile or not. 22944 # We used to match only the files named `Makefile.in', but 22945 # some people rename them; so instead we look at the file content. 22946 # Grep'ing the first line is not enough: some people post-process 22947 # each Makefile.in and add a new line on top of each file to say so. 22948 # Grep'ing the whole file is not good either: AIX grep has a line 22949 # limit of 2048, but all sed's we know have understand at least 4000. 22950 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 22951 dirpart=`$as_dirname -- "$mf" || 22952$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22953 X"$mf" : 'X\(//\)[^/]' \| \ 22954 X"$mf" : 'X\(//\)$' \| \ 22955 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 22956$as_echo X"$mf" | 22957 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22958 s//\1/ 22959 q 22960 } 22961 /^X\(\/\/\)[^/].*/{ 22962 s//\1/ 22963 q 22964 } 22965 /^X\(\/\/\)$/{ 22966 s//\1/ 22967 q 22968 } 22969 /^X\(\/\).*/{ 22970 s//\1/ 22971 q 22972 } 22973 s/.*/./; q'` 22974 else 22975 continue 22976 fi 22977 # Extract the definition of DEPDIR, am__include, and am__quote 22978 # from the Makefile without running `make'. 22979 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 22980 test -z "$DEPDIR" && continue 22981 am__include=`sed -n 's/^am__include = //p' < "$mf"` 22982 test -z "am__include" && continue 22983 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 22984 # When using ansi2knr, U may be empty or an underscore; expand it 22985 U=`sed -n 's/^U = //p' < "$mf"` 22986 # Find all dependency output files, they are included files with 22987 # $(DEPDIR) in their names. We invoke sed twice because it is the 22988 # simplest approach to changing $(DEPDIR) to its actual value in the 22989 # expansion. 22990 for file in `sed -n " 22991 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 22992 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 22993 # Make sure the directory exists. 22994 test -f "$dirpart/$file" && continue 22995 fdir=`$as_dirname -- "$file" || 22996$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22997 X"$file" : 'X\(//\)[^/]' \| \ 22998 X"$file" : 'X\(//\)$' \| \ 22999 X"$file" : 'X\(/\)' \| . 2>/dev/null || 23000$as_echo X"$file" | 23001 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23002 s//\1/ 23003 q 23004 } 23005 /^X\(\/\/\)[^/].*/{ 23006 s//\1/ 23007 q 23008 } 23009 /^X\(\/\/\)$/{ 23010 s//\1/ 23011 q 23012 } 23013 /^X\(\/\).*/{ 23014 s//\1/ 23015 q 23016 } 23017 s/.*/./; q'` 23018 as_dir=$dirpart/$fdir; as_fn_mkdir_p 23019 # echo "creating $dirpart/$file" 23020 echo '# dummy' > "$dirpart/$file" 23021 done 23022 done 23023} 23024 ;; 23025 "libtool":C) 23026 23027 # See if we are running on zsh, and set the options which allow our 23028 # commands through without removal of \ escapes. 23029 if test -n "${ZSH_VERSION+set}" ; then 23030 setopt NO_GLOB_SUBST 23031 fi 23032 23033 cfgfile="${ofile}T" 23034 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 23035 $RM "$cfgfile" 23036 23037 cat <<_LT_EOF >> "$cfgfile" 23038#! $SHELL 23039 23040# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 23041# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 23042# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 23043# NOTE: Changes made to this file will be lost: look at ltmain.sh. 23044# 23045# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 23046# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 23047# Foundation, Inc. 23048# Written by Gordon Matzigkeit, 1996 23049# 23050# This file is part of GNU Libtool. 23051# 23052# GNU Libtool is free software; you can redistribute it and/or 23053# modify it under the terms of the GNU General Public License as 23054# published by the Free Software Foundation; either version 2 of 23055# the License, or (at your option) any later version. 23056# 23057# As a special exception to the GNU General Public License, 23058# if you distribute this file as part of a program or library that 23059# is built using GNU Libtool, you may include this file under the 23060# same distribution terms that you use for the rest of that program. 23061# 23062# GNU Libtool is distributed in the hope that it will be useful, 23063# but WITHOUT ANY WARRANTY; without even the implied warranty of 23064# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 23065# GNU General Public License for more details. 23066# 23067# You should have received a copy of the GNU General Public License 23068# along with GNU Libtool; see the file COPYING. If not, a copy 23069# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 23070# obtained by writing to the Free Software Foundation, Inc., 23071# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 23072 23073 23074# The names of the tagged configurations supported by this script. 23075available_tags="CXX " 23076 23077# ### BEGIN LIBTOOL CONFIG 23078 23079# Which release of libtool.m4 was used? 23080macro_version=$macro_version 23081macro_revision=$macro_revision 23082 23083# Whether or not to build shared libraries. 23084build_libtool_libs=$enable_shared 23085 23086# Whether or not to build static libraries. 23087build_old_libs=$enable_static 23088 23089# What type of objects to build. 23090pic_mode=$pic_mode 23091 23092# Whether or not to optimize for fast installation. 23093fast_install=$enable_fast_install 23094 23095# Shell to use when invoking shell scripts. 23096SHELL=$lt_SHELL 23097 23098# An echo program that protects backslashes. 23099ECHO=$lt_ECHO 23100 23101# The PATH separator for the build system. 23102PATH_SEPARATOR=$lt_PATH_SEPARATOR 23103 23104# The host system. 23105host_alias=$host_alias 23106host=$host 23107host_os=$host_os 23108 23109# The build system. 23110build_alias=$build_alias 23111build=$build 23112build_os=$build_os 23113 23114# A sed program that does not truncate output. 23115SED=$lt_SED 23116 23117# Sed that helps us avoid accidentally triggering echo(1) options like -n. 23118Xsed="\$SED -e 1s/^X//" 23119 23120# A grep program that handles long lines. 23121GREP=$lt_GREP 23122 23123# An ERE matcher. 23124EGREP=$lt_EGREP 23125 23126# A literal string matcher. 23127FGREP=$lt_FGREP 23128 23129# A BSD- or MS-compatible name lister. 23130NM=$lt_NM 23131 23132# Whether we need soft or hard links. 23133LN_S=$lt_LN_S 23134 23135# What is the maximum length of a command? 23136max_cmd_len=$max_cmd_len 23137 23138# Object file suffix (normally "o"). 23139objext=$ac_objext 23140 23141# Executable file suffix (normally ""). 23142exeext=$exeext 23143 23144# whether the shell understands "unset". 23145lt_unset=$lt_unset 23146 23147# turn spaces into newlines. 23148SP2NL=$lt_lt_SP2NL 23149 23150# turn newlines into spaces. 23151NL2SP=$lt_lt_NL2SP 23152 23153# convert \$build file names to \$host format. 23154to_host_file_cmd=$lt_cv_to_host_file_cmd 23155 23156# convert \$build files to toolchain format. 23157to_tool_file_cmd=$lt_cv_to_tool_file_cmd 23158 23159# An object symbol dumper. 23160OBJDUMP=$lt_OBJDUMP 23161 23162# Method to check whether dependent libraries are shared objects. 23163deplibs_check_method=$lt_deplibs_check_method 23164 23165# Command to use when deplibs_check_method = "file_magic". 23166file_magic_cmd=$lt_file_magic_cmd 23167 23168# How to find potential files when deplibs_check_method = "file_magic". 23169file_magic_glob=$lt_file_magic_glob 23170 23171# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 23172want_nocaseglob=$lt_want_nocaseglob 23173 23174# DLL creation program. 23175DLLTOOL=$lt_DLLTOOL 23176 23177# Command to associate shared and link libraries. 23178sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 23179 23180# The archiver. 23181AR=$lt_AR 23182 23183# Flags to create an archive. 23184AR_FLAGS=$lt_AR_FLAGS 23185 23186# How to feed a file listing to the archiver. 23187archiver_list_spec=$lt_archiver_list_spec 23188 23189# A symbol stripping program. 23190STRIP=$lt_STRIP 23191 23192# Commands used to install an old-style archive. 23193RANLIB=$lt_RANLIB 23194old_postinstall_cmds=$lt_old_postinstall_cmds 23195old_postuninstall_cmds=$lt_old_postuninstall_cmds 23196 23197# Whether to use a lock for old archive extraction. 23198lock_old_archive_extraction=$lock_old_archive_extraction 23199 23200# A C compiler. 23201LTCC=$lt_CC 23202 23203# LTCC compiler flags. 23204LTCFLAGS=$lt_CFLAGS 23205 23206# Take the output of nm and produce a listing of raw symbols and C names. 23207global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 23208 23209# Transform the output of nm in a proper C declaration. 23210global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 23211 23212# Transform the output of nm in a C name address pair. 23213global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 23214 23215# Transform the output of nm in a C name address pair when lib prefix is needed. 23216global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 23217 23218# Specify filename containing input files for \$NM. 23219nm_file_list_spec=$lt_nm_file_list_spec 23220 23221# The root where to search for dependent libraries,and in which our libraries should be installed. 23222lt_sysroot=$lt_sysroot 23223 23224# The name of the directory that contains temporary libtool files. 23225objdir=$objdir 23226 23227# Used to examine libraries when file_magic_cmd begins with "file". 23228MAGIC_CMD=$MAGIC_CMD 23229 23230# Must we lock files when doing compilation? 23231need_locks=$lt_need_locks 23232 23233# Manifest tool. 23234MANIFEST_TOOL=$lt_MANIFEST_TOOL 23235 23236# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 23237DSYMUTIL=$lt_DSYMUTIL 23238 23239# Tool to change global to local symbols on Mac OS X. 23240NMEDIT=$lt_NMEDIT 23241 23242# Tool to manipulate fat objects and archives on Mac OS X. 23243LIPO=$lt_LIPO 23244 23245# ldd/readelf like tool for Mach-O binaries on Mac OS X. 23246OTOOL=$lt_OTOOL 23247 23248# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 23249OTOOL64=$lt_OTOOL64 23250 23251# Old archive suffix (normally "a"). 23252libext=$libext 23253 23254# Shared library suffix (normally ".so"). 23255shrext_cmds=$lt_shrext_cmds 23256 23257# The commands to extract the exported symbol list from a shared archive. 23258extract_expsyms_cmds=$lt_extract_expsyms_cmds 23259 23260# Variables whose values should be saved in libtool wrapper scripts and 23261# restored at link time. 23262variables_saved_for_relink=$lt_variables_saved_for_relink 23263 23264# Do we need the "lib" prefix for modules? 23265need_lib_prefix=$need_lib_prefix 23266 23267# Do we need a version for libraries? 23268need_version=$need_version 23269 23270# Library versioning type. 23271version_type=$version_type 23272 23273# Shared library runtime path variable. 23274runpath_var=$runpath_var 23275 23276# Shared library path variable. 23277shlibpath_var=$shlibpath_var 23278 23279# Is shlibpath searched before the hard-coded library search path? 23280shlibpath_overrides_runpath=$shlibpath_overrides_runpath 23281 23282# Format of library name prefix. 23283libname_spec=$lt_libname_spec 23284 23285# List of archive names. First name is the real one, the rest are links. 23286# The last name is the one that the linker finds with -lNAME 23287library_names_spec=$lt_library_names_spec 23288 23289# The coded name of the library, if different from the real name. 23290soname_spec=$lt_soname_spec 23291 23292# Permission mode override for installation of shared libraries. 23293install_override_mode=$lt_install_override_mode 23294 23295# Command to use after installation of a shared archive. 23296postinstall_cmds=$lt_postinstall_cmds 23297 23298# Command to use after uninstallation of a shared archive. 23299postuninstall_cmds=$lt_postuninstall_cmds 23300 23301# Commands used to finish a libtool library installation in a directory. 23302finish_cmds=$lt_finish_cmds 23303 23304# As "finish_cmds", except a single script fragment to be evaled but 23305# not shown. 23306finish_eval=$lt_finish_eval 23307 23308# Whether we should hardcode library paths into libraries. 23309hardcode_into_libs=$hardcode_into_libs 23310 23311# Compile-time system search path for libraries. 23312sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 23313 23314# Run-time system search path for libraries. 23315sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 23316 23317# Whether dlopen is supported. 23318dlopen_support=$enable_dlopen 23319 23320# Whether dlopen of programs is supported. 23321dlopen_self=$enable_dlopen_self 23322 23323# Whether dlopen of statically linked programs is supported. 23324dlopen_self_static=$enable_dlopen_self_static 23325 23326# Commands to strip libraries. 23327old_striplib=$lt_old_striplib 23328striplib=$lt_striplib 23329 23330 23331# The linker used to build libraries. 23332LD=$lt_LD 23333 23334# How to create reloadable object files. 23335reload_flag=$lt_reload_flag 23336reload_cmds=$lt_reload_cmds 23337 23338# Commands used to build an old-style archive. 23339old_archive_cmds=$lt_old_archive_cmds 23340 23341# A language specific compiler. 23342CC=$lt_compiler 23343 23344# Is the compiler the GNU compiler? 23345with_gcc=$GCC 23346 23347# Compiler flag to turn off builtin functions. 23348no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 23349 23350# Additional compiler flags for building library objects. 23351pic_flag=$lt_lt_prog_compiler_pic 23352 23353# How to pass a linker flag through the compiler. 23354wl=$lt_lt_prog_compiler_wl 23355 23356# Compiler flag to prevent dynamic linking. 23357link_static_flag=$lt_lt_prog_compiler_static 23358 23359# Does compiler simultaneously support -c and -o options? 23360compiler_c_o=$lt_lt_cv_prog_compiler_c_o 23361 23362# Whether or not to add -lc for building shared libraries. 23363build_libtool_need_lc=$archive_cmds_need_lc 23364 23365# Whether or not to disallow shared libs when runtime libs are static. 23366allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 23367 23368# Compiler flag to allow reflexive dlopens. 23369export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 23370 23371# Compiler flag to generate shared objects directly from archives. 23372whole_archive_flag_spec=$lt_whole_archive_flag_spec 23373 23374# Whether the compiler copes with passing no objects directly. 23375compiler_needs_object=$lt_compiler_needs_object 23376 23377# Create an old-style archive from a shared archive. 23378old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 23379 23380# Create a temporary old-style archive to link instead of a shared archive. 23381old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 23382 23383# Commands used to build a shared archive. 23384archive_cmds=$lt_archive_cmds 23385archive_expsym_cmds=$lt_archive_expsym_cmds 23386 23387# Commands used to build a loadable module if different from building 23388# a shared archive. 23389module_cmds=$lt_module_cmds 23390module_expsym_cmds=$lt_module_expsym_cmds 23391 23392# Whether we are building with GNU ld or not. 23393with_gnu_ld=$lt_with_gnu_ld 23394 23395# Flag that allows shared libraries with undefined symbols to be built. 23396allow_undefined_flag=$lt_allow_undefined_flag 23397 23398# Flag that enforces no undefined symbols. 23399no_undefined_flag=$lt_no_undefined_flag 23400 23401# Flag to hardcode \$libdir into a binary during linking. 23402# This must work even if \$libdir does not exist 23403hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 23404 23405# Whether we need a single "-rpath" flag with a separated argument. 23406hardcode_libdir_separator=$lt_hardcode_libdir_separator 23407 23408# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 23409# DIR into the resulting binary. 23410hardcode_direct=$hardcode_direct 23411 23412# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 23413# DIR into the resulting binary and the resulting library dependency is 23414# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 23415# library is relocated. 23416hardcode_direct_absolute=$hardcode_direct_absolute 23417 23418# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 23419# into the resulting binary. 23420hardcode_minus_L=$hardcode_minus_L 23421 23422# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 23423# into the resulting binary. 23424hardcode_shlibpath_var=$hardcode_shlibpath_var 23425 23426# Set to "yes" if building a shared library automatically hardcodes DIR 23427# into the library and all subsequent libraries and executables linked 23428# against it. 23429hardcode_automatic=$hardcode_automatic 23430 23431# Set to yes if linker adds runtime paths of dependent libraries 23432# to runtime path list. 23433inherit_rpath=$inherit_rpath 23434 23435# Whether libtool must link a program against all its dependency libraries. 23436link_all_deplibs=$link_all_deplibs 23437 23438# Set to "yes" if exported symbols are required. 23439always_export_symbols=$always_export_symbols 23440 23441# The commands to list exported symbols. 23442export_symbols_cmds=$lt_export_symbols_cmds 23443 23444# Symbols that should not be listed in the preloaded symbols. 23445exclude_expsyms=$lt_exclude_expsyms 23446 23447# Symbols that must always be exported. 23448include_expsyms=$lt_include_expsyms 23449 23450# Commands necessary for linking programs (against libraries) with templates. 23451prelink_cmds=$lt_prelink_cmds 23452 23453# Commands necessary for finishing linking programs. 23454postlink_cmds=$lt_postlink_cmds 23455 23456# Specify filename containing input files. 23457file_list_spec=$lt_file_list_spec 23458 23459# How to hardcode a shared library path into an executable. 23460hardcode_action=$hardcode_action 23461 23462# The directories searched by this compiler when creating a shared library. 23463compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 23464 23465# Dependencies to place before and after the objects being linked to 23466# create a shared library. 23467predep_objects=$lt_predep_objects 23468postdep_objects=$lt_postdep_objects 23469predeps=$lt_predeps 23470postdeps=$lt_postdeps 23471 23472# The library search path used internally by the compiler when linking 23473# a shared library. 23474compiler_lib_search_path=$lt_compiler_lib_search_path 23475 23476# ### END LIBTOOL CONFIG 23477 23478_LT_EOF 23479 23480 case $host_os in 23481 aix3*) 23482 cat <<\_LT_EOF >> "$cfgfile" 23483# AIX sometimes has problems with the GCC collect2 program. For some 23484# reason, if we set the COLLECT_NAMES environment variable, the problems 23485# vanish in a puff of smoke. 23486if test "X${COLLECT_NAMES+set}" != Xset; then 23487 COLLECT_NAMES= 23488 export COLLECT_NAMES 23489fi 23490_LT_EOF 23491 ;; 23492 esac 23493 23494 23495ltmain="$ac_aux_dir/ltmain.sh" 23496 23497 23498 # We use sed instead of cat because bash on DJGPP gets confused if 23499 # if finds mixed CR/LF and LF-only lines. Since sed operates in 23500 # text mode, it properly converts lines to CR/LF. This bash problem 23501 # is reportedly fixed, but why not run on old versions too? 23502 sed '$q' "$ltmain" >> "$cfgfile" \ 23503 || (rm -f "$cfgfile"; exit 1) 23504 23505 if test x"$xsi_shell" = xyes; then 23506 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 23507func_dirname ()\ 23508{\ 23509\ case ${1} in\ 23510\ */*) func_dirname_result="${1%/*}${2}" ;;\ 23511\ * ) func_dirname_result="${3}" ;;\ 23512\ esac\ 23513} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 23514 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23515 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23516test 0 -eq $? || _lt_function_replace_fail=: 23517 23518 23519 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 23520func_basename ()\ 23521{\ 23522\ func_basename_result="${1##*/}"\ 23523} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 23524 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23525 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23526test 0 -eq $? || _lt_function_replace_fail=: 23527 23528 23529 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 23530func_dirname_and_basename ()\ 23531{\ 23532\ case ${1} in\ 23533\ */*) func_dirname_result="${1%/*}${2}" ;;\ 23534\ * ) func_dirname_result="${3}" ;;\ 23535\ esac\ 23536\ func_basename_result="${1##*/}"\ 23537} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 23538 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23539 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23540test 0 -eq $? || _lt_function_replace_fail=: 23541 23542 23543 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 23544func_stripname ()\ 23545{\ 23546\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 23547\ # positional parameters, so assign one to ordinary parameter first.\ 23548\ func_stripname_result=${3}\ 23549\ func_stripname_result=${func_stripname_result#"${1}"}\ 23550\ func_stripname_result=${func_stripname_result%"${2}"}\ 23551} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 23552 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23553 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23554test 0 -eq $? || _lt_function_replace_fail=: 23555 23556 23557 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 23558func_split_long_opt ()\ 23559{\ 23560\ func_split_long_opt_name=${1%%=*}\ 23561\ func_split_long_opt_arg=${1#*=}\ 23562} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 23563 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23564 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23565test 0 -eq $? || _lt_function_replace_fail=: 23566 23567 23568 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 23569func_split_short_opt ()\ 23570{\ 23571\ func_split_short_opt_arg=${1#??}\ 23572\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 23573} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 23574 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23575 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23576test 0 -eq $? || _lt_function_replace_fail=: 23577 23578 23579 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 23580func_lo2o ()\ 23581{\ 23582\ case ${1} in\ 23583\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 23584\ *) func_lo2o_result=${1} ;;\ 23585\ esac\ 23586} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 23587 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23588 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23589test 0 -eq $? || _lt_function_replace_fail=: 23590 23591 23592 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 23593func_xform ()\ 23594{\ 23595 func_xform_result=${1%.*}.lo\ 23596} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 23597 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23598 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23599test 0 -eq $? || _lt_function_replace_fail=: 23600 23601 23602 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 23603func_arith ()\ 23604{\ 23605 func_arith_result=$(( $* ))\ 23606} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 23607 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23608 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23609test 0 -eq $? || _lt_function_replace_fail=: 23610 23611 23612 sed -e '/^func_len ()$/,/^} # func_len /c\ 23613func_len ()\ 23614{\ 23615 func_len_result=${#1}\ 23616} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 23617 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23618 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23619test 0 -eq $? || _lt_function_replace_fail=: 23620 23621fi 23622 23623if test x"$lt_shell_append" = xyes; then 23624 sed -e '/^func_append ()$/,/^} # func_append /c\ 23625func_append ()\ 23626{\ 23627 eval "${1}+=\\${2}"\ 23628} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 23629 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23630 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23631test 0 -eq $? || _lt_function_replace_fail=: 23632 23633 23634 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 23635func_append_quoted ()\ 23636{\ 23637\ func_quote_for_eval "${2}"\ 23638\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 23639} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 23640 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23641 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23642test 0 -eq $? || _lt_function_replace_fail=: 23643 23644 23645 # Save a `func_append' function call where possible by direct use of '+=' 23646 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 23647 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23648 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23649 test 0 -eq $? || _lt_function_replace_fail=: 23650else 23651 # Save a `func_append' function call even when '+=' is not available 23652 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 23653 && mv -f "$cfgfile.tmp" "$cfgfile" \ 23654 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 23655 test 0 -eq $? || _lt_function_replace_fail=: 23656fi 23657 23658if test x"$_lt_function_replace_fail" = x":"; then 23659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 23660$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 23661fi 23662 23663 23664 mv -f "$cfgfile" "$ofile" || 23665 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 23666 chmod +x "$ofile" 23667 23668 23669 cat <<_LT_EOF >> "$ofile" 23670 23671# ### BEGIN LIBTOOL TAG CONFIG: CXX 23672 23673# The linker used to build libraries. 23674LD=$lt_LD_CXX 23675 23676# How to create reloadable object files. 23677reload_flag=$lt_reload_flag_CXX 23678reload_cmds=$lt_reload_cmds_CXX 23679 23680# Commands used to build an old-style archive. 23681old_archive_cmds=$lt_old_archive_cmds_CXX 23682 23683# A language specific compiler. 23684CC=$lt_compiler_CXX 23685 23686# Is the compiler the GNU compiler? 23687with_gcc=$GCC_CXX 23688 23689# Compiler flag to turn off builtin functions. 23690no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 23691 23692# Additional compiler flags for building library objects. 23693pic_flag=$lt_lt_prog_compiler_pic_CXX 23694 23695# How to pass a linker flag through the compiler. 23696wl=$lt_lt_prog_compiler_wl_CXX 23697 23698# Compiler flag to prevent dynamic linking. 23699link_static_flag=$lt_lt_prog_compiler_static_CXX 23700 23701# Does compiler simultaneously support -c and -o options? 23702compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 23703 23704# Whether or not to add -lc for building shared libraries. 23705build_libtool_need_lc=$archive_cmds_need_lc_CXX 23706 23707# Whether or not to disallow shared libs when runtime libs are static. 23708allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 23709 23710# Compiler flag to allow reflexive dlopens. 23711export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 23712 23713# Compiler flag to generate shared objects directly from archives. 23714whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 23715 23716# Whether the compiler copes with passing no objects directly. 23717compiler_needs_object=$lt_compiler_needs_object_CXX 23718 23719# Create an old-style archive from a shared archive. 23720old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 23721 23722# Create a temporary old-style archive to link instead of a shared archive. 23723old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 23724 23725# Commands used to build a shared archive. 23726archive_cmds=$lt_archive_cmds_CXX 23727archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 23728 23729# Commands used to build a loadable module if different from building 23730# a shared archive. 23731module_cmds=$lt_module_cmds_CXX 23732module_expsym_cmds=$lt_module_expsym_cmds_CXX 23733 23734# Whether we are building with GNU ld or not. 23735with_gnu_ld=$lt_with_gnu_ld_CXX 23736 23737# Flag that allows shared libraries with undefined symbols to be built. 23738allow_undefined_flag=$lt_allow_undefined_flag_CXX 23739 23740# Flag that enforces no undefined symbols. 23741no_undefined_flag=$lt_no_undefined_flag_CXX 23742 23743# Flag to hardcode \$libdir into a binary during linking. 23744# This must work even if \$libdir does not exist 23745hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 23746 23747# Whether we need a single "-rpath" flag with a separated argument. 23748hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 23749 23750# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 23751# DIR into the resulting binary. 23752hardcode_direct=$hardcode_direct_CXX 23753 23754# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 23755# DIR into the resulting binary and the resulting library dependency is 23756# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 23757# library is relocated. 23758hardcode_direct_absolute=$hardcode_direct_absolute_CXX 23759 23760# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 23761# into the resulting binary. 23762hardcode_minus_L=$hardcode_minus_L_CXX 23763 23764# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 23765# into the resulting binary. 23766hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 23767 23768# Set to "yes" if building a shared library automatically hardcodes DIR 23769# into the library and all subsequent libraries and executables linked 23770# against it. 23771hardcode_automatic=$hardcode_automatic_CXX 23772 23773# Set to yes if linker adds runtime paths of dependent libraries 23774# to runtime path list. 23775inherit_rpath=$inherit_rpath_CXX 23776 23777# Whether libtool must link a program against all its dependency libraries. 23778link_all_deplibs=$link_all_deplibs_CXX 23779 23780# Set to "yes" if exported symbols are required. 23781always_export_symbols=$always_export_symbols_CXX 23782 23783# The commands to list exported symbols. 23784export_symbols_cmds=$lt_export_symbols_cmds_CXX 23785 23786# Symbols that should not be listed in the preloaded symbols. 23787exclude_expsyms=$lt_exclude_expsyms_CXX 23788 23789# Symbols that must always be exported. 23790include_expsyms=$lt_include_expsyms_CXX 23791 23792# Commands necessary for linking programs (against libraries) with templates. 23793prelink_cmds=$lt_prelink_cmds_CXX 23794 23795# Commands necessary for finishing linking programs. 23796postlink_cmds=$lt_postlink_cmds_CXX 23797 23798# Specify filename containing input files. 23799file_list_spec=$lt_file_list_spec_CXX 23800 23801# How to hardcode a shared library path into an executable. 23802hardcode_action=$hardcode_action_CXX 23803 23804# The directories searched by this compiler when creating a shared library. 23805compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 23806 23807# Dependencies to place before and after the objects being linked to 23808# create a shared library. 23809predep_objects=$lt_predep_objects_CXX 23810postdep_objects=$lt_postdep_objects_CXX 23811predeps=$lt_predeps_CXX 23812postdeps=$lt_postdeps_CXX 23813 23814# The library search path used internally by the compiler when linking 23815# a shared library. 23816compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 23817 23818# ### END LIBTOOL TAG CONFIG: CXX 23819_LT_EOF 23820 23821 ;; 23822 "mifluz-config":F) chmod +x mifluz-config ;; 23823 23824 esac 23825done # for ac_tag 23826 23827 23828as_fn_exit 0 23829_ACEOF 23830ac_clean_files=$ac_clean_files_save 23831 23832test $ac_write_fail = 0 || 23833 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 23834 23835 23836# configure is writing to config.log, and then calls config.status. 23837# config.status does its own redirection, appending to config.log. 23838# Unfortunately, on DOS this fails, as config.log is still kept open 23839# by configure, so config.status won't be able to write to it; its 23840# output is simply discarded. So we exec the FD to /dev/null, 23841# effectively closing config.log, so it can be properly (re)opened and 23842# appended to by config.status. When coming back to configure, we 23843# need to make the FD available again. 23844if test "$no_create" != yes; then 23845 ac_cs_success=: 23846 ac_config_status_args= 23847 test "$silent" = yes && 23848 ac_config_status_args="$ac_config_status_args --quiet" 23849 exec 5>/dev/null 23850 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23851 exec 5>>config.log 23852 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23853 # would make configure fail if this is the last instruction. 23854 $ac_cs_success || as_fn_exit 1 23855fi 23856if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 23857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 23858$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 23859fi 23860 23861