1#! /bin/sh 2# From configure.ac Revision. 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by GNU Autoconf 2.69 for libcwd 1.0.6. 5# 6# Report bugs to <libcwd@alinoe.com>. 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## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 21 emulate sh 22 NULLCMD=: 23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 24 # is contrary to our usage. Disable this feature. 25 alias -g '${1+"$@"}'='"$@"' 26 setopt NO_GLOB_SUBST 27else 28 case `(set -o) 2>/dev/null` in #( 29 *posix*) : 30 set -o posix ;; #( 31 *) : 32 ;; 33esac 34fi 35 36 37as_nl=' 38' 39export as_nl 40# Printing a long string crashes Solaris 7 /usr/bin/printf. 41as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 44# Prefer a ksh shell builtin over an external printf program on Solaris, 45# but without wasting forks for bash or zsh. 46if test -z "$BASH_VERSION$ZSH_VERSION" \ 47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='print -r --' 49 as_echo_n='print -rn --' 50elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 51 as_echo='printf %s\n' 52 as_echo_n='printf %s' 53else 54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 56 as_echo_n='/usr/ucb/echo -n' 57 else 58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 59 as_echo_n_body='eval 60 arg=$1; 61 case $arg in #( 62 *"$as_nl"*) 63 expr "X$arg" : "X\\(.*\\)$as_nl"; 64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 65 esac; 66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 67 ' 68 export as_echo_n_body 69 as_echo_n='sh -c $as_echo_n_body as_echo' 70 fi 71 export as_echo_body 72 as_echo='sh -c $as_echo_body as_echo' 73fi 74 75# The user is always right. 76if test "${PATH_SEPARATOR+set}" != set; then 77 PATH_SEPARATOR=: 78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 80 PATH_SEPARATOR=';' 81 } 82fi 83 84 85# IFS 86# We need space, tab and new line, in precisely that order. Quoting is 87# there to prevent editors from complaining about space-tab. 88# (If _AS_PATH_WALK were called with IFS unset, it would disable word 89# splitting by setting IFS to empty value.) 90IFS=" "" $as_nl" 91 92# Find who we are. Look in the path if we contain no directory separator. 93as_myself= 94case $0 in #(( 95 *[\\/]* ) as_myself=$0 ;; 96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 97for as_dir in $PATH 98do 99 IFS=$as_save_IFS 100 test -z "$as_dir" && as_dir=. 101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 102 done 103IFS=$as_save_IFS 104 105 ;; 106esac 107# We did not find ourselves, most probably we were run as `sh COMMAND' 108# in which case we are not to be found in the path. 109if test "x$as_myself" = x; then 110 as_myself=$0 111fi 112if test ! -f "$as_myself"; then 113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 114 exit 1 115fi 116 117# Unset variables that we do not need and which cause bugs (e.g. in 118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 119# suppresses any "Segmentation fault" message there. '((' could 120# trigger a bug in pdksh 5.2.14. 121for as_var in BASH_ENV ENV MAIL MAILPATH 122do eval test x\${$as_var+set} = xset \ 123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 124done 125PS1='$ ' 126PS2='> ' 127PS4='+ ' 128 129# NLS nuisances. 130LC_ALL=C 131export LC_ALL 132LANGUAGE=C 133export LANGUAGE 134 135# CDPATH. 136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 137 138# Use a proper internal environment variable to ensure we don't fall 139 # into an infinite loop, continuously re-executing ourselves. 140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 141 _as_can_reexec=no; export _as_can_reexec; 142 # We cannot yet assume a decent shell, so we have to provide a 143# neutralization value for shells without unset; and this also 144# works around shells that cannot unset nonexistent variables. 145# Preserve -v and -x to the replacement shell. 146BASH_ENV=/dev/null 147ENV=/dev/null 148(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 149case $- in # (((( 150 *v*x* | *x*v* ) as_opts=-vx ;; 151 *v* ) as_opts=-v ;; 152 *x* ) as_opts=-x ;; 153 * ) as_opts= ;; 154esac 155exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 156# Admittedly, this is quite paranoid, since all the known shells bail 157# out after a failed `exec'. 158$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 159as_fn_exit 255 160 fi 161 # We don't want this to propagate to other subprocesses. 162 { _as_can_reexec=; unset _as_can_reexec;} 163if test "x$CONFIG_SHELL" = x; then 164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 165 emulate sh 166 NULLCMD=: 167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 168 # is contrary to our usage. Disable this feature. 169 alias -g '\${1+\"\$@\"}'='\"\$@\"' 170 setopt NO_GLOB_SUBST 171else 172 case \`(set -o) 2>/dev/null\` in #( 173 *posix*) : 174 set -o posix ;; #( 175 *) : 176 ;; 177esac 178fi 179" 180 as_required="as_fn_return () { (exit \$1); } 181as_fn_success () { as_fn_return 0; } 182as_fn_failure () { as_fn_return 1; } 183as_fn_ret_success () { return 0; } 184as_fn_ret_failure () { return 1; } 185 186exitcode=0 187as_fn_success || { exitcode=1; echo as_fn_success failed.; } 188as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 189as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 190as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 191if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 192 193else 194 exitcode=1; echo positional parameters were not saved. 195fi 196test x\$exitcode = x0 || exit 1 197test -x / || exit 1" 198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 202test \$(( 1 + 1 )) = 2 || exit 1 203 204 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 205 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 208 PATH=/empty FPATH=/empty; export PATH FPATH 209 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 210 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 211 if (eval "$as_required") 2>/dev/null; then : 212 as_have_required=yes 213else 214 as_have_required=no 215fi 216 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 217 218else 219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 220as_found=false 221for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 222do 223 IFS=$as_save_IFS 224 test -z "$as_dir" && as_dir=. 225 as_found=: 226 case $as_dir in #( 227 /*) 228 for as_base in sh bash ksh sh5; do 229 # Try only shells that exist, to save several forks. 230 as_shell=$as_dir/$as_base 231 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 233 CONFIG_SHELL=$as_shell as_have_required=yes 234 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 235 break 2 236fi 237fi 238 done;; 239 esac 240 as_found=false 241done 242$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 243 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 244 CONFIG_SHELL=$SHELL as_have_required=yes 245fi; } 246IFS=$as_save_IFS 247 248 249 if test "x$CONFIG_SHELL" != x; then : 250 export CONFIG_SHELL 251 # We cannot yet assume a decent shell, so we have to provide a 252# neutralization value for shells without unset; and this also 253# works around shells that cannot unset nonexistent variables. 254# Preserve -v and -x to the replacement shell. 255BASH_ENV=/dev/null 256ENV=/dev/null 257(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 258case $- in # (((( 259 *v*x* | *x*v* ) as_opts=-vx ;; 260 *v* ) as_opts=-v ;; 261 *x* ) as_opts=-x ;; 262 * ) as_opts= ;; 263esac 264exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 265# Admittedly, this is quite paranoid, since all the known shells bail 266# out after a failed `exec'. 267$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 268exit 255 269fi 270 271 if test x$as_have_required = xno; then : 272 $as_echo "$0: This script requires a shell more modern than all" 273 $as_echo "$0: the shells that I found on your system." 274 if test x${ZSH_VERSION+set} = xset ; then 275 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 276 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 277 else 278 $as_echo "$0: Please tell bug-autoconf@gnu.org and libcwd@alinoe.com 279$0: about your system, including any error possibly output 280$0: before this message. Then install a modern shell, or 281$0: manually run the script under such a shell if you do 282$0: have one." 283 fi 284 exit 1 285fi 286fi 287fi 288SHELL=${CONFIG_SHELL-/bin/sh} 289export SHELL 290# Unset more variables known to interfere with behavior of common tools. 291CLICOLOR_FORCE= GREP_OPTIONS= 292unset CLICOLOR_FORCE GREP_OPTIONS 293 294## --------------------- ## 295## M4sh Shell Functions. ## 296## --------------------- ## 297# as_fn_unset VAR 298# --------------- 299# Portably unset VAR. 300as_fn_unset () 301{ 302 { eval $1=; unset $1;} 303} 304as_unset=as_fn_unset 305 306# as_fn_set_status STATUS 307# ----------------------- 308# Set $? to STATUS, without forking. 309as_fn_set_status () 310{ 311 return $1 312} # as_fn_set_status 313 314# as_fn_exit STATUS 315# ----------------- 316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 317as_fn_exit () 318{ 319 set +e 320 as_fn_set_status $1 321 exit $1 322} # as_fn_exit 323 324# as_fn_mkdir_p 325# ------------- 326# Create "$as_dir" as a directory, including parents if necessary. 327as_fn_mkdir_p () 328{ 329 330 case $as_dir in #( 331 -*) as_dir=./$as_dir;; 332 esac 333 test -d "$as_dir" || eval $as_mkdir_p || { 334 as_dirs= 335 while :; do 336 case $as_dir in #( 337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 338 *) as_qdir=$as_dir;; 339 esac 340 as_dirs="'$as_qdir' $as_dirs" 341 as_dir=`$as_dirname -- "$as_dir" || 342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 343 X"$as_dir" : 'X\(//\)[^/]' \| \ 344 X"$as_dir" : 'X\(//\)$' \| \ 345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 346$as_echo X"$as_dir" | 347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)[^/].*/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\/\)$/{ 356 s//\1/ 357 q 358 } 359 /^X\(\/\).*/{ 360 s//\1/ 361 q 362 } 363 s/.*/./; q'` 364 test -d "$as_dir" && break 365 done 366 test -z "$as_dirs" || eval "mkdir $as_dirs" 367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 368 369 370} # as_fn_mkdir_p 371 372# as_fn_executable_p FILE 373# ----------------------- 374# Test if FILE is an executable regular file. 375as_fn_executable_p () 376{ 377 test -f "$1" && test -x "$1" 378} # as_fn_executable_p 379# as_fn_append VAR VALUE 380# ---------------------- 381# Append the text in VALUE to the end of the definition contained in VAR. Take 382# advantage of any shell optimizations that allow amortized linear growth over 383# repeated appends, instead of the typical quadratic growth present in naive 384# implementations. 385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 386 eval 'as_fn_append () 387 { 388 eval $1+=\$2 389 }' 390else 391 as_fn_append () 392 { 393 eval $1=\$$1\$2 394 } 395fi # as_fn_append 396 397# as_fn_arith ARG... 398# ------------------ 399# Perform arithmetic evaluation on the ARGs, and store the result in the 400# global $as_val. Take advantage of shells that can avoid forks. The arguments 401# must be portable across $(()) and expr. 402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 403 eval 'as_fn_arith () 404 { 405 as_val=$(( $* )) 406 }' 407else 408 as_fn_arith () 409 { 410 as_val=`expr "$@" || test $? -eq 1` 411 } 412fi # as_fn_arith 413 414 415# as_fn_error STATUS ERROR [LINENO LOG_FD] 416# ---------------------------------------- 417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 419# script with STATUS, using 1 if that was 0. 420as_fn_error () 421{ 422 as_status=$1; test $as_status -eq 0 && as_status=1 423 if test "$4"; then 424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 426 fi 427 $as_echo "$as_me: error: $2" >&2 428 as_fn_exit $as_status 429} # as_fn_error 430 431if expr a : '\(a\)' >/dev/null 2>&1 && 432 test "X`expr 00001 : '.*\(...\)'`" = X001; then 433 as_expr=expr 434else 435 as_expr=false 436fi 437 438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 439 as_basename=basename 440else 441 as_basename=false 442fi 443 444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 445 as_dirname=dirname 446else 447 as_dirname=false 448fi 449 450as_me=`$as_basename -- "$0" || 451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 452 X"$0" : 'X\(//\)$' \| \ 453 X"$0" : 'X\(/\)' \| . 2>/dev/null || 454$as_echo X/"$0" | 455 sed '/^.*\/\([^/][^/]*\)\/*$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\/\)$/{ 460 s//\1/ 461 q 462 } 463 /^X\/\(\/\).*/{ 464 s//\1/ 465 q 466 } 467 s/.*/./; q'` 468 469# Avoid depending upon Character Ranges. 470as_cr_letters='abcdefghijklmnopqrstuvwxyz' 471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 472as_cr_Letters=$as_cr_letters$as_cr_LETTERS 473as_cr_digits='0123456789' 474as_cr_alnum=$as_cr_Letters$as_cr_digits 475 476 477 as_lineno_1=$LINENO as_lineno_1a=$LINENO 478 as_lineno_2=$LINENO as_lineno_2a=$LINENO 479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 482 sed -n ' 483 p 484 /[$]LINENO/= 485 ' <$as_myself | 486 sed ' 487 s/[$]LINENO.*/&-/ 488 t lineno 489 b 490 :lineno 491 N 492 :loop 493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 494 t loop 495 s/-\n.*// 496 ' >$as_me.lineno && 497 chmod +x "$as_me.lineno" || 498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 499 500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 501 # already done that, so ensure we don't try to do so again and fall 502 # in an infinite loop. This has already happened in practice. 503 _as_can_reexec=no; export _as_can_reexec 504 # Don't try to exec as it changes $[0], causing all sort of problems 505 # (the dirname of $[0] is not the place where we might find the 506 # original and so on. Autoconf is especially sensitive to this). 507 . "./$as_me.lineno" 508 # Exit status is that of the last command. 509 exit 510} 511 512ECHO_C= ECHO_N= ECHO_T= 513case `echo -n x` in #((((( 514-n*) 515 case `echo 'xy\c'` in 516 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 517 xy) ECHO_C='\c';; 518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 519 ECHO_T=' ';; 520 esac;; 521*) 522 ECHO_N='-n';; 523esac 524 525rm -f conf$$ conf$$.exe conf$$.file 526if test -d conf$$.dir; then 527 rm -f conf$$.dir/conf$$.file 528else 529 rm -f conf$$.dir 530 mkdir conf$$.dir 2>/dev/null 531fi 532if (echo >conf$$.file) 2>/dev/null; then 533 if ln -s conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s='ln -s' 535 # ... but there are two gotchas: 536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 538 # In both cases, we have to default to `cp -pR'. 539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 540 as_ln_s='cp -pR' 541 elif ln conf$$.file conf$$ 2>/dev/null; then 542 as_ln_s=ln 543 else 544 as_ln_s='cp -pR' 545 fi 546else 547 as_ln_s='cp -pR' 548fi 549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 550rmdir conf$$.dir 2>/dev/null 551 552if mkdir -p . 2>/dev/null; then 553 as_mkdir_p='mkdir -p "$as_dir"' 554else 555 test -d ./-p && rmdir ./-p 556 as_mkdir_p=false 557fi 558 559as_test_x='test -x' 560as_executable_p=as_fn_executable_p 561 562# Sed expression to map a string onto a valid CPP name. 563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 564 565# Sed expression to map a string onto a valid variable name. 566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 567 568SHELL=${CONFIG_SHELL-/bin/sh} 569 570 571test -n "$DJDIR" || exec 7<&0 </dev/null 572exec 6>&1 573 574# Name of the host. 575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 576# so uname gets run too. 577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 578 579# 580# Initializations. 581# 582ac_default_prefix=/usr/local 583ac_clean_files= 584ac_config_libobj_dir=. 585LIBOBJS= 586cross_compiling=no 587subdirs= 588MFLAGS= 589MAKEFLAGS= 590 591# Identity of this package. 592PACKAGE_NAME='libcwd' 593PACKAGE_TARNAME='libcwd' 594PACKAGE_VERSION='1.0.6' 595PACKAGE_STRING='libcwd 1.0.6' 596PACKAGE_BUGREPORT='libcwd@alinoe.com' 597PACKAGE_URL='' 598 599ac_unique_file="libcwd.pc.in" 600# Factoring default headers for most tests. 601ac_includes_default="\ 602#include <stdio.h> 603#ifdef HAVE_SYS_TYPES_H 604# include <sys/types.h> 605#endif 606#ifdef HAVE_SYS_STAT_H 607# include <sys/stat.h> 608#endif 609#ifdef STDC_HEADERS 610# include <stdlib.h> 611# include <stddef.h> 612#else 613# ifdef HAVE_STDLIB_H 614# include <stdlib.h> 615# endif 616#endif 617#ifdef HAVE_STRING_H 618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 619# include <memory.h> 620# endif 621# include <string.h> 622#endif 623#ifdef HAVE_STRINGS_H 624# include <strings.h> 625#endif 626#ifdef HAVE_INTTYPES_H 627# include <inttypes.h> 628#endif 629#ifdef HAVE_STDINT_H 630# include <stdint.h> 631#endif 632#ifdef HAVE_UNISTD_H 633# include <unistd.h> 634#endif" 635 636ac_subst_vars='am__EXEEXT_FALSE 637am__EXEEXT_TRUE 638LTLIBOBJS 639LIBOBJS 640CW_CONFIG_FRAME_ADDRESS_OFFSET 641CW_FRAME_ADDRESS_OFFSET_C 642CW_CONFIG_RECURSIVE_BUILTIN_RETURN_ADDRESS 643CW_HAVE_LABS 644CW_CONFIG_G_CONFIG_H_MACROS 645CW_MALLOC_OVERHEAD 646CW_SYS_REDEFINES_FIX 647CW_SYS_TYPEDEFS 648ENABLESTATIC_FALSE 649ENABLESTATIC_TRUE 650ENABLESHARED_FALSE 651ENABLESHARED_TRUE 652ENABLENONTHREADING_FALSE 653ENABLENONTHREADING_TRUE 654ENABLETHREADING_FALSE 655ENABLETHREADING_TRUE 656LIB_THREADS_SHARED 657LIB_THREADS 658CW_CONFIG_HAVE_PTHREADS 659PCCFLAGS 660libcwd_config_nonthreading 661libcwd_config_threading 662enable_static 663enable_shared 664CW_CONFIG_HAVE_VALLOC 665CW_CONFIG_HAVE_MEMALIGN 666CW_CONFIG_HAVE_POSIX_MEMALIGN 667CW_CONFIG_HAVE_DLOPEN 668CW_CONFIG_HAVE__LIBC_MALLOC 669CW_CONFIG_HAVE___LIBC_MALLOC 670CW_CONFIG_MARKER 671CW_CONFIG_DEBUGT 672CW_CONFIG_DEBUGM 673CW_CONFIG_DEBUGOUTPUT 674CW_CONFIG_DEBUG 675CW_CONFIG_LIBBFD 676CW_CONFIG_LOCATION 677CW_CONFIG_GLIBCXX_DEBUG 678CW_CONFIG_MAGIC 679CW_CONFIG_ALLOC 680CXXCPP_FINGER_PRINT 681CXX_FINGER_PRINT 682CC_FINGER_PRINT 683OTOOL64 684OTOOL 685LIPO 686NMEDIT 687DSYMUTIL 688MANIFEST_TOOL 689RANLIB 690ac_ct_AR 691AR 692DLLTOOL 693OBJDUMP 694LN_S 695NM 696ac_ct_DUMPBIN 697DUMPBIN 698LD 699FGREP 700SED 701LIBTOOL 702PS 703RPATH_OPTION 704CXXCPP 705am__fastdepCXX_FALSE 706am__fastdepCXX_TRUE 707CXXDEPMODE 708ac_ct_CXX 709CXX 710THREADSMAX 711USE_PCH_FALSE 712USE_PCH_TRUE 713PCHFLAGS 714CW_STRIPPED_CXXFLAGS 715CW_OPTIMISE_FLAGS 716CW_WARNING_FLAGS 717CW_DEBUG_FLAGS 718CXXFLAGS 719EGREP 720GREP 721CPP 722am__fastdepCC_FALSE 723am__fastdepCC_TRUE 724CCDEPMODE 725am__nodep 726AMDEPBACKSLASH 727AMDEP_FALSE 728AMDEP_TRUE 729am__quote 730am__include 731DEPDIR 732OBJEXT 733EXEEXT 734ac_ct_CC 735CPPFLAGS 736LDFLAGS 737CFLAGS 738CC 739host_os 740host_vendor 741host_cpu 742host 743build_os 744build_vendor 745build_cpu 746build 747CW_CONFIG_BUILTIN_RETURN_ADDRESS_OFFSET 748true 749VERSION_REVISION 750VERSION_MINOR 751VERSION_MAJOR 752VERSIONINFO 753DOXYGEN_STRIP_FROM_PATH 754HAVE_DOT 755DOXYGEN_DOT 756ACLOCAL_CWFLAGS 757MAINT 758MAINTAINER_MODE_FALSE 759MAINTAINER_MODE_TRUE 760AM_BACKSLASH 761AM_DEFAULT_VERBOSITY 762AM_DEFAULT_V 763AM_V 764am__untar 765am__tar 766AMTAR 767am__leading_dot 768SET_MAKE 769AWK 770mkdir_p 771MKDIR_P 772INSTALL_STRIP_PROGRAM 773STRIP 774install_sh 775MAKEINFO 776AUTOHEADER 777AUTOMAKE 778AUTOCONF 779ACLOCAL 780VERSION 781PACKAGE 782CYGPATH_W 783am__isrc 784INSTALL_DATA 785INSTALL_SCRIPT 786INSTALL_PROGRAM 787target_alias 788host_alias 789build_alias 790LIBS 791ECHO_T 792ECHO_N 793ECHO_C 794DEFS 795mandir 796localedir 797libdir 798psdir 799pdfdir 800dvidir 801htmldir 802infodir 803docdir 804oldincludedir 805includedir 806localstatedir 807sharedstatedir 808sysconfdir 809datadir 810datarootdir 811libexecdir 812sbindir 813bindir 814program_transform_name 815prefix 816exec_prefix 817PACKAGE_URL 818PACKAGE_BUGREPORT 819PACKAGE_STRING 820PACKAGE_VERSION 821PACKAGE_TARNAME 822PACKAGE_NAME 823PATH_SEPARATOR 824SHELL' 825ac_subst_files='' 826ac_user_opts=' 827enable_option_checking 828enable_silent_rules 829enable_maintainer_mode 830enable_libcwd 831enable_glibcxx_debug 832enable_alloc 833enable_magic 834with_redzone 835enable_marker 836enable_location 837enable_debug 838enable_debug_output 839enable_debugm 840enable_threading 841enable_nonthreading 842enable_debugt 843enable_optimize 844enable_profile 845enable_dependency_tracking 846enable_shared 847enable_static 848with_pic 849enable_fast_install 850with_gnu_ld 851with_sysroot 852enable_libtool_lock 853' 854 ac_precious_vars='build_alias 855host_alias 856target_alias 857CC 858CFLAGS 859LDFLAGS 860LIBS 861CPPFLAGS 862CPP 863THREADSMAX 864CXX 865CXXFLAGS 866CCC 867CXXCPP' 868 869 870# Initialize some variables set by options. 871ac_init_help= 872ac_init_version=false 873ac_unrecognized_opts= 874ac_unrecognized_sep= 875# The variables have the same names as the options, with 876# dashes changed to underlines. 877cache_file=/dev/null 878exec_prefix=NONE 879no_create= 880no_recursion= 881prefix=NONE 882program_prefix=NONE 883program_suffix=NONE 884program_transform_name=s,x,x, 885silent= 886site= 887srcdir= 888verbose= 889x_includes=NONE 890x_libraries=NONE 891 892# Installation directory options. 893# These are left unexpanded so users can "make install exec_prefix=/foo" 894# and all the variables that are supposed to be based on exec_prefix 895# by default will actually change. 896# Use braces instead of parens because sh, perl, etc. also accept them. 897# (The list follows the same order as the GNU Coding Standards.) 898bindir='${exec_prefix}/bin' 899sbindir='${exec_prefix}/sbin' 900libexecdir='${exec_prefix}/libexec' 901datarootdir='${prefix}/share' 902datadir='${datarootdir}' 903sysconfdir='${prefix}/etc' 904sharedstatedir='${prefix}/com' 905localstatedir='${prefix}/var' 906includedir='${prefix}/include' 907oldincludedir='/usr/include' 908docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 909infodir='${datarootdir}/info' 910htmldir='${docdir}' 911dvidir='${docdir}' 912pdfdir='${docdir}' 913psdir='${docdir}' 914libdir='${exec_prefix}/lib' 915localedir='${datarootdir}/locale' 916mandir='${datarootdir}/man' 917 918ac_prev= 919ac_dashdash= 920for ac_option 921do 922 # If the previous option needs an argument, assign it. 923 if test -n "$ac_prev"; then 924 eval $ac_prev=\$ac_option 925 ac_prev= 926 continue 927 fi 928 929 case $ac_option in 930 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 931 *=) ac_optarg= ;; 932 *) ac_optarg=yes ;; 933 esac 934 935 # Accept the important Cygnus configure options, so we can diagnose typos. 936 937 case $ac_dashdash$ac_option in 938 --) 939 ac_dashdash=yes ;; 940 941 -bindir | --bindir | --bindi | --bind | --bin | --bi) 942 ac_prev=bindir ;; 943 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 944 bindir=$ac_optarg ;; 945 946 -build | --build | --buil | --bui | --bu) 947 ac_prev=build_alias ;; 948 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 949 build_alias=$ac_optarg ;; 950 951 -cache-file | --cache-file | --cache-fil | --cache-fi \ 952 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 953 ac_prev=cache_file ;; 954 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 955 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 956 cache_file=$ac_optarg ;; 957 958 --config-cache | -C) 959 cache_file=config.cache ;; 960 961 -datadir | --datadir | --datadi | --datad) 962 ac_prev=datadir ;; 963 -datadir=* | --datadir=* | --datadi=* | --datad=*) 964 datadir=$ac_optarg ;; 965 966 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 967 | --dataroo | --dataro | --datar) 968 ac_prev=datarootdir ;; 969 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 970 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 971 datarootdir=$ac_optarg ;; 972 973 -disable-* | --disable-*) 974 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 975 # Reject names that are not valid shell variable names. 976 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 977 as_fn_error $? "invalid feature name: $ac_useropt" 978 ac_useropt_orig=$ac_useropt 979 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 980 case $ac_user_opts in 981 *" 982"enable_$ac_useropt" 983"*) ;; 984 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 985 ac_unrecognized_sep=', ';; 986 esac 987 eval enable_$ac_useropt=no ;; 988 989 -docdir | --docdir | --docdi | --doc | --do) 990 ac_prev=docdir ;; 991 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 992 docdir=$ac_optarg ;; 993 994 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 995 ac_prev=dvidir ;; 996 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 997 dvidir=$ac_optarg ;; 998 999 -enable-* | --enable-*) 1000 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1001 # Reject names that are not valid shell variable names. 1002 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1003 as_fn_error $? "invalid feature name: $ac_useropt" 1004 ac_useropt_orig=$ac_useropt 1005 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1006 case $ac_user_opts in 1007 *" 1008"enable_$ac_useropt" 1009"*) ;; 1010 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1011 ac_unrecognized_sep=', ';; 1012 esac 1013 eval enable_$ac_useropt=\$ac_optarg ;; 1014 1015 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1016 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1017 | --exec | --exe | --ex) 1018 ac_prev=exec_prefix ;; 1019 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1020 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1021 | --exec=* | --exe=* | --ex=*) 1022 exec_prefix=$ac_optarg ;; 1023 1024 -gas | --gas | --ga | --g) 1025 # Obsolete; use --with-gas. 1026 with_gas=yes ;; 1027 1028 -help | --help | --hel | --he | -h) 1029 ac_init_help=long ;; 1030 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1031 ac_init_help=recursive ;; 1032 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1033 ac_init_help=short ;; 1034 1035 -host | --host | --hos | --ho) 1036 ac_prev=host_alias ;; 1037 -host=* | --host=* | --hos=* | --ho=*) 1038 host_alias=$ac_optarg ;; 1039 1040 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1041 ac_prev=htmldir ;; 1042 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1043 | --ht=*) 1044 htmldir=$ac_optarg ;; 1045 1046 -includedir | --includedir | --includedi | --included | --include \ 1047 | --includ | --inclu | --incl | --inc) 1048 ac_prev=includedir ;; 1049 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1050 | --includ=* | --inclu=* | --incl=* | --inc=*) 1051 includedir=$ac_optarg ;; 1052 1053 -infodir | --infodir | --infodi | --infod | --info | --inf) 1054 ac_prev=infodir ;; 1055 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1056 infodir=$ac_optarg ;; 1057 1058 -libdir | --libdir | --libdi | --libd) 1059 ac_prev=libdir ;; 1060 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1061 libdir=$ac_optarg ;; 1062 1063 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1064 | --libexe | --libex | --libe) 1065 ac_prev=libexecdir ;; 1066 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1067 | --libexe=* | --libex=* | --libe=*) 1068 libexecdir=$ac_optarg ;; 1069 1070 -localedir | --localedir | --localedi | --localed | --locale) 1071 ac_prev=localedir ;; 1072 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1073 localedir=$ac_optarg ;; 1074 1075 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1076 | --localstate | --localstat | --localsta | --localst | --locals) 1077 ac_prev=localstatedir ;; 1078 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1079 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1080 localstatedir=$ac_optarg ;; 1081 1082 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1083 ac_prev=mandir ;; 1084 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1085 mandir=$ac_optarg ;; 1086 1087 -nfp | --nfp | --nf) 1088 # Obsolete; use --without-fp. 1089 with_fp=no ;; 1090 1091 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1092 | --no-cr | --no-c | -n) 1093 no_create=yes ;; 1094 1095 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1096 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1097 no_recursion=yes ;; 1098 1099 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1100 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1101 | --oldin | --oldi | --old | --ol | --o) 1102 ac_prev=oldincludedir ;; 1103 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1104 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1105 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1106 oldincludedir=$ac_optarg ;; 1107 1108 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1109 ac_prev=prefix ;; 1110 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1111 prefix=$ac_optarg ;; 1112 1113 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1114 | --program-pre | --program-pr | --program-p) 1115 ac_prev=program_prefix ;; 1116 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1117 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1118 program_prefix=$ac_optarg ;; 1119 1120 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1121 | --program-suf | --program-su | --program-s) 1122 ac_prev=program_suffix ;; 1123 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1124 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1125 program_suffix=$ac_optarg ;; 1126 1127 -program-transform-name | --program-transform-name \ 1128 | --program-transform-nam | --program-transform-na \ 1129 | --program-transform-n | --program-transform- \ 1130 | --program-transform | --program-transfor \ 1131 | --program-transfo | --program-transf \ 1132 | --program-trans | --program-tran \ 1133 | --progr-tra | --program-tr | --program-t) 1134 ac_prev=program_transform_name ;; 1135 -program-transform-name=* | --program-transform-name=* \ 1136 | --program-transform-nam=* | --program-transform-na=* \ 1137 | --program-transform-n=* | --program-transform-=* \ 1138 | --program-transform=* | --program-transfor=* \ 1139 | --program-transfo=* | --program-transf=* \ 1140 | --program-trans=* | --program-tran=* \ 1141 | --progr-tra=* | --program-tr=* | --program-t=*) 1142 program_transform_name=$ac_optarg ;; 1143 1144 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1145 ac_prev=pdfdir ;; 1146 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1147 pdfdir=$ac_optarg ;; 1148 1149 -psdir | --psdir | --psdi | --psd | --ps) 1150 ac_prev=psdir ;; 1151 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1152 psdir=$ac_optarg ;; 1153 1154 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1155 | -silent | --silent | --silen | --sile | --sil) 1156 silent=yes ;; 1157 1158 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1159 ac_prev=sbindir ;; 1160 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1161 | --sbi=* | --sb=*) 1162 sbindir=$ac_optarg ;; 1163 1164 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1165 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1166 | --sharedst | --shareds | --shared | --share | --shar \ 1167 | --sha | --sh) 1168 ac_prev=sharedstatedir ;; 1169 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1170 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1171 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1172 | --sha=* | --sh=*) 1173 sharedstatedir=$ac_optarg ;; 1174 1175 -site | --site | --sit) 1176 ac_prev=site ;; 1177 -site=* | --site=* | --sit=*) 1178 site=$ac_optarg ;; 1179 1180 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1181 ac_prev=srcdir ;; 1182 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1183 srcdir=$ac_optarg ;; 1184 1185 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1186 | --syscon | --sysco | --sysc | --sys | --sy) 1187 ac_prev=sysconfdir ;; 1188 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1189 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1190 sysconfdir=$ac_optarg ;; 1191 1192 -target | --target | --targe | --targ | --tar | --ta | --t) 1193 ac_prev=target_alias ;; 1194 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1195 target_alias=$ac_optarg ;; 1196 1197 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1198 verbose=yes ;; 1199 1200 -version | --version | --versio | --versi | --vers | -V) 1201 ac_init_version=: ;; 1202 1203 -with-* | --with-*) 1204 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1205 # Reject names that are not valid shell variable names. 1206 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1207 as_fn_error $? "invalid package name: $ac_useropt" 1208 ac_useropt_orig=$ac_useropt 1209 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1210 case $ac_user_opts in 1211 *" 1212"with_$ac_useropt" 1213"*) ;; 1214 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1215 ac_unrecognized_sep=', ';; 1216 esac 1217 eval with_$ac_useropt=\$ac_optarg ;; 1218 1219 -without-* | --without-*) 1220 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1221 # Reject names that are not valid shell variable names. 1222 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1223 as_fn_error $? "invalid package name: $ac_useropt" 1224 ac_useropt_orig=$ac_useropt 1225 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1226 case $ac_user_opts in 1227 *" 1228"with_$ac_useropt" 1229"*) ;; 1230 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1231 ac_unrecognized_sep=', ';; 1232 esac 1233 eval with_$ac_useropt=no ;; 1234 1235 --x) 1236 # Obsolete; use --with-x. 1237 with_x=yes ;; 1238 1239 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1240 | --x-incl | --x-inc | --x-in | --x-i) 1241 ac_prev=x_includes ;; 1242 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1243 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1244 x_includes=$ac_optarg ;; 1245 1246 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1247 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1248 ac_prev=x_libraries ;; 1249 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1250 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1251 x_libraries=$ac_optarg ;; 1252 1253 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1254Try \`$0 --help' for more information" 1255 ;; 1256 1257 *=*) 1258 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1259 # Reject names that are not valid shell variable names. 1260 case $ac_envvar in #( 1261 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1262 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1263 esac 1264 eval $ac_envvar=\$ac_optarg 1265 export $ac_envvar ;; 1266 1267 *) 1268 # FIXME: should be removed in autoconf 3.0. 1269 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1270 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1271 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1272 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1273 ;; 1274 1275 esac 1276done 1277 1278if test -n "$ac_prev"; then 1279 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1280 as_fn_error $? "missing argument to $ac_option" 1281fi 1282 1283if test -n "$ac_unrecognized_opts"; then 1284 case $enable_option_checking in 1285 no) ;; 1286 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1287 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1288 esac 1289fi 1290 1291# Check all directory arguments for consistency. 1292for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1293 datadir sysconfdir sharedstatedir localstatedir includedir \ 1294 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1295 libdir localedir mandir 1296do 1297 eval ac_val=\$$ac_var 1298 # Remove trailing slashes. 1299 case $ac_val in 1300 */ ) 1301 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1302 eval $ac_var=\$ac_val;; 1303 esac 1304 # Be sure to have absolute directory names. 1305 case $ac_val in 1306 [\\/$]* | ?:[\\/]* ) continue;; 1307 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1308 esac 1309 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1310done 1311 1312# There might be people who depend on the old broken behavior: `$host' 1313# used to hold the argument of --host etc. 1314# FIXME: To remove some day. 1315build=$build_alias 1316host=$host_alias 1317target=$target_alias 1318 1319# FIXME: To remove some day. 1320if test "x$host_alias" != x; then 1321 if test "x$build_alias" = x; then 1322 cross_compiling=maybe 1323 elif test "x$build_alias" != "x$host_alias"; then 1324 cross_compiling=yes 1325 fi 1326fi 1327 1328ac_tool_prefix= 1329test -n "$host_alias" && ac_tool_prefix=$host_alias- 1330 1331test "$silent" = yes && exec 6>/dev/null 1332 1333 1334ac_pwd=`pwd` && test -n "$ac_pwd" && 1335ac_ls_di=`ls -di .` && 1336ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1337 as_fn_error $? "working directory cannot be determined" 1338test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1339 as_fn_error $? "pwd does not report name of working directory" 1340 1341 1342# Find the source files, if location was not specified. 1343if test -z "$srcdir"; then 1344 ac_srcdir_defaulted=yes 1345 # Try the directory containing this script, then the parent directory. 1346 ac_confdir=`$as_dirname -- "$as_myself" || 1347$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1348 X"$as_myself" : 'X\(//\)[^/]' \| \ 1349 X"$as_myself" : 'X\(//\)$' \| \ 1350 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1351$as_echo X"$as_myself" | 1352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1353 s//\1/ 1354 q 1355 } 1356 /^X\(\/\/\)[^/].*/{ 1357 s//\1/ 1358 q 1359 } 1360 /^X\(\/\/\)$/{ 1361 s//\1/ 1362 q 1363 } 1364 /^X\(\/\).*/{ 1365 s//\1/ 1366 q 1367 } 1368 s/.*/./; q'` 1369 srcdir=$ac_confdir 1370 if test ! -r "$srcdir/$ac_unique_file"; then 1371 srcdir=.. 1372 fi 1373else 1374 ac_srcdir_defaulted=no 1375fi 1376if test ! -r "$srcdir/$ac_unique_file"; then 1377 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1378 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1379fi 1380ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1381ac_abs_confdir=`( 1382 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1383 pwd)` 1384# When building in place, set srcdir=. 1385if test "$ac_abs_confdir" = "$ac_pwd"; then 1386 srcdir=. 1387fi 1388# Remove unnecessary trailing slashes from srcdir. 1389# Double slashes in file names in object file debugging info 1390# mess up M-x gdb in Emacs. 1391case $srcdir in 1392*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1393esac 1394for ac_var in $ac_precious_vars; do 1395 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1396 eval ac_env_${ac_var}_value=\$${ac_var} 1397 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1398 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1399done 1400 1401# 1402# Report the --help message. 1403# 1404if test "$ac_init_help" = "long"; then 1405 # Omit some internal or obsolete options to make the list less imposing. 1406 # This message is too long to be a string in the A/UX 3.1 sh. 1407 cat <<_ACEOF 1408\`configure' configures libcwd 1.0.6 to adapt to many kinds of systems. 1409 1410Usage: $0 [OPTION]... [VAR=VALUE]... 1411 1412To assign environment variables (e.g., CC, CFLAGS...), specify them as 1413VAR=VALUE. See below for descriptions of some of the useful variables. 1414 1415Defaults for the options are specified in brackets. 1416 1417Configuration: 1418 -h, --help display this help and exit 1419 --help=short display options specific to this package 1420 --help=recursive display the short help of all the included packages 1421 -V, --version display version information and exit 1422 -q, --quiet, --silent do not print \`checking ...' messages 1423 --cache-file=FILE cache test results in FILE [disabled] 1424 -C, --config-cache alias for \`--cache-file=config.cache' 1425 -n, --no-create do not create output files 1426 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1427 1428Installation directories: 1429 --prefix=PREFIX install architecture-independent files in PREFIX 1430 [$ac_default_prefix] 1431 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1432 [PREFIX] 1433 1434By default, \`make install' will install all the files in 1435\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1436an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1437for instance \`--prefix=\$HOME'. 1438 1439For better control, use the options below. 1440 1441Fine tuning of the installation directories: 1442 --bindir=DIR user executables [EPREFIX/bin] 1443 --sbindir=DIR system admin executables [EPREFIX/sbin] 1444 --libexecdir=DIR program executables [EPREFIX/libexec] 1445 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1446 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1447 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1448 --libdir=DIR object code libraries [EPREFIX/lib] 1449 --includedir=DIR C header files [PREFIX/include] 1450 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1451 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1452 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1453 --infodir=DIR info documentation [DATAROOTDIR/info] 1454 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1455 --mandir=DIR man documentation [DATAROOTDIR/man] 1456 --docdir=DIR documentation root [DATAROOTDIR/doc/libcwd] 1457 --htmldir=DIR html documentation [DOCDIR] 1458 --dvidir=DIR dvi documentation [DOCDIR] 1459 --pdfdir=DIR pdf documentation [DOCDIR] 1460 --psdir=DIR ps documentation [DOCDIR] 1461_ACEOF 1462 1463 cat <<\_ACEOF 1464 1465Program names: 1466 --program-prefix=PREFIX prepend PREFIX to installed program names 1467 --program-suffix=SUFFIX append SUFFIX to installed program names 1468 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1469 1470System types: 1471 --build=BUILD configure for building on BUILD [guessed] 1472 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1473_ACEOF 1474fi 1475 1476if test -n "$ac_init_help"; then 1477 case $ac_init_help in 1478 short | recursive ) echo "Configuration of libcwd 1.0.6:";; 1479 esac 1480 cat <<\_ACEOF 1481 1482Optional Features: 1483 --disable-option-checking ignore unrecognized --enable/--with options 1484 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1485 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1486 --enable-silent-rules less verbose build output (undo: "make V=1") 1487 --disable-silent-rules verbose build output (undo: "make V=0") 1488 --enable-maintainer-mode 1489 enable make rules and dependencies not useful (and 1490 sometimes confusing) to the casual installer 1491 1492Options of package libcwd: 1493 --enable-glibcxx_debug compile libcwd with -D_GLIBCXX_DEBUG. 1494 See http://gcc.gnu.org/onlinedocs/libstdc++/debug.html. 1495 --disable-alloc disable memory allocation debugging support. 1496 --disable-magic disable magic numbers in memory allocation debugging. 1497 --disable-marker disable memory allocation markers. 1498 --disable-location disable the ability to lookup source file and line 1499 number, you might need this on a non-ELF32 system. 1500 --enable-debug enable debugging of libcwd itself. 1501 --disable-debug-output disable debug output of --enable-debug. 1502 --enable-debugm enable debugging of memory allocation debugging code 1503 in libcwd itself. 1504 --disable-threading don't compile libcwd_r, the thread-safe version of 1505 libcwd. 1506 --disable-nonthreading don't compile libcwd, the thread-unsafe version of 1507 libcwd. 1508 --enable-debugt enable debugging of threading debugging code 1509 in libcwd itself. 1510 --enable-optimize do code optimization [auto] 1511 --enable-profile add profiling code [no] 1512 --enable-dependency-tracking 1513 do not reject slow dependency extractors 1514 --disable-dependency-tracking 1515 speeds up one-time build 1516 --enable-shared[=PKGS] build shared libraries [default=no] 1517 --enable-static[=PKGS] build static libraries [default=no] 1518 --enable-fast-install[=PKGS] 1519 optimize for fast installation [default=yes] 1520 --disable-libtool-lock avoid locking (might break parallel builds) 1521 1522Optional Packages: 1523 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1524 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1525 --with-redzone[=ARG] The minimum size of a redzone in bytes [default=0] 1526 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1527 both] 1528 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1529 --with-sysroot=DIR Search for dependent libraries within DIR 1530 (or the compiler's sysroot if not specified). 1531 1532Some influential environment variables: 1533 CC C compiler command 1534 CFLAGS C compiler flags 1535 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1536 nonstandard directory <lib dir> 1537 LIBS libraries to pass to the linker, e.g. -l<library> 1538 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1539 you have headers in a nonstandard directory <include dir> 1540 CPP C preprocessor 1541 THREADSMAX The maximum number of simultaneously running threads that are 1542 supported [1024]. 1543 CXX C++ compiler command 1544 CXXFLAGS C++ compiler flags 1545 CXXCPP C++ preprocessor 1546 1547Use these variables to override the choices made by `configure' or to help 1548it to find libraries and programs with nonstandard names/locations. 1549 1550Report bugs to <libcwd@alinoe.com>. 1551_ACEOF 1552ac_status=$? 1553fi 1554 1555if test "$ac_init_help" = "recursive"; then 1556 # If there are subdirs, report their specific --help. 1557 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1558 test -d "$ac_dir" || 1559 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1560 continue 1561 ac_builddir=. 1562 1563case "$ac_dir" in 1564.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1565*) 1566 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1567 # A ".." for each directory in $ac_dir_suffix. 1568 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1569 case $ac_top_builddir_sub in 1570 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1571 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1572 esac ;; 1573esac 1574ac_abs_top_builddir=$ac_pwd 1575ac_abs_builddir=$ac_pwd$ac_dir_suffix 1576# for backward compatibility: 1577ac_top_builddir=$ac_top_build_prefix 1578 1579case $srcdir in 1580 .) # We are building in place. 1581 ac_srcdir=. 1582 ac_top_srcdir=$ac_top_builddir_sub 1583 ac_abs_top_srcdir=$ac_pwd ;; 1584 [\\/]* | ?:[\\/]* ) # Absolute name. 1585 ac_srcdir=$srcdir$ac_dir_suffix; 1586 ac_top_srcdir=$srcdir 1587 ac_abs_top_srcdir=$srcdir ;; 1588 *) # Relative name. 1589 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1590 ac_top_srcdir=$ac_top_build_prefix$srcdir 1591 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1592esac 1593ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1594 1595 cd "$ac_dir" || { ac_status=$?; continue; } 1596 # Check for guested configure. 1597 if test -f "$ac_srcdir/configure.gnu"; then 1598 echo && 1599 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1600 elif test -f "$ac_srcdir/configure"; then 1601 echo && 1602 $SHELL "$ac_srcdir/configure" --help=recursive 1603 else 1604 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1605 fi || ac_status=$? 1606 cd "$ac_pwd" || { ac_status=$?; break; } 1607 done 1608fi 1609 1610test -n "$ac_init_help" && exit $ac_status 1611if $ac_init_version; then 1612 cat <<\_ACEOF 1613libcwd configure 1.0.6 1614generated by GNU Autoconf 2.69 1615 1616Copyright (C) 2012 Free Software Foundation, Inc. 1617This configure script is free software; the Free Software Foundation 1618gives unlimited permission to copy, distribute and modify it. 1619_ACEOF 1620 exit 1621fi 1622 1623## ------------------------ ## 1624## Autoconf initialization. ## 1625## ------------------------ ## 1626 1627# ac_fn_c_try_compile LINENO 1628# -------------------------- 1629# Try to compile conftest.$ac_ext, and return whether this succeeded. 1630ac_fn_c_try_compile () 1631{ 1632 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1633 rm -f conftest.$ac_objext 1634 if { { ac_try="$ac_compile" 1635case "(($ac_try" in 1636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1637 *) ac_try_echo=$ac_try;; 1638esac 1639eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1640$as_echo "$ac_try_echo"; } >&5 1641 (eval "$ac_compile") 2>conftest.err 1642 ac_status=$? 1643 if test -s conftest.err; then 1644 grep -v '^ *+' conftest.err >conftest.er1 1645 cat conftest.er1 >&5 1646 mv -f conftest.er1 conftest.err 1647 fi 1648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1649 test $ac_status = 0; } && { 1650 test -z "$ac_c_werror_flag" || 1651 test ! -s conftest.err 1652 } && test -s conftest.$ac_objext; then : 1653 ac_retval=0 1654else 1655 $as_echo "$as_me: failed program was:" >&5 1656sed 's/^/| /' conftest.$ac_ext >&5 1657 1658 ac_retval=1 1659fi 1660 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1661 as_fn_set_status $ac_retval 1662 1663} # ac_fn_c_try_compile 1664 1665# ac_fn_c_try_cpp LINENO 1666# ---------------------- 1667# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1668ac_fn_c_try_cpp () 1669{ 1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1671 if { { ac_try="$ac_cpp conftest.$ac_ext" 1672case "(($ac_try" in 1673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1674 *) ac_try_echo=$ac_try;; 1675esac 1676eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1677$as_echo "$ac_try_echo"; } >&5 1678 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1679 ac_status=$? 1680 if test -s conftest.err; then 1681 grep -v '^ *+' conftest.err >conftest.er1 1682 cat conftest.er1 >&5 1683 mv -f conftest.er1 conftest.err 1684 fi 1685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1686 test $ac_status = 0; } > conftest.i && { 1687 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1688 test ! -s conftest.err 1689 }; then : 1690 ac_retval=0 1691else 1692 $as_echo "$as_me: failed program was:" >&5 1693sed 's/^/| /' conftest.$ac_ext >&5 1694 1695 ac_retval=1 1696fi 1697 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1698 as_fn_set_status $ac_retval 1699 1700} # ac_fn_c_try_cpp 1701 1702# ac_fn_cxx_try_compile LINENO 1703# ---------------------------- 1704# Try to compile conftest.$ac_ext, and return whether this succeeded. 1705ac_fn_cxx_try_compile () 1706{ 1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1708 rm -f conftest.$ac_objext 1709 if { { ac_try="$ac_compile" 1710case "(($ac_try" in 1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1712 *) ac_try_echo=$ac_try;; 1713esac 1714eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1715$as_echo "$ac_try_echo"; } >&5 1716 (eval "$ac_compile") 2>conftest.err 1717 ac_status=$? 1718 if test -s conftest.err; then 1719 grep -v '^ *+' conftest.err >conftest.er1 1720 cat conftest.er1 >&5 1721 mv -f conftest.er1 conftest.err 1722 fi 1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1724 test $ac_status = 0; } && { 1725 test -z "$ac_cxx_werror_flag" || 1726 test ! -s conftest.err 1727 } && test -s conftest.$ac_objext; then : 1728 ac_retval=0 1729else 1730 $as_echo "$as_me: failed program was:" >&5 1731sed 's/^/| /' conftest.$ac_ext >&5 1732 1733 ac_retval=1 1734fi 1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1736 as_fn_set_status $ac_retval 1737 1738} # ac_fn_cxx_try_compile 1739 1740# ac_fn_cxx_try_cpp LINENO 1741# ------------------------ 1742# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1743ac_fn_cxx_try_cpp () 1744{ 1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1746 if { { ac_try="$ac_cpp conftest.$ac_ext" 1747case "(($ac_try" in 1748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1749 *) ac_try_echo=$ac_try;; 1750esac 1751eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1752$as_echo "$ac_try_echo"; } >&5 1753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1754 ac_status=$? 1755 if test -s conftest.err; then 1756 grep -v '^ *+' conftest.err >conftest.er1 1757 cat conftest.er1 >&5 1758 mv -f conftest.er1 conftest.err 1759 fi 1760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1761 test $ac_status = 0; } > conftest.i && { 1762 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1763 test ! -s conftest.err 1764 }; then : 1765 ac_retval=0 1766else 1767 $as_echo "$as_me: failed program was:" >&5 1768sed 's/^/| /' conftest.$ac_ext >&5 1769 1770 ac_retval=1 1771fi 1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1773 as_fn_set_status $ac_retval 1774 1775} # ac_fn_cxx_try_cpp 1776 1777# ac_fn_c_try_link LINENO 1778# ----------------------- 1779# Try to link conftest.$ac_ext, and return whether this succeeded. 1780ac_fn_c_try_link () 1781{ 1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1783 rm -f conftest.$ac_objext conftest$ac_exeext 1784 if { { ac_try="$ac_link" 1785case "(($ac_try" in 1786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1787 *) ac_try_echo=$ac_try;; 1788esac 1789eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1790$as_echo "$ac_try_echo"; } >&5 1791 (eval "$ac_link") 2>conftest.err 1792 ac_status=$? 1793 if test -s conftest.err; then 1794 grep -v '^ *+' conftest.err >conftest.er1 1795 cat conftest.er1 >&5 1796 mv -f conftest.er1 conftest.err 1797 fi 1798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1799 test $ac_status = 0; } && { 1800 test -z "$ac_c_werror_flag" || 1801 test ! -s conftest.err 1802 } && test -s conftest$ac_exeext && { 1803 test "$cross_compiling" = yes || 1804 test -x conftest$ac_exeext 1805 }; then : 1806 ac_retval=0 1807else 1808 $as_echo "$as_me: failed program was:" >&5 1809sed 's/^/| /' conftest.$ac_ext >&5 1810 1811 ac_retval=1 1812fi 1813 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1814 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1815 # interfere with the next link command; also delete a directory that is 1816 # left behind by Apple's compiler. We do this before executing the actions. 1817 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1818 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1819 as_fn_set_status $ac_retval 1820 1821} # ac_fn_c_try_link 1822 1823# ac_fn_c_check_func LINENO FUNC VAR 1824# ---------------------------------- 1825# Tests whether FUNC exists, setting the cache variable VAR accordingly 1826ac_fn_c_check_func () 1827{ 1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1830$as_echo_n "checking for $2... " >&6; } 1831if eval \${$3+:} false; then : 1832 $as_echo_n "(cached) " >&6 1833else 1834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1835/* end confdefs.h. */ 1836/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1837 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1838#define $2 innocuous_$2 1839 1840/* System header to define __stub macros and hopefully few prototypes, 1841 which can conflict with char $2 (); below. 1842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1843 <limits.h> exists even on freestanding compilers. */ 1844 1845#ifdef __STDC__ 1846# include <limits.h> 1847#else 1848# include <assert.h> 1849#endif 1850 1851#undef $2 1852 1853/* Override any GCC internal prototype to avoid an error. 1854 Use char because int might match the return type of a GCC 1855 builtin and then its argument prototype would still apply. */ 1856#ifdef __cplusplus 1857extern "C" 1858#endif 1859char $2 (); 1860/* The GNU C library defines this for functions which it implements 1861 to always fail with ENOSYS. Some functions are actually named 1862 something starting with __ and the normal name is an alias. */ 1863#if defined __stub_$2 || defined __stub___$2 1864choke me 1865#endif 1866 1867int 1868main () 1869{ 1870return $2 (); 1871 ; 1872 return 0; 1873} 1874_ACEOF 1875if ac_fn_c_try_link "$LINENO"; then : 1876 eval "$3=yes" 1877else 1878 eval "$3=no" 1879fi 1880rm -f core conftest.err conftest.$ac_objext \ 1881 conftest$ac_exeext conftest.$ac_ext 1882fi 1883eval ac_res=\$$3 1884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1885$as_echo "$ac_res" >&6; } 1886 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1887 1888} # ac_fn_c_check_func 1889 1890# ac_fn_cxx_try_run LINENO 1891# ------------------------ 1892# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1893# that executables *can* be run. 1894ac_fn_cxx_try_run () 1895{ 1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1897 if { { ac_try="$ac_link" 1898case "(($ac_try" in 1899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1900 *) ac_try_echo=$ac_try;; 1901esac 1902eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1903$as_echo "$ac_try_echo"; } >&5 1904 (eval "$ac_link") 2>&5 1905 ac_status=$? 1906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1907 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1908 { { case "(($ac_try" in 1909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1910 *) ac_try_echo=$ac_try;; 1911esac 1912eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1913$as_echo "$ac_try_echo"; } >&5 1914 (eval "$ac_try") 2>&5 1915 ac_status=$? 1916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1917 test $ac_status = 0; }; }; then : 1918 ac_retval=0 1919else 1920 $as_echo "$as_me: program exited with status $ac_status" >&5 1921 $as_echo "$as_me: failed program was:" >&5 1922sed 's/^/| /' conftest.$ac_ext >&5 1923 1924 ac_retval=$ac_status 1925fi 1926 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1927 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1928 as_fn_set_status $ac_retval 1929 1930} # ac_fn_cxx_try_run 1931 1932# ac_fn_cxx_try_link LINENO 1933# ------------------------- 1934# Try to link conftest.$ac_ext, and return whether this succeeded. 1935ac_fn_cxx_try_link () 1936{ 1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1938 rm -f conftest.$ac_objext conftest$ac_exeext 1939 if { { ac_try="$ac_link" 1940case "(($ac_try" in 1941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1942 *) ac_try_echo=$ac_try;; 1943esac 1944eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1945$as_echo "$ac_try_echo"; } >&5 1946 (eval "$ac_link") 2>conftest.err 1947 ac_status=$? 1948 if test -s conftest.err; then 1949 grep -v '^ *+' conftest.err >conftest.er1 1950 cat conftest.er1 >&5 1951 mv -f conftest.er1 conftest.err 1952 fi 1953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1954 test $ac_status = 0; } && { 1955 test -z "$ac_cxx_werror_flag" || 1956 test ! -s conftest.err 1957 } && test -s conftest$ac_exeext && { 1958 test "$cross_compiling" = yes || 1959 test -x conftest$ac_exeext 1960 }; then : 1961 ac_retval=0 1962else 1963 $as_echo "$as_me: failed program was:" >&5 1964sed 's/^/| /' conftest.$ac_ext >&5 1965 1966 ac_retval=1 1967fi 1968 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1969 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1970 # interfere with the next link command; also delete a directory that is 1971 # left behind by Apple's compiler. We do this before executing the actions. 1972 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1973 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1974 as_fn_set_status $ac_retval 1975 1976} # ac_fn_cxx_try_link 1977 1978# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1979# ------------------------------------------------------- 1980# Tests whether HEADER exists and can be compiled using the include files in 1981# INCLUDES, setting the cache variable VAR accordingly. 1982ac_fn_c_check_header_compile () 1983{ 1984 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1986$as_echo_n "checking for $2... " >&6; } 1987if eval \${$3+:} false; then : 1988 $as_echo_n "(cached) " >&6 1989else 1990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1991/* end confdefs.h. */ 1992$4 1993#include <$2> 1994_ACEOF 1995if ac_fn_c_try_compile "$LINENO"; then : 1996 eval "$3=yes" 1997else 1998 eval "$3=no" 1999fi 2000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2001fi 2002eval ac_res=\$$3 2003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2004$as_echo "$ac_res" >&6; } 2005 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2006 2007} # ac_fn_c_check_header_compile 2008 2009# ac_fn_c_try_run LINENO 2010# ---------------------- 2011# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2012# that executables *can* be run. 2013ac_fn_c_try_run () 2014{ 2015 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2016 if { { ac_try="$ac_link" 2017case "(($ac_try" in 2018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2019 *) ac_try_echo=$ac_try;; 2020esac 2021eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2022$as_echo "$ac_try_echo"; } >&5 2023 (eval "$ac_link") 2>&5 2024 ac_status=$? 2025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2026 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2027 { { case "(($ac_try" in 2028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2029 *) ac_try_echo=$ac_try;; 2030esac 2031eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2032$as_echo "$ac_try_echo"; } >&5 2033 (eval "$ac_try") 2>&5 2034 ac_status=$? 2035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2036 test $ac_status = 0; }; }; then : 2037 ac_retval=0 2038else 2039 $as_echo "$as_me: program exited with status $ac_status" >&5 2040 $as_echo "$as_me: failed program was:" >&5 2041sed 's/^/| /' conftest.$ac_ext >&5 2042 2043 ac_retval=$ac_status 2044fi 2045 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2046 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2047 as_fn_set_status $ac_retval 2048 2049} # ac_fn_c_try_run 2050 2051# ac_fn_cxx_check_func LINENO FUNC VAR 2052# ------------------------------------ 2053# Tests whether FUNC exists, setting the cache variable VAR accordingly 2054ac_fn_cxx_check_func () 2055{ 2056 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2058$as_echo_n "checking for $2... " >&6; } 2059if eval \${$3+:} false; then : 2060 $as_echo_n "(cached) " >&6 2061else 2062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2063/* end confdefs.h. */ 2064/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2065 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2066#define $2 innocuous_$2 2067 2068/* System header to define __stub macros and hopefully few prototypes, 2069 which can conflict with char $2 (); below. 2070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2071 <limits.h> exists even on freestanding compilers. */ 2072 2073#ifdef __STDC__ 2074# include <limits.h> 2075#else 2076# include <assert.h> 2077#endif 2078 2079#undef $2 2080 2081/* Override any GCC internal prototype to avoid an error. 2082 Use char because int might match the return type of a GCC 2083 builtin and then its argument prototype would still apply. */ 2084#ifdef __cplusplus 2085extern "C" 2086#endif 2087char $2 (); 2088/* The GNU C library defines this for functions which it implements 2089 to always fail with ENOSYS. Some functions are actually named 2090 something starting with __ and the normal name is an alias. */ 2091#if defined __stub_$2 || defined __stub___$2 2092choke me 2093#endif 2094 2095int 2096main () 2097{ 2098return $2 (); 2099 ; 2100 return 0; 2101} 2102_ACEOF 2103if ac_fn_cxx_try_link "$LINENO"; then : 2104 eval "$3=yes" 2105else 2106 eval "$3=no" 2107fi 2108rm -f core conftest.err conftest.$ac_objext \ 2109 conftest$ac_exeext conftest.$ac_ext 2110fi 2111eval ac_res=\$$3 2112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2113$as_echo "$ac_res" >&6; } 2114 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2115 2116} # ac_fn_cxx_check_func 2117 2118# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2119# ------------------------------------------------------- 2120# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2121# the include files in INCLUDES and setting the cache variable VAR 2122# accordingly. 2123ac_fn_c_check_header_mongrel () 2124{ 2125 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2126 if eval \${$3+:} false; then : 2127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2128$as_echo_n "checking for $2... " >&6; } 2129if eval \${$3+:} false; then : 2130 $as_echo_n "(cached) " >&6 2131fi 2132eval ac_res=\$$3 2133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2134$as_echo "$ac_res" >&6; } 2135else 2136 # Is the header compilable? 2137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2138$as_echo_n "checking $2 usability... " >&6; } 2139cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2140/* end confdefs.h. */ 2141$4 2142#include <$2> 2143_ACEOF 2144if ac_fn_c_try_compile "$LINENO"; then : 2145 ac_header_compiler=yes 2146else 2147 ac_header_compiler=no 2148fi 2149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2151$as_echo "$ac_header_compiler" >&6; } 2152 2153# Is the header present? 2154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2155$as_echo_n "checking $2 presence... " >&6; } 2156cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2157/* end confdefs.h. */ 2158#include <$2> 2159_ACEOF 2160if ac_fn_c_try_cpp "$LINENO"; then : 2161 ac_header_preproc=yes 2162else 2163 ac_header_preproc=no 2164fi 2165rm -f conftest.err conftest.i conftest.$ac_ext 2166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2167$as_echo "$ac_header_preproc" >&6; } 2168 2169# So? What about this header? 2170case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2171 yes:no: ) 2172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2173$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2175$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2176 ;; 2177 no:yes:* ) 2178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2179$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2181$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2183$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2185$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2187$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2188( $as_echo "## -------------------------------- ## 2189## Report this to libcwd@alinoe.com ## 2190## -------------------------------- ##" 2191 ) | sed "s/^/$as_me: WARNING: /" >&2 2192 ;; 2193esac 2194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2195$as_echo_n "checking for $2... " >&6; } 2196if eval \${$3+:} false; then : 2197 $as_echo_n "(cached) " >&6 2198else 2199 eval "$3=\$ac_header_compiler" 2200fi 2201eval ac_res=\$$3 2202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2203$as_echo "$ac_res" >&6; } 2204fi 2205 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2206 2207} # ac_fn_c_check_header_mongrel 2208 2209# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2210# --------------------------------------------------------- 2211# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2212# the include files in INCLUDES and setting the cache variable VAR 2213# accordingly. 2214ac_fn_cxx_check_header_mongrel () 2215{ 2216 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2217 if eval \${$3+:} false; then : 2218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2219$as_echo_n "checking for $2... " >&6; } 2220if eval \${$3+:} false; then : 2221 $as_echo_n "(cached) " >&6 2222fi 2223eval ac_res=\$$3 2224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2225$as_echo "$ac_res" >&6; } 2226else 2227 # Is the header compilable? 2228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2229$as_echo_n "checking $2 usability... " >&6; } 2230cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2231/* end confdefs.h. */ 2232$4 2233#include <$2> 2234_ACEOF 2235if ac_fn_cxx_try_compile "$LINENO"; then : 2236 ac_header_compiler=yes 2237else 2238 ac_header_compiler=no 2239fi 2240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2242$as_echo "$ac_header_compiler" >&6; } 2243 2244# Is the header present? 2245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2246$as_echo_n "checking $2 presence... " >&6; } 2247cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2248/* end confdefs.h. */ 2249#include <$2> 2250_ACEOF 2251if ac_fn_cxx_try_cpp "$LINENO"; then : 2252 ac_header_preproc=yes 2253else 2254 ac_header_preproc=no 2255fi 2256rm -f conftest.err conftest.i conftest.$ac_ext 2257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2258$as_echo "$ac_header_preproc" >&6; } 2259 2260# So? What about this header? 2261case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2262 yes:no: ) 2263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2264$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2266$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2267 ;; 2268 no:yes:* ) 2269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2270$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2272$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2274$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2276$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2278$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2279( $as_echo "## -------------------------------- ## 2280## Report this to libcwd@alinoe.com ## 2281## -------------------------------- ##" 2282 ) | sed "s/^/$as_me: WARNING: /" >&2 2283 ;; 2284esac 2285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2286$as_echo_n "checking for $2... " >&6; } 2287if eval \${$3+:} false; then : 2288 $as_echo_n "(cached) " >&6 2289else 2290 eval "$3=\$ac_header_compiler" 2291fi 2292eval ac_res=\$$3 2293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2294$as_echo "$ac_res" >&6; } 2295fi 2296 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2297 2298} # ac_fn_cxx_check_header_mongrel 2299 2300# ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES 2301# ----------------------------------------------- 2302# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2303# accordingly. 2304ac_fn_cxx_check_decl () 2305{ 2306 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2307 as_decl_name=`echo $2|sed 's/ *(.*//'` 2308 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2310$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2311if eval \${$3+:} false; then : 2312 $as_echo_n "(cached) " >&6 2313else 2314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2315/* end confdefs.h. */ 2316$4 2317int 2318main () 2319{ 2320#ifndef $as_decl_name 2321#ifdef __cplusplus 2322 (void) $as_decl_use; 2323#else 2324 (void) $as_decl_name; 2325#endif 2326#endif 2327 2328 ; 2329 return 0; 2330} 2331_ACEOF 2332if ac_fn_cxx_try_compile "$LINENO"; then : 2333 eval "$3=yes" 2334else 2335 eval "$3=no" 2336fi 2337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2338fi 2339eval ac_res=\$$3 2340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2341$as_echo "$ac_res" >&6; } 2342 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2343 2344} # ac_fn_cxx_check_decl 2345cat >config.log <<_ACEOF 2346This file contains any messages produced by compilers while 2347running configure, to aid debugging if configure makes a mistake. 2348 2349It was created by libcwd $as_me 1.0.6, which was 2350generated by GNU Autoconf 2.69. Invocation command line was 2351 2352 $ $0 $@ 2353 2354_ACEOF 2355exec 5>>config.log 2356{ 2357cat <<_ASUNAME 2358## --------- ## 2359## Platform. ## 2360## --------- ## 2361 2362hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2363uname -m = `(uname -m) 2>/dev/null || echo unknown` 2364uname -r = `(uname -r) 2>/dev/null || echo unknown` 2365uname -s = `(uname -s) 2>/dev/null || echo unknown` 2366uname -v = `(uname -v) 2>/dev/null || echo unknown` 2367 2368/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2369/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2370 2371/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2372/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2373/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2374/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2375/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2376/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2377/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2378 2379_ASUNAME 2380 2381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2382for as_dir in $PATH 2383do 2384 IFS=$as_save_IFS 2385 test -z "$as_dir" && as_dir=. 2386 $as_echo "PATH: $as_dir" 2387 done 2388IFS=$as_save_IFS 2389 2390} >&5 2391 2392cat >&5 <<_ACEOF 2393 2394 2395## ----------- ## 2396## Core tests. ## 2397## ----------- ## 2398 2399_ACEOF 2400 2401 2402# Keep a trace of the command line. 2403# Strip out --no-create and --no-recursion so they do not pile up. 2404# Strip out --silent because we don't want to record it for future runs. 2405# Also quote any args containing shell meta-characters. 2406# Make two passes to allow for proper duplicate-argument suppression. 2407ac_configure_args= 2408ac_configure_args0= 2409ac_configure_args1= 2410ac_must_keep_next=false 2411for ac_pass in 1 2 2412do 2413 for ac_arg 2414 do 2415 case $ac_arg in 2416 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2417 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2418 | -silent | --silent | --silen | --sile | --sil) 2419 continue ;; 2420 *\'*) 2421 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2422 esac 2423 case $ac_pass in 2424 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2425 2) 2426 as_fn_append ac_configure_args1 " '$ac_arg'" 2427 if test $ac_must_keep_next = true; then 2428 ac_must_keep_next=false # Got value, back to normal. 2429 else 2430 case $ac_arg in 2431 *=* | --config-cache | -C | -disable-* | --disable-* \ 2432 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2433 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2434 | -with-* | --with-* | -without-* | --without-* | --x) 2435 case "$ac_configure_args0 " in 2436 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2437 esac 2438 ;; 2439 -* ) ac_must_keep_next=true ;; 2440 esac 2441 fi 2442 as_fn_append ac_configure_args " '$ac_arg'" 2443 ;; 2444 esac 2445 done 2446done 2447{ ac_configure_args0=; unset ac_configure_args0;} 2448{ ac_configure_args1=; unset ac_configure_args1;} 2449 2450# When interrupted or exit'd, cleanup temporary files, and complete 2451# config.log. We remove comments because anyway the quotes in there 2452# would cause problems or look ugly. 2453# WARNING: Use '\'' to represent an apostrophe within the trap. 2454# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2455trap 'exit_status=$? 2456 # Save into config.log some information that might help in debugging. 2457 { 2458 echo 2459 2460 $as_echo "## ---------------- ## 2461## Cache variables. ## 2462## ---------------- ##" 2463 echo 2464 # The following way of writing the cache mishandles newlines in values, 2465( 2466 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2467 eval ac_val=\$$ac_var 2468 case $ac_val in #( 2469 *${as_nl}*) 2470 case $ac_var in #( 2471 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2472$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2473 esac 2474 case $ac_var in #( 2475 _ | IFS | as_nl) ;; #( 2476 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2477 *) { eval $ac_var=; unset $ac_var;} ;; 2478 esac ;; 2479 esac 2480 done 2481 (set) 2>&1 | 2482 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2483 *${as_nl}ac_space=\ *) 2484 sed -n \ 2485 "s/'\''/'\''\\\\'\'''\''/g; 2486 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2487 ;; #( 2488 *) 2489 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2490 ;; 2491 esac | 2492 sort 2493) 2494 echo 2495 2496 $as_echo "## ----------------- ## 2497## Output variables. ## 2498## ----------------- ##" 2499 echo 2500 for ac_var in $ac_subst_vars 2501 do 2502 eval ac_val=\$$ac_var 2503 case $ac_val in 2504 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2505 esac 2506 $as_echo "$ac_var='\''$ac_val'\''" 2507 done | sort 2508 echo 2509 2510 if test -n "$ac_subst_files"; then 2511 $as_echo "## ------------------- ## 2512## File substitutions. ## 2513## ------------------- ##" 2514 echo 2515 for ac_var in $ac_subst_files 2516 do 2517 eval ac_val=\$$ac_var 2518 case $ac_val in 2519 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2520 esac 2521 $as_echo "$ac_var='\''$ac_val'\''" 2522 done | sort 2523 echo 2524 fi 2525 2526 if test -s confdefs.h; then 2527 $as_echo "## ----------- ## 2528## confdefs.h. ## 2529## ----------- ##" 2530 echo 2531 cat confdefs.h 2532 echo 2533 fi 2534 test "$ac_signal" != 0 && 2535 $as_echo "$as_me: caught signal $ac_signal" 2536 $as_echo "$as_me: exit $exit_status" 2537 } >&5 2538 rm -f core *.core core.conftest.* && 2539 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2540 exit $exit_status 2541' 0 2542for ac_signal in 1 2 13 15; do 2543 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2544done 2545ac_signal=0 2546 2547# confdefs.h avoids OS command line length limits that DEFS can exceed. 2548rm -f -r conftest* confdefs.h 2549 2550$as_echo "/* confdefs.h */" > confdefs.h 2551 2552# Predefined preprocessor variables. 2553 2554cat >>confdefs.h <<_ACEOF 2555#define PACKAGE_NAME "$PACKAGE_NAME" 2556_ACEOF 2557 2558cat >>confdefs.h <<_ACEOF 2559#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2560_ACEOF 2561 2562cat >>confdefs.h <<_ACEOF 2563#define PACKAGE_VERSION "$PACKAGE_VERSION" 2564_ACEOF 2565 2566cat >>confdefs.h <<_ACEOF 2567#define PACKAGE_STRING "$PACKAGE_STRING" 2568_ACEOF 2569 2570cat >>confdefs.h <<_ACEOF 2571#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2572_ACEOF 2573 2574cat >>confdefs.h <<_ACEOF 2575#define PACKAGE_URL "$PACKAGE_URL" 2576_ACEOF 2577 2578 2579# Let the site file select an alternate cache file if it wants to. 2580# Prefer an explicitly selected file to automatically selected ones. 2581ac_site_file1=NONE 2582ac_site_file2=NONE 2583if test -n "$CONFIG_SITE"; then 2584 # We do not want a PATH search for config.site. 2585 case $CONFIG_SITE in #(( 2586 -*) ac_site_file1=./$CONFIG_SITE;; 2587 */*) ac_site_file1=$CONFIG_SITE;; 2588 *) ac_site_file1=./$CONFIG_SITE;; 2589 esac 2590elif test "x$prefix" != xNONE; then 2591 ac_site_file1=$prefix/share/config.site 2592 ac_site_file2=$prefix/etc/config.site 2593else 2594 ac_site_file1=$ac_default_prefix/share/config.site 2595 ac_site_file2=$ac_default_prefix/etc/config.site 2596fi 2597for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2598do 2599 test "x$ac_site_file" = xNONE && continue 2600 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2601 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2602$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2603 sed 's/^/| /' "$ac_site_file" >&5 2604 . "$ac_site_file" \ 2605 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2606$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2607as_fn_error $? "failed to load site script $ac_site_file 2608See \`config.log' for more details" "$LINENO" 5; } 2609 fi 2610done 2611 2612if test -r "$cache_file"; then 2613 # Some versions of bash will fail to source /dev/null (special files 2614 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2615 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2616 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2617$as_echo "$as_me: loading cache $cache_file" >&6;} 2618 case $cache_file in 2619 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2620 *) . "./$cache_file";; 2621 esac 2622 fi 2623else 2624 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2625$as_echo "$as_me: creating cache $cache_file" >&6;} 2626 >$cache_file 2627fi 2628 2629# Check that the precious variables saved in the cache have kept the same 2630# value. 2631ac_cache_corrupted=false 2632for ac_var in $ac_precious_vars; do 2633 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2634 eval ac_new_set=\$ac_env_${ac_var}_set 2635 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2636 eval ac_new_val=\$ac_env_${ac_var}_value 2637 case $ac_old_set,$ac_new_set in 2638 set,) 2639 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2640$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2641 ac_cache_corrupted=: ;; 2642 ,set) 2643 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2644$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2645 ac_cache_corrupted=: ;; 2646 ,);; 2647 *) 2648 if test "x$ac_old_val" != "x$ac_new_val"; then 2649 # differences in whitespace do not lead to failure. 2650 ac_old_val_w=`echo x $ac_old_val` 2651 ac_new_val_w=`echo x $ac_new_val` 2652 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2653 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2654$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2655 ac_cache_corrupted=: 2656 else 2657 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2658$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2659 eval $ac_var=\$ac_old_val 2660 fi 2661 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2662$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2663 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2664$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2665 fi;; 2666 esac 2667 # Pass precious variables to config.status. 2668 if test "$ac_new_set" = set; then 2669 case $ac_new_val in 2670 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2671 *) ac_arg=$ac_var=$ac_new_val ;; 2672 esac 2673 case " $ac_configure_args " in 2674 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2675 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2676 esac 2677 fi 2678done 2679if $ac_cache_corrupted; then 2680 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2681$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2682 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2683$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2684 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2685fi 2686## -------------------- ## 2687## Main body of script. ## 2688## -------------------- ## 2689 2690ac_ext=c 2691ac_cpp='$CPP $CPPFLAGS' 2692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2694ac_compiler_gnu=$ac_cv_c_compiler_gnu 2695 2696 2697 2698ac_config_headers="$ac_config_headers config.h" 2699 2700 2701 2702 2703 2704am__api_version='1.14' 2705 2706ac_aux_dir= 2707for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2708 if test -f "$ac_dir/install-sh"; then 2709 ac_aux_dir=$ac_dir 2710 ac_install_sh="$ac_aux_dir/install-sh -c" 2711 break 2712 elif test -f "$ac_dir/install.sh"; then 2713 ac_aux_dir=$ac_dir 2714 ac_install_sh="$ac_aux_dir/install.sh -c" 2715 break 2716 elif test -f "$ac_dir/shtool"; then 2717 ac_aux_dir=$ac_dir 2718 ac_install_sh="$ac_aux_dir/shtool install -c" 2719 break 2720 fi 2721done 2722if test -z "$ac_aux_dir"; then 2723 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2724fi 2725 2726# These three variables are undocumented and unsupported, 2727# and are intended to be withdrawn in a future Autoconf release. 2728# They can cause serious problems if a builder's source tree is in a directory 2729# whose full name contains unusual characters. 2730ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2731ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2732ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2733 2734 2735# Find a good install program. We prefer a C program (faster), 2736# so one script is as good as another. But avoid the broken or 2737# incompatible versions: 2738# SysV /etc/install, /usr/sbin/install 2739# SunOS /usr/etc/install 2740# IRIX /sbin/install 2741# AIX /bin/install 2742# AmigaOS /C/install, which installs bootblocks on floppy discs 2743# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2744# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2745# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2746# OS/2's system install, which has a completely different semantic 2747# ./install, which can be erroneously created by make from ./install.sh. 2748# Reject install programs that cannot install multiple files. 2749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2750$as_echo_n "checking for a BSD-compatible install... " >&6; } 2751if test -z "$INSTALL"; then 2752if ${ac_cv_path_install+:} false; then : 2753 $as_echo_n "(cached) " >&6 2754else 2755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2756for as_dir in $PATH 2757do 2758 IFS=$as_save_IFS 2759 test -z "$as_dir" && as_dir=. 2760 # Account for people who put trailing slashes in PATH elements. 2761case $as_dir/ in #(( 2762 ./ | .// | /[cC]/* | \ 2763 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2764 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2765 /usr/ucb/* ) ;; 2766 *) 2767 # OSF1 and SCO ODT 3.0 have their own names for install. 2768 # Don't use installbsd from OSF since it installs stuff as root 2769 # by default. 2770 for ac_prog in ginstall scoinst install; do 2771 for ac_exec_ext in '' $ac_executable_extensions; do 2772 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2773 if test $ac_prog = install && 2774 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2775 # AIX install. It has an incompatible calling convention. 2776 : 2777 elif test $ac_prog = install && 2778 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2779 # program-specific install script used by HP pwplus--don't use. 2780 : 2781 else 2782 rm -rf conftest.one conftest.two conftest.dir 2783 echo one > conftest.one 2784 echo two > conftest.two 2785 mkdir conftest.dir 2786 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2787 test -s conftest.one && test -s conftest.two && 2788 test -s conftest.dir/conftest.one && 2789 test -s conftest.dir/conftest.two 2790 then 2791 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2792 break 3 2793 fi 2794 fi 2795 fi 2796 done 2797 done 2798 ;; 2799esac 2800 2801 done 2802IFS=$as_save_IFS 2803 2804rm -rf conftest.one conftest.two conftest.dir 2805 2806fi 2807 if test "${ac_cv_path_install+set}" = set; then 2808 INSTALL=$ac_cv_path_install 2809 else 2810 # As a last resort, use the slow shell script. Don't cache a 2811 # value for INSTALL within a source directory, because that will 2812 # break other packages using the cache if that directory is 2813 # removed, or if the value is a relative name. 2814 INSTALL=$ac_install_sh 2815 fi 2816fi 2817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2818$as_echo "$INSTALL" >&6; } 2819 2820# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2821# It thinks the first close brace ends the variable substitution. 2822test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2823 2824test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2825 2826test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2827 2828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2829$as_echo_n "checking whether build environment is sane... " >&6; } 2830# Reject unsafe characters in $srcdir or the absolute working directory 2831# name. Accept space and tab only in the latter. 2832am_lf=' 2833' 2834case `pwd` in 2835 *[\\\"\#\$\&\'\`$am_lf]*) 2836 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2837esac 2838case $srcdir in 2839 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2840 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2841esac 2842 2843# Do 'set' in a subshell so we don't clobber the current shell's 2844# arguments. Must try -L first in case configure is actually a 2845# symlink; some systems play weird games with the mod time of symlinks 2846# (eg FreeBSD returns the mod time of the symlink's containing 2847# directory). 2848if ( 2849 am_has_slept=no 2850 for am_try in 1 2; do 2851 echo "timestamp, slept: $am_has_slept" > conftest.file 2852 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2853 if test "$*" = "X"; then 2854 # -L didn't work. 2855 set X `ls -t "$srcdir/configure" conftest.file` 2856 fi 2857 if test "$*" != "X $srcdir/configure conftest.file" \ 2858 && test "$*" != "X conftest.file $srcdir/configure"; then 2859 2860 # If neither matched, then we have a broken ls. This can happen 2861 # if, for instance, CONFIG_SHELL is bash and it inherits a 2862 # broken ls alias from the environment. This has actually 2863 # happened. Such a system could not be considered "sane". 2864 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2865 alias in your environment" "$LINENO" 5 2866 fi 2867 if test "$2" = conftest.file || test $am_try -eq 2; then 2868 break 2869 fi 2870 # Just in case. 2871 sleep 1 2872 am_has_slept=yes 2873 done 2874 test "$2" = conftest.file 2875 ) 2876then 2877 # Ok. 2878 : 2879else 2880 as_fn_error $? "newly created file is older than distributed files! 2881Check your system clock" "$LINENO" 5 2882fi 2883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2884$as_echo "yes" >&6; } 2885# If we didn't sleep, we still need to ensure time stamps of config.status and 2886# generated files are strictly newer. 2887am_sleep_pid= 2888if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2889 ( sleep 1 ) & 2890 am_sleep_pid=$! 2891fi 2892 2893rm -f conftest.file 2894 2895test "$program_prefix" != NONE && 2896 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2897# Use a double $ so make ignores it. 2898test "$program_suffix" != NONE && 2899 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2900# Double any \ or $. 2901# By default was `s,x,x', remove it if useless. 2902ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2903program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2904 2905# expand $ac_aux_dir to an absolute path 2906am_aux_dir=`cd $ac_aux_dir && pwd` 2907 2908if test x"${MISSING+set}" != xset; then 2909 case $am_aux_dir in 2910 *\ * | *\ *) 2911 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2912 *) 2913 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2914 esac 2915fi 2916# Use eval to expand $SHELL 2917if eval "$MISSING --is-lightweight"; then 2918 am_missing_run="$MISSING " 2919else 2920 am_missing_run= 2921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2922$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2923fi 2924 2925if test x"${install_sh}" != xset; then 2926 case $am_aux_dir in 2927 *\ * | *\ *) 2928 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2929 *) 2930 install_sh="\${SHELL} $am_aux_dir/install-sh" 2931 esac 2932fi 2933 2934# Installed binaries are usually stripped using 'strip' when the user 2935# run "make install-strip". However 'strip' might not be the right 2936# tool to use in cross-compilation environments, therefore Automake 2937# will honor the 'STRIP' environment variable to overrule this program. 2938if test "$cross_compiling" != no; then 2939 if test -n "$ac_tool_prefix"; then 2940 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2941set dummy ${ac_tool_prefix}strip; ac_word=$2 2942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2943$as_echo_n "checking for $ac_word... " >&6; } 2944if ${ac_cv_prog_STRIP+:} false; then : 2945 $as_echo_n "(cached) " >&6 2946else 2947 if test -n "$STRIP"; then 2948 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2949else 2950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2951for as_dir in $PATH 2952do 2953 IFS=$as_save_IFS 2954 test -z "$as_dir" && as_dir=. 2955 for ac_exec_ext in '' $ac_executable_extensions; do 2956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2957 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2959 break 2 2960 fi 2961done 2962 done 2963IFS=$as_save_IFS 2964 2965fi 2966fi 2967STRIP=$ac_cv_prog_STRIP 2968if test -n "$STRIP"; then 2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2970$as_echo "$STRIP" >&6; } 2971else 2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2973$as_echo "no" >&6; } 2974fi 2975 2976 2977fi 2978if test -z "$ac_cv_prog_STRIP"; then 2979 ac_ct_STRIP=$STRIP 2980 # Extract the first word of "strip", so it can be a program name with args. 2981set dummy strip; ac_word=$2 2982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2983$as_echo_n "checking for $ac_word... " >&6; } 2984if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2985 $as_echo_n "(cached) " >&6 2986else 2987 if test -n "$ac_ct_STRIP"; then 2988 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2989else 2990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2991for as_dir in $PATH 2992do 2993 IFS=$as_save_IFS 2994 test -z "$as_dir" && as_dir=. 2995 for ac_exec_ext in '' $ac_executable_extensions; do 2996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2997 ac_cv_prog_ac_ct_STRIP="strip" 2998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2999 break 2 3000 fi 3001done 3002 done 3003IFS=$as_save_IFS 3004 3005fi 3006fi 3007ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3008if test -n "$ac_ct_STRIP"; then 3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3010$as_echo "$ac_ct_STRIP" >&6; } 3011else 3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3013$as_echo "no" >&6; } 3014fi 3015 3016 if test "x$ac_ct_STRIP" = x; then 3017 STRIP=":" 3018 else 3019 case $cross_compiling:$ac_tool_warned in 3020yes:) 3021{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3022$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3023ac_tool_warned=yes ;; 3024esac 3025 STRIP=$ac_ct_STRIP 3026 fi 3027else 3028 STRIP="$ac_cv_prog_STRIP" 3029fi 3030 3031fi 3032INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3033 3034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3035$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3036if test -z "$MKDIR_P"; then 3037 if ${ac_cv_path_mkdir+:} false; then : 3038 $as_echo_n "(cached) " >&6 3039else 3040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3041for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3042do 3043 IFS=$as_save_IFS 3044 test -z "$as_dir" && as_dir=. 3045 for ac_prog in mkdir gmkdir; do 3046 for ac_exec_ext in '' $ac_executable_extensions; do 3047 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3048 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3049 'mkdir (GNU coreutils) '* | \ 3050 'mkdir (coreutils) '* | \ 3051 'mkdir (fileutils) '4.1*) 3052 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3053 break 3;; 3054 esac 3055 done 3056 done 3057 done 3058IFS=$as_save_IFS 3059 3060fi 3061 3062 test -d ./--version && rmdir ./--version 3063 if test "${ac_cv_path_mkdir+set}" = set; then 3064 MKDIR_P="$ac_cv_path_mkdir -p" 3065 else 3066 # As a last resort, use the slow shell script. Don't cache a 3067 # value for MKDIR_P within a source directory, because that will 3068 # break other packages using the cache if that directory is 3069 # removed, or if the value is a relative name. 3070 MKDIR_P="$ac_install_sh -d" 3071 fi 3072fi 3073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3074$as_echo "$MKDIR_P" >&6; } 3075 3076for ac_prog in gawk mawk nawk awk 3077do 3078 # Extract the first word of "$ac_prog", so it can be a program name with args. 3079set dummy $ac_prog; ac_word=$2 3080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3081$as_echo_n "checking for $ac_word... " >&6; } 3082if ${ac_cv_prog_AWK+:} false; then : 3083 $as_echo_n "(cached) " >&6 3084else 3085 if test -n "$AWK"; then 3086 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3087else 3088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3089for as_dir in $PATH 3090do 3091 IFS=$as_save_IFS 3092 test -z "$as_dir" && as_dir=. 3093 for ac_exec_ext in '' $ac_executable_extensions; do 3094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3095 ac_cv_prog_AWK="$ac_prog" 3096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3097 break 2 3098 fi 3099done 3100 done 3101IFS=$as_save_IFS 3102 3103fi 3104fi 3105AWK=$ac_cv_prog_AWK 3106if test -n "$AWK"; then 3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3108$as_echo "$AWK" >&6; } 3109else 3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3111$as_echo "no" >&6; } 3112fi 3113 3114 3115 test -n "$AWK" && break 3116done 3117 3118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3119$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3120set x ${MAKE-make} 3121ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3122if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3123 $as_echo_n "(cached) " >&6 3124else 3125 cat >conftest.make <<\_ACEOF 3126SHELL = /bin/sh 3127all: 3128 @echo '@@@%%%=$(MAKE)=@@@%%%' 3129_ACEOF 3130# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3131case `${MAKE-make} -f conftest.make 2>/dev/null` in 3132 *@@@%%%=?*=@@@%%%*) 3133 eval ac_cv_prog_make_${ac_make}_set=yes;; 3134 *) 3135 eval ac_cv_prog_make_${ac_make}_set=no;; 3136esac 3137rm -f conftest.make 3138fi 3139if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3141$as_echo "yes" >&6; } 3142 SET_MAKE= 3143else 3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3145$as_echo "no" >&6; } 3146 SET_MAKE="MAKE=${MAKE-make}" 3147fi 3148 3149rm -rf .tst 2>/dev/null 3150mkdir .tst 2>/dev/null 3151if test -d .tst; then 3152 am__leading_dot=. 3153else 3154 am__leading_dot=_ 3155fi 3156rmdir .tst 2>/dev/null 3157 3158# Check whether --enable-silent-rules was given. 3159if test "${enable_silent_rules+set}" = set; then : 3160 enableval=$enable_silent_rules; 3161fi 3162 3163case $enable_silent_rules in # ((( 3164 yes) AM_DEFAULT_VERBOSITY=0;; 3165 no) AM_DEFAULT_VERBOSITY=1;; 3166 *) AM_DEFAULT_VERBOSITY=1;; 3167esac 3168am_make=${MAKE-make} 3169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3170$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3171if ${am_cv_make_support_nested_variables+:} false; then : 3172 $as_echo_n "(cached) " >&6 3173else 3174 if $as_echo 'TRUE=$(BAR$(V)) 3175BAR0=false 3176BAR1=true 3177V=1 3178am__doit: 3179 @$(TRUE) 3180.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3181 am_cv_make_support_nested_variables=yes 3182else 3183 am_cv_make_support_nested_variables=no 3184fi 3185fi 3186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3187$as_echo "$am_cv_make_support_nested_variables" >&6; } 3188if test $am_cv_make_support_nested_variables = yes; then 3189 AM_V='$(V)' 3190 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3191else 3192 AM_V=$AM_DEFAULT_VERBOSITY 3193 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3194fi 3195AM_BACKSLASH='\' 3196 3197if test "`cd $srcdir && pwd`" != "`pwd`"; then 3198 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3199 # is not polluted with repeated "-I." 3200 am__isrc=' -I$(srcdir)' 3201 # test to see if srcdir already configured 3202 if test -f $srcdir/config.status; then 3203 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3204 fi 3205fi 3206 3207# test whether we have cygpath 3208if test -z "$CYGPATH_W"; then 3209 if (cygpath --version) >/dev/null 2>/dev/null; then 3210 CYGPATH_W='cygpath -w' 3211 else 3212 CYGPATH_W=echo 3213 fi 3214fi 3215 3216 3217# Define the identity of the package. 3218 PACKAGE='libcwd' 3219 VERSION='1.0.6' 3220 3221 3222cat >>confdefs.h <<_ACEOF 3223#define PACKAGE "$PACKAGE" 3224_ACEOF 3225 3226 3227cat >>confdefs.h <<_ACEOF 3228#define VERSION "$VERSION" 3229_ACEOF 3230 3231# Some tools Automake needs. 3232 3233ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3234 3235 3236AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3237 3238 3239AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3240 3241 3242AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3243 3244 3245MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3246 3247# For better backward compatibility. To be removed once Automake 1.9.x 3248# dies out for good. For more background, see: 3249# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3250# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3251mkdir_p='$(MKDIR_P)' 3252 3253# We need awk for the "check" target. The system "awk" is bad on 3254# some platforms. 3255# Always define AMTAR for backward compatibility. Yes, it's still used 3256# in the wild :-( We should find a proper way to deprecate it ... 3257AMTAR='$${TAR-tar}' 3258 3259 3260# We'll loop over all known methods to create a tar archive until one works. 3261_am_tools='gnutar pax cpio none' 3262 3263am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3264 3265 3266 3267 3268 3269 3270# POSIX will say in a future version that running "rm -f" with no argument 3271# is OK; and we want to be able to make that assumption in our Makefile 3272# recipes. So use an aggressive probe to check that the usage we want is 3273# actually supported "in the wild" to an acceptable degree. 3274# See automake bug#10828. 3275# To make any issue more visible, cause the running configure to be aborted 3276# by default if the 'rm' program in use doesn't match our expectations; the 3277# user can still override this though. 3278if rm -f && rm -fr && rm -rf; then : OK; else 3279 cat >&2 <<'END' 3280Oops! 3281 3282Your 'rm' program seems unable to run without file operands specified 3283on the command line, even when the '-f' option is present. This is contrary 3284to the behaviour of most rm programs out there, and not conforming with 3285the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3286 3287Please tell bug-automake@gnu.org about your system, including the value 3288of your $PATH and any error possibly output before this message. This 3289can help us improve future automake versions. 3290 3291END 3292 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3293 echo 'Configuration will proceed anyway, since you have set the' >&2 3294 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3295 echo >&2 3296 else 3297 cat >&2 <<'END' 3298Aborting the configuration process, to ensure you take notice of the issue. 3299 3300You can download and install GNU coreutils to get an 'rm' implementation 3301that behaves properly: <http://www.gnu.org/software/coreutils/>. 3302 3303If you want to complete the configuration process using your problematic 3304'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3305to "yes", and re-run configure. 3306 3307END 3308 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3309 fi 3310fi 3311 3312 3313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3314$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3315 # Check whether --enable-maintainer-mode was given. 3316if test "${enable_maintainer_mode+set}" = set; then : 3317 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3318else 3319 USE_MAINTAINER_MODE=no 3320fi 3321 3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3323$as_echo "$USE_MAINTAINER_MODE" >&6; } 3324 if test $USE_MAINTAINER_MODE = yes; then 3325 MAINTAINER_MODE_TRUE= 3326 MAINTAINER_MODE_FALSE='#' 3327else 3328 MAINTAINER_MODE_TRUE='#' 3329 MAINTAINER_MODE_FALSE= 3330fi 3331 3332 MAINT=$MAINTAINER_MODE_TRUE 3333 3334 3335 3336minver= 3337test -n "$minver" || minver=0 3338if test 20160921 -lt $minver; then 3339 as_fn_error $? "cwautomacros version $minver or later is required." "$LINENO" 5 3340fi 3341 3342ACLOCAL_CWFLAGS="-I ${CWAUTOMACROSPREFIX-/usr}/share/cwautomacros/m4" 3343if test -d $ac_confdir/libtoolm4; then 3344ACLOCAL_CWFLAGS="$ACLOCAL_CWFLAGS -I `cd $ac_confdir; pwd`/libtoolm4" 3345fi 3346 3347 3348 3349 3350# Check if we have graphviz's 'dot'. 3351# Extract the first word of "dot", so it can be a program name with args. 3352set dummy dot; ac_word=$2 3353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3354$as_echo_n "checking for $ac_word... " >&6; } 3355if ${ac_cv_path_DOXYGEN_DOT+:} false; then : 3356 $as_echo_n "(cached) " >&6 3357else 3358 case $DOXYGEN_DOT in 3359 [\\/]* | ?:[\\/]*) 3360 ac_cv_path_DOXYGEN_DOT="$DOXYGEN_DOT" # Let the user override the test with a path. 3361 ;; 3362 *) 3363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3364for as_dir in $PATH 3365do 3366 IFS=$as_save_IFS 3367 test -z "$as_dir" && as_dir=. 3368 for ac_exec_ext in '' $ac_executable_extensions; do 3369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3370 ac_cv_path_DOXYGEN_DOT="$as_dir/$ac_word$ac_exec_ext" 3371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3372 break 2 3373 fi 3374done 3375 done 3376IFS=$as_save_IFS 3377 3378 ;; 3379esac 3380fi 3381DOXYGEN_DOT=$ac_cv_path_DOXYGEN_DOT 3382if test -n "$DOXYGEN_DOT"; then 3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN_DOT" >&5 3384$as_echo "$DOXYGEN_DOT" >&6; } 3385else 3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3387$as_echo "no" >&6; } 3388fi 3389 3390 3391 3392HAVE_DOT=NO 3393if test -n "$DOXYGEN_DOT"; then 3394HAVE_DOT=YES 3395fi 3396 3397DOXYGEN_STRIP_FROM_PATH=$(cd $srcdir; pwd) 3398 3399 3400 3401 3402 3403VERSIONINFO="4:0:3" 3404 3405 3406VERSION_MAJOR=1 3407VERSION_MINOR=0 3408VERSION_REVISION=6 3409 3410 3411 3412 3413true= 3414 3415 3416case "$host" in 3417 *sparc*) CW_CONFIG_BUILTIN_RETURN_ADDRESS_OFFSET="0" ;; 3418 *) CW_CONFIG_BUILTIN_RETURN_ADDRESS_OFFSET="-1" ;; 3419esac 3420 3421 3422# Check whether --enable-libcwd was given. 3423if test "${enable_libcwd+set}" = set; then : 3424 enableval=$enable_libcwd; 3425fi 3426 3427 3428libcwd_config_glibcxx_debug=no 3429# Check whether --enable-glibcxx_debug was given. 3430if test "${enable_glibcxx_debug+set}" = set; then : 3431 enableval=$enable_glibcxx_debug; libcwd_config_glibcxx_debug=$enableval 3432fi 3433 3434 3435libcwd_config_alloc=yes 3436# Check whether --enable-alloc was given. 3437if test "${enable_alloc+set}" = set; then : 3438 enableval=$enable_alloc; libcwd_config_alloc=$enableval 3439fi 3440 3441 3442libcwd_config_magic=yes 3443# Check whether --enable-magic was given. 3444if test "${enable_magic+set}" = set; then : 3445 enableval=$enable_magic; libcwd_config_magic=$enableval 3446fi 3447 3448 3449 3450# Check whether --with-redzone was given. 3451if test "${with_redzone+set}" = set; then : 3452 withval=$with_redzone; libcwd_config_redzone=$withval 3453else 3454 libcwd_config_redzone=0 3455fi 3456 3457 3458cat >>confdefs.h <<_ACEOF 3459#define LIBCWD_REDZONE $libcwd_config_redzone 3460_ACEOF 3461 3462 3463libcwd_config_marker=yes 3464# Check whether --enable-marker was given. 3465if test "${enable_marker+set}" = set; then : 3466 enableval=$enable_marker; libcwd_config_marker=$enableval 3467fi 3468 3469 3470libcwd_config_location=yes 3471# Check whether --enable-location was given. 3472if test "${enable_location+set}" = set; then : 3473 enableval=$enable_location; libcwd_config_location=$enableval 3474fi 3475 3476 3477libcwd_config_debug=no 3478# Check whether --enable-debug was given. 3479if test "${enable_debug+set}" = set; then : 3480 enableval=$enable_debug; libcwd_config_debug=$enableval 3481fi 3482 3483 3484libcwd_config_debug_output=yes 3485# Check whether --enable-debug-output was given. 3486if test "${enable_debug_output+set}" = set; then : 3487 enableval=$enable_debug_output; libcwd_config_debug_output=$enableval 3488fi 3489 3490 3491libcwd_config_debugm=no 3492# Check whether --enable-debugm was given. 3493if test "${enable_debugm+set}" = set; then : 3494 enableval=$enable_debugm; libcwd_config_debugm=$enableval 3495fi 3496 3497 3498libcwd_config_threading=yes 3499# Check whether --enable-threading was given. 3500if test "${enable_threading+set}" = set; then : 3501 enableval=$enable_threading; libcwd_config_threading=$enableval 3502fi 3503 3504 3505libcwd_config_nonthreading=yes 3506# Check whether --enable-nonthreading was given. 3507if test "${enable_nonthreading+set}" = set; then : 3508 enableval=$enable_nonthreading; libcwd_config_nonthreading=$enableval 3509fi 3510 3511 3512libcwd_config_debugt=no 3513# Check whether --enable-debugt was given. 3514if test "${enable_debugt+set}" = set; then : 3515 enableval=$enable_debugt; libcwd_config_debugt=$enableval 3516fi 3517 3518 3519# Make sure we can run config.sub. 3520$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3521 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3522 3523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3524$as_echo_n "checking build system type... " >&6; } 3525if ${ac_cv_build+:} false; then : 3526 $as_echo_n "(cached) " >&6 3527else 3528 ac_build_alias=$build_alias 3529test "x$ac_build_alias" = x && 3530 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3531test "x$ac_build_alias" = x && 3532 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3533ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3534 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3535 3536fi 3537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3538$as_echo "$ac_cv_build" >&6; } 3539case $ac_cv_build in 3540*-*-*) ;; 3541*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3542esac 3543build=$ac_cv_build 3544ac_save_IFS=$IFS; IFS='-' 3545set x $ac_cv_build 3546shift 3547build_cpu=$1 3548build_vendor=$2 3549shift; shift 3550# Remember, the first character of IFS is used to create $*, 3551# except with old shells: 3552build_os=$* 3553IFS=$ac_save_IFS 3554case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3555 3556 3557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3558$as_echo_n "checking host system type... " >&6; } 3559if ${ac_cv_host+:} false; then : 3560 $as_echo_n "(cached) " >&6 3561else 3562 if test "x$host_alias" = x; then 3563 ac_cv_host=$ac_cv_build 3564else 3565 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3566 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3567fi 3568 3569fi 3570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3571$as_echo "$ac_cv_host" >&6; } 3572case $ac_cv_host in 3573*-*-*) ;; 3574*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3575esac 3576host=$ac_cv_host 3577ac_save_IFS=$IFS; IFS='-' 3578set x $ac_cv_host 3579shift 3580host_cpu=$1 3581host_vendor=$2 3582shift; shift 3583# Remember, the first character of IFS is used to create $*, 3584# except with old shells: 3585host_os=$* 3586IFS=$ac_save_IFS 3587case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3588 3589 3590DEPDIR="${am__leading_dot}deps" 3591 3592ac_config_commands="$ac_config_commands depfiles" 3593 3594 3595am_make=${MAKE-make} 3596cat > confinc << 'END' 3597am__doit: 3598 @echo this is the am__doit target 3599.PHONY: am__doit 3600END 3601# If we don't find an include directive, just comment out the code. 3602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3603$as_echo_n "checking for style of include used by $am_make... " >&6; } 3604am__include="#" 3605am__quote= 3606_am_result=none 3607# First try GNU make style include. 3608echo "include confinc" > confmf 3609# Ignore all kinds of additional output from 'make'. 3610case `$am_make -s -f confmf 2> /dev/null` in #( 3611*the\ am__doit\ target*) 3612 am__include=include 3613 am__quote= 3614 _am_result=GNU 3615 ;; 3616esac 3617# Now try BSD make style include. 3618if test "$am__include" = "#"; then 3619 echo '.include "confinc"' > confmf 3620 case `$am_make -s -f confmf 2> /dev/null` in #( 3621 *the\ am__doit\ target*) 3622 am__include=.include 3623 am__quote="\"" 3624 _am_result=BSD 3625 ;; 3626 esac 3627fi 3628 3629 3630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3631$as_echo "$_am_result" >&6; } 3632rm -f confinc confmf 3633 3634# Check whether --enable-dependency-tracking was given. 3635if test "${enable_dependency_tracking+set}" = set; then : 3636 enableval=$enable_dependency_tracking; 3637fi 3638 3639if test "x$enable_dependency_tracking" != xno; then 3640 am_depcomp="$ac_aux_dir/depcomp" 3641 AMDEPBACKSLASH='\' 3642 am__nodep='_no' 3643fi 3644 if test "x$enable_dependency_tracking" != xno; then 3645 AMDEP_TRUE= 3646 AMDEP_FALSE='#' 3647else 3648 AMDEP_TRUE='#' 3649 AMDEP_FALSE= 3650fi 3651 3652 3653ac_ext=c 3654ac_cpp='$CPP $CPPFLAGS' 3655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3657ac_compiler_gnu=$ac_cv_c_compiler_gnu 3658if test -n "$ac_tool_prefix"; then 3659 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3660set dummy ${ac_tool_prefix}gcc; ac_word=$2 3661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3662$as_echo_n "checking for $ac_word... " >&6; } 3663if ${ac_cv_prog_CC+:} false; then : 3664 $as_echo_n "(cached) " >&6 3665else 3666 if test -n "$CC"; then 3667 ac_cv_prog_CC="$CC" # Let the user override the test. 3668else 3669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3670for as_dir in $PATH 3671do 3672 IFS=$as_save_IFS 3673 test -z "$as_dir" && as_dir=. 3674 for ac_exec_ext in '' $ac_executable_extensions; do 3675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3676 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3678 break 2 3679 fi 3680done 3681 done 3682IFS=$as_save_IFS 3683 3684fi 3685fi 3686CC=$ac_cv_prog_CC 3687if test -n "$CC"; then 3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3689$as_echo "$CC" >&6; } 3690else 3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3692$as_echo "no" >&6; } 3693fi 3694 3695 3696fi 3697if test -z "$ac_cv_prog_CC"; then 3698 ac_ct_CC=$CC 3699 # Extract the first word of "gcc", so it can be a program name with args. 3700set dummy gcc; ac_word=$2 3701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3702$as_echo_n "checking for $ac_word... " >&6; } 3703if ${ac_cv_prog_ac_ct_CC+:} false; then : 3704 $as_echo_n "(cached) " >&6 3705else 3706 if test -n "$ac_ct_CC"; then 3707 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3708else 3709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3710for as_dir in $PATH 3711do 3712 IFS=$as_save_IFS 3713 test -z "$as_dir" && as_dir=. 3714 for ac_exec_ext in '' $ac_executable_extensions; do 3715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3716 ac_cv_prog_ac_ct_CC="gcc" 3717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3718 break 2 3719 fi 3720done 3721 done 3722IFS=$as_save_IFS 3723 3724fi 3725fi 3726ac_ct_CC=$ac_cv_prog_ac_ct_CC 3727if test -n "$ac_ct_CC"; then 3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3729$as_echo "$ac_ct_CC" >&6; } 3730else 3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3732$as_echo "no" >&6; } 3733fi 3734 3735 if test "x$ac_ct_CC" = x; then 3736 CC="" 3737 else 3738 case $cross_compiling:$ac_tool_warned in 3739yes:) 3740{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3741$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3742ac_tool_warned=yes ;; 3743esac 3744 CC=$ac_ct_CC 3745 fi 3746else 3747 CC="$ac_cv_prog_CC" 3748fi 3749 3750if test -z "$CC"; then 3751 if test -n "$ac_tool_prefix"; then 3752 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3753set dummy ${ac_tool_prefix}cc; ac_word=$2 3754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3755$as_echo_n "checking for $ac_word... " >&6; } 3756if ${ac_cv_prog_CC+:} false; then : 3757 $as_echo_n "(cached) " >&6 3758else 3759 if test -n "$CC"; then 3760 ac_cv_prog_CC="$CC" # Let the user override the test. 3761else 3762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3763for as_dir in $PATH 3764do 3765 IFS=$as_save_IFS 3766 test -z "$as_dir" && as_dir=. 3767 for ac_exec_ext in '' $ac_executable_extensions; do 3768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3769 ac_cv_prog_CC="${ac_tool_prefix}cc" 3770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3771 break 2 3772 fi 3773done 3774 done 3775IFS=$as_save_IFS 3776 3777fi 3778fi 3779CC=$ac_cv_prog_CC 3780if test -n "$CC"; then 3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3782$as_echo "$CC" >&6; } 3783else 3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3785$as_echo "no" >&6; } 3786fi 3787 3788 3789 fi 3790fi 3791if test -z "$CC"; then 3792 # Extract the first word of "cc", so it can be a program name with args. 3793set dummy cc; ac_word=$2 3794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3795$as_echo_n "checking for $ac_word... " >&6; } 3796if ${ac_cv_prog_CC+:} false; then : 3797 $as_echo_n "(cached) " >&6 3798else 3799 if test -n "$CC"; then 3800 ac_cv_prog_CC="$CC" # Let the user override the test. 3801else 3802 ac_prog_rejected=no 3803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3804for as_dir in $PATH 3805do 3806 IFS=$as_save_IFS 3807 test -z "$as_dir" && as_dir=. 3808 for ac_exec_ext in '' $ac_executable_extensions; do 3809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3810 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3811 ac_prog_rejected=yes 3812 continue 3813 fi 3814 ac_cv_prog_CC="cc" 3815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3816 break 2 3817 fi 3818done 3819 done 3820IFS=$as_save_IFS 3821 3822if test $ac_prog_rejected = yes; then 3823 # We found a bogon in the path, so make sure we never use it. 3824 set dummy $ac_cv_prog_CC 3825 shift 3826 if test $# != 0; then 3827 # We chose a different compiler from the bogus one. 3828 # However, it has the same basename, so the bogon will be chosen 3829 # first if we set CC to just the basename; use the full file name. 3830 shift 3831 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3832 fi 3833fi 3834fi 3835fi 3836CC=$ac_cv_prog_CC 3837if test -n "$CC"; then 3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3839$as_echo "$CC" >&6; } 3840else 3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3842$as_echo "no" >&6; } 3843fi 3844 3845 3846fi 3847if test -z "$CC"; then 3848 if test -n "$ac_tool_prefix"; then 3849 for ac_prog in cl.exe 3850 do 3851 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3852set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3854$as_echo_n "checking for $ac_word... " >&6; } 3855if ${ac_cv_prog_CC+:} false; then : 3856 $as_echo_n "(cached) " >&6 3857else 3858 if test -n "$CC"; then 3859 ac_cv_prog_CC="$CC" # Let the user override the test. 3860else 3861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3862for as_dir in $PATH 3863do 3864 IFS=$as_save_IFS 3865 test -z "$as_dir" && as_dir=. 3866 for ac_exec_ext in '' $ac_executable_extensions; do 3867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3868 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3870 break 2 3871 fi 3872done 3873 done 3874IFS=$as_save_IFS 3875 3876fi 3877fi 3878CC=$ac_cv_prog_CC 3879if test -n "$CC"; then 3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3881$as_echo "$CC" >&6; } 3882else 3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3884$as_echo "no" >&6; } 3885fi 3886 3887 3888 test -n "$CC" && break 3889 done 3890fi 3891if test -z "$CC"; then 3892 ac_ct_CC=$CC 3893 for ac_prog in cl.exe 3894do 3895 # Extract the first word of "$ac_prog", so it can be a program name with args. 3896set dummy $ac_prog; ac_word=$2 3897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3898$as_echo_n "checking for $ac_word... " >&6; } 3899if ${ac_cv_prog_ac_ct_CC+:} false; then : 3900 $as_echo_n "(cached) " >&6 3901else 3902 if test -n "$ac_ct_CC"; then 3903 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3904else 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 ac_cv_prog_ac_ct_CC="$ac_prog" 3913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3914 break 2 3915 fi 3916done 3917 done 3918IFS=$as_save_IFS 3919 3920fi 3921fi 3922ac_ct_CC=$ac_cv_prog_ac_ct_CC 3923if test -n "$ac_ct_CC"; then 3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3925$as_echo "$ac_ct_CC" >&6; } 3926else 3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3928$as_echo "no" >&6; } 3929fi 3930 3931 3932 test -n "$ac_ct_CC" && break 3933done 3934 3935 if test "x$ac_ct_CC" = x; then 3936 CC="" 3937 else 3938 case $cross_compiling:$ac_tool_warned in 3939yes:) 3940{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3941$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3942ac_tool_warned=yes ;; 3943esac 3944 CC=$ac_ct_CC 3945 fi 3946fi 3947 3948fi 3949 3950 3951test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3952$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3953as_fn_error $? "no acceptable C compiler found in \$PATH 3954See \`config.log' for more details" "$LINENO" 5; } 3955 3956# Provide some information about the compiler. 3957$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3958set X $ac_compile 3959ac_compiler=$2 3960for ac_option in --version -v -V -qversion; do 3961 { { ac_try="$ac_compiler $ac_option >&5" 3962case "(($ac_try" in 3963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3964 *) ac_try_echo=$ac_try;; 3965esac 3966eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3967$as_echo "$ac_try_echo"; } >&5 3968 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3969 ac_status=$? 3970 if test -s conftest.err; then 3971 sed '10a\ 3972... rest of stderr output deleted ... 3973 10q' conftest.err >conftest.er1 3974 cat conftest.er1 >&5 3975 fi 3976 rm -f conftest.er1 conftest.err 3977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3978 test $ac_status = 0; } 3979done 3980 3981cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3982/* end confdefs.h. */ 3983 3984int 3985main () 3986{ 3987 3988 ; 3989 return 0; 3990} 3991_ACEOF 3992ac_clean_files_save=$ac_clean_files 3993ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3994# Try to create an executable without -o first, disregard a.out. 3995# It will help us diagnose broken compilers, and finding out an intuition 3996# of exeext. 3997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3998$as_echo_n "checking whether the C compiler works... " >&6; } 3999ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4000 4001# The possible output files: 4002ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4003 4004ac_rmfiles= 4005for ac_file in $ac_files 4006do 4007 case $ac_file in 4008 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4009 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4010 esac 4011done 4012rm -f $ac_rmfiles 4013 4014if { { ac_try="$ac_link_default" 4015case "(($ac_try" in 4016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4017 *) ac_try_echo=$ac_try;; 4018esac 4019eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4020$as_echo "$ac_try_echo"; } >&5 4021 (eval "$ac_link_default") 2>&5 4022 ac_status=$? 4023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4024 test $ac_status = 0; }; then : 4025 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4026# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4027# in a Makefile. We should not override ac_cv_exeext if it was cached, 4028# so that the user can short-circuit this test for compilers unknown to 4029# Autoconf. 4030for ac_file in $ac_files '' 4031do 4032 test -f "$ac_file" || continue 4033 case $ac_file in 4034 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4035 ;; 4036 [ab].out ) 4037 # We found the default executable, but exeext='' is most 4038 # certainly right. 4039 break;; 4040 *.* ) 4041 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4042 then :; else 4043 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4044 fi 4045 # We set ac_cv_exeext here because the later test for it is not 4046 # safe: cross compilers may not add the suffix if given an `-o' 4047 # argument, so we may need to know it at that point already. 4048 # Even if this section looks crufty: it has the advantage of 4049 # actually working. 4050 break;; 4051 * ) 4052 break;; 4053 esac 4054done 4055test "$ac_cv_exeext" = no && ac_cv_exeext= 4056 4057else 4058 ac_file='' 4059fi 4060if test -z "$ac_file"; then : 4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4062$as_echo "no" >&6; } 4063$as_echo "$as_me: failed program was:" >&5 4064sed 's/^/| /' conftest.$ac_ext >&5 4065 4066{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4067$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4068as_fn_error 77 "C compiler cannot create executables 4069See \`config.log' for more details" "$LINENO" 5; } 4070else 4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4072$as_echo "yes" >&6; } 4073fi 4074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4075$as_echo_n "checking for C compiler default output file name... " >&6; } 4076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4077$as_echo "$ac_file" >&6; } 4078ac_exeext=$ac_cv_exeext 4079 4080rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4081ac_clean_files=$ac_clean_files_save 4082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4083$as_echo_n "checking for suffix of executables... " >&6; } 4084if { { ac_try="$ac_link" 4085case "(($ac_try" in 4086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4087 *) ac_try_echo=$ac_try;; 4088esac 4089eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4090$as_echo "$ac_try_echo"; } >&5 4091 (eval "$ac_link") 2>&5 4092 ac_status=$? 4093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4094 test $ac_status = 0; }; then : 4095 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4096# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4097# work properly (i.e., refer to `conftest.exe'), while it won't with 4098# `rm'. 4099for ac_file in conftest.exe conftest conftest.*; do 4100 test -f "$ac_file" || continue 4101 case $ac_file in 4102 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4103 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4104 break;; 4105 * ) break;; 4106 esac 4107done 4108else 4109 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4110$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4111as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4112See \`config.log' for more details" "$LINENO" 5; } 4113fi 4114rm -f conftest conftest$ac_cv_exeext 4115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4116$as_echo "$ac_cv_exeext" >&6; } 4117 4118rm -f conftest.$ac_ext 4119EXEEXT=$ac_cv_exeext 4120ac_exeext=$EXEEXT 4121cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4122/* end confdefs.h. */ 4123#include <stdio.h> 4124int 4125main () 4126{ 4127FILE *f = fopen ("conftest.out", "w"); 4128 return ferror (f) || fclose (f) != 0; 4129 4130 ; 4131 return 0; 4132} 4133_ACEOF 4134ac_clean_files="$ac_clean_files conftest.out" 4135# Check that the compiler produces executables we can run. If not, either 4136# the compiler is broken, or we cross compile. 4137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4138$as_echo_n "checking whether we are cross compiling... " >&6; } 4139if test "$cross_compiling" != yes; then 4140 { { ac_try="$ac_link" 4141case "(($ac_try" in 4142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4143 *) ac_try_echo=$ac_try;; 4144esac 4145eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4146$as_echo "$ac_try_echo"; } >&5 4147 (eval "$ac_link") 2>&5 4148 ac_status=$? 4149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4150 test $ac_status = 0; } 4151 if { ac_try='./conftest$ac_cv_exeext' 4152 { { case "(($ac_try" in 4153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4154 *) ac_try_echo=$ac_try;; 4155esac 4156eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4157$as_echo "$ac_try_echo"; } >&5 4158 (eval "$ac_try") 2>&5 4159 ac_status=$? 4160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4161 test $ac_status = 0; }; }; then 4162 cross_compiling=no 4163 else 4164 if test "$cross_compiling" = maybe; then 4165 cross_compiling=yes 4166 else 4167 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4168$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4169as_fn_error $? "cannot run C compiled programs. 4170If you meant to cross compile, use \`--host'. 4171See \`config.log' for more details" "$LINENO" 5; } 4172 fi 4173 fi 4174fi 4175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4176$as_echo "$cross_compiling" >&6; } 4177 4178rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4179ac_clean_files=$ac_clean_files_save 4180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4181$as_echo_n "checking for suffix of object files... " >&6; } 4182if ${ac_cv_objext+:} false; then : 4183 $as_echo_n "(cached) " >&6 4184else 4185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4186/* end confdefs.h. */ 4187 4188int 4189main () 4190{ 4191 4192 ; 4193 return 0; 4194} 4195_ACEOF 4196rm -f conftest.o conftest.obj 4197if { { ac_try="$ac_compile" 4198case "(($ac_try" in 4199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4200 *) ac_try_echo=$ac_try;; 4201esac 4202eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4203$as_echo "$ac_try_echo"; } >&5 4204 (eval "$ac_compile") 2>&5 4205 ac_status=$? 4206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4207 test $ac_status = 0; }; then : 4208 for ac_file in conftest.o conftest.obj conftest.*; do 4209 test -f "$ac_file" || continue; 4210 case $ac_file in 4211 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4212 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4213 break;; 4214 esac 4215done 4216else 4217 $as_echo "$as_me: failed program was:" >&5 4218sed 's/^/| /' conftest.$ac_ext >&5 4219 4220{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4221$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4222as_fn_error $? "cannot compute suffix of object files: cannot compile 4223See \`config.log' for more details" "$LINENO" 5; } 4224fi 4225rm -f conftest.$ac_cv_objext conftest.$ac_ext 4226fi 4227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4228$as_echo "$ac_cv_objext" >&6; } 4229OBJEXT=$ac_cv_objext 4230ac_objext=$OBJEXT 4231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4232$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4233if ${ac_cv_c_compiler_gnu+:} false; then : 4234 $as_echo_n "(cached) " >&6 4235else 4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4237/* end confdefs.h. */ 4238 4239int 4240main () 4241{ 4242#ifndef __GNUC__ 4243 choke me 4244#endif 4245 4246 ; 4247 return 0; 4248} 4249_ACEOF 4250if ac_fn_c_try_compile "$LINENO"; then : 4251 ac_compiler_gnu=yes 4252else 4253 ac_compiler_gnu=no 4254fi 4255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4256ac_cv_c_compiler_gnu=$ac_compiler_gnu 4257 4258fi 4259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4260$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4261if test $ac_compiler_gnu = yes; then 4262 GCC=yes 4263else 4264 GCC= 4265fi 4266ac_test_CFLAGS=${CFLAGS+set} 4267ac_save_CFLAGS=$CFLAGS 4268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4269$as_echo_n "checking whether $CC accepts -g... " >&6; } 4270if ${ac_cv_prog_cc_g+:} false; then : 4271 $as_echo_n "(cached) " >&6 4272else 4273 ac_save_c_werror_flag=$ac_c_werror_flag 4274 ac_c_werror_flag=yes 4275 ac_cv_prog_cc_g=no 4276 CFLAGS="-g" 4277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4278/* end confdefs.h. */ 4279 4280int 4281main () 4282{ 4283 4284 ; 4285 return 0; 4286} 4287_ACEOF 4288if ac_fn_c_try_compile "$LINENO"; then : 4289 ac_cv_prog_cc_g=yes 4290else 4291 CFLAGS="" 4292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4293/* end confdefs.h. */ 4294 4295int 4296main () 4297{ 4298 4299 ; 4300 return 0; 4301} 4302_ACEOF 4303if ac_fn_c_try_compile "$LINENO"; then : 4304 4305else 4306 ac_c_werror_flag=$ac_save_c_werror_flag 4307 CFLAGS="-g" 4308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4309/* end confdefs.h. */ 4310 4311int 4312main () 4313{ 4314 4315 ; 4316 return 0; 4317} 4318_ACEOF 4319if ac_fn_c_try_compile "$LINENO"; then : 4320 ac_cv_prog_cc_g=yes 4321fi 4322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4323fi 4324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4325fi 4326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4327 ac_c_werror_flag=$ac_save_c_werror_flag 4328fi 4329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4330$as_echo "$ac_cv_prog_cc_g" >&6; } 4331if test "$ac_test_CFLAGS" = set; then 4332 CFLAGS=$ac_save_CFLAGS 4333elif test $ac_cv_prog_cc_g = yes; then 4334 if test "$GCC" = yes; then 4335 CFLAGS="-g -O2" 4336 else 4337 CFLAGS="-g" 4338 fi 4339else 4340 if test "$GCC" = yes; then 4341 CFLAGS="-O2" 4342 else 4343 CFLAGS= 4344 fi 4345fi 4346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4347$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4348if ${ac_cv_prog_cc_c89+:} false; then : 4349 $as_echo_n "(cached) " >&6 4350else 4351 ac_cv_prog_cc_c89=no 4352ac_save_CC=$CC 4353cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4354/* end confdefs.h. */ 4355#include <stdarg.h> 4356#include <stdio.h> 4357struct stat; 4358/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4359struct buf { int x; }; 4360FILE * (*rcsopen) (struct buf *, struct stat *, int); 4361static char *e (p, i) 4362 char **p; 4363 int i; 4364{ 4365 return p[i]; 4366} 4367static char *f (char * (*g) (char **, int), char **p, ...) 4368{ 4369 char *s; 4370 va_list v; 4371 va_start (v,p); 4372 s = g (p, va_arg (v,int)); 4373 va_end (v); 4374 return s; 4375} 4376 4377/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4378 function prototypes and stuff, but not '\xHH' hex character constants. 4379 These don't provoke an error unfortunately, instead are silently treated 4380 as 'x'. The following induces an error, until -std is added to get 4381 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4382 array size at least. It's necessary to write '\x00'==0 to get something 4383 that's true only with -std. */ 4384int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4385 4386/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4387 inside strings and character constants. */ 4388#define FOO(x) 'x' 4389int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4390 4391int test (int i, double x); 4392struct s1 {int (*f) (int a);}; 4393struct s2 {int (*f) (double a);}; 4394int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4395int argc; 4396char **argv; 4397int 4398main () 4399{ 4400return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4401 ; 4402 return 0; 4403} 4404_ACEOF 4405for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4406 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4407do 4408 CC="$ac_save_CC $ac_arg" 4409 if ac_fn_c_try_compile "$LINENO"; then : 4410 ac_cv_prog_cc_c89=$ac_arg 4411fi 4412rm -f core conftest.err conftest.$ac_objext 4413 test "x$ac_cv_prog_cc_c89" != "xno" && break 4414done 4415rm -f conftest.$ac_ext 4416CC=$ac_save_CC 4417 4418fi 4419# AC_CACHE_VAL 4420case "x$ac_cv_prog_cc_c89" in 4421 x) 4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4423$as_echo "none needed" >&6; } ;; 4424 xno) 4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4426$as_echo "unsupported" >&6; } ;; 4427 *) 4428 CC="$CC $ac_cv_prog_cc_c89" 4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4430$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4431esac 4432if test "x$ac_cv_prog_cc_c89" != xno; then : 4433 4434fi 4435 4436ac_ext=c 4437ac_cpp='$CPP $CPPFLAGS' 4438ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4439ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4440ac_compiler_gnu=$ac_cv_c_compiler_gnu 4441 4442ac_ext=c 4443ac_cpp='$CPP $CPPFLAGS' 4444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4446ac_compiler_gnu=$ac_cv_c_compiler_gnu 4447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4448$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4449if ${am_cv_prog_cc_c_o+:} false; then : 4450 $as_echo_n "(cached) " >&6 4451else 4452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4453/* end confdefs.h. */ 4454 4455int 4456main () 4457{ 4458 4459 ; 4460 return 0; 4461} 4462_ACEOF 4463 # Make sure it works both with $CC and with simple cc. 4464 # Following AC_PROG_CC_C_O, we do the test twice because some 4465 # compilers refuse to overwrite an existing .o file with -o, 4466 # though they will create one. 4467 am_cv_prog_cc_c_o=yes 4468 for am_i in 1 2; do 4469 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4470 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4471 ac_status=$? 4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4473 (exit $ac_status); } \ 4474 && test -f conftest2.$ac_objext; then 4475 : OK 4476 else 4477 am_cv_prog_cc_c_o=no 4478 break 4479 fi 4480 done 4481 rm -f core conftest* 4482 unset am_i 4483fi 4484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4485$as_echo "$am_cv_prog_cc_c_o" >&6; } 4486if test "$am_cv_prog_cc_c_o" != yes; then 4487 # Losing compiler, so override with the script. 4488 # FIXME: It is wrong to rewrite CC. 4489 # But if we don't then we get into trouble of one sort or another. 4490 # A longer-term fix would be to have automake use am__CC in this case, 4491 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4492 CC="$am_aux_dir/compile $CC" 4493fi 4494ac_ext=c 4495ac_cpp='$CPP $CPPFLAGS' 4496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4498ac_compiler_gnu=$ac_cv_c_compiler_gnu 4499 4500 4501depcc="$CC" am_compiler_list= 4502 4503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4504$as_echo_n "checking dependency style of $depcc... " >&6; } 4505if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4506 $as_echo_n "(cached) " >&6 4507else 4508 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4509 # We make a subdir and do the tests there. Otherwise we can end up 4510 # making bogus files that we don't know about and never remove. For 4511 # instance it was reported that on HP-UX the gcc test will end up 4512 # making a dummy file named 'D' -- because '-MD' means "put the output 4513 # in D". 4514 rm -rf conftest.dir 4515 mkdir conftest.dir 4516 # Copy depcomp to subdir because otherwise we won't find it if we're 4517 # using a relative directory. 4518 cp "$am_depcomp" conftest.dir 4519 cd conftest.dir 4520 # We will build objects and dependencies in a subdirectory because 4521 # it helps to detect inapplicable dependency modes. For instance 4522 # both Tru64's cc and ICC support -MD to output dependencies as a 4523 # side effect of compilation, but ICC will put the dependencies in 4524 # the current directory while Tru64 will put them in the object 4525 # directory. 4526 mkdir sub 4527 4528 am_cv_CC_dependencies_compiler_type=none 4529 if test "$am_compiler_list" = ""; then 4530 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4531 fi 4532 am__universal=false 4533 case " $depcc " in #( 4534 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4535 esac 4536 4537 for depmode in $am_compiler_list; do 4538 # Setup a source with many dependencies, because some compilers 4539 # like to wrap large dependency lists on column 80 (with \), and 4540 # we should not choose a depcomp mode which is confused by this. 4541 # 4542 # We need to recreate these files for each test, as the compiler may 4543 # overwrite some of them when testing with obscure command lines. 4544 # This happens at least with the AIX C compiler. 4545 : > sub/conftest.c 4546 for i in 1 2 3 4 5 6; do 4547 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4548 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4549 # Solaris 10 /bin/sh. 4550 echo '/* dummy */' > sub/conftst$i.h 4551 done 4552 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4553 4554 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4555 # mode. It turns out that the SunPro C++ compiler does not properly 4556 # handle '-M -o', and we need to detect this. Also, some Intel 4557 # versions had trouble with output in subdirs. 4558 am__obj=sub/conftest.${OBJEXT-o} 4559 am__minus_obj="-o $am__obj" 4560 case $depmode in 4561 gcc) 4562 # This depmode causes a compiler race in universal mode. 4563 test "$am__universal" = false || continue 4564 ;; 4565 nosideeffect) 4566 # After this tag, mechanisms are not by side-effect, so they'll 4567 # only be used when explicitly requested. 4568 if test "x$enable_dependency_tracking" = xyes; then 4569 continue 4570 else 4571 break 4572 fi 4573 ;; 4574 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4575 # This compiler won't grok '-c -o', but also, the minuso test has 4576 # not run yet. These depmodes are late enough in the game, and 4577 # so weak that their functioning should not be impacted. 4578 am__obj=conftest.${OBJEXT-o} 4579 am__minus_obj= 4580 ;; 4581 none) break ;; 4582 esac 4583 if depmode=$depmode \ 4584 source=sub/conftest.c object=$am__obj \ 4585 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4586 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4587 >/dev/null 2>conftest.err && 4588 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4589 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4590 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4591 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4592 # icc doesn't choke on unknown options, it will just issue warnings 4593 # or remarks (even with -Werror). So we grep stderr for any message 4594 # that says an option was ignored or not supported. 4595 # When given -MP, icc 7.0 and 7.1 complain thusly: 4596 # icc: Command line warning: ignoring option '-M'; no argument required 4597 # The diagnosis changed in icc 8.0: 4598 # icc: Command line remark: option '-MP' not supported 4599 if (grep 'ignoring option' conftest.err || 4600 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4601 am_cv_CC_dependencies_compiler_type=$depmode 4602 break 4603 fi 4604 fi 4605 done 4606 4607 cd .. 4608 rm -rf conftest.dir 4609else 4610 am_cv_CC_dependencies_compiler_type=none 4611fi 4612 4613fi 4614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4615$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4616CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4617 4618 if 4619 test "x$enable_dependency_tracking" != xno \ 4620 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4621 am__fastdepCC_TRUE= 4622 am__fastdepCC_FALSE='#' 4623else 4624 am__fastdepCC_TRUE='#' 4625 am__fastdepCC_FALSE= 4626fi 4627 4628 4629 4630ac_ext=c 4631ac_cpp='$CPP $CPPFLAGS' 4632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4634ac_compiler_gnu=$ac_cv_c_compiler_gnu 4635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4636$as_echo_n "checking how to run the C preprocessor... " >&6; } 4637# On Suns, sometimes $CPP names a directory. 4638if test -n "$CPP" && test -d "$CPP"; then 4639 CPP= 4640fi 4641if test -z "$CPP"; then 4642 if ${ac_cv_prog_CPP+:} false; then : 4643 $as_echo_n "(cached) " >&6 4644else 4645 # Double quotes because CPP needs to be expanded 4646 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4647 do 4648 ac_preproc_ok=false 4649for ac_c_preproc_warn_flag in '' yes 4650do 4651 # Use a header file that comes with gcc, so configuring glibc 4652 # with a fresh cross-compiler works. 4653 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4654 # <limits.h> exists even on freestanding compilers. 4655 # On the NeXT, cc -E runs the code through the compiler's parser, 4656 # not just through cpp. "Syntax error" is here to catch this case. 4657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4658/* end confdefs.h. */ 4659#ifdef __STDC__ 4660# include <limits.h> 4661#else 4662# include <assert.h> 4663#endif 4664 Syntax error 4665_ACEOF 4666if ac_fn_c_try_cpp "$LINENO"; then : 4667 4668else 4669 # Broken: fails on valid input. 4670continue 4671fi 4672rm -f conftest.err conftest.i conftest.$ac_ext 4673 4674 # OK, works on sane cases. Now check whether nonexistent headers 4675 # can be detected and how. 4676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4677/* end confdefs.h. */ 4678#include <ac_nonexistent.h> 4679_ACEOF 4680if ac_fn_c_try_cpp "$LINENO"; then : 4681 # Broken: success on invalid input. 4682continue 4683else 4684 # Passes both tests. 4685ac_preproc_ok=: 4686break 4687fi 4688rm -f conftest.err conftest.i conftest.$ac_ext 4689 4690done 4691# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4692rm -f conftest.i conftest.err conftest.$ac_ext 4693if $ac_preproc_ok; then : 4694 break 4695fi 4696 4697 done 4698 ac_cv_prog_CPP=$CPP 4699 4700fi 4701 CPP=$ac_cv_prog_CPP 4702else 4703 ac_cv_prog_CPP=$CPP 4704fi 4705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4706$as_echo "$CPP" >&6; } 4707ac_preproc_ok=false 4708for ac_c_preproc_warn_flag in '' yes 4709do 4710 # Use a header file that comes with gcc, so configuring glibc 4711 # with a fresh cross-compiler works. 4712 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4713 # <limits.h> exists even on freestanding compilers. 4714 # On the NeXT, cc -E runs the code through the compiler's parser, 4715 # not just through cpp. "Syntax error" is here to catch this case. 4716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4717/* end confdefs.h. */ 4718#ifdef __STDC__ 4719# include <limits.h> 4720#else 4721# include <assert.h> 4722#endif 4723 Syntax error 4724_ACEOF 4725if ac_fn_c_try_cpp "$LINENO"; then : 4726 4727else 4728 # Broken: fails on valid input. 4729continue 4730fi 4731rm -f conftest.err conftest.i conftest.$ac_ext 4732 4733 # OK, works on sane cases. Now check whether nonexistent headers 4734 # can be detected and how. 4735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4736/* end confdefs.h. */ 4737#include <ac_nonexistent.h> 4738_ACEOF 4739if ac_fn_c_try_cpp "$LINENO"; then : 4740 # Broken: success on invalid input. 4741continue 4742else 4743 # Passes both tests. 4744ac_preproc_ok=: 4745break 4746fi 4747rm -f conftest.err conftest.i conftest.$ac_ext 4748 4749done 4750# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4751rm -f conftest.i conftest.err conftest.$ac_ext 4752if $ac_preproc_ok; then : 4753 4754else 4755 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4756$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4757as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4758See \`config.log' for more details" "$LINENO" 5; } 4759fi 4760 4761ac_ext=c 4762ac_cpp='$CPP $CPPFLAGS' 4763ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4764ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4765ac_compiler_gnu=$ac_cv_c_compiler_gnu 4766 4767 4768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4769$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4770if ${ac_cv_path_GREP+:} false; then : 4771 $as_echo_n "(cached) " >&6 4772else 4773 if test -z "$GREP"; then 4774 ac_path_GREP_found=false 4775 # Loop through the user's path and test for each of PROGNAME-LIST 4776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4777for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4778do 4779 IFS=$as_save_IFS 4780 test -z "$as_dir" && as_dir=. 4781 for ac_prog in grep ggrep; do 4782 for ac_exec_ext in '' $ac_executable_extensions; do 4783 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4784 as_fn_executable_p "$ac_path_GREP" || continue 4785# Check for GNU ac_path_GREP and select it if it is found. 4786 # Check for GNU $ac_path_GREP 4787case `"$ac_path_GREP" --version 2>&1` in 4788*GNU*) 4789 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4790*) 4791 ac_count=0 4792 $as_echo_n 0123456789 >"conftest.in" 4793 while : 4794 do 4795 cat "conftest.in" "conftest.in" >"conftest.tmp" 4796 mv "conftest.tmp" "conftest.in" 4797 cp "conftest.in" "conftest.nl" 4798 $as_echo 'GREP' >> "conftest.nl" 4799 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4800 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4801 as_fn_arith $ac_count + 1 && ac_count=$as_val 4802 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4803 # Best one so far, save it but keep looking for a better one 4804 ac_cv_path_GREP="$ac_path_GREP" 4805 ac_path_GREP_max=$ac_count 4806 fi 4807 # 10*(2^10) chars as input seems more than enough 4808 test $ac_count -gt 10 && break 4809 done 4810 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4811esac 4812 4813 $ac_path_GREP_found && break 3 4814 done 4815 done 4816 done 4817IFS=$as_save_IFS 4818 if test -z "$ac_cv_path_GREP"; then 4819 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4820 fi 4821else 4822 ac_cv_path_GREP=$GREP 4823fi 4824 4825fi 4826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4827$as_echo "$ac_cv_path_GREP" >&6; } 4828 GREP="$ac_cv_path_GREP" 4829 4830 4831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4832$as_echo_n "checking for egrep... " >&6; } 4833if ${ac_cv_path_EGREP+:} false; then : 4834 $as_echo_n "(cached) " >&6 4835else 4836 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4837 then ac_cv_path_EGREP="$GREP -E" 4838 else 4839 if test -z "$EGREP"; then 4840 ac_path_EGREP_found=false 4841 # Loop through the user's path and test for each of PROGNAME-LIST 4842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4843for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4844do 4845 IFS=$as_save_IFS 4846 test -z "$as_dir" && as_dir=. 4847 for ac_prog in egrep; do 4848 for ac_exec_ext in '' $ac_executable_extensions; do 4849 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4850 as_fn_executable_p "$ac_path_EGREP" || continue 4851# Check for GNU ac_path_EGREP and select it if it is found. 4852 # Check for GNU $ac_path_EGREP 4853case `"$ac_path_EGREP" --version 2>&1` in 4854*GNU*) 4855 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4856*) 4857 ac_count=0 4858 $as_echo_n 0123456789 >"conftest.in" 4859 while : 4860 do 4861 cat "conftest.in" "conftest.in" >"conftest.tmp" 4862 mv "conftest.tmp" "conftest.in" 4863 cp "conftest.in" "conftest.nl" 4864 $as_echo 'EGREP' >> "conftest.nl" 4865 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4866 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4867 as_fn_arith $ac_count + 1 && ac_count=$as_val 4868 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4869 # Best one so far, save it but keep looking for a better one 4870 ac_cv_path_EGREP="$ac_path_EGREP" 4871 ac_path_EGREP_max=$ac_count 4872 fi 4873 # 10*(2^10) chars as input seems more than enough 4874 test $ac_count -gt 10 && break 4875 done 4876 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4877esac 4878 4879 $ac_path_EGREP_found && break 3 4880 done 4881 done 4882 done 4883IFS=$as_save_IFS 4884 if test -z "$ac_cv_path_EGREP"; then 4885 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4886 fi 4887else 4888 ac_cv_path_EGREP=$EGREP 4889fi 4890 4891 fi 4892fi 4893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4894$as_echo "$ac_cv_path_EGREP" >&6; } 4895 EGREP="$ac_cv_path_EGREP" 4896 4897 4898 4899 4900 4901 4902 4903 4904# Add args to configure 4905# Check whether --enable-optimize was given. 4906if test "${enable_optimize+set}" = set; then : 4907 enableval=$enable_optimize; cw_config_optimize=$enableval 4908else 4909 cw_config_optimize= 4910fi 4911 4912# Check whether --enable-profile was given. 4913if test "${enable_profile+set}" = set; then : 4914 enableval=$enable_profile; cw_config_profile=$enableval 4915else 4916 cw_config_profile= 4917fi 4918 4919 4920# Strip possible -g and -O commandline options from CXXFLAGS. 4921CW_DEBUG_FLAGS= 4922CW_OPTIMISE_FLAGS= 4923CW_WARNING_FLAGS= 4924CW_STRIPPED_CXXFLAGS= 4925for arg in $CXXFLAGS; do 4926case "$arg" in # ( 4927-g*) 4928 CW_DEBUG_FLAGS="$CW_DEBUG_FLAGS $arg" 4929 ;; # ( 4930-O*) 4931 CW_OPTIMISE_FLAGS="$CW_OPTIMISE_FLAGS $arg" 4932 ;; # ( 4933-W*) CW_WARNING_FLAGS="$CW_WARNING_FLAGS $arg" 4934 ;; # ( 4935*) 4936 CW_STRIPPED_CXXFLAGS="$CW_STRIPPED_CXXFLAGS $arg" 4937 ;; 4938esac 4939done 4940 4941# Set various defaults, depending on other options. 4942 4943if test x"$cw_config_optimize" = x"no"; then 4944 CW_OPTIMISE_FLAGS="" # Explicit --disable-optimize, strip optimization even from CXXFLAGS environment variable. 4945fi 4946 4947if test x"$enable_maintainer_mode" = x"yes"; then 4948 if test -z "$cw_config_optimize"; then 4949 cw_config_optimize=no # --enable-maintainer-mode, set default to --disable-optimize. 4950 fi 4951fi 4952 4953if test -z "$cw_config_optimize"; then 4954 cw_config_optimize=no # no --enable-optimize, set default to --disable-optimize. 4955fi 4956 4957 4958case "$host" in 4959 *freebsd*) CW_DEFAULT_DEBUG_FLAGS=-ggdb ;; *) CW_DEFAULT_DEBUG_FLAGS=-g ;; 4960esac 4961 4962# Add debug flags. 4963test -n "$CW_DEBUG_FLAGS" || CW_DEBUG_FLAGS="$CW_DEFAULT_DEBUG_FLAGS" 4964 4965# Handle cw_config_optimize; when not explicitly set to "no", use user provided 4966# optimization flags, or -O2 when nothing was provided. 4967if test x"$cw_config_optimize" != x"no"; then 4968 test -n "$CW_OPTIMISE_FLAGS" || CW_OPTIMISE_FLAGS="-O2" 4969fi 4970 4971# Handle cw_config_profile. 4972if test x"$cw_config_profile" = x"yes"; then 4973 CW_STRIPPED_CXXFLAGS="$CW_STRIPPED_CXXFLAGS -pg" 4974 LDFLAGS="$LDFLAGS -pg" 4975fi 4976 4977# Choose warning options to use. 4978# If not in maintainer mode, use the warning options that were in CXXFLAGS. 4979# Otherwise, use those plus any passed to the macro, or if neither are 4980# given a default string - and then filter out incompatible warnings. 4981if test x"$enable_maintainer_mode" = x"yes"; then 4982 if test -z "-W -Wall -Woverloaded-virtual -Wundef -Wpointer-arith -Wwrite-strings -Wno-inline -Wno-frame-address" -a -z "$CW_WARNING_FLAGS"; then 4983 CW_WARNING_FLAGS="-W -Wall -Woverloaded-virtual -Wundef -Wpointer-arith -Wwrite-strings -Werror -Winline" 4984 else 4985 CW_WARNING_FLAGS="$CW_WARNING_FLAGS -W -Wall -Woverloaded-virtual -Wundef -Wpointer-arith -Wwrite-strings -Wno-inline -Wno-frame-address" 4986 fi 4987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4988/* end confdefs.h. */ 4989 4990#if __GNUC__ < 3 4991 Winline-broken 4992#endif 4993 4994_ACEOF 4995if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4996 $EGREP "Winline-broken" >/dev/null 2>&1; then : 4997 CW_WARNING_FLAGS="$(echo "$CW_WARNING_FLAGS" | sed -e 's/ -Winline//g')" 4998else 4999 if test -n "$CW_OPTIMISE_FLAGS"; then 5000 CW_WARNING_FLAGS="$(echo "$CW_WARNING_FLAGS" | sed -e 's/ -Werror//g')" 5001 fi 5002 5003fi 5004rm -f conftest* 5005 5006fi 5007 5008# Reassemble CXXFLAGS with debug and optimization flags. 5009CXXFLAGS=`echo "$CW_DEBUG_FLAGS $CW_WARNING_FLAGS $CW_OPTIMISE_FLAGS $CW_STRIPPED_CXXFLAGS" | sed -e 's/^ *//' -e 's/ */ /g' -e 's/ *$//'` 5010 5011 5012 5013 5014 5015 5016 5017PCHFLAGS= 5018 5019 if false; then 5020 USE_PCH_TRUE= 5021 USE_PCH_FALSE='#' 5022else 5023 USE_PCH_TRUE='#' 5024 USE_PCH_FALSE= 5025fi 5026 5027 5028 5029if test -z "$THREADSMAX"; then 5030 THREADSMAX=1024 5031fi 5032 5033cat >>confdefs.h <<_ACEOF 5034#define CW_THREADSMAX $THREADSMAX 5035_ACEOF 5036 5037 5038if test -f "$cache_file" -a x"$no_create" = xyes -a x"$no_recursion" = xyes; then 5039 eval "CPPFLAGS=\"$cw_cv_sys_CPPFLAGS\"" 5040 eval "CXXFLAGS=\"$cw_cv_sys_CXXFLAGS\"" 5041 eval "LDFLAGS=\"$cw_cv_sys_LDFLAGS\"" 5042 eval "LIBS=\"$cw_cv_sys_LIBS\"" 5043fi 5044if test x"$CXX" != "x" -o x"$CXXCPP" != "x"; then 5045 unset ac_cv_prog_CXX 5046 unset ac_cv_prog_CXXCPP 5047 unset ac_cv_prog_cxx_cross 5048 unset ac_cv_prog_cxx_works 5049 unset ac_cv_cxx_compiler_gnu 5050 unset ac_cv_prog_gxx_version 5051fi 5052if test x"$CC" != "x" -o x"$CPP" != "x"; then 5053 unset ac_cv_prog_CC 5054 unset ac_cv_prog_CPP 5055 unset ac_cv_prog_cc_cross 5056 unset ac_cv_prog_g 5057 unset ac_cv_prog_cc_works 5058 unset ac_cv_c_compiler_gnu 5059fi 5060 5061 5062CXXFLAGS_env="$CXXFLAGS" 5063 5064if test -n "$CC"; then 5065 unset ac_cv_prog_CC 5066 unset am_cv_CC_dependencies_compiler_type 5067 unset am_cv_CXX_dependencies_compiler_type 5068fi 5069ac_ext=c 5070ac_cpp='$CPP $CPPFLAGS' 5071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5073ac_compiler_gnu=$ac_cv_c_compiler_gnu 5074if test -n "$ac_tool_prefix"; then 5075 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 5076set dummy ${ac_tool_prefix}gcc; ac_word=$2 5077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5078$as_echo_n "checking for $ac_word... " >&6; } 5079if ${ac_cv_prog_CC+:} false; then : 5080 $as_echo_n "(cached) " >&6 5081else 5082 if test -n "$CC"; then 5083 ac_cv_prog_CC="$CC" # Let the user override the test. 5084else 5085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5086for as_dir in $PATH 5087do 5088 IFS=$as_save_IFS 5089 test -z "$as_dir" && as_dir=. 5090 for ac_exec_ext in '' $ac_executable_extensions; do 5091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5092 ac_cv_prog_CC="${ac_tool_prefix}gcc" 5093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5094 break 2 5095 fi 5096done 5097 done 5098IFS=$as_save_IFS 5099 5100fi 5101fi 5102CC=$ac_cv_prog_CC 5103if test -n "$CC"; then 5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5105$as_echo "$CC" >&6; } 5106else 5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5108$as_echo "no" >&6; } 5109fi 5110 5111 5112fi 5113if test -z "$ac_cv_prog_CC"; then 5114 ac_ct_CC=$CC 5115 # Extract the first word of "gcc", so it can be a program name with args. 5116set dummy gcc; ac_word=$2 5117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5118$as_echo_n "checking for $ac_word... " >&6; } 5119if ${ac_cv_prog_ac_ct_CC+:} false; then : 5120 $as_echo_n "(cached) " >&6 5121else 5122 if test -n "$ac_ct_CC"; then 5123 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5124else 5125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5126for as_dir in $PATH 5127do 5128 IFS=$as_save_IFS 5129 test -z "$as_dir" && as_dir=. 5130 for ac_exec_ext in '' $ac_executable_extensions; do 5131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5132 ac_cv_prog_ac_ct_CC="gcc" 5133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5134 break 2 5135 fi 5136done 5137 done 5138IFS=$as_save_IFS 5139 5140fi 5141fi 5142ac_ct_CC=$ac_cv_prog_ac_ct_CC 5143if test -n "$ac_ct_CC"; then 5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5145$as_echo "$ac_ct_CC" >&6; } 5146else 5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5148$as_echo "no" >&6; } 5149fi 5150 5151 if test "x$ac_ct_CC" = x; then 5152 CC="" 5153 else 5154 case $cross_compiling:$ac_tool_warned in 5155yes:) 5156{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5157$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5158ac_tool_warned=yes ;; 5159esac 5160 CC=$ac_ct_CC 5161 fi 5162else 5163 CC="$ac_cv_prog_CC" 5164fi 5165 5166if test -z "$CC"; then 5167 if test -n "$ac_tool_prefix"; then 5168 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 5169set dummy ${ac_tool_prefix}cc; ac_word=$2 5170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5171$as_echo_n "checking for $ac_word... " >&6; } 5172if ${ac_cv_prog_CC+:} false; then : 5173 $as_echo_n "(cached) " >&6 5174else 5175 if test -n "$CC"; then 5176 ac_cv_prog_CC="$CC" # Let the user override the test. 5177else 5178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5179for as_dir in $PATH 5180do 5181 IFS=$as_save_IFS 5182 test -z "$as_dir" && as_dir=. 5183 for ac_exec_ext in '' $ac_executable_extensions; do 5184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5185 ac_cv_prog_CC="${ac_tool_prefix}cc" 5186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5187 break 2 5188 fi 5189done 5190 done 5191IFS=$as_save_IFS 5192 5193fi 5194fi 5195CC=$ac_cv_prog_CC 5196if test -n "$CC"; then 5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5198$as_echo "$CC" >&6; } 5199else 5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5201$as_echo "no" >&6; } 5202fi 5203 5204 5205 fi 5206fi 5207if test -z "$CC"; then 5208 # Extract the first word of "cc", so it can be a program name with args. 5209set dummy cc; ac_word=$2 5210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5211$as_echo_n "checking for $ac_word... " >&6; } 5212if ${ac_cv_prog_CC+:} false; then : 5213 $as_echo_n "(cached) " >&6 5214else 5215 if test -n "$CC"; then 5216 ac_cv_prog_CC="$CC" # Let the user override the test. 5217else 5218 ac_prog_rejected=no 5219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5220for as_dir in $PATH 5221do 5222 IFS=$as_save_IFS 5223 test -z "$as_dir" && as_dir=. 5224 for ac_exec_ext in '' $ac_executable_extensions; do 5225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5226 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 5227 ac_prog_rejected=yes 5228 continue 5229 fi 5230 ac_cv_prog_CC="cc" 5231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5232 break 2 5233 fi 5234done 5235 done 5236IFS=$as_save_IFS 5237 5238if test $ac_prog_rejected = yes; then 5239 # We found a bogon in the path, so make sure we never use it. 5240 set dummy $ac_cv_prog_CC 5241 shift 5242 if test $# != 0; then 5243 # We chose a different compiler from the bogus one. 5244 # However, it has the same basename, so the bogon will be chosen 5245 # first if we set CC to just the basename; use the full file name. 5246 shift 5247 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 5248 fi 5249fi 5250fi 5251fi 5252CC=$ac_cv_prog_CC 5253if test -n "$CC"; then 5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5255$as_echo "$CC" >&6; } 5256else 5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5258$as_echo "no" >&6; } 5259fi 5260 5261 5262fi 5263if test -z "$CC"; then 5264 if test -n "$ac_tool_prefix"; then 5265 for ac_prog in cl.exe 5266 do 5267 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5268set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5270$as_echo_n "checking for $ac_word... " >&6; } 5271if ${ac_cv_prog_CC+:} false; then : 5272 $as_echo_n "(cached) " >&6 5273else 5274 if test -n "$CC"; then 5275 ac_cv_prog_CC="$CC" # Let the user override the test. 5276else 5277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5278for as_dir in $PATH 5279do 5280 IFS=$as_save_IFS 5281 test -z "$as_dir" && as_dir=. 5282 for ac_exec_ext in '' $ac_executable_extensions; do 5283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5284 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5286 break 2 5287 fi 5288done 5289 done 5290IFS=$as_save_IFS 5291 5292fi 5293fi 5294CC=$ac_cv_prog_CC 5295if test -n "$CC"; then 5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5297$as_echo "$CC" >&6; } 5298else 5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5300$as_echo "no" >&6; } 5301fi 5302 5303 5304 test -n "$CC" && break 5305 done 5306fi 5307if test -z "$CC"; then 5308 ac_ct_CC=$CC 5309 for ac_prog in cl.exe 5310do 5311 # Extract the first word of "$ac_prog", so it can be a program name with args. 5312set dummy $ac_prog; ac_word=$2 5313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5314$as_echo_n "checking for $ac_word... " >&6; } 5315if ${ac_cv_prog_ac_ct_CC+:} false; then : 5316 $as_echo_n "(cached) " >&6 5317else 5318 if test -n "$ac_ct_CC"; then 5319 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5320else 5321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5322for as_dir in $PATH 5323do 5324 IFS=$as_save_IFS 5325 test -z "$as_dir" && as_dir=. 5326 for ac_exec_ext in '' $ac_executable_extensions; do 5327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5328 ac_cv_prog_ac_ct_CC="$ac_prog" 5329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5330 break 2 5331 fi 5332done 5333 done 5334IFS=$as_save_IFS 5335 5336fi 5337fi 5338ac_ct_CC=$ac_cv_prog_ac_ct_CC 5339if test -n "$ac_ct_CC"; then 5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5341$as_echo "$ac_ct_CC" >&6; } 5342else 5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5344$as_echo "no" >&6; } 5345fi 5346 5347 5348 test -n "$ac_ct_CC" && break 5349done 5350 5351 if test "x$ac_ct_CC" = x; then 5352 CC="" 5353 else 5354 case $cross_compiling:$ac_tool_warned in 5355yes:) 5356{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5357$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5358ac_tool_warned=yes ;; 5359esac 5360 CC=$ac_ct_CC 5361 fi 5362fi 5363 5364fi 5365 5366 5367test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5368$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5369as_fn_error $? "no acceptable C compiler found in \$PATH 5370See \`config.log' for more details" "$LINENO" 5; } 5371 5372# Provide some information about the compiler. 5373$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 5374set X $ac_compile 5375ac_compiler=$2 5376for ac_option in --version -v -V -qversion; do 5377 { { ac_try="$ac_compiler $ac_option >&5" 5378case "(($ac_try" in 5379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5380 *) ac_try_echo=$ac_try;; 5381esac 5382eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5383$as_echo "$ac_try_echo"; } >&5 5384 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5385 ac_status=$? 5386 if test -s conftest.err; then 5387 sed '10a\ 5388... rest of stderr output deleted ... 5389 10q' conftest.err >conftest.er1 5390 cat conftest.er1 >&5 5391 fi 5392 rm -f conftest.er1 conftest.err 5393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5394 test $ac_status = 0; } 5395done 5396 5397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 5398$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 5399if ${ac_cv_c_compiler_gnu+:} false; then : 5400 $as_echo_n "(cached) " >&6 5401else 5402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5403/* end confdefs.h. */ 5404 5405int 5406main () 5407{ 5408#ifndef __GNUC__ 5409 choke me 5410#endif 5411 5412 ; 5413 return 0; 5414} 5415_ACEOF 5416if ac_fn_c_try_compile "$LINENO"; then : 5417 ac_compiler_gnu=yes 5418else 5419 ac_compiler_gnu=no 5420fi 5421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5422ac_cv_c_compiler_gnu=$ac_compiler_gnu 5423 5424fi 5425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5426$as_echo "$ac_cv_c_compiler_gnu" >&6; } 5427if test $ac_compiler_gnu = yes; then 5428 GCC=yes 5429else 5430 GCC= 5431fi 5432ac_test_CFLAGS=${CFLAGS+set} 5433ac_save_CFLAGS=$CFLAGS 5434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5435$as_echo_n "checking whether $CC accepts -g... " >&6; } 5436if ${ac_cv_prog_cc_g+:} false; then : 5437 $as_echo_n "(cached) " >&6 5438else 5439 ac_save_c_werror_flag=$ac_c_werror_flag 5440 ac_c_werror_flag=yes 5441 ac_cv_prog_cc_g=no 5442 CFLAGS="-g" 5443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5444/* end confdefs.h. */ 5445 5446int 5447main () 5448{ 5449 5450 ; 5451 return 0; 5452} 5453_ACEOF 5454if ac_fn_c_try_compile "$LINENO"; then : 5455 ac_cv_prog_cc_g=yes 5456else 5457 CFLAGS="" 5458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5459/* end confdefs.h. */ 5460 5461int 5462main () 5463{ 5464 5465 ; 5466 return 0; 5467} 5468_ACEOF 5469if ac_fn_c_try_compile "$LINENO"; then : 5470 5471else 5472 ac_c_werror_flag=$ac_save_c_werror_flag 5473 CFLAGS="-g" 5474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5475/* end confdefs.h. */ 5476 5477int 5478main () 5479{ 5480 5481 ; 5482 return 0; 5483} 5484_ACEOF 5485if ac_fn_c_try_compile "$LINENO"; then : 5486 ac_cv_prog_cc_g=yes 5487fi 5488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5489fi 5490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5491fi 5492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5493 ac_c_werror_flag=$ac_save_c_werror_flag 5494fi 5495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5496$as_echo "$ac_cv_prog_cc_g" >&6; } 5497if test "$ac_test_CFLAGS" = set; then 5498 CFLAGS=$ac_save_CFLAGS 5499elif test $ac_cv_prog_cc_g = yes; then 5500 if test "$GCC" = yes; then 5501 CFLAGS="-g -O2" 5502 else 5503 CFLAGS="-g" 5504 fi 5505else 5506 if test "$GCC" = yes; then 5507 CFLAGS="-O2" 5508 else 5509 CFLAGS= 5510 fi 5511fi 5512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5513$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5514if ${ac_cv_prog_cc_c89+:} false; then : 5515 $as_echo_n "(cached) " >&6 5516else 5517 ac_cv_prog_cc_c89=no 5518ac_save_CC=$CC 5519cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5520/* end confdefs.h. */ 5521#include <stdarg.h> 5522#include <stdio.h> 5523struct stat; 5524/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5525struct buf { int x; }; 5526FILE * (*rcsopen) (struct buf *, struct stat *, int); 5527static char *e (p, i) 5528 char **p; 5529 int i; 5530{ 5531 return p[i]; 5532} 5533static char *f (char * (*g) (char **, int), char **p, ...) 5534{ 5535 char *s; 5536 va_list v; 5537 va_start (v,p); 5538 s = g (p, va_arg (v,int)); 5539 va_end (v); 5540 return s; 5541} 5542 5543/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5544 function prototypes and stuff, but not '\xHH' hex character constants. 5545 These don't provoke an error unfortunately, instead are silently treated 5546 as 'x'. The following induces an error, until -std is added to get 5547 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5548 array size at least. It's necessary to write '\x00'==0 to get something 5549 that's true only with -std. */ 5550int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5551 5552/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5553 inside strings and character constants. */ 5554#define FOO(x) 'x' 5555int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5556 5557int test (int i, double x); 5558struct s1 {int (*f) (int a);}; 5559struct s2 {int (*f) (double a);}; 5560int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5561int argc; 5562char **argv; 5563int 5564main () 5565{ 5566return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5567 ; 5568 return 0; 5569} 5570_ACEOF 5571for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5572 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5573do 5574 CC="$ac_save_CC $ac_arg" 5575 if ac_fn_c_try_compile "$LINENO"; then : 5576 ac_cv_prog_cc_c89=$ac_arg 5577fi 5578rm -f core conftest.err conftest.$ac_objext 5579 test "x$ac_cv_prog_cc_c89" != "xno" && break 5580done 5581rm -f conftest.$ac_ext 5582CC=$ac_save_CC 5583 5584fi 5585# AC_CACHE_VAL 5586case "x$ac_cv_prog_cc_c89" in 5587 x) 5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5589$as_echo "none needed" >&6; } ;; 5590 xno) 5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5592$as_echo "unsupported" >&6; } ;; 5593 *) 5594 CC="$CC $ac_cv_prog_cc_c89" 5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5596$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5597esac 5598if test "x$ac_cv_prog_cc_c89" != xno; then : 5599 5600fi 5601 5602ac_ext=c 5603ac_cpp='$CPP $CPPFLAGS' 5604ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5606ac_compiler_gnu=$ac_cv_c_compiler_gnu 5607 5608ac_ext=c 5609ac_cpp='$CPP $CPPFLAGS' 5610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5612ac_compiler_gnu=$ac_cv_c_compiler_gnu 5613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 5614$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 5615if ${am_cv_prog_cc_c_o+:} false; then : 5616 $as_echo_n "(cached) " >&6 5617else 5618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5619/* end confdefs.h. */ 5620 5621int 5622main () 5623{ 5624 5625 ; 5626 return 0; 5627} 5628_ACEOF 5629 # Make sure it works both with $CC and with simple cc. 5630 # Following AC_PROG_CC_C_O, we do the test twice because some 5631 # compilers refuse to overwrite an existing .o file with -o, 5632 # though they will create one. 5633 am_cv_prog_cc_c_o=yes 5634 for am_i in 1 2; do 5635 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 5636 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 5637 ac_status=$? 5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5639 (exit $ac_status); } \ 5640 && test -f conftest2.$ac_objext; then 5641 : OK 5642 else 5643 am_cv_prog_cc_c_o=no 5644 break 5645 fi 5646 done 5647 rm -f core conftest* 5648 unset am_i 5649fi 5650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 5651$as_echo "$am_cv_prog_cc_c_o" >&6; } 5652if test "$am_cv_prog_cc_c_o" != yes; then 5653 # Losing compiler, so override with the script. 5654 # FIXME: It is wrong to rewrite CC. 5655 # But if we don't then we get into trouble of one sort or another. 5656 # A longer-term fix would be to have automake use am__CC in this case, 5657 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5658 CC="$am_aux_dir/compile $CC" 5659fi 5660ac_ext=c 5661ac_cpp='$CPP $CPPFLAGS' 5662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5664ac_compiler_gnu=$ac_cv_c_compiler_gnu 5665 5666 5667depcc="$CC" am_compiler_list= 5668 5669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5670$as_echo_n "checking dependency style of $depcc... " >&6; } 5671if ${am_cv_CC_dependencies_compiler_type+:} false; then : 5672 $as_echo_n "(cached) " >&6 5673else 5674 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5675 # We make a subdir and do the tests there. Otherwise we can end up 5676 # making bogus files that we don't know about and never remove. For 5677 # instance it was reported that on HP-UX the gcc test will end up 5678 # making a dummy file named 'D' -- because '-MD' means "put the output 5679 # in D". 5680 rm -rf conftest.dir 5681 mkdir conftest.dir 5682 # Copy depcomp to subdir because otherwise we won't find it if we're 5683 # using a relative directory. 5684 cp "$am_depcomp" conftest.dir 5685 cd conftest.dir 5686 # We will build objects and dependencies in a subdirectory because 5687 # it helps to detect inapplicable dependency modes. For instance 5688 # both Tru64's cc and ICC support -MD to output dependencies as a 5689 # side effect of compilation, but ICC will put the dependencies in 5690 # the current directory while Tru64 will put them in the object 5691 # directory. 5692 mkdir sub 5693 5694 am_cv_CC_dependencies_compiler_type=none 5695 if test "$am_compiler_list" = ""; then 5696 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5697 fi 5698 am__universal=false 5699 case " $depcc " in #( 5700 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5701 esac 5702 5703 for depmode in $am_compiler_list; do 5704 # Setup a source with many dependencies, because some compilers 5705 # like to wrap large dependency lists on column 80 (with \), and 5706 # we should not choose a depcomp mode which is confused by this. 5707 # 5708 # We need to recreate these files for each test, as the compiler may 5709 # overwrite some of them when testing with obscure command lines. 5710 # This happens at least with the AIX C compiler. 5711 : > sub/conftest.c 5712 for i in 1 2 3 4 5 6; do 5713 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5714 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5715 # Solaris 10 /bin/sh. 5716 echo '/* dummy */' > sub/conftst$i.h 5717 done 5718 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5719 5720 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5721 # mode. It turns out that the SunPro C++ compiler does not properly 5722 # handle '-M -o', and we need to detect this. Also, some Intel 5723 # versions had trouble with output in subdirs. 5724 am__obj=sub/conftest.${OBJEXT-o} 5725 am__minus_obj="-o $am__obj" 5726 case $depmode in 5727 gcc) 5728 # This depmode causes a compiler race in universal mode. 5729 test "$am__universal" = false || continue 5730 ;; 5731 nosideeffect) 5732 # After this tag, mechanisms are not by side-effect, so they'll 5733 # only be used when explicitly requested. 5734 if test "x$enable_dependency_tracking" = xyes; then 5735 continue 5736 else 5737 break 5738 fi 5739 ;; 5740 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5741 # This compiler won't grok '-c -o', but also, the minuso test has 5742 # not run yet. These depmodes are late enough in the game, and 5743 # so weak that their functioning should not be impacted. 5744 am__obj=conftest.${OBJEXT-o} 5745 am__minus_obj= 5746 ;; 5747 none) break ;; 5748 esac 5749 if depmode=$depmode \ 5750 source=sub/conftest.c object=$am__obj \ 5751 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5752 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5753 >/dev/null 2>conftest.err && 5754 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5755 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5756 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5757 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5758 # icc doesn't choke on unknown options, it will just issue warnings 5759 # or remarks (even with -Werror). So we grep stderr for any message 5760 # that says an option was ignored or not supported. 5761 # When given -MP, icc 7.0 and 7.1 complain thusly: 5762 # icc: Command line warning: ignoring option '-M'; no argument required 5763 # The diagnosis changed in icc 8.0: 5764 # icc: Command line remark: option '-MP' not supported 5765 if (grep 'ignoring option' conftest.err || 5766 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5767 am_cv_CC_dependencies_compiler_type=$depmode 5768 break 5769 fi 5770 fi 5771 done 5772 5773 cd .. 5774 rm -rf conftest.dir 5775else 5776 am_cv_CC_dependencies_compiler_type=none 5777fi 5778 5779fi 5780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5781$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5782CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5783 5784 if 5785 test "x$enable_dependency_tracking" != xno \ 5786 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5787 am__fastdepCC_TRUE= 5788 am__fastdepCC_FALSE='#' 5789else 5790 am__fastdepCC_TRUE='#' 5791 am__fastdepCC_FALSE= 5792fi 5793 5794 5795ac_ext=cpp 5796ac_cpp='$CXXCPP $CPPFLAGS' 5797ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5798ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5799ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5800if test -z "$CXX"; then 5801 if test -n "$CCC"; then 5802 CXX=$CCC 5803 else 5804 if test -n "$ac_tool_prefix"; then 5805 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5806 do 5807 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5808set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5810$as_echo_n "checking for $ac_word... " >&6; } 5811if ${ac_cv_prog_CXX+:} false; then : 5812 $as_echo_n "(cached) " >&6 5813else 5814 if test -n "$CXX"; then 5815 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5816else 5817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5818for as_dir in $PATH 5819do 5820 IFS=$as_save_IFS 5821 test -z "$as_dir" && as_dir=. 5822 for ac_exec_ext in '' $ac_executable_extensions; do 5823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5824 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5826 break 2 5827 fi 5828done 5829 done 5830IFS=$as_save_IFS 5831 5832fi 5833fi 5834CXX=$ac_cv_prog_CXX 5835if test -n "$CXX"; then 5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 5837$as_echo "$CXX" >&6; } 5838else 5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5840$as_echo "no" >&6; } 5841fi 5842 5843 5844 test -n "$CXX" && break 5845 done 5846fi 5847if test -z "$CXX"; then 5848 ac_ct_CXX=$CXX 5849 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5850do 5851 # Extract the first word of "$ac_prog", so it can be a program name with args. 5852set dummy $ac_prog; ac_word=$2 5853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5854$as_echo_n "checking for $ac_word... " >&6; } 5855if ${ac_cv_prog_ac_ct_CXX+:} false; then : 5856 $as_echo_n "(cached) " >&6 5857else 5858 if test -n "$ac_ct_CXX"; then 5859 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5860else 5861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5862for as_dir in $PATH 5863do 5864 IFS=$as_save_IFS 5865 test -z "$as_dir" && as_dir=. 5866 for ac_exec_ext in '' $ac_executable_extensions; do 5867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5868 ac_cv_prog_ac_ct_CXX="$ac_prog" 5869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5870 break 2 5871 fi 5872done 5873 done 5874IFS=$as_save_IFS 5875 5876fi 5877fi 5878ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5879if test -n "$ac_ct_CXX"; then 5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 5881$as_echo "$ac_ct_CXX" >&6; } 5882else 5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5884$as_echo "no" >&6; } 5885fi 5886 5887 5888 test -n "$ac_ct_CXX" && break 5889done 5890 5891 if test "x$ac_ct_CXX" = x; then 5892 CXX="g++" 5893 else 5894 case $cross_compiling:$ac_tool_warned in 5895yes:) 5896{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5897$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5898ac_tool_warned=yes ;; 5899esac 5900 CXX=$ac_ct_CXX 5901 fi 5902fi 5903 5904 fi 5905fi 5906# Provide some information about the compiler. 5907$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 5908set X $ac_compile 5909ac_compiler=$2 5910for ac_option in --version -v -V -qversion; do 5911 { { ac_try="$ac_compiler $ac_option >&5" 5912case "(($ac_try" in 5913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5914 *) ac_try_echo=$ac_try;; 5915esac 5916eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5917$as_echo "$ac_try_echo"; } >&5 5918 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5919 ac_status=$? 5920 if test -s conftest.err; then 5921 sed '10a\ 5922... rest of stderr output deleted ... 5923 10q' conftest.err >conftest.er1 5924 cat conftest.er1 >&5 5925 fi 5926 rm -f conftest.er1 conftest.err 5927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5928 test $ac_status = 0; } 5929done 5930 5931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 5932$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 5933if ${ac_cv_cxx_compiler_gnu+:} false; then : 5934 $as_echo_n "(cached) " >&6 5935else 5936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5937/* end confdefs.h. */ 5938 5939int 5940main () 5941{ 5942#ifndef __GNUC__ 5943 choke me 5944#endif 5945 5946 ; 5947 return 0; 5948} 5949_ACEOF 5950if ac_fn_cxx_try_compile "$LINENO"; then : 5951 ac_compiler_gnu=yes 5952else 5953 ac_compiler_gnu=no 5954fi 5955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5956ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5957 5958fi 5959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 5960$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 5961if test $ac_compiler_gnu = yes; then 5962 GXX=yes 5963else 5964 GXX= 5965fi 5966ac_test_CXXFLAGS=${CXXFLAGS+set} 5967ac_save_CXXFLAGS=$CXXFLAGS 5968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 5969$as_echo_n "checking whether $CXX accepts -g... " >&6; } 5970if ${ac_cv_prog_cxx_g+:} false; then : 5971 $as_echo_n "(cached) " >&6 5972else 5973 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5974 ac_cxx_werror_flag=yes 5975 ac_cv_prog_cxx_g=no 5976 CXXFLAGS="-g" 5977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5978/* end confdefs.h. */ 5979 5980int 5981main () 5982{ 5983 5984 ; 5985 return 0; 5986} 5987_ACEOF 5988if ac_fn_cxx_try_compile "$LINENO"; then : 5989 ac_cv_prog_cxx_g=yes 5990else 5991 CXXFLAGS="" 5992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5993/* end confdefs.h. */ 5994 5995int 5996main () 5997{ 5998 5999 ; 6000 return 0; 6001} 6002_ACEOF 6003if ac_fn_cxx_try_compile "$LINENO"; then : 6004 6005else 6006 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6007 CXXFLAGS="-g" 6008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6009/* end confdefs.h. */ 6010 6011int 6012main () 6013{ 6014 6015 ; 6016 return 0; 6017} 6018_ACEOF 6019if ac_fn_cxx_try_compile "$LINENO"; then : 6020 ac_cv_prog_cxx_g=yes 6021fi 6022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6023fi 6024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6025fi 6026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6027 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6028fi 6029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 6030$as_echo "$ac_cv_prog_cxx_g" >&6; } 6031if test "$ac_test_CXXFLAGS" = set; then 6032 CXXFLAGS=$ac_save_CXXFLAGS 6033elif test $ac_cv_prog_cxx_g = yes; then 6034 if test "$GXX" = yes; then 6035 CXXFLAGS="-g -O2" 6036 else 6037 CXXFLAGS="-g" 6038 fi 6039else 6040 if test "$GXX" = yes; then 6041 CXXFLAGS="-O2" 6042 else 6043 CXXFLAGS= 6044 fi 6045fi 6046ac_ext=c 6047ac_cpp='$CPP $CPPFLAGS' 6048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6050ac_compiler_gnu=$ac_cv_c_compiler_gnu 6051 6052depcc="$CXX" am_compiler_list= 6053 6054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 6055$as_echo_n "checking dependency style of $depcc... " >&6; } 6056if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 6057 $as_echo_n "(cached) " >&6 6058else 6059 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6060 # We make a subdir and do the tests there. Otherwise we can end up 6061 # making bogus files that we don't know about and never remove. For 6062 # instance it was reported that on HP-UX the gcc test will end up 6063 # making a dummy file named 'D' -- because '-MD' means "put the output 6064 # in D". 6065 rm -rf conftest.dir 6066 mkdir conftest.dir 6067 # Copy depcomp to subdir because otherwise we won't find it if we're 6068 # using a relative directory. 6069 cp "$am_depcomp" conftest.dir 6070 cd conftest.dir 6071 # We will build objects and dependencies in a subdirectory because 6072 # it helps to detect inapplicable dependency modes. For instance 6073 # both Tru64's cc and ICC support -MD to output dependencies as a 6074 # side effect of compilation, but ICC will put the dependencies in 6075 # the current directory while Tru64 will put them in the object 6076 # directory. 6077 mkdir sub 6078 6079 am_cv_CXX_dependencies_compiler_type=none 6080 if test "$am_compiler_list" = ""; then 6081 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6082 fi 6083 am__universal=false 6084 case " $depcc " in #( 6085 *\ -arch\ *\ -arch\ *) am__universal=true ;; 6086 esac 6087 6088 for depmode in $am_compiler_list; do 6089 # Setup a source with many dependencies, because some compilers 6090 # like to wrap large dependency lists on column 80 (with \), and 6091 # we should not choose a depcomp mode which is confused by this. 6092 # 6093 # We need to recreate these files for each test, as the compiler may 6094 # overwrite some of them when testing with obscure command lines. 6095 # This happens at least with the AIX C compiler. 6096 : > sub/conftest.c 6097 for i in 1 2 3 4 5 6; do 6098 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6099 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 6100 # Solaris 10 /bin/sh. 6101 echo '/* dummy */' > sub/conftst$i.h 6102 done 6103 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6104 6105 # We check with '-c' and '-o' for the sake of the "dashmstdout" 6106 # mode. It turns out that the SunPro C++ compiler does not properly 6107 # handle '-M -o', and we need to detect this. Also, some Intel 6108 # versions had trouble with output in subdirs. 6109 am__obj=sub/conftest.${OBJEXT-o} 6110 am__minus_obj="-o $am__obj" 6111 case $depmode in 6112 gcc) 6113 # This depmode causes a compiler race in universal mode. 6114 test "$am__universal" = false || continue 6115 ;; 6116 nosideeffect) 6117 # After this tag, mechanisms are not by side-effect, so they'll 6118 # only be used when explicitly requested. 6119 if test "x$enable_dependency_tracking" = xyes; then 6120 continue 6121 else 6122 break 6123 fi 6124 ;; 6125 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 6126 # This compiler won't grok '-c -o', but also, the minuso test has 6127 # not run yet. These depmodes are late enough in the game, and 6128 # so weak that their functioning should not be impacted. 6129 am__obj=conftest.${OBJEXT-o} 6130 am__minus_obj= 6131 ;; 6132 none) break ;; 6133 esac 6134 if depmode=$depmode \ 6135 source=sub/conftest.c object=$am__obj \ 6136 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6137 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 6138 >/dev/null 2>conftest.err && 6139 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6140 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6141 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 6142 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6143 # icc doesn't choke on unknown options, it will just issue warnings 6144 # or remarks (even with -Werror). So we grep stderr for any message 6145 # that says an option was ignored or not supported. 6146 # When given -MP, icc 7.0 and 7.1 complain thusly: 6147 # icc: Command line warning: ignoring option '-M'; no argument required 6148 # The diagnosis changed in icc 8.0: 6149 # icc: Command line remark: option '-MP' not supported 6150 if (grep 'ignoring option' conftest.err || 6151 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6152 am_cv_CXX_dependencies_compiler_type=$depmode 6153 break 6154 fi 6155 fi 6156 done 6157 6158 cd .. 6159 rm -rf conftest.dir 6160else 6161 am_cv_CXX_dependencies_compiler_type=none 6162fi 6163 6164fi 6165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 6166$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 6167CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 6168 6169 if 6170 test "x$enable_dependency_tracking" != xno \ 6171 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 6172 am__fastdepCXX_TRUE= 6173 am__fastdepCXX_FALSE='#' 6174else 6175 am__fastdepCXX_TRUE='#' 6176 am__fastdepCXX_FALSE= 6177fi 6178 6179 6180ac_ext=cpp 6181ac_cpp='$CXXCPP $CPPFLAGS' 6182ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6183ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6184ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 6186$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 6187if test -z "$CXXCPP"; then 6188 if ${ac_cv_prog_CXXCPP+:} false; then : 6189 $as_echo_n "(cached) " >&6 6190else 6191 # Double quotes because CXXCPP needs to be expanded 6192 for CXXCPP in "$CXX -E" "/lib/cpp" 6193 do 6194 ac_preproc_ok=false 6195for ac_cxx_preproc_warn_flag in '' yes 6196do 6197 # Use a header file that comes with gcc, so configuring glibc 6198 # with a fresh cross-compiler works. 6199 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6200 # <limits.h> exists even on freestanding compilers. 6201 # On the NeXT, cc -E runs the code through the compiler's parser, 6202 # not just through cpp. "Syntax error" is here to catch this case. 6203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6204/* end confdefs.h. */ 6205#ifdef __STDC__ 6206# include <limits.h> 6207#else 6208# include <assert.h> 6209#endif 6210 Syntax error 6211_ACEOF 6212if ac_fn_cxx_try_cpp "$LINENO"; then : 6213 6214else 6215 # Broken: fails on valid input. 6216continue 6217fi 6218rm -f conftest.err conftest.i conftest.$ac_ext 6219 6220 # OK, works on sane cases. Now check whether nonexistent headers 6221 # can be detected and how. 6222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6223/* end confdefs.h. */ 6224#include <ac_nonexistent.h> 6225_ACEOF 6226if ac_fn_cxx_try_cpp "$LINENO"; then : 6227 # Broken: success on invalid input. 6228continue 6229else 6230 # Passes both tests. 6231ac_preproc_ok=: 6232break 6233fi 6234rm -f conftest.err conftest.i conftest.$ac_ext 6235 6236done 6237# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6238rm -f conftest.i conftest.err conftest.$ac_ext 6239if $ac_preproc_ok; then : 6240 break 6241fi 6242 6243 done 6244 ac_cv_prog_CXXCPP=$CXXCPP 6245 6246fi 6247 CXXCPP=$ac_cv_prog_CXXCPP 6248else 6249 ac_cv_prog_CXXCPP=$CXXCPP 6250fi 6251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 6252$as_echo "$CXXCPP" >&6; } 6253ac_preproc_ok=false 6254for ac_cxx_preproc_warn_flag in '' yes 6255do 6256 # Use a header file that comes with gcc, so configuring glibc 6257 # with a fresh cross-compiler works. 6258 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6259 # <limits.h> exists even on freestanding compilers. 6260 # On the NeXT, cc -E runs the code through the compiler's parser, 6261 # not just through cpp. "Syntax error" is here to catch this case. 6262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6263/* end confdefs.h. */ 6264#ifdef __STDC__ 6265# include <limits.h> 6266#else 6267# include <assert.h> 6268#endif 6269 Syntax error 6270_ACEOF 6271if ac_fn_cxx_try_cpp "$LINENO"; then : 6272 6273else 6274 # Broken: fails on valid input. 6275continue 6276fi 6277rm -f conftest.err conftest.i conftest.$ac_ext 6278 6279 # OK, works on sane cases. Now check whether nonexistent headers 6280 # can be detected and how. 6281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6282/* end confdefs.h. */ 6283#include <ac_nonexistent.h> 6284_ACEOF 6285if ac_fn_cxx_try_cpp "$LINENO"; then : 6286 # Broken: success on invalid input. 6287continue 6288else 6289 # Passes both tests. 6290ac_preproc_ok=: 6291break 6292fi 6293rm -f conftest.err conftest.i conftest.$ac_ext 6294 6295done 6296# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6297rm -f conftest.i conftest.err conftest.$ac_ext 6298if $ac_preproc_ok; then : 6299 6300else 6301 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6302$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6303as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 6304See \`config.log' for more details" "$LINENO" 5; } 6305fi 6306 6307ac_ext=c 6308ac_cpp='$CPP $CPPFLAGS' 6309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6311ac_compiler_gnu=$ac_cv_c_compiler_gnu 6312 6313 6314# __cxa_atexit not being used is always wrong, but not really our concern if we are configured with --disable-alloc. 6315if test x"$libcwd_config_alloc" = x"yes"; then 6316 6317for ac_func in __cxa_atexit 6318do : 6319 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit" 6320if test "x$ac_cv_func___cxa_atexit" = xyes; then : 6321 cat >>confdefs.h <<_ACEOF 6322#define HAVE___CXA_ATEXIT 1 6323_ACEOF 6324 6325fi 6326done 6327 6328if test $ac_cv_func___cxa_atexit = "yes"; then 6329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler was configured for __cxa_atexit" >&5 6330$as_echo_n "checking if the compiler was configured for __cxa_atexit... " >&6; } 6331if ${cw_cv_cxa_atexit+:} false; then : 6332 $as_echo_n "(cached) " >&6 6333else 6334 cw_cv_cxa_atexit=yes # By default, don't fail this test. 6335# We only need --enable-__cxa_atexit when the function exists on this OS. 6336 6337ac_ext=cpp 6338ac_cpp='$CXXCPP $CPPFLAGS' 6339ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6340ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6341ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6342 6343if test "$cross_compiling" = yes; then : 6344 cw_cv_cxa_atexit=whatever 6345else 6346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6347/* end confdefs.h. */ 6348static int y; 6349struct Foo { Foo() { y = 0; } ~Foo() { } } x; 6350extern "C" void __cxa_atexit() { y = 1; } 6351int main() { return y ? 0 : 1; } 6352_ACEOF 6353if ac_fn_cxx_try_run "$LINENO"; then : 6354 cw_cv_cxa_atexit=yes 6355else 6356 cw_cv_cxa_atexit=no 6357fi 6358rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6359 conftest.$ac_objext conftest.beam conftest.$ac_ext 6360fi 6361 6362ac_ext=c 6363ac_cpp='$CPP $CPPFLAGS' 6364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6366ac_compiler_gnu=$ac_cv_c_compiler_gnu 6367 6368fi 6369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cw_cv_cxa_atexit" >&5 6370$as_echo "$cw_cv_cxa_atexit" >&6; } 6371if test "$cw_cv_cxa_atexit" = no; then 6372as_fn_error $? " 6373 6374* This C++ compiler was not configured with --enable-__cxa_atexit! 6375* You need to fix this; reconfigure and recompile your compiler. 6376* See also http://gcc.gnu.org/gcc-3.2/c++-abi.html 6377" "$LINENO" 5 6378fi 6379fi 6380 6381fi 6382 6383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the versions C and C++ compiler match" >&5 6384$as_echo_n "checking whether the versions C and C++ compiler match... " >&6; } 6385CC_VERSION=`$CC -v 2>&1 | grep '^gcc version'` 6386CXX_VERSION=`$CXX -v 2>&1 | grep '^gcc version'` 6387if test x"$CC_VERSION" != x"$CXX_VERSION"; then 6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6389$as_echo "no" >&6; } 6390 as_fn_error $? "Versions of CC and CXX do not match. 6391 $CC gives \"$CC_VERSION\" and $CXX gives \"$CXX_VERSION\". 6392 Please specify both, CC and CXX environment variables." "$LINENO" 5 6393else 6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6395$as_echo "yes" >&6; } 6396fi 6397 6398 6399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use cached results for the tests" >&5 6400$as_echo_n "checking if we can use cached results for the tests... " >&6; } 6401 6402 6403 6404cw_prog_cxx_finger_print="`$CXX -v 2>&1 | grep version | head -n 1`" 6405cw_prog_cxxcpp_finger_print="`echo | $CXXCPP -v 2>&1 | grep version | head -n 1`" 6406cw_prog_cc_finger_print="`$CC -v 2>&1 | grep version | head -n 1`" 6407 6408if test "$cw_cv_sys_CXX_finger_print" != "$cw_prog_cxx_finger_print" -o \ 6409 "$cw_cv_sys_CXXCPP_finger_print" != "$cw_prog_cxxcpp_finger_print" -o \ 6410 "$cw_cv_sys_CC_finger_print" != "$cw_prog_cc_finger_print" -o \ 6411 "$cw_cv_sys_CPPFLAGS" != "$CPPFLAGS" -o \ 6412 "$cw_cv_sys_CXXFLAGS" != "$CXXFLAGS" -o \ 6413 "$cw_cv_sys_LDFLAGS" != "$LDFLAGS" -o \ 6414 "$cw_cv_sys_LIBS" != "$LIBS"; then 6415for i in `set | grep -v '^ac_cv_prog_[Ccg][CXx]' | grep '^[a-z]*_cv_' | sed -e 's/=.*$//'`; do 6416 unset $i 6417done 6418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6419$as_echo "no" >&6; } 6420else 6421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6422$as_echo "yes" >&6; } 6423fi 6424cw_cv_sys_CXX_finger_print="$cw_prog_cxx_finger_print" 6425cw_cv_sys_CXXCPP_finger_print="$cw_prog_cxxcpp_finger_print" 6426cw_cv_sys_CC_finger_print="$cw_prog_cc_finger_print" 6427cw_cv_sys_CPPFLAGS="$CPPFLAGS" 6428cw_cv_sys_CXXFLAGS="$CXXFLAGS" 6429cw_cv_sys_LDFLAGS="$LDFLAGS" 6430cw_cv_sys_LIBS="$LIBS" 6431 6432 6433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to pass a runtime path to the linker" >&5 6434$as_echo_n "checking how to pass a runtime path to the linker... " >&6; } 6435if ${cw_cv_rpath_option+:} false; then : 6436 $as_echo_n "(cached) " >&6 6437else 6438 save_CXXFLAGS="$CXXFLAGS" 6439 6440ac_ext=cpp 6441ac_cpp='$CXXCPP $CPPFLAGS' 6442ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6443ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6444ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6445 6446CXXFLAGS="$save_CXXFLAGS -Wl,--rpath,/tmp" 6447cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6448/* end confdefs.h. */ 6449 6450int 6451main () 6452{ 6453 6454 ; 6455 return 0; 6456} 6457_ACEOF 6458if ac_fn_cxx_try_link "$LINENO"; then : 6459 cw_cv_rpath_option="-Wl,--rpath," 6460else 6461 cw_cv_rpath_option="-Wl,-R" 6462fi 6463rm -f core conftest.err conftest.$ac_objext \ 6464 conftest$ac_exeext conftest.$ac_ext 6465ac_ext=c 6466ac_cpp='$CPP $CPPFLAGS' 6467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6469ac_compiler_gnu=$ac_cv_c_compiler_gnu 6470 6471CXXFLAGS="$save_CXXFLAGS" 6472fi 6473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cw_cv_rpath_option" >&5 6474$as_echo "$cw_cv_rpath_option" >&6; } 6475RPATH_OPTION="$cw_cv_rpath_option" 6476 6477 6478 6479 6480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 6481$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 6482set x ${MAKE-make} 6483ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 6484if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 6485 $as_echo_n "(cached) " >&6 6486else 6487 cat >conftest.make <<\_ACEOF 6488SHELL = /bin/sh 6489all: 6490 @echo '@@@%%%=$(MAKE)=@@@%%%' 6491_ACEOF 6492# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 6493case `${MAKE-make} -f conftest.make 2>/dev/null` in 6494 *@@@%%%=?*=@@@%%%*) 6495 eval ac_cv_prog_make_${ac_make}_set=yes;; 6496 *) 6497 eval ac_cv_prog_make_${ac_make}_set=no;; 6498esac 6499rm -f conftest.make 6500fi 6501if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6503$as_echo "yes" >&6; } 6504 SET_MAKE= 6505else 6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6507$as_echo "no" >&6; } 6508 SET_MAKE="MAKE=${MAKE-make}" 6509fi 6510 6511for ac_prog in gawk mawk nawk awk 6512do 6513 # Extract the first word of "$ac_prog", so it can be a program name with args. 6514set dummy $ac_prog; ac_word=$2 6515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6516$as_echo_n "checking for $ac_word... " >&6; } 6517if ${ac_cv_prog_AWK+:} false; then : 6518 $as_echo_n "(cached) " >&6 6519else 6520 if test -n "$AWK"; then 6521 ac_cv_prog_AWK="$AWK" # Let the user override the test. 6522else 6523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6524for as_dir in $PATH 6525do 6526 IFS=$as_save_IFS 6527 test -z "$as_dir" && as_dir=. 6528 for ac_exec_ext in '' $ac_executable_extensions; do 6529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6530 ac_cv_prog_AWK="$ac_prog" 6531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6532 break 2 6533 fi 6534done 6535 done 6536IFS=$as_save_IFS 6537 6538fi 6539fi 6540AWK=$ac_cv_prog_AWK 6541if test -n "$AWK"; then 6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 6543$as_echo "$AWK" >&6; } 6544else 6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6546$as_echo "no" >&6; } 6547fi 6548 6549 6550 test -n "$AWK" && break 6551done 6552 6553# Extract the first word of "ps", so it can be a program name with args. 6554set dummy ps; ac_word=$2 6555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6556$as_echo_n "checking for $ac_word... " >&6; } 6557if ${ac_cv_path_PS+:} false; then : 6558 $as_echo_n "(cached) " >&6 6559else 6560 case $PS in 6561 [\\/]* | ?:[\\/]*) 6562 ac_cv_path_PS="$PS" # Let the user override the test with a path. 6563 ;; 6564 *) 6565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6566for as_dir in $PATH 6567do 6568 IFS=$as_save_IFS 6569 test -z "$as_dir" && as_dir=. 6570 for ac_exec_ext in '' $ac_executable_extensions; do 6571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6572 ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext" 6573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6574 break 2 6575 fi 6576done 6577 done 6578IFS=$as_save_IFS 6579 6580 test -z "$ac_cv_path_PS" && ac_cv_path_PS="/bin/ps" 6581 ;; 6582esac 6583fi 6584PS=$ac_cv_path_PS 6585if test -n "$PS"; then 6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS" >&5 6587$as_echo "$PS" >&6; } 6588else 6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6590$as_echo "no" >&6; } 6591fi 6592 6593 6594# The PS_WIDE_PID_OPTION test is not needed when --disable-location is used. 6595if test x"$libcwd_config_location" = x"yes"; then 6596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for option of ps to print the full command of a specified PID" >&5 6597$as_echo_n "checking for option of ps to print the full command of a specified PID... " >&6; } 6598if ${cw_cv_sys_ps_wide_pid_option+:} false; then : 6599 $as_echo_n "(cached) " >&6 6600else 6601 if $PS -ww >/dev/null 2>/dev/null; then 6602cw_cv_sys_ps_wide_pid_option="-ww" 6603elif $PS -w >/dev/null 2>/dev/null; then 6604cw_cv_sys_ps_wide_pid_option="-w" 6605else 6606cw_cv_sys_ps_wide_pid_option="-f" 6607fi 6608$PS $cw_cv_sys_ps_wide_pid_option 1 > ./ps.out.$$ 2>/dev/null 6609if grep init ./ps.out.$$ >/dev/null; then 6610 : 6611else 6612$PS $cw_cv_sys_ps_wide_pid_option\p 1 > ./ps.out.$$ 2>/dev/null 6613if grep init ./ps.out.$$ >/dev/null; then 6614 cw_cv_sys_ps_wide_pid_option="$cw_cv_sys_ps_wide_pid_option"p 6615fi 6616fi 6617rm -f ./ps.out.$$ 6618echo "#! /bin/sh" > ./conf.test.this_is_a_very_long_executable_name_that_should_be_longer_than_any_other_name_including_full_path_than_will_reasonable_ever_happen_for_real_in_practise 6619echo "$PS $cw_cv_sys_ps_wide_pid_option \$\$" >> ./conf.test.this_is_a_very_long_executable_name_that_should_be_longer_than_any_other_name_including_full_path_than_will_reasonable_ever_happen_for_real_in_practise 6620chmod 700 ./conf.test.this_is_a_very_long_executable_name_that_should_be_longer_than_any_other_name_including_full_path_than_will_reasonable_ever_happen_for_real_in_practise 6621if ./conf.test.this_is_a_very_long_executable_name_that_should_be_longer_than_any_other_name_including_full_path_than_will_reasonable_ever_happen_for_real_in_practise | grep real_in_practise >/dev/null; then 6622 : 6623else 6624 if ./conf.test.this_is_a_very_long_executable_name_that_should_be_longer_than_any_other_name_including_full_path_than_will_reasonable_ever_happen_for_real_in_practise | grep that_should_be_longer >/dev/null; then 6625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ps cuts off long path names, this will break executables with a long path or name that use libcwd!" >&5 6626$as_echo "$as_me: WARNING: ps cuts off long path names, this will break executables with a long path or name that use libcwd!" >&2;} 6627 else 6628 as_fn_error $? "Cannot determine the correct ps arguments" "$LINENO" 5 6629 fi 6630fi 6631rm -f ./conf.test.this_is_a_very_long_executable_name_that_should_be_longer_than_any_other_name_including_full_path_than_will_reasonable_ever_happen_for_real_in_practise 6632 6633fi 6634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cw_cv_sys_ps_wide_pid_option" >&5 6635$as_echo "$cw_cv_sys_ps_wide_pid_option" >&6; } 6636 6637cat >>confdefs.h <<_ACEOF 6638#define PS_ARGUMENT "$cw_cv_sys_ps_wide_pid_option" 6639_ACEOF 6640 6641 6642fi 6643 6644cat >>confdefs.h <<_ACEOF 6645#define CW_PATH_PROG_PS "$PS" 6646_ACEOF 6647 6648 6649if expr "$host" : ".*openbsd.*" >/dev/null; then 6650 # Check whether --enable-shared was given. 6651if test "${enable_shared+set}" = set; then : 6652 enableval=$enable_shared; p=${PACKAGE-default} 6653 case $enableval in 6654 yes) enable_shared=yes ;; 6655 no) enable_shared=no ;; 6656 *) 6657 enable_shared=no 6658 # Look at the argument we got. We use all the common list separators. 6659 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6660 for pkg in $enableval; do 6661 IFS="$lt_save_ifs" 6662 if test "X$pkg" = "X$p"; then 6663 enable_shared=yes 6664 fi 6665 done 6666 IFS="$lt_save_ifs" 6667 ;; 6668 esac 6669else 6670 enable_shared=no 6671fi 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681else 6682 # Check whether --enable-static was given. 6683if test "${enable_static+set}" = set; then : 6684 enableval=$enable_static; p=${PACKAGE-default} 6685 case $enableval in 6686 yes) enable_static=yes ;; 6687 no) enable_static=no ;; 6688 *) 6689 enable_static=no 6690 # Look at the argument we got. We use all the common list separators. 6691 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6692 for pkg in $enableval; do 6693 IFS="$lt_save_ifs" 6694 if test "X$pkg" = "X$p"; then 6695 enable_static=yes 6696 fi 6697 done 6698 IFS="$lt_save_ifs" 6699 ;; 6700 esac 6701else 6702 enable_static=no 6703fi 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713fi 6714test -n "$enable_shared" || enable_shared=yes 6715test -n "$enable_static" || enable_static=yes 6716case `pwd` in 6717 *\ * | *\ *) 6718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 6719$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 6720esac 6721 6722 6723 6724macro_version='2.4.2' 6725macro_revision='1.3337' 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739ltmain="$ac_aux_dir/ltmain.sh" 6740 6741# Backslashify metacharacters that are still active within 6742# double-quoted strings. 6743sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 6744 6745# Same as above, but do not quote variable references. 6746double_quote_subst='s/\(["`\\]\)/\\\1/g' 6747 6748# Sed substitution to delay expansion of an escaped shell variable in a 6749# double_quote_subst'ed string. 6750delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6751 6752# Sed substitution to delay expansion of an escaped single quote. 6753delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 6754 6755# Sed substitution to avoid accidental globbing in evaled expressions 6756no_glob_subst='s/\*/\\\*/g' 6757 6758ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 6759ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 6760ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 6761 6762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 6763$as_echo_n "checking how to print strings... " >&6; } 6764# Test print first, because it will be a builtin if present. 6765if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 6766 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 6767 ECHO='print -r --' 6768elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 6769 ECHO='printf %s\n' 6770else 6771 # Use this function as a fallback that always works. 6772 func_fallback_echo () 6773 { 6774 eval 'cat <<_LTECHO_EOF 6775$1 6776_LTECHO_EOF' 6777 } 6778 ECHO='func_fallback_echo' 6779fi 6780 6781# func_echo_all arg... 6782# Invoke $ECHO with all args, space-separated. 6783func_echo_all () 6784{ 6785 $ECHO "" 6786} 6787 6788case "$ECHO" in 6789 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 6790$as_echo "printf" >&6; } ;; 6791 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 6792$as_echo "print -r" >&6; } ;; 6793 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 6794$as_echo "cat" >&6; } ;; 6795esac 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 6811$as_echo_n "checking for a sed that does not truncate output... " >&6; } 6812if ${ac_cv_path_SED+:} false; then : 6813 $as_echo_n "(cached) " >&6 6814else 6815 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 6816 for ac_i in 1 2 3 4 5 6 7; do 6817 ac_script="$ac_script$as_nl$ac_script" 6818 done 6819 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 6820 { ac_script=; unset ac_script;} 6821 if test -z "$SED"; then 6822 ac_path_SED_found=false 6823 # Loop through the user's path and test for each of PROGNAME-LIST 6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6825for as_dir in $PATH 6826do 6827 IFS=$as_save_IFS 6828 test -z "$as_dir" && as_dir=. 6829 for ac_prog in sed gsed; do 6830 for ac_exec_ext in '' $ac_executable_extensions; do 6831 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 6832 as_fn_executable_p "$ac_path_SED" || continue 6833# Check for GNU ac_path_SED and select it if it is found. 6834 # Check for GNU $ac_path_SED 6835case `"$ac_path_SED" --version 2>&1` in 6836*GNU*) 6837 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6838*) 6839 ac_count=0 6840 $as_echo_n 0123456789 >"conftest.in" 6841 while : 6842 do 6843 cat "conftest.in" "conftest.in" >"conftest.tmp" 6844 mv "conftest.tmp" "conftest.in" 6845 cp "conftest.in" "conftest.nl" 6846 $as_echo '' >> "conftest.nl" 6847 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6848 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6849 as_fn_arith $ac_count + 1 && ac_count=$as_val 6850 if test $ac_count -gt ${ac_path_SED_max-0}; then 6851 # Best one so far, save it but keep looking for a better one 6852 ac_cv_path_SED="$ac_path_SED" 6853 ac_path_SED_max=$ac_count 6854 fi 6855 # 10*(2^10) chars as input seems more than enough 6856 test $ac_count -gt 10 && break 6857 done 6858 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6859esac 6860 6861 $ac_path_SED_found && break 3 6862 done 6863 done 6864 done 6865IFS=$as_save_IFS 6866 if test -z "$ac_cv_path_SED"; then 6867 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 6868 fi 6869else 6870 ac_cv_path_SED=$SED 6871fi 6872 6873fi 6874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6875$as_echo "$ac_cv_path_SED" >&6; } 6876 SED="$ac_cv_path_SED" 6877 rm -f conftest.sed 6878 6879test -z "$SED" && SED=sed 6880Xsed="$SED -e 1s/^X//" 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 6893$as_echo_n "checking for fgrep... " >&6; } 6894if ${ac_cv_path_FGREP+:} false; then : 6895 $as_echo_n "(cached) " >&6 6896else 6897 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 6898 then ac_cv_path_FGREP="$GREP -F" 6899 else 6900 if test -z "$FGREP"; then 6901 ac_path_FGREP_found=false 6902 # Loop through the user's path and test for each of PROGNAME-LIST 6903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6904for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6905do 6906 IFS=$as_save_IFS 6907 test -z "$as_dir" && as_dir=. 6908 for ac_prog in fgrep; do 6909 for ac_exec_ext in '' $ac_executable_extensions; do 6910 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 6911 as_fn_executable_p "$ac_path_FGREP" || continue 6912# Check for GNU ac_path_FGREP and select it if it is found. 6913 # Check for GNU $ac_path_FGREP 6914case `"$ac_path_FGREP" --version 2>&1` in 6915*GNU*) 6916 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 6917*) 6918 ac_count=0 6919 $as_echo_n 0123456789 >"conftest.in" 6920 while : 6921 do 6922 cat "conftest.in" "conftest.in" >"conftest.tmp" 6923 mv "conftest.tmp" "conftest.in" 6924 cp "conftest.in" "conftest.nl" 6925 $as_echo 'FGREP' >> "conftest.nl" 6926 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 6927 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6928 as_fn_arith $ac_count + 1 && ac_count=$as_val 6929 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 6930 # Best one so far, save it but keep looking for a better one 6931 ac_cv_path_FGREP="$ac_path_FGREP" 6932 ac_path_FGREP_max=$ac_count 6933 fi 6934 # 10*(2^10) chars as input seems more than enough 6935 test $ac_count -gt 10 && break 6936 done 6937 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6938esac 6939 6940 $ac_path_FGREP_found && break 3 6941 done 6942 done 6943 done 6944IFS=$as_save_IFS 6945 if test -z "$ac_cv_path_FGREP"; then 6946 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6947 fi 6948else 6949 ac_cv_path_FGREP=$FGREP 6950fi 6951 6952 fi 6953fi 6954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 6955$as_echo "$ac_cv_path_FGREP" >&6; } 6956 FGREP="$ac_cv_path_FGREP" 6957 6958 6959test -z "$GREP" && GREP=grep 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979# Check whether --with-gnu-ld was given. 6980if test "${with_gnu_ld+set}" = set; then : 6981 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 6982else 6983 with_gnu_ld=no 6984fi 6985 6986ac_prog=ld 6987if test "$GCC" = yes; then 6988 # Check if gcc -print-prog-name=ld gives a path. 6989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 6990$as_echo_n "checking for ld used by $CC... " >&6; } 6991 case $host in 6992 *-*-mingw*) 6993 # gcc leaves a trailing carriage return which upsets mingw 6994 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6995 *) 6996 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6997 esac 6998 case $ac_prog in 6999 # Accept absolute paths. 7000 [\\/]* | ?:[\\/]*) 7001 re_direlt='/[^/][^/]*/\.\./' 7002 # Canonicalize the pathname of ld 7003 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 7004 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 7005 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 7006 done 7007 test -z "$LD" && LD="$ac_prog" 7008 ;; 7009 "") 7010 # If it fails, then pretend we aren't using GCC. 7011 ac_prog=ld 7012 ;; 7013 *) 7014 # If it is relative, then search for the first ld in PATH. 7015 with_gnu_ld=unknown 7016 ;; 7017 esac 7018elif test "$with_gnu_ld" = yes; then 7019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 7020$as_echo_n "checking for GNU ld... " >&6; } 7021else 7022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 7023$as_echo_n "checking for non-GNU ld... " >&6; } 7024fi 7025if ${lt_cv_path_LD+:} false; then : 7026 $as_echo_n "(cached) " >&6 7027else 7028 if test -z "$LD"; then 7029 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7030 for ac_dir in $PATH; do 7031 IFS="$lt_save_ifs" 7032 test -z "$ac_dir" && ac_dir=. 7033 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 7034 lt_cv_path_LD="$ac_dir/$ac_prog" 7035 # Check to see if the program is GNU ld. I'd rather use --version, 7036 # but apparently some variants of GNU ld only accept -v. 7037 # Break only if it was the GNU/non-GNU ld that we prefer. 7038 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 7039 *GNU* | *'with BFD'*) 7040 test "$with_gnu_ld" != no && break 7041 ;; 7042 *) 7043 test "$with_gnu_ld" != yes && break 7044 ;; 7045 esac 7046 fi 7047 done 7048 IFS="$lt_save_ifs" 7049else 7050 lt_cv_path_LD="$LD" # Let the user override the test with a path. 7051fi 7052fi 7053 7054LD="$lt_cv_path_LD" 7055if test -n "$LD"; then 7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 7057$as_echo "$LD" >&6; } 7058else 7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7060$as_echo "no" >&6; } 7061fi 7062test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 7063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 7064$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 7065if ${lt_cv_prog_gnu_ld+:} false; then : 7066 $as_echo_n "(cached) " >&6 7067else 7068 # I'd rather use --version here, but apparently some GNU lds only accept -v. 7069case `$LD -v 2>&1 </dev/null` in 7070*GNU* | *'with BFD'*) 7071 lt_cv_prog_gnu_ld=yes 7072 ;; 7073*) 7074 lt_cv_prog_gnu_ld=no 7075 ;; 7076esac 7077fi 7078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 7079$as_echo "$lt_cv_prog_gnu_ld" >&6; } 7080with_gnu_ld=$lt_cv_prog_gnu_ld 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 7091$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 7092if ${lt_cv_path_NM+:} false; then : 7093 $as_echo_n "(cached) " >&6 7094else 7095 if test -n "$NM"; then 7096 # Let the user override the test. 7097 lt_cv_path_NM="$NM" 7098else 7099 lt_nm_to_check="${ac_tool_prefix}nm" 7100 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 7101 lt_nm_to_check="$lt_nm_to_check nm" 7102 fi 7103 for lt_tmp_nm in $lt_nm_to_check; do 7104 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7105 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 7106 IFS="$lt_save_ifs" 7107 test -z "$ac_dir" && ac_dir=. 7108 tmp_nm="$ac_dir/$lt_tmp_nm" 7109 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 7110 # Check to see if the nm accepts a BSD-compat flag. 7111 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 7112 # nm: unknown option "B" ignored 7113 # Tru64's nm complains that /dev/null is an invalid object file 7114 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 7115 */dev/null* | *'Invalid file or object type'*) 7116 lt_cv_path_NM="$tmp_nm -B" 7117 break 7118 ;; 7119 *) 7120 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 7121 */dev/null*) 7122 lt_cv_path_NM="$tmp_nm -p" 7123 break 7124 ;; 7125 *) 7126 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 7127 continue # so that we can try to find one that supports BSD flags 7128 ;; 7129 esac 7130 ;; 7131 esac 7132 fi 7133 done 7134 IFS="$lt_save_ifs" 7135 done 7136 : ${lt_cv_path_NM=no} 7137fi 7138fi 7139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 7140$as_echo "$lt_cv_path_NM" >&6; } 7141if test "$lt_cv_path_NM" != "no"; then 7142 NM="$lt_cv_path_NM" 7143else 7144 # Didn't find any BSD compatible name lister, look for dumpbin. 7145 if test -n "$DUMPBIN"; then : 7146 # Let the user override the test. 7147 else 7148 if test -n "$ac_tool_prefix"; then 7149 for ac_prog in dumpbin "link -dump" 7150 do 7151 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7152set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7154$as_echo_n "checking for $ac_word... " >&6; } 7155if ${ac_cv_prog_DUMPBIN+:} false; then : 7156 $as_echo_n "(cached) " >&6 7157else 7158 if test -n "$DUMPBIN"; then 7159 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 7160else 7161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7162for as_dir in $PATH 7163do 7164 IFS=$as_save_IFS 7165 test -z "$as_dir" && as_dir=. 7166 for ac_exec_ext in '' $ac_executable_extensions; do 7167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7168 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 7169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7170 break 2 7171 fi 7172done 7173 done 7174IFS=$as_save_IFS 7175 7176fi 7177fi 7178DUMPBIN=$ac_cv_prog_DUMPBIN 7179if test -n "$DUMPBIN"; then 7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 7181$as_echo "$DUMPBIN" >&6; } 7182else 7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7184$as_echo "no" >&6; } 7185fi 7186 7187 7188 test -n "$DUMPBIN" && break 7189 done 7190fi 7191if test -z "$DUMPBIN"; then 7192 ac_ct_DUMPBIN=$DUMPBIN 7193 for ac_prog in dumpbin "link -dump" 7194do 7195 # Extract the first word of "$ac_prog", so it can be a program name with args. 7196set dummy $ac_prog; ac_word=$2 7197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7198$as_echo_n "checking for $ac_word... " >&6; } 7199if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 7200 $as_echo_n "(cached) " >&6 7201else 7202 if test -n "$ac_ct_DUMPBIN"; then 7203 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 7204else 7205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7206for as_dir in $PATH 7207do 7208 IFS=$as_save_IFS 7209 test -z "$as_dir" && as_dir=. 7210 for ac_exec_ext in '' $ac_executable_extensions; do 7211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7212 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 7213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7214 break 2 7215 fi 7216done 7217 done 7218IFS=$as_save_IFS 7219 7220fi 7221fi 7222ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 7223if test -n "$ac_ct_DUMPBIN"; then 7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 7225$as_echo "$ac_ct_DUMPBIN" >&6; } 7226else 7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7228$as_echo "no" >&6; } 7229fi 7230 7231 7232 test -n "$ac_ct_DUMPBIN" && break 7233done 7234 7235 if test "x$ac_ct_DUMPBIN" = x; then 7236 DUMPBIN=":" 7237 else 7238 case $cross_compiling:$ac_tool_warned in 7239yes:) 7240{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7241$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7242ac_tool_warned=yes ;; 7243esac 7244 DUMPBIN=$ac_ct_DUMPBIN 7245 fi 7246fi 7247 7248 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 7249 *COFF*) 7250 DUMPBIN="$DUMPBIN -symbols" 7251 ;; 7252 *) 7253 DUMPBIN=: 7254 ;; 7255 esac 7256 fi 7257 7258 if test "$DUMPBIN" != ":"; then 7259 NM="$DUMPBIN" 7260 fi 7261fi 7262test -z "$NM" && NM=nm 7263 7264 7265 7266 7267 7268 7269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 7270$as_echo_n "checking the name lister ($NM) interface... " >&6; } 7271if ${lt_cv_nm_interface+:} false; then : 7272 $as_echo_n "(cached) " >&6 7273else 7274 lt_cv_nm_interface="BSD nm" 7275 echo "int some_variable = 0;" > conftest.$ac_ext 7276 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 7277 (eval "$ac_compile" 2>conftest.err) 7278 cat conftest.err >&5 7279 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 7280 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 7281 cat conftest.err >&5 7282 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 7283 cat conftest.out >&5 7284 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 7285 lt_cv_nm_interface="MS dumpbin" 7286 fi 7287 rm -f conftest* 7288fi 7289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 7290$as_echo "$lt_cv_nm_interface" >&6; } 7291 7292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 7293$as_echo_n "checking whether ln -s works... " >&6; } 7294LN_S=$as_ln_s 7295if test "$LN_S" = "ln -s"; then 7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7297$as_echo "yes" >&6; } 7298else 7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 7300$as_echo "no, using $LN_S" >&6; } 7301fi 7302 7303# find the maximum length of command line arguments 7304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 7305$as_echo_n "checking the maximum length of command line arguments... " >&6; } 7306if ${lt_cv_sys_max_cmd_len+:} false; then : 7307 $as_echo_n "(cached) " >&6 7308else 7309 i=0 7310 teststring="ABCD" 7311 7312 case $build_os in 7313 msdosdjgpp*) 7314 # On DJGPP, this test can blow up pretty badly due to problems in libc 7315 # (any single argument exceeding 2000 bytes causes a buffer overrun 7316 # during glob expansion). Even if it were fixed, the result of this 7317 # check would be larger than it should be. 7318 lt_cv_sys_max_cmd_len=12288; # 12K is about right 7319 ;; 7320 7321 gnu*) 7322 # Under GNU Hurd, this test is not required because there is 7323 # no limit to the length of command line arguments. 7324 # Libtool will interpret -1 as no limit whatsoever 7325 lt_cv_sys_max_cmd_len=-1; 7326 ;; 7327 7328 cygwin* | mingw* | cegcc*) 7329 # On Win9x/ME, this test blows up -- it succeeds, but takes 7330 # about 5 minutes as the teststring grows exponentially. 7331 # Worse, since 9x/ME are not pre-emptively multitasking, 7332 # you end up with a "frozen" computer, even though with patience 7333 # the test eventually succeeds (with a max line length of 256k). 7334 # Instead, let's just punt: use the minimum linelength reported by 7335 # all of the supported platforms: 8192 (on NT/2K/XP). 7336 lt_cv_sys_max_cmd_len=8192; 7337 ;; 7338 7339 mint*) 7340 # On MiNT this can take a long time and run out of memory. 7341 lt_cv_sys_max_cmd_len=8192; 7342 ;; 7343 7344 amigaos*) 7345 # On AmigaOS with pdksh, this test takes hours, literally. 7346 # So we just punt and use a minimum line length of 8192. 7347 lt_cv_sys_max_cmd_len=8192; 7348 ;; 7349 7350 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 7351 # This has been around since 386BSD, at least. Likely further. 7352 if test -x /sbin/sysctl; then 7353 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 7354 elif test -x /usr/sbin/sysctl; then 7355 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 7356 else 7357 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 7358 fi 7359 # And add a safety zone 7360 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7361 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7362 ;; 7363 7364 interix*) 7365 # We know the value 262144 and hardcode it with a safety zone (like BSD) 7366 lt_cv_sys_max_cmd_len=196608 7367 ;; 7368 7369 os2*) 7370 # The test takes a long time on OS/2. 7371 lt_cv_sys_max_cmd_len=8192 7372 ;; 7373 7374 osf*) 7375 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 7376 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 7377 # nice to cause kernel panics so lets avoid the loop below. 7378 # First set a reasonable default. 7379 lt_cv_sys_max_cmd_len=16384 7380 # 7381 if test -x /sbin/sysconfig; then 7382 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 7383 *1*) lt_cv_sys_max_cmd_len=-1 ;; 7384 esac 7385 fi 7386 ;; 7387 sco3.2v5*) 7388 lt_cv_sys_max_cmd_len=102400 7389 ;; 7390 sysv5* | sco5v6* | sysv4.2uw2*) 7391 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 7392 if test -n "$kargmax"; then 7393 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 7394 else 7395 lt_cv_sys_max_cmd_len=32768 7396 fi 7397 ;; 7398 *) 7399 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 7400 if test -n "$lt_cv_sys_max_cmd_len" && \ 7401 test undefined != "$lt_cv_sys_max_cmd_len"; then 7402 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7403 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7404 else 7405 # Make teststring a little bigger before we do anything with it. 7406 # a 1K string should be a reasonable start. 7407 for i in 1 2 3 4 5 6 7 8 ; do 7408 teststring=$teststring$teststring 7409 done 7410 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 7411 # If test is not a shell built-in, we'll probably end up computing a 7412 # maximum length that is only half of the actual maximum length, but 7413 # we can't tell. 7414 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 7415 = "X$teststring$teststring"; } >/dev/null 2>&1 && 7416 test $i != 17 # 1/2 MB should be enough 7417 do 7418 i=`expr $i + 1` 7419 teststring=$teststring$teststring 7420 done 7421 # Only check the string length outside the loop. 7422 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 7423 teststring= 7424 # Add a significant safety factor because C++ compilers can tack on 7425 # massive amounts of additional arguments before passing them to the 7426 # linker. It appears as though 1/2 is a usable value. 7427 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 7428 fi 7429 ;; 7430 esac 7431 7432fi 7433 7434if test -n $lt_cv_sys_max_cmd_len ; then 7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 7436$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 7437else 7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 7439$as_echo "none" >&6; } 7440fi 7441max_cmd_len=$lt_cv_sys_max_cmd_len 7442 7443 7444 7445 7446 7447 7448: ${CP="cp -f"} 7449: ${MV="mv -f"} 7450: ${RM="rm -f"} 7451 7452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 7453$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 7454# Try some XSI features 7455xsi_shell=no 7456( _lt_dummy="a/b/c" 7457 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 7458 = c,a/b,b/c, \ 7459 && eval 'test $(( 1 + 1 )) -eq 2 \ 7460 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 7461 && xsi_shell=yes 7462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 7463$as_echo "$xsi_shell" >&6; } 7464 7465 7466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 7467$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 7468lt_shell_append=no 7469( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 7470 >/dev/null 2>&1 \ 7471 && lt_shell_append=yes 7472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 7473$as_echo "$lt_shell_append" >&6; } 7474 7475 7476if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 7477 lt_unset=unset 7478else 7479 lt_unset=false 7480fi 7481 7482 7483 7484 7485 7486# test EBCDIC or ASCII 7487case `echo X|tr X '\101'` in 7488 A) # ASCII based system 7489 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 7490 lt_SP2NL='tr \040 \012' 7491 lt_NL2SP='tr \015\012 \040\040' 7492 ;; 7493 *) # EBCDIC based system 7494 lt_SP2NL='tr \100 \n' 7495 lt_NL2SP='tr \r\n \100\100' 7496 ;; 7497esac 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 7508$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 7509if ${lt_cv_to_host_file_cmd+:} false; then : 7510 $as_echo_n "(cached) " >&6 7511else 7512 case $host in 7513 *-*-mingw* ) 7514 case $build in 7515 *-*-mingw* ) # actually msys 7516 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 7517 ;; 7518 *-*-cygwin* ) 7519 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 7520 ;; 7521 * ) # otherwise, assume *nix 7522 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 7523 ;; 7524 esac 7525 ;; 7526 *-*-cygwin* ) 7527 case $build in 7528 *-*-mingw* ) # actually msys 7529 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 7530 ;; 7531 *-*-cygwin* ) 7532 lt_cv_to_host_file_cmd=func_convert_file_noop 7533 ;; 7534 * ) # otherwise, assume *nix 7535 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 7536 ;; 7537 esac 7538 ;; 7539 * ) # unhandled hosts (and "normal" native builds) 7540 lt_cv_to_host_file_cmd=func_convert_file_noop 7541 ;; 7542esac 7543 7544fi 7545 7546to_host_file_cmd=$lt_cv_to_host_file_cmd 7547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 7548$as_echo "$lt_cv_to_host_file_cmd" >&6; } 7549 7550 7551 7552 7553 7554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 7555$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 7556if ${lt_cv_to_tool_file_cmd+:} false; then : 7557 $as_echo_n "(cached) " >&6 7558else 7559 #assume ordinary cross tools, or native build. 7560lt_cv_to_tool_file_cmd=func_convert_file_noop 7561case $host in 7562 *-*-mingw* ) 7563 case $build in 7564 *-*-mingw* ) # actually msys 7565 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 7566 ;; 7567 esac 7568 ;; 7569esac 7570 7571fi 7572 7573to_tool_file_cmd=$lt_cv_to_tool_file_cmd 7574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 7575$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 7576 7577 7578 7579 7580 7581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 7582$as_echo_n "checking for $LD option to reload object files... " >&6; } 7583if ${lt_cv_ld_reload_flag+:} false; then : 7584 $as_echo_n "(cached) " >&6 7585else 7586 lt_cv_ld_reload_flag='-r' 7587fi 7588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 7589$as_echo "$lt_cv_ld_reload_flag" >&6; } 7590reload_flag=$lt_cv_ld_reload_flag 7591case $reload_flag in 7592"" | " "*) ;; 7593*) reload_flag=" $reload_flag" ;; 7594esac 7595reload_cmds='$LD$reload_flag -o $output$reload_objs' 7596case $host_os in 7597 cygwin* | mingw* | pw32* | cegcc*) 7598 if test "$GCC" != yes; then 7599 reload_cmds=false 7600 fi 7601 ;; 7602 darwin*) 7603 if test "$GCC" = yes; then 7604 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 7605 else 7606 reload_cmds='$LD$reload_flag -o $output$reload_objs' 7607 fi 7608 ;; 7609esac 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619if test -n "$ac_tool_prefix"; then 7620 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 7621set dummy ${ac_tool_prefix}objdump; ac_word=$2 7622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7623$as_echo_n "checking for $ac_word... " >&6; } 7624if ${ac_cv_prog_OBJDUMP+:} false; then : 7625 $as_echo_n "(cached) " >&6 7626else 7627 if test -n "$OBJDUMP"; then 7628 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 7629else 7630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7631for as_dir in $PATH 7632do 7633 IFS=$as_save_IFS 7634 test -z "$as_dir" && as_dir=. 7635 for ac_exec_ext in '' $ac_executable_extensions; do 7636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7637 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 7638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7639 break 2 7640 fi 7641done 7642 done 7643IFS=$as_save_IFS 7644 7645fi 7646fi 7647OBJDUMP=$ac_cv_prog_OBJDUMP 7648if test -n "$OBJDUMP"; then 7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 7650$as_echo "$OBJDUMP" >&6; } 7651else 7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7653$as_echo "no" >&6; } 7654fi 7655 7656 7657fi 7658if test -z "$ac_cv_prog_OBJDUMP"; then 7659 ac_ct_OBJDUMP=$OBJDUMP 7660 # Extract the first word of "objdump", so it can be a program name with args. 7661set dummy objdump; ac_word=$2 7662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7663$as_echo_n "checking for $ac_word... " >&6; } 7664if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 7665 $as_echo_n "(cached) " >&6 7666else 7667 if test -n "$ac_ct_OBJDUMP"; then 7668 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 7669else 7670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7671for as_dir in $PATH 7672do 7673 IFS=$as_save_IFS 7674 test -z "$as_dir" && as_dir=. 7675 for ac_exec_ext in '' $ac_executable_extensions; do 7676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7677 ac_cv_prog_ac_ct_OBJDUMP="objdump" 7678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7679 break 2 7680 fi 7681done 7682 done 7683IFS=$as_save_IFS 7684 7685fi 7686fi 7687ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 7688if test -n "$ac_ct_OBJDUMP"; then 7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 7690$as_echo "$ac_ct_OBJDUMP" >&6; } 7691else 7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7693$as_echo "no" >&6; } 7694fi 7695 7696 if test "x$ac_ct_OBJDUMP" = x; then 7697 OBJDUMP="false" 7698 else 7699 case $cross_compiling:$ac_tool_warned in 7700yes:) 7701{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7702$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7703ac_tool_warned=yes ;; 7704esac 7705 OBJDUMP=$ac_ct_OBJDUMP 7706 fi 7707else 7708 OBJDUMP="$ac_cv_prog_OBJDUMP" 7709fi 7710 7711test -z "$OBJDUMP" && OBJDUMP=objdump 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 7722$as_echo_n "checking how to recognize dependent libraries... " >&6; } 7723if ${lt_cv_deplibs_check_method+:} false; then : 7724 $as_echo_n "(cached) " >&6 7725else 7726 lt_cv_file_magic_cmd='$MAGIC_CMD' 7727lt_cv_file_magic_test_file= 7728lt_cv_deplibs_check_method='unknown' 7729# Need to set the preceding variable on all platforms that support 7730# interlibrary dependencies. 7731# 'none' -- dependencies not supported. 7732# `unknown' -- same as none, but documents that we really don't know. 7733# 'pass_all' -- all dependencies passed with no checks. 7734# 'test_compile' -- check by making test program. 7735# 'file_magic [[regex]]' -- check by looking for files in library path 7736# which responds to the $file_magic_cmd with a given extended regex. 7737# If you have `file' or equivalent on your system and you're not sure 7738# whether `pass_all' will *always* work, you probably want this one. 7739 7740case $host_os in 7741aix[4-9]*) 7742 lt_cv_deplibs_check_method=pass_all 7743 ;; 7744 7745beos*) 7746 lt_cv_deplibs_check_method=pass_all 7747 ;; 7748 7749bsdi[45]*) 7750 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 7751 lt_cv_file_magic_cmd='/usr/bin/file -L' 7752 lt_cv_file_magic_test_file=/shlib/libc.so 7753 ;; 7754 7755cygwin*) 7756 # func_win32_libid is a shell function defined in ltmain.sh 7757 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7758 lt_cv_file_magic_cmd='func_win32_libid' 7759 ;; 7760 7761mingw* | pw32*) 7762 # Base MSYS/MinGW do not provide the 'file' command needed by 7763 # func_win32_libid shell function, so use a weaker test based on 'objdump', 7764 # unless we find 'file', for example because we are cross-compiling. 7765 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 7766 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 7767 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7768 lt_cv_file_magic_cmd='func_win32_libid' 7769 else 7770 # Keep this pattern in sync with the one in func_win32_libid. 7771 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 7772 lt_cv_file_magic_cmd='$OBJDUMP -f' 7773 fi 7774 ;; 7775 7776cegcc*) 7777 # use the weaker test based on 'objdump'. See mingw*. 7778 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 7779 lt_cv_file_magic_cmd='$OBJDUMP -f' 7780 ;; 7781 7782darwin* | rhapsody*) 7783 lt_cv_deplibs_check_method=pass_all 7784 ;; 7785 7786freebsd* | dragonfly*) 7787 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7788 case $host_cpu in 7789 i*86 ) 7790 # Not sure whether the presence of OpenBSD here was a mistake. 7791 # Let's accept both of them until this is cleared up. 7792 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 7793 lt_cv_file_magic_cmd=/usr/bin/file 7794 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 7795 ;; 7796 esac 7797 else 7798 lt_cv_deplibs_check_method=pass_all 7799 fi 7800 ;; 7801 7802haiku*) 7803 lt_cv_deplibs_check_method=pass_all 7804 ;; 7805 7806hpux10.20* | hpux11*) 7807 lt_cv_file_magic_cmd=/usr/bin/file 7808 case $host_cpu in 7809 ia64*) 7810 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 7811 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 7812 ;; 7813 hppa*64*) 7814 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]' 7815 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 7816 ;; 7817 *) 7818 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 7819 lt_cv_file_magic_test_file=/usr/lib/libc.sl 7820 ;; 7821 esac 7822 ;; 7823 7824interix[3-9]*) 7825 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 7826 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 7827 ;; 7828 7829irix5* | irix6* | nonstopux*) 7830 case $LD in 7831 *-32|*"-32 ") libmagic=32-bit;; 7832 *-n32|*"-n32 ") libmagic=N32;; 7833 *-64|*"-64 ") libmagic=64-bit;; 7834 *) libmagic=never-match;; 7835 esac 7836 lt_cv_deplibs_check_method=pass_all 7837 ;; 7838 7839# This must be glibc/ELF. 7840linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 7841 lt_cv_deplibs_check_method=pass_all 7842 ;; 7843 7844netbsd* | netbsdelf*-gnu) 7845 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7846 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7847 else 7848 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 7849 fi 7850 ;; 7851 7852newos6*) 7853 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 7854 lt_cv_file_magic_cmd=/usr/bin/file 7855 lt_cv_file_magic_test_file=/usr/lib/libnls.so 7856 ;; 7857 7858*nto* | *qnx*) 7859 lt_cv_deplibs_check_method=pass_all 7860 ;; 7861 7862openbsd*) 7863 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7864 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 7865 else 7866 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7867 fi 7868 ;; 7869 7870osf3* | osf4* | osf5*) 7871 lt_cv_deplibs_check_method=pass_all 7872 ;; 7873 7874rdos*) 7875 lt_cv_deplibs_check_method=pass_all 7876 ;; 7877 7878solaris*) 7879 lt_cv_deplibs_check_method=pass_all 7880 ;; 7881 7882sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 7883 lt_cv_deplibs_check_method=pass_all 7884 ;; 7885 7886sysv4 | sysv4.3*) 7887 case $host_vendor in 7888 motorola) 7889 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]' 7890 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 7891 ;; 7892 ncr) 7893 lt_cv_deplibs_check_method=pass_all 7894 ;; 7895 sequent) 7896 lt_cv_file_magic_cmd='/bin/file' 7897 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 7898 ;; 7899 sni) 7900 lt_cv_file_magic_cmd='/bin/file' 7901 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 7902 lt_cv_file_magic_test_file=/lib/libc.so 7903 ;; 7904 siemens) 7905 lt_cv_deplibs_check_method=pass_all 7906 ;; 7907 pc) 7908 lt_cv_deplibs_check_method=pass_all 7909 ;; 7910 esac 7911 ;; 7912 7913tpf*) 7914 lt_cv_deplibs_check_method=pass_all 7915 ;; 7916esac 7917 7918fi 7919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 7920$as_echo "$lt_cv_deplibs_check_method" >&6; } 7921 7922file_magic_glob= 7923want_nocaseglob=no 7924if test "$build" = "$host"; then 7925 case $host_os in 7926 mingw* | pw32*) 7927 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 7928 want_nocaseglob=yes 7929 else 7930 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 7931 fi 7932 ;; 7933 esac 7934fi 7935 7936file_magic_cmd=$lt_cv_file_magic_cmd 7937deplibs_check_method=$lt_cv_deplibs_check_method 7938test -z "$deplibs_check_method" && deplibs_check_method=unknown 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961if test -n "$ac_tool_prefix"; then 7962 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 7963set dummy ${ac_tool_prefix}dlltool; ac_word=$2 7964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7965$as_echo_n "checking for $ac_word... " >&6; } 7966if ${ac_cv_prog_DLLTOOL+:} false; then : 7967 $as_echo_n "(cached) " >&6 7968else 7969 if test -n "$DLLTOOL"; then 7970 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 7971else 7972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7973for as_dir in $PATH 7974do 7975 IFS=$as_save_IFS 7976 test -z "$as_dir" && as_dir=. 7977 for ac_exec_ext in '' $ac_executable_extensions; do 7978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7979 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 7980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7981 break 2 7982 fi 7983done 7984 done 7985IFS=$as_save_IFS 7986 7987fi 7988fi 7989DLLTOOL=$ac_cv_prog_DLLTOOL 7990if test -n "$DLLTOOL"; then 7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 7992$as_echo "$DLLTOOL" >&6; } 7993else 7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7995$as_echo "no" >&6; } 7996fi 7997 7998 7999fi 8000if test -z "$ac_cv_prog_DLLTOOL"; then 8001 ac_ct_DLLTOOL=$DLLTOOL 8002 # Extract the first word of "dlltool", so it can be a program name with args. 8003set dummy dlltool; ac_word=$2 8004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8005$as_echo_n "checking for $ac_word... " >&6; } 8006if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 8007 $as_echo_n "(cached) " >&6 8008else 8009 if test -n "$ac_ct_DLLTOOL"; then 8010 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8011else 8012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8013for as_dir in $PATH 8014do 8015 IFS=$as_save_IFS 8016 test -z "$as_dir" && as_dir=. 8017 for ac_exec_ext in '' $ac_executable_extensions; do 8018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8019 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8021 break 2 8022 fi 8023done 8024 done 8025IFS=$as_save_IFS 8026 8027fi 8028fi 8029ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8030if test -n "$ac_ct_DLLTOOL"; then 8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8032$as_echo "$ac_ct_DLLTOOL" >&6; } 8033else 8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8035$as_echo "no" >&6; } 8036fi 8037 8038 if test "x$ac_ct_DLLTOOL" = x; then 8039 DLLTOOL="false" 8040 else 8041 case $cross_compiling:$ac_tool_warned in 8042yes:) 8043{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8044$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8045ac_tool_warned=yes ;; 8046esac 8047 DLLTOOL=$ac_ct_DLLTOOL 8048 fi 8049else 8050 DLLTOOL="$ac_cv_prog_DLLTOOL" 8051fi 8052 8053test -z "$DLLTOOL" && DLLTOOL=dlltool 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 8065$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 8066if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 8067 $as_echo_n "(cached) " >&6 8068else 8069 lt_cv_sharedlib_from_linklib_cmd='unknown' 8070 8071case $host_os in 8072cygwin* | mingw* | pw32* | cegcc*) 8073 # two different shell functions defined in ltmain.sh 8074 # decide which to use based on capabilities of $DLLTOOL 8075 case `$DLLTOOL --help 2>&1` in 8076 *--identify-strict*) 8077 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 8078 ;; 8079 *) 8080 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 8081 ;; 8082 esac 8083 ;; 8084*) 8085 # fallback: assume linklib IS sharedlib 8086 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 8087 ;; 8088esac 8089 8090fi 8091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 8092$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 8093sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 8094test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 8095 8096 8097 8098 8099 8100 8101 8102if test -n "$ac_tool_prefix"; then 8103 for ac_prog in ar 8104 do 8105 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8106set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8108$as_echo_n "checking for $ac_word... " >&6; } 8109if ${ac_cv_prog_AR+:} false; then : 8110 $as_echo_n "(cached) " >&6 8111else 8112 if test -n "$AR"; then 8113 ac_cv_prog_AR="$AR" # Let the user override the test. 8114else 8115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8116for as_dir in $PATH 8117do 8118 IFS=$as_save_IFS 8119 test -z "$as_dir" && as_dir=. 8120 for ac_exec_ext in '' $ac_executable_extensions; do 8121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8122 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 8123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8124 break 2 8125 fi 8126done 8127 done 8128IFS=$as_save_IFS 8129 8130fi 8131fi 8132AR=$ac_cv_prog_AR 8133if test -n "$AR"; then 8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8135$as_echo "$AR" >&6; } 8136else 8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8138$as_echo "no" >&6; } 8139fi 8140 8141 8142 test -n "$AR" && break 8143 done 8144fi 8145if test -z "$AR"; then 8146 ac_ct_AR=$AR 8147 for ac_prog in ar 8148do 8149 # Extract the first word of "$ac_prog", so it can be a program name with args. 8150set dummy $ac_prog; ac_word=$2 8151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8152$as_echo_n "checking for $ac_word... " >&6; } 8153if ${ac_cv_prog_ac_ct_AR+:} false; then : 8154 $as_echo_n "(cached) " >&6 8155else 8156 if test -n "$ac_ct_AR"; then 8157 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 8158else 8159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8160for as_dir in $PATH 8161do 8162 IFS=$as_save_IFS 8163 test -z "$as_dir" && as_dir=. 8164 for ac_exec_ext in '' $ac_executable_extensions; do 8165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8166 ac_cv_prog_ac_ct_AR="$ac_prog" 8167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8168 break 2 8169 fi 8170done 8171 done 8172IFS=$as_save_IFS 8173 8174fi 8175fi 8176ac_ct_AR=$ac_cv_prog_ac_ct_AR 8177if test -n "$ac_ct_AR"; then 8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 8179$as_echo "$ac_ct_AR" >&6; } 8180else 8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8182$as_echo "no" >&6; } 8183fi 8184 8185 8186 test -n "$ac_ct_AR" && break 8187done 8188 8189 if test "x$ac_ct_AR" = x; then 8190 AR="false" 8191 else 8192 case $cross_compiling:$ac_tool_warned in 8193yes:) 8194{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8195$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8196ac_tool_warned=yes ;; 8197esac 8198 AR=$ac_ct_AR 8199 fi 8200fi 8201 8202: ${AR=ar} 8203: ${AR_FLAGS=cru} 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 8216$as_echo_n "checking for archiver @FILE support... " >&6; } 8217if ${lt_cv_ar_at_file+:} false; then : 8218 $as_echo_n "(cached) " >&6 8219else 8220 lt_cv_ar_at_file=no 8221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8222/* end confdefs.h. */ 8223 8224int 8225main () 8226{ 8227 8228 ; 8229 return 0; 8230} 8231_ACEOF 8232if ac_fn_c_try_compile "$LINENO"; then : 8233 echo conftest.$ac_objext > conftest.lst 8234 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 8235 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8236 (eval $lt_ar_try) 2>&5 8237 ac_status=$? 8238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8239 test $ac_status = 0; } 8240 if test "$ac_status" -eq 0; then 8241 # Ensure the archiver fails upon bogus file names. 8242 rm -f conftest.$ac_objext libconftest.a 8243 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8244 (eval $lt_ar_try) 2>&5 8245 ac_status=$? 8246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8247 test $ac_status = 0; } 8248 if test "$ac_status" -ne 0; then 8249 lt_cv_ar_at_file=@ 8250 fi 8251 fi 8252 rm -f conftest.* libconftest.a 8253 8254fi 8255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8256 8257fi 8258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 8259$as_echo "$lt_cv_ar_at_file" >&6; } 8260 8261if test "x$lt_cv_ar_at_file" = xno; then 8262 archiver_list_spec= 8263else 8264 archiver_list_spec=$lt_cv_ar_at_file 8265fi 8266 8267 8268 8269 8270 8271 8272 8273if test -n "$ac_tool_prefix"; then 8274 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 8275set dummy ${ac_tool_prefix}strip; ac_word=$2 8276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8277$as_echo_n "checking for $ac_word... " >&6; } 8278if ${ac_cv_prog_STRIP+:} false; then : 8279 $as_echo_n "(cached) " >&6 8280else 8281 if test -n "$STRIP"; then 8282 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 8283else 8284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8285for as_dir in $PATH 8286do 8287 IFS=$as_save_IFS 8288 test -z "$as_dir" && as_dir=. 8289 for ac_exec_ext in '' $ac_executable_extensions; do 8290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8291 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 8292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8293 break 2 8294 fi 8295done 8296 done 8297IFS=$as_save_IFS 8298 8299fi 8300fi 8301STRIP=$ac_cv_prog_STRIP 8302if test -n "$STRIP"; then 8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 8304$as_echo "$STRIP" >&6; } 8305else 8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8307$as_echo "no" >&6; } 8308fi 8309 8310 8311fi 8312if test -z "$ac_cv_prog_STRIP"; then 8313 ac_ct_STRIP=$STRIP 8314 # Extract the first word of "strip", so it can be a program name with args. 8315set dummy strip; ac_word=$2 8316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8317$as_echo_n "checking for $ac_word... " >&6; } 8318if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 8319 $as_echo_n "(cached) " >&6 8320else 8321 if test -n "$ac_ct_STRIP"; then 8322 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 8323else 8324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8325for as_dir in $PATH 8326do 8327 IFS=$as_save_IFS 8328 test -z "$as_dir" && as_dir=. 8329 for ac_exec_ext in '' $ac_executable_extensions; do 8330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8331 ac_cv_prog_ac_ct_STRIP="strip" 8332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8333 break 2 8334 fi 8335done 8336 done 8337IFS=$as_save_IFS 8338 8339fi 8340fi 8341ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 8342if test -n "$ac_ct_STRIP"; then 8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 8344$as_echo "$ac_ct_STRIP" >&6; } 8345else 8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8347$as_echo "no" >&6; } 8348fi 8349 8350 if test "x$ac_ct_STRIP" = x; then 8351 STRIP=":" 8352 else 8353 case $cross_compiling:$ac_tool_warned in 8354yes:) 8355{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8356$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8357ac_tool_warned=yes ;; 8358esac 8359 STRIP=$ac_ct_STRIP 8360 fi 8361else 8362 STRIP="$ac_cv_prog_STRIP" 8363fi 8364 8365test -z "$STRIP" && STRIP=: 8366 8367 8368 8369 8370 8371 8372if test -n "$ac_tool_prefix"; then 8373 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 8374set dummy ${ac_tool_prefix}ranlib; ac_word=$2 8375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8376$as_echo_n "checking for $ac_word... " >&6; } 8377if ${ac_cv_prog_RANLIB+:} false; then : 8378 $as_echo_n "(cached) " >&6 8379else 8380 if test -n "$RANLIB"; then 8381 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 8382else 8383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8384for as_dir in $PATH 8385do 8386 IFS=$as_save_IFS 8387 test -z "$as_dir" && as_dir=. 8388 for ac_exec_ext in '' $ac_executable_extensions; do 8389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8390 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 8391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8392 break 2 8393 fi 8394done 8395 done 8396IFS=$as_save_IFS 8397 8398fi 8399fi 8400RANLIB=$ac_cv_prog_RANLIB 8401if test -n "$RANLIB"; then 8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 8403$as_echo "$RANLIB" >&6; } 8404else 8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8406$as_echo "no" >&6; } 8407fi 8408 8409 8410fi 8411if test -z "$ac_cv_prog_RANLIB"; then 8412 ac_ct_RANLIB=$RANLIB 8413 # Extract the first word of "ranlib", so it can be a program name with args. 8414set dummy ranlib; ac_word=$2 8415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8416$as_echo_n "checking for $ac_word... " >&6; } 8417if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 8418 $as_echo_n "(cached) " >&6 8419else 8420 if test -n "$ac_ct_RANLIB"; then 8421 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 8422else 8423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8424for as_dir in $PATH 8425do 8426 IFS=$as_save_IFS 8427 test -z "$as_dir" && as_dir=. 8428 for ac_exec_ext in '' $ac_executable_extensions; do 8429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8430 ac_cv_prog_ac_ct_RANLIB="ranlib" 8431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8432 break 2 8433 fi 8434done 8435 done 8436IFS=$as_save_IFS 8437 8438fi 8439fi 8440ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 8441if test -n "$ac_ct_RANLIB"; then 8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 8443$as_echo "$ac_ct_RANLIB" >&6; } 8444else 8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8446$as_echo "no" >&6; } 8447fi 8448 8449 if test "x$ac_ct_RANLIB" = x; then 8450 RANLIB=":" 8451 else 8452 case $cross_compiling:$ac_tool_warned in 8453yes:) 8454{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8455$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8456ac_tool_warned=yes ;; 8457esac 8458 RANLIB=$ac_ct_RANLIB 8459 fi 8460else 8461 RANLIB="$ac_cv_prog_RANLIB" 8462fi 8463 8464test -z "$RANLIB" && RANLIB=: 8465 8466 8467 8468 8469 8470 8471# Determine commands to create old-style static archives. 8472old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 8473old_postinstall_cmds='chmod 644 $oldlib' 8474old_postuninstall_cmds= 8475 8476if test -n "$RANLIB"; then 8477 case $host_os in 8478 openbsd*) 8479 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 8480 ;; 8481 *) 8482 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 8483 ;; 8484 esac 8485 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 8486fi 8487 8488case $host_os in 8489 darwin*) 8490 lock_old_archive_extraction=yes ;; 8491 *) 8492 lock_old_archive_extraction=no ;; 8493esac 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533# If no C compiler was specified, use CC. 8534LTCC=${LTCC-"$CC"} 8535 8536# If no C compiler flags were specified, use CFLAGS. 8537LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8538 8539# Allow CC to be a program name with arguments. 8540compiler=$CC 8541 8542 8543# Check for command to grab the raw symbol name followed by C symbol from nm. 8544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 8545$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 8546if ${lt_cv_sys_global_symbol_pipe+:} false; then : 8547 $as_echo_n "(cached) " >&6 8548else 8549 8550# These are sane defaults that work on at least a few old systems. 8551# [They come from Ultrix. What could be older than Ultrix?!! ;)] 8552 8553# Character class describing NM global symbol codes. 8554symcode='[BCDEGRST]' 8555 8556# Regexp to match symbols that can be accessed directly from C. 8557sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 8558 8559# Define system-specific variables. 8560case $host_os in 8561aix*) 8562 symcode='[BCDT]' 8563 ;; 8564cygwin* | mingw* | pw32* | cegcc*) 8565 symcode='[ABCDGISTW]' 8566 ;; 8567hpux*) 8568 if test "$host_cpu" = ia64; then 8569 symcode='[ABCDEGRST]' 8570 fi 8571 ;; 8572irix* | nonstopux*) 8573 symcode='[BCDEGRST]' 8574 ;; 8575osf*) 8576 symcode='[BCDEGQRST]' 8577 ;; 8578solaris*) 8579 symcode='[BDRT]' 8580 ;; 8581sco3.2v5*) 8582 symcode='[DT]' 8583 ;; 8584sysv4.2uw2*) 8585 symcode='[DT]' 8586 ;; 8587sysv5* | sco5v6* | unixware* | OpenUNIX*) 8588 symcode='[ABDT]' 8589 ;; 8590sysv4) 8591 symcode='[DFNSTU]' 8592 ;; 8593esac 8594 8595# If we're using GNU nm, then use its standard symbol codes. 8596case `$NM -V 2>&1` in 8597*GNU* | *'with BFD'*) 8598 symcode='[ABCDGIRSTW]' ;; 8599esac 8600 8601# Transform an extracted symbol line into a proper C declaration. 8602# Some systems (esp. on ia64) link data and code symbols differently, 8603# so use this general approach. 8604lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 8605 8606# Transform an extracted symbol line into symbol name and symbol address 8607lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 8608lt_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'" 8609 8610# Handle CRLF in mingw tool chain 8611opt_cr= 8612case $build_os in 8613mingw*) 8614 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 8615 ;; 8616esac 8617 8618# Try without a prefix underscore, then with it. 8619for ac_symprfx in "" "_"; do 8620 8621 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 8622 symxfrm="\\1 $ac_symprfx\\2 \\2" 8623 8624 # Write the raw and C identifiers. 8625 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8626 # Fake it for dumpbin and say T for any non-static function 8627 # and D for any global variable. 8628 # Also find C++ and __fastcall symbols from MSVC++, 8629 # which start with @ or ?. 8630 lt_cv_sys_global_symbol_pipe="$AWK '"\ 8631" {last_section=section; section=\$ 3};"\ 8632" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 8633" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 8634" \$ 0!~/External *\|/{next};"\ 8635" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 8636" {if(hide[section]) next};"\ 8637" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 8638" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 8639" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 8640" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 8641" ' prfx=^$ac_symprfx" 8642 else 8643 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 8644 fi 8645 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 8646 8647 # Check to see that the pipe works correctly. 8648 pipe_works=no 8649 8650 rm -f conftest* 8651 cat > conftest.$ac_ext <<_LT_EOF 8652#ifdef __cplusplus 8653extern "C" { 8654#endif 8655char nm_test_var; 8656void nm_test_func(void); 8657void nm_test_func(void){} 8658#ifdef __cplusplus 8659} 8660#endif 8661int main(){nm_test_var='a';nm_test_func();return(0);} 8662_LT_EOF 8663 8664 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8665 (eval $ac_compile) 2>&5 8666 ac_status=$? 8667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8668 test $ac_status = 0; }; then 8669 # Now try to grab the symbols. 8670 nlist=conftest.nm 8671 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 8672 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 8673 ac_status=$? 8674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8675 test $ac_status = 0; } && test -s "$nlist"; then 8676 # Try sorting and uniquifying the output. 8677 if sort "$nlist" | uniq > "$nlist"T; then 8678 mv -f "$nlist"T "$nlist" 8679 else 8680 rm -f "$nlist"T 8681 fi 8682 8683 # Make sure that we snagged all the symbols we need. 8684 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 8685 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 8686 cat <<_LT_EOF > conftest.$ac_ext 8687/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 8688#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 8689/* DATA imports from DLLs on WIN32 con't be const, because runtime 8690 relocations are performed -- see ld's documentation on pseudo-relocs. */ 8691# define LT_DLSYM_CONST 8692#elif defined(__osf__) 8693/* This system does not cope well with relocations in const data. */ 8694# define LT_DLSYM_CONST 8695#else 8696# define LT_DLSYM_CONST const 8697#endif 8698 8699#ifdef __cplusplus 8700extern "C" { 8701#endif 8702 8703_LT_EOF 8704 # Now generate the symbol file. 8705 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 8706 8707 cat <<_LT_EOF >> conftest.$ac_ext 8708 8709/* The mapping between symbol names and symbols. */ 8710LT_DLSYM_CONST struct { 8711 const char *name; 8712 void *address; 8713} 8714lt__PROGRAM__LTX_preloaded_symbols[] = 8715{ 8716 { "@PROGRAM@", (void *) 0 }, 8717_LT_EOF 8718 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 8719 cat <<\_LT_EOF >> conftest.$ac_ext 8720 {0, (void *) 0} 8721}; 8722 8723/* This works around a problem in FreeBSD linker */ 8724#ifdef FREEBSD_WORKAROUND 8725static const void *lt_preloaded_setup() { 8726 return lt__PROGRAM__LTX_preloaded_symbols; 8727} 8728#endif 8729 8730#ifdef __cplusplus 8731} 8732#endif 8733_LT_EOF 8734 # Now try linking the two files. 8735 mv conftest.$ac_objext conftstm.$ac_objext 8736 lt_globsym_save_LIBS=$LIBS 8737 lt_globsym_save_CFLAGS=$CFLAGS 8738 LIBS="conftstm.$ac_objext" 8739 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 8740 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 8741 (eval $ac_link) 2>&5 8742 ac_status=$? 8743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8744 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 8745 pipe_works=yes 8746 fi 8747 LIBS=$lt_globsym_save_LIBS 8748 CFLAGS=$lt_globsym_save_CFLAGS 8749 else 8750 echo "cannot find nm_test_func in $nlist" >&5 8751 fi 8752 else 8753 echo "cannot find nm_test_var in $nlist" >&5 8754 fi 8755 else 8756 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 8757 fi 8758 else 8759 echo "$progname: failed program was:" >&5 8760 cat conftest.$ac_ext >&5 8761 fi 8762 rm -rf conftest* conftst* 8763 8764 # Do not use the global_symbol_pipe unless it works. 8765 if test "$pipe_works" = yes; then 8766 break 8767 else 8768 lt_cv_sys_global_symbol_pipe= 8769 fi 8770done 8771 8772fi 8773 8774if test -z "$lt_cv_sys_global_symbol_pipe"; then 8775 lt_cv_sys_global_symbol_to_cdecl= 8776fi 8777if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 8779$as_echo "failed" >&6; } 8780else 8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 8782$as_echo "ok" >&6; } 8783fi 8784 8785# Response file support. 8786if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8787 nm_file_list_spec='@' 8788elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 8789 nm_file_list_spec='@' 8790fi 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 8819$as_echo_n "checking for sysroot... " >&6; } 8820 8821# Check whether --with-sysroot was given. 8822if test "${with_sysroot+set}" = set; then : 8823 withval=$with_sysroot; 8824else 8825 with_sysroot=no 8826fi 8827 8828 8829lt_sysroot= 8830case ${with_sysroot} in #( 8831 yes) 8832 if test "$GCC" = yes; then 8833 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 8834 fi 8835 ;; #( 8836 /*) 8837 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 8838 ;; #( 8839 no|'') 8840 ;; #( 8841 *) 8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 8843$as_echo "${with_sysroot}" >&6; } 8844 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 8845 ;; 8846esac 8847 8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 8849$as_echo "${lt_sysroot:-no}" >&6; } 8850 8851 8852 8853 8854 8855# Check whether --enable-libtool-lock was given. 8856if test "${enable_libtool_lock+set}" = set; then : 8857 enableval=$enable_libtool_lock; 8858fi 8859 8860test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 8861 8862# Some flags need to be propagated to the compiler or linker for good 8863# libtool support. 8864case $host in 8865ia64-*-hpux*) 8866 # Find out which ABI we are using. 8867 echo 'int i;' > conftest.$ac_ext 8868 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8869 (eval $ac_compile) 2>&5 8870 ac_status=$? 8871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8872 test $ac_status = 0; }; then 8873 case `/usr/bin/file conftest.$ac_objext` in 8874 *ELF-32*) 8875 HPUX_IA64_MODE="32" 8876 ;; 8877 *ELF-64*) 8878 HPUX_IA64_MODE="64" 8879 ;; 8880 esac 8881 fi 8882 rm -rf conftest* 8883 ;; 8884*-*-irix6*) 8885 # Find out which ABI we are using. 8886 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8887 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8888 (eval $ac_compile) 2>&5 8889 ac_status=$? 8890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8891 test $ac_status = 0; }; then 8892 if test "$lt_cv_prog_gnu_ld" = yes; then 8893 case `/usr/bin/file conftest.$ac_objext` in 8894 *32-bit*) 8895 LD="${LD-ld} -melf32bsmip" 8896 ;; 8897 *N32*) 8898 LD="${LD-ld} -melf32bmipn32" 8899 ;; 8900 *64-bit*) 8901 LD="${LD-ld} -melf64bmip" 8902 ;; 8903 esac 8904 else 8905 case `/usr/bin/file conftest.$ac_objext` in 8906 *32-bit*) 8907 LD="${LD-ld} -32" 8908 ;; 8909 *N32*) 8910 LD="${LD-ld} -n32" 8911 ;; 8912 *64-bit*) 8913 LD="${LD-ld} -64" 8914 ;; 8915 esac 8916 fi 8917 fi 8918 rm -rf conftest* 8919 ;; 8920 8921x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 8922s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 8923 # Find out which ABI we are using. 8924 echo 'int i;' > conftest.$ac_ext 8925 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8926 (eval $ac_compile) 2>&5 8927 ac_status=$? 8928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8929 test $ac_status = 0; }; then 8930 case `/usr/bin/file conftest.o` in 8931 *32-bit*) 8932 case $host in 8933 x86_64-*kfreebsd*-gnu) 8934 LD="${LD-ld} -m elf_i386_fbsd" 8935 ;; 8936 x86_64-*linux*) 8937 case `/usr/bin/file conftest.o` in 8938 *x86-64*) 8939 LD="${LD-ld} -m elf32_x86_64" 8940 ;; 8941 *) 8942 LD="${LD-ld} -m elf_i386" 8943 ;; 8944 esac 8945 ;; 8946 powerpc64le-*) 8947 LD="${LD-ld} -m elf32lppclinux" 8948 ;; 8949 powerpc64-*) 8950 LD="${LD-ld} -m elf32ppclinux" 8951 ;; 8952 s390x-*linux*) 8953 LD="${LD-ld} -m elf_s390" 8954 ;; 8955 sparc64-*linux*) 8956 LD="${LD-ld} -m elf32_sparc" 8957 ;; 8958 esac 8959 ;; 8960 *64-bit*) 8961 case $host in 8962 x86_64-*kfreebsd*-gnu) 8963 LD="${LD-ld} -m elf_x86_64_fbsd" 8964 ;; 8965 x86_64-*linux*) 8966 LD="${LD-ld} -m elf_x86_64" 8967 ;; 8968 powerpcle-*) 8969 LD="${LD-ld} -m elf64lppc" 8970 ;; 8971 powerpc-*) 8972 LD="${LD-ld} -m elf64ppc" 8973 ;; 8974 s390*-*linux*|s390*-*tpf*) 8975 LD="${LD-ld} -m elf64_s390" 8976 ;; 8977 sparc*-*linux*) 8978 LD="${LD-ld} -m elf64_sparc" 8979 ;; 8980 esac 8981 ;; 8982 esac 8983 fi 8984 rm -rf conftest* 8985 ;; 8986 8987*-*-sco3.2v5*) 8988 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8989 SAVE_CFLAGS="$CFLAGS" 8990 CFLAGS="$CFLAGS -belf" 8991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8992$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 8993if ${lt_cv_cc_needs_belf+:} false; then : 8994 $as_echo_n "(cached) " >&6 8995else 8996 ac_ext=c 8997ac_cpp='$CPP $CPPFLAGS' 8998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9000ac_compiler_gnu=$ac_cv_c_compiler_gnu 9001 9002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9003/* end confdefs.h. */ 9004 9005int 9006main () 9007{ 9008 9009 ; 9010 return 0; 9011} 9012_ACEOF 9013if ac_fn_c_try_link "$LINENO"; then : 9014 lt_cv_cc_needs_belf=yes 9015else 9016 lt_cv_cc_needs_belf=no 9017fi 9018rm -f core conftest.err conftest.$ac_objext \ 9019 conftest$ac_exeext conftest.$ac_ext 9020 ac_ext=c 9021ac_cpp='$CPP $CPPFLAGS' 9022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9024ac_compiler_gnu=$ac_cv_c_compiler_gnu 9025 9026fi 9027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 9028$as_echo "$lt_cv_cc_needs_belf" >&6; } 9029 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 9030 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 9031 CFLAGS="$SAVE_CFLAGS" 9032 fi 9033 ;; 9034*-*solaris*) 9035 # Find out which ABI we are using. 9036 echo 'int i;' > conftest.$ac_ext 9037 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9038 (eval $ac_compile) 2>&5 9039 ac_status=$? 9040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9041 test $ac_status = 0; }; then 9042 case `/usr/bin/file conftest.o` in 9043 *64-bit*) 9044 case $lt_cv_prog_gnu_ld in 9045 yes*) 9046 case $host in 9047 i?86-*-solaris*) 9048 LD="${LD-ld} -m elf_x86_64" 9049 ;; 9050 sparc*-*-solaris*) 9051 LD="${LD-ld} -m elf64_sparc" 9052 ;; 9053 esac 9054 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 9055 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 9056 LD="${LD-ld}_sol2" 9057 fi 9058 ;; 9059 *) 9060 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 9061 LD="${LD-ld} -64" 9062 fi 9063 ;; 9064 esac 9065 ;; 9066 esac 9067 fi 9068 rm -rf conftest* 9069 ;; 9070esac 9071 9072need_locks="$enable_libtool_lock" 9073 9074if test -n "$ac_tool_prefix"; then 9075 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 9076set dummy ${ac_tool_prefix}mt; ac_word=$2 9077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9078$as_echo_n "checking for $ac_word... " >&6; } 9079if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 9080 $as_echo_n "(cached) " >&6 9081else 9082 if test -n "$MANIFEST_TOOL"; then 9083 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 9084else 9085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9086for as_dir in $PATH 9087do 9088 IFS=$as_save_IFS 9089 test -z "$as_dir" && as_dir=. 9090 for ac_exec_ext in '' $ac_executable_extensions; do 9091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9092 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 9093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9094 break 2 9095 fi 9096done 9097 done 9098IFS=$as_save_IFS 9099 9100fi 9101fi 9102MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 9103if test -n "$MANIFEST_TOOL"; then 9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 9105$as_echo "$MANIFEST_TOOL" >&6; } 9106else 9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9108$as_echo "no" >&6; } 9109fi 9110 9111 9112fi 9113if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 9114 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 9115 # Extract the first word of "mt", so it can be a program name with args. 9116set dummy mt; ac_word=$2 9117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9118$as_echo_n "checking for $ac_word... " >&6; } 9119if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 9120 $as_echo_n "(cached) " >&6 9121else 9122 if test -n "$ac_ct_MANIFEST_TOOL"; then 9123 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 9124else 9125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9126for as_dir in $PATH 9127do 9128 IFS=$as_save_IFS 9129 test -z "$as_dir" && as_dir=. 9130 for ac_exec_ext in '' $ac_executable_extensions; do 9131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9132 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 9133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9134 break 2 9135 fi 9136done 9137 done 9138IFS=$as_save_IFS 9139 9140fi 9141fi 9142ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 9143if test -n "$ac_ct_MANIFEST_TOOL"; then 9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 9145$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 9146else 9147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9148$as_echo "no" >&6; } 9149fi 9150 9151 if test "x$ac_ct_MANIFEST_TOOL" = x; then 9152 MANIFEST_TOOL=":" 9153 else 9154 case $cross_compiling:$ac_tool_warned in 9155yes:) 9156{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9157$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9158ac_tool_warned=yes ;; 9159esac 9160 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 9161 fi 9162else 9163 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 9164fi 9165 9166test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 9167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 9168$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 9169if ${lt_cv_path_mainfest_tool+:} false; then : 9170 $as_echo_n "(cached) " >&6 9171else 9172 lt_cv_path_mainfest_tool=no 9173 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 9174 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 9175 cat conftest.err >&5 9176 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 9177 lt_cv_path_mainfest_tool=yes 9178 fi 9179 rm -f conftest* 9180fi 9181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 9182$as_echo "$lt_cv_path_mainfest_tool" >&6; } 9183if test "x$lt_cv_path_mainfest_tool" != xyes; then 9184 MANIFEST_TOOL=: 9185fi 9186 9187 9188 9189 9190 9191 9192 case $host_os in 9193 rhapsody* | darwin*) 9194 if test -n "$ac_tool_prefix"; then 9195 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 9196set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 9197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9198$as_echo_n "checking for $ac_word... " >&6; } 9199if ${ac_cv_prog_DSYMUTIL+:} false; then : 9200 $as_echo_n "(cached) " >&6 9201else 9202 if test -n "$DSYMUTIL"; then 9203 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 9204else 9205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9206for as_dir in $PATH 9207do 9208 IFS=$as_save_IFS 9209 test -z "$as_dir" && as_dir=. 9210 for ac_exec_ext in '' $ac_executable_extensions; do 9211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9212 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 9213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9214 break 2 9215 fi 9216done 9217 done 9218IFS=$as_save_IFS 9219 9220fi 9221fi 9222DSYMUTIL=$ac_cv_prog_DSYMUTIL 9223if test -n "$DSYMUTIL"; then 9224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 9225$as_echo "$DSYMUTIL" >&6; } 9226else 9227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9228$as_echo "no" >&6; } 9229fi 9230 9231 9232fi 9233if test -z "$ac_cv_prog_DSYMUTIL"; then 9234 ac_ct_DSYMUTIL=$DSYMUTIL 9235 # Extract the first word of "dsymutil", so it can be a program name with args. 9236set dummy dsymutil; ac_word=$2 9237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9238$as_echo_n "checking for $ac_word... " >&6; } 9239if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 9240 $as_echo_n "(cached) " >&6 9241else 9242 if test -n "$ac_ct_DSYMUTIL"; then 9243 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 9244else 9245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9246for as_dir in $PATH 9247do 9248 IFS=$as_save_IFS 9249 test -z "$as_dir" && as_dir=. 9250 for ac_exec_ext in '' $ac_executable_extensions; do 9251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9252 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 9253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9254 break 2 9255 fi 9256done 9257 done 9258IFS=$as_save_IFS 9259 9260fi 9261fi 9262ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 9263if test -n "$ac_ct_DSYMUTIL"; then 9264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 9265$as_echo "$ac_ct_DSYMUTIL" >&6; } 9266else 9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9268$as_echo "no" >&6; } 9269fi 9270 9271 if test "x$ac_ct_DSYMUTIL" = x; then 9272 DSYMUTIL=":" 9273 else 9274 case $cross_compiling:$ac_tool_warned in 9275yes:) 9276{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9277$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9278ac_tool_warned=yes ;; 9279esac 9280 DSYMUTIL=$ac_ct_DSYMUTIL 9281 fi 9282else 9283 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 9284fi 9285 9286 if test -n "$ac_tool_prefix"; then 9287 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 9288set dummy ${ac_tool_prefix}nmedit; ac_word=$2 9289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9290$as_echo_n "checking for $ac_word... " >&6; } 9291if ${ac_cv_prog_NMEDIT+:} false; then : 9292 $as_echo_n "(cached) " >&6 9293else 9294 if test -n "$NMEDIT"; then 9295 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 9296else 9297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9298for as_dir in $PATH 9299do 9300 IFS=$as_save_IFS 9301 test -z "$as_dir" && as_dir=. 9302 for ac_exec_ext in '' $ac_executable_extensions; do 9303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9304 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 9305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9306 break 2 9307 fi 9308done 9309 done 9310IFS=$as_save_IFS 9311 9312fi 9313fi 9314NMEDIT=$ac_cv_prog_NMEDIT 9315if test -n "$NMEDIT"; then 9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 9317$as_echo "$NMEDIT" >&6; } 9318else 9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9320$as_echo "no" >&6; } 9321fi 9322 9323 9324fi 9325if test -z "$ac_cv_prog_NMEDIT"; then 9326 ac_ct_NMEDIT=$NMEDIT 9327 # Extract the first word of "nmedit", so it can be a program name with args. 9328set dummy nmedit; ac_word=$2 9329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9330$as_echo_n "checking for $ac_word... " >&6; } 9331if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 9332 $as_echo_n "(cached) " >&6 9333else 9334 if test -n "$ac_ct_NMEDIT"; then 9335 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 9336else 9337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9338for as_dir in $PATH 9339do 9340 IFS=$as_save_IFS 9341 test -z "$as_dir" && as_dir=. 9342 for ac_exec_ext in '' $ac_executable_extensions; do 9343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9344 ac_cv_prog_ac_ct_NMEDIT="nmedit" 9345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9346 break 2 9347 fi 9348done 9349 done 9350IFS=$as_save_IFS 9351 9352fi 9353fi 9354ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 9355if test -n "$ac_ct_NMEDIT"; then 9356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 9357$as_echo "$ac_ct_NMEDIT" >&6; } 9358else 9359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9360$as_echo "no" >&6; } 9361fi 9362 9363 if test "x$ac_ct_NMEDIT" = x; then 9364 NMEDIT=":" 9365 else 9366 case $cross_compiling:$ac_tool_warned in 9367yes:) 9368{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9369$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9370ac_tool_warned=yes ;; 9371esac 9372 NMEDIT=$ac_ct_NMEDIT 9373 fi 9374else 9375 NMEDIT="$ac_cv_prog_NMEDIT" 9376fi 9377 9378 if test -n "$ac_tool_prefix"; then 9379 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 9380set dummy ${ac_tool_prefix}lipo; ac_word=$2 9381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9382$as_echo_n "checking for $ac_word... " >&6; } 9383if ${ac_cv_prog_LIPO+:} false; then : 9384 $as_echo_n "(cached) " >&6 9385else 9386 if test -n "$LIPO"; then 9387 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 9388else 9389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9390for as_dir in $PATH 9391do 9392 IFS=$as_save_IFS 9393 test -z "$as_dir" && as_dir=. 9394 for ac_exec_ext in '' $ac_executable_extensions; do 9395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9396 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 9397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9398 break 2 9399 fi 9400done 9401 done 9402IFS=$as_save_IFS 9403 9404fi 9405fi 9406LIPO=$ac_cv_prog_LIPO 9407if test -n "$LIPO"; then 9408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 9409$as_echo "$LIPO" >&6; } 9410else 9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9412$as_echo "no" >&6; } 9413fi 9414 9415 9416fi 9417if test -z "$ac_cv_prog_LIPO"; then 9418 ac_ct_LIPO=$LIPO 9419 # Extract the first word of "lipo", so it can be a program name with args. 9420set dummy lipo; ac_word=$2 9421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9422$as_echo_n "checking for $ac_word... " >&6; } 9423if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 9424 $as_echo_n "(cached) " >&6 9425else 9426 if test -n "$ac_ct_LIPO"; then 9427 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 9428else 9429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9430for as_dir in $PATH 9431do 9432 IFS=$as_save_IFS 9433 test -z "$as_dir" && as_dir=. 9434 for ac_exec_ext in '' $ac_executable_extensions; do 9435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9436 ac_cv_prog_ac_ct_LIPO="lipo" 9437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9438 break 2 9439 fi 9440done 9441 done 9442IFS=$as_save_IFS 9443 9444fi 9445fi 9446ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 9447if test -n "$ac_ct_LIPO"; then 9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 9449$as_echo "$ac_ct_LIPO" >&6; } 9450else 9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9452$as_echo "no" >&6; } 9453fi 9454 9455 if test "x$ac_ct_LIPO" = x; then 9456 LIPO=":" 9457 else 9458 case $cross_compiling:$ac_tool_warned in 9459yes:) 9460{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9461$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9462ac_tool_warned=yes ;; 9463esac 9464 LIPO=$ac_ct_LIPO 9465 fi 9466else 9467 LIPO="$ac_cv_prog_LIPO" 9468fi 9469 9470 if test -n "$ac_tool_prefix"; then 9471 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 9472set dummy ${ac_tool_prefix}otool; ac_word=$2 9473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9474$as_echo_n "checking for $ac_word... " >&6; } 9475if ${ac_cv_prog_OTOOL+:} false; then : 9476 $as_echo_n "(cached) " >&6 9477else 9478 if test -n "$OTOOL"; then 9479 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 9480else 9481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9482for as_dir in $PATH 9483do 9484 IFS=$as_save_IFS 9485 test -z "$as_dir" && as_dir=. 9486 for ac_exec_ext in '' $ac_executable_extensions; do 9487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9488 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 9489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9490 break 2 9491 fi 9492done 9493 done 9494IFS=$as_save_IFS 9495 9496fi 9497fi 9498OTOOL=$ac_cv_prog_OTOOL 9499if test -n "$OTOOL"; then 9500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 9501$as_echo "$OTOOL" >&6; } 9502else 9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9504$as_echo "no" >&6; } 9505fi 9506 9507 9508fi 9509if test -z "$ac_cv_prog_OTOOL"; then 9510 ac_ct_OTOOL=$OTOOL 9511 # Extract the first word of "otool", so it can be a program name with args. 9512set dummy otool; ac_word=$2 9513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9514$as_echo_n "checking for $ac_word... " >&6; } 9515if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 9516 $as_echo_n "(cached) " >&6 9517else 9518 if test -n "$ac_ct_OTOOL"; then 9519 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 9520else 9521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9522for as_dir in $PATH 9523do 9524 IFS=$as_save_IFS 9525 test -z "$as_dir" && as_dir=. 9526 for ac_exec_ext in '' $ac_executable_extensions; do 9527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9528 ac_cv_prog_ac_ct_OTOOL="otool" 9529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9530 break 2 9531 fi 9532done 9533 done 9534IFS=$as_save_IFS 9535 9536fi 9537fi 9538ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 9539if test -n "$ac_ct_OTOOL"; then 9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 9541$as_echo "$ac_ct_OTOOL" >&6; } 9542else 9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9544$as_echo "no" >&6; } 9545fi 9546 9547 if test "x$ac_ct_OTOOL" = x; then 9548 OTOOL=":" 9549 else 9550 case $cross_compiling:$ac_tool_warned in 9551yes:) 9552{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9553$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9554ac_tool_warned=yes ;; 9555esac 9556 OTOOL=$ac_ct_OTOOL 9557 fi 9558else 9559 OTOOL="$ac_cv_prog_OTOOL" 9560fi 9561 9562 if test -n "$ac_tool_prefix"; then 9563 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 9564set dummy ${ac_tool_prefix}otool64; ac_word=$2 9565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9566$as_echo_n "checking for $ac_word... " >&6; } 9567if ${ac_cv_prog_OTOOL64+:} false; then : 9568 $as_echo_n "(cached) " >&6 9569else 9570 if test -n "$OTOOL64"; then 9571 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 9572else 9573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9574for as_dir in $PATH 9575do 9576 IFS=$as_save_IFS 9577 test -z "$as_dir" && as_dir=. 9578 for ac_exec_ext in '' $ac_executable_extensions; do 9579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9580 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 9581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9582 break 2 9583 fi 9584done 9585 done 9586IFS=$as_save_IFS 9587 9588fi 9589fi 9590OTOOL64=$ac_cv_prog_OTOOL64 9591if test -n "$OTOOL64"; then 9592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 9593$as_echo "$OTOOL64" >&6; } 9594else 9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9596$as_echo "no" >&6; } 9597fi 9598 9599 9600fi 9601if test -z "$ac_cv_prog_OTOOL64"; then 9602 ac_ct_OTOOL64=$OTOOL64 9603 # Extract the first word of "otool64", so it can be a program name with args. 9604set dummy otool64; ac_word=$2 9605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9606$as_echo_n "checking for $ac_word... " >&6; } 9607if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 9608 $as_echo_n "(cached) " >&6 9609else 9610 if test -n "$ac_ct_OTOOL64"; then 9611 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 9612else 9613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9614for as_dir in $PATH 9615do 9616 IFS=$as_save_IFS 9617 test -z "$as_dir" && as_dir=. 9618 for ac_exec_ext in '' $ac_executable_extensions; do 9619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9620 ac_cv_prog_ac_ct_OTOOL64="otool64" 9621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9622 break 2 9623 fi 9624done 9625 done 9626IFS=$as_save_IFS 9627 9628fi 9629fi 9630ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 9631if test -n "$ac_ct_OTOOL64"; then 9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 9633$as_echo "$ac_ct_OTOOL64" >&6; } 9634else 9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9636$as_echo "no" >&6; } 9637fi 9638 9639 if test "x$ac_ct_OTOOL64" = x; then 9640 OTOOL64=":" 9641 else 9642 case $cross_compiling:$ac_tool_warned in 9643yes:) 9644{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9645$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9646ac_tool_warned=yes ;; 9647esac 9648 OTOOL64=$ac_ct_OTOOL64 9649 fi 9650else 9651 OTOOL64="$ac_cv_prog_OTOOL64" 9652fi 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 9681$as_echo_n "checking for -single_module linker flag... " >&6; } 9682if ${lt_cv_apple_cc_single_mod+:} false; then : 9683 $as_echo_n "(cached) " >&6 9684else 9685 lt_cv_apple_cc_single_mod=no 9686 if test -z "${LT_MULTI_MODULE}"; then 9687 # By default we will add the -single_module flag. You can override 9688 # by either setting the environment variable LT_MULTI_MODULE 9689 # non-empty at configure time, or by adding -multi_module to the 9690 # link flags. 9691 rm -rf libconftest.dylib* 9692 echo "int foo(void){return 1;}" > conftest.c 9693 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9694-dynamiclib -Wl,-single_module conftest.c" >&5 9695 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9696 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 9697 _lt_result=$? 9698 # If there is a non-empty error log, and "single_module" 9699 # appears in it, assume the flag caused a linker warning 9700 if test -s conftest.err && $GREP single_module conftest.err; then 9701 cat conftest.err >&5 9702 # Otherwise, if the output was created with a 0 exit code from 9703 # the compiler, it worked. 9704 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 9705 lt_cv_apple_cc_single_mod=yes 9706 else 9707 cat conftest.err >&5 9708 fi 9709 rm -rf libconftest.dylib* 9710 rm -f conftest.* 9711 fi 9712fi 9713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 9714$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 9715 9716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 9717$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 9718if ${lt_cv_ld_exported_symbols_list+:} false; then : 9719 $as_echo_n "(cached) " >&6 9720else 9721 lt_cv_ld_exported_symbols_list=no 9722 save_LDFLAGS=$LDFLAGS 9723 echo "_main" > conftest.sym 9724 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 9725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9726/* end confdefs.h. */ 9727 9728int 9729main () 9730{ 9731 9732 ; 9733 return 0; 9734} 9735_ACEOF 9736if ac_fn_c_try_link "$LINENO"; then : 9737 lt_cv_ld_exported_symbols_list=yes 9738else 9739 lt_cv_ld_exported_symbols_list=no 9740fi 9741rm -f core conftest.err conftest.$ac_objext \ 9742 conftest$ac_exeext conftest.$ac_ext 9743 LDFLAGS="$save_LDFLAGS" 9744 9745fi 9746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 9747$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 9748 9749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 9750$as_echo_n "checking for -force_load linker flag... " >&6; } 9751if ${lt_cv_ld_force_load+:} false; then : 9752 $as_echo_n "(cached) " >&6 9753else 9754 lt_cv_ld_force_load=no 9755 cat > conftest.c << _LT_EOF 9756int forced_loaded() { return 2;} 9757_LT_EOF 9758 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 9759 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 9760 echo "$AR cru libconftest.a conftest.o" >&5 9761 $AR cru libconftest.a conftest.o 2>&5 9762 echo "$RANLIB libconftest.a" >&5 9763 $RANLIB libconftest.a 2>&5 9764 cat > conftest.c << _LT_EOF 9765int main() { return 0;} 9766_LT_EOF 9767 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 9768 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 9769 _lt_result=$? 9770 if test -s conftest.err && $GREP force_load conftest.err; then 9771 cat conftest.err >&5 9772 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 9773 lt_cv_ld_force_load=yes 9774 else 9775 cat conftest.err >&5 9776 fi 9777 rm -f conftest.err libconftest.a conftest conftest.c 9778 rm -rf conftest.dSYM 9779 9780fi 9781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 9782$as_echo "$lt_cv_ld_force_load" >&6; } 9783 case $host_os in 9784 rhapsody* | darwin1.[012]) 9785 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 9786 darwin1.*) 9787 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 9788 darwin*) # darwin 5.x on 9789 # if running on 10.5 or later, the deployment target defaults 9790 # to the OS version, if on x86, and 10.4, the deployment 9791 # target defaults to 10.4. Don't you love it? 9792 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 9793 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 9794 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 9795 10.[012]*) 9796 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 9797 10.*) 9798 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 9799 esac 9800 ;; 9801 esac 9802 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 9803 _lt_dar_single_mod='$single_module' 9804 fi 9805 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 9806 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 9807 else 9808 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 9809 fi 9810 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 9811 _lt_dsymutil='~$DSYMUTIL $lib || :' 9812 else 9813 _lt_dsymutil= 9814 fi 9815 ;; 9816 esac 9817 9818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 9819$as_echo_n "checking for ANSI C header files... " >&6; } 9820if ${ac_cv_header_stdc+:} false; then : 9821 $as_echo_n "(cached) " >&6 9822else 9823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9824/* end confdefs.h. */ 9825#include <stdlib.h> 9826#include <stdarg.h> 9827#include <string.h> 9828#include <float.h> 9829 9830int 9831main () 9832{ 9833 9834 ; 9835 return 0; 9836} 9837_ACEOF 9838if ac_fn_c_try_compile "$LINENO"; then : 9839 ac_cv_header_stdc=yes 9840else 9841 ac_cv_header_stdc=no 9842fi 9843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9844 9845if test $ac_cv_header_stdc = yes; then 9846 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 9847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9848/* end confdefs.h. */ 9849#include <string.h> 9850 9851_ACEOF 9852if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9853 $EGREP "memchr" >/dev/null 2>&1; then : 9854 9855else 9856 ac_cv_header_stdc=no 9857fi 9858rm -f conftest* 9859 9860fi 9861 9862if test $ac_cv_header_stdc = yes; then 9863 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 9864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9865/* end confdefs.h. */ 9866#include <stdlib.h> 9867 9868_ACEOF 9869if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9870 $EGREP "free" >/dev/null 2>&1; then : 9871 9872else 9873 ac_cv_header_stdc=no 9874fi 9875rm -f conftest* 9876 9877fi 9878 9879if test $ac_cv_header_stdc = yes; then 9880 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 9881 if test "$cross_compiling" = yes; then : 9882 : 9883else 9884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9885/* end confdefs.h. */ 9886#include <ctype.h> 9887#include <stdlib.h> 9888#if ((' ' & 0x0FF) == 0x020) 9889# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 9890# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 9891#else 9892# define ISLOWER(c) \ 9893 (('a' <= (c) && (c) <= 'i') \ 9894 || ('j' <= (c) && (c) <= 'r') \ 9895 || ('s' <= (c) && (c) <= 'z')) 9896# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 9897#endif 9898 9899#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 9900int 9901main () 9902{ 9903 int i; 9904 for (i = 0; i < 256; i++) 9905 if (XOR (islower (i), ISLOWER (i)) 9906 || toupper (i) != TOUPPER (i)) 9907 return 2; 9908 return 0; 9909} 9910_ACEOF 9911if ac_fn_c_try_run "$LINENO"; then : 9912 9913else 9914 ac_cv_header_stdc=no 9915fi 9916rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9917 conftest.$ac_objext conftest.beam conftest.$ac_ext 9918fi 9919 9920fi 9921fi 9922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 9923$as_echo "$ac_cv_header_stdc" >&6; } 9924if test $ac_cv_header_stdc = yes; then 9925 9926$as_echo "#define STDC_HEADERS 1" >>confdefs.h 9927 9928fi 9929 9930# On IRIX 5.3, sys/types and inttypes.h are conflicting. 9931for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 9932 inttypes.h stdint.h unistd.h 9933do : 9934 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9935ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 9936" 9937if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 9938 cat >>confdefs.h <<_ACEOF 9939#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9940_ACEOF 9941 9942fi 9943 9944done 9945 9946 9947for ac_header in dlfcn.h 9948do : 9949 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 9950" 9951if test "x$ac_cv_header_dlfcn_h" = xyes; then : 9952 cat >>confdefs.h <<_ACEOF 9953#define HAVE_DLFCN_H 1 9954_ACEOF 9955 9956fi 9957 9958done 9959 9960 9961 9962func_stripname_cnf () 9963{ 9964 case ${2} in 9965 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 9966 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 9967 esac 9968} # func_stripname_cnf 9969 9970 9971 9972 9973 9974# Set options 9975 9976 9977 9978 enable_dlopen=no 9979 9980 9981 enable_win32_dll=no 9982 9983 9984 9985 9986 9987# Check whether --with-pic was given. 9988if test "${with_pic+set}" = set; then : 9989 withval=$with_pic; lt_p=${PACKAGE-default} 9990 case $withval in 9991 yes|no) pic_mode=$withval ;; 9992 *) 9993 pic_mode=default 9994 # Look at the argument we got. We use all the common list separators. 9995 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9996 for lt_pkg in $withval; do 9997 IFS="$lt_save_ifs" 9998 if test "X$lt_pkg" = "X$lt_p"; then 9999 pic_mode=yes 10000 fi 10001 done 10002 IFS="$lt_save_ifs" 10003 ;; 10004 esac 10005else 10006 pic_mode=default 10007fi 10008 10009 10010test -z "$pic_mode" && pic_mode=default 10011 10012 10013 10014 10015 10016 10017 10018 # Check whether --enable-fast-install was given. 10019if test "${enable_fast_install+set}" = set; then : 10020 enableval=$enable_fast_install; p=${PACKAGE-default} 10021 case $enableval in 10022 yes) enable_fast_install=yes ;; 10023 no) enable_fast_install=no ;; 10024 *) 10025 enable_fast_install=no 10026 # Look at the argument we got. We use all the common list separators. 10027 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10028 for pkg in $enableval; do 10029 IFS="$lt_save_ifs" 10030 if test "X$pkg" = "X$p"; then 10031 enable_fast_install=yes 10032 fi 10033 done 10034 IFS="$lt_save_ifs" 10035 ;; 10036 esac 10037else 10038 enable_fast_install=yes 10039fi 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051# This can be used to rebuild libtool when needed 10052LIBTOOL_DEPS="$ltmain" 10053 10054# Always use our own libtool. 10055LIBTOOL='$(SHELL) $(top_builddir)/libtool' 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086test -z "$LN_S" && LN_S="ln -s" 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101if test -n "${ZSH_VERSION+set}" ; then 10102 setopt NO_GLOB_SUBST 10103fi 10104 10105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 10106$as_echo_n "checking for objdir... " >&6; } 10107if ${lt_cv_objdir+:} false; then : 10108 $as_echo_n "(cached) " >&6 10109else 10110 rm -f .libs 2>/dev/null 10111mkdir .libs 2>/dev/null 10112if test -d .libs; then 10113 lt_cv_objdir=.libs 10114else 10115 # MS-DOS does not allow filenames that begin with a dot. 10116 lt_cv_objdir=_libs 10117fi 10118rmdir .libs 2>/dev/null 10119fi 10120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 10121$as_echo "$lt_cv_objdir" >&6; } 10122objdir=$lt_cv_objdir 10123 10124 10125 10126 10127 10128cat >>confdefs.h <<_ACEOF 10129#define LT_OBJDIR "$lt_cv_objdir/" 10130_ACEOF 10131 10132 10133 10134 10135case $host_os in 10136aix3*) 10137 # AIX sometimes has problems with the GCC collect2 program. For some 10138 # reason, if we set the COLLECT_NAMES environment variable, the problems 10139 # vanish in a puff of smoke. 10140 if test "X${COLLECT_NAMES+set}" != Xset; then 10141 COLLECT_NAMES= 10142 export COLLECT_NAMES 10143 fi 10144 ;; 10145esac 10146 10147# Global variables: 10148ofile=libtool 10149can_build_shared=yes 10150 10151# All known linkers require a `.a' archive for static linking (except MSVC, 10152# which needs '.lib'). 10153libext=a 10154 10155with_gnu_ld="$lt_cv_prog_gnu_ld" 10156 10157old_CC="$CC" 10158old_CFLAGS="$CFLAGS" 10159 10160# Set sane defaults for various variables 10161test -z "$CC" && CC=cc 10162test -z "$LTCC" && LTCC=$CC 10163test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 10164test -z "$LD" && LD=ld 10165test -z "$ac_objext" && ac_objext=o 10166 10167for cc_temp in $compiler""; do 10168 case $cc_temp in 10169 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10170 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10171 \-*) ;; 10172 *) break;; 10173 esac 10174done 10175cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 10176 10177 10178# Only perform the check for file, if the check method requires it 10179test -z "$MAGIC_CMD" && MAGIC_CMD=file 10180case $deplibs_check_method in 10181file_magic*) 10182 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 10183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 10184$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 10185if ${lt_cv_path_MAGIC_CMD+:} false; then : 10186 $as_echo_n "(cached) " >&6 10187else 10188 case $MAGIC_CMD in 10189[\\/*] | ?:[\\/]*) 10190 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 10191 ;; 10192*) 10193 lt_save_MAGIC_CMD="$MAGIC_CMD" 10194 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10195 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10196 for ac_dir in $ac_dummy; do 10197 IFS="$lt_save_ifs" 10198 test -z "$ac_dir" && ac_dir=. 10199 if test -f $ac_dir/${ac_tool_prefix}file; then 10200 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 10201 if test -n "$file_magic_test_file"; then 10202 case $deplibs_check_method in 10203 "file_magic "*) 10204 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10205 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10206 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10207 $EGREP "$file_magic_regex" > /dev/null; then 10208 : 10209 else 10210 cat <<_LT_EOF 1>&2 10211 10212*** Warning: the command libtool uses to detect shared libraries, 10213*** $file_magic_cmd, produces output that libtool cannot recognize. 10214*** The result is that libtool may fail to recognize shared libraries 10215*** as such. This will affect the creation of libtool libraries that 10216*** depend on shared libraries, but programs linked with such libtool 10217*** libraries will work regardless of this problem. Nevertheless, you 10218*** may want to report the problem to your system manager and/or to 10219*** bug-libtool@gnu.org 10220 10221_LT_EOF 10222 fi ;; 10223 esac 10224 fi 10225 break 10226 fi 10227 done 10228 IFS="$lt_save_ifs" 10229 MAGIC_CMD="$lt_save_MAGIC_CMD" 10230 ;; 10231esac 10232fi 10233 10234MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10235if test -n "$MAGIC_CMD"; then 10236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10237$as_echo "$MAGIC_CMD" >&6; } 10238else 10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10240$as_echo "no" >&6; } 10241fi 10242 10243 10244 10245 10246 10247if test -z "$lt_cv_path_MAGIC_CMD"; then 10248 if test -n "$ac_tool_prefix"; then 10249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 10250$as_echo_n "checking for file... " >&6; } 10251if ${lt_cv_path_MAGIC_CMD+:} false; then : 10252 $as_echo_n "(cached) " >&6 10253else 10254 case $MAGIC_CMD in 10255[\\/*] | ?:[\\/]*) 10256 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 10257 ;; 10258*) 10259 lt_save_MAGIC_CMD="$MAGIC_CMD" 10260 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10261 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10262 for ac_dir in $ac_dummy; do 10263 IFS="$lt_save_ifs" 10264 test -z "$ac_dir" && ac_dir=. 10265 if test -f $ac_dir/file; then 10266 lt_cv_path_MAGIC_CMD="$ac_dir/file" 10267 if test -n "$file_magic_test_file"; then 10268 case $deplibs_check_method in 10269 "file_magic "*) 10270 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10271 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10272 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10273 $EGREP "$file_magic_regex" > /dev/null; then 10274 : 10275 else 10276 cat <<_LT_EOF 1>&2 10277 10278*** Warning: the command libtool uses to detect shared libraries, 10279*** $file_magic_cmd, produces output that libtool cannot recognize. 10280*** The result is that libtool may fail to recognize shared libraries 10281*** as such. This will affect the creation of libtool libraries that 10282*** depend on shared libraries, but programs linked with such libtool 10283*** libraries will work regardless of this problem. Nevertheless, you 10284*** may want to report the problem to your system manager and/or to 10285*** bug-libtool@gnu.org 10286 10287_LT_EOF 10288 fi ;; 10289 esac 10290 fi 10291 break 10292 fi 10293 done 10294 IFS="$lt_save_ifs" 10295 MAGIC_CMD="$lt_save_MAGIC_CMD" 10296 ;; 10297esac 10298fi 10299 10300MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10301if test -n "$MAGIC_CMD"; then 10302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10303$as_echo "$MAGIC_CMD" >&6; } 10304else 10305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10306$as_echo "no" >&6; } 10307fi 10308 10309 10310 else 10311 MAGIC_CMD=: 10312 fi 10313fi 10314 10315 fi 10316 ;; 10317esac 10318 10319# Use C for the default configuration in the libtool script 10320 10321lt_save_CC="$CC" 10322ac_ext=c 10323ac_cpp='$CPP $CPPFLAGS' 10324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10326ac_compiler_gnu=$ac_cv_c_compiler_gnu 10327 10328 10329# Source file extension for C test sources. 10330ac_ext=c 10331 10332# Object file extension for compiled C test sources. 10333objext=o 10334objext=$objext 10335 10336# Code to be used in simple compile tests 10337lt_simple_compile_test_code="int some_variable = 0;" 10338 10339# Code to be used in simple link tests 10340lt_simple_link_test_code='int main(){return(0);}' 10341 10342 10343 10344 10345 10346 10347 10348# If no C compiler was specified, use CC. 10349LTCC=${LTCC-"$CC"} 10350 10351# If no C compiler flags were specified, use CFLAGS. 10352LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10353 10354# Allow CC to be a program name with arguments. 10355compiler=$CC 10356 10357# Save the default compiler, since it gets overwritten when the other 10358# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 10359compiler_DEFAULT=$CC 10360 10361# save warnings/boilerplate of simple test code 10362ac_outfile=conftest.$ac_objext 10363echo "$lt_simple_compile_test_code" >conftest.$ac_ext 10364eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10365_lt_compiler_boilerplate=`cat conftest.err` 10366$RM conftest* 10367 10368ac_outfile=conftest.$ac_objext 10369echo "$lt_simple_link_test_code" >conftest.$ac_ext 10370eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10371_lt_linker_boilerplate=`cat conftest.err` 10372$RM -r conftest* 10373 10374 10375if test -n "$compiler"; then 10376 10377lt_prog_compiler_no_builtin_flag= 10378 10379if test "$GCC" = yes; then 10380 case $cc_basename in 10381 nvcc*) 10382 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 10383 *) 10384 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 10385 esac 10386 10387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 10388$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 10389if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 10390 $as_echo_n "(cached) " >&6 10391else 10392 lt_cv_prog_compiler_rtti_exceptions=no 10393 ac_outfile=conftest.$ac_objext 10394 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10395 lt_compiler_flag="-fno-rtti -fno-exceptions" 10396 # Insert the option either (1) after the last *FLAGS variable, or 10397 # (2) before a word containing "conftest.", or (3) at the end. 10398 # Note that $ac_compile itself does not contain backslashes and begins 10399 # with a dollar sign (not a hyphen), so the echo should work correctly. 10400 # The option is referenced via a variable to avoid confusing sed. 10401 lt_compile=`echo "$ac_compile" | $SED \ 10402 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10403 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10404 -e 's:$: $lt_compiler_flag:'` 10405 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10406 (eval "$lt_compile" 2>conftest.err) 10407 ac_status=$? 10408 cat conftest.err >&5 10409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10410 if (exit $ac_status) && test -s "$ac_outfile"; then 10411 # The compiler can only warn and ignore the option if not recognized 10412 # So say no if there are warnings other than the usual output. 10413 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10414 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10415 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10416 lt_cv_prog_compiler_rtti_exceptions=yes 10417 fi 10418 fi 10419 $RM conftest* 10420 10421fi 10422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 10423$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 10424 10425if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 10426 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 10427else 10428 : 10429fi 10430 10431fi 10432 10433 10434 10435 10436 10437 10438 lt_prog_compiler_wl= 10439lt_prog_compiler_pic= 10440lt_prog_compiler_static= 10441 10442 10443 if test "$GCC" = yes; then 10444 lt_prog_compiler_wl='-Wl,' 10445 lt_prog_compiler_static='-static' 10446 10447 case $host_os in 10448 aix*) 10449 # All AIX code is PIC. 10450 if test "$host_cpu" = ia64; then 10451 # AIX 5 now supports IA64 processor 10452 lt_prog_compiler_static='-Bstatic' 10453 fi 10454 ;; 10455 10456 amigaos*) 10457 case $host_cpu in 10458 powerpc) 10459 # see comment about AmigaOS4 .so support 10460 lt_prog_compiler_pic='-fPIC' 10461 ;; 10462 m68k) 10463 # FIXME: we need at least 68020 code to build shared libraries, but 10464 # adding the `-m68020' flag to GCC prevents building anything better, 10465 # like `-m68040'. 10466 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 10467 ;; 10468 esac 10469 ;; 10470 10471 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10472 # PIC is the default for these OSes. 10473 ;; 10474 10475 mingw* | cygwin* | pw32* | os2* | cegcc*) 10476 # This hack is so that the source file can tell whether it is being 10477 # built for inclusion in a dll (and should export symbols for example). 10478 # Although the cygwin gcc ignores -fPIC, still need this for old-style 10479 # (--disable-auto-import) libraries 10480 lt_prog_compiler_pic='-DDLL_EXPORT' 10481 ;; 10482 10483 darwin* | rhapsody*) 10484 # PIC is the default on this platform 10485 # Common symbols not allowed in MH_DYLIB files 10486 lt_prog_compiler_pic='-fno-common' 10487 ;; 10488 10489 haiku*) 10490 # PIC is the default for Haiku. 10491 # The "-static" flag exists, but is broken. 10492 lt_prog_compiler_static= 10493 ;; 10494 10495 hpux*) 10496 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 10497 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 10498 # sets the default TLS model and affects inlining. 10499 case $host_cpu in 10500 hppa*64*) 10501 # +Z the default 10502 ;; 10503 *) 10504 lt_prog_compiler_pic='-fPIC' 10505 ;; 10506 esac 10507 ;; 10508 10509 interix[3-9]*) 10510 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 10511 # Instead, we relocate shared libraries at runtime. 10512 ;; 10513 10514 msdosdjgpp*) 10515 # Just because we use GCC doesn't mean we suddenly get shared libraries 10516 # on systems that don't support them. 10517 lt_prog_compiler_can_build_shared=no 10518 enable_shared=no 10519 ;; 10520 10521 *nto* | *qnx*) 10522 # QNX uses GNU C++, but need to define -shared option too, otherwise 10523 # it will coredump. 10524 lt_prog_compiler_pic='-fPIC -shared' 10525 ;; 10526 10527 sysv4*MP*) 10528 if test -d /usr/nec; then 10529 lt_prog_compiler_pic=-Kconform_pic 10530 fi 10531 ;; 10532 10533 *) 10534 lt_prog_compiler_pic='-fPIC' 10535 ;; 10536 esac 10537 10538 case $cc_basename in 10539 nvcc*) # Cuda Compiler Driver 2.2 10540 lt_prog_compiler_wl='-Xlinker ' 10541 if test -n "$lt_prog_compiler_pic"; then 10542 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 10543 fi 10544 ;; 10545 esac 10546 else 10547 # PORTME Check for flag to pass linker flags through the system compiler. 10548 case $host_os in 10549 aix*) 10550 lt_prog_compiler_wl='-Wl,' 10551 if test "$host_cpu" = ia64; then 10552 # AIX 5 now supports IA64 processor 10553 lt_prog_compiler_static='-Bstatic' 10554 else 10555 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 10556 fi 10557 ;; 10558 10559 mingw* | cygwin* | pw32* | os2* | cegcc*) 10560 # This hack is so that the source file can tell whether it is being 10561 # built for inclusion in a dll (and should export symbols for example). 10562 lt_prog_compiler_pic='-DDLL_EXPORT' 10563 ;; 10564 10565 hpux9* | hpux10* | hpux11*) 10566 lt_prog_compiler_wl='-Wl,' 10567 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10568 # not for PA HP-UX. 10569 case $host_cpu in 10570 hppa*64*|ia64*) 10571 # +Z the default 10572 ;; 10573 *) 10574 lt_prog_compiler_pic='+Z' 10575 ;; 10576 esac 10577 # Is there a better lt_prog_compiler_static that works with the bundled CC? 10578 lt_prog_compiler_static='${wl}-a ${wl}archive' 10579 ;; 10580 10581 irix5* | irix6* | nonstopux*) 10582 lt_prog_compiler_wl='-Wl,' 10583 # PIC (with -KPIC) is the default. 10584 lt_prog_compiler_static='-non_shared' 10585 ;; 10586 10587 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10588 case $cc_basename in 10589 # old Intel for x86_64 which still supported -KPIC. 10590 ecc*) 10591 lt_prog_compiler_wl='-Wl,' 10592 lt_prog_compiler_pic='-KPIC' 10593 lt_prog_compiler_static='-static' 10594 ;; 10595 # icc used to be incompatible with GCC. 10596 # ICC 10 doesn't accept -KPIC any more. 10597 icc* | ifort*) 10598 lt_prog_compiler_wl='-Wl,' 10599 lt_prog_compiler_pic='-fPIC' 10600 lt_prog_compiler_static='-static' 10601 ;; 10602 # Lahey Fortran 8.1. 10603 lf95*) 10604 lt_prog_compiler_wl='-Wl,' 10605 lt_prog_compiler_pic='--shared' 10606 lt_prog_compiler_static='--static' 10607 ;; 10608 nagfor*) 10609 # NAG Fortran compiler 10610 lt_prog_compiler_wl='-Wl,-Wl,,' 10611 lt_prog_compiler_pic='-PIC' 10612 lt_prog_compiler_static='-Bstatic' 10613 ;; 10614 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 10615 # Portland Group compilers (*not* the Pentium gcc compiler, 10616 # which looks to be a dead project) 10617 lt_prog_compiler_wl='-Wl,' 10618 lt_prog_compiler_pic='-fpic' 10619 lt_prog_compiler_static='-Bstatic' 10620 ;; 10621 ccc*) 10622 lt_prog_compiler_wl='-Wl,' 10623 # All Alpha code is PIC. 10624 lt_prog_compiler_static='-non_shared' 10625 ;; 10626 xl* | bgxl* | bgf* | mpixl*) 10627 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 10628 lt_prog_compiler_wl='-Wl,' 10629 lt_prog_compiler_pic='-qpic' 10630 lt_prog_compiler_static='-qstaticlink' 10631 ;; 10632 *) 10633 case `$CC -V 2>&1 | sed 5q` in 10634 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 10635 # Sun Fortran 8.3 passes all unrecognized flags to the linker 10636 lt_prog_compiler_pic='-KPIC' 10637 lt_prog_compiler_static='-Bstatic' 10638 lt_prog_compiler_wl='' 10639 ;; 10640 *Sun\ F* | *Sun*Fortran*) 10641 lt_prog_compiler_pic='-KPIC' 10642 lt_prog_compiler_static='-Bstatic' 10643 lt_prog_compiler_wl='-Qoption ld ' 10644 ;; 10645 *Sun\ C*) 10646 # Sun C 5.9 10647 lt_prog_compiler_pic='-KPIC' 10648 lt_prog_compiler_static='-Bstatic' 10649 lt_prog_compiler_wl='-Wl,' 10650 ;; 10651 *Intel*\ [CF]*Compiler*) 10652 lt_prog_compiler_wl='-Wl,' 10653 lt_prog_compiler_pic='-fPIC' 10654 lt_prog_compiler_static='-static' 10655 ;; 10656 *Portland\ Group*) 10657 lt_prog_compiler_wl='-Wl,' 10658 lt_prog_compiler_pic='-fpic' 10659 lt_prog_compiler_static='-Bstatic' 10660 ;; 10661 esac 10662 ;; 10663 esac 10664 ;; 10665 10666 newsos6) 10667 lt_prog_compiler_pic='-KPIC' 10668 lt_prog_compiler_static='-Bstatic' 10669 ;; 10670 10671 *nto* | *qnx*) 10672 # QNX uses GNU C++, but need to define -shared option too, otherwise 10673 # it will coredump. 10674 lt_prog_compiler_pic='-fPIC -shared' 10675 ;; 10676 10677 osf3* | osf4* | osf5*) 10678 lt_prog_compiler_wl='-Wl,' 10679 # All OSF/1 code is PIC. 10680 lt_prog_compiler_static='-non_shared' 10681 ;; 10682 10683 rdos*) 10684 lt_prog_compiler_static='-non_shared' 10685 ;; 10686 10687 solaris*) 10688 lt_prog_compiler_pic='-KPIC' 10689 lt_prog_compiler_static='-Bstatic' 10690 case $cc_basename in 10691 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 10692 lt_prog_compiler_wl='-Qoption ld ';; 10693 *) 10694 lt_prog_compiler_wl='-Wl,';; 10695 esac 10696 ;; 10697 10698 sunos4*) 10699 lt_prog_compiler_wl='-Qoption ld ' 10700 lt_prog_compiler_pic='-PIC' 10701 lt_prog_compiler_static='-Bstatic' 10702 ;; 10703 10704 sysv4 | sysv4.2uw2* | sysv4.3*) 10705 lt_prog_compiler_wl='-Wl,' 10706 lt_prog_compiler_pic='-KPIC' 10707 lt_prog_compiler_static='-Bstatic' 10708 ;; 10709 10710 sysv4*MP*) 10711 if test -d /usr/nec ;then 10712 lt_prog_compiler_pic='-Kconform_pic' 10713 lt_prog_compiler_static='-Bstatic' 10714 fi 10715 ;; 10716 10717 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 10718 lt_prog_compiler_wl='-Wl,' 10719 lt_prog_compiler_pic='-KPIC' 10720 lt_prog_compiler_static='-Bstatic' 10721 ;; 10722 10723 unicos*) 10724 lt_prog_compiler_wl='-Wl,' 10725 lt_prog_compiler_can_build_shared=no 10726 ;; 10727 10728 uts4*) 10729 lt_prog_compiler_pic='-pic' 10730 lt_prog_compiler_static='-Bstatic' 10731 ;; 10732 10733 *) 10734 lt_prog_compiler_can_build_shared=no 10735 ;; 10736 esac 10737 fi 10738 10739case $host_os in 10740 # For platforms which do not support PIC, -DPIC is meaningless: 10741 *djgpp*) 10742 lt_prog_compiler_pic= 10743 ;; 10744 *) 10745 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10746 ;; 10747esac 10748 10749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 10750$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 10751if ${lt_cv_prog_compiler_pic+:} false; then : 10752 $as_echo_n "(cached) " >&6 10753else 10754 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 10755fi 10756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 10757$as_echo "$lt_cv_prog_compiler_pic" >&6; } 10758lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 10759 10760# 10761# Check to make sure the PIC flag actually works. 10762# 10763if test -n "$lt_prog_compiler_pic"; then 10764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10765$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 10766if ${lt_cv_prog_compiler_pic_works+:} false; then : 10767 $as_echo_n "(cached) " >&6 10768else 10769 lt_cv_prog_compiler_pic_works=no 10770 ac_outfile=conftest.$ac_objext 10771 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10772 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 10773 # Insert the option either (1) after the last *FLAGS variable, or 10774 # (2) before a word containing "conftest.", or (3) at the end. 10775 # Note that $ac_compile itself does not contain backslashes and begins 10776 # with a dollar sign (not a hyphen), so the echo should work correctly. 10777 # The option is referenced via a variable to avoid confusing sed. 10778 lt_compile=`echo "$ac_compile" | $SED \ 10779 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10780 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10781 -e 's:$: $lt_compiler_flag:'` 10782 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10783 (eval "$lt_compile" 2>conftest.err) 10784 ac_status=$? 10785 cat conftest.err >&5 10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10787 if (exit $ac_status) && test -s "$ac_outfile"; then 10788 # The compiler can only warn and ignore the option if not recognized 10789 # So say no if there are warnings other than the usual output. 10790 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10791 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10792 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10793 lt_cv_prog_compiler_pic_works=yes 10794 fi 10795 fi 10796 $RM conftest* 10797 10798fi 10799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10800$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 10801 10802if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 10803 case $lt_prog_compiler_pic in 10804 "" | " "*) ;; 10805 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10806 esac 10807else 10808 lt_prog_compiler_pic= 10809 lt_prog_compiler_can_build_shared=no 10810fi 10811 10812fi 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824# 10825# Check to make sure the static flag actually works. 10826# 10827wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10829$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10830if ${lt_cv_prog_compiler_static_works+:} false; then : 10831 $as_echo_n "(cached) " >&6 10832else 10833 lt_cv_prog_compiler_static_works=no 10834 save_LDFLAGS="$LDFLAGS" 10835 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10836 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10837 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10838 # The linker can only warn and ignore the option if not recognized 10839 # So say no if there are warnings 10840 if test -s conftest.err; then 10841 # Append any errors to the config.log. 10842 cat conftest.err 1>&5 10843 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10844 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10845 if diff conftest.exp conftest.er2 >/dev/null; then 10846 lt_cv_prog_compiler_static_works=yes 10847 fi 10848 else 10849 lt_cv_prog_compiler_static_works=yes 10850 fi 10851 fi 10852 $RM -r conftest* 10853 LDFLAGS="$save_LDFLAGS" 10854 10855fi 10856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10857$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 10858 10859if test x"$lt_cv_prog_compiler_static_works" = xyes; then 10860 : 10861else 10862 lt_prog_compiler_static= 10863fi 10864 10865 10866 10867 10868 10869 10870 10871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10872$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10873if ${lt_cv_prog_compiler_c_o+:} false; then : 10874 $as_echo_n "(cached) " >&6 10875else 10876 lt_cv_prog_compiler_c_o=no 10877 $RM -r conftest 2>/dev/null 10878 mkdir conftest 10879 cd conftest 10880 mkdir out 10881 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10882 10883 lt_compiler_flag="-o out/conftest2.$ac_objext" 10884 # Insert the option either (1) after the last *FLAGS variable, or 10885 # (2) before a word containing "conftest.", or (3) at the end. 10886 # Note that $ac_compile itself does not contain backslashes and begins 10887 # with a dollar sign (not a hyphen), so the echo should work correctly. 10888 lt_compile=`echo "$ac_compile" | $SED \ 10889 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10890 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10891 -e 's:$: $lt_compiler_flag:'` 10892 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10893 (eval "$lt_compile" 2>out/conftest.err) 10894 ac_status=$? 10895 cat out/conftest.err >&5 10896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10897 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10898 then 10899 # The compiler can only warn and ignore the option if not recognized 10900 # So say no if there are warnings 10901 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10902 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10903 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10904 lt_cv_prog_compiler_c_o=yes 10905 fi 10906 fi 10907 chmod u+w . 2>&5 10908 $RM conftest* 10909 # SGI C++ compiler will create directory out/ii_files/ for 10910 # template instantiation 10911 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10912 $RM out/* && rmdir out 10913 cd .. 10914 $RM -r conftest 10915 $RM conftest* 10916 10917fi 10918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10919$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10920 10921 10922 10923 10924 10925 10926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10927$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10928if ${lt_cv_prog_compiler_c_o+:} false; then : 10929 $as_echo_n "(cached) " >&6 10930else 10931 lt_cv_prog_compiler_c_o=no 10932 $RM -r conftest 2>/dev/null 10933 mkdir conftest 10934 cd conftest 10935 mkdir out 10936 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10937 10938 lt_compiler_flag="-o out/conftest2.$ac_objext" 10939 # Insert the option either (1) after the last *FLAGS variable, or 10940 # (2) before a word containing "conftest.", or (3) at the end. 10941 # Note that $ac_compile itself does not contain backslashes and begins 10942 # with a dollar sign (not a hyphen), so the echo should work correctly. 10943 lt_compile=`echo "$ac_compile" | $SED \ 10944 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10945 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10946 -e 's:$: $lt_compiler_flag:'` 10947 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10948 (eval "$lt_compile" 2>out/conftest.err) 10949 ac_status=$? 10950 cat out/conftest.err >&5 10951 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10952 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10953 then 10954 # The compiler can only warn and ignore the option if not recognized 10955 # So say no if there are warnings 10956 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10957 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10958 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10959 lt_cv_prog_compiler_c_o=yes 10960 fi 10961 fi 10962 chmod u+w . 2>&5 10963 $RM conftest* 10964 # SGI C++ compiler will create directory out/ii_files/ for 10965 # template instantiation 10966 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10967 $RM out/* && rmdir out 10968 cd .. 10969 $RM -r conftest 10970 $RM conftest* 10971 10972fi 10973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10974$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10975 10976 10977 10978 10979hard_links="nottested" 10980if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 10981 # do not overwrite the value of need_locks provided by the user 10982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10983$as_echo_n "checking if we can lock with hard links... " >&6; } 10984 hard_links=yes 10985 $RM conftest* 10986 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10987 touch conftest.a 10988 ln conftest.a conftest.b 2>&5 || hard_links=no 10989 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10991$as_echo "$hard_links" >&6; } 10992 if test "$hard_links" = no; then 10993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 10994$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 10995 need_locks=warn 10996 fi 10997else 10998 need_locks=no 10999fi 11000 11001 11002 11003 11004 11005 11006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11007$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11008 11009 runpath_var= 11010 allow_undefined_flag= 11011 always_export_symbols=no 11012 archive_cmds= 11013 archive_expsym_cmds= 11014 compiler_needs_object=no 11015 enable_shared_with_static_runtimes=no 11016 export_dynamic_flag_spec= 11017 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11018 hardcode_automatic=no 11019 hardcode_direct=no 11020 hardcode_direct_absolute=no 11021 hardcode_libdir_flag_spec= 11022 hardcode_libdir_separator= 11023 hardcode_minus_L=no 11024 hardcode_shlibpath_var=unsupported 11025 inherit_rpath=no 11026 link_all_deplibs=unknown 11027 module_cmds= 11028 module_expsym_cmds= 11029 old_archive_from_new_cmds= 11030 old_archive_from_expsyms_cmds= 11031 thread_safe_flag_spec= 11032 whole_archive_flag_spec= 11033 # include_expsyms should be a list of space-separated symbols to be *always* 11034 # included in the symbol list 11035 include_expsyms= 11036 # exclude_expsyms can be an extended regexp of symbols to exclude 11037 # it will be wrapped by ` (' and `)$', so one must not match beginning or 11038 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 11039 # as well as any symbol that contains `d'. 11040 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 11041 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 11042 # platforms (ab)use it in PIC code, but their linkers get confused if 11043 # the symbol is explicitly referenced. Since portable code cannot 11044 # rely on this symbol name, it's probably fine to never include it in 11045 # preloaded symbol tables. 11046 # Exclude shared library initialization/finalization symbols. 11047 extract_expsyms_cmds= 11048 11049 case $host_os in 11050 cygwin* | mingw* | pw32* | cegcc*) 11051 # FIXME: the MSVC++ port hasn't been tested in a loooong time 11052 # When not using gcc, we currently assume that we are using 11053 # Microsoft Visual C++. 11054 if test "$GCC" != yes; then 11055 with_gnu_ld=no 11056 fi 11057 ;; 11058 interix*) 11059 # we just hope/assume this is gcc and not c89 (= MSVC++) 11060 with_gnu_ld=yes 11061 ;; 11062 openbsd*) 11063 with_gnu_ld=no 11064 ;; 11065 linux* | k*bsd*-gnu | gnu*) 11066 link_all_deplibs=no 11067 ;; 11068 esac 11069 11070 ld_shlibs=yes 11071 11072 # On some targets, GNU ld is compatible enough with the native linker 11073 # that we're better off using the native interface for both. 11074 lt_use_gnu_ld_interface=no 11075 if test "$with_gnu_ld" = yes; then 11076 case $host_os in 11077 aix*) 11078 # The AIX port of GNU ld has always aspired to compatibility 11079 # with the native linker. However, as the warning in the GNU ld 11080 # block says, versions before 2.19.5* couldn't really create working 11081 # shared libraries, regardless of the interface used. 11082 case `$LD -v 2>&1` in 11083 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 11084 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 11085 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 11086 *) 11087 lt_use_gnu_ld_interface=yes 11088 ;; 11089 esac 11090 ;; 11091 *) 11092 lt_use_gnu_ld_interface=yes 11093 ;; 11094 esac 11095 fi 11096 11097 if test "$lt_use_gnu_ld_interface" = yes; then 11098 # If archive_cmds runs LD, not CC, wlarc should be empty 11099 wlarc='${wl}' 11100 11101 # Set some defaults for GNU ld with shared library support. These 11102 # are reset later if shared libraries are not supported. Putting them 11103 # here allows them to be overridden if necessary. 11104 runpath_var=LD_RUN_PATH 11105 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11106 export_dynamic_flag_spec='${wl}--export-dynamic' 11107 # ancient GNU ld didn't support --whole-archive et. al. 11108 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 11109 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11110 else 11111 whole_archive_flag_spec= 11112 fi 11113 supports_anon_versioning=no 11114 case `$LD -v 2>&1` in 11115 *GNU\ gold*) supports_anon_versioning=yes ;; 11116 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 11117 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 11118 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 11119 *\ 2.11.*) ;; # other 2.11 versions 11120 *) supports_anon_versioning=yes ;; 11121 esac 11122 11123 # See if GNU ld supports shared libraries. 11124 case $host_os in 11125 aix[3-9]*) 11126 # On AIX/PPC, the GNU linker is very broken 11127 if test "$host_cpu" != ia64; then 11128 ld_shlibs=no 11129 cat <<_LT_EOF 1>&2 11130 11131*** Warning: the GNU linker, at least up to release 2.19, is reported 11132*** to be unable to reliably create shared libraries on AIX. 11133*** Therefore, libtool is disabling shared libraries support. If you 11134*** really care for shared libraries, you may want to install binutils 11135*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 11136*** You will then need to restart the configuration process. 11137 11138_LT_EOF 11139 fi 11140 ;; 11141 11142 amigaos*) 11143 case $host_cpu in 11144 powerpc) 11145 # see comment about AmigaOS4 .so support 11146 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11147 archive_expsym_cmds='' 11148 ;; 11149 m68k) 11150 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)' 11151 hardcode_libdir_flag_spec='-L$libdir' 11152 hardcode_minus_L=yes 11153 ;; 11154 esac 11155 ;; 11156 11157 beos*) 11158 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11159 allow_undefined_flag=unsupported 11160 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11161 # support --undefined. This deserves some investigation. FIXME 11162 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11163 else 11164 ld_shlibs=no 11165 fi 11166 ;; 11167 11168 cygwin* | mingw* | pw32* | cegcc*) 11169 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 11170 # as there is no search path for DLLs. 11171 hardcode_libdir_flag_spec='-L$libdir' 11172 export_dynamic_flag_spec='${wl}--export-all-symbols' 11173 allow_undefined_flag=unsupported 11174 always_export_symbols=no 11175 enable_shared_with_static_runtimes=yes 11176 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' 11177 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 11178 11179 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 11180 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11181 # If the export-symbols file already is a .def file (1st line 11182 # is EXPORTS), use it as is; otherwise, prepend... 11183 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11184 cp $export_symbols $output_objdir/$soname.def; 11185 else 11186 echo EXPORTS > $output_objdir/$soname.def; 11187 cat $export_symbols >> $output_objdir/$soname.def; 11188 fi~ 11189 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11190 else 11191 ld_shlibs=no 11192 fi 11193 ;; 11194 11195 haiku*) 11196 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11197 link_all_deplibs=yes 11198 ;; 11199 11200 interix[3-9]*) 11201 hardcode_direct=no 11202 hardcode_shlibpath_var=no 11203 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11204 export_dynamic_flag_spec='${wl}-E' 11205 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11206 # Instead, shared libraries are loaded at an image base (0x10000000 by 11207 # default) and relocated if they conflict, which is a slow very memory 11208 # consuming and fragmenting process. To avoid this, we pick a random, 11209 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11210 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11211 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 11212 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' 11213 ;; 11214 11215 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 11216 tmp_diet=no 11217 if test "$host_os" = linux-dietlibc; then 11218 case $cc_basename in 11219 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 11220 esac 11221 fi 11222 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 11223 && test "$tmp_diet" = no 11224 then 11225 tmp_addflag=' $pic_flag' 11226 tmp_sharedflag='-shared' 11227 case $cc_basename,$host_cpu in 11228 pgcc*) # Portland Group C compiler 11229 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' 11230 tmp_addflag=' $pic_flag' 11231 ;; 11232 pgf77* | pgf90* | pgf95* | pgfortran*) 11233 # Portland Group f77 and f90 compilers 11234 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' 11235 tmp_addflag=' $pic_flag -Mnomain' ;; 11236 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 11237 tmp_addflag=' -i_dynamic' ;; 11238 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 11239 tmp_addflag=' -i_dynamic -nofor_main' ;; 11240 ifc* | ifort*) # Intel Fortran compiler 11241 tmp_addflag=' -nofor_main' ;; 11242 lf95*) # Lahey Fortran 8.1 11243 whole_archive_flag_spec= 11244 tmp_sharedflag='--shared' ;; 11245 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 11246 tmp_sharedflag='-qmkshrobj' 11247 tmp_addflag= ;; 11248 nvcc*) # Cuda Compiler Driver 2.2 11249 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' 11250 compiler_needs_object=yes 11251 ;; 11252 esac 11253 case `$CC -V 2>&1 | sed 5q` in 11254 *Sun\ C*) # Sun C 5.9 11255 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' 11256 compiler_needs_object=yes 11257 tmp_sharedflag='-G' ;; 11258 *Sun\ F*) # Sun Fortran 8.3 11259 tmp_sharedflag='-G' ;; 11260 esac 11261 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11262 11263 if test "x$supports_anon_versioning" = xyes; then 11264 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11265 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11266 echo "local: *; };" >> $output_objdir/$libname.ver~ 11267 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 11268 fi 11269 11270 case $cc_basename in 11271 xlf* | bgf* | bgxlf* | mpixlf*) 11272 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 11273 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 11274 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11275 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 11276 if test "x$supports_anon_versioning" = xyes; then 11277 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11278 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11279 echo "local: *; };" >> $output_objdir/$libname.ver~ 11280 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 11281 fi 11282 ;; 11283 esac 11284 else 11285 ld_shlibs=no 11286 fi 11287 ;; 11288 11289 netbsd* | netbsdelf*-gnu) 11290 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11291 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 11292 wlarc= 11293 else 11294 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11295 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11296 fi 11297 ;; 11298 11299 solaris*) 11300 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 11301 ld_shlibs=no 11302 cat <<_LT_EOF 1>&2 11303 11304*** Warning: The releases 2.8.* of the GNU linker cannot reliably 11305*** create shared libraries on Solaris systems. Therefore, libtool 11306*** is disabling shared libraries support. We urge you to upgrade GNU 11307*** binutils to release 2.9.1 or newer. Another option is to modify 11308*** your PATH or compiler configuration so that the native linker is 11309*** used, and then restart. 11310 11311_LT_EOF 11312 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11313 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11314 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11315 else 11316 ld_shlibs=no 11317 fi 11318 ;; 11319 11320 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 11321 case `$LD -v 2>&1` in 11322 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 11323 ld_shlibs=no 11324 cat <<_LT_EOF 1>&2 11325 11326*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 11327*** reliably create shared libraries on SCO systems. Therefore, libtool 11328*** is disabling shared libraries support. We urge you to upgrade GNU 11329*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 11330*** your PATH or compiler configuration so that the native linker is 11331*** used, and then restart. 11332 11333_LT_EOF 11334 ;; 11335 *) 11336 # For security reasons, it is highly recommended that you always 11337 # use absolute paths for naming shared libraries, and exclude the 11338 # DT_RUNPATH tag from executables and libraries. But doing so 11339 # requires that you compile everything twice, which is a pain. 11340 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11341 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11342 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11343 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11344 else 11345 ld_shlibs=no 11346 fi 11347 ;; 11348 esac 11349 ;; 11350 11351 sunos4*) 11352 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11353 wlarc= 11354 hardcode_direct=yes 11355 hardcode_shlibpath_var=no 11356 ;; 11357 11358 *) 11359 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11360 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11361 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11362 else 11363 ld_shlibs=no 11364 fi 11365 ;; 11366 esac 11367 11368 if test "$ld_shlibs" = no; then 11369 runpath_var= 11370 hardcode_libdir_flag_spec= 11371 export_dynamic_flag_spec= 11372 whole_archive_flag_spec= 11373 fi 11374 else 11375 # PORTME fill in a description of your system's linker (not GNU ld) 11376 case $host_os in 11377 aix3*) 11378 allow_undefined_flag=unsupported 11379 always_export_symbols=yes 11380 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' 11381 # Note: this linker hardcodes the directories in LIBPATH if there 11382 # are no directories specified by -L. 11383 hardcode_minus_L=yes 11384 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 11385 # Neither direct hardcoding nor static linking is supported with a 11386 # broken collect2. 11387 hardcode_direct=unsupported 11388 fi 11389 ;; 11390 11391 aix[4-9]*) 11392 if test "$host_cpu" = ia64; then 11393 # On IA64, the linker does run time linking by default, so we don't 11394 # have to do anything special. 11395 aix_use_runtimelinking=no 11396 exp_sym_flag='-Bexport' 11397 no_entry_flag="" 11398 else 11399 # If we're using GNU nm, then we don't want the "-C" option. 11400 # -C means demangle to AIX nm, but means don't demangle with GNU nm 11401 # Also, AIX nm treats weak defined symbols like other global 11402 # defined symbols, whereas GNU nm marks them as "W". 11403 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 11404 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' 11405 else 11406 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' 11407 fi 11408 aix_use_runtimelinking=no 11409 11410 # Test if we are trying to use run time linking or normal 11411 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11412 # need to do runtime linking. 11413 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11414 for ld_flag in $LDFLAGS; do 11415 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 11416 aix_use_runtimelinking=yes 11417 break 11418 fi 11419 done 11420 ;; 11421 esac 11422 11423 exp_sym_flag='-bexport' 11424 no_entry_flag='-bnoentry' 11425 fi 11426 11427 # When large executables or shared objects are built, AIX ld can 11428 # have problems creating the table of contents. If linking a library 11429 # or program results in "error TOC overflow" add -mminimal-toc to 11430 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11431 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11432 11433 archive_cmds='' 11434 hardcode_direct=yes 11435 hardcode_direct_absolute=yes 11436 hardcode_libdir_separator=':' 11437 link_all_deplibs=yes 11438 file_list_spec='${wl}-f,' 11439 11440 if test "$GCC" = yes; then 11441 case $host_os in aix4.[012]|aix4.[012].*) 11442 # We only want to do this on AIX 4.2 and lower, the check 11443 # below for broken collect2 doesn't work under 4.3+ 11444 collect2name=`${CC} -print-prog-name=collect2` 11445 if test -f "$collect2name" && 11446 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 11447 then 11448 # We have reworked collect2 11449 : 11450 else 11451 # We have old collect2 11452 hardcode_direct=unsupported 11453 # It fails to find uninstalled libraries when the uninstalled 11454 # path is not listed in the libpath. Setting hardcode_minus_L 11455 # to unsupported forces relinking 11456 hardcode_minus_L=yes 11457 hardcode_libdir_flag_spec='-L$libdir' 11458 hardcode_libdir_separator= 11459 fi 11460 ;; 11461 esac 11462 shared_flag='-shared' 11463 if test "$aix_use_runtimelinking" = yes; then 11464 shared_flag="$shared_flag "'${wl}-G' 11465 fi 11466 link_all_deplibs=no 11467 else 11468 # not using gcc 11469 if test "$host_cpu" = ia64; then 11470 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11471 # chokes on -Wl,-G. The following line is correct: 11472 shared_flag='-G' 11473 else 11474 if test "$aix_use_runtimelinking" = yes; then 11475 shared_flag='${wl}-G' 11476 else 11477 shared_flag='${wl}-bM:SRE' 11478 fi 11479 fi 11480 fi 11481 11482 export_dynamic_flag_spec='${wl}-bexpall' 11483 # It seems that -bexpall does not export symbols beginning with 11484 # underscore (_), so it is better to generate a list of symbols to export. 11485 always_export_symbols=yes 11486 if test "$aix_use_runtimelinking" = yes; then 11487 # Warning - without using the other runtime loading flags (-brtl), 11488 # -berok will link without error, but may produce a broken library. 11489 allow_undefined_flag='-berok' 11490 # Determine the default libpath from the value encoded in an 11491 # empty executable. 11492 if test "${lt_cv_aix_libpath+set}" = set; then 11493 aix_libpath=$lt_cv_aix_libpath 11494else 11495 if ${lt_cv_aix_libpath_+:} false; then : 11496 $as_echo_n "(cached) " >&6 11497else 11498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11499/* end confdefs.h. */ 11500 11501int 11502main () 11503{ 11504 11505 ; 11506 return 0; 11507} 11508_ACEOF 11509if ac_fn_c_try_link "$LINENO"; then : 11510 11511 lt_aix_libpath_sed=' 11512 /Import File Strings/,/^$/ { 11513 /^0/ { 11514 s/^0 *\([^ ]*\) *$/\1/ 11515 p 11516 } 11517 }' 11518 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11519 # Check for a 64-bit object if we didn't find anything. 11520 if test -z "$lt_cv_aix_libpath_"; then 11521 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11522 fi 11523fi 11524rm -f core conftest.err conftest.$ac_objext \ 11525 conftest$ac_exeext conftest.$ac_ext 11526 if test -z "$lt_cv_aix_libpath_"; then 11527 lt_cv_aix_libpath_="/usr/lib:/lib" 11528 fi 11529 11530fi 11531 11532 aix_libpath=$lt_cv_aix_libpath_ 11533fi 11534 11535 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 11536 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" 11537 else 11538 if test "$host_cpu" = ia64; then 11539 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 11540 allow_undefined_flag="-z nodefs" 11541 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" 11542 else 11543 # Determine the default libpath from the value encoded in an 11544 # empty executable. 11545 if test "${lt_cv_aix_libpath+set}" = set; then 11546 aix_libpath=$lt_cv_aix_libpath 11547else 11548 if ${lt_cv_aix_libpath_+:} false; then : 11549 $as_echo_n "(cached) " >&6 11550else 11551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11552/* end confdefs.h. */ 11553 11554int 11555main () 11556{ 11557 11558 ; 11559 return 0; 11560} 11561_ACEOF 11562if ac_fn_c_try_link "$LINENO"; then : 11563 11564 lt_aix_libpath_sed=' 11565 /Import File Strings/,/^$/ { 11566 /^0/ { 11567 s/^0 *\([^ ]*\) *$/\1/ 11568 p 11569 } 11570 }' 11571 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11572 # Check for a 64-bit object if we didn't find anything. 11573 if test -z "$lt_cv_aix_libpath_"; then 11574 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11575 fi 11576fi 11577rm -f core conftest.err conftest.$ac_objext \ 11578 conftest$ac_exeext conftest.$ac_ext 11579 if test -z "$lt_cv_aix_libpath_"; then 11580 lt_cv_aix_libpath_="/usr/lib:/lib" 11581 fi 11582 11583fi 11584 11585 aix_libpath=$lt_cv_aix_libpath_ 11586fi 11587 11588 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 11589 # Warning - without using the other run time loading flags, 11590 # -berok will link without error, but may produce a broken library. 11591 no_undefined_flag=' ${wl}-bernotok' 11592 allow_undefined_flag=' ${wl}-berok' 11593 if test "$with_gnu_ld" = yes; then 11594 # We only use this code for GNU lds that support --whole-archive. 11595 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11596 else 11597 # Exported symbols can be pulled into shared objects from archives 11598 whole_archive_flag_spec='$convenience' 11599 fi 11600 archive_cmds_need_lc=yes 11601 # This is similar to how AIX traditionally builds its shared libraries. 11602 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' 11603 fi 11604 fi 11605 ;; 11606 11607 amigaos*) 11608 case $host_cpu in 11609 powerpc) 11610 # see comment about AmigaOS4 .so support 11611 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11612 archive_expsym_cmds='' 11613 ;; 11614 m68k) 11615 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)' 11616 hardcode_libdir_flag_spec='-L$libdir' 11617 hardcode_minus_L=yes 11618 ;; 11619 esac 11620 ;; 11621 11622 bsdi[45]*) 11623 export_dynamic_flag_spec=-rdynamic 11624 ;; 11625 11626 cygwin* | mingw* | pw32* | cegcc*) 11627 # When not using gcc, we currently assume that we are using 11628 # Microsoft Visual C++. 11629 # hardcode_libdir_flag_spec is actually meaningless, as there is 11630 # no search path for DLLs. 11631 case $cc_basename in 11632 cl*) 11633 # Native MSVC 11634 hardcode_libdir_flag_spec=' ' 11635 allow_undefined_flag=unsupported 11636 always_export_symbols=yes 11637 file_list_spec='@' 11638 # Tell ltmain to make .lib files, not .a files. 11639 libext=lib 11640 # Tell ltmain to make .dll files, not .so files. 11641 shrext_cmds=".dll" 11642 # FIXME: Setting linknames here is a bad hack. 11643 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 11644 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11645 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 11646 else 11647 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 11648 fi~ 11649 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 11650 linknames=' 11651 # The linker will not automatically build a static lib if we build a DLL. 11652 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 11653 enable_shared_with_static_runtimes=yes 11654 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 11655 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 11656 # Don't use ranlib 11657 old_postinstall_cmds='chmod 644 $oldlib' 11658 postlink_cmds='lt_outputfile="@OUTPUT@"~ 11659 lt_tool_outputfile="@TOOL_OUTPUT@"~ 11660 case $lt_outputfile in 11661 *.exe|*.EXE) ;; 11662 *) 11663 lt_outputfile="$lt_outputfile.exe" 11664 lt_tool_outputfile="$lt_tool_outputfile.exe" 11665 ;; 11666 esac~ 11667 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 11668 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 11669 $RM "$lt_outputfile.manifest"; 11670 fi' 11671 ;; 11672 *) 11673 # Assume MSVC wrapper 11674 hardcode_libdir_flag_spec=' ' 11675 allow_undefined_flag=unsupported 11676 # Tell ltmain to make .lib files, not .a files. 11677 libext=lib 11678 # Tell ltmain to make .dll files, not .so files. 11679 shrext_cmds=".dll" 11680 # FIXME: Setting linknames here is a bad hack. 11681 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 11682 # The linker will automatically build a .lib file if we build a DLL. 11683 old_archive_from_new_cmds='true' 11684 # FIXME: Should let the user specify the lib program. 11685 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 11686 enable_shared_with_static_runtimes=yes 11687 ;; 11688 esac 11689 ;; 11690 11691 darwin* | rhapsody*) 11692 11693 11694 archive_cmds_need_lc=no 11695 hardcode_direct=no 11696 hardcode_automatic=yes 11697 hardcode_shlibpath_var=unsupported 11698 if test "$lt_cv_ld_force_load" = "yes"; then 11699 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\"`' 11700 11701 else 11702 whole_archive_flag_spec='' 11703 fi 11704 link_all_deplibs=yes 11705 allow_undefined_flag="$_lt_dar_allow_undefined" 11706 case $cc_basename in 11707 ifort*) _lt_dar_can_shared=yes ;; 11708 *) _lt_dar_can_shared=$GCC ;; 11709 esac 11710 if test "$_lt_dar_can_shared" = "yes"; then 11711 output_verbose_link_cmd=func_echo_all 11712 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 11713 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 11714 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}" 11715 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}" 11716 11717 else 11718 ld_shlibs=no 11719 fi 11720 11721 ;; 11722 11723 dgux*) 11724 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11725 hardcode_libdir_flag_spec='-L$libdir' 11726 hardcode_shlibpath_var=no 11727 ;; 11728 11729 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11730 # support. Future versions do this automatically, but an explicit c++rt0.o 11731 # does not break anything, and helps significantly (at the cost of a little 11732 # extra space). 11733 freebsd2.2*) 11734 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11735 hardcode_libdir_flag_spec='-R$libdir' 11736 hardcode_direct=yes 11737 hardcode_shlibpath_var=no 11738 ;; 11739 11740 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11741 freebsd2.*) 11742 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11743 hardcode_direct=yes 11744 hardcode_minus_L=yes 11745 hardcode_shlibpath_var=no 11746 ;; 11747 11748 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11749 freebsd* | dragonfly*) 11750 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11751 hardcode_libdir_flag_spec='-R$libdir' 11752 hardcode_direct=yes 11753 hardcode_shlibpath_var=no 11754 ;; 11755 11756 hpux9*) 11757 if test "$GCC" = yes; then 11758 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' 11759 else 11760 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' 11761 fi 11762 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11763 hardcode_libdir_separator=: 11764 hardcode_direct=yes 11765 11766 # hardcode_minus_L: Not really in the search PATH, 11767 # but as the default location of the library. 11768 hardcode_minus_L=yes 11769 export_dynamic_flag_spec='${wl}-E' 11770 ;; 11771 11772 hpux10*) 11773 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 11774 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11775 else 11776 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11777 fi 11778 if test "$with_gnu_ld" = no; then 11779 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11780 hardcode_libdir_separator=: 11781 hardcode_direct=yes 11782 hardcode_direct_absolute=yes 11783 export_dynamic_flag_spec='${wl}-E' 11784 # hardcode_minus_L: Not really in the search PATH, 11785 # but as the default location of the library. 11786 hardcode_minus_L=yes 11787 fi 11788 ;; 11789 11790 hpux11*) 11791 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 11792 case $host_cpu in 11793 hppa*64*) 11794 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11795 ;; 11796 ia64*) 11797 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11798 ;; 11799 *) 11800 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11801 ;; 11802 esac 11803 else 11804 case $host_cpu in 11805 hppa*64*) 11806 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11807 ;; 11808 ia64*) 11809 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11810 ;; 11811 *) 11812 11813 # Older versions of the 11.00 compiler do not understand -b yet 11814 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11816$as_echo_n "checking if $CC understands -b... " >&6; } 11817if ${lt_cv_prog_compiler__b+:} false; then : 11818 $as_echo_n "(cached) " >&6 11819else 11820 lt_cv_prog_compiler__b=no 11821 save_LDFLAGS="$LDFLAGS" 11822 LDFLAGS="$LDFLAGS -b" 11823 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11824 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11825 # The linker can only warn and ignore the option if not recognized 11826 # So say no if there are warnings 11827 if test -s conftest.err; then 11828 # Append any errors to the config.log. 11829 cat conftest.err 1>&5 11830 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11831 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11832 if diff conftest.exp conftest.er2 >/dev/null; then 11833 lt_cv_prog_compiler__b=yes 11834 fi 11835 else 11836 lt_cv_prog_compiler__b=yes 11837 fi 11838 fi 11839 $RM -r conftest* 11840 LDFLAGS="$save_LDFLAGS" 11841 11842fi 11843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11844$as_echo "$lt_cv_prog_compiler__b" >&6; } 11845 11846if test x"$lt_cv_prog_compiler__b" = xyes; then 11847 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11848else 11849 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11850fi 11851 11852 ;; 11853 esac 11854 fi 11855 if test "$with_gnu_ld" = no; then 11856 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11857 hardcode_libdir_separator=: 11858 11859 case $host_cpu in 11860 hppa*64*|ia64*) 11861 hardcode_direct=no 11862 hardcode_shlibpath_var=no 11863 ;; 11864 *) 11865 hardcode_direct=yes 11866 hardcode_direct_absolute=yes 11867 export_dynamic_flag_spec='${wl}-E' 11868 11869 # hardcode_minus_L: Not really in the search PATH, 11870 # but as the default location of the library. 11871 hardcode_minus_L=yes 11872 ;; 11873 esac 11874 fi 11875 ;; 11876 11877 irix5* | irix6* | nonstopux*) 11878 if test "$GCC" = yes; then 11879 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' 11880 # Try to use the -exported_symbol ld option, if it does not 11881 # work, assume that -exports_file does not work either and 11882 # implicitly export all symbols. 11883 # This should be the same for all languages, so no per-tag cache variable. 11884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11885$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11886if ${lt_cv_irix_exported_symbol+:} false; then : 11887 $as_echo_n "(cached) " >&6 11888else 11889 save_LDFLAGS="$LDFLAGS" 11890 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 11891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11892/* end confdefs.h. */ 11893int foo (void) { return 0; } 11894_ACEOF 11895if ac_fn_c_try_link "$LINENO"; then : 11896 lt_cv_irix_exported_symbol=yes 11897else 11898 lt_cv_irix_exported_symbol=no 11899fi 11900rm -f core conftest.err conftest.$ac_objext \ 11901 conftest$ac_exeext conftest.$ac_ext 11902 LDFLAGS="$save_LDFLAGS" 11903fi 11904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11905$as_echo "$lt_cv_irix_exported_symbol" >&6; } 11906 if test "$lt_cv_irix_exported_symbol" = yes; then 11907 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' 11908 fi 11909 else 11910 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' 11911 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' 11912 fi 11913 archive_cmds_need_lc='no' 11914 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11915 hardcode_libdir_separator=: 11916 inherit_rpath=yes 11917 link_all_deplibs=yes 11918 ;; 11919 11920 netbsd* | netbsdelf*-gnu) 11921 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11922 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11923 else 11924 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11925 fi 11926 hardcode_libdir_flag_spec='-R$libdir' 11927 hardcode_direct=yes 11928 hardcode_shlibpath_var=no 11929 ;; 11930 11931 newsos6) 11932 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11933 hardcode_direct=yes 11934 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11935 hardcode_libdir_separator=: 11936 hardcode_shlibpath_var=no 11937 ;; 11938 11939 *nto* | *qnx*) 11940 ;; 11941 11942 openbsd*) 11943 if test -f /usr/libexec/ld.so; then 11944 hardcode_direct=yes 11945 hardcode_shlibpath_var=no 11946 hardcode_direct_absolute=yes 11947 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11948 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11949 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 11950 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11951 export_dynamic_flag_spec='${wl}-E' 11952 else 11953 case $host_os in 11954 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 11955 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11956 hardcode_libdir_flag_spec='-R$libdir' 11957 ;; 11958 *) 11959 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11960 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11961 ;; 11962 esac 11963 fi 11964 else 11965 ld_shlibs=no 11966 fi 11967 ;; 11968 11969 os2*) 11970 hardcode_libdir_flag_spec='-L$libdir' 11971 hardcode_minus_L=yes 11972 allow_undefined_flag=unsupported 11973 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' 11974 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 11975 ;; 11976 11977 osf3*) 11978 if test "$GCC" = yes; then 11979 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 11980 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' 11981 else 11982 allow_undefined_flag=' -expect_unresolved \*' 11983 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' 11984 fi 11985 archive_cmds_need_lc='no' 11986 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11987 hardcode_libdir_separator=: 11988 ;; 11989 11990 osf4* | osf5*) # as osf3* with the addition of -msym flag 11991 if test "$GCC" = yes; then 11992 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 11993 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' 11994 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11995 else 11996 allow_undefined_flag=' -expect_unresolved \*' 11997 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' 11998 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~ 11999 $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' 12000 12001 # Both c and cxx compiler support -rpath directly 12002 hardcode_libdir_flag_spec='-rpath $libdir' 12003 fi 12004 archive_cmds_need_lc='no' 12005 hardcode_libdir_separator=: 12006 ;; 12007 12008 solaris*) 12009 no_undefined_flag=' -z defs' 12010 if test "$GCC" = yes; then 12011 wlarc='${wl}' 12012 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 12013 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12014 $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' 12015 else 12016 case `$CC -V 2>&1` in 12017 *"Compilers 5.0"*) 12018 wlarc='' 12019 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 12020 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12021 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 12022 ;; 12023 *) 12024 wlarc='${wl}' 12025 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 12026 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12027 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 12028 ;; 12029 esac 12030 fi 12031 hardcode_libdir_flag_spec='-R$libdir' 12032 hardcode_shlibpath_var=no 12033 case $host_os in 12034 solaris2.[0-5] | solaris2.[0-5].*) ;; 12035 *) 12036 # The compiler driver will combine and reorder linker options, 12037 # but understands `-z linker_flag'. GCC discards it without `$wl', 12038 # but is careful enough not to reorder. 12039 # Supported since Solaris 2.6 (maybe 2.5.1?) 12040 if test "$GCC" = yes; then 12041 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 12042 else 12043 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 12044 fi 12045 ;; 12046 esac 12047 link_all_deplibs=yes 12048 ;; 12049 12050 sunos4*) 12051 if test "x$host_vendor" = xsequent; then 12052 # Use $CC to link under sequent, because it throws in some extra .o 12053 # files that make .init and .fini sections work. 12054 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 12055 else 12056 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 12057 fi 12058 hardcode_libdir_flag_spec='-L$libdir' 12059 hardcode_direct=yes 12060 hardcode_minus_L=yes 12061 hardcode_shlibpath_var=no 12062 ;; 12063 12064 sysv4) 12065 case $host_vendor in 12066 sni) 12067 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12068 hardcode_direct=yes # is this really true??? 12069 ;; 12070 siemens) 12071 ## LD is ld it makes a PLAMLIB 12072 ## CC just makes a GrossModule. 12073 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 12074 reload_cmds='$CC -r -o $output$reload_objs' 12075 hardcode_direct=no 12076 ;; 12077 motorola) 12078 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12079 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 12080 ;; 12081 esac 12082 runpath_var='LD_RUN_PATH' 12083 hardcode_shlibpath_var=no 12084 ;; 12085 12086 sysv4.3*) 12087 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12088 hardcode_shlibpath_var=no 12089 export_dynamic_flag_spec='-Bexport' 12090 ;; 12091 12092 sysv4*MP*) 12093 if test -d /usr/nec; then 12094 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12095 hardcode_shlibpath_var=no 12096 runpath_var=LD_RUN_PATH 12097 hardcode_runpath_var=yes 12098 ld_shlibs=yes 12099 fi 12100 ;; 12101 12102 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12103 no_undefined_flag='${wl}-z,text' 12104 archive_cmds_need_lc=no 12105 hardcode_shlibpath_var=no 12106 runpath_var='LD_RUN_PATH' 12107 12108 if test "$GCC" = yes; then 12109 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12110 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12111 else 12112 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12113 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12114 fi 12115 ;; 12116 12117 sysv5* | sco3.2v5* | sco5v6*) 12118 # Note: We can NOT use -z defs as we might desire, because we do not 12119 # link with -lc, and that would cause any symbols used from libc to 12120 # always be unresolved, which means just about no library would 12121 # ever link correctly. If we're not using GNU ld we use -z text 12122 # though, which does catch some bad symbols but isn't as heavy-handed 12123 # as -z defs. 12124 no_undefined_flag='${wl}-z,text' 12125 allow_undefined_flag='${wl}-z,nodefs' 12126 archive_cmds_need_lc=no 12127 hardcode_shlibpath_var=no 12128 hardcode_libdir_flag_spec='${wl}-R,$libdir' 12129 hardcode_libdir_separator=':' 12130 link_all_deplibs=yes 12131 export_dynamic_flag_spec='${wl}-Bexport' 12132 runpath_var='LD_RUN_PATH' 12133 12134 if test "$GCC" = yes; then 12135 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12136 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12137 else 12138 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12139 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12140 fi 12141 ;; 12142 12143 uts4*) 12144 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12145 hardcode_libdir_flag_spec='-L$libdir' 12146 hardcode_shlibpath_var=no 12147 ;; 12148 12149 *) 12150 ld_shlibs=no 12151 ;; 12152 esac 12153 12154 if test x$host_vendor = xsni; then 12155 case $host in 12156 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 12157 export_dynamic_flag_spec='${wl}-Blargedynsym' 12158 ;; 12159 esac 12160 fi 12161 fi 12162 12163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 12164$as_echo "$ld_shlibs" >&6; } 12165test "$ld_shlibs" = no && can_build_shared=no 12166 12167with_gnu_ld=$with_gnu_ld 12168 12169 12170 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183# 12184# Do we need to explicitly link libc? 12185# 12186case "x$archive_cmds_need_lc" in 12187x|xyes) 12188 # Assume -lc should be added 12189 archive_cmds_need_lc=yes 12190 12191 if test "$enable_shared" = yes && test "$GCC" = yes; then 12192 case $archive_cmds in 12193 *'~'*) 12194 # FIXME: we may have to deal with multi-command sequences. 12195 ;; 12196 '$CC '*) 12197 # Test whether the compiler implicitly links with -lc since on some 12198 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12199 # to ld, don't add -lc before -lgcc. 12200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 12201$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 12202if ${lt_cv_archive_cmds_need_lc+:} false; then : 12203 $as_echo_n "(cached) " >&6 12204else 12205 $RM conftest* 12206 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12207 12208 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12209 (eval $ac_compile) 2>&5 12210 ac_status=$? 12211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12212 test $ac_status = 0; } 2>conftest.err; then 12213 soname=conftest 12214 lib=conftest 12215 libobjs=conftest.$ac_objext 12216 deplibs= 12217 wl=$lt_prog_compiler_wl 12218 pic_flag=$lt_prog_compiler_pic 12219 compiler_flags=-v 12220 linker_flags=-v 12221 verstring= 12222 output_objdir=. 12223 libname=conftest 12224 lt_save_allow_undefined_flag=$allow_undefined_flag 12225 allow_undefined_flag= 12226 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 12227 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 12228 ac_status=$? 12229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12230 test $ac_status = 0; } 12231 then 12232 lt_cv_archive_cmds_need_lc=no 12233 else 12234 lt_cv_archive_cmds_need_lc=yes 12235 fi 12236 allow_undefined_flag=$lt_save_allow_undefined_flag 12237 else 12238 cat conftest.err 1>&5 12239 fi 12240 $RM conftest* 12241 12242fi 12243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 12244$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 12245 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 12246 ;; 12247 esac 12248 fi 12249 ;; 12250esac 12251 12252 12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 12263 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280 12281 12282 12283 12284 12285 12286 12287 12288 12289 12290 12291 12292 12293 12294 12295 12296 12297 12298 12299 12300 12301 12302 12303 12304 12305 12306 12307 12308 12309 12310 12311 12312 12313 12314 12315 12316 12317 12318 12319 12320 12321 12322 12323 12324 12325 12326 12327 12328 12329 12330 12331 12332 12333 12334 12335 12336 12337 12338 12339 12340 12341 12342 12343 12344 12345 12346 12347 12348 12349 12350 12351 12352 12353 12354 12355 12356 12357 12358 12359 12360 12361 12362 12363 12364 12365 12366 12367 12368 12369 12370 12371 12372 12373 12374 12375 12376 12377 12378 12379 12380 12381 12382 12383 12384 12385 12386 12387 12388 12389 12390 12391 12392 12393 12394 12395 12396 12397 12398 12399 12400 12401 12402 12403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 12404$as_echo_n "checking dynamic linker characteristics... " >&6; } 12405 12406if test "$GCC" = yes; then 12407 case $host_os in 12408 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 12409 *) lt_awk_arg="/^libraries:/" ;; 12410 esac 12411 case $host_os in 12412 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 12413 *) lt_sed_strip_eq="s,=/,/,g" ;; 12414 esac 12415 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 12416 case $lt_search_path_spec in 12417 *\;*) 12418 # if the path contains ";" then we assume it to be the separator 12419 # otherwise default to the standard path separator (i.e. ":") - it is 12420 # assumed that no part of a normal pathname contains ";" but that should 12421 # okay in the real world where ";" in dirpaths is itself problematic. 12422 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 12423 ;; 12424 *) 12425 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 12426 ;; 12427 esac 12428 # Ok, now we have the path, separated by spaces, we can step through it 12429 # and add multilib dir if necessary. 12430 lt_tmp_lt_search_path_spec= 12431 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 12432 for lt_sys_path in $lt_search_path_spec; do 12433 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 12434 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 12435 else 12436 test -d "$lt_sys_path" && \ 12437 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 12438 fi 12439 done 12440 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 12441BEGIN {RS=" "; FS="/|\n";} { 12442 lt_foo=""; 12443 lt_count=0; 12444 for (lt_i = NF; lt_i > 0; lt_i--) { 12445 if ($lt_i != "" && $lt_i != ".") { 12446 if ($lt_i == "..") { 12447 lt_count++; 12448 } else { 12449 if (lt_count == 0) { 12450 lt_foo="/" $lt_i lt_foo; 12451 } else { 12452 lt_count--; 12453 } 12454 } 12455 } 12456 } 12457 if (lt_foo != "") { lt_freq[lt_foo]++; } 12458 if (lt_freq[lt_foo] == 1) { print lt_foo; } 12459}'` 12460 # AWK program above erroneously prepends '/' to C:/dos/paths 12461 # for these hosts. 12462 case $host_os in 12463 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 12464 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 12465 esac 12466 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 12467else 12468 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12469fi 12470library_names_spec= 12471libname_spec='lib$name' 12472soname_spec= 12473shrext_cmds=".so" 12474postinstall_cmds= 12475postuninstall_cmds= 12476finish_cmds= 12477finish_eval= 12478shlibpath_var= 12479shlibpath_overrides_runpath=unknown 12480version_type=none 12481dynamic_linker="$host_os ld.so" 12482sys_lib_dlsearch_path_spec="/lib /usr/lib" 12483need_lib_prefix=unknown 12484hardcode_into_libs=no 12485 12486# when you set need_version to no, make sure it does not cause -set_version 12487# flags to be left without arguments 12488need_version=unknown 12489 12490case $host_os in 12491aix3*) 12492 version_type=linux # correct to gnu/linux during the next big refactor 12493 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12494 shlibpath_var=LIBPATH 12495 12496 # AIX 3 has no versioning support, so we append a major version to the name. 12497 soname_spec='${libname}${release}${shared_ext}$major' 12498 ;; 12499 12500aix[4-9]*) 12501 version_type=linux # correct to gnu/linux during the next big refactor 12502 need_lib_prefix=no 12503 need_version=no 12504 hardcode_into_libs=yes 12505 if test "$host_cpu" = ia64; then 12506 # AIX 5 supports IA64 12507 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12508 shlibpath_var=LD_LIBRARY_PATH 12509 else 12510 # With GCC up to 2.95.x, collect2 would create an import file 12511 # for dependence libraries. The import file would start with 12512 # the line `#! .'. This would cause the generated library to 12513 # depend on `.', always an invalid library. This was fixed in 12514 # development snapshots of GCC prior to 3.0. 12515 case $host_os in 12516 aix4 | aix4.[01] | aix4.[01].*) 12517 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12518 echo ' yes ' 12519 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 12520 : 12521 else 12522 can_build_shared=no 12523 fi 12524 ;; 12525 esac 12526 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12527 # soname into executable. Probably we can add versioning support to 12528 # collect2, so additional links can be useful in future. 12529 if test "$aix_use_runtimelinking" = yes; then 12530 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12531 # instead of lib<name>.a to let people know that these are not 12532 # typical AIX shared libraries. 12533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12534 else 12535 # We preserve .a as extension for shared libraries through AIX4.2 12536 # and later when we are not doing run time linking. 12537 library_names_spec='${libname}${release}.a $libname.a' 12538 soname_spec='${libname}${release}${shared_ext}$major' 12539 fi 12540 shlibpath_var=LIBPATH 12541 fi 12542 ;; 12543 12544amigaos*) 12545 case $host_cpu in 12546 powerpc) 12547 # Since July 2007 AmigaOS4 officially supports .so libraries. 12548 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 12549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12550 ;; 12551 m68k) 12552 library_names_spec='$libname.ixlibrary $libname.a' 12553 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12554 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' 12555 ;; 12556 esac 12557 ;; 12558 12559beos*) 12560 library_names_spec='${libname}${shared_ext}' 12561 dynamic_linker="$host_os ld.so" 12562 shlibpath_var=LIBRARY_PATH 12563 ;; 12564 12565bsdi[45]*) 12566 version_type=linux # correct to gnu/linux during the next big refactor 12567 need_version=no 12568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12569 soname_spec='${libname}${release}${shared_ext}$major' 12570 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12571 shlibpath_var=LD_LIBRARY_PATH 12572 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12573 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12574 # the default ld.so.conf also contains /usr/contrib/lib and 12575 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12576 # libtool to hard-code these into programs 12577 ;; 12578 12579cygwin* | mingw* | pw32* | cegcc*) 12580 version_type=windows 12581 shrext_cmds=".dll" 12582 need_version=no 12583 need_lib_prefix=no 12584 12585 case $GCC,$cc_basename in 12586 yes,*) 12587 # gcc 12588 library_names_spec='$libname.dll.a' 12589 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12590 postinstall_cmds='base_file=`basename \${file}`~ 12591 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 12592 dldir=$destdir/`dirname \$dlpath`~ 12593 test -d \$dldir || mkdir -p \$dldir~ 12594 $install_prog $dir/$dlname \$dldir/$dlname~ 12595 chmod a+x \$dldir/$dlname~ 12596 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12597 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12598 fi' 12599 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12600 dlpath=$dir/\$dldll~ 12601 $RM \$dlpath' 12602 shlibpath_overrides_runpath=yes 12603 12604 case $host_os in 12605 cygwin*) 12606 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12607 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12608 12609 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12610 ;; 12611 mingw* | cegcc*) 12612 # MinGW DLLs use traditional 'lib' prefix 12613 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12614 ;; 12615 pw32*) 12616 # pw32 DLLs use 'pw' prefix rather than 'lib' 12617 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12618 ;; 12619 esac 12620 dynamic_linker='Win32 ld.exe' 12621 ;; 12622 12623 *,cl*) 12624 # Native MSVC 12625 libname_spec='$name' 12626 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12627 library_names_spec='${libname}.dll.lib' 12628 12629 case $build_os in 12630 mingw*) 12631 sys_lib_search_path_spec= 12632 lt_save_ifs=$IFS 12633 IFS=';' 12634 for lt_path in $LIB 12635 do 12636 IFS=$lt_save_ifs 12637 # Let DOS variable expansion print the short 8.3 style file name. 12638 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12639 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12640 done 12641 IFS=$lt_save_ifs 12642 # Convert to MSYS style. 12643 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12644 ;; 12645 cygwin*) 12646 # Convert to unix form, then to dos form, then back to unix form 12647 # but this time dos style (no spaces!) so that the unix form looks 12648 # like /cygdrive/c/PROGRA~1:/cygdr... 12649 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12650 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12651 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12652 ;; 12653 *) 12654 sys_lib_search_path_spec="$LIB" 12655 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12656 # It is most probably a Windows format PATH. 12657 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12658 else 12659 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12660 fi 12661 # FIXME: find the short name or the path components, as spaces are 12662 # common. (e.g. "Program Files" -> "PROGRA~1") 12663 ;; 12664 esac 12665 12666 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12667 postinstall_cmds='base_file=`basename \${file}`~ 12668 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 12669 dldir=$destdir/`dirname \$dlpath`~ 12670 test -d \$dldir || mkdir -p \$dldir~ 12671 $install_prog $dir/$dlname \$dldir/$dlname' 12672 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12673 dlpath=$dir/\$dldll~ 12674 $RM \$dlpath' 12675 shlibpath_overrides_runpath=yes 12676 dynamic_linker='Win32 link.exe' 12677 ;; 12678 12679 *) 12680 # Assume MSVC wrapper 12681 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 12682 dynamic_linker='Win32 ld.exe' 12683 ;; 12684 esac 12685 # FIXME: first we should search . and the directory the executable is in 12686 shlibpath_var=PATH 12687 ;; 12688 12689darwin* | rhapsody*) 12690 dynamic_linker="$host_os dyld" 12691 version_type=darwin 12692 need_lib_prefix=no 12693 need_version=no 12694 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12695 soname_spec='${libname}${release}${major}$shared_ext' 12696 shlibpath_overrides_runpath=yes 12697 shlibpath_var=DYLD_LIBRARY_PATH 12698 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12699 12700 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12701 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12702 ;; 12703 12704dgux*) 12705 version_type=linux # correct to gnu/linux during the next big refactor 12706 need_lib_prefix=no 12707 need_version=no 12708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12709 soname_spec='${libname}${release}${shared_ext}$major' 12710 shlibpath_var=LD_LIBRARY_PATH 12711 ;; 12712 12713freebsd* | dragonfly*) 12714 # DragonFly does not have aout. When/if they implement a new 12715 # versioning mechanism, adjust this. 12716 if test -x /usr/bin/objformat; then 12717 objformat=`/usr/bin/objformat` 12718 else 12719 case $host_os in 12720 freebsd[23].*) objformat=aout ;; 12721 *) objformat=elf ;; 12722 esac 12723 fi 12724 version_type=freebsd-$objformat 12725 case $version_type in 12726 freebsd-elf*) 12727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12728 need_version=no 12729 need_lib_prefix=no 12730 ;; 12731 freebsd-*) 12732 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12733 need_version=yes 12734 ;; 12735 esac 12736 shlibpath_var=LD_LIBRARY_PATH 12737 case $host_os in 12738 freebsd2.*) 12739 shlibpath_overrides_runpath=yes 12740 ;; 12741 freebsd3.[01]* | freebsdelf3.[01]*) 12742 shlibpath_overrides_runpath=yes 12743 hardcode_into_libs=yes 12744 ;; 12745 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12746 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12747 shlibpath_overrides_runpath=no 12748 hardcode_into_libs=yes 12749 ;; 12750 *) # from 4.6 on, and DragonFly 12751 shlibpath_overrides_runpath=yes 12752 hardcode_into_libs=yes 12753 ;; 12754 esac 12755 ;; 12756 12757haiku*) 12758 version_type=linux # correct to gnu/linux during the next big refactor 12759 need_lib_prefix=no 12760 need_version=no 12761 dynamic_linker="$host_os runtime_loader" 12762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12763 soname_spec='${libname}${release}${shared_ext}$major' 12764 shlibpath_var=LIBRARY_PATH 12765 shlibpath_overrides_runpath=yes 12766 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12767 hardcode_into_libs=yes 12768 ;; 12769 12770hpux9* | hpux10* | hpux11*) 12771 # Give a soname corresponding to the major version so that dld.sl refuses to 12772 # link against other versions. 12773 version_type=sunos 12774 need_lib_prefix=no 12775 need_version=no 12776 case $host_cpu in 12777 ia64*) 12778 shrext_cmds='.so' 12779 hardcode_into_libs=yes 12780 dynamic_linker="$host_os dld.so" 12781 shlibpath_var=LD_LIBRARY_PATH 12782 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12784 soname_spec='${libname}${release}${shared_ext}$major' 12785 if test "X$HPUX_IA64_MODE" = X32; then 12786 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12787 else 12788 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12789 fi 12790 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12791 ;; 12792 hppa*64*) 12793 shrext_cmds='.sl' 12794 hardcode_into_libs=yes 12795 dynamic_linker="$host_os dld.sl" 12796 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12797 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12799 soname_spec='${libname}${release}${shared_ext}$major' 12800 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12801 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12802 ;; 12803 *) 12804 shrext_cmds='.sl' 12805 dynamic_linker="$host_os dld.sl" 12806 shlibpath_var=SHLIB_PATH 12807 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12809 soname_spec='${libname}${release}${shared_ext}$major' 12810 ;; 12811 esac 12812 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12813 postinstall_cmds='chmod 555 $lib' 12814 # or fails outright, so override atomically: 12815 install_override_mode=555 12816 ;; 12817 12818interix[3-9]*) 12819 version_type=linux # correct to gnu/linux during the next big refactor 12820 need_lib_prefix=no 12821 need_version=no 12822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12823 soname_spec='${libname}${release}${shared_ext}$major' 12824 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12825 shlibpath_var=LD_LIBRARY_PATH 12826 shlibpath_overrides_runpath=no 12827 hardcode_into_libs=yes 12828 ;; 12829 12830irix5* | irix6* | nonstopux*) 12831 case $host_os in 12832 nonstopux*) version_type=nonstopux ;; 12833 *) 12834 if test "$lt_cv_prog_gnu_ld" = yes; then 12835 version_type=linux # correct to gnu/linux during the next big refactor 12836 else 12837 version_type=irix 12838 fi ;; 12839 esac 12840 need_lib_prefix=no 12841 need_version=no 12842 soname_spec='${libname}${release}${shared_ext}$major' 12843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12844 case $host_os in 12845 irix5* | nonstopux*) 12846 libsuff= shlibsuff= 12847 ;; 12848 *) 12849 case $LD in # libtool.m4 will add one of these switches to LD 12850 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12851 libsuff= shlibsuff= libmagic=32-bit;; 12852 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12853 libsuff=32 shlibsuff=N32 libmagic=N32;; 12854 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12855 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12856 *) libsuff= shlibsuff= libmagic=never-match;; 12857 esac 12858 ;; 12859 esac 12860 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12861 shlibpath_overrides_runpath=no 12862 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12863 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12864 hardcode_into_libs=yes 12865 ;; 12866 12867# No shared lib support for Linux oldld, aout, or coff. 12868linux*oldld* | linux*aout* | linux*coff*) 12869 dynamic_linker=no 12870 ;; 12871 12872# This must be glibc/ELF. 12873linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12874 version_type=linux # correct to gnu/linux during the next big refactor 12875 need_lib_prefix=no 12876 need_version=no 12877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12878 soname_spec='${libname}${release}${shared_ext}$major' 12879 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12880 shlibpath_var=LD_LIBRARY_PATH 12881 shlibpath_overrides_runpath=no 12882 12883 # Some binutils ld are patched to set DT_RUNPATH 12884 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 12885 $as_echo_n "(cached) " >&6 12886else 12887 lt_cv_shlibpath_overrides_runpath=no 12888 save_LDFLAGS=$LDFLAGS 12889 save_libdir=$libdir 12890 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12891 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12893/* end confdefs.h. */ 12894 12895int 12896main () 12897{ 12898 12899 ; 12900 return 0; 12901} 12902_ACEOF 12903if ac_fn_c_try_link "$LINENO"; then : 12904 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 12905 lt_cv_shlibpath_overrides_runpath=yes 12906fi 12907fi 12908rm -f core conftest.err conftest.$ac_objext \ 12909 conftest$ac_exeext conftest.$ac_ext 12910 LDFLAGS=$save_LDFLAGS 12911 libdir=$save_libdir 12912 12913fi 12914 12915 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12916 12917 # This implies no fast_install, which is unacceptable. 12918 # Some rework will be needed to allow for fast_install 12919 # before this can be enabled. 12920 hardcode_into_libs=yes 12921 12922 # Append ld.so.conf contents to the search path 12923 if test -f /etc/ld.so.conf; then 12924 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' ' '` 12925 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12926 fi 12927 12928 # We used to test for /lib/ld.so.1 and disable shared libraries on 12929 # powerpc, because MkLinux only supported shared libraries with the 12930 # GNU dynamic linker. Since this was broken with cross compilers, 12931 # most powerpc-linux boxes support dynamic linking these days and 12932 # people can always --disable-shared, the test was removed, and we 12933 # assume the GNU/Linux dynamic linker is in use. 12934 dynamic_linker='GNU/Linux ld.so' 12935 ;; 12936 12937netbsdelf*-gnu) 12938 version_type=linux 12939 need_lib_prefix=no 12940 need_version=no 12941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12942 soname_spec='${libname}${release}${shared_ext}$major' 12943 shlibpath_var=LD_LIBRARY_PATH 12944 shlibpath_overrides_runpath=no 12945 hardcode_into_libs=yes 12946 dynamic_linker='NetBSD ld.elf_so' 12947 ;; 12948 12949netbsd*) 12950 version_type=sunos 12951 need_lib_prefix=no 12952 need_version=no 12953 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12955 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12956 dynamic_linker='NetBSD (a.out) ld.so' 12957 else 12958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12959 soname_spec='${libname}${release}${shared_ext}$major' 12960 dynamic_linker='NetBSD ld.elf_so' 12961 fi 12962 shlibpath_var=LD_LIBRARY_PATH 12963 shlibpath_overrides_runpath=yes 12964 hardcode_into_libs=yes 12965 ;; 12966 12967newsos6) 12968 version_type=linux # correct to gnu/linux during the next big refactor 12969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12970 shlibpath_var=LD_LIBRARY_PATH 12971 shlibpath_overrides_runpath=yes 12972 ;; 12973 12974*nto* | *qnx*) 12975 version_type=qnx 12976 need_lib_prefix=no 12977 need_version=no 12978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12979 soname_spec='${libname}${release}${shared_ext}$major' 12980 shlibpath_var=LD_LIBRARY_PATH 12981 shlibpath_overrides_runpath=no 12982 hardcode_into_libs=yes 12983 dynamic_linker='ldqnx.so' 12984 ;; 12985 12986openbsd*) 12987 version_type=sunos 12988 sys_lib_dlsearch_path_spec="/usr/lib" 12989 need_lib_prefix=no 12990 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12991 case $host_os in 12992 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12993 *) need_version=no ;; 12994 esac 12995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12996 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12997 shlibpath_var=LD_LIBRARY_PATH 12998 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12999 case $host_os in 13000 openbsd2.[89] | openbsd2.[89].*) 13001 shlibpath_overrides_runpath=no 13002 ;; 13003 *) 13004 shlibpath_overrides_runpath=yes 13005 ;; 13006 esac 13007 else 13008 shlibpath_overrides_runpath=yes 13009 fi 13010 ;; 13011 13012os2*) 13013 libname_spec='$name' 13014 shrext_cmds=".dll" 13015 need_lib_prefix=no 13016 library_names_spec='$libname${shared_ext} $libname.a' 13017 dynamic_linker='OS/2 ld.exe' 13018 shlibpath_var=LIBPATH 13019 ;; 13020 13021osf3* | osf4* | osf5*) 13022 version_type=osf 13023 need_lib_prefix=no 13024 need_version=no 13025 soname_spec='${libname}${release}${shared_ext}$major' 13026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13027 shlibpath_var=LD_LIBRARY_PATH 13028 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13029 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13030 ;; 13031 13032rdos*) 13033 dynamic_linker=no 13034 ;; 13035 13036solaris*) 13037 version_type=linux # correct to gnu/linux during the next big refactor 13038 need_lib_prefix=no 13039 need_version=no 13040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13041 soname_spec='${libname}${release}${shared_ext}$major' 13042 shlibpath_var=LD_LIBRARY_PATH 13043 shlibpath_overrides_runpath=yes 13044 hardcode_into_libs=yes 13045 # ldd complains unless libraries are executable 13046 postinstall_cmds='chmod +x $lib' 13047 ;; 13048 13049sunos4*) 13050 version_type=sunos 13051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13052 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13053 shlibpath_var=LD_LIBRARY_PATH 13054 shlibpath_overrides_runpath=yes 13055 if test "$with_gnu_ld" = yes; then 13056 need_lib_prefix=no 13057 fi 13058 need_version=yes 13059 ;; 13060 13061sysv4 | sysv4.3*) 13062 version_type=linux # correct to gnu/linux during the next big refactor 13063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13064 soname_spec='${libname}${release}${shared_ext}$major' 13065 shlibpath_var=LD_LIBRARY_PATH 13066 case $host_vendor in 13067 sni) 13068 shlibpath_overrides_runpath=no 13069 need_lib_prefix=no 13070 runpath_var=LD_RUN_PATH 13071 ;; 13072 siemens) 13073 need_lib_prefix=no 13074 ;; 13075 motorola) 13076 need_lib_prefix=no 13077 need_version=no 13078 shlibpath_overrides_runpath=no 13079 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13080 ;; 13081 esac 13082 ;; 13083 13084sysv4*MP*) 13085 if test -d /usr/nec ;then 13086 version_type=linux # correct to gnu/linux during the next big refactor 13087 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13088 soname_spec='$libname${shared_ext}.$major' 13089 shlibpath_var=LD_LIBRARY_PATH 13090 fi 13091 ;; 13092 13093sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13094 version_type=freebsd-elf 13095 need_lib_prefix=no 13096 need_version=no 13097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13098 soname_spec='${libname}${release}${shared_ext}$major' 13099 shlibpath_var=LD_LIBRARY_PATH 13100 shlibpath_overrides_runpath=yes 13101 hardcode_into_libs=yes 13102 if test "$with_gnu_ld" = yes; then 13103 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13104 else 13105 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13106 case $host_os in 13107 sco3.2v5*) 13108 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13109 ;; 13110 esac 13111 fi 13112 sys_lib_dlsearch_path_spec='/usr/lib' 13113 ;; 13114 13115tpf*) 13116 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 13117 version_type=linux # correct to gnu/linux during the next big refactor 13118 need_lib_prefix=no 13119 need_version=no 13120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13121 shlibpath_var=LD_LIBRARY_PATH 13122 shlibpath_overrides_runpath=no 13123 hardcode_into_libs=yes 13124 ;; 13125 13126uts4*) 13127 version_type=linux # correct to gnu/linux during the next big refactor 13128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13129 soname_spec='${libname}${release}${shared_ext}$major' 13130 shlibpath_var=LD_LIBRARY_PATH 13131 ;; 13132 13133*) 13134 dynamic_linker=no 13135 ;; 13136esac 13137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 13138$as_echo "$dynamic_linker" >&6; } 13139test "$dynamic_linker" = no && can_build_shared=no 13140 13141variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13142if test "$GCC" = yes; then 13143 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13144fi 13145 13146if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 13147 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 13148fi 13149if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 13150 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 13151fi 13152 13153 13154 13155 13156 13157 13158 13159 13160 13161 13162 13163 13164 13165 13166 13167 13168 13169 13170 13171 13172 13173 13174 13175 13176 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 13245$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 13246hardcode_action= 13247if test -n "$hardcode_libdir_flag_spec" || 13248 test -n "$runpath_var" || 13249 test "X$hardcode_automatic" = "Xyes" ; then 13250 13251 # We can hardcode non-existent directories. 13252 if test "$hardcode_direct" != no && 13253 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13254 # have to relink, otherwise we might link with an installed library 13255 # when we should be linking with a yet-to-be-installed one 13256 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 13257 test "$hardcode_minus_L" != no; then 13258 # Linking always hardcodes the temporary library directory. 13259 hardcode_action=relink 13260 else 13261 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13262 hardcode_action=immediate 13263 fi 13264else 13265 # We cannot hardcode anything, or else we can only hardcode existing 13266 # directories. 13267 hardcode_action=unsupported 13268fi 13269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 13270$as_echo "$hardcode_action" >&6; } 13271 13272if test "$hardcode_action" = relink || 13273 test "$inherit_rpath" = yes; then 13274 # Fast installation is not supported 13275 enable_fast_install=no 13276elif test "$shlibpath_overrides_runpath" = yes || 13277 test "$enable_shared" = no; then 13278 # Fast installation is not necessary 13279 enable_fast_install=needless 13280fi 13281 13282 13283 13284 13285 13286 13287 if test "x$enable_dlopen" != xyes; then 13288 enable_dlopen=unknown 13289 enable_dlopen_self=unknown 13290 enable_dlopen_self_static=unknown 13291else 13292 lt_cv_dlopen=no 13293 lt_cv_dlopen_libs= 13294 13295 case $host_os in 13296 beos*) 13297 lt_cv_dlopen="load_add_on" 13298 lt_cv_dlopen_libs= 13299 lt_cv_dlopen_self=yes 13300 ;; 13301 13302 mingw* | pw32* | cegcc*) 13303 lt_cv_dlopen="LoadLibrary" 13304 lt_cv_dlopen_libs= 13305 ;; 13306 13307 cygwin*) 13308 lt_cv_dlopen="dlopen" 13309 lt_cv_dlopen_libs= 13310 ;; 13311 13312 darwin*) 13313 # if libdl is installed we need to link against it 13314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13315$as_echo_n "checking for dlopen in -ldl... " >&6; } 13316if ${ac_cv_lib_dl_dlopen+:} false; then : 13317 $as_echo_n "(cached) " >&6 13318else 13319 ac_check_lib_save_LIBS=$LIBS 13320LIBS="-ldl $LIBS" 13321cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13322/* end confdefs.h. */ 13323 13324/* Override any GCC internal prototype to avoid an error. 13325 Use char because int might match the return type of a GCC 13326 builtin and then its argument prototype would still apply. */ 13327#ifdef __cplusplus 13328extern "C" 13329#endif 13330char dlopen (); 13331int 13332main () 13333{ 13334return dlopen (); 13335 ; 13336 return 0; 13337} 13338_ACEOF 13339if ac_fn_c_try_link "$LINENO"; then : 13340 ac_cv_lib_dl_dlopen=yes 13341else 13342 ac_cv_lib_dl_dlopen=no 13343fi 13344rm -f core conftest.err conftest.$ac_objext \ 13345 conftest$ac_exeext conftest.$ac_ext 13346LIBS=$ac_check_lib_save_LIBS 13347fi 13348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13349$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13350if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13351 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 13352else 13353 13354 lt_cv_dlopen="dyld" 13355 lt_cv_dlopen_libs= 13356 lt_cv_dlopen_self=yes 13357 13358fi 13359 13360 ;; 13361 13362 *) 13363 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 13364if test "x$ac_cv_func_shl_load" = xyes; then : 13365 lt_cv_dlopen="shl_load" 13366else 13367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13368$as_echo_n "checking for shl_load in -ldld... " >&6; } 13369if ${ac_cv_lib_dld_shl_load+:} false; then : 13370 $as_echo_n "(cached) " >&6 13371else 13372 ac_check_lib_save_LIBS=$LIBS 13373LIBS="-ldld $LIBS" 13374cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13375/* end confdefs.h. */ 13376 13377/* Override any GCC internal prototype to avoid an error. 13378 Use char because int might match the return type of a GCC 13379 builtin and then its argument prototype would still apply. */ 13380#ifdef __cplusplus 13381extern "C" 13382#endif 13383char shl_load (); 13384int 13385main () 13386{ 13387return shl_load (); 13388 ; 13389 return 0; 13390} 13391_ACEOF 13392if ac_fn_c_try_link "$LINENO"; then : 13393 ac_cv_lib_dld_shl_load=yes 13394else 13395 ac_cv_lib_dld_shl_load=no 13396fi 13397rm -f core conftest.err conftest.$ac_objext \ 13398 conftest$ac_exeext conftest.$ac_ext 13399LIBS=$ac_check_lib_save_LIBS 13400fi 13401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13402$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 13403if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 13404 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 13405else 13406 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13407if test "x$ac_cv_func_dlopen" = xyes; then : 13408 lt_cv_dlopen="dlopen" 13409else 13410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13411$as_echo_n "checking for dlopen in -ldl... " >&6; } 13412if ${ac_cv_lib_dl_dlopen+:} false; then : 13413 $as_echo_n "(cached) " >&6 13414else 13415 ac_check_lib_save_LIBS=$LIBS 13416LIBS="-ldl $LIBS" 13417cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13418/* end confdefs.h. */ 13419 13420/* Override any GCC internal prototype to avoid an error. 13421 Use char because int might match the return type of a GCC 13422 builtin and then its argument prototype would still apply. */ 13423#ifdef __cplusplus 13424extern "C" 13425#endif 13426char dlopen (); 13427int 13428main () 13429{ 13430return dlopen (); 13431 ; 13432 return 0; 13433} 13434_ACEOF 13435if ac_fn_c_try_link "$LINENO"; then : 13436 ac_cv_lib_dl_dlopen=yes 13437else 13438 ac_cv_lib_dl_dlopen=no 13439fi 13440rm -f core conftest.err conftest.$ac_objext \ 13441 conftest$ac_exeext conftest.$ac_ext 13442LIBS=$ac_check_lib_save_LIBS 13443fi 13444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13445$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13446if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13447 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 13448else 13449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13450$as_echo_n "checking for dlopen in -lsvld... " >&6; } 13451if ${ac_cv_lib_svld_dlopen+:} false; then : 13452 $as_echo_n "(cached) " >&6 13453else 13454 ac_check_lib_save_LIBS=$LIBS 13455LIBS="-lsvld $LIBS" 13456cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13457/* end confdefs.h. */ 13458 13459/* Override any GCC internal prototype to avoid an error. 13460 Use char because int might match the return type of a GCC 13461 builtin and then its argument prototype would still apply. */ 13462#ifdef __cplusplus 13463extern "C" 13464#endif 13465char dlopen (); 13466int 13467main () 13468{ 13469return dlopen (); 13470 ; 13471 return 0; 13472} 13473_ACEOF 13474if ac_fn_c_try_link "$LINENO"; then : 13475 ac_cv_lib_svld_dlopen=yes 13476else 13477 ac_cv_lib_svld_dlopen=no 13478fi 13479rm -f core conftest.err conftest.$ac_objext \ 13480 conftest$ac_exeext conftest.$ac_ext 13481LIBS=$ac_check_lib_save_LIBS 13482fi 13483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13484$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 13485if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 13486 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 13487else 13488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13489$as_echo_n "checking for dld_link in -ldld... " >&6; } 13490if ${ac_cv_lib_dld_dld_link+:} false; then : 13491 $as_echo_n "(cached) " >&6 13492else 13493 ac_check_lib_save_LIBS=$LIBS 13494LIBS="-ldld $LIBS" 13495cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13496/* end confdefs.h. */ 13497 13498/* Override any GCC internal prototype to avoid an error. 13499 Use char because int might match the return type of a GCC 13500 builtin and then its argument prototype would still apply. */ 13501#ifdef __cplusplus 13502extern "C" 13503#endif 13504char dld_link (); 13505int 13506main () 13507{ 13508return dld_link (); 13509 ; 13510 return 0; 13511} 13512_ACEOF 13513if ac_fn_c_try_link "$LINENO"; then : 13514 ac_cv_lib_dld_dld_link=yes 13515else 13516 ac_cv_lib_dld_dld_link=no 13517fi 13518rm -f core conftest.err conftest.$ac_objext \ 13519 conftest$ac_exeext conftest.$ac_ext 13520LIBS=$ac_check_lib_save_LIBS 13521fi 13522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13523$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 13524if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 13525 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 13526fi 13527 13528 13529fi 13530 13531 13532fi 13533 13534 13535fi 13536 13537 13538fi 13539 13540 13541fi 13542 13543 ;; 13544 esac 13545 13546 if test "x$lt_cv_dlopen" != xno; then 13547 enable_dlopen=yes 13548 else 13549 enable_dlopen=no 13550 fi 13551 13552 case $lt_cv_dlopen in 13553 dlopen) 13554 save_CPPFLAGS="$CPPFLAGS" 13555 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13556 13557 save_LDFLAGS="$LDFLAGS" 13558 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13559 13560 save_LIBS="$LIBS" 13561 LIBS="$lt_cv_dlopen_libs $LIBS" 13562 13563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13564$as_echo_n "checking whether a program can dlopen itself... " >&6; } 13565if ${lt_cv_dlopen_self+:} false; then : 13566 $as_echo_n "(cached) " >&6 13567else 13568 if test "$cross_compiling" = yes; then : 13569 lt_cv_dlopen_self=cross 13570else 13571 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13572 lt_status=$lt_dlunknown 13573 cat > conftest.$ac_ext <<_LT_EOF 13574#line $LINENO "configure" 13575#include "confdefs.h" 13576 13577#if HAVE_DLFCN_H 13578#include <dlfcn.h> 13579#endif 13580 13581#include <stdio.h> 13582 13583#ifdef RTLD_GLOBAL 13584# define LT_DLGLOBAL RTLD_GLOBAL 13585#else 13586# ifdef DL_GLOBAL 13587# define LT_DLGLOBAL DL_GLOBAL 13588# else 13589# define LT_DLGLOBAL 0 13590# endif 13591#endif 13592 13593/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13594 find out it does not work in some platform. */ 13595#ifndef LT_DLLAZY_OR_NOW 13596# ifdef RTLD_LAZY 13597# define LT_DLLAZY_OR_NOW RTLD_LAZY 13598# else 13599# ifdef DL_LAZY 13600# define LT_DLLAZY_OR_NOW DL_LAZY 13601# else 13602# ifdef RTLD_NOW 13603# define LT_DLLAZY_OR_NOW RTLD_NOW 13604# else 13605# ifdef DL_NOW 13606# define LT_DLLAZY_OR_NOW DL_NOW 13607# else 13608# define LT_DLLAZY_OR_NOW 0 13609# endif 13610# endif 13611# endif 13612# endif 13613#endif 13614 13615/* When -fvisbility=hidden is used, assume the code has been annotated 13616 correspondingly for the symbols needed. */ 13617#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13618int fnord () __attribute__((visibility("default"))); 13619#endif 13620 13621int fnord () { return 42; } 13622int main () 13623{ 13624 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13625 int status = $lt_dlunknown; 13626 13627 if (self) 13628 { 13629 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13630 else 13631 { 13632 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13633 else puts (dlerror ()); 13634 } 13635 /* dlclose (self); */ 13636 } 13637 else 13638 puts (dlerror ()); 13639 13640 return status; 13641} 13642_LT_EOF 13643 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13644 (eval $ac_link) 2>&5 13645 ac_status=$? 13646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13647 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 13648 (./conftest; exit; ) >&5 2>/dev/null 13649 lt_status=$? 13650 case x$lt_status in 13651 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13652 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13653 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13654 esac 13655 else : 13656 # compilation failed 13657 lt_cv_dlopen_self=no 13658 fi 13659fi 13660rm -fr conftest* 13661 13662 13663fi 13664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13665$as_echo "$lt_cv_dlopen_self" >&6; } 13666 13667 if test "x$lt_cv_dlopen_self" = xyes; then 13668 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13670$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 13671if ${lt_cv_dlopen_self_static+:} false; then : 13672 $as_echo_n "(cached) " >&6 13673else 13674 if test "$cross_compiling" = yes; then : 13675 lt_cv_dlopen_self_static=cross 13676else 13677 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13678 lt_status=$lt_dlunknown 13679 cat > conftest.$ac_ext <<_LT_EOF 13680#line $LINENO "configure" 13681#include "confdefs.h" 13682 13683#if HAVE_DLFCN_H 13684#include <dlfcn.h> 13685#endif 13686 13687#include <stdio.h> 13688 13689#ifdef RTLD_GLOBAL 13690# define LT_DLGLOBAL RTLD_GLOBAL 13691#else 13692# ifdef DL_GLOBAL 13693# define LT_DLGLOBAL DL_GLOBAL 13694# else 13695# define LT_DLGLOBAL 0 13696# endif 13697#endif 13698 13699/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13700 find out it does not work in some platform. */ 13701#ifndef LT_DLLAZY_OR_NOW 13702# ifdef RTLD_LAZY 13703# define LT_DLLAZY_OR_NOW RTLD_LAZY 13704# else 13705# ifdef DL_LAZY 13706# define LT_DLLAZY_OR_NOW DL_LAZY 13707# else 13708# ifdef RTLD_NOW 13709# define LT_DLLAZY_OR_NOW RTLD_NOW 13710# else 13711# ifdef DL_NOW 13712# define LT_DLLAZY_OR_NOW DL_NOW 13713# else 13714# define LT_DLLAZY_OR_NOW 0 13715# endif 13716# endif 13717# endif 13718# endif 13719#endif 13720 13721/* When -fvisbility=hidden is used, assume the code has been annotated 13722 correspondingly for the symbols needed. */ 13723#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13724int fnord () __attribute__((visibility("default"))); 13725#endif 13726 13727int fnord () { return 42; } 13728int main () 13729{ 13730 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13731 int status = $lt_dlunknown; 13732 13733 if (self) 13734 { 13735 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13736 else 13737 { 13738 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13739 else puts (dlerror ()); 13740 } 13741 /* dlclose (self); */ 13742 } 13743 else 13744 puts (dlerror ()); 13745 13746 return status; 13747} 13748_LT_EOF 13749 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13750 (eval $ac_link) 2>&5 13751 ac_status=$? 13752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13753 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 13754 (./conftest; exit; ) >&5 2>/dev/null 13755 lt_status=$? 13756 case x$lt_status in 13757 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13758 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13759 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13760 esac 13761 else : 13762 # compilation failed 13763 lt_cv_dlopen_self_static=no 13764 fi 13765fi 13766rm -fr conftest* 13767 13768 13769fi 13770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13771$as_echo "$lt_cv_dlopen_self_static" >&6; } 13772 fi 13773 13774 CPPFLAGS="$save_CPPFLAGS" 13775 LDFLAGS="$save_LDFLAGS" 13776 LIBS="$save_LIBS" 13777 ;; 13778 esac 13779 13780 case $lt_cv_dlopen_self in 13781 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13782 *) enable_dlopen_self=unknown ;; 13783 esac 13784 13785 case $lt_cv_dlopen_self_static in 13786 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13787 *) enable_dlopen_self_static=unknown ;; 13788 esac 13789fi 13790 13791 13792 13793 13794 13795 13796 13797 13798 13799 13800 13801 13802 13803 13804 13805 13806 13807striplib= 13808old_striplib= 13809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13810$as_echo_n "checking whether stripping libraries is possible... " >&6; } 13811if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13812 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 13813 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13815$as_echo "yes" >&6; } 13816else 13817# FIXME - insert some real tests, host_os isn't really good enough 13818 case $host_os in 13819 darwin*) 13820 if test -n "$STRIP" ; then 13821 striplib="$STRIP -x" 13822 old_striplib="$STRIP -S" 13823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13824$as_echo "yes" >&6; } 13825 else 13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13827$as_echo "no" >&6; } 13828 fi 13829 ;; 13830 *) 13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13832$as_echo "no" >&6; } 13833 ;; 13834 esac 13835fi 13836 13837 13838 13839 13840 13841 13842 13843 13844 13845 13846 13847 13848 # Report which library types will actually be built 13849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13850$as_echo_n "checking if libtool supports shared libraries... " >&6; } 13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13852$as_echo "$can_build_shared" >&6; } 13853 13854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13855$as_echo_n "checking whether to build shared libraries... " >&6; } 13856 test "$can_build_shared" = "no" && enable_shared=no 13857 13858 # On AIX, shared libraries and static libraries use the same namespace, and 13859 # are all built from PIC. 13860 case $host_os in 13861 aix3*) 13862 test "$enable_shared" = yes && enable_static=no 13863 if test -n "$RANLIB"; then 13864 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13865 postinstall_cmds='$RANLIB $lib' 13866 fi 13867 ;; 13868 13869 aix[4-9]*) 13870 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13871 test "$enable_shared" = yes && enable_static=no 13872 fi 13873 ;; 13874 esac 13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13876$as_echo "$enable_shared" >&6; } 13877 13878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13879$as_echo_n "checking whether to build static libraries... " >&6; } 13880 # Make sure either enable_shared or enable_static is yes. 13881 test "$enable_shared" = yes || enable_static=yes 13882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13883$as_echo "$enable_static" >&6; } 13884 13885 13886 13887 13888fi 13889ac_ext=c 13890ac_cpp='$CPP $CPPFLAGS' 13891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13893ac_compiler_gnu=$ac_cv_c_compiler_gnu 13894 13895CC="$lt_save_CC" 13896 13897 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 13898 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 13899 (test "X$CXX" != "Xg++"))) ; then 13900 ac_ext=cpp 13901ac_cpp='$CXXCPP $CPPFLAGS' 13902ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13903ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13904ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 13906$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 13907if test -z "$CXXCPP"; then 13908 if ${ac_cv_prog_CXXCPP+:} false; then : 13909 $as_echo_n "(cached) " >&6 13910else 13911 # Double quotes because CXXCPP needs to be expanded 13912 for CXXCPP in "$CXX -E" "/lib/cpp" 13913 do 13914 ac_preproc_ok=false 13915for ac_cxx_preproc_warn_flag in '' yes 13916do 13917 # Use a header file that comes with gcc, so configuring glibc 13918 # with a fresh cross-compiler works. 13919 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13920 # <limits.h> exists even on freestanding compilers. 13921 # On the NeXT, cc -E runs the code through the compiler's parser, 13922 # not just through cpp. "Syntax error" is here to catch this case. 13923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13924/* end confdefs.h. */ 13925#ifdef __STDC__ 13926# include <limits.h> 13927#else 13928# include <assert.h> 13929#endif 13930 Syntax error 13931_ACEOF 13932if ac_fn_cxx_try_cpp "$LINENO"; then : 13933 13934else 13935 # Broken: fails on valid input. 13936continue 13937fi 13938rm -f conftest.err conftest.i conftest.$ac_ext 13939 13940 # OK, works on sane cases. Now check whether nonexistent headers 13941 # can be detected and how. 13942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13943/* end confdefs.h. */ 13944#include <ac_nonexistent.h> 13945_ACEOF 13946if ac_fn_cxx_try_cpp "$LINENO"; then : 13947 # Broken: success on invalid input. 13948continue 13949else 13950 # Passes both tests. 13951ac_preproc_ok=: 13952break 13953fi 13954rm -f conftest.err conftest.i conftest.$ac_ext 13955 13956done 13957# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13958rm -f conftest.i conftest.err conftest.$ac_ext 13959if $ac_preproc_ok; then : 13960 break 13961fi 13962 13963 done 13964 ac_cv_prog_CXXCPP=$CXXCPP 13965 13966fi 13967 CXXCPP=$ac_cv_prog_CXXCPP 13968else 13969 ac_cv_prog_CXXCPP=$CXXCPP 13970fi 13971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 13972$as_echo "$CXXCPP" >&6; } 13973ac_preproc_ok=false 13974for ac_cxx_preproc_warn_flag in '' yes 13975do 13976 # Use a header file that comes with gcc, so configuring glibc 13977 # with a fresh cross-compiler works. 13978 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13979 # <limits.h> exists even on freestanding compilers. 13980 # On the NeXT, cc -E runs the code through the compiler's parser, 13981 # not just through cpp. "Syntax error" is here to catch this case. 13982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13983/* end confdefs.h. */ 13984#ifdef __STDC__ 13985# include <limits.h> 13986#else 13987# include <assert.h> 13988#endif 13989 Syntax error 13990_ACEOF 13991if ac_fn_cxx_try_cpp "$LINENO"; then : 13992 13993else 13994 # Broken: fails on valid input. 13995continue 13996fi 13997rm -f conftest.err conftest.i conftest.$ac_ext 13998 13999 # OK, works on sane cases. Now check whether nonexistent headers 14000 # can be detected and how. 14001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14002/* end confdefs.h. */ 14003#include <ac_nonexistent.h> 14004_ACEOF 14005if ac_fn_cxx_try_cpp "$LINENO"; then : 14006 # Broken: success on invalid input. 14007continue 14008else 14009 # Passes both tests. 14010ac_preproc_ok=: 14011break 14012fi 14013rm -f conftest.err conftest.i conftest.$ac_ext 14014 14015done 14016# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 14017rm -f conftest.i conftest.err conftest.$ac_ext 14018if $ac_preproc_ok; then : 14019 14020else 14021 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14022$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14023as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 14024See \`config.log' for more details" "$LINENO" 5; } 14025fi 14026 14027ac_ext=c 14028ac_cpp='$CPP $CPPFLAGS' 14029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14031ac_compiler_gnu=$ac_cv_c_compiler_gnu 14032 14033else 14034 _lt_caught_CXX_error=yes 14035fi 14036 14037ac_ext=cpp 14038ac_cpp='$CXXCPP $CPPFLAGS' 14039ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14040ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14041ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 14042 14043archive_cmds_need_lc_CXX=no 14044allow_undefined_flag_CXX= 14045always_export_symbols_CXX=no 14046archive_expsym_cmds_CXX= 14047compiler_needs_object_CXX=no 14048export_dynamic_flag_spec_CXX= 14049hardcode_direct_CXX=no 14050hardcode_direct_absolute_CXX=no 14051hardcode_libdir_flag_spec_CXX= 14052hardcode_libdir_separator_CXX= 14053hardcode_minus_L_CXX=no 14054hardcode_shlibpath_var_CXX=unsupported 14055hardcode_automatic_CXX=no 14056inherit_rpath_CXX=no 14057module_cmds_CXX= 14058module_expsym_cmds_CXX= 14059link_all_deplibs_CXX=unknown 14060old_archive_cmds_CXX=$old_archive_cmds 14061reload_flag_CXX=$reload_flag 14062reload_cmds_CXX=$reload_cmds 14063no_undefined_flag_CXX= 14064whole_archive_flag_spec_CXX= 14065enable_shared_with_static_runtimes_CXX=no 14066 14067# Source file extension for C++ test sources. 14068ac_ext=cpp 14069 14070# Object file extension for compiled C++ test sources. 14071objext=o 14072objext_CXX=$objext 14073 14074# No sense in running all these tests if we already determined that 14075# the CXX compiler isn't working. Some variables (like enable_shared) 14076# are currently assumed to apply to all compilers on this platform, 14077# and will be corrupted by setting them based on a non-working compiler. 14078if test "$_lt_caught_CXX_error" != yes; then 14079 # Code to be used in simple compile tests 14080 lt_simple_compile_test_code="int some_variable = 0;" 14081 14082 # Code to be used in simple link tests 14083 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 14084 14085 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 14086 14087 14088 14089 14090 14091 14092# If no C compiler was specified, use CC. 14093LTCC=${LTCC-"$CC"} 14094 14095# If no C compiler flags were specified, use CFLAGS. 14096LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14097 14098# Allow CC to be a program name with arguments. 14099compiler=$CC 14100 14101 14102 # save warnings/boilerplate of simple test code 14103 ac_outfile=conftest.$ac_objext 14104echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14105eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14106_lt_compiler_boilerplate=`cat conftest.err` 14107$RM conftest* 14108 14109 ac_outfile=conftest.$ac_objext 14110echo "$lt_simple_link_test_code" >conftest.$ac_ext 14111eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14112_lt_linker_boilerplate=`cat conftest.err` 14113$RM -r conftest* 14114 14115 14116 # Allow CC to be a program name with arguments. 14117 lt_save_CC=$CC 14118 lt_save_CFLAGS=$CFLAGS 14119 lt_save_LD=$LD 14120 lt_save_GCC=$GCC 14121 GCC=$GXX 14122 lt_save_with_gnu_ld=$with_gnu_ld 14123 lt_save_path_LD=$lt_cv_path_LD 14124 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 14125 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 14126 else 14127 $as_unset lt_cv_prog_gnu_ld 14128 fi 14129 if test -n "${lt_cv_path_LDCXX+set}"; then 14130 lt_cv_path_LD=$lt_cv_path_LDCXX 14131 else 14132 $as_unset lt_cv_path_LD 14133 fi 14134 test -z "${LDCXX+set}" || LD=$LDCXX 14135 CC=${CXX-"c++"} 14136 CFLAGS=$CXXFLAGS 14137 compiler=$CC 14138 compiler_CXX=$CC 14139 for cc_temp in $compiler""; do 14140 case $cc_temp in 14141 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14142 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14143 \-*) ;; 14144 *) break;; 14145 esac 14146done 14147cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 14148 14149 14150 if test -n "$compiler"; then 14151 # We don't want -fno-exception when compiling C++ code, so set the 14152 # no_builtin_flag separately 14153 if test "$GXX" = yes; then 14154 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 14155 else 14156 lt_prog_compiler_no_builtin_flag_CXX= 14157 fi 14158 14159 if test "$GXX" = yes; then 14160 # Set up default GNU C++ configuration 14161 14162 14163 14164# Check whether --with-gnu-ld was given. 14165if test "${with_gnu_ld+set}" = set; then : 14166 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 14167else 14168 with_gnu_ld=no 14169fi 14170 14171ac_prog=ld 14172if test "$GCC" = yes; then 14173 # Check if gcc -print-prog-name=ld gives a path. 14174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 14175$as_echo_n "checking for ld used by $CC... " >&6; } 14176 case $host in 14177 *-*-mingw*) 14178 # gcc leaves a trailing carriage return which upsets mingw 14179 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 14180 *) 14181 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 14182 esac 14183 case $ac_prog in 14184 # Accept absolute paths. 14185 [\\/]* | ?:[\\/]*) 14186 re_direlt='/[^/][^/]*/\.\./' 14187 # Canonicalize the pathname of ld 14188 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 14189 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 14190 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 14191 done 14192 test -z "$LD" && LD="$ac_prog" 14193 ;; 14194 "") 14195 # If it fails, then pretend we aren't using GCC. 14196 ac_prog=ld 14197 ;; 14198 *) 14199 # If it is relative, then search for the first ld in PATH. 14200 with_gnu_ld=unknown 14201 ;; 14202 esac 14203elif test "$with_gnu_ld" = yes; then 14204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 14205$as_echo_n "checking for GNU ld... " >&6; } 14206else 14207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 14208$as_echo_n "checking for non-GNU ld... " >&6; } 14209fi 14210if ${lt_cv_path_LD+:} false; then : 14211 $as_echo_n "(cached) " >&6 14212else 14213 if test -z "$LD"; then 14214 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 14215 for ac_dir in $PATH; do 14216 IFS="$lt_save_ifs" 14217 test -z "$ac_dir" && ac_dir=. 14218 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 14219 lt_cv_path_LD="$ac_dir/$ac_prog" 14220 # Check to see if the program is GNU ld. I'd rather use --version, 14221 # but apparently some variants of GNU ld only accept -v. 14222 # Break only if it was the GNU/non-GNU ld that we prefer. 14223 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 14224 *GNU* | *'with BFD'*) 14225 test "$with_gnu_ld" != no && break 14226 ;; 14227 *) 14228 test "$with_gnu_ld" != yes && break 14229 ;; 14230 esac 14231 fi 14232 done 14233 IFS="$lt_save_ifs" 14234else 14235 lt_cv_path_LD="$LD" # Let the user override the test with a path. 14236fi 14237fi 14238 14239LD="$lt_cv_path_LD" 14240if test -n "$LD"; then 14241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 14242$as_echo "$LD" >&6; } 14243else 14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14245$as_echo "no" >&6; } 14246fi 14247test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 14248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 14249$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 14250if ${lt_cv_prog_gnu_ld+:} false; then : 14251 $as_echo_n "(cached) " >&6 14252else 14253 # I'd rather use --version here, but apparently some GNU lds only accept -v. 14254case `$LD -v 2>&1 </dev/null` in 14255*GNU* | *'with BFD'*) 14256 lt_cv_prog_gnu_ld=yes 14257 ;; 14258*) 14259 lt_cv_prog_gnu_ld=no 14260 ;; 14261esac 14262fi 14263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 14264$as_echo "$lt_cv_prog_gnu_ld" >&6; } 14265with_gnu_ld=$lt_cv_prog_gnu_ld 14266 14267 14268 14269 14270 14271 14272 14273 # Check if GNU C++ uses GNU ld as the underlying linker, since the 14274 # archiving commands below assume that GNU ld is being used. 14275 if test "$with_gnu_ld" = yes; then 14276 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 14277 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' 14278 14279 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 14280 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 14281 14282 # If archive_cmds runs LD, not CC, wlarc should be empty 14283 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 14284 # investigate it a little bit more. (MM) 14285 wlarc='${wl}' 14286 14287 # ancient GNU ld didn't support --whole-archive et. al. 14288 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 14289 $GREP 'no-whole-archive' > /dev/null; then 14290 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14291 else 14292 whole_archive_flag_spec_CXX= 14293 fi 14294 else 14295 with_gnu_ld=no 14296 wlarc= 14297 14298 # A generic and very simple default shared library creation 14299 # command for GNU C++ for the case where it uses the native 14300 # linker, instead of GNU ld. If possible, this setting should 14301 # overridden to take advantage of the native linker features on 14302 # the platform it is being used on. 14303 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14304 fi 14305 14306 # Commands to make compiler produce verbose output that lists 14307 # what "hidden" libraries, object files and flags are used when 14308 # linking a shared library. 14309 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14310 14311 else 14312 GXX=no 14313 with_gnu_ld=no 14314 wlarc= 14315 fi 14316 14317 # PORTME: fill in a description of your system's C++ link characteristics 14318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14319$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14320 ld_shlibs_CXX=yes 14321 case $host_os in 14322 aix3*) 14323 # FIXME: insert proper C++ library support 14324 ld_shlibs_CXX=no 14325 ;; 14326 aix[4-9]*) 14327 if test "$host_cpu" = ia64; then 14328 # On IA64, the linker does run time linking by default, so we don't 14329 # have to do anything special. 14330 aix_use_runtimelinking=no 14331 exp_sym_flag='-Bexport' 14332 no_entry_flag="" 14333 else 14334 aix_use_runtimelinking=no 14335 14336 # Test if we are trying to use run time linking or normal 14337 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14338 # need to do runtime linking. 14339 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 14340 for ld_flag in $LDFLAGS; do 14341 case $ld_flag in 14342 *-brtl*) 14343 aix_use_runtimelinking=yes 14344 break 14345 ;; 14346 esac 14347 done 14348 ;; 14349 esac 14350 14351 exp_sym_flag='-bexport' 14352 no_entry_flag='-bnoentry' 14353 fi 14354 14355 # When large executables or shared objects are built, AIX ld can 14356 # have problems creating the table of contents. If linking a library 14357 # or program results in "error TOC overflow" add -mminimal-toc to 14358 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14359 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14360 14361 archive_cmds_CXX='' 14362 hardcode_direct_CXX=yes 14363 hardcode_direct_absolute_CXX=yes 14364 hardcode_libdir_separator_CXX=':' 14365 link_all_deplibs_CXX=yes 14366 file_list_spec_CXX='${wl}-f,' 14367 14368 if test "$GXX" = yes; then 14369 case $host_os in aix4.[012]|aix4.[012].*) 14370 # We only want to do this on AIX 4.2 and lower, the check 14371 # below for broken collect2 doesn't work under 4.3+ 14372 collect2name=`${CC} -print-prog-name=collect2` 14373 if test -f "$collect2name" && 14374 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 14375 then 14376 # We have reworked collect2 14377 : 14378 else 14379 # We have old collect2 14380 hardcode_direct_CXX=unsupported 14381 # It fails to find uninstalled libraries when the uninstalled 14382 # path is not listed in the libpath. Setting hardcode_minus_L 14383 # to unsupported forces relinking 14384 hardcode_minus_L_CXX=yes 14385 hardcode_libdir_flag_spec_CXX='-L$libdir' 14386 hardcode_libdir_separator_CXX= 14387 fi 14388 esac 14389 shared_flag='-shared' 14390 if test "$aix_use_runtimelinking" = yes; then 14391 shared_flag="$shared_flag "'${wl}-G' 14392 fi 14393 else 14394 # not using gcc 14395 if test "$host_cpu" = ia64; then 14396 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14397 # chokes on -Wl,-G. The following line is correct: 14398 shared_flag='-G' 14399 else 14400 if test "$aix_use_runtimelinking" = yes; then 14401 shared_flag='${wl}-G' 14402 else 14403 shared_flag='${wl}-bM:SRE' 14404 fi 14405 fi 14406 fi 14407 14408 export_dynamic_flag_spec_CXX='${wl}-bexpall' 14409 # It seems that -bexpall does not export symbols beginning with 14410 # underscore (_), so it is better to generate a list of symbols to 14411 # export. 14412 always_export_symbols_CXX=yes 14413 if test "$aix_use_runtimelinking" = yes; then 14414 # Warning - without using the other runtime loading flags (-brtl), 14415 # -berok will link without error, but may produce a broken library. 14416 allow_undefined_flag_CXX='-berok' 14417 # Determine the default libpath from the value encoded in an empty 14418 # executable. 14419 if test "${lt_cv_aix_libpath+set}" = set; then 14420 aix_libpath=$lt_cv_aix_libpath 14421else 14422 if ${lt_cv_aix_libpath__CXX+:} false; then : 14423 $as_echo_n "(cached) " >&6 14424else 14425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14426/* end confdefs.h. */ 14427 14428int 14429main () 14430{ 14431 14432 ; 14433 return 0; 14434} 14435_ACEOF 14436if ac_fn_cxx_try_link "$LINENO"; then : 14437 14438 lt_aix_libpath_sed=' 14439 /Import File Strings/,/^$/ { 14440 /^0/ { 14441 s/^0 *\([^ ]*\) *$/\1/ 14442 p 14443 } 14444 }' 14445 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14446 # Check for a 64-bit object if we didn't find anything. 14447 if test -z "$lt_cv_aix_libpath__CXX"; then 14448 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14449 fi 14450fi 14451rm -f core conftest.err conftest.$ac_objext \ 14452 conftest$ac_exeext conftest.$ac_ext 14453 if test -z "$lt_cv_aix_libpath__CXX"; then 14454 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 14455 fi 14456 14457fi 14458 14459 aix_libpath=$lt_cv_aix_libpath__CXX 14460fi 14461 14462 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 14463 14464 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" 14465 else 14466 if test "$host_cpu" = ia64; then 14467 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 14468 allow_undefined_flag_CXX="-z nodefs" 14469 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" 14470 else 14471 # Determine the default libpath from the value encoded in an 14472 # empty executable. 14473 if test "${lt_cv_aix_libpath+set}" = set; then 14474 aix_libpath=$lt_cv_aix_libpath 14475else 14476 if ${lt_cv_aix_libpath__CXX+:} false; then : 14477 $as_echo_n "(cached) " >&6 14478else 14479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14480/* end confdefs.h. */ 14481 14482int 14483main () 14484{ 14485 14486 ; 14487 return 0; 14488} 14489_ACEOF 14490if ac_fn_cxx_try_link "$LINENO"; then : 14491 14492 lt_aix_libpath_sed=' 14493 /Import File Strings/,/^$/ { 14494 /^0/ { 14495 s/^0 *\([^ ]*\) *$/\1/ 14496 p 14497 } 14498 }' 14499 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14500 # Check for a 64-bit object if we didn't find anything. 14501 if test -z "$lt_cv_aix_libpath__CXX"; then 14502 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14503 fi 14504fi 14505rm -f core conftest.err conftest.$ac_objext \ 14506 conftest$ac_exeext conftest.$ac_ext 14507 if test -z "$lt_cv_aix_libpath__CXX"; then 14508 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 14509 fi 14510 14511fi 14512 14513 aix_libpath=$lt_cv_aix_libpath__CXX 14514fi 14515 14516 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 14517 # Warning - without using the other run time loading flags, 14518 # -berok will link without error, but may produce a broken library. 14519 no_undefined_flag_CXX=' ${wl}-bernotok' 14520 allow_undefined_flag_CXX=' ${wl}-berok' 14521 if test "$with_gnu_ld" = yes; then 14522 # We only use this code for GNU lds that support --whole-archive. 14523 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 14524 else 14525 # Exported symbols can be pulled into shared objects from archives 14526 whole_archive_flag_spec_CXX='$convenience' 14527 fi 14528 archive_cmds_need_lc_CXX=yes 14529 # This is similar to how AIX traditionally builds its shared 14530 # libraries. 14531 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' 14532 fi 14533 fi 14534 ;; 14535 14536 beos*) 14537 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14538 allow_undefined_flag_CXX=unsupported 14539 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14540 # support --undefined. This deserves some investigation. FIXME 14541 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14542 else 14543 ld_shlibs_CXX=no 14544 fi 14545 ;; 14546 14547 chorus*) 14548 case $cc_basename in 14549 *) 14550 # FIXME: insert proper C++ library support 14551 ld_shlibs_CXX=no 14552 ;; 14553 esac 14554 ;; 14555 14556 cygwin* | mingw* | pw32* | cegcc*) 14557 case $GXX,$cc_basename in 14558 ,cl* | no,cl*) 14559 # Native MSVC 14560 # hardcode_libdir_flag_spec is actually meaningless, as there is 14561 # no search path for DLLs. 14562 hardcode_libdir_flag_spec_CXX=' ' 14563 allow_undefined_flag_CXX=unsupported 14564 always_export_symbols_CXX=yes 14565 file_list_spec_CXX='@' 14566 # Tell ltmain to make .lib files, not .a files. 14567 libext=lib 14568 # Tell ltmain to make .dll files, not .so files. 14569 shrext_cmds=".dll" 14570 # FIXME: Setting linknames here is a bad hack. 14571 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 14572 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14573 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 14574 else 14575 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 14576 fi~ 14577 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 14578 linknames=' 14579 # The linker will not automatically build a static lib if we build a DLL. 14580 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 14581 enable_shared_with_static_runtimes_CXX=yes 14582 # Don't use ranlib 14583 old_postinstall_cmds_CXX='chmod 644 $oldlib' 14584 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 14585 lt_tool_outputfile="@TOOL_OUTPUT@"~ 14586 case $lt_outputfile in 14587 *.exe|*.EXE) ;; 14588 *) 14589 lt_outputfile="$lt_outputfile.exe" 14590 lt_tool_outputfile="$lt_tool_outputfile.exe" 14591 ;; 14592 esac~ 14593 func_to_tool_file "$lt_outputfile"~ 14594 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 14595 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 14596 $RM "$lt_outputfile.manifest"; 14597 fi' 14598 ;; 14599 *) 14600 # g++ 14601 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 14602 # as there is no search path for DLLs. 14603 hardcode_libdir_flag_spec_CXX='-L$libdir' 14604 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 14605 allow_undefined_flag_CXX=unsupported 14606 always_export_symbols_CXX=no 14607 enable_shared_with_static_runtimes_CXX=yes 14608 14609 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 14610 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' 14611 # If the export-symbols file already is a .def file (1st line 14612 # is EXPORTS), use it as is; otherwise, prepend... 14613 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14614 cp $export_symbols $output_objdir/$soname.def; 14615 else 14616 echo EXPORTS > $output_objdir/$soname.def; 14617 cat $export_symbols >> $output_objdir/$soname.def; 14618 fi~ 14619 $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' 14620 else 14621 ld_shlibs_CXX=no 14622 fi 14623 ;; 14624 esac 14625 ;; 14626 darwin* | rhapsody*) 14627 14628 14629 archive_cmds_need_lc_CXX=no 14630 hardcode_direct_CXX=no 14631 hardcode_automatic_CXX=yes 14632 hardcode_shlibpath_var_CXX=unsupported 14633 if test "$lt_cv_ld_force_load" = "yes"; then 14634 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\"`' 14635 14636 else 14637 whole_archive_flag_spec_CXX='' 14638 fi 14639 link_all_deplibs_CXX=yes 14640 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 14641 case $cc_basename in 14642 ifort*) _lt_dar_can_shared=yes ;; 14643 *) _lt_dar_can_shared=$GCC ;; 14644 esac 14645 if test "$_lt_dar_can_shared" = "yes"; then 14646 output_verbose_link_cmd=func_echo_all 14647 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}" 14648 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 14649 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}" 14650 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}" 14651 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 14652 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}" 14653 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}" 14654 fi 14655 14656 else 14657 ld_shlibs_CXX=no 14658 fi 14659 14660 ;; 14661 14662 dgux*) 14663 case $cc_basename in 14664 ec++*) 14665 # FIXME: insert proper C++ library support 14666 ld_shlibs_CXX=no 14667 ;; 14668 ghcx*) 14669 # Green Hills C++ Compiler 14670 # FIXME: insert proper C++ library support 14671 ld_shlibs_CXX=no 14672 ;; 14673 *) 14674 # FIXME: insert proper C++ library support 14675 ld_shlibs_CXX=no 14676 ;; 14677 esac 14678 ;; 14679 14680 freebsd2.*) 14681 # C++ shared libraries reported to be fairly broken before 14682 # switch to ELF 14683 ld_shlibs_CXX=no 14684 ;; 14685 14686 freebsd-elf*) 14687 archive_cmds_need_lc_CXX=no 14688 ;; 14689 14690 freebsd* | dragonfly*) 14691 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 14692 # conventions 14693 ld_shlibs_CXX=yes 14694 ;; 14695 14696 haiku*) 14697 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14698 link_all_deplibs_CXX=yes 14699 ;; 14700 14701 hpux9*) 14702 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 14703 hardcode_libdir_separator_CXX=: 14704 export_dynamic_flag_spec_CXX='${wl}-E' 14705 hardcode_direct_CXX=yes 14706 hardcode_minus_L_CXX=yes # Not in the search PATH, 14707 # but as the default 14708 # location of the library. 14709 14710 case $cc_basename in 14711 CC*) 14712 # FIXME: insert proper C++ library support 14713 ld_shlibs_CXX=no 14714 ;; 14715 aCC*) 14716 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' 14717 # Commands to make compiler produce verbose output that lists 14718 # what "hidden" libraries, object files and flags are used when 14719 # linking a shared library. 14720 # 14721 # There doesn't appear to be a way to prevent this compiler from 14722 # explicitly linking system object files so we need to strip them 14723 # from the output so that they don't get included in the library 14724 # dependencies. 14725 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"' 14726 ;; 14727 *) 14728 if test "$GXX" = yes; then 14729 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' 14730 else 14731 # FIXME: insert proper C++ library support 14732 ld_shlibs_CXX=no 14733 fi 14734 ;; 14735 esac 14736 ;; 14737 14738 hpux10*|hpux11*) 14739 if test $with_gnu_ld = no; then 14740 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 14741 hardcode_libdir_separator_CXX=: 14742 14743 case $host_cpu in 14744 hppa*64*|ia64*) 14745 ;; 14746 *) 14747 export_dynamic_flag_spec_CXX='${wl}-E' 14748 ;; 14749 esac 14750 fi 14751 case $host_cpu in 14752 hppa*64*|ia64*) 14753 hardcode_direct_CXX=no 14754 hardcode_shlibpath_var_CXX=no 14755 ;; 14756 *) 14757 hardcode_direct_CXX=yes 14758 hardcode_direct_absolute_CXX=yes 14759 hardcode_minus_L_CXX=yes # Not in the search PATH, 14760 # but as the default 14761 # location of the library. 14762 ;; 14763 esac 14764 14765 case $cc_basename in 14766 CC*) 14767 # FIXME: insert proper C++ library support 14768 ld_shlibs_CXX=no 14769 ;; 14770 aCC*) 14771 case $host_cpu in 14772 hppa*64*) 14773 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14774 ;; 14775 ia64*) 14776 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14777 ;; 14778 *) 14779 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14780 ;; 14781 esac 14782 # Commands to make compiler produce verbose output that lists 14783 # what "hidden" libraries, object files and flags are used when 14784 # linking a shared library. 14785 # 14786 # There doesn't appear to be a way to prevent this compiler from 14787 # explicitly linking system object files so we need to strip them 14788 # from the output so that they don't get included in the library 14789 # dependencies. 14790 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"' 14791 ;; 14792 *) 14793 if test "$GXX" = yes; then 14794 if test $with_gnu_ld = no; then 14795 case $host_cpu in 14796 hppa*64*) 14797 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14798 ;; 14799 ia64*) 14800 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14801 ;; 14802 *) 14803 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' 14804 ;; 14805 esac 14806 fi 14807 else 14808 # FIXME: insert proper C++ library support 14809 ld_shlibs_CXX=no 14810 fi 14811 ;; 14812 esac 14813 ;; 14814 14815 interix[3-9]*) 14816 hardcode_direct_CXX=no 14817 hardcode_shlibpath_var_CXX=no 14818 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 14819 export_dynamic_flag_spec_CXX='${wl}-E' 14820 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14821 # Instead, shared libraries are loaded at an image base (0x10000000 by 14822 # default) and relocated if they conflict, which is a slow very memory 14823 # consuming and fragmenting process. To avoid this, we pick a random, 14824 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14825 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14826 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' 14827 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' 14828 ;; 14829 irix5* | irix6*) 14830 case $cc_basename in 14831 CC*) 14832 # SGI C++ 14833 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' 14834 14835 # Archives containing C++ object files must be created using 14836 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 14837 # necessary to make sure instantiated templates are included 14838 # in the archive. 14839 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 14840 ;; 14841 *) 14842 if test "$GXX" = yes; then 14843 if test "$with_gnu_ld" = no; then 14844 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' 14845 else 14846 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' 14847 fi 14848 fi 14849 link_all_deplibs_CXX=yes 14850 ;; 14851 esac 14852 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 14853 hardcode_libdir_separator_CXX=: 14854 inherit_rpath_CXX=yes 14855 ;; 14856 14857 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14858 case $cc_basename in 14859 KCC*) 14860 # Kuck and Associates, Inc. (KAI) C++ Compiler 14861 14862 # KCC will only create a shared library if the output file 14863 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14864 # to its proper name (with version) after linking. 14865 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' 14866 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' 14867 # Commands to make compiler produce verbose output that lists 14868 # what "hidden" libraries, object files and flags are used when 14869 # linking a shared library. 14870 # 14871 # There doesn't appear to be a way to prevent this compiler from 14872 # explicitly linking system object files so we need to strip them 14873 # from the output so that they don't get included in the library 14874 # dependencies. 14875 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"' 14876 14877 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 14878 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 14879 14880 # Archives containing C++ object files must be created using 14881 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 14882 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 14883 ;; 14884 icpc* | ecpc* ) 14885 # Intel C++ 14886 with_gnu_ld=yes 14887 # version 8.0 and above of icpc choke on multiply defined symbols 14888 # if we add $predep_objects and $postdep_objects, however 7.1 and 14889 # earlier do not add the objects themselves. 14890 case `$CC -V 2>&1` in 14891 *"Version 7."*) 14892 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 14893 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' 14894 ;; 14895 *) # Version 8.0 or newer 14896 tmp_idyn= 14897 case $host_cpu in 14898 ia64*) tmp_idyn=' -i_dynamic';; 14899 esac 14900 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14901 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' 14902 ;; 14903 esac 14904 archive_cmds_need_lc_CXX=no 14905 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 14906 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 14907 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 14908 ;; 14909 pgCC* | pgcpp*) 14910 # Portland Group C++ compiler 14911 case `$CC -V` in 14912 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 14913 prelink_cmds_CXX='tpldir=Template.dir~ 14914 rm -rf $tpldir~ 14915 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 14916 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 14917 old_archive_cmds_CXX='tpldir=Template.dir~ 14918 rm -rf $tpldir~ 14919 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 14920 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 14921 $RANLIB $oldlib' 14922 archive_cmds_CXX='tpldir=Template.dir~ 14923 rm -rf $tpldir~ 14924 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14925 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 14926 archive_expsym_cmds_CXX='tpldir=Template.dir~ 14927 rm -rf $tpldir~ 14928 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14929 $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' 14930 ;; 14931 *) # Version 6 and above use weak symbols 14932 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 14933 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' 14934 ;; 14935 esac 14936 14937 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 14938 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 14939 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' 14940 ;; 14941 cxx*) 14942 # Compaq C++ 14943 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 14944 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' 14945 14946 runpath_var=LD_RUN_PATH 14947 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14948 hardcode_libdir_separator_CXX=: 14949 14950 # Commands to make compiler produce verbose output that lists 14951 # what "hidden" libraries, object files and flags are used when 14952 # linking a shared library. 14953 # 14954 # There doesn't appear to be a way to prevent this compiler from 14955 # explicitly linking system object files so we need to strip them 14956 # from the output so that they don't get included in the library 14957 # dependencies. 14958 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' 14959 ;; 14960 xl* | mpixl* | bgxl*) 14961 # IBM XL 8.0 on PPC, with GNU ld 14962 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 14963 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 14964 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14965 if test "x$supports_anon_versioning" = xyes; then 14966 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 14967 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14968 echo "local: *; };" >> $output_objdir/$libname.ver~ 14969 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14970 fi 14971 ;; 14972 *) 14973 case `$CC -V 2>&1 | sed 5q` in 14974 *Sun\ C*) 14975 # Sun C++ 5.9 14976 no_undefined_flag_CXX=' -zdefs' 14977 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14978 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' 14979 hardcode_libdir_flag_spec_CXX='-R$libdir' 14980 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' 14981 compiler_needs_object_CXX=yes 14982 14983 # Not sure whether something based on 14984 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 14985 # would be better. 14986 output_verbose_link_cmd='func_echo_all' 14987 14988 # Archives containing C++ object files must be created using 14989 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14990 # necessary to make sure instantiated templates are included 14991 # in the archive. 14992 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14993 ;; 14994 esac 14995 ;; 14996 esac 14997 ;; 14998 14999 lynxos*) 15000 # FIXME: insert proper C++ library support 15001 ld_shlibs_CXX=no 15002 ;; 15003 15004 m88k*) 15005 # FIXME: insert proper C++ library support 15006 ld_shlibs_CXX=no 15007 ;; 15008 15009 mvs*) 15010 case $cc_basename in 15011 cxx*) 15012 # FIXME: insert proper C++ library support 15013 ld_shlibs_CXX=no 15014 ;; 15015 *) 15016 # FIXME: insert proper C++ library support 15017 ld_shlibs_CXX=no 15018 ;; 15019 esac 15020 ;; 15021 15022 netbsd*) 15023 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15024 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 15025 wlarc= 15026 hardcode_libdir_flag_spec_CXX='-R$libdir' 15027 hardcode_direct_CXX=yes 15028 hardcode_shlibpath_var_CXX=no 15029 fi 15030 # Workaround some broken pre-1.5 toolchains 15031 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 15032 ;; 15033 15034 *nto* | *qnx*) 15035 ld_shlibs_CXX=yes 15036 ;; 15037 15038 openbsd2*) 15039 # C++ shared libraries are fairly broken 15040 ld_shlibs_CXX=no 15041 ;; 15042 15043 openbsd*) 15044 if test -f /usr/libexec/ld.so; then 15045 hardcode_direct_CXX=yes 15046 hardcode_shlibpath_var_CXX=no 15047 hardcode_direct_absolute_CXX=yes 15048 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 15049 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 15050 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15051 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 15052 export_dynamic_flag_spec_CXX='${wl}-E' 15053 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 15054 fi 15055 output_verbose_link_cmd=func_echo_all 15056 else 15057 ld_shlibs_CXX=no 15058 fi 15059 ;; 15060 15061 osf3* | osf4* | osf5*) 15062 case $cc_basename in 15063 KCC*) 15064 # Kuck and Associates, Inc. (KAI) C++ Compiler 15065 15066 # KCC will only create a shared library if the output file 15067 # ends with ".so" (or ".sl" for HP-UX), so rename the library 15068 # to its proper name (with version) after linking. 15069 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' 15070 15071 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 15072 hardcode_libdir_separator_CXX=: 15073 15074 # Archives containing C++ object files must be created using 15075 # the KAI C++ compiler. 15076 case $host in 15077 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 15078 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 15079 esac 15080 ;; 15081 RCC*) 15082 # Rational C++ 2.4.1 15083 # FIXME: insert proper C++ library support 15084 ld_shlibs_CXX=no 15085 ;; 15086 cxx*) 15087 case $host in 15088 osf3*) 15089 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 15090 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' 15091 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 15092 ;; 15093 *) 15094 allow_undefined_flag_CXX=' -expect_unresolved \*' 15095 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' 15096 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 15097 echo "-hidden">> $lib.exp~ 15098 $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~ 15099 $RM $lib.exp' 15100 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 15101 ;; 15102 esac 15103 15104 hardcode_libdir_separator_CXX=: 15105 15106 # Commands to make compiler produce verbose output that lists 15107 # what "hidden" libraries, object files and flags are used when 15108 # linking a shared library. 15109 # 15110 # There doesn't appear to be a way to prevent this compiler from 15111 # explicitly linking system object files so we need to strip them 15112 # from the output so that they don't get included in the library 15113 # dependencies. 15114 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"' 15115 ;; 15116 *) 15117 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 15118 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 15119 case $host in 15120 osf3*) 15121 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' 15122 ;; 15123 *) 15124 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' 15125 ;; 15126 esac 15127 15128 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 15129 hardcode_libdir_separator_CXX=: 15130 15131 # Commands to make compiler produce verbose output that lists 15132 # what "hidden" libraries, object files and flags are used when 15133 # linking a shared library. 15134 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15135 15136 else 15137 # FIXME: insert proper C++ library support 15138 ld_shlibs_CXX=no 15139 fi 15140 ;; 15141 esac 15142 ;; 15143 15144 psos*) 15145 # FIXME: insert proper C++ library support 15146 ld_shlibs_CXX=no 15147 ;; 15148 15149 sunos4*) 15150 case $cc_basename in 15151 CC*) 15152 # Sun C++ 4.x 15153 # FIXME: insert proper C++ library support 15154 ld_shlibs_CXX=no 15155 ;; 15156 lcc*) 15157 # Lucid 15158 # FIXME: insert proper C++ library support 15159 ld_shlibs_CXX=no 15160 ;; 15161 *) 15162 # FIXME: insert proper C++ library support 15163 ld_shlibs_CXX=no 15164 ;; 15165 esac 15166 ;; 15167 15168 solaris*) 15169 case $cc_basename in 15170 CC* | sunCC*) 15171 # Sun C++ 4.2, 5.x and Centerline C++ 15172 archive_cmds_need_lc_CXX=yes 15173 no_undefined_flag_CXX=' -zdefs' 15174 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15175 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15176 $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' 15177 15178 hardcode_libdir_flag_spec_CXX='-R$libdir' 15179 hardcode_shlibpath_var_CXX=no 15180 case $host_os in 15181 solaris2.[0-5] | solaris2.[0-5].*) ;; 15182 *) 15183 # The compiler driver will combine and reorder linker options, 15184 # but understands `-z linker_flag'. 15185 # Supported since Solaris 2.6 (maybe 2.5.1?) 15186 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 15187 ;; 15188 esac 15189 link_all_deplibs_CXX=yes 15190 15191 output_verbose_link_cmd='func_echo_all' 15192 15193 # Archives containing C++ object files must be created using 15194 # "CC -xar", where "CC" is the Sun C++ compiler. This is 15195 # necessary to make sure instantiated templates are included 15196 # in the archive. 15197 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 15198 ;; 15199 gcx*) 15200 # Green Hills C++ Compiler 15201 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 15202 15203 # The C++ compiler must be used to create the archive. 15204 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 15205 ;; 15206 *) 15207 # GNU C++ compiler with Solaris linker 15208 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 15209 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 15210 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 15211 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 15212 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15213 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 15214 15215 # Commands to make compiler produce verbose output that lists 15216 # what "hidden" libraries, object files and flags are used when 15217 # linking a shared library. 15218 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15219 else 15220 # g++ 2.7 appears to require `-G' NOT `-shared' on this 15221 # platform. 15222 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 15223 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15224 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 15225 15226 # Commands to make compiler produce verbose output that lists 15227 # what "hidden" libraries, object files and flags are used when 15228 # linking a shared library. 15229 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15230 fi 15231 15232 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 15233 case $host_os in 15234 solaris2.[0-5] | solaris2.[0-5].*) ;; 15235 *) 15236 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 15237 ;; 15238 esac 15239 fi 15240 ;; 15241 esac 15242 ;; 15243 15244 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15245 no_undefined_flag_CXX='${wl}-z,text' 15246 archive_cmds_need_lc_CXX=no 15247 hardcode_shlibpath_var_CXX=no 15248 runpath_var='LD_RUN_PATH' 15249 15250 case $cc_basename in 15251 CC*) 15252 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15253 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15254 ;; 15255 *) 15256 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15257 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15258 ;; 15259 esac 15260 ;; 15261 15262 sysv5* | sco3.2v5* | sco5v6*) 15263 # Note: We can NOT use -z defs as we might desire, because we do not 15264 # link with -lc, and that would cause any symbols used from libc to 15265 # always be unresolved, which means just about no library would 15266 # ever link correctly. If we're not using GNU ld we use -z text 15267 # though, which does catch some bad symbols but isn't as heavy-handed 15268 # as -z defs. 15269 no_undefined_flag_CXX='${wl}-z,text' 15270 allow_undefined_flag_CXX='${wl}-z,nodefs' 15271 archive_cmds_need_lc_CXX=no 15272 hardcode_shlibpath_var_CXX=no 15273 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 15274 hardcode_libdir_separator_CXX=':' 15275 link_all_deplibs_CXX=yes 15276 export_dynamic_flag_spec_CXX='${wl}-Bexport' 15277 runpath_var='LD_RUN_PATH' 15278 15279 case $cc_basename in 15280 CC*) 15281 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15282 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15283 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 15284 '"$old_archive_cmds_CXX" 15285 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 15286 '"$reload_cmds_CXX" 15287 ;; 15288 *) 15289 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15290 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15291 ;; 15292 esac 15293 ;; 15294 15295 tandem*) 15296 case $cc_basename in 15297 NCC*) 15298 # NonStop-UX NCC 3.20 15299 # FIXME: insert proper C++ library support 15300 ld_shlibs_CXX=no 15301 ;; 15302 *) 15303 # FIXME: insert proper C++ library support 15304 ld_shlibs_CXX=no 15305 ;; 15306 esac 15307 ;; 15308 15309 vxworks*) 15310 # FIXME: insert proper C++ library support 15311 ld_shlibs_CXX=no 15312 ;; 15313 15314 *) 15315 # FIXME: insert proper C++ library support 15316 ld_shlibs_CXX=no 15317 ;; 15318 esac 15319 15320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15321$as_echo "$ld_shlibs_CXX" >&6; } 15322 test "$ld_shlibs_CXX" = no && can_build_shared=no 15323 15324 GCC_CXX="$GXX" 15325 LD_CXX="$LD" 15326 15327 ## CAVEAT EMPTOR: 15328 ## There is no encapsulation within the following macros, do not change 15329 ## the running order or otherwise move them around unless you know exactly 15330 ## what you are doing... 15331 # Dependencies to place before and after the object being linked: 15332predep_objects_CXX= 15333postdep_objects_CXX= 15334predeps_CXX= 15335postdeps_CXX= 15336compiler_lib_search_path_CXX= 15337 15338cat > conftest.$ac_ext <<_LT_EOF 15339class Foo 15340{ 15341public: 15342 Foo (void) { a = 0; } 15343private: 15344 int a; 15345}; 15346_LT_EOF 15347 15348 15349_lt_libdeps_save_CFLAGS=$CFLAGS 15350case "$CC $CFLAGS " in #( 15351*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 15352*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 15353*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 15354esac 15355 15356if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15357 (eval $ac_compile) 2>&5 15358 ac_status=$? 15359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15360 test $ac_status = 0; }; then 15361 # Parse the compiler output and extract the necessary 15362 # objects, libraries and library flags. 15363 15364 # Sentinel used to keep track of whether or not we are before 15365 # the conftest object file. 15366 pre_test_object_deps_done=no 15367 15368 for p in `eval "$output_verbose_link_cmd"`; do 15369 case ${prev}${p} in 15370 15371 -L* | -R* | -l*) 15372 # Some compilers place space between "-{L,R}" and the path. 15373 # Remove the space. 15374 if test $p = "-L" || 15375 test $p = "-R"; then 15376 prev=$p 15377 continue 15378 fi 15379 15380 # Expand the sysroot to ease extracting the directories later. 15381 if test -z "$prev"; then 15382 case $p in 15383 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 15384 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 15385 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 15386 esac 15387 fi 15388 case $p in 15389 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 15390 esac 15391 if test "$pre_test_object_deps_done" = no; then 15392 case ${prev} in 15393 -L | -R) 15394 # Internal compiler library paths should come after those 15395 # provided the user. The postdeps already come after the 15396 # user supplied libs so there is no need to process them. 15397 if test -z "$compiler_lib_search_path_CXX"; then 15398 compiler_lib_search_path_CXX="${prev}${p}" 15399 else 15400 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 15401 fi 15402 ;; 15403 # The "-l" case would never come before the object being 15404 # linked, so don't bother handling this case. 15405 esac 15406 else 15407 if test -z "$postdeps_CXX"; then 15408 postdeps_CXX="${prev}${p}" 15409 else 15410 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 15411 fi 15412 fi 15413 prev= 15414 ;; 15415 15416 *.lto.$objext) ;; # Ignore GCC LTO objects 15417 *.$objext) 15418 # This assumes that the test object file only shows up 15419 # once in the compiler output. 15420 if test "$p" = "conftest.$objext"; then 15421 pre_test_object_deps_done=yes 15422 continue 15423 fi 15424 15425 if test "$pre_test_object_deps_done" = no; then 15426 if test -z "$predep_objects_CXX"; then 15427 predep_objects_CXX="$p" 15428 else 15429 predep_objects_CXX="$predep_objects_CXX $p" 15430 fi 15431 else 15432 if test -z "$postdep_objects_CXX"; then 15433 postdep_objects_CXX="$p" 15434 else 15435 postdep_objects_CXX="$postdep_objects_CXX $p" 15436 fi 15437 fi 15438 ;; 15439 15440 *) ;; # Ignore the rest. 15441 15442 esac 15443 done 15444 15445 # Clean up. 15446 rm -f a.out a.exe 15447else 15448 echo "libtool.m4: error: problem compiling CXX test program" 15449fi 15450 15451$RM -f confest.$objext 15452CFLAGS=$_lt_libdeps_save_CFLAGS 15453 15454# PORTME: override above test on systems where it is broken 15455case $host_os in 15456interix[3-9]*) 15457 # Interix 3.5 installs completely hosed .la files for C++, so rather than 15458 # hack all around it, let's just trust "g++" to DTRT. 15459 predep_objects_CXX= 15460 postdep_objects_CXX= 15461 postdeps_CXX= 15462 ;; 15463 15464linux*) 15465 case `$CC -V 2>&1 | sed 5q` in 15466 *Sun\ C*) 15467 # Sun C++ 5.9 15468 15469 # The more standards-conforming stlport4 library is 15470 # incompatible with the Cstd library. Avoid specifying 15471 # it if it's in CXXFLAGS. Ignore libCrun as 15472 # -library=stlport4 depends on it. 15473 case " $CXX $CXXFLAGS " in 15474 *" -library=stlport4 "*) 15475 solaris_use_stlport4=yes 15476 ;; 15477 esac 15478 15479 if test "$solaris_use_stlport4" != yes; then 15480 postdeps_CXX='-library=Cstd -library=Crun' 15481 fi 15482 ;; 15483 esac 15484 ;; 15485 15486solaris*) 15487 case $cc_basename in 15488 CC* | sunCC*) 15489 # The more standards-conforming stlport4 library is 15490 # incompatible with the Cstd library. Avoid specifying 15491 # it if it's in CXXFLAGS. Ignore libCrun as 15492 # -library=stlport4 depends on it. 15493 case " $CXX $CXXFLAGS " in 15494 *" -library=stlport4 "*) 15495 solaris_use_stlport4=yes 15496 ;; 15497 esac 15498 15499 # Adding this requires a known-good setup of shared libraries for 15500 # Sun compiler versions before 5.6, else PIC objects from an old 15501 # archive will be linked into the output, leading to subtle bugs. 15502 if test "$solaris_use_stlport4" != yes; then 15503 postdeps_CXX='-library=Cstd -library=Crun' 15504 fi 15505 ;; 15506 esac 15507 ;; 15508esac 15509 15510 15511case " $postdeps_CXX " in 15512*" -lc "*) archive_cmds_need_lc_CXX=no ;; 15513esac 15514 compiler_lib_search_dirs_CXX= 15515if test -n "${compiler_lib_search_path_CXX}"; then 15516 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 15517fi 15518 15519 15520 15521 15522 15523 15524 15525 15526 15527 15528 15529 15530 15531 15532 15533 15534 15535 15536 15537 15538 15539 15540 15541 15542 15543 15544 15545 15546 15547 15548 15549 lt_prog_compiler_wl_CXX= 15550lt_prog_compiler_pic_CXX= 15551lt_prog_compiler_static_CXX= 15552 15553 15554 # C++ specific cases for pic, static, wl, etc. 15555 if test "$GXX" = yes; then 15556 lt_prog_compiler_wl_CXX='-Wl,' 15557 lt_prog_compiler_static_CXX='-static' 15558 15559 case $host_os in 15560 aix*) 15561 # All AIX code is PIC. 15562 if test "$host_cpu" = ia64; then 15563 # AIX 5 now supports IA64 processor 15564 lt_prog_compiler_static_CXX='-Bstatic' 15565 fi 15566 ;; 15567 15568 amigaos*) 15569 case $host_cpu in 15570 powerpc) 15571 # see comment about AmigaOS4 .so support 15572 lt_prog_compiler_pic_CXX='-fPIC' 15573 ;; 15574 m68k) 15575 # FIXME: we need at least 68020 code to build shared libraries, but 15576 # adding the `-m68020' flag to GCC prevents building anything better, 15577 # like `-m68040'. 15578 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 15579 ;; 15580 esac 15581 ;; 15582 15583 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15584 # PIC is the default for these OSes. 15585 ;; 15586 mingw* | cygwin* | os2* | pw32* | cegcc*) 15587 # This hack is so that the source file can tell whether it is being 15588 # built for inclusion in a dll (and should export symbols for example). 15589 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15590 # (--disable-auto-import) libraries 15591 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15592 ;; 15593 darwin* | rhapsody*) 15594 # PIC is the default on this platform 15595 # Common symbols not allowed in MH_DYLIB files 15596 lt_prog_compiler_pic_CXX='-fno-common' 15597 ;; 15598 *djgpp*) 15599 # DJGPP does not support shared libraries at all 15600 lt_prog_compiler_pic_CXX= 15601 ;; 15602 haiku*) 15603 # PIC is the default for Haiku. 15604 # The "-static" flag exists, but is broken. 15605 lt_prog_compiler_static_CXX= 15606 ;; 15607 interix[3-9]*) 15608 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15609 # Instead, we relocate shared libraries at runtime. 15610 ;; 15611 sysv4*MP*) 15612 if test -d /usr/nec; then 15613 lt_prog_compiler_pic_CXX=-Kconform_pic 15614 fi 15615 ;; 15616 hpux*) 15617 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15618 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15619 # sets the default TLS model and affects inlining. 15620 case $host_cpu in 15621 hppa*64*) 15622 ;; 15623 *) 15624 lt_prog_compiler_pic_CXX='-fPIC' 15625 ;; 15626 esac 15627 ;; 15628 *qnx* | *nto*) 15629 # QNX uses GNU C++, but need to define -shared option too, otherwise 15630 # it will coredump. 15631 lt_prog_compiler_pic_CXX='-fPIC -shared' 15632 ;; 15633 *) 15634 lt_prog_compiler_pic_CXX='-fPIC' 15635 ;; 15636 esac 15637 else 15638 case $host_os in 15639 aix[4-9]*) 15640 # All AIX code is PIC. 15641 if test "$host_cpu" = ia64; then 15642 # AIX 5 now supports IA64 processor 15643 lt_prog_compiler_static_CXX='-Bstatic' 15644 else 15645 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 15646 fi 15647 ;; 15648 chorus*) 15649 case $cc_basename in 15650 cxch68*) 15651 # Green Hills C++ Compiler 15652 # _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" 15653 ;; 15654 esac 15655 ;; 15656 mingw* | cygwin* | os2* | pw32* | cegcc*) 15657 # This hack is so that the source file can tell whether it is being 15658 # built for inclusion in a dll (and should export symbols for example). 15659 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15660 ;; 15661 dgux*) 15662 case $cc_basename in 15663 ec++*) 15664 lt_prog_compiler_pic_CXX='-KPIC' 15665 ;; 15666 ghcx*) 15667 # Green Hills C++ Compiler 15668 lt_prog_compiler_pic_CXX='-pic' 15669 ;; 15670 *) 15671 ;; 15672 esac 15673 ;; 15674 freebsd* | dragonfly*) 15675 # FreeBSD uses GNU C++ 15676 ;; 15677 hpux9* | hpux10* | hpux11*) 15678 case $cc_basename in 15679 CC*) 15680 lt_prog_compiler_wl_CXX='-Wl,' 15681 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 15682 if test "$host_cpu" != ia64; then 15683 lt_prog_compiler_pic_CXX='+Z' 15684 fi 15685 ;; 15686 aCC*) 15687 lt_prog_compiler_wl_CXX='-Wl,' 15688 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 15689 case $host_cpu in 15690 hppa*64*|ia64*) 15691 # +Z the default 15692 ;; 15693 *) 15694 lt_prog_compiler_pic_CXX='+Z' 15695 ;; 15696 esac 15697 ;; 15698 *) 15699 ;; 15700 esac 15701 ;; 15702 interix*) 15703 # This is c89, which is MS Visual C++ (no shared libs) 15704 # Anyone wants to do a port? 15705 ;; 15706 irix5* | irix6* | nonstopux*) 15707 case $cc_basename in 15708 CC*) 15709 lt_prog_compiler_wl_CXX='-Wl,' 15710 lt_prog_compiler_static_CXX='-non_shared' 15711 # CC pic flag -KPIC is the default. 15712 ;; 15713 *) 15714 ;; 15715 esac 15716 ;; 15717 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15718 case $cc_basename in 15719 KCC*) 15720 # KAI C++ Compiler 15721 lt_prog_compiler_wl_CXX='--backend -Wl,' 15722 lt_prog_compiler_pic_CXX='-fPIC' 15723 ;; 15724 ecpc* ) 15725 # old Intel C++ for x86_64 which still supported -KPIC. 15726 lt_prog_compiler_wl_CXX='-Wl,' 15727 lt_prog_compiler_pic_CXX='-KPIC' 15728 lt_prog_compiler_static_CXX='-static' 15729 ;; 15730 icpc* ) 15731 # Intel C++, used to be incompatible with GCC. 15732 # ICC 10 doesn't accept -KPIC any more. 15733 lt_prog_compiler_wl_CXX='-Wl,' 15734 lt_prog_compiler_pic_CXX='-fPIC' 15735 lt_prog_compiler_static_CXX='-static' 15736 ;; 15737 pgCC* | pgcpp*) 15738 # Portland Group C++ compiler 15739 lt_prog_compiler_wl_CXX='-Wl,' 15740 lt_prog_compiler_pic_CXX='-fpic' 15741 lt_prog_compiler_static_CXX='-Bstatic' 15742 ;; 15743 cxx*) 15744 # Compaq C++ 15745 # Make sure the PIC flag is empty. It appears that all Alpha 15746 # Linux and Compaq Tru64 Unix objects are PIC. 15747 lt_prog_compiler_pic_CXX= 15748 lt_prog_compiler_static_CXX='-non_shared' 15749 ;; 15750 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 15751 # IBM XL 8.0, 9.0 on PPC and BlueGene 15752 lt_prog_compiler_wl_CXX='-Wl,' 15753 lt_prog_compiler_pic_CXX='-qpic' 15754 lt_prog_compiler_static_CXX='-qstaticlink' 15755 ;; 15756 *) 15757 case `$CC -V 2>&1 | sed 5q` in 15758 *Sun\ C*) 15759 # Sun C++ 5.9 15760 lt_prog_compiler_pic_CXX='-KPIC' 15761 lt_prog_compiler_static_CXX='-Bstatic' 15762 lt_prog_compiler_wl_CXX='-Qoption ld ' 15763 ;; 15764 esac 15765 ;; 15766 esac 15767 ;; 15768 lynxos*) 15769 ;; 15770 m88k*) 15771 ;; 15772 mvs*) 15773 case $cc_basename in 15774 cxx*) 15775 lt_prog_compiler_pic_CXX='-W c,exportall' 15776 ;; 15777 *) 15778 ;; 15779 esac 15780 ;; 15781 netbsd* | netbsdelf*-gnu) 15782 ;; 15783 *qnx* | *nto*) 15784 # QNX uses GNU C++, but need to define -shared option too, otherwise 15785 # it will coredump. 15786 lt_prog_compiler_pic_CXX='-fPIC -shared' 15787 ;; 15788 osf3* | osf4* | osf5*) 15789 case $cc_basename in 15790 KCC*) 15791 lt_prog_compiler_wl_CXX='--backend -Wl,' 15792 ;; 15793 RCC*) 15794 # Rational C++ 2.4.1 15795 lt_prog_compiler_pic_CXX='-pic' 15796 ;; 15797 cxx*) 15798 # Digital/Compaq C++ 15799 lt_prog_compiler_wl_CXX='-Wl,' 15800 # Make sure the PIC flag is empty. It appears that all Alpha 15801 # Linux and Compaq Tru64 Unix objects are PIC. 15802 lt_prog_compiler_pic_CXX= 15803 lt_prog_compiler_static_CXX='-non_shared' 15804 ;; 15805 *) 15806 ;; 15807 esac 15808 ;; 15809 psos*) 15810 ;; 15811 solaris*) 15812 case $cc_basename in 15813 CC* | sunCC*) 15814 # Sun C++ 4.2, 5.x and Centerline C++ 15815 lt_prog_compiler_pic_CXX='-KPIC' 15816 lt_prog_compiler_static_CXX='-Bstatic' 15817 lt_prog_compiler_wl_CXX='-Qoption ld ' 15818 ;; 15819 gcx*) 15820 # Green Hills C++ Compiler 15821 lt_prog_compiler_pic_CXX='-PIC' 15822 ;; 15823 *) 15824 ;; 15825 esac 15826 ;; 15827 sunos4*) 15828 case $cc_basename in 15829 CC*) 15830 # Sun C++ 4.x 15831 lt_prog_compiler_pic_CXX='-pic' 15832 lt_prog_compiler_static_CXX='-Bstatic' 15833 ;; 15834 lcc*) 15835 # Lucid 15836 lt_prog_compiler_pic_CXX='-pic' 15837 ;; 15838 *) 15839 ;; 15840 esac 15841 ;; 15842 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15843 case $cc_basename in 15844 CC*) 15845 lt_prog_compiler_wl_CXX='-Wl,' 15846 lt_prog_compiler_pic_CXX='-KPIC' 15847 lt_prog_compiler_static_CXX='-Bstatic' 15848 ;; 15849 esac 15850 ;; 15851 tandem*) 15852 case $cc_basename in 15853 NCC*) 15854 # NonStop-UX NCC 3.20 15855 lt_prog_compiler_pic_CXX='-KPIC' 15856 ;; 15857 *) 15858 ;; 15859 esac 15860 ;; 15861 vxworks*) 15862 ;; 15863 *) 15864 lt_prog_compiler_can_build_shared_CXX=no 15865 ;; 15866 esac 15867 fi 15868 15869case $host_os in 15870 # For platforms which do not support PIC, -DPIC is meaningless: 15871 *djgpp*) 15872 lt_prog_compiler_pic_CXX= 15873 ;; 15874 *) 15875 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 15876 ;; 15877esac 15878 15879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15880$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15881if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 15882 $as_echo_n "(cached) " >&6 15883else 15884 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 15885fi 15886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 15887$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 15888lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 15889 15890# 15891# Check to make sure the PIC flag actually works. 15892# 15893if test -n "$lt_prog_compiler_pic_CXX"; then 15894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 15895$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 15896if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 15897 $as_echo_n "(cached) " >&6 15898else 15899 lt_cv_prog_compiler_pic_works_CXX=no 15900 ac_outfile=conftest.$ac_objext 15901 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15902 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 15903 # Insert the option either (1) after the last *FLAGS variable, or 15904 # (2) before a word containing "conftest.", or (3) at the end. 15905 # Note that $ac_compile itself does not contain backslashes and begins 15906 # with a dollar sign (not a hyphen), so the echo should work correctly. 15907 # The option is referenced via a variable to avoid confusing sed. 15908 lt_compile=`echo "$ac_compile" | $SED \ 15909 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15910 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15911 -e 's:$: $lt_compiler_flag:'` 15912 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15913 (eval "$lt_compile" 2>conftest.err) 15914 ac_status=$? 15915 cat conftest.err >&5 15916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15917 if (exit $ac_status) && test -s "$ac_outfile"; then 15918 # The compiler can only warn and ignore the option if not recognized 15919 # So say no if there are warnings other than the usual output. 15920 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15921 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15922 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15923 lt_cv_prog_compiler_pic_works_CXX=yes 15924 fi 15925 fi 15926 $RM conftest* 15927 15928fi 15929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 15930$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 15931 15932if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 15933 case $lt_prog_compiler_pic_CXX in 15934 "" | " "*) ;; 15935 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 15936 esac 15937else 15938 lt_prog_compiler_pic_CXX= 15939 lt_prog_compiler_can_build_shared_CXX=no 15940fi 15941 15942fi 15943 15944 15945 15946 15947 15948# 15949# Check to make sure the static flag actually works. 15950# 15951wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 15952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15953$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15954if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 15955 $as_echo_n "(cached) " >&6 15956else 15957 lt_cv_prog_compiler_static_works_CXX=no 15958 save_LDFLAGS="$LDFLAGS" 15959 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15960 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15961 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15962 # The linker can only warn and ignore the option if not recognized 15963 # So say no if there are warnings 15964 if test -s conftest.err; then 15965 # Append any errors to the config.log. 15966 cat conftest.err 1>&5 15967 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15968 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15969 if diff conftest.exp conftest.er2 >/dev/null; then 15970 lt_cv_prog_compiler_static_works_CXX=yes 15971 fi 15972 else 15973 lt_cv_prog_compiler_static_works_CXX=yes 15974 fi 15975 fi 15976 $RM -r conftest* 15977 LDFLAGS="$save_LDFLAGS" 15978 15979fi 15980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 15981$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 15982 15983if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 15984 : 15985else 15986 lt_prog_compiler_static_CXX= 15987fi 15988 15989 15990 15991 15992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15993$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15994if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15995 $as_echo_n "(cached) " >&6 15996else 15997 lt_cv_prog_compiler_c_o_CXX=no 15998 $RM -r conftest 2>/dev/null 15999 mkdir conftest 16000 cd conftest 16001 mkdir out 16002 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16003 16004 lt_compiler_flag="-o out/conftest2.$ac_objext" 16005 # Insert the option either (1) after the last *FLAGS variable, or 16006 # (2) before a word containing "conftest.", or (3) at the end. 16007 # Note that $ac_compile itself does not contain backslashes and begins 16008 # with a dollar sign (not a hyphen), so the echo should work correctly. 16009 lt_compile=`echo "$ac_compile" | $SED \ 16010 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16011 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16012 -e 's:$: $lt_compiler_flag:'` 16013 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16014 (eval "$lt_compile" 2>out/conftest.err) 16015 ac_status=$? 16016 cat out/conftest.err >&5 16017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16018 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16019 then 16020 # The compiler can only warn and ignore the option if not recognized 16021 # So say no if there are warnings 16022 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16023 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16024 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16025 lt_cv_prog_compiler_c_o_CXX=yes 16026 fi 16027 fi 16028 chmod u+w . 2>&5 16029 $RM conftest* 16030 # SGI C++ compiler will create directory out/ii_files/ for 16031 # template instantiation 16032 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16033 $RM out/* && rmdir out 16034 cd .. 16035 $RM -r conftest 16036 $RM conftest* 16037 16038fi 16039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 16040$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 16041 16042 16043 16044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16045$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16046if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 16047 $as_echo_n "(cached) " >&6 16048else 16049 lt_cv_prog_compiler_c_o_CXX=no 16050 $RM -r conftest 2>/dev/null 16051 mkdir conftest 16052 cd conftest 16053 mkdir out 16054 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16055 16056 lt_compiler_flag="-o out/conftest2.$ac_objext" 16057 # Insert the option either (1) after the last *FLAGS variable, or 16058 # (2) before a word containing "conftest.", or (3) at the end. 16059 # Note that $ac_compile itself does not contain backslashes and begins 16060 # with a dollar sign (not a hyphen), so the echo should work correctly. 16061 lt_compile=`echo "$ac_compile" | $SED \ 16062 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16063 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16064 -e 's:$: $lt_compiler_flag:'` 16065 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16066 (eval "$lt_compile" 2>out/conftest.err) 16067 ac_status=$? 16068 cat out/conftest.err >&5 16069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16070 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16071 then 16072 # The compiler can only warn and ignore the option if not recognized 16073 # So say no if there are warnings 16074 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16075 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16076 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16077 lt_cv_prog_compiler_c_o_CXX=yes 16078 fi 16079 fi 16080 chmod u+w . 2>&5 16081 $RM conftest* 16082 # SGI C++ compiler will create directory out/ii_files/ for 16083 # template instantiation 16084 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16085 $RM out/* && rmdir out 16086 cd .. 16087 $RM -r conftest 16088 $RM conftest* 16089 16090fi 16091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 16092$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 16093 16094 16095 16096 16097hard_links="nottested" 16098if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 16099 # do not overwrite the value of need_locks provided by the user 16100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 16101$as_echo_n "checking if we can lock with hard links... " >&6; } 16102 hard_links=yes 16103 $RM conftest* 16104 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16105 touch conftest.a 16106 ln conftest.a conftest.b 2>&5 || hard_links=no 16107 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 16109$as_echo "$hard_links" >&6; } 16110 if test "$hard_links" = no; then 16111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16112$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16113 need_locks=warn 16114 fi 16115else 16116 need_locks=no 16117fi 16118 16119 16120 16121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16122$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 16123 16124 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16125 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 16126 case $host_os in 16127 aix[4-9]*) 16128 # If we're using GNU nm, then we don't want the "-C" option. 16129 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16130 # Also, AIX nm treats weak defined symbols like other global defined 16131 # symbols, whereas GNU nm marks them as "W". 16132 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 16133 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' 16134 else 16135 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' 16136 fi 16137 ;; 16138 pw32*) 16139 export_symbols_cmds_CXX="$ltdll_cmds" 16140 ;; 16141 cygwin* | mingw* | cegcc*) 16142 case $cc_basename in 16143 cl*) 16144 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 16145 ;; 16146 *) 16147 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' 16148 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 16149 ;; 16150 esac 16151 ;; 16152 linux* | k*bsd*-gnu | gnu*) 16153 link_all_deplibs_CXX=no 16154 ;; 16155 *) 16156 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16157 ;; 16158 esac 16159 16160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 16161$as_echo "$ld_shlibs_CXX" >&6; } 16162test "$ld_shlibs_CXX" = no && can_build_shared=no 16163 16164with_gnu_ld_CXX=$with_gnu_ld 16165 16166 16167 16168 16169 16170 16171# 16172# Do we need to explicitly link libc? 16173# 16174case "x$archive_cmds_need_lc_CXX" in 16175x|xyes) 16176 # Assume -lc should be added 16177 archive_cmds_need_lc_CXX=yes 16178 16179 if test "$enable_shared" = yes && test "$GCC" = yes; then 16180 case $archive_cmds_CXX in 16181 *'~'*) 16182 # FIXME: we may have to deal with multi-command sequences. 16183 ;; 16184 '$CC '*) 16185 # Test whether the compiler implicitly links with -lc since on some 16186 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16187 # to ld, don't add -lc before -lgcc. 16188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 16189$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 16190if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 16191 $as_echo_n "(cached) " >&6 16192else 16193 $RM conftest* 16194 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16195 16196 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16197 (eval $ac_compile) 2>&5 16198 ac_status=$? 16199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16200 test $ac_status = 0; } 2>conftest.err; then 16201 soname=conftest 16202 lib=conftest 16203 libobjs=conftest.$ac_objext 16204 deplibs= 16205 wl=$lt_prog_compiler_wl_CXX 16206 pic_flag=$lt_prog_compiler_pic_CXX 16207 compiler_flags=-v 16208 linker_flags=-v 16209 verstring= 16210 output_objdir=. 16211 libname=conftest 16212 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 16213 allow_undefined_flag_CXX= 16214 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 16215 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 16216 ac_status=$? 16217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16218 test $ac_status = 0; } 16219 then 16220 lt_cv_archive_cmds_need_lc_CXX=no 16221 else 16222 lt_cv_archive_cmds_need_lc_CXX=yes 16223 fi 16224 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 16225 else 16226 cat conftest.err 1>&5 16227 fi 16228 $RM conftest* 16229 16230fi 16231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 16232$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 16233 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 16234 ;; 16235 esac 16236 fi 16237 ;; 16238esac 16239 16240 16241 16242 16243 16244 16245 16246 16247 16248 16249 16250 16251 16252 16253 16254 16255 16256 16257 16258 16259 16260 16261 16262 16263 16264 16265 16266 16267 16268 16269 16270 16271 16272 16273 16274 16275 16276 16277 16278 16279 16280 16281 16282 16283 16284 16285 16286 16287 16288 16289 16290 16291 16292 16293 16294 16295 16296 16297 16298 16299 16300 16301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 16302$as_echo_n "checking dynamic linker characteristics... " >&6; } 16303 16304library_names_spec= 16305libname_spec='lib$name' 16306soname_spec= 16307shrext_cmds=".so" 16308postinstall_cmds= 16309postuninstall_cmds= 16310finish_cmds= 16311finish_eval= 16312shlibpath_var= 16313shlibpath_overrides_runpath=unknown 16314version_type=none 16315dynamic_linker="$host_os ld.so" 16316sys_lib_dlsearch_path_spec="/lib /usr/lib" 16317need_lib_prefix=unknown 16318hardcode_into_libs=no 16319 16320# when you set need_version to no, make sure it does not cause -set_version 16321# flags to be left without arguments 16322need_version=unknown 16323 16324case $host_os in 16325aix3*) 16326 version_type=linux # correct to gnu/linux during the next big refactor 16327 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 16328 shlibpath_var=LIBPATH 16329 16330 # AIX 3 has no versioning support, so we append a major version to the name. 16331 soname_spec='${libname}${release}${shared_ext}$major' 16332 ;; 16333 16334aix[4-9]*) 16335 version_type=linux # correct to gnu/linux during the next big refactor 16336 need_lib_prefix=no 16337 need_version=no 16338 hardcode_into_libs=yes 16339 if test "$host_cpu" = ia64; then 16340 # AIX 5 supports IA64 16341 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 16342 shlibpath_var=LD_LIBRARY_PATH 16343 else 16344 # With GCC up to 2.95.x, collect2 would create an import file 16345 # for dependence libraries. The import file would start with 16346 # the line `#! .'. This would cause the generated library to 16347 # depend on `.', always an invalid library. This was fixed in 16348 # development snapshots of GCC prior to 3.0. 16349 case $host_os in 16350 aix4 | aix4.[01] | aix4.[01].*) 16351 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16352 echo ' yes ' 16353 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 16354 : 16355 else 16356 can_build_shared=no 16357 fi 16358 ;; 16359 esac 16360 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 16361 # soname into executable. Probably we can add versioning support to 16362 # collect2, so additional links can be useful in future. 16363 if test "$aix_use_runtimelinking" = yes; then 16364 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16365 # instead of lib<name>.a to let people know that these are not 16366 # typical AIX shared libraries. 16367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16368 else 16369 # We preserve .a as extension for shared libraries through AIX4.2 16370 # and later when we are not doing run time linking. 16371 library_names_spec='${libname}${release}.a $libname.a' 16372 soname_spec='${libname}${release}${shared_ext}$major' 16373 fi 16374 shlibpath_var=LIBPATH 16375 fi 16376 ;; 16377 16378amigaos*) 16379 case $host_cpu in 16380 powerpc) 16381 # Since July 2007 AmigaOS4 officially supports .so libraries. 16382 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 16383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16384 ;; 16385 m68k) 16386 library_names_spec='$libname.ixlibrary $libname.a' 16387 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16388 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' 16389 ;; 16390 esac 16391 ;; 16392 16393beos*) 16394 library_names_spec='${libname}${shared_ext}' 16395 dynamic_linker="$host_os ld.so" 16396 shlibpath_var=LIBRARY_PATH 16397 ;; 16398 16399bsdi[45]*) 16400 version_type=linux # correct to gnu/linux during the next big refactor 16401 need_version=no 16402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16403 soname_spec='${libname}${release}${shared_ext}$major' 16404 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16405 shlibpath_var=LD_LIBRARY_PATH 16406 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16407 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16408 # the default ld.so.conf also contains /usr/contrib/lib and 16409 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16410 # libtool to hard-code these into programs 16411 ;; 16412 16413cygwin* | mingw* | pw32* | cegcc*) 16414 version_type=windows 16415 shrext_cmds=".dll" 16416 need_version=no 16417 need_lib_prefix=no 16418 16419 case $GCC,$cc_basename in 16420 yes,*) 16421 # gcc 16422 library_names_spec='$libname.dll.a' 16423 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16424 postinstall_cmds='base_file=`basename \${file}`~ 16425 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 16426 dldir=$destdir/`dirname \$dlpath`~ 16427 test -d \$dldir || mkdir -p \$dldir~ 16428 $install_prog $dir/$dlname \$dldir/$dlname~ 16429 chmod a+x \$dldir/$dlname~ 16430 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16431 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16432 fi' 16433 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16434 dlpath=$dir/\$dldll~ 16435 $RM \$dlpath' 16436 shlibpath_overrides_runpath=yes 16437 16438 case $host_os in 16439 cygwin*) 16440 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16441 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16442 16443 ;; 16444 mingw* | cegcc*) 16445 # MinGW DLLs use traditional 'lib' prefix 16446 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16447 ;; 16448 pw32*) 16449 # pw32 DLLs use 'pw' prefix rather than 'lib' 16450 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16451 ;; 16452 esac 16453 dynamic_linker='Win32 ld.exe' 16454 ;; 16455 16456 *,cl*) 16457 # Native MSVC 16458 libname_spec='$name' 16459 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16460 library_names_spec='${libname}.dll.lib' 16461 16462 case $build_os in 16463 mingw*) 16464 sys_lib_search_path_spec= 16465 lt_save_ifs=$IFS 16466 IFS=';' 16467 for lt_path in $LIB 16468 do 16469 IFS=$lt_save_ifs 16470 # Let DOS variable expansion print the short 8.3 style file name. 16471 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 16472 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 16473 done 16474 IFS=$lt_save_ifs 16475 # Convert to MSYS style. 16476 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 16477 ;; 16478 cygwin*) 16479 # Convert to unix form, then to dos form, then back to unix form 16480 # but this time dos style (no spaces!) so that the unix form looks 16481 # like /cygdrive/c/PROGRA~1:/cygdr... 16482 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 16483 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 16484 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16485 ;; 16486 *) 16487 sys_lib_search_path_spec="$LIB" 16488 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 16489 # It is most probably a Windows format PATH. 16490 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16491 else 16492 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16493 fi 16494 # FIXME: find the short name or the path components, as spaces are 16495 # common. (e.g. "Program Files" -> "PROGRA~1") 16496 ;; 16497 esac 16498 16499 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16500 postinstall_cmds='base_file=`basename \${file}`~ 16501 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 16502 dldir=$destdir/`dirname \$dlpath`~ 16503 test -d \$dldir || mkdir -p \$dldir~ 16504 $install_prog $dir/$dlname \$dldir/$dlname' 16505 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16506 dlpath=$dir/\$dldll~ 16507 $RM \$dlpath' 16508 shlibpath_overrides_runpath=yes 16509 dynamic_linker='Win32 link.exe' 16510 ;; 16511 16512 *) 16513 # Assume MSVC wrapper 16514 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 16515 dynamic_linker='Win32 ld.exe' 16516 ;; 16517 esac 16518 # FIXME: first we should search . and the directory the executable is in 16519 shlibpath_var=PATH 16520 ;; 16521 16522darwin* | rhapsody*) 16523 dynamic_linker="$host_os dyld" 16524 version_type=darwin 16525 need_lib_prefix=no 16526 need_version=no 16527 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 16528 soname_spec='${libname}${release}${major}$shared_ext' 16529 shlibpath_overrides_runpath=yes 16530 shlibpath_var=DYLD_LIBRARY_PATH 16531 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16532 16533 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16534 ;; 16535 16536dgux*) 16537 version_type=linux # correct to gnu/linux during the next big refactor 16538 need_lib_prefix=no 16539 need_version=no 16540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 16541 soname_spec='${libname}${release}${shared_ext}$major' 16542 shlibpath_var=LD_LIBRARY_PATH 16543 ;; 16544 16545freebsd* | dragonfly*) 16546 # DragonFly does not have aout. When/if they implement a new 16547 # versioning mechanism, adjust this. 16548 if test -x /usr/bin/objformat; then 16549 objformat=`/usr/bin/objformat` 16550 else 16551 case $host_os in 16552 freebsd[23].*) objformat=aout ;; 16553 *) objformat=elf ;; 16554 esac 16555 fi 16556 version_type=freebsd-$objformat 16557 case $version_type in 16558 freebsd-elf*) 16559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16560 need_version=no 16561 need_lib_prefix=no 16562 ;; 16563 freebsd-*) 16564 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 16565 need_version=yes 16566 ;; 16567 esac 16568 shlibpath_var=LD_LIBRARY_PATH 16569 case $host_os in 16570 freebsd2.*) 16571 shlibpath_overrides_runpath=yes 16572 ;; 16573 freebsd3.[01]* | freebsdelf3.[01]*) 16574 shlibpath_overrides_runpath=yes 16575 hardcode_into_libs=yes 16576 ;; 16577 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16578 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16579 shlibpath_overrides_runpath=no 16580 hardcode_into_libs=yes 16581 ;; 16582 *) # from 4.6 on, and DragonFly 16583 shlibpath_overrides_runpath=yes 16584 hardcode_into_libs=yes 16585 ;; 16586 esac 16587 ;; 16588 16589haiku*) 16590 version_type=linux # correct to gnu/linux during the next big refactor 16591 need_lib_prefix=no 16592 need_version=no 16593 dynamic_linker="$host_os runtime_loader" 16594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16595 soname_spec='${libname}${release}${shared_ext}$major' 16596 shlibpath_var=LIBRARY_PATH 16597 shlibpath_overrides_runpath=yes 16598 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 16599 hardcode_into_libs=yes 16600 ;; 16601 16602hpux9* | hpux10* | hpux11*) 16603 # Give a soname corresponding to the major version so that dld.sl refuses to 16604 # link against other versions. 16605 version_type=sunos 16606 need_lib_prefix=no 16607 need_version=no 16608 case $host_cpu in 16609 ia64*) 16610 shrext_cmds='.so' 16611 hardcode_into_libs=yes 16612 dynamic_linker="$host_os dld.so" 16613 shlibpath_var=LD_LIBRARY_PATH 16614 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16616 soname_spec='${libname}${release}${shared_ext}$major' 16617 if test "X$HPUX_IA64_MODE" = X32; then 16618 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16619 else 16620 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16621 fi 16622 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16623 ;; 16624 hppa*64*) 16625 shrext_cmds='.sl' 16626 hardcode_into_libs=yes 16627 dynamic_linker="$host_os dld.sl" 16628 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16629 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16631 soname_spec='${libname}${release}${shared_ext}$major' 16632 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16633 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16634 ;; 16635 *) 16636 shrext_cmds='.sl' 16637 dynamic_linker="$host_os dld.sl" 16638 shlibpath_var=SHLIB_PATH 16639 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16641 soname_spec='${libname}${release}${shared_ext}$major' 16642 ;; 16643 esac 16644 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 16645 postinstall_cmds='chmod 555 $lib' 16646 # or fails outright, so override atomically: 16647 install_override_mode=555 16648 ;; 16649 16650interix[3-9]*) 16651 version_type=linux # correct to gnu/linux during the next big refactor 16652 need_lib_prefix=no 16653 need_version=no 16654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16655 soname_spec='${libname}${release}${shared_ext}$major' 16656 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16657 shlibpath_var=LD_LIBRARY_PATH 16658 shlibpath_overrides_runpath=no 16659 hardcode_into_libs=yes 16660 ;; 16661 16662irix5* | irix6* | nonstopux*) 16663 case $host_os in 16664 nonstopux*) version_type=nonstopux ;; 16665 *) 16666 if test "$lt_cv_prog_gnu_ld" = yes; then 16667 version_type=linux # correct to gnu/linux during the next big refactor 16668 else 16669 version_type=irix 16670 fi ;; 16671 esac 16672 need_lib_prefix=no 16673 need_version=no 16674 soname_spec='${libname}${release}${shared_ext}$major' 16675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16676 case $host_os in 16677 irix5* | nonstopux*) 16678 libsuff= shlibsuff= 16679 ;; 16680 *) 16681 case $LD in # libtool.m4 will add one of these switches to LD 16682 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16683 libsuff= shlibsuff= libmagic=32-bit;; 16684 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16685 libsuff=32 shlibsuff=N32 libmagic=N32;; 16686 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16687 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16688 *) libsuff= shlibsuff= libmagic=never-match;; 16689 esac 16690 ;; 16691 esac 16692 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16693 shlibpath_overrides_runpath=no 16694 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16695 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16696 hardcode_into_libs=yes 16697 ;; 16698 16699# No shared lib support for Linux oldld, aout, or coff. 16700linux*oldld* | linux*aout* | linux*coff*) 16701 dynamic_linker=no 16702 ;; 16703 16704# This must be glibc/ELF. 16705linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16706 version_type=linux # correct to gnu/linux during the next big refactor 16707 need_lib_prefix=no 16708 need_version=no 16709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16710 soname_spec='${libname}${release}${shared_ext}$major' 16711 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16712 shlibpath_var=LD_LIBRARY_PATH 16713 shlibpath_overrides_runpath=no 16714 16715 # Some binutils ld are patched to set DT_RUNPATH 16716 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 16717 $as_echo_n "(cached) " >&6 16718else 16719 lt_cv_shlibpath_overrides_runpath=no 16720 save_LDFLAGS=$LDFLAGS 16721 save_libdir=$libdir 16722 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 16723 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 16724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16725/* end confdefs.h. */ 16726 16727int 16728main () 16729{ 16730 16731 ; 16732 return 0; 16733} 16734_ACEOF 16735if ac_fn_cxx_try_link "$LINENO"; then : 16736 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 16737 lt_cv_shlibpath_overrides_runpath=yes 16738fi 16739fi 16740rm -f core conftest.err conftest.$ac_objext \ 16741 conftest$ac_exeext conftest.$ac_ext 16742 LDFLAGS=$save_LDFLAGS 16743 libdir=$save_libdir 16744 16745fi 16746 16747 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 16748 16749 # This implies no fast_install, which is unacceptable. 16750 # Some rework will be needed to allow for fast_install 16751 # before this can be enabled. 16752 hardcode_into_libs=yes 16753 16754 # Append ld.so.conf contents to the search path 16755 if test -f /etc/ld.so.conf; then 16756 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' ' '` 16757 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16758 fi 16759 16760 # We used to test for /lib/ld.so.1 and disable shared libraries on 16761 # powerpc, because MkLinux only supported shared libraries with the 16762 # GNU dynamic linker. Since this was broken with cross compilers, 16763 # most powerpc-linux boxes support dynamic linking these days and 16764 # people can always --disable-shared, the test was removed, and we 16765 # assume the GNU/Linux dynamic linker is in use. 16766 dynamic_linker='GNU/Linux ld.so' 16767 ;; 16768 16769netbsdelf*-gnu) 16770 version_type=linux 16771 need_lib_prefix=no 16772 need_version=no 16773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16774 soname_spec='${libname}${release}${shared_ext}$major' 16775 shlibpath_var=LD_LIBRARY_PATH 16776 shlibpath_overrides_runpath=no 16777 hardcode_into_libs=yes 16778 dynamic_linker='NetBSD ld.elf_so' 16779 ;; 16780 16781netbsd*) 16782 version_type=sunos 16783 need_lib_prefix=no 16784 need_version=no 16785 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16787 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16788 dynamic_linker='NetBSD (a.out) ld.so' 16789 else 16790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16791 soname_spec='${libname}${release}${shared_ext}$major' 16792 dynamic_linker='NetBSD ld.elf_so' 16793 fi 16794 shlibpath_var=LD_LIBRARY_PATH 16795 shlibpath_overrides_runpath=yes 16796 hardcode_into_libs=yes 16797 ;; 16798 16799newsos6) 16800 version_type=linux # correct to gnu/linux during the next big refactor 16801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16802 shlibpath_var=LD_LIBRARY_PATH 16803 shlibpath_overrides_runpath=yes 16804 ;; 16805 16806*nto* | *qnx*) 16807 version_type=qnx 16808 need_lib_prefix=no 16809 need_version=no 16810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16811 soname_spec='${libname}${release}${shared_ext}$major' 16812 shlibpath_var=LD_LIBRARY_PATH 16813 shlibpath_overrides_runpath=no 16814 hardcode_into_libs=yes 16815 dynamic_linker='ldqnx.so' 16816 ;; 16817 16818openbsd*) 16819 version_type=sunos 16820 sys_lib_dlsearch_path_spec="/usr/lib" 16821 need_lib_prefix=no 16822 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16823 case $host_os in 16824 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16825 *) need_version=no ;; 16826 esac 16827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16828 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16829 shlibpath_var=LD_LIBRARY_PATH 16830 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16831 case $host_os in 16832 openbsd2.[89] | openbsd2.[89].*) 16833 shlibpath_overrides_runpath=no 16834 ;; 16835 *) 16836 shlibpath_overrides_runpath=yes 16837 ;; 16838 esac 16839 else 16840 shlibpath_overrides_runpath=yes 16841 fi 16842 ;; 16843 16844os2*) 16845 libname_spec='$name' 16846 shrext_cmds=".dll" 16847 need_lib_prefix=no 16848 library_names_spec='$libname${shared_ext} $libname.a' 16849 dynamic_linker='OS/2 ld.exe' 16850 shlibpath_var=LIBPATH 16851 ;; 16852 16853osf3* | osf4* | osf5*) 16854 version_type=osf 16855 need_lib_prefix=no 16856 need_version=no 16857 soname_spec='${libname}${release}${shared_ext}$major' 16858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16859 shlibpath_var=LD_LIBRARY_PATH 16860 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16861 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16862 ;; 16863 16864rdos*) 16865 dynamic_linker=no 16866 ;; 16867 16868solaris*) 16869 version_type=linux # correct to gnu/linux during the next big refactor 16870 need_lib_prefix=no 16871 need_version=no 16872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16873 soname_spec='${libname}${release}${shared_ext}$major' 16874 shlibpath_var=LD_LIBRARY_PATH 16875 shlibpath_overrides_runpath=yes 16876 hardcode_into_libs=yes 16877 # ldd complains unless libraries are executable 16878 postinstall_cmds='chmod +x $lib' 16879 ;; 16880 16881sunos4*) 16882 version_type=sunos 16883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16884 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16885 shlibpath_var=LD_LIBRARY_PATH 16886 shlibpath_overrides_runpath=yes 16887 if test "$with_gnu_ld" = yes; then 16888 need_lib_prefix=no 16889 fi 16890 need_version=yes 16891 ;; 16892 16893sysv4 | sysv4.3*) 16894 version_type=linux # correct to gnu/linux during the next big refactor 16895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16896 soname_spec='${libname}${release}${shared_ext}$major' 16897 shlibpath_var=LD_LIBRARY_PATH 16898 case $host_vendor in 16899 sni) 16900 shlibpath_overrides_runpath=no 16901 need_lib_prefix=no 16902 runpath_var=LD_RUN_PATH 16903 ;; 16904 siemens) 16905 need_lib_prefix=no 16906 ;; 16907 motorola) 16908 need_lib_prefix=no 16909 need_version=no 16910 shlibpath_overrides_runpath=no 16911 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16912 ;; 16913 esac 16914 ;; 16915 16916sysv4*MP*) 16917 if test -d /usr/nec ;then 16918 version_type=linux # correct to gnu/linux during the next big refactor 16919 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16920 soname_spec='$libname${shared_ext}.$major' 16921 shlibpath_var=LD_LIBRARY_PATH 16922 fi 16923 ;; 16924 16925sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16926 version_type=freebsd-elf 16927 need_lib_prefix=no 16928 need_version=no 16929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16930 soname_spec='${libname}${release}${shared_ext}$major' 16931 shlibpath_var=LD_LIBRARY_PATH 16932 shlibpath_overrides_runpath=yes 16933 hardcode_into_libs=yes 16934 if test "$with_gnu_ld" = yes; then 16935 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16936 else 16937 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16938 case $host_os in 16939 sco3.2v5*) 16940 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16941 ;; 16942 esac 16943 fi 16944 sys_lib_dlsearch_path_spec='/usr/lib' 16945 ;; 16946 16947tpf*) 16948 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 16949 version_type=linux # correct to gnu/linux during the next big refactor 16950 need_lib_prefix=no 16951 need_version=no 16952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16953 shlibpath_var=LD_LIBRARY_PATH 16954 shlibpath_overrides_runpath=no 16955 hardcode_into_libs=yes 16956 ;; 16957 16958uts4*) 16959 version_type=linux # correct to gnu/linux during the next big refactor 16960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16961 soname_spec='${libname}${release}${shared_ext}$major' 16962 shlibpath_var=LD_LIBRARY_PATH 16963 ;; 16964 16965*) 16966 dynamic_linker=no 16967 ;; 16968esac 16969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 16970$as_echo "$dynamic_linker" >&6; } 16971test "$dynamic_linker" = no && can_build_shared=no 16972 16973variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16974if test "$GCC" = yes; then 16975 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16976fi 16977 16978if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 16979 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 16980fi 16981if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 16982 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 16983fi 16984 16985 16986 16987 16988 16989 16990 16991 16992 16993 16994 16995 16996 16997 16998 16999 17000 17001 17002 17003 17004 17005 17006 17007 17008 17009 17010 17011 17012 17013 17014 17015 17016 17017 17018 17019 17020 17021 17022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 17023$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 17024hardcode_action_CXX= 17025if test -n "$hardcode_libdir_flag_spec_CXX" || 17026 test -n "$runpath_var_CXX" || 17027 test "X$hardcode_automatic_CXX" = "Xyes" ; then 17028 17029 # We can hardcode non-existent directories. 17030 if test "$hardcode_direct_CXX" != no && 17031 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17032 # have to relink, otherwise we might link with an installed library 17033 # when we should be linking with a yet-to-be-installed one 17034 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 17035 test "$hardcode_minus_L_CXX" != no; then 17036 # Linking always hardcodes the temporary library directory. 17037 hardcode_action_CXX=relink 17038 else 17039 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17040 hardcode_action_CXX=immediate 17041 fi 17042else 17043 # We cannot hardcode anything, or else we can only hardcode existing 17044 # directories. 17045 hardcode_action_CXX=unsupported 17046fi 17047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 17048$as_echo "$hardcode_action_CXX" >&6; } 17049 17050if test "$hardcode_action_CXX" = relink || 17051 test "$inherit_rpath_CXX" = yes; then 17052 # Fast installation is not supported 17053 enable_fast_install=no 17054elif test "$shlibpath_overrides_runpath" = yes || 17055 test "$enable_shared" = no; then 17056 # Fast installation is not necessary 17057 enable_fast_install=needless 17058fi 17059 17060 17061 17062 17063 17064 17065 17066 fi # test -n "$compiler" 17067 17068 CC=$lt_save_CC 17069 CFLAGS=$lt_save_CFLAGS 17070 LDCXX=$LD 17071 LD=$lt_save_LD 17072 GCC=$lt_save_GCC 17073 with_gnu_ld=$lt_save_with_gnu_ld 17074 lt_cv_path_LDCXX=$lt_cv_path_LD 17075 lt_cv_path_LD=$lt_save_path_LD 17076 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 17077 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 17078fi # test "$_lt_caught_CXX_error" != yes 17079 17080ac_ext=c 17081ac_cpp='$CPP $CPPFLAGS' 17082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17084ac_compiler_gnu=$ac_cv_c_compiler_gnu 17085 17086 17087 17088 17089 17090 17091 17092 17093 17094 17095 17096 17097 17098 17099 17100 ac_config_commands="$ac_config_commands libtool" 17101 17102 17103 17104 17105# Only expand once: 17106 17107 17108if test -e ./libtool -a "X$enable_shared" = "X"; then 17109enable_shared=`./libtool --config | grep '^build_libtool_libs=' | sed -e 's/build_libtool_libs=//'` 17110enable_static=`./libtool --config | grep '^build_old_libs=' | sed -e 's/build_old_libs=//'` 17111fi 17112if test $enable_shared = yes; then 17113 if expr "$host" : ".*openbsd.*" >/dev/null; then 17114 as_fn_error $? " 17115 17116The dynamic linker (ld) on openBSD is too buggy for C++ shared libraries. 17117Static libraries are supported however, please configure using 17118--enable-static --disable-shared, which is the default for openBSD. 17119" "$LINENO" 5 17120 fi 17121fi 17122if ! grep 'BEGIN LIBTOOL CONFIG' $srcdir/configure >/dev/null; then 17123sys_lib_dlsearch_path_spec=`./libtool --config | grep '^sys_lib_dlsearch_path_spec=' | sed -e 's/sys_lib_dlsearch_path_spec="\(.*\)"$/\1/'` 17124tmp=$libdir 17125test "x$tmp" = 'x${exec_prefix}/lib' && tmp=$exec_prefix/lib 17126test "x$tmp" = 'xNONE/lib' && tmp=$prefix/lib 17127test "x$tmp" = 'xNONE/lib' && tmp=$ac_default_prefix/lib 17128dq='"' 17129sq="'" 17130se='|' 17131eval sed -e ${sq}s${se}^sys_lib_dlsearch_path_spec=.*${se}sys_lib_dlsearch_path_spec=${dq}$sys_lib_dlsearch_path_spec $tmp${dq}${se}${sq} libtool > libtool.tmp && mv libtool.tmp libtool 17132fi 17133 17134CC_FINGER_PRINT="$cw_cv_sys_CC_finger_print" 17135 17136CXX_FINGER_PRINT="$cw_cv_sys_CXX_finger_print" 17137 17138CXXCPP_FINGER_PRINT="$cw_cv_sys_CXXCPP_finger_print" 17139 17140 17141 17142CW_CONFIG_ALLOC=0 17143 17144CW_CONFIG_MAGIC=0 17145 17146CW_CONFIG_GLIBCXX_DEBUG=0 17147 17148CW_CONFIG_LOCATION=0 17149 17150CW_CONFIG_LIBBFD=0 17151 17152CW_CONFIG_DEBUG=0 17153 17154CW_CONFIG_DEBUGOUTPUT=0 17155 17156CW_CONFIG_DEBUGM=0 17157 17158CW_CONFIG_DEBUGT=0 17159 17160CW_CONFIG_MARKER=0 17161 17162CW_CONFIG_HAVE___LIBC_MALLOC=undef 17163 17164CW_CONFIG_HAVE__LIBC_MALLOC=undef 17165 17166CW_CONFIG_HAVE_DLOPEN=undef 17167 17168CW_CONFIG_HAVE_POSIX_MEMALIGN=undef 17169 17170CW_CONFIG_HAVE_MEMALIGN=undef 17171 17172CW_CONFIG_HAVE_VALLOC=undef 17173 17174 17175 17176 17177 17178 17179if test "$libcwd_config_alloc" = yes; then 17180 CW_CONFIG_ALLOC=1 17181fi 17182 17183if test "$libcwd_config_magic" = yes; then 17184 CW_CONFIG_MAGIC=1 17185fi 17186 17187PCCFLAGS="-DCWDEBUG" 17188 17189if test "$libcwd_config_glibcxx_debug" = yes; then 17190 CW_CONFIG_GLIBCXX_DEBUG=1 17191 CXXFLAGS="$CXXFLAGS -D_GLIBCXX_DEBUG" 17192 PCCFLAGS="$PCCFLAGS -D_GLIBCXX_DEBUG" 17193fi 17194 17195ac_ext=cpp 17196ac_cpp='$CXXCPP $CPPFLAGS' 17197ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17198ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17199ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17200 17201 17202 17203 17204for ac_func in __libc_malloc _libc_malloc 17205do : 17206 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17207ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" 17208if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17209 cat >>confdefs.h <<_ACEOF 17210#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17211_ACEOF 17212 17213fi 17214done 17215 17216 17217if test "$libcwd_config_location" = yes -o \ 17218 \("$ac_cv_func___libc_malloc" != yes -a "$ac_cv_func__libc_malloc" != yes\) ; then 17219 17220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5 17221$as_echo_n "checking for dlopen in -lc... " >&6; } 17222if ${ac_cv_lib_c_dlopen+:} false; then : 17223 $as_echo_n "(cached) " >&6 17224else 17225 ac_check_lib_save_LIBS=$LIBS 17226LIBS="-lc $LIBS" 17227cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17228/* end confdefs.h. */ 17229 17230/* Override any GCC internal prototype to avoid an error. 17231 Use char because int might match the return type of a GCC 17232 builtin and then its argument prototype would still apply. */ 17233#ifdef __cplusplus 17234extern "C" 17235#endif 17236char dlopen (); 17237int 17238main () 17239{ 17240return dlopen (); 17241 ; 17242 return 0; 17243} 17244_ACEOF 17245if ac_fn_cxx_try_link "$LINENO"; then : 17246 ac_cv_lib_c_dlopen=yes 17247else 17248 ac_cv_lib_c_dlopen=no 17249fi 17250rm -f core conftest.err conftest.$ac_objext \ 17251 conftest$ac_exeext conftest.$ac_ext 17252LIBS=$ac_check_lib_save_LIBS 17253fi 17254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5 17255$as_echo "$ac_cv_lib_c_dlopen" >&6; } 17256if test "x$ac_cv_lib_c_dlopen" = xyes; then : 17257 17258cat >>confdefs.h <<_ACEOF 17259#define HAVE_DLOPEN 1 17260_ACEOF 17261 17262else 17263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17264$as_echo_n "checking for dlopen in -ldl... " >&6; } 17265if ${ac_cv_lib_dl_dlopen+:} false; then : 17266 $as_echo_n "(cached) " >&6 17267else 17268 ac_check_lib_save_LIBS=$LIBS 17269LIBS="-ldl $LIBS" 17270cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17271/* end confdefs.h. */ 17272 17273/* Override any GCC internal prototype to avoid an error. 17274 Use char because int might match the return type of a GCC 17275 builtin and then its argument prototype would still apply. */ 17276#ifdef __cplusplus 17277extern "C" 17278#endif 17279char dlopen (); 17280int 17281main () 17282{ 17283return dlopen (); 17284 ; 17285 return 0; 17286} 17287_ACEOF 17288if ac_fn_cxx_try_link "$LINENO"; then : 17289 ac_cv_lib_dl_dlopen=yes 17290else 17291 ac_cv_lib_dl_dlopen=no 17292fi 17293rm -f core conftest.err conftest.$ac_objext \ 17294 conftest$ac_exeext conftest.$ac_ext 17295LIBS=$ac_check_lib_save_LIBS 17296fi 17297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 17298$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 17299if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 17300 LIBS="-ldl $LIBS"; cat >>confdefs.h <<_ACEOF 17301#define HAVE_DLOPEN 1 17302_ACEOF 17303 17304fi 17305 17306fi 17307 17308 17309fi 17310 17311if test "$libcwd_config_location" = yes ; then 17312 CW_CONFIG_LOCATION=1 17313fi 17314 17315 17316CW_CONFIG_HAVE_PTHREADS=undef 17317 17318 17319if test "$libcwd_config_threading" = yes; then 17320 17321 17322 ac_ext=c 17323ac_cpp='$CPP $CPPFLAGS' 17324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17326ac_compiler_gnu=$ac_cv_c_compiler_gnu 17327 17328 CFLAGS="-pthread" 17329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5 17330$as_echo_n "checking for library containing pthread_create... " >&6; } 17331if ${ac_cv_search_pthread_create+:} false; then : 17332 $as_echo_n "(cached) " >&6 17333else 17334 ac_func_search_save_LIBS=$LIBS 17335cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17336/* end confdefs.h. */ 17337 17338/* Override any GCC internal prototype to avoid an error. 17339 Use char because int might match the return type of a GCC 17340 builtin and then its argument prototype would still apply. */ 17341#ifdef __cplusplus 17342extern "C" 17343#endif 17344char pthread_create (); 17345int 17346main () 17347{ 17348return pthread_create (); 17349 ; 17350 return 0; 17351} 17352_ACEOF 17353for ac_lib in '' pthread; do 17354 if test -z "$ac_lib"; then 17355 ac_res="none required" 17356 else 17357 ac_res=-l$ac_lib 17358 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17359 fi 17360 if ac_fn_c_try_link "$LINENO"; then : 17361 ac_cv_search_pthread_create=$ac_res 17362fi 17363rm -f core conftest.err conftest.$ac_objext \ 17364 conftest$ac_exeext 17365 if ${ac_cv_search_pthread_create+:} false; then : 17366 break 17367fi 17368done 17369if ${ac_cv_search_pthread_create+:} false; then : 17370 17371else 17372 ac_cv_search_pthread_create=no 17373fi 17374rm conftest.$ac_ext 17375LIBS=$ac_func_search_save_LIBS 17376fi 17377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5 17378$as_echo "$ac_cv_search_pthread_create" >&6; } 17379ac_res=$ac_cv_search_pthread_create 17380if test "$ac_res" != no; then : 17381 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17382 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 17383if test "x$ac_cv_header_pthread_h" = xyes; then : 17384 CW_CONFIG_HAVE_PTHREADS=define 17385else 17386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 17387 17388************************************************************************** 17389* Sorry but libcwd only supports POSIX Threads at the moment and I can't * 17390* find the header file pthread.h. Only the thread unsafe library libcwd * 17391* will be compiled. Use --disable-threading to suppress this warning. * 17392************************************************************************** 17393" >&5 17394$as_echo "$as_me: WARNING: 17395 17396************************************************************************** 17397* Sorry but libcwd only supports POSIX Threads at the moment and I can't * 17398* find the header file pthread.h. Only the thread unsafe library libcwd * 17399* will be compiled. Use --disable-threading to suppress this warning. * 17400************************************************************************** 17401" >&2;} 17402 libcwd_config_threading=no 17403fi 17404 17405 17406else 17407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 17408 17409************************************************************************** 17410* Sorry but libcwd only supports POSIX Threads at the moment. Your libc * 17411* doesn't include posix threads by itself and I can't find -lpthread. * 17412* Use --disable-threading to suppress this warning. * 17413************************************************************************** 17414" >&5 17415$as_echo "$as_me: WARNING: 17416 17417************************************************************************** 17418* Sorry but libcwd only supports POSIX Threads at the moment. Your libc * 17419* doesn't include posix threads by itself and I can't find -lpthread. * 17420* Use --disable-threading to suppress this warning. * 17421************************************************************************** 17422" >&2;} 17423 libcwd_config_threading=no 17424fi 17425 17426 if test "$libcwd_config_threading" = yes; then 17427 if test "$ac_cv_search_pthread_create" = "none required"; then 17428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 17429$as_echo_n "checking for pthread_create in -lpthread... " >&6; } 17430if ${ac_cv_lib_pthread_pthread_create+:} false; then : 17431 $as_echo_n "(cached) " >&6 17432else 17433 ac_check_lib_save_LIBS=$LIBS 17434LIBS="-lpthread $LIBS" 17435cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17436/* end confdefs.h. */ 17437 17438/* Override any GCC internal prototype to avoid an error. 17439 Use char because int might match the return type of a GCC 17440 builtin and then its argument prototype would still apply. */ 17441#ifdef __cplusplus 17442extern "C" 17443#endif 17444char pthread_create (); 17445int 17446main () 17447{ 17448return pthread_create (); 17449 ; 17450 return 0; 17451} 17452_ACEOF 17453if ac_fn_c_try_link "$LINENO"; then : 17454 ac_cv_lib_pthread_pthread_create=yes 17455else 17456 ac_cv_lib_pthread_pthread_create=no 17457fi 17458rm -f core conftest.err conftest.$ac_objext \ 17459 conftest$ac_exeext conftest.$ac_ext 17460LIBS=$ac_check_lib_save_LIBS 17461fi 17462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 17463$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } 17464if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then : 17465 LIB_THREADS_SHARED=-lpthread 17466fi 17467 17468 fi 17469 fi 17470 17471 ac_ext=cpp 17472ac_cpp='$CXXCPP $CPPFLAGS' 17473ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17474ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17475ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17476 17477 17478 if test "$libcwd_config_threading" = yes; then 17479 17480cat >>confdefs.h <<_ACEOF 17481#define CW_NEED__GNU_SOURCE 1 17482_ACEOF 17483 17484 SAVE_LIBS="$LIBS" 17485 LIBS="$LIBS $LIB_THREADS $LIB_THREADS_SHARED" 17486 for ac_func in pthread_kill_other_threads_np 17487do : 17488 ac_fn_cxx_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np" 17489if test "x$ac_cv_func_pthread_kill_other_threads_np" = xyes; then : 17490 cat >>confdefs.h <<_ACEOF 17491#define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1 17492_ACEOF 17493 17494fi 17495done 17496 17497 LIBS="$SAVE_LIBS" 17498 fi 17499 17500fi 17501 17502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking needed offset to __builtin_return_address()" >&5 17503$as_echo_n "checking needed offset to __builtin_return_address()... " >&6; } 17504if ${cw_cv_sys_builtin_return_address_offset+:} false; then : 17505 $as_echo_n "(cached) " >&6 17506else 17507 save_CXXFLAGS="$CXXFLAGS" 17508CXXFLAGS="" 17509if test "$cross_compiling" = yes; then : 17510 cw_cv_sys_builtin_return_address_offset=-1 17511else 17512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17513/* end confdefs.h. */ 17514int size; 17515 17516void f(void) 17517{ 17518 size = (unsigned int)__builtin_return_address(0) & 255; 17519} 17520 17521int main(int argc, char* argv[]) 17522{ 17523 asm( ".align 256" ); 17524 f(); 17525 return (size > 4) ? 1 : 0; 17526} 17527 17528_ACEOF 17529if ac_fn_cxx_try_run "$LINENO"; then : 17530 cw_cv_sys_builtin_return_address_offset=0 17531else 17532 cw_cv_sys_builtin_return_address_offset=-1 17533fi 17534rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17535 conftest.$ac_objext conftest.beam conftest.$ac_ext 17536fi 17537 17538CXXFLAGS="$save_CXXFLAGS" 17539fi 17540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cw_cv_sys_builtin_return_address_offset" >&5 17541$as_echo "$cw_cv_sys_builtin_return_address_offset" >&6; } 17542eval "CW_CONFIG_BUILTIN_RETURN_ADDRESS_OFFSET=\"$cw_cv_sys_builtin_return_address_offset\"" 17543 17544 17545 17546if test "$libcwd_config_debug" = yes; then 17547 CW_CONFIG_DEBUG=1 17548fi 17549 17550if test "$libcwd_config_debug_output" = yes; then 17551 CW_CONFIG_DEBUGOUTPUT=1 17552fi 17553 17554if test "$libcwd_config_debugm" = yes; then 17555 CW_CONFIG_DEBUGM=1 17556fi 17557 17558if test "$libcwd_config_debugt" = yes; then 17559 CW_CONFIG_DEBUGT=1 17560fi 17561 17562if test "$libcwd_config_marker" = yes; then 17563 CW_CONFIG_MARKER=1 17564fi 17565 17566 if test x$libcwd_config_threading = xyes; then 17567 ENABLETHREADING_TRUE= 17568 ENABLETHREADING_FALSE='#' 17569else 17570 ENABLETHREADING_TRUE='#' 17571 ENABLETHREADING_FALSE= 17572fi 17573 17574 if test x$libcwd_config_nonthreading = xyes; then 17575 ENABLENONTHREADING_TRUE= 17576 ENABLENONTHREADING_FALSE='#' 17577else 17578 ENABLENONTHREADING_TRUE='#' 17579 ENABLENONTHREADING_FALSE= 17580fi 17581 17582 if test x$enable_shared = xyes; then 17583 ENABLESHARED_TRUE= 17584 ENABLESHARED_FALSE='#' 17585else 17586 ENABLESHARED_TRUE='#' 17587 ENABLESHARED_FALSE= 17588fi 17589 17590 if test x$enable_static = xyes; then 17591 ENABLESTATIC_TRUE= 17592 ENABLESTATIC_FALSE='#' 17593else 17594 ENABLESTATIC_TRUE='#' 17595 ENABLESTATIC_FALSE= 17596fi 17597 17598 17599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5 17600$as_echo_n "checking whether stat file-mode macros are broken... " >&6; } 17601if ${ac_cv_header_stat_broken+:} false; then : 17602 $as_echo_n "(cached) " >&6 17603else 17604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17605/* end confdefs.h. */ 17606#include <sys/types.h> 17607#include <sys/stat.h> 17608 17609#if defined S_ISBLK && defined S_IFDIR 17610extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; 17611#endif 17612 17613#if defined S_ISBLK && defined S_IFCHR 17614extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; 17615#endif 17616 17617#if defined S_ISLNK && defined S_IFREG 17618extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; 17619#endif 17620 17621#if defined S_ISSOCK && defined S_IFREG 17622extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; 17623#endif 17624 17625_ACEOF 17626if ac_fn_cxx_try_compile "$LINENO"; then : 17627 ac_cv_header_stat_broken=no 17628else 17629 ac_cv_header_stat_broken=yes 17630fi 17631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17632fi 17633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5 17634$as_echo "$ac_cv_header_stat_broken" >&6; } 17635if test $ac_cv_header_stat_broken = yes; then 17636 17637$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h 17638 17639fi 17640 17641for ac_header in _G_config.h link.h pwd.h sys/resource.h malloc.h unistd.h 17642do : 17643 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 17644ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 17645if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 17646 cat >>confdefs.h <<_ACEOF 17647#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 17648_ACEOF 17649 17650fi 17651 17652done 17653 17654 17655if test "$ac_cv_header_link_h" = yes; then 17656 for ac_func in _dl_loaded _rtld_global 17657do : 17658 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17659ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" 17660if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17661 cat >>confdefs.h <<_ACEOF 17662#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17663_ACEOF 17664 17665fi 17666done 17667 17668fi 17669 17670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 17671$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 17672if ${ac_cv_type_uid_t+:} false; then : 17673 $as_echo_n "(cached) " >&6 17674else 17675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17676/* end confdefs.h. */ 17677#include <sys/types.h> 17678 17679_ACEOF 17680if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17681 $EGREP "uid_t" >/dev/null 2>&1; then : 17682 ac_cv_type_uid_t=yes 17683else 17684 ac_cv_type_uid_t=no 17685fi 17686rm -f conftest* 17687 17688fi 17689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 17690$as_echo "$ac_cv_type_uid_t" >&6; } 17691if test $ac_cv_type_uid_t = no; then 17692 17693$as_echo "#define uid_t int" >>confdefs.h 17694 17695 17696$as_echo "#define gid_t int" >>confdefs.h 17697 17698fi 17699 17700CW_SYS_TYPEDEFS= 17701 17702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5 17703$as_echo_n "checking type of array argument to getgroups... " >&6; } 17704if ${ac_cv_type_getgroups+:} false; then : 17705 $as_echo_n "(cached) " >&6 17706else 17707 if test "$cross_compiling" = yes; then : 17708 ac_cv_type_getgroups=cross 17709else 17710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17711/* end confdefs.h. */ 17712 17713/* Thanks to Mike Rendell for this test. */ 17714#include <sys/types.h> 17715#ifdef __cplusplus 17716extern "C" int getgroups(size_t, gid_t*); 17717#endif 17718#define NGID 256 17719#undef MAX 17720#define MAX(x, y) ((x) > (y) ? (x) : (y)) 17721int main() 17722{ 17723 gid_t gidset[NGID]; 17724 int i, n; 17725 union { gid_t gval; long lval; } val; 17726 17727 val.lval = -1; 17728 for (i = 0; i < NGID; i++) 17729 gidset[i] = val.gval; 17730 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1, gidset); 17731 /* Exit non-zero if getgroups seems to require an array of ints. This 17732 happens when gid_t is short but getgroups modifies an array of ints. */ 17733 return (n > 0 && gidset[n] != val.gval) ? 1 : 0; 17734} 17735 17736_ACEOF 17737if ac_fn_cxx_try_run "$LINENO"; then : 17738 cat > conftest.$ac_ext <<EOF 17739#include <unistd.h> 17740#ifdef __cplusplus 17741#include <cstdlib> 17742#define ARGF 17743#else 17744#define ARGF f 17745#endif 17746template<typename ARG> 17747 int detect_type(ARG) 17748 { 17749 return reinterpret_cast<ARG*>(0); 17750 } 17751EOF 17752echo $ac_n "template<typename ARG0, $ac_c" >> conftest.$ac_ext 17753i=1 17754while test "$i" != "2"; do 17755echo $ac_n "typename ARG$i, $ac_c" >> conftest.$ac_ext 17756i=`echo $i | sed -e 'y/012345678/123456789/'` 17757done 17758echo "typename ARG2>" >> conftest.$ac_ext 17759echo $ac_n "void foo(ARG0(*ARGF)($ac_c" >> conftest.$ac_ext 17760i=1 17761while test "$i" != "2"; do 17762echo $ac_n "ARG$i, $ac_c" >> conftest.$ac_ext 17763i=`echo $i | sed -e 'y/012345678/123456789/'` 17764done 17765echo "ARG2)) { ARG2 arg;" >> conftest.$ac_ext 17766cat >> conftest.$ac_ext <<EOF 17767 detect_type(arg); 17768} 17769int main(void) 17770{ 17771 foo(getgroups); 17772 exit(0); 17773} 17774EOF 17775save_CXXFLAGS="$CXXFLAGS" 17776CXXFLAGS="`echo $CXXFLAGS | sed -e 's/-Werror//g'`" 17777if { (eval echo configure: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&1 | tee conftest.out >&5; }; then 17778 cw_result="`grep 'detect_type<.*>' conftest.out | sed -e 's/.*detect_type<//g' -e 's/>[^>]*//' | head -n 1`" 17779 if test -z "$cw_result"; then 17780 cw_result="`cat conftest.out`" 17781 cw_result="`echo $cw_result | sed -e 's/.*detect_type.*with ARG = //g' -e 's/].*//'`" 17782 fi 17783 if test -z "$cw_result"; then 17784 as_fn_error $? "Configure problem: Failed to determine type" "$LINENO" 5 17785 fi 17786else 17787 echo "configure: failed program was:" >&5 17788 cat conftest.$ac_ext >&5 17789 as_fn_error $? "Configuration problem: Failed to compile a test program" "$LINENO" 5 17790fi 17791CXXFLAGS="$save_CXXFLAGS" 17792rm -f conftest* 17793 17794 eval "cw_result2=\"$cw_result\"" 17795 ac_cv_type_getgroups=`echo "$cw_result2" | sed -e 's/ *\*$//'` 17796else 17797 ac_cv_type_getgroups=int 17798fi 17799rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17800 conftest.$ac_objext conftest.beam conftest.$ac_ext 17801fi 17802 17803if test "$ac_cv_type_getgroups" = cross; then 17804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17805/* end confdefs.h. */ 17806#include <unistd.h> 17807 17808_ACEOF 17809if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17810 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then : 17811 ac_cv_type_getgroups=gid_t 17812else 17813 ac_cv_type_getgroups=int 17814fi 17815rm -f conftest* 17816 17817fi 17818fi 17819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5 17820$as_echo "$ac_cv_type_getgroups" >&6; } 17821 17822CW_SYS_TYPEDEFS="typedef int getgroups_t; $CW_SYS_TYPEDEFS" 17823 17824 17825 17826 17827CW_SYS_REDEFINES_FIX= 17828 17829 17830cw_bug_var=`echo sys/resource.h | sed -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/' -e 's/ //g' -e 's/[^a-z0-9]/_/g'` 17831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sys/resource.h redefines macros" >&5 17832$as_echo_n "checking if sys/resource.h redefines macros... " >&6; } 17833if eval \${cw_cv_bug_redefines_$cw_bug_var+:} false; then : 17834 $as_echo_n "(cached) " >&6 17835else 17836 cat > conftest.$ac_ext <<EOF 17837#include <sys/types.h> 17838#include <sys/time.h> 17839#include <sys/resource.h> 17840#ifdef __cplusplus 17841#include <cstdlib> 17842#endif 17843int main() { exit(0); } 17844EOF 17845save_CXXFLAGS="$CXXFLAGS" 17846CXXFLAGS="`echo $CXXFLAGS | sed -e 's/-Werror//g'`" 17847if { (eval echo configure: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&1 | tee conftest.out >&5; }; then 17848 cw_result="`grep 'warning.*redefined' conftest.out | sed -e 's/[^A-Z_]*redefined.*//' -e 's/.*warning.* [^A-Z_]*//'`" 17849 eval "cw_cv_bug_redefines_$cw_bug_var=\"\$cw_result\"" 17850 cw_result="`grep 'previous.*defin' conftest.out | sed -e 's/:.*//' -e 's%.*include/%%g' | sort | uniq`" 17851 eval "unset cw_cv_bug_redefines_${cw_bug_var}_prev" 17852 if eval \${cw_cv_bug_redefines_${cw_bug_var}_prev+:} false; then : 17853 $as_echo_n "(cached) " >&6 17854else 17855 eval "cw_cv_bug_redefines_${cw_bug_var}_prev=\"$cw_result\"" 17856fi 17857 17858else 17859 echo "configure: failed program was:" >&5 17860 cat conftest.$ac_ext >&5 17861 eval "cw_cv_bug_redefines_$cw_bug_var=" 17862 eval "cw_cv_bug_redefines_${cw_bug_var}_prev=" 17863fi 17864CXXFLAGS="$save_CXXFLAGS" 17865rm -f conftest* 17866fi 17867 17868eval "cw_redefined_macros=\"\$cw_cv_bug_redefines_$cw_bug_var\"" 17869eval "cw_redefined_from=\"\$cw_cv_bug_redefines_${cw_bug_var}_prev\"" 17870if test x"$cw_redefined_macros" = x; then 17871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17872$as_echo "no" >&6; } 17873else 17874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cw_redefined_macros from $cw_redefined_from" >&5 17875$as_echo "$cw_redefined_macros from $cw_redefined_from" >&6; } 17876fi 17877for i in $cw_redefined_from; do 17878CW_SYS_REDEFINES_FIX="$CW_SYS_REDEFINES_FIX\\ 17879#include <$i>" 17880done 17881for i in $cw_redefined_macros; do 17882CW_SYS_REDEFINES_FIX="$CW_SYS_REDEFINES_FIX\\ 17883#undef $i" 17884done 17885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking malloc overhead in bytes" >&5 17886$as_echo_n "checking malloc overhead in bytes... " >&6; } 17887if ${cw_cv_system_mallocoverhead+:} false; then : 17888 $as_echo_n "(cached) " >&6 17889else 17890 if test "$cross_compiling" = yes; then : 17891 case $host_alias in #( 17892 *-mingw32) 17893 cw_cv_system_mallocoverhead=8 17894 ;; #( 17895 *-cygwin) 17896 cw_cv_system_mallocoverhead=8 17897 ;; #( 17898 *) 17899 cw_cv_system_mallocoverhead=4 ;; 17900esac 17901else 17902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17903/* end confdefs.h. */ 17904#include <cstddef> 17905#include <cstdlib> 17906 17907bool bulk_alloc(size_t malloc_overhead_attempt, size_t size) 17908{ 17909 int const number = 100; 17910 long int distance = 9999; 17911 char* ptr[number]; 17912 ptr[0] = (char*)malloc(size - malloc_overhead_attempt); 17913 for (int i = 1; i < number; ++i) 17914 { 17915 ptr[i] = (char*)malloc(size - malloc_overhead_attempt); 17916 if (ptr[i] > ptr[i - 1] && (ptr[i] - ptr[i - 1]) < distance) 17917 distance = ptr[i] - ptr[i - 1]; 17918 } 17919 for (int i = 0; i < number; ++i) 17920 free(ptr[i]); 17921 return (distance == (long int)size); 17922} 17923 17924int main(int argc, char* []) 17925{ 17926 if (argc == 1) 17927 exit(0); // This wasn't the real test yet 17928 for (size_t s = 0; s <= 64; s += 2) 17929 if (bulk_alloc(s, 2048)) 17930 exit(s); 17931 exit(8); // Guess a default 17932} 17933_ACEOF 17934if ac_fn_cxx_try_run "$LINENO"; then : 17935 ./conftest run 17936cw_cv_system_mallocoverhead=$? 17937else 17938 as_fn_error $? "Failed to compile a test program!?" "$LINENO" 5 17939fi 17940rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17941 conftest.$ac_objext conftest.beam conftest.$ac_ext 17942fi 17943 17944fi 17945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cw_cv_system_mallocoverhead" >&5 17946$as_echo "$cw_cv_system_mallocoverhead" >&6; } 17947eval "CW_MALLOC_OVERHEAD=$cw_cv_system_mallocoverhead" 17948 17949 17950 17951cat >>confdefs.h <<_ACEOF 17952#define CW_MALLOC_OVERHEAD $cw_cv_system_mallocoverhead 17953_ACEOF 17954 17955 17956 17957ac_ext=c 17958ac_cpp='$CPP $CPPFLAGS' 17959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17961ac_compiler_gnu=$ac_cv_c_compiler_gnu 17962 17963for ac_func in labs 17964do : 17965 ac_fn_c_check_func "$LINENO" "labs" "ac_cv_func_labs" 17966if test "x$ac_cv_func_labs" = xyes; then : 17967 cat >>confdefs.h <<_ACEOF 17968#define HAVE_LABS 1 17969_ACEOF 17970 17971fi 17972done 17973 17974ac_ext=cpp 17975ac_cpp='$CXXCPP $CPPFLAGS' 17976ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17977ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17978ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17979 17980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _G_config.h forgets to define macros" >&5 17981$as_echo_n "checking whether _G_config.h forgets to define macros... " >&6; } 17982if ${cw_cv_sys_G_config_h_macros+:} false; then : 17983 $as_echo_n "(cached) " >&6 17984else 17985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17986/* end confdefs.h. */ 17987#ifndef HAVE__G_CONFIG_H 17988#include <_G_config.h> 17989#endif 17990#ifndef _G_CLOG_CONFLICT 17991_G_CLOG_CONFLICT 17992#endif 17993 17994_ACEOF 17995if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17996 $EGREP "_G_CLOG_CONFLICT" >/dev/null 2>&1; then : 17997 cw_cv_sys_G_config_h_macros=_G_CLOG_CONFLICT 17998else 17999 cw_cv_sys_G_config_h_macros=no 18000fi 18001rm -f conftest* 18002 18003cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18004/* end confdefs.h. */ 18005#ifdef HAVE__G_CONFIG_H 18006#include <_G_config.h> 18007#endif 18008#ifndef _G_HAS_LABS 18009_G_HAS_LABS 18010#endif 18011 18012_ACEOF 18013if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18014 $EGREP "_G_HAS_LABS" >/dev/null 2>&1; then : 18015 if test "$cw_cv_sys_G_config_h_macros" = "no"; then 18016 cw_cv_sys_G_config_h_macros=_G_HAS_LABS 18017else 18018 cw_cv_sys_G_config_h_macros="$cw_cv_sys_G_config_h_macros _G_HAS_LABS" 18019fi 18020fi 18021rm -f conftest* 18022 18023fi 18024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cw_cv_sys_G_config_h_macros" >&5 18025$as_echo "$cw_cv_sys_G_config_h_macros" >&6; } 18026if test "$cw_cv_sys_G_config_h_macros" != no; then 18027 CW_CONFIG_G_CONFIG_H_MACROS=define 18028else 18029 CW_CONFIG_G_CONFIG_H_MACROS=undef 18030fi 18031 18032if test "$ac_cv_func_labs" = yes; then 18033 CW_HAVE_LABS=1 18034else 18035 CW_HAVE_LABS=0 18036fi 18037 18038 18039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __builtin_return_address(1) works" >&5 18040$as_echo_n "checking whether __builtin_return_address(1) works... " >&6; } 18041if ${cw_cv_sys_recursive_builtin_return_address+:} false; then : 18042 $as_echo_n "(cached) " >&6 18043else 18044 18045ac_ext=c 18046ac_cpp='$CPP $CPPFLAGS' 18047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18049ac_compiler_gnu=$ac_cv_c_compiler_gnu 18050 18051SYS_RECURSIVE_BUILTIN_RETURN_ADDRESS_CFLAGS_save="$CFLAGS" 18052CFLAGS="" 18053if test "$cross_compiling" = yes; then : 18054 cw_cv_sys_recursive_builtin_return_address=unknown 18055else 18056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18057/* end confdefs.h. */ 18058 18059static void* p; 18060int f() { return (__builtin_return_address(1) == p) ? 0 : 1; } 18061int main() { p = __builtin_return_address(0); return f(); } 18062_ACEOF 18063if ac_fn_c_try_run "$LINENO"; then : 18064 cw_cv_sys_recursive_builtin_return_address=yes 18065else 18066 cw_cv_sys_recursive_builtin_return_address=no 18067fi 18068rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18069 conftest.$ac_objext conftest.beam conftest.$ac_ext 18070fi 18071 18072CFLAGS="$SYS_RECURSIVE_BUILTIN_RETURN_ADDRESS_CFLAGS_save" 18073ac_ext=cpp 18074ac_cpp='$CXXCPP $CPPFLAGS' 18075ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18076ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18077ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18078 18079fi 18080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cw_cv_sys_recursive_builtin_return_address" >&5 18081$as_echo "$cw_cv_sys_recursive_builtin_return_address" >&6; } 18082if test "$cw_cv_sys_recursive_builtin_return_address" = "no"; then 18083CW_CONFIG_RECURSIVE_BUILTIN_RETURN_ADDRESS=undef 18084cw_recursive_builtin_return_address=0 18085else 18086CW_CONFIG_RECURSIVE_BUILTIN_RETURN_ADDRESS=define 18087cw_recursive_builtin_return_address=1 18088fi 18089 18090 18091cat >>confdefs.h <<_ACEOF 18092#define CW_RECURSIVE_BUILTIN_RETURN_ADDRESS $cw_recursive_builtin_return_address 18093_ACEOF 18094 18095 18096 18097CW_CONFIG_FRAME_ADDRESS_OFFSET=undef 18098if test "$cw_cv_sys_recursive_builtin_return_address" != "no"; then 18099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking frame pointer offset in frame structure" >&5 18100$as_echo_n "checking frame pointer offset in frame structure... " >&6; } 18101if ${cw_cv_sys_frame_address_offset+:} false; then : 18102 $as_echo_n "(cached) " >&6 18103else 18104 save_CXXFLAGS="$CXXFLAGS" 18105CXXFLAGS="" 18106if test "$cross_compiling" = yes; then : 18107 cw_cv_sys_frame_address_offset=0 18108else 18109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18110/* end confdefs.h. */ 18111 18112extern "C" void exit(int status) throw(); 18113int func4(int offset) 18114{ 18115 void* f0 = __builtin_frame_address(0); 18116 void* f1 = __builtin_frame_address(1); 18117 void* f2 = __builtin_frame_address(2); 18118 void* f3 = __builtin_frame_address(3); 18119 void* f4 = __builtin_frame_address(4); 18120 return (f1 == ((void**)f0)[offset] && f2 == ((void**)f1)[offset] && f3 == ((void**)f2)[offset] && f4 == ((void**)f3)[offset]); 18121} 18122void func3(void) 18123{ 18124 for (int offset = 0; offset < 128; ++offset) 18125 if (func4(offset)) 18126 exit(offset); 18127} 18128void func2(int i) 18129{ 18130 char a[22]; 18131 func3(); 18132 if (i == 1) // Some arbitrary code 18133 return; 18134 i = 0; 18135} 18136void func1(void) 18137{ 18138 char a[13]; 18139 func2(1); 18140 for (int i = 1; i < 10; ++i); // Some arbitrary code 18141} 18142void calculate_offset(void) 18143{ 18144 char a[100]; 18145 func1(); 18146} 18147int main(int argc, char* argv[]) 18148{ 18149 if (argc == 1) 18150 return 0; // This wasn't the real test yet 18151 calculate_offset(); 18152 return 255; // Failure 18153} 18154_ACEOF 18155if ac_fn_cxx_try_run "$LINENO"; then : 18156 ./conftest run 18157cw_cv_sys_frame_address_offset=$? 18158if test "$cw_cv_sys_frame_address_offset" != "255"; then 18159CW_CONFIG_FRAME_ADDRESS_OFFSET=define 18160fi 18161else 18162 as_fn_error $? "Failed to compile a test program!?" "$LINENO" 5 18163fi 18164rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18165 conftest.$ac_objext conftest.beam conftest.$ac_ext 18166fi 18167 18168CXXFLAGS="$save_CXXFLAGS" 18169fi 18170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cw_cv_sys_frame_address_offset" >&5 18171$as_echo "$cw_cv_sys_frame_address_offset" >&6; } 18172fi 18173eval "CW_FRAME_ADDRESS_OFFSET_C=$cw_cv_sys_frame_address_offset" 18174 18175 18176 18177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 18178$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 18179if ${ac_cv_c_bigendian+:} false; then : 18180 $as_echo_n "(cached) " >&6 18181else 18182 ac_cv_c_bigendian=unknown 18183 # See if we're dealing with a universal compiler. 18184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18185/* end confdefs.h. */ 18186#ifndef __APPLE_CC__ 18187 not a universal capable compiler 18188 #endif 18189 typedef int dummy; 18190 18191_ACEOF 18192if ac_fn_cxx_try_compile "$LINENO"; then : 18193 18194 # Check for potential -arch flags. It is not universal unless 18195 # there are at least two -arch flags with different values. 18196 ac_arch= 18197 ac_prev= 18198 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 18199 if test -n "$ac_prev"; then 18200 case $ac_word in 18201 i?86 | x86_64 | ppc | ppc64) 18202 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 18203 ac_arch=$ac_word 18204 else 18205 ac_cv_c_bigendian=universal 18206 break 18207 fi 18208 ;; 18209 esac 18210 ac_prev= 18211 elif test "x$ac_word" = "x-arch"; then 18212 ac_prev=arch 18213 fi 18214 done 18215fi 18216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18217 if test $ac_cv_c_bigendian = unknown; then 18218 # See if sys/param.h defines the BYTE_ORDER macro. 18219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18220/* end confdefs.h. */ 18221#include <sys/types.h> 18222 #include <sys/param.h> 18223 18224int 18225main () 18226{ 18227#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 18228 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 18229 && LITTLE_ENDIAN) 18230 bogus endian macros 18231 #endif 18232 18233 ; 18234 return 0; 18235} 18236_ACEOF 18237if ac_fn_cxx_try_compile "$LINENO"; then : 18238 # It does; now see whether it defined to BIG_ENDIAN or not. 18239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18240/* end confdefs.h. */ 18241#include <sys/types.h> 18242 #include <sys/param.h> 18243 18244int 18245main () 18246{ 18247#if BYTE_ORDER != BIG_ENDIAN 18248 not big endian 18249 #endif 18250 18251 ; 18252 return 0; 18253} 18254_ACEOF 18255if ac_fn_cxx_try_compile "$LINENO"; then : 18256 ac_cv_c_bigendian=yes 18257else 18258 ac_cv_c_bigendian=no 18259fi 18260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18261fi 18262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18263 fi 18264 if test $ac_cv_c_bigendian = unknown; then 18265 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 18266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18267/* end confdefs.h. */ 18268#include <limits.h> 18269 18270int 18271main () 18272{ 18273#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 18274 bogus endian macros 18275 #endif 18276 18277 ; 18278 return 0; 18279} 18280_ACEOF 18281if ac_fn_cxx_try_compile "$LINENO"; then : 18282 # It does; now see whether it defined to _BIG_ENDIAN or not. 18283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18284/* end confdefs.h. */ 18285#include <limits.h> 18286 18287int 18288main () 18289{ 18290#ifndef _BIG_ENDIAN 18291 not big endian 18292 #endif 18293 18294 ; 18295 return 0; 18296} 18297_ACEOF 18298if ac_fn_cxx_try_compile "$LINENO"; then : 18299 ac_cv_c_bigendian=yes 18300else 18301 ac_cv_c_bigendian=no 18302fi 18303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18304fi 18305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18306 fi 18307 if test $ac_cv_c_bigendian = unknown; then 18308 # Compile a test program. 18309 if test "$cross_compiling" = yes; then : 18310 # Try to guess by grepping values from an object file. 18311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18312/* end confdefs.h. */ 18313short int ascii_mm[] = 18314 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 18315 short int ascii_ii[] = 18316 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 18317 int use_ascii (int i) { 18318 return ascii_mm[i] + ascii_ii[i]; 18319 } 18320 short int ebcdic_ii[] = 18321 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 18322 short int ebcdic_mm[] = 18323 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 18324 int use_ebcdic (int i) { 18325 return ebcdic_mm[i] + ebcdic_ii[i]; 18326 } 18327 extern int foo; 18328 18329int 18330main () 18331{ 18332return use_ascii (foo) == use_ebcdic (foo); 18333 ; 18334 return 0; 18335} 18336_ACEOF 18337if ac_fn_cxx_try_compile "$LINENO"; then : 18338 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 18339 ac_cv_c_bigendian=yes 18340 fi 18341 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 18342 if test "$ac_cv_c_bigendian" = unknown; then 18343 ac_cv_c_bigendian=no 18344 else 18345 # finding both strings is unlikely to happen, but who knows? 18346 ac_cv_c_bigendian=unknown 18347 fi 18348 fi 18349fi 18350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18351else 18352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18353/* end confdefs.h. */ 18354$ac_includes_default 18355int 18356main () 18357{ 18358 18359 /* Are we little or big endian? From Harbison&Steele. */ 18360 union 18361 { 18362 long int l; 18363 char c[sizeof (long int)]; 18364 } u; 18365 u.l = 1; 18366 return u.c[sizeof (long int) - 1] == 1; 18367 18368 ; 18369 return 0; 18370} 18371_ACEOF 18372if ac_fn_cxx_try_run "$LINENO"; then : 18373 ac_cv_c_bigendian=no 18374else 18375 ac_cv_c_bigendian=yes 18376fi 18377rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18378 conftest.$ac_objext conftest.beam conftest.$ac_ext 18379fi 18380 18381 fi 18382fi 18383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 18384$as_echo "$ac_cv_c_bigendian" >&6; } 18385 case $ac_cv_c_bigendian in #( 18386 yes) 18387 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 18388;; #( 18389 no) 18390 ;; #( 18391 universal) 18392 18393$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 18394 18395 ;; #( 18396 *) 18397 as_fn_error $? "unknown endianness 18398 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 18399 esac 18400 18401 18402for ac_func in getgid getegid getgroups wmemcpy sysconf valloc memalign 18403do : 18404 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 18405ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" 18406if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 18407 cat >>confdefs.h <<_ACEOF 18408#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 18409_ACEOF 18410 18411fi 18412done 18413 18414ac_fn_cxx_check_decl "$LINENO" "_SC_PAGESIZE" "ac_cv_have_decl__SC_PAGESIZE" "#include <unistd.h> 18415" 18416if test "x$ac_cv_have_decl__SC_PAGESIZE" = xyes; then : 18417 18418cat >>confdefs.h <<_ACEOF 18419#define HAVE__SC_PAGESIZE 1 18420_ACEOF 18421 18422fi 18423 18424ac_fn_cxx_check_decl "$LINENO" "posix_memalign" "ac_cv_have_decl_posix_memalign" "#define _XOPEN_SOURCE 600 18425#include <cstdlib> 18426" 18427if test "x$ac_cv_have_decl_posix_memalign" = xyes; then : 18428 18429cat >>confdefs.h <<_ACEOF 18430#define HAVE_POSIX_MEMALIGN 1 18431_ACEOF 18432 18433fi 18434 18435 18436if test "$ac_cv_func___libc_malloc" = "yes"; then 18437 CW_CONFIG_HAVE___LIBC_MALLOC=define 18438else if test "$ac_cv_func__libc_malloc" = "yes"; then 18439 CW_CONFIG_HAVE__LIBC_MALLOC=define 18440fi fi 18441if test "$ac_cv_lib_c_dlopen" = "yes" -o "$ac_cv_lib_dl_dlopen" = "yes"; then 18442 CW_CONFIG_HAVE_DLOPEN=define 18443fi 18444if test "$ac_cv_func_valloc" = "yes"; then 18445 CW_CONFIG_HAVE_VALLOC=define 18446fi 18447if test "$ac_cv_func_memalign" = "yes"; then 18448 CW_CONFIG_HAVE_MEMALIGN=define 18449fi 18450if test "$ac_cv_have_decl_posix_memalign" = "yes"; then 18451 CW_CONFIG_HAVE_POSIX_MEMALIGN=define 18452fi 18453 18454 18455test ! -d include && mkdir include 18456 18457libcwd_datarootdir=`eval echo "$datadir"` 18458libcwd_datadir=`eval echo "$libcwd_datarootdir/$PACKAGE" | sed -e 's|NONE|'$ac_default_prefix'|'` 18459 18460cat >>confdefs.h <<_ACEOF 18461#define CW_DATADIR "$libcwd_datadir" 18462_ACEOF 18463 18464 18465 18466ac_config_files="$ac_config_files include/libcwd/timestamp-config.h:include/libcwd/config.h.in" 18467 18468 18469ac_config_files="$ac_config_files include/libcwd/timestamp-sys.h:include/libcwd/sys.h.in" 18470 18471 18472ac_config_files="$ac_config_files include/timestamp-sys.h:include/sys.h.in" 18473 18474 18475ac_config_files="$ac_config_files libcwd.spec libcwd.lsm maintMakefile Makefile utils/Makefile include/Makefile include/libcwd/Makefile testsuite/Makefile cutee/Makefile tests/Makefile documentation/doxygen.config documentation/Makefile documentation/styles/Makefile documentation/tutorial/Makefile libcwd.pc libcwd_r.pc" 18476 18477 18478cat >confcache <<\_ACEOF 18479# This file is a shell script that caches the results of configure 18480# tests run on this system so they can be shared between configure 18481# scripts and configure runs, see configure's option --config-cache. 18482# It is not useful on other systems. If it contains results you don't 18483# want to keep, you may remove or edit it. 18484# 18485# config.status only pays attention to the cache file if you give it 18486# the --recheck option to rerun configure. 18487# 18488# `ac_cv_env_foo' variables (set or unset) will be overridden when 18489# loading this file, other *unset* `ac_cv_foo' will be assigned the 18490# following values. 18491 18492_ACEOF 18493 18494# The following way of writing the cache mishandles newlines in values, 18495# but we know of no workaround that is simple, portable, and efficient. 18496# So, we kill variables containing newlines. 18497# Ultrix sh set writes to stderr and can't be redirected directly, 18498# and sets the high bit in the cache file unless we assign to the vars. 18499( 18500 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18501 eval ac_val=\$$ac_var 18502 case $ac_val in #( 18503 *${as_nl}*) 18504 case $ac_var in #( 18505 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18506$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18507 esac 18508 case $ac_var in #( 18509 _ | IFS | as_nl) ;; #( 18510 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18511 *) { eval $ac_var=; unset $ac_var;} ;; 18512 esac ;; 18513 esac 18514 done 18515 18516 (set) 2>&1 | 18517 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18518 *${as_nl}ac_space=\ *) 18519 # `set' does not quote correctly, so add quotes: double-quote 18520 # substitution turns \\\\ into \\, and sed turns \\ into \. 18521 sed -n \ 18522 "s/'/'\\\\''/g; 18523 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18524 ;; #( 18525 *) 18526 # `set' quotes correctly as required by POSIX, so do not add quotes. 18527 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18528 ;; 18529 esac | 18530 sort 18531) | 18532 sed ' 18533 /^ac_cv_env_/b end 18534 t clear 18535 :clear 18536 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18537 t end 18538 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18539 :end' >>confcache 18540if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18541 if test -w "$cache_file"; then 18542 if test "x$cache_file" != "x/dev/null"; then 18543 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18544$as_echo "$as_me: updating cache $cache_file" >&6;} 18545 if test ! -f "$cache_file" || test -h "$cache_file"; then 18546 cat confcache >"$cache_file" 18547 else 18548 case $cache_file in #( 18549 */* | ?:*) 18550 mv -f confcache "$cache_file"$$ && 18551 mv -f "$cache_file"$$ "$cache_file" ;; #( 18552 *) 18553 mv -f confcache "$cache_file" ;; 18554 esac 18555 fi 18556 fi 18557 else 18558 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18559$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18560 fi 18561fi 18562rm -f confcache 18563 18564test "x$prefix" = xNONE && prefix=$ac_default_prefix 18565# Let make expand exec_prefix. 18566test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18567 18568DEFS=-DHAVE_CONFIG_H 18569 18570ac_libobjs= 18571ac_ltlibobjs= 18572U= 18573for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18574 # 1. Remove the extension, and $U if already installed. 18575 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18576 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18577 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18578 # will be set to the directory where LIBOBJS objects are built. 18579 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18580 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18581done 18582LIBOBJS=$ac_libobjs 18583 18584LTLIBOBJS=$ac_ltlibobjs 18585 18586 18587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 18588$as_echo_n "checking that generated files are newer than configure... " >&6; } 18589 if test -n "$am_sleep_pid"; then 18590 # Hide warnings about reused PIDs. 18591 wait $am_sleep_pid 2>/dev/null 18592 fi 18593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 18594$as_echo "done" >&6; } 18595 if test -n "$EXEEXT"; then 18596 am__EXEEXT_TRUE= 18597 am__EXEEXT_FALSE='#' 18598else 18599 am__EXEEXT_TRUE='#' 18600 am__EXEEXT_FALSE= 18601fi 18602 18603if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 18604 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 18605Usually this means the macro was only invoked conditionally." "$LINENO" 5 18606fi 18607if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18608 as_fn_error $? "conditional \"AMDEP\" was never defined. 18609Usually this means the macro was only invoked conditionally." "$LINENO" 5 18610fi 18611if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18612 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18613Usually this means the macro was only invoked conditionally." "$LINENO" 5 18614fi 18615if test -z "${USE_PCH_TRUE}" && test -z "${USE_PCH_FALSE}"; then 18616 as_fn_error $? "conditional \"USE_PCH\" was never defined. 18617Usually this means the macro was only invoked conditionally." "$LINENO" 5 18618fi 18619if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18620 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18621Usually this means the macro was only invoked conditionally." "$LINENO" 5 18622fi 18623if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 18624 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 18625Usually this means the macro was only invoked conditionally." "$LINENO" 5 18626fi 18627if test -z "${ENABLETHREADING_TRUE}" && test -z "${ENABLETHREADING_FALSE}"; then 18628 as_fn_error $? "conditional \"ENABLETHREADING\" was never defined. 18629Usually this means the macro was only invoked conditionally." "$LINENO" 5 18630fi 18631if test -z "${ENABLENONTHREADING_TRUE}" && test -z "${ENABLENONTHREADING_FALSE}"; then 18632 as_fn_error $? "conditional \"ENABLENONTHREADING\" was never defined. 18633Usually this means the macro was only invoked conditionally." "$LINENO" 5 18634fi 18635if test -z "${ENABLESHARED_TRUE}" && test -z "${ENABLESHARED_FALSE}"; then 18636 as_fn_error $? "conditional \"ENABLESHARED\" was never defined. 18637Usually this means the macro was only invoked conditionally." "$LINENO" 5 18638fi 18639if test -z "${ENABLESTATIC_TRUE}" && test -z "${ENABLESTATIC_FALSE}"; then 18640 as_fn_error $? "conditional \"ENABLESTATIC\" was never defined. 18641Usually this means the macro was only invoked conditionally." "$LINENO" 5 18642fi 18643 18644 18645: "${CONFIG_STATUS=./config.status}" 18646ac_write_fail=0 18647ac_clean_files_save=$ac_clean_files 18648ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18649{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18650$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18651as_write_fail=0 18652cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18653#! $SHELL 18654# Generated by $as_me. 18655# Run this file to recreate the current configuration. 18656# Compiler output produced by configure, useful for debugging 18657# configure, is in config.log if it exists. 18658 18659debug=false 18660ac_cs_recheck=false 18661ac_cs_silent=false 18662 18663SHELL=\${CONFIG_SHELL-$SHELL} 18664export SHELL 18665_ASEOF 18666cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18667## -------------------- ## 18668## M4sh Initialization. ## 18669## -------------------- ## 18670 18671# Be more Bourne compatible 18672DUALCASE=1; export DUALCASE # for MKS sh 18673if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18674 emulate sh 18675 NULLCMD=: 18676 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18677 # is contrary to our usage. Disable this feature. 18678 alias -g '${1+"$@"}'='"$@"' 18679 setopt NO_GLOB_SUBST 18680else 18681 case `(set -o) 2>/dev/null` in #( 18682 *posix*) : 18683 set -o posix ;; #( 18684 *) : 18685 ;; 18686esac 18687fi 18688 18689 18690as_nl=' 18691' 18692export as_nl 18693# Printing a long string crashes Solaris 7 /usr/bin/printf. 18694as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18695as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18696as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18697# Prefer a ksh shell builtin over an external printf program on Solaris, 18698# but without wasting forks for bash or zsh. 18699if test -z "$BASH_VERSION$ZSH_VERSION" \ 18700 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18701 as_echo='print -r --' 18702 as_echo_n='print -rn --' 18703elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18704 as_echo='printf %s\n' 18705 as_echo_n='printf %s' 18706else 18707 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18708 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18709 as_echo_n='/usr/ucb/echo -n' 18710 else 18711 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18712 as_echo_n_body='eval 18713 arg=$1; 18714 case $arg in #( 18715 *"$as_nl"*) 18716 expr "X$arg" : "X\\(.*\\)$as_nl"; 18717 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18718 esac; 18719 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18720 ' 18721 export as_echo_n_body 18722 as_echo_n='sh -c $as_echo_n_body as_echo' 18723 fi 18724 export as_echo_body 18725 as_echo='sh -c $as_echo_body as_echo' 18726fi 18727 18728# The user is always right. 18729if test "${PATH_SEPARATOR+set}" != set; then 18730 PATH_SEPARATOR=: 18731 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18732 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18733 PATH_SEPARATOR=';' 18734 } 18735fi 18736 18737 18738# IFS 18739# We need space, tab and new line, in precisely that order. Quoting is 18740# there to prevent editors from complaining about space-tab. 18741# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18742# splitting by setting IFS to empty value.) 18743IFS=" "" $as_nl" 18744 18745# Find who we are. Look in the path if we contain no directory separator. 18746as_myself= 18747case $0 in #(( 18748 *[\\/]* ) as_myself=$0 ;; 18749 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18750for as_dir in $PATH 18751do 18752 IFS=$as_save_IFS 18753 test -z "$as_dir" && as_dir=. 18754 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18755 done 18756IFS=$as_save_IFS 18757 18758 ;; 18759esac 18760# We did not find ourselves, most probably we were run as `sh COMMAND' 18761# in which case we are not to be found in the path. 18762if test "x$as_myself" = x; then 18763 as_myself=$0 18764fi 18765if test ! -f "$as_myself"; then 18766 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18767 exit 1 18768fi 18769 18770# Unset variables that we do not need and which cause bugs (e.g. in 18771# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18772# suppresses any "Segmentation fault" message there. '((' could 18773# trigger a bug in pdksh 5.2.14. 18774for as_var in BASH_ENV ENV MAIL MAILPATH 18775do eval test x\${$as_var+set} = xset \ 18776 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18777done 18778PS1='$ ' 18779PS2='> ' 18780PS4='+ ' 18781 18782# NLS nuisances. 18783LC_ALL=C 18784export LC_ALL 18785LANGUAGE=C 18786export LANGUAGE 18787 18788# CDPATH. 18789(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18790 18791 18792# as_fn_error STATUS ERROR [LINENO LOG_FD] 18793# ---------------------------------------- 18794# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18795# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18796# script with STATUS, using 1 if that was 0. 18797as_fn_error () 18798{ 18799 as_status=$1; test $as_status -eq 0 && as_status=1 18800 if test "$4"; then 18801 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18802 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18803 fi 18804 $as_echo "$as_me: error: $2" >&2 18805 as_fn_exit $as_status 18806} # as_fn_error 18807 18808 18809# as_fn_set_status STATUS 18810# ----------------------- 18811# Set $? to STATUS, without forking. 18812as_fn_set_status () 18813{ 18814 return $1 18815} # as_fn_set_status 18816 18817# as_fn_exit STATUS 18818# ----------------- 18819# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18820as_fn_exit () 18821{ 18822 set +e 18823 as_fn_set_status $1 18824 exit $1 18825} # as_fn_exit 18826 18827# as_fn_unset VAR 18828# --------------- 18829# Portably unset VAR. 18830as_fn_unset () 18831{ 18832 { eval $1=; unset $1;} 18833} 18834as_unset=as_fn_unset 18835# as_fn_append VAR VALUE 18836# ---------------------- 18837# Append the text in VALUE to the end of the definition contained in VAR. Take 18838# advantage of any shell optimizations that allow amortized linear growth over 18839# repeated appends, instead of the typical quadratic growth present in naive 18840# implementations. 18841if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 18842 eval 'as_fn_append () 18843 { 18844 eval $1+=\$2 18845 }' 18846else 18847 as_fn_append () 18848 { 18849 eval $1=\$$1\$2 18850 } 18851fi # as_fn_append 18852 18853# as_fn_arith ARG... 18854# ------------------ 18855# Perform arithmetic evaluation on the ARGs, and store the result in the 18856# global $as_val. Take advantage of shells that can avoid forks. The arguments 18857# must be portable across $(()) and expr. 18858if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18859 eval 'as_fn_arith () 18860 { 18861 as_val=$(( $* )) 18862 }' 18863else 18864 as_fn_arith () 18865 { 18866 as_val=`expr "$@" || test $? -eq 1` 18867 } 18868fi # as_fn_arith 18869 18870 18871if expr a : '\(a\)' >/dev/null 2>&1 && 18872 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18873 as_expr=expr 18874else 18875 as_expr=false 18876fi 18877 18878if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18879 as_basename=basename 18880else 18881 as_basename=false 18882fi 18883 18884if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18885 as_dirname=dirname 18886else 18887 as_dirname=false 18888fi 18889 18890as_me=`$as_basename -- "$0" || 18891$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18892 X"$0" : 'X\(//\)$' \| \ 18893 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18894$as_echo X/"$0" | 18895 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18896 s//\1/ 18897 q 18898 } 18899 /^X\/\(\/\/\)$/{ 18900 s//\1/ 18901 q 18902 } 18903 /^X\/\(\/\).*/{ 18904 s//\1/ 18905 q 18906 } 18907 s/.*/./; q'` 18908 18909# Avoid depending upon Character Ranges. 18910as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18911as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18912as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18913as_cr_digits='0123456789' 18914as_cr_alnum=$as_cr_Letters$as_cr_digits 18915 18916ECHO_C= ECHO_N= ECHO_T= 18917case `echo -n x` in #((((( 18918-n*) 18919 case `echo 'xy\c'` in 18920 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18921 xy) ECHO_C='\c';; 18922 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 18923 ECHO_T=' ';; 18924 esac;; 18925*) 18926 ECHO_N='-n';; 18927esac 18928 18929rm -f conf$$ conf$$.exe conf$$.file 18930if test -d conf$$.dir; then 18931 rm -f conf$$.dir/conf$$.file 18932else 18933 rm -f conf$$.dir 18934 mkdir conf$$.dir 2>/dev/null 18935fi 18936if (echo >conf$$.file) 2>/dev/null; then 18937 if ln -s conf$$.file conf$$ 2>/dev/null; then 18938 as_ln_s='ln -s' 18939 # ... but there are two gotchas: 18940 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 18941 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 18942 # In both cases, we have to default to `cp -pR'. 18943 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 18944 as_ln_s='cp -pR' 18945 elif ln conf$$.file conf$$ 2>/dev/null; then 18946 as_ln_s=ln 18947 else 18948 as_ln_s='cp -pR' 18949 fi 18950else 18951 as_ln_s='cp -pR' 18952fi 18953rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18954rmdir conf$$.dir 2>/dev/null 18955 18956 18957# as_fn_mkdir_p 18958# ------------- 18959# Create "$as_dir" as a directory, including parents if necessary. 18960as_fn_mkdir_p () 18961{ 18962 18963 case $as_dir in #( 18964 -*) as_dir=./$as_dir;; 18965 esac 18966 test -d "$as_dir" || eval $as_mkdir_p || { 18967 as_dirs= 18968 while :; do 18969 case $as_dir in #( 18970 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 18971 *) as_qdir=$as_dir;; 18972 esac 18973 as_dirs="'$as_qdir' $as_dirs" 18974 as_dir=`$as_dirname -- "$as_dir" || 18975$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18976 X"$as_dir" : 'X\(//\)[^/]' \| \ 18977 X"$as_dir" : 'X\(//\)$' \| \ 18978 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 18979$as_echo X"$as_dir" | 18980 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18981 s//\1/ 18982 q 18983 } 18984 /^X\(\/\/\)[^/].*/{ 18985 s//\1/ 18986 q 18987 } 18988 /^X\(\/\/\)$/{ 18989 s//\1/ 18990 q 18991 } 18992 /^X\(\/\).*/{ 18993 s//\1/ 18994 q 18995 } 18996 s/.*/./; q'` 18997 test -d "$as_dir" && break 18998 done 18999 test -z "$as_dirs" || eval "mkdir $as_dirs" 19000 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19001 19002 19003} # as_fn_mkdir_p 19004if mkdir -p . 2>/dev/null; then 19005 as_mkdir_p='mkdir -p "$as_dir"' 19006else 19007 test -d ./-p && rmdir ./-p 19008 as_mkdir_p=false 19009fi 19010 19011 19012# as_fn_executable_p FILE 19013# ----------------------- 19014# Test if FILE is an executable regular file. 19015as_fn_executable_p () 19016{ 19017 test -f "$1" && test -x "$1" 19018} # as_fn_executable_p 19019as_test_x='test -x' 19020as_executable_p=as_fn_executable_p 19021 19022# Sed expression to map a string onto a valid CPP name. 19023as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19024 19025# Sed expression to map a string onto a valid variable name. 19026as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19027 19028 19029exec 6>&1 19030## ----------------------------------- ## 19031## Main body of $CONFIG_STATUS script. ## 19032## ----------------------------------- ## 19033_ASEOF 19034test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19035 19036cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19037# Save the log message, to keep $0 and so on meaningful, and to 19038# report actual input values of CONFIG_FILES etc. instead of their 19039# values after options handling. 19040ac_log=" 19041This file was extended by libcwd $as_me 1.0.6, which was 19042generated by GNU Autoconf 2.69. Invocation command line was 19043 19044 CONFIG_FILES = $CONFIG_FILES 19045 CONFIG_HEADERS = $CONFIG_HEADERS 19046 CONFIG_LINKS = $CONFIG_LINKS 19047 CONFIG_COMMANDS = $CONFIG_COMMANDS 19048 $ $0 $@ 19049 19050on `(hostname || uname -n) 2>/dev/null | sed 1q` 19051" 19052 19053_ACEOF 19054 19055case $ac_config_files in *" 19056"*) set x $ac_config_files; shift; ac_config_files=$*;; 19057esac 19058 19059case $ac_config_headers in *" 19060"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19061esac 19062 19063 19064cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19065# Files that config.status was made for. 19066config_files="$ac_config_files" 19067config_headers="$ac_config_headers" 19068config_commands="$ac_config_commands" 19069 19070_ACEOF 19071 19072cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19073ac_cs_usage="\ 19074\`$as_me' instantiates files and other configuration actions 19075from templates according to the current configuration. Unless the files 19076and actions are specified as TAGs, all are instantiated by default. 19077 19078Usage: $0 [OPTION]... [TAG]... 19079 19080 -h, --help print this help, then exit 19081 -V, --version print version number and configuration settings, then exit 19082 --config print configuration, then exit 19083 -q, --quiet, --silent 19084 do not print progress messages 19085 -d, --debug don't remove temporary files 19086 --recheck update $as_me by reconfiguring in the same conditions 19087 --file=FILE[:TEMPLATE] 19088 instantiate the configuration file FILE 19089 --header=FILE[:TEMPLATE] 19090 instantiate the configuration header FILE 19091 19092Configuration files: 19093$config_files 19094 19095Configuration headers: 19096$config_headers 19097 19098Configuration commands: 19099$config_commands 19100 19101Report bugs to <libcwd@alinoe.com>." 19102 19103_ACEOF 19104cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19105ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19106ac_cs_version="\\ 19107libcwd config.status 1.0.6 19108configured by $0, generated by GNU Autoconf 2.69, 19109 with options \\"\$ac_cs_config\\" 19110 19111Copyright (C) 2012 Free Software Foundation, Inc. 19112This config.status script is free software; the Free Software Foundation 19113gives unlimited permission to copy, distribute and modify it." 19114 19115ac_pwd='$ac_pwd' 19116srcdir='$srcdir' 19117INSTALL='$INSTALL' 19118MKDIR_P='$MKDIR_P' 19119AWK='$AWK' 19120test -n "\$AWK" || AWK=awk 19121_ACEOF 19122 19123cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19124# The default lists apply if the user does not specify any file. 19125ac_need_defaults=: 19126while test $# != 0 19127do 19128 case $1 in 19129 --*=?*) 19130 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19131 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19132 ac_shift=: 19133 ;; 19134 --*=) 19135 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19136 ac_optarg= 19137 ac_shift=: 19138 ;; 19139 *) 19140 ac_option=$1 19141 ac_optarg=$2 19142 ac_shift=shift 19143 ;; 19144 esac 19145 19146 case $ac_option in 19147 # Handling of the options. 19148 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19149 ac_cs_recheck=: ;; 19150 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19151 $as_echo "$ac_cs_version"; exit ;; 19152 --config | --confi | --conf | --con | --co | --c ) 19153 $as_echo "$ac_cs_config"; exit ;; 19154 --debug | --debu | --deb | --de | --d | -d ) 19155 debug=: ;; 19156 --file | --fil | --fi | --f ) 19157 $ac_shift 19158 case $ac_optarg in 19159 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19160 '') as_fn_error $? "missing file argument" ;; 19161 esac 19162 as_fn_append CONFIG_FILES " '$ac_optarg'" 19163 ac_need_defaults=false;; 19164 --header | --heade | --head | --hea ) 19165 $ac_shift 19166 case $ac_optarg in 19167 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19168 esac 19169 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19170 ac_need_defaults=false;; 19171 --he | --h) 19172 # Conflict between --help and --header 19173 as_fn_error $? "ambiguous option: \`$1' 19174Try \`$0 --help' for more information.";; 19175 --help | --hel | -h ) 19176 $as_echo "$ac_cs_usage"; exit ;; 19177 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19178 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19179 ac_cs_silent=: ;; 19180 19181 # This is an error. 19182 -*) as_fn_error $? "unrecognized option: \`$1' 19183Try \`$0 --help' for more information." ;; 19184 19185 *) as_fn_append ac_config_targets " $1" 19186 ac_need_defaults=false ;; 19187 19188 esac 19189 shift 19190done 19191 19192ac_configure_extra_args= 19193 19194if $ac_cs_silent; then 19195 exec 6>/dev/null 19196 ac_configure_extra_args="$ac_configure_extra_args --silent" 19197fi 19198 19199_ACEOF 19200cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19201if \$ac_cs_recheck; then 19202 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19203 shift 19204 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19205 CONFIG_SHELL='$SHELL' 19206 export CONFIG_SHELL 19207 exec "\$@" 19208fi 19209 19210_ACEOF 19211cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19212exec 5>>config.log 19213{ 19214 echo 19215 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19216## Running $as_me. ## 19217_ASBOX 19218 $as_echo "$ac_log" 19219} >&5 19220 19221_ACEOF 19222cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19223# 19224# INIT-COMMANDS 19225# 19226AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19227 19228 19229# The HP-UX ksh and POSIX shell print the target directory to stdout 19230# if CDPATH is set. 19231(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19232 19233sed_quote_subst='$sed_quote_subst' 19234double_quote_subst='$double_quote_subst' 19235delay_variable_subst='$delay_variable_subst' 19236enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19237enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19238macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19239macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19240pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19241enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19242SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19243ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19244PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19245host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19246host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19247host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19248build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19249build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19250build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19251SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19252Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19253GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19254EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19255FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19256LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19257NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19258LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19259max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19260ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19261exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19262lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19263lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19264lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19265lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19266lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19267reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19268reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19269OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19270deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19271file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19272file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19273want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19274DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19275sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19276AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19277AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19278archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19279STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19280RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19281old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19282old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19283old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19284lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19285CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19286CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19287compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19288GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19289lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19290lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19291lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19292lt_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"`' 19293nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19294lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19295objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19296MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19297lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19298lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19299lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19300lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19301lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19302need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19303MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19304DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19305NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19306LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19307OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19308OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19309libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19310shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19311extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19312archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19313enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19314export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19315whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19316compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19317old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19318old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19319archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19320archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19321module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19322module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19323with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19324allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19325no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19326hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19327hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19328hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19329hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19330hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19331hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19332hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19333inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19334link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19335always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19336export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19337exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19338include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19339prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19340postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19341file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19342variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19343need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19344need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19345version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19346runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19347shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19348shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19349libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19350library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19351soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19352install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19353postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19354postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19355finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19356finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19357hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19358sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19359sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 19360hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19361enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19362enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19363enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19364old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19365striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19366compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 19367predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 19368postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 19369predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 19370postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 19371compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 19372LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 19373reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 19374reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19375old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19376compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 19377GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 19378lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 19379lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 19380lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 19381lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 19382lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 19383archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 19384enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 19385export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 19386whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 19387compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 19388old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19389old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19390archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19391archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19392module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19393module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19394with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 19395allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 19396no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 19397hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 19398hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 19399hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 19400hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 19401hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 19402hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 19403hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 19404inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 19405link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 19406always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 19407export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19408exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 19409include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 19410prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19411postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19412file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 19413hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 19414compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 19415predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 19416postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 19417predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 19418postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 19419compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 19420 19421LTCC='$LTCC' 19422LTCFLAGS='$LTCFLAGS' 19423compiler='$compiler_DEFAULT' 19424 19425# A function that is used when there is no print builtin or printf. 19426func_fallback_echo () 19427{ 19428 eval 'cat <<_LTECHO_EOF 19429\$1 19430_LTECHO_EOF' 19431} 19432 19433# Quote evaled strings. 19434for var in SHELL \ 19435ECHO \ 19436PATH_SEPARATOR \ 19437SED \ 19438GREP \ 19439EGREP \ 19440FGREP \ 19441LD \ 19442NM \ 19443LN_S \ 19444lt_SP2NL \ 19445lt_NL2SP \ 19446reload_flag \ 19447OBJDUMP \ 19448deplibs_check_method \ 19449file_magic_cmd \ 19450file_magic_glob \ 19451want_nocaseglob \ 19452DLLTOOL \ 19453sharedlib_from_linklib_cmd \ 19454AR \ 19455AR_FLAGS \ 19456archiver_list_spec \ 19457STRIP \ 19458RANLIB \ 19459CC \ 19460CFLAGS \ 19461compiler \ 19462lt_cv_sys_global_symbol_pipe \ 19463lt_cv_sys_global_symbol_to_cdecl \ 19464lt_cv_sys_global_symbol_to_c_name_address \ 19465lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19466nm_file_list_spec \ 19467lt_prog_compiler_no_builtin_flag \ 19468lt_prog_compiler_pic \ 19469lt_prog_compiler_wl \ 19470lt_prog_compiler_static \ 19471lt_cv_prog_compiler_c_o \ 19472need_locks \ 19473MANIFEST_TOOL \ 19474DSYMUTIL \ 19475NMEDIT \ 19476LIPO \ 19477OTOOL \ 19478OTOOL64 \ 19479shrext_cmds \ 19480export_dynamic_flag_spec \ 19481whole_archive_flag_spec \ 19482compiler_needs_object \ 19483with_gnu_ld \ 19484allow_undefined_flag \ 19485no_undefined_flag \ 19486hardcode_libdir_flag_spec \ 19487hardcode_libdir_separator \ 19488exclude_expsyms \ 19489include_expsyms \ 19490file_list_spec \ 19491variables_saved_for_relink \ 19492libname_spec \ 19493library_names_spec \ 19494soname_spec \ 19495install_override_mode \ 19496finish_eval \ 19497old_striplib \ 19498striplib \ 19499compiler_lib_search_dirs \ 19500predep_objects \ 19501postdep_objects \ 19502predeps \ 19503postdeps \ 19504compiler_lib_search_path \ 19505LD_CXX \ 19506reload_flag_CXX \ 19507compiler_CXX \ 19508lt_prog_compiler_no_builtin_flag_CXX \ 19509lt_prog_compiler_pic_CXX \ 19510lt_prog_compiler_wl_CXX \ 19511lt_prog_compiler_static_CXX \ 19512lt_cv_prog_compiler_c_o_CXX \ 19513export_dynamic_flag_spec_CXX \ 19514whole_archive_flag_spec_CXX \ 19515compiler_needs_object_CXX \ 19516with_gnu_ld_CXX \ 19517allow_undefined_flag_CXX \ 19518no_undefined_flag_CXX \ 19519hardcode_libdir_flag_spec_CXX \ 19520hardcode_libdir_separator_CXX \ 19521exclude_expsyms_CXX \ 19522include_expsyms_CXX \ 19523file_list_spec_CXX \ 19524compiler_lib_search_dirs_CXX \ 19525predep_objects_CXX \ 19526postdep_objects_CXX \ 19527predeps_CXX \ 19528postdeps_CXX \ 19529compiler_lib_search_path_CXX; do 19530 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19531 *[\\\\\\\`\\"\\\$]*) 19532 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 19533 ;; 19534 *) 19535 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19536 ;; 19537 esac 19538done 19539 19540# Double-quote double-evaled strings. 19541for var in reload_cmds \ 19542old_postinstall_cmds \ 19543old_postuninstall_cmds \ 19544old_archive_cmds \ 19545extract_expsyms_cmds \ 19546old_archive_from_new_cmds \ 19547old_archive_from_expsyms_cmds \ 19548archive_cmds \ 19549archive_expsym_cmds \ 19550module_cmds \ 19551module_expsym_cmds \ 19552export_symbols_cmds \ 19553prelink_cmds \ 19554postlink_cmds \ 19555postinstall_cmds \ 19556postuninstall_cmds \ 19557finish_cmds \ 19558sys_lib_search_path_spec \ 19559sys_lib_dlsearch_path_spec \ 19560reload_cmds_CXX \ 19561old_archive_cmds_CXX \ 19562old_archive_from_new_cmds_CXX \ 19563old_archive_from_expsyms_cmds_CXX \ 19564archive_cmds_CXX \ 19565archive_expsym_cmds_CXX \ 19566module_cmds_CXX \ 19567module_expsym_cmds_CXX \ 19568export_symbols_cmds_CXX \ 19569prelink_cmds_CXX \ 19570postlink_cmds_CXX; do 19571 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19572 *[\\\\\\\`\\"\\\$]*) 19573 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 19574 ;; 19575 *) 19576 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19577 ;; 19578 esac 19579done 19580 19581ac_aux_dir='$ac_aux_dir' 19582xsi_shell='$xsi_shell' 19583lt_shell_append='$lt_shell_append' 19584 19585# See if we are running on zsh, and set the options which allow our 19586# commands through without removal of \ escapes INIT. 19587if test -n "\${ZSH_VERSION+set}" ; then 19588 setopt NO_GLOB_SUBST 19589fi 19590 19591 19592 PACKAGE='$PACKAGE' 19593 VERSION='$VERSION' 19594 TIMESTAMP='$TIMESTAMP' 19595 RM='$RM' 19596 ofile='$ofile' 19597 19598 19599 19600 19601 19602 19603_ACEOF 19604 19605cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19606 19607# Handling of arguments. 19608for ac_config_target in $ac_config_targets 19609do 19610 case $ac_config_target in 19611 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19612 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19613 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19614 "include/libcwd/timestamp-config.h") CONFIG_FILES="$CONFIG_FILES include/libcwd/timestamp-config.h:include/libcwd/config.h.in" ;; 19615 "include/libcwd/timestamp-sys.h") CONFIG_FILES="$CONFIG_FILES include/libcwd/timestamp-sys.h:include/libcwd/sys.h.in" ;; 19616 "include/timestamp-sys.h") CONFIG_FILES="$CONFIG_FILES include/timestamp-sys.h:include/sys.h.in" ;; 19617 "libcwd.spec") CONFIG_FILES="$CONFIG_FILES libcwd.spec" ;; 19618 "libcwd.lsm") CONFIG_FILES="$CONFIG_FILES libcwd.lsm" ;; 19619 "maintMakefile") CONFIG_FILES="$CONFIG_FILES maintMakefile" ;; 19620 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19621 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;; 19622 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 19623 "include/libcwd/Makefile") CONFIG_FILES="$CONFIG_FILES include/libcwd/Makefile" ;; 19624 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;; 19625 "cutee/Makefile") CONFIG_FILES="$CONFIG_FILES cutee/Makefile" ;; 19626 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 19627 "documentation/doxygen.config") CONFIG_FILES="$CONFIG_FILES documentation/doxygen.config" ;; 19628 "documentation/Makefile") CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;; 19629 "documentation/styles/Makefile") CONFIG_FILES="$CONFIG_FILES documentation/styles/Makefile" ;; 19630 "documentation/tutorial/Makefile") CONFIG_FILES="$CONFIG_FILES documentation/tutorial/Makefile" ;; 19631 "libcwd.pc") CONFIG_FILES="$CONFIG_FILES libcwd.pc" ;; 19632 "libcwd_r.pc") CONFIG_FILES="$CONFIG_FILES libcwd_r.pc" ;; 19633 19634 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19635 esac 19636done 19637 19638 19639# If the user did not use the arguments to specify the items to instantiate, 19640# then the envvar interface is used. Set only those that are not. 19641# We use the long form for the default assignment because of an extremely 19642# bizarre bug on SunOS 4.1.3. 19643if $ac_need_defaults; then 19644 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19645 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19646 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19647fi 19648 19649# Have a temporary directory for convenience. Make it in the build tree 19650# simply because there is no reason against having it here, and in addition, 19651# creating and moving files from /tmp can sometimes cause problems. 19652# Hook for its removal unless debugging. 19653# Note that there is a small window in which the directory will not be cleaned: 19654# after its creation but before its name has been assigned to `$tmp'. 19655$debug || 19656{ 19657 tmp= ac_tmp= 19658 trap 'exit_status=$? 19659 : "${ac_tmp:=$tmp}" 19660 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19661' 0 19662 trap 'as_fn_exit 1' 1 2 13 15 19663} 19664# Create a (secure) tmp directory for tmp files. 19665 19666{ 19667 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19668 test -d "$tmp" 19669} || 19670{ 19671 tmp=./conf$$-$RANDOM 19672 (umask 077 && mkdir "$tmp") 19673} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19674ac_tmp=$tmp 19675 19676# Set up the scripts for CONFIG_FILES section. 19677# No need to generate them if there are no CONFIG_FILES. 19678# This happens for instance with `./config.status config.h'. 19679if test -n "$CONFIG_FILES"; then 19680 19681 19682ac_cr=`echo X | tr X '\015'` 19683# On cygwin, bash can eat \r inside `` if the user requested igncr. 19684# But we know of no other shell where ac_cr would be empty at this 19685# point, so we can use a bashism as a fallback. 19686if test "x$ac_cr" = x; then 19687 eval ac_cr=\$\'\\r\' 19688fi 19689ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19690if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19691 ac_cs_awk_cr='\\r' 19692else 19693 ac_cs_awk_cr=$ac_cr 19694fi 19695 19696echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19697_ACEOF 19698 19699 19700{ 19701 echo "cat >conf$$subs.awk <<_ACEOF" && 19702 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19703 echo "_ACEOF" 19704} >conf$$subs.sh || 19705 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19706ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19707ac_delim='%!_!# ' 19708for ac_last_try in false false false false false :; do 19709 . ./conf$$subs.sh || 19710 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19711 19712 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19713 if test $ac_delim_n = $ac_delim_num; then 19714 break 19715 elif $ac_last_try; then 19716 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19717 else 19718 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19719 fi 19720done 19721rm -f conf$$subs.sh 19722 19723cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19724cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19725_ACEOF 19726sed -n ' 19727h 19728s/^/S["/; s/!.*/"]=/ 19729p 19730g 19731s/^[^!]*!// 19732:repl 19733t repl 19734s/'"$ac_delim"'$// 19735t delim 19736:nl 19737h 19738s/\(.\{148\}\)..*/\1/ 19739t more1 19740s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19741p 19742n 19743b repl 19744:more1 19745s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19746p 19747g 19748s/.\{148\}// 19749t nl 19750:delim 19751h 19752s/\(.\{148\}\)..*/\1/ 19753t more2 19754s/["\\]/\\&/g; s/^/"/; s/$/"/ 19755p 19756b 19757:more2 19758s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19759p 19760g 19761s/.\{148\}// 19762t delim 19763' <conf$$subs.awk | sed ' 19764/^[^""]/{ 19765 N 19766 s/\n// 19767} 19768' >>$CONFIG_STATUS || ac_write_fail=1 19769rm -f conf$$subs.awk 19770cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19771_ACAWK 19772cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19773 for (key in S) S_is_set[key] = 1 19774 FS = "" 19775 19776} 19777{ 19778 line = $ 0 19779 nfields = split(line, field, "@") 19780 substed = 0 19781 len = length(field[1]) 19782 for (i = 2; i < nfields; i++) { 19783 key = field[i] 19784 keylen = length(key) 19785 if (S_is_set[key]) { 19786 value = S[key] 19787 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19788 len += length(value) + length(field[++i]) 19789 substed = 1 19790 } else 19791 len += 1 + keylen 19792 } 19793 19794 print line 19795} 19796 19797_ACAWK 19798_ACEOF 19799cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19800if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19801 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19802else 19803 cat 19804fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19805 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19806_ACEOF 19807 19808# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19809# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19810# trailing colons and then remove the whole line if VPATH becomes empty 19811# (actually we leave an empty line to preserve line numbers). 19812if test "x$srcdir" = x.; then 19813 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19814h 19815s/// 19816s/^/:/ 19817s/[ ]*$/:/ 19818s/:\$(srcdir):/:/g 19819s/:\${srcdir}:/:/g 19820s/:@srcdir@:/:/g 19821s/^:*// 19822s/:*$// 19823x 19824s/\(=[ ]*\).*/\1/ 19825G 19826s/\n// 19827s/^[^=]*=[ ]*$// 19828}' 19829fi 19830 19831cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19832fi # test -n "$CONFIG_FILES" 19833 19834# Set up the scripts for CONFIG_HEADERS section. 19835# No need to generate them if there are no CONFIG_HEADERS. 19836# This happens for instance with `./config.status Makefile'. 19837if test -n "$CONFIG_HEADERS"; then 19838cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19839BEGIN { 19840_ACEOF 19841 19842# Transform confdefs.h into an awk script `defines.awk', embedded as 19843# here-document in config.status, that substitutes the proper values into 19844# config.h.in to produce config.h. 19845 19846# Create a delimiter string that does not exist in confdefs.h, to ease 19847# handling of long lines. 19848ac_delim='%!_!# ' 19849for ac_last_try in false false :; do 19850 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19851 if test -z "$ac_tt"; then 19852 break 19853 elif $ac_last_try; then 19854 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19855 else 19856 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19857 fi 19858done 19859 19860# For the awk script, D is an array of macro values keyed by name, 19861# likewise P contains macro parameters if any. Preserve backslash 19862# newline sequences. 19863 19864ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19865sed -n ' 19866s/.\{148\}/&'"$ac_delim"'/g 19867t rset 19868:rset 19869s/^[ ]*#[ ]*define[ ][ ]*/ / 19870t def 19871d 19872:def 19873s/\\$// 19874t bsnl 19875s/["\\]/\\&/g 19876s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19877D["\1"]=" \3"/p 19878s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19879d 19880:bsnl 19881s/["\\]/\\&/g 19882s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19883D["\1"]=" \3\\\\\\n"\\/p 19884t cont 19885s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19886t cont 19887d 19888:cont 19889n 19890s/.\{148\}/&'"$ac_delim"'/g 19891t clear 19892:clear 19893s/\\$// 19894t bsnlc 19895s/["\\]/\\&/g; s/^/"/; s/$/"/p 19896d 19897:bsnlc 19898s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19899b cont 19900' <confdefs.h | sed ' 19901s/'"$ac_delim"'/"\\\ 19902"/g' >>$CONFIG_STATUS || ac_write_fail=1 19903 19904cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19905 for (key in D) D_is_set[key] = 1 19906 FS = "" 19907} 19908/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19909 line = \$ 0 19910 split(line, arg, " ") 19911 if (arg[1] == "#") { 19912 defundef = arg[2] 19913 mac1 = arg[3] 19914 } else { 19915 defundef = substr(arg[1], 2) 19916 mac1 = arg[2] 19917 } 19918 split(mac1, mac2, "(") #) 19919 macro = mac2[1] 19920 prefix = substr(line, 1, index(line, defundef) - 1) 19921 if (D_is_set[macro]) { 19922 # Preserve the white space surrounding the "#". 19923 print prefix "define", macro P[macro] D[macro] 19924 next 19925 } else { 19926 # Replace #undef with comments. This is necessary, for example, 19927 # in the case of _POSIX_SOURCE, which is predefined and required 19928 # on some systems where configure will not decide to define it. 19929 if (defundef == "undef") { 19930 print "/*", prefix defundef, macro, "*/" 19931 next 19932 } 19933 } 19934} 19935{ print } 19936_ACAWK 19937_ACEOF 19938cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19939 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 19940fi # test -n "$CONFIG_HEADERS" 19941 19942 19943eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 19944shift 19945for ac_tag 19946do 19947 case $ac_tag in 19948 :[FHLC]) ac_mode=$ac_tag; continue;; 19949 esac 19950 case $ac_mode$ac_tag in 19951 :[FHL]*:*);; 19952 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 19953 :[FH]-) ac_tag=-:-;; 19954 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19955 esac 19956 ac_save_IFS=$IFS 19957 IFS=: 19958 set x $ac_tag 19959 IFS=$ac_save_IFS 19960 shift 19961 ac_file=$1 19962 shift 19963 19964 case $ac_mode in 19965 :L) ac_source=$1;; 19966 :[FH]) 19967 ac_file_inputs= 19968 for ac_f 19969 do 19970 case $ac_f in 19971 -) ac_f="$ac_tmp/stdin";; 19972 *) # Look for the file first in the build tree, then in the source tree 19973 # (if the path is not absolute). The absolute path cannot be DOS-style, 19974 # because $ac_f cannot contain `:'. 19975 test -f "$ac_f" || 19976 case $ac_f in 19977 [\\/$]*) false;; 19978 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19979 esac || 19980 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 19981 esac 19982 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 19983 as_fn_append ac_file_inputs " '$ac_f'" 19984 done 19985 19986 # Let's still pretend it is `configure' which instantiates (i.e., don't 19987 # use $as_me), people would be surprised to read: 19988 # /* config.h. Generated by config.status. */ 19989 configure_input='Generated from '` 19990 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 19991 `' by configure.' 19992 if test x"$ac_file" != x-; then 19993 configure_input="$ac_file. $configure_input" 19994 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 19995$as_echo "$as_me: creating $ac_file" >&6;} 19996 fi 19997 # Neutralize special characters interpreted by sed in replacement strings. 19998 case $configure_input in #( 19999 *\&* | *\|* | *\\* ) 20000 ac_sed_conf_input=`$as_echo "$configure_input" | 20001 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20002 *) ac_sed_conf_input=$configure_input;; 20003 esac 20004 20005 case $ac_tag in 20006 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20007 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20008 esac 20009 ;; 20010 esac 20011 20012 ac_dir=`$as_dirname -- "$ac_file" || 20013$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20014 X"$ac_file" : 'X\(//\)[^/]' \| \ 20015 X"$ac_file" : 'X\(//\)$' \| \ 20016 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20017$as_echo X"$ac_file" | 20018 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20019 s//\1/ 20020 q 20021 } 20022 /^X\(\/\/\)[^/].*/{ 20023 s//\1/ 20024 q 20025 } 20026 /^X\(\/\/\)$/{ 20027 s//\1/ 20028 q 20029 } 20030 /^X\(\/\).*/{ 20031 s//\1/ 20032 q 20033 } 20034 s/.*/./; q'` 20035 as_dir="$ac_dir"; as_fn_mkdir_p 20036 ac_builddir=. 20037 20038case "$ac_dir" in 20039.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20040*) 20041 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20042 # A ".." for each directory in $ac_dir_suffix. 20043 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20044 case $ac_top_builddir_sub in 20045 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20046 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20047 esac ;; 20048esac 20049ac_abs_top_builddir=$ac_pwd 20050ac_abs_builddir=$ac_pwd$ac_dir_suffix 20051# for backward compatibility: 20052ac_top_builddir=$ac_top_build_prefix 20053 20054case $srcdir in 20055 .) # We are building in place. 20056 ac_srcdir=. 20057 ac_top_srcdir=$ac_top_builddir_sub 20058 ac_abs_top_srcdir=$ac_pwd ;; 20059 [\\/]* | ?:[\\/]* ) # Absolute name. 20060 ac_srcdir=$srcdir$ac_dir_suffix; 20061 ac_top_srcdir=$srcdir 20062 ac_abs_top_srcdir=$srcdir ;; 20063 *) # Relative name. 20064 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20065 ac_top_srcdir=$ac_top_build_prefix$srcdir 20066 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20067esac 20068ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20069 20070 20071 case $ac_mode in 20072 :F) 20073 # 20074 # CONFIG_FILE 20075 # 20076 20077 case $INSTALL in 20078 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20079 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20080 esac 20081 ac_MKDIR_P=$MKDIR_P 20082 case $MKDIR_P in 20083 [\\/$]* | ?:[\\/]* ) ;; 20084 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20085 esac 20086_ACEOF 20087 20088cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20089# If the template does not know about datarootdir, expand it. 20090# FIXME: This hack should be removed a few years after 2.60. 20091ac_datarootdir_hack=; ac_datarootdir_seen= 20092ac_sed_dataroot=' 20093/datarootdir/ { 20094 p 20095 q 20096} 20097/@datadir@/p 20098/@docdir@/p 20099/@infodir@/p 20100/@localedir@/p 20101/@mandir@/p' 20102case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20103*datarootdir*) ac_datarootdir_seen=yes;; 20104*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20106$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20107_ACEOF 20108cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20109 ac_datarootdir_hack=' 20110 s&@datadir@&$datadir&g 20111 s&@docdir@&$docdir&g 20112 s&@infodir@&$infodir&g 20113 s&@localedir@&$localedir&g 20114 s&@mandir@&$mandir&g 20115 s&\\\${datarootdir}&$datarootdir&g' ;; 20116esac 20117_ACEOF 20118 20119# Neutralize VPATH when `$srcdir' = `.'. 20120# Shell code in configure.ac might set extrasub. 20121# FIXME: do we really want to maintain this feature? 20122cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20123ac_sed_extra="$ac_vpsub 20124$extrasub 20125_ACEOF 20126cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20127:t 20128/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20129s|@configure_input@|$ac_sed_conf_input|;t t 20130s&@top_builddir@&$ac_top_builddir_sub&;t t 20131s&@top_build_prefix@&$ac_top_build_prefix&;t t 20132s&@srcdir@&$ac_srcdir&;t t 20133s&@abs_srcdir@&$ac_abs_srcdir&;t t 20134s&@top_srcdir@&$ac_top_srcdir&;t t 20135s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20136s&@builddir@&$ac_builddir&;t t 20137s&@abs_builddir@&$ac_abs_builddir&;t t 20138s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20139s&@INSTALL@&$ac_INSTALL&;t t 20140s&@MKDIR_P@&$ac_MKDIR_P&;t t 20141$ac_datarootdir_hack 20142" 20143eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20144 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20145 20146test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20147 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20148 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20149 "$ac_tmp/out"`; test -z "$ac_out"; } && 20150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20151which seems to be undefined. Please make sure it is defined" >&5 20152$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20153which seems to be undefined. Please make sure it is defined" >&2;} 20154 20155 rm -f "$ac_tmp/stdin" 20156 case $ac_file in 20157 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20158 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20159 esac \ 20160 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20161 ;; 20162 :H) 20163 # 20164 # CONFIG_HEADER 20165 # 20166 if test x"$ac_file" != x-; then 20167 { 20168 $as_echo "/* $configure_input */" \ 20169 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20170 } >"$ac_tmp/config.h" \ 20171 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20172 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20173 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20174$as_echo "$as_me: $ac_file is unchanged" >&6;} 20175 else 20176 rm -f "$ac_file" 20177 mv "$ac_tmp/config.h" "$ac_file" \ 20178 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20179 fi 20180 else 20181 $as_echo "/* $configure_input */" \ 20182 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20183 || as_fn_error $? "could not create -" "$LINENO" 5 20184 fi 20185# Compute "$ac_file"'s index in $config_headers. 20186_am_arg="$ac_file" 20187_am_stamp_count=1 20188for _am_header in $config_headers :; do 20189 case $_am_header in 20190 $_am_arg | $_am_arg:* ) 20191 break ;; 20192 * ) 20193 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20194 esac 20195done 20196echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20197$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20198 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20199 X"$_am_arg" : 'X\(//\)$' \| \ 20200 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20201$as_echo X"$_am_arg" | 20202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20203 s//\1/ 20204 q 20205 } 20206 /^X\(\/\/\)[^/].*/{ 20207 s//\1/ 20208 q 20209 } 20210 /^X\(\/\/\)$/{ 20211 s//\1/ 20212 q 20213 } 20214 /^X\(\/\).*/{ 20215 s//\1/ 20216 q 20217 } 20218 s/.*/./; q'`/stamp-h$_am_stamp_count 20219 ;; 20220 20221 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20222$as_echo "$as_me: executing $ac_file commands" >&6;} 20223 ;; 20224 esac 20225 20226 20227 case $ac_file$ac_mode in 20228 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20229 # Older Autoconf quotes --file arguments for eval, but not when files 20230 # are listed without --file. Let's play safe and only enable the eval 20231 # if we detect the quoting. 20232 case $CONFIG_FILES in 20233 *\'*) eval set x "$CONFIG_FILES" ;; 20234 *) set x $CONFIG_FILES ;; 20235 esac 20236 shift 20237 for mf 20238 do 20239 # Strip MF so we end up with the name of the file. 20240 mf=`echo "$mf" | sed -e 's/:.*$//'` 20241 # Check whether this is an Automake generated Makefile or not. 20242 # We used to match only the files named 'Makefile.in', but 20243 # some people rename them; so instead we look at the file content. 20244 # Grep'ing the first line is not enough: some people post-process 20245 # each Makefile.in and add a new line on top of each file to say so. 20246 # Grep'ing the whole file is not good either: AIX grep has a line 20247 # limit of 2048, but all sed's we know have understand at least 4000. 20248 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 20249 dirpart=`$as_dirname -- "$mf" || 20250$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20251 X"$mf" : 'X\(//\)[^/]' \| \ 20252 X"$mf" : 'X\(//\)$' \| \ 20253 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20254$as_echo X"$mf" | 20255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20256 s//\1/ 20257 q 20258 } 20259 /^X\(\/\/\)[^/].*/{ 20260 s//\1/ 20261 q 20262 } 20263 /^X\(\/\/\)$/{ 20264 s//\1/ 20265 q 20266 } 20267 /^X\(\/\).*/{ 20268 s//\1/ 20269 q 20270 } 20271 s/.*/./; q'` 20272 else 20273 continue 20274 fi 20275 # Extract the definition of DEPDIR, am__include, and am__quote 20276 # from the Makefile without running 'make'. 20277 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20278 test -z "$DEPDIR" && continue 20279 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20280 test -z "$am__include" && continue 20281 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20282 # Find all dependency output files, they are included files with 20283 # $(DEPDIR) in their names. We invoke sed twice because it is the 20284 # simplest approach to changing $(DEPDIR) to its actual value in the 20285 # expansion. 20286 for file in `sed -n " 20287 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20288 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 20289 # Make sure the directory exists. 20290 test -f "$dirpart/$file" && continue 20291 fdir=`$as_dirname -- "$file" || 20292$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20293 X"$file" : 'X\(//\)[^/]' \| \ 20294 X"$file" : 'X\(//\)$' \| \ 20295 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20296$as_echo X"$file" | 20297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20298 s//\1/ 20299 q 20300 } 20301 /^X\(\/\/\)[^/].*/{ 20302 s//\1/ 20303 q 20304 } 20305 /^X\(\/\/\)$/{ 20306 s//\1/ 20307 q 20308 } 20309 /^X\(\/\).*/{ 20310 s//\1/ 20311 q 20312 } 20313 s/.*/./; q'` 20314 as_dir=$dirpart/$fdir; as_fn_mkdir_p 20315 # echo "creating $dirpart/$file" 20316 echo '# dummy' > "$dirpart/$file" 20317 done 20318 done 20319} 20320 ;; 20321 "libtool":C) 20322 20323 # See if we are running on zsh, and set the options which allow our 20324 # commands through without removal of \ escapes. 20325 if test -n "${ZSH_VERSION+set}" ; then 20326 setopt NO_GLOB_SUBST 20327 fi 20328 20329 cfgfile="${ofile}T" 20330 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20331 $RM "$cfgfile" 20332 20333 cat <<_LT_EOF >> "$cfgfile" 20334#! $SHELL 20335 20336# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 20337# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 20338# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20339# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20340# 20341# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 20342# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 20343# Foundation, Inc. 20344# Written by Gordon Matzigkeit, 1996 20345# 20346# This file is part of GNU Libtool. 20347# 20348# GNU Libtool is free software; you can redistribute it and/or 20349# modify it under the terms of the GNU General Public License as 20350# published by the Free Software Foundation; either version 2 of 20351# the License, or (at your option) any later version. 20352# 20353# As a special exception to the GNU General Public License, 20354# if you distribute this file as part of a program or library that 20355# is built using GNU Libtool, you may include this file under the 20356# same distribution terms that you use for the rest of that program. 20357# 20358# GNU Libtool is distributed in the hope that it will be useful, 20359# but WITHOUT ANY WARRANTY; without even the implied warranty of 20360# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20361# GNU General Public License for more details. 20362# 20363# You should have received a copy of the GNU General Public License 20364# along with GNU Libtool; see the file COPYING. If not, a copy 20365# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 20366# obtained by writing to the Free Software Foundation, Inc., 20367# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20368 20369 20370# The names of the tagged configurations supported by this script. 20371available_tags="CXX " 20372 20373# ### BEGIN LIBTOOL CONFIG 20374 20375# Whether or not to build shared libraries. 20376build_libtool_libs=$enable_shared 20377 20378# Whether or not to build static libraries. 20379build_old_libs=$enable_static 20380 20381# Which release of libtool.m4 was used? 20382macro_version=$macro_version 20383macro_revision=$macro_revision 20384 20385# What type of objects to build. 20386pic_mode=$pic_mode 20387 20388# Whether or not to optimize for fast installation. 20389fast_install=$enable_fast_install 20390 20391# Shell to use when invoking shell scripts. 20392SHELL=$lt_SHELL 20393 20394# An echo program that protects backslashes. 20395ECHO=$lt_ECHO 20396 20397# The PATH separator for the build system. 20398PATH_SEPARATOR=$lt_PATH_SEPARATOR 20399 20400# The host system. 20401host_alias=$host_alias 20402host=$host 20403host_os=$host_os 20404 20405# The build system. 20406build_alias=$build_alias 20407build=$build 20408build_os=$build_os 20409 20410# A sed program that does not truncate output. 20411SED=$lt_SED 20412 20413# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20414Xsed="\$SED -e 1s/^X//" 20415 20416# A grep program that handles long lines. 20417GREP=$lt_GREP 20418 20419# An ERE matcher. 20420EGREP=$lt_EGREP 20421 20422# A literal string matcher. 20423FGREP=$lt_FGREP 20424 20425# A BSD- or MS-compatible name lister. 20426NM=$lt_NM 20427 20428# Whether we need soft or hard links. 20429LN_S=$lt_LN_S 20430 20431# What is the maximum length of a command? 20432max_cmd_len=$max_cmd_len 20433 20434# Object file suffix (normally "o"). 20435objext=$ac_objext 20436 20437# Executable file suffix (normally ""). 20438exeext=$exeext 20439 20440# whether the shell understands "unset". 20441lt_unset=$lt_unset 20442 20443# turn spaces into newlines. 20444SP2NL=$lt_lt_SP2NL 20445 20446# turn newlines into spaces. 20447NL2SP=$lt_lt_NL2SP 20448 20449# convert \$build file names to \$host format. 20450to_host_file_cmd=$lt_cv_to_host_file_cmd 20451 20452# convert \$build files to toolchain format. 20453to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20454 20455# An object symbol dumper. 20456OBJDUMP=$lt_OBJDUMP 20457 20458# Method to check whether dependent libraries are shared objects. 20459deplibs_check_method=$lt_deplibs_check_method 20460 20461# Command to use when deplibs_check_method = "file_magic". 20462file_magic_cmd=$lt_file_magic_cmd 20463 20464# How to find potential files when deplibs_check_method = "file_magic". 20465file_magic_glob=$lt_file_magic_glob 20466 20467# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20468want_nocaseglob=$lt_want_nocaseglob 20469 20470# DLL creation program. 20471DLLTOOL=$lt_DLLTOOL 20472 20473# Command to associate shared and link libraries. 20474sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20475 20476# The archiver. 20477AR=$lt_AR 20478 20479# Flags to create an archive. 20480AR_FLAGS=$lt_AR_FLAGS 20481 20482# How to feed a file listing to the archiver. 20483archiver_list_spec=$lt_archiver_list_spec 20484 20485# A symbol stripping program. 20486STRIP=$lt_STRIP 20487 20488# Commands used to install an old-style archive. 20489RANLIB=$lt_RANLIB 20490old_postinstall_cmds=$lt_old_postinstall_cmds 20491old_postuninstall_cmds=$lt_old_postuninstall_cmds 20492 20493# Whether to use a lock for old archive extraction. 20494lock_old_archive_extraction=$lock_old_archive_extraction 20495 20496# A C compiler. 20497LTCC=$lt_CC 20498 20499# LTCC compiler flags. 20500LTCFLAGS=$lt_CFLAGS 20501 20502# Take the output of nm and produce a listing of raw symbols and C names. 20503global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20504 20505# Transform the output of nm in a proper C declaration. 20506global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20507 20508# Transform the output of nm in a C name address pair. 20509global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20510 20511# Transform the output of nm in a C name address pair when lib prefix is needed. 20512global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20513 20514# Specify filename containing input files for \$NM. 20515nm_file_list_spec=$lt_nm_file_list_spec 20516 20517# The root where to search for dependent libraries,and in which our libraries should be installed. 20518lt_sysroot=$lt_sysroot 20519 20520# The name of the directory that contains temporary libtool files. 20521objdir=$objdir 20522 20523# Used to examine libraries when file_magic_cmd begins with "file". 20524MAGIC_CMD=$MAGIC_CMD 20525 20526# Must we lock files when doing compilation? 20527need_locks=$lt_need_locks 20528 20529# Manifest tool. 20530MANIFEST_TOOL=$lt_MANIFEST_TOOL 20531 20532# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20533DSYMUTIL=$lt_DSYMUTIL 20534 20535# Tool to change global to local symbols on Mac OS X. 20536NMEDIT=$lt_NMEDIT 20537 20538# Tool to manipulate fat objects and archives on Mac OS X. 20539LIPO=$lt_LIPO 20540 20541# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20542OTOOL=$lt_OTOOL 20543 20544# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20545OTOOL64=$lt_OTOOL64 20546 20547# Old archive suffix (normally "a"). 20548libext=$libext 20549 20550# Shared library suffix (normally ".so"). 20551shrext_cmds=$lt_shrext_cmds 20552 20553# The commands to extract the exported symbol list from a shared archive. 20554extract_expsyms_cmds=$lt_extract_expsyms_cmds 20555 20556# Variables whose values should be saved in libtool wrapper scripts and 20557# restored at link time. 20558variables_saved_for_relink=$lt_variables_saved_for_relink 20559 20560# Do we need the "lib" prefix for modules? 20561need_lib_prefix=$need_lib_prefix 20562 20563# Do we need a version for libraries? 20564need_version=$need_version 20565 20566# Library versioning type. 20567version_type=$version_type 20568 20569# Shared library runtime path variable. 20570runpath_var=$runpath_var 20571 20572# Shared library path variable. 20573shlibpath_var=$shlibpath_var 20574 20575# Is shlibpath searched before the hard-coded library search path? 20576shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20577 20578# Format of library name prefix. 20579libname_spec=$lt_libname_spec 20580 20581# List of archive names. First name is the real one, the rest are links. 20582# The last name is the one that the linker finds with -lNAME 20583library_names_spec=$lt_library_names_spec 20584 20585# The coded name of the library, if different from the real name. 20586soname_spec=$lt_soname_spec 20587 20588# Permission mode override for installation of shared libraries. 20589install_override_mode=$lt_install_override_mode 20590 20591# Command to use after installation of a shared archive. 20592postinstall_cmds=$lt_postinstall_cmds 20593 20594# Command to use after uninstallation of a shared archive. 20595postuninstall_cmds=$lt_postuninstall_cmds 20596 20597# Commands used to finish a libtool library installation in a directory. 20598finish_cmds=$lt_finish_cmds 20599 20600# As "finish_cmds", except a single script fragment to be evaled but 20601# not shown. 20602finish_eval=$lt_finish_eval 20603 20604# Whether we should hardcode library paths into libraries. 20605hardcode_into_libs=$hardcode_into_libs 20606 20607# Compile-time system search path for libraries. 20608sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20609 20610# Run-time system search path for libraries. 20611sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20612 20613# Whether dlopen is supported. 20614dlopen_support=$enable_dlopen 20615 20616# Whether dlopen of programs is supported. 20617dlopen_self=$enable_dlopen_self 20618 20619# Whether dlopen of statically linked programs is supported. 20620dlopen_self_static=$enable_dlopen_self_static 20621 20622# Commands to strip libraries. 20623old_striplib=$lt_old_striplib 20624striplib=$lt_striplib 20625 20626 20627# The linker used to build libraries. 20628LD=$lt_LD 20629 20630# How to create reloadable object files. 20631reload_flag=$lt_reload_flag 20632reload_cmds=$lt_reload_cmds 20633 20634# Commands used to build an old-style archive. 20635old_archive_cmds=$lt_old_archive_cmds 20636 20637# A language specific compiler. 20638CC=$lt_compiler 20639 20640# Is the compiler the GNU compiler? 20641with_gcc=$GCC 20642 20643# Compiler flag to turn off builtin functions. 20644no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20645 20646# Additional compiler flags for building library objects. 20647pic_flag=$lt_lt_prog_compiler_pic 20648 20649# How to pass a linker flag through the compiler. 20650wl=$lt_lt_prog_compiler_wl 20651 20652# Compiler flag to prevent dynamic linking. 20653link_static_flag=$lt_lt_prog_compiler_static 20654 20655# Does compiler simultaneously support -c and -o options? 20656compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20657 20658# Whether or not to add -lc for building shared libraries. 20659build_libtool_need_lc=$archive_cmds_need_lc 20660 20661# Whether or not to disallow shared libs when runtime libs are static. 20662allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20663 20664# Compiler flag to allow reflexive dlopens. 20665export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20666 20667# Compiler flag to generate shared objects directly from archives. 20668whole_archive_flag_spec=$lt_whole_archive_flag_spec 20669 20670# Whether the compiler copes with passing no objects directly. 20671compiler_needs_object=$lt_compiler_needs_object 20672 20673# Create an old-style archive from a shared archive. 20674old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20675 20676# Create a temporary old-style archive to link instead of a shared archive. 20677old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20678 20679# Commands used to build a shared archive. 20680archive_cmds=$lt_archive_cmds 20681archive_expsym_cmds=$lt_archive_expsym_cmds 20682 20683# Commands used to build a loadable module if different from building 20684# a shared archive. 20685module_cmds=$lt_module_cmds 20686module_expsym_cmds=$lt_module_expsym_cmds 20687 20688# Whether we are building with GNU ld or not. 20689with_gnu_ld=$lt_with_gnu_ld 20690 20691# Flag that allows shared libraries with undefined symbols to be built. 20692allow_undefined_flag=$lt_allow_undefined_flag 20693 20694# Flag that enforces no undefined symbols. 20695no_undefined_flag=$lt_no_undefined_flag 20696 20697# Flag to hardcode \$libdir into a binary during linking. 20698# This must work even if \$libdir does not exist 20699hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20700 20701# Whether we need a single "-rpath" flag with a separated argument. 20702hardcode_libdir_separator=$lt_hardcode_libdir_separator 20703 20704# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20705# DIR into the resulting binary. 20706hardcode_direct=$hardcode_direct 20707 20708# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20709# DIR into the resulting binary and the resulting library dependency is 20710# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 20711# library is relocated. 20712hardcode_direct_absolute=$hardcode_direct_absolute 20713 20714# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20715# into the resulting binary. 20716hardcode_minus_L=$hardcode_minus_L 20717 20718# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20719# into the resulting binary. 20720hardcode_shlibpath_var=$hardcode_shlibpath_var 20721 20722# Set to "yes" if building a shared library automatically hardcodes DIR 20723# into the library and all subsequent libraries and executables linked 20724# against it. 20725hardcode_automatic=$hardcode_automatic 20726 20727# Set to yes if linker adds runtime paths of dependent libraries 20728# to runtime path list. 20729inherit_rpath=$inherit_rpath 20730 20731# Whether libtool must link a program against all its dependency libraries. 20732link_all_deplibs=$link_all_deplibs 20733 20734# Set to "yes" if exported symbols are required. 20735always_export_symbols=$always_export_symbols 20736 20737# The commands to list exported symbols. 20738export_symbols_cmds=$lt_export_symbols_cmds 20739 20740# Symbols that should not be listed in the preloaded symbols. 20741exclude_expsyms=$lt_exclude_expsyms 20742 20743# Symbols that must always be exported. 20744include_expsyms=$lt_include_expsyms 20745 20746# Commands necessary for linking programs (against libraries) with templates. 20747prelink_cmds=$lt_prelink_cmds 20748 20749# Commands necessary for finishing linking programs. 20750postlink_cmds=$lt_postlink_cmds 20751 20752# Specify filename containing input files. 20753file_list_spec=$lt_file_list_spec 20754 20755# How to hardcode a shared library path into an executable. 20756hardcode_action=$hardcode_action 20757 20758# The directories searched by this compiler when creating a shared library. 20759compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 20760 20761# Dependencies to place before and after the objects being linked to 20762# create a shared library. 20763predep_objects=$lt_predep_objects 20764postdep_objects=$lt_postdep_objects 20765predeps=$lt_predeps 20766postdeps=$lt_postdeps 20767 20768# The library search path used internally by the compiler when linking 20769# a shared library. 20770compiler_lib_search_path=$lt_compiler_lib_search_path 20771 20772# ### END LIBTOOL CONFIG 20773 20774_LT_EOF 20775 20776 case $host_os in 20777 aix3*) 20778 cat <<\_LT_EOF >> "$cfgfile" 20779# AIX sometimes has problems with the GCC collect2 program. For some 20780# reason, if we set the COLLECT_NAMES environment variable, the problems 20781# vanish in a puff of smoke. 20782if test "X${COLLECT_NAMES+set}" != Xset; then 20783 COLLECT_NAMES= 20784 export COLLECT_NAMES 20785fi 20786_LT_EOF 20787 ;; 20788 esac 20789 20790 20791ltmain="$ac_aux_dir/ltmain.sh" 20792 20793 20794 # We use sed instead of cat because bash on DJGPP gets confused if 20795 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20796 # text mode, it properly converts lines to CR/LF. This bash problem 20797 # is reportedly fixed, but why not run on old versions too? 20798 sed '$q' "$ltmain" >> "$cfgfile" \ 20799 || (rm -f "$cfgfile"; exit 1) 20800 20801 if test x"$xsi_shell" = xyes; then 20802 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 20803func_dirname ()\ 20804{\ 20805\ case ${1} in\ 20806\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20807\ * ) func_dirname_result="${3}" ;;\ 20808\ esac\ 20809} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 20810 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20811 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20812test 0 -eq $? || _lt_function_replace_fail=: 20813 20814 20815 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 20816func_basename ()\ 20817{\ 20818\ func_basename_result="${1##*/}"\ 20819} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20820 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20821 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20822test 0 -eq $? || _lt_function_replace_fail=: 20823 20824 20825 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 20826func_dirname_and_basename ()\ 20827{\ 20828\ case ${1} in\ 20829\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20830\ * ) func_dirname_result="${3}" ;;\ 20831\ esac\ 20832\ func_basename_result="${1##*/}"\ 20833} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20834 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20835 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20836test 0 -eq $? || _lt_function_replace_fail=: 20837 20838 20839 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 20840func_stripname ()\ 20841{\ 20842\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 20843\ # positional parameters, so assign one to ordinary parameter first.\ 20844\ func_stripname_result=${3}\ 20845\ func_stripname_result=${func_stripname_result#"${1}"}\ 20846\ func_stripname_result=${func_stripname_result%"${2}"}\ 20847} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 20848 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20849 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20850test 0 -eq $? || _lt_function_replace_fail=: 20851 20852 20853 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 20854func_split_long_opt ()\ 20855{\ 20856\ func_split_long_opt_name=${1%%=*}\ 20857\ func_split_long_opt_arg=${1#*=}\ 20858} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20859 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20860 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20861test 0 -eq $? || _lt_function_replace_fail=: 20862 20863 20864 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 20865func_split_short_opt ()\ 20866{\ 20867\ func_split_short_opt_arg=${1#??}\ 20868\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 20869} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20870 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20871 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20872test 0 -eq $? || _lt_function_replace_fail=: 20873 20874 20875 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 20876func_lo2o ()\ 20877{\ 20878\ case ${1} in\ 20879\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 20880\ *) func_lo2o_result=${1} ;;\ 20881\ esac\ 20882} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 20883 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20884 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20885test 0 -eq $? || _lt_function_replace_fail=: 20886 20887 20888 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 20889func_xform ()\ 20890{\ 20891 func_xform_result=${1%.*}.lo\ 20892} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 20893 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20894 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20895test 0 -eq $? || _lt_function_replace_fail=: 20896 20897 20898 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 20899func_arith ()\ 20900{\ 20901 func_arith_result=$(( $* ))\ 20902} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 20903 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20904 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20905test 0 -eq $? || _lt_function_replace_fail=: 20906 20907 20908 sed -e '/^func_len ()$/,/^} # func_len /c\ 20909func_len ()\ 20910{\ 20911 func_len_result=${#1}\ 20912} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 20913 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20914 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20915test 0 -eq $? || _lt_function_replace_fail=: 20916 20917fi 20918 20919if test x"$lt_shell_append" = xyes; then 20920 sed -e '/^func_append ()$/,/^} # func_append /c\ 20921func_append ()\ 20922{\ 20923 eval "${1}+=\\${2}"\ 20924} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 20925 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20926 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20927test 0 -eq $? || _lt_function_replace_fail=: 20928 20929 20930 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 20931func_append_quoted ()\ 20932{\ 20933\ func_quote_for_eval "${2}"\ 20934\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 20935} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 20936 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20937 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20938test 0 -eq $? || _lt_function_replace_fail=: 20939 20940 20941 # Save a `func_append' function call where possible by direct use of '+=' 20942 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 20943 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20944 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20945 test 0 -eq $? || _lt_function_replace_fail=: 20946else 20947 # Save a `func_append' function call even when '+=' is not available 20948 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 20949 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20950 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20951 test 0 -eq $? || _lt_function_replace_fail=: 20952fi 20953 20954if test x"$_lt_function_replace_fail" = x":"; then 20955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 20956$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 20957fi 20958 20959 20960 mv -f "$cfgfile" "$ofile" || 20961 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20962 chmod +x "$ofile" 20963 20964 20965 cat <<_LT_EOF >> "$ofile" 20966 20967# ### BEGIN LIBTOOL TAG CONFIG: CXX 20968 20969# The linker used to build libraries. 20970LD=$lt_LD_CXX 20971 20972# How to create reloadable object files. 20973reload_flag=$lt_reload_flag_CXX 20974reload_cmds=$lt_reload_cmds_CXX 20975 20976# Commands used to build an old-style archive. 20977old_archive_cmds=$lt_old_archive_cmds_CXX 20978 20979# A language specific compiler. 20980CC=$lt_compiler_CXX 20981 20982# Is the compiler the GNU compiler? 20983with_gcc=$GCC_CXX 20984 20985# Compiler flag to turn off builtin functions. 20986no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 20987 20988# Additional compiler flags for building library objects. 20989pic_flag=$lt_lt_prog_compiler_pic_CXX 20990 20991# How to pass a linker flag through the compiler. 20992wl=$lt_lt_prog_compiler_wl_CXX 20993 20994# Compiler flag to prevent dynamic linking. 20995link_static_flag=$lt_lt_prog_compiler_static_CXX 20996 20997# Does compiler simultaneously support -c and -o options? 20998compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 20999 21000# Whether or not to add -lc for building shared libraries. 21001build_libtool_need_lc=$archive_cmds_need_lc_CXX 21002 21003# Whether or not to disallow shared libs when runtime libs are static. 21004allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 21005 21006# Compiler flag to allow reflexive dlopens. 21007export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 21008 21009# Compiler flag to generate shared objects directly from archives. 21010whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 21011 21012# Whether the compiler copes with passing no objects directly. 21013compiler_needs_object=$lt_compiler_needs_object_CXX 21014 21015# Create an old-style archive from a shared archive. 21016old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 21017 21018# Create a temporary old-style archive to link instead of a shared archive. 21019old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 21020 21021# Commands used to build a shared archive. 21022archive_cmds=$lt_archive_cmds_CXX 21023archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 21024 21025# Commands used to build a loadable module if different from building 21026# a shared archive. 21027module_cmds=$lt_module_cmds_CXX 21028module_expsym_cmds=$lt_module_expsym_cmds_CXX 21029 21030# Whether we are building with GNU ld or not. 21031with_gnu_ld=$lt_with_gnu_ld_CXX 21032 21033# Flag that allows shared libraries with undefined symbols to be built. 21034allow_undefined_flag=$lt_allow_undefined_flag_CXX 21035 21036# Flag that enforces no undefined symbols. 21037no_undefined_flag=$lt_no_undefined_flag_CXX 21038 21039# Flag to hardcode \$libdir into a binary during linking. 21040# This must work even if \$libdir does not exist 21041hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 21042 21043# Whether we need a single "-rpath" flag with a separated argument. 21044hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 21045 21046# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 21047# DIR into the resulting binary. 21048hardcode_direct=$hardcode_direct_CXX 21049 21050# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 21051# DIR into the resulting binary and the resulting library dependency is 21052# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 21053# library is relocated. 21054hardcode_direct_absolute=$hardcode_direct_absolute_CXX 21055 21056# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21057# into the resulting binary. 21058hardcode_minus_L=$hardcode_minus_L_CXX 21059 21060# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21061# into the resulting binary. 21062hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 21063 21064# Set to "yes" if building a shared library automatically hardcodes DIR 21065# into the library and all subsequent libraries and executables linked 21066# against it. 21067hardcode_automatic=$hardcode_automatic_CXX 21068 21069# Set to yes if linker adds runtime paths of dependent libraries 21070# to runtime path list. 21071inherit_rpath=$inherit_rpath_CXX 21072 21073# Whether libtool must link a program against all its dependency libraries. 21074link_all_deplibs=$link_all_deplibs_CXX 21075 21076# Set to "yes" if exported symbols are required. 21077always_export_symbols=$always_export_symbols_CXX 21078 21079# The commands to list exported symbols. 21080export_symbols_cmds=$lt_export_symbols_cmds_CXX 21081 21082# Symbols that should not be listed in the preloaded symbols. 21083exclude_expsyms=$lt_exclude_expsyms_CXX 21084 21085# Symbols that must always be exported. 21086include_expsyms=$lt_include_expsyms_CXX 21087 21088# Commands necessary for linking programs (against libraries) with templates. 21089prelink_cmds=$lt_prelink_cmds_CXX 21090 21091# Commands necessary for finishing linking programs. 21092postlink_cmds=$lt_postlink_cmds_CXX 21093 21094# Specify filename containing input files. 21095file_list_spec=$lt_file_list_spec_CXX 21096 21097# How to hardcode a shared library path into an executable. 21098hardcode_action=$hardcode_action_CXX 21099 21100# The directories searched by this compiler when creating a shared library. 21101compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 21102 21103# Dependencies to place before and after the objects being linked to 21104# create a shared library. 21105predep_objects=$lt_predep_objects_CXX 21106postdep_objects=$lt_postdep_objects_CXX 21107predeps=$lt_predeps_CXX 21108postdeps=$lt_postdeps_CXX 21109 21110# The library search path used internally by the compiler when linking 21111# a shared library. 21112compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 21113 21114# ### END LIBTOOL TAG CONFIG: CXX 21115_LT_EOF 21116 21117 ;; 21118 "include/libcwd/timestamp-config.h":F) 21119if cmp -s include/libcwd/config.h include/libcwd/timestamp-config.h 2> /dev/null; then 21120 echo "config.status: config.h is unchanged" 21121else 21122 echo "config.status: creating config.h" 21123 cp include/libcwd/timestamp-config.h include/libcwd/config.h 21124fi 21125touch include/libcwd/timestamp-config.h 21126 ;; 21127 "include/libcwd/timestamp-sys.h":F) 21128if cmp -s include/libcwd/sys.h include/libcwd/timestamp-sys.h 2> /dev/null; then 21129 echo "config.status: sys.h is unchanged" 21130else 21131 echo "config.status: creating sys.h" 21132 cp include/libcwd/timestamp-sys.h include/libcwd/sys.h 21133fi 21134touch include/libcwd/timestamp-sys.h 21135 ;; 21136 "include/timestamp-sys.h":F) 21137if cmp -s include/sys.h include/timestamp-sys.h 2> /dev/null; then 21138 echo "config.status: sys.h is unchanged" 21139else 21140 echo "config.status: creating sys.h" 21141 cp include/timestamp-sys.h include/sys.h 21142fi 21143touch include/timestamp-sys.h 21144 ;; 21145 21146 esac 21147done # for ac_tag 21148 21149 21150as_fn_exit 0 21151_ACEOF 21152ac_clean_files=$ac_clean_files_save 21153 21154test $ac_write_fail = 0 || 21155 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21156 21157 21158# configure is writing to config.log, and then calls config.status. 21159# config.status does its own redirection, appending to config.log. 21160# Unfortunately, on DOS this fails, as config.log is still kept open 21161# by configure, so config.status won't be able to write to it; its 21162# output is simply discarded. So we exec the FD to /dev/null, 21163# effectively closing config.log, so it can be properly (re)opened and 21164# appended to by config.status. When coming back to configure, we 21165# need to make the FD available again. 21166if test "$no_create" != yes; then 21167 ac_cs_success=: 21168 ac_config_status_args= 21169 test "$silent" = yes && 21170 ac_config_status_args="$ac_config_status_args --quiet" 21171 exec 5>/dev/null 21172 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21173 exec 5>>config.log 21174 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21175 # would make configure fail if this is the last instruction. 21176 $ac_cs_success || as_fn_exit 1 21177fi 21178if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21180$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21181fi 21182 21183 21184