1@%:@! /bin/sh 2@%:@ Guess values for system-dependent variables and create Makefiles. 3@%:@ Generated by GNU Autoconf 2.69 for libconcord 1.2. 4@%:@ 5@%:@ Report bugs to <concordance-devel@lists.sourceforge.net>. 6@%:@ 7@%:@ 8@%:@ Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9@%:@ 10@%:@ 11@%:@ This configure script is free software; the Free Software Foundation 12@%:@ gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in @%:@( 28 *posix*) : 29 set -o posix ;; @%:@( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in @%:@( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in @%:@(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in @%:@ (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in @%:@( 172 *posix*) : 173 set -o posix ;; @%:@( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in @%:@( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in @%:@ (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: concordance-devel@lists.sourceforge.net about your 279$0: system, including any error possibly output before this 280$0: message. Then install a modern shell, or manually run 281$0: the script under such a shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296@%:@ as_fn_unset VAR 297@%:@ --------------- 298@%:@ Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305@%:@ as_fn_set_status STATUS 306@%:@ ----------------------- 307@%:@ Set @S|@? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} @%:@ as_fn_set_status 312 313@%:@ as_fn_exit STATUS 314@%:@ ----------------- 315@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} @%:@ as_fn_exit 322 323@%:@ as_fn_mkdir_p 324@%:@ ------------- 325@%:@ Create "@S|@as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} @%:@ as_fn_mkdir_p 370 371@%:@ as_fn_executable_p FILE 372@%:@ ----------------------- 373@%:@ Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} @%:@ as_fn_executable_p 378@%:@ as_fn_append VAR VALUE 379@%:@ ---------------------- 380@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take 381@%:@ advantage of any shell optimizations that allow amortized linear growth over 382@%:@ repeated appends, instead of the typical quadratic growth present in naive 383@%:@ implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396@%:@ as_fn_arith ARG... 397@%:@ ------------------ 398@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the 399@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments 400@%:@ must be portable across @S|@(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD] 415@%:@ ---------------------------------------- 416@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418@%:@ script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} @%:@ as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in @%:@((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIB@&t@OBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='libconcord' 592PACKAGE_TARNAME='libconcord' 593PACKAGE_VERSION='1.2' 594PACKAGE_STRING='libconcord 1.2' 595PACKAGE_BUGREPORT='concordance-devel@lists.sourceforge.net' 596PACKAGE_URL='' 597 598# Factoring default headers for most tests. 599ac_includes_default="\ 600#include <stdio.h> 601#ifdef HAVE_SYS_TYPES_H 602# include <sys/types.h> 603#endif 604#ifdef HAVE_SYS_STAT_H 605# include <sys/stat.h> 606#endif 607#ifdef STDC_HEADERS 608# include <stdlib.h> 609# include <stddef.h> 610#else 611# ifdef HAVE_STDLIB_H 612# include <stdlib.h> 613# endif 614#endif 615#ifdef HAVE_STRING_H 616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 617# include <memory.h> 618# endif 619# include <string.h> 620#endif 621#ifdef HAVE_STRINGS_H 622# include <strings.h> 623#endif 624#ifdef HAVE_INTTYPES_H 625# include <inttypes.h> 626#endif 627#ifdef HAVE_STDINT_H 628# include <stdint.h> 629#endif 630#ifdef HAVE_UNISTD_H 631# include <unistd.h> 632#endif" 633 634ac_subst_vars='am__EXEEXT_FALSE 635am__EXEEXT_TRUE 636LTLIBOBJS 637LIB@&t@OBJS 638ZIP_LIBS 639ZIP_CFLAGS 640PKG_CONFIG_LIBDIR 641PKG_CONFIG_PATH 642PKG_CONFIG 643LIBCONCORD_LDFLAGS 644HAVE_NEW_MIME_FALSE 645HAVE_NEW_MIME_TRUE 646UPDATE_MIME_DATABASE 647CXXCPP 648am__fastdepCXX_FALSE 649am__fastdepCXX_TRUE 650CXXDEPMODE 651ac_ct_CXX 652CXXFLAGS 653CXX 654CPP 655OTOOL64 656OTOOL 657LIPO 658NMEDIT 659DSYMUTIL 660MANIFEST_TOOL 661RANLIB 662DLLTOOL 663OBJDUMP 664LN_S 665NM 666ac_ct_DUMPBIN 667DUMPBIN 668LD 669FGREP 670EGREP 671GREP 672SED 673host_os 674host_vendor 675host_cpu 676host 677build_os 678build_vendor 679build_cpu 680build 681LIBTOOL 682am__fastdepCC_FALSE 683am__fastdepCC_TRUE 684CCDEPMODE 685am__nodep 686AMDEPBACKSLASH 687AMDEP_FALSE 688AMDEP_TRUE 689am__quote 690am__include 691DEPDIR 692OBJEXT 693EXEEXT 694ac_ct_CC 695CPPFLAGS 696LDFLAGS 697CFLAGS 698CC 699ac_ct_AR 700AR 701AM_BACKSLASH 702AM_DEFAULT_VERBOSITY 703AM_DEFAULT_V 704AM_V 705am__untar 706am__tar 707AMTAR 708am__leading_dot 709SET_MAKE 710AWK 711mkdir_p 712MKDIR_P 713INSTALL_STRIP_PROGRAM 714STRIP 715install_sh 716MAKEINFO 717AUTOHEADER 718AUTOMAKE 719AUTOCONF 720ACLOCAL 721VERSION 722PACKAGE 723CYGPATH_W 724am__isrc 725INSTALL_DATA 726INSTALL_SCRIPT 727INSTALL_PROGRAM 728target_alias 729host_alias 730build_alias 731LIBS 732ECHO_T 733ECHO_N 734ECHO_C 735DEFS 736mandir 737localedir 738libdir 739psdir 740pdfdir 741dvidir 742htmldir 743infodir 744docdir 745oldincludedir 746includedir 747localstatedir 748sharedstatedir 749sysconfdir 750datadir 751datarootdir 752libexecdir 753sbindir 754bindir 755program_transform_name 756prefix 757exec_prefix 758PACKAGE_URL 759PACKAGE_BUGREPORT 760PACKAGE_STRING 761PACKAGE_VERSION 762PACKAGE_TARNAME 763PACKAGE_NAME 764PATH_SEPARATOR 765SHELL' 766ac_subst_files='' 767ac_user_opts=' 768enable_option_checking 769enable_silent_rules 770enable_dependency_tracking 771enable_shared 772enable_static 773with_pic 774enable_fast_install 775with_gnu_ld 776with_sysroot 777enable_libtool_lock 778enable_mime_update 779enable_force_libusb_on_linux 780' 781 ac_precious_vars='build_alias 782host_alias 783target_alias 784CC 785CFLAGS 786LDFLAGS 787LIBS 788CPPFLAGS 789CPP 790CXX 791CXXFLAGS 792CCC 793CXXCPP 794PKG_CONFIG 795PKG_CONFIG_PATH 796PKG_CONFIG_LIBDIR 797ZIP_CFLAGS 798ZIP_LIBS' 799 800 801# Initialize some variables set by options. 802ac_init_help= 803ac_init_version=false 804ac_unrecognized_opts= 805ac_unrecognized_sep= 806# The variables have the same names as the options, with 807# dashes changed to underlines. 808cache_file=/dev/null 809exec_prefix=NONE 810no_create= 811no_recursion= 812prefix=NONE 813program_prefix=NONE 814program_suffix=NONE 815program_transform_name=s,x,x, 816silent= 817site= 818srcdir= 819verbose= 820x_includes=NONE 821x_libraries=NONE 822 823# Installation directory options. 824# These are left unexpanded so users can "make install exec_prefix=/foo" 825# and all the variables that are supposed to be based on exec_prefix 826# by default will actually change. 827# Use braces instead of parens because sh, perl, etc. also accept them. 828# (The list follows the same order as the GNU Coding Standards.) 829bindir='${exec_prefix}/bin' 830sbindir='${exec_prefix}/sbin' 831libexecdir='${exec_prefix}/libexec' 832datarootdir='${prefix}/share' 833datadir='${datarootdir}' 834sysconfdir='${prefix}/etc' 835sharedstatedir='${prefix}/com' 836localstatedir='${prefix}/var' 837includedir='${prefix}/include' 838oldincludedir='/usr/include' 839docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 840infodir='${datarootdir}/info' 841htmldir='${docdir}' 842dvidir='${docdir}' 843pdfdir='${docdir}' 844psdir='${docdir}' 845libdir='${exec_prefix}/lib' 846localedir='${datarootdir}/locale' 847mandir='${datarootdir}/man' 848 849ac_prev= 850ac_dashdash= 851for ac_option 852do 853 # If the previous option needs an argument, assign it. 854 if test -n "$ac_prev"; then 855 eval $ac_prev=\$ac_option 856 ac_prev= 857 continue 858 fi 859 860 case $ac_option in 861 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 862 *=) ac_optarg= ;; 863 *) ac_optarg=yes ;; 864 esac 865 866 # Accept the important Cygnus configure options, so we can diagnose typos. 867 868 case $ac_dashdash$ac_option in 869 --) 870 ac_dashdash=yes ;; 871 872 -bindir | --bindir | --bindi | --bind | --bin | --bi) 873 ac_prev=bindir ;; 874 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 875 bindir=$ac_optarg ;; 876 877 -build | --build | --buil | --bui | --bu) 878 ac_prev=build_alias ;; 879 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 880 build_alias=$ac_optarg ;; 881 882 -cache-file | --cache-file | --cache-fil | --cache-fi \ 883 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 884 ac_prev=cache_file ;; 885 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 886 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 887 cache_file=$ac_optarg ;; 888 889 --config-cache | -C) 890 cache_file=config.cache ;; 891 892 -datadir | --datadir | --datadi | --datad) 893 ac_prev=datadir ;; 894 -datadir=* | --datadir=* | --datadi=* | --datad=*) 895 datadir=$ac_optarg ;; 896 897 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 898 | --dataroo | --dataro | --datar) 899 ac_prev=datarootdir ;; 900 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 901 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 902 datarootdir=$ac_optarg ;; 903 904 -disable-* | --disable-*) 905 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 906 # Reject names that are not valid shell variable names. 907 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 908 as_fn_error $? "invalid feature name: $ac_useropt" 909 ac_useropt_orig=$ac_useropt 910 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 911 case $ac_user_opts in 912 *" 913"enable_$ac_useropt" 914"*) ;; 915 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 916 ac_unrecognized_sep=', ';; 917 esac 918 eval enable_$ac_useropt=no ;; 919 920 -docdir | --docdir | --docdi | --doc | --do) 921 ac_prev=docdir ;; 922 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 923 docdir=$ac_optarg ;; 924 925 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 926 ac_prev=dvidir ;; 927 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 928 dvidir=$ac_optarg ;; 929 930 -enable-* | --enable-*) 931 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 932 # Reject names that are not valid shell variable names. 933 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 934 as_fn_error $? "invalid feature name: $ac_useropt" 935 ac_useropt_orig=$ac_useropt 936 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 937 case $ac_user_opts in 938 *" 939"enable_$ac_useropt" 940"*) ;; 941 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 942 ac_unrecognized_sep=', ';; 943 esac 944 eval enable_$ac_useropt=\$ac_optarg ;; 945 946 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 947 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 948 | --exec | --exe | --ex) 949 ac_prev=exec_prefix ;; 950 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 951 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 952 | --exec=* | --exe=* | --ex=*) 953 exec_prefix=$ac_optarg ;; 954 955 -gas | --gas | --ga | --g) 956 # Obsolete; use --with-gas. 957 with_gas=yes ;; 958 959 -help | --help | --hel | --he | -h) 960 ac_init_help=long ;; 961 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 962 ac_init_help=recursive ;; 963 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 964 ac_init_help=short ;; 965 966 -host | --host | --hos | --ho) 967 ac_prev=host_alias ;; 968 -host=* | --host=* | --hos=* | --ho=*) 969 host_alias=$ac_optarg ;; 970 971 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 972 ac_prev=htmldir ;; 973 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 974 | --ht=*) 975 htmldir=$ac_optarg ;; 976 977 -includedir | --includedir | --includedi | --included | --include \ 978 | --includ | --inclu | --incl | --inc) 979 ac_prev=includedir ;; 980 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 981 | --includ=* | --inclu=* | --incl=* | --inc=*) 982 includedir=$ac_optarg ;; 983 984 -infodir | --infodir | --infodi | --infod | --info | --inf) 985 ac_prev=infodir ;; 986 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 987 infodir=$ac_optarg ;; 988 989 -libdir | --libdir | --libdi | --libd) 990 ac_prev=libdir ;; 991 -libdir=* | --libdir=* | --libdi=* | --libd=*) 992 libdir=$ac_optarg ;; 993 994 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 995 | --libexe | --libex | --libe) 996 ac_prev=libexecdir ;; 997 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 998 | --libexe=* | --libex=* | --libe=*) 999 libexecdir=$ac_optarg ;; 1000 1001 -localedir | --localedir | --localedi | --localed | --locale) 1002 ac_prev=localedir ;; 1003 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1004 localedir=$ac_optarg ;; 1005 1006 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1007 | --localstate | --localstat | --localsta | --localst | --locals) 1008 ac_prev=localstatedir ;; 1009 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1010 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1011 localstatedir=$ac_optarg ;; 1012 1013 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1014 ac_prev=mandir ;; 1015 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1016 mandir=$ac_optarg ;; 1017 1018 -nfp | --nfp | --nf) 1019 # Obsolete; use --without-fp. 1020 with_fp=no ;; 1021 1022 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1023 | --no-cr | --no-c | -n) 1024 no_create=yes ;; 1025 1026 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1027 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1028 no_recursion=yes ;; 1029 1030 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1031 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1032 | --oldin | --oldi | --old | --ol | --o) 1033 ac_prev=oldincludedir ;; 1034 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1035 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1036 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1037 oldincludedir=$ac_optarg ;; 1038 1039 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1040 ac_prev=prefix ;; 1041 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1042 prefix=$ac_optarg ;; 1043 1044 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1045 | --program-pre | --program-pr | --program-p) 1046 ac_prev=program_prefix ;; 1047 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1048 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1049 program_prefix=$ac_optarg ;; 1050 1051 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1052 | --program-suf | --program-su | --program-s) 1053 ac_prev=program_suffix ;; 1054 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1055 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1056 program_suffix=$ac_optarg ;; 1057 1058 -program-transform-name | --program-transform-name \ 1059 | --program-transform-nam | --program-transform-na \ 1060 | --program-transform-n | --program-transform- \ 1061 | --program-transform | --program-transfor \ 1062 | --program-transfo | --program-transf \ 1063 | --program-trans | --program-tran \ 1064 | --progr-tra | --program-tr | --program-t) 1065 ac_prev=program_transform_name ;; 1066 -program-transform-name=* | --program-transform-name=* \ 1067 | --program-transform-nam=* | --program-transform-na=* \ 1068 | --program-transform-n=* | --program-transform-=* \ 1069 | --program-transform=* | --program-transfor=* \ 1070 | --program-transfo=* | --program-transf=* \ 1071 | --program-trans=* | --program-tran=* \ 1072 | --progr-tra=* | --program-tr=* | --program-t=*) 1073 program_transform_name=$ac_optarg ;; 1074 1075 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1076 ac_prev=pdfdir ;; 1077 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1078 pdfdir=$ac_optarg ;; 1079 1080 -psdir | --psdir | --psdi | --psd | --ps) 1081 ac_prev=psdir ;; 1082 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1083 psdir=$ac_optarg ;; 1084 1085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1086 | -silent | --silent | --silen | --sile | --sil) 1087 silent=yes ;; 1088 1089 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1090 ac_prev=sbindir ;; 1091 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1092 | --sbi=* | --sb=*) 1093 sbindir=$ac_optarg ;; 1094 1095 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1096 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1097 | --sharedst | --shareds | --shared | --share | --shar \ 1098 | --sha | --sh) 1099 ac_prev=sharedstatedir ;; 1100 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1101 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1102 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1103 | --sha=* | --sh=*) 1104 sharedstatedir=$ac_optarg ;; 1105 1106 -site | --site | --sit) 1107 ac_prev=site ;; 1108 -site=* | --site=* | --sit=*) 1109 site=$ac_optarg ;; 1110 1111 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1112 ac_prev=srcdir ;; 1113 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1114 srcdir=$ac_optarg ;; 1115 1116 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1117 | --syscon | --sysco | --sysc | --sys | --sy) 1118 ac_prev=sysconfdir ;; 1119 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1120 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1121 sysconfdir=$ac_optarg ;; 1122 1123 -target | --target | --targe | --targ | --tar | --ta | --t) 1124 ac_prev=target_alias ;; 1125 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1126 target_alias=$ac_optarg ;; 1127 1128 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1129 verbose=yes ;; 1130 1131 -version | --version | --versio | --versi | --vers | -V) 1132 ac_init_version=: ;; 1133 1134 -with-* | --with-*) 1135 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1136 # Reject names that are not valid shell variable names. 1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1138 as_fn_error $? "invalid package name: $ac_useropt" 1139 ac_useropt_orig=$ac_useropt 1140 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1141 case $ac_user_opts in 1142 *" 1143"with_$ac_useropt" 1144"*) ;; 1145 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1146 ac_unrecognized_sep=', ';; 1147 esac 1148 eval with_$ac_useropt=\$ac_optarg ;; 1149 1150 -without-* | --without-*) 1151 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1152 # Reject names that are not valid shell variable names. 1153 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1154 as_fn_error $? "invalid package name: $ac_useropt" 1155 ac_useropt_orig=$ac_useropt 1156 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1157 case $ac_user_opts in 1158 *" 1159"with_$ac_useropt" 1160"*) ;; 1161 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1162 ac_unrecognized_sep=', ';; 1163 esac 1164 eval with_$ac_useropt=no ;; 1165 1166 --x) 1167 # Obsolete; use --with-x. 1168 with_x=yes ;; 1169 1170 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1171 | --x-incl | --x-inc | --x-in | --x-i) 1172 ac_prev=x_includes ;; 1173 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1174 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1175 x_includes=$ac_optarg ;; 1176 1177 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1178 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1179 ac_prev=x_libraries ;; 1180 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1181 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1182 x_libraries=$ac_optarg ;; 1183 1184 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1185Try \`$0 --help' for more information" 1186 ;; 1187 1188 *=*) 1189 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1190 # Reject names that are not valid shell variable names. 1191 case $ac_envvar in #( 1192 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1193 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1194 esac 1195 eval $ac_envvar=\$ac_optarg 1196 export $ac_envvar ;; 1197 1198 *) 1199 # FIXME: should be removed in autoconf 3.0. 1200 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1201 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1202 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1203 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1204 ;; 1205 1206 esac 1207done 1208 1209if test -n "$ac_prev"; then 1210 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1211 as_fn_error $? "missing argument to $ac_option" 1212fi 1213 1214if test -n "$ac_unrecognized_opts"; then 1215 case $enable_option_checking in 1216 no) ;; 1217 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1218 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1219 esac 1220fi 1221 1222# Check all directory arguments for consistency. 1223for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1224 datadir sysconfdir sharedstatedir localstatedir includedir \ 1225 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1226 libdir localedir mandir 1227do 1228 eval ac_val=\$$ac_var 1229 # Remove trailing slashes. 1230 case $ac_val in 1231 */ ) 1232 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1233 eval $ac_var=\$ac_val;; 1234 esac 1235 # Be sure to have absolute directory names. 1236 case $ac_val in 1237 [\\/$]* | ?:[\\/]* ) continue;; 1238 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1239 esac 1240 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1241done 1242 1243# There might be people who depend on the old broken behavior: `$host' 1244# used to hold the argument of --host etc. 1245# FIXME: To remove some day. 1246build=$build_alias 1247host=$host_alias 1248target=$target_alias 1249 1250# FIXME: To remove some day. 1251if test "x$host_alias" != x; then 1252 if test "x$build_alias" = x; then 1253 cross_compiling=maybe 1254 elif test "x$build_alias" != "x$host_alias"; then 1255 cross_compiling=yes 1256 fi 1257fi 1258 1259ac_tool_prefix= 1260test -n "$host_alias" && ac_tool_prefix=$host_alias- 1261 1262test "$silent" = yes && exec 6>/dev/null 1263 1264 1265ac_pwd=`pwd` && test -n "$ac_pwd" && 1266ac_ls_di=`ls -di .` && 1267ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1268 as_fn_error $? "working directory cannot be determined" 1269test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1270 as_fn_error $? "pwd does not report name of working directory" 1271 1272 1273# Find the source files, if location was not specified. 1274if test -z "$srcdir"; then 1275 ac_srcdir_defaulted=yes 1276 # Try the directory containing this script, then the parent directory. 1277 ac_confdir=`$as_dirname -- "$as_myself" || 1278$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1279 X"$as_myself" : 'X\(//\)[^/]' \| \ 1280 X"$as_myself" : 'X\(//\)$' \| \ 1281 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1282$as_echo X"$as_myself" | 1283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1284 s//\1/ 1285 q 1286 } 1287 /^X\(\/\/\)[^/].*/{ 1288 s//\1/ 1289 q 1290 } 1291 /^X\(\/\/\)$/{ 1292 s//\1/ 1293 q 1294 } 1295 /^X\(\/\).*/{ 1296 s//\1/ 1297 q 1298 } 1299 s/.*/./; q'` 1300 srcdir=$ac_confdir 1301 if test ! -r "$srcdir/$ac_unique_file"; then 1302 srcdir=.. 1303 fi 1304else 1305 ac_srcdir_defaulted=no 1306fi 1307if test ! -r "$srcdir/$ac_unique_file"; then 1308 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1309 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1310fi 1311ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1312ac_abs_confdir=`( 1313 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1314 pwd)` 1315# When building in place, set srcdir=. 1316if test "$ac_abs_confdir" = "$ac_pwd"; then 1317 srcdir=. 1318fi 1319# Remove unnecessary trailing slashes from srcdir. 1320# Double slashes in file names in object file debugging info 1321# mess up M-x gdb in Emacs. 1322case $srcdir in 1323*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1324esac 1325for ac_var in $ac_precious_vars; do 1326 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1327 eval ac_env_${ac_var}_value=\$${ac_var} 1328 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1329 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1330done 1331 1332# 1333# Report the --help message. 1334# 1335if test "$ac_init_help" = "long"; then 1336 # Omit some internal or obsolete options to make the list less imposing. 1337 # This message is too long to be a string in the A/UX 3.1 sh. 1338 cat <<_ACEOF 1339\`configure' configures libconcord 1.2 to adapt to many kinds of systems. 1340 1341Usage: $0 [OPTION]... [VAR=VALUE]... 1342 1343To assign environment variables (e.g., CC, CFLAGS...), specify them as 1344VAR=VALUE. See below for descriptions of some of the useful variables. 1345 1346Defaults for the options are specified in brackets. 1347 1348Configuration: 1349 -h, --help display this help and exit 1350 --help=short display options specific to this package 1351 --help=recursive display the short help of all the included packages 1352 -V, --version display version information and exit 1353 -q, --quiet, --silent do not print \`checking ...' messages 1354 --cache-file=FILE cache test results in FILE [disabled] 1355 -C, --config-cache alias for \`--cache-file=config.cache' 1356 -n, --no-create do not create output files 1357 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1358 1359Installation directories: 1360 --prefix=PREFIX install architecture-independent files in PREFIX 1361 @<:@@S|@ac_default_prefix@:>@ 1362 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1363 @<:@PREFIX@:>@ 1364 1365By default, \`make install' will install all the files in 1366\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1367an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1368for instance \`--prefix=\$HOME'. 1369 1370For better control, use the options below. 1371 1372Fine tuning of the installation directories: 1373 --bindir=DIR user executables [EPREFIX/bin] 1374 --sbindir=DIR system admin executables [EPREFIX/sbin] 1375 --libexecdir=DIR program executables [EPREFIX/libexec] 1376 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1377 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1378 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1379 --libdir=DIR object code libraries [EPREFIX/lib] 1380 --includedir=DIR C header files [PREFIX/include] 1381 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1382 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1383 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1384 --infodir=DIR info documentation [DATAROOTDIR/info] 1385 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1386 --mandir=DIR man documentation [DATAROOTDIR/man] 1387 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/libconcord@:>@ 1388 --htmldir=DIR html documentation [DOCDIR] 1389 --dvidir=DIR dvi documentation [DOCDIR] 1390 --pdfdir=DIR pdf documentation [DOCDIR] 1391 --psdir=DIR ps documentation [DOCDIR] 1392_ACEOF 1393 1394 cat <<\_ACEOF 1395 1396Program names: 1397 --program-prefix=PREFIX prepend PREFIX to installed program names 1398 --program-suffix=SUFFIX append SUFFIX to installed program names 1399 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1400 1401System types: 1402 --build=BUILD configure for building on BUILD [guessed] 1403 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1404_ACEOF 1405fi 1406 1407if test -n "$ac_init_help"; then 1408 case $ac_init_help in 1409 short | recursive ) echo "Configuration of libconcord 1.2:";; 1410 esac 1411 cat <<\_ACEOF 1412 1413Optional Features: 1414 --disable-option-checking ignore unrecognized --enable/--with options 1415 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1416 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1417 --enable-silent-rules less verbose build output (undo: "make V=1") 1418 --disable-silent-rules verbose build output (undo: "make V=0") 1419 --enable-dependency-tracking 1420 do not reject slow dependency extractors 1421 --disable-dependency-tracking 1422 speeds up one-time build 1423 --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@ 1424 --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@ 1425 --enable-fast-install@<:@=PKGS@:>@ 1426 optimize for fast installation @<:@default=yes@:>@ 1427 --disable-libtool-lock avoid locking (might break parallel builds) 1428 --disable-mime-update Disable the MIME database update 1429 --enable-force-libusb-on-linux 1430 Use libusb on Linux 1431 1432Optional Packages: 1433 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1434 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1435 --with-pic@<:@=PKGS@:>@ try to use only PIC/non-PIC objects @<:@default=use 1436 both@:>@ 1437 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@ 1438 --with-sysroot=DIR Search for dependent libraries within DIR 1439 (or the compiler's sysroot if not specified). 1440 1441Some influential environment variables: 1442 CC C compiler command 1443 CFLAGS C compiler flags 1444 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1445 nonstandard directory <lib dir> 1446 LIBS libraries to pass to the linker, e.g. -l<library> 1447 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1448 you have headers in a nonstandard directory <include dir> 1449 CPP C preprocessor 1450 CXX C++ compiler command 1451 CXXFLAGS C++ compiler flags 1452 CXXCPP C++ preprocessor 1453 PKG_CONFIG path to pkg-config utility 1454 PKG_CONFIG_PATH 1455 directories to add to pkg-config's search path 1456 PKG_CONFIG_LIBDIR 1457 path overriding pkg-config's built-in search path 1458 ZIP_CFLAGS C compiler flags for ZIP, overriding pkg-config 1459 ZIP_LIBS linker flags for ZIP, overriding pkg-config 1460 1461Use these variables to override the choices made by `configure' or to help 1462it to find libraries and programs with nonstandard names/locations. 1463 1464Report bugs to <concordance-devel@lists.sourceforge.net>. 1465_ACEOF 1466ac_status=$? 1467fi 1468 1469if test "$ac_init_help" = "recursive"; then 1470 # If there are subdirs, report their specific --help. 1471 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1472 test -d "$ac_dir" || 1473 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1474 continue 1475 ac_builddir=. 1476 1477case "$ac_dir" in 1478.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1479*) 1480 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1481 # A ".." for each directory in $ac_dir_suffix. 1482 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1483 case $ac_top_builddir_sub in 1484 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1485 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1486 esac ;; 1487esac 1488ac_abs_top_builddir=$ac_pwd 1489ac_abs_builddir=$ac_pwd$ac_dir_suffix 1490# for backward compatibility: 1491ac_top_builddir=$ac_top_build_prefix 1492 1493case $srcdir in 1494 .) # We are building in place. 1495 ac_srcdir=. 1496 ac_top_srcdir=$ac_top_builddir_sub 1497 ac_abs_top_srcdir=$ac_pwd ;; 1498 [\\/]* | ?:[\\/]* ) # Absolute name. 1499 ac_srcdir=$srcdir$ac_dir_suffix; 1500 ac_top_srcdir=$srcdir 1501 ac_abs_top_srcdir=$srcdir ;; 1502 *) # Relative name. 1503 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1504 ac_top_srcdir=$ac_top_build_prefix$srcdir 1505 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1506esac 1507ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1508 1509 cd "$ac_dir" || { ac_status=$?; continue; } 1510 # Check for guested configure. 1511 if test -f "$ac_srcdir/configure.gnu"; then 1512 echo && 1513 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1514 elif test -f "$ac_srcdir/configure"; then 1515 echo && 1516 $SHELL "$ac_srcdir/configure" --help=recursive 1517 else 1518 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1519 fi || ac_status=$? 1520 cd "$ac_pwd" || { ac_status=$?; break; } 1521 done 1522fi 1523 1524test -n "$ac_init_help" && exit $ac_status 1525if $ac_init_version; then 1526 cat <<\_ACEOF 1527libconcord configure 1.2 1528generated by GNU Autoconf 2.69 1529 1530Copyright (C) 2012 Free Software Foundation, Inc. 1531This configure script is free software; the Free Software Foundation 1532gives unlimited permission to copy, distribute and modify it. 1533_ACEOF 1534 exit 1535fi 1536 1537## ------------------------ ## 1538## Autoconf initialization. ## 1539## ------------------------ ## 1540 1541@%:@ ac_fn_c_try_compile LINENO 1542@%:@ -------------------------- 1543@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded. 1544ac_fn_c_try_compile () 1545{ 1546 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1547 rm -f conftest.$ac_objext 1548 if { { ac_try="$ac_compile" 1549case "(($ac_try" in 1550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1551 *) ac_try_echo=$ac_try;; 1552esac 1553eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1554$as_echo "$ac_try_echo"; } >&5 1555 (eval "$ac_compile") 2>conftest.err 1556 ac_status=$? 1557 if test -s conftest.err; then 1558 grep -v '^ *+' conftest.err >conftest.er1 1559 cat conftest.er1 >&5 1560 mv -f conftest.er1 conftest.err 1561 fi 1562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1563 test $ac_status = 0; } && { 1564 test -z "$ac_c_werror_flag" || 1565 test ! -s conftest.err 1566 } && test -s conftest.$ac_objext; then : 1567 ac_retval=0 1568else 1569 $as_echo "$as_me: failed program was:" >&5 1570sed 's/^/| /' conftest.$ac_ext >&5 1571 1572 ac_retval=1 1573fi 1574 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1575 as_fn_set_status $ac_retval 1576 1577} @%:@ ac_fn_c_try_compile 1578 1579@%:@ ac_fn_c_try_link LINENO 1580@%:@ ----------------------- 1581@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. 1582ac_fn_c_try_link () 1583{ 1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1585 rm -f conftest.$ac_objext conftest$ac_exeext 1586 if { { ac_try="$ac_link" 1587case "(($ac_try" in 1588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1589 *) ac_try_echo=$ac_try;; 1590esac 1591eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1592$as_echo "$ac_try_echo"; } >&5 1593 (eval "$ac_link") 2>conftest.err 1594 ac_status=$? 1595 if test -s conftest.err; then 1596 grep -v '^ *+' conftest.err >conftest.er1 1597 cat conftest.er1 >&5 1598 mv -f conftest.er1 conftest.err 1599 fi 1600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1601 test $ac_status = 0; } && { 1602 test -z "$ac_c_werror_flag" || 1603 test ! -s conftest.err 1604 } && test -s conftest$ac_exeext && { 1605 test "$cross_compiling" = yes || 1606 test -x conftest$ac_exeext 1607 }; then : 1608 ac_retval=0 1609else 1610 $as_echo "$as_me: failed program was:" >&5 1611sed 's/^/| /' conftest.$ac_ext >&5 1612 1613 ac_retval=1 1614fi 1615 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1616 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1617 # interfere with the next link command; also delete a directory that is 1618 # left behind by Apple's compiler. We do this before executing the actions. 1619 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1620 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1621 as_fn_set_status $ac_retval 1622 1623} @%:@ ac_fn_c_try_link 1624 1625@%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1626@%:@ ------------------------------------------------------- 1627@%:@ Tests whether HEADER exists and can be compiled using the include files in 1628@%:@ INCLUDES, setting the cache variable VAR accordingly. 1629ac_fn_c_check_header_compile () 1630{ 1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1633$as_echo_n "checking for $2... " >&6; } 1634if eval \${$3+:} false; then : 1635 $as_echo_n "(cached) " >&6 1636else 1637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1638/* end confdefs.h. */ 1639$4 1640@%:@include <$2> 1641_ACEOF 1642if ac_fn_c_try_compile "$LINENO"; then : 1643 eval "$3=yes" 1644else 1645 eval "$3=no" 1646fi 1647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1648fi 1649eval ac_res=\$$3 1650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1651$as_echo "$ac_res" >&6; } 1652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1653 1654} @%:@ ac_fn_c_check_header_compile 1655 1656@%:@ ac_fn_c_try_cpp LINENO 1657@%:@ ---------------------- 1658@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded. 1659ac_fn_c_try_cpp () 1660{ 1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1662 if { { ac_try="$ac_cpp conftest.$ac_ext" 1663case "(($ac_try" in 1664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1665 *) ac_try_echo=$ac_try;; 1666esac 1667eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1668$as_echo "$ac_try_echo"; } >&5 1669 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1670 ac_status=$? 1671 if test -s conftest.err; then 1672 grep -v '^ *+' conftest.err >conftest.er1 1673 cat conftest.er1 >&5 1674 mv -f conftest.er1 conftest.err 1675 fi 1676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1677 test $ac_status = 0; } > conftest.i && { 1678 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1679 test ! -s conftest.err 1680 }; then : 1681 ac_retval=0 1682else 1683 $as_echo "$as_me: failed program was:" >&5 1684sed 's/^/| /' conftest.$ac_ext >&5 1685 1686 ac_retval=1 1687fi 1688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1689 as_fn_set_status $ac_retval 1690 1691} @%:@ ac_fn_c_try_cpp 1692 1693@%:@ ac_fn_c_try_run LINENO 1694@%:@ ---------------------- 1695@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes 1696@%:@ that executables *can* be run. 1697ac_fn_c_try_run () 1698{ 1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1700 if { { ac_try="$ac_link" 1701case "(($ac_try" in 1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1703 *) ac_try_echo=$ac_try;; 1704esac 1705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1706$as_echo "$ac_try_echo"; } >&5 1707 (eval "$ac_link") 2>&5 1708 ac_status=$? 1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1710 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1711 { { case "(($ac_try" in 1712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1713 *) ac_try_echo=$ac_try;; 1714esac 1715eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1716$as_echo "$ac_try_echo"; } >&5 1717 (eval "$ac_try") 2>&5 1718 ac_status=$? 1719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1720 test $ac_status = 0; }; }; then : 1721 ac_retval=0 1722else 1723 $as_echo "$as_me: program exited with status $ac_status" >&5 1724 $as_echo "$as_me: failed program was:" >&5 1725sed 's/^/| /' conftest.$ac_ext >&5 1726 1727 ac_retval=$ac_status 1728fi 1729 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1731 as_fn_set_status $ac_retval 1732 1733} @%:@ ac_fn_c_try_run 1734 1735@%:@ ac_fn_c_check_func LINENO FUNC VAR 1736@%:@ ---------------------------------- 1737@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly 1738ac_fn_c_check_func () 1739{ 1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1742$as_echo_n "checking for $2... " >&6; } 1743if eval \${$3+:} false; then : 1744 $as_echo_n "(cached) " >&6 1745else 1746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1747/* end confdefs.h. */ 1748/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1749 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1750#define $2 innocuous_$2 1751 1752/* System header to define __stub macros and hopefully few prototypes, 1753 which can conflict with char $2 (); below. 1754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1755 <limits.h> exists even on freestanding compilers. */ 1756 1757#ifdef __STDC__ 1758# include <limits.h> 1759#else 1760# include <assert.h> 1761#endif 1762 1763#undef $2 1764 1765/* Override any GCC internal prototype to avoid an error. 1766 Use char because int might match the return type of a GCC 1767 builtin and then its argument prototype would still apply. */ 1768#ifdef __cplusplus 1769extern "C" 1770#endif 1771char $2 (); 1772/* The GNU C library defines this for functions which it implements 1773 to always fail with ENOSYS. Some functions are actually named 1774 something starting with __ and the normal name is an alias. */ 1775#if defined __stub_$2 || defined __stub___$2 1776choke me 1777#endif 1778 1779int 1780main () 1781{ 1782return $2 (); 1783 ; 1784 return 0; 1785} 1786_ACEOF 1787if ac_fn_c_try_link "$LINENO"; then : 1788 eval "$3=yes" 1789else 1790 eval "$3=no" 1791fi 1792rm -f core conftest.err conftest.$ac_objext \ 1793 conftest$ac_exeext conftest.$ac_ext 1794fi 1795eval ac_res=\$$3 1796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1797$as_echo "$ac_res" >&6; } 1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1799 1800} @%:@ ac_fn_c_check_func 1801 1802@%:@ ac_fn_cxx_try_compile LINENO 1803@%:@ ---------------------------- 1804@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded. 1805ac_fn_cxx_try_compile () 1806{ 1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1808 rm -f conftest.$ac_objext 1809 if { { ac_try="$ac_compile" 1810case "(($ac_try" in 1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1812 *) ac_try_echo=$ac_try;; 1813esac 1814eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1815$as_echo "$ac_try_echo"; } >&5 1816 (eval "$ac_compile") 2>conftest.err 1817 ac_status=$? 1818 if test -s conftest.err; then 1819 grep -v '^ *+' conftest.err >conftest.er1 1820 cat conftest.er1 >&5 1821 mv -f conftest.er1 conftest.err 1822 fi 1823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1824 test $ac_status = 0; } && { 1825 test -z "$ac_cxx_werror_flag" || 1826 test ! -s conftest.err 1827 } && test -s conftest.$ac_objext; then : 1828 ac_retval=0 1829else 1830 $as_echo "$as_me: failed program was:" >&5 1831sed 's/^/| /' conftest.$ac_ext >&5 1832 1833 ac_retval=1 1834fi 1835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1836 as_fn_set_status $ac_retval 1837 1838} @%:@ ac_fn_cxx_try_compile 1839 1840@%:@ ac_fn_cxx_try_cpp LINENO 1841@%:@ ------------------------ 1842@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded. 1843ac_fn_cxx_try_cpp () 1844{ 1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1846 if { { ac_try="$ac_cpp conftest.$ac_ext" 1847case "(($ac_try" in 1848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1849 *) ac_try_echo=$ac_try;; 1850esac 1851eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1852$as_echo "$ac_try_echo"; } >&5 1853 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1854 ac_status=$? 1855 if test -s conftest.err; then 1856 grep -v '^ *+' conftest.err >conftest.er1 1857 cat conftest.er1 >&5 1858 mv -f conftest.er1 conftest.err 1859 fi 1860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1861 test $ac_status = 0; } > conftest.i && { 1862 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1863 test ! -s conftest.err 1864 }; then : 1865 ac_retval=0 1866else 1867 $as_echo "$as_me: failed program was:" >&5 1868sed 's/^/| /' conftest.$ac_ext >&5 1869 1870 ac_retval=1 1871fi 1872 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1873 as_fn_set_status $ac_retval 1874 1875} @%:@ ac_fn_cxx_try_cpp 1876 1877@%:@ ac_fn_cxx_try_link LINENO 1878@%:@ ------------------------- 1879@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. 1880ac_fn_cxx_try_link () 1881{ 1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1883 rm -f conftest.$ac_objext conftest$ac_exeext 1884 if { { ac_try="$ac_link" 1885case "(($ac_try" in 1886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1887 *) ac_try_echo=$ac_try;; 1888esac 1889eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1890$as_echo "$ac_try_echo"; } >&5 1891 (eval "$ac_link") 2>conftest.err 1892 ac_status=$? 1893 if test -s conftest.err; then 1894 grep -v '^ *+' conftest.err >conftest.er1 1895 cat conftest.er1 >&5 1896 mv -f conftest.er1 conftest.err 1897 fi 1898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1899 test $ac_status = 0; } && { 1900 test -z "$ac_cxx_werror_flag" || 1901 test ! -s conftest.err 1902 } && test -s conftest$ac_exeext && { 1903 test "$cross_compiling" = yes || 1904 test -x conftest$ac_exeext 1905 }; then : 1906 ac_retval=0 1907else 1908 $as_echo "$as_me: failed program was:" >&5 1909sed 's/^/| /' conftest.$ac_ext >&5 1910 1911 ac_retval=1 1912fi 1913 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1914 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1915 # interfere with the next link command; also delete a directory that is 1916 # left behind by Apple's compiler. We do this before executing the actions. 1917 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1918 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1919 as_fn_set_status $ac_retval 1920 1921} @%:@ ac_fn_cxx_try_link 1922 1923@%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1924@%:@ ------------------------------------------------------- 1925@%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using 1926@%:@ the include files in INCLUDES and setting the cache variable VAR 1927@%:@ accordingly. 1928ac_fn_c_check_header_mongrel () 1929{ 1930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1931 if eval \${$3+:} false; then : 1932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1933$as_echo_n "checking for $2... " >&6; } 1934if eval \${$3+:} false; then : 1935 $as_echo_n "(cached) " >&6 1936fi 1937eval ac_res=\$$3 1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1939$as_echo "$ac_res" >&6; } 1940else 1941 # Is the header compilable? 1942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1943$as_echo_n "checking $2 usability... " >&6; } 1944cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1945/* end confdefs.h. */ 1946$4 1947@%:@include <$2> 1948_ACEOF 1949if ac_fn_c_try_compile "$LINENO"; then : 1950 ac_header_compiler=yes 1951else 1952 ac_header_compiler=no 1953fi 1954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1956$as_echo "$ac_header_compiler" >&6; } 1957 1958# Is the header present? 1959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1960$as_echo_n "checking $2 presence... " >&6; } 1961cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1962/* end confdefs.h. */ 1963@%:@include <$2> 1964_ACEOF 1965if ac_fn_c_try_cpp "$LINENO"; then : 1966 ac_header_preproc=yes 1967else 1968 ac_header_preproc=no 1969fi 1970rm -f conftest.err conftest.i conftest.$ac_ext 1971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1972$as_echo "$ac_header_preproc" >&6; } 1973 1974# So? What about this header? 1975case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1976 yes:no: ) 1977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1978$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1980$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1981 ;; 1982 no:yes:* ) 1983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1984$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1986$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1988$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1990$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1992$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1993( $as_echo "## ------------------------------------------------------ ## 1994## Report this to concordance-devel@lists.sourceforge.net ## 1995## ------------------------------------------------------ ##" 1996 ) | sed "s/^/$as_me: WARNING: /" >&2 1997 ;; 1998esac 1999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2000$as_echo_n "checking for $2... " >&6; } 2001if eval \${$3+:} false; then : 2002 $as_echo_n "(cached) " >&6 2003else 2004 eval "$3=\$ac_header_compiler" 2005fi 2006eval ac_res=\$$3 2007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2008$as_echo "$ac_res" >&6; } 2009fi 2010 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2011 2012} @%:@ ac_fn_c_check_header_mongrel 2013cat >config.log <<_ACEOF 2014This file contains any messages produced by compilers while 2015running configure, to aid debugging if configure makes a mistake. 2016 2017It was created by libconcord $as_me 1.2, which was 2018generated by GNU Autoconf 2.69. Invocation command line was 2019 2020 $ $0 $@ 2021 2022_ACEOF 2023exec 5>>config.log 2024{ 2025cat <<_ASUNAME 2026## --------- ## 2027## Platform. ## 2028## --------- ## 2029 2030hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2031uname -m = `(uname -m) 2>/dev/null || echo unknown` 2032uname -r = `(uname -r) 2>/dev/null || echo unknown` 2033uname -s = `(uname -s) 2>/dev/null || echo unknown` 2034uname -v = `(uname -v) 2>/dev/null || echo unknown` 2035 2036/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2037/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2038 2039/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2040/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2041/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2042/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2043/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2044/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2045/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2046 2047_ASUNAME 2048 2049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2050for as_dir in $PATH 2051do 2052 IFS=$as_save_IFS 2053 test -z "$as_dir" && as_dir=. 2054 $as_echo "PATH: $as_dir" 2055 done 2056IFS=$as_save_IFS 2057 2058} >&5 2059 2060cat >&5 <<_ACEOF 2061 2062 2063## ----------- ## 2064## Core tests. ## 2065## ----------- ## 2066 2067_ACEOF 2068 2069 2070# Keep a trace of the command line. 2071# Strip out --no-create and --no-recursion so they do not pile up. 2072# Strip out --silent because we don't want to record it for future runs. 2073# Also quote any args containing shell meta-characters. 2074# Make two passes to allow for proper duplicate-argument suppression. 2075ac_configure_args= 2076ac_configure_args0= 2077ac_configure_args1= 2078ac_must_keep_next=false 2079for ac_pass in 1 2 2080do 2081 for ac_arg 2082 do 2083 case $ac_arg in 2084 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2086 | -silent | --silent | --silen | --sile | --sil) 2087 continue ;; 2088 *\'*) 2089 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2090 esac 2091 case $ac_pass in 2092 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2093 2) 2094 as_fn_append ac_configure_args1 " '$ac_arg'" 2095 if test $ac_must_keep_next = true; then 2096 ac_must_keep_next=false # Got value, back to normal. 2097 else 2098 case $ac_arg in 2099 *=* | --config-cache | -C | -disable-* | --disable-* \ 2100 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2101 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2102 | -with-* | --with-* | -without-* | --without-* | --x) 2103 case "$ac_configure_args0 " in 2104 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2105 esac 2106 ;; 2107 -* ) ac_must_keep_next=true ;; 2108 esac 2109 fi 2110 as_fn_append ac_configure_args " '$ac_arg'" 2111 ;; 2112 esac 2113 done 2114done 2115{ ac_configure_args0=; unset ac_configure_args0;} 2116{ ac_configure_args1=; unset ac_configure_args1;} 2117 2118# When interrupted or exit'd, cleanup temporary files, and complete 2119# config.log. We remove comments because anyway the quotes in there 2120# would cause problems or look ugly. 2121# WARNING: Use '\'' to represent an apostrophe within the trap. 2122# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2123trap 'exit_status=$? 2124 # Save into config.log some information that might help in debugging. 2125 { 2126 echo 2127 2128 $as_echo "## ---------------- ## 2129## Cache variables. ## 2130## ---------------- ##" 2131 echo 2132 # The following way of writing the cache mishandles newlines in values, 2133( 2134 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2135 eval ac_val=\$$ac_var 2136 case $ac_val in #( 2137 *${as_nl}*) 2138 case $ac_var in #( 2139 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2140$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2141 esac 2142 case $ac_var in #( 2143 _ | IFS | as_nl) ;; #( 2144 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2145 *) { eval $ac_var=; unset $ac_var;} ;; 2146 esac ;; 2147 esac 2148 done 2149 (set) 2>&1 | 2150 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2151 *${as_nl}ac_space=\ *) 2152 sed -n \ 2153 "s/'\''/'\''\\\\'\'''\''/g; 2154 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2155 ;; #( 2156 *) 2157 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2158 ;; 2159 esac | 2160 sort 2161) 2162 echo 2163 2164 $as_echo "## ----------------- ## 2165## Output variables. ## 2166## ----------------- ##" 2167 echo 2168 for ac_var in $ac_subst_vars 2169 do 2170 eval ac_val=\$$ac_var 2171 case $ac_val in 2172 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2173 esac 2174 $as_echo "$ac_var='\''$ac_val'\''" 2175 done | sort 2176 echo 2177 2178 if test -n "$ac_subst_files"; then 2179 $as_echo "## ------------------- ## 2180## File substitutions. ## 2181## ------------------- ##" 2182 echo 2183 for ac_var in $ac_subst_files 2184 do 2185 eval ac_val=\$$ac_var 2186 case $ac_val in 2187 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2188 esac 2189 $as_echo "$ac_var='\''$ac_val'\''" 2190 done | sort 2191 echo 2192 fi 2193 2194 if test -s confdefs.h; then 2195 $as_echo "## ----------- ## 2196## confdefs.h. ## 2197## ----------- ##" 2198 echo 2199 cat confdefs.h 2200 echo 2201 fi 2202 test "$ac_signal" != 0 && 2203 $as_echo "$as_me: caught signal $ac_signal" 2204 $as_echo "$as_me: exit $exit_status" 2205 } >&5 2206 rm -f core *.core core.conftest.* && 2207 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2208 exit $exit_status 2209' 0 2210for ac_signal in 1 2 13 15; do 2211 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2212done 2213ac_signal=0 2214 2215# confdefs.h avoids OS command line length limits that DEFS can exceed. 2216rm -f -r conftest* confdefs.h 2217 2218$as_echo "/* confdefs.h */" > confdefs.h 2219 2220# Predefined preprocessor variables. 2221 2222cat >>confdefs.h <<_ACEOF 2223@%:@define PACKAGE_NAME "$PACKAGE_NAME" 2224_ACEOF 2225 2226cat >>confdefs.h <<_ACEOF 2227@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2228_ACEOF 2229 2230cat >>confdefs.h <<_ACEOF 2231@%:@define PACKAGE_VERSION "$PACKAGE_VERSION" 2232_ACEOF 2233 2234cat >>confdefs.h <<_ACEOF 2235@%:@define PACKAGE_STRING "$PACKAGE_STRING" 2236_ACEOF 2237 2238cat >>confdefs.h <<_ACEOF 2239@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2240_ACEOF 2241 2242cat >>confdefs.h <<_ACEOF 2243@%:@define PACKAGE_URL "$PACKAGE_URL" 2244_ACEOF 2245 2246 2247# Let the site file select an alternate cache file if it wants to. 2248# Prefer an explicitly selected file to automatically selected ones. 2249ac_site_file1=NONE 2250ac_site_file2=NONE 2251if test -n "$CONFIG_SITE"; then 2252 # We do not want a PATH search for config.site. 2253 case $CONFIG_SITE in @%:@(( 2254 -*) ac_site_file1=./$CONFIG_SITE;; 2255 */*) ac_site_file1=$CONFIG_SITE;; 2256 *) ac_site_file1=./$CONFIG_SITE;; 2257 esac 2258elif test "x$prefix" != xNONE; then 2259 ac_site_file1=$prefix/share/config.site 2260 ac_site_file2=$prefix/etc/config.site 2261else 2262 ac_site_file1=$ac_default_prefix/share/config.site 2263 ac_site_file2=$ac_default_prefix/etc/config.site 2264fi 2265for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2266do 2267 test "x$ac_site_file" = xNONE && continue 2268 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2269 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2270$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2271 sed 's/^/| /' "$ac_site_file" >&5 2272 . "$ac_site_file" \ 2273 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2274$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2275as_fn_error $? "failed to load site script $ac_site_file 2276See \`config.log' for more details" "$LINENO" 5; } 2277 fi 2278done 2279 2280if test -r "$cache_file"; then 2281 # Some versions of bash will fail to source /dev/null (special files 2282 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2283 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2284 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2285$as_echo "$as_me: loading cache $cache_file" >&6;} 2286 case $cache_file in 2287 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2288 *) . "./$cache_file";; 2289 esac 2290 fi 2291else 2292 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2293$as_echo "$as_me: creating cache $cache_file" >&6;} 2294 >$cache_file 2295fi 2296 2297# Check that the precious variables saved in the cache have kept the same 2298# value. 2299ac_cache_corrupted=false 2300for ac_var in $ac_precious_vars; do 2301 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2302 eval ac_new_set=\$ac_env_${ac_var}_set 2303 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2304 eval ac_new_val=\$ac_env_${ac_var}_value 2305 case $ac_old_set,$ac_new_set in 2306 set,) 2307 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2308$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2309 ac_cache_corrupted=: ;; 2310 ,set) 2311 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2312$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2313 ac_cache_corrupted=: ;; 2314 ,);; 2315 *) 2316 if test "x$ac_old_val" != "x$ac_new_val"; then 2317 # differences in whitespace do not lead to failure. 2318 ac_old_val_w=`echo x $ac_old_val` 2319 ac_new_val_w=`echo x $ac_new_val` 2320 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2321 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2322$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2323 ac_cache_corrupted=: 2324 else 2325 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2326$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2327 eval $ac_var=\$ac_old_val 2328 fi 2329 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2330$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2331 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2332$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2333 fi;; 2334 esac 2335 # Pass precious variables to config.status. 2336 if test "$ac_new_set" = set; then 2337 case $ac_new_val in 2338 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2339 *) ac_arg=$ac_var=$ac_new_val ;; 2340 esac 2341 case " $ac_configure_args " in 2342 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2343 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2344 esac 2345 fi 2346done 2347if $ac_cache_corrupted; then 2348 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2349$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2350 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2351$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2352 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2353fi 2354## -------------------- ## 2355## Main body of script. ## 2356## -------------------- ## 2357 2358ac_ext=c 2359ac_cpp='$CPP $CPPFLAGS' 2360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2362ac_compiler_gnu=$ac_cv_c_compiler_gnu 2363 2364 2365am__api_version='1.14' 2366 2367ac_aux_dir= 2368for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2369 if test -f "$ac_dir/install-sh"; then 2370 ac_aux_dir=$ac_dir 2371 ac_install_sh="$ac_aux_dir/install-sh -c" 2372 break 2373 elif test -f "$ac_dir/install.sh"; then 2374 ac_aux_dir=$ac_dir 2375 ac_install_sh="$ac_aux_dir/install.sh -c" 2376 break 2377 elif test -f "$ac_dir/shtool"; then 2378 ac_aux_dir=$ac_dir 2379 ac_install_sh="$ac_aux_dir/shtool install -c" 2380 break 2381 fi 2382done 2383if test -z "$ac_aux_dir"; then 2384 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2385fi 2386 2387# These three variables are undocumented and unsupported, 2388# and are intended to be withdrawn in a future Autoconf release. 2389# They can cause serious problems if a builder's source tree is in a directory 2390# whose full name contains unusual characters. 2391ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2392ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2393ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2394 2395 2396# Find a good install program. We prefer a C program (faster), 2397# so one script is as good as another. But avoid the broken or 2398# incompatible versions: 2399# SysV /etc/install, /usr/sbin/install 2400# SunOS /usr/etc/install 2401# IRIX /sbin/install 2402# AIX /bin/install 2403# AmigaOS /C/install, which installs bootblocks on floppy discs 2404# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2405# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2406# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2407# OS/2's system install, which has a completely different semantic 2408# ./install, which can be erroneously created by make from ./install.sh. 2409# Reject install programs that cannot install multiple files. 2410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2411$as_echo_n "checking for a BSD-compatible install... " >&6; } 2412if test -z "$INSTALL"; then 2413if ${ac_cv_path_install+:} false; then : 2414 $as_echo_n "(cached) " >&6 2415else 2416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2417for as_dir in $PATH 2418do 2419 IFS=$as_save_IFS 2420 test -z "$as_dir" && as_dir=. 2421 # Account for people who put trailing slashes in PATH elements. 2422case $as_dir/ in @%:@(( 2423 ./ | .// | /[cC]/* | \ 2424 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2425 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2426 /usr/ucb/* ) ;; 2427 *) 2428 # OSF1 and SCO ODT 3.0 have their own names for install. 2429 # Don't use installbsd from OSF since it installs stuff as root 2430 # by default. 2431 for ac_prog in ginstall scoinst install; do 2432 for ac_exec_ext in '' $ac_executable_extensions; do 2433 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2434 if test $ac_prog = install && 2435 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2436 # AIX install. It has an incompatible calling convention. 2437 : 2438 elif test $ac_prog = install && 2439 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2440 # program-specific install script used by HP pwplus--don't use. 2441 : 2442 else 2443 rm -rf conftest.one conftest.two conftest.dir 2444 echo one > conftest.one 2445 echo two > conftest.two 2446 mkdir conftest.dir 2447 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2448 test -s conftest.one && test -s conftest.two && 2449 test -s conftest.dir/conftest.one && 2450 test -s conftest.dir/conftest.two 2451 then 2452 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2453 break 3 2454 fi 2455 fi 2456 fi 2457 done 2458 done 2459 ;; 2460esac 2461 2462 done 2463IFS=$as_save_IFS 2464 2465rm -rf conftest.one conftest.two conftest.dir 2466 2467fi 2468 if test "${ac_cv_path_install+set}" = set; then 2469 INSTALL=$ac_cv_path_install 2470 else 2471 # As a last resort, use the slow shell script. Don't cache a 2472 # value for INSTALL within a source directory, because that will 2473 # break other packages using the cache if that directory is 2474 # removed, or if the value is a relative name. 2475 INSTALL=$ac_install_sh 2476 fi 2477fi 2478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2479$as_echo "$INSTALL" >&6; } 2480 2481# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2482# It thinks the first close brace ends the variable substitution. 2483test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2484 2485test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2486 2487test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2488 2489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2490$as_echo_n "checking whether build environment is sane... " >&6; } 2491# Reject unsafe characters in $srcdir or the absolute working directory 2492# name. Accept space and tab only in the latter. 2493am_lf=' 2494' 2495case `pwd` in 2496 *[\\\"\#\$\&\'\`$am_lf]*) 2497 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2498esac 2499case $srcdir in 2500 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2501 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2502esac 2503 2504# Do 'set' in a subshell so we don't clobber the current shell's 2505# arguments. Must try -L first in case configure is actually a 2506# symlink; some systems play weird games with the mod time of symlinks 2507# (eg FreeBSD returns the mod time of the symlink's containing 2508# directory). 2509if ( 2510 am_has_slept=no 2511 for am_try in 1 2; do 2512 echo "timestamp, slept: $am_has_slept" > conftest.file 2513 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2514 if test "$*" = "X"; then 2515 # -L didn't work. 2516 set X `ls -t "$srcdir/configure" conftest.file` 2517 fi 2518 if test "$*" != "X $srcdir/configure conftest.file" \ 2519 && test "$*" != "X conftest.file $srcdir/configure"; then 2520 2521 # If neither matched, then we have a broken ls. This can happen 2522 # if, for instance, CONFIG_SHELL is bash and it inherits a 2523 # broken ls alias from the environment. This has actually 2524 # happened. Such a system could not be considered "sane". 2525 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2526 alias in your environment" "$LINENO" 5 2527 fi 2528 if test "$2" = conftest.file || test $am_try -eq 2; then 2529 break 2530 fi 2531 # Just in case. 2532 sleep 1 2533 am_has_slept=yes 2534 done 2535 test "$2" = conftest.file 2536 ) 2537then 2538 # Ok. 2539 : 2540else 2541 as_fn_error $? "newly created file is older than distributed files! 2542Check your system clock" "$LINENO" 5 2543fi 2544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2545$as_echo "yes" >&6; } 2546# If we didn't sleep, we still need to ensure time stamps of config.status and 2547# generated files are strictly newer. 2548am_sleep_pid= 2549if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2550 ( sleep 1 ) & 2551 am_sleep_pid=$! 2552fi 2553 2554rm -f conftest.file 2555 2556test "$program_prefix" != NONE && 2557 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2558# Use a double $ so make ignores it. 2559test "$program_suffix" != NONE && 2560 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2561# Double any \ or $. 2562# By default was `s,x,x', remove it if useless. 2563ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2564program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2565 2566# Expand $ac_aux_dir to an absolute path. 2567am_aux_dir=`cd "$ac_aux_dir" && pwd` 2568 2569if test x"${MISSING+set}" != xset; then 2570 case $am_aux_dir in 2571 *\ * | *\ *) 2572 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2573 *) 2574 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2575 esac 2576fi 2577# Use eval to expand $SHELL 2578if eval "$MISSING --is-lightweight"; then 2579 am_missing_run="$MISSING " 2580else 2581 am_missing_run= 2582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2583$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2584fi 2585 2586if test x"${install_sh}" != xset; then 2587 case $am_aux_dir in 2588 *\ * | *\ *) 2589 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2590 *) 2591 install_sh="\${SHELL} $am_aux_dir/install-sh" 2592 esac 2593fi 2594 2595# Installed binaries are usually stripped using 'strip' when the user 2596# run "make install-strip". However 'strip' might not be the right 2597# tool to use in cross-compilation environments, therefore Automake 2598# will honor the 'STRIP' environment variable to overrule this program. 2599if test "$cross_compiling" != no; then 2600 if test -n "$ac_tool_prefix"; then 2601 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2602set dummy ${ac_tool_prefix}strip; ac_word=$2 2603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2604$as_echo_n "checking for $ac_word... " >&6; } 2605if ${ac_cv_prog_STRIP+:} false; then : 2606 $as_echo_n "(cached) " >&6 2607else 2608 if test -n "$STRIP"; then 2609 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2610else 2611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2612for as_dir in $PATH 2613do 2614 IFS=$as_save_IFS 2615 test -z "$as_dir" && as_dir=. 2616 for ac_exec_ext in '' $ac_executable_extensions; do 2617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2618 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2620 break 2 2621 fi 2622done 2623 done 2624IFS=$as_save_IFS 2625 2626fi 2627fi 2628STRIP=$ac_cv_prog_STRIP 2629if test -n "$STRIP"; then 2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2631$as_echo "$STRIP" >&6; } 2632else 2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2634$as_echo "no" >&6; } 2635fi 2636 2637 2638fi 2639if test -z "$ac_cv_prog_STRIP"; then 2640 ac_ct_STRIP=$STRIP 2641 # Extract the first word of "strip", so it can be a program name with args. 2642set dummy strip; ac_word=$2 2643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2644$as_echo_n "checking for $ac_word... " >&6; } 2645if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2646 $as_echo_n "(cached) " >&6 2647else 2648 if test -n "$ac_ct_STRIP"; then 2649 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2650else 2651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2652for as_dir in $PATH 2653do 2654 IFS=$as_save_IFS 2655 test -z "$as_dir" && as_dir=. 2656 for ac_exec_ext in '' $ac_executable_extensions; do 2657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2658 ac_cv_prog_ac_ct_STRIP="strip" 2659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2660 break 2 2661 fi 2662done 2663 done 2664IFS=$as_save_IFS 2665 2666fi 2667fi 2668ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2669if test -n "$ac_ct_STRIP"; then 2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2671$as_echo "$ac_ct_STRIP" >&6; } 2672else 2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2674$as_echo "no" >&6; } 2675fi 2676 2677 if test "x$ac_ct_STRIP" = x; then 2678 STRIP=":" 2679 else 2680 case $cross_compiling:$ac_tool_warned in 2681yes:) 2682{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2683$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2684ac_tool_warned=yes ;; 2685esac 2686 STRIP=$ac_ct_STRIP 2687 fi 2688else 2689 STRIP="$ac_cv_prog_STRIP" 2690fi 2691 2692fi 2693INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2694 2695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2696$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2697if test -z "$MKDIR_P"; then 2698 if ${ac_cv_path_mkdir+:} false; then : 2699 $as_echo_n "(cached) " >&6 2700else 2701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2702for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2703do 2704 IFS=$as_save_IFS 2705 test -z "$as_dir" && as_dir=. 2706 for ac_prog in mkdir gmkdir; do 2707 for ac_exec_ext in '' $ac_executable_extensions; do 2708 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2709 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2710 'mkdir (GNU coreutils) '* | \ 2711 'mkdir (coreutils) '* | \ 2712 'mkdir (fileutils) '4.1*) 2713 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2714 break 3;; 2715 esac 2716 done 2717 done 2718 done 2719IFS=$as_save_IFS 2720 2721fi 2722 2723 test -d ./--version && rmdir ./--version 2724 if test "${ac_cv_path_mkdir+set}" = set; then 2725 MKDIR_P="$ac_cv_path_mkdir -p" 2726 else 2727 # As a last resort, use the slow shell script. Don't cache a 2728 # value for MKDIR_P within a source directory, because that will 2729 # break other packages using the cache if that directory is 2730 # removed, or if the value is a relative name. 2731 MKDIR_P="$ac_install_sh -d" 2732 fi 2733fi 2734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2735$as_echo "$MKDIR_P" >&6; } 2736 2737for ac_prog in gawk mawk nawk awk 2738do 2739 # Extract the first word of "$ac_prog", so it can be a program name with args. 2740set dummy $ac_prog; ac_word=$2 2741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2742$as_echo_n "checking for $ac_word... " >&6; } 2743if ${ac_cv_prog_AWK+:} false; then : 2744 $as_echo_n "(cached) " >&6 2745else 2746 if test -n "$AWK"; then 2747 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2748else 2749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2750for as_dir in $PATH 2751do 2752 IFS=$as_save_IFS 2753 test -z "$as_dir" && as_dir=. 2754 for ac_exec_ext in '' $ac_executable_extensions; do 2755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2756 ac_cv_prog_AWK="$ac_prog" 2757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2758 break 2 2759 fi 2760done 2761 done 2762IFS=$as_save_IFS 2763 2764fi 2765fi 2766AWK=$ac_cv_prog_AWK 2767if test -n "$AWK"; then 2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2769$as_echo "$AWK" >&6; } 2770else 2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2772$as_echo "no" >&6; } 2773fi 2774 2775 2776 test -n "$AWK" && break 2777done 2778 2779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2780$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2781set x ${MAKE-make} 2782ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2783if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2784 $as_echo_n "(cached) " >&6 2785else 2786 cat >conftest.make <<\_ACEOF 2787SHELL = /bin/sh 2788all: 2789 @echo '@@@%%%=$(MAKE)=@@@%%%' 2790_ACEOF 2791# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2792case `${MAKE-make} -f conftest.make 2>/dev/null` in 2793 *@@@%%%=?*=@@@%%%*) 2794 eval ac_cv_prog_make_${ac_make}_set=yes;; 2795 *) 2796 eval ac_cv_prog_make_${ac_make}_set=no;; 2797esac 2798rm -f conftest.make 2799fi 2800if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2802$as_echo "yes" >&6; } 2803 SET_MAKE= 2804else 2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2806$as_echo "no" >&6; } 2807 SET_MAKE="MAKE=${MAKE-make}" 2808fi 2809 2810rm -rf .tst 2>/dev/null 2811mkdir .tst 2>/dev/null 2812if test -d .tst; then 2813 am__leading_dot=. 2814else 2815 am__leading_dot=_ 2816fi 2817rmdir .tst 2>/dev/null 2818 2819@%:@ Check whether --enable-silent-rules was given. 2820if test "${enable_silent_rules+set}" = set; then : 2821 enableval=$enable_silent_rules; 2822fi 2823 2824case $enable_silent_rules in @%:@ ((( 2825 yes) AM_DEFAULT_VERBOSITY=0;; 2826 no) AM_DEFAULT_VERBOSITY=1;; 2827 *) AM_DEFAULT_VERBOSITY=1;; 2828esac 2829am_make=${MAKE-make} 2830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2831$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2832if ${am_cv_make_support_nested_variables+:} false; then : 2833 $as_echo_n "(cached) " >&6 2834else 2835 if $as_echo 'TRUE=$(BAR$(V)) 2836BAR0=false 2837BAR1=true 2838V=1 2839am__doit: 2840 @$(TRUE) 2841.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2842 am_cv_make_support_nested_variables=yes 2843else 2844 am_cv_make_support_nested_variables=no 2845fi 2846fi 2847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2848$as_echo "$am_cv_make_support_nested_variables" >&6; } 2849if test $am_cv_make_support_nested_variables = yes; then 2850 AM_V='$(V)' 2851 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2852else 2853 AM_V=$AM_DEFAULT_VERBOSITY 2854 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2855fi 2856AM_BACKSLASH='\' 2857 2858if test "`cd $srcdir && pwd`" != "`pwd`"; then 2859 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2860 # is not polluted with repeated "-I." 2861 am__isrc=' -I$(srcdir)' 2862 # test to see if srcdir already configured 2863 if test -f $srcdir/config.status; then 2864 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2865 fi 2866fi 2867 2868# test whether we have cygpath 2869if test -z "$CYGPATH_W"; then 2870 if (cygpath --version) >/dev/null 2>/dev/null; then 2871 CYGPATH_W='cygpath -w' 2872 else 2873 CYGPATH_W=echo 2874 fi 2875fi 2876 2877 2878# Define the identity of the package. 2879 PACKAGE='libconcord' 2880 VERSION='1.2' 2881 2882 2883cat >>confdefs.h <<_ACEOF 2884@%:@define PACKAGE "$PACKAGE" 2885_ACEOF 2886 2887 2888cat >>confdefs.h <<_ACEOF 2889@%:@define VERSION "$VERSION" 2890_ACEOF 2891 2892# Some tools Automake needs. 2893 2894ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2895 2896 2897AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2898 2899 2900AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2901 2902 2903AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2904 2905 2906MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2907 2908# For better backward compatibility. To be removed once Automake 1.9.x 2909# dies out for good. For more background, see: 2910# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2911# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2912mkdir_p='$(MKDIR_P)' 2913 2914# We need awk for the "check" target. The system "awk" is bad on 2915# some platforms. 2916# Always define AMTAR for backward compatibility. Yes, it's still used 2917# in the wild :-( We should find a proper way to deprecate it ... 2918AMTAR='$${TAR-tar}' 2919 2920 2921# We'll loop over all known methods to create a tar archive until one works. 2922_am_tools='gnutar pax cpio none' 2923 2924am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2925 2926 2927 2928 2929 2930 2931# POSIX will say in a future version that running "rm -f" with no argument 2932# is OK; and we want to be able to make that assumption in our Makefile 2933# recipes. So use an aggressive probe to check that the usage we want is 2934# actually supported "in the wild" to an acceptable degree. 2935# See automake bug#10828. 2936# To make any issue more visible, cause the running configure to be aborted 2937# by default if the 'rm' program in use doesn't match our expectations; the 2938# user can still override this though. 2939if rm -f && rm -fr && rm -rf; then : OK; else 2940 cat >&2 <<'END' 2941Oops! 2942 2943Your 'rm' program seems unable to run without file operands specified 2944on the command line, even when the '-f' option is present. This is contrary 2945to the behaviour of most rm programs out there, and not conforming with 2946the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2947 2948Please tell bug-automake@gnu.org about your system, including the value 2949of your $PATH and any error possibly output before this message. This 2950can help us improve future automake versions. 2951 2952END 2953 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2954 echo 'Configuration will proceed anyway, since you have set the' >&2 2955 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2956 echo >&2 2957 else 2958 cat >&2 <<'END' 2959Aborting the configuration process, to ensure you take notice of the issue. 2960 2961You can download and install GNU coreutils to get an 'rm' implementation 2962that behaves properly: <http://www.gnu.org/software/coreutils/>. 2963 2964If you want to complete the configuration process using your problematic 2965'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2966to "yes", and re-run configure. 2967 2968END 2969 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2970 fi 2971fi 2972 2973 2974DEPDIR="${am__leading_dot}deps" 2975 2976ac_config_commands="$ac_config_commands depfiles" 2977 2978 2979am_make=${MAKE-make} 2980cat > confinc << 'END' 2981am__doit: 2982 @echo this is the am__doit target 2983.PHONY: am__doit 2984END 2985# If we don't find an include directive, just comment out the code. 2986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2987$as_echo_n "checking for style of include used by $am_make... " >&6; } 2988am__include="#" 2989am__quote= 2990_am_result=none 2991# First try GNU make style include. 2992echo "include confinc" > confmf 2993# Ignore all kinds of additional output from 'make'. 2994case `$am_make -s -f confmf 2> /dev/null` in #( 2995*the\ am__doit\ target*) 2996 am__include=include 2997 am__quote= 2998 _am_result=GNU 2999 ;; 3000esac 3001# Now try BSD make style include. 3002if test "$am__include" = "#"; then 3003 echo '.include "confinc"' > confmf 3004 case `$am_make -s -f confmf 2> /dev/null` in #( 3005 *the\ am__doit\ target*) 3006 am__include=.include 3007 am__quote="\"" 3008 _am_result=BSD 3009 ;; 3010 esac 3011fi 3012 3013 3014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3015$as_echo "$_am_result" >&6; } 3016rm -f confinc confmf 3017 3018@%:@ Check whether --enable-dependency-tracking was given. 3019if test "${enable_dependency_tracking+set}" = set; then : 3020 enableval=$enable_dependency_tracking; 3021fi 3022 3023if test "x$enable_dependency_tracking" != xno; then 3024 am_depcomp="$ac_aux_dir/depcomp" 3025 AMDEPBACKSLASH='\' 3026 am__nodep='_no' 3027fi 3028 if test "x$enable_dependency_tracking" != xno; then 3029 AMDEP_TRUE= 3030 AMDEP_FALSE='#' 3031else 3032 AMDEP_TRUE='#' 3033 AMDEP_FALSE= 3034fi 3035 3036 3037ac_ext=c 3038ac_cpp='$CPP $CPPFLAGS' 3039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3041ac_compiler_gnu=$ac_cv_c_compiler_gnu 3042if test -n "$ac_tool_prefix"; then 3043 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3044set dummy ${ac_tool_prefix}gcc; ac_word=$2 3045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3046$as_echo_n "checking for $ac_word... " >&6; } 3047if ${ac_cv_prog_CC+:} false; then : 3048 $as_echo_n "(cached) " >&6 3049else 3050 if test -n "$CC"; then 3051 ac_cv_prog_CC="$CC" # Let the user override the test. 3052else 3053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3054for as_dir in $PATH 3055do 3056 IFS=$as_save_IFS 3057 test -z "$as_dir" && as_dir=. 3058 for ac_exec_ext in '' $ac_executable_extensions; do 3059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3060 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3062 break 2 3063 fi 3064done 3065 done 3066IFS=$as_save_IFS 3067 3068fi 3069fi 3070CC=$ac_cv_prog_CC 3071if test -n "$CC"; then 3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3073$as_echo "$CC" >&6; } 3074else 3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3076$as_echo "no" >&6; } 3077fi 3078 3079 3080fi 3081if test -z "$ac_cv_prog_CC"; then 3082 ac_ct_CC=$CC 3083 # Extract the first word of "gcc", so it can be a program name with args. 3084set dummy gcc; ac_word=$2 3085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3086$as_echo_n "checking for $ac_word... " >&6; } 3087if ${ac_cv_prog_ac_ct_CC+:} false; then : 3088 $as_echo_n "(cached) " >&6 3089else 3090 if test -n "$ac_ct_CC"; then 3091 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3092else 3093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3094for as_dir in $PATH 3095do 3096 IFS=$as_save_IFS 3097 test -z "$as_dir" && as_dir=. 3098 for ac_exec_ext in '' $ac_executable_extensions; do 3099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3100 ac_cv_prog_ac_ct_CC="gcc" 3101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3102 break 2 3103 fi 3104done 3105 done 3106IFS=$as_save_IFS 3107 3108fi 3109fi 3110ac_ct_CC=$ac_cv_prog_ac_ct_CC 3111if test -n "$ac_ct_CC"; then 3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3113$as_echo "$ac_ct_CC" >&6; } 3114else 3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3116$as_echo "no" >&6; } 3117fi 3118 3119 if test "x$ac_ct_CC" = x; then 3120 CC="" 3121 else 3122 case $cross_compiling:$ac_tool_warned in 3123yes:) 3124{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3125$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3126ac_tool_warned=yes ;; 3127esac 3128 CC=$ac_ct_CC 3129 fi 3130else 3131 CC="$ac_cv_prog_CC" 3132fi 3133 3134if test -z "$CC"; then 3135 if test -n "$ac_tool_prefix"; then 3136 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3137set dummy ${ac_tool_prefix}cc; ac_word=$2 3138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3139$as_echo_n "checking for $ac_word... " >&6; } 3140if ${ac_cv_prog_CC+:} false; then : 3141 $as_echo_n "(cached) " >&6 3142else 3143 if test -n "$CC"; then 3144 ac_cv_prog_CC="$CC" # Let the user override the test. 3145else 3146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3147for as_dir in $PATH 3148do 3149 IFS=$as_save_IFS 3150 test -z "$as_dir" && as_dir=. 3151 for ac_exec_ext in '' $ac_executable_extensions; do 3152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3153 ac_cv_prog_CC="${ac_tool_prefix}cc" 3154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3155 break 2 3156 fi 3157done 3158 done 3159IFS=$as_save_IFS 3160 3161fi 3162fi 3163CC=$ac_cv_prog_CC 3164if test -n "$CC"; then 3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3166$as_echo "$CC" >&6; } 3167else 3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3169$as_echo "no" >&6; } 3170fi 3171 3172 3173 fi 3174fi 3175if test -z "$CC"; then 3176 # Extract the first word of "cc", so it can be a program name with args. 3177set dummy cc; ac_word=$2 3178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3179$as_echo_n "checking for $ac_word... " >&6; } 3180if ${ac_cv_prog_CC+:} false; then : 3181 $as_echo_n "(cached) " >&6 3182else 3183 if test -n "$CC"; then 3184 ac_cv_prog_CC="$CC" # Let the user override the test. 3185else 3186 ac_prog_rejected=no 3187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3188for as_dir in $PATH 3189do 3190 IFS=$as_save_IFS 3191 test -z "$as_dir" && as_dir=. 3192 for ac_exec_ext in '' $ac_executable_extensions; do 3193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3194 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3195 ac_prog_rejected=yes 3196 continue 3197 fi 3198 ac_cv_prog_CC="cc" 3199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3200 break 2 3201 fi 3202done 3203 done 3204IFS=$as_save_IFS 3205 3206if test $ac_prog_rejected = yes; then 3207 # We found a bogon in the path, so make sure we never use it. 3208 set dummy $ac_cv_prog_CC 3209 shift 3210 if test $@%:@ != 0; then 3211 # We chose a different compiler from the bogus one. 3212 # However, it has the same basename, so the bogon will be chosen 3213 # first if we set CC to just the basename; use the full file name. 3214 shift 3215 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3216 fi 3217fi 3218fi 3219fi 3220CC=$ac_cv_prog_CC 3221if test -n "$CC"; then 3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3223$as_echo "$CC" >&6; } 3224else 3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3226$as_echo "no" >&6; } 3227fi 3228 3229 3230fi 3231if test -z "$CC"; then 3232 if test -n "$ac_tool_prefix"; then 3233 for ac_prog in cl.exe 3234 do 3235 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3236set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3238$as_echo_n "checking for $ac_word... " >&6; } 3239if ${ac_cv_prog_CC+:} false; then : 3240 $as_echo_n "(cached) " >&6 3241else 3242 if test -n "$CC"; then 3243 ac_cv_prog_CC="$CC" # Let the user override the test. 3244else 3245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3246for as_dir in $PATH 3247do 3248 IFS=$as_save_IFS 3249 test -z "$as_dir" && as_dir=. 3250 for ac_exec_ext in '' $ac_executable_extensions; do 3251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3252 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3254 break 2 3255 fi 3256done 3257 done 3258IFS=$as_save_IFS 3259 3260fi 3261fi 3262CC=$ac_cv_prog_CC 3263if test -n "$CC"; then 3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3265$as_echo "$CC" >&6; } 3266else 3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3268$as_echo "no" >&6; } 3269fi 3270 3271 3272 test -n "$CC" && break 3273 done 3274fi 3275if test -z "$CC"; then 3276 ac_ct_CC=$CC 3277 for ac_prog in cl.exe 3278do 3279 # Extract the first word of "$ac_prog", so it can be a program name with args. 3280set dummy $ac_prog; ac_word=$2 3281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3282$as_echo_n "checking for $ac_word... " >&6; } 3283if ${ac_cv_prog_ac_ct_CC+:} false; then : 3284 $as_echo_n "(cached) " >&6 3285else 3286 if test -n "$ac_ct_CC"; then 3287 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3288else 3289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3290for as_dir in $PATH 3291do 3292 IFS=$as_save_IFS 3293 test -z "$as_dir" && as_dir=. 3294 for ac_exec_ext in '' $ac_executable_extensions; do 3295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3296 ac_cv_prog_ac_ct_CC="$ac_prog" 3297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3298 break 2 3299 fi 3300done 3301 done 3302IFS=$as_save_IFS 3303 3304fi 3305fi 3306ac_ct_CC=$ac_cv_prog_ac_ct_CC 3307if test -n "$ac_ct_CC"; then 3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3309$as_echo "$ac_ct_CC" >&6; } 3310else 3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3312$as_echo "no" >&6; } 3313fi 3314 3315 3316 test -n "$ac_ct_CC" && break 3317done 3318 3319 if test "x$ac_ct_CC" = x; then 3320 CC="" 3321 else 3322 case $cross_compiling:$ac_tool_warned in 3323yes:) 3324{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3325$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3326ac_tool_warned=yes ;; 3327esac 3328 CC=$ac_ct_CC 3329 fi 3330fi 3331 3332fi 3333 3334 3335test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3336$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3337as_fn_error $? "no acceptable C compiler found in \$PATH 3338See \`config.log' for more details" "$LINENO" 5; } 3339 3340# Provide some information about the compiler. 3341$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3342set X $ac_compile 3343ac_compiler=$2 3344for ac_option in --version -v -V -qversion; do 3345 { { ac_try="$ac_compiler $ac_option >&5" 3346case "(($ac_try" in 3347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3348 *) ac_try_echo=$ac_try;; 3349esac 3350eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3351$as_echo "$ac_try_echo"; } >&5 3352 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3353 ac_status=$? 3354 if test -s conftest.err; then 3355 sed '10a\ 3356... rest of stderr output deleted ... 3357 10q' conftest.err >conftest.er1 3358 cat conftest.er1 >&5 3359 fi 3360 rm -f conftest.er1 conftest.err 3361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3362 test $ac_status = 0; } 3363done 3364 3365cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3366/* end confdefs.h. */ 3367 3368int 3369main () 3370{ 3371 3372 ; 3373 return 0; 3374} 3375_ACEOF 3376ac_clean_files_save=$ac_clean_files 3377ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3378# Try to create an executable without -o first, disregard a.out. 3379# It will help us diagnose broken compilers, and finding out an intuition 3380# of exeext. 3381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3382$as_echo_n "checking whether the C compiler works... " >&6; } 3383ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3384 3385# The possible output files: 3386ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3387 3388ac_rmfiles= 3389for ac_file in $ac_files 3390do 3391 case $ac_file in 3392 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3393 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3394 esac 3395done 3396rm -f $ac_rmfiles 3397 3398if { { ac_try="$ac_link_default" 3399case "(($ac_try" in 3400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3401 *) ac_try_echo=$ac_try;; 3402esac 3403eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3404$as_echo "$ac_try_echo"; } >&5 3405 (eval "$ac_link_default") 2>&5 3406 ac_status=$? 3407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3408 test $ac_status = 0; }; then : 3409 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3410# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3411# in a Makefile. We should not override ac_cv_exeext if it was cached, 3412# so that the user can short-circuit this test for compilers unknown to 3413# Autoconf. 3414for ac_file in $ac_files '' 3415do 3416 test -f "$ac_file" || continue 3417 case $ac_file in 3418 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3419 ;; 3420 [ab].out ) 3421 # We found the default executable, but exeext='' is most 3422 # certainly right. 3423 break;; 3424 *.* ) 3425 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3426 then :; else 3427 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3428 fi 3429 # We set ac_cv_exeext here because the later test for it is not 3430 # safe: cross compilers may not add the suffix if given an `-o' 3431 # argument, so we may need to know it at that point already. 3432 # Even if this section looks crufty: it has the advantage of 3433 # actually working. 3434 break;; 3435 * ) 3436 break;; 3437 esac 3438done 3439test "$ac_cv_exeext" = no && ac_cv_exeext= 3440 3441else 3442 ac_file='' 3443fi 3444if test -z "$ac_file"; then : 3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3446$as_echo "no" >&6; } 3447$as_echo "$as_me: failed program was:" >&5 3448sed 's/^/| /' conftest.$ac_ext >&5 3449 3450{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3451$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3452as_fn_error 77 "C compiler cannot create executables 3453See \`config.log' for more details" "$LINENO" 5; } 3454else 3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3456$as_echo "yes" >&6; } 3457fi 3458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3459$as_echo_n "checking for C compiler default output file name... " >&6; } 3460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3461$as_echo "$ac_file" >&6; } 3462ac_exeext=$ac_cv_exeext 3463 3464rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3465ac_clean_files=$ac_clean_files_save 3466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3467$as_echo_n "checking for suffix of executables... " >&6; } 3468if { { ac_try="$ac_link" 3469case "(($ac_try" in 3470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3471 *) ac_try_echo=$ac_try;; 3472esac 3473eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3474$as_echo "$ac_try_echo"; } >&5 3475 (eval "$ac_link") 2>&5 3476 ac_status=$? 3477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3478 test $ac_status = 0; }; then : 3479 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3480# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3481# work properly (i.e., refer to `conftest.exe'), while it won't with 3482# `rm'. 3483for ac_file in conftest.exe conftest conftest.*; do 3484 test -f "$ac_file" || continue 3485 case $ac_file in 3486 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3487 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3488 break;; 3489 * ) break;; 3490 esac 3491done 3492else 3493 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3494$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3495as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3496See \`config.log' for more details" "$LINENO" 5; } 3497fi 3498rm -f conftest conftest$ac_cv_exeext 3499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3500$as_echo "$ac_cv_exeext" >&6; } 3501 3502rm -f conftest.$ac_ext 3503EXEEXT=$ac_cv_exeext 3504ac_exeext=$EXEEXT 3505cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3506/* end confdefs.h. */ 3507@%:@include <stdio.h> 3508int 3509main () 3510{ 3511FILE *f = fopen ("conftest.out", "w"); 3512 return ferror (f) || fclose (f) != 0; 3513 3514 ; 3515 return 0; 3516} 3517_ACEOF 3518ac_clean_files="$ac_clean_files conftest.out" 3519# Check that the compiler produces executables we can run. If not, either 3520# the compiler is broken, or we cross compile. 3521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3522$as_echo_n "checking whether we are cross compiling... " >&6; } 3523if test "$cross_compiling" != yes; then 3524 { { ac_try="$ac_link" 3525case "(($ac_try" in 3526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3527 *) ac_try_echo=$ac_try;; 3528esac 3529eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3530$as_echo "$ac_try_echo"; } >&5 3531 (eval "$ac_link") 2>&5 3532 ac_status=$? 3533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3534 test $ac_status = 0; } 3535 if { ac_try='./conftest$ac_cv_exeext' 3536 { { case "(($ac_try" in 3537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3538 *) ac_try_echo=$ac_try;; 3539esac 3540eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3541$as_echo "$ac_try_echo"; } >&5 3542 (eval "$ac_try") 2>&5 3543 ac_status=$? 3544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3545 test $ac_status = 0; }; }; then 3546 cross_compiling=no 3547 else 3548 if test "$cross_compiling" = maybe; then 3549 cross_compiling=yes 3550 else 3551 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3552$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3553as_fn_error $? "cannot run C compiled programs. 3554If you meant to cross compile, use \`--host'. 3555See \`config.log' for more details" "$LINENO" 5; } 3556 fi 3557 fi 3558fi 3559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3560$as_echo "$cross_compiling" >&6; } 3561 3562rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3563ac_clean_files=$ac_clean_files_save 3564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3565$as_echo_n "checking for suffix of object files... " >&6; } 3566if ${ac_cv_objext+:} false; then : 3567 $as_echo_n "(cached) " >&6 3568else 3569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3570/* end confdefs.h. */ 3571 3572int 3573main () 3574{ 3575 3576 ; 3577 return 0; 3578} 3579_ACEOF 3580rm -f conftest.o conftest.obj 3581if { { ac_try="$ac_compile" 3582case "(($ac_try" in 3583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3584 *) ac_try_echo=$ac_try;; 3585esac 3586eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3587$as_echo "$ac_try_echo"; } >&5 3588 (eval "$ac_compile") 2>&5 3589 ac_status=$? 3590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3591 test $ac_status = 0; }; then : 3592 for ac_file in conftest.o conftest.obj conftest.*; do 3593 test -f "$ac_file" || continue; 3594 case $ac_file in 3595 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3596 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3597 break;; 3598 esac 3599done 3600else 3601 $as_echo "$as_me: failed program was:" >&5 3602sed 's/^/| /' conftest.$ac_ext >&5 3603 3604{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3605$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3606as_fn_error $? "cannot compute suffix of object files: cannot compile 3607See \`config.log' for more details" "$LINENO" 5; } 3608fi 3609rm -f conftest.$ac_cv_objext conftest.$ac_ext 3610fi 3611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3612$as_echo "$ac_cv_objext" >&6; } 3613OBJEXT=$ac_cv_objext 3614ac_objext=$OBJEXT 3615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3616$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3617if ${ac_cv_c_compiler_gnu+:} false; then : 3618 $as_echo_n "(cached) " >&6 3619else 3620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3621/* end confdefs.h. */ 3622 3623int 3624main () 3625{ 3626#ifndef __GNUC__ 3627 choke me 3628#endif 3629 3630 ; 3631 return 0; 3632} 3633_ACEOF 3634if ac_fn_c_try_compile "$LINENO"; then : 3635 ac_compiler_gnu=yes 3636else 3637 ac_compiler_gnu=no 3638fi 3639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3640ac_cv_c_compiler_gnu=$ac_compiler_gnu 3641 3642fi 3643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3644$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3645if test $ac_compiler_gnu = yes; then 3646 GCC=yes 3647else 3648 GCC= 3649fi 3650ac_test_CFLAGS=${CFLAGS+set} 3651ac_save_CFLAGS=$CFLAGS 3652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3653$as_echo_n "checking whether $CC accepts -g... " >&6; } 3654if ${ac_cv_prog_cc_g+:} false; then : 3655 $as_echo_n "(cached) " >&6 3656else 3657 ac_save_c_werror_flag=$ac_c_werror_flag 3658 ac_c_werror_flag=yes 3659 ac_cv_prog_cc_g=no 3660 CFLAGS="-g" 3661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3662/* end confdefs.h. */ 3663 3664int 3665main () 3666{ 3667 3668 ; 3669 return 0; 3670} 3671_ACEOF 3672if ac_fn_c_try_compile "$LINENO"; then : 3673 ac_cv_prog_cc_g=yes 3674else 3675 CFLAGS="" 3676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3677/* end confdefs.h. */ 3678 3679int 3680main () 3681{ 3682 3683 ; 3684 return 0; 3685} 3686_ACEOF 3687if ac_fn_c_try_compile "$LINENO"; then : 3688 3689else 3690 ac_c_werror_flag=$ac_save_c_werror_flag 3691 CFLAGS="-g" 3692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3693/* end confdefs.h. */ 3694 3695int 3696main () 3697{ 3698 3699 ; 3700 return 0; 3701} 3702_ACEOF 3703if ac_fn_c_try_compile "$LINENO"; then : 3704 ac_cv_prog_cc_g=yes 3705fi 3706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3707fi 3708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3709fi 3710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3711 ac_c_werror_flag=$ac_save_c_werror_flag 3712fi 3713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3714$as_echo "$ac_cv_prog_cc_g" >&6; } 3715if test "$ac_test_CFLAGS" = set; then 3716 CFLAGS=$ac_save_CFLAGS 3717elif test $ac_cv_prog_cc_g = yes; then 3718 if test "$GCC" = yes; then 3719 CFLAGS="-g -O2" 3720 else 3721 CFLAGS="-g" 3722 fi 3723else 3724 if test "$GCC" = yes; then 3725 CFLAGS="-O2" 3726 else 3727 CFLAGS= 3728 fi 3729fi 3730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3731$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3732if ${ac_cv_prog_cc_c89+:} false; then : 3733 $as_echo_n "(cached) " >&6 3734else 3735 ac_cv_prog_cc_c89=no 3736ac_save_CC=$CC 3737cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3738/* end confdefs.h. */ 3739#include <stdarg.h> 3740#include <stdio.h> 3741struct stat; 3742/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3743struct buf { int x; }; 3744FILE * (*rcsopen) (struct buf *, struct stat *, int); 3745static char *e (p, i) 3746 char **p; 3747 int i; 3748{ 3749 return p[i]; 3750} 3751static char *f (char * (*g) (char **, int), char **p, ...) 3752{ 3753 char *s; 3754 va_list v; 3755 va_start (v,p); 3756 s = g (p, va_arg (v,int)); 3757 va_end (v); 3758 return s; 3759} 3760 3761/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3762 function prototypes and stuff, but not '\xHH' hex character constants. 3763 These don't provoke an error unfortunately, instead are silently treated 3764 as 'x'. The following induces an error, until -std is added to get 3765 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3766 array size at least. It's necessary to write '\x00'==0 to get something 3767 that's true only with -std. */ 3768int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3769 3770/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3771 inside strings and character constants. */ 3772#define FOO(x) 'x' 3773int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3774 3775int test (int i, double x); 3776struct s1 {int (*f) (int a);}; 3777struct s2 {int (*f) (double a);}; 3778int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3779int argc; 3780char **argv; 3781int 3782main () 3783{ 3784return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3785 ; 3786 return 0; 3787} 3788_ACEOF 3789for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3790 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3791do 3792 CC="$ac_save_CC $ac_arg" 3793 if ac_fn_c_try_compile "$LINENO"; then : 3794 ac_cv_prog_cc_c89=$ac_arg 3795fi 3796rm -f core conftest.err conftest.$ac_objext 3797 test "x$ac_cv_prog_cc_c89" != "xno" && break 3798done 3799rm -f conftest.$ac_ext 3800CC=$ac_save_CC 3801 3802fi 3803# AC_CACHE_VAL 3804case "x$ac_cv_prog_cc_c89" in 3805 x) 3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3807$as_echo "none needed" >&6; } ;; 3808 xno) 3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3810$as_echo "unsupported" >&6; } ;; 3811 *) 3812 CC="$CC $ac_cv_prog_cc_c89" 3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3814$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3815esac 3816if test "x$ac_cv_prog_cc_c89" != xno; then : 3817 3818fi 3819 3820ac_ext=c 3821ac_cpp='$CPP $CPPFLAGS' 3822ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3823ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3824ac_compiler_gnu=$ac_cv_c_compiler_gnu 3825 3826ac_ext=c 3827ac_cpp='$CPP $CPPFLAGS' 3828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3830ac_compiler_gnu=$ac_cv_c_compiler_gnu 3831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3832$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3833if ${am_cv_prog_cc_c_o+:} false; then : 3834 $as_echo_n "(cached) " >&6 3835else 3836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3837/* end confdefs.h. */ 3838 3839int 3840main () 3841{ 3842 3843 ; 3844 return 0; 3845} 3846_ACEOF 3847 # Make sure it works both with $CC and with simple cc. 3848 # Following AC_PROG_CC_C_O, we do the test twice because some 3849 # compilers refuse to overwrite an existing .o file with -o, 3850 # though they will create one. 3851 am_cv_prog_cc_c_o=yes 3852 for am_i in 1 2; do 3853 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3854 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3855 ac_status=$? 3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3857 (exit $ac_status); } \ 3858 && test -f conftest2.$ac_objext; then 3859 : OK 3860 else 3861 am_cv_prog_cc_c_o=no 3862 break 3863 fi 3864 done 3865 rm -f core conftest* 3866 unset am_i 3867fi 3868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3869$as_echo "$am_cv_prog_cc_c_o" >&6; } 3870if test "$am_cv_prog_cc_c_o" != yes; then 3871 # Losing compiler, so override with the script. 3872 # FIXME: It is wrong to rewrite CC. 3873 # But if we don't then we get into trouble of one sort or another. 3874 # A longer-term fix would be to have automake use am__CC in this case, 3875 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3876 CC="$am_aux_dir/compile $CC" 3877fi 3878ac_ext=c 3879ac_cpp='$CPP $CPPFLAGS' 3880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3882ac_compiler_gnu=$ac_cv_c_compiler_gnu 3883 3884 3885depcc="$CC" am_compiler_list= 3886 3887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3888$as_echo_n "checking dependency style of $depcc... " >&6; } 3889if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3890 $as_echo_n "(cached) " >&6 3891else 3892 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3893 # We make a subdir and do the tests there. Otherwise we can end up 3894 # making bogus files that we don't know about and never remove. For 3895 # instance it was reported that on HP-UX the gcc test will end up 3896 # making a dummy file named 'D' -- because '-MD' means "put the output 3897 # in D". 3898 rm -rf conftest.dir 3899 mkdir conftest.dir 3900 # Copy depcomp to subdir because otherwise we won't find it if we're 3901 # using a relative directory. 3902 cp "$am_depcomp" conftest.dir 3903 cd conftest.dir 3904 # We will build objects and dependencies in a subdirectory because 3905 # it helps to detect inapplicable dependency modes. For instance 3906 # both Tru64's cc and ICC support -MD to output dependencies as a 3907 # side effect of compilation, but ICC will put the dependencies in 3908 # the current directory while Tru64 will put them in the object 3909 # directory. 3910 mkdir sub 3911 3912 am_cv_CC_dependencies_compiler_type=none 3913 if test "$am_compiler_list" = ""; then 3914 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3915 fi 3916 am__universal=false 3917 case " $depcc " in #( 3918 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3919 esac 3920 3921 for depmode in $am_compiler_list; do 3922 # Setup a source with many dependencies, because some compilers 3923 # like to wrap large dependency lists on column 80 (with \), and 3924 # we should not choose a depcomp mode which is confused by this. 3925 # 3926 # We need to recreate these files for each test, as the compiler may 3927 # overwrite some of them when testing with obscure command lines. 3928 # This happens at least with the AIX C compiler. 3929 : > sub/conftest.c 3930 for i in 1 2 3 4 5 6; do 3931 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3932 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3933 # Solaris 10 /bin/sh. 3934 echo '/* dummy */' > sub/conftst$i.h 3935 done 3936 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3937 3938 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3939 # mode. It turns out that the SunPro C++ compiler does not properly 3940 # handle '-M -o', and we need to detect this. Also, some Intel 3941 # versions had trouble with output in subdirs. 3942 am__obj=sub/conftest.${OBJEXT-o} 3943 am__minus_obj="-o $am__obj" 3944 case $depmode in 3945 gcc) 3946 # This depmode causes a compiler race in universal mode. 3947 test "$am__universal" = false || continue 3948 ;; 3949 nosideeffect) 3950 # After this tag, mechanisms are not by side-effect, so they'll 3951 # only be used when explicitly requested. 3952 if test "x$enable_dependency_tracking" = xyes; then 3953 continue 3954 else 3955 break 3956 fi 3957 ;; 3958 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3959 # This compiler won't grok '-c -o', but also, the minuso test has 3960 # not run yet. These depmodes are late enough in the game, and 3961 # so weak that their functioning should not be impacted. 3962 am__obj=conftest.${OBJEXT-o} 3963 am__minus_obj= 3964 ;; 3965 none) break ;; 3966 esac 3967 if depmode=$depmode \ 3968 source=sub/conftest.c object=$am__obj \ 3969 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3970 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3971 >/dev/null 2>conftest.err && 3972 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3973 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3974 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3975 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3976 # icc doesn't choke on unknown options, it will just issue warnings 3977 # or remarks (even with -Werror). So we grep stderr for any message 3978 # that says an option was ignored or not supported. 3979 # When given -MP, icc 7.0 and 7.1 complain thusly: 3980 # icc: Command line warning: ignoring option '-M'; no argument required 3981 # The diagnosis changed in icc 8.0: 3982 # icc: Command line remark: option '-MP' not supported 3983 if (grep 'ignoring option' conftest.err || 3984 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3985 am_cv_CC_dependencies_compiler_type=$depmode 3986 break 3987 fi 3988 fi 3989 done 3990 3991 cd .. 3992 rm -rf conftest.dir 3993else 3994 am_cv_CC_dependencies_compiler_type=none 3995fi 3996 3997fi 3998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3999$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4000CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4001 4002 if 4003 test "x$enable_dependency_tracking" != xno \ 4004 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4005 am__fastdepCC_TRUE= 4006 am__fastdepCC_FALSE='#' 4007else 4008 am__fastdepCC_TRUE='#' 4009 am__fastdepCC_FALSE= 4010fi 4011 4012 4013 4014if test -n "$ac_tool_prefix"; then 4015 for ac_prog in ar lib "link -lib" 4016 do 4017 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4018set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4020$as_echo_n "checking for $ac_word... " >&6; } 4021if ${ac_cv_prog_AR+:} false; then : 4022 $as_echo_n "(cached) " >&6 4023else 4024 if test -n "$AR"; then 4025 ac_cv_prog_AR="$AR" # Let the user override the test. 4026else 4027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4028for as_dir in $PATH 4029do 4030 IFS=$as_save_IFS 4031 test -z "$as_dir" && as_dir=. 4032 for ac_exec_ext in '' $ac_executable_extensions; do 4033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4034 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 4035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4036 break 2 4037 fi 4038done 4039 done 4040IFS=$as_save_IFS 4041 4042fi 4043fi 4044AR=$ac_cv_prog_AR 4045if test -n "$AR"; then 4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4047$as_echo "$AR" >&6; } 4048else 4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4050$as_echo "no" >&6; } 4051fi 4052 4053 4054 test -n "$AR" && break 4055 done 4056fi 4057if test -z "$AR"; then 4058 ac_ct_AR=$AR 4059 for ac_prog in ar lib "link -lib" 4060do 4061 # Extract the first word of "$ac_prog", so it can be a program name with args. 4062set dummy $ac_prog; ac_word=$2 4063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4064$as_echo_n "checking for $ac_word... " >&6; } 4065if ${ac_cv_prog_ac_ct_AR+:} false; then : 4066 $as_echo_n "(cached) " >&6 4067else 4068 if test -n "$ac_ct_AR"; then 4069 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4070else 4071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4072for as_dir in $PATH 4073do 4074 IFS=$as_save_IFS 4075 test -z "$as_dir" && as_dir=. 4076 for ac_exec_ext in '' $ac_executable_extensions; do 4077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4078 ac_cv_prog_ac_ct_AR="$ac_prog" 4079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4080 break 2 4081 fi 4082done 4083 done 4084IFS=$as_save_IFS 4085 4086fi 4087fi 4088ac_ct_AR=$ac_cv_prog_ac_ct_AR 4089if test -n "$ac_ct_AR"; then 4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 4091$as_echo "$ac_ct_AR" >&6; } 4092else 4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4094$as_echo "no" >&6; } 4095fi 4096 4097 4098 test -n "$ac_ct_AR" && break 4099done 4100 4101 if test "x$ac_ct_AR" = x; then 4102 AR="false" 4103 else 4104 case $cross_compiling:$ac_tool_warned in 4105yes:) 4106{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4107$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4108ac_tool_warned=yes ;; 4109esac 4110 AR=$ac_ct_AR 4111 fi 4112fi 4113 4114: ${AR=ar} 4115 4116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 4117$as_echo_n "checking the archiver ($AR) interface... " >&6; } 4118if ${am_cv_ar_interface+:} false; then : 4119 $as_echo_n "(cached) " >&6 4120else 4121 ac_ext=c 4122ac_cpp='$CPP $CPPFLAGS' 4123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4125ac_compiler_gnu=$ac_cv_c_compiler_gnu 4126 4127 am_cv_ar_interface=ar 4128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4129/* end confdefs.h. */ 4130int some_variable = 0; 4131_ACEOF 4132if ac_fn_c_try_compile "$LINENO"; then : 4133 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 4134 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 4135 (eval $am_ar_try) 2>&5 4136 ac_status=$? 4137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4138 test $ac_status = 0; } 4139 if test "$ac_status" -eq 0; then 4140 am_cv_ar_interface=ar 4141 else 4142 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 4143 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 4144 (eval $am_ar_try) 2>&5 4145 ac_status=$? 4146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4147 test $ac_status = 0; } 4148 if test "$ac_status" -eq 0; then 4149 am_cv_ar_interface=lib 4150 else 4151 am_cv_ar_interface=unknown 4152 fi 4153 fi 4154 rm -f conftest.lib libconftest.a 4155 4156fi 4157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4158 ac_ext=c 4159ac_cpp='$CPP $CPPFLAGS' 4160ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4161ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4162ac_compiler_gnu=$ac_cv_c_compiler_gnu 4163 4164fi 4165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 4166$as_echo "$am_cv_ar_interface" >&6; } 4167 4168case $am_cv_ar_interface in 4169ar) 4170 ;; 4171lib) 4172 # Microsoft lib, so override with the ar-lib wrapper script. 4173 # FIXME: It is wrong to rewrite AR. 4174 # But if we don't then we get into trouble of one sort or another. 4175 # A longer-term fix would be to have automake use am__AR in this case, 4176 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 4177 # similar. 4178 AR="$am_aux_dir/ar-lib $AR" 4179 ;; 4180unknown) 4181 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 4182 ;; 4183esac 4184 4185case `pwd` in 4186 *\ * | *\ *) 4187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4188$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4189esac 4190 4191 4192 4193macro_version='2.4.2' 4194macro_revision='1.3337' 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208ltmain="$ac_aux_dir/ltmain.sh" 4209 4210# Make sure we can run config.sub. 4211$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4212 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4213 4214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4215$as_echo_n "checking build system type... " >&6; } 4216if ${ac_cv_build+:} false; then : 4217 $as_echo_n "(cached) " >&6 4218else 4219 ac_build_alias=$build_alias 4220test "x$ac_build_alias" = x && 4221 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4222test "x$ac_build_alias" = x && 4223 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4224ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4225 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4226 4227fi 4228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4229$as_echo "$ac_cv_build" >&6; } 4230case $ac_cv_build in 4231*-*-*) ;; 4232*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4233esac 4234build=$ac_cv_build 4235ac_save_IFS=$IFS; IFS='-' 4236set x $ac_cv_build 4237shift 4238build_cpu=$1 4239build_vendor=$2 4240shift; shift 4241# Remember, the first character of IFS is used to create $*, 4242# except with old shells: 4243build_os=$* 4244IFS=$ac_save_IFS 4245case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4246 4247 4248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4249$as_echo_n "checking host system type... " >&6; } 4250if ${ac_cv_host+:} false; then : 4251 $as_echo_n "(cached) " >&6 4252else 4253 if test "x$host_alias" = x; then 4254 ac_cv_host=$ac_cv_build 4255else 4256 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4257 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4258fi 4259 4260fi 4261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4262$as_echo "$ac_cv_host" >&6; } 4263case $ac_cv_host in 4264*-*-*) ;; 4265*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4266esac 4267host=$ac_cv_host 4268ac_save_IFS=$IFS; IFS='-' 4269set x $ac_cv_host 4270shift 4271host_cpu=$1 4272host_vendor=$2 4273shift; shift 4274# Remember, the first character of IFS is used to create $*, 4275# except with old shells: 4276host_os=$* 4277IFS=$ac_save_IFS 4278case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4279 4280 4281# Backslashify metacharacters that are still active within 4282# double-quoted strings. 4283sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4284 4285# Same as above, but do not quote variable references. 4286double_quote_subst='s/\(["`\\]\)/\\\1/g' 4287 4288# Sed substitution to delay expansion of an escaped shell variable in a 4289# double_quote_subst'ed string. 4290delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4291 4292# Sed substitution to delay expansion of an escaped single quote. 4293delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4294 4295# Sed substitution to avoid accidental globbing in evaled expressions 4296no_glob_subst='s/\*/\\\*/g' 4297 4298ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4299ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4300ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4301 4302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4303$as_echo_n "checking how to print strings... " >&6; } 4304# Test print first, because it will be a builtin if present. 4305if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4306 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4307 ECHO='print -r --' 4308elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4309 ECHO='printf %s\n' 4310else 4311 # Use this function as a fallback that always works. 4312 func_fallback_echo () 4313 { 4314 eval 'cat <<_LTECHO_EOF 4315$1 4316_LTECHO_EOF' 4317 } 4318 ECHO='func_fallback_echo' 4319fi 4320 4321# func_echo_all arg... 4322# Invoke $ECHO with all args, space-separated. 4323func_echo_all () 4324{ 4325 $ECHO "" 4326} 4327 4328case "$ECHO" in 4329 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4330$as_echo "printf" >&6; } ;; 4331 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4332$as_echo "print -r" >&6; } ;; 4333 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4334$as_echo "cat" >&6; } ;; 4335esac 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4351$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4352if ${ac_cv_path_SED+:} false; then : 4353 $as_echo_n "(cached) " >&6 4354else 4355 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4356 for ac_i in 1 2 3 4 5 6 7; do 4357 ac_script="$ac_script$as_nl$ac_script" 4358 done 4359 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4360 { ac_script=; unset ac_script;} 4361 if test -z "$SED"; then 4362 ac_path_SED_found=false 4363 # Loop through the user's path and test for each of PROGNAME-LIST 4364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4365for as_dir in $PATH 4366do 4367 IFS=$as_save_IFS 4368 test -z "$as_dir" && as_dir=. 4369 for ac_prog in sed gsed; do 4370 for ac_exec_ext in '' $ac_executable_extensions; do 4371 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4372 as_fn_executable_p "$ac_path_SED" || continue 4373# Check for GNU ac_path_SED and select it if it is found. 4374 # Check for GNU $ac_path_SED 4375case `"$ac_path_SED" --version 2>&1` in 4376*GNU*) 4377 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4378*) 4379 ac_count=0 4380 $as_echo_n 0123456789 >"conftest.in" 4381 while : 4382 do 4383 cat "conftest.in" "conftest.in" >"conftest.tmp" 4384 mv "conftest.tmp" "conftest.in" 4385 cp "conftest.in" "conftest.nl" 4386 $as_echo '' >> "conftest.nl" 4387 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4388 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4389 as_fn_arith $ac_count + 1 && ac_count=$as_val 4390 if test $ac_count -gt ${ac_path_SED_max-0}; then 4391 # Best one so far, save it but keep looking for a better one 4392 ac_cv_path_SED="$ac_path_SED" 4393 ac_path_SED_max=$ac_count 4394 fi 4395 # 10*(2^10) chars as input seems more than enough 4396 test $ac_count -gt 10 && break 4397 done 4398 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4399esac 4400 4401 $ac_path_SED_found && break 3 4402 done 4403 done 4404 done 4405IFS=$as_save_IFS 4406 if test -z "$ac_cv_path_SED"; then 4407 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4408 fi 4409else 4410 ac_cv_path_SED=$SED 4411fi 4412 4413fi 4414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4415$as_echo "$ac_cv_path_SED" >&6; } 4416 SED="$ac_cv_path_SED" 4417 rm -f conftest.sed 4418 4419test -z "$SED" && SED=sed 4420Xsed="$SED -e 1s/^X//" 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4433$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4434if ${ac_cv_path_GREP+:} false; then : 4435 $as_echo_n "(cached) " >&6 4436else 4437 if test -z "$GREP"; then 4438 ac_path_GREP_found=false 4439 # Loop through the user's path and test for each of PROGNAME-LIST 4440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4441for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4442do 4443 IFS=$as_save_IFS 4444 test -z "$as_dir" && as_dir=. 4445 for ac_prog in grep ggrep; do 4446 for ac_exec_ext in '' $ac_executable_extensions; do 4447 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4448 as_fn_executable_p "$ac_path_GREP" || continue 4449# Check for GNU ac_path_GREP and select it if it is found. 4450 # Check for GNU $ac_path_GREP 4451case `"$ac_path_GREP" --version 2>&1` in 4452*GNU*) 4453 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4454*) 4455 ac_count=0 4456 $as_echo_n 0123456789 >"conftest.in" 4457 while : 4458 do 4459 cat "conftest.in" "conftest.in" >"conftest.tmp" 4460 mv "conftest.tmp" "conftest.in" 4461 cp "conftest.in" "conftest.nl" 4462 $as_echo 'GREP' >> "conftest.nl" 4463 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4464 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4465 as_fn_arith $ac_count + 1 && ac_count=$as_val 4466 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4467 # Best one so far, save it but keep looking for a better one 4468 ac_cv_path_GREP="$ac_path_GREP" 4469 ac_path_GREP_max=$ac_count 4470 fi 4471 # 10*(2^10) chars as input seems more than enough 4472 test $ac_count -gt 10 && break 4473 done 4474 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4475esac 4476 4477 $ac_path_GREP_found && break 3 4478 done 4479 done 4480 done 4481IFS=$as_save_IFS 4482 if test -z "$ac_cv_path_GREP"; then 4483 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4484 fi 4485else 4486 ac_cv_path_GREP=$GREP 4487fi 4488 4489fi 4490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4491$as_echo "$ac_cv_path_GREP" >&6; } 4492 GREP="$ac_cv_path_GREP" 4493 4494 4495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4496$as_echo_n "checking for egrep... " >&6; } 4497if ${ac_cv_path_EGREP+:} false; then : 4498 $as_echo_n "(cached) " >&6 4499else 4500 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4501 then ac_cv_path_EGREP="$GREP -E" 4502 else 4503 if test -z "$EGREP"; then 4504 ac_path_EGREP_found=false 4505 # Loop through the user's path and test for each of PROGNAME-LIST 4506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4507for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4508do 4509 IFS=$as_save_IFS 4510 test -z "$as_dir" && as_dir=. 4511 for ac_prog in egrep; do 4512 for ac_exec_ext in '' $ac_executable_extensions; do 4513 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4514 as_fn_executable_p "$ac_path_EGREP" || continue 4515# Check for GNU ac_path_EGREP and select it if it is found. 4516 # Check for GNU $ac_path_EGREP 4517case `"$ac_path_EGREP" --version 2>&1` in 4518*GNU*) 4519 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4520*) 4521 ac_count=0 4522 $as_echo_n 0123456789 >"conftest.in" 4523 while : 4524 do 4525 cat "conftest.in" "conftest.in" >"conftest.tmp" 4526 mv "conftest.tmp" "conftest.in" 4527 cp "conftest.in" "conftest.nl" 4528 $as_echo 'EGREP' >> "conftest.nl" 4529 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4530 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4531 as_fn_arith $ac_count + 1 && ac_count=$as_val 4532 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4533 # Best one so far, save it but keep looking for a better one 4534 ac_cv_path_EGREP="$ac_path_EGREP" 4535 ac_path_EGREP_max=$ac_count 4536 fi 4537 # 10*(2^10) chars as input seems more than enough 4538 test $ac_count -gt 10 && break 4539 done 4540 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4541esac 4542 4543 $ac_path_EGREP_found && break 3 4544 done 4545 done 4546 done 4547IFS=$as_save_IFS 4548 if test -z "$ac_cv_path_EGREP"; then 4549 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4550 fi 4551else 4552 ac_cv_path_EGREP=$EGREP 4553fi 4554 4555 fi 4556fi 4557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4558$as_echo "$ac_cv_path_EGREP" >&6; } 4559 EGREP="$ac_cv_path_EGREP" 4560 4561 4562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4563$as_echo_n "checking for fgrep... " >&6; } 4564if ${ac_cv_path_FGREP+:} false; then : 4565 $as_echo_n "(cached) " >&6 4566else 4567 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4568 then ac_cv_path_FGREP="$GREP -F" 4569 else 4570 if test -z "$FGREP"; then 4571 ac_path_FGREP_found=false 4572 # Loop through the user's path and test for each of PROGNAME-LIST 4573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4574for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4575do 4576 IFS=$as_save_IFS 4577 test -z "$as_dir" && as_dir=. 4578 for ac_prog in fgrep; do 4579 for ac_exec_ext in '' $ac_executable_extensions; do 4580 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4581 as_fn_executable_p "$ac_path_FGREP" || continue 4582# Check for GNU ac_path_FGREP and select it if it is found. 4583 # Check for GNU $ac_path_FGREP 4584case `"$ac_path_FGREP" --version 2>&1` in 4585*GNU*) 4586 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4587*) 4588 ac_count=0 4589 $as_echo_n 0123456789 >"conftest.in" 4590 while : 4591 do 4592 cat "conftest.in" "conftest.in" >"conftest.tmp" 4593 mv "conftest.tmp" "conftest.in" 4594 cp "conftest.in" "conftest.nl" 4595 $as_echo 'FGREP' >> "conftest.nl" 4596 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4597 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4598 as_fn_arith $ac_count + 1 && ac_count=$as_val 4599 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4600 # Best one so far, save it but keep looking for a better one 4601 ac_cv_path_FGREP="$ac_path_FGREP" 4602 ac_path_FGREP_max=$ac_count 4603 fi 4604 # 10*(2^10) chars as input seems more than enough 4605 test $ac_count -gt 10 && break 4606 done 4607 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4608esac 4609 4610 $ac_path_FGREP_found && break 3 4611 done 4612 done 4613 done 4614IFS=$as_save_IFS 4615 if test -z "$ac_cv_path_FGREP"; then 4616 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4617 fi 4618else 4619 ac_cv_path_FGREP=$FGREP 4620fi 4621 4622 fi 4623fi 4624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4625$as_echo "$ac_cv_path_FGREP" >&6; } 4626 FGREP="$ac_cv_path_FGREP" 4627 4628 4629test -z "$GREP" && GREP=grep 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649@%:@ Check whether --with-gnu-ld was given. 4650if test "${with_gnu_ld+set}" = set; then : 4651 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4652else 4653 with_gnu_ld=no 4654fi 4655 4656ac_prog=ld 4657if test "$GCC" = yes; then 4658 # Check if gcc -print-prog-name=ld gives a path. 4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4660$as_echo_n "checking for ld used by $CC... " >&6; } 4661 case $host in 4662 *-*-mingw*) 4663 # gcc leaves a trailing carriage return which upsets mingw 4664 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4665 *) 4666 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4667 esac 4668 case $ac_prog in 4669 # Accept absolute paths. 4670 [\\/]* | ?:[\\/]*) 4671 re_direlt='/[^/][^/]*/\.\./' 4672 # Canonicalize the pathname of ld 4673 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4674 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4675 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4676 done 4677 test -z "$LD" && LD="$ac_prog" 4678 ;; 4679 "") 4680 # If it fails, then pretend we aren't using GCC. 4681 ac_prog=ld 4682 ;; 4683 *) 4684 # If it is relative, then search for the first ld in PATH. 4685 with_gnu_ld=unknown 4686 ;; 4687 esac 4688elif test "$with_gnu_ld" = yes; then 4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4690$as_echo_n "checking for GNU ld... " >&6; } 4691else 4692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4693$as_echo_n "checking for non-GNU ld... " >&6; } 4694fi 4695if ${lt_cv_path_LD+:} false; then : 4696 $as_echo_n "(cached) " >&6 4697else 4698 if test -z "$LD"; then 4699 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4700 for ac_dir in $PATH; do 4701 IFS="$lt_save_ifs" 4702 test -z "$ac_dir" && ac_dir=. 4703 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4704 lt_cv_path_LD="$ac_dir/$ac_prog" 4705 # Check to see if the program is GNU ld. I'd rather use --version, 4706 # but apparently some variants of GNU ld only accept -v. 4707 # Break only if it was the GNU/non-GNU ld that we prefer. 4708 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4709 *GNU* | *'with BFD'*) 4710 test "$with_gnu_ld" != no && break 4711 ;; 4712 *) 4713 test "$with_gnu_ld" != yes && break 4714 ;; 4715 esac 4716 fi 4717 done 4718 IFS="$lt_save_ifs" 4719else 4720 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4721fi 4722fi 4723 4724LD="$lt_cv_path_LD" 4725if test -n "$LD"; then 4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4727$as_echo "$LD" >&6; } 4728else 4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4730$as_echo "no" >&6; } 4731fi 4732test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4734$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4735if ${lt_cv_prog_gnu_ld+:} false; then : 4736 $as_echo_n "(cached) " >&6 4737else 4738 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4739case `$LD -v 2>&1 </dev/null` in 4740*GNU* | *'with BFD'*) 4741 lt_cv_prog_gnu_ld=yes 4742 ;; 4743*) 4744 lt_cv_prog_gnu_ld=no 4745 ;; 4746esac 4747fi 4748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4749$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4750with_gnu_ld=$lt_cv_prog_gnu_ld 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4761$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4762if ${lt_cv_path_NM+:} false; then : 4763 $as_echo_n "(cached) " >&6 4764else 4765 if test -n "$NM"; then 4766 # Let the user override the test. 4767 lt_cv_path_NM="$NM" 4768else 4769 lt_nm_to_check="${ac_tool_prefix}nm" 4770 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4771 lt_nm_to_check="$lt_nm_to_check nm" 4772 fi 4773 for lt_tmp_nm in $lt_nm_to_check; do 4774 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4775 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4776 IFS="$lt_save_ifs" 4777 test -z "$ac_dir" && ac_dir=. 4778 tmp_nm="$ac_dir/$lt_tmp_nm" 4779 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4780 # Check to see if the nm accepts a BSD-compat flag. 4781 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4782 # nm: unknown option "B" ignored 4783 # Tru64's nm complains that /dev/null is an invalid object file 4784 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4785 */dev/null* | *'Invalid file or object type'*) 4786 lt_cv_path_NM="$tmp_nm -B" 4787 break 4788 ;; 4789 *) 4790 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4791 */dev/null*) 4792 lt_cv_path_NM="$tmp_nm -p" 4793 break 4794 ;; 4795 *) 4796 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4797 continue # so that we can try to find one that supports BSD flags 4798 ;; 4799 esac 4800 ;; 4801 esac 4802 fi 4803 done 4804 IFS="$lt_save_ifs" 4805 done 4806 : ${lt_cv_path_NM=no} 4807fi 4808fi 4809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4810$as_echo "$lt_cv_path_NM" >&6; } 4811if test "$lt_cv_path_NM" != "no"; then 4812 NM="$lt_cv_path_NM" 4813else 4814 # Didn't find any BSD compatible name lister, look for dumpbin. 4815 if test -n "$DUMPBIN"; then : 4816 # Let the user override the test. 4817 else 4818 if test -n "$ac_tool_prefix"; then 4819 for ac_prog in dumpbin "link -dump" 4820 do 4821 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4822set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4824$as_echo_n "checking for $ac_word... " >&6; } 4825if ${ac_cv_prog_DUMPBIN+:} false; then : 4826 $as_echo_n "(cached) " >&6 4827else 4828 if test -n "$DUMPBIN"; then 4829 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4830else 4831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4832for as_dir in $PATH 4833do 4834 IFS=$as_save_IFS 4835 test -z "$as_dir" && as_dir=. 4836 for ac_exec_ext in '' $ac_executable_extensions; do 4837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4838 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4840 break 2 4841 fi 4842done 4843 done 4844IFS=$as_save_IFS 4845 4846fi 4847fi 4848DUMPBIN=$ac_cv_prog_DUMPBIN 4849if test -n "$DUMPBIN"; then 4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4851$as_echo "$DUMPBIN" >&6; } 4852else 4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4854$as_echo "no" >&6; } 4855fi 4856 4857 4858 test -n "$DUMPBIN" && break 4859 done 4860fi 4861if test -z "$DUMPBIN"; then 4862 ac_ct_DUMPBIN=$DUMPBIN 4863 for ac_prog in dumpbin "link -dump" 4864do 4865 # Extract the first word of "$ac_prog", so it can be a program name with args. 4866set dummy $ac_prog; ac_word=$2 4867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4868$as_echo_n "checking for $ac_word... " >&6; } 4869if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4870 $as_echo_n "(cached) " >&6 4871else 4872 if test -n "$ac_ct_DUMPBIN"; then 4873 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4874else 4875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4876for as_dir in $PATH 4877do 4878 IFS=$as_save_IFS 4879 test -z "$as_dir" && as_dir=. 4880 for ac_exec_ext in '' $ac_executable_extensions; do 4881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4882 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4884 break 2 4885 fi 4886done 4887 done 4888IFS=$as_save_IFS 4889 4890fi 4891fi 4892ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4893if test -n "$ac_ct_DUMPBIN"; then 4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4895$as_echo "$ac_ct_DUMPBIN" >&6; } 4896else 4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4898$as_echo "no" >&6; } 4899fi 4900 4901 4902 test -n "$ac_ct_DUMPBIN" && break 4903done 4904 4905 if test "x$ac_ct_DUMPBIN" = x; then 4906 DUMPBIN=":" 4907 else 4908 case $cross_compiling:$ac_tool_warned in 4909yes:) 4910{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4911$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4912ac_tool_warned=yes ;; 4913esac 4914 DUMPBIN=$ac_ct_DUMPBIN 4915 fi 4916fi 4917 4918 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4919 *COFF*) 4920 DUMPBIN="$DUMPBIN -symbols" 4921 ;; 4922 *) 4923 DUMPBIN=: 4924 ;; 4925 esac 4926 fi 4927 4928 if test "$DUMPBIN" != ":"; then 4929 NM="$DUMPBIN" 4930 fi 4931fi 4932test -z "$NM" && NM=nm 4933 4934 4935 4936 4937 4938 4939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4940$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4941if ${lt_cv_nm_interface+:} false; then : 4942 $as_echo_n "(cached) " >&6 4943else 4944 lt_cv_nm_interface="BSD nm" 4945 echo "int some_variable = 0;" > conftest.$ac_ext 4946 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4947 (eval "$ac_compile" 2>conftest.err) 4948 cat conftest.err >&5 4949 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4950 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4951 cat conftest.err >&5 4952 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4953 cat conftest.out >&5 4954 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4955 lt_cv_nm_interface="MS dumpbin" 4956 fi 4957 rm -f conftest* 4958fi 4959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4960$as_echo "$lt_cv_nm_interface" >&6; } 4961 4962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4963$as_echo_n "checking whether ln -s works... " >&6; } 4964LN_S=$as_ln_s 4965if test "$LN_S" = "ln -s"; then 4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4967$as_echo "yes" >&6; } 4968else 4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4970$as_echo "no, using $LN_S" >&6; } 4971fi 4972 4973# find the maximum length of command line arguments 4974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4975$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4976if ${lt_cv_sys_max_cmd_len+:} false; then : 4977 $as_echo_n "(cached) " >&6 4978else 4979 i=0 4980 teststring="ABCD" 4981 4982 case $build_os in 4983 msdosdjgpp*) 4984 # On DJGPP, this test can blow up pretty badly due to problems in libc 4985 # (any single argument exceeding 2000 bytes causes a buffer overrun 4986 # during glob expansion). Even if it were fixed, the result of this 4987 # check would be larger than it should be. 4988 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4989 ;; 4990 4991 gnu*) 4992 # Under GNU Hurd, this test is not required because there is 4993 # no limit to the length of command line arguments. 4994 # Libtool will interpret -1 as no limit whatsoever 4995 lt_cv_sys_max_cmd_len=-1; 4996 ;; 4997 4998 cygwin* | mingw* | cegcc*) 4999 # On Win9x/ME, this test blows up -- it succeeds, but takes 5000 # about 5 minutes as the teststring grows exponentially. 5001 # Worse, since 9x/ME are not pre-emptively multitasking, 5002 # you end up with a "frozen" computer, even though with patience 5003 # the test eventually succeeds (with a max line length of 256k). 5004 # Instead, let's just punt: use the minimum linelength reported by 5005 # all of the supported platforms: 8192 (on NT/2K/XP). 5006 lt_cv_sys_max_cmd_len=8192; 5007 ;; 5008 5009 mint*) 5010 # On MiNT this can take a long time and run out of memory. 5011 lt_cv_sys_max_cmd_len=8192; 5012 ;; 5013 5014 amigaos*) 5015 # On AmigaOS with pdksh, this test takes hours, literally. 5016 # So we just punt and use a minimum line length of 8192. 5017 lt_cv_sys_max_cmd_len=8192; 5018 ;; 5019 5020 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5021 # This has been around since 386BSD, at least. Likely further. 5022 if test -x /sbin/sysctl; then 5023 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5024 elif test -x /usr/sbin/sysctl; then 5025 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5026 else 5027 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5028 fi 5029 # And add a safety zone 5030 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5031 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5032 ;; 5033 5034 interix*) 5035 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5036 lt_cv_sys_max_cmd_len=196608 5037 ;; 5038 5039 os2*) 5040 # The test takes a long time on OS/2. 5041 lt_cv_sys_max_cmd_len=8192 5042 ;; 5043 5044 osf*) 5045 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5046 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5047 # nice to cause kernel panics so lets avoid the loop below. 5048 # First set a reasonable default. 5049 lt_cv_sys_max_cmd_len=16384 5050 # 5051 if test -x /sbin/sysconfig; then 5052 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5053 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5054 esac 5055 fi 5056 ;; 5057 sco3.2v5*) 5058 lt_cv_sys_max_cmd_len=102400 5059 ;; 5060 sysv5* | sco5v6* | sysv4.2uw2*) 5061 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5062 if test -n "$kargmax"; then 5063 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5064 else 5065 lt_cv_sys_max_cmd_len=32768 5066 fi 5067 ;; 5068 *) 5069 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5070 if test -n "$lt_cv_sys_max_cmd_len" && \ 5071 test undefined != "$lt_cv_sys_max_cmd_len"; then 5072 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5073 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5074 else 5075 # Make teststring a little bigger before we do anything with it. 5076 # a 1K string should be a reasonable start. 5077 for i in 1 2 3 4 5 6 7 8 ; do 5078 teststring=$teststring$teststring 5079 done 5080 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5081 # If test is not a shell built-in, we'll probably end up computing a 5082 # maximum length that is only half of the actual maximum length, but 5083 # we can't tell. 5084 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 5085 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5086 test $i != 17 # 1/2 MB should be enough 5087 do 5088 i=`expr $i + 1` 5089 teststring=$teststring$teststring 5090 done 5091 # Only check the string length outside the loop. 5092 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5093 teststring= 5094 # Add a significant safety factor because C++ compilers can tack on 5095 # massive amounts of additional arguments before passing them to the 5096 # linker. It appears as though 1/2 is a usable value. 5097 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5098 fi 5099 ;; 5100 esac 5101 5102fi 5103 5104if test -n $lt_cv_sys_max_cmd_len ; then 5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5106$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5107else 5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5109$as_echo "none" >&6; } 5110fi 5111max_cmd_len=$lt_cv_sys_max_cmd_len 5112 5113 5114 5115 5116 5117 5118: ${CP="cp -f"} 5119: ${MV="mv -f"} 5120: ${RM="rm -f"} 5121 5122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5123$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5124# Try some XSI features 5125xsi_shell=no 5126( _lt_dummy="a/b/c" 5127 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 5128 = c,a/b,b/c, \ 5129 && eval 'test $(( 1 + 1 )) -eq 2 \ 5130 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5131 && xsi_shell=yes 5132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5133$as_echo "$xsi_shell" >&6; } 5134 5135 5136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5137$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5138lt_shell_append=no 5139( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5140 >/dev/null 2>&1 \ 5141 && lt_shell_append=yes 5142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5143$as_echo "$lt_shell_append" >&6; } 5144 5145 5146if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5147 lt_unset=unset 5148else 5149 lt_unset=false 5150fi 5151 5152 5153 5154 5155 5156# test EBCDIC or ASCII 5157case `echo X|tr X '\101'` in 5158 A) # ASCII based system 5159 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5160 lt_SP2NL='tr \040 \012' 5161 lt_NL2SP='tr \015\012 \040\040' 5162 ;; 5163 *) # EBCDIC based system 5164 lt_SP2NL='tr \100 \n' 5165 lt_NL2SP='tr \r\n \100\100' 5166 ;; 5167esac 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5178$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5179if ${lt_cv_to_host_file_cmd+:} false; then : 5180 $as_echo_n "(cached) " >&6 5181else 5182 case $host in 5183 *-*-mingw* ) 5184 case $build in 5185 *-*-mingw* ) # actually msys 5186 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5187 ;; 5188 *-*-cygwin* ) 5189 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5190 ;; 5191 * ) # otherwise, assume *nix 5192 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5193 ;; 5194 esac 5195 ;; 5196 *-*-cygwin* ) 5197 case $build in 5198 *-*-mingw* ) # actually msys 5199 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5200 ;; 5201 *-*-cygwin* ) 5202 lt_cv_to_host_file_cmd=func_convert_file_noop 5203 ;; 5204 * ) # otherwise, assume *nix 5205 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5206 ;; 5207 esac 5208 ;; 5209 * ) # unhandled hosts (and "normal" native builds) 5210 lt_cv_to_host_file_cmd=func_convert_file_noop 5211 ;; 5212esac 5213 5214fi 5215 5216to_host_file_cmd=$lt_cv_to_host_file_cmd 5217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5218$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5219 5220 5221 5222 5223 5224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5225$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5226if ${lt_cv_to_tool_file_cmd+:} false; then : 5227 $as_echo_n "(cached) " >&6 5228else 5229 #assume ordinary cross tools, or native build. 5230lt_cv_to_tool_file_cmd=func_convert_file_noop 5231case $host in 5232 *-*-mingw* ) 5233 case $build in 5234 *-*-mingw* ) # actually msys 5235 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5236 ;; 5237 esac 5238 ;; 5239esac 5240 5241fi 5242 5243to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5245$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5246 5247 5248 5249 5250 5251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5252$as_echo_n "checking for $LD option to reload object files... " >&6; } 5253if ${lt_cv_ld_reload_flag+:} false; then : 5254 $as_echo_n "(cached) " >&6 5255else 5256 lt_cv_ld_reload_flag='-r' 5257fi 5258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5259$as_echo "$lt_cv_ld_reload_flag" >&6; } 5260reload_flag=$lt_cv_ld_reload_flag 5261case $reload_flag in 5262"" | " "*) ;; 5263*) reload_flag=" $reload_flag" ;; 5264esac 5265reload_cmds='$LD$reload_flag -o $output$reload_objs' 5266case $host_os in 5267 cygwin* | mingw* | pw32* | cegcc*) 5268 if test "$GCC" != yes; then 5269 reload_cmds=false 5270 fi 5271 ;; 5272 darwin*) 5273 if test "$GCC" = yes; then 5274 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5275 else 5276 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5277 fi 5278 ;; 5279esac 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289if test -n "$ac_tool_prefix"; then 5290 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5291set dummy ${ac_tool_prefix}objdump; ac_word=$2 5292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5293$as_echo_n "checking for $ac_word... " >&6; } 5294if ${ac_cv_prog_OBJDUMP+:} false; then : 5295 $as_echo_n "(cached) " >&6 5296else 5297 if test -n "$OBJDUMP"; then 5298 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5299else 5300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5301for as_dir in $PATH 5302do 5303 IFS=$as_save_IFS 5304 test -z "$as_dir" && as_dir=. 5305 for ac_exec_ext in '' $ac_executable_extensions; do 5306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5307 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5309 break 2 5310 fi 5311done 5312 done 5313IFS=$as_save_IFS 5314 5315fi 5316fi 5317OBJDUMP=$ac_cv_prog_OBJDUMP 5318if test -n "$OBJDUMP"; then 5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5320$as_echo "$OBJDUMP" >&6; } 5321else 5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5323$as_echo "no" >&6; } 5324fi 5325 5326 5327fi 5328if test -z "$ac_cv_prog_OBJDUMP"; then 5329 ac_ct_OBJDUMP=$OBJDUMP 5330 # Extract the first word of "objdump", so it can be a program name with args. 5331set dummy objdump; ac_word=$2 5332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5333$as_echo_n "checking for $ac_word... " >&6; } 5334if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5335 $as_echo_n "(cached) " >&6 5336else 5337 if test -n "$ac_ct_OBJDUMP"; then 5338 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5339else 5340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5341for as_dir in $PATH 5342do 5343 IFS=$as_save_IFS 5344 test -z "$as_dir" && as_dir=. 5345 for ac_exec_ext in '' $ac_executable_extensions; do 5346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5347 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5349 break 2 5350 fi 5351done 5352 done 5353IFS=$as_save_IFS 5354 5355fi 5356fi 5357ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5358if test -n "$ac_ct_OBJDUMP"; then 5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5360$as_echo "$ac_ct_OBJDUMP" >&6; } 5361else 5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5363$as_echo "no" >&6; } 5364fi 5365 5366 if test "x$ac_ct_OBJDUMP" = x; then 5367 OBJDUMP="false" 5368 else 5369 case $cross_compiling:$ac_tool_warned in 5370yes:) 5371{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5372$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5373ac_tool_warned=yes ;; 5374esac 5375 OBJDUMP=$ac_ct_OBJDUMP 5376 fi 5377else 5378 OBJDUMP="$ac_cv_prog_OBJDUMP" 5379fi 5380 5381test -z "$OBJDUMP" && OBJDUMP=objdump 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5392$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5393if ${lt_cv_deplibs_check_method+:} false; then : 5394 $as_echo_n "(cached) " >&6 5395else 5396 lt_cv_file_magic_cmd='$MAGIC_CMD' 5397lt_cv_file_magic_test_file= 5398lt_cv_deplibs_check_method='unknown' 5399# Need to set the preceding variable on all platforms that support 5400# interlibrary dependencies. 5401# 'none' -- dependencies not supported. 5402# `unknown' -- same as none, but documents that we really don't know. 5403# 'pass_all' -- all dependencies passed with no checks. 5404# 'test_compile' -- check by making test program. 5405# 'file_magic [[regex]]' -- check by looking for files in library path 5406# which responds to the $file_magic_cmd with a given extended regex. 5407# If you have `file' or equivalent on your system and you're not sure 5408# whether `pass_all' will *always* work, you probably want this one. 5409 5410case $host_os in 5411aix[4-9]*) 5412 lt_cv_deplibs_check_method=pass_all 5413 ;; 5414 5415beos*) 5416 lt_cv_deplibs_check_method=pass_all 5417 ;; 5418 5419bsdi[45]*) 5420 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5421 lt_cv_file_magic_cmd='/usr/bin/file -L' 5422 lt_cv_file_magic_test_file=/shlib/libc.so 5423 ;; 5424 5425cygwin*) 5426 # func_win32_libid is a shell function defined in ltmain.sh 5427 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5428 lt_cv_file_magic_cmd='func_win32_libid' 5429 ;; 5430 5431mingw* | pw32*) 5432 # Base MSYS/MinGW do not provide the 'file' command needed by 5433 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5434 # unless we find 'file', for example because we are cross-compiling. 5435 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5436 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5437 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5438 lt_cv_file_magic_cmd='func_win32_libid' 5439 else 5440 # Keep this pattern in sync with the one in func_win32_libid. 5441 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5442 lt_cv_file_magic_cmd='$OBJDUMP -f' 5443 fi 5444 ;; 5445 5446cegcc*) 5447 # use the weaker test based on 'objdump'. See mingw*. 5448 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5449 lt_cv_file_magic_cmd='$OBJDUMP -f' 5450 ;; 5451 5452darwin* | rhapsody*) 5453 lt_cv_deplibs_check_method=pass_all 5454 ;; 5455 5456freebsd* | dragonfly*) 5457 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5458 case $host_cpu in 5459 i*86 ) 5460 # Not sure whether the presence of OpenBSD here was a mistake. 5461 # Let's accept both of them until this is cleared up. 5462 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5463 lt_cv_file_magic_cmd=/usr/bin/file 5464 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5465 ;; 5466 esac 5467 else 5468 lt_cv_deplibs_check_method=pass_all 5469 fi 5470 ;; 5471 5472haiku*) 5473 lt_cv_deplibs_check_method=pass_all 5474 ;; 5475 5476hpux10.20* | hpux11*) 5477 lt_cv_file_magic_cmd=/usr/bin/file 5478 case $host_cpu in 5479 ia64*) 5480 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5481 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5482 ;; 5483 hppa*64*) 5484 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]' 5485 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5486 ;; 5487 *) 5488 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5489 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5490 ;; 5491 esac 5492 ;; 5493 5494interix[3-9]*) 5495 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5496 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5497 ;; 5498 5499irix5* | irix6* | nonstopux*) 5500 case $LD in 5501 *-32|*"-32 ") libmagic=32-bit;; 5502 *-n32|*"-n32 ") libmagic=N32;; 5503 *-64|*"-64 ") libmagic=64-bit;; 5504 *) libmagic=never-match;; 5505 esac 5506 lt_cv_deplibs_check_method=pass_all 5507 ;; 5508 5509# This must be glibc/ELF. 5510linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5511 lt_cv_deplibs_check_method=pass_all 5512 ;; 5513 5514netbsd* | netbsdelf*-gnu) 5515 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5516 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5517 else 5518 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5519 fi 5520 ;; 5521 5522newos6*) 5523 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5524 lt_cv_file_magic_cmd=/usr/bin/file 5525 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5526 ;; 5527 5528*nto* | *qnx*) 5529 lt_cv_deplibs_check_method=pass_all 5530 ;; 5531 5532openbsd*) 5533 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5534 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5535 else 5536 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5537 fi 5538 ;; 5539 5540osf3* | osf4* | osf5*) 5541 lt_cv_deplibs_check_method=pass_all 5542 ;; 5543 5544rdos*) 5545 lt_cv_deplibs_check_method=pass_all 5546 ;; 5547 5548solaris*) 5549 lt_cv_deplibs_check_method=pass_all 5550 ;; 5551 5552sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5553 lt_cv_deplibs_check_method=pass_all 5554 ;; 5555 5556sysv4 | sysv4.3*) 5557 case $host_vendor in 5558 motorola) 5559 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]' 5560 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5561 ;; 5562 ncr) 5563 lt_cv_deplibs_check_method=pass_all 5564 ;; 5565 sequent) 5566 lt_cv_file_magic_cmd='/bin/file' 5567 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5568 ;; 5569 sni) 5570 lt_cv_file_magic_cmd='/bin/file' 5571 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5572 lt_cv_file_magic_test_file=/lib/libc.so 5573 ;; 5574 siemens) 5575 lt_cv_deplibs_check_method=pass_all 5576 ;; 5577 pc) 5578 lt_cv_deplibs_check_method=pass_all 5579 ;; 5580 esac 5581 ;; 5582 5583tpf*) 5584 lt_cv_deplibs_check_method=pass_all 5585 ;; 5586esac 5587 5588fi 5589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5590$as_echo "$lt_cv_deplibs_check_method" >&6; } 5591 5592file_magic_glob= 5593want_nocaseglob=no 5594if test "$build" = "$host"; then 5595 case $host_os in 5596 mingw* | pw32*) 5597 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5598 want_nocaseglob=yes 5599 else 5600 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5601 fi 5602 ;; 5603 esac 5604fi 5605 5606file_magic_cmd=$lt_cv_file_magic_cmd 5607deplibs_check_method=$lt_cv_deplibs_check_method 5608test -z "$deplibs_check_method" && deplibs_check_method=unknown 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631if test -n "$ac_tool_prefix"; then 5632 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5633set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5635$as_echo_n "checking for $ac_word... " >&6; } 5636if ${ac_cv_prog_DLLTOOL+:} false; then : 5637 $as_echo_n "(cached) " >&6 5638else 5639 if test -n "$DLLTOOL"; then 5640 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5641else 5642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5643for as_dir in $PATH 5644do 5645 IFS=$as_save_IFS 5646 test -z "$as_dir" && as_dir=. 5647 for ac_exec_ext in '' $ac_executable_extensions; do 5648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5649 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5651 break 2 5652 fi 5653done 5654 done 5655IFS=$as_save_IFS 5656 5657fi 5658fi 5659DLLTOOL=$ac_cv_prog_DLLTOOL 5660if test -n "$DLLTOOL"; then 5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5662$as_echo "$DLLTOOL" >&6; } 5663else 5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5665$as_echo "no" >&6; } 5666fi 5667 5668 5669fi 5670if test -z "$ac_cv_prog_DLLTOOL"; then 5671 ac_ct_DLLTOOL=$DLLTOOL 5672 # Extract the first word of "dlltool", so it can be a program name with args. 5673set dummy dlltool; ac_word=$2 5674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5675$as_echo_n "checking for $ac_word... " >&6; } 5676if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5677 $as_echo_n "(cached) " >&6 5678else 5679 if test -n "$ac_ct_DLLTOOL"; then 5680 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5681else 5682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5683for as_dir in $PATH 5684do 5685 IFS=$as_save_IFS 5686 test -z "$as_dir" && as_dir=. 5687 for ac_exec_ext in '' $ac_executable_extensions; do 5688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5689 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5691 break 2 5692 fi 5693done 5694 done 5695IFS=$as_save_IFS 5696 5697fi 5698fi 5699ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5700if test -n "$ac_ct_DLLTOOL"; then 5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5702$as_echo "$ac_ct_DLLTOOL" >&6; } 5703else 5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5705$as_echo "no" >&6; } 5706fi 5707 5708 if test "x$ac_ct_DLLTOOL" = x; then 5709 DLLTOOL="false" 5710 else 5711 case $cross_compiling:$ac_tool_warned in 5712yes:) 5713{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5714$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5715ac_tool_warned=yes ;; 5716esac 5717 DLLTOOL=$ac_ct_DLLTOOL 5718 fi 5719else 5720 DLLTOOL="$ac_cv_prog_DLLTOOL" 5721fi 5722 5723test -z "$DLLTOOL" && DLLTOOL=dlltool 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5735$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5736if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5737 $as_echo_n "(cached) " >&6 5738else 5739 lt_cv_sharedlib_from_linklib_cmd='unknown' 5740 5741case $host_os in 5742cygwin* | mingw* | pw32* | cegcc*) 5743 # two different shell functions defined in ltmain.sh 5744 # decide which to use based on capabilities of $DLLTOOL 5745 case `$DLLTOOL --help 2>&1` in 5746 *--identify-strict*) 5747 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5748 ;; 5749 *) 5750 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5751 ;; 5752 esac 5753 ;; 5754*) 5755 # fallback: assume linklib IS sharedlib 5756 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5757 ;; 5758esac 5759 5760fi 5761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5762$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5763sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5764test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5765 5766 5767 5768 5769 5770 5771 5772if test -n "$ac_tool_prefix"; then 5773 for ac_prog in ar 5774 do 5775 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5776set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5778$as_echo_n "checking for $ac_word... " >&6; } 5779if ${ac_cv_prog_AR+:} false; then : 5780 $as_echo_n "(cached) " >&6 5781else 5782 if test -n "$AR"; then 5783 ac_cv_prog_AR="$AR" # Let the user override the test. 5784else 5785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5786for as_dir in $PATH 5787do 5788 IFS=$as_save_IFS 5789 test -z "$as_dir" && as_dir=. 5790 for ac_exec_ext in '' $ac_executable_extensions; do 5791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5792 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5794 break 2 5795 fi 5796done 5797 done 5798IFS=$as_save_IFS 5799 5800fi 5801fi 5802AR=$ac_cv_prog_AR 5803if test -n "$AR"; then 5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5805$as_echo "$AR" >&6; } 5806else 5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5808$as_echo "no" >&6; } 5809fi 5810 5811 5812 test -n "$AR" && break 5813 done 5814fi 5815if test -z "$AR"; then 5816 ac_ct_AR=$AR 5817 for ac_prog in ar 5818do 5819 # Extract the first word of "$ac_prog", so it can be a program name with args. 5820set dummy $ac_prog; ac_word=$2 5821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5822$as_echo_n "checking for $ac_word... " >&6; } 5823if ${ac_cv_prog_ac_ct_AR+:} false; then : 5824 $as_echo_n "(cached) " >&6 5825else 5826 if test -n "$ac_ct_AR"; then 5827 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5828else 5829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5830for as_dir in $PATH 5831do 5832 IFS=$as_save_IFS 5833 test -z "$as_dir" && as_dir=. 5834 for ac_exec_ext in '' $ac_executable_extensions; do 5835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5836 ac_cv_prog_ac_ct_AR="$ac_prog" 5837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5838 break 2 5839 fi 5840done 5841 done 5842IFS=$as_save_IFS 5843 5844fi 5845fi 5846ac_ct_AR=$ac_cv_prog_ac_ct_AR 5847if test -n "$ac_ct_AR"; then 5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5849$as_echo "$ac_ct_AR" >&6; } 5850else 5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5852$as_echo "no" >&6; } 5853fi 5854 5855 5856 test -n "$ac_ct_AR" && break 5857done 5858 5859 if test "x$ac_ct_AR" = x; then 5860 AR="false" 5861 else 5862 case $cross_compiling:$ac_tool_warned in 5863yes:) 5864{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5865$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5866ac_tool_warned=yes ;; 5867esac 5868 AR=$ac_ct_AR 5869 fi 5870fi 5871 5872: ${AR=ar} 5873: ${AR_FLAGS=cru} 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5886$as_echo_n "checking for archiver @FILE support... " >&6; } 5887if ${lt_cv_ar_at_file+:} false; then : 5888 $as_echo_n "(cached) " >&6 5889else 5890 lt_cv_ar_at_file=no 5891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5892/* end confdefs.h. */ 5893 5894int 5895main () 5896{ 5897 5898 ; 5899 return 0; 5900} 5901_ACEOF 5902if ac_fn_c_try_compile "$LINENO"; then : 5903 echo conftest.$ac_objext > conftest.lst 5904 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5905 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5906 (eval $lt_ar_try) 2>&5 5907 ac_status=$? 5908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5909 test $ac_status = 0; } 5910 if test "$ac_status" -eq 0; then 5911 # Ensure the archiver fails upon bogus file names. 5912 rm -f conftest.$ac_objext libconftest.a 5913 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5914 (eval $lt_ar_try) 2>&5 5915 ac_status=$? 5916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5917 test $ac_status = 0; } 5918 if test "$ac_status" -ne 0; then 5919 lt_cv_ar_at_file=@ 5920 fi 5921 fi 5922 rm -f conftest.* libconftest.a 5923 5924fi 5925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5926 5927fi 5928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5929$as_echo "$lt_cv_ar_at_file" >&6; } 5930 5931if test "x$lt_cv_ar_at_file" = xno; then 5932 archiver_list_spec= 5933else 5934 archiver_list_spec=$lt_cv_ar_at_file 5935fi 5936 5937 5938 5939 5940 5941 5942 5943if test -n "$ac_tool_prefix"; then 5944 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5945set dummy ${ac_tool_prefix}strip; ac_word=$2 5946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5947$as_echo_n "checking for $ac_word... " >&6; } 5948if ${ac_cv_prog_STRIP+:} false; then : 5949 $as_echo_n "(cached) " >&6 5950else 5951 if test -n "$STRIP"; then 5952 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5953else 5954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5955for as_dir in $PATH 5956do 5957 IFS=$as_save_IFS 5958 test -z "$as_dir" && as_dir=. 5959 for ac_exec_ext in '' $ac_executable_extensions; do 5960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5961 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5963 break 2 5964 fi 5965done 5966 done 5967IFS=$as_save_IFS 5968 5969fi 5970fi 5971STRIP=$ac_cv_prog_STRIP 5972if test -n "$STRIP"; then 5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5974$as_echo "$STRIP" >&6; } 5975else 5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5977$as_echo "no" >&6; } 5978fi 5979 5980 5981fi 5982if test -z "$ac_cv_prog_STRIP"; then 5983 ac_ct_STRIP=$STRIP 5984 # Extract the first word of "strip", so it can be a program name with args. 5985set dummy strip; ac_word=$2 5986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5987$as_echo_n "checking for $ac_word... " >&6; } 5988if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5989 $as_echo_n "(cached) " >&6 5990else 5991 if test -n "$ac_ct_STRIP"; then 5992 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5993else 5994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5995for as_dir in $PATH 5996do 5997 IFS=$as_save_IFS 5998 test -z "$as_dir" && as_dir=. 5999 for ac_exec_ext in '' $ac_executable_extensions; do 6000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6001 ac_cv_prog_ac_ct_STRIP="strip" 6002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6003 break 2 6004 fi 6005done 6006 done 6007IFS=$as_save_IFS 6008 6009fi 6010fi 6011ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6012if test -n "$ac_ct_STRIP"; then 6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6014$as_echo "$ac_ct_STRIP" >&6; } 6015else 6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6017$as_echo "no" >&6; } 6018fi 6019 6020 if test "x$ac_ct_STRIP" = x; then 6021 STRIP=":" 6022 else 6023 case $cross_compiling:$ac_tool_warned in 6024yes:) 6025{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6026$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6027ac_tool_warned=yes ;; 6028esac 6029 STRIP=$ac_ct_STRIP 6030 fi 6031else 6032 STRIP="$ac_cv_prog_STRIP" 6033fi 6034 6035test -z "$STRIP" && STRIP=: 6036 6037 6038 6039 6040 6041 6042if test -n "$ac_tool_prefix"; then 6043 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6044set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6046$as_echo_n "checking for $ac_word... " >&6; } 6047if ${ac_cv_prog_RANLIB+:} false; then : 6048 $as_echo_n "(cached) " >&6 6049else 6050 if test -n "$RANLIB"; then 6051 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6052else 6053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6054for as_dir in $PATH 6055do 6056 IFS=$as_save_IFS 6057 test -z "$as_dir" && as_dir=. 6058 for ac_exec_ext in '' $ac_executable_extensions; do 6059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6060 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6062 break 2 6063 fi 6064done 6065 done 6066IFS=$as_save_IFS 6067 6068fi 6069fi 6070RANLIB=$ac_cv_prog_RANLIB 6071if test -n "$RANLIB"; then 6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6073$as_echo "$RANLIB" >&6; } 6074else 6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6076$as_echo "no" >&6; } 6077fi 6078 6079 6080fi 6081if test -z "$ac_cv_prog_RANLIB"; then 6082 ac_ct_RANLIB=$RANLIB 6083 # Extract the first word of "ranlib", so it can be a program name with args. 6084set dummy ranlib; ac_word=$2 6085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6086$as_echo_n "checking for $ac_word... " >&6; } 6087if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6088 $as_echo_n "(cached) " >&6 6089else 6090 if test -n "$ac_ct_RANLIB"; then 6091 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6092else 6093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6094for as_dir in $PATH 6095do 6096 IFS=$as_save_IFS 6097 test -z "$as_dir" && as_dir=. 6098 for ac_exec_ext in '' $ac_executable_extensions; do 6099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6100 ac_cv_prog_ac_ct_RANLIB="ranlib" 6101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6102 break 2 6103 fi 6104done 6105 done 6106IFS=$as_save_IFS 6107 6108fi 6109fi 6110ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6111if test -n "$ac_ct_RANLIB"; then 6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6113$as_echo "$ac_ct_RANLIB" >&6; } 6114else 6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6116$as_echo "no" >&6; } 6117fi 6118 6119 if test "x$ac_ct_RANLIB" = x; then 6120 RANLIB=":" 6121 else 6122 case $cross_compiling:$ac_tool_warned in 6123yes:) 6124{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6125$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6126ac_tool_warned=yes ;; 6127esac 6128 RANLIB=$ac_ct_RANLIB 6129 fi 6130else 6131 RANLIB="$ac_cv_prog_RANLIB" 6132fi 6133 6134test -z "$RANLIB" && RANLIB=: 6135 6136 6137 6138 6139 6140 6141# Determine commands to create old-style static archives. 6142old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6143old_postinstall_cmds='chmod 644 $oldlib' 6144old_postuninstall_cmds= 6145 6146if test -n "$RANLIB"; then 6147 case $host_os in 6148 openbsd*) 6149 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6150 ;; 6151 *) 6152 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6153 ;; 6154 esac 6155 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6156fi 6157 6158case $host_os in 6159 darwin*) 6160 lock_old_archive_extraction=yes ;; 6161 *) 6162 lock_old_archive_extraction=no ;; 6163esac 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203# If no C compiler was specified, use CC. 6204LTCC=${LTCC-"$CC"} 6205 6206# If no C compiler flags were specified, use CFLAGS. 6207LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6208 6209# Allow CC to be a program name with arguments. 6210compiler=$CC 6211 6212 6213# Check for command to grab the raw symbol name followed by C symbol from nm. 6214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6215$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6216if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6217 $as_echo_n "(cached) " >&6 6218else 6219 6220# These are sane defaults that work on at least a few old systems. 6221# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6222 6223# Character class describing NM global symbol codes. 6224symcode='[BCDEGRST]' 6225 6226# Regexp to match symbols that can be accessed directly from C. 6227sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6228 6229# Define system-specific variables. 6230case $host_os in 6231aix*) 6232 symcode='[BCDT]' 6233 ;; 6234cygwin* | mingw* | pw32* | cegcc*) 6235 symcode='[ABCDGISTW]' 6236 ;; 6237hpux*) 6238 if test "$host_cpu" = ia64; then 6239 symcode='[ABCDEGRST]' 6240 fi 6241 ;; 6242irix* | nonstopux*) 6243 symcode='[BCDEGRST]' 6244 ;; 6245osf*) 6246 symcode='[BCDEGQRST]' 6247 ;; 6248solaris*) 6249 symcode='[BDRT]' 6250 ;; 6251sco3.2v5*) 6252 symcode='[DT]' 6253 ;; 6254sysv4.2uw2*) 6255 symcode='[DT]' 6256 ;; 6257sysv5* | sco5v6* | unixware* | OpenUNIX*) 6258 symcode='[ABDT]' 6259 ;; 6260sysv4) 6261 symcode='[DFNSTU]' 6262 ;; 6263esac 6264 6265# If we're using GNU nm, then use its standard symbol codes. 6266case `$NM -V 2>&1` in 6267*GNU* | *'with BFD'*) 6268 symcode='[ABCDGIRSTW]' ;; 6269esac 6270 6271# Transform an extracted symbol line into a proper C declaration. 6272# Some systems (esp. on ia64) link data and code symbols differently, 6273# so use this general approach. 6274lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6275 6276# Transform an extracted symbol line into symbol name and symbol address 6277lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6278lt_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'" 6279 6280# Handle CRLF in mingw tool chain 6281opt_cr= 6282case $build_os in 6283mingw*) 6284 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6285 ;; 6286esac 6287 6288# Try without a prefix underscore, then with it. 6289for ac_symprfx in "" "_"; do 6290 6291 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6292 symxfrm="\\1 $ac_symprfx\\2 \\2" 6293 6294 # Write the raw and C identifiers. 6295 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6296 # Fake it for dumpbin and say T for any non-static function 6297 # and D for any global variable. 6298 # Also find C++ and __fastcall symbols from MSVC++, 6299 # which start with @ or ?. 6300 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6301" {last_section=section; section=\$ 3};"\ 6302" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6303" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6304" \$ 0!~/External *\|/{next};"\ 6305" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6306" {if(hide[section]) next};"\ 6307" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6308" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6309" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6310" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6311" ' prfx=^$ac_symprfx" 6312 else 6313 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6314 fi 6315 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6316 6317 # Check to see that the pipe works correctly. 6318 pipe_works=no 6319 6320 rm -f conftest* 6321 cat > conftest.$ac_ext <<_LT_EOF 6322#ifdef __cplusplus 6323extern "C" { 6324#endif 6325char nm_test_var; 6326void nm_test_func(void); 6327void nm_test_func(void){} 6328#ifdef __cplusplus 6329} 6330#endif 6331int main(){nm_test_var='a';nm_test_func();return(0);} 6332_LT_EOF 6333 6334 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6335 (eval $ac_compile) 2>&5 6336 ac_status=$? 6337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6338 test $ac_status = 0; }; then 6339 # Now try to grab the symbols. 6340 nlist=conftest.nm 6341 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6342 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6343 ac_status=$? 6344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6345 test $ac_status = 0; } && test -s "$nlist"; then 6346 # Try sorting and uniquifying the output. 6347 if sort "$nlist" | uniq > "$nlist"T; then 6348 mv -f "$nlist"T "$nlist" 6349 else 6350 rm -f "$nlist"T 6351 fi 6352 6353 # Make sure that we snagged all the symbols we need. 6354 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6355 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6356 cat <<_LT_EOF > conftest.$ac_ext 6357/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6358#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6359/* DATA imports from DLLs on WIN32 con't be const, because runtime 6360 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6361# define LT@&t@_DLSYM_CONST 6362#elif defined(__osf__) 6363/* This system does not cope well with relocations in const data. */ 6364# define LT@&t@_DLSYM_CONST 6365#else 6366# define LT@&t@_DLSYM_CONST const 6367#endif 6368 6369#ifdef __cplusplus 6370extern "C" { 6371#endif 6372 6373_LT_EOF 6374 # Now generate the symbol file. 6375 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6376 6377 cat <<_LT_EOF >> conftest.$ac_ext 6378 6379/* The mapping between symbol names and symbols. */ 6380LT@&t@_DLSYM_CONST struct { 6381 const char *name; 6382 void *address; 6383} 6384lt__PROGRAM__LTX_preloaded_symbols[] = 6385{ 6386 { "@PROGRAM@", (void *) 0 }, 6387_LT_EOF 6388 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6389 cat <<\_LT_EOF >> conftest.$ac_ext 6390 {0, (void *) 0} 6391}; 6392 6393/* This works around a problem in FreeBSD linker */ 6394#ifdef FREEBSD_WORKAROUND 6395static const void *lt_preloaded_setup() { 6396 return lt__PROGRAM__LTX_preloaded_symbols; 6397} 6398#endif 6399 6400#ifdef __cplusplus 6401} 6402#endif 6403_LT_EOF 6404 # Now try linking the two files. 6405 mv conftest.$ac_objext conftstm.$ac_objext 6406 lt_globsym_save_LIBS=$LIBS 6407 lt_globsym_save_CFLAGS=$CFLAGS 6408 LIBS="conftstm.$ac_objext" 6409 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6411 (eval $ac_link) 2>&5 6412 ac_status=$? 6413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6414 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6415 pipe_works=yes 6416 fi 6417 LIBS=$lt_globsym_save_LIBS 6418 CFLAGS=$lt_globsym_save_CFLAGS 6419 else 6420 echo "cannot find nm_test_func in $nlist" >&5 6421 fi 6422 else 6423 echo "cannot find nm_test_var in $nlist" >&5 6424 fi 6425 else 6426 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6427 fi 6428 else 6429 echo "$progname: failed program was:" >&5 6430 cat conftest.$ac_ext >&5 6431 fi 6432 rm -rf conftest* conftst* 6433 6434 # Do not use the global_symbol_pipe unless it works. 6435 if test "$pipe_works" = yes; then 6436 break 6437 else 6438 lt_cv_sys_global_symbol_pipe= 6439 fi 6440done 6441 6442fi 6443 6444if test -z "$lt_cv_sys_global_symbol_pipe"; then 6445 lt_cv_sys_global_symbol_to_cdecl= 6446fi 6447if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6449$as_echo "failed" >&6; } 6450else 6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6452$as_echo "ok" >&6; } 6453fi 6454 6455# Response file support. 6456if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6457 nm_file_list_spec='@' 6458elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6459 nm_file_list_spec='@' 6460fi 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6489$as_echo_n "checking for sysroot... " >&6; } 6490 6491@%:@ Check whether --with-sysroot was given. 6492if test "${with_sysroot+set}" = set; then : 6493 withval=$with_sysroot; 6494else 6495 with_sysroot=no 6496fi 6497 6498 6499lt_sysroot= 6500case ${with_sysroot} in #( 6501 yes) 6502 if test "$GCC" = yes; then 6503 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6504 fi 6505 ;; #( 6506 /*) 6507 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6508 ;; #( 6509 no|'') 6510 ;; #( 6511 *) 6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6513$as_echo "${with_sysroot}" >&6; } 6514 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6515 ;; 6516esac 6517 6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6519$as_echo "${lt_sysroot:-no}" >&6; } 6520 6521 6522 6523 6524 6525@%:@ Check whether --enable-libtool-lock was given. 6526if test "${enable_libtool_lock+set}" = set; then : 6527 enableval=$enable_libtool_lock; 6528fi 6529 6530test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6531 6532# Some flags need to be propagated to the compiler or linker for good 6533# libtool support. 6534case $host in 6535ia64-*-hpux*) 6536 # Find out which ABI we are using. 6537 echo 'int i;' > conftest.$ac_ext 6538 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6539 (eval $ac_compile) 2>&5 6540 ac_status=$? 6541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6542 test $ac_status = 0; }; then 6543 case `/usr/bin/file conftest.$ac_objext` in 6544 *ELF-32*) 6545 HPUX_IA64_MODE="32" 6546 ;; 6547 *ELF-64*) 6548 HPUX_IA64_MODE="64" 6549 ;; 6550 esac 6551 fi 6552 rm -rf conftest* 6553 ;; 6554*-*-irix6*) 6555 # Find out which ABI we are using. 6556 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6557 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6558 (eval $ac_compile) 2>&5 6559 ac_status=$? 6560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6561 test $ac_status = 0; }; then 6562 if test "$lt_cv_prog_gnu_ld" = yes; then 6563 case `/usr/bin/file conftest.$ac_objext` in 6564 *32-bit*) 6565 LD="${LD-ld} -melf32bsmip" 6566 ;; 6567 *N32*) 6568 LD="${LD-ld} -melf32bmipn32" 6569 ;; 6570 *64-bit*) 6571 LD="${LD-ld} -melf64bmip" 6572 ;; 6573 esac 6574 else 6575 case `/usr/bin/file conftest.$ac_objext` in 6576 *32-bit*) 6577 LD="${LD-ld} -32" 6578 ;; 6579 *N32*) 6580 LD="${LD-ld} -n32" 6581 ;; 6582 *64-bit*) 6583 LD="${LD-ld} -64" 6584 ;; 6585 esac 6586 fi 6587 fi 6588 rm -rf conftest* 6589 ;; 6590 6591x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6592s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6593 # Find out which ABI we are using. 6594 echo 'int i;' > conftest.$ac_ext 6595 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6596 (eval $ac_compile) 2>&5 6597 ac_status=$? 6598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6599 test $ac_status = 0; }; then 6600 case `/usr/bin/file conftest.o` in 6601 *32-bit*) 6602 case $host in 6603 x86_64-*kfreebsd*-gnu) 6604 LD="${LD-ld} -m elf_i386_fbsd" 6605 ;; 6606 x86_64-*linux*) 6607 case `/usr/bin/file conftest.o` in 6608 *x86-64*) 6609 LD="${LD-ld} -m elf32_x86_64" 6610 ;; 6611 *) 6612 LD="${LD-ld} -m elf_i386" 6613 ;; 6614 esac 6615 ;; 6616 powerpc64le-*) 6617 LD="${LD-ld} -m elf32lppclinux" 6618 ;; 6619 powerpc64-*) 6620 LD="${LD-ld} -m elf32ppclinux" 6621 ;; 6622 s390x-*linux*) 6623 LD="${LD-ld} -m elf_s390" 6624 ;; 6625 sparc64-*linux*) 6626 LD="${LD-ld} -m elf32_sparc" 6627 ;; 6628 esac 6629 ;; 6630 *64-bit*) 6631 case $host in 6632 x86_64-*kfreebsd*-gnu) 6633 LD="${LD-ld} -m elf_x86_64_fbsd" 6634 ;; 6635 x86_64-*linux*) 6636 LD="${LD-ld} -m elf_x86_64" 6637 ;; 6638 powerpcle-*) 6639 LD="${LD-ld} -m elf64lppc" 6640 ;; 6641 powerpc-*) 6642 LD="${LD-ld} -m elf64ppc" 6643 ;; 6644 s390*-*linux*|s390*-*tpf*) 6645 LD="${LD-ld} -m elf64_s390" 6646 ;; 6647 sparc*-*linux*) 6648 LD="${LD-ld} -m elf64_sparc" 6649 ;; 6650 esac 6651 ;; 6652 esac 6653 fi 6654 rm -rf conftest* 6655 ;; 6656 6657*-*-sco3.2v5*) 6658 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6659 SAVE_CFLAGS="$CFLAGS" 6660 CFLAGS="$CFLAGS -belf" 6661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6662$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6663if ${lt_cv_cc_needs_belf+:} false; then : 6664 $as_echo_n "(cached) " >&6 6665else 6666 ac_ext=c 6667ac_cpp='$CPP $CPPFLAGS' 6668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6670ac_compiler_gnu=$ac_cv_c_compiler_gnu 6671 6672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6673/* end confdefs.h. */ 6674 6675int 6676main () 6677{ 6678 6679 ; 6680 return 0; 6681} 6682_ACEOF 6683if ac_fn_c_try_link "$LINENO"; then : 6684 lt_cv_cc_needs_belf=yes 6685else 6686 lt_cv_cc_needs_belf=no 6687fi 6688rm -f core conftest.err conftest.$ac_objext \ 6689 conftest$ac_exeext conftest.$ac_ext 6690 ac_ext=c 6691ac_cpp='$CPP $CPPFLAGS' 6692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6694ac_compiler_gnu=$ac_cv_c_compiler_gnu 6695 6696fi 6697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6698$as_echo "$lt_cv_cc_needs_belf" >&6; } 6699 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6700 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6701 CFLAGS="$SAVE_CFLAGS" 6702 fi 6703 ;; 6704*-*solaris*) 6705 # Find out which ABI we are using. 6706 echo 'int i;' > conftest.$ac_ext 6707 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6708 (eval $ac_compile) 2>&5 6709 ac_status=$? 6710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6711 test $ac_status = 0; }; then 6712 case `/usr/bin/file conftest.o` in 6713 *64-bit*) 6714 case $lt_cv_prog_gnu_ld in 6715 yes*) 6716 case $host in 6717 i?86-*-solaris*) 6718 LD="${LD-ld} -m elf_x86_64" 6719 ;; 6720 sparc*-*-solaris*) 6721 LD="${LD-ld} -m elf64_sparc" 6722 ;; 6723 esac 6724 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6725 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6726 LD="${LD-ld}_sol2" 6727 fi 6728 ;; 6729 *) 6730 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6731 LD="${LD-ld} -64" 6732 fi 6733 ;; 6734 esac 6735 ;; 6736 esac 6737 fi 6738 rm -rf conftest* 6739 ;; 6740esac 6741 6742need_locks="$enable_libtool_lock" 6743 6744if test -n "$ac_tool_prefix"; then 6745 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6746set dummy ${ac_tool_prefix}mt; ac_word=$2 6747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6748$as_echo_n "checking for $ac_word... " >&6; } 6749if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6750 $as_echo_n "(cached) " >&6 6751else 6752 if test -n "$MANIFEST_TOOL"; then 6753 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6754else 6755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6756for as_dir in $PATH 6757do 6758 IFS=$as_save_IFS 6759 test -z "$as_dir" && as_dir=. 6760 for ac_exec_ext in '' $ac_executable_extensions; do 6761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6762 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6764 break 2 6765 fi 6766done 6767 done 6768IFS=$as_save_IFS 6769 6770fi 6771fi 6772MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6773if test -n "$MANIFEST_TOOL"; then 6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6775$as_echo "$MANIFEST_TOOL" >&6; } 6776else 6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6778$as_echo "no" >&6; } 6779fi 6780 6781 6782fi 6783if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6784 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6785 # Extract the first word of "mt", so it can be a program name with args. 6786set dummy mt; ac_word=$2 6787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6788$as_echo_n "checking for $ac_word... " >&6; } 6789if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6790 $as_echo_n "(cached) " >&6 6791else 6792 if test -n "$ac_ct_MANIFEST_TOOL"; then 6793 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6794else 6795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6796for as_dir in $PATH 6797do 6798 IFS=$as_save_IFS 6799 test -z "$as_dir" && as_dir=. 6800 for ac_exec_ext in '' $ac_executable_extensions; do 6801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6802 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6804 break 2 6805 fi 6806done 6807 done 6808IFS=$as_save_IFS 6809 6810fi 6811fi 6812ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6813if test -n "$ac_ct_MANIFEST_TOOL"; then 6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6815$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6816else 6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6818$as_echo "no" >&6; } 6819fi 6820 6821 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6822 MANIFEST_TOOL=":" 6823 else 6824 case $cross_compiling:$ac_tool_warned in 6825yes:) 6826{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6827$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6828ac_tool_warned=yes ;; 6829esac 6830 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6831 fi 6832else 6833 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6834fi 6835 6836test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6838$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6839if ${lt_cv_path_mainfest_tool+:} false; then : 6840 $as_echo_n "(cached) " >&6 6841else 6842 lt_cv_path_mainfest_tool=no 6843 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6844 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6845 cat conftest.err >&5 6846 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6847 lt_cv_path_mainfest_tool=yes 6848 fi 6849 rm -f conftest* 6850fi 6851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6852$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6853if test "x$lt_cv_path_mainfest_tool" != xyes; then 6854 MANIFEST_TOOL=: 6855fi 6856 6857 6858 6859 6860 6861 6862 case $host_os in 6863 rhapsody* | darwin*) 6864 if test -n "$ac_tool_prefix"; then 6865 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6866set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6868$as_echo_n "checking for $ac_word... " >&6; } 6869if ${ac_cv_prog_DSYMUTIL+:} false; then : 6870 $as_echo_n "(cached) " >&6 6871else 6872 if test -n "$DSYMUTIL"; then 6873 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6874else 6875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6876for as_dir in $PATH 6877do 6878 IFS=$as_save_IFS 6879 test -z "$as_dir" && as_dir=. 6880 for ac_exec_ext in '' $ac_executable_extensions; do 6881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6882 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6884 break 2 6885 fi 6886done 6887 done 6888IFS=$as_save_IFS 6889 6890fi 6891fi 6892DSYMUTIL=$ac_cv_prog_DSYMUTIL 6893if test -n "$DSYMUTIL"; then 6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6895$as_echo "$DSYMUTIL" >&6; } 6896else 6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6898$as_echo "no" >&6; } 6899fi 6900 6901 6902fi 6903if test -z "$ac_cv_prog_DSYMUTIL"; then 6904 ac_ct_DSYMUTIL=$DSYMUTIL 6905 # Extract the first word of "dsymutil", so it can be a program name with args. 6906set dummy dsymutil; ac_word=$2 6907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6908$as_echo_n "checking for $ac_word... " >&6; } 6909if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6910 $as_echo_n "(cached) " >&6 6911else 6912 if test -n "$ac_ct_DSYMUTIL"; then 6913 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6914else 6915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6916for as_dir in $PATH 6917do 6918 IFS=$as_save_IFS 6919 test -z "$as_dir" && as_dir=. 6920 for ac_exec_ext in '' $ac_executable_extensions; do 6921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6922 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6924 break 2 6925 fi 6926done 6927 done 6928IFS=$as_save_IFS 6929 6930fi 6931fi 6932ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6933if test -n "$ac_ct_DSYMUTIL"; then 6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6935$as_echo "$ac_ct_DSYMUTIL" >&6; } 6936else 6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6938$as_echo "no" >&6; } 6939fi 6940 6941 if test "x$ac_ct_DSYMUTIL" = x; then 6942 DSYMUTIL=":" 6943 else 6944 case $cross_compiling:$ac_tool_warned in 6945yes:) 6946{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6947$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6948ac_tool_warned=yes ;; 6949esac 6950 DSYMUTIL=$ac_ct_DSYMUTIL 6951 fi 6952else 6953 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6954fi 6955 6956 if test -n "$ac_tool_prefix"; then 6957 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6958set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6960$as_echo_n "checking for $ac_word... " >&6; } 6961if ${ac_cv_prog_NMEDIT+:} false; then : 6962 $as_echo_n "(cached) " >&6 6963else 6964 if test -n "$NMEDIT"; then 6965 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6966else 6967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6968for as_dir in $PATH 6969do 6970 IFS=$as_save_IFS 6971 test -z "$as_dir" && as_dir=. 6972 for ac_exec_ext in '' $ac_executable_extensions; do 6973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6974 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6976 break 2 6977 fi 6978done 6979 done 6980IFS=$as_save_IFS 6981 6982fi 6983fi 6984NMEDIT=$ac_cv_prog_NMEDIT 6985if test -n "$NMEDIT"; then 6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6987$as_echo "$NMEDIT" >&6; } 6988else 6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6990$as_echo "no" >&6; } 6991fi 6992 6993 6994fi 6995if test -z "$ac_cv_prog_NMEDIT"; then 6996 ac_ct_NMEDIT=$NMEDIT 6997 # Extract the first word of "nmedit", so it can be a program name with args. 6998set dummy nmedit; ac_word=$2 6999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7000$as_echo_n "checking for $ac_word... " >&6; } 7001if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7002 $as_echo_n "(cached) " >&6 7003else 7004 if test -n "$ac_ct_NMEDIT"; then 7005 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7006else 7007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7008for as_dir in $PATH 7009do 7010 IFS=$as_save_IFS 7011 test -z "$as_dir" && as_dir=. 7012 for ac_exec_ext in '' $ac_executable_extensions; do 7013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7014 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7016 break 2 7017 fi 7018done 7019 done 7020IFS=$as_save_IFS 7021 7022fi 7023fi 7024ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7025if test -n "$ac_ct_NMEDIT"; then 7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7027$as_echo "$ac_ct_NMEDIT" >&6; } 7028else 7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7030$as_echo "no" >&6; } 7031fi 7032 7033 if test "x$ac_ct_NMEDIT" = x; then 7034 NMEDIT=":" 7035 else 7036 case $cross_compiling:$ac_tool_warned in 7037yes:) 7038{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7039$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7040ac_tool_warned=yes ;; 7041esac 7042 NMEDIT=$ac_ct_NMEDIT 7043 fi 7044else 7045 NMEDIT="$ac_cv_prog_NMEDIT" 7046fi 7047 7048 if test -n "$ac_tool_prefix"; then 7049 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7050set dummy ${ac_tool_prefix}lipo; ac_word=$2 7051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7052$as_echo_n "checking for $ac_word... " >&6; } 7053if ${ac_cv_prog_LIPO+:} false; then : 7054 $as_echo_n "(cached) " >&6 7055else 7056 if test -n "$LIPO"; then 7057 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7058else 7059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7060for as_dir in $PATH 7061do 7062 IFS=$as_save_IFS 7063 test -z "$as_dir" && as_dir=. 7064 for ac_exec_ext in '' $ac_executable_extensions; do 7065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7066 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7068 break 2 7069 fi 7070done 7071 done 7072IFS=$as_save_IFS 7073 7074fi 7075fi 7076LIPO=$ac_cv_prog_LIPO 7077if test -n "$LIPO"; then 7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7079$as_echo "$LIPO" >&6; } 7080else 7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7082$as_echo "no" >&6; } 7083fi 7084 7085 7086fi 7087if test -z "$ac_cv_prog_LIPO"; then 7088 ac_ct_LIPO=$LIPO 7089 # Extract the first word of "lipo", so it can be a program name with args. 7090set dummy lipo; ac_word=$2 7091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7092$as_echo_n "checking for $ac_word... " >&6; } 7093if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7094 $as_echo_n "(cached) " >&6 7095else 7096 if test -n "$ac_ct_LIPO"; then 7097 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7098else 7099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7100for as_dir in $PATH 7101do 7102 IFS=$as_save_IFS 7103 test -z "$as_dir" && as_dir=. 7104 for ac_exec_ext in '' $ac_executable_extensions; do 7105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7106 ac_cv_prog_ac_ct_LIPO="lipo" 7107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7108 break 2 7109 fi 7110done 7111 done 7112IFS=$as_save_IFS 7113 7114fi 7115fi 7116ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7117if test -n "$ac_ct_LIPO"; then 7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7119$as_echo "$ac_ct_LIPO" >&6; } 7120else 7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7122$as_echo "no" >&6; } 7123fi 7124 7125 if test "x$ac_ct_LIPO" = x; then 7126 LIPO=":" 7127 else 7128 case $cross_compiling:$ac_tool_warned in 7129yes:) 7130{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7131$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7132ac_tool_warned=yes ;; 7133esac 7134 LIPO=$ac_ct_LIPO 7135 fi 7136else 7137 LIPO="$ac_cv_prog_LIPO" 7138fi 7139 7140 if test -n "$ac_tool_prefix"; then 7141 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7142set dummy ${ac_tool_prefix}otool; ac_word=$2 7143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7144$as_echo_n "checking for $ac_word... " >&6; } 7145if ${ac_cv_prog_OTOOL+:} false; then : 7146 $as_echo_n "(cached) " >&6 7147else 7148 if test -n "$OTOOL"; then 7149 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7150else 7151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7152for as_dir in $PATH 7153do 7154 IFS=$as_save_IFS 7155 test -z "$as_dir" && as_dir=. 7156 for ac_exec_ext in '' $ac_executable_extensions; do 7157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7158 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7160 break 2 7161 fi 7162done 7163 done 7164IFS=$as_save_IFS 7165 7166fi 7167fi 7168OTOOL=$ac_cv_prog_OTOOL 7169if test -n "$OTOOL"; then 7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7171$as_echo "$OTOOL" >&6; } 7172else 7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7174$as_echo "no" >&6; } 7175fi 7176 7177 7178fi 7179if test -z "$ac_cv_prog_OTOOL"; then 7180 ac_ct_OTOOL=$OTOOL 7181 # Extract the first word of "otool", so it can be a program name with args. 7182set dummy otool; ac_word=$2 7183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7184$as_echo_n "checking for $ac_word... " >&6; } 7185if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7186 $as_echo_n "(cached) " >&6 7187else 7188 if test -n "$ac_ct_OTOOL"; then 7189 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7190else 7191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7192for as_dir in $PATH 7193do 7194 IFS=$as_save_IFS 7195 test -z "$as_dir" && as_dir=. 7196 for ac_exec_ext in '' $ac_executable_extensions; do 7197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7198 ac_cv_prog_ac_ct_OTOOL="otool" 7199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7200 break 2 7201 fi 7202done 7203 done 7204IFS=$as_save_IFS 7205 7206fi 7207fi 7208ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7209if test -n "$ac_ct_OTOOL"; then 7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7211$as_echo "$ac_ct_OTOOL" >&6; } 7212else 7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7214$as_echo "no" >&6; } 7215fi 7216 7217 if test "x$ac_ct_OTOOL" = x; then 7218 OTOOL=":" 7219 else 7220 case $cross_compiling:$ac_tool_warned in 7221yes:) 7222{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7223$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7224ac_tool_warned=yes ;; 7225esac 7226 OTOOL=$ac_ct_OTOOL 7227 fi 7228else 7229 OTOOL="$ac_cv_prog_OTOOL" 7230fi 7231 7232 if test -n "$ac_tool_prefix"; then 7233 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7234set dummy ${ac_tool_prefix}otool64; ac_word=$2 7235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7236$as_echo_n "checking for $ac_word... " >&6; } 7237if ${ac_cv_prog_OTOOL64+:} false; then : 7238 $as_echo_n "(cached) " >&6 7239else 7240 if test -n "$OTOOL64"; then 7241 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7242else 7243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7244for as_dir in $PATH 7245do 7246 IFS=$as_save_IFS 7247 test -z "$as_dir" && as_dir=. 7248 for ac_exec_ext in '' $ac_executable_extensions; do 7249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7250 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7252 break 2 7253 fi 7254done 7255 done 7256IFS=$as_save_IFS 7257 7258fi 7259fi 7260OTOOL64=$ac_cv_prog_OTOOL64 7261if test -n "$OTOOL64"; then 7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7263$as_echo "$OTOOL64" >&6; } 7264else 7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7266$as_echo "no" >&6; } 7267fi 7268 7269 7270fi 7271if test -z "$ac_cv_prog_OTOOL64"; then 7272 ac_ct_OTOOL64=$OTOOL64 7273 # Extract the first word of "otool64", so it can be a program name with args. 7274set dummy otool64; ac_word=$2 7275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7276$as_echo_n "checking for $ac_word... " >&6; } 7277if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7278 $as_echo_n "(cached) " >&6 7279else 7280 if test -n "$ac_ct_OTOOL64"; then 7281 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7282else 7283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7284for as_dir in $PATH 7285do 7286 IFS=$as_save_IFS 7287 test -z "$as_dir" && as_dir=. 7288 for ac_exec_ext in '' $ac_executable_extensions; do 7289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7290 ac_cv_prog_ac_ct_OTOOL64="otool64" 7291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7292 break 2 7293 fi 7294done 7295 done 7296IFS=$as_save_IFS 7297 7298fi 7299fi 7300ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7301if test -n "$ac_ct_OTOOL64"; then 7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7303$as_echo "$ac_ct_OTOOL64" >&6; } 7304else 7305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7306$as_echo "no" >&6; } 7307fi 7308 7309 if test "x$ac_ct_OTOOL64" = x; then 7310 OTOOL64=":" 7311 else 7312 case $cross_compiling:$ac_tool_warned in 7313yes:) 7314{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7315$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7316ac_tool_warned=yes ;; 7317esac 7318 OTOOL64=$ac_ct_OTOOL64 7319 fi 7320else 7321 OTOOL64="$ac_cv_prog_OTOOL64" 7322fi 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7351$as_echo_n "checking for -single_module linker flag... " >&6; } 7352if ${lt_cv_apple_cc_single_mod+:} false; then : 7353 $as_echo_n "(cached) " >&6 7354else 7355 lt_cv_apple_cc_single_mod=no 7356 if test -z "${LT_MULTI_MODULE}"; then 7357 # By default we will add the -single_module flag. You can override 7358 # by either setting the environment variable LT_MULTI_MODULE 7359 # non-empty at configure time, or by adding -multi_module to the 7360 # link flags. 7361 rm -rf libconftest.dylib* 7362 echo "int foo(void){return 1;}" > conftest.c 7363 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7364-dynamiclib -Wl,-single_module conftest.c" >&5 7365 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7366 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7367 _lt_result=$? 7368 # If there is a non-empty error log, and "single_module" 7369 # appears in it, assume the flag caused a linker warning 7370 if test -s conftest.err && $GREP single_module conftest.err; then 7371 cat conftest.err >&5 7372 # Otherwise, if the output was created with a 0 exit code from 7373 # the compiler, it worked. 7374 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7375 lt_cv_apple_cc_single_mod=yes 7376 else 7377 cat conftest.err >&5 7378 fi 7379 rm -rf libconftest.dylib* 7380 rm -f conftest.* 7381 fi 7382fi 7383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7384$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7385 7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7387$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7388if ${lt_cv_ld_exported_symbols_list+:} false; then : 7389 $as_echo_n "(cached) " >&6 7390else 7391 lt_cv_ld_exported_symbols_list=no 7392 save_LDFLAGS=$LDFLAGS 7393 echo "_main" > conftest.sym 7394 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7396/* end confdefs.h. */ 7397 7398int 7399main () 7400{ 7401 7402 ; 7403 return 0; 7404} 7405_ACEOF 7406if ac_fn_c_try_link "$LINENO"; then : 7407 lt_cv_ld_exported_symbols_list=yes 7408else 7409 lt_cv_ld_exported_symbols_list=no 7410fi 7411rm -f core conftest.err conftest.$ac_objext \ 7412 conftest$ac_exeext conftest.$ac_ext 7413 LDFLAGS="$save_LDFLAGS" 7414 7415fi 7416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7417$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7418 7419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7420$as_echo_n "checking for -force_load linker flag... " >&6; } 7421if ${lt_cv_ld_force_load+:} false; then : 7422 $as_echo_n "(cached) " >&6 7423else 7424 lt_cv_ld_force_load=no 7425 cat > conftest.c << _LT_EOF 7426int forced_loaded() { return 2;} 7427_LT_EOF 7428 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7429 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7430 echo "$AR cru libconftest.a conftest.o" >&5 7431 $AR cru libconftest.a conftest.o 2>&5 7432 echo "$RANLIB libconftest.a" >&5 7433 $RANLIB libconftest.a 2>&5 7434 cat > conftest.c << _LT_EOF 7435int main() { return 0;} 7436_LT_EOF 7437 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7438 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7439 _lt_result=$? 7440 if test -s conftest.err && $GREP force_load conftest.err; then 7441 cat conftest.err >&5 7442 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7443 lt_cv_ld_force_load=yes 7444 else 7445 cat conftest.err >&5 7446 fi 7447 rm -f conftest.err libconftest.a conftest conftest.c 7448 rm -rf conftest.dSYM 7449 7450fi 7451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7452$as_echo "$lt_cv_ld_force_load" >&6; } 7453 case $host_os in 7454 rhapsody* | darwin1.[012]) 7455 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7456 darwin1.*) 7457 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7458 darwin*) # darwin 5.x on 7459 # if running on 10.5 or later, the deployment target defaults 7460 # to the OS version, if on x86, and 10.4, the deployment 7461 # target defaults to 10.4. Don't you love it? 7462 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7463 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7464 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7465 10.[012]*) 7466 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7467 10.*) 7468 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7469 esac 7470 ;; 7471 esac 7472 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7473 _lt_dar_single_mod='$single_module' 7474 fi 7475 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7476 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7477 else 7478 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7479 fi 7480 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7481 _lt_dsymutil='~$DSYMUTIL $lib || :' 7482 else 7483 _lt_dsymutil= 7484 fi 7485 ;; 7486 esac 7487 7488ac_ext=c 7489ac_cpp='$CPP $CPPFLAGS' 7490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7492ac_compiler_gnu=$ac_cv_c_compiler_gnu 7493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7494$as_echo_n "checking how to run the C preprocessor... " >&6; } 7495# On Suns, sometimes $CPP names a directory. 7496if test -n "$CPP" && test -d "$CPP"; then 7497 CPP= 7498fi 7499if test -z "$CPP"; then 7500 if ${ac_cv_prog_CPP+:} false; then : 7501 $as_echo_n "(cached) " >&6 7502else 7503 # Double quotes because CPP needs to be expanded 7504 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7505 do 7506 ac_preproc_ok=false 7507for ac_c_preproc_warn_flag in '' yes 7508do 7509 # Use a header file that comes with gcc, so configuring glibc 7510 # with a fresh cross-compiler works. 7511 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7512 # <limits.h> exists even on freestanding compilers. 7513 # On the NeXT, cc -E runs the code through the compiler's parser, 7514 # not just through cpp. "Syntax error" is here to catch this case. 7515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7516/* end confdefs.h. */ 7517@%:@ifdef __STDC__ 7518@%:@ include <limits.h> 7519@%:@else 7520@%:@ include <assert.h> 7521@%:@endif 7522 Syntax error 7523_ACEOF 7524if ac_fn_c_try_cpp "$LINENO"; then : 7525 7526else 7527 # Broken: fails on valid input. 7528continue 7529fi 7530rm -f conftest.err conftest.i conftest.$ac_ext 7531 7532 # OK, works on sane cases. Now check whether nonexistent headers 7533 # can be detected and how. 7534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7535/* end confdefs.h. */ 7536@%:@include <ac_nonexistent.h> 7537_ACEOF 7538if ac_fn_c_try_cpp "$LINENO"; then : 7539 # Broken: success on invalid input. 7540continue 7541else 7542 # Passes both tests. 7543ac_preproc_ok=: 7544break 7545fi 7546rm -f conftest.err conftest.i conftest.$ac_ext 7547 7548done 7549# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7550rm -f conftest.i conftest.err conftest.$ac_ext 7551if $ac_preproc_ok; then : 7552 break 7553fi 7554 7555 done 7556 ac_cv_prog_CPP=$CPP 7557 7558fi 7559 CPP=$ac_cv_prog_CPP 7560else 7561 ac_cv_prog_CPP=$CPP 7562fi 7563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7564$as_echo "$CPP" >&6; } 7565ac_preproc_ok=false 7566for ac_c_preproc_warn_flag in '' yes 7567do 7568 # Use a header file that comes with gcc, so configuring glibc 7569 # with a fresh cross-compiler works. 7570 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7571 # <limits.h> exists even on freestanding compilers. 7572 # On the NeXT, cc -E runs the code through the compiler's parser, 7573 # not just through cpp. "Syntax error" is here to catch this case. 7574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7575/* end confdefs.h. */ 7576@%:@ifdef __STDC__ 7577@%:@ include <limits.h> 7578@%:@else 7579@%:@ include <assert.h> 7580@%:@endif 7581 Syntax error 7582_ACEOF 7583if ac_fn_c_try_cpp "$LINENO"; then : 7584 7585else 7586 # Broken: fails on valid input. 7587continue 7588fi 7589rm -f conftest.err conftest.i conftest.$ac_ext 7590 7591 # OK, works on sane cases. Now check whether nonexistent headers 7592 # can be detected and how. 7593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7594/* end confdefs.h. */ 7595@%:@include <ac_nonexistent.h> 7596_ACEOF 7597if ac_fn_c_try_cpp "$LINENO"; then : 7598 # Broken: success on invalid input. 7599continue 7600else 7601 # Passes both tests. 7602ac_preproc_ok=: 7603break 7604fi 7605rm -f conftest.err conftest.i conftest.$ac_ext 7606 7607done 7608# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7609rm -f conftest.i conftest.err conftest.$ac_ext 7610if $ac_preproc_ok; then : 7611 7612else 7613 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7614$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7615as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7616See \`config.log' for more details" "$LINENO" 5; } 7617fi 7618 7619ac_ext=c 7620ac_cpp='$CPP $CPPFLAGS' 7621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7623ac_compiler_gnu=$ac_cv_c_compiler_gnu 7624 7625 7626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7627$as_echo_n "checking for ANSI C header files... " >&6; } 7628if ${ac_cv_header_stdc+:} false; then : 7629 $as_echo_n "(cached) " >&6 7630else 7631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7632/* end confdefs.h. */ 7633#include <stdlib.h> 7634#include <stdarg.h> 7635#include <string.h> 7636#include <float.h> 7637 7638int 7639main () 7640{ 7641 7642 ; 7643 return 0; 7644} 7645_ACEOF 7646if ac_fn_c_try_compile "$LINENO"; then : 7647 ac_cv_header_stdc=yes 7648else 7649 ac_cv_header_stdc=no 7650fi 7651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7652 7653if test $ac_cv_header_stdc = yes; then 7654 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7656/* end confdefs.h. */ 7657#include <string.h> 7658 7659_ACEOF 7660if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7661 $EGREP "memchr" >/dev/null 2>&1; then : 7662 7663else 7664 ac_cv_header_stdc=no 7665fi 7666rm -f conftest* 7667 7668fi 7669 7670if test $ac_cv_header_stdc = yes; then 7671 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7673/* end confdefs.h. */ 7674#include <stdlib.h> 7675 7676_ACEOF 7677if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7678 $EGREP "free" >/dev/null 2>&1; then : 7679 7680else 7681 ac_cv_header_stdc=no 7682fi 7683rm -f conftest* 7684 7685fi 7686 7687if test $ac_cv_header_stdc = yes; then 7688 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7689 if test "$cross_compiling" = yes; then : 7690 : 7691else 7692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7693/* end confdefs.h. */ 7694#include <ctype.h> 7695#include <stdlib.h> 7696#if ((' ' & 0x0FF) == 0x020) 7697# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7698# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7699#else 7700# define ISLOWER(c) \ 7701 (('a' <= (c) && (c) <= 'i') \ 7702 || ('j' <= (c) && (c) <= 'r') \ 7703 || ('s' <= (c) && (c) <= 'z')) 7704# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7705#endif 7706 7707#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7708int 7709main () 7710{ 7711 int i; 7712 for (i = 0; i < 256; i++) 7713 if (XOR (islower (i), ISLOWER (i)) 7714 || toupper (i) != TOUPPER (i)) 7715 return 2; 7716 return 0; 7717} 7718_ACEOF 7719if ac_fn_c_try_run "$LINENO"; then : 7720 7721else 7722 ac_cv_header_stdc=no 7723fi 7724rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7725 conftest.$ac_objext conftest.beam conftest.$ac_ext 7726fi 7727 7728fi 7729fi 7730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7731$as_echo "$ac_cv_header_stdc" >&6; } 7732if test $ac_cv_header_stdc = yes; then 7733 7734$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h 7735 7736fi 7737 7738# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7739for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7740 inttypes.h stdint.h unistd.h 7741do : 7742 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7743ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7744" 7745if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7746 cat >>confdefs.h <<_ACEOF 7747@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7748_ACEOF 7749 7750fi 7751 7752done 7753 7754 7755for ac_header in dlfcn.h 7756do : 7757 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7758" 7759if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7760 cat >>confdefs.h <<_ACEOF 7761@%:@define HAVE_DLFCN_H 1 7762_ACEOF 7763 7764fi 7765 7766done 7767 7768 7769 7770 7771 7772# Set options 7773 7774 7775 7776 enable_dlopen=no 7777 7778 7779 enable_win32_dll=no 7780 7781 7782 @%:@ Check whether --enable-shared was given. 7783if test "${enable_shared+set}" = set; then : 7784 enableval=$enable_shared; p=${PACKAGE-default} 7785 case $enableval in 7786 yes) enable_shared=yes ;; 7787 no) enable_shared=no ;; 7788 *) 7789 enable_shared=no 7790 # Look at the argument we got. We use all the common list separators. 7791 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7792 for pkg in $enableval; do 7793 IFS="$lt_save_ifs" 7794 if test "X$pkg" = "X$p"; then 7795 enable_shared=yes 7796 fi 7797 done 7798 IFS="$lt_save_ifs" 7799 ;; 7800 esac 7801else 7802 enable_shared=yes 7803fi 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 @%:@ Check whether --enable-static was given. 7814if test "${enable_static+set}" = set; then : 7815 enableval=$enable_static; p=${PACKAGE-default} 7816 case $enableval in 7817 yes) enable_static=yes ;; 7818 no) enable_static=no ;; 7819 *) 7820 enable_static=no 7821 # Look at the argument we got. We use all the common list separators. 7822 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7823 for pkg in $enableval; do 7824 IFS="$lt_save_ifs" 7825 if test "X$pkg" = "X$p"; then 7826 enable_static=yes 7827 fi 7828 done 7829 IFS="$lt_save_ifs" 7830 ;; 7831 esac 7832else 7833 enable_static=yes 7834fi 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845@%:@ Check whether --with-pic was given. 7846if test "${with_pic+set}" = set; then : 7847 withval=$with_pic; lt_p=${PACKAGE-default} 7848 case $withval in 7849 yes|no) pic_mode=$withval ;; 7850 *) 7851 pic_mode=default 7852 # Look at the argument we got. We use all the common list separators. 7853 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7854 for lt_pkg in $withval; do 7855 IFS="$lt_save_ifs" 7856 if test "X$lt_pkg" = "X$lt_p"; then 7857 pic_mode=yes 7858 fi 7859 done 7860 IFS="$lt_save_ifs" 7861 ;; 7862 esac 7863else 7864 pic_mode=default 7865fi 7866 7867 7868test -z "$pic_mode" && pic_mode=default 7869 7870 7871 7872 7873 7874 7875 7876 @%:@ Check whether --enable-fast-install was given. 7877if test "${enable_fast_install+set}" = set; then : 7878 enableval=$enable_fast_install; p=${PACKAGE-default} 7879 case $enableval in 7880 yes) enable_fast_install=yes ;; 7881 no) enable_fast_install=no ;; 7882 *) 7883 enable_fast_install=no 7884 # Look at the argument we got. We use all the common list separators. 7885 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7886 for pkg in $enableval; do 7887 IFS="$lt_save_ifs" 7888 if test "X$pkg" = "X$p"; then 7889 enable_fast_install=yes 7890 fi 7891 done 7892 IFS="$lt_save_ifs" 7893 ;; 7894 esac 7895else 7896 enable_fast_install=yes 7897fi 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909# This can be used to rebuild libtool when needed 7910LIBTOOL_DEPS="$ltmain" 7911 7912# Always use our own libtool. 7913LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944test -z "$LN_S" && LN_S="ln -s" 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959if test -n "${ZSH_VERSION+set}" ; then 7960 setopt NO_GLOB_SUBST 7961fi 7962 7963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7964$as_echo_n "checking for objdir... " >&6; } 7965if ${lt_cv_objdir+:} false; then : 7966 $as_echo_n "(cached) " >&6 7967else 7968 rm -f .libs 2>/dev/null 7969mkdir .libs 2>/dev/null 7970if test -d .libs; then 7971 lt_cv_objdir=.libs 7972else 7973 # MS-DOS does not allow filenames that begin with a dot. 7974 lt_cv_objdir=_libs 7975fi 7976rmdir .libs 2>/dev/null 7977fi 7978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7979$as_echo "$lt_cv_objdir" >&6; } 7980objdir=$lt_cv_objdir 7981 7982 7983 7984 7985 7986cat >>confdefs.h <<_ACEOF 7987@%:@define LT_OBJDIR "$lt_cv_objdir/" 7988_ACEOF 7989 7990 7991 7992 7993case $host_os in 7994aix3*) 7995 # AIX sometimes has problems with the GCC collect2 program. For some 7996 # reason, if we set the COLLECT_NAMES environment variable, the problems 7997 # vanish in a puff of smoke. 7998 if test "X${COLLECT_NAMES+set}" != Xset; then 7999 COLLECT_NAMES= 8000 export COLLECT_NAMES 8001 fi 8002 ;; 8003esac 8004 8005# Global variables: 8006ofile=libtool 8007can_build_shared=yes 8008 8009# All known linkers require a `.a' archive for static linking (except MSVC, 8010# which needs '.lib'). 8011libext=a 8012 8013with_gnu_ld="$lt_cv_prog_gnu_ld" 8014 8015old_CC="$CC" 8016old_CFLAGS="$CFLAGS" 8017 8018# Set sane defaults for various variables 8019test -z "$CC" && CC=cc 8020test -z "$LTCC" && LTCC=$CC 8021test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8022test -z "$LD" && LD=ld 8023test -z "$ac_objext" && ac_objext=o 8024 8025for cc_temp in $compiler""; do 8026 case $cc_temp in 8027 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8028 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8029 \-*) ;; 8030 *) break;; 8031 esac 8032done 8033cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8034 8035 8036# Only perform the check for file, if the check method requires it 8037test -z "$MAGIC_CMD" && MAGIC_CMD=file 8038case $deplibs_check_method in 8039file_magic*) 8040 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8042$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8043if ${lt_cv_path_MAGIC_CMD+:} false; then : 8044 $as_echo_n "(cached) " >&6 8045else 8046 case $MAGIC_CMD in 8047[\\/*] | ?:[\\/]*) 8048 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8049 ;; 8050*) 8051 lt_save_MAGIC_CMD="$MAGIC_CMD" 8052 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8053 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8054 for ac_dir in $ac_dummy; do 8055 IFS="$lt_save_ifs" 8056 test -z "$ac_dir" && ac_dir=. 8057 if test -f $ac_dir/${ac_tool_prefix}file; then 8058 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8059 if test -n "$file_magic_test_file"; then 8060 case $deplibs_check_method in 8061 "file_magic "*) 8062 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8063 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8064 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8065 $EGREP "$file_magic_regex" > /dev/null; then 8066 : 8067 else 8068 cat <<_LT_EOF 1>&2 8069 8070*** Warning: the command libtool uses to detect shared libraries, 8071*** $file_magic_cmd, produces output that libtool cannot recognize. 8072*** The result is that libtool may fail to recognize shared libraries 8073*** as such. This will affect the creation of libtool libraries that 8074*** depend on shared libraries, but programs linked with such libtool 8075*** libraries will work regardless of this problem. Nevertheless, you 8076*** may want to report the problem to your system manager and/or to 8077*** bug-libtool@gnu.org 8078 8079_LT_EOF 8080 fi ;; 8081 esac 8082 fi 8083 break 8084 fi 8085 done 8086 IFS="$lt_save_ifs" 8087 MAGIC_CMD="$lt_save_MAGIC_CMD" 8088 ;; 8089esac 8090fi 8091 8092MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8093if test -n "$MAGIC_CMD"; then 8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8095$as_echo "$MAGIC_CMD" >&6; } 8096else 8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8098$as_echo "no" >&6; } 8099fi 8100 8101 8102 8103 8104 8105if test -z "$lt_cv_path_MAGIC_CMD"; then 8106 if test -n "$ac_tool_prefix"; then 8107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8108$as_echo_n "checking for file... " >&6; } 8109if ${lt_cv_path_MAGIC_CMD+:} false; then : 8110 $as_echo_n "(cached) " >&6 8111else 8112 case $MAGIC_CMD in 8113[\\/*] | ?:[\\/]*) 8114 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8115 ;; 8116*) 8117 lt_save_MAGIC_CMD="$MAGIC_CMD" 8118 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8119 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8120 for ac_dir in $ac_dummy; do 8121 IFS="$lt_save_ifs" 8122 test -z "$ac_dir" && ac_dir=. 8123 if test -f $ac_dir/file; then 8124 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8125 if test -n "$file_magic_test_file"; then 8126 case $deplibs_check_method in 8127 "file_magic "*) 8128 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8129 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8130 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8131 $EGREP "$file_magic_regex" > /dev/null; then 8132 : 8133 else 8134 cat <<_LT_EOF 1>&2 8135 8136*** Warning: the command libtool uses to detect shared libraries, 8137*** $file_magic_cmd, produces output that libtool cannot recognize. 8138*** The result is that libtool may fail to recognize shared libraries 8139*** as such. This will affect the creation of libtool libraries that 8140*** depend on shared libraries, but programs linked with such libtool 8141*** libraries will work regardless of this problem. Nevertheless, you 8142*** may want to report the problem to your system manager and/or to 8143*** bug-libtool@gnu.org 8144 8145_LT_EOF 8146 fi ;; 8147 esac 8148 fi 8149 break 8150 fi 8151 done 8152 IFS="$lt_save_ifs" 8153 MAGIC_CMD="$lt_save_MAGIC_CMD" 8154 ;; 8155esac 8156fi 8157 8158MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8159if test -n "$MAGIC_CMD"; then 8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8161$as_echo "$MAGIC_CMD" >&6; } 8162else 8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8164$as_echo "no" >&6; } 8165fi 8166 8167 8168 else 8169 MAGIC_CMD=: 8170 fi 8171fi 8172 8173 fi 8174 ;; 8175esac 8176 8177# Use C for the default configuration in the libtool script 8178 8179lt_save_CC="$CC" 8180ac_ext=c 8181ac_cpp='$CPP $CPPFLAGS' 8182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8184ac_compiler_gnu=$ac_cv_c_compiler_gnu 8185 8186 8187# Source file extension for C test sources. 8188ac_ext=c 8189 8190# Object file extension for compiled C test sources. 8191objext=o 8192objext=$objext 8193 8194# Code to be used in simple compile tests 8195lt_simple_compile_test_code="int some_variable = 0;" 8196 8197# Code to be used in simple link tests 8198lt_simple_link_test_code='int main(){return(0);}' 8199 8200 8201 8202 8203 8204 8205 8206# If no C compiler was specified, use CC. 8207LTCC=${LTCC-"$CC"} 8208 8209# If no C compiler flags were specified, use CFLAGS. 8210LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8211 8212# Allow CC to be a program name with arguments. 8213compiler=$CC 8214 8215# Save the default compiler, since it gets overwritten when the other 8216# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8217compiler_DEFAULT=$CC 8218 8219# save warnings/boilerplate of simple test code 8220ac_outfile=conftest.$ac_objext 8221echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8222eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8223_lt_compiler_boilerplate=`cat conftest.err` 8224$RM conftest* 8225 8226ac_outfile=conftest.$ac_objext 8227echo "$lt_simple_link_test_code" >conftest.$ac_ext 8228eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8229_lt_linker_boilerplate=`cat conftest.err` 8230$RM -r conftest* 8231 8232 8233## CAVEAT EMPTOR: 8234## There is no encapsulation within the following macros, do not change 8235## the running order or otherwise move them around unless you know exactly 8236## what you are doing... 8237if test -n "$compiler"; then 8238 8239lt_prog_compiler_no_builtin_flag= 8240 8241if test "$GCC" = yes; then 8242 case $cc_basename in 8243 nvcc*) 8244 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8245 *) 8246 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8247 esac 8248 8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8250$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8251if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8252 $as_echo_n "(cached) " >&6 8253else 8254 lt_cv_prog_compiler_rtti_exceptions=no 8255 ac_outfile=conftest.$ac_objext 8256 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8257 lt_compiler_flag="-fno-rtti -fno-exceptions" 8258 # Insert the option either (1) after the last *FLAGS variable, or 8259 # (2) before a word containing "conftest.", or (3) at the end. 8260 # Note that $ac_compile itself does not contain backslashes and begins 8261 # with a dollar sign (not a hyphen), so the echo should work correctly. 8262 # The option is referenced via a variable to avoid confusing sed. 8263 lt_compile=`echo "$ac_compile" | $SED \ 8264 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8265 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8266 -e 's:$: $lt_compiler_flag:'` 8267 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8268 (eval "$lt_compile" 2>conftest.err) 8269 ac_status=$? 8270 cat conftest.err >&5 8271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8272 if (exit $ac_status) && test -s "$ac_outfile"; then 8273 # The compiler can only warn and ignore the option if not recognized 8274 # So say no if there are warnings other than the usual output. 8275 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8276 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8277 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8278 lt_cv_prog_compiler_rtti_exceptions=yes 8279 fi 8280 fi 8281 $RM conftest* 8282 8283fi 8284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8285$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8286 8287if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8288 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8289else 8290 : 8291fi 8292 8293fi 8294 8295 8296 8297 8298 8299 8300 lt_prog_compiler_wl= 8301lt_prog_compiler_pic= 8302lt_prog_compiler_static= 8303 8304 8305 if test "$GCC" = yes; then 8306 lt_prog_compiler_wl='-Wl,' 8307 lt_prog_compiler_static='-static' 8308 8309 case $host_os in 8310 aix*) 8311 # All AIX code is PIC. 8312 if test "$host_cpu" = ia64; then 8313 # AIX 5 now supports IA64 processor 8314 lt_prog_compiler_static='-Bstatic' 8315 fi 8316 ;; 8317 8318 amigaos*) 8319 case $host_cpu in 8320 powerpc) 8321 # see comment about AmigaOS4 .so support 8322 lt_prog_compiler_pic='-fPIC' 8323 ;; 8324 m68k) 8325 # FIXME: we need at least 68020 code to build shared libraries, but 8326 # adding the `-m68020' flag to GCC prevents building anything better, 8327 # like `-m68040'. 8328 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8329 ;; 8330 esac 8331 ;; 8332 8333 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8334 # PIC is the default for these OSes. 8335 ;; 8336 8337 mingw* | cygwin* | pw32* | os2* | cegcc*) 8338 # This hack is so that the source file can tell whether it is being 8339 # built for inclusion in a dll (and should export symbols for example). 8340 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8341 # (--disable-auto-import) libraries 8342 lt_prog_compiler_pic='-DDLL_EXPORT' 8343 ;; 8344 8345 darwin* | rhapsody*) 8346 # PIC is the default on this platform 8347 # Common symbols not allowed in MH_DYLIB files 8348 lt_prog_compiler_pic='-fno-common' 8349 ;; 8350 8351 haiku*) 8352 # PIC is the default for Haiku. 8353 # The "-static" flag exists, but is broken. 8354 lt_prog_compiler_static= 8355 ;; 8356 8357 hpux*) 8358 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8359 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8360 # sets the default TLS model and affects inlining. 8361 case $host_cpu in 8362 hppa*64*) 8363 # +Z the default 8364 ;; 8365 *) 8366 lt_prog_compiler_pic='-fPIC' 8367 ;; 8368 esac 8369 ;; 8370 8371 interix[3-9]*) 8372 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8373 # Instead, we relocate shared libraries at runtime. 8374 ;; 8375 8376 msdosdjgpp*) 8377 # Just because we use GCC doesn't mean we suddenly get shared libraries 8378 # on systems that don't support them. 8379 lt_prog_compiler_can_build_shared=no 8380 enable_shared=no 8381 ;; 8382 8383 *nto* | *qnx*) 8384 # QNX uses GNU C++, but need to define -shared option too, otherwise 8385 # it will coredump. 8386 lt_prog_compiler_pic='-fPIC -shared' 8387 ;; 8388 8389 sysv4*MP*) 8390 if test -d /usr/nec; then 8391 lt_prog_compiler_pic=-Kconform_pic 8392 fi 8393 ;; 8394 8395 *) 8396 lt_prog_compiler_pic='-fPIC' 8397 ;; 8398 esac 8399 8400 case $cc_basename in 8401 nvcc*) # Cuda Compiler Driver 2.2 8402 lt_prog_compiler_wl='-Xlinker ' 8403 if test -n "$lt_prog_compiler_pic"; then 8404 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8405 fi 8406 ;; 8407 esac 8408 else 8409 # PORTME Check for flag to pass linker flags through the system compiler. 8410 case $host_os in 8411 aix*) 8412 lt_prog_compiler_wl='-Wl,' 8413 if test "$host_cpu" = ia64; then 8414 # AIX 5 now supports IA64 processor 8415 lt_prog_compiler_static='-Bstatic' 8416 else 8417 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8418 fi 8419 ;; 8420 8421 mingw* | cygwin* | pw32* | os2* | cegcc*) 8422 # This hack is so that the source file can tell whether it is being 8423 # built for inclusion in a dll (and should export symbols for example). 8424 lt_prog_compiler_pic='-DDLL_EXPORT' 8425 ;; 8426 8427 hpux9* | hpux10* | hpux11*) 8428 lt_prog_compiler_wl='-Wl,' 8429 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8430 # not for PA HP-UX. 8431 case $host_cpu in 8432 hppa*64*|ia64*) 8433 # +Z the default 8434 ;; 8435 *) 8436 lt_prog_compiler_pic='+Z' 8437 ;; 8438 esac 8439 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8440 lt_prog_compiler_static='${wl}-a ${wl}archive' 8441 ;; 8442 8443 irix5* | irix6* | nonstopux*) 8444 lt_prog_compiler_wl='-Wl,' 8445 # PIC (with -KPIC) is the default. 8446 lt_prog_compiler_static='-non_shared' 8447 ;; 8448 8449 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8450 case $cc_basename in 8451 # old Intel for x86_64 which still supported -KPIC. 8452 ecc*) 8453 lt_prog_compiler_wl='-Wl,' 8454 lt_prog_compiler_pic='-KPIC' 8455 lt_prog_compiler_static='-static' 8456 ;; 8457 # icc used to be incompatible with GCC. 8458 # ICC 10 doesn't accept -KPIC any more. 8459 icc* | ifort*) 8460 lt_prog_compiler_wl='-Wl,' 8461 lt_prog_compiler_pic='-fPIC' 8462 lt_prog_compiler_static='-static' 8463 ;; 8464 # Lahey Fortran 8.1. 8465 lf95*) 8466 lt_prog_compiler_wl='-Wl,' 8467 lt_prog_compiler_pic='--shared' 8468 lt_prog_compiler_static='--static' 8469 ;; 8470 nagfor*) 8471 # NAG Fortran compiler 8472 lt_prog_compiler_wl='-Wl,-Wl,,' 8473 lt_prog_compiler_pic='-PIC' 8474 lt_prog_compiler_static='-Bstatic' 8475 ;; 8476 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8477 # Portland Group compilers (*not* the Pentium gcc compiler, 8478 # which looks to be a dead project) 8479 lt_prog_compiler_wl='-Wl,' 8480 lt_prog_compiler_pic='-fpic' 8481 lt_prog_compiler_static='-Bstatic' 8482 ;; 8483 ccc*) 8484 lt_prog_compiler_wl='-Wl,' 8485 # All Alpha code is PIC. 8486 lt_prog_compiler_static='-non_shared' 8487 ;; 8488 xl* | bgxl* | bgf* | mpixl*) 8489 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8490 lt_prog_compiler_wl='-Wl,' 8491 lt_prog_compiler_pic='-qpic' 8492 lt_prog_compiler_static='-qstaticlink' 8493 ;; 8494 *) 8495 case `$CC -V 2>&1 | sed 5q` in 8496 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8497 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8498 lt_prog_compiler_pic='-KPIC' 8499 lt_prog_compiler_static='-Bstatic' 8500 lt_prog_compiler_wl='' 8501 ;; 8502 *Sun\ F* | *Sun*Fortran*) 8503 lt_prog_compiler_pic='-KPIC' 8504 lt_prog_compiler_static='-Bstatic' 8505 lt_prog_compiler_wl='-Qoption ld ' 8506 ;; 8507 *Sun\ C*) 8508 # Sun C 5.9 8509 lt_prog_compiler_pic='-KPIC' 8510 lt_prog_compiler_static='-Bstatic' 8511 lt_prog_compiler_wl='-Wl,' 8512 ;; 8513 *Intel*\ [CF]*Compiler*) 8514 lt_prog_compiler_wl='-Wl,' 8515 lt_prog_compiler_pic='-fPIC' 8516 lt_prog_compiler_static='-static' 8517 ;; 8518 *Portland\ Group*) 8519 lt_prog_compiler_wl='-Wl,' 8520 lt_prog_compiler_pic='-fpic' 8521 lt_prog_compiler_static='-Bstatic' 8522 ;; 8523 esac 8524 ;; 8525 esac 8526 ;; 8527 8528 newsos6) 8529 lt_prog_compiler_pic='-KPIC' 8530 lt_prog_compiler_static='-Bstatic' 8531 ;; 8532 8533 *nto* | *qnx*) 8534 # QNX uses GNU C++, but need to define -shared option too, otherwise 8535 # it will coredump. 8536 lt_prog_compiler_pic='-fPIC -shared' 8537 ;; 8538 8539 osf3* | osf4* | osf5*) 8540 lt_prog_compiler_wl='-Wl,' 8541 # All OSF/1 code is PIC. 8542 lt_prog_compiler_static='-non_shared' 8543 ;; 8544 8545 rdos*) 8546 lt_prog_compiler_static='-non_shared' 8547 ;; 8548 8549 solaris*) 8550 lt_prog_compiler_pic='-KPIC' 8551 lt_prog_compiler_static='-Bstatic' 8552 case $cc_basename in 8553 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8554 lt_prog_compiler_wl='-Qoption ld ';; 8555 *) 8556 lt_prog_compiler_wl='-Wl,';; 8557 esac 8558 ;; 8559 8560 sunos4*) 8561 lt_prog_compiler_wl='-Qoption ld ' 8562 lt_prog_compiler_pic='-PIC' 8563 lt_prog_compiler_static='-Bstatic' 8564 ;; 8565 8566 sysv4 | sysv4.2uw2* | sysv4.3*) 8567 lt_prog_compiler_wl='-Wl,' 8568 lt_prog_compiler_pic='-KPIC' 8569 lt_prog_compiler_static='-Bstatic' 8570 ;; 8571 8572 sysv4*MP*) 8573 if test -d /usr/nec ;then 8574 lt_prog_compiler_pic='-Kconform_pic' 8575 lt_prog_compiler_static='-Bstatic' 8576 fi 8577 ;; 8578 8579 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8580 lt_prog_compiler_wl='-Wl,' 8581 lt_prog_compiler_pic='-KPIC' 8582 lt_prog_compiler_static='-Bstatic' 8583 ;; 8584 8585 unicos*) 8586 lt_prog_compiler_wl='-Wl,' 8587 lt_prog_compiler_can_build_shared=no 8588 ;; 8589 8590 uts4*) 8591 lt_prog_compiler_pic='-pic' 8592 lt_prog_compiler_static='-Bstatic' 8593 ;; 8594 8595 *) 8596 lt_prog_compiler_can_build_shared=no 8597 ;; 8598 esac 8599 fi 8600 8601case $host_os in 8602 # For platforms which do not support PIC, -DPIC is meaningless: 8603 *djgpp*) 8604 lt_prog_compiler_pic= 8605 ;; 8606 *) 8607 lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC" 8608 ;; 8609esac 8610 8611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8612$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8613if ${lt_cv_prog_compiler_pic+:} false; then : 8614 $as_echo_n "(cached) " >&6 8615else 8616 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8617fi 8618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8619$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8620lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8621 8622# 8623# Check to make sure the PIC flag actually works. 8624# 8625if test -n "$lt_prog_compiler_pic"; then 8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8627$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8628if ${lt_cv_prog_compiler_pic_works+:} false; then : 8629 $as_echo_n "(cached) " >&6 8630else 8631 lt_cv_prog_compiler_pic_works=no 8632 ac_outfile=conftest.$ac_objext 8633 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8634 lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC" 8635 # Insert the option either (1) after the last *FLAGS variable, or 8636 # (2) before a word containing "conftest.", or (3) at the end. 8637 # Note that $ac_compile itself does not contain backslashes and begins 8638 # with a dollar sign (not a hyphen), so the echo should work correctly. 8639 # The option is referenced via a variable to avoid confusing sed. 8640 lt_compile=`echo "$ac_compile" | $SED \ 8641 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8642 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8643 -e 's:$: $lt_compiler_flag:'` 8644 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8645 (eval "$lt_compile" 2>conftest.err) 8646 ac_status=$? 8647 cat conftest.err >&5 8648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8649 if (exit $ac_status) && test -s "$ac_outfile"; then 8650 # The compiler can only warn and ignore the option if not recognized 8651 # So say no if there are warnings other than the usual output. 8652 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8653 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8654 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8655 lt_cv_prog_compiler_pic_works=yes 8656 fi 8657 fi 8658 $RM conftest* 8659 8660fi 8661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8662$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8663 8664if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8665 case $lt_prog_compiler_pic in 8666 "" | " "*) ;; 8667 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8668 esac 8669else 8670 lt_prog_compiler_pic= 8671 lt_prog_compiler_can_build_shared=no 8672fi 8673 8674fi 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686# 8687# Check to make sure the static flag actually works. 8688# 8689wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8691$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8692if ${lt_cv_prog_compiler_static_works+:} false; then : 8693 $as_echo_n "(cached) " >&6 8694else 8695 lt_cv_prog_compiler_static_works=no 8696 save_LDFLAGS="$LDFLAGS" 8697 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8698 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8699 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8700 # The linker can only warn and ignore the option if not recognized 8701 # So say no if there are warnings 8702 if test -s conftest.err; then 8703 # Append any errors to the config.log. 8704 cat conftest.err 1>&5 8705 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8706 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8707 if diff conftest.exp conftest.er2 >/dev/null; then 8708 lt_cv_prog_compiler_static_works=yes 8709 fi 8710 else 8711 lt_cv_prog_compiler_static_works=yes 8712 fi 8713 fi 8714 $RM -r conftest* 8715 LDFLAGS="$save_LDFLAGS" 8716 8717fi 8718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8719$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8720 8721if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8722 : 8723else 8724 lt_prog_compiler_static= 8725fi 8726 8727 8728 8729 8730 8731 8732 8733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8734$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8735if ${lt_cv_prog_compiler_c_o+:} false; then : 8736 $as_echo_n "(cached) " >&6 8737else 8738 lt_cv_prog_compiler_c_o=no 8739 $RM -r conftest 2>/dev/null 8740 mkdir conftest 8741 cd conftest 8742 mkdir out 8743 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8744 8745 lt_compiler_flag="-o out/conftest2.$ac_objext" 8746 # Insert the option either (1) after the last *FLAGS variable, or 8747 # (2) before a word containing "conftest.", or (3) at the end. 8748 # Note that $ac_compile itself does not contain backslashes and begins 8749 # with a dollar sign (not a hyphen), so the echo should work correctly. 8750 lt_compile=`echo "$ac_compile" | $SED \ 8751 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8752 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8753 -e 's:$: $lt_compiler_flag:'` 8754 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8755 (eval "$lt_compile" 2>out/conftest.err) 8756 ac_status=$? 8757 cat out/conftest.err >&5 8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8759 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8760 then 8761 # The compiler can only warn and ignore the option if not recognized 8762 # So say no if there are warnings 8763 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8764 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8765 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8766 lt_cv_prog_compiler_c_o=yes 8767 fi 8768 fi 8769 chmod u+w . 2>&5 8770 $RM conftest* 8771 # SGI C++ compiler will create directory out/ii_files/ for 8772 # template instantiation 8773 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8774 $RM out/* && rmdir out 8775 cd .. 8776 $RM -r conftest 8777 $RM conftest* 8778 8779fi 8780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8781$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8782 8783 8784 8785 8786 8787 8788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8789$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8790if ${lt_cv_prog_compiler_c_o+:} false; then : 8791 $as_echo_n "(cached) " >&6 8792else 8793 lt_cv_prog_compiler_c_o=no 8794 $RM -r conftest 2>/dev/null 8795 mkdir conftest 8796 cd conftest 8797 mkdir out 8798 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8799 8800 lt_compiler_flag="-o out/conftest2.$ac_objext" 8801 # Insert the option either (1) after the last *FLAGS variable, or 8802 # (2) before a word containing "conftest.", or (3) at the end. 8803 # Note that $ac_compile itself does not contain backslashes and begins 8804 # with a dollar sign (not a hyphen), so the echo should work correctly. 8805 lt_compile=`echo "$ac_compile" | $SED \ 8806 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8807 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8808 -e 's:$: $lt_compiler_flag:'` 8809 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8810 (eval "$lt_compile" 2>out/conftest.err) 8811 ac_status=$? 8812 cat out/conftest.err >&5 8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8814 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8815 then 8816 # The compiler can only warn and ignore the option if not recognized 8817 # So say no if there are warnings 8818 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8819 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8820 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8821 lt_cv_prog_compiler_c_o=yes 8822 fi 8823 fi 8824 chmod u+w . 2>&5 8825 $RM conftest* 8826 # SGI C++ compiler will create directory out/ii_files/ for 8827 # template instantiation 8828 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8829 $RM out/* && rmdir out 8830 cd .. 8831 $RM -r conftest 8832 $RM conftest* 8833 8834fi 8835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8836$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8837 8838 8839 8840 8841hard_links="nottested" 8842if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8843 # do not overwrite the value of need_locks provided by the user 8844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8845$as_echo_n "checking if we can lock with hard links... " >&6; } 8846 hard_links=yes 8847 $RM conftest* 8848 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8849 touch conftest.a 8850 ln conftest.a conftest.b 2>&5 || hard_links=no 8851 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8853$as_echo "$hard_links" >&6; } 8854 if test "$hard_links" = no; then 8855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8856$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8857 need_locks=warn 8858 fi 8859else 8860 need_locks=no 8861fi 8862 8863 8864 8865 8866 8867 8868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8869$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8870 8871 runpath_var= 8872 allow_undefined_flag= 8873 always_export_symbols=no 8874 archive_cmds= 8875 archive_expsym_cmds= 8876 compiler_needs_object=no 8877 enable_shared_with_static_runtimes=no 8878 export_dynamic_flag_spec= 8879 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8880 hardcode_automatic=no 8881 hardcode_direct=no 8882 hardcode_direct_absolute=no 8883 hardcode_libdir_flag_spec= 8884 hardcode_libdir_separator= 8885 hardcode_minus_L=no 8886 hardcode_shlibpath_var=unsupported 8887 inherit_rpath=no 8888 link_all_deplibs=unknown 8889 module_cmds= 8890 module_expsym_cmds= 8891 old_archive_from_new_cmds= 8892 old_archive_from_expsyms_cmds= 8893 thread_safe_flag_spec= 8894 whole_archive_flag_spec= 8895 # include_expsyms should be a list of space-separated symbols to be *always* 8896 # included in the symbol list 8897 include_expsyms= 8898 # exclude_expsyms can be an extended regexp of symbols to exclude 8899 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8900 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8901 # as well as any symbol that contains `d'. 8902 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8903 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8904 # platforms (ab)use it in PIC code, but their linkers get confused if 8905 # the symbol is explicitly referenced. Since portable code cannot 8906 # rely on this symbol name, it's probably fine to never include it in 8907 # preloaded symbol tables. 8908 # Exclude shared library initialization/finalization symbols. 8909 extract_expsyms_cmds= 8910 8911 case $host_os in 8912 cygwin* | mingw* | pw32* | cegcc*) 8913 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8914 # When not using gcc, we currently assume that we are using 8915 # Microsoft Visual C++. 8916 if test "$GCC" != yes; then 8917 with_gnu_ld=no 8918 fi 8919 ;; 8920 interix*) 8921 # we just hope/assume this is gcc and not c89 (= MSVC++) 8922 with_gnu_ld=yes 8923 ;; 8924 openbsd*) 8925 with_gnu_ld=no 8926 ;; 8927 linux* | k*bsd*-gnu | gnu*) 8928 link_all_deplibs=no 8929 ;; 8930 esac 8931 8932 ld_shlibs=yes 8933 8934 # On some targets, GNU ld is compatible enough with the native linker 8935 # that we're better off using the native interface for both. 8936 lt_use_gnu_ld_interface=no 8937 if test "$with_gnu_ld" = yes; then 8938 case $host_os in 8939 aix*) 8940 # The AIX port of GNU ld has always aspired to compatibility 8941 # with the native linker. However, as the warning in the GNU ld 8942 # block says, versions before 2.19.5* couldn't really create working 8943 # shared libraries, regardless of the interface used. 8944 case `$LD -v 2>&1` in 8945 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8946 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8947 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8948 *) 8949 lt_use_gnu_ld_interface=yes 8950 ;; 8951 esac 8952 ;; 8953 *) 8954 lt_use_gnu_ld_interface=yes 8955 ;; 8956 esac 8957 fi 8958 8959 if test "$lt_use_gnu_ld_interface" = yes; then 8960 # If archive_cmds runs LD, not CC, wlarc should be empty 8961 wlarc='${wl}' 8962 8963 # Set some defaults for GNU ld with shared library support. These 8964 # are reset later if shared libraries are not supported. Putting them 8965 # here allows them to be overridden if necessary. 8966 runpath_var=LD_RUN_PATH 8967 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8968 export_dynamic_flag_spec='${wl}--export-dynamic' 8969 # ancient GNU ld didn't support --whole-archive et. al. 8970 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8971 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8972 else 8973 whole_archive_flag_spec= 8974 fi 8975 supports_anon_versioning=no 8976 case `$LD -v 2>&1` in 8977 *GNU\ gold*) supports_anon_versioning=yes ;; 8978 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8979 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8980 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8981 *\ 2.11.*) ;; # other 2.11 versions 8982 *) supports_anon_versioning=yes ;; 8983 esac 8984 8985 # See if GNU ld supports shared libraries. 8986 case $host_os in 8987 aix[3-9]*) 8988 # On AIX/PPC, the GNU linker is very broken 8989 if test "$host_cpu" != ia64; then 8990 ld_shlibs=no 8991 cat <<_LT_EOF 1>&2 8992 8993*** Warning: the GNU linker, at least up to release 2.19, is reported 8994*** to be unable to reliably create shared libraries on AIX. 8995*** Therefore, libtool is disabling shared libraries support. If you 8996*** really care for shared libraries, you may want to install binutils 8997*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8998*** You will then need to restart the configuration process. 8999 9000_LT_EOF 9001 fi 9002 ;; 9003 9004 amigaos*) 9005 case $host_cpu in 9006 powerpc) 9007 # see comment about AmigaOS4 .so support 9008 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9009 archive_expsym_cmds='' 9010 ;; 9011 m68k) 9012 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)' 9013 hardcode_libdir_flag_spec='-L$libdir' 9014 hardcode_minus_L=yes 9015 ;; 9016 esac 9017 ;; 9018 9019 beos*) 9020 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9021 allow_undefined_flag=unsupported 9022 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9023 # support --undefined. This deserves some investigation. FIXME 9024 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9025 else 9026 ld_shlibs=no 9027 fi 9028 ;; 9029 9030 cygwin* | mingw* | pw32* | cegcc*) 9031 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9032 # as there is no search path for DLLs. 9033 hardcode_libdir_flag_spec='-L$libdir' 9034 export_dynamic_flag_spec='${wl}--export-all-symbols' 9035 allow_undefined_flag=unsupported 9036 always_export_symbols=no 9037 enable_shared_with_static_runtimes=yes 9038 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' 9039 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9040 9041 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9042 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9043 # If the export-symbols file already is a .def file (1st line 9044 # is EXPORTS), use it as is; otherwise, prepend... 9045 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9046 cp $export_symbols $output_objdir/$soname.def; 9047 else 9048 echo EXPORTS > $output_objdir/$soname.def; 9049 cat $export_symbols >> $output_objdir/$soname.def; 9050 fi~ 9051 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9052 else 9053 ld_shlibs=no 9054 fi 9055 ;; 9056 9057 haiku*) 9058 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9059 link_all_deplibs=yes 9060 ;; 9061 9062 interix[3-9]*) 9063 hardcode_direct=no 9064 hardcode_shlibpath_var=no 9065 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9066 export_dynamic_flag_spec='${wl}-E' 9067 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9068 # Instead, shared libraries are loaded at an image base (0x10000000 by 9069 # default) and relocated if they conflict, which is a slow very memory 9070 # consuming and fragmenting process. To avoid this, we pick a random, 9071 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9072 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9073 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9074 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' 9075 ;; 9076 9077 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9078 tmp_diet=no 9079 if test "$host_os" = linux-dietlibc; then 9080 case $cc_basename in 9081 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9082 esac 9083 fi 9084 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9085 && test "$tmp_diet" = no 9086 then 9087 tmp_addflag=' $pic_flag' 9088 tmp_sharedflag='-shared' 9089 case $cc_basename,$host_cpu in 9090 pgcc*) # Portland Group C compiler 9091 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' 9092 tmp_addflag=' $pic_flag' 9093 ;; 9094 pgf77* | pgf90* | pgf95* | pgfortran*) 9095 # Portland Group f77 and f90 compilers 9096 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' 9097 tmp_addflag=' $pic_flag -Mnomain' ;; 9098 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9099 tmp_addflag=' -i_dynamic' ;; 9100 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9101 tmp_addflag=' -i_dynamic -nofor_main' ;; 9102 ifc* | ifort*) # Intel Fortran compiler 9103 tmp_addflag=' -nofor_main' ;; 9104 lf95*) # Lahey Fortran 8.1 9105 whole_archive_flag_spec= 9106 tmp_sharedflag='--shared' ;; 9107 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9108 tmp_sharedflag='-qmkshrobj' 9109 tmp_addflag= ;; 9110 nvcc*) # Cuda Compiler Driver 2.2 9111 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' 9112 compiler_needs_object=yes 9113 ;; 9114 esac 9115 case `$CC -V 2>&1 | sed 5q` in 9116 *Sun\ C*) # Sun C 5.9 9117 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' 9118 compiler_needs_object=yes 9119 tmp_sharedflag='-G' ;; 9120 *Sun\ F*) # Sun Fortran 8.3 9121 tmp_sharedflag='-G' ;; 9122 esac 9123 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9124 9125 if test "x$supports_anon_versioning" = xyes; then 9126 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9127 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9128 echo "local: *; };" >> $output_objdir/$libname.ver~ 9129 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9130 fi 9131 9132 case $cc_basename in 9133 xlf* | bgf* | bgxlf* | mpixlf*) 9134 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9135 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9136 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9137 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9138 if test "x$supports_anon_versioning" = xyes; then 9139 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9140 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9141 echo "local: *; };" >> $output_objdir/$libname.ver~ 9142 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9143 fi 9144 ;; 9145 esac 9146 else 9147 ld_shlibs=no 9148 fi 9149 ;; 9150 9151 netbsd* | netbsdelf*-gnu) 9152 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9153 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9154 wlarc= 9155 else 9156 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9157 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9158 fi 9159 ;; 9160 9161 solaris*) 9162 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9163 ld_shlibs=no 9164 cat <<_LT_EOF 1>&2 9165 9166*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9167*** create shared libraries on Solaris systems. Therefore, libtool 9168*** is disabling shared libraries support. We urge you to upgrade GNU 9169*** binutils to release 2.9.1 or newer. Another option is to modify 9170*** your PATH or compiler configuration so that the native linker is 9171*** used, and then restart. 9172 9173_LT_EOF 9174 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9175 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9176 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9177 else 9178 ld_shlibs=no 9179 fi 9180 ;; 9181 9182 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9183 case `$LD -v 2>&1` in 9184 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9185 ld_shlibs=no 9186 cat <<_LT_EOF 1>&2 9187 9188*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9189*** reliably create shared libraries on SCO systems. Therefore, libtool 9190*** is disabling shared libraries support. We urge you to upgrade GNU 9191*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9192*** your PATH or compiler configuration so that the native linker is 9193*** used, and then restart. 9194 9195_LT_EOF 9196 ;; 9197 *) 9198 # For security reasons, it is highly recommended that you always 9199 # use absolute paths for naming shared libraries, and exclude the 9200 # DT_RUNPATH tag from executables and libraries. But doing so 9201 # requires that you compile everything twice, which is a pain. 9202 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9203 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9204 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9205 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9206 else 9207 ld_shlibs=no 9208 fi 9209 ;; 9210 esac 9211 ;; 9212 9213 sunos4*) 9214 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9215 wlarc= 9216 hardcode_direct=yes 9217 hardcode_shlibpath_var=no 9218 ;; 9219 9220 *) 9221 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9222 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9223 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9224 else 9225 ld_shlibs=no 9226 fi 9227 ;; 9228 esac 9229 9230 if test "$ld_shlibs" = no; then 9231 runpath_var= 9232 hardcode_libdir_flag_spec= 9233 export_dynamic_flag_spec= 9234 whole_archive_flag_spec= 9235 fi 9236 else 9237 # PORTME fill in a description of your system's linker (not GNU ld) 9238 case $host_os in 9239 aix3*) 9240 allow_undefined_flag=unsupported 9241 always_export_symbols=yes 9242 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' 9243 # Note: this linker hardcodes the directories in LIBPATH if there 9244 # are no directories specified by -L. 9245 hardcode_minus_L=yes 9246 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9247 # Neither direct hardcoding nor static linking is supported with a 9248 # broken collect2. 9249 hardcode_direct=unsupported 9250 fi 9251 ;; 9252 9253 aix[4-9]*) 9254 if test "$host_cpu" = ia64; then 9255 # On IA64, the linker does run time linking by default, so we don't 9256 # have to do anything special. 9257 aix_use_runtimelinking=no 9258 exp_sym_flag='-Bexport' 9259 no_entry_flag="" 9260 else 9261 # If we're using GNU nm, then we don't want the "-C" option. 9262 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9263 # Also, AIX nm treats weak defined symbols like other global 9264 # defined symbols, whereas GNU nm marks them as "W". 9265 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9266 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' 9267 else 9268 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' 9269 fi 9270 aix_use_runtimelinking=no 9271 9272 # Test if we are trying to use run time linking or normal 9273 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9274 # need to do runtime linking. 9275 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9276 for ld_flag in $LDFLAGS; do 9277 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9278 aix_use_runtimelinking=yes 9279 break 9280 fi 9281 done 9282 ;; 9283 esac 9284 9285 exp_sym_flag='-bexport' 9286 no_entry_flag='-bnoentry' 9287 fi 9288 9289 # When large executables or shared objects are built, AIX ld can 9290 # have problems creating the table of contents. If linking a library 9291 # or program results in "error TOC overflow" add -mminimal-toc to 9292 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9293 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9294 9295 archive_cmds='' 9296 hardcode_direct=yes 9297 hardcode_direct_absolute=yes 9298 hardcode_libdir_separator=':' 9299 link_all_deplibs=yes 9300 file_list_spec='${wl}-f,' 9301 9302 if test "$GCC" = yes; then 9303 case $host_os in aix4.[012]|aix4.[012].*) 9304 # We only want to do this on AIX 4.2 and lower, the check 9305 # below for broken collect2 doesn't work under 4.3+ 9306 collect2name=`${CC} -print-prog-name=collect2` 9307 if test -f "$collect2name" && 9308 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9309 then 9310 # We have reworked collect2 9311 : 9312 else 9313 # We have old collect2 9314 hardcode_direct=unsupported 9315 # It fails to find uninstalled libraries when the uninstalled 9316 # path is not listed in the libpath. Setting hardcode_minus_L 9317 # to unsupported forces relinking 9318 hardcode_minus_L=yes 9319 hardcode_libdir_flag_spec='-L$libdir' 9320 hardcode_libdir_separator= 9321 fi 9322 ;; 9323 esac 9324 shared_flag='-shared' 9325 if test "$aix_use_runtimelinking" = yes; then 9326 shared_flag="$shared_flag "'${wl}-G' 9327 fi 9328 link_all_deplibs=no 9329 else 9330 # not using gcc 9331 if test "$host_cpu" = ia64; then 9332 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9333 # chokes on -Wl,-G. The following line is correct: 9334 shared_flag='-G' 9335 else 9336 if test "$aix_use_runtimelinking" = yes; then 9337 shared_flag='${wl}-G' 9338 else 9339 shared_flag='${wl}-bM:SRE' 9340 fi 9341 fi 9342 fi 9343 9344 export_dynamic_flag_spec='${wl}-bexpall' 9345 # It seems that -bexpall does not export symbols beginning with 9346 # underscore (_), so it is better to generate a list of symbols to export. 9347 always_export_symbols=yes 9348 if test "$aix_use_runtimelinking" = yes; then 9349 # Warning - without using the other runtime loading flags (-brtl), 9350 # -berok will link without error, but may produce a broken library. 9351 allow_undefined_flag='-berok' 9352 # Determine the default libpath from the value encoded in an 9353 # empty executable. 9354 if test "${lt_cv_aix_libpath+set}" = set; then 9355 aix_libpath=$lt_cv_aix_libpath 9356else 9357 if ${lt_cv_aix_libpath_+:} false; then : 9358 $as_echo_n "(cached) " >&6 9359else 9360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9361/* end confdefs.h. */ 9362 9363int 9364main () 9365{ 9366 9367 ; 9368 return 0; 9369} 9370_ACEOF 9371if ac_fn_c_try_link "$LINENO"; then : 9372 9373 lt_aix_libpath_sed=' 9374 /Import File Strings/,/^$/ { 9375 /^0/ { 9376 s/^0 *\([^ ]*\) *$/\1/ 9377 p 9378 } 9379 }' 9380 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9381 # Check for a 64-bit object if we didn't find anything. 9382 if test -z "$lt_cv_aix_libpath_"; then 9383 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9384 fi 9385fi 9386rm -f core conftest.err conftest.$ac_objext \ 9387 conftest$ac_exeext conftest.$ac_ext 9388 if test -z "$lt_cv_aix_libpath_"; then 9389 lt_cv_aix_libpath_="/usr/lib:/lib" 9390 fi 9391 9392fi 9393 9394 aix_libpath=$lt_cv_aix_libpath_ 9395fi 9396 9397 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9398 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" 9399 else 9400 if test "$host_cpu" = ia64; then 9401 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9402 allow_undefined_flag="-z nodefs" 9403 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" 9404 else 9405 # Determine the default libpath from the value encoded in an 9406 # empty executable. 9407 if test "${lt_cv_aix_libpath+set}" = set; then 9408 aix_libpath=$lt_cv_aix_libpath 9409else 9410 if ${lt_cv_aix_libpath_+:} false; then : 9411 $as_echo_n "(cached) " >&6 9412else 9413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9414/* end confdefs.h. */ 9415 9416int 9417main () 9418{ 9419 9420 ; 9421 return 0; 9422} 9423_ACEOF 9424if ac_fn_c_try_link "$LINENO"; then : 9425 9426 lt_aix_libpath_sed=' 9427 /Import File Strings/,/^$/ { 9428 /^0/ { 9429 s/^0 *\([^ ]*\) *$/\1/ 9430 p 9431 } 9432 }' 9433 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9434 # Check for a 64-bit object if we didn't find anything. 9435 if test -z "$lt_cv_aix_libpath_"; then 9436 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9437 fi 9438fi 9439rm -f core conftest.err conftest.$ac_objext \ 9440 conftest$ac_exeext conftest.$ac_ext 9441 if test -z "$lt_cv_aix_libpath_"; then 9442 lt_cv_aix_libpath_="/usr/lib:/lib" 9443 fi 9444 9445fi 9446 9447 aix_libpath=$lt_cv_aix_libpath_ 9448fi 9449 9450 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9451 # Warning - without using the other run time loading flags, 9452 # -berok will link without error, but may produce a broken library. 9453 no_undefined_flag=' ${wl}-bernotok' 9454 allow_undefined_flag=' ${wl}-berok' 9455 if test "$with_gnu_ld" = yes; then 9456 # We only use this code for GNU lds that support --whole-archive. 9457 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9458 else 9459 # Exported symbols can be pulled into shared objects from archives 9460 whole_archive_flag_spec='$convenience' 9461 fi 9462 archive_cmds_need_lc=yes 9463 # This is similar to how AIX traditionally builds its shared libraries. 9464 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' 9465 fi 9466 fi 9467 ;; 9468 9469 amigaos*) 9470 case $host_cpu in 9471 powerpc) 9472 # see comment about AmigaOS4 .so support 9473 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9474 archive_expsym_cmds='' 9475 ;; 9476 m68k) 9477 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 9478 hardcode_libdir_flag_spec='-L$libdir' 9479 hardcode_minus_L=yes 9480 ;; 9481 esac 9482 ;; 9483 9484 bsdi[45]*) 9485 export_dynamic_flag_spec=-rdynamic 9486 ;; 9487 9488 cygwin* | mingw* | pw32* | cegcc*) 9489 # When not using gcc, we currently assume that we are using 9490 # Microsoft Visual C++. 9491 # hardcode_libdir_flag_spec is actually meaningless, as there is 9492 # no search path for DLLs. 9493 case $cc_basename in 9494 cl*) 9495 # Native MSVC 9496 hardcode_libdir_flag_spec=' ' 9497 allow_undefined_flag=unsupported 9498 always_export_symbols=yes 9499 file_list_spec='@' 9500 # Tell ltmain to make .lib files, not .a files. 9501 libext=lib 9502 # Tell ltmain to make .dll files, not .so files. 9503 shrext_cmds=".dll" 9504 # FIXME: Setting linknames here is a bad hack. 9505 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9506 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9507 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9508 else 9509 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9510 fi~ 9511 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9512 linknames=' 9513 # The linker will not automatically build a static lib if we build a DLL. 9514 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9515 enable_shared_with_static_runtimes=yes 9516 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9517 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9518 # Don't use ranlib 9519 old_postinstall_cmds='chmod 644 $oldlib' 9520 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9521 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9522 case $lt_outputfile in 9523 *.exe|*.EXE) ;; 9524 *) 9525 lt_outputfile="$lt_outputfile.exe" 9526 lt_tool_outputfile="$lt_tool_outputfile.exe" 9527 ;; 9528 esac~ 9529 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9530 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9531 $RM "$lt_outputfile.manifest"; 9532 fi' 9533 ;; 9534 *) 9535 # Assume MSVC wrapper 9536 hardcode_libdir_flag_spec=' ' 9537 allow_undefined_flag=unsupported 9538 # Tell ltmain to make .lib files, not .a files. 9539 libext=lib 9540 # Tell ltmain to make .dll files, not .so files. 9541 shrext_cmds=".dll" 9542 # FIXME: Setting linknames here is a bad hack. 9543 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9544 # The linker will automatically build a .lib file if we build a DLL. 9545 old_archive_from_new_cmds='true' 9546 # FIXME: Should let the user specify the lib program. 9547 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9548 enable_shared_with_static_runtimes=yes 9549 ;; 9550 esac 9551 ;; 9552 9553 darwin* | rhapsody*) 9554 9555 9556 archive_cmds_need_lc=no 9557 hardcode_direct=no 9558 hardcode_automatic=yes 9559 hardcode_shlibpath_var=unsupported 9560 if test "$lt_cv_ld_force_load" = "yes"; then 9561 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\"`' 9562 9563 else 9564 whole_archive_flag_spec='' 9565 fi 9566 link_all_deplibs=yes 9567 allow_undefined_flag="$_lt_dar_allow_undefined" 9568 case $cc_basename in 9569 ifort*) _lt_dar_can_shared=yes ;; 9570 *) _lt_dar_can_shared=$GCC ;; 9571 esac 9572 if test "$_lt_dar_can_shared" = "yes"; then 9573 output_verbose_link_cmd=func_echo_all 9574 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9575 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9576 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}" 9577 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}" 9578 9579 else 9580 ld_shlibs=no 9581 fi 9582 9583 ;; 9584 9585 dgux*) 9586 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9587 hardcode_libdir_flag_spec='-L$libdir' 9588 hardcode_shlibpath_var=no 9589 ;; 9590 9591 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9592 # support. Future versions do this automatically, but an explicit c++rt0.o 9593 # does not break anything, and helps significantly (at the cost of a little 9594 # extra space). 9595 freebsd2.2*) 9596 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9597 hardcode_libdir_flag_spec='-R$libdir' 9598 hardcode_direct=yes 9599 hardcode_shlibpath_var=no 9600 ;; 9601 9602 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9603 freebsd2.*) 9604 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9605 hardcode_direct=yes 9606 hardcode_minus_L=yes 9607 hardcode_shlibpath_var=no 9608 ;; 9609 9610 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9611 freebsd* | dragonfly*) 9612 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9613 hardcode_libdir_flag_spec='-R$libdir' 9614 hardcode_direct=yes 9615 hardcode_shlibpath_var=no 9616 ;; 9617 9618 hpux9*) 9619 if test "$GCC" = yes; then 9620 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' 9621 else 9622 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' 9623 fi 9624 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9625 hardcode_libdir_separator=: 9626 hardcode_direct=yes 9627 9628 # hardcode_minus_L: Not really in the search PATH, 9629 # but as the default location of the library. 9630 hardcode_minus_L=yes 9631 export_dynamic_flag_spec='${wl}-E' 9632 ;; 9633 9634 hpux10*) 9635 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9636 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9637 else 9638 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9639 fi 9640 if test "$with_gnu_ld" = no; then 9641 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9642 hardcode_libdir_separator=: 9643 hardcode_direct=yes 9644 hardcode_direct_absolute=yes 9645 export_dynamic_flag_spec='${wl}-E' 9646 # hardcode_minus_L: Not really in the search PATH, 9647 # but as the default location of the library. 9648 hardcode_minus_L=yes 9649 fi 9650 ;; 9651 9652 hpux11*) 9653 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9654 case $host_cpu in 9655 hppa*64*) 9656 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9657 ;; 9658 ia64*) 9659 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9660 ;; 9661 *) 9662 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9663 ;; 9664 esac 9665 else 9666 case $host_cpu in 9667 hppa*64*) 9668 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9669 ;; 9670 ia64*) 9671 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9672 ;; 9673 *) 9674 9675 # Older versions of the 11.00 compiler do not understand -b yet 9676 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9678$as_echo_n "checking if $CC understands -b... " >&6; } 9679if ${lt_cv_prog_compiler__b+:} false; then : 9680 $as_echo_n "(cached) " >&6 9681else 9682 lt_cv_prog_compiler__b=no 9683 save_LDFLAGS="$LDFLAGS" 9684 LDFLAGS="$LDFLAGS -b" 9685 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9686 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9687 # The linker can only warn and ignore the option if not recognized 9688 # So say no if there are warnings 9689 if test -s conftest.err; then 9690 # Append any errors to the config.log. 9691 cat conftest.err 1>&5 9692 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9693 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9694 if diff conftest.exp conftest.er2 >/dev/null; then 9695 lt_cv_prog_compiler__b=yes 9696 fi 9697 else 9698 lt_cv_prog_compiler__b=yes 9699 fi 9700 fi 9701 $RM -r conftest* 9702 LDFLAGS="$save_LDFLAGS" 9703 9704fi 9705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9706$as_echo "$lt_cv_prog_compiler__b" >&6; } 9707 9708if test x"$lt_cv_prog_compiler__b" = xyes; then 9709 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9710else 9711 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9712fi 9713 9714 ;; 9715 esac 9716 fi 9717 if test "$with_gnu_ld" = no; then 9718 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9719 hardcode_libdir_separator=: 9720 9721 case $host_cpu in 9722 hppa*64*|ia64*) 9723 hardcode_direct=no 9724 hardcode_shlibpath_var=no 9725 ;; 9726 *) 9727 hardcode_direct=yes 9728 hardcode_direct_absolute=yes 9729 export_dynamic_flag_spec='${wl}-E' 9730 9731 # hardcode_minus_L: Not really in the search PATH, 9732 # but as the default location of the library. 9733 hardcode_minus_L=yes 9734 ;; 9735 esac 9736 fi 9737 ;; 9738 9739 irix5* | irix6* | nonstopux*) 9740 if test "$GCC" = yes; then 9741 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' 9742 # Try to use the -exported_symbol ld option, if it does not 9743 # work, assume that -exports_file does not work either and 9744 # implicitly export all symbols. 9745 # This should be the same for all languages, so no per-tag cache variable. 9746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9747$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9748if ${lt_cv_irix_exported_symbol+:} false; then : 9749 $as_echo_n "(cached) " >&6 9750else 9751 save_LDFLAGS="$LDFLAGS" 9752 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9754/* end confdefs.h. */ 9755int foo (void) { return 0; } 9756_ACEOF 9757if ac_fn_c_try_link "$LINENO"; then : 9758 lt_cv_irix_exported_symbol=yes 9759else 9760 lt_cv_irix_exported_symbol=no 9761fi 9762rm -f core conftest.err conftest.$ac_objext \ 9763 conftest$ac_exeext conftest.$ac_ext 9764 LDFLAGS="$save_LDFLAGS" 9765fi 9766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9767$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9768 if test "$lt_cv_irix_exported_symbol" = yes; then 9769 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' 9770 fi 9771 else 9772 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' 9773 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' 9774 fi 9775 archive_cmds_need_lc='no' 9776 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9777 hardcode_libdir_separator=: 9778 inherit_rpath=yes 9779 link_all_deplibs=yes 9780 ;; 9781 9782 netbsd* | netbsdelf*-gnu) 9783 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9784 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9785 else 9786 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9787 fi 9788 hardcode_libdir_flag_spec='-R$libdir' 9789 hardcode_direct=yes 9790 hardcode_shlibpath_var=no 9791 ;; 9792 9793 newsos6) 9794 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9795 hardcode_direct=yes 9796 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9797 hardcode_libdir_separator=: 9798 hardcode_shlibpath_var=no 9799 ;; 9800 9801 *nto* | *qnx*) 9802 ;; 9803 9804 openbsd*) 9805 if test -f /usr/libexec/ld.so; then 9806 hardcode_direct=yes 9807 hardcode_shlibpath_var=no 9808 hardcode_direct_absolute=yes 9809 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9810 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9811 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9812 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9813 export_dynamic_flag_spec='${wl}-E' 9814 else 9815 case $host_os in 9816 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9817 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9818 hardcode_libdir_flag_spec='-R$libdir' 9819 ;; 9820 *) 9821 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9822 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9823 ;; 9824 esac 9825 fi 9826 else 9827 ld_shlibs=no 9828 fi 9829 ;; 9830 9831 os2*) 9832 hardcode_libdir_flag_spec='-L$libdir' 9833 hardcode_minus_L=yes 9834 allow_undefined_flag=unsupported 9835 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' 9836 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9837 ;; 9838 9839 osf3*) 9840 if test "$GCC" = yes; then 9841 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9842 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' 9843 else 9844 allow_undefined_flag=' -expect_unresolved \*' 9845 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' 9846 fi 9847 archive_cmds_need_lc='no' 9848 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9849 hardcode_libdir_separator=: 9850 ;; 9851 9852 osf4* | osf5*) # as osf3* with the addition of -msym flag 9853 if test "$GCC" = yes; then 9854 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9855 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' 9856 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9857 else 9858 allow_undefined_flag=' -expect_unresolved \*' 9859 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' 9860 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~ 9861 $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' 9862 9863 # Both c and cxx compiler support -rpath directly 9864 hardcode_libdir_flag_spec='-rpath $libdir' 9865 fi 9866 archive_cmds_need_lc='no' 9867 hardcode_libdir_separator=: 9868 ;; 9869 9870 solaris*) 9871 no_undefined_flag=' -z defs' 9872 if test "$GCC" = yes; then 9873 wlarc='${wl}' 9874 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9875 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9876 $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' 9877 else 9878 case `$CC -V 2>&1` in 9879 *"Compilers 5.0"*) 9880 wlarc='' 9881 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9882 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9883 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9884 ;; 9885 *) 9886 wlarc='${wl}' 9887 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9888 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9889 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9890 ;; 9891 esac 9892 fi 9893 hardcode_libdir_flag_spec='-R$libdir' 9894 hardcode_shlibpath_var=no 9895 case $host_os in 9896 solaris2.[0-5] | solaris2.[0-5].*) ;; 9897 *) 9898 # The compiler driver will combine and reorder linker options, 9899 # but understands `-z linker_flag'. GCC discards it without `$wl', 9900 # but is careful enough not to reorder. 9901 # Supported since Solaris 2.6 (maybe 2.5.1?) 9902 if test "$GCC" = yes; then 9903 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9904 else 9905 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9906 fi 9907 ;; 9908 esac 9909 link_all_deplibs=yes 9910 ;; 9911 9912 sunos4*) 9913 if test "x$host_vendor" = xsequent; then 9914 # Use $CC to link under sequent, because it throws in some extra .o 9915 # files that make .init and .fini sections work. 9916 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9917 else 9918 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9919 fi 9920 hardcode_libdir_flag_spec='-L$libdir' 9921 hardcode_direct=yes 9922 hardcode_minus_L=yes 9923 hardcode_shlibpath_var=no 9924 ;; 9925 9926 sysv4) 9927 case $host_vendor in 9928 sni) 9929 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9930 hardcode_direct=yes # is this really true??? 9931 ;; 9932 siemens) 9933 ## LD is ld it makes a PLAMLIB 9934 ## CC just makes a GrossModule. 9935 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9936 reload_cmds='$CC -r -o $output$reload_objs' 9937 hardcode_direct=no 9938 ;; 9939 motorola) 9940 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9941 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9942 ;; 9943 esac 9944 runpath_var='LD_RUN_PATH' 9945 hardcode_shlibpath_var=no 9946 ;; 9947 9948 sysv4.3*) 9949 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9950 hardcode_shlibpath_var=no 9951 export_dynamic_flag_spec='-Bexport' 9952 ;; 9953 9954 sysv4*MP*) 9955 if test -d /usr/nec; then 9956 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9957 hardcode_shlibpath_var=no 9958 runpath_var=LD_RUN_PATH 9959 hardcode_runpath_var=yes 9960 ld_shlibs=yes 9961 fi 9962 ;; 9963 9964 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9965 no_undefined_flag='${wl}-z,text' 9966 archive_cmds_need_lc=no 9967 hardcode_shlibpath_var=no 9968 runpath_var='LD_RUN_PATH' 9969 9970 if test "$GCC" = yes; then 9971 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9972 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9973 else 9974 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9975 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9976 fi 9977 ;; 9978 9979 sysv5* | sco3.2v5* | sco5v6*) 9980 # Note: We can NOT use -z defs as we might desire, because we do not 9981 # link with -lc, and that would cause any symbols used from libc to 9982 # always be unresolved, which means just about no library would 9983 # ever link correctly. If we're not using GNU ld we use -z text 9984 # though, which does catch some bad symbols but isn't as heavy-handed 9985 # as -z defs. 9986 no_undefined_flag='${wl}-z,text' 9987 allow_undefined_flag='${wl}-z,nodefs' 9988 archive_cmds_need_lc=no 9989 hardcode_shlibpath_var=no 9990 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9991 hardcode_libdir_separator=':' 9992 link_all_deplibs=yes 9993 export_dynamic_flag_spec='${wl}-Bexport' 9994 runpath_var='LD_RUN_PATH' 9995 9996 if test "$GCC" = yes; then 9997 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9998 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9999 else 10000 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10001 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10002 fi 10003 ;; 10004 10005 uts4*) 10006 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10007 hardcode_libdir_flag_spec='-L$libdir' 10008 hardcode_shlibpath_var=no 10009 ;; 10010 10011 *) 10012 ld_shlibs=no 10013 ;; 10014 esac 10015 10016 if test x$host_vendor = xsni; then 10017 case $host in 10018 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10019 export_dynamic_flag_spec='${wl}-Blargedynsym' 10020 ;; 10021 esac 10022 fi 10023 fi 10024 10025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10026$as_echo "$ld_shlibs" >&6; } 10027test "$ld_shlibs" = no && can_build_shared=no 10028 10029with_gnu_ld=$with_gnu_ld 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045# 10046# Do we need to explicitly link libc? 10047# 10048case "x$archive_cmds_need_lc" in 10049x|xyes) 10050 # Assume -lc should be added 10051 archive_cmds_need_lc=yes 10052 10053 if test "$enable_shared" = yes && test "$GCC" = yes; then 10054 case $archive_cmds in 10055 *'~'*) 10056 # FIXME: we may have to deal with multi-command sequences. 10057 ;; 10058 '$CC '*) 10059 # Test whether the compiler implicitly links with -lc since on some 10060 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10061 # to ld, don't add -lc before -lgcc. 10062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10063$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10064if ${lt_cv_archive_cmds_need_lc+:} false; then : 10065 $as_echo_n "(cached) " >&6 10066else 10067 $RM conftest* 10068 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10069 10070 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10071 (eval $ac_compile) 2>&5 10072 ac_status=$? 10073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10074 test $ac_status = 0; } 2>conftest.err; then 10075 soname=conftest 10076 lib=conftest 10077 libobjs=conftest.$ac_objext 10078 deplibs= 10079 wl=$lt_prog_compiler_wl 10080 pic_flag=$lt_prog_compiler_pic 10081 compiler_flags=-v 10082 linker_flags=-v 10083 verstring= 10084 output_objdir=. 10085 libname=conftest 10086 lt_save_allow_undefined_flag=$allow_undefined_flag 10087 allow_undefined_flag= 10088 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10089 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10090 ac_status=$? 10091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10092 test $ac_status = 0; } 10093 then 10094 lt_cv_archive_cmds_need_lc=no 10095 else 10096 lt_cv_archive_cmds_need_lc=yes 10097 fi 10098 allow_undefined_flag=$lt_save_allow_undefined_flag 10099 else 10100 cat conftest.err 1>&5 10101 fi 10102 $RM conftest* 10103 10104fi 10105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10106$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10107 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10108 ;; 10109 esac 10110 fi 10111 ;; 10112esac 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10266$as_echo_n "checking dynamic linker characteristics... " >&6; } 10267 10268if test "$GCC" = yes; then 10269 case $host_os in 10270 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10271 *) lt_awk_arg="/^libraries:/" ;; 10272 esac 10273 case $host_os in 10274 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10275 *) lt_sed_strip_eq="s,=/,/,g" ;; 10276 esac 10277 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10278 case $lt_search_path_spec in 10279 *\;*) 10280 # if the path contains ";" then we assume it to be the separator 10281 # otherwise default to the standard path separator (i.e. ":") - it is 10282 # assumed that no part of a normal pathname contains ";" but that should 10283 # okay in the real world where ";" in dirpaths is itself problematic. 10284 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10285 ;; 10286 *) 10287 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10288 ;; 10289 esac 10290 # Ok, now we have the path, separated by spaces, we can step through it 10291 # and add multilib dir if necessary. 10292 lt_tmp_lt_search_path_spec= 10293 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10294 for lt_sys_path in $lt_search_path_spec; do 10295 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10296 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10297 else 10298 test -d "$lt_sys_path" && \ 10299 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10300 fi 10301 done 10302 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10303BEGIN {RS=" "; FS="/|\n";} { 10304 lt_foo=""; 10305 lt_count=0; 10306 for (lt_i = NF; lt_i > 0; lt_i--) { 10307 if ($lt_i != "" && $lt_i != ".") { 10308 if ($lt_i == "..") { 10309 lt_count++; 10310 } else { 10311 if (lt_count == 0) { 10312 lt_foo="/" $lt_i lt_foo; 10313 } else { 10314 lt_count--; 10315 } 10316 } 10317 } 10318 } 10319 if (lt_foo != "") { lt_freq[lt_foo]++; } 10320 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10321}'` 10322 # AWK program above erroneously prepends '/' to C:/dos/paths 10323 # for these hosts. 10324 case $host_os in 10325 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10326 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10327 esac 10328 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10329else 10330 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10331fi 10332library_names_spec= 10333libname_spec='lib$name' 10334soname_spec= 10335shrext_cmds=".so" 10336postinstall_cmds= 10337postuninstall_cmds= 10338finish_cmds= 10339finish_eval= 10340shlibpath_var= 10341shlibpath_overrides_runpath=unknown 10342version_type=none 10343dynamic_linker="$host_os ld.so" 10344sys_lib_dlsearch_path_spec="/lib /usr/lib" 10345need_lib_prefix=unknown 10346hardcode_into_libs=no 10347 10348# when you set need_version to no, make sure it does not cause -set_version 10349# flags to be left without arguments 10350need_version=unknown 10351 10352case $host_os in 10353aix3*) 10354 version_type=linux # correct to gnu/linux during the next big refactor 10355 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10356 shlibpath_var=LIBPATH 10357 10358 # AIX 3 has no versioning support, so we append a major version to the name. 10359 soname_spec='${libname}${release}${shared_ext}$major' 10360 ;; 10361 10362aix[4-9]*) 10363 version_type=linux # correct to gnu/linux during the next big refactor 10364 need_lib_prefix=no 10365 need_version=no 10366 hardcode_into_libs=yes 10367 if test "$host_cpu" = ia64; then 10368 # AIX 5 supports IA64 10369 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10370 shlibpath_var=LD_LIBRARY_PATH 10371 else 10372 # With GCC up to 2.95.x, collect2 would create an import file 10373 # for dependence libraries. The import file would start with 10374 # the line `#! .'. This would cause the generated library to 10375 # depend on `.', always an invalid library. This was fixed in 10376 # development snapshots of GCC prior to 3.0. 10377 case $host_os in 10378 aix4 | aix4.[01] | aix4.[01].*) 10379 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10380 echo ' yes ' 10381 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10382 : 10383 else 10384 can_build_shared=no 10385 fi 10386 ;; 10387 esac 10388 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10389 # soname into executable. Probably we can add versioning support to 10390 # collect2, so additional links can be useful in future. 10391 if test "$aix_use_runtimelinking" = yes; then 10392 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10393 # instead of lib<name>.a to let people know that these are not 10394 # typical AIX shared libraries. 10395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10396 else 10397 # We preserve .a as extension for shared libraries through AIX4.2 10398 # and later when we are not doing run time linking. 10399 library_names_spec='${libname}${release}.a $libname.a' 10400 soname_spec='${libname}${release}${shared_ext}$major' 10401 fi 10402 shlibpath_var=LIBPATH 10403 fi 10404 ;; 10405 10406amigaos*) 10407 case $host_cpu in 10408 powerpc) 10409 # Since July 2007 AmigaOS4 officially supports .so libraries. 10410 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10412 ;; 10413 m68k) 10414 library_names_spec='$libname.ixlibrary $libname.a' 10415 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10416 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' 10417 ;; 10418 esac 10419 ;; 10420 10421beos*) 10422 library_names_spec='${libname}${shared_ext}' 10423 dynamic_linker="$host_os ld.so" 10424 shlibpath_var=LIBRARY_PATH 10425 ;; 10426 10427bsdi[45]*) 10428 version_type=linux # correct to gnu/linux during the next big refactor 10429 need_version=no 10430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10431 soname_spec='${libname}${release}${shared_ext}$major' 10432 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10433 shlibpath_var=LD_LIBRARY_PATH 10434 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10435 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10436 # the default ld.so.conf also contains /usr/contrib/lib and 10437 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10438 # libtool to hard-code these into programs 10439 ;; 10440 10441cygwin* | mingw* | pw32* | cegcc*) 10442 version_type=windows 10443 shrext_cmds=".dll" 10444 need_version=no 10445 need_lib_prefix=no 10446 10447 case $GCC,$cc_basename in 10448 yes,*) 10449 # gcc 10450 library_names_spec='$libname.dll.a' 10451 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10452 postinstall_cmds='base_file=`basename \${file}`~ 10453 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10454 dldir=$destdir/`dirname \$dlpath`~ 10455 test -d \$dldir || mkdir -p \$dldir~ 10456 $install_prog $dir/$dlname \$dldir/$dlname~ 10457 chmod a+x \$dldir/$dlname~ 10458 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10459 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10460 fi' 10461 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10462 dlpath=$dir/\$dldll~ 10463 $RM \$dlpath' 10464 shlibpath_overrides_runpath=yes 10465 10466 case $host_os in 10467 cygwin*) 10468 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10469 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10470 10471 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10472 ;; 10473 mingw* | cegcc*) 10474 # MinGW DLLs use traditional 'lib' prefix 10475 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10476 ;; 10477 pw32*) 10478 # pw32 DLLs use 'pw' prefix rather than 'lib' 10479 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10480 ;; 10481 esac 10482 dynamic_linker='Win32 ld.exe' 10483 ;; 10484 10485 *,cl*) 10486 # Native MSVC 10487 libname_spec='$name' 10488 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10489 library_names_spec='${libname}.dll.lib' 10490 10491 case $build_os in 10492 mingw*) 10493 sys_lib_search_path_spec= 10494 lt_save_ifs=$IFS 10495 IFS=';' 10496 for lt_path in $LIB 10497 do 10498 IFS=$lt_save_ifs 10499 # Let DOS variable expansion print the short 8.3 style file name. 10500 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10501 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10502 done 10503 IFS=$lt_save_ifs 10504 # Convert to MSYS style. 10505 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10506 ;; 10507 cygwin*) 10508 # Convert to unix form, then to dos form, then back to unix form 10509 # but this time dos style (no spaces!) so that the unix form looks 10510 # like /cygdrive/c/PROGRA~1:/cygdr... 10511 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10512 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10513 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10514 ;; 10515 *) 10516 sys_lib_search_path_spec="$LIB" 10517 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10518 # It is most probably a Windows format PATH. 10519 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10520 else 10521 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10522 fi 10523 # FIXME: find the short name or the path components, as spaces are 10524 # common. (e.g. "Program Files" -> "PROGRA~1") 10525 ;; 10526 esac 10527 10528 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10529 postinstall_cmds='base_file=`basename \${file}`~ 10530 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10531 dldir=$destdir/`dirname \$dlpath`~ 10532 test -d \$dldir || mkdir -p \$dldir~ 10533 $install_prog $dir/$dlname \$dldir/$dlname' 10534 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10535 dlpath=$dir/\$dldll~ 10536 $RM \$dlpath' 10537 shlibpath_overrides_runpath=yes 10538 dynamic_linker='Win32 link.exe' 10539 ;; 10540 10541 *) 10542 # Assume MSVC wrapper 10543 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10544 dynamic_linker='Win32 ld.exe' 10545 ;; 10546 esac 10547 # FIXME: first we should search . and the directory the executable is in 10548 shlibpath_var=PATH 10549 ;; 10550 10551darwin* | rhapsody*) 10552 dynamic_linker="$host_os dyld" 10553 version_type=darwin 10554 need_lib_prefix=no 10555 need_version=no 10556 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10557 soname_spec='${libname}${release}${major}$shared_ext' 10558 shlibpath_overrides_runpath=yes 10559 shlibpath_var=DYLD_LIBRARY_PATH 10560 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10561 10562 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10563 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10564 ;; 10565 10566dgux*) 10567 version_type=linux # correct to gnu/linux during the next big refactor 10568 need_lib_prefix=no 10569 need_version=no 10570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10571 soname_spec='${libname}${release}${shared_ext}$major' 10572 shlibpath_var=LD_LIBRARY_PATH 10573 ;; 10574 10575freebsd* | dragonfly*) 10576 # DragonFly does not have aout. When/if they implement a new 10577 # versioning mechanism, adjust this. 10578 if test -x /usr/bin/objformat; then 10579 objformat=`/usr/bin/objformat` 10580 else 10581 case $host_os in 10582 freebsd[23].*) objformat=aout ;; 10583 *) objformat=elf ;; 10584 esac 10585 fi 10586 version_type=freebsd-$objformat 10587 case $version_type in 10588 freebsd-elf*) 10589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10590 need_version=no 10591 need_lib_prefix=no 10592 ;; 10593 freebsd-*) 10594 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10595 need_version=yes 10596 ;; 10597 esac 10598 shlibpath_var=LD_LIBRARY_PATH 10599 case $host_os in 10600 freebsd2.*) 10601 shlibpath_overrides_runpath=yes 10602 ;; 10603 freebsd3.[01]* | freebsdelf3.[01]*) 10604 shlibpath_overrides_runpath=yes 10605 hardcode_into_libs=yes 10606 ;; 10607 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10608 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10609 shlibpath_overrides_runpath=no 10610 hardcode_into_libs=yes 10611 ;; 10612 *) # from 4.6 on, and DragonFly 10613 shlibpath_overrides_runpath=yes 10614 hardcode_into_libs=yes 10615 ;; 10616 esac 10617 ;; 10618 10619haiku*) 10620 version_type=linux # correct to gnu/linux during the next big refactor 10621 need_lib_prefix=no 10622 need_version=no 10623 dynamic_linker="$host_os runtime_loader" 10624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10625 soname_spec='${libname}${release}${shared_ext}$major' 10626 shlibpath_var=LIBRARY_PATH 10627 shlibpath_overrides_runpath=yes 10628 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10629 hardcode_into_libs=yes 10630 ;; 10631 10632hpux9* | hpux10* | hpux11*) 10633 # Give a soname corresponding to the major version so that dld.sl refuses to 10634 # link against other versions. 10635 version_type=sunos 10636 need_lib_prefix=no 10637 need_version=no 10638 case $host_cpu in 10639 ia64*) 10640 shrext_cmds='.so' 10641 hardcode_into_libs=yes 10642 dynamic_linker="$host_os dld.so" 10643 shlibpath_var=LD_LIBRARY_PATH 10644 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10646 soname_spec='${libname}${release}${shared_ext}$major' 10647 if test "X$HPUX_IA64_MODE" = X32; then 10648 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10649 else 10650 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10651 fi 10652 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10653 ;; 10654 hppa*64*) 10655 shrext_cmds='.sl' 10656 hardcode_into_libs=yes 10657 dynamic_linker="$host_os dld.sl" 10658 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10659 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10661 soname_spec='${libname}${release}${shared_ext}$major' 10662 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10663 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10664 ;; 10665 *) 10666 shrext_cmds='.sl' 10667 dynamic_linker="$host_os dld.sl" 10668 shlibpath_var=SHLIB_PATH 10669 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10671 soname_spec='${libname}${release}${shared_ext}$major' 10672 ;; 10673 esac 10674 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10675 postinstall_cmds='chmod 555 $lib' 10676 # or fails outright, so override atomically: 10677 install_override_mode=555 10678 ;; 10679 10680interix[3-9]*) 10681 version_type=linux # correct to gnu/linux during the next big refactor 10682 need_lib_prefix=no 10683 need_version=no 10684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10685 soname_spec='${libname}${release}${shared_ext}$major' 10686 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10687 shlibpath_var=LD_LIBRARY_PATH 10688 shlibpath_overrides_runpath=no 10689 hardcode_into_libs=yes 10690 ;; 10691 10692irix5* | irix6* | nonstopux*) 10693 case $host_os in 10694 nonstopux*) version_type=nonstopux ;; 10695 *) 10696 if test "$lt_cv_prog_gnu_ld" = yes; then 10697 version_type=linux # correct to gnu/linux during the next big refactor 10698 else 10699 version_type=irix 10700 fi ;; 10701 esac 10702 need_lib_prefix=no 10703 need_version=no 10704 soname_spec='${libname}${release}${shared_ext}$major' 10705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10706 case $host_os in 10707 irix5* | nonstopux*) 10708 libsuff= shlibsuff= 10709 ;; 10710 *) 10711 case $LD in # libtool.m4 will add one of these switches to LD 10712 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10713 libsuff= shlibsuff= libmagic=32-bit;; 10714 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10715 libsuff=32 shlibsuff=N32 libmagic=N32;; 10716 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10717 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10718 *) libsuff= shlibsuff= libmagic=never-match;; 10719 esac 10720 ;; 10721 esac 10722 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10723 shlibpath_overrides_runpath=no 10724 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10725 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10726 hardcode_into_libs=yes 10727 ;; 10728 10729# No shared lib support for Linux oldld, aout, or coff. 10730linux*oldld* | linux*aout* | linux*coff*) 10731 dynamic_linker=no 10732 ;; 10733 10734# This must be glibc/ELF. 10735linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10736 version_type=linux # correct to gnu/linux during the next big refactor 10737 need_lib_prefix=no 10738 need_version=no 10739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10740 soname_spec='${libname}${release}${shared_ext}$major' 10741 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10742 shlibpath_var=LD_LIBRARY_PATH 10743 shlibpath_overrides_runpath=no 10744 10745 # Some binutils ld are patched to set DT_RUNPATH 10746 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10747 $as_echo_n "(cached) " >&6 10748else 10749 lt_cv_shlibpath_overrides_runpath=no 10750 save_LDFLAGS=$LDFLAGS 10751 save_libdir=$libdir 10752 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10753 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10755/* end confdefs.h. */ 10756 10757int 10758main () 10759{ 10760 10761 ; 10762 return 0; 10763} 10764_ACEOF 10765if ac_fn_c_try_link "$LINENO"; then : 10766 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10767 lt_cv_shlibpath_overrides_runpath=yes 10768fi 10769fi 10770rm -f core conftest.err conftest.$ac_objext \ 10771 conftest$ac_exeext conftest.$ac_ext 10772 LDFLAGS=$save_LDFLAGS 10773 libdir=$save_libdir 10774 10775fi 10776 10777 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10778 10779 # This implies no fast_install, which is unacceptable. 10780 # Some rework will be needed to allow for fast_install 10781 # before this can be enabled. 10782 hardcode_into_libs=yes 10783 10784 # Append ld.so.conf contents to the search path 10785 if test -f /etc/ld.so.conf; then 10786 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' ' '` 10787 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10788 fi 10789 10790 # We used to test for /lib/ld.so.1 and disable shared libraries on 10791 # powerpc, because MkLinux only supported shared libraries with the 10792 # GNU dynamic linker. Since this was broken with cross compilers, 10793 # most powerpc-linux boxes support dynamic linking these days and 10794 # people can always --disable-shared, the test was removed, and we 10795 # assume the GNU/Linux dynamic linker is in use. 10796 dynamic_linker='GNU/Linux ld.so' 10797 ;; 10798 10799netbsdelf*-gnu) 10800 version_type=linux 10801 need_lib_prefix=no 10802 need_version=no 10803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10804 soname_spec='${libname}${release}${shared_ext}$major' 10805 shlibpath_var=LD_LIBRARY_PATH 10806 shlibpath_overrides_runpath=no 10807 hardcode_into_libs=yes 10808 dynamic_linker='NetBSD ld.elf_so' 10809 ;; 10810 10811netbsd*) 10812 version_type=sunos 10813 need_lib_prefix=no 10814 need_version=no 10815 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10817 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10818 dynamic_linker='NetBSD (a.out) ld.so' 10819 else 10820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10821 soname_spec='${libname}${release}${shared_ext}$major' 10822 dynamic_linker='NetBSD ld.elf_so' 10823 fi 10824 shlibpath_var=LD_LIBRARY_PATH 10825 shlibpath_overrides_runpath=yes 10826 hardcode_into_libs=yes 10827 ;; 10828 10829newsos6) 10830 version_type=linux # correct to gnu/linux during the next big refactor 10831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10832 shlibpath_var=LD_LIBRARY_PATH 10833 shlibpath_overrides_runpath=yes 10834 ;; 10835 10836*nto* | *qnx*) 10837 version_type=qnx 10838 need_lib_prefix=no 10839 need_version=no 10840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10841 soname_spec='${libname}${release}${shared_ext}$major' 10842 shlibpath_var=LD_LIBRARY_PATH 10843 shlibpath_overrides_runpath=no 10844 hardcode_into_libs=yes 10845 dynamic_linker='ldqnx.so' 10846 ;; 10847 10848openbsd*) 10849 version_type=sunos 10850 sys_lib_dlsearch_path_spec="/usr/lib" 10851 need_lib_prefix=no 10852 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10853 case $host_os in 10854 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10855 *) need_version=no ;; 10856 esac 10857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10858 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10859 shlibpath_var=LD_LIBRARY_PATH 10860 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10861 case $host_os in 10862 openbsd2.[89] | openbsd2.[89].*) 10863 shlibpath_overrides_runpath=no 10864 ;; 10865 *) 10866 shlibpath_overrides_runpath=yes 10867 ;; 10868 esac 10869 else 10870 shlibpath_overrides_runpath=yes 10871 fi 10872 ;; 10873 10874os2*) 10875 libname_spec='$name' 10876 shrext_cmds=".dll" 10877 need_lib_prefix=no 10878 library_names_spec='$libname${shared_ext} $libname.a' 10879 dynamic_linker='OS/2 ld.exe' 10880 shlibpath_var=LIBPATH 10881 ;; 10882 10883osf3* | osf4* | osf5*) 10884 version_type=osf 10885 need_lib_prefix=no 10886 need_version=no 10887 soname_spec='${libname}${release}${shared_ext}$major' 10888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10889 shlibpath_var=LD_LIBRARY_PATH 10890 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10891 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10892 ;; 10893 10894rdos*) 10895 dynamic_linker=no 10896 ;; 10897 10898solaris*) 10899 version_type=linux # correct to gnu/linux during the next big refactor 10900 need_lib_prefix=no 10901 need_version=no 10902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10903 soname_spec='${libname}${release}${shared_ext}$major' 10904 shlibpath_var=LD_LIBRARY_PATH 10905 shlibpath_overrides_runpath=yes 10906 hardcode_into_libs=yes 10907 # ldd complains unless libraries are executable 10908 postinstall_cmds='chmod +x $lib' 10909 ;; 10910 10911sunos4*) 10912 version_type=sunos 10913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10914 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10915 shlibpath_var=LD_LIBRARY_PATH 10916 shlibpath_overrides_runpath=yes 10917 if test "$with_gnu_ld" = yes; then 10918 need_lib_prefix=no 10919 fi 10920 need_version=yes 10921 ;; 10922 10923sysv4 | sysv4.3*) 10924 version_type=linux # correct to gnu/linux during the next big refactor 10925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10926 soname_spec='${libname}${release}${shared_ext}$major' 10927 shlibpath_var=LD_LIBRARY_PATH 10928 case $host_vendor in 10929 sni) 10930 shlibpath_overrides_runpath=no 10931 need_lib_prefix=no 10932 runpath_var=LD_RUN_PATH 10933 ;; 10934 siemens) 10935 need_lib_prefix=no 10936 ;; 10937 motorola) 10938 need_lib_prefix=no 10939 need_version=no 10940 shlibpath_overrides_runpath=no 10941 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10942 ;; 10943 esac 10944 ;; 10945 10946sysv4*MP*) 10947 if test -d /usr/nec ;then 10948 version_type=linux # correct to gnu/linux during the next big refactor 10949 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10950 soname_spec='$libname${shared_ext}.$major' 10951 shlibpath_var=LD_LIBRARY_PATH 10952 fi 10953 ;; 10954 10955sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10956 version_type=freebsd-elf 10957 need_lib_prefix=no 10958 need_version=no 10959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10960 soname_spec='${libname}${release}${shared_ext}$major' 10961 shlibpath_var=LD_LIBRARY_PATH 10962 shlibpath_overrides_runpath=yes 10963 hardcode_into_libs=yes 10964 if test "$with_gnu_ld" = yes; then 10965 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10966 else 10967 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10968 case $host_os in 10969 sco3.2v5*) 10970 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10971 ;; 10972 esac 10973 fi 10974 sys_lib_dlsearch_path_spec='/usr/lib' 10975 ;; 10976 10977tpf*) 10978 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10979 version_type=linux # correct to gnu/linux during the next big refactor 10980 need_lib_prefix=no 10981 need_version=no 10982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10983 shlibpath_var=LD_LIBRARY_PATH 10984 shlibpath_overrides_runpath=no 10985 hardcode_into_libs=yes 10986 ;; 10987 10988uts4*) 10989 version_type=linux # correct to gnu/linux during the next big refactor 10990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10991 soname_spec='${libname}${release}${shared_ext}$major' 10992 shlibpath_var=LD_LIBRARY_PATH 10993 ;; 10994 10995*) 10996 dynamic_linker=no 10997 ;; 10998esac 10999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11000$as_echo "$dynamic_linker" >&6; } 11001test "$dynamic_linker" = no && can_build_shared=no 11002 11003variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11004if test "$GCC" = yes; then 11005 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11006fi 11007 11008if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11009 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11010fi 11011if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11012 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11013fi 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11107$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11108hardcode_action= 11109if test -n "$hardcode_libdir_flag_spec" || 11110 test -n "$runpath_var" || 11111 test "X$hardcode_automatic" = "Xyes" ; then 11112 11113 # We can hardcode non-existent directories. 11114 if test "$hardcode_direct" != no && 11115 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11116 # have to relink, otherwise we might link with an installed library 11117 # when we should be linking with a yet-to-be-installed one 11118 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11119 test "$hardcode_minus_L" != no; then 11120 # Linking always hardcodes the temporary library directory. 11121 hardcode_action=relink 11122 else 11123 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11124 hardcode_action=immediate 11125 fi 11126else 11127 # We cannot hardcode anything, or else we can only hardcode existing 11128 # directories. 11129 hardcode_action=unsupported 11130fi 11131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11132$as_echo "$hardcode_action" >&6; } 11133 11134if test "$hardcode_action" = relink || 11135 test "$inherit_rpath" = yes; then 11136 # Fast installation is not supported 11137 enable_fast_install=no 11138elif test "$shlibpath_overrides_runpath" = yes || 11139 test "$enable_shared" = no; then 11140 # Fast installation is not necessary 11141 enable_fast_install=needless 11142fi 11143 11144 11145 11146 11147 11148 11149 if test "x$enable_dlopen" != xyes; then 11150 enable_dlopen=unknown 11151 enable_dlopen_self=unknown 11152 enable_dlopen_self_static=unknown 11153else 11154 lt_cv_dlopen=no 11155 lt_cv_dlopen_libs= 11156 11157 case $host_os in 11158 beos*) 11159 lt_cv_dlopen="load_add_on" 11160 lt_cv_dlopen_libs= 11161 lt_cv_dlopen_self=yes 11162 ;; 11163 11164 mingw* | pw32* | cegcc*) 11165 lt_cv_dlopen="LoadLibrary" 11166 lt_cv_dlopen_libs= 11167 ;; 11168 11169 cygwin*) 11170 lt_cv_dlopen="dlopen" 11171 lt_cv_dlopen_libs= 11172 ;; 11173 11174 darwin*) 11175 # if libdl is installed we need to link against it 11176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11177$as_echo_n "checking for dlopen in -ldl... " >&6; } 11178if ${ac_cv_lib_dl_dlopen+:} false; then : 11179 $as_echo_n "(cached) " >&6 11180else 11181 ac_check_lib_save_LIBS=$LIBS 11182LIBS="-ldl $LIBS" 11183cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11184/* end confdefs.h. */ 11185 11186/* Override any GCC internal prototype to avoid an error. 11187 Use char because int might match the return type of a GCC 11188 builtin and then its argument prototype would still apply. */ 11189#ifdef __cplusplus 11190extern "C" 11191#endif 11192char dlopen (); 11193int 11194main () 11195{ 11196return dlopen (); 11197 ; 11198 return 0; 11199} 11200_ACEOF 11201if ac_fn_c_try_link "$LINENO"; then : 11202 ac_cv_lib_dl_dlopen=yes 11203else 11204 ac_cv_lib_dl_dlopen=no 11205fi 11206rm -f core conftest.err conftest.$ac_objext \ 11207 conftest$ac_exeext conftest.$ac_ext 11208LIBS=$ac_check_lib_save_LIBS 11209fi 11210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11211$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11212if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11213 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11214else 11215 11216 lt_cv_dlopen="dyld" 11217 lt_cv_dlopen_libs= 11218 lt_cv_dlopen_self=yes 11219 11220fi 11221 11222 ;; 11223 11224 *) 11225 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11226if test "x$ac_cv_func_shl_load" = xyes; then : 11227 lt_cv_dlopen="shl_load" 11228else 11229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11230$as_echo_n "checking for shl_load in -ldld... " >&6; } 11231if ${ac_cv_lib_dld_shl_load+:} false; then : 11232 $as_echo_n "(cached) " >&6 11233else 11234 ac_check_lib_save_LIBS=$LIBS 11235LIBS="-ldld $LIBS" 11236cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11237/* end confdefs.h. */ 11238 11239/* Override any GCC internal prototype to avoid an error. 11240 Use char because int might match the return type of a GCC 11241 builtin and then its argument prototype would still apply. */ 11242#ifdef __cplusplus 11243extern "C" 11244#endif 11245char shl_load (); 11246int 11247main () 11248{ 11249return shl_load (); 11250 ; 11251 return 0; 11252} 11253_ACEOF 11254if ac_fn_c_try_link "$LINENO"; then : 11255 ac_cv_lib_dld_shl_load=yes 11256else 11257 ac_cv_lib_dld_shl_load=no 11258fi 11259rm -f core conftest.err conftest.$ac_objext \ 11260 conftest$ac_exeext conftest.$ac_ext 11261LIBS=$ac_check_lib_save_LIBS 11262fi 11263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11264$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11265if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11266 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11267else 11268 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11269if test "x$ac_cv_func_dlopen" = xyes; then : 11270 lt_cv_dlopen="dlopen" 11271else 11272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11273$as_echo_n "checking for dlopen in -ldl... " >&6; } 11274if ${ac_cv_lib_dl_dlopen+:} false; then : 11275 $as_echo_n "(cached) " >&6 11276else 11277 ac_check_lib_save_LIBS=$LIBS 11278LIBS="-ldl $LIBS" 11279cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11280/* end confdefs.h. */ 11281 11282/* Override any GCC internal prototype to avoid an error. 11283 Use char because int might match the return type of a GCC 11284 builtin and then its argument prototype would still apply. */ 11285#ifdef __cplusplus 11286extern "C" 11287#endif 11288char dlopen (); 11289int 11290main () 11291{ 11292return dlopen (); 11293 ; 11294 return 0; 11295} 11296_ACEOF 11297if ac_fn_c_try_link "$LINENO"; then : 11298 ac_cv_lib_dl_dlopen=yes 11299else 11300 ac_cv_lib_dl_dlopen=no 11301fi 11302rm -f core conftest.err conftest.$ac_objext \ 11303 conftest$ac_exeext conftest.$ac_ext 11304LIBS=$ac_check_lib_save_LIBS 11305fi 11306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11307$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11308if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11309 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11310else 11311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11312$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11313if ${ac_cv_lib_svld_dlopen+:} false; then : 11314 $as_echo_n "(cached) " >&6 11315else 11316 ac_check_lib_save_LIBS=$LIBS 11317LIBS="-lsvld $LIBS" 11318cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11319/* end confdefs.h. */ 11320 11321/* Override any GCC internal prototype to avoid an error. 11322 Use char because int might match the return type of a GCC 11323 builtin and then its argument prototype would still apply. */ 11324#ifdef __cplusplus 11325extern "C" 11326#endif 11327char dlopen (); 11328int 11329main () 11330{ 11331return dlopen (); 11332 ; 11333 return 0; 11334} 11335_ACEOF 11336if ac_fn_c_try_link "$LINENO"; then : 11337 ac_cv_lib_svld_dlopen=yes 11338else 11339 ac_cv_lib_svld_dlopen=no 11340fi 11341rm -f core conftest.err conftest.$ac_objext \ 11342 conftest$ac_exeext conftest.$ac_ext 11343LIBS=$ac_check_lib_save_LIBS 11344fi 11345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11346$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11347if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11348 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11349else 11350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11351$as_echo_n "checking for dld_link in -ldld... " >&6; } 11352if ${ac_cv_lib_dld_dld_link+:} false; then : 11353 $as_echo_n "(cached) " >&6 11354else 11355 ac_check_lib_save_LIBS=$LIBS 11356LIBS="-ldld $LIBS" 11357cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11358/* end confdefs.h. */ 11359 11360/* Override any GCC internal prototype to avoid an error. 11361 Use char because int might match the return type of a GCC 11362 builtin and then its argument prototype would still apply. */ 11363#ifdef __cplusplus 11364extern "C" 11365#endif 11366char dld_link (); 11367int 11368main () 11369{ 11370return dld_link (); 11371 ; 11372 return 0; 11373} 11374_ACEOF 11375if ac_fn_c_try_link "$LINENO"; then : 11376 ac_cv_lib_dld_dld_link=yes 11377else 11378 ac_cv_lib_dld_dld_link=no 11379fi 11380rm -f core conftest.err conftest.$ac_objext \ 11381 conftest$ac_exeext conftest.$ac_ext 11382LIBS=$ac_check_lib_save_LIBS 11383fi 11384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11385$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11386if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11387 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11388fi 11389 11390 11391fi 11392 11393 11394fi 11395 11396 11397fi 11398 11399 11400fi 11401 11402 11403fi 11404 11405 ;; 11406 esac 11407 11408 if test "x$lt_cv_dlopen" != xno; then 11409 enable_dlopen=yes 11410 else 11411 enable_dlopen=no 11412 fi 11413 11414 case $lt_cv_dlopen in 11415 dlopen) 11416 save_CPPFLAGS="$CPPFLAGS" 11417 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11418 11419 save_LDFLAGS="$LDFLAGS" 11420 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11421 11422 save_LIBS="$LIBS" 11423 LIBS="$lt_cv_dlopen_libs $LIBS" 11424 11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11426$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11427if ${lt_cv_dlopen_self+:} false; then : 11428 $as_echo_n "(cached) " >&6 11429else 11430 if test "$cross_compiling" = yes; then : 11431 lt_cv_dlopen_self=cross 11432else 11433 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11434 lt_status=$lt_dlunknown 11435 cat > conftest.$ac_ext <<_LT_EOF 11436#line $LINENO "configure" 11437#include "confdefs.h" 11438 11439#if HAVE_DLFCN_H 11440#include <dlfcn.h> 11441#endif 11442 11443#include <stdio.h> 11444 11445#ifdef RTLD_GLOBAL 11446# define LT_DLGLOBAL RTLD_GLOBAL 11447#else 11448# ifdef DL_GLOBAL 11449# define LT_DLGLOBAL DL_GLOBAL 11450# else 11451# define LT_DLGLOBAL 0 11452# endif 11453#endif 11454 11455/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11456 find out it does not work in some platform. */ 11457#ifndef LT_DLLAZY_OR_NOW 11458# ifdef RTLD_LAZY 11459# define LT_DLLAZY_OR_NOW RTLD_LAZY 11460# else 11461# ifdef DL_LAZY 11462# define LT_DLLAZY_OR_NOW DL_LAZY 11463# else 11464# ifdef RTLD_NOW 11465# define LT_DLLAZY_OR_NOW RTLD_NOW 11466# else 11467# ifdef DL_NOW 11468# define LT_DLLAZY_OR_NOW DL_NOW 11469# else 11470# define LT_DLLAZY_OR_NOW 0 11471# endif 11472# endif 11473# endif 11474# endif 11475#endif 11476 11477/* When -fvisbility=hidden is used, assume the code has been annotated 11478 correspondingly for the symbols needed. */ 11479#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11480int fnord () __attribute__((visibility("default"))); 11481#endif 11482 11483int fnord () { return 42; } 11484int main () 11485{ 11486 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11487 int status = $lt_dlunknown; 11488 11489 if (self) 11490 { 11491 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11492 else 11493 { 11494 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11495 else puts (dlerror ()); 11496 } 11497 /* dlclose (self); */ 11498 } 11499 else 11500 puts (dlerror ()); 11501 11502 return status; 11503} 11504_LT_EOF 11505 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11506 (eval $ac_link) 2>&5 11507 ac_status=$? 11508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11509 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11510 (./conftest; exit; ) >&5 2>/dev/null 11511 lt_status=$? 11512 case x$lt_status in 11513 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11514 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11515 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11516 esac 11517 else : 11518 # compilation failed 11519 lt_cv_dlopen_self=no 11520 fi 11521fi 11522rm -fr conftest* 11523 11524 11525fi 11526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11527$as_echo "$lt_cv_dlopen_self" >&6; } 11528 11529 if test "x$lt_cv_dlopen_self" = xyes; then 11530 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11532$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11533if ${lt_cv_dlopen_self_static+:} false; then : 11534 $as_echo_n "(cached) " >&6 11535else 11536 if test "$cross_compiling" = yes; then : 11537 lt_cv_dlopen_self_static=cross 11538else 11539 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11540 lt_status=$lt_dlunknown 11541 cat > conftest.$ac_ext <<_LT_EOF 11542#line $LINENO "configure" 11543#include "confdefs.h" 11544 11545#if HAVE_DLFCN_H 11546#include <dlfcn.h> 11547#endif 11548 11549#include <stdio.h> 11550 11551#ifdef RTLD_GLOBAL 11552# define LT_DLGLOBAL RTLD_GLOBAL 11553#else 11554# ifdef DL_GLOBAL 11555# define LT_DLGLOBAL DL_GLOBAL 11556# else 11557# define LT_DLGLOBAL 0 11558# endif 11559#endif 11560 11561/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11562 find out it does not work in some platform. */ 11563#ifndef LT_DLLAZY_OR_NOW 11564# ifdef RTLD_LAZY 11565# define LT_DLLAZY_OR_NOW RTLD_LAZY 11566# else 11567# ifdef DL_LAZY 11568# define LT_DLLAZY_OR_NOW DL_LAZY 11569# else 11570# ifdef RTLD_NOW 11571# define LT_DLLAZY_OR_NOW RTLD_NOW 11572# else 11573# ifdef DL_NOW 11574# define LT_DLLAZY_OR_NOW DL_NOW 11575# else 11576# define LT_DLLAZY_OR_NOW 0 11577# endif 11578# endif 11579# endif 11580# endif 11581#endif 11582 11583/* When -fvisbility=hidden is used, assume the code has been annotated 11584 correspondingly for the symbols needed. */ 11585#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11586int fnord () __attribute__((visibility("default"))); 11587#endif 11588 11589int fnord () { return 42; } 11590int main () 11591{ 11592 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11593 int status = $lt_dlunknown; 11594 11595 if (self) 11596 { 11597 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11598 else 11599 { 11600 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11601 else puts (dlerror ()); 11602 } 11603 /* dlclose (self); */ 11604 } 11605 else 11606 puts (dlerror ()); 11607 11608 return status; 11609} 11610_LT_EOF 11611 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11612 (eval $ac_link) 2>&5 11613 ac_status=$? 11614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11615 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11616 (./conftest; exit; ) >&5 2>/dev/null 11617 lt_status=$? 11618 case x$lt_status in 11619 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11620 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11621 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11622 esac 11623 else : 11624 # compilation failed 11625 lt_cv_dlopen_self_static=no 11626 fi 11627fi 11628rm -fr conftest* 11629 11630 11631fi 11632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11633$as_echo "$lt_cv_dlopen_self_static" >&6; } 11634 fi 11635 11636 CPPFLAGS="$save_CPPFLAGS" 11637 LDFLAGS="$save_LDFLAGS" 11638 LIBS="$save_LIBS" 11639 ;; 11640 esac 11641 11642 case $lt_cv_dlopen_self in 11643 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11644 *) enable_dlopen_self=unknown ;; 11645 esac 11646 11647 case $lt_cv_dlopen_self_static in 11648 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11649 *) enable_dlopen_self_static=unknown ;; 11650 esac 11651fi 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669striplib= 11670old_striplib= 11671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11672$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11673if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11674 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11675 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11677$as_echo "yes" >&6; } 11678else 11679# FIXME - insert some real tests, host_os isn't really good enough 11680 case $host_os in 11681 darwin*) 11682 if test -n "$STRIP" ; then 11683 striplib="$STRIP -x" 11684 old_striplib="$STRIP -S" 11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11686$as_echo "yes" >&6; } 11687 else 11688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11689$as_echo "no" >&6; } 11690 fi 11691 ;; 11692 *) 11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11694$as_echo "no" >&6; } 11695 ;; 11696 esac 11697fi 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 # Report which library types will actually be built 11711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11712$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11714$as_echo "$can_build_shared" >&6; } 11715 11716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11717$as_echo_n "checking whether to build shared libraries... " >&6; } 11718 test "$can_build_shared" = "no" && enable_shared=no 11719 11720 # On AIX, shared libraries and static libraries use the same namespace, and 11721 # are all built from PIC. 11722 case $host_os in 11723 aix3*) 11724 test "$enable_shared" = yes && enable_static=no 11725 if test -n "$RANLIB"; then 11726 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11727 postinstall_cmds='$RANLIB $lib' 11728 fi 11729 ;; 11730 11731 aix[4-9]*) 11732 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11733 test "$enable_shared" = yes && enable_static=no 11734 fi 11735 ;; 11736 esac 11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11738$as_echo "$enable_shared" >&6; } 11739 11740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11741$as_echo_n "checking whether to build static libraries... " >&6; } 11742 # Make sure either enable_shared or enable_static is yes. 11743 test "$enable_shared" = yes || enable_static=yes 11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11745$as_echo "$enable_static" >&6; } 11746 11747 11748 11749 11750fi 11751ac_ext=c 11752ac_cpp='$CPP $CPPFLAGS' 11753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11755ac_compiler_gnu=$ac_cv_c_compiler_gnu 11756 11757CC="$lt_save_CC" 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 ac_config_commands="$ac_config_commands libtool" 11774 11775 11776 11777 11778# Only expand once: 11779 11780 11781ac_ext=cpp 11782ac_cpp='$CXXCPP $CPPFLAGS' 11783ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11784ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11785ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11786if test -z "$CXX"; then 11787 if test -n "$CCC"; then 11788 CXX=$CCC 11789 else 11790 if test -n "$ac_tool_prefix"; then 11791 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 11792 do 11793 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11794set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11796$as_echo_n "checking for $ac_word... " >&6; } 11797if ${ac_cv_prog_CXX+:} false; then : 11798 $as_echo_n "(cached) " >&6 11799else 11800 if test -n "$CXX"; then 11801 ac_cv_prog_CXX="$CXX" # Let the user override the test. 11802else 11803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11804for as_dir in $PATH 11805do 11806 IFS=$as_save_IFS 11807 test -z "$as_dir" && as_dir=. 11808 for ac_exec_ext in '' $ac_executable_extensions; do 11809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11810 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 11811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11812 break 2 11813 fi 11814done 11815 done 11816IFS=$as_save_IFS 11817 11818fi 11819fi 11820CXX=$ac_cv_prog_CXX 11821if test -n "$CXX"; then 11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 11823$as_echo "$CXX" >&6; } 11824else 11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11826$as_echo "no" >&6; } 11827fi 11828 11829 11830 test -n "$CXX" && break 11831 done 11832fi 11833if test -z "$CXX"; then 11834 ac_ct_CXX=$CXX 11835 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 11836do 11837 # Extract the first word of "$ac_prog", so it can be a program name with args. 11838set dummy $ac_prog; ac_word=$2 11839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11840$as_echo_n "checking for $ac_word... " >&6; } 11841if ${ac_cv_prog_ac_ct_CXX+:} false; then : 11842 $as_echo_n "(cached) " >&6 11843else 11844 if test -n "$ac_ct_CXX"; then 11845 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 11846else 11847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11848for as_dir in $PATH 11849do 11850 IFS=$as_save_IFS 11851 test -z "$as_dir" && as_dir=. 11852 for ac_exec_ext in '' $ac_executable_extensions; do 11853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11854 ac_cv_prog_ac_ct_CXX="$ac_prog" 11855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11856 break 2 11857 fi 11858done 11859 done 11860IFS=$as_save_IFS 11861 11862fi 11863fi 11864ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 11865if test -n "$ac_ct_CXX"; then 11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 11867$as_echo "$ac_ct_CXX" >&6; } 11868else 11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11870$as_echo "no" >&6; } 11871fi 11872 11873 11874 test -n "$ac_ct_CXX" && break 11875done 11876 11877 if test "x$ac_ct_CXX" = x; then 11878 CXX="g++" 11879 else 11880 case $cross_compiling:$ac_tool_warned in 11881yes:) 11882{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11883$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11884ac_tool_warned=yes ;; 11885esac 11886 CXX=$ac_ct_CXX 11887 fi 11888fi 11889 11890 fi 11891fi 11892# Provide some information about the compiler. 11893$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 11894set X $ac_compile 11895ac_compiler=$2 11896for ac_option in --version -v -V -qversion; do 11897 { { ac_try="$ac_compiler $ac_option >&5" 11898case "(($ac_try" in 11899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11900 *) ac_try_echo=$ac_try;; 11901esac 11902eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 11903$as_echo "$ac_try_echo"; } >&5 11904 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 11905 ac_status=$? 11906 if test -s conftest.err; then 11907 sed '10a\ 11908... rest of stderr output deleted ... 11909 10q' conftest.err >conftest.er1 11910 cat conftest.er1 >&5 11911 fi 11912 rm -f conftest.er1 conftest.err 11913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11914 test $ac_status = 0; } 11915done 11916 11917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 11918$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 11919if ${ac_cv_cxx_compiler_gnu+:} false; then : 11920 $as_echo_n "(cached) " >&6 11921else 11922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11923/* end confdefs.h. */ 11924 11925int 11926main () 11927{ 11928#ifndef __GNUC__ 11929 choke me 11930#endif 11931 11932 ; 11933 return 0; 11934} 11935_ACEOF 11936if ac_fn_cxx_try_compile "$LINENO"; then : 11937 ac_compiler_gnu=yes 11938else 11939 ac_compiler_gnu=no 11940fi 11941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11942ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 11943 11944fi 11945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 11946$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 11947if test $ac_compiler_gnu = yes; then 11948 GXX=yes 11949else 11950 GXX= 11951fi 11952ac_test_CXXFLAGS=${CXXFLAGS+set} 11953ac_save_CXXFLAGS=$CXXFLAGS 11954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 11955$as_echo_n "checking whether $CXX accepts -g... " >&6; } 11956if ${ac_cv_prog_cxx_g+:} false; then : 11957 $as_echo_n "(cached) " >&6 11958else 11959 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 11960 ac_cxx_werror_flag=yes 11961 ac_cv_prog_cxx_g=no 11962 CXXFLAGS="-g" 11963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11964/* end confdefs.h. */ 11965 11966int 11967main () 11968{ 11969 11970 ; 11971 return 0; 11972} 11973_ACEOF 11974if ac_fn_cxx_try_compile "$LINENO"; then : 11975 ac_cv_prog_cxx_g=yes 11976else 11977 CXXFLAGS="" 11978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11979/* end confdefs.h. */ 11980 11981int 11982main () 11983{ 11984 11985 ; 11986 return 0; 11987} 11988_ACEOF 11989if ac_fn_cxx_try_compile "$LINENO"; then : 11990 11991else 11992 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 11993 CXXFLAGS="-g" 11994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11995/* end confdefs.h. */ 11996 11997int 11998main () 11999{ 12000 12001 ; 12002 return 0; 12003} 12004_ACEOF 12005if ac_fn_cxx_try_compile "$LINENO"; then : 12006 ac_cv_prog_cxx_g=yes 12007fi 12008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12009fi 12010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12011fi 12012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12013 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 12014fi 12015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 12016$as_echo "$ac_cv_prog_cxx_g" >&6; } 12017if test "$ac_test_CXXFLAGS" = set; then 12018 CXXFLAGS=$ac_save_CXXFLAGS 12019elif test $ac_cv_prog_cxx_g = yes; then 12020 if test "$GXX" = yes; then 12021 CXXFLAGS="-g -O2" 12022 else 12023 CXXFLAGS="-g" 12024 fi 12025else 12026 if test "$GXX" = yes; then 12027 CXXFLAGS="-O2" 12028 else 12029 CXXFLAGS= 12030 fi 12031fi 12032ac_ext=c 12033ac_cpp='$CPP $CPPFLAGS' 12034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12036ac_compiler_gnu=$ac_cv_c_compiler_gnu 12037 12038depcc="$CXX" am_compiler_list= 12039 12040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 12041$as_echo_n "checking dependency style of $depcc... " >&6; } 12042if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 12043 $as_echo_n "(cached) " >&6 12044else 12045 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 12046 # We make a subdir and do the tests there. Otherwise we can end up 12047 # making bogus files that we don't know about and never remove. For 12048 # instance it was reported that on HP-UX the gcc test will end up 12049 # making a dummy file named 'D' -- because '-MD' means "put the output 12050 # in D". 12051 rm -rf conftest.dir 12052 mkdir conftest.dir 12053 # Copy depcomp to subdir because otherwise we won't find it if we're 12054 # using a relative directory. 12055 cp "$am_depcomp" conftest.dir 12056 cd conftest.dir 12057 # We will build objects and dependencies in a subdirectory because 12058 # it helps to detect inapplicable dependency modes. For instance 12059 # both Tru64's cc and ICC support -MD to output dependencies as a 12060 # side effect of compilation, but ICC will put the dependencies in 12061 # the current directory while Tru64 will put them in the object 12062 # directory. 12063 mkdir sub 12064 12065 am_cv_CXX_dependencies_compiler_type=none 12066 if test "$am_compiler_list" = ""; then 12067 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 12068 fi 12069 am__universal=false 12070 case " $depcc " in #( 12071 *\ -arch\ *\ -arch\ *) am__universal=true ;; 12072 esac 12073 12074 for depmode in $am_compiler_list; do 12075 # Setup a source with many dependencies, because some compilers 12076 # like to wrap large dependency lists on column 80 (with \), and 12077 # we should not choose a depcomp mode which is confused by this. 12078 # 12079 # We need to recreate these files for each test, as the compiler may 12080 # overwrite some of them when testing with obscure command lines. 12081 # This happens at least with the AIX C compiler. 12082 : > sub/conftest.c 12083 for i in 1 2 3 4 5 6; do 12084 echo '#include "conftst'$i'.h"' >> sub/conftest.c 12085 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 12086 # Solaris 10 /bin/sh. 12087 echo '/* dummy */' > sub/conftst$i.h 12088 done 12089 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 12090 12091 # We check with '-c' and '-o' for the sake of the "dashmstdout" 12092 # mode. It turns out that the SunPro C++ compiler does not properly 12093 # handle '-M -o', and we need to detect this. Also, some Intel 12094 # versions had trouble with output in subdirs. 12095 am__obj=sub/conftest.${OBJEXT-o} 12096 am__minus_obj="-o $am__obj" 12097 case $depmode in 12098 gcc) 12099 # This depmode causes a compiler race in universal mode. 12100 test "$am__universal" = false || continue 12101 ;; 12102 nosideeffect) 12103 # After this tag, mechanisms are not by side-effect, so they'll 12104 # only be used when explicitly requested. 12105 if test "x$enable_dependency_tracking" = xyes; then 12106 continue 12107 else 12108 break 12109 fi 12110 ;; 12111 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 12112 # This compiler won't grok '-c -o', but also, the minuso test has 12113 # not run yet. These depmodes are late enough in the game, and 12114 # so weak that their functioning should not be impacted. 12115 am__obj=conftest.${OBJEXT-o} 12116 am__minus_obj= 12117 ;; 12118 none) break ;; 12119 esac 12120 if depmode=$depmode \ 12121 source=sub/conftest.c object=$am__obj \ 12122 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 12123 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 12124 >/dev/null 2>conftest.err && 12125 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 12126 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 12127 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 12128 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 12129 # icc doesn't choke on unknown options, it will just issue warnings 12130 # or remarks (even with -Werror). So we grep stderr for any message 12131 # that says an option was ignored or not supported. 12132 # When given -MP, icc 7.0 and 7.1 complain thusly: 12133 # icc: Command line warning: ignoring option '-M'; no argument required 12134 # The diagnosis changed in icc 8.0: 12135 # icc: Command line remark: option '-MP' not supported 12136 if (grep 'ignoring option' conftest.err || 12137 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 12138 am_cv_CXX_dependencies_compiler_type=$depmode 12139 break 12140 fi 12141 fi 12142 done 12143 12144 cd .. 12145 rm -rf conftest.dir 12146else 12147 am_cv_CXX_dependencies_compiler_type=none 12148fi 12149 12150fi 12151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 12152$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 12153CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 12154 12155 if 12156 test "x$enable_dependency_tracking" != xno \ 12157 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 12158 am__fastdepCXX_TRUE= 12159 am__fastdepCXX_FALSE='#' 12160else 12161 am__fastdepCXX_TRUE='#' 12162 am__fastdepCXX_FALSE= 12163fi 12164 12165 12166 12167 12168func_stripname_cnf () 12169{ 12170 case ${2} in 12171 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 12172 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 12173 esac 12174} # func_stripname_cnf 12175 12176 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 12177 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 12178 (test "X$CXX" != "Xg++"))) ; then 12179 ac_ext=cpp 12180ac_cpp='$CXXCPP $CPPFLAGS' 12181ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12182ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12183ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 12185$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 12186if test -z "$CXXCPP"; then 12187 if ${ac_cv_prog_CXXCPP+:} false; then : 12188 $as_echo_n "(cached) " >&6 12189else 12190 # Double quotes because CXXCPP needs to be expanded 12191 for CXXCPP in "$CXX -E" "/lib/cpp" 12192 do 12193 ac_preproc_ok=false 12194for ac_cxx_preproc_warn_flag in '' yes 12195do 12196 # Use a header file that comes with gcc, so configuring glibc 12197 # with a fresh cross-compiler works. 12198 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12199 # <limits.h> exists even on freestanding compilers. 12200 # On the NeXT, cc -E runs the code through the compiler's parser, 12201 # not just through cpp. "Syntax error" is here to catch this case. 12202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12203/* end confdefs.h. */ 12204@%:@ifdef __STDC__ 12205@%:@ include <limits.h> 12206@%:@else 12207@%:@ include <assert.h> 12208@%:@endif 12209 Syntax error 12210_ACEOF 12211if ac_fn_cxx_try_cpp "$LINENO"; then : 12212 12213else 12214 # Broken: fails on valid input. 12215continue 12216fi 12217rm -f conftest.err conftest.i conftest.$ac_ext 12218 12219 # OK, works on sane cases. Now check whether nonexistent headers 12220 # can be detected and how. 12221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12222/* end confdefs.h. */ 12223@%:@include <ac_nonexistent.h> 12224_ACEOF 12225if ac_fn_cxx_try_cpp "$LINENO"; then : 12226 # Broken: success on invalid input. 12227continue 12228else 12229 # Passes both tests. 12230ac_preproc_ok=: 12231break 12232fi 12233rm -f conftest.err conftest.i conftest.$ac_ext 12234 12235done 12236# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12237rm -f conftest.i conftest.err conftest.$ac_ext 12238if $ac_preproc_ok; then : 12239 break 12240fi 12241 12242 done 12243 ac_cv_prog_CXXCPP=$CXXCPP 12244 12245fi 12246 CXXCPP=$ac_cv_prog_CXXCPP 12247else 12248 ac_cv_prog_CXXCPP=$CXXCPP 12249fi 12250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 12251$as_echo "$CXXCPP" >&6; } 12252ac_preproc_ok=false 12253for ac_cxx_preproc_warn_flag in '' yes 12254do 12255 # Use a header file that comes with gcc, so configuring glibc 12256 # with a fresh cross-compiler works. 12257 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12258 # <limits.h> exists even on freestanding compilers. 12259 # On the NeXT, cc -E runs the code through the compiler's parser, 12260 # not just through cpp. "Syntax error" is here to catch this case. 12261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12262/* end confdefs.h. */ 12263@%:@ifdef __STDC__ 12264@%:@ include <limits.h> 12265@%:@else 12266@%:@ include <assert.h> 12267@%:@endif 12268 Syntax error 12269_ACEOF 12270if ac_fn_cxx_try_cpp "$LINENO"; then : 12271 12272else 12273 # Broken: fails on valid input. 12274continue 12275fi 12276rm -f conftest.err conftest.i conftest.$ac_ext 12277 12278 # OK, works on sane cases. Now check whether nonexistent headers 12279 # can be detected and how. 12280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12281/* end confdefs.h. */ 12282@%:@include <ac_nonexistent.h> 12283_ACEOF 12284if ac_fn_cxx_try_cpp "$LINENO"; then : 12285 # Broken: success on invalid input. 12286continue 12287else 12288 # Passes both tests. 12289ac_preproc_ok=: 12290break 12291fi 12292rm -f conftest.err conftest.i conftest.$ac_ext 12293 12294done 12295# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12296rm -f conftest.i conftest.err conftest.$ac_ext 12297if $ac_preproc_ok; then : 12298 12299else 12300 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12301$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12302as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 12303See \`config.log' for more details" "$LINENO" 5; } 12304fi 12305 12306ac_ext=c 12307ac_cpp='$CPP $CPPFLAGS' 12308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12310ac_compiler_gnu=$ac_cv_c_compiler_gnu 12311 12312else 12313 _lt_caught_CXX_error=yes 12314fi 12315 12316ac_ext=cpp 12317ac_cpp='$CXXCPP $CPPFLAGS' 12318ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12319ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12320ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12321 12322archive_cmds_need_lc_CXX=no 12323allow_undefined_flag_CXX= 12324always_export_symbols_CXX=no 12325archive_expsym_cmds_CXX= 12326compiler_needs_object_CXX=no 12327export_dynamic_flag_spec_CXX= 12328hardcode_direct_CXX=no 12329hardcode_direct_absolute_CXX=no 12330hardcode_libdir_flag_spec_CXX= 12331hardcode_libdir_separator_CXX= 12332hardcode_minus_L_CXX=no 12333hardcode_shlibpath_var_CXX=unsupported 12334hardcode_automatic_CXX=no 12335inherit_rpath_CXX=no 12336module_cmds_CXX= 12337module_expsym_cmds_CXX= 12338link_all_deplibs_CXX=unknown 12339old_archive_cmds_CXX=$old_archive_cmds 12340reload_flag_CXX=$reload_flag 12341reload_cmds_CXX=$reload_cmds 12342no_undefined_flag_CXX= 12343whole_archive_flag_spec_CXX= 12344enable_shared_with_static_runtimes_CXX=no 12345 12346# Source file extension for C++ test sources. 12347ac_ext=cpp 12348 12349# Object file extension for compiled C++ test sources. 12350objext=o 12351objext_CXX=$objext 12352 12353# No sense in running all these tests if we already determined that 12354# the CXX compiler isn't working. Some variables (like enable_shared) 12355# are currently assumed to apply to all compilers on this platform, 12356# and will be corrupted by setting them based on a non-working compiler. 12357if test "$_lt_caught_CXX_error" != yes; then 12358 # Code to be used in simple compile tests 12359 lt_simple_compile_test_code="int some_variable = 0;" 12360 12361 # Code to be used in simple link tests 12362 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 12363 12364 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 12365 12366 12367 12368 12369 12370 12371# If no C compiler was specified, use CC. 12372LTCC=${LTCC-"$CC"} 12373 12374# If no C compiler flags were specified, use CFLAGS. 12375LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12376 12377# Allow CC to be a program name with arguments. 12378compiler=$CC 12379 12380 12381 # save warnings/boilerplate of simple test code 12382 ac_outfile=conftest.$ac_objext 12383echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12384eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12385_lt_compiler_boilerplate=`cat conftest.err` 12386$RM conftest* 12387 12388 ac_outfile=conftest.$ac_objext 12389echo "$lt_simple_link_test_code" >conftest.$ac_ext 12390eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12391_lt_linker_boilerplate=`cat conftest.err` 12392$RM -r conftest* 12393 12394 12395 # Allow CC to be a program name with arguments. 12396 lt_save_CC=$CC 12397 lt_save_CFLAGS=$CFLAGS 12398 lt_save_LD=$LD 12399 lt_save_GCC=$GCC 12400 GCC=$GXX 12401 lt_save_with_gnu_ld=$with_gnu_ld 12402 lt_save_path_LD=$lt_cv_path_LD 12403 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 12404 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 12405 else 12406 $as_unset lt_cv_prog_gnu_ld 12407 fi 12408 if test -n "${lt_cv_path_LDCXX+set}"; then 12409 lt_cv_path_LD=$lt_cv_path_LDCXX 12410 else 12411 $as_unset lt_cv_path_LD 12412 fi 12413 test -z "${LDCXX+set}" || LD=$LDCXX 12414 CC=${CXX-"c++"} 12415 CFLAGS=$CXXFLAGS 12416 compiler=$CC 12417 compiler_CXX=$CC 12418 for cc_temp in $compiler""; do 12419 case $cc_temp in 12420 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12421 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12422 \-*) ;; 12423 *) break;; 12424 esac 12425done 12426cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 12427 12428 12429 if test -n "$compiler"; then 12430 # We don't want -fno-exception when compiling C++ code, so set the 12431 # no_builtin_flag separately 12432 if test "$GXX" = yes; then 12433 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 12434 else 12435 lt_prog_compiler_no_builtin_flag_CXX= 12436 fi 12437 12438 if test "$GXX" = yes; then 12439 # Set up default GNU C++ configuration 12440 12441 12442 12443@%:@ Check whether --with-gnu-ld was given. 12444if test "${with_gnu_ld+set}" = set; then : 12445 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 12446else 12447 with_gnu_ld=no 12448fi 12449 12450ac_prog=ld 12451if test "$GCC" = yes; then 12452 # Check if gcc -print-prog-name=ld gives a path. 12453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 12454$as_echo_n "checking for ld used by $CC... " >&6; } 12455 case $host in 12456 *-*-mingw*) 12457 # gcc leaves a trailing carriage return which upsets mingw 12458 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12459 *) 12460 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12461 esac 12462 case $ac_prog in 12463 # Accept absolute paths. 12464 [\\/]* | ?:[\\/]*) 12465 re_direlt='/[^/][^/]*/\.\./' 12466 # Canonicalize the pathname of ld 12467 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 12468 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 12469 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12470 done 12471 test -z "$LD" && LD="$ac_prog" 12472 ;; 12473 "") 12474 # If it fails, then pretend we aren't using GCC. 12475 ac_prog=ld 12476 ;; 12477 *) 12478 # If it is relative, then search for the first ld in PATH. 12479 with_gnu_ld=unknown 12480 ;; 12481 esac 12482elif test "$with_gnu_ld" = yes; then 12483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12484$as_echo_n "checking for GNU ld... " >&6; } 12485else 12486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 12487$as_echo_n "checking for non-GNU ld... " >&6; } 12488fi 12489if ${lt_cv_path_LD+:} false; then : 12490 $as_echo_n "(cached) " >&6 12491else 12492 if test -z "$LD"; then 12493 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 12494 for ac_dir in $PATH; do 12495 IFS="$lt_save_ifs" 12496 test -z "$ac_dir" && ac_dir=. 12497 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12498 lt_cv_path_LD="$ac_dir/$ac_prog" 12499 # Check to see if the program is GNU ld. I'd rather use --version, 12500 # but apparently some variants of GNU ld only accept -v. 12501 # Break only if it was the GNU/non-GNU ld that we prefer. 12502 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12503 *GNU* | *'with BFD'*) 12504 test "$with_gnu_ld" != no && break 12505 ;; 12506 *) 12507 test "$with_gnu_ld" != yes && break 12508 ;; 12509 esac 12510 fi 12511 done 12512 IFS="$lt_save_ifs" 12513else 12514 lt_cv_path_LD="$LD" # Let the user override the test with a path. 12515fi 12516fi 12517 12518LD="$lt_cv_path_LD" 12519if test -n "$LD"; then 12520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 12521$as_echo "$LD" >&6; } 12522else 12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12524$as_echo "no" >&6; } 12525fi 12526test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 12527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 12528$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 12529if ${lt_cv_prog_gnu_ld+:} false; then : 12530 $as_echo_n "(cached) " >&6 12531else 12532 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12533case `$LD -v 2>&1 </dev/null` in 12534*GNU* | *'with BFD'*) 12535 lt_cv_prog_gnu_ld=yes 12536 ;; 12537*) 12538 lt_cv_prog_gnu_ld=no 12539 ;; 12540esac 12541fi 12542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 12543$as_echo "$lt_cv_prog_gnu_ld" >&6; } 12544with_gnu_ld=$lt_cv_prog_gnu_ld 12545 12546 12547 12548 12549 12550 12551 12552 # Check if GNU C++ uses GNU ld as the underlying linker, since the 12553 # archiving commands below assume that GNU ld is being used. 12554 if test "$with_gnu_ld" = yes; then 12555 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12556 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' 12557 12558 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12559 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12560 12561 # If archive_cmds runs LD, not CC, wlarc should be empty 12562 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 12563 # investigate it a little bit more. (MM) 12564 wlarc='${wl}' 12565 12566 # ancient GNU ld didn't support --whole-archive et. al. 12567 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 12568 $GREP 'no-whole-archive' > /dev/null; then 12569 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12570 else 12571 whole_archive_flag_spec_CXX= 12572 fi 12573 else 12574 with_gnu_ld=no 12575 wlarc= 12576 12577 # A generic and very simple default shared library creation 12578 # command for GNU C++ for the case where it uses the native 12579 # linker, instead of GNU ld. If possible, this setting should 12580 # overridden to take advantage of the native linker features on 12581 # the platform it is being used on. 12582 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12583 fi 12584 12585 # Commands to make compiler produce verbose output that lists 12586 # what "hidden" libraries, object files and flags are used when 12587 # linking a shared library. 12588 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 12589 12590 else 12591 GXX=no 12592 with_gnu_ld=no 12593 wlarc= 12594 fi 12595 12596 # PORTME: fill in a description of your system's C++ link characteristics 12597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12598$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12599 ld_shlibs_CXX=yes 12600 case $host_os in 12601 aix3*) 12602 # FIXME: insert proper C++ library support 12603 ld_shlibs_CXX=no 12604 ;; 12605 aix[4-9]*) 12606 if test "$host_cpu" = ia64; then 12607 # On IA64, the linker does run time linking by default, so we don't 12608 # have to do anything special. 12609 aix_use_runtimelinking=no 12610 exp_sym_flag='-Bexport' 12611 no_entry_flag="" 12612 else 12613 aix_use_runtimelinking=no 12614 12615 # Test if we are trying to use run time linking or normal 12616 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12617 # need to do runtime linking. 12618 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 12619 for ld_flag in $LDFLAGS; do 12620 case $ld_flag in 12621 *-brtl*) 12622 aix_use_runtimelinking=yes 12623 break 12624 ;; 12625 esac 12626 done 12627 ;; 12628 esac 12629 12630 exp_sym_flag='-bexport' 12631 no_entry_flag='-bnoentry' 12632 fi 12633 12634 # When large executables or shared objects are built, AIX ld can 12635 # have problems creating the table of contents. If linking a library 12636 # or program results in "error TOC overflow" add -mminimal-toc to 12637 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12638 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12639 12640 archive_cmds_CXX='' 12641 hardcode_direct_CXX=yes 12642 hardcode_direct_absolute_CXX=yes 12643 hardcode_libdir_separator_CXX=':' 12644 link_all_deplibs_CXX=yes 12645 file_list_spec_CXX='${wl}-f,' 12646 12647 if test "$GXX" = yes; then 12648 case $host_os in aix4.[012]|aix4.[012].*) 12649 # We only want to do this on AIX 4.2 and lower, the check 12650 # below for broken collect2 doesn't work under 4.3+ 12651 collect2name=`${CC} -print-prog-name=collect2` 12652 if test -f "$collect2name" && 12653 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12654 then 12655 # We have reworked collect2 12656 : 12657 else 12658 # We have old collect2 12659 hardcode_direct_CXX=unsupported 12660 # It fails to find uninstalled libraries when the uninstalled 12661 # path is not listed in the libpath. Setting hardcode_minus_L 12662 # to unsupported forces relinking 12663 hardcode_minus_L_CXX=yes 12664 hardcode_libdir_flag_spec_CXX='-L$libdir' 12665 hardcode_libdir_separator_CXX= 12666 fi 12667 esac 12668 shared_flag='-shared' 12669 if test "$aix_use_runtimelinking" = yes; then 12670 shared_flag="$shared_flag "'${wl}-G' 12671 fi 12672 else 12673 # not using gcc 12674 if test "$host_cpu" = ia64; then 12675 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12676 # chokes on -Wl,-G. The following line is correct: 12677 shared_flag='-G' 12678 else 12679 if test "$aix_use_runtimelinking" = yes; then 12680 shared_flag='${wl}-G' 12681 else 12682 shared_flag='${wl}-bM:SRE' 12683 fi 12684 fi 12685 fi 12686 12687 export_dynamic_flag_spec_CXX='${wl}-bexpall' 12688 # It seems that -bexpall does not export symbols beginning with 12689 # underscore (_), so it is better to generate a list of symbols to 12690 # export. 12691 always_export_symbols_CXX=yes 12692 if test "$aix_use_runtimelinking" = yes; then 12693 # Warning - without using the other runtime loading flags (-brtl), 12694 # -berok will link without error, but may produce a broken library. 12695 allow_undefined_flag_CXX='-berok' 12696 # Determine the default libpath from the value encoded in an empty 12697 # executable. 12698 if test "${lt_cv_aix_libpath+set}" = set; then 12699 aix_libpath=$lt_cv_aix_libpath 12700else 12701 if ${lt_cv_aix_libpath__CXX+:} false; then : 12702 $as_echo_n "(cached) " >&6 12703else 12704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12705/* end confdefs.h. */ 12706 12707int 12708main () 12709{ 12710 12711 ; 12712 return 0; 12713} 12714_ACEOF 12715if ac_fn_cxx_try_link "$LINENO"; then : 12716 12717 lt_aix_libpath_sed=' 12718 /Import File Strings/,/^$/ { 12719 /^0/ { 12720 s/^0 *\([^ ]*\) *$/\1/ 12721 p 12722 } 12723 }' 12724 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12725 # Check for a 64-bit object if we didn't find anything. 12726 if test -z "$lt_cv_aix_libpath__CXX"; then 12727 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12728 fi 12729fi 12730rm -f core conftest.err conftest.$ac_objext \ 12731 conftest$ac_exeext conftest.$ac_ext 12732 if test -z "$lt_cv_aix_libpath__CXX"; then 12733 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 12734 fi 12735 12736fi 12737 12738 aix_libpath=$lt_cv_aix_libpath__CXX 12739fi 12740 12741 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12742 12743 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" 12744 else 12745 if test "$host_cpu" = ia64; then 12746 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 12747 allow_undefined_flag_CXX="-z nodefs" 12748 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" 12749 else 12750 # Determine the default libpath from the value encoded in an 12751 # empty executable. 12752 if test "${lt_cv_aix_libpath+set}" = set; then 12753 aix_libpath=$lt_cv_aix_libpath 12754else 12755 if ${lt_cv_aix_libpath__CXX+:} false; then : 12756 $as_echo_n "(cached) " >&6 12757else 12758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12759/* end confdefs.h. */ 12760 12761int 12762main () 12763{ 12764 12765 ; 12766 return 0; 12767} 12768_ACEOF 12769if ac_fn_cxx_try_link "$LINENO"; then : 12770 12771 lt_aix_libpath_sed=' 12772 /Import File Strings/,/^$/ { 12773 /^0/ { 12774 s/^0 *\([^ ]*\) *$/\1/ 12775 p 12776 } 12777 }' 12778 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12779 # Check for a 64-bit object if we didn't find anything. 12780 if test -z "$lt_cv_aix_libpath__CXX"; then 12781 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12782 fi 12783fi 12784rm -f core conftest.err conftest.$ac_objext \ 12785 conftest$ac_exeext conftest.$ac_ext 12786 if test -z "$lt_cv_aix_libpath__CXX"; then 12787 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 12788 fi 12789 12790fi 12791 12792 aix_libpath=$lt_cv_aix_libpath__CXX 12793fi 12794 12795 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12796 # Warning - without using the other run time loading flags, 12797 # -berok will link without error, but may produce a broken library. 12798 no_undefined_flag_CXX=' ${wl}-bernotok' 12799 allow_undefined_flag_CXX=' ${wl}-berok' 12800 if test "$with_gnu_ld" = yes; then 12801 # We only use this code for GNU lds that support --whole-archive. 12802 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12803 else 12804 # Exported symbols can be pulled into shared objects from archives 12805 whole_archive_flag_spec_CXX='$convenience' 12806 fi 12807 archive_cmds_need_lc_CXX=yes 12808 # This is similar to how AIX traditionally builds its shared 12809 # libraries. 12810 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' 12811 fi 12812 fi 12813 ;; 12814 12815 beos*) 12816 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12817 allow_undefined_flag_CXX=unsupported 12818 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12819 # support --undefined. This deserves some investigation. FIXME 12820 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12821 else 12822 ld_shlibs_CXX=no 12823 fi 12824 ;; 12825 12826 chorus*) 12827 case $cc_basename in 12828 *) 12829 # FIXME: insert proper C++ library support 12830 ld_shlibs_CXX=no 12831 ;; 12832 esac 12833 ;; 12834 12835 cygwin* | mingw* | pw32* | cegcc*) 12836 case $GXX,$cc_basename in 12837 ,cl* | no,cl*) 12838 # Native MSVC 12839 # hardcode_libdir_flag_spec is actually meaningless, as there is 12840 # no search path for DLLs. 12841 hardcode_libdir_flag_spec_CXX=' ' 12842 allow_undefined_flag_CXX=unsupported 12843 always_export_symbols_CXX=yes 12844 file_list_spec_CXX='@' 12845 # Tell ltmain to make .lib files, not .a files. 12846 libext=lib 12847 # Tell ltmain to make .dll files, not .so files. 12848 shrext_cmds=".dll" 12849 # FIXME: Setting linknames here is a bad hack. 12850 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 12851 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12852 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 12853 else 12854 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 12855 fi~ 12856 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 12857 linknames=' 12858 # The linker will not automatically build a static lib if we build a DLL. 12859 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 12860 enable_shared_with_static_runtimes_CXX=yes 12861 # Don't use ranlib 12862 old_postinstall_cmds_CXX='chmod 644 $oldlib' 12863 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 12864 lt_tool_outputfile="@TOOL_OUTPUT@"~ 12865 case $lt_outputfile in 12866 *.exe|*.EXE) ;; 12867 *) 12868 lt_outputfile="$lt_outputfile.exe" 12869 lt_tool_outputfile="$lt_tool_outputfile.exe" 12870 ;; 12871 esac~ 12872 func_to_tool_file "$lt_outputfile"~ 12873 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 12874 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 12875 $RM "$lt_outputfile.manifest"; 12876 fi' 12877 ;; 12878 *) 12879 # g++ 12880 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 12881 # as there is no search path for DLLs. 12882 hardcode_libdir_flag_spec_CXX='-L$libdir' 12883 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 12884 allow_undefined_flag_CXX=unsupported 12885 always_export_symbols_CXX=no 12886 enable_shared_with_static_runtimes_CXX=yes 12887 12888 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 12889 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' 12890 # If the export-symbols file already is a .def file (1st line 12891 # is EXPORTS), use it as is; otherwise, prepend... 12892 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12893 cp $export_symbols $output_objdir/$soname.def; 12894 else 12895 echo EXPORTS > $output_objdir/$soname.def; 12896 cat $export_symbols >> $output_objdir/$soname.def; 12897 fi~ 12898 $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' 12899 else 12900 ld_shlibs_CXX=no 12901 fi 12902 ;; 12903 esac 12904 ;; 12905 darwin* | rhapsody*) 12906 12907 12908 archive_cmds_need_lc_CXX=no 12909 hardcode_direct_CXX=no 12910 hardcode_automatic_CXX=yes 12911 hardcode_shlibpath_var_CXX=unsupported 12912 if test "$lt_cv_ld_force_load" = "yes"; then 12913 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\"`' 12914 12915 else 12916 whole_archive_flag_spec_CXX='' 12917 fi 12918 link_all_deplibs_CXX=yes 12919 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 12920 case $cc_basename in 12921 ifort*) _lt_dar_can_shared=yes ;; 12922 *) _lt_dar_can_shared=$GCC ;; 12923 esac 12924 if test "$_lt_dar_can_shared" = "yes"; then 12925 output_verbose_link_cmd=func_echo_all 12926 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}" 12927 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 12928 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}" 12929 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}" 12930 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 12931 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}" 12932 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}" 12933 fi 12934 12935 else 12936 ld_shlibs_CXX=no 12937 fi 12938 12939 ;; 12940 12941 dgux*) 12942 case $cc_basename in 12943 ec++*) 12944 # FIXME: insert proper C++ library support 12945 ld_shlibs_CXX=no 12946 ;; 12947 ghcx*) 12948 # Green Hills C++ Compiler 12949 # FIXME: insert proper C++ library support 12950 ld_shlibs_CXX=no 12951 ;; 12952 *) 12953 # FIXME: insert proper C++ library support 12954 ld_shlibs_CXX=no 12955 ;; 12956 esac 12957 ;; 12958 12959 freebsd2.*) 12960 # C++ shared libraries reported to be fairly broken before 12961 # switch to ELF 12962 ld_shlibs_CXX=no 12963 ;; 12964 12965 freebsd-elf*) 12966 archive_cmds_need_lc_CXX=no 12967 ;; 12968 12969 freebsd* | dragonfly*) 12970 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 12971 # conventions 12972 ld_shlibs_CXX=yes 12973 ;; 12974 12975 haiku*) 12976 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12977 link_all_deplibs_CXX=yes 12978 ;; 12979 12980 hpux9*) 12981 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12982 hardcode_libdir_separator_CXX=: 12983 export_dynamic_flag_spec_CXX='${wl}-E' 12984 hardcode_direct_CXX=yes 12985 hardcode_minus_L_CXX=yes # Not in the search PATH, 12986 # but as the default 12987 # location of the library. 12988 12989 case $cc_basename in 12990 CC*) 12991 # FIXME: insert proper C++ library support 12992 ld_shlibs_CXX=no 12993 ;; 12994 aCC*) 12995 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' 12996 # Commands to make compiler produce verbose output that lists 12997 # what "hidden" libraries, object files and flags are used when 12998 # linking a shared library. 12999 # 13000 # There doesn't appear to be a way to prevent this compiler from 13001 # explicitly linking system object files so we need to strip them 13002 # from the output so that they don't get included in the library 13003 # dependencies. 13004 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"' 13005 ;; 13006 *) 13007 if test "$GXX" = yes; then 13008 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' 13009 else 13010 # FIXME: insert proper C++ library support 13011 ld_shlibs_CXX=no 13012 fi 13013 ;; 13014 esac 13015 ;; 13016 13017 hpux10*|hpux11*) 13018 if test $with_gnu_ld = no; then 13019 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 13020 hardcode_libdir_separator_CXX=: 13021 13022 case $host_cpu in 13023 hppa*64*|ia64*) 13024 ;; 13025 *) 13026 export_dynamic_flag_spec_CXX='${wl}-E' 13027 ;; 13028 esac 13029 fi 13030 case $host_cpu in 13031 hppa*64*|ia64*) 13032 hardcode_direct_CXX=no 13033 hardcode_shlibpath_var_CXX=no 13034 ;; 13035 *) 13036 hardcode_direct_CXX=yes 13037 hardcode_direct_absolute_CXX=yes 13038 hardcode_minus_L_CXX=yes # Not in the search PATH, 13039 # but as the default 13040 # location of the library. 13041 ;; 13042 esac 13043 13044 case $cc_basename in 13045 CC*) 13046 # FIXME: insert proper C++ library support 13047 ld_shlibs_CXX=no 13048 ;; 13049 aCC*) 13050 case $host_cpu in 13051 hppa*64*) 13052 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13053 ;; 13054 ia64*) 13055 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13056 ;; 13057 *) 13058 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13059 ;; 13060 esac 13061 # Commands to make compiler produce verbose output that lists 13062 # what "hidden" libraries, object files and flags are used when 13063 # linking a shared library. 13064 # 13065 # There doesn't appear to be a way to prevent this compiler from 13066 # explicitly linking system object files so we need to strip them 13067 # from the output so that they don't get included in the library 13068 # dependencies. 13069 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"' 13070 ;; 13071 *) 13072 if test "$GXX" = yes; then 13073 if test $with_gnu_ld = no; then 13074 case $host_cpu in 13075 hppa*64*) 13076 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13077 ;; 13078 ia64*) 13079 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13080 ;; 13081 *) 13082 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' 13083 ;; 13084 esac 13085 fi 13086 else 13087 # FIXME: insert proper C++ library support 13088 ld_shlibs_CXX=no 13089 fi 13090 ;; 13091 esac 13092 ;; 13093 13094 interix[3-9]*) 13095 hardcode_direct_CXX=no 13096 hardcode_shlibpath_var_CXX=no 13097 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13098 export_dynamic_flag_spec_CXX='${wl}-E' 13099 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13100 # Instead, shared libraries are loaded at an image base (0x10000000 by 13101 # default) and relocated if they conflict, which is a slow very memory 13102 # consuming and fragmenting process. To avoid this, we pick a random, 13103 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13104 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13105 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' 13106 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' 13107 ;; 13108 irix5* | irix6*) 13109 case $cc_basename in 13110 CC*) 13111 # SGI C++ 13112 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' 13113 13114 # Archives containing C++ object files must be created using 13115 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 13116 # necessary to make sure instantiated templates are included 13117 # in the archive. 13118 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 13119 ;; 13120 *) 13121 if test "$GXX" = yes; then 13122 if test "$with_gnu_ld" = no; then 13123 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' 13124 else 13125 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' 13126 fi 13127 fi 13128 link_all_deplibs_CXX=yes 13129 ;; 13130 esac 13131 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13132 hardcode_libdir_separator_CXX=: 13133 inherit_rpath_CXX=yes 13134 ;; 13135 13136 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13137 case $cc_basename in 13138 KCC*) 13139 # Kuck and Associates, Inc. (KAI) C++ Compiler 13140 13141 # KCC will only create a shared library if the output file 13142 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13143 # to its proper name (with version) after linking. 13144 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' 13145 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' 13146 # Commands to make compiler produce verbose output that lists 13147 # what "hidden" libraries, object files and flags are used when 13148 # linking a shared library. 13149 # 13150 # There doesn't appear to be a way to prevent this compiler from 13151 # explicitly linking system object files so we need to strip them 13152 # from the output so that they don't get included in the library 13153 # dependencies. 13154 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"' 13155 13156 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13157 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13158 13159 # Archives containing C++ object files must be created using 13160 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 13161 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 13162 ;; 13163 icpc* | ecpc* ) 13164 # Intel C++ 13165 with_gnu_ld=yes 13166 # version 8.0 and above of icpc choke on multiply defined symbols 13167 # if we add $predep_objects and $postdep_objects, however 7.1 and 13168 # earlier do not add the objects themselves. 13169 case `$CC -V 2>&1` in 13170 *"Version 7."*) 13171 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13172 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' 13173 ;; 13174 *) # Version 8.0 or newer 13175 tmp_idyn= 13176 case $host_cpu in 13177 ia64*) tmp_idyn=' -i_dynamic';; 13178 esac 13179 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13180 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' 13181 ;; 13182 esac 13183 archive_cmds_need_lc_CXX=no 13184 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13185 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13186 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 13187 ;; 13188 pgCC* | pgcpp*) 13189 # Portland Group C++ compiler 13190 case `$CC -V` in 13191 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 13192 prelink_cmds_CXX='tpldir=Template.dir~ 13193 rm -rf $tpldir~ 13194 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 13195 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 13196 old_archive_cmds_CXX='tpldir=Template.dir~ 13197 rm -rf $tpldir~ 13198 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 13199 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 13200 $RANLIB $oldlib' 13201 archive_cmds_CXX='tpldir=Template.dir~ 13202 rm -rf $tpldir~ 13203 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13204 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13205 archive_expsym_cmds_CXX='tpldir=Template.dir~ 13206 rm -rf $tpldir~ 13207 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13208 $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' 13209 ;; 13210 *) # Version 6 and above use weak symbols 13211 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13212 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' 13213 ;; 13214 esac 13215 13216 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 13217 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13218 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' 13219 ;; 13220 cxx*) 13221 # Compaq C++ 13222 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13223 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' 13224 13225 runpath_var=LD_RUN_PATH 13226 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13227 hardcode_libdir_separator_CXX=: 13228 13229 # Commands to make compiler produce verbose output that lists 13230 # what "hidden" libraries, object files and flags are used when 13231 # linking a shared library. 13232 # 13233 # There doesn't appear to be a way to prevent this compiler from 13234 # explicitly linking system object files so we need to strip them 13235 # from the output so that they don't get included in the library 13236 # dependencies. 13237 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' 13238 ;; 13239 xl* | mpixl* | bgxl*) 13240 # IBM XL 8.0 on PPC, with GNU ld 13241 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13242 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13243 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13244 if test "x$supports_anon_versioning" = xyes; then 13245 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 13246 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13247 echo "local: *; };" >> $output_objdir/$libname.ver~ 13248 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13249 fi 13250 ;; 13251 *) 13252 case `$CC -V 2>&1 | sed 5q` in 13253 *Sun\ C*) 13254 # Sun C++ 5.9 13255 no_undefined_flag_CXX=' -zdefs' 13256 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13257 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' 13258 hardcode_libdir_flag_spec_CXX='-R$libdir' 13259 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' 13260 compiler_needs_object_CXX=yes 13261 13262 # Not sure whether something based on 13263 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 13264 # would be better. 13265 output_verbose_link_cmd='func_echo_all' 13266 13267 # Archives containing C++ object files must be created using 13268 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13269 # necessary to make sure instantiated templates are included 13270 # in the archive. 13271 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13272 ;; 13273 esac 13274 ;; 13275 esac 13276 ;; 13277 13278 lynxos*) 13279 # FIXME: insert proper C++ library support 13280 ld_shlibs_CXX=no 13281 ;; 13282 13283 m88k*) 13284 # FIXME: insert proper C++ library support 13285 ld_shlibs_CXX=no 13286 ;; 13287 13288 mvs*) 13289 case $cc_basename in 13290 cxx*) 13291 # FIXME: insert proper C++ library support 13292 ld_shlibs_CXX=no 13293 ;; 13294 *) 13295 # FIXME: insert proper C++ library support 13296 ld_shlibs_CXX=no 13297 ;; 13298 esac 13299 ;; 13300 13301 netbsd*) 13302 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13303 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 13304 wlarc= 13305 hardcode_libdir_flag_spec_CXX='-R$libdir' 13306 hardcode_direct_CXX=yes 13307 hardcode_shlibpath_var_CXX=no 13308 fi 13309 # Workaround some broken pre-1.5 toolchains 13310 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 13311 ;; 13312 13313 *nto* | *qnx*) 13314 ld_shlibs_CXX=yes 13315 ;; 13316 13317 openbsd2*) 13318 # C++ shared libraries are fairly broken 13319 ld_shlibs_CXX=no 13320 ;; 13321 13322 openbsd*) 13323 if test -f /usr/libexec/ld.so; then 13324 hardcode_direct_CXX=yes 13325 hardcode_shlibpath_var_CXX=no 13326 hardcode_direct_absolute_CXX=yes 13327 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13328 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13329 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13330 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 13331 export_dynamic_flag_spec_CXX='${wl}-E' 13332 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13333 fi 13334 output_verbose_link_cmd=func_echo_all 13335 else 13336 ld_shlibs_CXX=no 13337 fi 13338 ;; 13339 13340 osf3* | osf4* | osf5*) 13341 case $cc_basename in 13342 KCC*) 13343 # Kuck and Associates, Inc. (KAI) C++ Compiler 13344 13345 # KCC will only create a shared library if the output file 13346 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13347 # to its proper name (with version) after linking. 13348 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' 13349 13350 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13351 hardcode_libdir_separator_CXX=: 13352 13353 # Archives containing C++ object files must be created using 13354 # the KAI C++ compiler. 13355 case $host in 13356 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 13357 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 13358 esac 13359 ;; 13360 RCC*) 13361 # Rational C++ 2.4.1 13362 # FIXME: insert proper C++ library support 13363 ld_shlibs_CXX=no 13364 ;; 13365 cxx*) 13366 case $host in 13367 osf3*) 13368 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13369 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' 13370 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13371 ;; 13372 *) 13373 allow_undefined_flag_CXX=' -expect_unresolved \*' 13374 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' 13375 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 13376 echo "-hidden">> $lib.exp~ 13377 $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~ 13378 $RM $lib.exp' 13379 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13380 ;; 13381 esac 13382 13383 hardcode_libdir_separator_CXX=: 13384 13385 # Commands to make compiler produce verbose output that lists 13386 # what "hidden" libraries, object files and flags are used when 13387 # linking a shared library. 13388 # 13389 # There doesn't appear to be a way to prevent this compiler from 13390 # explicitly linking system object files so we need to strip them 13391 # from the output so that they don't get included in the library 13392 # dependencies. 13393 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"' 13394 ;; 13395 *) 13396 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13397 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13398 case $host in 13399 osf3*) 13400 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' 13401 ;; 13402 *) 13403 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' 13404 ;; 13405 esac 13406 13407 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13408 hardcode_libdir_separator_CXX=: 13409 13410 # Commands to make compiler produce verbose output that lists 13411 # what "hidden" libraries, object files and flags are used when 13412 # linking a shared library. 13413 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13414 13415 else 13416 # FIXME: insert proper C++ library support 13417 ld_shlibs_CXX=no 13418 fi 13419 ;; 13420 esac 13421 ;; 13422 13423 psos*) 13424 # FIXME: insert proper C++ library support 13425 ld_shlibs_CXX=no 13426 ;; 13427 13428 sunos4*) 13429 case $cc_basename in 13430 CC*) 13431 # Sun C++ 4.x 13432 # FIXME: insert proper C++ library support 13433 ld_shlibs_CXX=no 13434 ;; 13435 lcc*) 13436 # Lucid 13437 # FIXME: insert proper C++ library support 13438 ld_shlibs_CXX=no 13439 ;; 13440 *) 13441 # FIXME: insert proper C++ library support 13442 ld_shlibs_CXX=no 13443 ;; 13444 esac 13445 ;; 13446 13447 solaris*) 13448 case $cc_basename in 13449 CC* | sunCC*) 13450 # Sun C++ 4.2, 5.x and Centerline C++ 13451 archive_cmds_need_lc_CXX=yes 13452 no_undefined_flag_CXX=' -zdefs' 13453 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13454 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13455 $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' 13456 13457 hardcode_libdir_flag_spec_CXX='-R$libdir' 13458 hardcode_shlibpath_var_CXX=no 13459 case $host_os in 13460 solaris2.[0-5] | solaris2.[0-5].*) ;; 13461 *) 13462 # The compiler driver will combine and reorder linker options, 13463 # but understands `-z linker_flag'. 13464 # Supported since Solaris 2.6 (maybe 2.5.1?) 13465 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 13466 ;; 13467 esac 13468 link_all_deplibs_CXX=yes 13469 13470 output_verbose_link_cmd='func_echo_all' 13471 13472 # Archives containing C++ object files must be created using 13473 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13474 # necessary to make sure instantiated templates are included 13475 # in the archive. 13476 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13477 ;; 13478 gcx*) 13479 # Green Hills C++ Compiler 13480 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13481 13482 # The C++ compiler must be used to create the archive. 13483 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 13484 ;; 13485 *) 13486 # GNU C++ compiler with Solaris linker 13487 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13488 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 13489 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 13490 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13491 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13492 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13493 13494 # Commands to make compiler produce verbose output that lists 13495 # what "hidden" libraries, object files and flags are used when 13496 # linking a shared library. 13497 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13498 else 13499 # g++ 2.7 appears to require `-G' NOT `-shared' on this 13500 # platform. 13501 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13502 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13503 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13504 13505 # Commands to make compiler produce verbose output that lists 13506 # what "hidden" libraries, object files and flags are used when 13507 # linking a shared library. 13508 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13509 fi 13510 13511 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 13512 case $host_os in 13513 solaris2.[0-5] | solaris2.[0-5].*) ;; 13514 *) 13515 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 13516 ;; 13517 esac 13518 fi 13519 ;; 13520 esac 13521 ;; 13522 13523 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13524 no_undefined_flag_CXX='${wl}-z,text' 13525 archive_cmds_need_lc_CXX=no 13526 hardcode_shlibpath_var_CXX=no 13527 runpath_var='LD_RUN_PATH' 13528 13529 case $cc_basename in 13530 CC*) 13531 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13532 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13533 ;; 13534 *) 13535 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13536 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13537 ;; 13538 esac 13539 ;; 13540 13541 sysv5* | sco3.2v5* | sco5v6*) 13542 # Note: We can NOT use -z defs as we might desire, because we do not 13543 # link with -lc, and that would cause any symbols used from libc to 13544 # always be unresolved, which means just about no library would 13545 # ever link correctly. If we're not using GNU ld we use -z text 13546 # though, which does catch some bad symbols but isn't as heavy-handed 13547 # as -z defs. 13548 no_undefined_flag_CXX='${wl}-z,text' 13549 allow_undefined_flag_CXX='${wl}-z,nodefs' 13550 archive_cmds_need_lc_CXX=no 13551 hardcode_shlibpath_var_CXX=no 13552 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 13553 hardcode_libdir_separator_CXX=':' 13554 link_all_deplibs_CXX=yes 13555 export_dynamic_flag_spec_CXX='${wl}-Bexport' 13556 runpath_var='LD_RUN_PATH' 13557 13558 case $cc_basename in 13559 CC*) 13560 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13561 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13562 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 13563 '"$old_archive_cmds_CXX" 13564 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 13565 '"$reload_cmds_CXX" 13566 ;; 13567 *) 13568 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13569 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13570 ;; 13571 esac 13572 ;; 13573 13574 tandem*) 13575 case $cc_basename in 13576 NCC*) 13577 # NonStop-UX NCC 3.20 13578 # FIXME: insert proper C++ library support 13579 ld_shlibs_CXX=no 13580 ;; 13581 *) 13582 # FIXME: insert proper C++ library support 13583 ld_shlibs_CXX=no 13584 ;; 13585 esac 13586 ;; 13587 13588 vxworks*) 13589 # FIXME: insert proper C++ library support 13590 ld_shlibs_CXX=no 13591 ;; 13592 13593 *) 13594 # FIXME: insert proper C++ library support 13595 ld_shlibs_CXX=no 13596 ;; 13597 esac 13598 13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 13600$as_echo "$ld_shlibs_CXX" >&6; } 13601 test "$ld_shlibs_CXX" = no && can_build_shared=no 13602 13603 GCC_CXX="$GXX" 13604 LD_CXX="$LD" 13605 13606 ## CAVEAT EMPTOR: 13607 ## There is no encapsulation within the following macros, do not change 13608 ## the running order or otherwise move them around unless you know exactly 13609 ## what you are doing... 13610 # Dependencies to place before and after the object being linked: 13611predep_objects_CXX= 13612postdep_objects_CXX= 13613predeps_CXX= 13614postdeps_CXX= 13615compiler_lib_search_path_CXX= 13616 13617cat > conftest.$ac_ext <<_LT_EOF 13618class Foo 13619{ 13620public: 13621 Foo (void) { a = 0; } 13622private: 13623 int a; 13624}; 13625_LT_EOF 13626 13627 13628_lt_libdeps_save_CFLAGS=$CFLAGS 13629case "$CC $CFLAGS " in #( 13630*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 13631*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 13632*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 13633esac 13634 13635if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13636 (eval $ac_compile) 2>&5 13637 ac_status=$? 13638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13639 test $ac_status = 0; }; then 13640 # Parse the compiler output and extract the necessary 13641 # objects, libraries and library flags. 13642 13643 # Sentinel used to keep track of whether or not we are before 13644 # the conftest object file. 13645 pre_test_object_deps_done=no 13646 13647 for p in `eval "$output_verbose_link_cmd"`; do 13648 case ${prev}${p} in 13649 13650 -L* | -R* | -l*) 13651 # Some compilers place space between "-{L,R}" and the path. 13652 # Remove the space. 13653 if test $p = "-L" || 13654 test $p = "-R"; then 13655 prev=$p 13656 continue 13657 fi 13658 13659 # Expand the sysroot to ease extracting the directories later. 13660 if test -z "$prev"; then 13661 case $p in 13662 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 13663 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 13664 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 13665 esac 13666 fi 13667 case $p in 13668 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 13669 esac 13670 if test "$pre_test_object_deps_done" = no; then 13671 case ${prev} in 13672 -L | -R) 13673 # Internal compiler library paths should come after those 13674 # provided the user. The postdeps already come after the 13675 # user supplied libs so there is no need to process them. 13676 if test -z "$compiler_lib_search_path_CXX"; then 13677 compiler_lib_search_path_CXX="${prev}${p}" 13678 else 13679 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 13680 fi 13681 ;; 13682 # The "-l" case would never come before the object being 13683 # linked, so don't bother handling this case. 13684 esac 13685 else 13686 if test -z "$postdeps_CXX"; then 13687 postdeps_CXX="${prev}${p}" 13688 else 13689 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 13690 fi 13691 fi 13692 prev= 13693 ;; 13694 13695 *.lto.$objext) ;; # Ignore GCC LTO objects 13696 *.$objext) 13697 # This assumes that the test object file only shows up 13698 # once in the compiler output. 13699 if test "$p" = "conftest.$objext"; then 13700 pre_test_object_deps_done=yes 13701 continue 13702 fi 13703 13704 if test "$pre_test_object_deps_done" = no; then 13705 if test -z "$predep_objects_CXX"; then 13706 predep_objects_CXX="$p" 13707 else 13708 predep_objects_CXX="$predep_objects_CXX $p" 13709 fi 13710 else 13711 if test -z "$postdep_objects_CXX"; then 13712 postdep_objects_CXX="$p" 13713 else 13714 postdep_objects_CXX="$postdep_objects_CXX $p" 13715 fi 13716 fi 13717 ;; 13718 13719 *) ;; # Ignore the rest. 13720 13721 esac 13722 done 13723 13724 # Clean up. 13725 rm -f a.out a.exe 13726else 13727 echo "libtool.m4: error: problem compiling CXX test program" 13728fi 13729 13730$RM -f confest.$objext 13731CFLAGS=$_lt_libdeps_save_CFLAGS 13732 13733# PORTME: override above test on systems where it is broken 13734case $host_os in 13735interix[3-9]*) 13736 # Interix 3.5 installs completely hosed .la files for C++, so rather than 13737 # hack all around it, let's just trust "g++" to DTRT. 13738 predep_objects_CXX= 13739 postdep_objects_CXX= 13740 postdeps_CXX= 13741 ;; 13742 13743linux*) 13744 case `$CC -V 2>&1 | sed 5q` in 13745 *Sun\ C*) 13746 # Sun C++ 5.9 13747 13748 # The more standards-conforming stlport4 library is 13749 # incompatible with the Cstd library. Avoid specifying 13750 # it if it's in CXXFLAGS. Ignore libCrun as 13751 # -library=stlport4 depends on it. 13752 case " $CXX $CXXFLAGS " in 13753 *" -library=stlport4 "*) 13754 solaris_use_stlport4=yes 13755 ;; 13756 esac 13757 13758 if test "$solaris_use_stlport4" != yes; then 13759 postdeps_CXX='-library=Cstd -library=Crun' 13760 fi 13761 ;; 13762 esac 13763 ;; 13764 13765solaris*) 13766 case $cc_basename in 13767 CC* | sunCC*) 13768 # The more standards-conforming stlport4 library is 13769 # incompatible with the Cstd library. Avoid specifying 13770 # it if it's in CXXFLAGS. Ignore libCrun as 13771 # -library=stlport4 depends on it. 13772 case " $CXX $CXXFLAGS " in 13773 *" -library=stlport4 "*) 13774 solaris_use_stlport4=yes 13775 ;; 13776 esac 13777 13778 # Adding this requires a known-good setup of shared libraries for 13779 # Sun compiler versions before 5.6, else PIC objects from an old 13780 # archive will be linked into the output, leading to subtle bugs. 13781 if test "$solaris_use_stlport4" != yes; then 13782 postdeps_CXX='-library=Cstd -library=Crun' 13783 fi 13784 ;; 13785 esac 13786 ;; 13787esac 13788 13789 13790case " $postdeps_CXX " in 13791*" -lc "*) archive_cmds_need_lc_CXX=no ;; 13792esac 13793 compiler_lib_search_dirs_CXX= 13794if test -n "${compiler_lib_search_path_CXX}"; then 13795 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 13796fi 13797 13798 13799 13800 13801 13802 13803 13804 13805 13806 13807 13808 13809 13810 13811 13812 13813 13814 13815 13816 13817 13818 13819 13820 13821 13822 13823 13824 13825 13826 13827 13828 lt_prog_compiler_wl_CXX= 13829lt_prog_compiler_pic_CXX= 13830lt_prog_compiler_static_CXX= 13831 13832 13833 # C++ specific cases for pic, static, wl, etc. 13834 if test "$GXX" = yes; then 13835 lt_prog_compiler_wl_CXX='-Wl,' 13836 lt_prog_compiler_static_CXX='-static' 13837 13838 case $host_os in 13839 aix*) 13840 # All AIX code is PIC. 13841 if test "$host_cpu" = ia64; then 13842 # AIX 5 now supports IA64 processor 13843 lt_prog_compiler_static_CXX='-Bstatic' 13844 fi 13845 ;; 13846 13847 amigaos*) 13848 case $host_cpu in 13849 powerpc) 13850 # see comment about AmigaOS4 .so support 13851 lt_prog_compiler_pic_CXX='-fPIC' 13852 ;; 13853 m68k) 13854 # FIXME: we need at least 68020 code to build shared libraries, but 13855 # adding the `-m68020' flag to GCC prevents building anything better, 13856 # like `-m68040'. 13857 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 13858 ;; 13859 esac 13860 ;; 13861 13862 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13863 # PIC is the default for these OSes. 13864 ;; 13865 mingw* | cygwin* | os2* | pw32* | cegcc*) 13866 # This hack is so that the source file can tell whether it is being 13867 # built for inclusion in a dll (and should export symbols for example). 13868 # Although the cygwin gcc ignores -fPIC, still need this for old-style 13869 # (--disable-auto-import) libraries 13870 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 13871 ;; 13872 darwin* | rhapsody*) 13873 # PIC is the default on this platform 13874 # Common symbols not allowed in MH_DYLIB files 13875 lt_prog_compiler_pic_CXX='-fno-common' 13876 ;; 13877 *djgpp*) 13878 # DJGPP does not support shared libraries at all 13879 lt_prog_compiler_pic_CXX= 13880 ;; 13881 haiku*) 13882 # PIC is the default for Haiku. 13883 # The "-static" flag exists, but is broken. 13884 lt_prog_compiler_static_CXX= 13885 ;; 13886 interix[3-9]*) 13887 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13888 # Instead, we relocate shared libraries at runtime. 13889 ;; 13890 sysv4*MP*) 13891 if test -d /usr/nec; then 13892 lt_prog_compiler_pic_CXX=-Kconform_pic 13893 fi 13894 ;; 13895 hpux*) 13896 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 13897 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 13898 # sets the default TLS model and affects inlining. 13899 case $host_cpu in 13900 hppa*64*) 13901 ;; 13902 *) 13903 lt_prog_compiler_pic_CXX='-fPIC' 13904 ;; 13905 esac 13906 ;; 13907 *qnx* | *nto*) 13908 # QNX uses GNU C++, but need to define -shared option too, otherwise 13909 # it will coredump. 13910 lt_prog_compiler_pic_CXX='-fPIC -shared' 13911 ;; 13912 *) 13913 lt_prog_compiler_pic_CXX='-fPIC' 13914 ;; 13915 esac 13916 else 13917 case $host_os in 13918 aix[4-9]*) 13919 # All AIX code is PIC. 13920 if test "$host_cpu" = ia64; then 13921 # AIX 5 now supports IA64 processor 13922 lt_prog_compiler_static_CXX='-Bstatic' 13923 else 13924 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 13925 fi 13926 ;; 13927 chorus*) 13928 case $cc_basename in 13929 cxch68*) 13930 # Green Hills C++ Compiler 13931 # _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" 13932 ;; 13933 esac 13934 ;; 13935 mingw* | cygwin* | os2* | pw32* | cegcc*) 13936 # This hack is so that the source file can tell whether it is being 13937 # built for inclusion in a dll (and should export symbols for example). 13938 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 13939 ;; 13940 dgux*) 13941 case $cc_basename in 13942 ec++*) 13943 lt_prog_compiler_pic_CXX='-KPIC' 13944 ;; 13945 ghcx*) 13946 # Green Hills C++ Compiler 13947 lt_prog_compiler_pic_CXX='-pic' 13948 ;; 13949 *) 13950 ;; 13951 esac 13952 ;; 13953 freebsd* | dragonfly*) 13954 # FreeBSD uses GNU C++ 13955 ;; 13956 hpux9* | hpux10* | hpux11*) 13957 case $cc_basename in 13958 CC*) 13959 lt_prog_compiler_wl_CXX='-Wl,' 13960 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13961 if test "$host_cpu" != ia64; then 13962 lt_prog_compiler_pic_CXX='+Z' 13963 fi 13964 ;; 13965 aCC*) 13966 lt_prog_compiler_wl_CXX='-Wl,' 13967 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13968 case $host_cpu in 13969 hppa*64*|ia64*) 13970 # +Z the default 13971 ;; 13972 *) 13973 lt_prog_compiler_pic_CXX='+Z' 13974 ;; 13975 esac 13976 ;; 13977 *) 13978 ;; 13979 esac 13980 ;; 13981 interix*) 13982 # This is c89, which is MS Visual C++ (no shared libs) 13983 # Anyone wants to do a port? 13984 ;; 13985 irix5* | irix6* | nonstopux*) 13986 case $cc_basename in 13987 CC*) 13988 lt_prog_compiler_wl_CXX='-Wl,' 13989 lt_prog_compiler_static_CXX='-non_shared' 13990 # CC pic flag -KPIC is the default. 13991 ;; 13992 *) 13993 ;; 13994 esac 13995 ;; 13996 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13997 case $cc_basename in 13998 KCC*) 13999 # KAI C++ Compiler 14000 lt_prog_compiler_wl_CXX='--backend -Wl,' 14001 lt_prog_compiler_pic_CXX='-fPIC' 14002 ;; 14003 ecpc* ) 14004 # old Intel C++ for x86_64 which still supported -KPIC. 14005 lt_prog_compiler_wl_CXX='-Wl,' 14006 lt_prog_compiler_pic_CXX='-KPIC' 14007 lt_prog_compiler_static_CXX='-static' 14008 ;; 14009 icpc* ) 14010 # Intel C++, used to be incompatible with GCC. 14011 # ICC 10 doesn't accept -KPIC any more. 14012 lt_prog_compiler_wl_CXX='-Wl,' 14013 lt_prog_compiler_pic_CXX='-fPIC' 14014 lt_prog_compiler_static_CXX='-static' 14015 ;; 14016 pgCC* | pgcpp*) 14017 # Portland Group C++ compiler 14018 lt_prog_compiler_wl_CXX='-Wl,' 14019 lt_prog_compiler_pic_CXX='-fpic' 14020 lt_prog_compiler_static_CXX='-Bstatic' 14021 ;; 14022 cxx*) 14023 # Compaq C++ 14024 # Make sure the PIC flag is empty. It appears that all Alpha 14025 # Linux and Compaq Tru64 Unix objects are PIC. 14026 lt_prog_compiler_pic_CXX= 14027 lt_prog_compiler_static_CXX='-non_shared' 14028 ;; 14029 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 14030 # IBM XL 8.0, 9.0 on PPC and BlueGene 14031 lt_prog_compiler_wl_CXX='-Wl,' 14032 lt_prog_compiler_pic_CXX='-qpic' 14033 lt_prog_compiler_static_CXX='-qstaticlink' 14034 ;; 14035 *) 14036 case `$CC -V 2>&1 | sed 5q` in 14037 *Sun\ C*) 14038 # Sun C++ 5.9 14039 lt_prog_compiler_pic_CXX='-KPIC' 14040 lt_prog_compiler_static_CXX='-Bstatic' 14041 lt_prog_compiler_wl_CXX='-Qoption ld ' 14042 ;; 14043 esac 14044 ;; 14045 esac 14046 ;; 14047 lynxos*) 14048 ;; 14049 m88k*) 14050 ;; 14051 mvs*) 14052 case $cc_basename in 14053 cxx*) 14054 lt_prog_compiler_pic_CXX='-W c,exportall' 14055 ;; 14056 *) 14057 ;; 14058 esac 14059 ;; 14060 netbsd* | netbsdelf*-gnu) 14061 ;; 14062 *qnx* | *nto*) 14063 # QNX uses GNU C++, but need to define -shared option too, otherwise 14064 # it will coredump. 14065 lt_prog_compiler_pic_CXX='-fPIC -shared' 14066 ;; 14067 osf3* | osf4* | osf5*) 14068 case $cc_basename in 14069 KCC*) 14070 lt_prog_compiler_wl_CXX='--backend -Wl,' 14071 ;; 14072 RCC*) 14073 # Rational C++ 2.4.1 14074 lt_prog_compiler_pic_CXX='-pic' 14075 ;; 14076 cxx*) 14077 # Digital/Compaq C++ 14078 lt_prog_compiler_wl_CXX='-Wl,' 14079 # Make sure the PIC flag is empty. It appears that all Alpha 14080 # Linux and Compaq Tru64 Unix objects are PIC. 14081 lt_prog_compiler_pic_CXX= 14082 lt_prog_compiler_static_CXX='-non_shared' 14083 ;; 14084 *) 14085 ;; 14086 esac 14087 ;; 14088 psos*) 14089 ;; 14090 solaris*) 14091 case $cc_basename in 14092 CC* | sunCC*) 14093 # Sun C++ 4.2, 5.x and Centerline C++ 14094 lt_prog_compiler_pic_CXX='-KPIC' 14095 lt_prog_compiler_static_CXX='-Bstatic' 14096 lt_prog_compiler_wl_CXX='-Qoption ld ' 14097 ;; 14098 gcx*) 14099 # Green Hills C++ Compiler 14100 lt_prog_compiler_pic_CXX='-PIC' 14101 ;; 14102 *) 14103 ;; 14104 esac 14105 ;; 14106 sunos4*) 14107 case $cc_basename in 14108 CC*) 14109 # Sun C++ 4.x 14110 lt_prog_compiler_pic_CXX='-pic' 14111 lt_prog_compiler_static_CXX='-Bstatic' 14112 ;; 14113 lcc*) 14114 # Lucid 14115 lt_prog_compiler_pic_CXX='-pic' 14116 ;; 14117 *) 14118 ;; 14119 esac 14120 ;; 14121 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14122 case $cc_basename in 14123 CC*) 14124 lt_prog_compiler_wl_CXX='-Wl,' 14125 lt_prog_compiler_pic_CXX='-KPIC' 14126 lt_prog_compiler_static_CXX='-Bstatic' 14127 ;; 14128 esac 14129 ;; 14130 tandem*) 14131 case $cc_basename in 14132 NCC*) 14133 # NonStop-UX NCC 3.20 14134 lt_prog_compiler_pic_CXX='-KPIC' 14135 ;; 14136 *) 14137 ;; 14138 esac 14139 ;; 14140 vxworks*) 14141 ;; 14142 *) 14143 lt_prog_compiler_can_build_shared_CXX=no 14144 ;; 14145 esac 14146 fi 14147 14148case $host_os in 14149 # For platforms which do not support PIC, -DPIC is meaningless: 14150 *djgpp*) 14151 lt_prog_compiler_pic_CXX= 14152 ;; 14153 *) 14154 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX@&t@ -DPIC" 14155 ;; 14156esac 14157 14158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 14159$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14160if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 14161 $as_echo_n "(cached) " >&6 14162else 14163 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 14164fi 14165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 14166$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 14167lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 14168 14169# 14170# Check to make sure the PIC flag actually works. 14171# 14172if test -n "$lt_prog_compiler_pic_CXX"; then 14173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 14174$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 14175if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 14176 $as_echo_n "(cached) " >&6 14177else 14178 lt_cv_prog_compiler_pic_works_CXX=no 14179 ac_outfile=conftest.$ac_objext 14180 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14181 lt_compiler_flag="$lt_prog_compiler_pic_CXX@&t@ -DPIC" 14182 # Insert the option either (1) after the last *FLAGS variable, or 14183 # (2) before a word containing "conftest.", or (3) at the end. 14184 # Note that $ac_compile itself does not contain backslashes and begins 14185 # with a dollar sign (not a hyphen), so the echo should work correctly. 14186 # The option is referenced via a variable to avoid confusing sed. 14187 lt_compile=`echo "$ac_compile" | $SED \ 14188 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14189 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14190 -e 's:$: $lt_compiler_flag:'` 14191 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14192 (eval "$lt_compile" 2>conftest.err) 14193 ac_status=$? 14194 cat conftest.err >&5 14195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14196 if (exit $ac_status) && test -s "$ac_outfile"; then 14197 # The compiler can only warn and ignore the option if not recognized 14198 # So say no if there are warnings other than the usual output. 14199 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14200 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14201 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14202 lt_cv_prog_compiler_pic_works_CXX=yes 14203 fi 14204 fi 14205 $RM conftest* 14206 14207fi 14208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 14209$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 14210 14211if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 14212 case $lt_prog_compiler_pic_CXX in 14213 "" | " "*) ;; 14214 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 14215 esac 14216else 14217 lt_prog_compiler_pic_CXX= 14218 lt_prog_compiler_can_build_shared_CXX=no 14219fi 14220 14221fi 14222 14223 14224 14225 14226 14227# 14228# Check to make sure the static flag actually works. 14229# 14230wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 14231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14232$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14233if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 14234 $as_echo_n "(cached) " >&6 14235else 14236 lt_cv_prog_compiler_static_works_CXX=no 14237 save_LDFLAGS="$LDFLAGS" 14238 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14239 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14240 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14241 # The linker can only warn and ignore the option if not recognized 14242 # So say no if there are warnings 14243 if test -s conftest.err; then 14244 # Append any errors to the config.log. 14245 cat conftest.err 1>&5 14246 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14247 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14248 if diff conftest.exp conftest.er2 >/dev/null; then 14249 lt_cv_prog_compiler_static_works_CXX=yes 14250 fi 14251 else 14252 lt_cv_prog_compiler_static_works_CXX=yes 14253 fi 14254 fi 14255 $RM -r conftest* 14256 LDFLAGS="$save_LDFLAGS" 14257 14258fi 14259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 14260$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 14261 14262if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 14263 : 14264else 14265 lt_prog_compiler_static_CXX= 14266fi 14267 14268 14269 14270 14271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14272$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14273if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14274 $as_echo_n "(cached) " >&6 14275else 14276 lt_cv_prog_compiler_c_o_CXX=no 14277 $RM -r conftest 2>/dev/null 14278 mkdir conftest 14279 cd conftest 14280 mkdir out 14281 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14282 14283 lt_compiler_flag="-o out/conftest2.$ac_objext" 14284 # Insert the option either (1) after the last *FLAGS variable, or 14285 # (2) before a word containing "conftest.", or (3) at the end. 14286 # Note that $ac_compile itself does not contain backslashes and begins 14287 # with a dollar sign (not a hyphen), so the echo should work correctly. 14288 lt_compile=`echo "$ac_compile" | $SED \ 14289 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14290 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14291 -e 's:$: $lt_compiler_flag:'` 14292 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14293 (eval "$lt_compile" 2>out/conftest.err) 14294 ac_status=$? 14295 cat out/conftest.err >&5 14296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14297 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14298 then 14299 # The compiler can only warn and ignore the option if not recognized 14300 # So say no if there are warnings 14301 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14302 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14303 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14304 lt_cv_prog_compiler_c_o_CXX=yes 14305 fi 14306 fi 14307 chmod u+w . 2>&5 14308 $RM conftest* 14309 # SGI C++ compiler will create directory out/ii_files/ for 14310 # template instantiation 14311 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14312 $RM out/* && rmdir out 14313 cd .. 14314 $RM -r conftest 14315 $RM conftest* 14316 14317fi 14318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14319$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14320 14321 14322 14323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14324$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14325if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14326 $as_echo_n "(cached) " >&6 14327else 14328 lt_cv_prog_compiler_c_o_CXX=no 14329 $RM -r conftest 2>/dev/null 14330 mkdir conftest 14331 cd conftest 14332 mkdir out 14333 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14334 14335 lt_compiler_flag="-o out/conftest2.$ac_objext" 14336 # Insert the option either (1) after the last *FLAGS variable, or 14337 # (2) before a word containing "conftest.", or (3) at the end. 14338 # Note that $ac_compile itself does not contain backslashes and begins 14339 # with a dollar sign (not a hyphen), so the echo should work correctly. 14340 lt_compile=`echo "$ac_compile" | $SED \ 14341 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14342 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14343 -e 's:$: $lt_compiler_flag:'` 14344 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14345 (eval "$lt_compile" 2>out/conftest.err) 14346 ac_status=$? 14347 cat out/conftest.err >&5 14348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14349 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14350 then 14351 # The compiler can only warn and ignore the option if not recognized 14352 # So say no if there are warnings 14353 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14354 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14355 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14356 lt_cv_prog_compiler_c_o_CXX=yes 14357 fi 14358 fi 14359 chmod u+w . 2>&5 14360 $RM conftest* 14361 # SGI C++ compiler will create directory out/ii_files/ for 14362 # template instantiation 14363 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14364 $RM out/* && rmdir out 14365 cd .. 14366 $RM -r conftest 14367 $RM conftest* 14368 14369fi 14370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14371$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14372 14373 14374 14375 14376hard_links="nottested" 14377if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 14378 # do not overwrite the value of need_locks provided by the user 14379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 14380$as_echo_n "checking if we can lock with hard links... " >&6; } 14381 hard_links=yes 14382 $RM conftest* 14383 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14384 touch conftest.a 14385 ln conftest.a conftest.b 2>&5 || hard_links=no 14386 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14388$as_echo "$hard_links" >&6; } 14389 if test "$hard_links" = no; then 14390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14391$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14392 need_locks=warn 14393 fi 14394else 14395 need_locks=no 14396fi 14397 14398 14399 14400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14401$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14402 14403 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14404 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14405 case $host_os in 14406 aix[4-9]*) 14407 # If we're using GNU nm, then we don't want the "-C" option. 14408 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14409 # Also, AIX nm treats weak defined symbols like other global defined 14410 # symbols, whereas GNU nm marks them as "W". 14411 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 14412 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' 14413 else 14414 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' 14415 fi 14416 ;; 14417 pw32*) 14418 export_symbols_cmds_CXX="$ltdll_cmds" 14419 ;; 14420 cygwin* | mingw* | cegcc*) 14421 case $cc_basename in 14422 cl*) 14423 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 14424 ;; 14425 *) 14426 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' 14427 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 14428 ;; 14429 esac 14430 ;; 14431 linux* | k*bsd*-gnu | gnu*) 14432 link_all_deplibs_CXX=no 14433 ;; 14434 *) 14435 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14436 ;; 14437 esac 14438 14439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14440$as_echo "$ld_shlibs_CXX" >&6; } 14441test "$ld_shlibs_CXX" = no && can_build_shared=no 14442 14443with_gnu_ld_CXX=$with_gnu_ld 14444 14445 14446 14447 14448 14449 14450# 14451# Do we need to explicitly link libc? 14452# 14453case "x$archive_cmds_need_lc_CXX" in 14454x|xyes) 14455 # Assume -lc should be added 14456 archive_cmds_need_lc_CXX=yes 14457 14458 if test "$enable_shared" = yes && test "$GCC" = yes; then 14459 case $archive_cmds_CXX in 14460 *'~'*) 14461 # FIXME: we may have to deal with multi-command sequences. 14462 ;; 14463 '$CC '*) 14464 # Test whether the compiler implicitly links with -lc since on some 14465 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14466 # to ld, don't add -lc before -lgcc. 14467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 14468$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 14469if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 14470 $as_echo_n "(cached) " >&6 14471else 14472 $RM conftest* 14473 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14474 14475 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14476 (eval $ac_compile) 2>&5 14477 ac_status=$? 14478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14479 test $ac_status = 0; } 2>conftest.err; then 14480 soname=conftest 14481 lib=conftest 14482 libobjs=conftest.$ac_objext 14483 deplibs= 14484 wl=$lt_prog_compiler_wl_CXX 14485 pic_flag=$lt_prog_compiler_pic_CXX 14486 compiler_flags=-v 14487 linker_flags=-v 14488 verstring= 14489 output_objdir=. 14490 libname=conftest 14491 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 14492 allow_undefined_flag_CXX= 14493 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 14494 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 14495 ac_status=$? 14496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14497 test $ac_status = 0; } 14498 then 14499 lt_cv_archive_cmds_need_lc_CXX=no 14500 else 14501 lt_cv_archive_cmds_need_lc_CXX=yes 14502 fi 14503 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 14504 else 14505 cat conftest.err 1>&5 14506 fi 14507 $RM conftest* 14508 14509fi 14510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 14511$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 14512 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 14513 ;; 14514 esac 14515 fi 14516 ;; 14517esac 14518 14519 14520 14521 14522 14523 14524 14525 14526 14527 14528 14529 14530 14531 14532 14533 14534 14535 14536 14537 14538 14539 14540 14541 14542 14543 14544 14545 14546 14547 14548 14549 14550 14551 14552 14553 14554 14555 14556 14557 14558 14559 14560 14561 14562 14563 14564 14565 14566 14567 14568 14569 14570 14571 14572 14573 14574 14575 14576 14577 14578 14579 14580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 14581$as_echo_n "checking dynamic linker characteristics... " >&6; } 14582 14583library_names_spec= 14584libname_spec='lib$name' 14585soname_spec= 14586shrext_cmds=".so" 14587postinstall_cmds= 14588postuninstall_cmds= 14589finish_cmds= 14590finish_eval= 14591shlibpath_var= 14592shlibpath_overrides_runpath=unknown 14593version_type=none 14594dynamic_linker="$host_os ld.so" 14595sys_lib_dlsearch_path_spec="/lib /usr/lib" 14596need_lib_prefix=unknown 14597hardcode_into_libs=no 14598 14599# when you set need_version to no, make sure it does not cause -set_version 14600# flags to be left without arguments 14601need_version=unknown 14602 14603case $host_os in 14604aix3*) 14605 version_type=linux # correct to gnu/linux during the next big refactor 14606 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14607 shlibpath_var=LIBPATH 14608 14609 # AIX 3 has no versioning support, so we append a major version to the name. 14610 soname_spec='${libname}${release}${shared_ext}$major' 14611 ;; 14612 14613aix[4-9]*) 14614 version_type=linux # correct to gnu/linux during the next big refactor 14615 need_lib_prefix=no 14616 need_version=no 14617 hardcode_into_libs=yes 14618 if test "$host_cpu" = ia64; then 14619 # AIX 5 supports IA64 14620 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14621 shlibpath_var=LD_LIBRARY_PATH 14622 else 14623 # With GCC up to 2.95.x, collect2 would create an import file 14624 # for dependence libraries. The import file would start with 14625 # the line `#! .'. This would cause the generated library to 14626 # depend on `.', always an invalid library. This was fixed in 14627 # development snapshots of GCC prior to 3.0. 14628 case $host_os in 14629 aix4 | aix4.[01] | aix4.[01].*) 14630 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14631 echo ' yes ' 14632 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 14633 : 14634 else 14635 can_build_shared=no 14636 fi 14637 ;; 14638 esac 14639 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14640 # soname into executable. Probably we can add versioning support to 14641 # collect2, so additional links can be useful in future. 14642 if test "$aix_use_runtimelinking" = yes; then 14643 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14644 # instead of lib<name>.a to let people know that these are not 14645 # typical AIX shared libraries. 14646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14647 else 14648 # We preserve .a as extension for shared libraries through AIX4.2 14649 # and later when we are not doing run time linking. 14650 library_names_spec='${libname}${release}.a $libname.a' 14651 soname_spec='${libname}${release}${shared_ext}$major' 14652 fi 14653 shlibpath_var=LIBPATH 14654 fi 14655 ;; 14656 14657amigaos*) 14658 case $host_cpu in 14659 powerpc) 14660 # Since July 2007 AmigaOS4 officially supports .so libraries. 14661 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 14662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14663 ;; 14664 m68k) 14665 library_names_spec='$libname.ixlibrary $libname.a' 14666 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14667 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' 14668 ;; 14669 esac 14670 ;; 14671 14672beos*) 14673 library_names_spec='${libname}${shared_ext}' 14674 dynamic_linker="$host_os ld.so" 14675 shlibpath_var=LIBRARY_PATH 14676 ;; 14677 14678bsdi[45]*) 14679 version_type=linux # correct to gnu/linux during the next big refactor 14680 need_version=no 14681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14682 soname_spec='${libname}${release}${shared_ext}$major' 14683 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14684 shlibpath_var=LD_LIBRARY_PATH 14685 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14686 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14687 # the default ld.so.conf also contains /usr/contrib/lib and 14688 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14689 # libtool to hard-code these into programs 14690 ;; 14691 14692cygwin* | mingw* | pw32* | cegcc*) 14693 version_type=windows 14694 shrext_cmds=".dll" 14695 need_version=no 14696 need_lib_prefix=no 14697 14698 case $GCC,$cc_basename in 14699 yes,*) 14700 # gcc 14701 library_names_spec='$libname.dll.a' 14702 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14703 postinstall_cmds='base_file=`basename \${file}`~ 14704 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 14705 dldir=$destdir/`dirname \$dlpath`~ 14706 test -d \$dldir || mkdir -p \$dldir~ 14707 $install_prog $dir/$dlname \$dldir/$dlname~ 14708 chmod a+x \$dldir/$dlname~ 14709 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14710 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14711 fi' 14712 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14713 dlpath=$dir/\$dldll~ 14714 $RM \$dlpath' 14715 shlibpath_overrides_runpath=yes 14716 14717 case $host_os in 14718 cygwin*) 14719 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14720 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14721 14722 ;; 14723 mingw* | cegcc*) 14724 # MinGW DLLs use traditional 'lib' prefix 14725 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14726 ;; 14727 pw32*) 14728 # pw32 DLLs use 'pw' prefix rather than 'lib' 14729 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14730 ;; 14731 esac 14732 dynamic_linker='Win32 ld.exe' 14733 ;; 14734 14735 *,cl*) 14736 # Native MSVC 14737 libname_spec='$name' 14738 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14739 library_names_spec='${libname}.dll.lib' 14740 14741 case $build_os in 14742 mingw*) 14743 sys_lib_search_path_spec= 14744 lt_save_ifs=$IFS 14745 IFS=';' 14746 for lt_path in $LIB 14747 do 14748 IFS=$lt_save_ifs 14749 # Let DOS variable expansion print the short 8.3 style file name. 14750 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 14751 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 14752 done 14753 IFS=$lt_save_ifs 14754 # Convert to MSYS style. 14755 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 14756 ;; 14757 cygwin*) 14758 # Convert to unix form, then to dos form, then back to unix form 14759 # but this time dos style (no spaces!) so that the unix form looks 14760 # like /cygdrive/c/PROGRA~1:/cygdr... 14761 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 14762 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 14763 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14764 ;; 14765 *) 14766 sys_lib_search_path_spec="$LIB" 14767 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 14768 # It is most probably a Windows format PATH. 14769 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14770 else 14771 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14772 fi 14773 # FIXME: find the short name or the path components, as spaces are 14774 # common. (e.g. "Program Files" -> "PROGRA~1") 14775 ;; 14776 esac 14777 14778 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14779 postinstall_cmds='base_file=`basename \${file}`~ 14780 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 14781 dldir=$destdir/`dirname \$dlpath`~ 14782 test -d \$dldir || mkdir -p \$dldir~ 14783 $install_prog $dir/$dlname \$dldir/$dlname' 14784 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14785 dlpath=$dir/\$dldll~ 14786 $RM \$dlpath' 14787 shlibpath_overrides_runpath=yes 14788 dynamic_linker='Win32 link.exe' 14789 ;; 14790 14791 *) 14792 # Assume MSVC wrapper 14793 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14794 dynamic_linker='Win32 ld.exe' 14795 ;; 14796 esac 14797 # FIXME: first we should search . and the directory the executable is in 14798 shlibpath_var=PATH 14799 ;; 14800 14801darwin* | rhapsody*) 14802 dynamic_linker="$host_os dyld" 14803 version_type=darwin 14804 need_lib_prefix=no 14805 need_version=no 14806 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14807 soname_spec='${libname}${release}${major}$shared_ext' 14808 shlibpath_overrides_runpath=yes 14809 shlibpath_var=DYLD_LIBRARY_PATH 14810 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14811 14812 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14813 ;; 14814 14815dgux*) 14816 version_type=linux # correct to gnu/linux during the next big refactor 14817 need_lib_prefix=no 14818 need_version=no 14819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14820 soname_spec='${libname}${release}${shared_ext}$major' 14821 shlibpath_var=LD_LIBRARY_PATH 14822 ;; 14823 14824freebsd* | dragonfly*) 14825 # DragonFly does not have aout. When/if they implement a new 14826 # versioning mechanism, adjust this. 14827 if test -x /usr/bin/objformat; then 14828 objformat=`/usr/bin/objformat` 14829 else 14830 case $host_os in 14831 freebsd[23].*) objformat=aout ;; 14832 *) objformat=elf ;; 14833 esac 14834 fi 14835 version_type=freebsd-$objformat 14836 case $version_type in 14837 freebsd-elf*) 14838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14839 need_version=no 14840 need_lib_prefix=no 14841 ;; 14842 freebsd-*) 14843 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14844 need_version=yes 14845 ;; 14846 esac 14847 shlibpath_var=LD_LIBRARY_PATH 14848 case $host_os in 14849 freebsd2.*) 14850 shlibpath_overrides_runpath=yes 14851 ;; 14852 freebsd3.[01]* | freebsdelf3.[01]*) 14853 shlibpath_overrides_runpath=yes 14854 hardcode_into_libs=yes 14855 ;; 14856 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14857 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14858 shlibpath_overrides_runpath=no 14859 hardcode_into_libs=yes 14860 ;; 14861 *) # from 4.6 on, and DragonFly 14862 shlibpath_overrides_runpath=yes 14863 hardcode_into_libs=yes 14864 ;; 14865 esac 14866 ;; 14867 14868haiku*) 14869 version_type=linux # correct to gnu/linux during the next big refactor 14870 need_lib_prefix=no 14871 need_version=no 14872 dynamic_linker="$host_os runtime_loader" 14873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14874 soname_spec='${libname}${release}${shared_ext}$major' 14875 shlibpath_var=LIBRARY_PATH 14876 shlibpath_overrides_runpath=yes 14877 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 14878 hardcode_into_libs=yes 14879 ;; 14880 14881hpux9* | hpux10* | hpux11*) 14882 # Give a soname corresponding to the major version so that dld.sl refuses to 14883 # link against other versions. 14884 version_type=sunos 14885 need_lib_prefix=no 14886 need_version=no 14887 case $host_cpu in 14888 ia64*) 14889 shrext_cmds='.so' 14890 hardcode_into_libs=yes 14891 dynamic_linker="$host_os dld.so" 14892 shlibpath_var=LD_LIBRARY_PATH 14893 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14895 soname_spec='${libname}${release}${shared_ext}$major' 14896 if test "X$HPUX_IA64_MODE" = X32; then 14897 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14898 else 14899 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14900 fi 14901 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14902 ;; 14903 hppa*64*) 14904 shrext_cmds='.sl' 14905 hardcode_into_libs=yes 14906 dynamic_linker="$host_os dld.sl" 14907 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14908 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14910 soname_spec='${libname}${release}${shared_ext}$major' 14911 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14912 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14913 ;; 14914 *) 14915 shrext_cmds='.sl' 14916 dynamic_linker="$host_os dld.sl" 14917 shlibpath_var=SHLIB_PATH 14918 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14920 soname_spec='${libname}${release}${shared_ext}$major' 14921 ;; 14922 esac 14923 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 14924 postinstall_cmds='chmod 555 $lib' 14925 # or fails outright, so override atomically: 14926 install_override_mode=555 14927 ;; 14928 14929interix[3-9]*) 14930 version_type=linux # correct to gnu/linux during the next big refactor 14931 need_lib_prefix=no 14932 need_version=no 14933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14934 soname_spec='${libname}${release}${shared_ext}$major' 14935 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14936 shlibpath_var=LD_LIBRARY_PATH 14937 shlibpath_overrides_runpath=no 14938 hardcode_into_libs=yes 14939 ;; 14940 14941irix5* | irix6* | nonstopux*) 14942 case $host_os in 14943 nonstopux*) version_type=nonstopux ;; 14944 *) 14945 if test "$lt_cv_prog_gnu_ld" = yes; then 14946 version_type=linux # correct to gnu/linux during the next big refactor 14947 else 14948 version_type=irix 14949 fi ;; 14950 esac 14951 need_lib_prefix=no 14952 need_version=no 14953 soname_spec='${libname}${release}${shared_ext}$major' 14954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14955 case $host_os in 14956 irix5* | nonstopux*) 14957 libsuff= shlibsuff= 14958 ;; 14959 *) 14960 case $LD in # libtool.m4 will add one of these switches to LD 14961 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14962 libsuff= shlibsuff= libmagic=32-bit;; 14963 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14964 libsuff=32 shlibsuff=N32 libmagic=N32;; 14965 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14966 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14967 *) libsuff= shlibsuff= libmagic=never-match;; 14968 esac 14969 ;; 14970 esac 14971 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14972 shlibpath_overrides_runpath=no 14973 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14974 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14975 hardcode_into_libs=yes 14976 ;; 14977 14978# No shared lib support for Linux oldld, aout, or coff. 14979linux*oldld* | linux*aout* | linux*coff*) 14980 dynamic_linker=no 14981 ;; 14982 14983# This must be glibc/ELF. 14984linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14985 version_type=linux # correct to gnu/linux during the next big refactor 14986 need_lib_prefix=no 14987 need_version=no 14988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14989 soname_spec='${libname}${release}${shared_ext}$major' 14990 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14991 shlibpath_var=LD_LIBRARY_PATH 14992 shlibpath_overrides_runpath=no 14993 14994 # Some binutils ld are patched to set DT_RUNPATH 14995 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 14996 $as_echo_n "(cached) " >&6 14997else 14998 lt_cv_shlibpath_overrides_runpath=no 14999 save_LDFLAGS=$LDFLAGS 15000 save_libdir=$libdir 15001 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 15002 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 15003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15004/* end confdefs.h. */ 15005 15006int 15007main () 15008{ 15009 15010 ; 15011 return 0; 15012} 15013_ACEOF 15014if ac_fn_cxx_try_link "$LINENO"; then : 15015 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 15016 lt_cv_shlibpath_overrides_runpath=yes 15017fi 15018fi 15019rm -f core conftest.err conftest.$ac_objext \ 15020 conftest$ac_exeext conftest.$ac_ext 15021 LDFLAGS=$save_LDFLAGS 15022 libdir=$save_libdir 15023 15024fi 15025 15026 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 15027 15028 # This implies no fast_install, which is unacceptable. 15029 # Some rework will be needed to allow for fast_install 15030 # before this can be enabled. 15031 hardcode_into_libs=yes 15032 15033 # Append ld.so.conf contents to the search path 15034 if test -f /etc/ld.so.conf; then 15035 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' ' '` 15036 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15037 fi 15038 15039 # We used to test for /lib/ld.so.1 and disable shared libraries on 15040 # powerpc, because MkLinux only supported shared libraries with the 15041 # GNU dynamic linker. Since this was broken with cross compilers, 15042 # most powerpc-linux boxes support dynamic linking these days and 15043 # people can always --disable-shared, the test was removed, and we 15044 # assume the GNU/Linux dynamic linker is in use. 15045 dynamic_linker='GNU/Linux ld.so' 15046 ;; 15047 15048netbsdelf*-gnu) 15049 version_type=linux 15050 need_lib_prefix=no 15051 need_version=no 15052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15053 soname_spec='${libname}${release}${shared_ext}$major' 15054 shlibpath_var=LD_LIBRARY_PATH 15055 shlibpath_overrides_runpath=no 15056 hardcode_into_libs=yes 15057 dynamic_linker='NetBSD ld.elf_so' 15058 ;; 15059 15060netbsd*) 15061 version_type=sunos 15062 need_lib_prefix=no 15063 need_version=no 15064 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15066 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15067 dynamic_linker='NetBSD (a.out) ld.so' 15068 else 15069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15070 soname_spec='${libname}${release}${shared_ext}$major' 15071 dynamic_linker='NetBSD ld.elf_so' 15072 fi 15073 shlibpath_var=LD_LIBRARY_PATH 15074 shlibpath_overrides_runpath=yes 15075 hardcode_into_libs=yes 15076 ;; 15077 15078newsos6) 15079 version_type=linux # correct to gnu/linux during the next big refactor 15080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15081 shlibpath_var=LD_LIBRARY_PATH 15082 shlibpath_overrides_runpath=yes 15083 ;; 15084 15085*nto* | *qnx*) 15086 version_type=qnx 15087 need_lib_prefix=no 15088 need_version=no 15089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15090 soname_spec='${libname}${release}${shared_ext}$major' 15091 shlibpath_var=LD_LIBRARY_PATH 15092 shlibpath_overrides_runpath=no 15093 hardcode_into_libs=yes 15094 dynamic_linker='ldqnx.so' 15095 ;; 15096 15097openbsd*) 15098 version_type=sunos 15099 sys_lib_dlsearch_path_spec="/usr/lib" 15100 need_lib_prefix=no 15101 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15102 case $host_os in 15103 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15104 *) need_version=no ;; 15105 esac 15106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15107 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15108 shlibpath_var=LD_LIBRARY_PATH 15109 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15110 case $host_os in 15111 openbsd2.[89] | openbsd2.[89].*) 15112 shlibpath_overrides_runpath=no 15113 ;; 15114 *) 15115 shlibpath_overrides_runpath=yes 15116 ;; 15117 esac 15118 else 15119 shlibpath_overrides_runpath=yes 15120 fi 15121 ;; 15122 15123os2*) 15124 libname_spec='$name' 15125 shrext_cmds=".dll" 15126 need_lib_prefix=no 15127 library_names_spec='$libname${shared_ext} $libname.a' 15128 dynamic_linker='OS/2 ld.exe' 15129 shlibpath_var=LIBPATH 15130 ;; 15131 15132osf3* | osf4* | osf5*) 15133 version_type=osf 15134 need_lib_prefix=no 15135 need_version=no 15136 soname_spec='${libname}${release}${shared_ext}$major' 15137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15138 shlibpath_var=LD_LIBRARY_PATH 15139 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15140 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15141 ;; 15142 15143rdos*) 15144 dynamic_linker=no 15145 ;; 15146 15147solaris*) 15148 version_type=linux # correct to gnu/linux during the next big refactor 15149 need_lib_prefix=no 15150 need_version=no 15151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15152 soname_spec='${libname}${release}${shared_ext}$major' 15153 shlibpath_var=LD_LIBRARY_PATH 15154 shlibpath_overrides_runpath=yes 15155 hardcode_into_libs=yes 15156 # ldd complains unless libraries are executable 15157 postinstall_cmds='chmod +x $lib' 15158 ;; 15159 15160sunos4*) 15161 version_type=sunos 15162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15163 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15164 shlibpath_var=LD_LIBRARY_PATH 15165 shlibpath_overrides_runpath=yes 15166 if test "$with_gnu_ld" = yes; then 15167 need_lib_prefix=no 15168 fi 15169 need_version=yes 15170 ;; 15171 15172sysv4 | sysv4.3*) 15173 version_type=linux # correct to gnu/linux during the next big refactor 15174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15175 soname_spec='${libname}${release}${shared_ext}$major' 15176 shlibpath_var=LD_LIBRARY_PATH 15177 case $host_vendor in 15178 sni) 15179 shlibpath_overrides_runpath=no 15180 need_lib_prefix=no 15181 runpath_var=LD_RUN_PATH 15182 ;; 15183 siemens) 15184 need_lib_prefix=no 15185 ;; 15186 motorola) 15187 need_lib_prefix=no 15188 need_version=no 15189 shlibpath_overrides_runpath=no 15190 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15191 ;; 15192 esac 15193 ;; 15194 15195sysv4*MP*) 15196 if test -d /usr/nec ;then 15197 version_type=linux # correct to gnu/linux during the next big refactor 15198 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15199 soname_spec='$libname${shared_ext}.$major' 15200 shlibpath_var=LD_LIBRARY_PATH 15201 fi 15202 ;; 15203 15204sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15205 version_type=freebsd-elf 15206 need_lib_prefix=no 15207 need_version=no 15208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15209 soname_spec='${libname}${release}${shared_ext}$major' 15210 shlibpath_var=LD_LIBRARY_PATH 15211 shlibpath_overrides_runpath=yes 15212 hardcode_into_libs=yes 15213 if test "$with_gnu_ld" = yes; then 15214 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15215 else 15216 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15217 case $host_os in 15218 sco3.2v5*) 15219 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15220 ;; 15221 esac 15222 fi 15223 sys_lib_dlsearch_path_spec='/usr/lib' 15224 ;; 15225 15226tpf*) 15227 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 15228 version_type=linux # correct to gnu/linux during the next big refactor 15229 need_lib_prefix=no 15230 need_version=no 15231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15232 shlibpath_var=LD_LIBRARY_PATH 15233 shlibpath_overrides_runpath=no 15234 hardcode_into_libs=yes 15235 ;; 15236 15237uts4*) 15238 version_type=linux # correct to gnu/linux during the next big refactor 15239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15240 soname_spec='${libname}${release}${shared_ext}$major' 15241 shlibpath_var=LD_LIBRARY_PATH 15242 ;; 15243 15244*) 15245 dynamic_linker=no 15246 ;; 15247esac 15248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 15249$as_echo "$dynamic_linker" >&6; } 15250test "$dynamic_linker" = no && can_build_shared=no 15251 15252variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15253if test "$GCC" = yes; then 15254 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15255fi 15256 15257if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 15258 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 15259fi 15260if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 15261 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 15262fi 15263 15264 15265 15266 15267 15268 15269 15270 15271 15272 15273 15274 15275 15276 15277 15278 15279 15280 15281 15282 15283 15284 15285 15286 15287 15288 15289 15290 15291 15292 15293 15294 15295 15296 15297 15298 15299 15300 15301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 15302$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 15303hardcode_action_CXX= 15304if test -n "$hardcode_libdir_flag_spec_CXX" || 15305 test -n "$runpath_var_CXX" || 15306 test "X$hardcode_automatic_CXX" = "Xyes" ; then 15307 15308 # We can hardcode non-existent directories. 15309 if test "$hardcode_direct_CXX" != no && 15310 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15311 # have to relink, otherwise we might link with an installed library 15312 # when we should be linking with a yet-to-be-installed one 15313 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 15314 test "$hardcode_minus_L_CXX" != no; then 15315 # Linking always hardcodes the temporary library directory. 15316 hardcode_action_CXX=relink 15317 else 15318 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15319 hardcode_action_CXX=immediate 15320 fi 15321else 15322 # We cannot hardcode anything, or else we can only hardcode existing 15323 # directories. 15324 hardcode_action_CXX=unsupported 15325fi 15326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 15327$as_echo "$hardcode_action_CXX" >&6; } 15328 15329if test "$hardcode_action_CXX" = relink || 15330 test "$inherit_rpath_CXX" = yes; then 15331 # Fast installation is not supported 15332 enable_fast_install=no 15333elif test "$shlibpath_overrides_runpath" = yes || 15334 test "$enable_shared" = no; then 15335 # Fast installation is not necessary 15336 enable_fast_install=needless 15337fi 15338 15339 15340 15341 15342 15343 15344 15345 fi # test -n "$compiler" 15346 15347 CC=$lt_save_CC 15348 CFLAGS=$lt_save_CFLAGS 15349 LDCXX=$LD 15350 LD=$lt_save_LD 15351 GCC=$lt_save_GCC 15352 with_gnu_ld=$lt_save_with_gnu_ld 15353 lt_cv_path_LDCXX=$lt_cv_path_LD 15354 lt_cv_path_LD=$lt_save_path_LD 15355 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 15356 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 15357fi # test "$_lt_caught_CXX_error" != yes 15358 15359ac_ext=c 15360ac_cpp='$CPP $CPPFLAGS' 15361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15363ac_compiler_gnu=$ac_cv_c_compiler_gnu 15364 15365 15366 15367# 15368# allow the user to disable the mime database update 15369# 15370# Extract the first word of "update-mime-database", so it can be a program name with args. 15371set dummy update-mime-database; ac_word=$2 15372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15373$as_echo_n "checking for $ac_word... " >&6; } 15374if ${ac_cv_path_UPDATE_MIME_DATABASE+:} false; then : 15375 $as_echo_n "(cached) " >&6 15376else 15377 case $UPDATE_MIME_DATABASE in 15378 [\\/]* | ?:[\\/]*) 15379 ac_cv_path_UPDATE_MIME_DATABASE="$UPDATE_MIME_DATABASE" # Let the user override the test with a path. 15380 ;; 15381 *) 15382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15383for as_dir in $PATH 15384do 15385 IFS=$as_save_IFS 15386 test -z "$as_dir" && as_dir=. 15387 for ac_exec_ext in '' $ac_executable_extensions; do 15388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15389 ac_cv_path_UPDATE_MIME_DATABASE="$as_dir/$ac_word$ac_exec_ext" 15390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15391 break 2 15392 fi 15393done 15394 done 15395IFS=$as_save_IFS 15396 15397 test -z "$ac_cv_path_UPDATE_MIME_DATABASE" && ac_cv_path_UPDATE_MIME_DATABASE="no" 15398 ;; 15399esac 15400fi 15401UPDATE_MIME_DATABASE=$ac_cv_path_UPDATE_MIME_DATABASE 15402if test -n "$UPDATE_MIME_DATABASE"; then 15403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPDATE_MIME_DATABASE" >&5 15404$as_echo "$UPDATE_MIME_DATABASE" >&6; } 15405else 15406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15407$as_echo "no" >&6; } 15408fi 15409 15410 15411HAVE_NEW_MIME=no 15412@%:@ Check whether --enable-mime-update was given. 15413if test "${enable_mime_update+set}" = set; then : 15414 enableval=$enable_mime_update; disable_mime=yes 15415else 15416 disable_mime=no 15417fi 15418 15419if test "x$disable_mime" = "xno"; then 15420 if test "x$UPDATE_MIME_DATABASE" != "xno"; then 15421 HAVE_NEW_MIME=yes 15422 15423$as_echo "@%:@define HAVE_NEW_MIME 1" >>confdefs.h 15424 15425 fi 15426fi 15427 if test x$HAVE_NEW_MIME = xyes; then 15428 HAVE_NEW_MIME_TRUE= 15429 HAVE_NEW_MIME_FALSE='#' 15430else 15431 HAVE_NEW_MIME_TRUE='#' 15432 HAVE_NEW_MIME_FALSE= 15433fi 15434 15435# 15436# allow user to specify libusb on Linux 15437# 15438@%:@ Check whether --enable-force-libusb-on-linux was given. 15439if test "${enable_force_libusb_on_linux+set}" = set; then : 15440 enableval=$enable_force_libusb_on_linux; force_libusb_on_linux=$enableval 15441else 15442 force_libusb_on_linux=no 15443fi 15444 15445case $host_os in 15446 linux*) 15447 if test "$force_libusb_on_linux" = "yes"; then 15448 USBLIB="usb" 15449 15450$as_echo "@%:@define WANT_LIBUSB 1" >>confdefs.h 15451 15452 else 15453 USBLIB="hidapi-libusb" 15454 15455$as_echo "@%:@define WANT_HIDAPI 1" >>confdefs.h 15456 15457 fi 15458 LIBCONCORD_LDFLAGS="-l$USBLIB" 15459 ;; 15460 darwin*) 15461 USBLIB="hidapi" 15462 15463$as_echo "@%:@define WANT_HIDAPI 1" >>confdefs.h 15464 15465 LIBCONCORD_LDFLAGS="-l$USBLIB" 15466 ;; 15467 mingw*) 15468 USBLIB="hidapi" 15469 15470$as_echo "@%:@define WANT_HIDAPI 1" >>confdefs.h 15471 15472 LIBCONCORD_LDFLAGS="-l$USBLIB -lwsock32 -no-undefined" 15473 ;; 15474 k*bsd*-gnu) 15475 USBLIB="hidapi" 15476 15477$as_echo "@%:@define WANT_HIDAPI 1" >>confdefs.h 15478 15479 LIBCONCORD_LDFLAGS="-l$USBLIB" 15480 ;; 15481 gnu*) 15482 USBLIB="usb" 15483 15484$as_echo "@%:@define WANT_LIBUSB 1" >>confdefs.h 15485 15486 LIBCONCORD_LDFLAGS="-l$USBLIB" 15487 ;; 15488esac 15489LIBCONCORD_LDFLAGS=$LIBCONCORD_LDFLAGS 15490 15491a=1 15492if test "$USBLIB" = "usb"; then 15493 ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default" 15494if test "x$ac_cv_header_usb_h" = xyes; then : 15495 15496else 15497 a=0 15498fi 15499 15500 15501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usb_init in -lusb" >&5 15502$as_echo_n "checking for usb_init in -lusb... " >&6; } 15503if ${ac_cv_lib_usb_usb_init+:} false; then : 15504 $as_echo_n "(cached) " >&6 15505else 15506 ac_check_lib_save_LIBS=$LIBS 15507LIBS="-lusb $LIBS" 15508cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15509/* end confdefs.h. */ 15510 15511/* Override any GCC internal prototype to avoid an error. 15512 Use char because int might match the return type of a GCC 15513 builtin and then its argument prototype would still apply. */ 15514#ifdef __cplusplus 15515extern "C" 15516#endif 15517char usb_init (); 15518int 15519main () 15520{ 15521return usb_init (); 15522 ; 15523 return 0; 15524} 15525_ACEOF 15526if ac_fn_c_try_link "$LINENO"; then : 15527 ac_cv_lib_usb_usb_init=yes 15528else 15529 ac_cv_lib_usb_usb_init=no 15530fi 15531rm -f core conftest.err conftest.$ac_objext \ 15532 conftest$ac_exeext conftest.$ac_ext 15533LIBS=$ac_check_lib_save_LIBS 15534fi 15535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_usb_init" >&5 15536$as_echo "$ac_cv_lib_usb_usb_init" >&6; } 15537if test "x$ac_cv_lib_usb_usb_init" = xyes; then : 15538 cat >>confdefs.h <<_ACEOF 15539@%:@define HAVE_LIBUSB 1 15540_ACEOF 15541 15542 LIBS="-lusb $LIBS" 15543 15544else 15545 a=0 15546fi 15547 15548else 15549 ac_fn_c_check_header_mongrel "$LINENO" "hidapi/hidapi.h" "ac_cv_header_hidapi_hidapi_h" "$ac_includes_default" 15550if test "x$ac_cv_header_hidapi_hidapi_h" = xyes; then : 15551 15552else 15553 a=0 15554fi 15555 15556 15557 as_ac_Lib=`$as_echo "ac_cv_lib_${USBLIB}''_hid_init" | $as_tr_sh` 15558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -l${USBLIB}" >&5 15559$as_echo_n "checking for hid_init in -l${USBLIB}... " >&6; } 15560if eval \${$as_ac_Lib+:} false; then : 15561 $as_echo_n "(cached) " >&6 15562else 15563 ac_check_lib_save_LIBS=$LIBS 15564LIBS="-l${USBLIB} $LIBS" 15565cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15566/* end confdefs.h. */ 15567 15568/* Override any GCC internal prototype to avoid an error. 15569 Use char because int might match the return type of a GCC 15570 builtin and then its argument prototype would still apply. */ 15571#ifdef __cplusplus 15572extern "C" 15573#endif 15574char hid_init (); 15575int 15576main () 15577{ 15578return hid_init (); 15579 ; 15580 return 0; 15581} 15582_ACEOF 15583if ac_fn_c_try_link "$LINENO"; then : 15584 eval "$as_ac_Lib=yes" 15585else 15586 eval "$as_ac_Lib=no" 15587fi 15588rm -f core conftest.err conftest.$ac_objext \ 15589 conftest$ac_exeext conftest.$ac_ext 15590LIBS=$ac_check_lib_save_LIBS 15591fi 15592eval ac_res=\$$as_ac_Lib 15593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 15594$as_echo "$ac_res" >&6; } 15595if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 15596 cat >>confdefs.h <<_ACEOF 15597@%:@define `$as_echo "HAVE_LIB${USBLIB}" | $as_tr_cpp` 1 15598_ACEOF 15599 15600 LIBS="-l${USBLIB} $LIBS" 15601 15602else 15603 a=0 15604fi 15605 15606fi 15607if test $a == 0 15608then 15609 errorstr="lib$USBLIB is missing!" 15610 if test "x$force_libusb_on_linux" = "xno"; then 15611 errorstr="$errorstr 15612 Note that while we are deprecating the use of libusb on Linux in favor 15613 of libhidapi, this release still supports it via 15614 --enable-force-libusb-on-linux" 15615 fi 15616 as_fn_error $? "$errorstr" "$LINENO" 5 15617fi 15618 15619 15620 15621 15622 15623 15624 15625if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 15626 if test -n "$ac_tool_prefix"; then 15627 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 15628set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 15629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15630$as_echo_n "checking for $ac_word... " >&6; } 15631if ${ac_cv_path_PKG_CONFIG+:} false; then : 15632 $as_echo_n "(cached) " >&6 15633else 15634 case $PKG_CONFIG in 15635 [\\/]* | ?:[\\/]*) 15636 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 15637 ;; 15638 *) 15639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15640for as_dir in $PATH 15641do 15642 IFS=$as_save_IFS 15643 test -z "$as_dir" && as_dir=. 15644 for ac_exec_ext in '' $ac_executable_extensions; do 15645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15646 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 15647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15648 break 2 15649 fi 15650done 15651 done 15652IFS=$as_save_IFS 15653 15654 ;; 15655esac 15656fi 15657PKG_CONFIG=$ac_cv_path_PKG_CONFIG 15658if test -n "$PKG_CONFIG"; then 15659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 15660$as_echo "$PKG_CONFIG" >&6; } 15661else 15662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15663$as_echo "no" >&6; } 15664fi 15665 15666 15667fi 15668if test -z "$ac_cv_path_PKG_CONFIG"; then 15669 ac_pt_PKG_CONFIG=$PKG_CONFIG 15670 # Extract the first word of "pkg-config", so it can be a program name with args. 15671set dummy pkg-config; ac_word=$2 15672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15673$as_echo_n "checking for $ac_word... " >&6; } 15674if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 15675 $as_echo_n "(cached) " >&6 15676else 15677 case $ac_pt_PKG_CONFIG in 15678 [\\/]* | ?:[\\/]*) 15679 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 15680 ;; 15681 *) 15682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15683for as_dir in $PATH 15684do 15685 IFS=$as_save_IFS 15686 test -z "$as_dir" && as_dir=. 15687 for ac_exec_ext in '' $ac_executable_extensions; do 15688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15689 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 15690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15691 break 2 15692 fi 15693done 15694 done 15695IFS=$as_save_IFS 15696 15697 ;; 15698esac 15699fi 15700ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 15701if test -n "$ac_pt_PKG_CONFIG"; then 15702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 15703$as_echo "$ac_pt_PKG_CONFIG" >&6; } 15704else 15705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15706$as_echo "no" >&6; } 15707fi 15708 15709 if test "x$ac_pt_PKG_CONFIG" = x; then 15710 PKG_CONFIG="" 15711 else 15712 case $cross_compiling:$ac_tool_warned in 15713yes:) 15714{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15715$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15716ac_tool_warned=yes ;; 15717esac 15718 PKG_CONFIG=$ac_pt_PKG_CONFIG 15719 fi 15720else 15721 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 15722fi 15723 15724fi 15725if test -n "$PKG_CONFIG"; then 15726 _pkg_min_version=0.9.0 15727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 15728$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 15729 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 15730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15731$as_echo "yes" >&6; } 15732 else 15733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15734$as_echo "no" >&6; } 15735 PKG_CONFIG="" 15736 fi 15737fi 15738 15739pkg_failed=no 15740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5 15741$as_echo_n "checking for ZIP... " >&6; } 15742 15743if test -n "$ZIP_CFLAGS"; then 15744 pkg_cv_ZIP_CFLAGS="$ZIP_CFLAGS" 15745 elif test -n "$PKG_CONFIG"; then 15746 if test -n "$PKG_CONFIG" && \ 15747 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzip\""; } >&5 15748 ($PKG_CONFIG --exists --print-errors "libzip") 2>&5 15749 ac_status=$? 15750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15751 test $ac_status = 0; }; then 15752 pkg_cv_ZIP_CFLAGS=`$PKG_CONFIG --cflags "libzip" 2>/dev/null` 15753 test "x$?" != "x0" && pkg_failed=yes 15754else 15755 pkg_failed=yes 15756fi 15757 else 15758 pkg_failed=untried 15759fi 15760if test -n "$ZIP_LIBS"; then 15761 pkg_cv_ZIP_LIBS="$ZIP_LIBS" 15762 elif test -n "$PKG_CONFIG"; then 15763 if test -n "$PKG_CONFIG" && \ 15764 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzip\""; } >&5 15765 ($PKG_CONFIG --exists --print-errors "libzip") 2>&5 15766 ac_status=$? 15767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15768 test $ac_status = 0; }; then 15769 pkg_cv_ZIP_LIBS=`$PKG_CONFIG --libs "libzip" 2>/dev/null` 15770 test "x$?" != "x0" && pkg_failed=yes 15771else 15772 pkg_failed=yes 15773fi 15774 else 15775 pkg_failed=untried 15776fi 15777 15778 15779 15780if test $pkg_failed = yes; then 15781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15782$as_echo "no" >&6; } 15783 15784if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 15785 _pkg_short_errors_supported=yes 15786else 15787 _pkg_short_errors_supported=no 15788fi 15789 if test $_pkg_short_errors_supported = yes; then 15790 ZIP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzip" 2>&1` 15791 else 15792 ZIP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzip" 2>&1` 15793 fi 15794 # Put the nasty error message in config.log where it belongs 15795 echo "$ZIP_PKG_ERRORS" >&5 15796 15797 as_fn_error $? "Package requirements (libzip) were not met: 15798 15799$ZIP_PKG_ERRORS 15800 15801Consider adjusting the PKG_CONFIG_PATH environment variable if you 15802installed software in a non-standard prefix. 15803 15804Alternatively, you may set the environment variables ZIP_CFLAGS 15805and ZIP_LIBS to avoid the need to call pkg-config. 15806See the pkg-config man page for more details." "$LINENO" 5 15807elif test $pkg_failed = untried; then 15808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15809$as_echo "no" >&6; } 15810 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15811$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15812as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 15813is in your PATH or set the PKG_CONFIG environment variable to the full 15814path to pkg-config. 15815 15816Alternatively, you may set the environment variables ZIP_CFLAGS 15817and ZIP_LIBS to avoid the need to call pkg-config. 15818See the pkg-config man page for more details. 15819 15820To get pkg-config, see <http://pkg-config.freedesktop.org/>. 15821See \`config.log' for more details" "$LINENO" 5; } 15822else 15823 ZIP_CFLAGS=$pkg_cv_ZIP_CFLAGS 15824 ZIP_LIBS=$pkg_cv_ZIP_LIBS 15825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15826$as_echo "yes" >&6; } 15827 15828fi 15829ac_config_files="$ac_config_files Makefile" 15830 15831cat >confcache <<\_ACEOF 15832# This file is a shell script that caches the results of configure 15833# tests run on this system so they can be shared between configure 15834# scripts and configure runs, see configure's option --config-cache. 15835# It is not useful on other systems. If it contains results you don't 15836# want to keep, you may remove or edit it. 15837# 15838# config.status only pays attention to the cache file if you give it 15839# the --recheck option to rerun configure. 15840# 15841# `ac_cv_env_foo' variables (set or unset) will be overridden when 15842# loading this file, other *unset* `ac_cv_foo' will be assigned the 15843# following values. 15844 15845_ACEOF 15846 15847# The following way of writing the cache mishandles newlines in values, 15848# but we know of no workaround that is simple, portable, and efficient. 15849# So, we kill variables containing newlines. 15850# Ultrix sh set writes to stderr and can't be redirected directly, 15851# and sets the high bit in the cache file unless we assign to the vars. 15852( 15853 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 15854 eval ac_val=\$$ac_var 15855 case $ac_val in #( 15856 *${as_nl}*) 15857 case $ac_var in #( 15858 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 15859$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 15860 esac 15861 case $ac_var in #( 15862 _ | IFS | as_nl) ;; #( 15863 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 15864 *) { eval $ac_var=; unset $ac_var;} ;; 15865 esac ;; 15866 esac 15867 done 15868 15869 (set) 2>&1 | 15870 case $as_nl`(ac_space=' '; set) 2>&1` in #( 15871 *${as_nl}ac_space=\ *) 15872 # `set' does not quote correctly, so add quotes: double-quote 15873 # substitution turns \\\\ into \\, and sed turns \\ into \. 15874 sed -n \ 15875 "s/'/'\\\\''/g; 15876 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 15877 ;; #( 15878 *) 15879 # `set' quotes correctly as required by POSIX, so do not add quotes. 15880 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 15881 ;; 15882 esac | 15883 sort 15884) | 15885 sed ' 15886 /^ac_cv_env_/b end 15887 t clear 15888 :clear 15889 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 15890 t end 15891 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 15892 :end' >>confcache 15893if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 15894 if test -w "$cache_file"; then 15895 if test "x$cache_file" != "x/dev/null"; then 15896 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 15897$as_echo "$as_me: updating cache $cache_file" >&6;} 15898 if test ! -f "$cache_file" || test -h "$cache_file"; then 15899 cat confcache >"$cache_file" 15900 else 15901 case $cache_file in #( 15902 */* | ?:*) 15903 mv -f confcache "$cache_file"$$ && 15904 mv -f "$cache_file"$$ "$cache_file" ;; #( 15905 *) 15906 mv -f confcache "$cache_file" ;; 15907 esac 15908 fi 15909 fi 15910 else 15911 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 15912$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 15913 fi 15914fi 15915rm -f confcache 15916 15917test "x$prefix" = xNONE && prefix=$ac_default_prefix 15918# Let make expand exec_prefix. 15919test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15920 15921# Transform confdefs.h into DEFS. 15922# Protect against shell expansion while executing Makefile rules. 15923# Protect against Makefile macro expansion. 15924# 15925# If the first sed substitution is executed (which looks for macros that 15926# take arguments), then branch to the quote section. Otherwise, 15927# look for a macro that doesn't take arguments. 15928ac_script=' 15929:mline 15930/\\$/{ 15931 N 15932 s,\\\n,, 15933 b mline 15934} 15935t clear 15936:clear 15937s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 15938t quote 15939s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 15940t quote 15941b any 15942:quote 15943s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 15944s/\[/\\&/g 15945s/\]/\\&/g 15946s/\$/$$/g 15947H 15948:any 15949${ 15950 g 15951 s/^\n// 15952 s/\n/ /g 15953 p 15954} 15955' 15956DEFS=`sed -n "$ac_script" confdefs.h` 15957 15958 15959ac_libobjs= 15960ac_ltlibobjs= 15961U= 15962for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue 15963 # 1. Remove the extension, and $U if already installed. 15964 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 15965 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 15966 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 15967 # will be set to the directory where LIBOBJS objects are built. 15968 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 15969 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 15970done 15971LIB@&t@OBJS=$ac_libobjs 15972 15973LTLIBOBJS=$ac_ltlibobjs 15974 15975 15976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 15977$as_echo_n "checking that generated files are newer than configure... " >&6; } 15978 if test -n "$am_sleep_pid"; then 15979 # Hide warnings about reused PIDs. 15980 wait $am_sleep_pid 2>/dev/null 15981 fi 15982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 15983$as_echo "done" >&6; } 15984 if test -n "$EXEEXT"; then 15985 am__EXEEXT_TRUE= 15986 am__EXEEXT_FALSE='#' 15987else 15988 am__EXEEXT_TRUE='#' 15989 am__EXEEXT_FALSE= 15990fi 15991 15992if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 15993 as_fn_error $? "conditional \"AMDEP\" was never defined. 15994Usually this means the macro was only invoked conditionally." "$LINENO" 5 15995fi 15996if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 15997 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 15998Usually this means the macro was only invoked conditionally." "$LINENO" 5 15999fi 16000if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 16001 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 16002Usually this means the macro was only invoked conditionally." "$LINENO" 5 16003fi 16004if test -z "${HAVE_NEW_MIME_TRUE}" && test -z "${HAVE_NEW_MIME_FALSE}"; then 16005 as_fn_error $? "conditional \"HAVE_NEW_MIME\" was never defined. 16006Usually this means the macro was only invoked conditionally." "$LINENO" 5 16007fi 16008 16009: "${CONFIG_STATUS=./config.status}" 16010ac_write_fail=0 16011ac_clean_files_save=$ac_clean_files 16012ac_clean_files="$ac_clean_files $CONFIG_STATUS" 16013{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 16014$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 16015as_write_fail=0 16016cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 16017#! $SHELL 16018# Generated by $as_me. 16019# Run this file to recreate the current configuration. 16020# Compiler output produced by configure, useful for debugging 16021# configure, is in config.log if it exists. 16022 16023debug=false 16024ac_cs_recheck=false 16025ac_cs_silent=false 16026 16027SHELL=\${CONFIG_SHELL-$SHELL} 16028export SHELL 16029_ASEOF 16030cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 16031## -------------------- ## 16032## M4sh Initialization. ## 16033## -------------------- ## 16034 16035# Be more Bourne compatible 16036DUALCASE=1; export DUALCASE # for MKS sh 16037if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 16038 emulate sh 16039 NULLCMD=: 16040 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 16041 # is contrary to our usage. Disable this feature. 16042 alias -g '${1+"$@"}'='"$@"' 16043 setopt NO_GLOB_SUBST 16044else 16045 case `(set -o) 2>/dev/null` in @%:@( 16046 *posix*) : 16047 set -o posix ;; @%:@( 16048 *) : 16049 ;; 16050esac 16051fi 16052 16053 16054as_nl=' 16055' 16056export as_nl 16057# Printing a long string crashes Solaris 7 /usr/bin/printf. 16058as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 16059as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 16060as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 16061# Prefer a ksh shell builtin over an external printf program on Solaris, 16062# but without wasting forks for bash or zsh. 16063if test -z "$BASH_VERSION$ZSH_VERSION" \ 16064 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 16065 as_echo='print -r --' 16066 as_echo_n='print -rn --' 16067elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 16068 as_echo='printf %s\n' 16069 as_echo_n='printf %s' 16070else 16071 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 16072 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 16073 as_echo_n='/usr/ucb/echo -n' 16074 else 16075 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 16076 as_echo_n_body='eval 16077 arg=$1; 16078 case $arg in @%:@( 16079 *"$as_nl"*) 16080 expr "X$arg" : "X\\(.*\\)$as_nl"; 16081 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 16082 esac; 16083 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 16084 ' 16085 export as_echo_n_body 16086 as_echo_n='sh -c $as_echo_n_body as_echo' 16087 fi 16088 export as_echo_body 16089 as_echo='sh -c $as_echo_body as_echo' 16090fi 16091 16092# The user is always right. 16093if test "${PATH_SEPARATOR+set}" != set; then 16094 PATH_SEPARATOR=: 16095 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 16096 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 16097 PATH_SEPARATOR=';' 16098 } 16099fi 16100 16101 16102# IFS 16103# We need space, tab and new line, in precisely that order. Quoting is 16104# there to prevent editors from complaining about space-tab. 16105# (If _AS_PATH_WALK were called with IFS unset, it would disable word 16106# splitting by setting IFS to empty value.) 16107IFS=" "" $as_nl" 16108 16109# Find who we are. Look in the path if we contain no directory separator. 16110as_myself= 16111case $0 in @%:@(( 16112 *[\\/]* ) as_myself=$0 ;; 16113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16114for as_dir in $PATH 16115do 16116 IFS=$as_save_IFS 16117 test -z "$as_dir" && as_dir=. 16118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 16119 done 16120IFS=$as_save_IFS 16121 16122 ;; 16123esac 16124# We did not find ourselves, most probably we were run as `sh COMMAND' 16125# in which case we are not to be found in the path. 16126if test "x$as_myself" = x; then 16127 as_myself=$0 16128fi 16129if test ! -f "$as_myself"; then 16130 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 16131 exit 1 16132fi 16133 16134# Unset variables that we do not need and which cause bugs (e.g. in 16135# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 16136# suppresses any "Segmentation fault" message there. '((' could 16137# trigger a bug in pdksh 5.2.14. 16138for as_var in BASH_ENV ENV MAIL MAILPATH 16139do eval test x\${$as_var+set} = xset \ 16140 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 16141done 16142PS1='$ ' 16143PS2='> ' 16144PS4='+ ' 16145 16146# NLS nuisances. 16147LC_ALL=C 16148export LC_ALL 16149LANGUAGE=C 16150export LANGUAGE 16151 16152# CDPATH. 16153(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16154 16155 16156@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD] 16157@%:@ ---------------------------------------- 16158@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are 16159@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the 16160@%:@ script with STATUS, using 1 if that was 0. 16161as_fn_error () 16162{ 16163 as_status=$1; test $as_status -eq 0 && as_status=1 16164 if test "$4"; then 16165 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16166 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 16167 fi 16168 $as_echo "$as_me: error: $2" >&2 16169 as_fn_exit $as_status 16170} @%:@ as_fn_error 16171 16172 16173@%:@ as_fn_set_status STATUS 16174@%:@ ----------------------- 16175@%:@ Set @S|@? to STATUS, without forking. 16176as_fn_set_status () 16177{ 16178 return $1 16179} @%:@ as_fn_set_status 16180 16181@%:@ as_fn_exit STATUS 16182@%:@ ----------------- 16183@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 16184as_fn_exit () 16185{ 16186 set +e 16187 as_fn_set_status $1 16188 exit $1 16189} @%:@ as_fn_exit 16190 16191@%:@ as_fn_unset VAR 16192@%:@ --------------- 16193@%:@ Portably unset VAR. 16194as_fn_unset () 16195{ 16196 { eval $1=; unset $1;} 16197} 16198as_unset=as_fn_unset 16199@%:@ as_fn_append VAR VALUE 16200@%:@ ---------------------- 16201@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take 16202@%:@ advantage of any shell optimizations that allow amortized linear growth over 16203@%:@ repeated appends, instead of the typical quadratic growth present in naive 16204@%:@ implementations. 16205if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 16206 eval 'as_fn_append () 16207 { 16208 eval $1+=\$2 16209 }' 16210else 16211 as_fn_append () 16212 { 16213 eval $1=\$$1\$2 16214 } 16215fi # as_fn_append 16216 16217@%:@ as_fn_arith ARG... 16218@%:@ ------------------ 16219@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the 16220@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments 16221@%:@ must be portable across @S|@(()) and expr. 16222if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 16223 eval 'as_fn_arith () 16224 { 16225 as_val=$(( $* )) 16226 }' 16227else 16228 as_fn_arith () 16229 { 16230 as_val=`expr "$@" || test $? -eq 1` 16231 } 16232fi # as_fn_arith 16233 16234 16235if expr a : '\(a\)' >/dev/null 2>&1 && 16236 test "X`expr 00001 : '.*\(...\)'`" = X001; then 16237 as_expr=expr 16238else 16239 as_expr=false 16240fi 16241 16242if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 16243 as_basename=basename 16244else 16245 as_basename=false 16246fi 16247 16248if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 16249 as_dirname=dirname 16250else 16251 as_dirname=false 16252fi 16253 16254as_me=`$as_basename -- "$0" || 16255$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 16256 X"$0" : 'X\(//\)$' \| \ 16257 X"$0" : 'X\(/\)' \| . 2>/dev/null || 16258$as_echo X/"$0" | 16259 sed '/^.*\/\([^/][^/]*\)\/*$/{ 16260 s//\1/ 16261 q 16262 } 16263 /^X\/\(\/\/\)$/{ 16264 s//\1/ 16265 q 16266 } 16267 /^X\/\(\/\).*/{ 16268 s//\1/ 16269 q 16270 } 16271 s/.*/./; q'` 16272 16273# Avoid depending upon Character Ranges. 16274as_cr_letters='abcdefghijklmnopqrstuvwxyz' 16275as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 16276as_cr_Letters=$as_cr_letters$as_cr_LETTERS 16277as_cr_digits='0123456789' 16278as_cr_alnum=$as_cr_Letters$as_cr_digits 16279 16280ECHO_C= ECHO_N= ECHO_T= 16281case `echo -n x` in @%:@((((( 16282-n*) 16283 case `echo 'xy\c'` in 16284 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 16285 xy) ECHO_C='\c';; 16286 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 16287 ECHO_T=' ';; 16288 esac;; 16289*) 16290 ECHO_N='-n';; 16291esac 16292 16293rm -f conf$$ conf$$.exe conf$$.file 16294if test -d conf$$.dir; then 16295 rm -f conf$$.dir/conf$$.file 16296else 16297 rm -f conf$$.dir 16298 mkdir conf$$.dir 2>/dev/null 16299fi 16300if (echo >conf$$.file) 2>/dev/null; then 16301 if ln -s conf$$.file conf$$ 2>/dev/null; then 16302 as_ln_s='ln -s' 16303 # ... but there are two gotchas: 16304 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 16305 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 16306 # In both cases, we have to default to `cp -pR'. 16307 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 16308 as_ln_s='cp -pR' 16309 elif ln conf$$.file conf$$ 2>/dev/null; then 16310 as_ln_s=ln 16311 else 16312 as_ln_s='cp -pR' 16313 fi 16314else 16315 as_ln_s='cp -pR' 16316fi 16317rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 16318rmdir conf$$.dir 2>/dev/null 16319 16320 16321@%:@ as_fn_mkdir_p 16322@%:@ ------------- 16323@%:@ Create "@S|@as_dir" as a directory, including parents if necessary. 16324as_fn_mkdir_p () 16325{ 16326 16327 case $as_dir in #( 16328 -*) as_dir=./$as_dir;; 16329 esac 16330 test -d "$as_dir" || eval $as_mkdir_p || { 16331 as_dirs= 16332 while :; do 16333 case $as_dir in #( 16334 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 16335 *) as_qdir=$as_dir;; 16336 esac 16337 as_dirs="'$as_qdir' $as_dirs" 16338 as_dir=`$as_dirname -- "$as_dir" || 16339$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16340 X"$as_dir" : 'X\(//\)[^/]' \| \ 16341 X"$as_dir" : 'X\(//\)$' \| \ 16342 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 16343$as_echo X"$as_dir" | 16344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16345 s//\1/ 16346 q 16347 } 16348 /^X\(\/\/\)[^/].*/{ 16349 s//\1/ 16350 q 16351 } 16352 /^X\(\/\/\)$/{ 16353 s//\1/ 16354 q 16355 } 16356 /^X\(\/\).*/{ 16357 s//\1/ 16358 q 16359 } 16360 s/.*/./; q'` 16361 test -d "$as_dir" && break 16362 done 16363 test -z "$as_dirs" || eval "mkdir $as_dirs" 16364 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 16365 16366 16367} @%:@ as_fn_mkdir_p 16368if mkdir -p . 2>/dev/null; then 16369 as_mkdir_p='mkdir -p "$as_dir"' 16370else 16371 test -d ./-p && rmdir ./-p 16372 as_mkdir_p=false 16373fi 16374 16375 16376@%:@ as_fn_executable_p FILE 16377@%:@ ----------------------- 16378@%:@ Test if FILE is an executable regular file. 16379as_fn_executable_p () 16380{ 16381 test -f "$1" && test -x "$1" 16382} @%:@ as_fn_executable_p 16383as_test_x='test -x' 16384as_executable_p=as_fn_executable_p 16385 16386# Sed expression to map a string onto a valid CPP name. 16387as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 16388 16389# Sed expression to map a string onto a valid variable name. 16390as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 16391 16392 16393exec 6>&1 16394## ----------------------------------- ## 16395## Main body of $CONFIG_STATUS script. ## 16396## ----------------------------------- ## 16397_ASEOF 16398test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 16399 16400cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16401# Save the log message, to keep $0 and so on meaningful, and to 16402# report actual input values of CONFIG_FILES etc. instead of their 16403# values after options handling. 16404ac_log=" 16405This file was extended by libconcord $as_me 1.2, which was 16406generated by GNU Autoconf 2.69. Invocation command line was 16407 16408 CONFIG_FILES = $CONFIG_FILES 16409 CONFIG_HEADERS = $CONFIG_HEADERS 16410 CONFIG_LINKS = $CONFIG_LINKS 16411 CONFIG_COMMANDS = $CONFIG_COMMANDS 16412 $ $0 $@ 16413 16414on `(hostname || uname -n) 2>/dev/null | sed 1q` 16415" 16416 16417_ACEOF 16418 16419case $ac_config_files in *" 16420"*) set x $ac_config_files; shift; ac_config_files=$*;; 16421esac 16422 16423 16424 16425cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16426# Files that config.status was made for. 16427config_files="$ac_config_files" 16428config_commands="$ac_config_commands" 16429 16430_ACEOF 16431 16432cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16433ac_cs_usage="\ 16434\`$as_me' instantiates files and other configuration actions 16435from templates according to the current configuration. Unless the files 16436and actions are specified as TAGs, all are instantiated by default. 16437 16438Usage: $0 [OPTION]... [TAG]... 16439 16440 -h, --help print this help, then exit 16441 -V, --version print version number and configuration settings, then exit 16442 --config print configuration, then exit 16443 -q, --quiet, --silent 16444 do not print progress messages 16445 -d, --debug don't remove temporary files 16446 --recheck update $as_me by reconfiguring in the same conditions 16447 --file=FILE[:TEMPLATE] 16448 instantiate the configuration file FILE 16449 16450Configuration files: 16451$config_files 16452 16453Configuration commands: 16454$config_commands 16455 16456Report bugs to <concordance-devel@lists.sourceforge.net>." 16457 16458_ACEOF 16459cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16460ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 16461ac_cs_version="\\ 16462libconcord config.status 1.2 16463configured by $0, generated by GNU Autoconf 2.69, 16464 with options \\"\$ac_cs_config\\" 16465 16466Copyright (C) 2012 Free Software Foundation, Inc. 16467This config.status script is free software; the Free Software Foundation 16468gives unlimited permission to copy, distribute and modify it." 16469 16470ac_pwd='$ac_pwd' 16471srcdir='$srcdir' 16472INSTALL='$INSTALL' 16473MKDIR_P='$MKDIR_P' 16474AWK='$AWK' 16475test -n "\$AWK" || AWK=awk 16476_ACEOF 16477 16478cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16479# The default lists apply if the user does not specify any file. 16480ac_need_defaults=: 16481while test $# != 0 16482do 16483 case $1 in 16484 --*=?*) 16485 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16486 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 16487 ac_shift=: 16488 ;; 16489 --*=) 16490 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16491 ac_optarg= 16492 ac_shift=: 16493 ;; 16494 *) 16495 ac_option=$1 16496 ac_optarg=$2 16497 ac_shift=shift 16498 ;; 16499 esac 16500 16501 case $ac_option in 16502 # Handling of the options. 16503 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 16504 ac_cs_recheck=: ;; 16505 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 16506 $as_echo "$ac_cs_version"; exit ;; 16507 --config | --confi | --conf | --con | --co | --c ) 16508 $as_echo "$ac_cs_config"; exit ;; 16509 --debug | --debu | --deb | --de | --d | -d ) 16510 debug=: ;; 16511 --file | --fil | --fi | --f ) 16512 $ac_shift 16513 case $ac_optarg in 16514 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16515 '') as_fn_error $? "missing file argument" ;; 16516 esac 16517 as_fn_append CONFIG_FILES " '$ac_optarg'" 16518 ac_need_defaults=false;; 16519 --he | --h | --help | --hel | -h ) 16520 $as_echo "$ac_cs_usage"; exit ;; 16521 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 16522 | -silent | --silent | --silen | --sile | --sil | --si | --s) 16523 ac_cs_silent=: ;; 16524 16525 # This is an error. 16526 -*) as_fn_error $? "unrecognized option: \`$1' 16527Try \`$0 --help' for more information." ;; 16528 16529 *) as_fn_append ac_config_targets " $1" 16530 ac_need_defaults=false ;; 16531 16532 esac 16533 shift 16534done 16535 16536ac_configure_extra_args= 16537 16538if $ac_cs_silent; then 16539 exec 6>/dev/null 16540 ac_configure_extra_args="$ac_configure_extra_args --silent" 16541fi 16542 16543_ACEOF 16544cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16545if \$ac_cs_recheck; then 16546 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 16547 shift 16548 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 16549 CONFIG_SHELL='$SHELL' 16550 export CONFIG_SHELL 16551 exec "\$@" 16552fi 16553 16554_ACEOF 16555cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16556exec 5>>config.log 16557{ 16558 echo 16559 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX 16560@%:@@%:@ Running $as_me. @%:@@%:@ 16561_ASBOX 16562 $as_echo "$ac_log" 16563} >&5 16564 16565_ACEOF 16566cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16567# 16568# INIT-COMMANDS 16569# 16570AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 16571 16572 16573# The HP-UX ksh and POSIX shell print the target directory to stdout 16574# if CDPATH is set. 16575(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16576 16577sed_quote_subst='$sed_quote_subst' 16578double_quote_subst='$double_quote_subst' 16579delay_variable_subst='$delay_variable_subst' 16580macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 16581macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 16582enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 16583enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 16584pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 16585enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 16586SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 16587ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 16588PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 16589host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 16590host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 16591host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 16592build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 16593build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 16594build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 16595SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 16596Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 16597GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 16598EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 16599FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 16600LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 16601NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 16602LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 16603max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 16604ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 16605exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 16606lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 16607lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 16608lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 16609lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 16610lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 16611reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 16612reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 16613OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 16614deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 16615file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 16616file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 16617want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 16618DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 16619sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 16620AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 16621AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 16622archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 16623STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 16624RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 16625old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16626old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16627old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 16628lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 16629CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 16630CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 16631compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 16632GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 16633lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 16634lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 16635lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 16636lt_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"`' 16637nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 16638lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 16639objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 16640MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 16641lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 16642lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 16643lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 16644lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 16645lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 16646need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 16647MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 16648DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 16649NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 16650LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 16651OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 16652OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 16653libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 16654shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 16655extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16656archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 16657enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 16658export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 16659whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 16660compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 16661old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 16662old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16663archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 16664archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16665module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 16666module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16667with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 16668allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 16669no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 16670hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 16671hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 16672hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 16673hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 16674hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 16675hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 16676hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 16677inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 16678link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 16679always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 16680export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 16681exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 16682include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 16683prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 16684postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 16685file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 16686variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 16687need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 16688need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 16689version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 16690runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 16691shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 16692shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 16693libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 16694library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 16695soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 16696install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 16697postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16698postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16699finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 16700finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 16701hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 16702sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 16703sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 16704hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 16705enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 16706enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 16707enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 16708old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 16709striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 16710compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 16711predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 16712postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 16713predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 16714postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 16715compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 16716LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 16717reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 16718reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16719old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16720compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 16721GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 16722lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 16723lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 16724lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 16725lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 16726lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 16727archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 16728enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 16729export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 16730whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 16731compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 16732old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16733old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16734archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16735archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16736module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16737module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16738with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 16739allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 16740no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 16741hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 16742hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 16743hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 16744hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 16745hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 16746hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 16747hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 16748inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 16749link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 16750always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 16751export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16752exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 16753include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 16754prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16755postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16756file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 16757hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 16758compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 16759predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 16760postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 16761predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 16762postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 16763compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 16764 16765LTCC='$LTCC' 16766LTCFLAGS='$LTCFLAGS' 16767compiler='$compiler_DEFAULT' 16768 16769# A function that is used when there is no print builtin or printf. 16770func_fallback_echo () 16771{ 16772 eval 'cat <<_LTECHO_EOF 16773\$1 16774_LTECHO_EOF' 16775} 16776 16777# Quote evaled strings. 16778for var in SHELL \ 16779ECHO \ 16780PATH_SEPARATOR \ 16781SED \ 16782GREP \ 16783EGREP \ 16784FGREP \ 16785LD \ 16786NM \ 16787LN_S \ 16788lt_SP2NL \ 16789lt_NL2SP \ 16790reload_flag \ 16791OBJDUMP \ 16792deplibs_check_method \ 16793file_magic_cmd \ 16794file_magic_glob \ 16795want_nocaseglob \ 16796DLLTOOL \ 16797sharedlib_from_linklib_cmd \ 16798AR \ 16799AR_FLAGS \ 16800archiver_list_spec \ 16801STRIP \ 16802RANLIB \ 16803CC \ 16804CFLAGS \ 16805compiler \ 16806lt_cv_sys_global_symbol_pipe \ 16807lt_cv_sys_global_symbol_to_cdecl \ 16808lt_cv_sys_global_symbol_to_c_name_address \ 16809lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 16810nm_file_list_spec \ 16811lt_prog_compiler_no_builtin_flag \ 16812lt_prog_compiler_pic \ 16813lt_prog_compiler_wl \ 16814lt_prog_compiler_static \ 16815lt_cv_prog_compiler_c_o \ 16816need_locks \ 16817MANIFEST_TOOL \ 16818DSYMUTIL \ 16819NMEDIT \ 16820LIPO \ 16821OTOOL \ 16822OTOOL64 \ 16823shrext_cmds \ 16824export_dynamic_flag_spec \ 16825whole_archive_flag_spec \ 16826compiler_needs_object \ 16827with_gnu_ld \ 16828allow_undefined_flag \ 16829no_undefined_flag \ 16830hardcode_libdir_flag_spec \ 16831hardcode_libdir_separator \ 16832exclude_expsyms \ 16833include_expsyms \ 16834file_list_spec \ 16835variables_saved_for_relink \ 16836libname_spec \ 16837library_names_spec \ 16838soname_spec \ 16839install_override_mode \ 16840finish_eval \ 16841old_striplib \ 16842striplib \ 16843compiler_lib_search_dirs \ 16844predep_objects \ 16845postdep_objects \ 16846predeps \ 16847postdeps \ 16848compiler_lib_search_path \ 16849LD_CXX \ 16850reload_flag_CXX \ 16851compiler_CXX \ 16852lt_prog_compiler_no_builtin_flag_CXX \ 16853lt_prog_compiler_pic_CXX \ 16854lt_prog_compiler_wl_CXX \ 16855lt_prog_compiler_static_CXX \ 16856lt_cv_prog_compiler_c_o_CXX \ 16857export_dynamic_flag_spec_CXX \ 16858whole_archive_flag_spec_CXX \ 16859compiler_needs_object_CXX \ 16860with_gnu_ld_CXX \ 16861allow_undefined_flag_CXX \ 16862no_undefined_flag_CXX \ 16863hardcode_libdir_flag_spec_CXX \ 16864hardcode_libdir_separator_CXX \ 16865exclude_expsyms_CXX \ 16866include_expsyms_CXX \ 16867file_list_spec_CXX \ 16868compiler_lib_search_dirs_CXX \ 16869predep_objects_CXX \ 16870postdep_objects_CXX \ 16871predeps_CXX \ 16872postdeps_CXX \ 16873compiler_lib_search_path_CXX; do 16874 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16875 *[\\\\\\\`\\"\\\$]*) 16876 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 16877 ;; 16878 *) 16879 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16880 ;; 16881 esac 16882done 16883 16884# Double-quote double-evaled strings. 16885for var in reload_cmds \ 16886old_postinstall_cmds \ 16887old_postuninstall_cmds \ 16888old_archive_cmds \ 16889extract_expsyms_cmds \ 16890old_archive_from_new_cmds \ 16891old_archive_from_expsyms_cmds \ 16892archive_cmds \ 16893archive_expsym_cmds \ 16894module_cmds \ 16895module_expsym_cmds \ 16896export_symbols_cmds \ 16897prelink_cmds \ 16898postlink_cmds \ 16899postinstall_cmds \ 16900postuninstall_cmds \ 16901finish_cmds \ 16902sys_lib_search_path_spec \ 16903sys_lib_dlsearch_path_spec \ 16904reload_cmds_CXX \ 16905old_archive_cmds_CXX \ 16906old_archive_from_new_cmds_CXX \ 16907old_archive_from_expsyms_cmds_CXX \ 16908archive_cmds_CXX \ 16909archive_expsym_cmds_CXX \ 16910module_cmds_CXX \ 16911module_expsym_cmds_CXX \ 16912export_symbols_cmds_CXX \ 16913prelink_cmds_CXX \ 16914postlink_cmds_CXX; do 16915 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16916 *[\\\\\\\`\\"\\\$]*) 16917 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 16918 ;; 16919 *) 16920 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16921 ;; 16922 esac 16923done 16924 16925ac_aux_dir='$ac_aux_dir' 16926xsi_shell='$xsi_shell' 16927lt_shell_append='$lt_shell_append' 16928 16929# See if we are running on zsh, and set the options which allow our 16930# commands through without removal of \ escapes INIT. 16931if test -n "\${ZSH_VERSION+set}" ; then 16932 setopt NO_GLOB_SUBST 16933fi 16934 16935 16936 PACKAGE='$PACKAGE' 16937 VERSION='$VERSION' 16938 TIMESTAMP='$TIMESTAMP' 16939 RM='$RM' 16940 ofile='$ofile' 16941 16942 16943 16944 16945 16946 16947_ACEOF 16948 16949cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16950 16951# Handling of arguments. 16952for ac_config_target in $ac_config_targets 16953do 16954 case $ac_config_target in 16955 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 16956 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 16957 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 16958 16959 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 16960 esac 16961done 16962 16963 16964# If the user did not use the arguments to specify the items to instantiate, 16965# then the envvar interface is used. Set only those that are not. 16966# We use the long form for the default assignment because of an extremely 16967# bizarre bug on SunOS 4.1.3. 16968if $ac_need_defaults; then 16969 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 16970 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 16971fi 16972 16973# Have a temporary directory for convenience. Make it in the build tree 16974# simply because there is no reason against having it here, and in addition, 16975# creating and moving files from /tmp can sometimes cause problems. 16976# Hook for its removal unless debugging. 16977# Note that there is a small window in which the directory will not be cleaned: 16978# after its creation but before its name has been assigned to `$tmp'. 16979$debug || 16980{ 16981 tmp= ac_tmp= 16982 trap 'exit_status=$? 16983 : "${ac_tmp:=$tmp}" 16984 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 16985' 0 16986 trap 'as_fn_exit 1' 1 2 13 15 16987} 16988# Create a (secure) tmp directory for tmp files. 16989 16990{ 16991 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 16992 test -d "$tmp" 16993} || 16994{ 16995 tmp=./conf$$-$RANDOM 16996 (umask 077 && mkdir "$tmp") 16997} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 16998ac_tmp=$tmp 16999 17000# Set up the scripts for CONFIG_FILES section. 17001# No need to generate them if there are no CONFIG_FILES. 17002# This happens for instance with `./config.status config.h'. 17003if test -n "$CONFIG_FILES"; then 17004 17005 17006ac_cr=`echo X | tr X '\015'` 17007# On cygwin, bash can eat \r inside `` if the user requested igncr. 17008# But we know of no other shell where ac_cr would be empty at this 17009# point, so we can use a bashism as a fallback. 17010if test "x$ac_cr" = x; then 17011 eval ac_cr=\$\'\\r\' 17012fi 17013ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 17014if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 17015 ac_cs_awk_cr='\\r' 17016else 17017 ac_cs_awk_cr=$ac_cr 17018fi 17019 17020echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 17021_ACEOF 17022 17023 17024{ 17025 echo "cat >conf$$subs.awk <<_ACEOF" && 17026 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 17027 echo "_ACEOF" 17028} >conf$$subs.sh || 17029 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17030ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 17031ac_delim='%!_!# ' 17032for ac_last_try in false false false false false :; do 17033 . ./conf$$subs.sh || 17034 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17035 17036 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 17037 if test $ac_delim_n = $ac_delim_num; then 17038 break 17039 elif $ac_last_try; then 17040 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17041 else 17042 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17043 fi 17044done 17045rm -f conf$$subs.sh 17046 17047cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17048cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 17049_ACEOF 17050sed -n ' 17051h 17052s/^/S["/; s/!.*/"]=/ 17053p 17054g 17055s/^[^!]*!// 17056:repl 17057t repl 17058s/'"$ac_delim"'$// 17059t delim 17060:nl 17061h 17062s/\(.\{148\}\)..*/\1/ 17063t more1 17064s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 17065p 17066n 17067b repl 17068:more1 17069s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17070p 17071g 17072s/.\{148\}// 17073t nl 17074:delim 17075h 17076s/\(.\{148\}\)..*/\1/ 17077t more2 17078s/["\\]/\\&/g; s/^/"/; s/$/"/ 17079p 17080b 17081:more2 17082s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17083p 17084g 17085s/.\{148\}// 17086t delim 17087' <conf$$subs.awk | sed ' 17088/^[^""]/{ 17089 N 17090 s/\n// 17091} 17092' >>$CONFIG_STATUS || ac_write_fail=1 17093rm -f conf$$subs.awk 17094cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17095_ACAWK 17096cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 17097 for (key in S) S_is_set[key] = 1 17098 FS = "" 17099 17100} 17101{ 17102 line = $ 0 17103 nfields = split(line, field, "@") 17104 substed = 0 17105 len = length(field[1]) 17106 for (i = 2; i < nfields; i++) { 17107 key = field[i] 17108 keylen = length(key) 17109 if (S_is_set[key]) { 17110 value = S[key] 17111 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 17112 len += length(value) + length(field[++i]) 17113 substed = 1 17114 } else 17115 len += 1 + keylen 17116 } 17117 17118 print line 17119} 17120 17121_ACAWK 17122_ACEOF 17123cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17124if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 17125 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 17126else 17127 cat 17128fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 17129 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 17130_ACEOF 17131 17132# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 17133# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 17134# trailing colons and then remove the whole line if VPATH becomes empty 17135# (actually we leave an empty line to preserve line numbers). 17136if test "x$srcdir" = x.; then 17137 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 17138h 17139s/// 17140s/^/:/ 17141s/[ ]*$/:/ 17142s/:\$(srcdir):/:/g 17143s/:\${srcdir}:/:/g 17144s/:@srcdir@:/:/g 17145s/^:*// 17146s/:*$// 17147x 17148s/\(=[ ]*\).*/\1/ 17149G 17150s/\n// 17151s/^[^=]*=[ ]*$// 17152}' 17153fi 17154 17155cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17156fi # test -n "$CONFIG_FILES" 17157 17158 17159eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" 17160shift 17161for ac_tag 17162do 17163 case $ac_tag in 17164 :[FHLC]) ac_mode=$ac_tag; continue;; 17165 esac 17166 case $ac_mode$ac_tag in 17167 :[FHL]*:*);; 17168 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 17169 :[FH]-) ac_tag=-:-;; 17170 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 17171 esac 17172 ac_save_IFS=$IFS 17173 IFS=: 17174 set x $ac_tag 17175 IFS=$ac_save_IFS 17176 shift 17177 ac_file=$1 17178 shift 17179 17180 case $ac_mode in 17181 :L) ac_source=$1;; 17182 :[FH]) 17183 ac_file_inputs= 17184 for ac_f 17185 do 17186 case $ac_f in 17187 -) ac_f="$ac_tmp/stdin";; 17188 *) # Look for the file first in the build tree, then in the source tree 17189 # (if the path is not absolute). The absolute path cannot be DOS-style, 17190 # because $ac_f cannot contain `:'. 17191 test -f "$ac_f" || 17192 case $ac_f in 17193 [\\/$]*) false;; 17194 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 17195 esac || 17196 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 17197 esac 17198 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 17199 as_fn_append ac_file_inputs " '$ac_f'" 17200 done 17201 17202 # Let's still pretend it is `configure' which instantiates (i.e., don't 17203 # use $as_me), people would be surprised to read: 17204 # /* config.h. Generated by config.status. */ 17205 configure_input='Generated from '` 17206 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 17207 `' by configure.' 17208 if test x"$ac_file" != x-; then 17209 configure_input="$ac_file. $configure_input" 17210 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 17211$as_echo "$as_me: creating $ac_file" >&6;} 17212 fi 17213 # Neutralize special characters interpreted by sed in replacement strings. 17214 case $configure_input in #( 17215 *\&* | *\|* | *\\* ) 17216 ac_sed_conf_input=`$as_echo "$configure_input" | 17217 sed 's/[\\\\&|]/\\\\&/g'`;; #( 17218 *) ac_sed_conf_input=$configure_input;; 17219 esac 17220 17221 case $ac_tag in 17222 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 17223 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 17224 esac 17225 ;; 17226 esac 17227 17228 ac_dir=`$as_dirname -- "$ac_file" || 17229$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17230 X"$ac_file" : 'X\(//\)[^/]' \| \ 17231 X"$ac_file" : 'X\(//\)$' \| \ 17232 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 17233$as_echo X"$ac_file" | 17234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17235 s//\1/ 17236 q 17237 } 17238 /^X\(\/\/\)[^/].*/{ 17239 s//\1/ 17240 q 17241 } 17242 /^X\(\/\/\)$/{ 17243 s//\1/ 17244 q 17245 } 17246 /^X\(\/\).*/{ 17247 s//\1/ 17248 q 17249 } 17250 s/.*/./; q'` 17251 as_dir="$ac_dir"; as_fn_mkdir_p 17252 ac_builddir=. 17253 17254case "$ac_dir" in 17255.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 17256*) 17257 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 17258 # A ".." for each directory in $ac_dir_suffix. 17259 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 17260 case $ac_top_builddir_sub in 17261 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 17262 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 17263 esac ;; 17264esac 17265ac_abs_top_builddir=$ac_pwd 17266ac_abs_builddir=$ac_pwd$ac_dir_suffix 17267# for backward compatibility: 17268ac_top_builddir=$ac_top_build_prefix 17269 17270case $srcdir in 17271 .) # We are building in place. 17272 ac_srcdir=. 17273 ac_top_srcdir=$ac_top_builddir_sub 17274 ac_abs_top_srcdir=$ac_pwd ;; 17275 [\\/]* | ?:[\\/]* ) # Absolute name. 17276 ac_srcdir=$srcdir$ac_dir_suffix; 17277 ac_top_srcdir=$srcdir 17278 ac_abs_top_srcdir=$srcdir ;; 17279 *) # Relative name. 17280 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 17281 ac_top_srcdir=$ac_top_build_prefix$srcdir 17282 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 17283esac 17284ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 17285 17286 17287 case $ac_mode in 17288 :F) 17289 # 17290 # CONFIG_FILE 17291 # 17292 17293 case $INSTALL in 17294 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 17295 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 17296 esac 17297 ac_MKDIR_P=$MKDIR_P 17298 case $MKDIR_P in 17299 [\\/$]* | ?:[\\/]* ) ;; 17300 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 17301 esac 17302_ACEOF 17303 17304cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17305# If the template does not know about datarootdir, expand it. 17306# FIXME: This hack should be removed a few years after 2.60. 17307ac_datarootdir_hack=; ac_datarootdir_seen= 17308ac_sed_dataroot=' 17309/datarootdir/ { 17310 p 17311 q 17312} 17313/@datadir@/p 17314/@docdir@/p 17315/@infodir@/p 17316/@localedir@/p 17317/@mandir@/p' 17318case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 17319*datarootdir*) ac_datarootdir_seen=yes;; 17320*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 17321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 17322$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 17323_ACEOF 17324cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17325 ac_datarootdir_hack=' 17326 s&@datadir@&$datadir&g 17327 s&@docdir@&$docdir&g 17328 s&@infodir@&$infodir&g 17329 s&@localedir@&$localedir&g 17330 s&@mandir@&$mandir&g 17331 s&\\\${datarootdir}&$datarootdir&g' ;; 17332esac 17333_ACEOF 17334 17335# Neutralize VPATH when `$srcdir' = `.'. 17336# Shell code in configure.ac might set extrasub. 17337# FIXME: do we really want to maintain this feature? 17338cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17339ac_sed_extra="$ac_vpsub 17340$extrasub 17341_ACEOF 17342cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17343:t 17344/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 17345s|@configure_input@|$ac_sed_conf_input|;t t 17346s&@top_builddir@&$ac_top_builddir_sub&;t t 17347s&@top_build_prefix@&$ac_top_build_prefix&;t t 17348s&@srcdir@&$ac_srcdir&;t t 17349s&@abs_srcdir@&$ac_abs_srcdir&;t t 17350s&@top_srcdir@&$ac_top_srcdir&;t t 17351s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 17352s&@builddir@&$ac_builddir&;t t 17353s&@abs_builddir@&$ac_abs_builddir&;t t 17354s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 17355s&@INSTALL@&$ac_INSTALL&;t t 17356s&@MKDIR_P@&$ac_MKDIR_P&;t t 17357$ac_datarootdir_hack 17358" 17359eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 17360 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17361 17362test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 17363 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 17364 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 17365 "$ac_tmp/out"`; test -z "$ac_out"; } && 17366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17367which seems to be undefined. Please make sure it is defined" >&5 17368$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17369which seems to be undefined. Please make sure it is defined" >&2;} 17370 17371 rm -f "$ac_tmp/stdin" 17372 case $ac_file in 17373 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 17374 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 17375 esac \ 17376 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17377 ;; 17378 17379 17380 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 17381$as_echo "$as_me: executing $ac_file commands" >&6;} 17382 ;; 17383 esac 17384 17385 17386 case $ac_file$ac_mode in 17387 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 17388 # Older Autoconf quotes --file arguments for eval, but not when files 17389 # are listed without --file. Let's play safe and only enable the eval 17390 # if we detect the quoting. 17391 case $CONFIG_FILES in 17392 *\'*) eval set x "$CONFIG_FILES" ;; 17393 *) set x $CONFIG_FILES ;; 17394 esac 17395 shift 17396 for mf 17397 do 17398 # Strip MF so we end up with the name of the file. 17399 mf=`echo "$mf" | sed -e 's/:.*$//'` 17400 # Check whether this is an Automake generated Makefile or not. 17401 # We used to match only the files named 'Makefile.in', but 17402 # some people rename them; so instead we look at the file content. 17403 # Grep'ing the first line is not enough: some people post-process 17404 # each Makefile.in and add a new line on top of each file to say so. 17405 # Grep'ing the whole file is not good either: AIX grep has a line 17406 # limit of 2048, but all sed's we know have understand at least 4000. 17407 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 17408 dirpart=`$as_dirname -- "$mf" || 17409$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17410 X"$mf" : 'X\(//\)[^/]' \| \ 17411 X"$mf" : 'X\(//\)$' \| \ 17412 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 17413$as_echo X"$mf" | 17414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17415 s//\1/ 17416 q 17417 } 17418 /^X\(\/\/\)[^/].*/{ 17419 s//\1/ 17420 q 17421 } 17422 /^X\(\/\/\)$/{ 17423 s//\1/ 17424 q 17425 } 17426 /^X\(\/\).*/{ 17427 s//\1/ 17428 q 17429 } 17430 s/.*/./; q'` 17431 else 17432 continue 17433 fi 17434 # Extract the definition of DEPDIR, am__include, and am__quote 17435 # from the Makefile without running 'make'. 17436 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 17437 test -z "$DEPDIR" && continue 17438 am__include=`sed -n 's/^am__include = //p' < "$mf"` 17439 test -z "$am__include" && continue 17440 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 17441 # Find all dependency output files, they are included files with 17442 # $(DEPDIR) in their names. We invoke sed twice because it is the 17443 # simplest approach to changing $(DEPDIR) to its actual value in the 17444 # expansion. 17445 for file in `sed -n " 17446 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 17447 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 17448 # Make sure the directory exists. 17449 test -f "$dirpart/$file" && continue 17450 fdir=`$as_dirname -- "$file" || 17451$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17452 X"$file" : 'X\(//\)[^/]' \| \ 17453 X"$file" : 'X\(//\)$' \| \ 17454 X"$file" : 'X\(/\)' \| . 2>/dev/null || 17455$as_echo X"$file" | 17456 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17457 s//\1/ 17458 q 17459 } 17460 /^X\(\/\/\)[^/].*/{ 17461 s//\1/ 17462 q 17463 } 17464 /^X\(\/\/\)$/{ 17465 s//\1/ 17466 q 17467 } 17468 /^X\(\/\).*/{ 17469 s//\1/ 17470 q 17471 } 17472 s/.*/./; q'` 17473 as_dir=$dirpart/$fdir; as_fn_mkdir_p 17474 # echo "creating $dirpart/$file" 17475 echo '# dummy' > "$dirpart/$file" 17476 done 17477 done 17478} 17479 ;; 17480 "libtool":C) 17481 17482 # See if we are running on zsh, and set the options which allow our 17483 # commands through without removal of \ escapes. 17484 if test -n "${ZSH_VERSION+set}" ; then 17485 setopt NO_GLOB_SUBST 17486 fi 17487 17488 cfgfile="${ofile}T" 17489 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 17490 $RM "$cfgfile" 17491 17492 cat <<_LT_EOF >> "$cfgfile" 17493#! $SHELL 17494 17495# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 17496# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 17497# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17498# NOTE: Changes made to this file will be lost: look at ltmain.sh. 17499# 17500# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 17501# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 17502# Foundation, Inc. 17503# Written by Gordon Matzigkeit, 1996 17504# 17505# This file is part of GNU Libtool. 17506# 17507# GNU Libtool is free software; you can redistribute it and/or 17508# modify it under the terms of the GNU General Public License as 17509# published by the Free Software Foundation; either version 2 of 17510# the License, or (at your option) any later version. 17511# 17512# As a special exception to the GNU General Public License, 17513# if you distribute this file as part of a program or library that 17514# is built using GNU Libtool, you may include this file under the 17515# same distribution terms that you use for the rest of that program. 17516# 17517# GNU Libtool is distributed in the hope that it will be useful, 17518# but WITHOUT ANY WARRANTY; without even the implied warranty of 17519# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17520# GNU General Public License for more details. 17521# 17522# You should have received a copy of the GNU General Public License 17523# along with GNU Libtool; see the file COPYING. If not, a copy 17524# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 17525# obtained by writing to the Free Software Foundation, Inc., 17526# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17527 17528 17529# The names of the tagged configurations supported by this script. 17530available_tags="CXX " 17531 17532# ### BEGIN LIBTOOL CONFIG 17533 17534# Which release of libtool.m4 was used? 17535macro_version=$macro_version 17536macro_revision=$macro_revision 17537 17538# Whether or not to build shared libraries. 17539build_libtool_libs=$enable_shared 17540 17541# Whether or not to build static libraries. 17542build_old_libs=$enable_static 17543 17544# What type of objects to build. 17545pic_mode=$pic_mode 17546 17547# Whether or not to optimize for fast installation. 17548fast_install=$enable_fast_install 17549 17550# Shell to use when invoking shell scripts. 17551SHELL=$lt_SHELL 17552 17553# An echo program that protects backslashes. 17554ECHO=$lt_ECHO 17555 17556# The PATH separator for the build system. 17557PATH_SEPARATOR=$lt_PATH_SEPARATOR 17558 17559# The host system. 17560host_alias=$host_alias 17561host=$host 17562host_os=$host_os 17563 17564# The build system. 17565build_alias=$build_alias 17566build=$build 17567build_os=$build_os 17568 17569# A sed program that does not truncate output. 17570SED=$lt_SED 17571 17572# Sed that helps us avoid accidentally triggering echo(1) options like -n. 17573Xsed="\$SED -e 1s/^X//" 17574 17575# A grep program that handles long lines. 17576GREP=$lt_GREP 17577 17578# An ERE matcher. 17579EGREP=$lt_EGREP 17580 17581# A literal string matcher. 17582FGREP=$lt_FGREP 17583 17584# A BSD- or MS-compatible name lister. 17585NM=$lt_NM 17586 17587# Whether we need soft or hard links. 17588LN_S=$lt_LN_S 17589 17590# What is the maximum length of a command? 17591max_cmd_len=$max_cmd_len 17592 17593# Object file suffix (normally "o"). 17594objext=$ac_objext 17595 17596# Executable file suffix (normally ""). 17597exeext=$exeext 17598 17599# whether the shell understands "unset". 17600lt_unset=$lt_unset 17601 17602# turn spaces into newlines. 17603SP2NL=$lt_lt_SP2NL 17604 17605# turn newlines into spaces. 17606NL2SP=$lt_lt_NL2SP 17607 17608# convert \$build file names to \$host format. 17609to_host_file_cmd=$lt_cv_to_host_file_cmd 17610 17611# convert \$build files to toolchain format. 17612to_tool_file_cmd=$lt_cv_to_tool_file_cmd 17613 17614# An object symbol dumper. 17615OBJDUMP=$lt_OBJDUMP 17616 17617# Method to check whether dependent libraries are shared objects. 17618deplibs_check_method=$lt_deplibs_check_method 17619 17620# Command to use when deplibs_check_method = "file_magic". 17621file_magic_cmd=$lt_file_magic_cmd 17622 17623# How to find potential files when deplibs_check_method = "file_magic". 17624file_magic_glob=$lt_file_magic_glob 17625 17626# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 17627want_nocaseglob=$lt_want_nocaseglob 17628 17629# DLL creation program. 17630DLLTOOL=$lt_DLLTOOL 17631 17632# Command to associate shared and link libraries. 17633sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 17634 17635# The archiver. 17636AR=$lt_AR 17637 17638# Flags to create an archive. 17639AR_FLAGS=$lt_AR_FLAGS 17640 17641# How to feed a file listing to the archiver. 17642archiver_list_spec=$lt_archiver_list_spec 17643 17644# A symbol stripping program. 17645STRIP=$lt_STRIP 17646 17647# Commands used to install an old-style archive. 17648RANLIB=$lt_RANLIB 17649old_postinstall_cmds=$lt_old_postinstall_cmds 17650old_postuninstall_cmds=$lt_old_postuninstall_cmds 17651 17652# Whether to use a lock for old archive extraction. 17653lock_old_archive_extraction=$lock_old_archive_extraction 17654 17655# A C compiler. 17656LTCC=$lt_CC 17657 17658# LTCC compiler flags. 17659LTCFLAGS=$lt_CFLAGS 17660 17661# Take the output of nm and produce a listing of raw symbols and C names. 17662global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17663 17664# Transform the output of nm in a proper C declaration. 17665global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17666 17667# Transform the output of nm in a C name address pair. 17668global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17669 17670# Transform the output of nm in a C name address pair when lib prefix is needed. 17671global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 17672 17673# Specify filename containing input files for \$NM. 17674nm_file_list_spec=$lt_nm_file_list_spec 17675 17676# The root where to search for dependent libraries,and in which our libraries should be installed. 17677lt_sysroot=$lt_sysroot 17678 17679# The name of the directory that contains temporary libtool files. 17680objdir=$objdir 17681 17682# Used to examine libraries when file_magic_cmd begins with "file". 17683MAGIC_CMD=$MAGIC_CMD 17684 17685# Must we lock files when doing compilation? 17686need_locks=$lt_need_locks 17687 17688# Manifest tool. 17689MANIFEST_TOOL=$lt_MANIFEST_TOOL 17690 17691# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 17692DSYMUTIL=$lt_DSYMUTIL 17693 17694# Tool to change global to local symbols on Mac OS X. 17695NMEDIT=$lt_NMEDIT 17696 17697# Tool to manipulate fat objects and archives on Mac OS X. 17698LIPO=$lt_LIPO 17699 17700# ldd/readelf like tool for Mach-O binaries on Mac OS X. 17701OTOOL=$lt_OTOOL 17702 17703# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 17704OTOOL64=$lt_OTOOL64 17705 17706# Old archive suffix (normally "a"). 17707libext=$libext 17708 17709# Shared library suffix (normally ".so"). 17710shrext_cmds=$lt_shrext_cmds 17711 17712# The commands to extract the exported symbol list from a shared archive. 17713extract_expsyms_cmds=$lt_extract_expsyms_cmds 17714 17715# Variables whose values should be saved in libtool wrapper scripts and 17716# restored at link time. 17717variables_saved_for_relink=$lt_variables_saved_for_relink 17718 17719# Do we need the "lib" prefix for modules? 17720need_lib_prefix=$need_lib_prefix 17721 17722# Do we need a version for libraries? 17723need_version=$need_version 17724 17725# Library versioning type. 17726version_type=$version_type 17727 17728# Shared library runtime path variable. 17729runpath_var=$runpath_var 17730 17731# Shared library path variable. 17732shlibpath_var=$shlibpath_var 17733 17734# Is shlibpath searched before the hard-coded library search path? 17735shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17736 17737# Format of library name prefix. 17738libname_spec=$lt_libname_spec 17739 17740# List of archive names. First name is the real one, the rest are links. 17741# The last name is the one that the linker finds with -lNAME 17742library_names_spec=$lt_library_names_spec 17743 17744# The coded name of the library, if different from the real name. 17745soname_spec=$lt_soname_spec 17746 17747# Permission mode override for installation of shared libraries. 17748install_override_mode=$lt_install_override_mode 17749 17750# Command to use after installation of a shared archive. 17751postinstall_cmds=$lt_postinstall_cmds 17752 17753# Command to use after uninstallation of a shared archive. 17754postuninstall_cmds=$lt_postuninstall_cmds 17755 17756# Commands used to finish a libtool library installation in a directory. 17757finish_cmds=$lt_finish_cmds 17758 17759# As "finish_cmds", except a single script fragment to be evaled but 17760# not shown. 17761finish_eval=$lt_finish_eval 17762 17763# Whether we should hardcode library paths into libraries. 17764hardcode_into_libs=$hardcode_into_libs 17765 17766# Compile-time system search path for libraries. 17767sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17768 17769# Run-time system search path for libraries. 17770sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17771 17772# Whether dlopen is supported. 17773dlopen_support=$enable_dlopen 17774 17775# Whether dlopen of programs is supported. 17776dlopen_self=$enable_dlopen_self 17777 17778# Whether dlopen of statically linked programs is supported. 17779dlopen_self_static=$enable_dlopen_self_static 17780 17781# Commands to strip libraries. 17782old_striplib=$lt_old_striplib 17783striplib=$lt_striplib 17784 17785 17786# The linker used to build libraries. 17787LD=$lt_LD 17788 17789# How to create reloadable object files. 17790reload_flag=$lt_reload_flag 17791reload_cmds=$lt_reload_cmds 17792 17793# Commands used to build an old-style archive. 17794old_archive_cmds=$lt_old_archive_cmds 17795 17796# A language specific compiler. 17797CC=$lt_compiler 17798 17799# Is the compiler the GNU compiler? 17800with_gcc=$GCC 17801 17802# Compiler flag to turn off builtin functions. 17803no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 17804 17805# Additional compiler flags for building library objects. 17806pic_flag=$lt_lt_prog_compiler_pic 17807 17808# How to pass a linker flag through the compiler. 17809wl=$lt_lt_prog_compiler_wl 17810 17811# Compiler flag to prevent dynamic linking. 17812link_static_flag=$lt_lt_prog_compiler_static 17813 17814# Does compiler simultaneously support -c and -o options? 17815compiler_c_o=$lt_lt_cv_prog_compiler_c_o 17816 17817# Whether or not to add -lc for building shared libraries. 17818build_libtool_need_lc=$archive_cmds_need_lc 17819 17820# Whether or not to disallow shared libs when runtime libs are static. 17821allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 17822 17823# Compiler flag to allow reflexive dlopens. 17824export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 17825 17826# Compiler flag to generate shared objects directly from archives. 17827whole_archive_flag_spec=$lt_whole_archive_flag_spec 17828 17829# Whether the compiler copes with passing no objects directly. 17830compiler_needs_object=$lt_compiler_needs_object 17831 17832# Create an old-style archive from a shared archive. 17833old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 17834 17835# Create a temporary old-style archive to link instead of a shared archive. 17836old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 17837 17838# Commands used to build a shared archive. 17839archive_cmds=$lt_archive_cmds 17840archive_expsym_cmds=$lt_archive_expsym_cmds 17841 17842# Commands used to build a loadable module if different from building 17843# a shared archive. 17844module_cmds=$lt_module_cmds 17845module_expsym_cmds=$lt_module_expsym_cmds 17846 17847# Whether we are building with GNU ld or not. 17848with_gnu_ld=$lt_with_gnu_ld 17849 17850# Flag that allows shared libraries with undefined symbols to be built. 17851allow_undefined_flag=$lt_allow_undefined_flag 17852 17853# Flag that enforces no undefined symbols. 17854no_undefined_flag=$lt_no_undefined_flag 17855 17856# Flag to hardcode \$libdir into a binary during linking. 17857# This must work even if \$libdir does not exist 17858hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 17859 17860# Whether we need a single "-rpath" flag with a separated argument. 17861hardcode_libdir_separator=$lt_hardcode_libdir_separator 17862 17863# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17864# DIR into the resulting binary. 17865hardcode_direct=$hardcode_direct 17866 17867# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17868# DIR into the resulting binary and the resulting library dependency is 17869# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 17870# library is relocated. 17871hardcode_direct_absolute=$hardcode_direct_absolute 17872 17873# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 17874# into the resulting binary. 17875hardcode_minus_L=$hardcode_minus_L 17876 17877# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 17878# into the resulting binary. 17879hardcode_shlibpath_var=$hardcode_shlibpath_var 17880 17881# Set to "yes" if building a shared library automatically hardcodes DIR 17882# into the library and all subsequent libraries and executables linked 17883# against it. 17884hardcode_automatic=$hardcode_automatic 17885 17886# Set to yes if linker adds runtime paths of dependent libraries 17887# to runtime path list. 17888inherit_rpath=$inherit_rpath 17889 17890# Whether libtool must link a program against all its dependency libraries. 17891link_all_deplibs=$link_all_deplibs 17892 17893# Set to "yes" if exported symbols are required. 17894always_export_symbols=$always_export_symbols 17895 17896# The commands to list exported symbols. 17897export_symbols_cmds=$lt_export_symbols_cmds 17898 17899# Symbols that should not be listed in the preloaded symbols. 17900exclude_expsyms=$lt_exclude_expsyms 17901 17902# Symbols that must always be exported. 17903include_expsyms=$lt_include_expsyms 17904 17905# Commands necessary for linking programs (against libraries) with templates. 17906prelink_cmds=$lt_prelink_cmds 17907 17908# Commands necessary for finishing linking programs. 17909postlink_cmds=$lt_postlink_cmds 17910 17911# Specify filename containing input files. 17912file_list_spec=$lt_file_list_spec 17913 17914# How to hardcode a shared library path into an executable. 17915hardcode_action=$hardcode_action 17916 17917# The directories searched by this compiler when creating a shared library. 17918compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 17919 17920# Dependencies to place before and after the objects being linked to 17921# create a shared library. 17922predep_objects=$lt_predep_objects 17923postdep_objects=$lt_postdep_objects 17924predeps=$lt_predeps 17925postdeps=$lt_postdeps 17926 17927# The library search path used internally by the compiler when linking 17928# a shared library. 17929compiler_lib_search_path=$lt_compiler_lib_search_path 17930 17931# ### END LIBTOOL CONFIG 17932 17933_LT_EOF 17934 17935 case $host_os in 17936 aix3*) 17937 cat <<\_LT_EOF >> "$cfgfile" 17938# AIX sometimes has problems with the GCC collect2 program. For some 17939# reason, if we set the COLLECT_NAMES environment variable, the problems 17940# vanish in a puff of smoke. 17941if test "X${COLLECT_NAMES+set}" != Xset; then 17942 COLLECT_NAMES= 17943 export COLLECT_NAMES 17944fi 17945_LT_EOF 17946 ;; 17947 esac 17948 17949 17950ltmain="$ac_aux_dir/ltmain.sh" 17951 17952 17953 # We use sed instead of cat because bash on DJGPP gets confused if 17954 # if finds mixed CR/LF and LF-only lines. Since sed operates in 17955 # text mode, it properly converts lines to CR/LF. This bash problem 17956 # is reportedly fixed, but why not run on old versions too? 17957 sed '$q' "$ltmain" >> "$cfgfile" \ 17958 || (rm -f "$cfgfile"; exit 1) 17959 17960 if test x"$xsi_shell" = xyes; then 17961 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 17962func_dirname ()\ 17963{\ 17964\ case ${1} in\ 17965\ */*) func_dirname_result="${1%/*}${2}" ;;\ 17966\ * ) func_dirname_result="${3}" ;;\ 17967\ esac\ 17968} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 17969 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17970 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17971test 0 -eq $? || _lt_function_replace_fail=: 17972 17973 17974 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 17975func_basename ()\ 17976{\ 17977\ func_basename_result="${1##*/}"\ 17978} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 17979 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17980 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17981test 0 -eq $? || _lt_function_replace_fail=: 17982 17983 17984 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 17985func_dirname_and_basename ()\ 17986{\ 17987\ case ${1} in\ 17988\ */*) func_dirname_result="${1%/*}${2}" ;;\ 17989\ * ) func_dirname_result="${3}" ;;\ 17990\ esac\ 17991\ func_basename_result="${1##*/}"\ 17992} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 17993 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17994 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17995test 0 -eq $? || _lt_function_replace_fail=: 17996 17997 17998 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 17999func_stripname ()\ 18000{\ 18001\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 18002\ # positional parameters, so assign one to ordinary parameter first.\ 18003\ func_stripname_result=${3}\ 18004\ func_stripname_result=${func_stripname_result#"${1}"}\ 18005\ func_stripname_result=${func_stripname_result%"${2}"}\ 18006} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 18007 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18008 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18009test 0 -eq $? || _lt_function_replace_fail=: 18010 18011 18012 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 18013func_split_long_opt ()\ 18014{\ 18015\ func_split_long_opt_name=${1%%=*}\ 18016\ func_split_long_opt_arg=${1#*=}\ 18017} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 18018 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18019 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18020test 0 -eq $? || _lt_function_replace_fail=: 18021 18022 18023 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 18024func_split_short_opt ()\ 18025{\ 18026\ func_split_short_opt_arg=${1#??}\ 18027\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 18028} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 18029 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18030 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18031test 0 -eq $? || _lt_function_replace_fail=: 18032 18033 18034 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 18035func_lo2o ()\ 18036{\ 18037\ case ${1} in\ 18038\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 18039\ *) func_lo2o_result=${1} ;;\ 18040\ esac\ 18041} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 18042 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18043 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18044test 0 -eq $? || _lt_function_replace_fail=: 18045 18046 18047 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 18048func_xform ()\ 18049{\ 18050 func_xform_result=${1%.*}.lo\ 18051} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 18052 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18053 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18054test 0 -eq $? || _lt_function_replace_fail=: 18055 18056 18057 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 18058func_arith ()\ 18059{\ 18060 func_arith_result=$(( $* ))\ 18061} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 18062 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18063 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18064test 0 -eq $? || _lt_function_replace_fail=: 18065 18066 18067 sed -e '/^func_len ()$/,/^} # func_len /c\ 18068func_len ()\ 18069{\ 18070 func_len_result=${#1}\ 18071} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 18072 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18073 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18074test 0 -eq $? || _lt_function_replace_fail=: 18075 18076fi 18077 18078if test x"$lt_shell_append" = xyes; then 18079 sed -e '/^func_append ()$/,/^} # func_append /c\ 18080func_append ()\ 18081{\ 18082 eval "${1}+=\\${2}"\ 18083} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 18084 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18085 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18086test 0 -eq $? || _lt_function_replace_fail=: 18087 18088 18089 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 18090func_append_quoted ()\ 18091{\ 18092\ func_quote_for_eval "${2}"\ 18093\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 18094} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 18095 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18096 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18097test 0 -eq $? || _lt_function_replace_fail=: 18098 18099 18100 # Save a `func_append' function call where possible by direct use of '+=' 18101 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 18102 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18103 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18104 test 0 -eq $? || _lt_function_replace_fail=: 18105else 18106 # Save a `func_append' function call even when '+=' is not available 18107 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 18108 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18109 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18110 test 0 -eq $? || _lt_function_replace_fail=: 18111fi 18112 18113if test x"$_lt_function_replace_fail" = x":"; then 18114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 18115$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 18116fi 18117 18118 18119 mv -f "$cfgfile" "$ofile" || 18120 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 18121 chmod +x "$ofile" 18122 18123 18124 cat <<_LT_EOF >> "$ofile" 18125 18126# ### BEGIN LIBTOOL TAG CONFIG: CXX 18127 18128# The linker used to build libraries. 18129LD=$lt_LD_CXX 18130 18131# How to create reloadable object files. 18132reload_flag=$lt_reload_flag_CXX 18133reload_cmds=$lt_reload_cmds_CXX 18134 18135# Commands used to build an old-style archive. 18136old_archive_cmds=$lt_old_archive_cmds_CXX 18137 18138# A language specific compiler. 18139CC=$lt_compiler_CXX 18140 18141# Is the compiler the GNU compiler? 18142with_gcc=$GCC_CXX 18143 18144# Compiler flag to turn off builtin functions. 18145no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 18146 18147# Additional compiler flags for building library objects. 18148pic_flag=$lt_lt_prog_compiler_pic_CXX 18149 18150# How to pass a linker flag through the compiler. 18151wl=$lt_lt_prog_compiler_wl_CXX 18152 18153# Compiler flag to prevent dynamic linking. 18154link_static_flag=$lt_lt_prog_compiler_static_CXX 18155 18156# Does compiler simultaneously support -c and -o options? 18157compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 18158 18159# Whether or not to add -lc for building shared libraries. 18160build_libtool_need_lc=$archive_cmds_need_lc_CXX 18161 18162# Whether or not to disallow shared libs when runtime libs are static. 18163allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 18164 18165# Compiler flag to allow reflexive dlopens. 18166export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 18167 18168# Compiler flag to generate shared objects directly from archives. 18169whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 18170 18171# Whether the compiler copes with passing no objects directly. 18172compiler_needs_object=$lt_compiler_needs_object_CXX 18173 18174# Create an old-style archive from a shared archive. 18175old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 18176 18177# Create a temporary old-style archive to link instead of a shared archive. 18178old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 18179 18180# Commands used to build a shared archive. 18181archive_cmds=$lt_archive_cmds_CXX 18182archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 18183 18184# Commands used to build a loadable module if different from building 18185# a shared archive. 18186module_cmds=$lt_module_cmds_CXX 18187module_expsym_cmds=$lt_module_expsym_cmds_CXX 18188 18189# Whether we are building with GNU ld or not. 18190with_gnu_ld=$lt_with_gnu_ld_CXX 18191 18192# Flag that allows shared libraries with undefined symbols to be built. 18193allow_undefined_flag=$lt_allow_undefined_flag_CXX 18194 18195# Flag that enforces no undefined symbols. 18196no_undefined_flag=$lt_no_undefined_flag_CXX 18197 18198# Flag to hardcode \$libdir into a binary during linking. 18199# This must work even if \$libdir does not exist 18200hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 18201 18202# Whether we need a single "-rpath" flag with a separated argument. 18203hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 18204 18205# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18206# DIR into the resulting binary. 18207hardcode_direct=$hardcode_direct_CXX 18208 18209# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18210# DIR into the resulting binary and the resulting library dependency is 18211# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 18212# library is relocated. 18213hardcode_direct_absolute=$hardcode_direct_absolute_CXX 18214 18215# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18216# into the resulting binary. 18217hardcode_minus_L=$hardcode_minus_L_CXX 18218 18219# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18220# into the resulting binary. 18221hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 18222 18223# Set to "yes" if building a shared library automatically hardcodes DIR 18224# into the library and all subsequent libraries and executables linked 18225# against it. 18226hardcode_automatic=$hardcode_automatic_CXX 18227 18228# Set to yes if linker adds runtime paths of dependent libraries 18229# to runtime path list. 18230inherit_rpath=$inherit_rpath_CXX 18231 18232# Whether libtool must link a program against all its dependency libraries. 18233link_all_deplibs=$link_all_deplibs_CXX 18234 18235# Set to "yes" if exported symbols are required. 18236always_export_symbols=$always_export_symbols_CXX 18237 18238# The commands to list exported symbols. 18239export_symbols_cmds=$lt_export_symbols_cmds_CXX 18240 18241# Symbols that should not be listed in the preloaded symbols. 18242exclude_expsyms=$lt_exclude_expsyms_CXX 18243 18244# Symbols that must always be exported. 18245include_expsyms=$lt_include_expsyms_CXX 18246 18247# Commands necessary for linking programs (against libraries) with templates. 18248prelink_cmds=$lt_prelink_cmds_CXX 18249 18250# Commands necessary for finishing linking programs. 18251postlink_cmds=$lt_postlink_cmds_CXX 18252 18253# Specify filename containing input files. 18254file_list_spec=$lt_file_list_spec_CXX 18255 18256# How to hardcode a shared library path into an executable. 18257hardcode_action=$hardcode_action_CXX 18258 18259# The directories searched by this compiler when creating a shared library. 18260compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 18261 18262# Dependencies to place before and after the objects being linked to 18263# create a shared library. 18264predep_objects=$lt_predep_objects_CXX 18265postdep_objects=$lt_postdep_objects_CXX 18266predeps=$lt_predeps_CXX 18267postdeps=$lt_postdeps_CXX 18268 18269# The library search path used internally by the compiler when linking 18270# a shared library. 18271compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 18272 18273# ### END LIBTOOL TAG CONFIG: CXX 18274_LT_EOF 18275 18276 ;; 18277 18278 esac 18279done # for ac_tag 18280 18281 18282as_fn_exit 0 18283_ACEOF 18284ac_clean_files=$ac_clean_files_save 18285 18286test $ac_write_fail = 0 || 18287 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 18288 18289 18290# configure is writing to config.log, and then calls config.status. 18291# config.status does its own redirection, appending to config.log. 18292# Unfortunately, on DOS this fails, as config.log is still kept open 18293# by configure, so config.status won't be able to write to it; its 18294# output is simply discarded. So we exec the FD to /dev/null, 18295# effectively closing config.log, so it can be properly (re)opened and 18296# appended to by config.status. When coming back to configure, we 18297# need to make the FD available again. 18298if test "$no_create" != yes; then 18299 ac_cs_success=: 18300 ac_config_status_args= 18301 test "$silent" = yes && 18302 ac_config_status_args="$ac_config_status_args --quiet" 18303 exec 5>/dev/null 18304 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 18305 exec 5>>config.log 18306 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 18307 # would make configure fail if this is the last instruction. 18308 $ac_cs_success || as_fn_exit 1 18309fi 18310if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 18311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 18312$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 18313fi 18314 18315if test "$force_libusb_on_linux" = "yes"; then 18316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 18317 libusb support on linux will be dropped in a future release please 18318 migrate to libhidapi!" >&5 18319$as_echo "$as_me: WARNING: 18320 libusb support on linux will be dropped in a future release please 18321 migrate to libhidapi!" >&2;} 18322fi 18323